gerbil/assets/kcpp_sdui.embd

524 lines
1.3 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.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="data:image/x-icon;base64,AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQCDuEEAg7hBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEAg7hBM4O4QTODuEEAg7hBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQuDuEGxg7hBsYO4QQuDuEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEAg7hBWoO4QfeDuEH3g7hBWoO4QQCDuEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QRqDuEHJg7hB/4O4Qf+DuEHJg7hBGoO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEAg7hBeoO4Qf6DuEH/g7hB/4O4Qf6DuEF6g7hBAIO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBAIO4QS6DuEHfg7hB/4O4Qf+DuEH/g7hB/4O4Qd+DuEEug7hBAIO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEFg7hBmoO4Qf+DuEH/g7hB/4O4Qf+DuEH/g7hB/4O4QZqDuEEFg7hBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBAIO4QUiDuEHwg7hB/4O4Qf+DuEH/g7hB/4O4Qf+DuEH/g7hB8IO4QUiDuEEAg7hBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEQg7hBuIO4Qf+DuEH/g7hB/4O4Qf+DuEH/g7hB/4O4Qf+DuEH/g7hBuIO4QRCDuEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBAIO4QWaDuEH6g7hB/4O4Qf+DuEH/g7hB/4O4Qf+DuEH/g7hB/4O4Qf+DuEH6g7hBZoO4QQCDuEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEgg7hB0oO4Qf+DuEH/g7hB/4O4Qf+DuUH/g7lB/4O4Qf+DuEH/g7hB/4O4Qf+DuEHSg7hBIIO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBAYO4QYaDuEH/g7hB/4O4Qf+DuEH/g7lB/3ykP/98pD//g7lB/4O4Qf+DuEH/g7hB/4O4Qf+DuEGGg7hBAYO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQCDuEE3g7hB5oO4Qf+DuEH/g7hB/4O4Qf+CtEH/amw5/2psOf+CtEH/g7hB/4O4Qf+DuEH/g7hB/4O4QeaDuEE3g7hBAIO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBCYO4QaaDuEH/g7hB/4O4Qf+DuEH/g7lB/3eTPf9fTDX/X0w1/3eTPf+DuUH/g7hB/4O4Qf+DuEH/g7hB/4O4QaaDuEEJg7hBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQCDuEFSg7hB9IO4Qf+DuEH/g7hB/4O5Qf+ArkD/ZmE4/15INf9eSDX/ZmE4/4CuQP+DuUH/g7hB/4O4Qf+DuEH/g7hB9IO4QVKDuEEAg7hBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBFYO4QcKDuEH/g7hB/4O4Qf+DuEH/g7lB/3KFPP9eSTX/Xkk1/15JNf9eSTX/coU8/4O5Qf+DuEH/g7hB/4O4Qf+DuEH/g7hBwoO4QRWDuEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQCDuEFxg7hB/IO4Qf+DuEH/g7hB/4O5Qf99pj//Y1c3/15INf9eSTX/Xkk1/15INf9jVzf/faY//4O5Qf+DuEH/g7hB/4O4Qf+DuEH8g7hBcYO4QQCDuEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBKIO4QdqDuEH/g7hB/4O4Qf+DuEH/g7dB/212Ov9eSDX/Xkk1/15JNf9eSTX/Xkk1/15INf9tdjr/g7dB/4O4Qf+DuEH/g7hB/4O4Qf+DuEHag7hBKIO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQODuEGSg7hB/4O4Qf+DuEH/g7hB/4O5Qf95mz7/YFA2/15INf9eSTX/Xkk1/15JNf9eSTX/Xkg1/2BQNv95mz7/g7lB/4O4Qf+DuEH/g7hB/4O4Qf+DuEGSg7hBA4O4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEAg7hBQIO4QeyDuEH/g7hB/4O4Qf+DuEH/gbJA/2lpOf9dRzX/Xkk1/15JNf9eSTX/Xkk1/15JNf9eSTX/XUc1/2lpOf+BskD/g7hB/4O4Qf+DuEH/g7hB/4O4QeyDuEFAg7hBAIO4QQAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQ2DuEGxg7hB/4O4Qf+DuEH/g7hB/4O5Qf91jj3/X0s1/15JNf9eSTX/Xkk1/15JNf9eSTX/Xkk1/15JNf9eSTX/X0s1/3WOPf+DuUH/g7hB/4O4Qf+DuEH/g7hB/4O4QbGDuEENg7hBAAAAAAAAAAAAAAAAAIO4QQCDuEEAg7hBXYO4QfiDuEH/g7hB/4O4Qf+DuUH/f6xA/2VdN/9eSDX/Xkk1/15JNf9eSTX/Xko15V5KNeVeSTX/Xkk1/15JNf9eSDX/ZV03/3+sQP+DuUH/g7hB/4O4Qf+DuEH/g7hB+IO4QV2DuEEAg7hBAAAAAAAAAAAAg7hBAIO4QRuDuEHMg7hB/4O4Qf+DuEH/g7hB/4O4Qf9wfzv/Xkk1/15JNf9eSTX/Xkk1/15JNfxfTDVuX0w1bl5JNfxeSTX/Xkk1/15JNf9eSTX/cH87/4O4Qf+DuEH/g7hB/4O4Qf+DuEH/g7hBzIO4QRuDuEEAAAAAAIO4QQCDuEEAg7hBfYO4Qf6DuEH/g7hB/4O4Qf+DuUH/fKI//2JUNv9eSDX/Xkk1/15JNf9eSTX/X0o1wWFQNhNhUDYTX0o1wV5JNf9eSTX/Xkk1/15INf9iVDb/fKI//4O5Qf+DuEH/g7hB/4O4Qf+DuEH+g7hBfYO4QQCDuEEAg7hBAIO4QS+DuEHhg7hB/4O4Qf+DuEH/g7hB/4K1Qf9scTn/Xkg1/15JNf9eSTX/Xkk1/15JNfNfTDVQXkg1AF5INQBfTDVQXkk1815JNf9eSTX/Xkk1/15INf9scTn/grVB/4O4Qf+DuEH/g7hB/4O4Qf+DuEHhg7hBL4O4QQCDuEEHg7hBnIO4Qf+DuEH/g7hB/4O4Qf+EukH/eJY9/2BONv9eSTX/Xkk1/15JNf9eSTX/X0s1pGJUNwhhUTYAYVE2AGJUNwhfSzWkXkk1/15JNf9eSTX/Xkk1/2BONv94lj3/hLpB/4O4Qf+DuEH/g7hB/4O4Qf+DuEGcg7hBB4O4QVeDuEHwg7hB/4O4Qf+DuEH/g7lB/4CvQP9nZDj/Xkg1/15JNf9eSTX/Xkk1/15KNeVgTTY1X0s1AGpmOQBqZjkAX0s1AGBNNjVeSjXlXkk1/15JNf9eSTX/Xkg1/2dkOP+Ar0D/g7lB/4O4Qf+DuEH/g7hB/4O4QfCDuEFXg7hBmoO4QciDuEHGg7hBxoO4QcaEukHGdpE9xl9LNcZeSTXGXkk1xl5JNcZeSTXJX0s1dWhhOQJiUzcAAAAAAAAAAABiUzcAaGE5Al9LNXVeSTXJXkk1xl5JNcZeSTXGX0s1xnaRPcaEukHGg7hBxoO4QcaDuEHGg7hByIO4QZqDuEEOg7hBDYO4QQ2DuEENg7hBDYO5QQ1scjoNXEQ0DV5JNQ1eSTUNXkk1DV5JNQ1gTTYFXkg1AAAAAAAAAAAAAAAAAAAAAABeSDUAYE02BV5JNQ1eSTUNXkk1DV5JNQ1cRDQNbHI5DYO5QQ2DuEENg7hBDYO4QQ2DuEENg7hBDgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////n////w////8P///+B////gf///wD///4Af//+AH///AA///wAP//4AB//8AAP//AAD//gAAf/4AAH/8AAA//AAAP/gAAB/wAAAP8AAAD+AAAAfgAAAHwAAAA8AAAAOAAYABAAGAAAADwAAAA8AAAAfgAP////8=" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Stable UI for KoboldCpp</title>
<script type="module" crossorigin>var QC=Object.defineProperty;var ex=(e,t,n)=>t in e?QC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var wg=(e,t,n)=>(ex(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const u of i)if(u.type==="childList")for(const p of u.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&r(p)}).observe(document,{childList:!0,subtree:!0});function n(i){const u={};return i.integrity&&(u.integrity=i.integrity),i.referrerpolicy&&(u.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?u.credentials="include":i.crossorigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(i){if(i.ep)return;i.ep=!0;const u=n(i);fetch(i.href,u)}})();/**
* @vue/shared v3.5.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function yp(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const St={},vo=[],rt=()=>{},Lb=()=>!1,Kc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),bp=e=>e.startsWith("onUpdate:"),Nt=Object.assign,_p=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},tx=Object.prototype.hasOwnProperty,nt=(e,t)=>tx.call(e,t),Pe=Array.isArray,go=e=>Ll(e)==="[object Map]",Db=e=>Ll(e)==="[object Set]",Sg=e=>Ll(e)==="[object Date]",Re=e=>typeof e=="function",Be=e=>typeof e=="string",wr=e=>typeof e=="symbol",Ye=e=>e!==null&&typeof e=="object",Eo=e=>(Ye(e)||Re(e))&&Re(e.then)&&Re(e.catch),Fb=Object.prototype.toString,Ll=e=>Fb.call(e),nx=e=>Ll(e).slice(8,-1),Ys=e=>Ll(e)==="[object Object]",wp=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ss=yp(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gc=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},rx=/-\w/g,Zn=Gc(e=>e.replace(rx,t=>t.slice(1).toUpperCase())),ix=/\B([A-Z])/g,na=Gc(e=>e.replace(ix,"-$1").toLowerCase()),Dl=Gc(e=>e.charAt(0).toUpperCase()+e.slice(1)),Cs=Gc(e=>e?`on${Dl(e)}`:""),Ui=(e,t)=>!Object.is(e,t),zu=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Bb=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},jd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ax=e=>{const t=Be(e)?Number(e):NaN;return isNaN(t)?e:t};let Cg;const Fl=()=>Cg||(Cg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ze(e){if(Pe(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=Be(r)?ux(r):ze(r);if(i)for(const u in i)t[u]=i[u]}return t}else if(Be(e)||Ye(e))return e}const ox=/;(?![^(]*\))/g,sx=/:([^]+)/,lx=/\/\*[^]*?\*\//g;function ux(e){const t={};return e.replace(lx,"").split(ox).forEach(n=>{if(n){const r=n.split(sx);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function le(e){let t="";if(Be(e))t=e;else if(Pe(e))for(let n=0;n<e.length;n++){const r=le(e[n]);r&&(t+=r+" ")}else if(Ye(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Vd(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Be(t)&&(e.class=le(t)),n&&(e.style=ze(n)),e}const cx="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",fx=yp(cx);function Nb(e){return!!e||e===""}function dx(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=ac(e[r],t[r]);return n}function ac(e,t){if(e===t)return!0;let n=Sg(e),r=Sg(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=wr(e),r=wr(t),n||r)return e===t;if(n=Pe(e),r=Pe(t),n||r)return n&&r?dx(e,t):!1;if(n=Ye(e),r=Ye(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,u=Object.keys(t).length;if(i!==u)return!1;for(const p in e){const o=e.hasOwnProperty(p),a=t.hasOwnProperty(p);if(o&&!a||!o&&a||!ac(e[p],t[p]))return!1}}return String(e)===String(t)}const $b=e=>!!(e&&e.__v_isRef===!0),Oe=e=>Be(e)?e:e==null?"":Pe(e)||Ye(e)&&(e.toString===Fb||!Re(e.toString))?$b(e)?Oe(e.value):JSON.stringify(e,zb,2):String(e),zb=(e,t)=>$b(t)?zb(e,t.value):go(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],u)=>(n[Df(r,u)+" =>"]=i,n),{})}:Db(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Df(n))}:wr(t)?Df(t):Ye(t)&&!Pe(t)&&!Ys(t)?String(t):t,Df=(e,t="")=>{var n;return wr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function hx(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}/**
* @vue/reactivity v3.5.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let cn;class jb{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=cn,!t&&cn&&(this.index=(cn.scopes||(cn.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=cn;try{return cn=this,t()}finally{cn=n}}}on(){++this._on===1&&(this.prevScope=cn,cn=this)}off(){this._on>0&&--this._on===0&&(cn=this.prevScope,this.prevScope=void 0)}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 i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Sp(e){return new jb(e)}function Cp(){return cn}function xp(e,t=!1){cn&&cn.cleanups.push(e)}let Tt;const Ff=new WeakSet;class Vb{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,cn&&cn.active&&cn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ff.has(this)&&(Ff.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Hb(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,xg(this),Wb(this);const t=Tt,n=yr;Tt=this,yr=!0;try{return this.fn()}finally{Kb(this),Tt=t,yr=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)kp(t);this.deps=this.depsTail=void 0,xg(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ff.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ud(this)&&this.run()}get dirty(){return Ud(this)}}let Ub=0,xs,Ts;function Hb(e,t=!1){if(e.flags|=8,t){e.next=Ts,Ts=e;return}e.next=xs,xs=e}function Tp(){Ub++}function Ep(){if(--Ub>0)return;if(Ts){let t=Ts;for(Ts=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;xs;){let t=xs;for(xs=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 Wb(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Kb(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),kp(r),px(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Ud(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Gb(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Gb(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Xs)||(e.globalVersion=Xs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ud(e))))return;e.flags|=2;const t=e.dep,n=Tt,r=yr;Tt=e,yr=!0;try{Wb(e);const i=e.fn(e._value);(t.version===0||Ui(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Tt=n,yr=r,Kb(e),e.flags&=-3}}function kp(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let u=n.computed.deps;u;u=u.nextDep)kp(u,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function px(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let yr=!0;const Yb=[];function di(){Yb.push(yr),yr=!1}function hi(){const e=Yb.pop();yr=e===void 0?!0:e}function xg(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Tt;Tt=void 0;try{t()}finally{Tt=n}}}let Xs=0;class vx{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 Op{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,this.__v_skip=!0}track(t){if(!Tt||!yr||Tt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Tt)n=this.activeLink=new vx(Tt,this),Tt.deps?(n.prevDep=Tt.depsTail,Tt.depsTail.nextDep=n,Tt.depsTail=n):Tt.deps=Tt.depsTail=n,Xb(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=Tt.depsTail,n.nextDep=void 0,Tt.depsTail.nextDep=n,Tt.depsTail=n,Tt.deps===n&&(Tt.deps=r)}return n}trigger(t){this.version++,Xs++,this.notify(t)}notify(t){Tp();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ep()}}}function Xb(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)Xb(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const oc=new WeakMap,xa=Symbol(""),Hd=Symbol(""),qs=Symbol("");function dn(e,t,n){if(yr&&Tt){let r=oc.get(e);r||oc.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Op),i.map=r,i.key=n),i.track()}}function si(e,t,n,r,i,u){const p=oc.get(e);if(!p){Xs++;return}const o=a=>{a&&a.trigger()};if(Tp(),t==="clear")p.forEach(o);else{const a=Pe(e),c=a&&wp(n);if(a&&n==="length"){const h=Number(r);p.forEach((l,f)=>{(f==="length"||f===qs||!wr(f)&&f>=h)&&o(l)})}else switch((n!==void 0||p.has(void 0))&&o(p.get(n)),c&&o(p.get(qs)),t){case"add":a?c&&o(p.get("length")):(o(p.get(xa)),go(e)&&o(p.get(Hd)));break;case"delete":a||(o(p.get(xa)),go(e)&&o(p.get(Hd)));break;case"set":go(e)&&o(p.get(xa));break}}Ep()}function gx(e,t){const n=oc.get(e);return n&&n.get(t)}function Ja(e){const t=ot(e);return t===e?t:(dn(t,"iterate",qs),nr(e)?t:t.map(en))}function Yc(e){return dn(e=ot(e),"iterate",qs),e}const mx={__proto__:null,[Symbol.iterator](){return Bf(this,Symbol.iterator,en)},concat(...e){return Ja(this).concat(...e.map(t=>Pe(t)?Ja(t):t))},entries(){return Bf(this,"entries",e=>(e[1]=en(e[1]),e))},every(e,t){return Xr(this,"every",e,t,void 0,arguments)},filter(e,t){return Xr(this,"filter",e,t,n=>n.map(en),arguments)},find(e,t){return Xr(this,"find",e,t,en,arguments)},findIndex(e,t){return Xr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Xr(this,"findLast",e,t,en,arguments)},findLastIndex(e,t){return Xr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Xr(this,"forEach",e,t,void 0,arguments)},includes(...e){return Nf(this,"includes",e)},indexOf(...e){return Nf(this,"indexOf",e)},join(e){return Ja(this).join(e)},lastIndexOf(...e){return Nf(this,"lastIndexOf",e)},map(e,t){return Xr(this,"map",e,t,void 0,arguments)},pop(){return ls(this,"pop")},push(...e){return ls(this,"push",e)},reduce(e,...t){return Tg(this,"reduce",e,t)},reduceRight(e,...t){return Tg(this,"reduceRight",e,t)},shift(){return ls(this,"shift")},some(e,t){return Xr(this,"some",e,t,void 0,arguments)},splice(...e){return ls(this,"splice",e)},toReversed(){return Ja(this).toReversed()},toSorted(e){return Ja(this).toSorted(e)},toSpliced(...e){return Ja(this).toSpliced(...e)},unshift(...e){return ls(this,"unshift",e)},values(){return Bf(this,"values",en)}};function Bf(e,t,n){const r=Yc(e),i=r[t]();return r!==e&&!nr(e)&&(i._next=i.next,i.next=()=>{const u=i._next();return u.value&&(u.value=n(u.value)),u}),i}const yx=Array.prototype;function Xr(e,t,n,r,i,u){const p=Yc(e),o=p!==e&&!nr(e),a=p[t];if(a!==yx[t]){const l=a.apply(e,u);return o?en(l):l}let c=n;p!==e&&(o?c=function(l,f){return n.call(this,en(l),f,e)}:n.length>2&&(c=function(l,f){return n.call(this,l,f,e)}));const h=a.call(p,c,r);return o&&i?i(h):h}function Tg(e,t,n,r){const i=Yc(e);let u=n;return i!==e&&(nr(e)?n.length>3&&(u=function(p,o,a){return n.call(this,p,o,a,e)}):u=function(p,o,a){return n.call(this,p,en(o),a,e)}),i[t](u,...r)}function Nf(e,t,n){const r=ot(e);dn(r,"iterate",qs);const i=r[t](...n);return(i===-1||i===!1)&&Ip(n[0])?(n[0]=ot(n[0]),r[t](...n)):i}function ls(e,t,n=[]){di(),Tp();const r=ot(e)[t].apply(e,n);return Ep(),hi(),r}const bx=yp("__proto__,__v_isRef,__isVue"),qb=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(wr));function _x(e){wr(e)||(e=String(e));const t=ot(this);return dn(t,"has",e),t.hasOwnProperty(e)}class Zb{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,u=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return u;if(n==="__v_raw")return r===(i?u?Ax:t_:u?e_:Qb).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const p=Pe(t);if(!i){let a;if(p&&(a=mx[n]))return a;if(n==="hasOwnProperty")return _x}const o=Reflect.get(t,n,wt(t)?t:r);return(wr(n)?qb.has(n):bx(n))||(i||dn(t,"get",n),u)?o:wt(o)?p&&wp(n)?o:o.value:Ye(o)?i?$o(o):yt(o):o}}class Jb extends Zb{constructor(t=!1){super(!1,t)}set(t,n,r,i){let u=t[n];if(!this._isShallow){const a=qi(u);if(!nr(r)&&!qi(r)&&(u=ot(u),r=ot(r)),!Pe(t)&&wt(u)&&!wt(r))return a||(u.value=r),!0}const p=Pe(t)&&wp(n)?Number(n)<t.length:nt(t,n),o=Reflect.set(t,n,r,wt(t)?t:i);return t===ot(i)&&(p?Ui(r,u)&&si(t,"set",n,r):si(t,"add",n,r)),o}deleteProperty(t,n){const r=nt(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&si(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!wr(n)||!qb.has(n))&&dn(t,"has",n),r}ownKeys(t){return dn(t,"iterate",Pe(t)?"length":xa),Reflect.ownKeys(t)}}class wx extends Zb{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Sx=new Jb,Cx=new wx,xx=new Jb(!0);const Wd=e=>e,iu=e=>Reflect.getPrototypeOf(e);function Tx(e,t,n){return function(...r){const i=this.__v_raw,u=ot(i),p=go(u),o=e==="entries"||e===Symbol.iterator&&p,a=e==="keys"&&p,c=i[e](...r),h=n?Wd:t?sc:en;return!t&&dn(u,"iterate",a?Hd:xa),{next(){const{value:l,done:f}=c.next();return f?{value:l,done:f}:{value:o?[h(l[0]),h(l[1])]:h(l),done:f}},[Symbol.iterator](){return this}}}}function au(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ex(e,t){const n={get(i){const u=this.__v_raw,p=ot(u),o=ot(i);e||(Ui(i,o)&&dn(p,"get",i),dn(p,"get",o));const{has:a}=iu(p),c=t?Wd:e?sc:en;if(a.call(p,i))return c(u.get(i));if(a.call(p,o))return c(u.get(o));u!==p&&u.get(i)},get size(){const i=this.__v_raw;return!e&&dn(ot(i),"iterate",xa),i.size},has(i){const u=this.__v_raw,p=ot(u),o=ot(i);return e||(Ui(i,o)&&dn(p,"has",i),dn(p,"has",o)),i===o?u.has(i):u.has(i)||u.has(o)},forEach(i,u){const p=this,o=p.__v_raw,a=ot(o),c=t?Wd:e?sc:en;return!e&&dn(a,"iterate",xa),o.forEach((h,l)=>i.call(u,c(h),c(l),p))}};return Nt(n,e?{add:au("add"),set:au("set"),delete:au("delete"),clear:au("clear")}:{add(i){!t&&!nr(i)&&!qi(i)&&(i=ot(i));const u=ot(this);return iu(u).has.call(u,i)||(u.add(i),si(u,"add",i,i)),this},set(i,u){!t&&!nr(u)&&!qi(u)&&(u=ot(u));const p=ot(this),{has:o,get:a}=iu(p);let c=o.call(p,i);c||(i=ot(i),c=o.call(p,i));const h=a.call(p,i);return p.set(i,u),c?Ui(u,h)&&si(p,"set",i,u):si(p,"add",i,u),this},delete(i){const u=ot(this),{has:p,get:o}=iu(u);let a=p.call(u,i);a||(i=ot(i),a=p.call(u,i)),o&&o.call(u,i);const c=u.delete(i);return a&&si(u,"delete",i,void 0),c},clear(){const i=ot(this),u=i.size!==0,p=i.clear();return u&&si(i,"clear",void 0,void 0),p}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Tx(i,e,t)}),n}function Pp(e,t){const n=Ex(e,t);return(r,i,u)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(nt(n,i)&&i in r?n:r,i,u)}const kx={get:Pp(!1,!1)},Ox={get:Pp(!1,!0)},Px={get:Pp(!0,!1)};const Qb=new WeakMap,e_=new WeakMap,t_=new WeakMap,Ax=new WeakMap;function Ix(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Mx(e){return e.__v_skip||!Object.isExtensible(e)?0:Ix(nx(e))}function yt(e){return qi(e)?e:Ap(e,!1,Sx,kx,Qb)}function Xc(e){return Ap(e,!1,xx,Ox,e_)}function $o(e){return Ap(e,!0,Cx,Px,t_)}function Ap(e,t,n,r,i){if(!Ye(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const u=Mx(e);if(u===0)return e;const p=i.get(e);if(p)return p;const o=new Proxy(e,u===2?r:n);return i.set(e,o),o}function Hi(e){return qi(e)?Hi(e.__v_raw):!!(e&&e.__v_isReactive)}function qi(e){return!!(e&&e.__v_isReadonly)}function nr(e){return!!(e&&e.__v_isShallow)}function Ip(e){return e?!!e.__v_raw:!1}function ot(e){const t=e&&e.__v_raw;return t?ot(t):e}function Zi(e){return!nt(e,"__v_skip")&&Object.isExtensible(e)&&Bb(e,"__v_skip",!0),e}const en=e=>Ye(e)?yt(e):e,sc=e=>Ye(e)?$o(e):e;function wt(e){return e?e.__v_isRef===!0:!1}function ie(e){return n_(e,!1)}function Bt(e){return n_(e,!0)}function n_(e,t){return wt(e)?e:new Rx(e,t)}class Rx{constructor(t,n){this.dep=new Op,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ot(t),this._value=n?t:en(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||nr(t)||qi(t);t=r?t:ot(t),Ui(t,n)&&(this._rawValue=t,this._value=r?t:en(t),this.dep.trigger())}}function ju(e){e.dep&&e.dep.trigger()}function w(e){return wt(e)?e.value:e}const Lx={get:(e,t,n)=>t==="__v_raw"?e:w(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return wt(i)&&!wt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function r_(e){return Hi(e)?e:new Proxy(e,Lx)}function Sr(e){const t=Pe(e)?new Array(e.length):{};for(const n in e)t[n]=i_(e,n);return t}class Dx{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 gx(ot(this._object),this._key)}}class Fx{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 En(e,t,n){return wt(e)?e:Re(e)?new Fx(e):Ye(e)&&arguments.length>1?i_(e,t,n):ie(e)}function i_(e,t,n){const r=e[t];return wt(r)?r:new Dx(e,t,n)}class Bx{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Op(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Xs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Tt!==this)return Hb(this,!0),!0}get value(){const t=this.dep.track();return Gb(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Nx(e,t,n=!1){let r,i;return Re(e)?r=e:(r=e.get,i=e.set),new Bx(r,i,n)}const ou={},lc=new WeakMap;let ca;function $x(e,t=!1,n=ca){if(n){let r=lc.get(n);r||lc.set(n,r=[]),r.push(e)}}function zx(e,t,n=St){const{immediate:r,deep:i,once:u,scheduler:p,augmentJob:o,call:a}=n,c=_=>i?_:nr(_)||i===!1||i===0?li(_,1):li(_);let h,l,f,s,d=!1,g=!1;if(wt(e)?(l=()=>e.value,d=nr(e)):Hi(e)?(l=()=>c(e),d=!0):Pe(e)?(g=!0,d=e.some(_=>Hi(_)||nr(_)),l=()=>e.map(_=>{if(wt(_))return _.value;if(Hi(_))return c(_);if(Re(_))return a?a(_,2):_()})):Re(e)?t?l=a?()=>a(e,2):e:l=()=>{if(f){di();try{f()}finally{hi()}}const _=ca;ca=h;try{return a?a(e,3,[s]):e(s)}finally{ca=_}}:l=rt,t&&i){const _=l,S=i===!0?1/0:i;l=()=>li(_(),S)}const v=Cp(),m=()=>{h.stop(),v&&v.active&&_p(v.effects,h)};if(u&&t){const _=t;t=(...S)=>{_(...S),m()}}let y=g?new Array(e.length).fill(ou):ou;const b=_=>{if(!(!(h.flags&1)||!h.dirty&&!_))if(t){const S=h.run();if(i||d||(g?S.some((C,T)=>Ui(C,y[T])):Ui(S,y))){f&&f();const C=ca;ca=h;try{const T=[S,y===ou?void 0:g&&y[0]===ou?[]:y,s];y=S,a?a(t,3,T):t(...T)}finally{ca=C}}}else h.run()};return o&&o(b),h=new Vb(l),h.scheduler=p?()=>p(b,!1):b,s=_=>$x(_,!1,h),f=h.onStop=()=>{const _=lc.get(h);if(_){if(a)a(_,4);else for(const S of _)S();lc.delete(h)}},t?r?b(!0):y=h.run():p?p(b.bind(null,!0),!0):h.run(),m.pause=h.pause.bind(h),m.resume=h.resume.bind(h),m.stop=m,m}function li(e,t=1/0,n){if(t<=0||!Ye(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,wt(e))li(e.value,t,n);else if(Pe(e))for(let r=0;r<e.length;r++)li(e[r],t,n);else if(Db(e)||go(e))e.forEach(r=>{li(r,t,n)});else if(Ys(e)){for(const r in e)li(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&li(e[r],t,n)}return e}/**
* @vue/runtime-core v3.5.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Bl(e,t,n,r){try{return r?e(...r):e()}catch(i){qc(i,t,n)}}function Cr(e,t,n,r){if(Re(e)){const i=Bl(e,t,n,r);return i&&Eo(i)&&i.catch(u=>{qc(u,t,n)}),i}if(Pe(e)){const i=[];for(let u=0;u<e.length;u++)i.push(Cr(e[u],t,n,r));return i}}function qc(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:u,throwUnhandledErrorInProduction:p}=t&&t.appContext.config||St;if(t){let o=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const h=o.ec;if(h){for(let l=0;l<h.length;l++)if(h[l](e,a,c)===!1)return}o=o.parent}if(u){di(),Bl(u,null,10,[e,a,c]),hi();return}}jx(e,n,i,r,p)}function jx(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const xn=[];let Lr=-1;const mo=[];let Ri=null,so=0;const a_=Promise.resolve();let uc=null;function Ke(e){const t=uc||a_;return e?t.then(this?e.bind(this):e):t}function Vx(e){let t=Lr+1,n=xn.length;for(;t<n;){const r=t+n>>>1,i=xn[r],u=Zs(i);u<e||u===e&&i.flags&2?t=r+1:n=r}return t}function Mp(e){if(!(e.flags&1)){const t=Zs(e),n=xn[xn.length-1];!n||!(e.flags&2)&&t>=Zs(n)?xn.push(e):xn.splice(Vx(t),0,e),e.flags|=1,o_()}}function o_(){uc||(uc=a_.then(u_))}function s_(e){Pe(e)?mo.push(...e):Ri&&e.id===-1?Ri.splice(so+1,0,e):e.flags&1||(mo.push(e),e.flags|=1),o_()}function Eg(e,t,n=Lr+1){for(;n<xn.length;n++){const r=xn[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;xn.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function l_(e){if(mo.length){const t=[...new Set(mo)].sort((n,r)=>Zs(n)-Zs(r));if(mo.length=0,Ri){Ri.push(...t);return}for(Ri=t,so=0;so<Ri.length;so++){const n=Ri[so];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ri=null,so=0}}const Zs=e=>e.id==null?e.flags&2?-1:1/0:e.id;function u_(e){const t=rt;try{for(Lr=0;Lr<xn.length;Lr++){const n=xn[Lr];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),Bl(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;Lr<xn.length;Lr++){const n=xn[Lr];n&&(n.flags&=-2)}Lr=-1,xn.length=0,l_(),uc=null,(xn.length||mo.length)&&u_()}}let an=null,c_=null;function cc(e){const t=an;return an=e,c_=e&&e.type.__scopeId||null,t}function he(e,t=an,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&hc(-1);const u=cc(t);let p;try{p=e(...i)}finally{cc(u),r._d&&hc(1)}return p};return r._n=!0,r._c=!0,r._d=!0,r}function mt(e,t){if(an===null)return e;const n=tf(an),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[u,p,o,a=St]=t[i];u&&(Re(u)&&(u={mounted:u,updated:u}),u.deep&&li(p),r.push({dir:u,instance:n,value:p,oldValue:void 0,arg:o,modifiers:a}))}return e}function oa(e,t,n,r){const i=e.dirs,u=t&&t.dirs;for(let p=0;p<i.length;p++){const o=i[p];u&&(o.oldValue=u[p].value);let a=o.dir[r];a&&(di(),Cr(a,n,8,[e.el,o,e,t]),hi())}}const f_=Symbol("_vte"),d_=e=>e.__isTeleport,Es=e=>e&&(e.disabled||e.disabled===""),kg=e=>e&&(e.defer||e.defer===""),Og=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Pg=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Kd=(e,t)=>{const n=e&&e.to;return Be(n)?t?t(n):null:n},h_={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,u,p,o,a,c){const{mc:h,pc:l,pbc:f,o:{insert:s,querySelector:d,createText:g,createComment:v}}=c,m=Es(t.props);let{shapeFlag:y,children:b,dynamicChildren:_}=t;if(e==null){const S=t.el=g(""),C=t.anchor=g("");s(S,n,r),s(C,n,r);const T=(O,D)=>{y&16&&(i&&i.isCE&&(i.ce._teleportTarget=O),h(b,O,D,i,u,p,o,a))},E=()=>{const O=t.target=Kd(t.props,d),D=p_(O,t,g,s);O&&(p!=="svg"&&Og(O)?p="svg":p!=="mathml"&&Pg(O)&&(p="mathml"),m||(T(O,D),Vu(t,!1)))};m&&(T(n,C),Vu(t,!0)),kg(t.props)?(t.el.__isMounted=!1,Cn(()=>{E(),delete t.el.__isMounted},u)):E()}else{if(kg(t.props)&&e.el.__isMounted===!1){Cn(()=>{h_.process(e,t,n,r,i,u,p,o,a,c)},u);return}t.el=e.el,t.targetStart=e.targetStart;const S=t.anchor=e.anchor,C=t.target=e.target,T=t.targetAnchor=e.targetAnchor,E=Es(e.props),O=E?n:C,D=E?S:T;if(p==="svg"||Og(C)?p="svg":(p==="mathml"||Pg(C))&&(p="mathml"),_?(f(e.dynamicChildren,_,O,i,u,p,o),zp(e,t,!0)):a||l(e,t,O,D,i,u,p,o,!1),m)E?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):su(t,n,S,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=Kd(t.props,d);j&&su(t,j,null,c,0)}else E&&su(t,C,T,c,1);Vu(t,m)}},remove(e,t,n,{um:r,o:{remove:i}},u){const{shapeFlag:p,children:o,anchor:a,targetStart:c,targetAnchor:h,target:l,props:f}=e;if(l&&(i(c),i(h)),u&&i(a),p&16){const s=u||!Es(f);for(let d=0;d<o.length;d++){const g=o[d];r(g,t,n,s,!!g.dynamicChildren)}}},move:su,hydrate:Ux};function su(e,t,n,{o:{insert:r},m:i},u=2){u===0&&r(e.targetAnchor,t,n);const{el:p,anchor:o,shapeFlag:a,children:c,props:h}=e,l=u===2;if(l&&r(p,t,n),(!l||Es(h))&&a&16)for(let f=0;f<c.length;f++)i(c[f],t,n,2);l&&r(o,t,n)}function Ux(e,t,n,r,i,u,{o:{nextSibling:p,parentNode:o,querySelector:a,insert:c,createText:h}},l){function f(g,v,m,y){v.anchor=l(p(g),v,o(g),n,r,i,u),v.targetStart=m,v.targetAnchor=y}const s=t.target=Kd(t.props,a),d=Es(t.props);if(s){const g=s._lpa||s.firstChild;if(t.shapeFlag&16)if(d)f(e,t,g,g&&p(g));else{t.anchor=p(e);let v=g;for(;v;){if(v&&v.nodeType===8){if(v.data==="teleport start anchor")t.targetStart=v;else if(v.data==="teleport anchor"){t.targetAnchor=v,s._lpa=t.targetAnchor&&p(t.targetAnchor);break}}v=p(v)}t.targetAnchor||p_(s,t,h,c),l(g&&p(g),t,s,n,r,i,u)}Vu(t,d)}else d&&t.shapeFlag&16&&f(e,t,e,p(e));return t.anchor&&p(t.anchor)}const Hx=h_;function Vu(e,t){const n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function p_(e,t,n,r){const i=t.targetStart=n(""),u=t.targetAnchor=n("");return i[f_]=u,e&&(r(i,e),r(u,e)),u}const ri=Symbol("_leaveCb"),lu=Symbol("_enterCb");function v_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Je(()=>{e.isMounted=!0}),At(()=>{e.isUnmounting=!0}),e}const Qn=[Function,Array],g_={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qn,onEnter:Qn,onAfterEnter:Qn,onEnterCancelled:Qn,onBeforeLeave:Qn,onLeave:Qn,onAfterLeave:Qn,onLeaveCancelled:Qn,onBeforeAppear:Qn,onAppear:Qn,onAfterAppear:Qn,onAppearCancelled:Qn},m_=e=>{const t=e.subTree;return t.component?m_(t.component):t},Wx={name:"BaseTransition",props:g_,setup(e,{slots:t}){const n=it(),r=v_();return()=>{const i=t.default&&Rp(t.default(),!0);if(!i||!i.length)return;const u=y_(i),p=ot(e),{mode:o}=p;if(r.isLeaving)return $f(u);const a=Ag(u);if(!a)return $f(u);let c=Js(a,p,r,n,l=>c=l);a.type!==tn&&Aa(a,c);let h=n.subTree&&Ag(n.subTree);if(h&&h.type!==tn&&!da(h,a)&&m_(n).type!==tn){let l=Js(h,p,r,n);if(Aa(h,l),o==="out-in"&&a.type!==tn)return r.isLeaving=!0,l.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete l.afterLeave,h=void 0},$f(u);o==="in-out"&&a.type!==tn?l.delayLeave=(f,s,d)=>{const g=b_(r,h);g[String(h.key)]=h,f[ri]=()=>{s(),f[ri]=void 0,delete c.delayedLeave,h=void 0},c.delayedLeave=()=>{d(),delete c.delayedLeave,h=void 0}}:h=void 0}else h&&(h=void 0);return u}}};function y_(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==tn){t=n;break}}return t}const Kx=Wx;function b_(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 Js(e,t,n,r,i){const{appear:u,mode:p,persisted:o=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:h,onEnterCancelled:l,onBeforeLeave:f,onLeave:s,onAfterLeave:d,onLeaveCancelled:g,onBeforeAppear:v,onAppear:m,onAfterAppear:y,onAppearCancelled:b}=t,_=String(e.key),S=b_(n,e),C=(O,D)=>{O&&Cr(O,r,9,D)},T=(O,D)=>{const j=D[1];C(O,D),Pe(O)?O.every(k=>k.length<=1)&&j():O.length<=1&&j()},E={mode:p,persisted:o,beforeEnter(O){let D=a;if(!n.isMounted)if(u)D=v||a;else return;O[ri]&&O[ri](!0);const j=S[_];j&&da(e,j)&&j.el[ri]&&j.el[ri](),C(D,[O])},enter(O){let D=c,j=h,k=l;if(!n.isMounted)if(u)D=m||c,j=y||h,k=b||l;else return;let U=!1;const P=O[lu]=re=>{U||(U=!0,re?C(k,[O]):C(j,[O]),E.delayedLeave&&E.delayedLeave(),O[lu]=void 0)};D?T(D,[O,P]):P()},leave(O,D){const j=String(e.key);if(O[lu]&&O[lu](!0),n.isUnmounting)return D();C(f,[O]);let k=!1;const U=O[ri]=P=>{k||(k=!0,D(),P?C(g,[O]):C(d,[O]),O[ri]=void 0,S[j]===e&&delete S[j])};S[j]=e,s?T(s,[O,U]):U()},clone(O){const D=Js(O,t,n,r,i);return i&&i(D),D}};return E}function $f(e){if(Zc(e))return e=pi(e),e.children=null,e}function Ag(e){if(!Zc(e))return d_(e.type)&&e.children?y_(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Re(n.default))return n.default()}}function Aa(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Aa(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 Rp(e,t=!1,n){let r=[],i=0;for(let u=0;u<e.length;u++){let p=e[u];const o=n==null?p.key:String(n)+String(p.key!=null?p.key:u);p.type===$e?(p.patchFlag&128&&i++,r=r.concat(Rp(p.children,t,o))):(t||p.type!==tn)&&r.push(o!=null?pi(p,{key:o}):p)}if(i>1)for(let u=0;u<r.length;u++)r[u].patchFlag=-2;return r}function pe(e,t){return Re(e)?(()=>Nt({name:e.name},t,{setup:e}))():e}function __(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const fc=new WeakMap;function ks(e,t,n,r,i=!1){if(Pe(e)){e.forEach((d,g)=>ks(d,t&&(Pe(t)?t[g]:t),n,r,i));return}if(yo(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&ks(e,t,n,r.component.subTree);return}const u=r.shapeFlag&4?tf(r.component):r.el,p=i?null:u,{i:o,r:a}=e,c=t&&t.r,h=o.refs===St?o.refs={}:o.refs,l=o.setupState,f=ot(l),s=l===St?Lb:d=>nt(f,d);if(c!=null&&c!==a){if(Ig(t),Be(c))h[c]=null,s(c)&&(l[c]=null);else if(wt(c)){c.value=null;const d=t;d.k&&(h[d.k]=null)}}if(Re(a))Bl(a,o,12,[p,h]);else{const d=Be(a),g=wt(a);if(d||g){const v=()=>{if(e.f){const m=d?s(a)?l[a]:h[a]:a.value;if(i)Pe(m)&&_p(m,u);else if(Pe(m))m.includes(u)||m.push(u);else if(d)h[a]=[u],s(a)&&(l[a]=h[a]);else{const y=[u];a.value=y,e.k&&(h[e.k]=y)}}else d?(h[a]=p,s(a)&&(l[a]=p)):g&&(a.value=p,e.k&&(h[e.k]=p))};if(p){const m=()=>{v(),fc.delete(e)};m.id=-1,fc.set(e,m),Cn(m,n)}else Ig(e),v()}}}function Ig(e){const t=fc.get(e);t&&(t.flags|=8,fc.delete(e))}Fl().requestIdleCallback;Fl().cancelIdleCallback;const yo=e=>!!e.type.__asyncLoader,Zc=e=>e.type.__isKeepAlive;function w_(e,t){C_(e,"a",t)}function S_(e,t){C_(e,"da",t)}function C_(e,t,n=hn){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Jc(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Zc(i.parent.vnode)&&Gx(r,t,n,i),i=i.parent}}function Gx(e,t,n,r){const i=Jc(t,e,r,!0);jo(()=>{_p(r[t],i)},n)}function Jc(e,t,n=hn,r=!1){if(n){const i=n[e]||(n[e]=[]),u=t.__weh||(t.__weh=(...p)=>{di();const o=Nl(n),a=Cr(t,n,e,p);return o(),hi(),a});return r?i.unshift(u):i.push(u),u}}const bi=e=>(t,n=hn)=>{(!tl||e==="sp")&&Jc(e,(...r)=>t(...r),n)},x_=bi("bm"),Je=bi("m"),Lp=bi("bu"),zo=bi("u"),At=bi("bum"),jo=bi("um"),Yx=bi("sp"),Xx=bi("rtg"),qx=bi("rtc");function Zx(e,t=hn){Jc("ec",e,t)}const Dp="components",Jx="directives";function Un(e,t){return Fp(Dp,e,!0,t)||e}const T_=Symbol.for("v-ndc");function ut(e){return Be(e)?Fp(Dp,e,!1)||e:e||T_}function Qx(e){return Fp(Jx,e)}function Fp(e,t,n=!0,r=!1){const i=an||hn;if(i){const u=i.type;if(e===Dp){const o=jT(u,!1);if(o&&(o===t||o===Zn(t)||o===Dl(Zn(t))))return u}const p=Mg(i[e]||u[e],t)||Mg(i.appContext[e],t);return!p&&r?u:p}}function Mg(e,t){return e&&(e[t]||e[Zn(t)]||e[Dl(Zn(t))])}function Lt(e,t,n,r){let i;const u=n&&n[r],p=Pe(e);if(p||Be(e)){const o=p&&Hi(e);let a=!1,c=!1;o&&(a=!nr(e),c=qi(e),e=Yc(e)),i=new Array(e.length);for(let h=0,l=e.length;h<l;h++)i[h]=t(a?c?sc(en(e[h])):en(e[h]):e[h],h,void 0,u&&u[h])}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,u&&u[o])}else if(Ye(e))if(e[Symbol.iterator])i=Array.from(e,(o,a)=>t(o,a,void 0,u&&u[a]));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,c=o.length;a<c;a++){const h=o[a];i[a]=t(e[h],h,a,u&&u[a])}}else i=[];return n&&(n[r]=i),i}function Qs(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Pe(r))for(let i=0;i<r.length;i++)e[r[i].name]=r[i].fn;else r&&(e[r.name]=r.key?(...i)=>{const u=r.fn(...i);return u&&(u.key=r.key),u}:r.fn)}return e}function Ce(e,t,n={},r,i){if(an.ce||an.parent&&yo(an.parent)&&an.parent.ce)return t!=="default"&&(n.name=t),$(),ye($e,null,[ce("slot",n,r&&r())],64);let u=e[t];u&&u._c&&(u._d=!1),$();const p=u&&E_(u(n)),o=n.key||p&&p.key,a=ye($e,{key:(o&&!wr(o)?o:`_${t}`)+(!p&&r?"_fb":"")},p||(r?r():[]),p&&e._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),u&&u._c&&(u._d=!0),a}function E_(e){return e.some(t=>On(t)?!(t.type===tn||t.type===$e&&!E_(t.children)):!0)?e:null}function eT(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Cs(r)]=e[r];return n}const Gd=e=>e?W_(e)?tf(e):Gd(e.parent):null,Os=Nt(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=>Gd(e.parent),$root:e=>Gd(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Bp(e),$forceUpdate:e=>e.f||(e.f=()=>{Mp(e.update)}),$nextTick:e=>e.n||(e.n=Ke.bind(e.proxy)),$watch:e=>xT.bind(e)}),zf=(e,t)=>e!==St&&!e.__isScriptSetup&&nt(e,t),tT={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:u,accessCache:p,type:o,appContext:a}=e;let c;if(t[0]!=="$"){const s=p[t];if(s!==void 0)switch(s){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return u[t]}else{if(zf(r,t))return p[t]=1,r[t];if(i!==St&&nt(i,t))return p[t]=2,i[t];if((c=e.propsOptions[0])&&nt(c,t))return p[t]=3,u[t];if(n!==St&&nt(n,t))return p[t]=4,n[t];Yd&&(p[t]=0)}}const h=Os[t];let l,f;if(h)return t==="$attrs"&&dn(e.attrs,"get",""),h(e);if((l=o.__cssModules)&&(l=l[t]))return l;if(n!==St&&nt(n,t))return p[t]=4,n[t];if(f=a.config.globalProperties,nt(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:u}=e;return zf(i,t)?(i[t]=n,!0):r!==St&&nt(r,t)?(r[t]=n,!0):nt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(u[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:u,type:p}},o){let a,c;return!!(n[o]||e!==St&&o[0]!=="$"&&nt(e,o)||zf(t,o)||(a=u[0])&&nt(a,o)||nt(r,o)||nt(Os,o)||nt(i.config.globalProperties,o)||(c=p.__cssModules)&&c[o])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:nt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Vo(){return O_().slots}function k_(){return O_().attrs}function O_(e){const t=it();return t.setupContext||(t.setupContext=G_(t))}function Rg(e){return Pe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Yd=!0;function nT(e){const t=Bp(e),n=e.proxy,r=e.ctx;Yd=!1,t.beforeCreate&&Lg(t.beforeCreate,e,"bc");const{data:i,computed:u,methods:p,watch:o,provide:a,inject:c,created:h,beforeMount:l,mounted:f,beforeUpdate:s,updated:d,activated:g,deactivated:v,beforeDestroy:m,beforeUnmount:y,destroyed:b,unmounted:_,render:S,renderTracked:C,renderTriggered:T,errorCaptured:E,serverPrefetch:O,expose:D,inheritAttrs:j,components:k,directives:U,filters:P}=t;if(c&&rT(c,r,null),p)for(const V in p){const te=p[V];Re(te)&&(r[V]=te.bind(n))}if(i){const V=i.call(n,n);Ye(V)&&(e.data=yt(V))}if(Yd=!0,u)for(const V in u){const te=u[V],A=Re(te)?te.bind(n,n):Re(te.get)?te.get.bind(n,n):rt,B=!Re(te)&&Re(te.set)?te.set.bind(n):rt,I=W({get:A,set:B});Object.defineProperty(r,V,{enumerable:!0,configurable:!0,get:()=>I.value,set:M=>I.value=M})}if(o)for(const V in o)P_(o[V],r,n,V);if(a){const V=Re(a)?a.call(n):a;Reflect.ownKeys(V).forEach(te=>{pt(te,V[te])})}h&&Lg(h,e,"c");function q(V,te){Pe(te)?te.forEach(A=>V(A.bind(n))):te&&V(te.bind(n))}if(q(x_,l),q(Je,f),q(Lp,s),q(zo,d),q(w_,g),q(S_,v),q(Zx,E),q(qx,C),q(Xx,T),q(At,y),q(jo,_),q(Yx,O),Pe(D))if(D.length){const V=e.exposed||(e.exposed={});D.forEach(te=>{Object.defineProperty(V,te,{get:()=>n[te],set:A=>n[te]=A,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===rt&&(e.render=S),j!=null&&(e.inheritAttrs=j),k&&(e.components=k),U&&(e.directives=U),O&&__(e)}function rT(e,t,n=rt){Pe(e)&&(e=Xd(e));for(const r in e){const i=e[r];let u;Ye(i)?"default"in i?u=Ne(i.from||r,i.default,!0):u=Ne(i.from||r):u=Ne(i),wt(u)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>u.value,set:p=>u.value=p}):t[r]=u}}function Lg(e,t,n){Cr(Pe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function P_(e,t,n,r){let i=r.includes(".")?z_(n,r):()=>n[r];if(Be(e)){const u=t[e];Re(u)&&Te(i,u)}else if(Re(e))Te(i,e.bind(n));else if(Ye(e))if(Pe(e))e.forEach(u=>P_(u,t,n,r));else{const u=Re(e.handler)?e.handler.bind(n):t[e.handler];Re(u)&&Te(i,u,e)}}function Bp(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:u,config:{optionMergeStrategies:p}}=e.appContext,o=u.get(t);let a;return o?a=o:!i.length&&!n&&!r?a=t:(a={},i.length&&i.forEach(c=>dc(a,c,p,!0)),dc(a,t,p)),Ye(t)&&u.set(t,a),a}function dc(e,t,n,r=!1){const{mixins:i,extends:u}=t;u&&dc(e,u,n,!0),i&&i.forEach(p=>dc(e,p,n,!0));for(const p in t)if(!(r&&p==="expose")){const o=iT[p]||n&&n[p];e[p]=o?o(e[p],t[p]):t[p]}return e}const iT={data:Dg,props:Fg,emits:Fg,methods:vs,computed:vs,beforeCreate:Sn,created:Sn,beforeMount:Sn,mounted:Sn,beforeUpdate:Sn,updated:Sn,beforeDestroy:Sn,beforeUnmount:Sn,destroyed:Sn,unmounted:Sn,activated:Sn,deactivated:Sn,errorCaptured:Sn,serverPrefetch:Sn,components:vs,directives:vs,watch:oT,provide:Dg,inject:aT};function Dg(e,t){return t?e?function(){return Nt(Re(e)?e.call(this,this):e,Re(t)?t.call(this,this):t)}:t:e}function aT(e,t){return vs(Xd(e),Xd(t))}function Xd(e){if(Pe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Sn(e,t){return e?[...new Set([].concat(e,t))]:t}function vs(e,t){return e?Nt(Object.create(null),e,t):t}function Fg(e,t){return e?Pe(e)&&Pe(t)?[...new Set([...e,...t])]:Nt(Object.create(null),Rg(e),Rg(t!=null?t:{})):t}function oT(e,t){if(!e)return t;if(!t)return e;const n=Nt(Object.create(null),e);for(const r in t)n[r]=Sn(e[r],t[r]);return n}function A_(){return{app:null,config:{isNativeTag:Lb,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 sT=0;function lT(e,t){return function(r,i=null){Re(r)||(r=Nt({},r)),i!=null&&!Ye(i)&&(i=null);const u=A_(),p=new WeakSet,o=[];let a=!1;const c=u.app={_uid:sT++,_component:r,_props:i,_container:null,_context:u,_instance:null,version:UT,get config(){return u.config},set config(h){},use(h,...l){return p.has(h)||(h&&Re(h.install)?(p.add(h),h.install(c,...l)):Re(h)&&(p.add(h),h(c,...l))),c},mixin(h){return u.mixins.includes(h)||u.mixins.push(h),c},component(h,l){return l?(u.components[h]=l,c):u.components[h]},directive(h,l){return l?(u.directives[h]=l,c):u.directives[h]},mount(h,l,f){if(!a){const s=c._ceVNode||ce(r,i);return s.appContext=u,f===!0?f="svg":f===!1&&(f=void 0),l&&t?t(s,h):e(s,h,f),a=!0,c._container=h,h.__vue_app__=c,tf(s.component)}},onUnmount(h){o.push(h)},unmount(){a&&(Cr(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(h,l){return u.provides[h]=l,c},runWithContext(h){const l=Ta;Ta=c;try{return h()}finally{Ta=l}}};return c}}let Ta=null;function pt(e,t){if(hn){let n=hn.provides;const r=hn.parent&&hn.parent.provides;r===n&&(n=hn.provides=Object.create(r)),n[e]=t}}function Ne(e,t,n=!1){const r=it();if(r||Ta){let i=Ta?Ta._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Re(t)?t.call(r&&r.proxy):t}}function uT(){return!!(it()||Ta)}const I_={},M_=()=>Object.create(I_),R_=e=>Object.getPrototypeOf(e)===I_;function cT(e,t,n,r=!1){const i={},u=M_();e.propsDefaults=Object.create(null),L_(e,t,i,u);for(const p in e.propsOptions[0])p in i||(i[p]=void 0);n?e.props=r?i:Xc(i):e.type.props?e.props=i:e.props=u,e.attrs=u}function fT(e,t,n,r){const{props:i,attrs:u,vnode:{patchFlag:p}}=e,o=ot(i),[a]=e.propsOptions;let c=!1;if((r||p>0)&&!(p&16)){if(p&8){const h=e.vnode.dynamicProps;for(let l=0;l<h.length;l++){let f=h[l];if(ef(e.emitsOptions,f))continue;const s=t[f];if(a)if(nt(u,f))s!==u[f]&&(u[f]=s,c=!0);else{const d=Zn(f);i[d]=qd(a,o,d,s,e,!1)}else s!==u[f]&&(u[f]=s,c=!0)}}}else{L_(e,t,i,u)&&(c=!0);let h;for(const l in o)(!t||!nt(t,l)&&((h=na(l))===l||!nt(t,h)))&&(a?n&&(n[l]!==void 0||n[h]!==void 0)&&(i[l]=qd(a,o,l,void 0,e,!0)):delete i[l]);if(u!==o)for(const l in u)(!t||!nt(t,l)&&!0)&&(delete u[l],c=!0)}c&&si(e.attrs,"set","")}function L_(e,t,n,r){const[i,u]=e.propsOptions;let p=!1,o;if(t)for(let a in t){if(Ss(a))continue;const c=t[a];let h;i&&nt(i,h=Zn(a))?!u||!u.includes(h)?n[h]=c:(o||(o={}))[h]=c:ef(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,p=!0)}if(u){const a=ot(n),c=o||St;for(let h=0;h<u.length;h++){const l=u[h];n[l]=qd(i,a,l,c[l],e,!nt(c,l))}}return p}function qd(e,t,n,r,i,u){const p=e[n];if(p!=null){const o=nt(p,"default");if(o&&r===void 0){const a=p.default;if(p.type!==Function&&!p.skipFactory&&Re(a)){const{propsDefaults:c}=i;if(n in c)r=c[n];else{const h=Nl(i);r=c[n]=a.call(null,t),h()}}else r=a;i.ce&&i.ce._setProp(n,r)}p[0]&&(u&&!o?r=!1:p[1]&&(r===""||r===na(n))&&(r=!0))}return r}const dT=new WeakMap;function D_(e,t,n=!1){const r=n?dT:t.propsCache,i=r.get(e);if(i)return i;const u=e.props,p={},o=[];let a=!1;if(!Re(e)){const h=l=>{a=!0;const[f,s]=D_(l,t,!0);Nt(p,f),s&&o.push(...s)};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!u&&!a)return Ye(e)&&r.set(e,vo),vo;if(Pe(u))for(let h=0;h<u.length;h++){const l=Zn(u[h]);Bg(l)&&(p[l]=St)}else if(u)for(const h in u){const l=Zn(h);if(Bg(l)){const f=u[h],s=p[l]=Pe(f)||Re(f)?{type:f}:Nt({},f),d=s.type;let g=!1,v=!0;if(Pe(d))for(let m=0;m<d.length;++m){const y=d[m],b=Re(y)&&y.name;if(b==="Boolean"){g=!0;break}else b==="String"&&(v=!1)}else g=Re(d)&&d.name==="Boolean";s[0]=g,s[1]=v,(g||nt(s,"default"))&&o.push(l)}}const c=[p,o];return Ye(e)&&r.set(e,c),c}function Bg(e){return e[0]!=="$"&&!Ss(e)}const Np=e=>e==="_"||e==="_ctx"||e==="$stable",$p=e=>Pe(e)?e.map(Fr):[Fr(e)],hT=(e,t,n)=>{if(t._n)return t;const r=he((...i)=>$p(t(...i)),n);return r._c=!1,r},F_=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Np(i))continue;const u=e[i];if(Re(u))t[i]=hT(i,u,r);else if(u!=null){const p=$p(u);t[i]=()=>p}}},B_=(e,t)=>{const n=$p(t);e.slots.default=()=>n},N_=(e,t,n)=>{for(const r in t)(n||!Np(r))&&(e[r]=t[r])},pT=(e,t,n)=>{const r=e.slots=M_();if(e.vnode.shapeFlag&32){const i=t._;i?(N_(r,t,n),n&&Bb(r,"_",i,!0)):F_(t,r)}else t&&B_(e,t)},vT=(e,t,n)=>{const{vnode:r,slots:i}=e;let u=!0,p=St;if(r.shapeFlag&32){const o=t._;o?n&&o===1?u=!1:N_(i,t,n):(u=!t.$stable,F_(t,i)),p=t}else t&&(B_(e,t),p={default:1});if(u)for(const o in i)!Np(o)&&p[o]==null&&delete i[o]};function gT(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(Fl().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Cn=MT;function mT(e){return yT(e)}function yT(e,t){gT();const n=Fl();n.__VUE__=!0;const{insert:r,remove:i,patchProp:u,createElement:p,createText:o,createComment:a,setText:c,setElementText:h,parentNode:l,nextSibling:f,setScopeId:s=rt,insertStaticContent:d}=e,g=(N,x,K,X=null,R=null,F=null,ee=void 0,fe=null,se=!!x.dynamicChildren)=>{if(N===x)return;N&&!da(N,x)&&(X=H(N),M(N,R,F,!0),N=null),x.patchFlag===-2&&(se=!1,x.dynamicChildren=null);const{type:Y,ref:ge,shapeFlag:Z}=x;switch(Y){case Uo:v(N,x,K,X);break;case tn:m(N,x,K,X);break;case Uu:N==null&&y(x,K,X,ee);break;case $e:k(N,x,K,X,R,F,ee,fe,se);break;default:Z&1?S(N,x,K,X,R,F,ee,fe,se):Z&6?U(N,x,K,X,R,F,ee,fe,se):(Z&64||Z&128)&&Y.process(N,x,K,X,R,F,ee,fe,se,de)}ge!=null&&R?ks(ge,N&&N.ref,F,x||N,!x):ge==null&&N&&N.ref!=null&&ks(N.ref,null,F,N,!0)},v=(N,x,K,X)=>{if(N==null)r(x.el=o(x.children),K,X);else{const R=x.el=N.el;x.children!==N.children&&c(R,x.children)}},m=(N,x,K,X)=>{N==null?r(x.el=a(x.children||""),K,X):x.el=N.el},y=(N,x,K,X)=>{[N.el,N.anchor]=d(N.children,x,K,X,N.el,N.anchor)},b=({el:N,anchor:x},K,X)=>{let R;for(;N&&N!==x;)R=f(N),r(N,K,X),N=R;r(x,K,X)},_=({el:N,anchor:x})=>{let K;for(;N&&N!==x;)K=f(N),i(N),N=K;i(x)},S=(N,x,K,X,R,F,ee,fe,se)=>{x.type==="svg"?ee="svg":x.type==="math"&&(ee="mathml"),N==null?C(x,K,X,R,F,ee,fe,se):O(N,x,R,F,ee,fe,se)},C=(N,x,K,X,R,F,ee,fe)=>{let se,Y;const{props:ge,shapeFlag:Z,transition:ue,dirs:me}=N;if(se=N.el=p(N.type,F,ge&&ge.is,ge),Z&8?h(se,N.children):Z&16&&E(N.children,se,null,X,R,jf(N,F),ee,fe),me&&oa(N,null,X,"created"),T(se,N,N.scopeId,ee,X),ge){for(const Ee in ge)Ee!=="value"&&!Ss(Ee)&&u(se,Ee,null,ge[Ee],F,X);"value"in ge&&u(se,"value",null,ge.value,F),(Y=ge.onVnodeBeforeMount)&&Ir(Y,X,N)}me&&oa(N,null,X,"beforeMount");const xe=bT(R,ue);xe&&ue.beforeEnter(se),r(se,x,K),((Y=ge&&ge.onVnodeMounted)||xe||me)&&Cn(()=>{Y&&Ir(Y,X,N),xe&&ue.enter(se),me&&oa(N,null,X,"mounted")},R)},T=(N,x,K,X,R)=>{if(K&&s(N,K),X)for(let F=0;F<X.length;F++)s(N,X[F]);if(R){let F=R.subTree;if(x===F||V_(F.type)&&(F.ssContent===x||F.ssFallback===x)){const ee=R.vnode;T(N,ee,ee.scopeId,ee.slotScopeIds,R.parent)}}},E=(N,x,K,X,R,F,ee,fe,se=0)=>{for(let Y=se;Y<N.length;Y++){const ge=N[Y]=fe?Li(N[Y]):Fr(N[Y]);g(null,ge,x,K,X,R,F,ee,fe)}},O=(N,x,K,X,R,F,ee)=>{const fe=x.el=N.el;let{patchFlag:se,dynamicChildren:Y,dirs:ge}=x;se|=N.patchFlag&16;const Z=N.props||St,ue=x.props||St;let me;if(K&&sa(K,!1),(me=ue.onVnodeBeforeUpdate)&&Ir(me,K,x,N),ge&&oa(x,N,K,"beforeUpdate"),K&&sa(K,!0),(Z.innerHTML&&ue.innerHTML==null||Z.textContent&&ue.textContent==null)&&h(fe,""),Y?D(N.dynamicChildren,Y,fe,K,X,jf(x,R),F):ee||te(N,x,fe,null,K,X,jf(x,R),F,!1),se>0){if(se&16)j(fe,Z,ue,K,R);else if(se&2&&Z.class!==ue.class&&u(fe,"class",null,ue.class,R),se&4&&u(fe,"style",Z.style,ue.style,R),se&8){const xe=x.dynamicProps;for(let Ee=0;Ee<xe.length;Ee++){const ke=xe[Ee],Ue=Z[ke],Xe=ue[ke];(Xe!==Ue||ke==="value")&&u(fe,ke,Ue,Xe,R,K)}}se&1&&N.children!==x.children&&h(fe,x.children)}else!ee&&Y==null&&j(fe,Z,ue,K,R);((me=ue.onVnodeUpdated)||ge)&&Cn(()=>{me&&Ir(me,K,x,N),ge&&oa(x,N,K,"updated")},X)},D=(N,x,K,X,R,F,ee)=>{for(let fe=0;fe<x.length;fe++){const se=N[fe],Y=x[fe],ge=se.el&&(se.type===$e||!da(se,Y)||se.shapeFlag&198)?l(se.el):K;g(se,Y,ge,null,X,R,F,ee,!0)}},j=(N,x,K,X,R)=>{if(x!==K){if(x!==St)for(const F in x)!Ss(F)&&!(F in K)&&u(N,F,x[F],null,R,X);for(const F in K){if(Ss(F))continue;const ee=K[F],fe=x[F];ee!==fe&&F!=="value"&&u(N,F,fe,ee,R,X)}"value"in K&&u(N,"value",x.value,K.value,R)}},k=(N,x,K,X,R,F,ee,fe,se)=>{const Y=x.el=N?N.el:o(""),ge=x.anchor=N?N.anchor:o("");let{patchFlag:Z,dynamicChildren:ue,slotScopeIds:me}=x;me&&(fe=fe?fe.concat(me):me),N==null?(r(Y,K,X),r(ge,K,X),E(x.children||[],K,ge,R,F,ee,fe,se)):Z>0&&Z&64&&ue&&N.dynamicChildren?(D(N.dynamicChildren,ue,K,R,F,ee,fe),(x.key!=null||R&&x===R.subTree)&&zp(N,x,!0)):te(N,x,K,ge,R,F,ee,fe,se)},U=(N,x,K,X,R,F,ee,fe,se)=>{x.slotScopeIds=fe,N==null?x.shapeFlag&512?R.ctx.activate(x,K,X,ee,se):P(x,K,X,R,F,ee,se):re(N,x,se)},P=(N,x,K,X,R,F,ee)=>{const fe=N.component=BT(N,X,R);if(Zc(N)&&(fe.ctx.renderer=de),NT(fe,!1,ee),fe.asyncDep){if(R&&R.registerDep(fe,q,ee),!N.el){const se=fe.subTree=ce(tn);m(null,se,x,K),N.placeholder=se.el}}else q(fe,N,x,K,R,F,ee)},re=(N,x,K)=>{const X=x.component=N.component;if(AT(N,x,K))if(X.asyncDep&&!X.asyncResolved){V(X,x,K);return}else X.next=x,X.update();else x.el=N.el,X.vnode=x},q=(N,x,K,X,R,F,ee)=>{const fe=()=>{if(N.isMounted){let{next:Z,bu:ue,u:me,parent:xe,vnode:Ee}=N;{const qe=$_(N);if(qe){Z&&(Z.el=Ee.el,V(N,Z,ee)),qe.asyncDep.then(()=>{N.isUnmounted||fe()});return}}let ke=Z,Ue;sa(N,!1),Z?(Z.el=Ee.el,V(N,Z,ee)):Z=Ee,ue&&zu(ue),(Ue=Z.props&&Z.props.onVnodeBeforeUpdate)&&Ir(Ue,xe,Z,Ee),sa(N,!0);const Xe=Vf(N),tt=N.subTree;N.subTree=Xe,g(tt,Xe,l(tt.el),H(tt),N,R,F),Z.el=Xe.el,ke===null&&IT(N,Xe.el),me&&Cn(me,R),(Ue=Z.props&&Z.props.onVnodeUpdated)&&Cn(()=>Ir(Ue,xe,Z,Ee),R)}else{let Z;const{el:ue,props:me}=x,{bm:xe,m:Ee,parent:ke,root:Ue,type:Xe}=N,tt=yo(x);if(sa(N,!1),xe&&zu(xe),!tt&&(Z=me&&me.onVnodeBeforeMount)&&Ir(Z,ke,x),sa(N,!0),ue&&_e){const qe=()=>{N.subTree=Vf(N),_e(ue,N.subTree,N,R,null)};tt&&Xe.__asyncHydrate?Xe.__asyncHydrate(ue,N,qe):qe()}else{Ue.ce&&Ue.ce._def.shadowRoot!==!1&&Ue.ce._injectChildStyle(Xe);const qe=N.subTree=Vf(N);g(null,qe,K,X,N,R,F),x.el=qe.el}if(Ee&&Cn(Ee,R),!tt&&(Z=me&&me.onVnodeMounted)){const qe=x;Cn(()=>Ir(Z,ke,qe),R)}(x.shapeFlag&256||ke&&yo(ke.vnode)&&ke.vnode.shapeFlag&256)&&N.a&&Cn(N.a,R),N.isMounted=!0,x=K=X=null}};N.scope.on();const se=N.effect=new Vb(fe);N.scope.off();const Y=N.update=se.run.bind(se),ge=N.job=se.runIfDirty.bind(se);ge.i=N,ge.id=N.uid,se.scheduler=()=>Mp(ge),sa(N,!0),Y()},V=(N,x,K)=>{x.component=N;const X=N.vnode.props;N.vnode=x,N.next=null,fT(N,x.props,X,K),vT(N,x.children,K),di(),Eg(N),hi()},te=(N,x,K,X,R,F,ee,fe,se=!1)=>{const Y=N&&N.children,ge=N?N.shapeFlag:0,Z=x.children,{patchFlag:ue,shapeFlag:me}=x;if(ue>0){if(ue&128){B(Y,Z,K,X,R,F,ee,fe,se);return}else if(ue&256){A(Y,Z,K,X,R,F,ee,fe,se);return}}me&8?(ge&16&&Q(Y,R,F),Z!==Y&&h(K,Z)):ge&16?me&16?B(Y,Z,K,X,R,F,ee,fe,se):Q(Y,R,F,!0):(ge&8&&h(K,""),me&16&&E(Z,K,X,R,F,ee,fe,se))},A=(N,x,K,X,R,F,ee,fe,se)=>{N=N||vo,x=x||vo;const Y=N.length,ge=x.length,Z=Math.min(Y,ge);let ue;for(ue=0;ue<Z;ue++){const me=x[ue]=se?Li(x[ue]):Fr(x[ue]);g(N[ue],me,K,null,R,F,ee,fe,se)}Y>ge?Q(N,R,F,!0,!1,Z):E(x,K,X,R,F,ee,fe,se,Z)},B=(N,x,K,X,R,F,ee,fe,se)=>{let Y=0;const ge=x.length;let Z=N.length-1,ue=ge-1;for(;Y<=Z&&Y<=ue;){const me=N[Y],xe=x[Y]=se?Li(x[Y]):Fr(x[Y]);if(da(me,xe))g(me,xe,K,null,R,F,ee,fe,se);else break;Y++}for(;Y<=Z&&Y<=ue;){const me=N[Z],xe=x[ue]=se?Li(x[ue]):Fr(x[ue]);if(da(me,xe))g(me,xe,K,null,R,F,ee,fe,se);else break;Z--,ue--}if(Y>Z){if(Y<=ue){const me=ue+1,xe=me<ge?x[me].el:X;for(;Y<=ue;)g(null,x[Y]=se?Li(x[Y]):Fr(x[Y]),K,xe,R,F,ee,fe,se),Y++}}else if(Y>ue)for(;Y<=Z;)M(N[Y],R,F,!0),Y++;else{const me=Y,xe=Y,Ee=new Map;for(Y=xe;Y<=ue;Y++){const bt=x[Y]=se?Li(x[Y]):Fr(x[Y]);bt.key!=null&&Ee.set(bt.key,Y)}let ke,Ue=0;const Xe=ue-xe+1;let tt=!1,qe=0;const Yt=new Array(Xe);for(Y=0;Y<Xe;Y++)Yt[Y]=0;for(Y=me;Y<=Z;Y++){const bt=N[Y];if(Ue>=Xe){M(bt,R,F,!0);continue}let zt;if(bt.key!=null)zt=Ee.get(bt.key);else for(ke=xe;ke<=ue;ke++)if(Yt[ke-xe]===0&&da(bt,x[ke])){zt=ke;break}zt===void 0?M(bt,R,F,!0):(Yt[zt-xe]=Y+1,zt>=qe?qe=zt:tt=!0,g(bt,x[zt],K,null,R,F,ee,fe,se),Ue++)}const Bn=tt?_T(Yt):vo;for(ke=Bn.length-1,Y=Xe-1;Y>=0;Y--){const bt=xe+Y,zt=x[bt],Gr=x[bt+1],Ci=bt+1<ge?Gr.el||Gr.placeholder:X;Yt[Y]===0?g(null,zt,K,Ci,R,F,ee,fe,se):tt&&(ke<0||Y!==Bn[ke]?I(zt,K,Ci,2):ke--)}}},I=(N,x,K,X,R=null)=>{const{el:F,type:ee,transition:fe,children:se,shapeFlag:Y}=N;if(Y&6){I(N.component.subTree,x,K,X);return}if(Y&128){N.suspense.move(x,K,X);return}if(Y&64){ee.move(N,x,K,de);return}if(ee===$e){r(F,x,K);for(let Z=0;Z<se.length;Z++)I(se[Z],x,K,X);r(N.anchor,x,K);return}if(ee===Uu){b(N,x,K);return}if(X!==2&&Y&1&&fe)if(X===0)fe.beforeEnter(F),r(F,x,K),Cn(()=>fe.enter(F),R);else{const{leave:Z,delayLeave:ue,afterLeave:me}=fe,xe=()=>{N.ctx.isUnmounted?i(F):r(F,x,K)},Ee=()=>{F._isLeaving&&F[ri](!0),Z(F,()=>{xe(),me&&me()})};ue?ue(F,xe,Ee):Ee()}else r(F,x,K)},M=(N,x,K,X=!1,R=!1)=>{const{type:F,props:ee,ref:fe,children:se,dynamicChildren:Y,shapeFlag:ge,patchFlag:Z,dirs:ue,cacheIndex:me}=N;if(Z===-2&&(R=!1),fe!=null&&(di(),ks(fe,null,K,N,!0),hi()),me!=null&&(x.renderCache[me]=void 0),ge&256){x.ctx.deactivate(N);return}const xe=ge&1&&ue,Ee=!yo(N);let ke;if(Ee&&(ke=ee&&ee.onVnodeBeforeUnmount)&&Ir(ke,x,N),ge&6)L(N.component,K,X);else{if(ge&128){N.suspense.unmount(K,X);return}xe&&oa(N,null,x,"beforeUnmount"),ge&64?N.type.remove(N,x,K,de,X):Y&&!Y.hasOnce&&(F!==$e||Z>0&&Z&64)?Q(Y,x,K,!1,!0):(F===$e&&Z&384||!R&&ge&16)&&Q(se,x,K),X&&J(N)}(Ee&&(ke=ee&&ee.onVnodeUnmounted)||xe)&&Cn(()=>{ke&&Ir(ke,x,N),xe&&oa(N,null,x,"unmounted")},K)},J=N=>{const{type:x,el:K,anchor:X,transition:R}=N;if(x===$e){z(K,X);return}if(x===Uu){_(N);return}const F=()=>{i(K),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(N.shapeFlag&1&&R&&!R.persisted){const{leave:ee,delayLeave:fe}=R,se=()=>ee(K,F);fe?fe(N.el,F,se):se()}else F()},z=(N,x)=>{let K;for(;N!==x;)K=f(N),i(N),N=K;i(x)},L=(N,x,K)=>{const{bum:X,scope:R,job:F,subTree:ee,um:fe,m:se,a:Y}=N;Ng(se),Ng(Y),X&&zu(X),R.stop(),F&&(F.flags|=8,M(ee,N,x,K)),fe&&Cn(fe,x),Cn(()=>{N.isUnmounted=!0},x)},Q=(N,x,K,X=!1,R=!1,F=0)=>{for(let ee=F;ee<N.length;ee++)M(N[ee],x,K,X,R)},H=N=>{if(N.shapeFlag&6)return H(N.component.subTree);if(N.shapeFlag&128)return N.suspense.next();const x=f(N.anchor||N.el),K=x&&x[f_];return K?f(K):x};let G=!1;const ne=(N,x,K)=>{N==null?x._vnode&&M(x._vnode,null,null,!0):g(x._vnode||null,N,x,null,null,null,K),x._vnode=N,G||(G=!0,Eg(),l_(),G=!1)},de={p:g,um:M,m:I,r:J,mt:P,mc:E,pc:te,pbc:D,n:H,o:e};let ve,_e;return t&&([ve,_e]=t(de)),{render:ne,hydrate:ve,createApp:lT(ne,ve)}}function jf({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 sa({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function bT(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function zp(e,t,n=!1){const r=e.children,i=t.children;if(Pe(r)&&Pe(i))for(let u=0;u<r.length;u++){const p=r[u];let o=i[u];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[u]=Li(i[u]),o.el=p.el),!n&&o.patchFlag!==-2&&zp(p,o)),o.type===Uo&&o.patchFlag!==-1&&(o.el=p.el),o.type===tn&&!o.el&&(o.el=p.el)}}function _T(e){const t=e.slice(),n=[0];let r,i,u,p,o;const a=e.length;for(r=0;r<a;r++){const c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(u=0,p=n.length-1;u<p;)o=u+p>>1,e[n[o]]<c?u=o+1:p=o;c<e[n[u]]&&(u>0&&(t[r]=n[u-1]),n[u]=r)}}for(u=n.length,p=n[u-1];u-- >0;)n[u]=p,p=t[p];return n}function $_(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$_(t)}function Ng(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const wT=Symbol.for("v-scx"),ST=()=>Ne(wT);function ja(e,t){return Qc(e,null,t)}function CT(e,t){return Qc(e,null,{flush:"post"})}function Te(e,t,n){return Qc(e,t,n)}function Qc(e,t,n=St){const{immediate:r,deep:i,flush:u,once:p}=n,o=Nt({},n),a=t&&r||!t&&u!=="post";let c;if(tl){if(u==="sync"){const s=ST();c=s.__watcherHandles||(s.__watcherHandles=[])}else if(!a){const s=()=>{};return s.stop=rt,s.resume=rt,s.pause=rt,s}}const h=hn;o.call=(s,d,g)=>Cr(s,h,d,g);let l=!1;u==="post"?o.scheduler=s=>{Cn(s,h&&h.suspense)}:u!=="sync"&&(l=!0,o.scheduler=(s,d)=>{d?s():Mp(s)}),o.augmentJob=s=>{t&&(s.flags|=4),l&&(s.flags|=2,h&&(s.id=h.uid,s.i=h))};const f=zx(e,t,o);return tl&&(c?c.push(f):a&&f()),f}function xT(e,t,n){const r=this.proxy,i=Be(e)?e.includes(".")?z_(r,e):()=>r[e]:e.bind(r,r);let u;Re(t)?u=t:(u=t.handler,n=t);const p=Nl(this),o=Qc(i,u.bind(r),n);return p(),o}function z_(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const TT=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Zn(t)}Modifiers`]||e[`${na(t)}Modifiers`];function ET(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||St;let i=n;const u=t.startsWith("update:"),p=u&&TT(r,t.slice(7));p&&(p.trim&&(i=n.map(h=>Be(h)?h.trim():h)),p.number&&(i=n.map(jd)));let o,a=r[o=Cs(t)]||r[o=Cs(Zn(t))];!a&&u&&(a=r[o=Cs(na(t))]),a&&Cr(a,e,6,i);const c=r[o+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,Cr(c,e,6,i)}}const kT=new WeakMap;function j_(e,t,n=!1){const r=n?kT:t.emitsCache,i=r.get(e);if(i!==void 0)return i;const u=e.emits;let p={},o=!1;if(!Re(e)){const a=c=>{const h=j_(c,t,!0);h&&(o=!0,Nt(p,h))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!u&&!o?(Ye(e)&&r.set(e,null),null):(Pe(u)?u.forEach(a=>p[a]=null):Nt(p,u),Ye(e)&&r.set(e,p),p)}function ef(e,t){return!e||!Kc(t)?!1:(t=t.slice(2).replace(/Once$/,""),nt(e,t[0].toLowerCase()+t.slice(1))||nt(e,na(t))||nt(e,t))}function Vf(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[u],slots:p,attrs:o,emit:a,render:c,renderCache:h,props:l,data:f,setupState:s,ctx:d,inheritAttrs:g}=e,v=cc(e);let m,y;try{if(n.shapeFlag&4){const _=i||r,S=_;m=Fr(c.call(S,_,h,l,s,f,d)),y=o}else{const _=t;m=Fr(_.length>1?_(l,{attrs:o,slots:p,emit:a}):_(l,null)),y=t.props?o:OT(o)}}catch(_){Ps.length=0,qc(_,e,1),m=ce(tn)}let b=m;if(y&&g!==!1){const _=Object.keys(y),{shapeFlag:S}=b;_.length&&S&7&&(u&&_.some(bp)&&(y=PT(y,u)),b=pi(b,y,!1,!0))}return n.dirs&&(b=pi(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Aa(b,n.transition),m=b,cc(v),m}const OT=e=>{let t;for(const n in e)(n==="class"||n==="style"||Kc(n))&&((t||(t={}))[n]=e[n]);return t},PT=(e,t)=>{const n={};for(const r in e)(!bp(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function AT(e,t,n){const{props:r,children:i,component:u}=e,{props:p,children:o,patchFlag:a}=t,c=u.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?$g(r,p,c):!!p;if(a&8){const h=t.dynamicProps;for(let l=0;l<h.length;l++){const f=h[l];if(p[f]!==r[f]&&!ef(c,f))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===p?!1:r?p?$g(r,p,c):!0:!!p;return!1}function $g(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const u=r[i];if(t[u]!==e[u]&&!ef(n,u))return!0}return!1}function IT({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 V_=e=>e.__isSuspense;function MT(e,t){t&&t.pendingBranch?Pe(e)?t.effects.push(...e):t.effects.push(e):s_(e)}const $e=Symbol.for("v-fgt"),Uo=Symbol.for("v-txt"),tn=Symbol.for("v-cmt"),Uu=Symbol.for("v-stc"),Ps=[];let Kn=null;function $(e=!1){Ps.push(Kn=e?null:[])}function RT(){Ps.pop(),Kn=Ps[Ps.length-1]||null}let el=1;function hc(e,t=!1){el+=e,e<0&&Kn&&t&&(Kn.hasOnce=!0)}function U_(e){return e.dynamicChildren=el>0?Kn||vo:null,RT(),el>0&&Kn&&Kn.push(e),e}function oe(e,t,n,r,i,u){return U_(ae(e,t,n,r,i,u,!0))}function ye(e,t,n,r,i){return U_(ce(e,t,n,r,i,!0))}function On(e){return e?e.__v_isVNode===!0:!1}function da(e,t){return e.type===t.type&&e.key===t.key}const H_=({key:e})=>e!=null?e:null,Hu=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Be(e)||wt(e)||Re(e)?{i:an,r:e,k:t,f:!!n}:e:null);function ae(e,t=null,n=null,r=0,i=null,u=e===$e?0:1,p=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&H_(t),ref:t&&Hu(t),scopeId:c_,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:u,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:an};return o?(jp(a,n),u&128&&e.normalize(a)):n&&(a.shapeFlag|=Be(n)?8:16),el>0&&!p&&Kn&&(a.patchFlag>0||u&6)&&a.patchFlag!==32&&Kn.push(a),a}const ce=LT;function LT(e,t=null,n=null,r=0,i=null,u=!1){if((!e||e===T_)&&(e=tn),On(e)){const o=pi(e,t,!0);return n&&jp(o,n),el>0&&!u&&Kn&&(o.shapeFlag&6?Kn[Kn.indexOf(e)]=o:Kn.push(o)),o.patchFlag=-2,o}if(VT(e)&&(e=e.__vccOpts),t){t=Zd(t);let{class:o,style:a}=t;o&&!Be(o)&&(t.class=le(o)),Ye(a)&&(Ip(a)&&!Pe(a)&&(a=Nt({},a)),t.style=ze(a))}const p=Be(e)?1:V_(e)?128:d_(e)?64:Ye(e)?4:Re(e)?2:0;return ae(e,t,n,r,i,p,u,!0)}function Zd(e){return e?Ip(e)||R_(e)?Nt({},e):e:null}function pi(e,t,n=!1,r=!1){const{props:i,ref:u,patchFlag:p,children:o,transition:a}=e,c=t?$t(i||{},t):i,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&H_(c),ref:t&&t.ref?n&&u?Pe(u)?u.concat(Hu(t)):[u,Hu(t)]:Hu(t):u,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==$e?p===-1?16:p|16:p,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pi(e.ssContent),ssFallback:e.ssFallback&&pi(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Aa(h,a.clone(h)),h}function We(e=" ",t=0){return ce(Uo,null,e,t)}function be(e="",t=!1){return t?($(),ye(tn,null,e)):ce(tn,null,e)}function Fr(e){return e==null||typeof e=="boolean"?ce(tn):Pe(e)?ce($e,null,e.slice()):On(e)?Li(e):ce(Uo,null,String(e))}function Li(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pi(e)}function jp(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Pe(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),jp(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!R_(t)?t._ctx=an:i===3&&an&&(an.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Re(t)?(t={default:t,_ctx:an},n=32):(t=String(t),r&64?(n=16,t=[We(t)]):n=8);e.children=t,e.shapeFlag|=n}function $t(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=le([t.class,r.class]));else if(i==="style")t.style=ze([t.style,r.style]);else if(Kc(i)){const u=t[i],p=r[i];p&&u!==p&&!(Pe(u)&&u.includes(p))&&(t[i]=u?[].concat(u,p):p)}else i!==""&&(t[i]=r[i])}return t}function Ir(e,t,n,r=null){Cr(e,t,7,[n,r])}const DT=A_();let FT=0;function BT(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||DT,u={uid:FT++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new jb(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:D_(r,i),emitsOptions:j_(r,i),emit:null,emitted:null,propsDefaults:St,inheritAttrs:r.inheritAttrs,ctx:St,data:St,props:St,attrs:St,slots:St,refs:St,setupState:St,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 u.ctx={_:u},u.root=t?t.root:u,u.emit=ET.bind(null,u),e.ce&&e.ce(u),u}let hn=null;const it=()=>hn||an;let pc,Jd;{const e=Fl(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),u=>{i.length>1?i.forEach(p=>p(u)):i[0](u)}};pc=t("__VUE_INSTANCE_SETTERS__",n=>hn=n),Jd=t("__VUE_SSR_SETTERS__",n=>tl=n)}const Nl=e=>{const t=hn;return pc(e),e.scope.on(),()=>{e.scope.off(),pc(t)}},zg=()=>{hn&&hn.scope.off(),pc(null)};function W_(e){return e.vnode.shapeFlag&4}let tl=!1;function NT(e,t=!1,n=!1){t&&Jd(t);const{props:r,children:i}=e.vnode,u=W_(e);cT(e,r,u,t),pT(e,i,n||t);const p=u?$T(e,t):void 0;return t&&Jd(!1),p}function $T(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,tT);const{setup:r}=n;if(r){di();const i=e.setupContext=r.length>1?G_(e):null,u=Nl(e),p=Bl(r,e,0,[e.props,i]),o=Eo(p);if(hi(),u(),(o||e.sp)&&!yo(e)&&__(e),o){if(p.then(zg,zg),t)return p.then(a=>{jg(e,a,t)}).catch(a=>{qc(a,e,0)});e.asyncDep=p}else jg(e,p,t)}else K_(e,t)}function jg(e,t,n){Re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ye(t)&&(e.setupState=r_(t)),K_(e,n)}let Vg;function K_(e,t,n){const r=e.type;if(!e.render){if(!t&&Vg&&!r.render){const i=r.template||Bp(e).template;if(i){const{isCustomElement:u,compilerOptions:p}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,c=Nt(Nt({isCustomElement:u,delimiters:o},p),a);r.render=Vg(i,c)}}e.render=r.render||rt}{const i=Nl(e);di();try{nT(e)}finally{hi(),i()}}}const zT={get(e,t){return dn(e,"get",""),e[t]}};function G_(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,zT),slots:e.slots,emit:e.emit,expose:t}}function tf(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(r_(Zi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Os)return Os[n](e)},has(t,n){return n in t||n in Os}})):e.proxy}function jT(e,t=!0){return Re(e)?e.displayName||e.name:e.name||t&&e.__name}function VT(e){return Re(e)&&"__vccOpts"in e}const W=(e,t)=>Nx(e,t,tl);function gt(e,t,n){const r=(u,p,o)=>{hc(-1);try{return ce(u,p,o)}finally{hc(1)}},i=arguments.length;return i===2?Ye(t)&&!Pe(t)?On(t)?r(e,null,[t]):r(e,t):r(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&On(n)&&(n=[n]),r(e,t,n))}const UT="3.5.21",HT=rt;/**
* @vue/runtime-dom v3.5.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Qd;const Ug=typeof window<"u"&&window.trustedTypes;if(Ug)try{Qd=Ug.createPolicy("vue",{createHTML:e=>e})}catch{}const Y_=Qd?e=>Qd.createHTML(e):e=>e,WT="http://www.w3.org/2000/svg",KT="http://www.w3.org/1998/Math/MathML",ei=typeof document<"u"?document:null,Hg=ei&&ei.createElement("template"),GT={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 i=t==="svg"?ei.createElementNS(WT,e):t==="mathml"?ei.createElementNS(KT,e):n?ei.createElement(e,{is:n}):ei.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>ei.createTextNode(e),createComment:e=>ei.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ei.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,u){const p=n?n.previousSibling:t.lastChild;if(i&&(i===u||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===u||!(i=i.nextSibling)););else{Hg.innerHTML=Y_(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=Hg.content;if(r==="svg"||r==="mathml"){const a=o.firstChild;for(;a.firstChild;)o.appendChild(a.firstChild);o.removeChild(a)}t.insertBefore(o,n)}return[p?p.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ti="transition",us="animation",ko=Symbol("_vtc"),X_={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},q_=Nt({},g_,X_),YT=e=>(e.displayName="Transition",e.props=q_,e),sr=YT((e,{slots:t})=>gt(Kx,Z_(e),t)),la=(e,t=[])=>{Pe(e)?e.forEach(n=>n(...t)):e&&e(...t)},Wg=e=>e?Pe(e)?e.some(t=>t.length>1):e.length>1:!1;function Z_(e){const t={};for(const k in e)k in X_||(t[k]=e[k]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:u=`${n}-enter-from`,enterActiveClass:p=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:a=u,appearActiveClass:c=p,appearToClass:h=o,leaveFromClass:l=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:s=`${n}-leave-to`}=e,d=XT(i),g=d&&d[0],v=d&&d[1],{onBeforeEnter:m,onEnter:y,onEnterCancelled:b,onLeave:_,onLeaveCancelled:S,onBeforeAppear:C=m,onAppear:T=y,onAppearCancelled:E=b}=t,O=(k,U,P,re)=>{k._enterCancelled=re,Oi(k,U?h:o),Oi(k,U?c:p),P&&P()},D=(k,U)=>{k._isLeaving=!1,Oi(k,l),Oi(k,s),Oi(k,f),U&&U()},j=k=>(U,P)=>{const re=k?T:y,q=()=>O(U,k,P);la(re,[U,q]),Kg(()=>{Oi(U,k?a:u),Rr(U,k?h:o),Wg(re)||Gg(U,r,g,q)})};return Nt(t,{onBeforeEnter(k){la(m,[k]),Rr(k,u),Rr(k,p)},onBeforeAppear(k){la(C,[k]),Rr(k,a),Rr(k,c)},onEnter:j(!1),onAppear:j(!0),onLeave(k,U){k._isLeaving=!0;const P=()=>D(k,U);Rr(k,l),k._enterCancelled?(Rr(k,f),eh()):(eh(),Rr(k,f)),Kg(()=>{!k._isLeaving||(Oi(k,l),Rr(k,s),Wg(_)||Gg(k,r,v,P))}),la(_,[k,P])},onEnterCancelled(k){O(k,!1,void 0,!0),la(b,[k])},onAppearCancelled(k){O(k,!0,void 0,!0),la(E,[k])},onLeaveCancelled(k){D(k),la(S,[k])}})}function XT(e){if(e==null)return null;if(Ye(e))return[Uf(e.enter),Uf(e.leave)];{const t=Uf(e);return[t,t]}}function Uf(e){return ax(e)}function Rr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[ko]||(e[ko]=new Set)).add(t)}function Oi(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[ko];n&&(n.delete(t),n.size||(e[ko]=void 0))}function Kg(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let qT=0;function Gg(e,t,n,r){const i=e._endId=++qT,u=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(u,n);const{type:p,timeout:o,propCount:a}=J_(e,t);if(!p)return r();const c=p+"end";let h=0;const l=()=>{e.removeEventListener(c,f),u()},f=s=>{s.target===e&&++h>=a&&l()};setTimeout(()=>{h<a&&l()},o+1),e.addEventListener(c,f)}function J_(e,t){const n=window.getComputedStyle(e),r=d=>(n[d]||"").split(", "),i=r(`${Ti}Delay`),u=r(`${Ti}Duration`),p=Yg(i,u),o=r(`${us}Delay`),a=r(`${us}Duration`),c=Yg(o,a);let h=null,l=0,f=0;t===Ti?p>0&&(h=Ti,l=p,f=u.length):t===us?c>0&&(h=us,l=c,f=a.length):(l=Math.max(p,c),h=l>0?p>c?Ti:us:null,f=h?h===Ti?u.length:a.length:0);const s=h===Ti&&/\b(?:transform|all)(?:,|$)/.test(r(`${Ti}Property`).toString());return{type:h,timeout:l,propCount:f,hasTransform:s}}function Yg(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Xg(n)+Xg(e[r])))}function Xg(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function eh(){return document.body.offsetHeight}function ZT(e,t,n){const r=e[ko];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const vc=Symbol("_vod"),Q_=Symbol("_vsh"),Ft={name:"show",beforeMount(e,{value:t},{transition:n}){e[vc]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):cs(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),cs(e,!0),r.enter(e)):r.leave(e,()=>{cs(e,!1)}):cs(e,t))},beforeUnmount(e,{value:t}){cs(e,t)}};function cs(e,t){e.style.display=t?e[vc]:"none",e[Q_]=!t}const e1=Symbol("");function JT(e){const t=it();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(u=>gc(u,i))},r=()=>{const i=e(t.proxy);t.ce?gc(t.ce,i):th(t.subTree,i),n(i)};Lp(()=>{s_(r)}),Je(()=>{Te(r,rt,{flush:"post"});const i=new MutationObserver(r);i.observe(t.subTree.el.parentNode,{childList:!0}),jo(()=>i.disconnect())})}function th(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{th(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)gc(e.el,t);else if(e.type===$e)e.children.forEach(n=>th(n,t));else if(e.type===Uu){let{el:n,anchor:r}=e;for(;n&&(gc(n,t),n!==r);)n=n.nextSibling}}function gc(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const i in t){const u=hx(t[i]);n.setProperty(`--${i}`,u),r+=`--${i}: ${u};`}n[e1]=r}}const QT=/(?:^|;)\s*display\s*:/;function eE(e,t,n){const r=e.style,i=Be(n);let u=!1;if(n&&!i){if(t)if(Be(t))for(const p of t.split(";")){const o=p.slice(0,p.indexOf(":")).trim();n[o]==null&&Wu(r,o,"")}else for(const p in t)n[p]==null&&Wu(r,p,"");for(const p in n)p==="display"&&(u=!0),Wu(r,p,n[p])}else if(i){if(t!==n){const p=r[e1];p&&(n+=";"+p),r.cssText=n,u=QT.test(n)}}else t&&e.removeAttribute("style");vc in e&&(e[vc]=u?r.display:"",e[Q_]&&(r.display="none"))}const qg=/\s*!important$/;function Wu(e,t,n){if(Pe(n))n.forEach(r=>Wu(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=tE(e,t);qg.test(n)?e.setProperty(na(r),n.replace(qg,""),"important"):e[r]=n}}const Zg=["Webkit","Moz","ms"],Hf={};function tE(e,t){const n=Hf[t];if(n)return n;let r=Zn(t);if(r!=="filter"&&r in e)return Hf[t]=r;r=Dl(r);for(let i=0;i<Zg.length;i++){const u=Zg[i]+r;if(u in e)return Hf[t]=u}return t}const Jg="http://www.w3.org/1999/xlink";function Qg(e,t,n,r,i,u=fx(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Jg,t.slice(6,t.length)):e.setAttributeNS(Jg,t,n):n==null||u&&!Nb(n)?e.removeAttribute(t):e.setAttribute(t,u?"":wr(n)?String(n):n)}function em(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Y_(n):n);return}const u=e.tagName;if(t==="value"&&u!=="PROGRESS"&&!u.includes("-")){const o=u==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(o!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let p=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=Nb(n):n==null&&o==="string"?(n="",p=!0):o==="number"&&(n=0,p=!0)}try{e[t]=n}catch{}p&&e.removeAttribute(i||t)}function ha(e,t,n,r){e.addEventListener(t,n,r)}function nE(e,t,n,r){e.removeEventListener(t,n,r)}const tm=Symbol("_vei");function rE(e,t,n,r,i=null){const u=e[tm]||(e[tm]={}),p=u[t];if(r&&p)p.value=r;else{const[o,a]=iE(t);if(r){const c=u[t]=sE(r,i);ha(e,o,c,a)}else p&&(nE(e,o,p,a),u[t]=void 0)}}const nm=/(?:Once|Passive|Capture)$/;function iE(e){let t;if(nm.test(e)){t={};let r;for(;r=e.match(nm);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):na(e.slice(2)),t]}let Wf=0;const aE=Promise.resolve(),oE=()=>Wf||(aE.then(()=>Wf=0),Wf=Date.now());function sE(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Cr(lE(r,n.value),t,5,[r])};return n.value=e,n.attached=oE(),n}function lE(e,t){if(Pe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const rm=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,uE=(e,t,n,r,i,u)=>{const p=i==="svg";t==="class"?ZT(e,r,p):t==="style"?eE(e,n,r):Kc(t)?bp(t)||rE(e,t,n,r,u):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):cE(e,t,r,p))?(em(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Qg(e,t,r,p,u,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Be(r))?em(e,Zn(t),r,u,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Qg(e,t,r,p))};function cE(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&rm(t)&&Re(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return rm(t)&&Be(n)?!1:t in e}const t1=new WeakMap,n1=new WeakMap,mc=Symbol("_moveCb"),im=Symbol("_enterCb"),fE=e=>(delete e.props.mode,e),dE=fE({name:"TransitionGroup",props:Nt({},q_,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=it(),r=v_();let i,u;return zo(()=>{if(!i.length)return;const p=e.moveClass||`${e.name||"v"}-move`;if(!gE(i[0].el,n.vnode.el,p)){i=[];return}i.forEach(hE),i.forEach(pE);const o=i.filter(vE);eh(),o.forEach(a=>{const c=a.el,h=c.style;Rr(c,p),h.transform=h.webkitTransform=h.transitionDuration="";const l=c[mc]=f=>{f&&f.target!==c||(!f||f.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",l),c[mc]=null,Oi(c,p))};c.addEventListener("transitionend",l)}),i=[]}),()=>{const p=ot(e),o=Z_(p);let a=p.tag||$e;if(i=[],u)for(let c=0;c<u.length;c++){const h=u[c];h.el&&h.el instanceof Element&&(i.push(h),Aa(h,Js(h,o,r,n)),t1.set(h,h.el.getBoundingClientRect()))}u=t.default?Rp(t.default()):[];for(let c=0;c<u.length;c++){const h=u[c];h.key!=null&&Aa(h,Js(h,o,r,n))}return ce(a,null,u)}}}),r1=dE;function hE(e){const t=e.el;t[mc]&&t[mc](),t[im]&&t[im]()}function pE(e){n1.set(e,e.el.getBoundingClientRect())}function vE(e){const t=t1.get(e),n=n1.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const u=e.el.style;return u.transform=u.webkitTransform=`translate(${r}px,${i}px)`,u.transitionDuration="0s",e}}function gE(e,t,n){const r=e.cloneNode(),i=e[ko];i&&i.forEach(o=>{o.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(o=>o&&r.classList.add(o)),r.style.display="none";const u=t.nodeType===1?t:t.parentNode;u.appendChild(r);const{hasTransform:p}=J_(r);return u.removeChild(r),p}const yc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Pe(t)?n=>zu(t,n):t};function mE(e){e.target.composing=!0}function am(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const bo=Symbol("_assign"),yE={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[bo]=yc(i);const u=r||i.props&&i.props.type==="number";ha(e,t?"change":"input",p=>{if(p.target.composing)return;let o=e.value;n&&(o=o.trim()),u&&(o=jd(o)),e[bo](o)}),n&&ha(e,"change",()=>{e.value=e.value.trim()}),t||(ha(e,"compositionstart",mE),ha(e,"compositionend",am),ha(e,"change",am))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:u}},p){if(e[bo]=yc(p),e.composing)return;const o=(u||e.type==="number")&&!/^0\d/.test(e.value)?jd(e.value):e.value,a=t==null?"":t;o!==a&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===a)||(e.value=a))}},i1={created(e,{value:t},n){e.checked=ac(t,n.props.value),e[bo]=yc(n),ha(e,"change",()=>{e[bo](bE(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[bo]=yc(r),t!==n&&(e.checked=ac(t,r.props.value))}};function bE(e){return"_value"in e?e._value:e.value}const _E=["ctrl","shift","alt","meta"],wE={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)=>_E.some(n=>e[`${n}Key`]&&!t.includes(n))},Ze=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(i,...u)=>{for(let p=0;p<t.length;p++){const o=wE[t[p]];if(o&&o(i,t))return}return e(i,...u)})},SE={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},nn=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const u=na(i.key);if(t.some(p=>p===u||SE[p]===u))return e(i)})},CE=Nt({patchProp:uE},GT);let om;function a1(){return om||(om=mT(CE))}const bc=(...e)=>{a1().render(...e)},xE=(...e)=>{const t=a1().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=EE(r);if(!i)return;const u=t._component;!Re(u)&&!u.render&&!u.template&&(u.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const p=n(i,!1,TE(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),p},t};function TE(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function EE(e){return Be(e)?document.querySelector(e):e}var kE=!1;/*!
* pinia v2.3.1
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let o1;const nf=e=>o1=e,s1=Symbol();function nh(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var As;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(As||(As={}));function OE(){const e=Sp(!0),t=e.run(()=>ie({}));let n=[],r=[];const i=Zi({install(u){nf(i),i._a=u,u.provide(s1,i),u.config.globalProperties.$pinia=i,r.forEach(p=>n.push(p)),r=[]},use(u){return!this._a&&!kE?r.push(u):n.push(u),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const l1=()=>{};function sm(e,t,n,r=l1){e.push(t);const i=()=>{const u=e.indexOf(t);u>-1&&(e.splice(u,1),r())};return!n&&Cp()&&xp(i),i}function Qa(e,...t){e.slice().forEach(n=>{n(...t)})}const PE=e=>e(),lm=Symbol(),Kf=Symbol();function rh(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];nh(i)&&nh(r)&&e.hasOwnProperty(n)&&!wt(r)&&!Hi(r)?e[n]=rh(i,r):e[n]=r}return e}const AE=Symbol();function IE(e){return!nh(e)||!e.hasOwnProperty(AE)}const{assign:Pi}=Object;function ME(e){return!!(wt(e)&&e.effect)}function RE(e,t,n,r){const{state:i,actions:u,getters:p}=t,o=n.state.value[e];let a;function c(){o||(n.state.value[e]=i?i():{});const h=Sr(n.state.value[e]);return Pi(h,u,Object.keys(p||{}).reduce((l,f)=>(l[f]=Zi(W(()=>{nf(n);const s=n._s.get(e);return p[f].call(s,s)})),l),{}))}return a=u1(e,c,t,n,r,!0),a}function u1(e,t,n={},r,i,u){let p;const o=Pi({actions:{}},n),a={deep:!0};let c,h,l=[],f=[],s;const d=r.state.value[e];!u&&!d&&(r.state.value[e]={}),ie({});let g;function v(E){let O;c=h=!1,typeof E=="function"?(E(r.state.value[e]),O={type:As.patchFunction,storeId:e,events:s}):(rh(r.state.value[e],E),O={type:As.patchObject,payload:E,storeId:e,events:s});const D=g=Symbol();Ke().then(()=>{g===D&&(c=!0)}),h=!0,Qa(l,O,r.state.value[e])}const m=u?function(){const{state:O}=n,D=O?O():{};this.$patch(j=>{Pi(j,D)})}:l1;function y(){p.stop(),l=[],f=[],r._s.delete(e)}const b=(E,O="")=>{if(lm in E)return E[Kf]=O,E;const D=function(){nf(r);const j=Array.from(arguments),k=[],U=[];function P(V){k.push(V)}function re(V){U.push(V)}Qa(f,{args:j,name:D[Kf],store:S,after:P,onError:re});let q;try{q=E.apply(this&&this.$id===e?this:S,j)}catch(V){throw Qa(U,V),V}return q instanceof Promise?q.then(V=>(Qa(k,V),V)).catch(V=>(Qa(U,V),Promise.reject(V))):(Qa(k,q),q)};return D[lm]=!0,D[Kf]=O,D},_={_p:r,$id:e,$onAction:sm.bind(null,f),$patch:v,$reset:m,$subscribe(E,O={}){const D=sm(l,E,O.detached,()=>j()),j=p.run(()=>Te(()=>r.state.value[e],k=>{(O.flush==="sync"?h:c)&&E({storeId:e,type:As.direct,events:s},k)},Pi({},a,O)));return D},$dispose:y},S=yt(_);r._s.set(e,S);const T=(r._a&&r._a.runWithContext||PE)(()=>r._e.run(()=>(p=Sp()).run(()=>t({action:b}))));for(const E in T){const O=T[E];if(wt(O)&&!ME(O)||Hi(O))u||(d&&IE(O)&&(wt(O)?O.value=d[E]:rh(O,d[E])),r.state.value[e][E]=O);else if(typeof O=="function"){const D=b(O,E);T[E]=D,o.actions[E]=O}}return Pi(S,T),Pi(ot(S),T),Object.defineProperty(S,"$state",{get:()=>r.state.value[e],set:E=>{v(O=>{Pi(O,E)})}}),r._p.forEach(E=>{Pi(S,p.run(()=>E({store:S,app:r._a,pinia:r,options:o})))}),d&&u&&n.hydrate&&n.hydrate(S.$state,d),c=!0,h=!0,S}/*! #__NO_SIDE_EFFECTS__ */function Ho(e,t,n){let r,i;const u=typeof t=="function";typeof e=="string"?(r=e,i=u?n:t):(i=e,r=e.id);function p(o,a){const c=uT();return o=o||(c?Ne(s1,null):null),o&&nf(o),o=o1,o._s.has(r)||(u?u1(r,t,i,o):RE(r,i,o)),o._s.get(r)}return p.$id=r,p}/*!
* vue-router v4.5.1
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/const lo=typeof document<"u";function c1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function LE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&c1(e.default)}const _t=Object.assign;function Gf(e,t){const n={};for(const r in t){const i=t[r];n[r]=xr(i)?i.map(e):e(i)}return n}const Is=()=>{},xr=Array.isArray,f1=/#/g,DE=/&/g,FE=/\//g,BE=/=/g,NE=/\?/g,d1=/\+/g,$E=/%5B/g,zE=/%5D/g,h1=/%5E/g,jE=/%60/g,p1=/%7B/g,VE=/%7C/g,v1=/%7D/g,UE=/%20/g;function Vp(e){return encodeURI(""+e).replace(VE,"|").replace($E,"[").replace(zE,"]")}function HE(e){return Vp(e).replace(p1,"{").replace(v1,"}").replace(h1,"^")}function ih(e){return Vp(e).replace(d1,"%2B").replace(UE,"+").replace(f1,"%23").replace(DE,"%26").replace(jE,"`").replace(p1,"{").replace(v1,"}").replace(h1,"^")}function WE(e){return ih(e).replace(BE,"%3D")}function KE(e){return Vp(e).replace(f1,"%23").replace(NE,"%3F")}function GE(e){return e==null?"":KE(e).replace(FE,"%2F")}function nl(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const YE=/\/$/,XE=e=>e.replace(YE,"");function Yf(e,t,n="/"){let r,i={},u="",p="";const o=t.indexOf("#");let a=t.indexOf("?");return o<a&&o>=0&&(a=-1),a>-1&&(r=t.slice(0,a),u=t.slice(a+1,o>-1?o:t.length),i=e(u)),o>-1&&(r=r||t.slice(0,o),p=t.slice(o,t.length)),r=QE(r!=null?r:t,n),{fullPath:r+(u&&"?")+u+p,path:r,query:i,hash:nl(p)}}function qE(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function um(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ZE(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Oo(t.matched[r],n.matched[i])&&g1(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Oo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function g1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!JE(e[n],t[n]))return!1;return!0}function JE(e,t){return xr(e)?cm(e,t):xr(t)?cm(t,e):e===t}function cm(e,t){return xr(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function QE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let u=n.length-1,p,o;for(p=0;p<r.length;p++)if(o=r[p],o!==".")if(o==="..")u>1&&u--;else break;return n.slice(0,u).join("/")+"/"+r.slice(p).join("/")}const Ei={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var rl;(function(e){e.pop="pop",e.push="push"})(rl||(rl={}));var Ms;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ms||(Ms={}));function ek(e){if(!e)if(lo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),XE(e)}const tk=/^[^#]+#/;function nk(e,t){return e.replace(tk,"#")+t}function rk(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 rf=()=>({left:window.scrollX,top:window.scrollY});function ik(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=rk(i,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 fm(e,t){return(history.state?history.state.position-t:-1)+e}const ah=new Map;function ak(e,t){ah.set(e,t)}function ok(e){const t=ah.get(e);return ah.delete(e),t}let sk=()=>location.protocol+"//"+location.host;function m1(e,t){const{pathname:n,search:r,hash:i}=t,u=e.indexOf("#");if(u>-1){let o=i.includes(e.slice(u))?e.slice(u).length:1,a=i.slice(o);return a[0]!=="/"&&(a="/"+a),um(a,"")}return um(n,e)+r+i}function lk(e,t,n,r){let i=[],u=[],p=null;const o=({state:f})=>{const s=m1(e,location),d=n.value,g=t.value;let v=0;if(f){if(n.value=s,t.value=f,p&&p===d){p=null;return}v=g?f.position-g.position:0}else r(s);i.forEach(m=>{m(n.value,d,{delta:v,type:rl.pop,direction:v?v>0?Ms.forward:Ms.back:Ms.unknown})})};function a(){p=n.value}function c(f){i.push(f);const s=()=>{const d=i.indexOf(f);d>-1&&i.splice(d,1)};return u.push(s),s}function h(){const{history:f}=window;!f.state||f.replaceState(_t({},f.state,{scroll:rf()}),"")}function l(){for(const f of u)f();u=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:a,listen:c,destroy:l}}function dm(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?rf():null}}function uk(e){const{history:t,location:n}=window,r={value:m1(e,n)},i={value:t.state};i.value||u(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function u(a,c,h){const l=e.indexOf("#"),f=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+a:sk()+e+a;try{t[h?"replaceState":"pushState"](c,"",f),i.value=c}catch(s){console.error(s),n[h?"replace":"assign"](f)}}function p(a,c){const h=_t({},t.state,dm(i.value.back,a,i.value.forward,!0),c,{position:i.value.position});u(a,h,!0),r.value=a}function o(a,c){const h=_t({},i.value,t.state,{forward:a,scroll:rf()});u(h.current,h,!0);const l=_t({},dm(r.value,a,null),{position:h.position+1},c);u(a,l,!1),r.value=a}return{location:r,state:i,push:o,replace:p}}function ck(e){e=ek(e);const t=uk(e),n=lk(e,t.state,t.location,t.replace);function r(u,p=!0){p||n.pauseListeners(),history.go(u)}const i=_t({location:"",base:e,go:r,createHref:nk.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function fk(e){return typeof e=="string"||e&&typeof e=="object"}function y1(e){return typeof e=="string"||typeof e=="symbol"}const b1=Symbol("");var hm;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(hm||(hm={}));function Po(e,t){return _t(new Error,{type:e,[b1]:!0},t)}function qr(e,t){return e instanceof Error&&b1 in e&&(t==null||!!(e.type&t))}const pm="[^/]+?",dk={sensitive:!1,strict:!1,start:!0,end:!0},hk=/[.+*?^${}()[\]/\\]/g;function pk(e,t){const n=_t({},dk,t),r=[];let i=n.start?"^":"";const u=[];for(const c of e){const h=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let l=0;l<c.length;l++){const f=c[l];let s=40+(n.sensitive?.25:0);if(f.type===0)l||(i+="/"),i+=f.value.replace(hk,"\\$&"),s+=40;else if(f.type===1){const{value:d,repeatable:g,optional:v,regexp:m}=f;u.push({name:d,repeatable:g,optional:v});const y=m||pm;if(y!==pm){s+=10;try{new RegExp(`(${y})`)}catch(_){throw new Error(`Invalid custom RegExp for param "${d}" (${y}): `+_.message)}}let b=g?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;l||(b=v&&c.length<2?`(?:/${b})`:"/"+b),v&&(b+="?"),i+=b,s+=20,v&&(s+=-8),g&&(s+=-20),y===".*"&&(s+=-50)}h.push(s)}r.push(h)}if(n.strict&&n.end){const c=r.length-1;r[c][r[c].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const p=new RegExp(i,n.sensitive?"":"i");function o(c){const h=c.match(p),l={};if(!h)return null;for(let f=1;f<h.length;f++){const s=h[f]||"",d=u[f-1];l[d.name]=s&&d.repeatable?s.split("/"):s}return l}function a(c){let h="",l=!1;for(const f of e){(!l||!h.endsWith("/"))&&(h+="/"),l=!1;for(const s of f)if(s.type===0)h+=s.value;else if(s.type===1){const{value:d,repeatable:g,optional:v}=s,m=d in c?c[d]:"";if(xr(m)&&!g)throw new Error(`Provided param "${d}" is an array but it is not repeatable (* or + modifiers)`);const y=xr(m)?m.join("/"):m;if(!y)if(v)f.length<2&&(h.endsWith("/")?h=h.slice(0,-1):l=!0);else throw new Error(`Missing required param "${d}"`);h+=y}}return h||"/"}return{re:p,score:r,keys:u,parse:o,stringify:a}}function vk(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 _1(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const u=vk(r[n],i[n]);if(u)return u;n++}if(Math.abs(i.length-r.length)===1){if(vm(r))return 1;if(vm(i))return-1}return i.length-r.length}function vm(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const gk={type:0,value:""},mk=/[a-zA-Z0-9_]/;function yk(e){if(!e)return[[]];if(e==="/")return[[gk]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(s){throw new Error(`ERR (${n})/"${c}": ${s}`)}let n=0,r=n;const i=[];let u;function p(){u&&i.push(u),u=[]}let o=0,a,c="",h="";function l(){!c||(n===0?u.push({type:0,value:c}):n===1||n===2||n===3?(u.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),u.push({type:1,value:c,regexp:h,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=a}for(;o<e.length;){if(a=e[o++],a==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:a==="/"?(c&&l(),p()):a===":"?(l(),n=1):f();break;case 4:f(),n=r;break;case 1:a==="("?n=2:mk.test(a)?f():(l(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&o--);break;case 2:a===")"?h[h.length-1]=="\\"?h=h.slice(0,-1)+a:n=3:h+=a;break;case 3:l(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&o--,h="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),l(),p(),i}function bk(e,t,n){const r=pk(yk(e.path),n),i=_t(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function _k(e,t){const n=[],r=new Map;t=bm({strict:!1,end:!0,sensitive:!1},t);function i(l){return r.get(l)}function u(l,f,s){const d=!s,g=mm(l);g.aliasOf=s&&s.record;const v=bm(t,l),m=[g];if("alias"in l){const _=typeof l.alias=="string"?[l.alias]:l.alias;for(const S of _)m.push(mm(_t({},g,{components:s?s.record.components:g.components,path:S,aliasOf:s?s.record:g})))}let y,b;for(const _ of m){const{path:S}=_;if(f&&S[0]!=="/"){const C=f.record.path,T=C[C.length-1]==="/"?"":"/";_.path=f.record.path+(S&&T+S)}if(y=bk(_,f,v),s?s.alias.push(y):(b=b||y,b!==y&&b.alias.push(y),d&&l.name&&!ym(y)&&p(l.name)),w1(y)&&a(y),g.children){const C=g.children;for(let T=0;T<C.length;T++)u(C[T],y,s&&s.children[T])}s=s||y}return b?()=>{p(b)}:Is}function p(l){if(y1(l)){const f=r.get(l);f&&(r.delete(l),n.splice(n.indexOf(f),1),f.children.forEach(p),f.alias.forEach(p))}else{const f=n.indexOf(l);f>-1&&(n.splice(f,1),l.record.name&&r.delete(l.record.name),l.children.forEach(p),l.alias.forEach(p))}}function o(){return n}function a(l){const f=Ck(l,n);n.splice(f,0,l),l.record.name&&!ym(l)&&r.set(l.record.name,l)}function c(l,f){let s,d={},g,v;if("name"in l&&l.name){if(s=r.get(l.name),!s)throw Po(1,{location:l});v=s.record.name,d=_t(gm(f.params,s.keys.filter(b=>!b.optional).concat(s.parent?s.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),l.params&&gm(l.params,s.keys.map(b=>b.name))),g=s.stringify(d)}else if(l.path!=null)g=l.path,s=n.find(b=>b.re.test(g)),s&&(d=s.parse(g),v=s.record.name);else{if(s=f.name?r.get(f.name):n.find(b=>b.re.test(f.path)),!s)throw Po(1,{location:l,currentLocation:f});v=s.record.name,d=_t({},f.params,l.params),g=s.stringify(d)}const m=[];let y=s;for(;y;)m.unshift(y.record),y=y.parent;return{name:v,path:g,params:d,matched:m,meta:Sk(m)}}e.forEach(l=>u(l));function h(){n.length=0,r.clear()}return{addRoute:u,resolve:c,removeRoute:p,clearRoutes:h,getRoutes:o,getRecordMatcher:i}}function gm(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function mm(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:wk(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 wk(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 ym(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Sk(e){return e.reduce((t,n)=>_t(t,n.meta),{})}function bm(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Ck(e,t){let n=0,r=t.length;for(;n!==r;){const u=n+r>>1;_1(e,t[u])<0?r=u:n=u+1}const i=xk(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function xk(e){let t=e;for(;t=t.parent;)if(w1(t)&&_1(e,t)===0)return t}function w1({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Tk(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<r.length;++i){const u=r[i].replace(d1," "),p=u.indexOf("="),o=nl(p<0?u:u.slice(0,p)),a=p<0?null:nl(u.slice(p+1));if(o in t){let c=t[o];xr(c)||(c=t[o]=[c]),c.push(a)}else t[o]=a}return t}function _m(e){let t="";for(let n in e){const r=e[n];if(n=WE(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(xr(r)?r.map(u=>u&&ih(u)):[r&&ih(r)]).forEach(u=>{u!==void 0&&(t+=(t.length?"&":"")+n,u!=null&&(t+="="+u))})}return t}function Ek(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=xr(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const kk=Symbol(""),wm=Symbol(""),Up=Symbol(""),Hp=Symbol(""),oh=Symbol("");function fs(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Di(e,t,n,r,i,u=p=>p()){const p=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((o,a)=>{const c=f=>{f===!1?a(Po(4,{from:n,to:t})):f instanceof Error?a(f):fk(f)?a(Po(2,{from:t,to:f})):(p&&r.enterCallbacks[i]===p&&typeof f=="function"&&p.push(f),o())},h=u(()=>e.call(r&&r.instances[i],t,n,c));let l=Promise.resolve(h);e.length<3&&(l=l.then(c)),l.catch(f=>a(f))})}function Xf(e,t,n,r,i=u=>u()){const u=[];for(const p of e)for(const o in p.components){let a=p.components[o];if(!(t!=="beforeRouteEnter"&&!p.instances[o]))if(c1(a)){const h=(a.__vccOpts||a)[t];h&&u.push(Di(h,n,r,p,o,i))}else{let c=a();u.push(()=>c.then(h=>{if(!h)throw new Error(`Couldn't resolve component "${o}" at "${p.path}"`);const l=LE(h)?h.default:h;p.mods[o]=h,p.components[o]=l;const s=(l.__vccOpts||l)[t];return s&&Di(s,n,r,p,o,i)()}))}}return u}function Sm(e){const t=Ne(Up),n=Ne(Hp),r=W(()=>{const a=w(e.to);return t.resolve(a)}),i=W(()=>{const{matched:a}=r.value,{length:c}=a,h=a[c-1],l=n.matched;if(!h||!l.length)return-1;const f=l.findIndex(Oo.bind(null,h));if(f>-1)return f;const s=Cm(a[c-2]);return c>1&&Cm(h)===s&&l[l.length-1].path!==s?l.findIndex(Oo.bind(null,a[c-2])):f}),u=W(()=>i.value>-1&&Mk(n.params,r.value.params)),p=W(()=>i.value>-1&&i.value===n.matched.length-1&&g1(n.params,r.value.params));function o(a={}){if(Ik(a)){const c=t[w(e.replace)?"replace":"push"](w(e.to)).catch(Is);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:W(()=>r.value.href),isActive:u,isExactActive:p,navigate:o}}function Ok(e){return e.length===1?e[0]:e}const Pk=pe({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"},viewTransition:Boolean},useLink:Sm,setup(e,{slots:t}){const n=yt(Sm(e)),{options:r}=Ne(Up),i=W(()=>({[xm(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[xm(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const u=t.default&&Ok(t.default(n));return e.custom?u:gt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},u)}}}),Ak=Pk;function Ik(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 Mk(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!xr(i)||i.length!==r.length||r.some((u,p)=>u!==i[p]))return!1}return!0}function Cm(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const xm=(e,t,n)=>e!=null?e:t!=null?t:n,Rk=pe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ne(oh),i=W(()=>e.route||r.value),u=Ne(wm,0),p=W(()=>{let c=w(u);const{matched:h}=i.value;let l;for(;(l=h[c])&&!l.components;)c++;return c}),o=W(()=>i.value.matched[p.value]);pt(wm,W(()=>p.value+1)),pt(kk,o),pt(oh,i);const a=ie();return Te(()=>[a.value,o.value,e.name],([c,h,l],[f,s,d])=>{h&&(h.instances[l]=c,s&&s!==h&&c&&c===f&&(h.leaveGuards.size||(h.leaveGuards=s.leaveGuards),h.updateGuards.size||(h.updateGuards=s.updateGuards))),c&&h&&(!s||!Oo(h,s)||!f)&&(h.enterCallbacks[l]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=i.value,h=e.name,l=o.value,f=l&&l.components[h];if(!f)return Tm(n.default,{Component:f,route:c});const s=l.props[h],d=s?s===!0?c.params:typeof s=="function"?s(c):s:null,v=gt(f,_t({},d,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(l.instances[h]=null)},ref:a}));return Tm(n.default,{Component:v,route:c})||v}}});function Tm(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const S1=Rk;function Lk(e){const t=_k(e.routes,e),n=e.parseQuery||Tk,r=e.stringifyQuery||_m,i=e.history,u=fs(),p=fs(),o=fs(),a=Bt(Ei);let c=Ei;lo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=Gf.bind(null,H=>""+H),l=Gf.bind(null,GE),f=Gf.bind(null,nl);function s(H,G){let ne,de;return y1(H)?(ne=t.getRecordMatcher(H),de=G):de=H,t.addRoute(de,ne)}function d(H){const G=t.getRecordMatcher(H);G&&t.removeRoute(G)}function g(){return t.getRoutes().map(H=>H.record)}function v(H){return!!t.getRecordMatcher(H)}function m(H,G){if(G=_t({},G||a.value),typeof H=="string"){const x=Yf(n,H,G.path),K=t.resolve({path:x.path},G),X=i.createHref(x.fullPath);return _t(x,K,{params:f(K.params),hash:nl(x.hash),redirectedFrom:void 0,href:X})}let ne;if(H.path!=null)ne=_t({},H,{path:Yf(n,H.path,G.path).path});else{const x=_t({},H.params);for(const K in x)x[K]==null&&delete x[K];ne=_t({},H,{params:l(x)}),G.params=l(G.params)}const de=t.resolve(ne,G),ve=H.hash||"";de.params=h(f(de.params));const _e=qE(r,_t({},H,{hash:HE(ve),path:de.path})),N=i.createHref(_e);return _t({fullPath:_e,hash:ve,query:r===_m?Ek(H.query):H.query||{}},de,{redirectedFrom:void 0,href:N})}function y(H){return typeof H=="string"?Yf(n,H,a.value.path):_t({},H)}function b(H,G){if(c!==H)return Po(8,{from:G,to:H})}function _(H){return T(H)}function S(H){return _(_t(y(H),{replace:!0}))}function C(H){const G=H.matched[H.matched.length-1];if(G&&G.redirect){const{redirect:ne}=G;let de=typeof ne=="function"?ne(H):ne;return typeof de=="string"&&(de=de.includes("?")||de.includes("#")?de=y(de):{path:de},de.params={}),_t({query:H.query,hash:H.hash,params:de.path!=null?{}:H.params},de)}}function T(H,G){const ne=c=m(H),de=a.value,ve=H.state,_e=H.force,N=H.replace===!0,x=C(ne);if(x)return T(_t(y(x),{state:typeof x=="object"?_t({},ve,x.state):ve,force:_e,replace:N}),G||ne);const K=ne;K.redirectedFrom=G;let X;return!_e&&ZE(r,de,ne)&&(X=Po(16,{to:K,from:de}),I(de,de,!0,!1)),(X?Promise.resolve(X):D(K,de)).catch(R=>qr(R)?qr(R,2)?R:B(R):te(R,K,de)).then(R=>{if(R){if(qr(R,2))return T(_t({replace:N},y(R.to),{state:typeof R.to=="object"?_t({},ve,R.to.state):ve,force:_e}),G||K)}else R=k(K,de,!0,N,ve);return j(K,de,R),R})}function E(H,G){const ne=b(H,G);return ne?Promise.reject(ne):Promise.resolve()}function O(H){const G=z.values().next().value;return G&&typeof G.runWithContext=="function"?G.runWithContext(H):H()}function D(H,G){let ne;const[de,ve,_e]=Dk(H,G);ne=Xf(de.reverse(),"beforeRouteLeave",H,G);for(const x of de)x.leaveGuards.forEach(K=>{ne.push(Di(K,H,G))});const N=E.bind(null,H,G);return ne.push(N),Q(ne).then(()=>{ne=[];for(const x of u.list())ne.push(Di(x,H,G));return ne.push(N),Q(ne)}).then(()=>{ne=Xf(ve,"beforeRouteUpdate",H,G);for(const x of ve)x.updateGuards.forEach(K=>{ne.push(Di(K,H,G))});return ne.push(N),Q(ne)}).then(()=>{ne=[];for(const x of _e)if(x.beforeEnter)if(xr(x.beforeEnter))for(const K of x.beforeEnter)ne.push(Di(K,H,G));else ne.push(Di(x.beforeEnter,H,G));return ne.push(N),Q(ne)}).then(()=>(H.matched.forEach(x=>x.enterCallbacks={}),ne=Xf(_e,"beforeRouteEnter",H,G,O),ne.push(N),Q(ne))).then(()=>{ne=[];for(const x of p.list())ne.push(Di(x,H,G));return ne.push(N),Q(ne)}).catch(x=>qr(x,8)?x:Promise.reject(x))}function j(H,G,ne){o.list().forEach(de=>O(()=>de(H,G,ne)))}function k(H,G,ne,de,ve){const _e=b(H,G);if(_e)return _e;const N=G===Ei,x=lo?history.state:{};ne&&(de||N?i.replace(H.fullPath,_t({scroll:N&&x&&x.scroll},ve)):i.push(H.fullPath,ve)),a.value=H,I(H,G,ne,N),B()}let U;function P(){U||(U=i.listen((H,G,ne)=>{if(!L.listening)return;const de=m(H),ve=C(de);if(ve){T(_t(ve,{replace:!0,force:!0}),de).catch(Is);return}c=de;const _e=a.value;lo&&ak(fm(_e.fullPath,ne.delta),rf()),D(de,_e).catch(N=>qr(N,12)?N:qr(N,2)?(T(_t(y(N.to),{force:!0}),de).then(x=>{qr(x,20)&&!ne.delta&&ne.type===rl.pop&&i.go(-1,!1)}).catch(Is),Promise.reject()):(ne.delta&&i.go(-ne.delta,!1),te(N,de,_e))).then(N=>{N=N||k(de,_e,!1),N&&(ne.delta&&!qr(N,8)?i.go(-ne.delta,!1):ne.type===rl.pop&&qr(N,20)&&i.go(-1,!1)),j(de,_e,N)}).catch(Is)}))}let re=fs(),q=fs(),V;function te(H,G,ne){B(H);const de=q.list();return de.length?de.forEach(ve=>ve(H,G,ne)):console.error(H),Promise.reject(H)}function A(){return V&&a.value!==Ei?Promise.resolve():new Promise((H,G)=>{re.add([H,G])})}function B(H){return V||(V=!H,P(),re.list().forEach(([G,ne])=>H?ne(H):G()),re.reset()),H}function I(H,G,ne,de){const{scrollBehavior:ve}=e;if(!lo||!ve)return Promise.resolve();const _e=!ne&&ok(fm(H.fullPath,0))||(de||!ne)&&history.state&&history.state.scroll||null;return Ke().then(()=>ve(H,G,_e)).then(N=>N&&ik(N)).catch(N=>te(N,H,G))}const M=H=>i.go(H);let J;const z=new Set,L={currentRoute:a,listening:!0,addRoute:s,removeRoute:d,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:g,resolve:m,options:e,push:_,replace:S,go:M,back:()=>M(-1),forward:()=>M(1),beforeEach:u.add,beforeResolve:p.add,afterEach:o.add,onError:q.add,isReady:A,install(H){const G=this;H.component("RouterLink",Ak),H.component("RouterView",S1),H.config.globalProperties.$router=G,Object.defineProperty(H.config.globalProperties,"$route",{enumerable:!0,get:()=>w(a)}),lo&&!J&&a.value===Ei&&(J=!0,_(i.location).catch(ve=>{}));const ne={};for(const ve in Ei)Object.defineProperty(ne,ve,{get:()=>a.value[ve],enumerable:!0});H.provide(Up,G),H.provide(Hp,Xc(ne)),H.provide(oh,a);const de=H.unmount;z.add(H),H.unmount=function(){z.delete(H),z.size<1&&(c=Ei,U&&U(),U=null,a.value=Ei,J=!1,V=!1),de()}}};function Q(H){return H.reduce((G,ne)=>G.then(()=>O(ne)),Promise.resolve())}return L}function Dk(e,t){const n=[],r=[],i=[],u=Math.max(t.matched.length,e.matched.length);for(let p=0;p<u;p++){const o=t.matched[p];o&&(e.matched.find(c=>Oo(c,o))?r.push(o):n.push(o));const a=e.matched[p];a&&(t.matched.find(c=>Oo(c,a))||i.push(a))}return[n,r,i]}function Fk(e){return Ne(Hp)}/*! Element Plus Icons Vue v2.3.2 */var Bk=pe({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 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.59 30.59 0 0 0-42.752 0z"})]))}}),af=Bk,Nk=pe({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),of=Nk,$k=pe({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 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"})]))}}),Wo=$k,zk=pe({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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"})]))}}),jk=zk,Vk=pe({name:"Back",__name:"back",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),ae("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"})]))}}),Uk=Vk,Hk=pe({name:"Check",__name:"check",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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"})]))}}),C1=Hk,Wk=pe({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),x1=Wk,Kk=pe({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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"}),ae("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.752z"})]))}}),$l=Kk,Gk=pe({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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"})]))}}),T1=Gk,Yk=pe({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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"}),ae("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"})]))}}),sf=Yk,Xk=pe({name:"Close",__name:"close",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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"})]))}}),Vr=Xk,qk=pe({name:"Comment",__name:"comment",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"})]))}}),Zk=qk,Jk=pe({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 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.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 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.672z"})]))}}),Qk=Jk,eO=pe({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 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.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"})]))}}),tO=eO,nO=pe({name:"Delete",__name:"delete",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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"})]))}}),lf=nO,rO=pe({name:"Document",__name:"document",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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"})]))}}),iO=rO,aO=pe({name:"Download",__name:"download",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),il=aO,oO=pe({name:"EditPen",__name:"edit-pen",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64z"})]))}}),sO=oO,lO=pe({name:"Filter",__name:"filter",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"})]))}}),uO=lO,cO=pe({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),fO=cO,dO=pe({name:"Hide",__name:"hide",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-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 176S0 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.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 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.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.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.6q-43.2 72-153.6 172.8c-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-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),ae("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 112s-67.2 48-112 48"})]))}}),hO=dO,pO=pe({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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.99 12.99 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"})]))}}),_c=pO,vO=pe({name:"Link",__name:"link",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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"})]))}}),gO=vO,mO=pe({name:"Loading",__name:"loading",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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.248m452.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.248M828.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 0"})]))}}),al=mO,yO=pe({name:"MagicStick",__name:"magic-stick",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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"})]))}}),bO=yO,_O=pe({name:"Menu",__name:"menu",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"})]))}}),wO=_O,SO=pe({name:"Minus",__name:"minus",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),E1=SO,CO=pe({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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"})]))}}),Em=CO,xO=pe({name:"More",__name:"more",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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"})]))}}),TO=xO,EO=pe({name:"Operation",__name:"operation",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),kO=EO,OO=pe({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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"})]))}}),uu=OO,PO=pe({name:"Plus",__name:"plus",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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"})]))}}),Wp=PO,AO=pe({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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"})]))}}),k1=AO,IO=pe({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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.88"})]))}}),O1=IO,MO=pe({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),Rs=MO,RO=pe({name:"Right",__name:"right",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),LO=RO,DO=pe({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"})]))}}),FO=DO,BO=pe({name:"Sort",__name:"sort",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0z"})]))}}),NO=BO,$O=pe({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("path",{fill:"currentColor",d:"M313.6 924.48a70.4 70.4 0 0 1-74.152-5.365 70.4 70.4 0 0 1-27.992-68.875l37.888-220.928L88.96 472.96a70.4 70.4 0 0 1 3.788-104.225A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 100.246-28.595 70.4 70.4 0 0 1 25.962 28.595l99.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"})]))}}),P1=$O,zO=pe({name:"Star",__name:"star",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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"})]))}}),jO=zO,VO=pe({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),A1=VO,UO=pe({name:"Tools",__name:"tools",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("path",{fill:"currentColor",d:"M764.416 254.72a351.7 351.7 0 0 1 86.336 149.184H960v192.064H850.752a351.7 351.7 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.7 351.7 0 0 1-86.336-149.312H64v-192h109.248a351.7 351.7 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),HO=UO,WO=pe({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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.81 239.81 0 0 1 512 192a239.87 239.87 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"})]))}}),Kp=WO,KO=pe({name:"View",__name:"view",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),GO=KO,YO=pe({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 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"})]))}}),Gp=YO,XO=pe({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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"})]))}}),I1=XO,qO=pe({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>($(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ae("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"})]))}}),ZO=qO;const M1=Symbol(),Ls="el",JO="is-",ua=(e,t,n,r,i)=>{let u=`${e}-${t}`;return n&&(u+=`-${n}`),r&&(u+=`__${r}`),i&&(u+=`--${i}`),u},R1=Symbol("namespaceContextKey"),Yp=e=>{const t=e||(it()?Ne(R1,ie(Ls)):ie(Ls));return W(()=>w(t)||Ls)},Ae=(e,t)=>{const n=Yp(t);return{namespace:n,b:(g="")=>ua(n.value,e,g,"",""),e:g=>g?ua(n.value,e,"",g,""):"",m:g=>g?ua(n.value,e,"","",g):"",be:(g,v)=>g&&v?ua(n.value,e,g,v,""):"",em:(g,v)=>g&&v?ua(n.value,e,"",g,v):"",bm:(g,v)=>g&&v?ua(n.value,e,g,"",v):"",bem:(g,v,m)=>g&&v&&m?ua(n.value,e,g,v,m):"",is:(g,...v)=>{const m=v.length>=1?v[0]:!0;return g&&m?`${JO}${g}`:""},cssVar:g=>{const v={};for(const m in g)g[m]&&(v[`--${n.value}-${m}`]=g[m]);return v},cssVarName:g=>`--${n.value}-${g}`,cssVarBlock:g=>{const v={};for(const m in g)g[m]&&(v[`--${n.value}-${e}-${m}`]=g[m]);return v},cssVarBlockName:g=>`--${n.value}-${e}-${g}`}};var QO=typeof global=="object"&&global&&global.Object===Object&&global;const L1=QO;var e3=typeof self=="object"&&self&&self.Object===Object&&self,t3=L1||e3||Function("return this")();const kr=t3;var n3=kr.Symbol;const lr=n3;var D1=Object.prototype,r3=D1.hasOwnProperty,i3=D1.toString,ds=lr?lr.toStringTag:void 0;function a3(e){var t=r3.call(e,ds),n=e[ds];try{e[ds]=void 0;var r=!0}catch{}var i=i3.call(e);return r&&(t?e[ds]=n:delete e[ds]),i}var o3=Object.prototype,s3=o3.toString;function l3(e){return s3.call(e)}var u3="[object Null]",c3="[object Undefined]",km=lr?lr.toStringTag:void 0;function Va(e){return e==null?e===void 0?c3:u3:km&&km in Object(e)?a3(e):l3(e)}function vi(e){return e!=null&&typeof e=="object"}var f3="[object Symbol]";function uf(e){return typeof e=="symbol"||vi(e)&&Va(e)==f3}function F1(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var d3=Array.isArray;const ur=d3;var h3=1/0,Om=lr?lr.prototype:void 0,Pm=Om?Om.toString:void 0;function B1(e){if(typeof e=="string")return e;if(ur(e))return F1(e,B1)+"";if(uf(e))return Pm?Pm.call(e):"";var t=e+"";return t=="0"&&1/e==-h3?"-0":t}var p3=/\s/;function v3(e){for(var t=e.length;t--&&p3.test(e.charAt(t)););return t}var g3=/^\s+/;function m3(e){return e&&e.slice(0,v3(e)+1).replace(g3,"")}function cr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Am=0/0,y3=/^[-+]0x[0-9a-f]+$/i,b3=/^0b[01]+$/i,_3=/^0o[0-7]+$/i,w3=parseInt;function sh(e){if(typeof e=="number")return e;if(uf(e))return Am;if(cr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=cr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=m3(e);var n=b3.test(e);return n||_3.test(e)?w3(e.slice(2),n?2:8):y3.test(e)?Am:+e}var Im=1/0,S3=17976931348623157e292;function C3(e){if(!e)return e===0?e:0;if(e=sh(e),e===Im||e===-Im){var t=e<0?-1:1;return t*S3}return e===e?e:0}function x3(e){var t=C3(e),n=t%1;return t===t?n?t-n:t:0}function N1(e){return e}var T3="[object AsyncFunction]",E3="[object Function]",k3="[object GeneratorFunction]",O3="[object Proxy]";function $1(e){if(!cr(e))return!1;var t=Va(e);return t==E3||t==k3||t==T3||t==O3}var P3=kr["__core-js_shared__"];const qf=P3;var Mm=function(){var e=/[^.]+$/.exec(qf&&qf.keys&&qf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function A3(e){return!!Mm&&Mm in e}var I3=Function.prototype,M3=I3.toString;function Ua(e){if(e!=null){try{return M3.call(e)}catch{}try{return e+""}catch{}}return""}var R3=/[\\^$.*+?()[\]{}|]/g,L3=/^\[object .+?Constructor\]$/,D3=Function.prototype,F3=Object.prototype,B3=D3.toString,N3=F3.hasOwnProperty,$3=RegExp("^"+B3.call(N3).replace(R3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function z3(e){if(!cr(e)||A3(e))return!1;var t=$1(e)?$3:L3;return t.test(Ua(e))}function j3(e,t){return e==null?void 0:e[t]}function Ha(e,t){var n=j3(e,t);return z3(n)?n:void 0}var V3=Ha(kr,"WeakMap");const lh=V3;var Rm=Object.create,U3=function(){function e(){}return function(t){if(!cr(t))return{};if(Rm)return Rm(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const H3=U3;function W3(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 K3(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var G3=800,Y3=16,X3=Date.now;function q3(e){var t=0,n=0;return function(){var r=X3(),i=Y3-(r-n);if(n=r,i>0){if(++t>=G3)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Z3(e){return function(){return e}}var J3=function(){try{var e=Ha(Object,"defineProperty");return e({},"",{}),e}catch{}}();const wc=J3;var Q3=wc?function(e,t){return wc(e,"toString",{configurable:!0,enumerable:!1,value:Z3(t),writable:!0})}:N1;const eP=Q3;var tP=q3(eP);const nP=tP;function rP(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function iP(e,t,n,r){for(var i=e.length,u=n+(r?1:-1);r?u--:++u<i;)if(t(e[u],u,e))return u;return-1}var aP=9007199254740991,oP=/^(?:0|[1-9]\d*)$/;function Xp(e,t){var n=typeof e;return t=t==null?aP:t,!!t&&(n=="number"||n!="symbol"&&oP.test(e))&&e>-1&&e%1==0&&e<t}function z1(e,t,n){t=="__proto__"&&wc?wc(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function qp(e,t){return e===t||e!==e&&t!==t}var sP=Object.prototype,lP=sP.hasOwnProperty;function Zp(e,t,n){var r=e[t];(!(lP.call(e,t)&&qp(r,n))||n===void 0&&!(t in e))&&z1(e,t,n)}function zl(e,t,n,r){var i=!n;n||(n={});for(var u=-1,p=t.length;++u<p;){var o=t[u],a=r?r(n[o],e[o],o,n,e):void 0;a===void 0&&(a=e[o]),i?z1(n,o,a):Zp(n,o,a)}return n}var Lm=Math.max;function uP(e,t,n){return t=Lm(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,u=Lm(r.length-t,0),p=Array(u);++i<u;)p[i]=r[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=r[i];return o[t]=n(p),W3(e,this,o)}}var cP=9007199254740991;function Jp(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=cP}function j1(e){return e!=null&&Jp(e.length)&&!$1(e)}var fP=Object.prototype;function Qp(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||fP;return e===n}function dP(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var hP="[object Arguments]";function Dm(e){return vi(e)&&Va(e)==hP}var V1=Object.prototype,pP=V1.hasOwnProperty,vP=V1.propertyIsEnumerable,gP=Dm(function(){return arguments}())?Dm:function(e){return vi(e)&&pP.call(e,"callee")&&!vP.call(e,"callee")};const ev=gP;function mP(){return!1}var U1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Fm=U1&&typeof module=="object"&&module&&!module.nodeType&&module,yP=Fm&&Fm.exports===U1,Bm=yP?kr.Buffer:void 0,bP=Bm?Bm.isBuffer:void 0,_P=bP||mP;const Sc=_P;var wP="[object Arguments]",SP="[object Array]",CP="[object Boolean]",xP="[object Date]",TP="[object Error]",EP="[object Function]",kP="[object Map]",OP="[object Number]",PP="[object Object]",AP="[object RegExp]",IP="[object Set]",MP="[object String]",RP="[object WeakMap]",LP="[object ArrayBuffer]",DP="[object DataView]",FP="[object Float32Array]",BP="[object Float64Array]",NP="[object Int8Array]",$P="[object Int16Array]",zP="[object Int32Array]",jP="[object Uint8Array]",VP="[object Uint8ClampedArray]",UP="[object Uint16Array]",HP="[object Uint32Array]",kt={};kt[FP]=kt[BP]=kt[NP]=kt[$P]=kt[zP]=kt[jP]=kt[VP]=kt[UP]=kt[HP]=!0;kt[wP]=kt[SP]=kt[LP]=kt[CP]=kt[DP]=kt[xP]=kt[TP]=kt[EP]=kt[kP]=kt[OP]=kt[PP]=kt[AP]=kt[IP]=kt[MP]=kt[RP]=!1;function WP(e){return vi(e)&&Jp(e.length)&&!!kt[Va(e)]}function tv(e){return function(t){return e(t)}}var H1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ds=H1&&typeof module=="object"&&module&&!module.nodeType&&module,KP=Ds&&Ds.exports===H1,Zf=KP&&L1.process,GP=function(){try{var e=Ds&&Ds.require&&Ds.require("util").types;return e||Zf&&Zf.binding&&Zf.binding("util")}catch{}}();const Ao=GP;var Nm=Ao&&Ao.isTypedArray,YP=Nm?tv(Nm):WP;const W1=YP;var XP=Object.prototype,qP=XP.hasOwnProperty;function K1(e,t){var n=ur(e),r=!n&&ev(e),i=!n&&!r&&Sc(e),u=!n&&!r&&!i&&W1(e),p=n||r||i||u,o=p?dP(e.length,String):[],a=o.length;for(var c in e)(t||qP.call(e,c))&&!(p&&(c=="length"||i&&(c=="offset"||c=="parent")||u&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Xp(c,a)))&&o.push(c);return o}function G1(e,t){return function(n){return e(t(n))}}var ZP=G1(Object.keys,Object);const JP=ZP;var QP=Object.prototype,e4=QP.hasOwnProperty;function t4(e){if(!Qp(e))return JP(e);var t=[];for(var n in Object(e))e4.call(e,n)&&n!="constructor"&&t.push(n);return t}function cf(e){return j1(e)?K1(e):t4(e)}function n4(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var r4=Object.prototype,i4=r4.hasOwnProperty;function a4(e){if(!cr(e))return n4(e);var t=Qp(e),n=[];for(var r in e)r=="constructor"&&(t||!i4.call(e,r))||n.push(r);return n}function nv(e){return j1(e)?K1(e,!0):a4(e)}var o4=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s4=/^\w*$/;function rv(e,t){if(ur(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||uf(e)?!0:s4.test(e)||!o4.test(e)||t!=null&&e in Object(t)}var l4=Ha(Object,"create");const ol=l4;function u4(){this.__data__=ol?ol(null):{},this.size=0}function c4(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var f4="__lodash_hash_undefined__",d4=Object.prototype,h4=d4.hasOwnProperty;function p4(e){var t=this.__data__;if(ol){var n=t[e];return n===f4?void 0:n}return h4.call(t,e)?t[e]:void 0}var v4=Object.prototype,g4=v4.hasOwnProperty;function m4(e){var t=this.__data__;return ol?t[e]!==void 0:g4.call(t,e)}var y4="__lodash_hash_undefined__";function b4(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ol&&t===void 0?y4:t,this}function Ia(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])}}Ia.prototype.clear=u4;Ia.prototype.delete=c4;Ia.prototype.get=p4;Ia.prototype.has=m4;Ia.prototype.set=b4;function _4(){this.__data__=[],this.size=0}function ff(e,t){for(var n=e.length;n--;)if(qp(e[n][0],t))return n;return-1}var w4=Array.prototype,S4=w4.splice;function C4(e){var t=this.__data__,n=ff(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():S4.call(t,n,1),--this.size,!0}function x4(e){var t=this.__data__,n=ff(t,e);return n<0?void 0:t[n][1]}function T4(e){return ff(this.__data__,e)>-1}function E4(e,t){var n=this.__data__,r=ff(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function _i(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])}}_i.prototype.clear=_4;_i.prototype.delete=C4;_i.prototype.get=x4;_i.prototype.has=T4;_i.prototype.set=E4;var k4=Ha(kr,"Map");const sl=k4;function O4(){this.size=0,this.__data__={hash:new Ia,map:new(sl||_i),string:new Ia}}function P4(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function df(e,t){var n=e.__data__;return P4(t)?n[typeof t=="string"?"string":"hash"]:n.map}function A4(e){var t=df(this,e).delete(e);return this.size-=t?1:0,t}function I4(e){return df(this,e).get(e)}function M4(e){return df(this,e).has(e)}function R4(e,t){var n=df(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function wi(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])}}wi.prototype.clear=O4;wi.prototype.delete=A4;wi.prototype.get=I4;wi.prototype.has=M4;wi.prototype.set=R4;var L4="Expected a function";function iv(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(L4);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],u=n.cache;if(u.has(i))return u.get(i);var p=e.apply(this,r);return n.cache=u.set(i,p)||u,p};return n.cache=new(iv.Cache||wi),n}iv.Cache=wi;var D4=500;function F4(e){var t=iv(e,function(r){return n.size===D4&&n.clear(),r}),n=t.cache;return t}var B4=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,N4=/\\(\\)?/g,$4=F4(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(B4,function(n,r,i,u){t.push(i?u.replace(N4,"$1"):r||n)}),t});const z4=$4;function j4(e){return e==null?"":B1(e)}function Ko(e,t){return ur(e)?e:rv(e,t)?[e]:z4(j4(e))}var V4=1/0;function Go(e){if(typeof e=="string"||uf(e))return e;var t=e+"";return t=="0"&&1/e==-V4?"-0":t}function hf(e,t){t=Ko(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Go(t[n++])];return n&&n==r?e:void 0}function Gn(e,t,n){var r=e==null?void 0:hf(e,t);return r===void 0?n:r}function av(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var $m=lr?lr.isConcatSpreadable:void 0;function U4(e){return ur(e)||ev(e)||!!($m&&e&&e[$m])}function Y1(e,t,n,r,i){var u=-1,p=e.length;for(n||(n=U4),i||(i=[]);++u<p;){var o=e[u];t>0&&n(o)?t>1?Y1(o,t-1,n,r,i):av(i,o):r||(i[i.length]=o)}return i}function H4(e){var t=e==null?0:e.length;return t?Y1(e,1):[]}function X1(e){return nP(uP(e,void 0,H4),e+"")}var W4=G1(Object.getPrototypeOf,Object);const ov=W4;var K4="[object Object]",G4=Function.prototype,Y4=Object.prototype,q1=G4.toString,X4=Y4.hasOwnProperty,q4=q1.call(Object);function Z4(e){if(!vi(e)||Va(e)!=K4)return!1;var t=ov(e);if(t===null)return!0;var n=X4.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&q1.call(n)==q4}function J4(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var u=Array(i);++r<i;)u[r]=e[r+t];return u}function Wn(){if(!arguments.length)return[];var e=arguments[0];return ur(e)?e:[e]}function Q4(){this.__data__=new _i,this.size=0}function eA(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function tA(e){return this.__data__.get(e)}function nA(e){return this.__data__.has(e)}var rA=200;function iA(e,t){var n=this.__data__;if(n instanceof _i){var r=n.__data__;if(!sl||r.length<rA-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new wi(r)}return n.set(e,t),this.size=n.size,this}function Nr(e){var t=this.__data__=new _i(e);this.size=t.size}Nr.prototype.clear=Q4;Nr.prototype.delete=eA;Nr.prototype.get=tA;Nr.prototype.has=nA;Nr.prototype.set=iA;function aA(e,t){return e&&zl(t,cf(t),e)}function oA(e,t){return e&&zl(t,nv(t),e)}var Z1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zm=Z1&&typeof module=="object"&&module&&!module.nodeType&&module,sA=zm&&zm.exports===Z1,jm=sA?kr.Buffer:void 0,Vm=jm?jm.allocUnsafe:void 0;function lA(e,t){if(t)return e.slice();var n=e.length,r=Vm?Vm(n):new e.constructor(n);return e.copy(r),r}function uA(e,t){for(var n=-1,r=e==null?0:e.length,i=0,u=[];++n<r;){var p=e[n];t(p,n,e)&&(u[i++]=p)}return u}function J1(){return[]}var cA=Object.prototype,fA=cA.propertyIsEnumerable,Um=Object.getOwnPropertySymbols,dA=Um?function(e){return e==null?[]:(e=Object(e),uA(Um(e),function(t){return fA.call(e,t)}))}:J1;const sv=dA;function hA(e,t){return zl(e,sv(e),t)}var pA=Object.getOwnPropertySymbols,vA=pA?function(e){for(var t=[];e;)av(t,sv(e)),e=ov(e);return t}:J1;const Q1=vA;function gA(e,t){return zl(e,Q1(e),t)}function ew(e,t,n){var r=t(e);return ur(e)?r:av(r,n(e))}function uh(e){return ew(e,cf,sv)}function tw(e){return ew(e,nv,Q1)}var mA=Ha(kr,"DataView");const ch=mA;var yA=Ha(kr,"Promise");const fh=yA;var bA=Ha(kr,"Set");const dh=bA;var Hm="[object Map]",_A="[object Object]",Wm="[object Promise]",Km="[object Set]",Gm="[object WeakMap]",Ym="[object DataView]",wA=Ua(ch),SA=Ua(sl),CA=Ua(fh),xA=Ua(dh),TA=Ua(lh),fa=Va;(ch&&fa(new ch(new ArrayBuffer(1)))!=Ym||sl&&fa(new sl)!=Hm||fh&&fa(fh.resolve())!=Wm||dh&&fa(new dh)!=Km||lh&&fa(new lh)!=Gm)&&(fa=function(e){var t=Va(e),n=t==_A?e.constructor:void 0,r=n?Ua(n):"";if(r)switch(r){case wA:return Ym;case SA:return Hm;case CA:return Wm;case xA:return Km;case TA:return Gm}return t});const ll=fa;var EA=Object.prototype,kA=EA.hasOwnProperty;function OA(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&kA.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var PA=kr.Uint8Array;const Cc=PA;function lv(e){var t=new e.constructor(e.byteLength);return new Cc(t).set(new Cc(e)),t}function AA(e,t){var n=t?lv(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var IA=/\w*$/;function MA(e){var t=new e.constructor(e.source,IA.exec(e));return t.lastIndex=e.lastIndex,t}var Xm=lr?lr.prototype:void 0,qm=Xm?Xm.valueOf:void 0;function RA(e){return qm?Object(qm.call(e)):{}}function LA(e,t){var n=t?lv(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var DA="[object Boolean]",FA="[object Date]",BA="[object Map]",NA="[object Number]",$A="[object RegExp]",zA="[object Set]",jA="[object String]",VA="[object Symbol]",UA="[object ArrayBuffer]",HA="[object DataView]",WA="[object Float32Array]",KA="[object Float64Array]",GA="[object Int8Array]",YA="[object Int16Array]",XA="[object Int32Array]",qA="[object Uint8Array]",ZA="[object Uint8ClampedArray]",JA="[object Uint16Array]",QA="[object Uint32Array]";function eI(e,t,n){var r=e.constructor;switch(t){case UA:return lv(e);case DA:case FA:return new r(+e);case HA:return AA(e,n);case WA:case KA:case GA:case YA:case XA:case qA:case ZA:case JA:case QA:return LA(e,n);case BA:return new r;case NA:case jA:return new r(e);case $A:return MA(e);case zA:return new r;case VA:return RA(e)}}function tI(e){return typeof e.constructor=="function"&&!Qp(e)?H3(ov(e)):{}}var nI="[object Map]";function rI(e){return vi(e)&&ll(e)==nI}var Zm=Ao&&Ao.isMap,iI=Zm?tv(Zm):rI;const aI=iI;var oI="[object Set]";function sI(e){return vi(e)&&ll(e)==oI}var Jm=Ao&&Ao.isSet,lI=Jm?tv(Jm):sI;const uI=lI;var cI=1,fI=2,dI=4,nw="[object Arguments]",hI="[object Array]",pI="[object Boolean]",vI="[object Date]",gI="[object Error]",rw="[object Function]",mI="[object GeneratorFunction]",yI="[object Map]",bI="[object Number]",iw="[object Object]",_I="[object RegExp]",wI="[object Set]",SI="[object String]",CI="[object Symbol]",xI="[object WeakMap]",TI="[object ArrayBuffer]",EI="[object DataView]",kI="[object Float32Array]",OI="[object Float64Array]",PI="[object Int8Array]",AI="[object Int16Array]",II="[object Int32Array]",MI="[object Uint8Array]",RI="[object Uint8ClampedArray]",LI="[object Uint16Array]",DI="[object Uint32Array]",xt={};xt[nw]=xt[hI]=xt[TI]=xt[EI]=xt[pI]=xt[vI]=xt[kI]=xt[OI]=xt[PI]=xt[AI]=xt[II]=xt[yI]=xt[bI]=xt[iw]=xt[_I]=xt[wI]=xt[SI]=xt[CI]=xt[MI]=xt[RI]=xt[LI]=xt[DI]=!0;xt[gI]=xt[rw]=xt[xI]=!1;function _o(e,t,n,r,i,u){var p,o=t&cI,a=t&fI,c=t&dI;if(n&&(p=i?n(e,r,i,u):n(e)),p!==void 0)return p;if(!cr(e))return e;var h=ur(e);if(h){if(p=OA(e),!o)return K3(e,p)}else{var l=ll(e),f=l==rw||l==mI;if(Sc(e))return lA(e,o);if(l==iw||l==nw||f&&!i){if(p=a||f?{}:tI(e),!o)return a?gA(e,oA(p,e)):hA(e,aA(p,e))}else{if(!xt[l])return i?e:{};p=eI(e,l,o)}}u||(u=new Nr);var s=u.get(e);if(s)return s;u.set(e,p),uI(e)?e.forEach(function(v){p.add(_o(v,t,n,v,e,u))}):aI(e)&&e.forEach(function(v,m){p.set(m,_o(v,t,n,m,e,u))});var d=c?a?tw:uh:a?nv:cf,g=h?void 0:d(e);return rP(g||e,function(v,m){g&&(m=v,v=e[m]),Zp(p,m,_o(v,t,n,m,e,u))}),p}var FI=4;function Qm(e){return _o(e,FI)}var BI=1,NI=4;function e0(e){return _o(e,BI|NI)}var $I="__lodash_hash_undefined__";function zI(e){return this.__data__.set(e,$I),this}function jI(e){return this.__data__.has(e)}function xc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new wi;++t<n;)this.add(e[t])}xc.prototype.add=xc.prototype.push=zI;xc.prototype.has=jI;function VI(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 UI(e,t){return e.has(t)}var HI=1,WI=2;function aw(e,t,n,r,i,u){var p=n&HI,o=e.length,a=t.length;if(o!=a&&!(p&&a>o))return!1;var c=u.get(e),h=u.get(t);if(c&&h)return c==t&&h==e;var l=-1,f=!0,s=n&WI?new xc:void 0;for(u.set(e,t),u.set(t,e);++l<o;){var d=e[l],g=t[l];if(r)var v=p?r(g,d,l,t,e,u):r(d,g,l,e,t,u);if(v!==void 0){if(v)continue;f=!1;break}if(s){if(!VI(t,function(m,y){if(!UI(s,y)&&(d===m||i(d,m,n,r,u)))return s.push(y)})){f=!1;break}}else if(!(d===g||i(d,g,n,r,u))){f=!1;break}}return u.delete(e),u.delete(t),f}function KI(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function GI(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var YI=1,XI=2,qI="[object Boolean]",ZI="[object Date]",JI="[object Error]",QI="[object Map]",e5="[object Number]",t5="[object RegExp]",n5="[object Set]",r5="[object String]",i5="[object Symbol]",a5="[object ArrayBuffer]",o5="[object DataView]",t0=lr?lr.prototype:void 0,Jf=t0?t0.valueOf:void 0;function s5(e,t,n,r,i,u,p){switch(n){case o5:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case a5:return!(e.byteLength!=t.byteLength||!u(new Cc(e),new Cc(t)));case qI:case ZI:case e5:return qp(+e,+t);case JI:return e.name==t.name&&e.message==t.message;case t5:case r5:return e==t+"";case QI:var o=KI;case n5:var a=r&YI;if(o||(o=GI),e.size!=t.size&&!a)return!1;var c=p.get(e);if(c)return c==t;r|=XI,p.set(e,t);var h=aw(o(e),o(t),r,i,u,p);return p.delete(e),h;case i5:if(Jf)return Jf.call(e)==Jf.call(t)}return!1}var l5=1,u5=Object.prototype,c5=u5.hasOwnProperty;function f5(e,t,n,r,i,u){var p=n&l5,o=uh(e),a=o.length,c=uh(t),h=c.length;if(a!=h&&!p)return!1;for(var l=a;l--;){var f=o[l];if(!(p?f in t:c5.call(t,f)))return!1}var s=u.get(e),d=u.get(t);if(s&&d)return s==t&&d==e;var g=!0;u.set(e,t),u.set(t,e);for(var v=p;++l<a;){f=o[l];var m=e[f],y=t[f];if(r)var b=p?r(y,m,f,t,e,u):r(m,y,f,e,t,u);if(!(b===void 0?m===y||i(m,y,n,r,u):b)){g=!1;break}v||(v=f=="constructor")}if(g&&!v){var _=e.constructor,S=t.constructor;_!=S&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof S=="function"&&S instanceof S)&&(g=!1)}return u.delete(e),u.delete(t),g}var d5=1,n0="[object Arguments]",r0="[object Array]",cu="[object Object]",h5=Object.prototype,i0=h5.hasOwnProperty;function p5(e,t,n,r,i,u){var p=ur(e),o=ur(t),a=p?r0:ll(e),c=o?r0:ll(t);a=a==n0?cu:a,c=c==n0?cu:c;var h=a==cu,l=c==cu,f=a==c;if(f&&Sc(e)){if(!Sc(t))return!1;p=!0,h=!1}if(f&&!h)return u||(u=new Nr),p||W1(e)?aw(e,t,n,r,i,u):s5(e,t,a,n,r,i,u);if(!(n&d5)){var s=h&&i0.call(e,"__wrapped__"),d=l&&i0.call(t,"__wrapped__");if(s||d){var g=s?e.value():e,v=d?t.value():t;return u||(u=new Nr),i(g,v,n,r,u)}}return f?(u||(u=new Nr),f5(e,t,n,r,i,u)):!1}function pf(e,t,n,r,i){return e===t?!0:e==null||t==null||!vi(e)&&!vi(t)?e!==e&&t!==t:p5(e,t,n,r,pf,i)}var v5=1,g5=2;function m5(e,t,n,r){var i=n.length,u=i,p=!r;if(e==null)return!u;for(e=Object(e);i--;){var o=n[i];if(p&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<u;){o=n[i];var a=o[0],c=e[a],h=o[1];if(p&&o[2]){if(c===void 0&&!(a in e))return!1}else{var l=new Nr;if(r)var f=r(c,h,a,e,t,l);if(!(f===void 0?pf(h,c,v5|g5,r,l):f))return!1}}return!0}function ow(e){return e===e&&!cr(e)}function y5(e){for(var t=cf(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,ow(i)]}return t}function sw(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function b5(e){var t=y5(e);return t.length==1&&t[0][2]?sw(t[0][0],t[0][1]):function(n){return n===e||m5(n,e,t)}}function _5(e,t){return e!=null&&t in Object(e)}function w5(e,t,n){t=Ko(t,e);for(var r=-1,i=t.length,u=!1;++r<i;){var p=Go(t[r]);if(!(u=e!=null&&n(e,p)))break;e=e[p]}return u||++r!=i?u:(i=e==null?0:e.length,!!i&&Jp(i)&&Xp(p,i)&&(ur(e)||ev(e)))}function lw(e,t){return e!=null&&w5(e,t,_5)}var S5=1,C5=2;function x5(e,t){return rv(e)&&ow(t)?sw(Go(e),t):function(n){var r=Gn(n,e);return r===void 0&&r===t?lw(n,e):pf(t,r,S5|C5)}}function T5(e){return function(t){return t==null?void 0:t[e]}}function E5(e){return function(t){return hf(t,e)}}function k5(e){return rv(e)?T5(Go(e)):E5(e)}function O5(e){return typeof e=="function"?e:e==null?N1:typeof e=="object"?ur(e)?x5(e[0],e[1]):b5(e):k5(e)}var P5=function(){return kr.Date.now()};const Qf=P5;var A5="Expected a function",I5=Math.max,M5=Math.min;function ul(e,t,n){var r,i,u,p,o,a,c=0,h=!1,l=!1,f=!0;if(typeof e!="function")throw new TypeError(A5);t=sh(t)||0,cr(n)&&(h=!!n.leading,l="maxWait"in n,u=l?I5(sh(n.maxWait)||0,t):u,f="trailing"in n?!!n.trailing:f);function s(C){var T=r,E=i;return r=i=void 0,c=C,p=e.apply(E,T),p}function d(C){return c=C,o=setTimeout(m,t),h?s(C):p}function g(C){var T=C-a,E=C-c,O=t-T;return l?M5(O,u-E):O}function v(C){var T=C-a,E=C-c;return a===void 0||T>=t||T<0||l&&E>=u}function m(){var C=Qf();if(v(C))return y(C);o=setTimeout(m,g(C))}function y(C){return o=void 0,f&&r?s(C):(r=i=void 0,p)}function b(){o!==void 0&&clearTimeout(o),c=0,r=a=i=o=void 0}function _(){return o===void 0?p:y(Qf())}function S(){var C=Qf(),T=v(C);if(r=arguments,i=this,a=C,T){if(o===void 0)return d(a);if(l)return clearTimeout(o),o=setTimeout(m,t),s(a)}return o===void 0&&(o=setTimeout(m,t)),p}return S.cancel=b,S.flush=_,S}function R5(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var L5=Math.max,D5=Math.min;function F5(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=r-1;return n!==void 0&&(i=x3(n),i=n<0?L5(r+i,0):D5(i,r-1)),iP(e,O5(t),i,!0)}function cl(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}function B5(e,t){return t.length<2?e:hf(e,J4(t,0,-1))}function Wi(e,t){return pf(e,t)}function qt(e){return e==null}function N5(e){return e===void 0}function $5(e,t){return t=Ko(t,e),e=B5(e,t),e==null||delete e[Go(R5(t))]}function z5(e){return Z4(e)?void 0:e}var j5=1,V5=2,U5=4,H5=X1(function(e,t){var n={};if(e==null)return n;var r=!1;t=F1(t,function(u){return u=Ko(u,e),r||(r=u.length>1),u}),zl(e,tw(e),n),r&&(n=_o(n,j5|V5|U5,z5));for(var i=t.length;i--;)$5(n,t[i]);return n});const W5=H5;function uw(e,t,n,r){if(!cr(e))return e;t=Ko(t,e);for(var i=-1,u=t.length,p=u-1,o=e;o!=null&&++i<u;){var a=Go(t[i]),c=n;if(a==="__proto__"||a==="constructor"||a==="prototype")return e;if(i!=p){var h=o[a];c=r?r(h,a,o):void 0,c===void 0&&(c=cr(h)?h:Xp(t[i+1])?[]:{})}Zp(o,a,c),o=o[a]}return e}function K5(e,t,n){for(var r=-1,i=t.length,u={};++r<i;){var p=t[r],o=hf(e,p);n(o,p)&&uw(u,Ko(p,e),o)}return u}function G5(e,t){return K5(e,t,function(n,r){return lw(e,r)})}var Y5=X1(function(e,t){return e==null?{}:G5(e,t)});const cw=Y5;function X5(e,t,n){return e==null?e:uw(e,t,n)}var q5="Expected a function";function Fs(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(q5);return cr(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ul(e,t,{leading:r,maxWait:t,trailing:i})}const vn=e=>e===void 0,yn=e=>typeof e=="boolean",Ve=e=>typeof e=="number",rr=e=>typeof Element>"u"?!1:e instanceof Element,hh=e=>qt(e),Z5=e=>Be(e)?!Number.isNaN(Number(e)):!1,J5=e=>e===window;var Q5=Object.defineProperty,e8=Object.defineProperties,t8=Object.getOwnPropertyDescriptors,a0=Object.getOwnPropertySymbols,n8=Object.prototype.hasOwnProperty,r8=Object.prototype.propertyIsEnumerable,o0=(e,t,n)=>t in e?Q5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,i8=(e,t)=>{for(var n in t||(t={}))n8.call(t,n)&&o0(e,n,t[n]);if(a0)for(var n of a0(t))r8.call(t,n)&&o0(e,n,t[n]);return e},a8=(e,t)=>e8(e,t8(t));function Tc(e,t){var n;const r=Bt();return ja(()=>{r.value=e()},a8(i8({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),$o(r)}var s0;const ct=typeof window<"u",o8=e=>typeof e<"u",fw=e=>typeof e=="function",s8=e=>typeof e=="string",ir=()=>{},ph=ct&&((s0=window==null?void 0:window.navigator)==null?void 0:s0.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ma(e){return typeof e=="function"?e():w(e)}function uv(e,t){function n(...r){return new Promise((i,u)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(u)})}return n}const dw=e=>e();function l8(e,t={}){let n,r,i=ir;const u=o=>{clearTimeout(o),i(),i=ir};return o=>{const a=Ma(e),c=Ma(t.maxWait);return n&&u(n),a<=0||c!==void 0&&c<=0?(r&&(u(r),r=null),Promise.resolve(o())):new Promise((h,l)=>{i=t.rejectOnCancel?l:h,c&&!r&&(r=setTimeout(()=>{n&&u(n),r=null,h(o())},c)),n=setTimeout(()=>{r&&u(r),r=null,h(o())},a)})}}function u8(e,t=!0,n=!0,r=!1){let i=0,u,p=!0,o=ir,a;const c=()=>{u&&(clearTimeout(u),u=void 0,o(),o=ir)};return l=>{const f=Ma(e),s=Date.now()-i,d=()=>a=l();return c(),f<=0?(i=Date.now(),d()):(s>f&&(n||!p)?(i=Date.now(),d()):t&&(a=new Promise((g,v)=>{o=r?v:g,u=setTimeout(()=>{i=Date.now(),p=!0,g(d()),c()},Math.max(0,f-s))})),!n&&!u&&(u=setTimeout(()=>p=!0,f)),p=!1,a)}}function c8(e=dw){const t=ie(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...u)=>{t.value&&e(...u)};return{isActive:$o(t),pause:n,resume:r,eventFilter:i}}function f8(e){return e}function d8(e,t){var n;if(typeof e=="number")return e+t;const r=((n=e.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:n[0])||"",i=e.slice(r.length),u=parseFloat(r)+t;return Number.isNaN(u)?e:u+i}function ra(e){return Cp()?(xp(e),!0):!1}function h8(e){if(!wt(e))return yt(e);const t=new Proxy({},{get(n,r,i){return w(Reflect.get(e.value,r,i))},set(n,r,i){return wt(e.value[r])&&!wt(i)?e.value[r].value=i:e.value[r]=i,!0},deleteProperty(n,r){return Reflect.deleteProperty(e.value,r)},has(n,r){return Reflect.has(e.value,r)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return yt(t)}function p8(e){return h8(W(e))}function v8(e,t=200,n={}){return uv(l8(t,n),e)}function g8(e,t=200,n={}){const r=ie(e.value),i=v8(()=>{r.value=e.value},t,n);return Te(e,()=>i()),r}function m8(e,t=200,n=!1,r=!0,i=!1){return uv(u8(t,n,r,i),e)}function y8(e){return typeof e=="function"?W(e):ie(e)}function cv(e,t=!0){it()?Je(e):t?e():Ke(e)}function fl(e,t,n={}){const{immediate:r=!0}=n,i=ie(!1);let u=null;function p(){u&&(clearTimeout(u),u=null)}function o(){i.value=!1,p()}function a(...c){p(),i.value=!0,u=setTimeout(()=>{i.value=!1,u=null,e(...c)},Ma(t))}return r&&(i.value=!0,ct&&a()),ra(o),{isPending:$o(i),start:a,stop:o}}var l0=Object.getOwnPropertySymbols,b8=Object.prototype.hasOwnProperty,_8=Object.prototype.propertyIsEnumerable,w8=(e,t)=>{var n={};for(var r in e)b8.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&l0)for(var r of l0(e))t.indexOf(r)<0&&_8.call(e,r)&&(n[r]=e[r]);return n};function S8(e,t,n={}){const r=n,{eventFilter:i=dw}=r,u=w8(r,["eventFilter"]);return Te(e,uv(i,t),u)}var C8=Object.defineProperty,x8=Object.defineProperties,T8=Object.getOwnPropertyDescriptors,Ec=Object.getOwnPropertySymbols,hw=Object.prototype.hasOwnProperty,pw=Object.prototype.propertyIsEnumerable,u0=(e,t,n)=>t in e?C8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E8=(e,t)=>{for(var n in t||(t={}))hw.call(t,n)&&u0(e,n,t[n]);if(Ec)for(var n of Ec(t))pw.call(t,n)&&u0(e,n,t[n]);return e},k8=(e,t)=>x8(e,T8(t)),O8=(e,t)=>{var n={};for(var r in e)hw.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ec)for(var r of Ec(e))t.indexOf(r)<0&&pw.call(e,r)&&(n[r]=e[r]);return n};function P8(e,t,n={}){const r=n,{eventFilter:i}=r,u=O8(r,["eventFilter"]),{eventFilter:p,pause:o,resume:a,isActive:c}=c8(i);return{stop:S8(e,t,k8(E8({},u),{eventFilter:p})),pause:o,resume:a,isActive:c}}function A8(e,t,n){let r;wt(n)?r={evaluating:n}:r=n||{};const{lazy:i=!1,evaluating:u=void 0,shallow:p=!1,onError:o=ir}=r,a=ie(!i),c=p?Bt(t):ie(t);let h=0;return ja(async l=>{if(!a.value)return;h++;const f=h;let s=!1;u&&Promise.resolve().then(()=>{u.value=!0});try{const d=await e(g=>{l(()=>{u&&(u.value=!1),s||g()})});f===h&&(c.value=d)}catch(d){o(d)}finally{u&&f===h&&(u.value=!1),s=!0}}),i?W(()=>(a.value=!0,c.value)):c}function Yn(e){var t;const n=Ma(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Pn=ct?window:void 0,I8=ct?window.document:void 0;ct&&window.navigator;ct&&window.location;function ft(...e){let t,n,r,i;if(s8(e[0])||Array.isArray(e[0])?([n,r,i]=e,t=Pn):[t,n,r,i]=e,!t)return ir;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const u=[],p=()=>{u.forEach(h=>h()),u.length=0},o=(h,l,f,s)=>(h.addEventListener(l,f,s),()=>h.removeEventListener(l,f,s)),a=Te(()=>[Yn(t),Ma(i)],([h,l])=>{p(),h&&u.push(...n.flatMap(f=>r.map(s=>o(h,f,s,l))))},{immediate:!0,flush:"post"}),c=()=>{a(),p()};return ra(c),c}let c0=!1;function M8(e,t,n={}){const{window:r=Pn,ignore:i=[],capture:u=!0,detectIframe:p=!1}=n;if(!r)return;ph&&!c0&&(c0=!0,Array.from(r.document.body.children).forEach(f=>f.addEventListener("click",ir)));let o=!0;const a=f=>i.some(s=>{if(typeof s=="string")return Array.from(r.document.querySelectorAll(s)).some(d=>d===f.target||f.composedPath().includes(d));{const d=Yn(s);return d&&(f.target===d||f.composedPath().includes(d))}}),h=[ft(r,"click",f=>{const s=Yn(e);if(!(!s||s===f.target||f.composedPath().includes(s))){if(f.detail===0&&(o=!a(f)),!o){o=!0;return}t(f)}},{passive:!0,capture:u}),ft(r,"pointerdown",f=>{const s=Yn(e);s&&(o=!f.composedPath().includes(s)&&!a(f))},{passive:!0}),p&&ft(r,"blur",f=>{var s;const d=Yn(e);((s=r.document.activeElement)==null?void 0:s.tagName)==="IFRAME"&&!(d!=null&&d.contains(r.document.activeElement))&&t(f)})].filter(Boolean);return()=>h.forEach(f=>f())}const R8=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0;function f0(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=Pn,eventName:u="keydown",passive:p=!1}=r,o=R8(t);return ft(i,u,c=>{o(c)&&n(c)},p)}const L8=500;function D8(e,t,n){var r,i;const u=W(()=>Yn(e));let p;function o(){p&&(clearTimeout(p),p=void 0)}function a(h){var l,f,s,d;((l=n==null?void 0:n.modifiers)==null?void 0:l.self)&&h.target!==u.value||(o(),(f=n==null?void 0:n.modifiers)!=null&&f.prevent&&h.preventDefault(),(s=n==null?void 0:n.modifiers)!=null&&s.stop&&h.stopPropagation(),p=setTimeout(()=>t(h),(d=n==null?void 0:n.delay)!=null?d:L8))}const c={capture:(r=n==null?void 0:n.modifiers)==null?void 0:r.capture,once:(i=n==null?void 0:n.modifiers)==null?void 0:i.once};ft(u,"pointerdown",a,c),ft(u,"pointerup",o,c),ft(u,"pointerleave",o,c)}function vf(e,t=!1){const n=ie(),r=()=>n.value=Boolean(e());return r(),cv(r,t),n}function uo(e,t={}){const{window:n=Pn}=t,r=vf(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const u=ie(!1),p=()=>{!i||("removeEventListener"in i?i.removeEventListener("change",o):i.removeListener(o))},o=()=>{!r.value||(p(),i=n.matchMedia(y8(e).value),u.value=i.matches,"addEventListener"in i?i.addEventListener("change",o):i.addListener(o))};return ja(o),ra(()=>p()),u}const fv={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};var F8=Object.defineProperty,d0=Object.getOwnPropertySymbols,B8=Object.prototype.hasOwnProperty,N8=Object.prototype.propertyIsEnumerable,h0=(e,t,n)=>t in e?F8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$8=(e,t)=>{for(var n in t||(t={}))B8.call(t,n)&&h0(e,n,t[n]);if(d0)for(var n of d0(t))N8.call(t,n)&&h0(e,n,t[n]);return e};function dv(e,t={}){function n(o,a){let c=e[o];return a!=null&&(c=d8(c,a)),typeof c=="number"&&(c=`${c}px`),c}const{window:r=Pn}=t;function i(o){return r?r.matchMedia(o).matches:!1}const u=o=>uo(`(min-width: ${n(o)})`,t),p=Object.keys(e).reduce((o,a)=>(Object.defineProperty(o,a,{get:()=>u(a),enumerable:!0,configurable:!0}),o),{});return $8({greater(o){return uo(`(min-width: ${n(o,.1)})`,t)},greaterOrEqual:u,smaller(o){return uo(`(max-width: ${n(o,-.1)})`,t)},smallerOrEqual(o){return uo(`(max-width: ${n(o)})`,t)},between(o,a){return uo(`(min-width: ${n(o)}) and (max-width: ${n(a,-.1)})`,t)},isGreater(o){return i(`(min-width: ${n(o,.1)})`)},isGreaterOrEqual(o){return i(`(min-width: ${n(o)})`)},isSmaller(o){return i(`(max-width: ${n(o,-.1)})`)},isSmallerOrEqual(o){return i(`(max-width: ${n(o)})`)},isInBetween(o,a){return i(`(min-width: ${n(o)}) and (max-width: ${n(a,-.1)})`)}},p)}function z8(e){return JSON.parse(JSON.stringify(e))}const vh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},gh="__vueuse_ssr_handlers__";vh[gh]=vh[gh]||{};const j8=vh[gh];function vw(e,t){return j8[e]||t}function V8(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var U8=Object.defineProperty,p0=Object.getOwnPropertySymbols,H8=Object.prototype.hasOwnProperty,W8=Object.prototype.propertyIsEnumerable,v0=(e,t,n)=>t in e?U8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g0=(e,t)=>{for(var n in t||(t={}))H8.call(t,n)&&v0(e,n,t[n]);if(p0)for(var n of p0(t))W8.call(t,n)&&v0(e,n,t[n]);return e};const K8={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},m0="vueuse-storage";function gw(e,t,n,r={}){var i;const{flush:u="pre",deep:p=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:h,window:l=Pn,eventFilter:f,onError:s=E=>{console.error(E)}}=r,d=(h?Bt:ie)(t);if(!n)try{n=vw("getDefaultStorage",()=>{var E;return(E=Pn)==null?void 0:E.localStorage})()}catch(E){s(E)}if(!n)return d;const g=Ma(t),v=V8(g),m=(i=r.serializer)!=null?i:K8[v],{pause:y,resume:b}=P8(d,()=>_(d.value),{flush:u,deep:p,eventFilter:f});return l&&o&&(ft(l,"storage",T),ft(l,m0,C)),T(),d;function _(E){try{if(E==null)n.removeItem(e);else{const O=m.write(E),D=n.getItem(e);D!==O&&(n.setItem(e,O),l&&l.dispatchEvent(new CustomEvent(m0,{detail:{key:e,oldValue:D,newValue:O,storageArea:n}})))}}catch(O){s(O)}}function S(E){const O=E?E.newValue:n.getItem(e);if(O==null)return a&&g!==null&&n.setItem(e,m.write(g)),g;if(!E&&c){const D=m.read(O);return fw(c)?c(D,g):v==="object"&&!Array.isArray(D)?g0(g0({},g),D):D}else return typeof O!="string"?O:m.read(O)}function C(E){T(E.detail)}function T(E){if(!(E&&E.storageArea!==n)){if(E&&E.key==null){d.value=g;return}if(!(E&&E.key!==e)){y();try{d.value=S(E)}catch(O){s(O)}finally{E?Ke(b):b()}}}}}function G8(e){return uo("(prefers-color-scheme: dark)",e)}var Y8=Object.defineProperty,y0=Object.getOwnPropertySymbols,X8=Object.prototype.hasOwnProperty,q8=Object.prototype.propertyIsEnumerable,b0=(e,t,n)=>t in e?Y8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Z8=(e,t)=>{for(var n in t||(t={}))X8.call(t,n)&&b0(e,n,t[n]);if(y0)for(var n of y0(t))q8.call(t,n)&&b0(e,n,t[n]);return e};function _0(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:i=Pn,storage:u,storageKey:p="vueuse-color-scheme",listenToStorageChanges:o=!0,storageRef:a,emitAuto:c}=e,h=Z8({auto:"",light:"light",dark:"dark"},e.modes||{}),l=G8({window:i}),f=W(()=>l.value?"dark":"light"),s=a||(p==null?ie(r):gw(p,r,u,{window:i,listenToStorageChanges:o})),d=W({get(){return s.value==="auto"&&!c?f.value:s.value},set(y){s.value=y}}),g=vw("updateHTMLAttrs",(y,b,_)=>{const S=i==null?void 0:i.document.querySelector(y);if(!!S)if(b==="class"){const C=_.split(/\s/g);Object.values(h).flatMap(T=>(T||"").split(/\s/g)).filter(Boolean).forEach(T=>{C.includes(T)?S.classList.add(T):S.classList.remove(T)})}else S.setAttribute(b,_)});function v(y){var b;const _=y==="auto"?f.value:y;g(t,n,(b=h[_])!=null?b:_)}function m(y){e.onChanged?e.onChanged(y,v):v(y)}return Te(d,m,{flush:"post",immediate:!0}),c&&Te(f,()=>m(d.value),{flush:"post"}),cv(()=>m(d.value)),d}function J8({document:e=I8}={}){if(!e)return ie("visible");const t=ie(e.visibilityState);return ft(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var w0=Object.getOwnPropertySymbols,Q8=Object.prototype.hasOwnProperty,e6=Object.prototype.propertyIsEnumerable,t6=(e,t)=>{var n={};for(var r in e)Q8.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&w0)for(var r of w0(e))t.indexOf(r)<0&&e6.call(e,r)&&(n[r]=e[r]);return n};function rn(e,t,n={}){const r=n,{window:i=Pn}=r,u=t6(r,["window"]);let p;const o=vf(()=>i&&"ResizeObserver"in i),a=()=>{p&&(p.disconnect(),p=void 0)},c=Te(()=>Yn(e),l=>{a(),o.value&&i&&l&&(p=new ResizeObserver(t),p.observe(l,u))},{immediate:!0,flush:"post"}),h=()=>{a(),c()};return ra(h),{isSupported:o,stop:h}}function mw(e,t,n={}){const{root:r,rootMargin:i="0px",threshold:u=.1,window:p=Pn}=n,o=vf(()=>p&&"IntersectionObserver"in p);let a=ir;const c=o.value?Te(()=>({el:Yn(e),root:Yn(r)}),({el:l,root:f})=>{if(a(),!l)return;const s=new IntersectionObserver(t,{root:f,rootMargin:i,threshold:u});s.observe(l),a=()=>{s.disconnect(),a=ir}},{immediate:!0,flush:"post"}):ir,h=()=>{a(),c()};return ra(h),{isSupported:o,stop:h}}function er(e,t,n={}){const{window:r=Pn}=n;return gw(e,t,r==null?void 0:r.localStorage,n)}var S0=Object.getOwnPropertySymbols,n6=Object.prototype.hasOwnProperty,r6=Object.prototype.propertyIsEnumerable,i6=(e,t)=>{var n={};for(var r in e)n6.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&S0)for(var r of S0(e))t.indexOf(r)<0&&r6.call(e,r)&&(n[r]=e[r]);return n};function a6(e,t,n={}){const r=n,{window:i=Pn}=r,u=i6(r,["window"]);let p;const o=vf(()=>i&&"MutationObserver"in i),a=()=>{p&&(p.disconnect(),p=void 0)},c=Te(()=>Yn(e),l=>{a(),o.value&&i&&l&&(p=new MutationObserver(t),p.observe(l,u))},{immediate:!0}),h=()=>{a(),c()};return ra(h),{isSupported:o,stop:h}}var pa;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(pa||(pa={}));function o6(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:i,onSwipeStart:u,passive:p=!0,window:o=Pn}=t,a=yt({x:0,y:0}),c=yt({x:0,y:0}),h=W(()=>a.x-c.x),l=W(()=>a.y-c.y),{max:f,abs:s}=Math,d=W(()=>f(s(h.value),s(l.value))>=n),g=ie(!1),v=W(()=>d.value?s(h.value)>s(l.value)?h.value>0?pa.LEFT:pa.RIGHT:l.value>0?pa.UP:pa.DOWN:pa.NONE),m=O=>[O.touches[0].clientX,O.touches[0].clientY],y=(O,D)=>{a.x=O,a.y=D},b=(O,D)=>{c.x=O,c.y=D};let _;const S=s6(o==null?void 0:o.document);p?_=S?{passive:!0}:{capture:!1}:_=S?{passive:!1,capture:!0}:{capture:!0};const C=O=>{g.value&&(i==null||i(O,v.value)),g.value=!1},T=[ft(e,"touchstart",O=>{_.capture&&!_.passive&&O.preventDefault();const[D,j]=m(O);y(D,j),b(D,j),u==null||u(O)},_),ft(e,"touchmove",O=>{const[D,j]=m(O);b(D,j),!g.value&&d.value&&(g.value=!0),g.value&&(r==null||r(O))},_),ft(e,"touchend",C,_),ft(e,"touchcancel",C,_)];return{isPassiveEventSupported:S,isSwiping:g,direction:v,coordsStart:a,coordsEnd:c,lengthX:h,lengthY:l,stop:()=>T.forEach(O=>O())}}function s6(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",ir,n),e.removeEventListener("x",ir),t}var l6=Object.defineProperty,C0=Object.getOwnPropertySymbols,u6=Object.prototype.hasOwnProperty,c6=Object.prototype.propertyIsEnumerable,x0=(e,t,n)=>t in e?l6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f6=(e,t)=>{for(var n in t||(t={}))u6.call(t,n)&&x0(e,n,t[n]);if(C0)for(var n of C0(t))c6.call(t,n)&&x0(e,n,t[n]);return e};const d6={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]};f6({linear:f8},d6);function h6(e,t,n,r={}){var i,u,p;const{clone:o=!1,passive:a=!1,eventName:c,deep:h=!1,defaultValue:l}=r,f=it(),s=n||(f==null?void 0:f.emit)||((i=f==null?void 0:f.$emit)==null?void 0:i.bind(f))||((p=(u=f==null?void 0:f.proxy)==null?void 0:u.$emit)==null?void 0:p.bind(f==null?void 0:f.proxy));let d=c;t||(t="modelValue"),d=c||d||`update:${t.toString()}`;const g=m=>o?fw(o)?o(m):z8(m):m,v=()=>o8(e[t])?g(e[t]):l;if(a){const m=v(),y=ie(m);return Te(()=>e[t],b=>y.value=g(b)),Te(y,b=>{(b!==e[t]||h)&&s(d,b)},{deep:h}),y}else return W({get(){return v()},set(m){s(d,m)}})}function p6({window:e=Pn}={}){if(!e)return ie(!1);const t=ie(e.document.hasFocus());return ft(e,"blur",()=>{t.value=!1}),ft(e,"focus",()=>{t.value=!0}),t}function v6(e={}){const{window:t=Pn,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:u=!0}=e,p=ie(n),o=ie(r),a=()=>{t&&(u?(p.value=t.innerWidth,o.value=t.innerHeight):(p.value=t.document.documentElement.clientWidth,o.value=t.document.documentElement.clientHeight))};return a(),cv(a),ft("resize",a,{passive:!0}),i&&ft("orientationchange",a,{passive:!0}),{width:p,height:o}}const T0={current:0},E0=ie(0),yw=2e3,k0=Symbol("elZIndexContextKey"),bw=Symbol("zIndexContextKey"),gf=e=>{const t=it()?Ne(k0,T0):T0,n=e||(it()?Ne(bw,void 0):void 0),r=W(()=>{const p=w(n);return Ve(p)?p:yw}),i=W(()=>r.value+E0.value),u=()=>(t.current++,E0.value=t.current,i.value);return!ct&&Ne(k0),{initialZIndex:r,currentZIndex:i,nextZIndex:u}};var g6={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 m6=e=>(t,n)=>y6(t,n,w(e)),y6=(e,t,n)=>Gn(n,e,e).replace(/\{(\w+)\}/g,(r,i)=>{var u;return`${(u=t==null?void 0:t[i])!=null?u:`{${i}}`}`}),b6=e=>{const t=W(()=>w(e).name),n=wt(e)?e:ie(e);return{lang:t,locale:n,t:m6(e)}},_w=Symbol("localeContextKey"),Gt=e=>{const t=e||Ne(_w,ie());return b6(W(()=>t.value||g6))},ww="__epPropKey",Se=e=>e,_6=e=>Ye(e)&&!!e[ww],mf=(e,t)=>{if(!Ye(e)||_6(e))return e;const{values:n,required:r,default:i,type:u,validator:p}=e,a={type:u,required:!!r,validator:n||p?c=>{let h=!1,l=[];if(n&&(l=Array.from(n),nt(e,"default")&&l.push(i),h||(h=l.includes(c))),p&&(h||(h=p(c))),!h&&l.length>0){const f=[...new Set(l)].map(s=>JSON.stringify(s)).join(", ");HT(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(c)}.`)}return h}:void 0,[ww]:!0};return nt(e,"default")&&(a.default=i),a},Me=e=>cl(Object.entries(e).map(([t,n])=>[t,mf(n,t)])),Wa=["","default","small","large"],Tr=mf({type:String,values:Wa,required:!1}),Sw=Symbol("size"),Cw=()=>{const e=Ne(Sw,{});return W(()=>w(e.size)||"")},xw=Symbol("emptyValuesContextKey"),w6=["",void 0,null],S6=void 0,hv=Me({emptyValues:Array,valueOnClear:{type:Se([String,Number,Boolean,Function]),default:void 0,validator:e=>Re(e)?!e():!e}}),Tw=(e,t)=>{const n=it()?Ne(xw,ie({})):ie({}),r=W(()=>e.emptyValues||n.value.emptyValues||w6),i=W(()=>Re(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Re(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:S6),u=p=>r.value.includes(p);return r.value.includes(i.value),{emptyValues:r,valueOnClear:i,isEmptyValue:u}},mh=e=>Object.keys(e),C6=e=>Object.entries(e),ed=(e,t,n)=>({get value(){return Gn(e,t,n)},set value(r){X5(e,t,r)}}),kc=ie();function jl(e,t=void 0){const n=it()?Ne(M1,kc):kc;return e?W(()=>{var r,i;return(i=(r=n.value)==null?void 0:r[e])!=null?i:t}):n}function Ew(e,t){const n=jl(),r=Ae(e,W(()=>{var o;return((o=n.value)==null?void 0:o.namespace)||Ls})),i=Gt(W(()=>{var o;return(o=n.value)==null?void 0:o.locale})),u=gf(W(()=>{var o;return((o=n.value)==null?void 0:o.zIndex)||yw})),p=W(()=>{var o;return w(t)||((o=n.value)==null?void 0:o.size)||""});return kw(W(()=>w(n)||{})),{ns:r,locale:i,zIndex:u,size:p}}const kw=(e,t,n=!1)=>{var r;const i=!!it(),u=i?jl():void 0,p=(r=t==null?void 0:t.provide)!=null?r:i?pt:void 0;if(!p)return;const o=W(()=>{const a=w(e);return u!=null&&u.value?x6(u.value,a):a});return p(M1,o),p(_w,W(()=>o.value.locale)),p(R1,W(()=>o.value.namespace)),p(bw,W(()=>o.value.zIndex)),p(Sw,{size:W(()=>o.value.size||"")}),p(xw,W(()=>({emptyValues:o.value.emptyValues,valueOnClear:o.value.valueOnClear}))),(n||!kc.value)&&(kc.value=o.value),o},x6=(e,t)=>{const n=[...new Set([...mh(e),...mh(t)])],r={};for(const i of n)r[i]=t[i]!==void 0?t[i]:e[i];return r},et="update:modelValue",Pt="change",ar="input";var Le=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n};const Ow=(e="")=>e.split(" ").filter(t=>!!t.trim()),yh=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},gs=(e,t)=>{!e||!t.trim()||e.classList.add(...Ow(t))},Ku=(e,t)=>{!e||!t.trim()||e.classList.remove(...Ow(t))},Pw=(e,t)=>{var n;if(!ct||!e||!t)return"";let r=Zn(t);r==="float"&&(r="cssFloat");try{const i=e.style[r];if(i)return i;const u=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return u?u[r]:""}catch{return e.style[r]}};function An(e,t="px"){if(!e)return"";if(Ve(e)||Z5(e))return`${e}${t}`;if(Be(e))return e}const T6=(e,t)=>{if(!ct)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=Pw(e,n);return["scroll","auto","overlay"].some(i=>r.includes(i))},E6=(e,t)=>{if(!ct)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(T6(n,t))return n;n=n.parentNode}return n};let fu;const k6=e=>{var t;if(!ct)return 0;if(fu!==void 0)return fu;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 i=document.createElement("div");i.style.width="100%",n.appendChild(i);const u=i.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),fu=r-u,fu};function O6(e,t){if(!ct)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 i=t.offsetTop+n.reduce((a,c)=>a+c.offsetTop,0),u=i+t.offsetHeight,p=e.scrollTop,o=p+e.clientHeight;i<p?e.scrollTop=i:u>o&&(e.scrollTop=u-e.clientHeight)}class P6 extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Zt(e,t){throw new P6(`[${e}] ${t}`)}const dt=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t!=null?t:{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},A6=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),I6=(e,t)=>(e.install=n=>{n.directive(t,e)},e),pr=e=>(e.install=rt,e),M6=Me({size:{type:Se([Number,String])},color:{type:String}}),R6=pe({name:"ElIcon",inheritAttrs:!1}),L6=pe({...R6,props:M6,setup(e){const t=e,n=Ae("icon"),r=W(()=>{const{size:i,color:u}=t;return!i&&!u?{}:{fontSize:vn(i)?void 0:An(i),"--color":u}});return(i,u)=>($(),oe("i",$t({class:w(n).b(),style:w(r)},i.$attrs),[Ce(i.$slots,"default")],16))}});var D6=Le(L6,[["__file","icon.vue"]]);const De=dt(D6);function O0(){let e;const t=(r,i)=>{n(),e=window.setTimeout(r,i)},n=()=>window.clearTimeout(e);return ra(()=>n()),{registerTimeout:t,cancelTimeout:n}}const F6=Me({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),B6=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:i})=>{const{registerTimeout:u}=O0(),{registerTimeout:p,cancelTimeout:o}=O0();return{onOpen:h=>{u(()=>{r(h);const l=w(n);Ve(l)&&l>0&&p(()=>{i(h)},l)},w(e))},onClose:h=>{o(),u(()=>{i(h)},w(t))}}},Rt=Se([String,Object,Function]),N6={Close:Vr},Aw={Close:Vr,SuccessFilled:A1,InfoFilled:_c,WarningFilled:Gp,CircleCloseFilled:T1},Oc={primary:_c,success:A1,warning:Gp,error:T1,info:_c},Iw={validating:al,success:$l,error:sf},$6=()=>ct&&/firefox/i.test(window.navigator.userAgent);let Rn;const z6={height:"0",visibility:"hidden",overflow:$6()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},j6=["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","word-break"];function V6(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),i=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:j6.map(p=>[p,t.getPropertyValue(p)]),paddingSize:r,borderSize:i,boxSizing:n}}function P0(e,t=1,n){var r,i;Rn||(Rn=document.createElement("textarea"),((r=e.parentNode)!=null?r:document.body).appendChild(Rn));const{paddingSize:u,borderSize:p,boxSizing:o,contextStyle:a}=V6(e);a.forEach(([f,s])=>Rn==null?void 0:Rn.style.setProperty(f,s)),Object.entries(z6).forEach(([f,s])=>Rn==null?void 0:Rn.style.setProperty(f,s,"important")),Rn.value=e.value||e.placeholder||"";let c=Rn.scrollHeight;const h={};o==="border-box"?c=c+p:o==="content-box"&&(c=c-u),Rn.value="";const l=Rn.scrollHeight-u;if(Ve(t)){let f=l*t;o==="border-box"&&(f=f+u+p),c=Math.max(f,c),h.minHeight=`${f}px`}if(Ve(n)){let f=l*n;o==="border-box"&&(f=f+u+p),c=Math.min(f,c)}return h.height=`${c}px`,(i=Rn.parentNode)==null||i.removeChild(Rn),Rn=void 0,h}const Ht=e=>e,U6=Me({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Hr=e=>cw(U6,e),H6=Me({id:{type:String,default:void 0},size:Tr,disabled:Boolean,modelValue:{type:Se([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:Se([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,clearIcon:{type:Rt,default:sf},showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:Rt},prefixIcon:{type:Rt},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Se([Object,Array,String]),default:()=>Ht({})},autofocus:Boolean,rows:{type:Number,default:2},...Hr(["ariaLabel"]),inputmode:{type:Se(String),default:void 0},name:String}),W6={[et]:e=>Be(e),input:e=>Be(e),change:e=>Be(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},K6=["class","style"],G6=/^on[A-Z]/,Mw=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=W(()=>((n==null?void 0:n.value)||[]).concat(K6)),i=it();return W(i?()=>{var u;return cl(Object.entries((u=i.proxy)==null?void 0:u.$attrs).filter(([p])=>!r.value.includes(p)&&!(t&&G6.test(p))))}:()=>({}))},A0={prefix:Math.floor(Math.random()*1e4),current:0},Y6=Symbol("elIdInjection"),pv=()=>it()?Ne(Y6,A0):A0,Er=e=>{const t=pv(),n=Yp();return Tc(()=>w(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},Yo=Symbol("formContextKey"),Ra=Symbol("formItemContextKey"),ia=()=>{const e=Ne(Yo,void 0),t=Ne(Ra,void 0);return{form:e,formItem:t}},Xo=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=ie(!1)),r||(r=ie(!1));const i=it(),u=()=>{let c=i==null?void 0:i.parent;for(;c;){if(c.type.name==="ElFormItem")return!1;if(c.type.name==="ElLabelWrap")return!0;c=c.parent}return!1},p=ie();let o;const a=W(()=>{var c;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((c=t.inputIds)==null?void 0:c.length)<=1)});return Je(()=>{o=Te([En(e,"id"),n],([c,h])=>{const l=c!=null?c:h?void 0:Er().value;l!==p.value&&((t==null?void 0:t.removeInputId)&&!u()&&(p.value&&t.removeInputId(p.value),!(r!=null&&r.value)&&!h&&l&&t.addInputId(l)),p.value=l)},{immediate:!0})}),jo(()=>{o&&o(),t!=null&&t.removeInputId&&p.value&&t.removeInputId(p.value)}),{isLabeledByFormItem:a,inputId:p}},Rw=e=>{const t=it();return W(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})},Or=(e,t={})=>{const n=ie(void 0),r=t.prop?n:Rw("size"),i=t.global?n:Cw(),u=t.form?{size:void 0}:Ne(Yo,void 0),p=t.formItem?{size:void 0}:Ne(Ra,void 0);return W(()=>r.value||w(e)||(p==null?void 0:p.size)||(u==null?void 0:u.size)||i.value||"")},vr=e=>{const t=Rw("disabled"),n=Ne(Yo,void 0);return W(()=>t.value||w(e)||(n==null?void 0:n.disabled)||!1)},X6='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',q6=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,I0=e=>Array.from(e.querySelectorAll(X6)).filter(t=>dl(t)&&q6(t)),dl=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}},Gu=function(e,t,...n){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const i=document.createEvent(r);return i.initEvent(t,...n),e.dispatchEvent(i),e};function vv(e,{disabled:t,beforeFocus:n,afterFocus:r,beforeBlur:i,afterBlur:u}={}){const p=it(),{emit:o}=p,a=Bt(),c=ie(!1),h=s=>{const d=Re(n)?n(s):!1;w(t)||c.value||d||(c.value=!0,o("focus",s),r==null||r())},l=s=>{var d;const g=Re(i)?i(s):!1;w(t)||s.relatedTarget&&((d=a.value)==null?void 0:d.contains(s.relatedTarget))||g||(c.value=!1,o("blur",s),u==null||u())},f=s=>{var d,g;w(t)||dl(s.target)||((d=a.value)==null?void 0:d.contains(document.activeElement))&&a.value!==document.activeElement||(g=e.value)==null||g.focus()};return Te([a,()=>w(t)],([s,d])=>{!s||(d?s.removeAttribute("tabindex"):s.setAttribute("tabindex","-1"))}),ft(a,"focus",h,!0),ft(a,"blur",l,!0),ft(a,"click",f,!0),{isFocused:c,wrapperRef:a,handleFocus:h,handleBlur:l}}const Z6=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function Lw({afterComposition:e,emit:t}){const n=ie(!1),r=o=>{t==null||t("compositionstart",o),n.value=!0},i=o=>{var a;t==null||t("compositionupdate",o);const c=(a=o.target)==null?void 0:a.value,h=c[c.length-1]||"";n.value=!Z6(h)},u=o=>{t==null||t("compositionend",o),n.value&&(n.value=!1,Ke(()=>e(o)))};return{isComposing:n,handleComposition:o=>{o.type==="compositionend"?u(o):i(o)},handleCompositionStart:r,handleCompositionUpdate:i,handleCompositionEnd:u}}function J6(e){let t;function n(){if(e.value==null)return;const{selectionStart:i,selectionEnd:u,value:p}=e.value;if(i==null||u==null)return;const o=p.slice(0,Math.max(0,i)),a=p.slice(Math.max(0,u));t={selectionStart:i,selectionEnd:u,value:p,beforeTxt:o,afterTxt:a}}function r(){if(e.value==null||t==null)return;const{value:i}=e.value,{beforeTxt:u,afterTxt:p,selectionStart:o}=t;if(u==null||p==null||o==null)return;let a=i.length;if(i.endsWith(p))a=i.length-p.length;else if(i.startsWith(u))a=u.length;else{const c=u[o-1],h=i.indexOf(c,o-1);h!==-1&&(a=h+1)}e.value.setSelectionRange(a,a)}return[n,r]}const Q6="ElInput",eM=pe({name:Q6,inheritAttrs:!1}),tM=pe({...eM,props:H6,emits:W6,setup(e,{expose:t,emit:n}){const r=e,i=k_(),u=Mw(),p=Vo(),o=W(()=>[r.type==="textarea"?g.b():d.b(),d.m(f.value),d.is("disabled",s.value),d.is("exceed",M.value),{[d.b("group")]:p.prepend||p.append,[d.m("prefix")]:p.prefix||r.prefixIcon,[d.m("suffix")]:p.suffix||r.suffixIcon||r.clearable||r.showPassword,[d.bm("suffix","password-clear")]:te.value&&A.value,[d.b("hidden")]:r.type==="hidden"},i.class]),a=W(()=>[d.e("wrapper"),d.is("focus",E.value)]),{form:c,formItem:h}=ia(),{inputId:l}=Xo(r,{formItemContext:h}),f=Or(),s=vr(),d=Ae("input"),g=Ae("textarea"),v=Bt(),m=Bt(),y=ie(!1),b=ie(!1),_=ie(),S=Bt(r.inputStyle),C=W(()=>v.value||m.value),{wrapperRef:T,isFocused:E,handleFocus:O,handleBlur:D}=vv(C,{disabled:s,afterBlur(){var Z;r.validateEvent&&((Z=h==null?void 0:h.validate)==null||Z.call(h,"blur").catch(ue=>void 0))}}),j=W(()=>{var Z;return(Z=c==null?void 0:c.statusIcon)!=null?Z:!1}),k=W(()=>(h==null?void 0:h.validateState)||""),U=W(()=>k.value&&Iw[k.value]),P=W(()=>b.value?GO:hO),re=W(()=>[i.style]),q=W(()=>[r.inputStyle,S.value,{resize:r.resize}]),V=W(()=>qt(r.modelValue)?"":String(r.modelValue)),te=W(()=>r.clearable&&!s.value&&!r.readonly&&!!V.value&&(E.value||y.value)),A=W(()=>r.showPassword&&!s.value&&!!V.value),B=W(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!s.value&&!r.readonly&&!r.showPassword),I=W(()=>V.value.length),M=W(()=>!!B.value&&I.value>Number(r.maxlength)),J=W(()=>!!p.suffix||!!r.suffixIcon||te.value||r.showPassword||B.value||!!k.value&&j.value),[z,L]=J6(v);rn(m,Z=>{if(G(),!B.value||r.resize!=="both")return;const ue=Z[0],{width:me}=ue.contentRect;_.value={right:`calc(100% - ${me+15+6}px)`}});const Q=()=>{const{type:Z,autosize:ue}=r;if(!(!ct||Z!=="textarea"||!m.value))if(ue){const me=Ye(ue)?ue.minRows:void 0,xe=Ye(ue)?ue.maxRows:void 0,Ee=P0(m.value,me,xe);S.value={overflowY:"hidden",...Ee},Ke(()=>{m.value.offsetHeight,S.value=Ee})}else S.value={minHeight:P0(m.value).minHeight}},G=(Z=>{let ue=!1;return()=>{var me;if(ue||!r.autosize)return;((me=m.value)==null?void 0:me.offsetParent)===null||(Z(),ue=!0)}})(Q),ne=()=>{const Z=C.value,ue=r.formatter?r.formatter(V.value):V.value;!Z||Z.value===ue||(Z.value=ue)},de=async Z=>{z();let{value:ue}=Z.target;if(r.formatter&&r.parser&&(ue=r.parser(ue)),!_e.value){if(ue===V.value){ne();return}n(et,ue),n(ar,ue),await Ke(),ne(),L()}},ve=Z=>{let{value:ue}=Z.target;r.formatter&&r.parser&&(ue=r.parser(ue)),n(Pt,ue)},{isComposing:_e,handleCompositionStart:N,handleCompositionUpdate:x,handleCompositionEnd:K}=Lw({emit:n,afterComposition:de}),X=()=>{z(),b.value=!b.value,setTimeout(L)},R=()=>{var Z;return(Z=C.value)==null?void 0:Z.focus()},F=()=>{var Z;return(Z=C.value)==null?void 0:Z.blur()},ee=Z=>{y.value=!1,n("mouseleave",Z)},fe=Z=>{y.value=!0,n("mouseenter",Z)},se=Z=>{n("keydown",Z)},Y=()=>{var Z;(Z=C.value)==null||Z.select()},ge=()=>{n(et,""),n(Pt,""),n("clear"),n(ar,"")};return Te(()=>r.modelValue,()=>{var Z;Ke(()=>Q()),r.validateEvent&&((Z=h==null?void 0:h.validate)==null||Z.call(h,"change").catch(ue=>void 0))}),Te(V,()=>ne()),Te(()=>r.type,async()=>{await Ke(),ne(),Q()}),Je(()=>{!r.formatter&&r.parser,ne(),Ke(Q)}),t({input:v,textarea:m,ref:C,textareaStyle:q,autosize:En(r,"autosize"),isComposing:_e,focus:R,blur:F,select:Y,clear:ge,resizeTextarea:Q}),(Z,ue)=>($(),oe("div",{class:le([w(o),{[w(d).bm("group","append")]:Z.$slots.append,[w(d).bm("group","prepend")]:Z.$slots.prepend}]),style:ze(w(re)),onMouseenter:fe,onMouseleave:ee},[be(" input "),Z.type!=="textarea"?($(),oe($e,{key:0},[be(" prepend slot "),Z.$slots.prepend?($(),oe("div",{key:0,class:le(w(d).be("group","prepend"))},[Ce(Z.$slots,"prepend")],2)):be("v-if",!0),ae("div",{ref_key:"wrapperRef",ref:T,class:le(w(a))},[be(" prefix slot "),Z.$slots.prefix||Z.prefixIcon?($(),oe("span",{key:0,class:le(w(d).e("prefix"))},[ae("span",{class:le(w(d).e("prefix-inner"))},[Ce(Z.$slots,"prefix"),Z.prefixIcon?($(),ye(w(De),{key:0,class:le(w(d).e("icon"))},{default:he(()=>[($(),ye(ut(Z.prefixIcon)))]),_:1},8,["class"])):be("v-if",!0)],2)],2)):be("v-if",!0),ae("input",$t({id:w(l),ref_key:"input",ref:v,class:w(d).e("inner")},w(u),{name:Z.name,minlength:Z.minlength,maxlength:Z.maxlength,type:Z.showPassword?b.value?"text":"password":Z.type,disabled:w(s),readonly:Z.readonly,autocomplete:Z.autocomplete,tabindex:Z.tabindex,"aria-label":Z.ariaLabel,placeholder:Z.placeholder,style:Z.inputStyle,form:Z.form,autofocus:Z.autofocus,role:Z.containerRole,inputmode:Z.inputmode,onCompositionstart:w(N),onCompositionupdate:w(x),onCompositionend:w(K),onInput:de,onChange:ve,onKeydown:se}),null,16,["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode","onCompositionstart","onCompositionupdate","onCompositionend"]),be(" suffix slot "),w(J)?($(),oe("span",{key:1,class:le(w(d).e("suffix"))},[ae("span",{class:le(w(d).e("suffix-inner"))},[!w(te)||!w(A)||!w(B)?($(),oe($e,{key:0},[Ce(Z.$slots,"suffix"),Z.suffixIcon?($(),ye(w(De),{key:0,class:le(w(d).e("icon"))},{default:he(()=>[($(),ye(ut(Z.suffixIcon)))]),_:1},8,["class"])):be("v-if",!0)],64)):be("v-if",!0),w(te)?($(),ye(w(De),{key:1,class:le([w(d).e("icon"),w(d).e("clear")]),onMousedown:Ze(w(rt),["prevent"]),onClick:ge},{default:he(()=>[($(),ye(ut(Z.clearIcon)))]),_:1},8,["class","onMousedown"])):be("v-if",!0),w(A)?($(),ye(w(De),{key:2,class:le([w(d).e("icon"),w(d).e("password")]),onClick:X},{default:he(()=>[($(),ye(ut(w(P))))]),_:1},8,["class"])):be("v-if",!0),w(B)?($(),oe("span",{key:3,class:le(w(d).e("count"))},[ae("span",{class:le(w(d).e("count-inner"))},Oe(w(I))+" / "+Oe(Z.maxlength),3)],2)):be("v-if",!0),w(k)&&w(U)&&w(j)?($(),ye(w(De),{key:4,class:le([w(d).e("icon"),w(d).e("validateIcon"),w(d).is("loading",w(k)==="validating")])},{default:he(()=>[($(),ye(ut(w(U))))]),_:1},8,["class"])):be("v-if",!0)],2)],2)):be("v-if",!0)],2),be(" append slot "),Z.$slots.append?($(),oe("div",{key:1,class:le(w(d).be("group","append"))},[Ce(Z.$slots,"append")],2)):be("v-if",!0)],64)):($(),oe($e,{key:1},[be(" textarea "),ae("textarea",$t({id:w(l),ref_key:"textarea",ref:m,class:[w(g).e("inner"),w(d).is("focus",w(E))]},w(u),{minlength:Z.minlength,maxlength:Z.maxlength,tabindex:Z.tabindex,disabled:w(s),readonly:Z.readonly,autocomplete:Z.autocomplete,style:w(q),"aria-label":Z.ariaLabel,placeholder:Z.placeholder,form:Z.form,autofocus:Z.autofocus,rows:Z.rows,role:Z.containerRole,onCompositionstart:w(N),onCompositionupdate:w(x),onCompositionend:w(K),onInput:de,onFocus:w(O),onBlur:w(D),onChange:ve,onKeydown:se}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),w(B)?($(),oe("span",{key:0,style:ze(_.value),class:le(w(d).e("count"))},Oe(w(I))+" / "+Oe(Z.maxlength),7)):be("v-if",!0)],64))],38))}});var nM=Le(tM,[["__file","input.vue"]]);const qo=dt(nM),eo=4,rM={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"}},iM=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),gv=Symbol("scrollbarContextKey"),aM=Me({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),oM="Thumb",sM=pe({__name:"thumb",props:aM,setup(e){const t=e,n=Ne(gv),r=Ae("scrollbar");n||Zt(oM,"can not inject scrollbar context");const i=ie(),u=ie(),p=ie({}),o=ie(!1);let a=!1,c=!1,h=0,l=0,f=ct?document.onselectstart:null;const s=W(()=>rM[t.vertical?"vertical":"horizontal"]),d=W(()=>iM({size:t.size,move:t.move,bar:s.value})),g=W(()=>i.value[s.value.offset]**2/n.wrapElement[s.value.scrollSize]/t.ratio/u.value[s.value.offset]),v=E=>{var O;if(E.stopPropagation(),E.ctrlKey||[1,2].includes(E.button))return;(O=window.getSelection())==null||O.removeAllRanges(),y(E);const D=E.currentTarget;!D||(p.value[s.value.axis]=D[s.value.offset]-(E[s.value.client]-D.getBoundingClientRect()[s.value.direction]))},m=E=>{if(!u.value||!i.value||!n.wrapElement)return;const O=Math.abs(E.target.getBoundingClientRect()[s.value.direction]-E[s.value.client]),D=u.value[s.value.offset]/2,j=(O-D)*100*g.value/i.value[s.value.offset];n.wrapElement[s.value.scroll]=j*n.wrapElement[s.value.scrollSize]/100},y=E=>{E.stopImmediatePropagation(),a=!0,h=n.wrapElement.scrollHeight,l=n.wrapElement.scrollWidth,document.addEventListener("mousemove",b),document.addEventListener("mouseup",_),f=document.onselectstart,document.onselectstart=()=>!1},b=E=>{if(!i.value||!u.value||a===!1)return;const O=p.value[s.value.axis];if(!O)return;const D=(i.value.getBoundingClientRect()[s.value.direction]-E[s.value.client])*-1,j=u.value[s.value.offset]-O,k=(D-j)*100*g.value/i.value[s.value.offset];s.value.scroll==="scrollLeft"?n.wrapElement[s.value.scroll]=k*l/100:n.wrapElement[s.value.scroll]=k*h/100},_=()=>{a=!1,p.value[s.value.axis]=0,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",_),T(),c&&(o.value=!1)},S=()=>{c=!1,o.value=!!t.size},C=()=>{c=!0,o.value=a};At(()=>{T(),document.removeEventListener("mouseup",_)});const T=()=>{document.onselectstart!==f&&(document.onselectstart=f)};return ft(En(n,"scrollbarElement"),"mousemove",S),ft(En(n,"scrollbarElement"),"mouseleave",C),(E,O)=>($(),ye(sr,{name:w(r).b("fade"),persisted:""},{default:he(()=>[mt(ae("div",{ref_key:"instance",ref:i,class:le([w(r).e("bar"),w(r).is(w(s).key)]),onMousedown:m,onClick:Ze(()=>{},["stop"])},[ae("div",{ref_key:"thumb",ref:u,class:le(w(r).e("thumb")),style:ze(w(d)),onMousedown:v},null,38)],42,["onClick"]),[[Ft,E.always||o.value]])]),_:1},8,["name"]))}});var M0=Le(sM,[["__file","thumb.vue"]]);const lM=Me({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),uM=pe({__name:"bar",props:lM,setup(e,{expose:t}){const n=e,r=Ne(gv),i=ie(0),u=ie(0),p=ie(""),o=ie(""),a=ie(1),c=ie(1);return t({handleScroll:f=>{if(f){const s=f.offsetHeight-eo,d=f.offsetWidth-eo;u.value=f.scrollTop*100/s*a.value,i.value=f.scrollLeft*100/d*c.value}},update:()=>{const f=r==null?void 0:r.wrapElement;if(!f)return;const s=f.offsetHeight-eo,d=f.offsetWidth-eo,g=s**2/f.scrollHeight,v=d**2/f.scrollWidth,m=Math.max(g,n.minSize),y=Math.max(v,n.minSize);a.value=g/(s-g)/(m/(s-m)),c.value=v/(d-v)/(y/(d-y)),o.value=m+eo<s?`${m}px`:"",p.value=y+eo<d?`${y}px`:""}}),(f,s)=>($(),oe($e,null,[ce(M0,{move:i.value,ratio:c.value,size:p.value,always:f.always},null,8,["move","ratio","size","always"]),ce(M0,{move:u.value,ratio:a.value,size:o.value,vertical:"",always:f.always},null,8,["move","ratio","size","always"])],64))}});var cM=Le(uM,[["__file","bar.vue"]]);const fM=Me({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:Se([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,...Hr(["ariaLabel","ariaOrientation"])}),Dw={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Ve)},dM="ElScrollbar",hM=pe({name:dM}),pM=pe({...hM,props:fM,emits:Dw,setup(e,{expose:t,emit:n}){const r=e,i=Ae("scrollbar");let u,p,o,a=0,c=0,h="";const l={bottom:!1,top:!1,right:!1,left:!1},f=ie(),s=ie(),d=ie(),g=ie(),v=W(()=>{const j={};return r.height&&(j.height=An(r.height)),r.maxHeight&&(j.maxHeight=An(r.maxHeight)),[r.wrapStyle,j]}),m=W(()=>[r.wrapClass,i.e("wrap"),{[i.em("wrap","hidden-default")]:!r.native}]),y=W(()=>[i.e("view"),r.viewClass]),b=j=>{var k;return(k=l[j])!=null?k:!1},_={top:"bottom",bottom:"top",left:"right",right:"left"},S=j=>{const k=_[h];if(!k)return;const U=j[h],P=j[k];U&&!l[h]&&(l[h]=!0),!P&&l[k]&&(l[k]=!1)},C=()=>{var j;if(s.value){(j=g.value)==null||j.handleScroll(s.value);const k=a,U=c;a=s.value.scrollTop,c=s.value.scrollLeft;const P={bottom:a+s.value.clientHeight>=s.value.scrollHeight-r.distance,top:a<=r.distance&&k!==0,right:c+s.value.clientWidth>=s.value.scrollWidth-r.distance&&U!==c,left:c<=r.distance&&U!==0};if(n("scroll",{scrollTop:a,scrollLeft:c}),k!==a&&(h=a>k?"bottom":"top"),U!==c&&(h=c>U?"right":"left"),r.distance>0){if(b(h))return;S(P)}P[h]&&n("end-reached",h)}};function T(j,k){Ye(j)?s.value.scrollTo(j):Ve(j)&&Ve(k)&&s.value.scrollTo(j,k)}const E=j=>{!Ve(j)||(s.value.scrollTop=j)},O=j=>{!Ve(j)||(s.value.scrollLeft=j)},D=()=>{var j;(j=g.value)==null||j.update(),l[h]=!1};return Te(()=>r.noresize,j=>{j?(u==null||u(),p==null||p(),o==null||o()):({stop:u}=rn(d,D),{stop:p}=rn(s,D),o=ft("resize",D))},{immediate:!0}),Te(()=>[r.maxHeight,r.height],()=>{r.native||Ke(()=>{var j;D(),s.value&&((j=g.value)==null||j.handleScroll(s.value))})}),pt(gv,yt({scrollbarElement:f,wrapElement:s})),w_(()=>{s.value&&(s.value.scrollTop=a,s.value.scrollLeft=c)}),Je(()=>{r.native||Ke(()=>{D()})}),zo(()=>D()),t({wrapRef:s,update:D,scrollTo:T,setScrollTop:E,setScrollLeft:O,handleScroll:C}),(j,k)=>($(),oe("div",{ref_key:"scrollbarRef",ref:f,class:le(w(i).b())},[ae("div",{ref_key:"wrapRef",ref:s,class:le(w(m)),style:ze(w(v)),tabindex:j.tabindex,onScroll:C},[($(),ye(ut(j.tag),{id:j.id,ref_key:"resizeRef",ref:d,class:le(w(y)),style:ze(j.viewStyle),role:j.role,"aria-label":j.ariaLabel,"aria-orientation":j.ariaOrientation},{default:he(()=>[Ce(j.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),j.native?be("v-if",!0):($(),ye(cM,{key:0,ref_key:"barRef",ref:g,always:j.always,"min-size":j.minSize},null,8,["always","min-size"]))],2))}});var vM=Le(pM,[["__file","scrollbar.vue"]]);const Fw=dt(vM),mv=Symbol("popper"),Bw=Symbol("popperContent"),Nw=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],$w=Me({role:{type:String,values:Nw,default:"tooltip"}}),gM=pe({name:"ElPopper",inheritAttrs:!1}),mM=pe({...gM,props:$w,setup(e,{expose:t}){const n=e,r=ie(),i=ie(),u=ie(),p=ie(),o=W(()=>n.role),a={triggerRef:r,popperInstanceRef:i,contentRef:u,referenceRef:p,role:o};return t(a),pt(mv,a),(c,h)=>Ce(c.$slots,"default")}});var yM=Le(mM,[["__file","popper.vue"]]);const bM=pe({name:"ElPopperArrow",inheritAttrs:!1}),_M=pe({...bM,setup(e,{expose:t}){const n=Ae("popper"),{arrowRef:r,arrowStyle:i}=Ne(Bw,void 0);return At(()=>{r.value=void 0}),t({arrowRef:r}),(u,p)=>($(),oe("span",{ref_key:"arrowRef",ref:r,class:le(w(n).e("arrow")),style:ze(w(i)),"data-popper-arrow":""},null,6))}});var wM=Le(_M,[["__file","arrow.vue"]]);const zw=Me({virtualRef:{type:Se(Object)},virtualTriggering:Boolean,onMouseenter:{type:Se(Function)},onMouseleave:{type:Se(Function)},onClick:{type:Se(Function)},onKeydown:{type:Se(Function)},onFocus:{type:Se(Function)},onBlur:{type:Se(Function)},onContextmenu:{type:Se(Function)},id:String,open:Boolean}),jw=Symbol("elForwardRef"),SM=e=>{pt(jw,{setForwardRef:n=>{e.value=n}})},CM=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),xM="ElOnlyChild",TM=pe({name:xM,setup(e,{slots:t,attrs:n}){var r;const i=Ne(jw),u=CM((r=i==null?void 0:i.setForwardRef)!=null?r:rt);return()=>{var p;const o=(p=t.default)==null?void 0:p.call(t,n);if(!o||o.length>1)return null;const a=Vw(o);return a?mt(pi(a,n),[[u]]):null}}});function Vw(e){if(!e)return null;const t=e;for(const n of t){if(Ye(n))switch(n.type){case tn:continue;case Uo:case"svg":return R0(n);case $e:return Vw(n.children);default:return n}return R0(n)}return null}function R0(e){const t=Ae("only-child");return ce("span",{class:t.e("content")},[e])}const EM=pe({name:"ElPopperTrigger",inheritAttrs:!1}),kM=pe({...EM,props:zw,setup(e,{expose:t}){const n=e,{role:r,triggerRef:i}=Ne(mv,void 0);SM(i);const u=W(()=>o.value?n.id:void 0),p=W(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),o=W(()=>{if(r&&r.value!=="tooltip")return r.value}),a=W(()=>o.value?`${n.open}`:void 0);let c;const h=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return Je(()=>{Te(()=>n.virtualRef,l=>{l&&(i.value=Yn(l))},{immediate:!0}),Te(i,(l,f)=>{c==null||c(),c=void 0,rr(l)&&(h.forEach(s=>{var d;const g=n[s];g&&(l.addEventListener(s.slice(2).toLowerCase(),g),(d=f==null?void 0:f.removeEventListener)==null||d.call(f,s.slice(2).toLowerCase(),g))}),dl(l)&&(c=Te([u,p,o,a],s=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((d,g)=>{qt(s[g])?l.removeAttribute(d):l.setAttribute(d,s[g])})},{immediate:!0}))),rr(f)&&dl(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(s=>f.removeAttribute(s))},{immediate:!0})}),At(()=>{if(c==null||c(),c=void 0,i.value&&rr(i.value)){const l=i.value;h.forEach(f=>{const s=n[f];s&&l.removeEventListener(f.slice(2).toLowerCase(),s)}),i.value=void 0}}),t({triggerRef:i}),(l,f)=>l.virtualTriggering?be("v-if",!0):($(),ye(w(TM),$t({key:0},l.$attrs,{"aria-controls":w(u),"aria-describedby":w(p),"aria-expanded":w(a),"aria-haspopup":w(o)}),{default:he(()=>[Ce(l.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var OM=Le(kM,[["__file","trigger.vue"]]);const td="focus-trap.focus-after-trapped",nd="focus-trap.focus-after-released",PM="focus-trap.focusout-prevented",L0={cancelable:!0,bubbles:!1},AM={cancelable:!0,bubbles:!1},D0="focusAfterTrapped",F0="focusAfterReleased",Uw=Symbol("elFocusTrap"),yv=ie(),yf=ie(0),bv=ie(0);let du=0;const Hw=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},B0=(e,t)=>{for(const n of e)if(!IM(n,t))return n},IM=(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},MM=e=>{const t=Hw(e),n=B0(t,e),r=B0(t.reverse(),e);return[n,r]},RM=e=>e instanceof HTMLInputElement&&"select"in e,ti=(e,t)=>{if(e&&e.focus){const n=document.activeElement;let r=!1;rr(e)&&!dl(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),r=!0),e.focus({preventScroll:!0}),bv.value=window.performance.now(),e!==n&&RM(e)&&t&&e.select(),rr(e)&&r&&e.removeAttribute("tabindex")}};function N0(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const LM=()=>{let e=[];return{push:r=>{const i=e[0];i&&r!==i&&i.pause(),e=N0(e,r),e.unshift(r)},remove:r=>{var i,u;e=N0(e,r),(u=(i=e[0])==null?void 0:i.resume)==null||u.call(i)}}},DM=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(ti(r,t),document.activeElement!==n)return},$0=LM(),FM=()=>yf.value>bv.value,hu=()=>{yv.value="pointer",yf.value=window.performance.now()},z0=()=>{yv.value="keyboard",yf.value=window.performance.now()},BM=()=>(Je(()=>{du===0&&(document.addEventListener("mousedown",hu),document.addEventListener("touchstart",hu),document.addEventListener("keydown",z0)),du++}),At(()=>{du--,du<=0&&(document.removeEventListener("mousedown",hu),document.removeEventListener("touchstart",hu),document.removeEventListener("keydown",z0))}),{focusReason:yv,lastUserFocusTimestamp:yf,lastAutomatedFocusTimestamp:bv}),pu=e=>new CustomEvent(PM,{...AM,detail:e}),je={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 co=[];const j0=e=>{e.code===je.esc&&co.forEach(t=>t(e))},NM=e=>{Je(()=>{co.length===0&&document.addEventListener("keydown",j0),ct&&co.push(e)}),At(()=>{co=co.filter(t=>t!==e),co.length===0&&ct&&document.removeEventListener("keydown",j0)})},$M=pe({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[D0,F0,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=ie();let r,i;const{focusReason:u}=BM();NM(d=>{e.trapped&&!p.paused&&t("release-requested",d)});const p={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},o=d=>{if(!e.loop&&!e.trapped||p.paused)return;const{code:g,altKey:v,ctrlKey:m,metaKey:y,currentTarget:b,shiftKey:_}=d,{loop:S}=e,C=g===je.tab&&!v&&!m&&!y,T=document.activeElement;if(C&&T){const E=b,[O,D]=MM(E);if(O&&D){if(!_&&T===D){const k=pu({focusReason:u.value});t("focusout-prevented",k),k.defaultPrevented||(d.preventDefault(),S&&ti(O,!0))}else if(_&&[O,E].includes(T)){const k=pu({focusReason:u.value});t("focusout-prevented",k),k.defaultPrevented||(d.preventDefault(),S&&ti(D,!0))}}else if(T===E){const k=pu({focusReason:u.value});t("focusout-prevented",k),k.defaultPrevented||d.preventDefault()}}};pt(Uw,{focusTrapRef:n,onKeydown:o}),Te(()=>e.focusTrapEl,d=>{d&&(n.value=d)},{immediate:!0}),Te([n],([d],[g])=>{d&&(d.addEventListener("keydown",o),d.addEventListener("focusin",h),d.addEventListener("focusout",l)),g&&(g.removeEventListener("keydown",o),g.removeEventListener("focusin",h),g.removeEventListener("focusout",l))});const a=d=>{t(D0,d)},c=d=>t(F0,d),h=d=>{const g=w(n);if(!g)return;const v=d.target,m=d.relatedTarget,y=v&&g.contains(v);e.trapped||m&&g.contains(m)||(r=m),y&&t("focusin",d),!p.paused&&e.trapped&&(y?i=v:ti(i,!0))},l=d=>{const g=w(n);if(!(p.paused||!g))if(e.trapped){const v=d.relatedTarget;!qt(v)&&!g.contains(v)&&setTimeout(()=>{if(!p.paused&&e.trapped){const m=pu({focusReason:u.value});t("focusout-prevented",m),m.defaultPrevented||ti(i,!0)}},0)}else{const v=d.target;v&&g.contains(v)||t("focusout",d)}};async function f(){await Ke();const d=w(n);if(d){$0.push(p);const g=d.contains(document.activeElement)?r:document.activeElement;if(r=g,!d.contains(g)){const m=new Event(td,L0);d.addEventListener(td,a),d.dispatchEvent(m),m.defaultPrevented||Ke(()=>{let y=e.focusStartEl;Be(y)||(ti(y),document.activeElement!==y&&(y="first")),y==="first"&&DM(Hw(d),!0),(document.activeElement===g||y==="container")&&ti(d)})}}}function s(){const d=w(n);if(d){d.removeEventListener(td,a);const g=new CustomEvent(nd,{...L0,detail:{focusReason:u.value}});d.addEventListener(nd,c),d.dispatchEvent(g),!g.defaultPrevented&&(u.value=="keyboard"||!FM()||d.contains(document.activeElement))&&ti(r!=null?r:document.body),d.removeEventListener(nd,c),$0.remove(p)}}return Je(()=>{e.trapped&&f(),Te(()=>e.trapped,d=>{d?f():s()})}),At(()=>{e.trapped&&s(),n.value&&(n.value.removeEventListener("keydown",o),n.value.removeEventListener("focusin",h),n.value.removeEventListener("focusout",l),n.value=void 0)}),{onKeydown:o}}});function zM(e,t,n,r,i,u){return Ce(e.$slots,"default",{handleKeydown:e.onKeydown})}var bf=Le($M,[["render",zM],["__file","focus-trap.vue"]]),Dn="top",fr="bottom",dr="right",Fn="left",_v="auto",Vl=[Dn,fr,dr,Fn],Io="start",hl="end",jM="clippingParents",Ww="viewport",hs="popper",VM="reference",V0=Vl.reduce(function(e,t){return e.concat([t+"-"+Io,t+"-"+hl])},[]),Zo=[].concat(Vl,[_v]).reduce(function(e,t){return e.concat([t,t+"-"+Io,t+"-"+hl])},[]),UM="beforeRead",HM="read",WM="afterRead",KM="beforeMain",GM="main",YM="afterMain",XM="beforeWrite",qM="write",ZM="afterWrite",JM=[UM,HM,WM,KM,GM,YM,XM,qM,ZM];function Ur(e){return e?(e.nodeName||"").toLowerCase():null}function Pr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Mo(e){var t=Pr(e).Element;return e instanceof t||e instanceof Element}function or(e){var t=Pr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function wv(e){if(typeof ShadowRoot>"u")return!1;var t=Pr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function QM(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},u=t.elements[n];!or(u)||!Ur(u)||(Object.assign(u.style,r),Object.keys(i).forEach(function(p){var o=i[p];o===!1?u.removeAttribute(p):u.setAttribute(p,o===!0?"":o)}))})}function eR(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 i=t.elements[r],u=t.attributes[r]||{},p=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),o=p.reduce(function(a,c){return a[c]="",a},{});!or(i)||!Ur(i)||(Object.assign(i.style,o),Object.keys(u).forEach(function(a){i.removeAttribute(a)}))})}}var Kw={name:"applyStyles",enabled:!0,phase:"write",fn:QM,effect:eR,requires:["computeStyles"]};function $r(e){return e.split("-")[0]}var Ea=Math.max,Pc=Math.min,Ro=Math.round;function Lo(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(or(e)&&t){var u=e.offsetHeight,p=e.offsetWidth;p>0&&(r=Ro(n.width)/p||1),u>0&&(i=Ro(n.height)/u||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function Sv(e){var t=Lo(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 Gw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&wv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function gi(e){return Pr(e).getComputedStyle(e)}function tR(e){return["table","td","th"].indexOf(Ur(e))>=0}function aa(e){return((Mo(e)?e.ownerDocument:e.document)||window.document).documentElement}function _f(e){return Ur(e)==="html"?e:e.assignedSlot||e.parentNode||(wv(e)?e.host:null)||aa(e)}function U0(e){return!or(e)||gi(e).position==="fixed"?null:e.offsetParent}function nR(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&or(e)){var r=gi(e);if(r.position==="fixed")return null}var i=_f(e);for(wv(i)&&(i=i.host);or(i)&&["html","body"].indexOf(Ur(i))<0;){var u=gi(i);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||t&&u.willChange==="filter"||t&&u.filter&&u.filter!=="none")return i;i=i.parentNode}return null}function Ul(e){for(var t=Pr(e),n=U0(e);n&&tR(n)&&gi(n).position==="static";)n=U0(n);return n&&(Ur(n)==="html"||Ur(n)==="body"&&gi(n).position==="static")?t:n||nR(e)||t}function Cv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bs(e,t,n){return Ea(e,Pc(t,n))}function rR(e,t,n){var r=Bs(e,t,n);return r>n?n:r}function Yw(){return{top:0,right:0,bottom:0,left:0}}function Xw(e){return Object.assign({},Yw(),e)}function qw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var iR=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Xw(typeof e!="number"?e:qw(e,Vl))};function aR(e){var t,n=e.state,r=e.name,i=e.options,u=n.elements.arrow,p=n.modifiersData.popperOffsets,o=$r(n.placement),a=Cv(o),c=[Fn,dr].indexOf(o)>=0,h=c?"height":"width";if(!(!u||!p)){var l=iR(i.padding,n),f=Sv(u),s=a==="y"?Dn:Fn,d=a==="y"?fr:dr,g=n.rects.reference[h]+n.rects.reference[a]-p[a]-n.rects.popper[h],v=p[a]-n.rects.reference[a],m=Ul(u),y=m?a==="y"?m.clientHeight||0:m.clientWidth||0:0,b=g/2-v/2,_=l[s],S=y-f[h]-l[d],C=y/2-f[h]/2+b,T=Bs(_,C,S),E=a;n.modifiersData[r]=(t={},t[E]=T,t.centerOffset=T-C,t)}}function oR(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!Gw(t.elements.popper,i)||(t.elements.arrow=i))}var sR={name:"arrow",enabled:!0,phase:"main",fn:aR,effect:oR,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Do(e){return e.split("-")[1]}var lR={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uR(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:Ro(t*i)/i||0,y:Ro(n*i)/i||0}}function H0(e){var t,n=e.popper,r=e.popperRect,i=e.placement,u=e.variation,p=e.offsets,o=e.position,a=e.gpuAcceleration,c=e.adaptive,h=e.roundOffsets,l=e.isFixed,f=p.x,s=f===void 0?0:f,d=p.y,g=d===void 0?0:d,v=typeof h=="function"?h({x:s,y:g}):{x:s,y:g};s=v.x,g=v.y;var m=p.hasOwnProperty("x"),y=p.hasOwnProperty("y"),b=Fn,_=Dn,S=window;if(c){var C=Ul(n),T="clientHeight",E="clientWidth";if(C===Pr(n)&&(C=aa(n),gi(C).position!=="static"&&o==="absolute"&&(T="scrollHeight",E="scrollWidth")),C=C,i===Dn||(i===Fn||i===dr)&&u===hl){_=fr;var O=l&&C===S&&S.visualViewport?S.visualViewport.height:C[T];g-=O-r.height,g*=a?1:-1}if(i===Fn||(i===Dn||i===fr)&&u===hl){b=dr;var D=l&&C===S&&S.visualViewport?S.visualViewport.width:C[E];s-=D-r.width,s*=a?1:-1}}var j=Object.assign({position:o},c&&lR),k=h===!0?uR({x:s,y:g}):{x:s,y:g};if(s=k.x,g=k.y,a){var U;return Object.assign({},j,(U={},U[_]=y?"0":"",U[b]=m?"0":"",U.transform=(S.devicePixelRatio||1)<=1?"translate("+s+"px, "+g+"px)":"translate3d("+s+"px, "+g+"px, 0)",U))}return Object.assign({},j,(t={},t[_]=y?g+"px":"",t[b]=m?s+"px":"",t.transform="",t))}function cR(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,u=n.adaptive,p=u===void 0?!0:u,o=n.roundOffsets,a=o===void 0?!0:o,c={placement:$r(t.placement),variation:Do(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,H0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:p,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,H0(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Zw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:cR,data:{}},vu={passive:!0};function fR(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,u=i===void 0?!0:i,p=r.resize,o=p===void 0?!0:p,a=Pr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return u&&c.forEach(function(h){h.addEventListener("scroll",n.update,vu)}),o&&a.addEventListener("resize",n.update,vu),function(){u&&c.forEach(function(h){h.removeEventListener("scroll",n.update,vu)}),o&&a.removeEventListener("resize",n.update,vu)}}var Jw={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fR,data:{}},dR={left:"right",right:"left",bottom:"top",top:"bottom"};function Yu(e){return e.replace(/left|right|bottom|top/g,function(t){return dR[t]})}var hR={start:"end",end:"start"};function W0(e){return e.replace(/start|end/g,function(t){return hR[t]})}function xv(e){var t=Pr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Tv(e){return Lo(aa(e)).left+xv(e).scrollLeft}function pR(e){var t=Pr(e),n=aa(e),r=t.visualViewport,i=n.clientWidth,u=n.clientHeight,p=0,o=0;return r&&(i=r.width,u=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(p=r.offsetLeft,o=r.offsetTop)),{width:i,height:u,x:p+Tv(e),y:o}}function vR(e){var t,n=aa(e),r=xv(e),i=(t=e.ownerDocument)==null?void 0:t.body,u=Ea(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),p=Ea(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+Tv(e),a=-r.scrollTop;return gi(i||n).direction==="rtl"&&(o+=Ea(n.clientWidth,i?i.clientWidth:0)-u),{width:u,height:p,x:o,y:a}}function Ev(e){var t=gi(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Qw(e){return["html","body","#document"].indexOf(Ur(e))>=0?e.ownerDocument.body:or(e)&&Ev(e)?e:Qw(_f(e))}function Ns(e,t){var n;t===void 0&&(t=[]);var r=Qw(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),u=Pr(r),p=i?[u].concat(u.visualViewport||[],Ev(r)?r:[]):r,o=t.concat(p);return i?o:o.concat(Ns(_f(p)))}function bh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function gR(e){var t=Lo(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 K0(e,t){return t===Ww?bh(pR(e)):Mo(t)?gR(t):bh(vR(aa(e)))}function mR(e){var t=Ns(_f(e)),n=["absolute","fixed"].indexOf(gi(e).position)>=0,r=n&&or(e)?Ul(e):e;return Mo(r)?t.filter(function(i){return Mo(i)&&Gw(i,r)&&Ur(i)!=="body"}):[]}function yR(e,t,n){var r=t==="clippingParents"?mR(e):[].concat(t),i=[].concat(r,[n]),u=i[0],p=i.reduce(function(o,a){var c=K0(e,a);return o.top=Ea(c.top,o.top),o.right=Pc(c.right,o.right),o.bottom=Pc(c.bottom,o.bottom),o.left=Ea(c.left,o.left),o},K0(e,u));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}function e2(e){var t=e.reference,n=e.element,r=e.placement,i=r?$r(r):null,u=r?Do(r):null,p=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,a;switch(i){case Dn:a={x:p,y:t.y-n.height};break;case fr:a={x:p,y:t.y+t.height};break;case dr:a={x:t.x+t.width,y:o};break;case Fn:a={x:t.x-n.width,y:o};break;default:a={x:t.x,y:t.y}}var c=i?Cv(i):null;if(c!=null){var h=c==="y"?"height":"width";switch(u){case Io:a[c]=a[c]-(t[h]/2-n[h]/2);break;case hl:a[c]=a[c]+(t[h]/2-n[h]/2);break}}return a}function pl(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,u=n.boundary,p=u===void 0?jM:u,o=n.rootBoundary,a=o===void 0?Ww:o,c=n.elementContext,h=c===void 0?hs:c,l=n.altBoundary,f=l===void 0?!1:l,s=n.padding,d=s===void 0?0:s,g=Xw(typeof d!="number"?d:qw(d,Vl)),v=h===hs?VM:hs,m=e.rects.popper,y=e.elements[f?v:h],b=yR(Mo(y)?y:y.contextElement||aa(e.elements.popper),p,a),_=Lo(e.elements.reference),S=e2({reference:_,element:m,strategy:"absolute",placement:i}),C=bh(Object.assign({},m,S)),T=h===hs?C:_,E={top:b.top-T.top+g.top,bottom:T.bottom-b.bottom+g.bottom,left:b.left-T.left+g.left,right:T.right-b.right+g.right},O=e.modifiersData.offset;if(h===hs&&O){var D=O[i];Object.keys(E).forEach(function(j){var k=[dr,fr].indexOf(j)>=0?1:-1,U=[Dn,fr].indexOf(j)>=0?"y":"x";E[j]+=D[U]*k})}return E}function bR(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,u=n.rootBoundary,p=n.padding,o=n.flipVariations,a=n.allowedAutoPlacements,c=a===void 0?Zo:a,h=Do(r),l=h?o?V0:V0.filter(function(d){return Do(d)===h}):Vl,f=l.filter(function(d){return c.indexOf(d)>=0});f.length===0&&(f=l);var s=f.reduce(function(d,g){return d[g]=pl(e,{placement:g,boundary:i,rootBoundary:u,padding:p})[$r(g)],d},{});return Object.keys(s).sort(function(d,g){return s[d]-s[g]})}function _R(e){if($r(e)===_v)return[];var t=Yu(e);return[W0(e),t,W0(t)]}function wR(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,u=i===void 0?!0:i,p=n.altAxis,o=p===void 0?!0:p,a=n.fallbackPlacements,c=n.padding,h=n.boundary,l=n.rootBoundary,f=n.altBoundary,s=n.flipVariations,d=s===void 0?!0:s,g=n.allowedAutoPlacements,v=t.options.placement,m=$r(v),y=m===v,b=a||(y||!d?[Yu(v)]:_R(v)),_=[v].concat(b).reduce(function(z,L){return z.concat($r(L)===_v?bR(t,{placement:L,boundary:h,rootBoundary:l,padding:c,flipVariations:d,allowedAutoPlacements:g}):L)},[]),S=t.rects.reference,C=t.rects.popper,T=new Map,E=!0,O=_[0],D=0;D<_.length;D++){var j=_[D],k=$r(j),U=Do(j)===Io,P=[Dn,fr].indexOf(k)>=0,re=P?"width":"height",q=pl(t,{placement:j,boundary:h,rootBoundary:l,altBoundary:f,padding:c}),V=P?U?dr:Fn:U?fr:Dn;S[re]>C[re]&&(V=Yu(V));var te=Yu(V),A=[];if(u&&A.push(q[k]<=0),o&&A.push(q[V]<=0,q[te]<=0),A.every(function(z){return z})){O=j,E=!1;break}T.set(j,A)}if(E)for(var B=d?3:1,I=function(z){var L=_.find(function(Q){var H=T.get(Q);if(H)return H.slice(0,z).every(function(G){return G})});if(L)return O=L,"break"},M=B;M>0;M--){var J=I(M);if(J==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}var SR={name:"flip",enabled:!0,phase:"main",fn:wR,requiresIfExists:["offset"],data:{_skip:!1}};function G0(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 Y0(e){return[Dn,dr,fr,Fn].some(function(t){return e[t]>=0})}function CR(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,u=t.modifiersData.preventOverflow,p=pl(t,{elementContext:"reference"}),o=pl(t,{altBoundary:!0}),a=G0(p,r),c=G0(o,i,u),h=Y0(a),l=Y0(c);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:l},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":l})}var xR={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:CR};function TR(e,t,n){var r=$r(e),i=[Fn,Dn].indexOf(r)>=0?-1:1,u=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,p=u[0],o=u[1];return p=p||0,o=(o||0)*i,[Fn,dr].indexOf(r)>=0?{x:o,y:p}:{x:p,y:o}}function ER(e){var t=e.state,n=e.options,r=e.name,i=n.offset,u=i===void 0?[0,0]:i,p=Zo.reduce(function(h,l){return h[l]=TR(l,t.rects,u),h},{}),o=p[t.placement],a=o.x,c=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=p}var kR={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ER};function OR(e){var t=e.state,n=e.name;t.modifiersData[n]=e2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var t2={name:"popperOffsets",enabled:!0,phase:"read",fn:OR,data:{}};function PR(e){return e==="x"?"y":"x"}function AR(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,u=i===void 0?!0:i,p=n.altAxis,o=p===void 0?!1:p,a=n.boundary,c=n.rootBoundary,h=n.altBoundary,l=n.padding,f=n.tether,s=f===void 0?!0:f,d=n.tetherOffset,g=d===void 0?0:d,v=pl(t,{boundary:a,rootBoundary:c,padding:l,altBoundary:h}),m=$r(t.placement),y=Do(t.placement),b=!y,_=Cv(m),S=PR(_),C=t.modifiersData.popperOffsets,T=t.rects.reference,E=t.rects.popper,O=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,D=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(C){if(u){var U,P=_==="y"?Dn:Fn,re=_==="y"?fr:dr,q=_==="y"?"height":"width",V=C[_],te=V+v[P],A=V-v[re],B=s?-E[q]/2:0,I=y===Io?T[q]:E[q],M=y===Io?-E[q]:-T[q],J=t.elements.arrow,z=s&&J?Sv(J):{width:0,height:0},L=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Yw(),Q=L[P],H=L[re],G=Bs(0,T[q],z[q]),ne=b?T[q]/2-B-G-Q-D.mainAxis:I-G-Q-D.mainAxis,de=b?-T[q]/2+B+G+H+D.mainAxis:M+G+H+D.mainAxis,ve=t.elements.arrow&&Ul(t.elements.arrow),_e=ve?_==="y"?ve.clientTop||0:ve.clientLeft||0:0,N=(U=j==null?void 0:j[_])!=null?U:0,x=V+ne-N-_e,K=V+de-N,X=Bs(s?Pc(te,x):te,V,s?Ea(A,K):A);C[_]=X,k[_]=X-V}if(o){var R,F=_==="x"?Dn:Fn,ee=_==="x"?fr:dr,fe=C[S],se=S==="y"?"height":"width",Y=fe+v[F],ge=fe-v[ee],Z=[Dn,Fn].indexOf(m)!==-1,ue=(R=j==null?void 0:j[S])!=null?R:0,me=Z?Y:fe-T[se]-E[se]-ue+D.altAxis,xe=Z?fe+T[se]+E[se]-ue-D.altAxis:ge,Ee=s&&Z?rR(me,fe,xe):Bs(s?me:Y,fe,s?xe:ge);C[S]=Ee,k[S]=Ee-fe}t.modifiersData[r]=k}}var IR={name:"preventOverflow",enabled:!0,phase:"main",fn:AR,requiresIfExists:["offset"]};function MR(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function RR(e){return e===Pr(e)||!or(e)?xv(e):MR(e)}function LR(e){var t=e.getBoundingClientRect(),n=Ro(t.width)/e.offsetWidth||1,r=Ro(t.height)/e.offsetHeight||1;return n!==1||r!==1}function DR(e,t,n){n===void 0&&(n=!1);var r=or(t),i=or(t)&&LR(t),u=aa(t),p=Lo(e,i),o={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((Ur(t)!=="body"||Ev(u))&&(o=RR(t)),or(t)?(a=Lo(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):u&&(a.x=Tv(u))),{x:p.left+o.scrollLeft-a.x,y:p.top+o.scrollTop-a.y,width:p.width,height:p.height}}function FR(e){var t=new Map,n=new Set,r=[];e.forEach(function(u){t.set(u.name,u)});function i(u){n.add(u.name);var p=[].concat(u.requires||[],u.requiresIfExists||[]);p.forEach(function(o){if(!n.has(o)){var a=t.get(o);a&&i(a)}}),r.push(u)}return e.forEach(function(u){n.has(u.name)||i(u)}),r}function BR(e){var t=FR(e);return JM.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function NR(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function $R(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var X0={placement:"bottom",modifiers:[],strategy:"absolute"};function q0(){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 kv(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,u=i===void 0?X0:i;return function(p,o,a){a===void 0&&(a=u);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},X0,u),modifiersData:{},elements:{reference:p,popper:o},attributes:{},styles:{}},h=[],l=!1,f={state:c,setOptions:function(g){var v=typeof g=="function"?g(c.options):g;d(),c.options=Object.assign({},u,c.options,v),c.scrollParents={reference:Mo(p)?Ns(p):p.contextElement?Ns(p.contextElement):[],popper:Ns(o)};var m=BR($R([].concat(r,c.options.modifiers)));return c.orderedModifiers=m.filter(function(y){return y.enabled}),s(),f.update()},forceUpdate:function(){if(!l){var g=c.elements,v=g.reference,m=g.popper;if(q0(v,m)){c.rects={reference:DR(v,Ul(m),c.options.strategy==="fixed"),popper:Sv(m)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(E){return c.modifiersData[E.name]=Object.assign({},E.data)});for(var y=0;y<c.orderedModifiers.length;y++){if(c.reset===!0){c.reset=!1,y=-1;continue}var b=c.orderedModifiers[y],_=b.fn,S=b.options,C=S===void 0?{}:S,T=b.name;typeof _=="function"&&(c=_({state:c,options:C,name:T,instance:f})||c)}}}},update:NR(function(){return new Promise(function(g){f.forceUpdate(),g(c)})}),destroy:function(){d(),l=!0}};if(!q0(p,o))return f;f.setOptions(a).then(function(g){!l&&a.onFirstUpdate&&a.onFirstUpdate(g)});function s(){c.orderedModifiers.forEach(function(g){var v=g.name,m=g.options,y=m===void 0?{}:m,b=g.effect;if(typeof b=="function"){var _=b({state:c,name:v,instance:f,options:y}),S=function(){};h.push(_||S)}})}function d(){h.forEach(function(g){return g()}),h=[]}return f}}kv();var zR=[Jw,t2,Zw,Kw];kv({defaultModifiers:zR});var jR=[Jw,t2,Zw,Kw,kR,SR,IR,sR,xR],VR=kv({defaultModifiers:jR});const n2=Me({arrowOffset:{type:Number,default:5}}),UR=["fixed","absolute"],HR=Me({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Se(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Zo,default:"bottom"},popperOptions:{type:Se(Object),default:()=>({})},strategy:{type:String,values:UR,default:"absolute"}}),r2=Me({...HR,...n2,id:String,style:{type:Se([String,Array,Object])},className:{type:Se([String,Array,Object])},effect:{type:Se(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:Se([String,Array,Object])},popperStyle:{type:Se([String,Array,Object])},referenceEl:{type:Se(Object)},triggerTargetEl:{type:Se(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...Hr(["ariaLabel"])}),WR={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},KR=(e,t)=>{const n=ie(!1),r=ie();return{focusStartRef:r,trapped:n,onFocusAfterReleased:c=>{var h;((h=c.detail)==null?void 0:h.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:c=>{e.visible&&!n.value&&(c.target&&(r.value=c.target),n.value=!0)},onFocusoutPrevented:c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},GR=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:i}=e,u={placement:n,strategy:r,...i,modifiers:[...XR(e),...t]};return qR(u,i==null?void 0:i.modifiers),u},YR=e=>{if(!!ct)return Yn(e)};function XR(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t!=null?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 qR(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const ZR=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:a})=>{const c=JR(a);Object.assign(p.value,c)},requires:["computeStyles"]},i=W(()=>{const{onFirstUpdate:a,placement:c,strategy:h,modifiers:l}=w(n);return{onFirstUpdate:a,placement:c||"bottom",strategy:h||"absolute",modifiers:[...l||[],r,{name:"applyStyles",enabled:!1}]}}),u=Bt(),p=ie({styles:{popper:{position:w(i).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),o=()=>{!u.value||(u.value.destroy(),u.value=void 0)};return Te(i,a=>{const c=w(u);c&&c.setOptions(a)},{deep:!0}),Te([e,t],([a,c])=>{o(),!(!a||!c)&&(u.value=VR(a,c,w(i)))}),At(()=>{o()}),{state:W(()=>{var a;return{...((a=w(u))==null?void 0:a.state)||{}}}),styles:W(()=>w(p).styles),attributes:W(()=>w(p).attributes),update:()=>{var a;return(a=w(u))==null?void 0:a.update()},forceUpdate:()=>{var a;return(a=w(u))==null?void 0:a.forceUpdate()},instanceRef:W(()=>w(u))}};function JR(e){const t=Object.keys(e.elements),n=cl(t.map(i=>[i,e.styles[i]||{}])),r=cl(t.map(i=>[i,e.attributes[i]]));return{styles:n,attributes:r}}const QR=0,eL=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:i}=Ne(mv,void 0),u=ie(),p=W(()=>e.arrowOffset),o=W(()=>({name:"eventListeners",enabled:!!e.visible})),a=W(()=>{var m;const y=w(u),b=(m=w(p))!=null?m:QR;return{name:"arrow",enabled:!N5(y),options:{element:y,padding:b}}}),c=W(()=>({onFirstUpdate:()=>{d()},...GR(e,[w(a),w(o)])})),h=W(()=>YR(e.referenceEl)||w(r)),{attributes:l,state:f,styles:s,update:d,forceUpdate:g,instanceRef:v}=ZR(h,n,c);return Te(v,m=>t.value=m,{flush:"sync"}),Je(()=>{Te(()=>{var m;return(m=w(h))==null?void 0:m.getBoundingClientRect()},()=>{d()})}),{attributes:l,arrowRef:u,contentRef:n,instanceRef:v,state:f,styles:s,role:i,forceUpdate:g,update:d}},tL=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:i}=gf(),u=Ae("popper"),p=W(()=>w(t).popper),o=ie(Ve(e.zIndex)?e.zIndex:i()),a=W(()=>[u.b(),u.is("pure",e.pure),u.is(e.effect),e.popperClass]),c=W(()=>[{zIndex:w(o)},w(n).popper,e.popperStyle||{}]),h=W(()=>r.value==="dialog"?"false":void 0),l=W(()=>w(n).arrow||{});return{ariaModal:h,arrowStyle:l,contentAttrs:p,contentClass:a,contentStyle:c,contentZIndex:o,updateZIndex:()=>{o.value=Ve(e.zIndex)?e.zIndex:i()}}},nL=pe({name:"ElPopperContent"}),rL=pe({...nL,props:r2,emits:WR,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:i,trapped:u,onFocusAfterReleased:p,onFocusAfterTrapped:o,onFocusInTrap:a,onFocusoutPrevented:c,onReleaseRequested:h}=KR(r,n),{attributes:l,arrowRef:f,contentRef:s,styles:d,instanceRef:g,role:v,update:m}=eL(r),{ariaModal:y,arrowStyle:b,contentAttrs:_,contentClass:S,contentStyle:C,updateZIndex:T}=tL(r,{styles:d,attributes:l,role:v}),E=Ne(Ra,void 0);pt(Bw,{arrowStyle:b,arrowRef:f}),E&&pt(Ra,{...E,addInputId:rt,removeInputId:rt});let O;const D=(k=!0)=>{m(),k&&T()},j=()=>{D(!1),r.visible&&r.focusOnShow?u.value=!0:r.visible===!1&&(u.value=!1)};return Je(()=>{Te(()=>r.triggerTargetEl,(k,U)=>{O==null||O(),O=void 0;const P=w(k||s.value),re=w(U||s.value);rr(P)&&(O=Te([v,()=>r.ariaLabel,y,()=>r.id],q=>{["role","aria-label","aria-modal","id"].forEach((V,te)=>{qt(q[te])?P.removeAttribute(V):P.setAttribute(V,q[te])})},{immediate:!0})),re!==P&&rr(re)&&["role","aria-label","aria-modal","id"].forEach(q=>{re.removeAttribute(q)})},{immediate:!0}),Te(()=>r.visible,j,{immediate:!0})}),At(()=>{O==null||O(),O=void 0}),t({popperContentRef:s,popperInstanceRef:g,updatePopper:D,contentStyle:C}),(k,U)=>($(),oe("div",$t({ref_key:"contentRef",ref:s},w(_),{style:w(C),class:w(S),tabindex:"-1",onMouseenter:P=>k.$emit("mouseenter",P),onMouseleave:P=>k.$emit("mouseleave",P)}),[ce(w(bf),{trapped:w(u),"trap-on-focus-in":!0,"focus-trap-el":w(s),"focus-start-el":w(i),onFocusAfterTrapped:w(o),onFocusAfterReleased:w(p),onFocusin:w(a),onFocusoutPrevented:w(c),onReleaseRequested:w(h)},{default:he(()=>[Ce(k.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var iL=Le(rL,[["__file","content.vue"]]);const aL=dt(yM),Ov=Symbol("elTooltip"),Pv=Me({to:{type:Se([String,Object]),required:!0},disabled:Boolean}),Qt=Me({...F6,...r2,appendTo:{type:Pv.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:Se(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...Hr(["ariaLabel"])}),wo=Me({...zw,disabled:Boolean,trigger:{type:Se([String,Array]),default:"hover"},triggerKeys:{type:Se(Array),default:()=>[je.enter,je.numpadEnter,je.space]}}),oL=mf({type:Se(Boolean),default:null}),sL=mf({type:Se(Function)}),lL=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],i={[e]:oL,[n]:sL};return{useModelToggle:({indicator:p,toggleReason:o,shouldHideWhenRouteChanges:a,shouldProceed:c,onShow:h,onHide:l})=>{const f=it(),{emit:s}=f,d=f.props,g=W(()=>Re(d[n])),v=W(()=>d[e]===null),m=T=>{p.value!==!0&&(p.value=!0,o&&(o.value=T),Re(h)&&h(T))},y=T=>{p.value!==!1&&(p.value=!1,o&&(o.value=T),Re(l)&&l(T))},b=T=>{if(d.disabled===!0||Re(c)&&!c())return;const E=g.value&&ct;E&&s(t,!0),(v.value||!E)&&m(T)},_=T=>{if(d.disabled===!0||!ct)return;const E=g.value&&ct;E&&s(t,!1),(v.value||!E)&&y(T)},S=T=>{!yn(T)||(d.disabled&&T?g.value&&s(t,!1):p.value!==T&&(T?m():y()))},C=()=>{p.value?_():b()};return Te(()=>d[e],S),a&&f.appContext.config.globalProperties.$route!==void 0&&Te(()=>({...f.proxy.$route}),()=>{a.value&&p.value&&_()}),Je(()=>{S(d[e])}),{hide:_,show:b,toggle:C,hasUpdateHandler:g}},useModelToggleProps:i,useModelToggleEmits:r}},{useModelToggleProps:uL,useModelToggleEmits:cL,useModelToggle:fL}=lL("visible"),dL=Me({...$w,...uL,...Qt,...wo,...n2,showArrow:{type:Boolean,default:!0}}),hL=[...cL,"before-show","before-hide","show","hide","open","close"],pL=(e,t)=>Pe(e)?e.includes(t):e===t,to=(e,t,n)=>r=>{pL(w(e),t)&&n(r)},ni=(e,t,{checkForDefaultPrevented:n=!0}={})=>i=>{const u=e==null?void 0:e(i);if(n===!1||!u)return t==null?void 0:t(i)},vL=pe({name:"ElTooltipTrigger"}),gL=pe({...vL,props:wo,setup(e,{expose:t}){const n=e,r=Ae("tooltip"),{controlled:i,id:u,open:p,onOpen:o,onClose:a,onToggle:c}=Ne(Ov,void 0),h=ie(null),l=()=>{if(w(i)||n.disabled)return!0},f=En(n,"trigger"),s=ni(l,to(f,"hover",o)),d=ni(l,to(f,"hover",a)),g=ni(l,to(f,"click",_=>{_.button===0&&c(_)})),v=ni(l,to(f,"focus",o)),m=ni(l,to(f,"focus",a)),y=ni(l,to(f,"contextmenu",_=>{_.preventDefault(),c(_)})),b=ni(l,_=>{const{code:S}=_;n.triggerKeys.includes(S)&&(_.preventDefault(),c(_))});return t({triggerRef:h}),(_,S)=>($(),ye(w(OM),{id:w(u),"virtual-ref":_.virtualRef,open:w(p),"virtual-triggering":_.virtualTriggering,class:le(w(r).e("trigger")),onBlur:w(m),onClick:w(g),onContextmenu:w(y),onFocus:w(v),onMouseenter:w(s),onMouseleave:w(d),onKeydown:w(b)},{default:he(()=>[Ce(_.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var mL=Le(gL,[["__file","trigger.vue"]]);const yL=pe({__name:"teleport",props:Pv,setup(e){return(t,n)=>t.disabled?Ce(t.$slots,"default",{key:0}):($(),ye(Hx,{key:1,to:t.to},[Ce(t.$slots,"default")],8,["to"]))}});var bL=Le(yL,[["__file","teleport.vue"]]);const Av=dt(bL),i2=()=>{const e=Yp(),t=pv(),n=W(()=>`${e.value}-popper-container-${t.prefix}`),r=W(()=>`#${n.value}`);return{id:n,selector:r}},_L=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},wL=()=>{const{id:e,selector:t}=i2();return x_(()=>{!ct||document.body.querySelector(t.value)||_L(e.value)}),{id:e,selector:t}},SL=pe({name:"ElTooltipContent",inheritAttrs:!1}),CL=pe({...SL,props:Qt,setup(e,{expose:t}){const n=e,{selector:r}=i2(),i=Ae("tooltip"),u=ie(),p=Tc(()=>{var te;return(te=u.value)==null?void 0:te.popperContentRef});let o;const{controlled:a,id:c,open:h,trigger:l,onClose:f,onOpen:s,onShow:d,onHide:g,onBeforeShow:v,onBeforeHide:m}=Ne(Ov,void 0),y=W(()=>n.transition||`${i.namespace.value}-fade-in-linear`),b=W(()=>n.persistent);At(()=>{o==null||o()});const _=W(()=>w(b)?!0:w(h)),S=W(()=>n.disabled?!1:w(h)),C=W(()=>n.appendTo||r.value),T=W(()=>{var te;return(te=n.style)!=null?te:{}}),E=ie(!0),O=()=>{g(),V()&&ti(document.body),E.value=!0},D=()=>{if(w(a))return!0},j=ni(D,()=>{n.enterable&&w(l)==="hover"&&s()}),k=ni(D,()=>{w(l)==="hover"&&f()}),U=()=>{var te,A;(A=(te=u.value)==null?void 0:te.updatePopper)==null||A.call(te),v==null||v()},P=()=>{m==null||m()},re=()=>{d()},q=()=>{n.virtualTriggering||f()},V=te=>{var A;const B=(A=u.value)==null?void 0:A.popperContentRef,I=(te==null?void 0:te.relatedTarget)||document.activeElement;return B==null?void 0:B.contains(I)};return Te(()=>w(h),te=>{te?(E.value=!1,o=M8(p,()=>{if(w(a))return;w(l)!=="hover"&&f()})):o==null||o()},{flush:"post"}),Te(()=>n.content,()=>{var te,A;(A=(te=u.value)==null?void 0:te.updatePopper)==null||A.call(te)}),t({contentRef:u,isFocusInsideContent:V}),(te,A)=>($(),ye(w(Av),{disabled:!te.teleported,to:w(C)},{default:he(()=>[w(_)||!E.value?($(),ye(sr,{key:0,name:w(y),appear:!w(b),onAfterLeave:O,onBeforeEnter:U,onAfterEnter:re,onBeforeLeave:P,persisted:""},{default:he(()=>[mt(ce(w(iL),$t({id:w(c),ref_key:"contentRef",ref:u},te.$attrs,{"aria-label":te.ariaLabel,"aria-hidden":E.value,"boundaries-padding":te.boundariesPadding,"fallback-placements":te.fallbackPlacements,"gpu-acceleration":te.gpuAcceleration,offset:te.offset,placement:te.placement,"popper-options":te.popperOptions,"arrow-offset":te.arrowOffset,strategy:te.strategy,effect:te.effect,enterable:te.enterable,pure:te.pure,"popper-class":te.popperClass,"popper-style":[te.popperStyle,w(T)],"reference-el":te.referenceEl,"trigger-target-el":te.triggerTargetEl,visible:w(S),"z-index":te.zIndex,onMouseenter:w(j),onMouseleave:w(k),onBlur:q,onClose:w(f)}),{default:he(()=>[Ce(te.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"]),[[Ft,w(S)]])]),_:3},8,["name","appear"])):be("v-if",!0)]),_:3},8,["disabled","to"]))}});var xL=Le(CL,[["__file","content.vue"]]);const TL=pe({name:"ElTooltip"}),EL=pe({...TL,props:dL,emits:hL,setup(e,{expose:t,emit:n}){const r=e;wL();const i=Ae("tooltip"),u=Er(),p=ie(),o=ie(),a=()=>{var b;const _=w(p);_&&((b=_.popperInstanceRef)==null||b.update())},c=ie(!1),h=ie(),{show:l,hide:f,hasUpdateHandler:s}=fL({indicator:c,toggleReason:h}),{onOpen:d,onClose:g}=B6({showAfter:En(r,"showAfter"),hideAfter:En(r,"hideAfter"),autoClose:En(r,"autoClose"),open:l,close:f}),v=W(()=>yn(r.visible)&&!s.value),m=W(()=>[i.b(),r.popperClass]);pt(Ov,{controlled:v,id:u,open:$o(c),trigger:En(r,"trigger"),onOpen:d,onClose:g,onToggle:b=>{w(c)?g(b):d(b)},onShow:()=>{n("show",h.value)},onHide:()=>{n("hide",h.value)},onBeforeShow:()=>{n("before-show",h.value)},onBeforeHide:()=>{n("before-hide",h.value)},updatePopper:a}),Te(()=>r.disabled,b=>{b&&c.value&&(c.value=!1)});const y=b=>{var _;return(_=o.value)==null?void 0:_.isFocusInsideContent(b)};return S_(()=>c.value&&f()),t({popperRef:p,contentRef:o,isFocusInsideContent:y,updatePopper:a,onOpen:d,onClose:g,hide:f}),(b,_)=>($(),ye(w(aL),{ref_key:"popperRef",ref:p,role:b.role},{default:he(()=>[ce(mL,{disabled:b.disabled,trigger:b.trigger,"trigger-keys":b.triggerKeys,"virtual-ref":b.virtualRef,"virtual-triggering":b.virtualTriggering},{default:he(()=>[b.$slots.default?Ce(b.$slots,"default",{key:0}):be("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),ce(xL,{ref_key:"contentRef",ref:o,"aria-label":b.ariaLabel,"boundaries-padding":b.boundariesPadding,content:b.content,disabled:b.disabled,effect:b.effect,enterable:b.enterable,"fallback-placements":b.fallbackPlacements,"hide-after":b.hideAfter,"gpu-acceleration":b.gpuAcceleration,offset:b.offset,persistent:b.persistent,"popper-class":w(m),"popper-style":b.popperStyle,placement:b.placement,"popper-options":b.popperOptions,"arrow-offset":b.arrowOffset,pure:b.pure,"raw-content":b.rawContent,"reference-el":b.referenceEl,"trigger-target-el":b.triggerTargetEl,"show-after":b.showAfter,strategy:b.strategy,teleported:b.teleported,transition:b.transition,"virtual-triggering":b.virtualTriggering,"z-index":b.zIndex,"append-to":b.appendTo},{default:he(()=>[Ce(b.$slots,"content",{},()=>[b.rawContent?($(),oe("span",{key:0,innerHTML:b.content},null,8,["innerHTML"])):($(),oe("span",{key:1},Oe(b.content),1))]),b.showArrow?($(),ye(w(wM),{key:0})):be("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","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var kL=Le(EL,[["__file","tooltip.vue"]]);const Wr=dt(kL),OL=Me({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:Se([String,Object,Array])},offset:{type:Se(Array),default:[0,0]},badgeClass:{type:String}}),PL=pe({name:"ElBadge"}),AL=pe({...PL,props:OL,setup(e,{expose:t}){const n=e,r=Ae("badge"),i=W(()=>n.isDot?"":Ve(n.value)&&Ve(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`),u=W(()=>{var p,o,a,c,h;return[{backgroundColor:n.color,marginRight:An(-((o=(p=n.offset)==null?void 0:p[0])!=null?o:0)),marginTop:An((c=(a=n.offset)==null?void 0:a[1])!=null?c:0)},(h=n.badgeStyle)!=null?h:{}]});return t({content:i}),(p,o)=>($(),oe("div",{class:le(w(r).b())},[Ce(p.$slots,"default"),ce(sr,{name:`${w(r).namespace.value}-zoom-in-center`,persisted:""},{default:he(()=>[mt(ae("sup",{class:le([w(r).e("content"),w(r).em("content",p.type),w(r).is("fixed",!!p.$slots.default),w(r).is("dot",p.isDot),w(r).is("hide-zero",!p.showZero&&n.value===0),p.badgeClass]),style:ze(w(u))},[Ce(p.$slots,"content",{value:w(i)},()=>[We(Oe(w(i)),1)])],6),[[Ft,!p.hidden&&(w(i)||p.isDot||p.$slots.content)]])]),_:3},8,["name"])],2))}});var IL=Le(AL,[["__file","badge.vue"]]);const ML=dt(IL),a2=Symbol("buttonGroupContextKey"),wf=({from:e,replacement:t,scope:n,version:r,ref:i,type:u="API"},p)=>{Te(()=>w(p),o=>{},{immediate:!0})},RL=(e,t)=>{wf({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},W(()=>e.type==="text"));const n=Ne(a2,void 0),r=jl("button"),{form:i}=ia(),u=Or(W(()=>n==null?void 0:n.size)),p=vr(),o=ie(),a=Vo(),c=W(()=>{var m;return e.type||(n==null?void 0:n.type)||((m=r.value)==null?void 0:m.type)||""}),h=W(()=>{var m,y,b;return(b=(y=e.autoInsertSpace)!=null?y:(m=r.value)==null?void 0:m.autoInsertSpace)!=null?b:!1}),l=W(()=>{var m,y,b;return(b=(y=e.plain)!=null?y:(m=r.value)==null?void 0:m.plain)!=null?b:!1}),f=W(()=>{var m,y,b;return(b=(y=e.round)!=null?y:(m=r.value)==null?void 0:m.round)!=null?b:!1}),s=W(()=>{var m,y,b;return(b=(y=e.text)!=null?y:(m=r.value)==null?void 0:m.text)!=null?b:!1}),d=W(()=>e.tag==="button"?{ariaDisabled:p.value||e.loading,disabled:p.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),g=W(()=>{var m;const y=(m=a.default)==null?void 0:m.call(a);if(h.value&&(y==null?void 0:y.length)===1){const b=y[0];if((b==null?void 0:b.type)===Uo){const _=b.children;return/^\p{Unified_Ideograph}{2}$/u.test(_.trim())}}return!1});return{_disabled:p,_size:u,_type:c,_ref:o,_props:d,_plain:l,_round:f,_text:s,shouldAddSpace:g,handleClick:m=>{if(p.value||e.loading){m.stopPropagation();return}e.nativeType==="reset"&&(i==null||i.resetFields()),t("click",m)}}},LL=["default","primary","success","warning","info","danger","text",""],DL=["button","submit","reset"],_h=Me({size:Tr,disabled:Boolean,type:{type:String,values:LL,default:""},icon:{type:Rt},nativeType:{type:String,values:DL,default:"button"},loading:Boolean,loadingIcon:{type:Rt,default:()=>al},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:Se([String,Object]),default:"button"}}),FL={click:e=>e instanceof MouseEvent};function on(e,t){BL(e)&&(e="100%");var n=NL(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 gu(e){return Math.min(1,Math.max(0,e))}function BL(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function NL(e){return typeof e=="string"&&e.indexOf("%")!==-1}function o2(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function mu(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ga(e){return e.length===1?"0"+e:String(e)}function $L(e,t,n){return{r:on(e,255)*255,g:on(t,255)*255,b:on(n,255)*255}}function Z0(e,t,n){e=on(e,255),t=on(t,255),n=on(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),u=0,p=0,o=(r+i)/2;if(r===i)p=0,u=0;else{var a=r-i;switch(p=o>.5?a/(2-r-i):a/(r+i),r){case e:u=(t-n)/a+(t<n?6:0);break;case t:u=(n-e)/a+2;break;case n:u=(e-t)/a+4;break}u/=6}return{h:u,s:p,l:o}}function rd(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 zL(e,t,n){var r,i,u;if(e=on(e,360),t=on(t,100),n=on(n,100),t===0)i=n,u=n,r=n;else{var p=n<.5?n*(1+t):n+t-n*t,o=2*n-p;r=rd(o,p,e+1/3),i=rd(o,p,e),u=rd(o,p,e-1/3)}return{r:r*255,g:i*255,b:u*255}}function J0(e,t,n){e=on(e,255),t=on(t,255),n=on(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),u=0,p=r,o=r-i,a=r===0?0:o/r;if(r===i)u=0;else{switch(r){case e:u=(t-n)/o+(t<n?6:0);break;case t:u=(n-e)/o+2;break;case n:u=(e-t)/o+4;break}u/=6}return{h:u,s:a,v:p}}function jL(e,t,n){e=on(e,360)*6,t=on(t,100),n=on(n,100);var r=Math.floor(e),i=e-r,u=n*(1-t),p=n*(1-i*t),o=n*(1-(1-i)*t),a=r%6,c=[n,p,u,u,o,n][a],h=[o,n,n,p,u,u][a],l=[u,u,o,n,n,p][a];return{r:c*255,g:h*255,b:l*255}}function Q0(e,t,n,r){var i=[ga(Math.round(e).toString(16)),ga(Math.round(t).toString(16)),ga(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function VL(e,t,n,r,i){var u=[ga(Math.round(e).toString(16)),ga(Math.round(t).toString(16)),ga(Math.round(n).toString(16)),ga(UL(r))];return i&&u[0].startsWith(u[0].charAt(1))&&u[1].startsWith(u[1].charAt(1))&&u[2].startsWith(u[2].charAt(1))&&u[3].startsWith(u[3].charAt(1))?u[0].charAt(0)+u[1].charAt(0)+u[2].charAt(0)+u[3].charAt(0):u.join("")}function UL(e){return Math.round(parseFloat(e)*255).toString(16)}function ey(e){return $n(e)/255}function $n(e){return parseInt(e,16)}function HL(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var wh={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 WL(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,u=null,p=!1,o=!1;return typeof e=="string"&&(e=YL(e)),typeof e=="object"&&(Zr(e.r)&&Zr(e.g)&&Zr(e.b)?(t=$L(e.r,e.g,e.b),p=!0,o=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Zr(e.h)&&Zr(e.s)&&Zr(e.v)?(r=mu(e.s),i=mu(e.v),t=jL(e.h,r,i),p=!0,o="hsv"):Zr(e.h)&&Zr(e.s)&&Zr(e.l)&&(r=mu(e.s),u=mu(e.l),t=zL(e.h,r,u),p=!0,o="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=o2(n),{ok:p,format:e.format||o,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 KL="[-\\+]?\\d+%?",GL="[-\\+]?\\d*\\.\\d+%?",$i="(?:".concat(GL,")|(?:").concat(KL,")"),id="[\\s|\\(]+(".concat($i,")[,|\\s]+(").concat($i,")[,|\\s]+(").concat($i,")\\s*\\)?"),ad="[\\s|\\(]+(".concat($i,")[,|\\s]+(").concat($i,")[,|\\s]+(").concat($i,")[,|\\s]+(").concat($i,")\\s*\\)?"),gr={CSS_UNIT:new RegExp($i),rgb:new RegExp("rgb"+id),rgba:new RegExp("rgba"+ad),hsl:new RegExp("hsl"+id),hsla:new RegExp("hsla"+ad),hsv:new RegExp("hsv"+id),hsva:new RegExp("hsva"+ad),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 YL(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(wh[e])e=wh[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=gr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=gr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=gr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=gr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=gr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=gr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=gr.hex8.exec(e),n?{r:$n(n[1]),g:$n(n[2]),b:$n(n[3]),a:ey(n[4]),format:t?"name":"hex8"}:(n=gr.hex6.exec(e),n?{r:$n(n[1]),g:$n(n[2]),b:$n(n[3]),format:t?"name":"hex"}:(n=gr.hex4.exec(e),n?{r:$n(n[1]+n[1]),g:$n(n[2]+n[2]),b:$n(n[3]+n[3]),a:ey(n[4]+n[4]),format:t?"name":"hex8"}:(n=gr.hex3.exec(e),n?{r:$n(n[1]+n[1]),g:$n(n[2]+n[2]),b:$n(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Zr(e){return Boolean(gr.CSS_UNIT.exec(String(e)))}var ho=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=HL(t)),this.originalInput=t;var i=WL(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.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=i.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,i,u=t.r/255,p=t.g/255,o=t.b/255;return u<=.03928?n=u/12.92:n=Math.pow((u+.055)/1.055,2.4),p<=.03928?r=p/12.92:r=Math.pow((p+.055)/1.055,2.4),o<=.03928?i=o/12.92:i=Math.pow((o+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=o2(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=J0(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=J0(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Z0(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=Z0(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Q0(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),VL(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(on(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(on(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="#"+Q0(this.r,this.g,this.b,!1),n=0,r=Object.entries(wh);n<r.length;n++){var i=r[n],u=i[0],p=i[1];if(t===p)return u}return!1},e.prototype.toString=function(t){var n=Boolean(t);t=t!=null?t:this.format;var r=!1,i=this.a<1&&this.a>=0,u=!n&&i&&(t.startsWith("hex")||t==="name");return u?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=gu(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=gu(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=gu(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=gu(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(),i=new e(t).toRgb(),u=n/100,p={r:(i.r-r.r)*u+r.r,g:(i.g-r.g)*u+r.g,b:(i.b-r.b)*u+r.b,a:(i.a-r.a)*u+r.a};return new e(p)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,u=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,u.push(new e(r));return u},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,i=n.s,u=n.v,p=[],o=1/t;t--;)p.push(new e({h:r,s:i,v:u})),u=(u+o)%1;return p},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(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},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,i=[this],u=360/t,p=1;p<t;p++)i.push(new e({h:(r+p*u)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function ki(e,t=20){return e.mix("#141414",t).toString()}function XL(e){const t=vr(),n=Ae("button");return W(()=>{let r={},i=e.color;if(i){const u=i.match(/var\((.*?)\)/);u&&(i=window.getComputedStyle(window.document.documentElement).getPropertyValue(u[1]));const p=new ho(i),o=e.dark?p.tint(20).toString():ki(p,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?ki(p,90):p.tint(90).toString(),"text-color":i,"border-color":e.dark?ki(p,50):p.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":o,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":o}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?ki(p,90):p.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?ki(p,50):p.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?ki(p,80):p.tint(80).toString());else{const a=e.dark?ki(p,30):p.tint(30).toString(),c=p.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":i,"text-color":c,"border-color":i,"hover-bg-color":a,"hover-text-color":c,"hover-border-color":a,"active-bg-color":o,"active-border-color":o}),t.value){const h=e.dark?ki(p,50):p.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=h,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")]=h}}}return r})}const qL=pe({name:"ElButton"}),ZL=pe({...qL,props:_h,emits:FL,setup(e,{expose:t,emit:n}){const r=e,i=XL(r),u=Ae("button"),{_ref:p,_size:o,_type:a,_disabled:c,_props:h,_plain:l,_round:f,_text:s,shouldAddSpace:d,handleClick:g}=RL(r,n),v=W(()=>[u.b(),u.m(a.value),u.m(o.value),u.is("disabled",c.value),u.is("loading",r.loading),u.is("plain",l.value),u.is("round",f.value),u.is("circle",r.circle),u.is("text",s.value),u.is("link",r.link),u.is("has-bg",r.bg)]);return t({ref:p,size:o,type:a,disabled:c,shouldAddSpace:d}),(m,y)=>($(),ye(ut(m.tag),$t({ref_key:"_ref",ref:p},w(h),{class:w(v),style:w(i),onClick:w(g)}),{default:he(()=>[m.loading?($(),oe($e,{key:0},[m.$slots.loading?Ce(m.$slots,"loading",{key:0}):($(),ye(w(De),{key:1,class:le(w(u).is("loading"))},{default:he(()=>[($(),ye(ut(m.loadingIcon)))]),_:1},8,["class"]))],64)):m.icon||m.$slots.icon?($(),ye(w(De),{key:1},{default:he(()=>[m.icon?($(),ye(ut(m.icon),{key:0})):Ce(m.$slots,"icon",{key:1})]),_:3})):be("v-if",!0),m.$slots.default?($(),oe("span",{key:2,class:le({[w(u).em("text","expand")]:w(d)})},[Ce(m.$slots,"default")],2)):be("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var JL=Le(ZL,[["__file","button.vue"]]);const QL={size:_h.size,type:_h.type},eD=pe({name:"ElButtonGroup"}),tD=pe({...eD,props:QL,setup(e){const t=e;pt(a2,yt({size:En(t,"size"),type:En(t,"type")}));const n=Ae("button");return(r,i)=>($(),oe("div",{class:le(w(n).b("group"))},[Ce(r.$slots,"default")],2))}});var s2=Le(tD,[["__file","button-group.vue"]]);const ht=dt(JL,{ButtonGroup:s2});pr(s2);var yu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nD(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}const rD=Me({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:Se([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}}),iD=pe({name:"ElCard"}),aD=pe({...iD,props:rD,setup(e){const t=jl("card"),n=Ae("card");return(r,i)=>{var u;return $(),oe("div",{class:le([w(n).b(),w(n).is(`${r.shadow||((u=w(t))==null?void 0:u.shadow)||"always"}-shadow`)])},[r.$slots.header||r.header?($(),oe("div",{key:0,class:le([w(n).e("header"),r.headerClass])},[Ce(r.$slots,"header",{},()=>[We(Oe(r.header),1)])],2)):be("v-if",!0),ae("div",{class:le([w(n).e("body"),r.bodyClass]),style:ze(r.bodyStyle)},[Ce(r.$slots,"default")],6),r.$slots.footer||r.footer?($(),oe("div",{key:1,class:le([w(n).e("footer"),r.footerClass])},[Ce(r.$slots,"footer",{},()=>[We(Oe(r.footer),1)])],2)):be("v-if",!0)],2)}}});var oD=Le(aD,[["__file","card.vue"]]);const sD=dt(oD),lD=Me({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}),uD={change:(e,t)=>[e,t].every(Ve)},l2=Symbol("carouselContextKey"),Sh="ElCarouselItem";var Xu=(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))(Xu||{});const zi=e=>{const t=Pe(e)?e:[e],n=[];return t.forEach(r=>{var i;Pe(r)?n.push(...zi(r)):On(r)&&((i=r.component)==null?void 0:i.subTree)?n.push(r,...zi(r.component.subTree)):On(r)&&Pe(r.children)?n.push(...zi(r.children)):On(r)&&r.shapeFlag===2?n.push(...zi(r.type())):n.push(r)}),n},cD=(e,t,n)=>zi(e.subTree).filter(u=>{var p;return On(u)&&((p=u.type)==null?void 0:p.name)===t&&!!u.component}).map(u=>u.component.uid).map(u=>n[u]).filter(u=>!!u),u2=(e,t)=>{const n=Bt({}),r=Bt([]),i=new WeakMap,u=h=>{n.value[h.uid]=h,ju(n),Je(()=>{const l=h.getVnode().el,f=l.parentNode;if(!i.has(f)){i.set(f,[]);const s=f.insertBefore.bind(f);f.insertBefore=(d,g)=>(i.get(f).some(m=>d===m||g===m)&&ju(n),s(d,g))}i.get(f).push(l)})},p=h=>{delete n.value[h.uid],ju(n);const l=h.getVnode().el,f=l.parentNode,s=i.get(f),d=s.indexOf(l);s.splice(d,1)},o=()=>{r.value=cD(e,t,n.value)},a=h=>h.render(),c=pe({setup(h,{slots:l}){return()=>(o(),l.default?gt(a,{render:l.default}):null)}});return{children:r,addChild:u,removeChild:p,ChildrenSorter:c}},ty=300,fD=(e,t,n)=>{const{children:r,addChild:i,removeChild:u,ChildrenSorter:p}=u2(it(),Sh),o=Vo(),a=ie(-1),c=ie(null),h=ie(!1),l=ie(),f=ie(0),s=ie(!0),d=W(()=>e.arrow!=="never"&&!w(m)),g=W(()=>r.value.some(L=>L.props.label.toString().length>0)),v=W(()=>e.type==="card"),m=W(()=>e.direction==="vertical"),y=W(()=>e.height!=="auto"?{height:e.height}:{height:`${f.value}px`,overflow:"hidden"}),b=Fs(L=>{O(L)},ty,{trailing:!0}),_=Fs(L=>{V(L)},ty),S=L=>s.value?a.value<=1?L<=1:L>1:!0;function C(){c.value&&(clearInterval(c.value),c.value=null)}function T(){e.interval<=0||!e.autoplay||c.value||(c.value=setInterval(()=>E(),e.interval))}const E=()=>{a.value<r.value.length-1?a.value=a.value+1:e.loop&&(a.value=0)};function O(L){if(Be(L)){const G=r.value.filter(ne=>ne.props.name===L);G.length>0&&(L=r.value.indexOf(G[0]))}if(L=Number(L),Number.isNaN(L)||L!==Math.floor(L))return;const Q=r.value.length,H=a.value;L<0?a.value=e.loop?Q-1:0:L>=Q?a.value=e.loop?0:Q-1:a.value=L,H===a.value&&D(H),B()}function D(L){r.value.forEach((Q,H)=>{Q.translateItem(H,a.value,L)})}function j(L,Q){var H,G,ne,de;const ve=w(r),_e=ve.length;if(_e===0||!L.states.inStage)return!1;const N=Q+1,x=Q-1,K=_e-1,X=ve[K].states.active,R=ve[0].states.active,F=(G=(H=ve[N])==null?void 0:H.states)==null?void 0:G.active,ee=(de=(ne=ve[x])==null?void 0:ne.states)==null?void 0:de.active;return Q===K&&R||F?"left":Q===0&&X||ee?"right":!1}function k(){h.value=!0,e.pauseOnHover&&C()}function U(){h.value=!1,T()}function P(L){w(m)||r.value.forEach((Q,H)=>{L===j(Q,H)&&(Q.states.hover=!0)})}function re(){w(m)||r.value.forEach(L=>{L.states.hover=!1})}function q(L){a.value=L}function V(L){e.trigger==="hover"&&L!==a.value&&(a.value=L)}function te(){O(a.value-1)}function A(){O(a.value+1)}function B(){C(),e.pauseOnHover||T()}function I(L){e.height==="auto"&&(f.value=L)}function M(){var L;const Q=(L=o.default)==null?void 0:L.call(o);if(!Q)return null;const G=zi(Q).filter(ne=>On(ne)&&ne.type.name===Sh);return(G==null?void 0:G.length)===2&&e.loop&&!v.value?(s.value=!0,G):(s.value=!1,null)}Te(()=>a.value,(L,Q)=>{D(Q),s.value&&(L=L%2,Q=Q%2),Q>-1&&t(Pt,L,Q)});const J=W({get:()=>s.value?a.value%2:a.value,set:L=>a.value=L});Te(()=>e.autoplay,L=>{L?T():C()}),Te(()=>e.loop,()=>{O(a.value)}),Te(()=>e.interval,()=>{B()});const z=Bt();return Je(()=>{Te(()=>r.value,()=>{r.value.length>0&&O(e.initialIndex)},{immediate:!0}),z.value=rn(l.value,()=>{D()}),T()}),At(()=>{C(),l.value&&z.value&&z.value.stop()}),pt(l2,{root:l,isCardType:v,isVertical:m,items:r,loop:e.loop,cardScale:e.cardScale,addItem:i,removeItem:u,setActiveItem:O,setContainerHeight:I}),{root:l,activeIndex:a,exposeActiveIndex:J,arrowDisplay:d,hasLabel:g,hover:h,isCardType:v,items:r,isVertical:m,containerStyle:y,isItemsTwoLength:s,handleButtonEnter:P,handleButtonLeave:re,handleIndicatorClick:q,handleMouseEnter:k,handleMouseLeave:U,setActiveItem:O,prev:te,next:A,PlaceholderItem:M,isTwoLengthShow:S,ItemsSorter:p,throttledArrowClick:b,throttledIndicatorHover:_}},dD="ElCarousel",hD=pe({name:dD}),pD=pe({...hD,props:lD,emits:uD,setup(e,{expose:t,emit:n}){const r=e,{root:i,activeIndex:u,exposeActiveIndex:p,arrowDisplay:o,hasLabel:a,hover:c,isCardType:h,items:l,isVertical:f,containerStyle:s,handleButtonEnter:d,handleButtonLeave:g,handleIndicatorClick:v,handleMouseEnter:m,handleMouseLeave:y,setActiveItem:b,prev:_,next:S,PlaceholderItem:C,isTwoLengthShow:T,ItemsSorter:E,throttledArrowClick:O,throttledIndicatorHover:D}=fD(r,n),j=Ae("carousel"),{t:k}=Gt(),U=W(()=>{const V=[j.b(),j.m(r.direction)];return w(h)&&V.push(j.m("card")),V}),P=W(()=>{const V=[j.e("indicators"),j.em("indicators",r.direction)];return w(a)&&V.push(j.em("indicators","labels")),r.indicatorPosition==="outside"&&V.push(j.em("indicators","outside")),w(f)&&V.push(j.em("indicators","right")),V});function re(V){if(!r.motionBlur)return;const te=w(f)?`${j.namespace.value}-transitioning-vertical`:`${j.namespace.value}-transitioning`;V.currentTarget.classList.add(te)}function q(V){if(!r.motionBlur)return;const te=w(f)?`${j.namespace.value}-transitioning-vertical`:`${j.namespace.value}-transitioning`;V.currentTarget.classList.remove(te)}return t({activeIndex:p,setActiveItem:b,prev:_,next:S}),(V,te)=>($(),oe("div",{ref_key:"root",ref:i,class:le(w(U)),onMouseenter:Ze(w(m),["stop"]),onMouseleave:Ze(w(y),["stop"])},[w(o)?($(),ye(sr,{key:0,name:"carousel-arrow-left",persisted:""},{default:he(()=>[mt(ae("button",{type:"button",class:le([w(j).e("arrow"),w(j).em("arrow","left")]),"aria-label":w(k)("el.carousel.leftArrow"),onMouseenter:A=>w(d)("left"),onMouseleave:w(g),onClick:Ze(A=>w(O)(w(u)-1),["stop"])},[ce(w(De),null,{default:he(()=>[ce(w(of))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[Ft,(V.arrow==="always"||w(c))&&(r.loop||w(u)>0)]])]),_:1})):be("v-if",!0),w(o)?($(),ye(sr,{key:1,name:"carousel-arrow-right",persisted:""},{default:he(()=>[mt(ae("button",{type:"button",class:le([w(j).e("arrow"),w(j).em("arrow","right")]),"aria-label":w(k)("el.carousel.rightArrow"),onMouseenter:A=>w(d)("right"),onMouseleave:w(g),onClick:Ze(A=>w(O)(w(u)+1),["stop"])},[ce(w(De),null,{default:he(()=>[ce(w(Wo))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[Ft,(V.arrow==="always"||w(c))&&(r.loop||w(u)<w(l).length-1)]])]),_:1})):be("v-if",!0),ae("div",{class:le(w(j).e("container")),style:ze(w(s)),onTransitionstart:re,onTransitionend:q},[ce(w(C)),Ce(V.$slots,"default")],38),ce(w(E),null,{default:he(()=>[V.indicatorPosition!=="none"?($(),oe("ul",{key:0,class:le(w(P))},[($(!0),oe($e,null,Lt(w(l),(A,B)=>mt(($(),oe("li",{key:B,class:le([w(j).e("indicator"),w(j).em("indicator",V.direction),w(j).is("active",B===w(u))]),onMouseenter:I=>w(D)(B),onClick:Ze(I=>w(v)(B),["stop"])},[ae("button",{class:le(w(j).e("button")),"aria-label":w(k)("el.carousel.indicator",{index:B+1})},[w(a)?($(),oe("span",{key:0},Oe(A.props.label),1)):be("v-if",!0)],10,["aria-label"])],42,["onMouseenter","onClick"])),[[Ft,w(T)(B)]])),128))],2)):be("v-if",!0)]),_:1}),r.motionBlur?($(),oe("svg",{key:2,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},[ae("defs",null,[ae("filter",{id:"elCarouselHorizontal"},[ae("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),ae("filter",{id:"elCarouselVertical"},[ae("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])])])):be("v-if",!0)],42,["onMouseenter","onMouseleave"]))}});var vD=Le(pD,[["__file","carousel.vue"]]);const gD=Me({name:{type:String,default:""},label:{type:[String,Number],default:""}}),mD=e=>{const t=Ne(l2),n=it(),r=ie(),i=ie(!1),u=ie(0),p=ie(1),o=ie(!1),a=ie(!1),c=ie(!1),h=ie(!1),{isCardType:l,isVertical:f,cardScale:s}=t;function d(_,S,C){const T=C-1,E=S-1,O=S+1,D=C/2;return S===0&&_===T?-1:S===T&&_===0?C:_<E&&S-_>=D?C+1:_>O&&_-S>=D?-2:_}function g(_,S){var C,T;const E=w(f)?((C=t.root.value)==null?void 0:C.offsetHeight)||0:((T=t.root.value)==null?void 0:T.offsetWidth)||0;return c.value?E*((2-s)*(_-S)+1)/4:_<S?-(1+s)*E/4:(3+s)*E/4}function v(_,S,C){const T=t.root.value;return T?((C?T.offsetHeight:T.offsetWidth)||0)*(_-S):0}const m=(_,S,C)=>{var T;const E=w(l),O=(T=t.items.value.length)!=null?T:Number.NaN,D=_===S;!E&&!vn(C)&&(h.value=D||_===C),!D&&O>2&&t.loop&&(_=d(_,S,O));const j=w(f);o.value=D,E?(c.value=Math.round(Math.abs(_-S))<=1,u.value=g(_,S),p.value=w(o)?1:s):u.value=v(_,S,j),a.value=!0,D&&r.value&&t.setContainerHeight(r.value.offsetHeight)};function y(){if(t&&w(l)){const _=t.items.value.findIndex(({uid:S})=>S===n.uid);t.setActiveItem(_)}}const b={props:e,states:yt({hover:i,translate:u,scale:p,active:o,ready:a,inStage:c,animating:h}),uid:n.uid,getVnode:()=>n.vnode,translateItem:m};return t.addItem(b),At(()=>{t.removeItem(b)}),{carouselItemRef:r,active:o,animating:h,hover:i,inStage:c,isVertical:f,translate:u,isCardType:l,scale:p,ready:a,handleItemClick:y}},yD=pe({name:Sh}),bD=pe({...yD,props:gD,setup(e){const t=e,n=Ae("carousel"),{carouselItemRef:r,active:i,animating:u,hover:p,inStage:o,isVertical:a,translate:c,isCardType:h,scale:l,ready:f,handleItemClick:s}=mD(t),d=W(()=>[n.e("item"),n.is("active",i.value),n.is("in-stage",o.value),n.is("hover",p.value),n.is("animating",u.value),{[n.em("item","card")]:h.value,[n.em("item","card-vertical")]:h.value&&a.value}]),g=W(()=>{const m=`${`translate${w(a)?"Y":"X"}`}(${w(c)}px)`,y=`scale(${w(l)})`;return{transform:[m,y].join(" ")}});return(v,m)=>mt(($(),oe("div",{ref_key:"carouselItemRef",ref:r,class:le(w(d)),style:ze(w(g)),onClick:w(s)},[w(h)?mt(($(),oe("div",{key:0,class:le(w(n).e("mask"))},null,2)),[[Ft,!w(i)]]):be("v-if",!0),Ce(v.$slots,"default")],14,["onClick"])),[[Ft,w(f)]])}});var c2=Le(bD,[["__file","carousel-item.vue"]]);const _D=dt(vD,{CarouselItem:c2}),wD=pr(c2),f2=Me({modelValue:{type:[String,Number,Boolean],default:void 0},size:Tr,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),SD=Me({...f2,border:Boolean}),d2={[et]:e=>Be(e)||Ve(e)||yn(e),[Pt]:e=>Be(e)||Ve(e)||yn(e)},h2=Symbol("radioGroupKey"),p2=(e,t)=>{const n=ie(),r=Ne(h2,void 0),i=W(()=>!!r),u=W(()=>hh(e.value)?e.label:e.value),p=W({get(){return i.value?r.modelValue:e.modelValue},set(l){i.value?r.changeEvent(l):t&&t(et,l),n.value.checked=e.modelValue===u.value}}),o=Or(W(()=>r==null?void 0:r.size)),a=vr(W(()=>r==null?void 0:r.disabled)),c=ie(!1),h=W(()=>a.value||i.value&&p.value!==u.value?-1:0);return wf({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},W(()=>i.value&&hh(e.value))),{radioRef:n,isGroup:i,radioGroup:r,focus:c,size:o,disabled:a,tabIndex:h,modelValue:p,actualValue:u}},CD=pe({name:"ElRadio"}),xD=pe({...CD,props:SD,emits:d2,setup(e,{emit:t}){const n=e,r=Ae("radio"),{radioRef:i,radioGroup:u,focus:p,size:o,disabled:a,modelValue:c,actualValue:h}=p2(n,t);function l(){Ke(()=>t(Pt,c.value))}return(f,s)=>{var d;return $(),oe("label",{class:le([w(r).b(),w(r).is("disabled",w(a)),w(r).is("focus",w(p)),w(r).is("bordered",f.border),w(r).is("checked",w(c)===w(h)),w(r).m(w(o))])},[ae("span",{class:le([w(r).e("input"),w(r).is("disabled",w(a)),w(r).is("checked",w(c)===w(h))])},[mt(ae("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":g=>wt(c)?c.value=g:null,class:le(w(r).e("original")),value:w(h),name:f.name||((d=w(u))==null?void 0:d.name),disabled:w(a),checked:w(c)===w(h),type:"radio",onFocus:g=>p.value=!0,onBlur:g=>p.value=!1,onChange:l,onClick:Ze(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[i1,w(c)]]),ae("span",{class:le(w(r).e("inner"))},null,2)],2),ae("span",{class:le(w(r).e("label")),onKeydown:Ze(()=>{},["stop"])},[Ce(f.$slots,"default",{},()=>[We(Oe(f.label),1)])],42,["onKeydown"])],2)}}});var TD=Le(xD,[["__file","radio.vue"]]);const ED=Me({...f2}),kD=pe({name:"ElRadioButton"}),OD=pe({...kD,props:ED,setup(e){const t=e,n=Ae("radio"),{radioRef:r,focus:i,size:u,disabled:p,modelValue:o,radioGroup:a,actualValue:c}=p2(t),h=W(()=>({backgroundColor:(a==null?void 0:a.fill)||"",borderColor:(a==null?void 0:a.fill)||"",boxShadow:a!=null&&a.fill?`-1px 0 0 0 ${a.fill}`:"",color:(a==null?void 0:a.textColor)||""}));return(l,f)=>{var s;return $(),oe("label",{class:le([w(n).b("button"),w(n).is("active",w(o)===w(c)),w(n).is("disabled",w(p)),w(n).is("focus",w(i)),w(n).bm("button",w(u))])},[mt(ae("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":d=>wt(o)?o.value=d:null,class:le(w(n).be("button","original-radio")),value:w(c),type:"radio",name:l.name||((s=w(a))==null?void 0:s.name),disabled:w(p),onFocus:d=>i.value=!0,onBlur:d=>i.value=!1,onClick:Ze(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[i1,w(o)]]),ae("span",{class:le(w(n).be("button","inner")),style:ze(w(o)===w(c)?w(h):{}),onKeydown:Ze(()=>{},["stop"])},[Ce(l.$slots,"default",{},()=>[We(Oe(l.label),1)])],46,["onKeydown"])],2)}}});var v2=Le(OD,[["__file","radio-button.vue"]]);const PD=Me({id:{type:String,default:void 0},size:Tr,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},...Hr(["ariaLabel"])}),AD=d2,ID=pe({name:"ElRadioGroup"}),MD=pe({...ID,props:PD,emits:AD,setup(e,{emit:t}){const n=e,r=Ae("radio"),i=Er(),u=ie(),{formItem:p}=ia(),{inputId:o,isLabeledByFormItem:a}=Xo(n,{formItemContext:p}),c=l=>{t(et,l),Ke(()=>t(Pt,l))};Je(()=>{const l=u.value.querySelectorAll("[type=radio]"),f=l[0];!Array.from(l).some(s=>s.checked)&&f&&(f.tabIndex=0)});const h=W(()=>n.name||i.value);return pt(h2,yt({...Sr(n),changeEvent:c,name:h})),Te(()=>n.modelValue,(l,f)=>{n.validateEvent&&!Wi(l,f)&&(p==null||p.validate("change").catch(s=>void 0))}),(l,f)=>($(),oe("div",{id:w(o),ref_key:"radioGroupRef",ref:u,class:le(w(r).b("group")),role:"radiogroup","aria-label":w(a)?void 0:l.ariaLabel||"radio-group","aria-labelledby":w(a)?w(p).labelId:void 0},[Ce(l.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var g2=Le(MD,[["__file","radio-group.vue"]]);dt(TD,{RadioButton:v2,RadioGroup:g2});const RD=pr(g2),LD=pr(v2),Ch=Me({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Wa},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),DD={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},FD=pe({name:"ElTag"}),BD=pe({...FD,props:Ch,emits:DD,setup(e,{emit:t}){const n=e,r=Or(),i=Ae("tag"),u=W(()=>{const{type:c,hit:h,effect:l,closable:f,round:s}=n;return[i.b(),i.is("closable",f),i.m(c||"primary"),i.m(r.value),i.m(l),i.is("hit",h),i.is("round",s)]}),p=c=>{t("close",c)},o=c=>{t("click",c)},a=c=>{var h,l,f;(f=(l=(h=c==null?void 0:c.component)==null?void 0:h.subTree)==null?void 0:l.component)!=null&&f.bum&&(c.component.subTree.component.bum=null)};return(c,h)=>c.disableTransitions?($(),oe("span",{key:0,class:le(w(u)),style:ze({backgroundColor:c.color}),onClick:o},[ae("span",{class:le(w(i).e("content"))},[Ce(c.$slots,"default")],2),c.closable?($(),ye(w(De),{key:0,class:le(w(i).e("close")),onClick:Ze(p,["stop"])},{default:he(()=>[ce(w(Vr))]),_:1},8,["class","onClick"])):be("v-if",!0)],6)):($(),ye(sr,{key:1,name:`${w(i).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:a},{default:he(()=>[ae("span",{class:le(w(u)),style:ze({backgroundColor:c.color}),onClick:o},[ae("span",{class:le(w(i).e("content"))},[Ce(c.$slots,"default")],2),c.closable?($(),ye(w(De),{key:0,class:le(w(i).e("close")),onClick:Ze(p,["stop"])},{default:he(()=>[ce(w(Vr))]),_:1},8,["class","onClick"])):be("v-if",!0)],6)]),_:3},8,["name"]))}});var ND=Le(BD,[["__file","tag.vue"]]);const $D=dt(ND),Ai=new Map;if(ct){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of Ai.values())for(const{documentHandler:r}of n)r(t,e);e=void 0}})}function ny(e,t){let n=[];return Pe(t.arg)?n=t.arg:rr(t.arg)&&n.push(t.arg),function(r,i){const u=t.instance.popperRef,p=r.target,o=i==null?void 0:i.target,a=!t||!t.instance,c=!p||!o,h=e.contains(p)||e.contains(o),l=e===p,f=n.length&&n.some(d=>d==null?void 0:d.contains(p))||n.length&&n.includes(o),s=u&&(u.contains(p)||u.contains(o));a||c||h||l||f||s||t.value(r,i)}}const Iv={beforeMount(e,t){Ai.has(e)||Ai.set(e,[]),Ai.get(e).push({documentHandler:ny(e,t),bindingFn:t.value})},updated(e,t){Ai.has(e)||Ai.set(e,[]);const n=Ai.get(e),r=n.findIndex(u=>u.bindingFn===t.oldValue),i={documentHandler:ny(e,t),bindingFn:t.value};r>=0?n.splice(r,1,i):n.push(i)},unmounted(e){Ai.delete(e)}},zD=Me({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:Se([Number,Object]),default:()=>Ht({})},sm:{type:Se([Number,Object]),default:()=>Ht({})},md:{type:Se([Number,Object]),default:()=>Ht({})},lg:{type:Se([Number,Object]),default:()=>Ht({})},xl:{type:Se([Number,Object]),default:()=>Ht({})}}),m2=Symbol("rowContextKey"),jD=pe({name:"ElCol"}),VD=pe({...jD,props:zD,setup(e){const t=e,{gutter:n}=Ne(m2,{gutter:W(()=>0)}),r=Ae("col"),i=W(()=>{const p={};return n.value&&(p.paddingLeft=p.paddingRight=`${n.value/2}px`),p}),u=W(()=>{const p=[];return["span","offset","pull","push"].forEach(c=>{const h=t[c];Ve(h)&&(c==="span"?p.push(r.b(`${t[c]}`)):h>0&&p.push(r.b(`${c}-${t[c]}`)))}),["xs","sm","md","lg","xl"].forEach(c=>{Ve(t[c])?p.push(r.b(`${c}-${t[c]}`)):Ye(t[c])&&Object.entries(t[c]).forEach(([h,l])=>{p.push(h!=="span"?r.b(`${c}-${h}-${l}`):r.b(`${c}-${l}`))})}),n.value&&p.push(r.is("guttered")),[r.b(),p]});return(p,o)=>($(),ye(ut(p.tag),{class:le(w(u)),style:ze(w(i))},{default:he(()=>[Ce(p.$slots,"default")]),_:3},8,["class","style"]))}});var UD=Le(VD,[["__file","col.vue"]]);const bu=dt(UD),ry=e=>Ve(e)||Be(e)||Pe(e),HD=Me({accordion:Boolean,modelValue:{type:Se([Array,String,Number]),default:()=>Ht([])},expandIconPosition:{type:Se([String]),default:"right"},beforeCollapse:{type:Se(Function)}}),WD={[et]:ry,[Pt]:ry},y2=Symbol("collapseContextKey"),KD="ElCollapse",GD=(e,t)=>{const n=ie(Wn(e.modelValue)),r=p=>{n.value=p;const o=e.accordion?n.value[0]:n.value;t(et,o),t(Pt,o)},i=p=>{if(e.accordion)r([n.value[0]===p?"":p]);else{const o=[...n.value],a=o.indexOf(p);a>-1?o.splice(a,1):o.push(p),r(o)}},u=async p=>{const{beforeCollapse:o}=e;if(!o){i(p);return}const a=o(p);[Eo(a),yn(a)].includes(!0)||Zt(KD,"beforeCollapse must return type `Promise<boolean>` or `boolean`"),Eo(a)?a.then(h=>{h!==!1&&i(p)}).catch(h=>{}):a&&i(p)};return Te(()=>e.modelValue,()=>n.value=Wn(e.modelValue),{deep:!0}),pt(y2,{activeNames:n,handleItemClick:u}),{activeNames:n,setActiveNames:r}},YD=e=>{const t=Ae("collapse");return{rootKls:W(()=>[t.b(),t.b(`icon-position-${e.expandIconPosition}`)])}},XD=pe({name:"ElCollapse"}),qD=pe({...XD,props:HD,emits:WD,setup(e,{expose:t,emit:n}){const r=e,{activeNames:i,setActiveNames:u}=GD(r,n),{rootKls:p}=YD(r);return t({activeNames:i,setActiveNames:u}),(o,a)=>($(),oe("div",{class:le(w(p))},[Ce(o.$slots,"default")],2))}});var ZD=Le(qD,[["__file","collapse.vue"]]);const JD=pe({name:"ElCollapseTransition"}),QD=pe({...JD,setup(e){const t=Ae("collapse-transition"),n=i=>{i.style.maxHeight="",i.style.overflow=i.dataset.oldOverflow,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom},r={beforeEnter(i){i.dataset||(i.dataset={}),i.dataset.oldPaddingTop=i.style.paddingTop,i.dataset.oldPaddingBottom=i.style.paddingBottom,i.style.height&&(i.dataset.elExistsHeight=i.style.height),i.style.maxHeight=0,i.style.paddingTop=0,i.style.paddingBottom=0},enter(i){requestAnimationFrame(()=>{i.dataset.oldOverflow=i.style.overflow,i.dataset.elExistsHeight?i.style.maxHeight=i.dataset.elExistsHeight:i.scrollHeight!==0?i.style.maxHeight=`${i.scrollHeight}px`:i.style.maxHeight=0,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom,i.style.overflow="hidden"})},afterEnter(i){i.style.maxHeight="",i.style.overflow=i.dataset.oldOverflow},enterCancelled(i){n(i)},beforeLeave(i){i.dataset||(i.dataset={}),i.dataset.oldPaddingTop=i.style.paddingTop,i.dataset.oldPaddingBottom=i.style.paddingBottom,i.dataset.oldOverflow=i.style.overflow,i.style.maxHeight=`${i.scrollHeight}px`,i.style.overflow="hidden"},leave(i){i.scrollHeight!==0&&(i.style.maxHeight=0,i.style.paddingTop=0,i.style.paddingBottom=0)},afterLeave(i){n(i)},leaveCancelled(i){n(i)}};return(i,u)=>($(),ye(sr,$t({name:w(t).b()},eT(r)),{default:he(()=>[Ce(i.$slots,"default")]),_:3},16,["name"]))}});var eF=Le(QD,[["__file","collapse-transition.vue"]]);const b2=dt(eF),tF=Me({title:{type:String,default:""},name:{type:Se([String,Number]),default:void 0},icon:{type:Rt,default:Wo},disabled:Boolean}),nF=e=>{const t=Ne(y2),{namespace:n}=Ae("collapse"),r=ie(!1),i=ie(!1),u=pv(),p=W(()=>u.current++),o=W(()=>{var f;return(f=e.name)!=null?f:`${n.value}-id-${u.prefix}-${w(p)}`}),a=W(()=>t==null?void 0:t.activeNames.value.includes(w(o)));return{focusing:r,id:p,isActive:a,handleFocus:()=>{setTimeout(()=>{i.value?i.value=!1:r.value=!0},50)},handleHeaderClick:f=>{if(e.disabled)return;const s=f.target;s!=null&&s.closest("input, textarea, select")||(t==null||t.handleItemClick(w(o)),r.value=!1,i.value=!0)},handleEnterClick:f=>{const s=f.target;s!=null&&s.closest("input, textarea, select")||(f.preventDefault(),t==null||t.handleItemClick(w(o)))}}},rF=(e,{focusing:t,isActive:n,id:r})=>{const i=Ae("collapse"),u=W(()=>[i.b("item"),i.is("active",w(n)),i.is("disabled",e.disabled)]),p=W(()=>[i.be("item","header"),i.is("active",w(n)),{focusing:w(t)&&!e.disabled}]),o=W(()=>[i.be("item","arrow"),i.is("active",w(n))]),a=W(()=>[i.be("item","title")]),c=W(()=>i.be("item","wrap")),h=W(()=>i.be("item","content")),l=W(()=>i.b(`content-${w(r)}`)),f=W(()=>i.b(`head-${w(r)}`));return{itemTitleKls:a,arrowKls:o,headKls:p,rootKls:u,itemWrapperKls:c,itemContentKls:h,scopedContentId:l,scopedHeadId:f}},iF=pe({name:"ElCollapseItem"}),aF=pe({...iF,props:tF,setup(e,{expose:t}){const n=e,{focusing:r,id:i,isActive:u,handleFocus:p,handleHeaderClick:o,handleEnterClick:a}=nF(n),{arrowKls:c,headKls:h,rootKls:l,itemTitleKls:f,itemWrapperKls:s,itemContentKls:d,scopedContentId:g,scopedHeadId:v}=rF(n,{focusing:r,isActive:u,id:i});return t({isActive:u}),(m,y)=>($(),oe("div",{class:le(w(l))},[ae("div",{id:w(v),class:le(w(h)),"aria-expanded":w(u),"aria-controls":w(g),"aria-describedby":w(g),tabindex:m.disabled?-1:0,role:"button",onClick:w(o),onKeydown:nn(Ze(w(a),["stop"]),["space","enter"]),onFocus:w(p),onBlur:b=>r.value=!1},[ae("span",{class:le(w(f))},[Ce(m.$slots,"title",{isActive:w(u)},()=>[We(Oe(m.title),1)])],2),Ce(m.$slots,"icon",{isActive:w(u)},()=>[ce(w(De),{class:le(w(c))},{default:he(()=>[($(),ye(ut(m.icon)))]),_:1},8,["class"])])],42,["id","aria-expanded","aria-controls","aria-describedby","tabindex","onClick","onKeydown","onFocus","onBlur"]),ce(w(b2),null,{default:he(()=>[mt(ae("div",{id:w(g),role:"region",class:le(w(s)),"aria-hidden":!w(u),"aria-labelledby":w(v)},[ae("div",{class:le(w(d))},[Ce(m.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[Ft,w(u)]])]),_:3})],2))}});var _2=Le(aF,[["__file","collapse-item.vue"]]);const oF=dt(ZD,{CollapseItem:_2}),sF=pr(_2),lF=Me({color:{type:Se(Object),required:!0},vertical:Boolean,disabled:Boolean});let od=!1;function vl(e,t){if(!ct)return;const n=function(u){var p;(p=t.drag)==null||p.call(t,u)},r=function(u){var p;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,od=!1,(p=t.end)==null||p.call(t,u)},i=function(u){var p;od||(u.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),od=!0,(p=t.start)==null||p.call(t,u))};e.addEventListener("mousedown",i),e.addEventListener("touchstart",i,{passive:!1})}const Mv=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}},uF=e=>{const t=it(),{t:n}=Gt(),r=Bt(),i=Bt(),u=W(()=>e.color.get("alpha")),p=W(()=>n("el.colorpicker.alphaLabel"));function o(l){var f;if(e.disabled)return;l.target!==r.value&&a(l),(f=r.value)==null||f.focus()}function a(l){if(!i.value||!r.value||e.disabled)return;const s=t.vnode.el.getBoundingClientRect(),{clientX:d,clientY:g}=Mv(l);if(e.vertical){let v=g-s.top;v=Math.max(r.value.offsetHeight/2,v),v=Math.min(v,s.height-r.value.offsetHeight/2),e.color.set("alpha",Math.round((v-r.value.offsetHeight/2)/(s.height-r.value.offsetHeight)*100))}else{let v=d-s.left;v=Math.max(r.value.offsetWidth/2,v),v=Math.min(v,s.width-r.value.offsetWidth/2),e.color.set("alpha",Math.round((v-r.value.offsetWidth/2)/(s.width-r.value.offsetWidth)*100))}}function c(l){if(e.disabled)return;const{code:f,shiftKey:s}=l,d=s?10:1;switch(f){case je.left:case je.down:l.preventDefault(),l.stopPropagation(),h(-d);break;case je.right:case je.up:l.preventDefault(),l.stopPropagation(),h(d);break}}function h(l){let f=u.value+l;f=f<0?0:f>100?100:f,e.color.set("alpha",f)}return{thumb:r,bar:i,alpha:u,alphaLabel:p,handleDrag:a,handleClick:o,handleKeydown:c}},cF=(e,{bar:t,thumb:n,handleDrag:r})=>{const i=it(),u=Ae("color-alpha-slider"),p=ie(0),o=ie(0),a=ie();function c(){if(!n.value||e.vertical)return 0;const y=i.vnode.el,b=e.color.get("alpha");return y?Math.round(b*(y.offsetWidth-n.value.offsetWidth/2)/100):0}function h(){if(!n.value)return 0;const y=i.vnode.el;if(!e.vertical)return 0;const b=e.color.get("alpha");return y?Math.round(b*(y.offsetHeight-n.value.offsetHeight/2)/100):0}function l(){if(e.color&&e.color.value){const{r:y,g:b,b:_}=e.color.toRgb();return`linear-gradient(to right, rgba(${y}, ${b}, ${_}, 0) 0%, rgba(${y}, ${b}, ${_}, 1) 100%)`}return""}function f(){p.value=c(),o.value=h(),a.value=l()}Je(()=>{if(!t.value||!n.value)return;const y={drag:b=>{r(b)},end:b=>{r(b)}};vl(t.value,y),vl(n.value,y),f()}),Te(()=>e.color.get("alpha"),()=>f()),Te(()=>e.color.value,()=>f());const s=W(()=>[u.b(),u.is("vertical",e.vertical),u.is("disabled",e.disabled)]),d=W(()=>u.e("bar")),g=W(()=>u.e("thumb")),v=W(()=>({background:a.value})),m=W(()=>({left:An(p.value),top:An(o.value)}));return{rootKls:s,barKls:d,barStyle:v,thumbKls:g,thumbStyle:m,update:f}},fF="ElColorAlphaSlider",dF=pe({name:fF}),hF=pe({...dF,props:lF,setup(e,{expose:t}){const n=e,{alpha:r,alphaLabel:i,bar:u,thumb:p,handleDrag:o,handleClick:a,handleKeydown:c}=uF(n),{rootKls:h,barKls:l,barStyle:f,thumbKls:s,thumbStyle:d,update:g}=cF(n,{bar:u,thumb:p,handleDrag:o});return t({update:g,bar:u,thumb:p}),(v,m)=>($(),oe("div",{class:le(w(h))},[ae("div",{ref_key:"bar",ref:u,class:le(w(l)),style:ze(w(f)),onClick:w(a)},null,14,["onClick"]),ae("div",{ref_key:"thumb",ref:p,class:le(w(s)),style:ze(w(d)),"aria-label":w(i),"aria-valuenow":w(r),"aria-orientation":v.vertical?"vertical":"horizontal","aria-valuemin":"0","aria-valuemax":"100",role:"slider",tabindex:"0",onKeydown:w(c)},null,46,["aria-label","aria-valuenow","aria-orientation","onKeydown"])],2))}});var pF=Le(hF,[["__file","alpha-slider.vue"]]);const vF=pe({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean,disabled:Boolean},setup(e){const t=Ae("color-hue-slider"),n=it(),r=ie(),i=ie(),u=ie(0),p=ie(0),o=W(()=>e.color.get("hue"));Te(()=>o.value,()=>{f()});function a(s){if(e.disabled)return;s.target!==r.value&&c(s)}function c(s){if(!i.value||!r.value||e.disabled)return;const g=n.vnode.el.getBoundingClientRect(),{clientX:v,clientY:m}=Mv(s);let y;if(e.vertical){let b=m-g.top;b=Math.min(b,g.height-r.value.offsetHeight/2),b=Math.max(r.value.offsetHeight/2,b),y=Math.round((b-r.value.offsetHeight/2)/(g.height-r.value.offsetHeight)*360)}else{let b=v-g.left;b=Math.min(b,g.width-r.value.offsetWidth/2),b=Math.max(r.value.offsetWidth/2,b),y=Math.round((b-r.value.offsetWidth/2)/(g.width-r.value.offsetWidth)*360)}e.color.set("hue",y)}function h(){if(!r.value)return 0;const s=n.vnode.el;if(e.vertical)return 0;const d=e.color.get("hue");return s?Math.round(d*(s.offsetWidth-r.value.offsetWidth/2)/360):0}function l(){if(!r.value)return 0;const s=n.vnode.el;if(!e.vertical)return 0;const d=e.color.get("hue");return s?Math.round(d*(s.offsetHeight-r.value.offsetHeight/2)/360):0}function f(){u.value=h(),p.value=l()}return Je(()=>{if(!i.value||!r.value||e.disabled)return;const s={drag:d=>{c(d)},end:d=>{c(d)}};vl(i.value,s),vl(r.value,s),f()}),{bar:i,thumb:r,thumbLeft:u,thumbTop:p,hueValue:o,handleClick:a,update:f,ns:t}}});function gF(e,t,n,r,i,u){return $(),oe("div",{class:le([e.ns.b(),e.ns.is("vertical",e.vertical)])},[ae("div",{ref:"bar",class:le(e.ns.e("bar")),onClick:e.handleClick},null,10,["onClick"]),ae("div",{ref:"thumb",class:le(e.ns.e("thumb")),style:ze({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var mF=Le(vF,[["render",gF],["__file","hue-slider.vue"]]);const w2=Me({modelValue:{type:Se(String),default:void 0},border:{type:Boolean,default:!0},showAlpha:Boolean,colorFormat:String,disabled:Boolean,predefine:{type:Se(Array)}}),yF={[et]:e=>Be(e)||qt(e)},S2=Symbol("colorCommonPickerKey"),C2=Symbol("colorPickerPanelContextKey");class Ac{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this._tiny=new ho,this._isValid=!1,this.enableAlpha=!1,this.format="",this.value="";for(const n in t)nt(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)nt(t,r)&&this.set(r,t[r]);return}this[`_${t}`]=n,this._isValid=!0,this.doOnChange()}get(t){return["hue","saturation","value","alpha"].includes(t)?Math.round(this[`_${t}`]):this[`_${t}`]}toRgb(){return this._isValid?this._tiny.toRgb():{r:255,g:255,b:255,a:0}}fromString(t){const n=new ho(t);if(this._isValid=n.isValid,n.isValid){const{h:r,s:i,v:u,a:p}=n.toHsv();this._hue=r,this._saturation=i*100,this._value=u*100,this._alpha=p*100}else this._hue=0,this._saturation=100,this._value=100,this._alpha=100;this.doOnChange()}compare(t){const n=new ho({h:t._hue,s:t._saturation/100,v:t._value/100,a:t._alpha/100});return this._tiny.equals(n)}doOnChange(){const{_hue:t,_saturation:n,_value:r,_alpha:i,format:u,enableAlpha:p}=this;let o=u||(p?"rgb":"hex");u==="hex"&&p&&(o="hex8"),this._tiny=new ho({h:t,s:n/100,v:r/100,a:i/100}),this.value=this._isValid?this._tiny.toString(o):""}}const bF=pe({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0},disabled:Boolean},setup(e){const t=Ae("color-predefine"),{currentColor:n}=Ne(C2),r=ie(u(e.colors,e.color));Te(()=>n.value,p=>{const o=new Ac({value:p});r.value.forEach(a=>{a.selected=o.compare(a)})}),ja(()=>{r.value=u(e.colors,e.color)});function i(p){e.disabled||e.color.fromString(e.colors[p])}function u(p,o){return p.map(a=>{const c=new Ac({value:a});return c.selected=c.compare(o),c})}return{rgbaColors:r,handleSelect:i,ns:t}}});function _F(e,t,n,r,i,u){return $(),oe("div",{class:le(e.ns.b())},[ae("div",{class:le(e.ns.e("colors"))},[($(!0),oe($e,null,Lt(e.rgbaColors,(p,o)=>($(),oe("div",{key:e.colors[o],class:le([e.ns.e("color-selector"),e.ns.is("alpha",p.get("alpha")<100),{selected:p.selected}]),onClick:a=>e.handleSelect(o)},[ae("div",{style:ze({backgroundColor:p.value})},null,4)],10,["onClick"]))),128))],2)],2)}var wF=Le(bF,[["render",_F],["__file","predefine.vue"]]);const SF=pe({name:"ElSlPanel",props:{color:{type:Object,required:!0},disabled:Boolean},setup(e){const t=Ae("color-svpanel"),n=it(),r=ie(0),i=ie(0),u=ie("hsl(0, 100%, 50%)"),p=W(()=>{const c=e.color.get("hue"),h=e.color.get("value");return{hue:c,value:h}});function o(){const c=e.color.get("saturation"),h=e.color.get("value"),l=n.vnode.el,{clientWidth:f,clientHeight:s}=l;i.value=c*f/100,r.value=(100-h)*s/100,u.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function a(c){if(e.disabled)return;const l=n.vnode.el.getBoundingClientRect(),{clientX:f,clientY:s}=Mv(c);let d=f-l.left,g=s-l.top;d=Math.max(0,d),d=Math.min(d,l.width),g=Math.max(0,g),g=Math.min(g,l.height),i.value=d,r.value=g,e.color.set({saturation:d/l.width*100,value:100-g/l.height*100})}return Te(()=>p.value,()=>{o()}),Je(()=>{vl(n.vnode.el,{drag:c=>{a(c)},end:c=>{a(c)}}),o()}),{cursorTop:r,cursorLeft:i,background:u,colorValue:p,handleDrag:a,update:o,ns:t}}});function CF(e,t,n,r,i,u){return $(),oe("div",{class:le(e.ns.b()),style:ze({backgroundColor:e.background})},[ae("div",{class:le(e.ns.e("white"))},null,2),ae("div",{class:le(e.ns.e("black"))},null,2),ae("div",{class:le(e.ns.e("cursor")),style:ze({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},[ae("div")],6)],6)}var xF=Le(SF,[["render",CF],["__file","sv-panel.vue"]]);const x2=(e,t)=>{const n=yt(new Ac({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue}));return Te(()=>[e.colorFormat,e.showAlpha],()=>{n.enableAlpha=e.showAlpha,n.format=e.colorFormat||n.format,n.doOnChange(),t(et,n.value)}),{color:n}},TF=pe({name:"ElColorPickerPanel"}),EF=pe({...TF,props:w2,emits:yF,setup(e,{expose:t,emit:n}){const r=e,i=Ae("color-picker-panel"),u=vr(),p=ie(),o=ie(),a=ie(),c=ie(),h=ie(""),{color:l}=Ne(S2,()=>x2(r,n),!0);function f(){l.fromString(h.value),l.value!==h.value&&(h.value=l.value)}return Je(()=>{r.modelValue&&(h.value=l.value),Ke(()=>{var s,d,g;(s=p.value)==null||s.update(),(d=o.value)==null||d.update(),(g=a.value)==null||g.update()})}),Te(()=>r.modelValue,s=>{s&&s!==l.value&&l.fromString(s)}),Te(()=>l.value,s=>{n(et,s),h.value=s}),pt(C2,{currentColor:W(()=>l.value)}),t({color:l,inputRef:c}),(s,d)=>($(),oe("div",{class:le([w(i).b(),w(i).is("disabled",w(u)),w(i).is("border",s.border)])},[ae("div",{class:le(w(i).e("wrapper"))},[ce(mF,{ref_key:"hue",ref:p,class:"hue-slider",color:w(l),vertical:"",disabled:w(u)},null,8,["color","disabled"]),ce(xF,{ref_key:"sv",ref:o,color:w(l),disabled:w(u)},null,8,["color","disabled"])],2),s.showAlpha?($(),ye(pF,{key:0,ref_key:"alpha",ref:a,color:w(l),disabled:w(u)},null,8,["color","disabled"])):be("v-if",!0),s.predefine?($(),ye(wF,{key:1,ref:"predefine","enable-alpha":s.showAlpha,color:w(l),colors:s.predefine,disabled:w(u)},null,8,["enable-alpha","color","colors","disabled"])):be("v-if",!0),ae("div",{class:le(w(i).e("footer"))},[ce(w(qo),{ref_key:"inputRef",ref:c,modelValue:h.value,"onUpdate:modelValue":g=>h.value=g,"validate-event":!1,size:"small",disabled:w(u),onChange:f},null,8,["modelValue","onUpdate:modelValue","disabled"]),Ce(s.$slots,"footer")],2)],2))}});var kF=Le(EF,[["__file","color-picker-panel.vue"]]);const OF=dt(kF),PF=Me({persistent:{type:Boolean,default:!0},modelValue:{type:Se(String),default:void 0},id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:Tr,popperClass:{type:String,default:""},tabindex:{type:[String,Number],default:0},teleported:Qt.teleported,appendTo:Qt.appendTo,predefine:{type:Se(Array)},validateEvent:{type:Boolean,default:!0},...hv,...Hr(["ariaLabel"])}),AF={[et]:e=>Be(e)||qt(e),[Pt]:e=>Be(e)||qt(e),activeChange:e=>Be(e)||qt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},IF=pe({name:"ElColorPicker"}),MF=pe({...IF,props:PF,emits:AF,setup(e,{expose:t,emit:n}){const r=e,{t:i}=Gt(),u=Ae("color"),{formItem:p}=ia(),o=Or(),a=vr(),{valueOnClear:c,isEmptyValue:h}=Tw(r,null),l=x2(r,n),{inputId:f,isLabeledByFormItem:s}=Xo(r,{formItemContext:p}),d=ie(),g=ie(),v=ie(),m=ie(!1),y=ie(!1);let b=!0;const{isFocused:_,handleFocus:S,handleBlur:C}=vv(g,{disabled:a,beforeBlur(G){var ne;return(ne=d.value)==null?void 0:ne.isFocusInsideContent(G)},afterBlur(){re(!1),A()}}),T=p8(()=>{var G,ne;return(ne=(G=v.value)==null?void 0:G.color)!=null?ne:l.color}),E=W(()=>cw(r,Object.keys(w2))),O=W(()=>!r.modelValue&&!y.value?"transparent":P(T,r.showAlpha)),D=W(()=>!r.modelValue&&!y.value?"":T.value),j=W(()=>s.value?void 0:r.ariaLabel||i("el.colorpicker.defaultLabel")),k=W(()=>s.value?p==null?void 0:p.labelId:void 0),U=W(()=>[u.b("picker"),u.is("disabled",a.value),u.bm("picker",o.value),u.is("focused",_.value)]);function P(G,ne){const{r:de,g:ve,b:_e,a:N}=G.toRgb();return ne?`rgba(${de}, ${ve}, ${_e}, ${N})`:`rgb(${de}, ${ve}, ${_e})`}function re(G){m.value=G}const q=ul(re,100,{leading:!0});function V(){a.value||re(!0)}function te(){q(!1),A()}function A(){Ke(()=>{r.modelValue?T.fromString(r.modelValue):(T.value="",Ke(()=>{y.value=!1}))})}function B(){a.value||(m.value&&A(),q(!m.value))}function I(){const G=h(T.value)?c.value:T.value;n(et,G),n(Pt,G),r.validateEvent&&(p==null||p.validate("change").catch(ne=>void 0)),q(!1),Ke(()=>{const ne=new Ac({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});T.compare(ne)||A()})}function M(){q(!1),n(et,c.value),n(Pt,c.value),r.modelValue!==c.value&&r.validateEvent&&(p==null||p.validate("change").catch(G=>void 0)),A()}function J(){!m.value||(te(),_.value&&Q())}function z(G){G.preventDefault(),G.stopPropagation(),re(!1),A()}function L(G){var ne,de;switch(G.code){case je.enter:case je.numpadEnter:case je.space:G.preventDefault(),G.stopPropagation(),V(),(de=(ne=v==null?void 0:v.value)==null?void 0:ne.inputRef)==null||de.focus();break;case je.esc:z(G);break}}function Q(){g.value.focus()}function H(){g.value.blur()}return Te(()=>D.value,G=>{b&&n("activeChange",G),b=!0}),Te(()=>T.value,()=>{!r.modelValue&&!y.value&&(y.value=!0)}),Te(()=>r.modelValue,G=>{G?G&&G!==T.value&&(b=!1,T.fromString(G)):y.value=!1}),pt(S2,l),t({color:T,show:V,hide:te,focus:Q,blur:H}),(G,ne)=>($(),ye(w(Wr),{ref_key:"popper",ref:d,visible:m.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[w(u).be("picker","panel"),G.popperClass],"stop-popper-mouse-event":!1,pure:"",effect:"light",trigger:"click",teleported:G.teleported,transition:`${w(u).namespace.value}-zoom-in-top`,persistent:G.persistent,"append-to":G.appendTo,onHide:de=>re(!1)},{content:he(()=>[mt(($(),ye(w(OF),$t({ref_key:"pickerPanelRef",ref:v},w(E),{border:!1,onKeydown:nn(z,["esc"])}),{footer:he(()=>[ae("div",null,[ce(w(ht),{class:le(w(u).be("footer","link-btn")),text:"",size:"small",onClick:M},{default:he(()=>[We(Oe(w(i)("el.colorpicker.clear")),1)]),_:1},8,["class"]),ce(w(ht),{plain:"",size:"small",class:le(w(u).be("footer","btn")),onClick:I},{default:he(()=>[We(Oe(w(i)("el.colorpicker.confirm")),1)]),_:1},8,["class"])])]),_:1},16,["onKeydown"])),[[w(Iv),J,g.value]])]),default:he(()=>[ae("div",$t({id:w(f),ref_key:"triggerRef",ref:g},G.$attrs,{class:w(U),role:"button","aria-label":w(j),"aria-labelledby":w(k),"aria-description":w(i)("el.colorpicker.description",{color:G.modelValue||""}),"aria-disabled":w(a),tabindex:w(a)?void 0:G.tabindex,onKeydown:L,onFocus:w(S),onBlur:w(C)}),[ae("div",{class:le(w(u).be("picker","trigger")),onClick:B},[ae("span",{class:le([w(u).be("picker","color"),w(u).is("alpha",G.showAlpha)])},[ae("span",{class:le(w(u).be("picker","color-inner")),style:ze({backgroundColor:w(O)})},[mt(ce(w(De),{class:le([w(u).be("picker","icon"),w(u).is("icon-arrow-down")])},{default:he(()=>[ce(w(af))]),_:1},8,["class"]),[[Ft,G.modelValue||y.value]]),mt(ce(w(De),{class:le([w(u).be("picker","empty"),w(u).is("icon-close")])},{default:he(()=>[ce(w(Vr))]),_:1},8,["class"]),[[Ft,!G.modelValue&&!y.value]])],6)],2)],2)],16,["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex","onFocus","onBlur"])]),_:1},8,["visible","popper-class","teleported","transition","persistent","append-to","onHide"]))}});var RF=Le(MF,[["__file","color-picker.vue"]]);const LF=dt(RF),DF=Me({a11y:{type:Boolean,default:!0},locale:{type:Se(Object)},size:Tr,button:{type:Se(Object)},card:{type:Se(Object)},dialog:{type:Se(Object)},link:{type:Se(Object)},experimentalFeatures:{type:Se(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Se(Object)},zIndex:Number,namespace:{type:String,default:"el"},...hv}),fn={placement:"top"};pe({name:"ElConfigProvider",props:DF,setup(e,{slots:t}){const n=kw(e);return Te(()=>e.message,r=>{var i,u;Object.assign(fn,(u=(i=n==null?void 0:n.value)==null?void 0:i.message)!=null?u:{},r!=null?r:{})},{immediate:!0,deep:!0}),()=>Ce(t,"default",{config:n==null?void 0:n.value})}});const FF=100,BF=600,iy={beforeMount(e,t){const n=t.value,{interval:r=FF,delay:i=BF}=Re(n)?{}:n;let u,p;const o=()=>Re(n)?n():n.handler(),a=()=>{p&&(clearTimeout(p),p=void 0),u&&(clearInterval(u),u=void 0)};e.addEventListener("mousedown",c=>{c.button===0&&(a(),o(),document.addEventListener("mouseup",()=>a(),{once:!0}),p=setTimeout(()=>{u=setInterval(()=>{o()},r)},i))})}},Rv=e=>{if(!e)return{onClick:rt,onMousedown:rt,onMouseup:rt};let t=!1,n=!1;return{onClick:p=>{t&&n&&e(p),t=n=!1},onMousedown:p=>{t=p.target===p.currentTarget},onMouseup:p=>{n=p.target===p.currentTarget}}},NF=Me({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:Se([String,Array,Object])},zIndex:{type:Se([String,Number])}}),$F={click:e=>e instanceof MouseEvent},zF="overlay";var jF=pe({name:"ElOverlay",props:NF,emits:$F,setup(e,{slots:t,emit:n}){const r=Ae(zF),i=a=>{n("click",a)},{onClick:u,onMousedown:p,onMouseup:o}=Rv(e.customMaskEvent?void 0:i);return()=>e.mask?ce("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:u,onMousedown:p,onMouseup:o},[Ce(t,"default")],Xu.STYLE|Xu.CLASS|Xu.PROPS,["onClick","onMouseup","onMousedown"]):gt("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Ce(t,"default")])}});const T2=jF,E2=Symbol("dialogInjectionKey"),ay="dialog-fade",k2=Me({center:Boolean,alignCenter:{type:Boolean,default:void 0},closeIcon:{type:Rt},draggable:{type:Boolean,default:void 0},overflow:{type:Boolean,default:void 0},fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),VF={close:()=>!0},O2=(e,t,n,r)=>{const i={offsetX:0,offsetY:0},u=ie(!1),p=(f,s)=>{if(e.value){const{offsetX:d,offsetY:g}=i,v=e.value.getBoundingClientRect(),m=v.left,y=v.top,b=v.width,_=v.height,S=document.documentElement.clientWidth,C=document.documentElement.clientHeight,T=-m+d,E=-y+g,O=S-m-b+d,D=C-y-(_<C?_:0)+g;r!=null&&r.value||(f=Math.min(Math.max(f,T),O),s=Math.min(Math.max(s,E),D)),i.offsetX=f,i.offsetY=s,e.value.style.transform=`translate(${An(f)}, ${An(s)})`}},o=f=>{const s=f.clientX,d=f.clientY,{offsetX:g,offsetY:v}=i,m=b=>{u.value||(u.value=!0);const _=g+b.clientX-s,S=v+b.clientY-d;p(_,S)},y=()=>{u.value=!1,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",y)};document.addEventListener("mousemove",m),document.addEventListener("mouseup",y)},a=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",o),window.addEventListener("resize",l))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",o),window.removeEventListener("resize",l))},h=()=>{i.offsetX=0,i.offsetY=0,e.value&&(e.value.style.transform="")},l=()=>{const{offsetX:f,offsetY:s}=i;p(f,s)};return Je(()=>{ja(()=>{n.value?a():c()})}),At(()=>{c()}),{isDragging:u,resetPosition:h,updatePosition:l}},UF=(...e)=>t=>{e.forEach(n=>{Re(n)?n(t):n.value=t})},HF=pe({name:"ElDialogContent"}),WF=pe({...HF,props:k2,emits:VF,setup(e,{expose:t}){const n=e,{t:r}=Gt(),{Close:i}=N6,{dialogRef:u,headerRef:p,bodyId:o,ns:a,style:c}=Ne(E2),{focusTrapRef:h}=Ne(Uw),l=UF(h,u),f=W(()=>!!n.draggable),s=W(()=>!!n.overflow),{resetPosition:d,updatePosition:g,isDragging:v}=O2(u,p,f,s),m=W(()=>[a.b(),a.is("fullscreen",n.fullscreen),a.is("draggable",f.value),a.is("dragging",v.value),a.is("align-center",!!n.alignCenter),{[a.m("center")]:n.center}]);return t({resetPosition:d,updatePosition:g}),(y,b)=>($(),oe("div",{ref:w(l),class:le(w(m)),style:ze(w(c)),tabindex:"-1"},[ae("header",{ref_key:"headerRef",ref:p,class:le([w(a).e("header"),y.headerClass,{"show-close":y.showClose}])},[Ce(y.$slots,"header",{},()=>[ae("span",{role:"heading","aria-level":y.ariaLevel,class:le(w(a).e("title"))},Oe(y.title),11,["aria-level"])]),y.showClose?($(),oe("button",{key:0,"aria-label":w(r)("el.dialog.close"),class:le(w(a).e("headerbtn")),type:"button",onClick:_=>y.$emit("close")},[ce(w(De),{class:le(w(a).e("close"))},{default:he(()=>[($(),ye(ut(y.closeIcon||w(i))))]),_:1},8,["class"])],10,["aria-label","onClick"])):be("v-if",!0)],2),ae("div",{id:w(o),class:le([w(a).e("body"),y.bodyClass])},[Ce(y.$slots,"default")],10,["id"]),y.$slots.footer?($(),oe("footer",{key:0,class:le([w(a).e("footer"),y.footerClass])},[Ce(y.$slots,"footer")],2)):be("v-if",!0)],6))}});var KF=Le(WF,[["__file","dialog-content.vue"]]);const GF=Me({...k2,appendToBody:Boolean,appendTo:{type:Pv.to.type,default:"body"},beforeClose:{type:Se(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},modalPenetrable:Boolean,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"},transition:{type:Se([String,Object]),default:void 0}}),YF={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[et]:e=>yn(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},P2=(e,t={})=>{wt(e)||Zt("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Ae("popup"),r=W(()=>n.bm("parent","hidden"));if(!ct||yh(document.body,r.value))return;let i=0,u=!1,p="0";const o=()=>{setTimeout(()=>{typeof document>"u"||u&&document&&(document.body.style.width=p,Ku(document.body,r.value))},200)};Te(e,a=>{if(!a){o();return}u=!yh(document.body,r.value),u&&(p=document.body.style.width,gs(document.body,r.value)),i=k6(n.namespace.value);const c=document.documentElement.clientHeight<document.body.scrollHeight,h=Pw(document.body,"overflowY");i>0&&(c||h==="scroll")&&u&&(document.body.style.width=`calc(100% - ${i}px)`)}),xp(()=>o())},XF=(e,t)=>{var n;const i=it().emit,{nextZIndex:u}=gf();let p="";const o=Er(),a=Er(),c=ie(!1),h=ie(!1),l=ie(!1),f=ie((n=e.zIndex)!=null?n:u());let s,d;const g=jl(),v=W(()=>{var I,M;return(M=(I=g.value)==null?void 0:I.namespace)!=null?M:Ls}),m=W(()=>{var I;return(I=g.value)==null?void 0:I.dialog}),y=W(()=>{const I={},M=`--${v.value}-dialog`;return e.fullscreen||(e.top&&(I[`${M}-margin-top`]=e.top),e.width&&(I[`${M}-width`]=An(e.width))),I}),b=W(()=>{var I,M,J;return((J=(M=e.draggable)!=null?M:(I=m.value)==null?void 0:I.draggable)!=null?J:!1)&&!e.fullscreen}),_=W(()=>{var I,M,J;return(J=(M=e.alignCenter)!=null?M:(I=m.value)==null?void 0:I.alignCenter)!=null?J:!1}),S=W(()=>{var I,M,J;return(J=(M=e.overflow)!=null?M:(I=m.value)==null?void 0:I.overflow)!=null?J:!1}),C=W(()=>_.value?{display:"flex"}:{}),T=W(()=>{var I,M,J;const z=(J=(M=e.transition)!=null?M:(I=m.value)==null?void 0:I.transition)!=null?J:ay,L={name:z,onAfterEnter:E,onBeforeLeave:D,onAfterLeave:O};if(Ye(z)){const Q={...z},H=(G,ne)=>de=>{Pe(G)?G.forEach(ve=>{Re(ve)&&ve(de)}):Re(G)&&G(de),ne()};return Q.onAfterEnter=H(Q.onAfterEnter,E),Q.onBeforeLeave=H(Q.onBeforeLeave,D),Q.onAfterLeave=H(Q.onAfterLeave,O),Q.name||(Q.name=ay),Q}return L});function E(){i("opened")}function O(){i("closed"),i(et,!1),e.destroyOnClose&&(l.value=!1)}function D(){i("close")}function j(){d==null||d(),s==null||s(),e.openDelay&&e.openDelay>0?{stop:s}=fl(()=>re(),e.openDelay):re()}function k(){s==null||s(),d==null||d(),e.closeDelay&&e.closeDelay>0?{stop:d}=fl(()=>q(),e.closeDelay):q()}function U(){function I(M){M||(h.value=!0,c.value=!1)}e.beforeClose?e.beforeClose(I):k()}function P(){e.closeOnClickModal&&U()}function re(){!ct||(c.value=!0)}function q(){c.value=!1}function V(){i("openAutoFocus")}function te(){i("closeAutoFocus")}function A(I){var M;((M=I.detail)==null?void 0:M.focusReason)==="pointer"&&I.preventDefault()}e.lockScroll&&P2(c);function B(){e.closeOnPressEscape&&U()}return Te(()=>e.zIndex,()=>{var I;f.value=(I=e.zIndex)!=null?I:u()}),Te(()=>e.modelValue,I=>{var M;I?(h.value=!1,j(),l.value=!0,f.value=(M=e.zIndex)!=null?M:u(),Ke(()=>{i("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):c.value&&k()}),Te(()=>e.fullscreen,I=>{!t.value||(I?(p=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=p)}),Je(()=>{e.modelValue&&(c.value=!0,l.value=!0,j())}),{afterEnter:E,afterLeave:O,beforeLeave:D,handleClose:U,onModalClick:P,close:k,doClose:q,onOpenAutoFocus:V,onCloseAutoFocus:te,onCloseRequested:B,onFocusoutPrevented:A,titleId:o,bodyId:a,closed:h,style:y,overlayDialogStyle:C,rendered:l,visible:c,zIndex:f,transitionConfig:T,_draggable:b,_alignCenter:_,_overflow:S}},qF=pe({name:"ElDialog",inheritAttrs:!1}),ZF=pe({...qF,props:GF,emits:YF,setup(e,{expose:t}){const n=e,r=Vo();wf({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"},W(()=>!!r.title));const i=Ae("dialog"),u=ie(),p=ie(),o=ie(),{visible:a,titleId:c,bodyId:h,style:l,overlayDialogStyle:f,rendered:s,transitionConfig:d,zIndex:g,_draggable:v,_alignCenter:m,_overflow:y,handleClose:b,onModalClick:_,onOpenAutoFocus:S,onCloseAutoFocus:C,onCloseRequested:T,onFocusoutPrevented:E}=XF(n,u);pt(E2,{dialogRef:u,headerRef:p,bodyId:h,ns:i,rendered:s,style:l});const O=Rv(_),D=W(()=>n.modalPenetrable&&!n.modal&&!n.fullscreen);return t({visible:a,dialogContentRef:o,resetPosition:()=>{var k;(k=o.value)==null||k.resetPosition()},handleClose:b}),(k,U)=>($(),ye(w(Av),{to:k.appendTo,disabled:k.appendTo!=="body"?!1:!k.appendToBody},{default:he(()=>[ce(sr,$t(w(d),{persisted:""}),{default:he(()=>{var P;return[mt(ce(w(T2),{"custom-mask-event":"",mask:k.modal,"overlay-class":[(P=k.modalClass)!=null?P:"",`${w(i).namespace.value}-modal-dialog`,w(i).is("penetrable",w(D))],"z-index":w(g)},{default:he(()=>[ae("div",{role:"dialog","aria-modal":"true","aria-label":k.title||void 0,"aria-labelledby":k.title?void 0:w(c),"aria-describedby":w(h),class:le(`${w(i).namespace.value}-overlay-dialog`),style:ze(w(f)),onClick:w(O).onClick,onMousedown:w(O).onMousedown,onMouseup:w(O).onMouseup},[ce(w(bf),{loop:"",trapped:w(a),"focus-start-el":"container",onFocusAfterTrapped:w(S),onFocusAfterReleased:w(C),onFocusoutPrevented:w(E),onReleaseRequested:w(T)},{default:he(()=>[w(s)?($(),ye(KF,$t({key:0,ref_key:"dialogContentRef",ref:o},k.$attrs,{center:k.center,"align-center":w(m),"close-icon":k.closeIcon,draggable:w(v),overflow:w(y),fullscreen:k.fullscreen,"header-class":k.headerClass,"body-class":k.bodyClass,"footer-class":k.footerClass,"show-close":k.showClose,title:k.title,"aria-level":k.headerAriaLevel,onClose:w(b)}),Qs({header:he(()=>[k.$slots.title?Ce(k.$slots,"title",{key:1}):Ce(k.$slots,"header",{key:0,close:w(b),titleId:w(c),titleClass:w(i).e("title")})]),default:he(()=>[Ce(k.$slots,"default")]),_:2},[k.$slots.footer?{name:"footer",fn:he(()=>[Ce(k.$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"])):be("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"]),[[Ft,w(a)]])]}),_:3},16)]),_:3},8,["to","disabled"]))}});var JF=Le(ZF,[["__file","dialog.vue"]]);const QF=dt(JF),eB=Me({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:Se(String),default:"solid"}}),tB=pe({name:"ElDivider"}),nB=pe({...tB,props:eB,setup(e){const t=e,n=Ae("divider"),r=W(()=>n.cssVar({"border-style":t.borderStyle}));return(i,u)=>($(),oe("div",{class:le([w(n).b(),w(n).m(i.direction)]),style:ze(w(r)),role:"separator"},[i.$slots.default&&i.direction!=="vertical"?($(),oe("div",{key:0,class:le([w(n).e("text"),w(n).is(i.contentPosition)])},[Ce(i.$slots,"default")],2)):be("v-if",!0)],6))}});var rB=Le(nB,[["__file","divider.vue"]]);const iB=dt(rB),aB=pe({inheritAttrs:!1});function oB(e,t,n,r,i,u){return Ce(e.$slots,"default")}var sB=Le(aB,[["render",oB],["__file","collection.vue"]]);const lB=pe({name:"ElCollectionItem",inheritAttrs:!1});function uB(e,t,n,r,i,u){return Ce(e.$slots,"default")}var cB=Le(lB,[["render",uB],["__file","collection-item.vue"]]);const fB="data-el-collection-item",dB=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),i=Symbol(n),u={...sB,name:t,setup(){const o=ie(),a=new Map;pt(r,{itemMap:a,getItems:()=>{const h=w(o);if(!h)return[];const l=Array.from(h.querySelectorAll(`[${fB}]`));return[...a.values()].sort((s,d)=>l.indexOf(s.ref)-l.indexOf(d.ref))},collectionRef:o})}},p={...cB,name:n,setup(o,{attrs:a}){const c=ie(),h=Ne(r,void 0);pt(i,{collectionItemRef:c}),Je(()=>{const l=w(c);l&&h.itemMap.set(l,{ref:l,...a})}),At(()=>{const l=w(c);h.itemMap.delete(l)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:i,ElCollection:u,ElCollectionItem:p}},sd=Me({trigger:wo.trigger,triggerKeys:{type:Se(Array),default:()=>[je.enter,je.numpadEnter,je.space,je.down]},effect:{...Qt.effect,default:"light"},type:{type:Se(String)},placement:{type:Se(String),default:"bottom"},popperOptions:{type:Se(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:Se([Number,String]),default:0},maxHeight:{type:Se([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,values:Nw,default:"menu"},buttonProps:{type:Se(Object)},teleported:Qt.teleported,persistent:{type:Boolean,default:!0}});Me({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Rt}});Me({onKeydown:{type:Se(Function)}});dB("Dropdown");const hB=pe({name:"ImgEmpty"}),pB=pe({...hB,setup(e){const t=Ae("empty"),n=Er();return(r,i)=>($(),oe("svg",{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[ae("defs",null,[ae("linearGradient",{id:`linearGradient-1-${w(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[ae("stop",{"stop-color":`var(${w(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),ae("stop",{"stop-color":`var(${w(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),ae("linearGradient",{id:`linearGradient-2-${w(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[ae("stop",{"stop-color":`var(${w(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),ae("stop",{"stop-color":`var(${w(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),ae("rect",{id:`path-3-${w(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,["id"])]),ae("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[ae("g",{transform:"translate(-1268.000000, -535.000000)"},[ae("g",{transform:"translate(1268.000000, 535.000000)"},[ae("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(${w(t).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),ae("polygon",{fill:`var(${w(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"]),ae("g",{transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},[ae("polygon",{fill:`var(${w(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"]),ae("polygon",{fill:`var(${w(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,["fill"]),ae("rect",{fill:`url(#linearGradient-1-${w(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"]),ae("polygon",{fill:`var(${w(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"])]),ae("rect",{fill:`url(#linearGradient-2-${w(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),ae("g",{transform:"translate(53.000000, 45.000000)"},[ae("use",{fill:`var(${w(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${w(n)}`},null,8,["fill","xlink:href"]),ae("polygon",{fill:`var(${w(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${w(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"])]),ae("polygon",{fill:`var(${w(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 vB=Le(pB,[["__file","img-empty.vue"]]);const gB=Me({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),mB=pe({name:"ElEmpty"}),yB=pe({...mB,props:gB,setup(e){const t=e,{t:n}=Gt(),r=Ae("empty"),i=W(()=>t.description||n("el.table.emptyText")),u=W(()=>({width:An(t.imageSize)}));return(p,o)=>($(),oe("div",{class:le(w(r).b())},[ae("div",{class:le(w(r).e("image")),style:ze(w(u))},[p.image?($(),oe("img",{key:0,src:p.image,ondragstart:"return false"},null,8,["src"])):Ce(p.$slots,"image",{key:1},()=>[ce(vB)])],6),ae("div",{class:le(w(r).e("description"))},[p.$slots.description?Ce(p.$slots,"description",{key:0}):($(),oe("p",{key:1},Oe(w(i)),1))],2),p.$slots.default?($(),oe("div",{key:0,class:le(w(r).e("bottom"))},[Ce(p.$slots,"default")],2)):be("v-if",!0)],2))}});var bB=Le(yB,[["__file","empty.vue"]]);const _B=dt(bB),wB=Me({size:{type:String,values:Wa},disabled:Boolean}),SB=Me({...wB,model:Object,rules:{type:Se(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:Se([Object,Boolean]),default:!0}}),CB={validate:(e,t,n)=>(Pe(e)||Be(e))&&yn(t)&&Be(n)};function xB(){const e=ie([]),t=W(()=>{if(!e.value.length)return"0";const u=Math.max(...e.value);return u?`${u}px`:""});function n(u){const p=e.value.indexOf(u);return p===-1&&t.value,p}function r(u,p){if(u&&p){const o=n(p);e.value.splice(o,1,u)}else u&&e.value.push(u)}function i(u){const p=n(u);p>-1&&e.value.splice(p,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:i}}const _u=(e,t)=>{const n=Wn(t).map(r=>Pe(r)?r.join("."):r);return n.length>0?e.filter(r=>r.propString&&n.includes(r.propString)):e},TB="ElForm",EB=pe({name:TB}),kB=pe({...EB,props:SB,emits:CB,setup(e,{expose:t,emit:n}){const r=e,i=ie(),u=yt([]),p=Or(),o=Ae("form"),a=W(()=>{const{labelPosition:_,inline:S}=r;return[o.b(),o.m(p.value||"default"),{[o.m(`label-${_}`)]:_,[o.m("inline")]:S}]}),c=_=>_u(u,[_])[0],h=_=>{u.push(_)},l=_=>{_.prop&&u.splice(u.indexOf(_),1)},f=(_=[])=>{!r.model||_u(u,_).forEach(S=>S.resetField())},s=(_=[])=>{_u(u,_).forEach(S=>S.clearValidate())},d=W(()=>!!r.model),g=_=>{if(u.length===0)return[];const S=_u(u,_);return S.length?S:[]},v=async _=>y(void 0,_),m=async(_=[])=>{if(!d.value)return!1;const S=g(_);if(S.length===0)return!0;let C={};for(const T of S)try{await T.validate(""),T.validateState==="error"&&!T.error&&T.resetField()}catch(E){C={...C,...E}}return Object.keys(C).length===0?!0:Promise.reject(C)},y=async(_=[],S)=>{let C=!1;const T=!Re(S);try{return C=await m(_),C===!0&&await(S==null?void 0:S(C)),C}catch(E){if(E instanceof Error)throw E;const O=E;if(r.scrollToError&&i.value){const D=i.value.querySelector(`.${o.b()}-item.is-error`);D==null||D.scrollIntoView(r.scrollIntoViewOptions)}return!C&&await(S==null?void 0:S(!1,O)),T&&Promise.reject(O)}},b=_=>{var S;const C=c(_);C&&((S=C.$el)==null||S.scrollIntoView(r.scrollIntoViewOptions))};return Te(()=>r.rules,()=>{r.validateOnRuleChange&&v().catch(_=>void 0)},{deep:!0,flush:"post"}),pt(Yo,yt({...Sr(r),emit:n,resetFields:f,clearValidate:s,validateField:y,getField:c,addField:h,removeField:l,...xB()})),t({validate:v,validateField:y,resetFields:f,clearValidate:s,scrollToField:b,getField:c,fields:u}),(_,S)=>($(),oe("form",{ref_key:"formRef",ref:i,class:le(w(a))},[Ce(_.$slots,"default")],2))}});var OB=Le(kB,[["__file","form.vue"]]);function ma(){return ma=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},ma.apply(this,arguments)}function PB(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gl(e,t)}function xh(e){return xh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xh(e)}function gl(e,t){return gl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},gl(e,t)}function AB(){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 qu(e,t,n){return AB()?qu=Reflect.construct.bind():qu=function(i,u,p){var o=[null];o.push.apply(o,u);var a=Function.bind.apply(i,o),c=new a;return p&&gl(c,p.prototype),c},qu.apply(null,arguments)}function IB(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Th(e){var t=typeof Map=="function"?new Map:void 0;return Th=function(r){if(r===null||!IB(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,i)}function i(){return qu(r,arguments,xh(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),gl(i,r)},Th(e)}var MB=/%[sdj%]/g,RB=function(){};typeof process<"u"&&process.env;function Eh(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 Xn(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 i=0,u=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var p=e.replace(MB,function(o){if(o==="%%")return"%";if(i>=u)return o;switch(o){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return o}});return p}return e}function LB(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Kt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||LB(t)&&typeof e=="string"&&!e)}function DB(e,t,n){var r=[],i=0,u=e.length;function p(o){r.push.apply(r,o||[]),i++,i===u&&n(r)}e.forEach(function(o){t(o,p)})}function oy(e,t,n){var r=0,i=e.length;function u(p){if(p&&p.length){n(p);return}var o=r;r=r+1,o<i?t(e[o],u):n([])}u([])}function FB(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var sy=function(e){PB(t,e);function t(n,r){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=n,i.fields=r,i}return t}(Th(Error));function BB(e,t,n,r,i){if(t.first){var u=new Promise(function(f,s){var d=function(m){return r(m),m.length?s(new sy(m,Eh(m))):f(i)},g=FB(e);oy(g,n,d)});return u.catch(function(f){return f}),u}var p=t.firstFields===!0?Object.keys(e):t.firstFields||[],o=Object.keys(e),a=o.length,c=0,h=[],l=new Promise(function(f,s){var d=function(v){if(h.push.apply(h,v),c++,c===a)return r(h),h.length?s(new sy(h,Eh(h))):f(i)};o.length||(r(h),f(i)),o.forEach(function(g){var v=e[g];p.indexOf(g)!==-1?oy(v,n,d):DB(v,n,d)})});return l.catch(function(f){return f}),l}function NB(e){return!!(e&&e.message!==void 0)}function $B(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function ly(e,t){return function(n){var r;return e.fullFields?r=$B(t,e.fullFields):r=t[n.field||e.fullField],NB(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 uy(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]=ma({},e[n],r):e[n]=r}}return e}var A2=function(t,n,r,i,u,p){t.required&&(!r.hasOwnProperty(t.field)||Kt(n,p||t.type))&&i.push(Xn(u.messages.required,t.fullField))},zB=function(t,n,r,i,u){(/^\s+$/.test(n)||n==="")&&i.push(Xn(u.messages.whitespace,t.fullField))},wu,jB=function(){if(wu)return wu;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}",i=(`
(?:
(?:`+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(),u=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),p=new RegExp("^"+n+"$"),o=new RegExp("^"+i+"$"),a=function(_){return _&&_.exact?u:new RegExp("(?:"+t(_)+n+t(_)+")|(?:"+t(_)+i+t(_)+")","g")};a.v4=function(b){return b&&b.exact?p:new RegExp(""+t(b)+n+t(b),"g")},a.v6=function(b){return b&&b.exact?o:new RegExp(""+t(b)+i+t(b),"g")};var c="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",l=a.v4().source,f=a.v6().source,s="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",d="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",v="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',y="(?:"+c+"|www\\.)"+h+"(?:localhost|"+l+"|"+f+"|"+s+d+g+")"+v+m;return wu=new RegExp("(?:^"+y+"$)","i"),wu},cy={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},ms={integer:function(t){return ms.number(t)&&parseInt(t,10)===t},float:function(t){return ms.number(t)&&!ms.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"&&!ms.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(cy.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(jB())},hex:function(t){return typeof t=="string"&&!!t.match(cy.hex)}},VB=function(t,n,r,i,u){if(t.required&&n===void 0){A2(t,n,r,i,u);return}var p=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=t.type;p.indexOf(o)>-1?ms[o](n)||i.push(Xn(u.messages.types[o],t.fullField,t.type)):o&&typeof n!==t.type&&i.push(Xn(u.messages.types[o],t.fullField,t.type))},UB=function(t,n,r,i,u){var p=typeof t.len=="number",o=typeof t.min=="number",a=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h=n,l=null,f=typeof n=="number",s=typeof n=="string",d=Array.isArray(n);if(f?l="number":s?l="string":d&&(l="array"),!l)return!1;d&&(h=n.length),s&&(h=n.replace(c,"_").length),p?h!==t.len&&i.push(Xn(u.messages[l].len,t.fullField,t.len)):o&&!a&&h<t.min?i.push(Xn(u.messages[l].min,t.fullField,t.min)):a&&!o&&h>t.max?i.push(Xn(u.messages[l].max,t.fullField,t.max)):o&&a&&(h<t.min||h>t.max)&&i.push(Xn(u.messages[l].range,t.fullField,t.min,t.max))},no="enum",HB=function(t,n,r,i,u){t[no]=Array.isArray(t[no])?t[no]:[],t[no].indexOf(n)===-1&&i.push(Xn(u.messages[no],t.fullField,t[no].join(", ")))},WB=function(t,n,r,i,u){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(Xn(u.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var p=new RegExp(t.pattern);p.test(n)||i.push(Xn(u.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},at={required:A2,whitespace:zB,type:VB,range:UB,enum:HB,pattern:WB},KB=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(Kt(n,"string")&&!t.required)return r();at.required(t,n,i,p,u,"string"),Kt(n,"string")||(at.type(t,n,i,p,u),at.range(t,n,i,p,u),at.pattern(t,n,i,p,u),t.whitespace===!0&&at.whitespace(t,n,i,p,u))}r(p)},GB=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(Kt(n)&&!t.required)return r();at.required(t,n,i,p,u),n!==void 0&&at.type(t,n,i,p,u)}r(p)},YB=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(n===""&&(n=void 0),Kt(n)&&!t.required)return r();at.required(t,n,i,p,u),n!==void 0&&(at.type(t,n,i,p,u),at.range(t,n,i,p,u))}r(p)},XB=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(Kt(n)&&!t.required)return r();at.required(t,n,i,p,u),n!==void 0&&at.type(t,n,i,p,u)}r(p)},qB=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(Kt(n)&&!t.required)return r();at.required(t,n,i,p,u),Kt(n)||at.type(t,n,i,p,u)}r(p)},ZB=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(Kt(n)&&!t.required)return r();at.required(t,n,i,p,u),n!==void 0&&(at.type(t,n,i,p,u),at.range(t,n,i,p,u))}r(p)},JB=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(Kt(n)&&!t.required)return r();at.required(t,n,i,p,u),n!==void 0&&(at.type(t,n,i,p,u),at.range(t,n,i,p,u))}r(p)},QB=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(n==null&&!t.required)return r();at.required(t,n,i,p,u,"array"),n!=null&&(at.type(t,n,i,p,u),at.range(t,n,i,p,u))}r(p)},eN=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(Kt(n)&&!t.required)return r();at.required(t,n,i,p,u),n!==void 0&&at.type(t,n,i,p,u)}r(p)},tN="enum",nN=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(Kt(n)&&!t.required)return r();at.required(t,n,i,p,u),n!==void 0&&at[tN](t,n,i,p,u)}r(p)},rN=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(Kt(n,"string")&&!t.required)return r();at.required(t,n,i,p,u),Kt(n,"string")||at.pattern(t,n,i,p,u)}r(p)},iN=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(Kt(n,"date")&&!t.required)return r();if(at.required(t,n,i,p,u),!Kt(n,"date")){var a;n instanceof Date?a=n:a=new Date(n),at.type(t,a,i,p,u),a&&at.range(t,a.getTime(),i,p,u)}}r(p)},aN=function(t,n,r,i,u){var p=[],o=Array.isArray(n)?"array":typeof n;at.required(t,n,i,p,u,o),r(p)},ld=function(t,n,r,i,u){var p=t.type,o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Kt(n,p)&&!t.required)return r();at.required(t,n,i,o,u,p),Kt(n,p)||at.type(t,n,i,o,u)}r(o)},oN=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(Kt(n)&&!t.required)return r();at.required(t,n,i,p,u)}r(p)},$s={string:KB,method:GB,number:YB,boolean:XB,regexp:qB,integer:ZB,float:JB,array:QB,object:eN,enum:nN,pattern:rN,date:iN,url:ld,hex:ld,email:ld,required:aN,any:oN};function kh(){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 Oh=kh(),Hl=function(){function e(n){this.rules=null,this._messages=Oh,this.define(n)}var t=e.prototype;return t.define=function(r){var i=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(u){var p=r[u];i.rules[u]=Array.isArray(p)?p:[p]})},t.messages=function(r){return r&&(this._messages=uy(kh(),r)),this._messages},t.validate=function(r,i,u){var p=this;i===void 0&&(i={}),u===void 0&&(u=function(){});var o=r,a=i,c=u;if(typeof a=="function"&&(c=a,a={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,o),Promise.resolve(o);function h(g){var v=[],m={};function y(_){if(Array.isArray(_)){var S;v=(S=v).concat.apply(S,_)}else v.push(_)}for(var b=0;b<g.length;b++)y(g[b]);v.length?(m=Eh(v),c(v,m)):c(null,o)}if(a.messages){var l=this.messages();l===Oh&&(l=kh()),uy(l,a.messages),a.messages=l}else a.messages=this.messages();var f={},s=a.keys||Object.keys(this.rules);s.forEach(function(g){var v=p.rules[g],m=o[g];v.forEach(function(y){var b=y;typeof b.transform=="function"&&(o===r&&(o=ma({},o)),m=o[g]=b.transform(m)),typeof b=="function"?b={validator:b}:b=ma({},b),b.validator=p.getValidationMethod(b),b.validator&&(b.field=g,b.fullField=b.fullField||g,b.type=p.getType(b),f[g]=f[g]||[],f[g].push({rule:b,value:m,source:o,field:g}))})});var d={};return BB(f,a,function(g,v){var m=g.rule,y=(m.type==="object"||m.type==="array")&&(typeof m.fields=="object"||typeof m.defaultField=="object");y=y&&(m.required||!m.required&&g.value),m.field=g.field;function b(C,T){return ma({},T,{fullField:m.fullField+"."+C,fullFields:m.fullFields?[].concat(m.fullFields,[C]):[C]})}function _(C){C===void 0&&(C=[]);var T=Array.isArray(C)?C:[C];!a.suppressWarning&&T.length&&e.warning("async-validator:",T),T.length&&m.message!==void 0&&(T=[].concat(m.message));var E=T.map(ly(m,o));if(a.first&&E.length)return d[m.field]=1,v(E);if(!y)v(E);else{if(m.required&&!g.value)return m.message!==void 0?E=[].concat(m.message).map(ly(m,o)):a.error&&(E=[a.error(m,Xn(a.messages.required,m.field))]),v(E);var O={};m.defaultField&&Object.keys(g.value).map(function(k){O[k]=m.defaultField}),O=ma({},O,g.rule.fields);var D={};Object.keys(O).forEach(function(k){var U=O[k],P=Array.isArray(U)?U:[U];D[k]=P.map(b.bind(null,k))});var j=new e(D);j.messages(a.messages),g.rule.options&&(g.rule.options.messages=a.messages,g.rule.options.error=a.error),j.validate(g.value,g.rule.options||a,function(k){var U=[];E&&E.length&&U.push.apply(U,E),k&&k.length&&U.push.apply(U,k),v(U.length?U:null)})}}var S;if(m.asyncValidator)S=m.asyncValidator(m,g.value,_,g.source,a);else if(m.validator){try{S=m.validator(m,g.value,_,g.source,a)}catch(C){console.error==null||console.error(C),a.suppressValidatorError||setTimeout(function(){throw C},0),_(C.message)}S===!0?_():S===!1?_(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||(m.fullField||m.field)+" fails"):S instanceof Array?_(S):S instanceof Error&&_(S.message)}S&&S.then&&S.then(function(){return _()},function(C){return _(C)})},function(g){h(g)},o)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!$s.hasOwnProperty(r.type))throw new Error(Xn("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var i=Object.keys(r),u=i.indexOf("message");return u!==-1&&i.splice(u,1),i.length===1&&i[0]==="required"?$s.required:$s[this.getType(r)]||void 0},e}();Hl.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");$s[t]=n};Hl.warning=RB;Hl.messages=Oh;Hl.validators=$s;const sN=["","error","validating","success"],lN=Me({label:String,labelWidth:{type:[String,Number],default:""},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:Se([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Se([Object,Array])},error:String,validateStatus:{type:String,values:sN},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Wa}}),fy="ElLabelWrap";var uN=pe({name:fy,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Ne(Yo,void 0),r=Ne(Ra);r||Zt(fy,"usage: <el-form-item><label-wrap /></el-form-item>");const i=Ae("form"),u=ie(),p=ie(0),o=()=>{var h;if((h=u.value)!=null&&h.firstElementChild){const l=window.getComputedStyle(u.value.firstElementChild).width;return Math.ceil(Number.parseFloat(l))}else return 0},a=(h="update")=>{Ke(()=>{t.default&&e.isAutoWidth&&(h==="update"?p.value=o():h==="remove"&&(n==null||n.deregisterLabelWidth(p.value)))})},c=()=>a("update");return Je(()=>{c()}),At(()=>{a("remove")}),zo(()=>c()),Te(p,(h,l)=>{e.updateAll&&(n==null||n.registerLabelWidth(h,l))}),rn(W(()=>{var h,l;return(l=(h=u.value)==null?void 0:h.firstElementChild)!=null?l:null}),c),()=>{var h,l;if(!t)return null;const{isAutoWidth:f}=e;if(f){const s=n==null?void 0:n.autoLabelWidth,d=r==null?void 0:r.hasLabel,g={};if(d&&s&&s!=="auto"){const v=Math.max(0,Number.parseInt(s,10)-p.value),y=(r.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";v&&(g[y]=`${v}px`)}return ce("div",{ref:u,class:[i.be("item","label-wrap")],style:g},[(h=t.default)==null?void 0:h.call(t)])}else return ce($e,{ref:u},[(l=t.default)==null?void 0:l.call(t)])}}});const cN=pe({name:"ElFormItem"}),fN=pe({...cN,props:lN,setup(e,{expose:t}){const n=e,r=Vo(),i=Ne(Yo,void 0),u=Ne(Ra,void 0),p=Or(void 0,{formItem:!1}),o=Ae("form-item"),a=Er().value,c=ie([]),h=ie(""),l=g8(h,100),f=ie(""),s=ie();let d,g=!1;const v=W(()=>n.labelPosition||(i==null?void 0:i.labelPosition)),m=W(()=>{if(v.value==="top")return{};const G=An(n.labelWidth||(i==null?void 0:i.labelWidth)||"");return G?{width:G}:{}}),y=W(()=>{if(v.value==="top"||(i==null?void 0:i.inline))return{};if(!n.label&&!n.labelWidth&&D)return{};const G=An(n.labelWidth||(i==null?void 0:i.labelWidth)||"");return!n.label&&!r.label?{marginLeft:G}:{}}),b=W(()=>[o.b(),o.m(p.value),o.is("error",h.value==="error"),o.is("validating",h.value==="validating"),o.is("success",h.value==="success"),o.is("required",re.value||n.required),o.is("no-asterisk",i==null?void 0:i.hideRequiredAsterisk),(i==null?void 0:i.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[o.m("feedback")]:i==null?void 0:i.statusIcon,[o.m(`label-${v.value}`)]:v.value}]),_=W(()=>yn(n.inlineMessage)?n.inlineMessage:(i==null?void 0:i.inlineMessage)||!1),S=W(()=>[o.e("error"),{[o.em("error","inline")]:_.value}]),C=W(()=>n.prop?Pe(n.prop)?n.prop.join("."):n.prop:""),T=W(()=>!!(n.label||r.label)),E=W(()=>{var G;return(G=n.for)!=null?G:c.value.length===1?c.value[0]:void 0}),O=W(()=>!E.value&&T.value),D=!!u,j=W(()=>{const G=i==null?void 0:i.model;if(!(!G||!n.prop))return ed(G,n.prop).value}),k=W(()=>{const{required:G}=n,ne=[];n.rules&&ne.push(...Wn(n.rules));const de=i==null?void 0:i.rules;if(de&&n.prop){const ve=ed(de,n.prop).value;ve&&ne.push(...Wn(ve))}if(G!==void 0){const ve=ne.map((_e,N)=>[_e,N]).filter(([_e])=>Object.keys(_e).includes("required"));if(ve.length>0)for(const[_e,N]of ve)_e.required!==G&&(ne[N]={..._e,required:G});else ne.push({required:G})}return ne}),U=W(()=>k.value.length>0),P=G=>k.value.filter(de=>!de.trigger||!G?!0:Pe(de.trigger)?de.trigger.includes(G):de.trigger===G).map(({trigger:de,...ve})=>ve),re=W(()=>k.value.some(G=>G.required)),q=W(()=>{var G;return l.value==="error"&&n.showMessage&&((G=i==null?void 0:i.showMessage)!=null?G:!0)}),V=W(()=>`${n.label||""}${(i==null?void 0:i.labelSuffix)||""}`),te=G=>{h.value=G},A=G=>{var ne,de;const{errors:ve,fields:_e}=G;(!ve||!_e)&&console.error(G),te("error"),f.value=ve?(de=(ne=ve==null?void 0:ve[0])==null?void 0:ne.message)!=null?de:`${n.prop} is required`:"",i==null||i.emit("validate",n.prop,!1,f.value)},B=()=>{te("success"),i==null||i.emit("validate",n.prop,!0,"")},I=async G=>{const ne=C.value;return new Hl({[ne]:G}).validate({[ne]:j.value},{firstFields:!0}).then(()=>(B(),!0)).catch(ve=>(A(ve),Promise.reject(ve)))},M=async(G,ne)=>{if(g||!n.prop)return!1;const de=Re(ne);if(!U.value)return ne==null||ne(!1),!1;const ve=P(G);return ve.length===0?(ne==null||ne(!0),!0):(te("validating"),I(ve).then(()=>(ne==null||ne(!0),!0)).catch(_e=>{const{fields:N}=_e;return ne==null||ne(!1,N),de?!1:Promise.reject(N)}))},J=()=>{te(""),f.value="",g=!1},z=async()=>{const G=i==null?void 0:i.model;if(!G||!n.prop)return;const ne=ed(G,n.prop);g=!0,ne.value=Qm(d),await Ke(),J(),g=!1},L=G=>{c.value.includes(G)||c.value.push(G)},Q=G=>{c.value=c.value.filter(ne=>ne!==G)};Te(()=>n.error,G=>{f.value=G||"",te(G?"error":"")},{immediate:!0}),Te(()=>n.validateStatus,G=>te(G||""));const H=yt({...Sr(n),$el:s,size:p,validateMessage:f,validateState:h,labelId:a,inputIds:c,isGroup:O,hasLabel:T,fieldValue:j,addInputId:L,removeInputId:Q,resetField:z,clearValidate:J,validate:M,propString:C});return pt(Ra,H),Je(()=>{n.prop&&(i==null||i.addField(H),d=Qm(j.value))}),At(()=>{i==null||i.removeField(H)}),t({size:p,validateMessage:f,validateState:h,validate:M,clearValidate:J,resetField:z}),(G,ne)=>{var de;return $(),oe("div",{ref_key:"formItemRef",ref:s,class:le(w(b)),role:w(O)?"group":void 0,"aria-labelledby":w(O)?w(a):void 0},[ce(w(uN),{"is-auto-width":w(m).width==="auto","update-all":((de=w(i))==null?void 0:de.labelWidth)==="auto"},{default:he(()=>[w(T)?($(),ye(ut(w(E)?"label":"div"),{key:0,id:w(a),for:w(E),class:le(w(o).e("label")),style:ze(w(m))},{default:he(()=>[Ce(G.$slots,"label",{label:w(V)},()=>[We(Oe(w(V)),1)])]),_:3},8,["id","for","class","style"])):be("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),ae("div",{class:le(w(o).e("content")),style:ze(w(y))},[Ce(G.$slots,"default"),ce(r1,{name:`${w(o).namespace.value}-zoom-in-top`},{default:he(()=>[w(q)?Ce(G.$slots,"error",{key:0,error:f.value},()=>[ae("div",{class:le(w(S))},Oe(f.value),3)]):be("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}});var I2=Le(fN,[["__file","form-item.vue"]]);const Lv=dt(OB,{FormItem:I2}),Ki=pr(I2),dN=Me({urlList:{type:Se(Array),default:()=>Ht([])},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:Boolean,crossorigin:{type:Se(String)}}),hN={close:()=>!0,switch:e=>Ve(e),rotate:e=>Ve(e)},pN=pe({name:"ElImageViewer"}),vN=pe({...pN,props:dN,emits:hN,setup(e,{expose:t,emit:n}){var r;const i=e,u={CONTAIN:{name:"contain",icon:Zi(fO)},ORIGINAL:{name:"original",icon:Zi(FO)}};let p,o="";const{t:a}=Gt(),c=Ae("image-viewer"),{nextZIndex:h}=gf(),l=ie(),f=ie([]),s=Sp(),d=ie(!0),g=ie(i.initialIndex),v=Bt(u.CONTAIN),m=ie({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),y=ie((r=i.zIndex)!=null?r:h()),b=W(()=>{const{urlList:Q}=i;return Q.length<=1}),_=W(()=>g.value===0),S=W(()=>g.value===i.urlList.length-1),C=W(()=>i.urlList[g.value]),T=W(()=>[c.e("btn"),c.e("prev"),c.is("disabled",!i.infinite&&_.value)]),E=W(()=>[c.e("btn"),c.e("next"),c.is("disabled",!i.infinite&&S.value)]),O=W(()=>{const{scale:Q,deg:H,offsetX:G,offsetY:ne,enableTransition:de}=m.value;let ve=G/Q,_e=ne/Q;const N=H*Math.PI/180,x=Math.cos(N),K=Math.sin(N);ve=ve*x+_e*K,_e=_e*x-G/Q*K;const X={transform:`scale(${Q}) rotate(${H}deg) translate(${ve}px, ${_e}px)`,transition:de?"transform .3s":""};return v.value.name===u.CONTAIN.name&&(X.maxWidth=X.maxHeight="100%"),X}),D=W(()=>`${g.value+1} / ${i.urlList.length}`);function j(){U(),p==null||p(),document.body.style.overflow=o,n("close")}function k(){const Q=Fs(G=>{switch(G.code){case je.esc:i.closeOnPressEscape&&j();break;case je.space:te();break;case je.left:B();break;case je.up:M("zoomIn");break;case je.right:I();break;case je.down:M("zoomOut");break}}),H=Fs(G=>{const ne=G.deltaY||G.deltaX;M(ne<0?"zoomIn":"zoomOut",{zoomRate:i.zoomRate,enableTransition:!1})});s.run(()=>{ft(document,"keydown",Q),ft(document,"wheel",H)})}function U(){s.stop()}function P(){d.value=!1}function re(Q){d.value=!1,Q.target.alt=a("el.image.error")}function q(Q){if(d.value||Q.button!==0||!l.value)return;m.value.enableTransition=!1;const{offsetX:H,offsetY:G}=m.value,ne=Q.pageX,de=Q.pageY,ve=Fs(N=>{m.value={...m.value,offsetX:H+N.pageX-ne,offsetY:G+N.pageY-de}}),_e=ft(document,"mousemove",ve);ft(document,"mouseup",()=>{_e()}),Q.preventDefault()}function V(){m.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function te(){if(d.value)return;const Q=mh(u),H=Object.values(u),G=v.value.name,de=(H.findIndex(ve=>ve.name===G)+1)%Q.length;v.value=u[Q[de]],V()}function A(Q){const H=i.urlList.length;g.value=(Q+H)%H}function B(){_.value&&!i.infinite||A(g.value-1)}function I(){S.value&&!i.infinite||A(g.value+1)}function M(Q,H={}){if(d.value)return;const{minScale:G,maxScale:ne}=i,{zoomRate:de,rotateDeg:ve,enableTransition:_e}={zoomRate:i.zoomRate,rotateDeg:90,enableTransition:!0,...H};switch(Q){case"zoomOut":m.value.scale>G&&(m.value.scale=Number.parseFloat((m.value.scale/de).toFixed(3)));break;case"zoomIn":m.value.scale<ne&&(m.value.scale=Number.parseFloat((m.value.scale*de).toFixed(3)));break;case"clockwise":m.value.deg+=ve,n("rotate",m.value.deg);break;case"anticlockwise":m.value.deg-=ve,n("rotate",m.value.deg);break}m.value.enableTransition=_e}function J(Q){var H;((H=Q.detail)==null?void 0:H.focusReason)==="pointer"&&Q.preventDefault()}function z(){i.closeOnPressEscape&&j()}function L(Q){if(!!Q.ctrlKey){if(Q.deltaY<0)return Q.preventDefault(),!1;if(Q.deltaY>0)return Q.preventDefault(),!1}}return Te(C,()=>{Ke(()=>{const Q=f.value[0];Q!=null&&Q.complete||(d.value=!0)})}),Te(g,Q=>{V(),n("switch",Q)}),Je(()=>{k(),p=ft("wheel",L,{passive:!1}),o=document.body.style.overflow,document.body.style.overflow="hidden"}),t({setActiveItem:A}),(Q,H)=>($(),ye(w(Av),{to:"body",disabled:!Q.teleported},{default:he(()=>[ce(sr,{name:"viewer-fade",appear:""},{default:he(()=>[ae("div",{ref_key:"wrapper",ref:l,tabindex:-1,class:le(w(c).e("wrapper")),style:ze({zIndex:y.value})},[ce(w(bf),{loop:"",trapped:"","focus-trap-el":l.value,"focus-start-el":"container",onFocusoutPrevented:J,onReleaseRequested:z},{default:he(()=>[ae("div",{class:le(w(c).e("mask")),onClick:Ze(G=>Q.hideOnClickModal&&j(),["self"])},null,10,["onClick"]),be(" CLOSE "),ae("span",{class:le([w(c).e("btn"),w(c).e("close")]),onClick:j},[ce(w(De),null,{default:he(()=>[ce(w(Vr))]),_:1})],2),be(" ARROW "),w(b)?be("v-if",!0):($(),oe($e,{key:0},[ae("span",{class:le(w(T)),onClick:B},[ce(w(De),null,{default:he(()=>[ce(w(of))]),_:1})],2),ae("span",{class:le(w(E)),onClick:I},[ce(w(De),null,{default:he(()=>[ce(w(Wo))]),_:1})],2)],64)),Q.$slots.progress||Q.showProgress?($(),oe("div",{key:1,class:le([w(c).e("btn"),w(c).e("progress")])},[Ce(Q.$slots,"progress",{activeIndex:g.value,total:Q.urlList.length},()=>[We(Oe(w(D)),1)])],2)):be("v-if",!0),be(" ACTIONS "),ae("div",{class:le([w(c).e("btn"),w(c).e("actions")])},[ae("div",{class:le(w(c).e("actions__inner"))},[Ce(Q.$slots,"toolbar",{actions:M,prev:B,next:I,reset:te,activeIndex:g.value,setActiveItem:A},()=>[ce(w(De),{onClick:G=>M("zoomOut")},{default:he(()=>[ce(w(ZO))]),_:1},8,["onClick"]),ce(w(De),{onClick:G=>M("zoomIn")},{default:he(()=>[ce(w(I1))]),_:1},8,["onClick"]),ae("i",{class:le(w(c).e("actions__divider"))},null,2),ce(w(De),{onClick:te},{default:he(()=>[($(),ye(ut(w(v).icon)))]),_:1}),ae("i",{class:le(w(c).e("actions__divider"))},null,2),ce(w(De),{onClick:G=>M("anticlockwise")},{default:he(()=>[ce(w(k1))]),_:1},8,["onClick"]),ce(w(De),{onClick:G=>M("clockwise")},{default:he(()=>[ce(w(O1))]),_:1},8,["onClick"])])],2)],2),be(" CANVAS "),ae("div",{class:le(w(c).e("canvas"))},[($(!0),oe($e,null,Lt(Q.urlList,(G,ne)=>($(),oe($e,{key:ne},[ne===g.value?($(),oe("img",{key:0,ref_for:!0,ref:de=>f.value[ne]=de,src:G,style:ze(w(O)),class:le(w(c).e("img")),crossorigin:Q.crossorigin,onLoad:P,onError:re,onMousedown:q},null,46,["src","crossorigin"])):be("v-if",!0)],64))),128))],2),Ce(Q.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});var gN=Le(vN,[["__file","image-viewer.vue"]]);const mN=dt(gN),yN=Me({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:Se([String,Object])},previewSrcList:{type:Se(Array),default:()=>Ht([])},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:Boolean,crossorigin:{type:Se(String)}}),bN={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>Ve(e),close:()=>!0,show:()=>!0},_N=pe({name:"ElImage",inheritAttrs:!1}),wN=pe({..._N,props:yN,emits:bN,setup(e,{expose:t,emit:n}){const r=e,{t:i}=Gt(),u=Ae("image"),p=k_(),o=W(()=>cl(Object.entries(p).filter(([q])=>/^(data-|on[A-Z])/i.test(q)||["id","style"].includes(q)))),a=Mw({excludeListeners:!0,excludeKeys:W(()=>Object.keys(o.value))}),c=ie(),h=ie(!1),l=ie(!0),f=ie(!1),s=ie(),d=ie(),g=ct&&"loading"in HTMLImageElement.prototype;let v;const m=W(()=>[u.e("inner"),b.value&&u.e("preview"),l.value&&u.is("loading")]),y=W(()=>{const{fit:q}=r;return ct&&q?{objectFit:q}:{}}),b=W(()=>{const{previewSrcList:q}=r;return Pe(q)&&q.length>0}),_=W(()=>{const{previewSrcList:q,initialIndex:V}=r;let te=V;return V>q.length-1&&(te=0),te}),S=W(()=>r.loading==="eager"?!1:!g&&r.loading==="lazy"||r.lazy),C=()=>{!ct||(l.value=!0,h.value=!1,c.value=r.src)};function T(q){l.value=!1,h.value=!1,n("load",q)}function E(q){l.value=!1,h.value=!0,n("error",q)}function O(q){q&&(C(),k())}const D=m8(O,200,!0);async function j(){var q;if(!ct)return;await Ke();const{scrollContainer:V}=r;if(rr(V))d.value=V;else if(Be(V)&&V!=="")d.value=(q=document.querySelector(V))!=null?q:void 0;else if(s.value){const A=E6(s.value);d.value=J5(A)?void 0:A}const{stop:te}=mw(s,([A])=>{D(A.isIntersecting)},{root:d});v=te}function k(){!ct||!D||(v==null||v(),d.value=void 0,v=void 0)}function U(){!b.value||(f.value=!0,n("show"))}function P(){f.value=!1,n("close")}function re(q){n("switch",q)}return Te(()=>r.src,()=>{S.value?(l.value=!0,h.value=!1,k(),j()):C()}),Je(()=>{S.value?j():C()}),t({showPreview:U}),(q,V)=>($(),oe("div",$t({ref_key:"container",ref:s},w(o),{class:[w(u).b(),q.$attrs.class]}),[h.value?Ce(q.$slots,"error",{key:0},()=>[ae("div",{class:le(w(u).e("error"))},Oe(w(i)("el.image.error")),3)]):($(),oe($e,{key:1},[c.value!==void 0?($(),oe("img",$t({key:0},w(a),{src:c.value,loading:q.loading,style:w(y),class:w(m),crossorigin:q.crossorigin,onClick:U,onLoad:T,onError:E}),null,16,["src","loading","crossorigin"])):be("v-if",!0),l.value?($(),oe("div",{key:1,class:le(w(u).e("wrapper"))},[Ce(q.$slots,"placeholder",{},()=>[ae("div",{class:le(w(u).e("placeholder"))},null,2)])],2)):be("v-if",!0)],64)),w(b)?($(),oe($e,{key:2},[f.value?($(),ye(w(mN),{key:0,"z-index":q.zIndex,"initial-index":w(_),infinite:q.infinite,"zoom-rate":q.zoomRate,"min-scale":q.minScale,"max-scale":q.maxScale,"show-progress":q.showProgress,"url-list":q.previewSrcList,crossorigin:q.crossorigin,"hide-on-click-modal":q.hideOnClickModal,teleported:q.previewTeleported,"close-on-press-escape":q.closeOnPressEscape,onClose:P,onSwitch:re},Qs({toolbar:he(te=>[Ce(q.$slots,"toolbar",Vd(Zd(te)))]),default:he(()=>[q.$slots.viewer?($(),oe("div",{key:0},[Ce(q.$slots,"viewer")])):be("v-if",!0)]),_:2},[q.$slots.progress?{name:"progress",fn:he(te=>[Ce(q.$slots,"progress",Vd(Zd(te)))])}:void 0]),1032,["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"])):be("v-if",!0)],64)):be("v-if",!0)],16))}});var SN=Le(wN,[["__file","image.vue"]]);const Dv=dt(SN),CN=Me({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.MAX_SAFE_INTEGER},min:{type:Number,default:Number.MIN_SAFE_INTEGER},modelValue:{type:[Number,null]},readonly:Boolean,disabled:Boolean,size:Tr,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||Ve(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},...Hr(["ariaLabel"]),inputmode:{type:Se(String),default:void 0},align:{type:Se(String),default:"center"},disabledScientific:Boolean}),xN={[Pt]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[ar]:e=>Ve(e)||qt(e),[et]:e=>Ve(e)||qt(e)},TN=pe({name:"ElInputNumber"}),EN=pe({...TN,props:CN,emits:xN,setup(e,{expose:t,emit:n}){const r=e,{t:i}=Gt(),u=Ae("input-number"),p=ie(),o=yt({currentValue:r.modelValue,userInput:null}),{formItem:a}=ia(),c=W(()=>Ve(r.modelValue)&&r.modelValue<=r.min),h=W(()=>Ve(r.modelValue)&&r.modelValue>=r.max),l=W(()=>{const q=m(r.step);return vn(r.precision)?Math.max(m(r.modelValue),q):(q>r.precision,r.precision)}),f=W(()=>r.controls&&r.controlsPosition==="right"),s=Or(),d=vr(),g=W(()=>{if(o.userInput!==null)return o.userInput;let q=o.currentValue;if(qt(q))return"";if(Ve(q)){if(Number.isNaN(q))return"";vn(r.precision)||(q=q.toFixed(r.precision))}return q}),v=(q,V)=>{if(vn(V)&&(V=l.value),V===0)return Math.round(q);let te=String(q);const A=te.indexOf(".");if(A===-1||!te.replace(".","").split("")[A+V])return q;const M=te.length;return te.charAt(M-1)==="5"&&(te=`${te.slice(0,Math.max(0,M-1))}6`),Number.parseFloat(Number(te).toFixed(V))},m=q=>{if(qt(q))return 0;const V=q.toString(),te=V.indexOf(".");let A=0;return te!==-1&&(A=V.length-te-1),A},y=(q,V=1)=>Ve(q)?q>=Number.MAX_SAFE_INTEGER&&V===1||q<=Number.MIN_SAFE_INTEGER&&V===-1?q:v(q+r.step*V):o.currentValue,b=q=>{var V;const te=q;if(r.disabledScientific&&["e","E"].includes(te.key)){te.preventDefault();return}const A={[je.up]:()=>{te.preventDefault(),_()},[je.down]:()=>{te.preventDefault(),S()}};(V=A[te.key])==null||V.call(A)},_=()=>{if(r.readonly||d.value||h.value)return;const q=Number(g.value)||0,V=y(q);T(V),n(ar,o.currentValue),P()},S=()=>{if(r.readonly||d.value||c.value)return;const q=Number(g.value)||0,V=y(q,-1);T(V),n(ar,o.currentValue),P()},C=(q,V)=>{const{max:te,min:A,step:B,precision:I,stepStrictly:M,valueOnClear:J}=r;te<A&&Zt("InputNumber","min should not be greater than max.");let z=Number(q);if(qt(q)||Number.isNaN(z))return null;if(q===""){if(J===null)return null;z=Be(J)?{min:A,max:te}[J]:J}return M&&(z=v(Math.round(z/B)*B,I),z!==q&&V&&n(et,z)),vn(I)||(z=v(z,I)),(z>te||z<A)&&(z=z>te?te:A,V&&n(et,z)),z},T=(q,V=!0)=>{var te;const A=o.currentValue,B=C(q);if(!V){n(et,B);return}A===B&&q||(o.userInput=null,n(et,B),A!==B&&n(Pt,B,A),r.validateEvent&&((te=a==null?void 0:a.validate)==null||te.call(a,"change").catch(I=>void 0)),o.currentValue=B)},E=q=>{o.userInput=q;const V=q===""?null:Number(q);n(ar,V),T(V,!1)},O=q=>{const V=q!==""?Number(q):"";(Ve(V)&&!Number.isNaN(V)||q==="")&&T(V),P(),o.userInput=null},D=()=>{var q,V;(V=(q=p.value)==null?void 0:q.focus)==null||V.call(q)},j=()=>{var q,V;(V=(q=p.value)==null?void 0:q.blur)==null||V.call(q)},k=q=>{n("focus",q)},U=q=>{var V,te;o.userInput=null,o.currentValue===null&&((V=p.value)==null?void 0:V.input)&&(p.value.input.value=""),n("blur",q),r.validateEvent&&((te=a==null?void 0:a.validate)==null||te.call(a,"blur").catch(A=>void 0))},P=()=>{o.currentValue!==r.modelValue&&(o.currentValue=r.modelValue)},re=q=>{document.activeElement===q.target&&q.preventDefault()};return Te(()=>r.modelValue,(q,V)=>{const te=C(q,!0);o.userInput===null&&te!==V&&(o.currentValue=te)},{immediate:!0}),Te(()=>r.precision,()=>{o.currentValue=C(r.modelValue)}),Je(()=>{var q;const{min:V,max:te,modelValue:A}=r,B=(q=p.value)==null?void 0:q.input;if(B.setAttribute("role","spinbutton"),Number.isFinite(te)?B.setAttribute("aria-valuemax",String(te)):B.removeAttribute("aria-valuemax"),Number.isFinite(V)?B.setAttribute("aria-valuemin",String(V)):B.removeAttribute("aria-valuemin"),B.setAttribute("aria-valuenow",o.currentValue||o.currentValue===0?String(o.currentValue):""),B.setAttribute("aria-disabled",String(d.value)),!Ve(A)&&A!=null){let I=Number(A);Number.isNaN(I)&&(I=null),n(et,I)}B.addEventListener("wheel",re,{passive:!1})}),zo(()=>{var q,V;const te=(q=p.value)==null?void 0:q.input;te==null||te.setAttribute("aria-valuenow",`${(V=o.currentValue)!=null?V:""}`)}),t({focus:D,blur:j}),(q,V)=>($(),oe("div",{class:le([w(u).b(),w(u).m(w(s)),w(u).is("disabled",w(d)),w(u).is("without-controls",!q.controls),w(u).is("controls-right",w(f)),w(u).is(q.align,!!q.align)]),onDragstart:Ze(()=>{},["prevent"])},[q.controls?mt(($(),oe("span",{key:0,role:"button","aria-label":w(i)("el.inputNumber.decrease"),class:le([w(u).e("decrease"),w(u).is("disabled",w(c))]),onKeydown:nn(S,["enter"])},[Ce(q.$slots,"decrease-icon",{},()=>[ce(w(De),null,{default:he(()=>[w(f)?($(),ye(w(af),{key:0})):($(),ye(w(E1),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[w(iy),S]]):be("v-if",!0),q.controls?mt(($(),oe("span",{key:1,role:"button","aria-label":w(i)("el.inputNumber.increase"),class:le([w(u).e("increase"),w(u).is("disabled",w(h))]),onKeydown:nn(_,["enter"])},[Ce(q.$slots,"increase-icon",{},()=>[ce(w(De),null,{default:he(()=>[w(f)?($(),ye(w(jk),{key:0})):($(),ye(w(Wp),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[w(iy),_]]):be("v-if",!0),ce(w(qo),{id:q.id,ref_key:"input",ref:p,type:"number",step:q.step,"model-value":w(g),placeholder:q.placeholder,readonly:q.readonly,disabled:w(d),size:w(s),max:q.max,min:q.min,name:q.name,"aria-label":q.ariaLabel,"validate-event":!1,inputmode:q.inputmode,onKeydown:b,onBlur:U,onFocus:k,onInput:E,onChange:O},Qs({_:2},[q.$slots.prefix?{name:"prefix",fn:he(()=>[Ce(q.$slots,"prefix")])}:void 0,q.$slots.suffix?{name:"suffix",fn:he(()=>[Ce(q.$slots,"suffix")])}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","inputmode"])],42,["onDragstart"]))}});var kN=Le(EN,[["__file","input-number.vue"]]);const Ph=dt(kN),M2=11;function ON(){const e=Bt(),t=ie(0),n=W(()=>({minWidth:`${Math.max(t.value,M2)}px`}));return rn(e,()=>{var i,u;t.value=(u=(i=e.value)==null?void 0:i.getBoundingClientRect().width)!=null?u:0}),{calculatorRef:e,calculatorWidth:t,inputStyle:n}}class PN{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 i=!1;switch(r.code){case je.down:{this.gotoSubIndex(this.subIndex+1),i=!0;break}case je.up:{this.gotoSubIndex(this.subIndex-1),i=!0;break}case je.tab:{Gu(t,"mouseleave");break}case je.enter:case je.numpadEnter:case je.space:{i=!0,r.currentTarget.click();break}}return i&&(r.preventDefault(),r.stopPropagation()),!1})})}}class AN{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 PN(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case je.down:{Gu(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case je.up:{Gu(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case je.tab:{Gu(t.currentTarget,"mouseleave");break}case je.enter:case je.numpadEnter:case je.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}}class IN{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 AN(r,t)})}}const MN=pe({name:"ElMenuCollapseTransition"}),RN=pe({...MN,setup(e){const t=Ae("menu"),n={onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,i){gs(r,`${t.namespace.value}-opacity-transition`),r.style.opacity="1",i()},onAfterEnter(r){Ku(r,`${t.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),yh(r,t.m("collapse"))?(Ku(r,t.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),gs(r,t.m("collapse"))):(gs(r,t.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Ku(r,t.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){gs(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}};return(r,i)=>($(),ye(sr,$t({mode:"out-in"},w(n)),{default:he(()=>[Ce(r.$slots,"default")]),_:3},16))}});var LN=Le(RN,[["__file","menu-collapse-transition.vue"]]);function R2(e,t){const n=W(()=>{let i=e.parent;const u=[t.value];for(;i.type.name!=="ElMenu";)i.props.index&&u.unshift(i.props.index),i=i.parent;return u});return{parentMenu:W(()=>{let i=e.parent;for(;i&&!["ElMenu","ElSubMenu"].includes(i.type.name);)i=i.parent;return i}),indexPath:n}}function DN(e){return W(()=>{const n=e.backgroundColor;return n?new ho(n).shade(20).toString():""})}const L2=(e,t)=>{const n=Ae("menu");return W(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":DN(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},Fv="rootMenu",Ic="subMenu:",FN=Me({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:Rt},expandOpenIcon:{type:Rt},collapseCloseIcon:{type:Rt},collapseOpenIcon:{type:Rt}}),ud="ElSubMenu";var Bv=pe({name:ud,props:FN,setup(e,{slots:t,expose:n}){const r=it(),{indexPath:i,parentMenu:u}=R2(r,W(()=>e.index)),p=Ae("menu"),o=Ae("sub-menu"),a=Ne(Fv);a||Zt(ud,"can not inject root menu");const c=Ne(`${Ic}${u.value.uid}`);c||Zt(ud,"can not inject sub menu");const h=ie({}),l=ie({});let f;const s=ie(!1),d=ie(),g=ie(),v=W(()=>E.value==="horizontal"&&y.value?"bottom-start":"right-start"),m=W(()=>E.value==="horizontal"&&y.value||E.value==="vertical"&&!a.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?C.value?e.expandOpenIcon:e.expandCloseIcon:af:e.collapseCloseIcon&&e.collapseOpenIcon?C.value?e.collapseOpenIcon:e.collapseCloseIcon:Wo),y=W(()=>c.level===0),b=W(()=>{const I=e.teleported;return vn(I)?y.value:I}),_=W(()=>a.props.collapse?`${p.namespace.value}-zoom-in-left`:`${p.namespace.value}-zoom-in-top`),S=W(()=>E.value==="horizontal"&&y.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"]),C=W(()=>a.openedMenus.includes(e.index)),T=W(()=>[...Object.values(h.value),...Object.values(l.value)].some(({active:I})=>I)),E=W(()=>a.props.mode),O=W(()=>a.props.persistent),D=yt({index:e.index,indexPath:i,active:T}),j=L2(a.props,c.level+1),k=W(()=>{var I;return(I=e.popperOffset)!=null?I:a.props.popperOffset}),U=W(()=>{var I;return(I=e.popperClass)!=null?I:a.props.popperClass}),P=W(()=>{var I;return(I=e.showTimeout)!=null?I:a.props.showTimeout}),re=W(()=>{var I;return(I=e.hideTimeout)!=null?I:a.props.hideTimeout}),q=()=>{var I,M,J;return(J=(M=(I=g.value)==null?void 0:I.popperRef)==null?void 0:M.popperInstanceRef)==null?void 0:J.destroy()},V=I=>{I||q()},te=()=>{a.props.menuTrigger==="hover"&&a.props.mode==="horizontal"||a.props.collapse&&a.props.mode==="vertical"||e.disabled||a.handleSubMenuClick({index:e.index,indexPath:i.value,active:T.value})},A=(I,M=P.value)=>{var J;if(I.type!=="focus"){if(a.props.menuTrigger==="click"&&a.props.mode==="horizontal"||!a.props.collapse&&a.props.mode==="vertical"||e.disabled){c.mouseInChild.value=!0;return}c.mouseInChild.value=!0,f==null||f(),{stop:f}=fl(()=>{a.openMenu(e.index,i.value)},M),b.value&&((J=u.value.vnode.el)==null||J.dispatchEvent(new MouseEvent("mouseenter")))}},B=(I=!1)=>{var M;if(a.props.menuTrigger==="click"&&a.props.mode==="horizontal"||!a.props.collapse&&a.props.mode==="vertical"){c.mouseInChild.value=!1;return}f==null||f(),c.mouseInChild.value=!1,{stop:f}=fl(()=>!s.value&&a.closeMenu(e.index,i.value),re.value),b.value&&I&&((M=c.handleMouseleave)==null||M.call(c,!0))};Te(()=>a.props.collapse,I=>V(Boolean(I)));{const I=J=>{l.value[J.index]=J},M=J=>{delete l.value[J.index]};pt(`${Ic}${r.uid}`,{addSubMenu:I,removeSubMenu:M,handleMouseleave:B,mouseInChild:s,level:c.level+1})}return n({opened:C}),Je(()=>{a.addSubMenu(D),c.addSubMenu(D)}),At(()=>{c.removeSubMenu(D),a.removeSubMenu(D)}),()=>{var I;const M=[(I=t.title)==null?void 0:I.call(t),gt(De,{class:o.e("icon-arrow"),style:{transform:C.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&a.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Be(m.value)?gt(r.appContext.components[m.value]):gt(m.value)})],J=a.isMenuPopup?gt(Wr,{ref:g,visible:C.value,effect:"light",pure:!0,offset:k.value,showArrow:!1,persistent:O.value,popperClass:U.value,placement:v.value,teleported:b.value,fallbackPlacements:S.value,transition:_.value,gpuAcceleration:!1},{content:()=>{var z;return gt("div",{class:[p.m(E.value),p.m("popup-container"),U.value],onMouseenter:L=>A(L,100),onMouseleave:()=>B(!0),onFocus:L=>A(L,100)},[gt("ul",{class:[p.b(),p.m("popup"),p.m(`popup-${v.value}`)],style:j.value},[(z=t.default)==null?void 0:z.call(t)])])},default:()=>gt("div",{class:o.e("title"),onClick:te},M)}):gt($e,{},[gt("div",{class:o.e("title"),ref:d,onClick:te},M),gt(b2,{},{default:()=>{var z;return mt(gt("ul",{role:"menu",class:[p.b(),p.m("inline")],style:j.value},[(z=t.default)==null?void 0:z.call(t)]),[[Ft,C.value]])}})]);return gt("li",{class:[o.b(),o.is("active",T.value),o.is("opened",C.value),o.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:C.value,onMouseenter:A,onMouseleave:()=>B(),onFocus:A},[J])}}});const BN=Me({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Se(Array),default:()=>Ht([])},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:Rt,default:()=>TO},popperEffect:{type:Se(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),cd=e=>Pe(e)&&e.every(t=>Be(t)),NN={close:(e,t)=>Be(e)&&cd(t),open:(e,t)=>Be(e)&&cd(t),select:(e,t,n,r)=>Be(e)&&cd(t)&&Ye(n)&&(vn(r)||r instanceof Promise)};var $N=pe({name:"ElMenu",props:BN,emits:NN,setup(e,{emit:t,slots:n,expose:r}){const i=it(),u=i.appContext.config.globalProperties.$router,p=ie(),o=ie(),a=Ae("menu"),c=Ae("sub-menu");let h=64;const l=ie(-1),f=ie(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),s=ie(e.defaultActive),d=ie({}),g=ie({}),v=W(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),m=()=>{const V=s.value&&d.value[s.value];if(!V||e.mode==="horizontal"||e.collapse)return;V.indexPath.forEach(A=>{const B=g.value[A];B&&y(A,B.indexPath)})},y=(V,te)=>{f.value.includes(V)||(e.uniqueOpened&&(f.value=f.value.filter(A=>te.includes(A))),f.value.push(V),t("open",V,te))},b=V=>{const te=f.value.indexOf(V);te!==-1&&f.value.splice(te,1)},_=(V,te)=>{b(V),t("close",V,te)},S=({index:V,indexPath:te})=>{f.value.includes(V)?_(V,te):y(V,te)},C=V=>{(e.mode==="horizontal"||e.collapse)&&(f.value=[]);const{index:te,indexPath:A}=V;if(!(qt(te)||qt(A)))if(e.router&&u){const B=V.route||te,I=u.push(B).then(M=>(M||(s.value=te),M));t("select",te,A,{index:te,indexPath:A,route:B},I)}else s.value=te,t("select",te,A,{index:te,indexPath:A})},T=V=>{var te;const A=d.value,B=A[V]||s.value&&A[s.value]||A[e.defaultActive];s.value=(te=B==null?void 0:B.index)!=null?te:V},E=V=>{const te=getComputedStyle(V),A=Number.parseInt(te.marginLeft,10),B=Number.parseInt(te.marginRight,10);return V.offsetWidth+A+B||0},O=()=>{var V,te;if(!p.value)return-1;const A=Array.from((te=(V=p.value)==null?void 0:V.childNodes)!=null?te:[]).filter(Q=>Q.nodeName!=="#comment"&&(Q.nodeName!=="#text"||Q.nodeValue)),B=getComputedStyle(p.value),I=Number.parseInt(B.paddingLeft,10),M=Number.parseInt(B.paddingRight,10),J=p.value.clientWidth-I-M;let z=0,L=0;return A.forEach((Q,H)=>{z+=E(Q),z<=J-h&&(L=H+1)}),L===A.length?-1:L},D=V=>g.value[V].indexPath,j=(V,te=33.34)=>{let A;return()=>{A&&clearTimeout(A),A=setTimeout(()=>{V()},te)}};let k=!0;const U=()=>{const V=Yn(o);if(V&&(h=E(V)||64),l.value===O())return;const te=()=>{l.value=-1,Ke(()=>{l.value=O()})};k?te():j(te)(),k=!1};Te(()=>e.defaultActive,V=>{d.value[V]||(s.value=""),T(V)}),Te(()=>e.collapse,V=>{V&&(f.value=[])}),Te(d.value,m);let P;ja(()=>{e.mode==="horizontal"&&e.ellipsis?P=rn(p,U).stop:P==null||P()});const re=ie(!1);{const V=I=>{g.value[I.index]=I},te=I=>{delete g.value[I.index]};pt(Fv,yt({props:e,openedMenus:f,items:d,subMenus:g,activeIndex:s,isMenuPopup:v,addMenuItem:I=>{d.value[I.index]=I},removeMenuItem:I=>{delete d.value[I.index]},addSubMenu:V,removeSubMenu:te,openMenu:y,closeMenu:_,handleMenuItemClick:C,handleSubMenuClick:S})),pt(`${Ic}${i.uid}`,{addSubMenu:V,removeSubMenu:te,mouseInChild:re,level:0})}Je(()=>{e.mode==="horizontal"&&new IN(i.vnode.el,a.namespace.value)}),r({open:te=>{const{indexPath:A}=g.value[te];A.forEach(B=>y(B,A))},close:b,updateActiveIndex:T,handleResize:U});const q=L2(e,0);return()=>{var V,te;let A=(te=(V=n.default)==null?void 0:V.call(n))!=null?te:[];const B=[];if(e.mode==="horizontal"&&p.value){const J=zi(A).filter(Q=>(Q==null?void 0:Q.shapeFlag)!==8),z=l.value===-1?J:J.slice(0,l.value),L=l.value===-1?[]:J.slice(l.value);(L==null?void 0:L.length)&&e.ellipsis&&(A=z,B.push(gt(Bv,{ref:o,index:"sub-menu-more",class:c.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>gt(De,{class:c.e("icon-more")},{default:()=>gt(e.ellipsisIcon)}),default:()=>L})))}const I=e.closeOnClickOutside?[[Iv,()=>{!f.value.length||re.value||(f.value.forEach(J=>t("close",J,D(J))),f.value=[])}]]:[],M=mt(gt("ul",{key:String(e.collapse),role:"menubar",ref:p,style:q.value,class:{[a.b()]:!0,[a.m(e.mode)]:!0,[a.m("collapse")]:e.collapse}},[...A,...B]),I);return e.collapseTransition&&e.mode==="vertical"?gt(LN,()=>M):M}}});const zN=Me({index:{type:Se([String,null]),default:null},route:{type:Se([String,Object])},disabled:Boolean}),jN={click:e=>Be(e.index)&&Pe(e.indexPath)},Ah="ElMenuItem",VN=pe({name:Ah}),UN=pe({...VN,props:zN,emits:jN,setup(e,{expose:t,emit:n}){const r=e;hh(r.index)&&void 0;const i=it(),u=Ne(Fv),p=Ae("menu"),o=Ae("menu-item");u||Zt(Ah,"can not inject root menu");const{parentMenu:a,indexPath:c}=R2(i,En(r,"index")),h=Ne(`${Ic}${a.value.uid}`);h||Zt(Ah,"can not inject sub menu");const l=W(()=>r.index===u.activeIndex),f=yt({index:r.index,indexPath:c,active:l}),s=()=>{r.disabled||(u.handleMenuItemClick({index:r.index,indexPath:c.value,route:r.route}),n("click",f))};return Je(()=>{h.addSubMenu(f),u.addMenuItem(f)}),At(()=>{h.removeSubMenu(f),u.removeMenuItem(f)}),t({parentMenu:a,rootMenu:u,active:l,nsMenu:p,nsMenuItem:o,handleClick:s}),(d,g)=>($(),oe("li",{class:le([w(o).b(),w(o).is("active",w(l)),w(o).is("disabled",d.disabled)]),role:"menuitem",tabindex:"-1",onClick:s},[w(a).type.name==="ElMenu"&&w(u).props.collapse&&d.$slots.title?($(),ye(w(Wr),{key:0,effect:w(u).props.popperEffect,placement:"right","fallback-placements":["left"],persistent:w(u).props.persistent},{content:he(()=>[Ce(d.$slots,"title")]),default:he(()=>[ae("div",{class:le(w(p).be("tooltip","trigger"))},[Ce(d.$slots,"default")],2)]),_:3},8,["effect","persistent"])):($(),oe($e,{key:1},[Ce(d.$slots,"default"),Ce(d.$slots,"title")],64))],2))}});var D2=Le(UN,[["__file","menu-item.vue"]]);const HN={title:String},WN=pe({name:"ElMenuItemGroup"}),KN=pe({...WN,props:HN,setup(e){const t=Ae("menu-item-group");return(n,r)=>($(),oe("li",{class:le(w(t).b())},[ae("div",{class:le(w(t).e("title"))},[n.$slots.title?Ce(n.$slots,"title",{key:1}):($(),oe($e,{key:0},[We(Oe(n.title),1)],64))],2),ae("ul",null,[Ce(n.$slots,"default")])],2))}});var F2=Le(KN,[["__file","menu-item-group.vue"]]);const B2=dt($N,{MenuItem:D2,MenuItemGroup:F2,SubMenu:Bv}),Nv=pr(D2);pr(F2);pr(Bv);const N2=Symbol("elPaginationKey"),GN=Me({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Rt}}),YN={click:e=>e instanceof MouseEvent},XN=pe({name:"ElPaginationPrev"}),qN=pe({...XN,props:GN,emits:YN,setup(e){const t=e,{t:n}=Gt(),r=W(()=>t.disabled||t.currentPage<=1);return(i,u)=>($(),oe("button",{type:"button",class:"btn-prev",disabled:w(r),"aria-label":i.prevText||w(n)("el.pagination.prev"),"aria-disabled":w(r),onClick:p=>i.$emit("click",p)},[i.prevText?($(),oe("span",{key:0},Oe(i.prevText),1)):($(),ye(w(De),{key:1},{default:he(()=>[($(),ye(ut(i.prevIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var ZN=Le(qN,[["__file","prev.vue"]]);const JN=Me({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Rt}}),QN=pe({name:"ElPaginationNext"}),e$=pe({...QN,props:JN,emits:["click"],setup(e){const t=e,{t:n}=Gt(),r=W(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(i,u)=>($(),oe("button",{type:"button",class:"btn-next",disabled:w(r),"aria-label":i.nextText||w(n)("el.pagination.next"),"aria-disabled":w(r),onClick:p=>i.$emit("click",p)},[i.nextText?($(),oe("span",{key:0},Oe(i.nextText),1)):($(),ye(w(De),{key:1},{default:he(()=>[($(),ye(ut(i.nextIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var t$=Le(e$,[["__file","next.vue"]]);const $2={label:"label",value:"value",disabled:"disabled",options:"options"};function n$(e){const t=W(()=>({...$2,...e.props}));return{aliasProps:t,getLabel:p=>Gn(p,t.value.label),getValue:p=>Gn(p,t.value.value),getDisabled:p=>Gn(p,t.value.disabled),getOptions:p=>Gn(p,t.value.options)}}const z2=Symbol("ElSelectGroup"),Sf=Symbol("ElSelect"),Ih="ElOption",r$=Me({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean}),i$=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Bi=e=>Dl(e);function a$(e,t){const n=Ne(Sf);n||Zt(Ih,"usage: <el-select><el-option /></el-select/>");const r=Ne(z2,{disabled:!1}),i=W(()=>h(Wn(n.props.modelValue),e.value)),u=W(()=>{var s;if(n.props.multiple){const d=Wn((s=n.props.modelValue)!=null?s:[]);return!i.value&&d.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),p=W(()=>{var s;return(s=e.label)!=null?s:Ye(e.value)?"":e.value}),o=W(()=>e.value||e.label||""),a=W(()=>e.disabled||t.groupDisabled||u.value),c=it(),h=(s=[],d)=>{if(Ye(e.value)){const g=n.props.valueKey;return s&&s.some(v=>ot(Gn(v,g))===Gn(d,g))}else return s&&s.includes(d)},l=()=>{!e.disabled&&!r.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(c.proxy))},f=s=>{const d=new RegExp(i$(s),"i");t.visible=d.test(String(p.value))||e.created};return Te(()=>p.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),Te(()=>e.value,(s,d)=>{const{remote:g,valueKey:v}=n.props;if((g?s!==d:!Wi(s,d))&&(n.onOptionDestroy(d,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!g){if(v&&Ye(s)&&Ye(d)&&s[v]===d[v])return;n.setSelected()}}),Te(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0}),{select:n,currentLabel:p,currentValue:o,itemSelected:i,isDisabled:a,hoverItem:l,updateOption:f}}const o$=pe({name:Ih,componentName:Ih,props:r$,setup(e){const t=Ae("select"),n=Er(),r=W(()=>[t.be("dropdown","item"),t.is("disabled",w(o)),t.is("selected",w(p)),t.is("hovering",w(f))]),i=yt({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:u,itemSelected:p,isDisabled:o,select:a,hoverItem:c,updateOption:h}=a$(e,i),{visible:l,hover:f}=Sr(i),s=it().proxy;a.onOptionCreate(s),At(()=>{const g=s.value;Ke(()=>{const{selected:v}=a.states,m=v.some(y=>y.value===s.value);a.states.cachedOptions.get(g)===s&&!m&&a.states.cachedOptions.delete(g)}),a.onOptionDestroy(g,s)});function d(){o.value||a.handleOptionSelect(s)}return{ns:t,id:n,containerKls:r,currentLabel:u,itemSelected:p,isDisabled:o,select:a,visible:l,hover:f,states:i,hoverItem:c,updateOption:h,selectOptionClick:d}}});function s$(e,t){return mt(($(),oe("li",{id:e.id,class:le(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:e.hoverItem,onClick:Ze(e.selectOptionClick,["stop"])},[Ce(e.$slots,"default",{},()=>[ae("span",null,Oe(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[Ft,e.visible]])}var $v=Le(o$,[["render",s$],["__file","option.vue"]]);const l$=pe({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Ne(Sf),t=Ae("select"),n=W(()=>e.props.popperClass),r=W(()=>e.props.multiple),i=W(()=>e.props.fitInputWidth),u=ie("");function p(){var o;u.value=`${(o=e.selectRef)==null?void 0:o.offsetWidth}px`}return Je(()=>{p(),rn(e.selectRef,p)}),{ns:t,minWidth:u,popperClass:n,isMultiple:r,isFitInputWidth:i}}});function u$(e,t,n,r,i,u){return $(),oe("div",{class:le([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:ze({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?($(),oe("div",{key:0,class:le(e.ns.be("dropdown","header"))},[Ce(e.$slots,"header")],2)):be("v-if",!0),Ce(e.$slots,"default"),e.$slots.footer?($(),oe("div",{key:1,class:le(e.ns.be("dropdown","footer"))},[Ce(e.$slots,"footer")],2)):be("v-if",!0)],6)}var c$=Le(l$,[["render",u$],["__file","select-dropdown.vue"]]);const f$=(e,t)=>{const{t:n}=Gt(),r=Er(),i=Ae("select"),u=Ae("input"),p=yt({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),o=ie(),a=ie(),c=ie(),h=ie(),l=ie(),f=ie(),s=ie(),d=ie(),g=ie(),v=ie(),m=ie(),y=ie(!1),b=ie(),{form:_,formItem:S}=ia(),{inputId:C}=Xo(e,{formItemContext:S}),{valueOnClear:T,isEmptyValue:E}=Tw(e),{isComposing:O,handleCompositionStart:D,handleCompositionUpdate:j,handleCompositionEnd:k}=Lw({afterComposition:we=>Ee(we)}),U=W(()=>e.disabled||!!(_!=null&&_.disabled)),{wrapperRef:P,isFocused:re,handleBlur:q}=vv(l,{disabled:U,afterFocus(){e.automaticDropdown&&!y.value&&(y.value=!0,p.menuVisibleOnFocus=!0)},beforeBlur(we){var Ie,Qe;return((Ie=c.value)==null?void 0:Ie.isFocusInsideContent(we))||((Qe=h.value)==null?void 0:Qe.isFocusInsideContent(we))},afterBlur(){var we;y.value=!1,p.menuVisibleOnFocus=!1,e.validateEvent&&((we=S==null?void 0:S.validate)==null||we.call(S,"blur").catch(Ie=>void 0))}}),V=W(()=>Pe(e.modelValue)?e.modelValue.length>0:!E(e.modelValue)),te=W(()=>{var we;return(we=_==null?void 0:_.statusIcon)!=null?we:!1}),A=W(()=>e.clearable&&!U.value&&V.value&&(re.value||p.inputHovering)),B=W(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),I=W(()=>i.is("reverse",!!(B.value&&y.value))),M=W(()=>(S==null?void 0:S.validateState)||""),J=W(()=>M.value&&Iw[M.value]),z=W(()=>e.remote?300:0),L=W(()=>e.remote&&!p.inputValue&&p.options.size===0),Q=W(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&p.inputValue&&p.options.size>0&&H.value===0?e.noMatchText||n("el.select.noMatch"):p.options.size===0?e.noDataText||n("el.select.noData"):null),H=W(()=>G.value.filter(we=>we.visible).length),G=W(()=>{const we=Array.from(p.options.values()),Ie=[];return p.optionValues.forEach(Qe=>{const Ut=we.findIndex(Nn=>Nn.value===Qe);Ut>-1&&Ie.push(we[Ut])}),Ie.length>=we.length?Ie:we}),ne=W(()=>Array.from(p.cachedOptions.values())),de=W(()=>{const we=G.value.filter(Ie=>!Ie.created).some(Ie=>Ie.currentLabel===p.inputValue);return e.filterable&&e.allowCreate&&p.inputValue!==""&&!we}),ve=()=>{e.filterable&&Re(e.filterMethod)||e.filterable&&e.remote&&Re(e.remoteMethod)||G.value.forEach(we=>{var Ie;(Ie=we.updateOption)==null||Ie.call(we,p.inputValue)})},_e=Or(),N=W(()=>["small"].includes(_e.value)?"small":"default"),x=W({get(){return y.value&&!L.value},set(we){y.value=we}}),K=W(()=>{if(e.multiple&&!vn(e.modelValue))return Wn(e.modelValue).length===0&&!p.inputValue;const we=Pe(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||vn(we)?!p.inputValue:!0}),X=W(()=>{var we;const Ie=(we=e.placeholder)!=null?we:n("el.select.placeholder");return e.multiple||!V.value?Ie:p.selectedLabel}),R=W(()=>ph?null:"mouseenter");Te(()=>e.modelValue,(we,Ie)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(p.inputValue="",F("")),fe(),!Wi(we,Ie)&&e.validateEvent&&(S==null||S.validate("change").catch(Qe=>void 0))},{flush:"post",deep:!0}),Te(()=>y.value,we=>{we?F(p.inputValue):(p.inputValue="",p.previousQuery=null,p.isBeforeHide=!0),t("visible-change",we)}),Te(()=>p.options.entries(),()=>{!ct||(fe(),e.defaultFirstOption&&(e.filterable||e.remote)&&H.value&&ee())},{flush:"post"}),Te([()=>p.hoveringIndex,G],([we])=>{Ve(we)&&we>-1?b.value=G.value[we]||{}:b.value={},G.value.forEach(Ie=>{Ie.hover=b.value===Ie})}),ja(()=>{p.isBeforeHide||ve()});const F=we=>{p.previousQuery===we||O.value||(p.previousQuery=we,e.filterable&&Re(e.filterMethod)?e.filterMethod(we):e.filterable&&e.remote&&Re(e.remoteMethod)&&e.remoteMethod(we),e.defaultFirstOption&&(e.filterable||e.remote)&&H.value?Ke(ee):Ke(Y))},ee=()=>{const we=G.value.filter(Nn=>Nn.visible&&!Nn.disabled&&!Nn.states.groupDisabled),Ie=we.find(Nn=>Nn.created),Qe=we[0],Ut=G.value.map(Nn=>Nn.value);p.hoveringIndex=bt(Ut,Ie||Qe)},fe=()=>{if(e.multiple)p.selectedLabel="";else{const Ie=Pe(e.modelValue)?e.modelValue[0]:e.modelValue,Qe=se(Ie);p.selectedLabel=Qe.currentLabel,p.selected=[Qe];return}const we=[];vn(e.modelValue)||Wn(e.modelValue).forEach(Ie=>{we.push(se(Ie))}),p.selected=we},se=we=>{let Ie;const Qe=Ys(we);for(let Za=p.cachedOptions.size-1;Za>=0;Za--){const xi=ne.value[Za];if(Qe?Gn(xi.value,e.valueKey)===Gn(we,e.valueKey):xi.value===we){Ie={value:we,currentLabel:xi.currentLabel,get isDisabled(){return xi.isDisabled}};break}}if(Ie)return Ie;const Ut=Qe?we.label:we!=null?we:"";return{value:we,currentLabel:Ut}},Y=()=>{p.hoveringIndex=G.value.findIndex(we=>p.selected.some(Ie=>Mn(Ie)===Mn(we)))},ge=()=>{p.selectionWidth=Number.parseFloat(window.getComputedStyle(a.value).width)},Z=()=>{p.collapseItemWidth=v.value.getBoundingClientRect().width},ue=()=>{var we,Ie;(Ie=(we=c.value)==null?void 0:we.updatePopper)==null||Ie.call(we)},me=()=>{var we,Ie;(Ie=(we=h.value)==null?void 0:we.updatePopper)==null||Ie.call(we)},xe=()=>{p.inputValue.length>0&&!y.value&&(y.value=!0),F(p.inputValue)},Ee=we=>{if(p.inputValue=we.target.value,e.remote)ke();else return xe()},ke=ul(()=>{xe()},z.value),Ue=we=>{Wi(e.modelValue,we)||t(Pt,we)},Xe=we=>F5(we,Ie=>{const Qe=p.cachedOptions.get(Ie);return Qe&&!Qe.disabled&&!Qe.states.groupDisabled}),tt=we=>{if(!!e.multiple&&we.code!==je.delete&&we.target.value.length<=0){const Ie=Wn(e.modelValue).slice(),Qe=Xe(Ie);if(Qe<0)return;const Ut=Ie[Qe];Ie.splice(Qe,1),t(et,Ie),Ue(Ie),t("remove-tag",Ut)}},qe=(we,Ie)=>{const Qe=p.selected.indexOf(Ie);if(Qe>-1&&!U.value){const Ut=Wn(e.modelValue).slice();Ut.splice(Qe,1),t(et,Ut),Ue(Ut),t("remove-tag",Ie.value)}we.stopPropagation(),ln()},Yt=we=>{we.stopPropagation();const Ie=e.multiple?[]:T.value;if(e.multiple)for(const Qe of p.selected)Qe.isDisabled&&Ie.push(Qe.value);t(et,Ie),Ue(Ie),p.hoveringIndex=-1,y.value=!1,t("clear"),ln()},Bn=we=>{var Ie;if(e.multiple){const Qe=Wn((Ie=e.modelValue)!=null?Ie:[]).slice(),Ut=bt(Qe,we);Ut>-1?Qe.splice(Ut,1):(e.multipleLimit<=0||Qe.length<e.multipleLimit)&&Qe.push(we.value),t(et,Qe),Ue(Qe),we.created&&F(""),e.filterable&&!e.reserveKeyword&&(p.inputValue="")}else t(et,we.value),Ue(we.value),y.value=!1;ln(),!y.value&&Ke(()=>{zt(we)})},bt=(we,Ie)=>vn(Ie)?-1:Ye(Ie.value)?we.findIndex(Qe=>Wi(Gn(Qe,e.valueKey),Mn(Ie))):we.indexOf(Ie.value),zt=we=>{var Ie,Qe,Ut,Nn,Za;const xi=Pe(we)?we[0]:we;let ru=null;if(xi!=null&&xi.value){const ss=G.value.filter(JC=>JC.value===xi.value);ss.length>0&&(ru=ss[0].$el)}if(c.value&&ru){const ss=(Nn=(Ut=(Qe=(Ie=c.value)==null?void 0:Ie.popperRef)==null?void 0:Qe.contentRef)==null?void 0:Ut.querySelector)==null?void 0:Nn.call(Ut,`.${i.be("dropdown","wrap")}`);ss&&O6(ss,ru)}(Za=m.value)==null||Za.handleScroll()},Gr=we=>{p.options.set(we.value,we),p.cachedOptions.set(we.value,we)},Ci=(we,Ie)=>{p.options.get(we)===Ie&&p.options.delete(we)},Et=W(()=>{var we,Ie;return(Ie=(we=c.value)==null?void 0:we.popperRef)==null?void 0:Ie.contentRef}),Ar=()=>{p.isBeforeHide=!1,Ke(()=>{var we;(we=m.value)==null||we.update(),zt(p.selected)})},ln=()=>{var we;(we=l.value)==null||we.focus()},_n=()=>{var we;if(y.value){y.value=!1,Ke(()=>{var Ie;return(Ie=l.value)==null?void 0:Ie.blur()});return}(we=l.value)==null||we.blur()},Yr=we=>{Yt(we)},Rf=we=>{if(y.value=!1,re.value){const Ie=new FocusEvent("blur",we);Ke(()=>q(Ie))}},Xa=()=>{p.inputValue.length>0?p.inputValue="":y.value=!1},qa=()=>{U.value||(ph&&(p.inputHovering=!0),p.menuVisibleOnFocus?p.menuVisibleOnFocus=!1:y.value=!y.value)},Lf=()=>{if(!y.value)qa();else{const we=G.value[p.hoveringIndex];we&&!we.isDisabled&&Bn(we)}},Mn=we=>Ye(we.value)?Gn(we.value,e.valueKey):we.value,WC=W(()=>G.value.filter(we=>we.visible).every(we=>we.isDisabled)),KC=W(()=>e.multiple?e.collapseTags?p.selected.slice(0,e.maxCollapseTags):p.selected:[]),GC=W(()=>e.multiple?e.collapseTags?p.selected.slice(e.maxCollapseTags):[]:[]),_g=we=>{if(!y.value){y.value=!0;return}if(!(p.options.size===0||H.value===0||O.value)&&!WC.value){we==="next"?(p.hoveringIndex++,p.hoveringIndex===p.options.size&&(p.hoveringIndex=0)):we==="prev"&&(p.hoveringIndex--,p.hoveringIndex<0&&(p.hoveringIndex=p.options.size-1));const Ie=G.value[p.hoveringIndex];(Ie.isDisabled||!Ie.visible)&&_g(we),Ke(()=>zt(b.value))}},YC=()=>{if(!a.value)return 0;const we=window.getComputedStyle(a.value);return Number.parseFloat(we.gap||"6px")},XC=W(()=>{const we=YC(),Ie=e.filterable?we+M2:0;return{maxWidth:`${v.value&&e.maxCollapseTags===1?p.selectionWidth-p.collapseItemWidth-we-Ie:p.selectionWidth-Ie}px`}}),qC=W(()=>({maxWidth:`${p.selectionWidth}px`})),ZC=we=>{t("popup-scroll",we)};rn(a,ge),rn(P,ue),rn(g,me),rn(v,Z);let nu;return Te(()=>x.value,we=>{we?nu=rn(d,ue).stop:(nu==null||nu(),nu=void 0)}),Je(()=>{fe()}),{inputId:C,contentId:r,nsSelect:i,nsInput:u,states:p,isFocused:re,expanded:y,optionsArray:G,hoverOption:b,selectSize:_e,filteredOptionsCount:H,updateTooltip:ue,updateTagTooltip:me,debouncedOnInputChange:ke,onInput:Ee,deletePrevTag:tt,deleteTag:qe,deleteSelected:Yt,handleOptionSelect:Bn,scrollToOption:zt,hasModelValue:V,shouldShowPlaceholder:K,currentPlaceholder:X,mouseEnterEventName:R,needStatusIcon:te,showClearBtn:A,iconComponent:B,iconReverse:I,validateState:M,validateIcon:J,showNewOption:de,updateOptions:ve,collapseTagSize:N,setSelected:fe,selectDisabled:U,emptyText:Q,handleCompositionStart:D,handleCompositionUpdate:j,handleCompositionEnd:k,onOptionCreate:Gr,onOptionDestroy:Ci,handleMenuEnter:Ar,focus:ln,blur:_n,handleClearClick:Yr,handleClickOutside:Rf,handleEsc:Xa,toggleMenu:qa,selectOption:Lf,getValueKey:Mn,navigateOptions:_g,dropdownMenuVisible:x,showTagList:KC,collapseTagList:GC,popupScroll:ZC,tagStyle:XC,collapseTagStyle:qC,popperRef:Et,inputRef:l,tooltipRef:c,tagTooltipRef:h,prefixRef:f,suffixRef:s,selectRef:o,wrapperRef:P,selectionRef:a,scrollbarRef:m,menuRef:d,tagMenuRef:g,collapseItemRef:v}};var d$=pe({name:"ElOptions",setup(e,{slots:t}){const n=Ne(Sf);let r=[];return()=>{var i,u;const p=(i=t.default)==null?void 0:i.call(t),o=[];function a(c){!Pe(c)||c.forEach(h=>{var l,f,s,d;const g=(l=(h==null?void 0:h.type)||{})==null?void 0:l.name;g==="ElOptionGroup"?a(!Be(h.children)&&!Pe(h.children)&&Re((f=h.children)==null?void 0:f.default)?(s=h.children)==null?void 0:s.default():h.children):g==="ElOption"?o.push((d=h.props)==null?void 0:d.value):Pe(h.children)&&a(h.children)})}return p.length&&a((u=p[0])==null?void 0:u.children),Wi(o,r)||(r=o,n&&(n.states.optionValues=o)),p}}});const h$=Me({name:String,id:String,modelValue:{type:Se([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Tr,effect:{type:Se(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:Se([String,Object])},popperOptions:{type:Se(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:Se(Function)},filterMethod:{type:Se(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:Qt.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Rt,default:sf},fitInputWidth:Boolean,suffixIcon:{type:Rt,default:af},tagType:{...Ch.type,default:"info"},tagEffect:{...Ch.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:Se(String),values:Zo,default:"bottom-start"},fallbackPlacements:{type:Se(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:Qt.appendTo,options:{type:Se(Array)},props:{type:Se(Object),default:()=>$2},...hv,...Hr(["ariaLabel"])});et+"",Pt+"",Dw.scroll;const p$=pe({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Ae("select"),n=ie(),r=it(),i=ie([]);pt(z2,yt({...Sr(e)}));const u=W(()=>i.value.some(c=>c.visible===!0)),p=c=>{var h;return c.type.name==="ElOption"&&!!((h=c.component)!=null&&h.proxy)},o=c=>{const h=Wn(c),l=[];return h.forEach(f=>{var s;!On(f)||(p(f)?l.push(f.component.proxy):Pe(f.children)&&f.children.length?l.push(...o(f.children)):(s=f.component)!=null&&s.subTree&&l.push(...o(f.component.subTree)))}),l},a=()=>{i.value=o(r.subTree)};return Je(()=>{a()}),a6(n,a,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:u,ns:t}}});function v$(e,t,n,r,i,u){return mt(($(),oe("ul",{ref:"groupRef",class:le(e.ns.be("group","wrap"))},[ae("li",{class:le(e.ns.be("group","title"))},Oe(e.label),3),ae("li",null,[ae("ul",{class:le(e.ns.b("group"))},[Ce(e.$slots,"default")],2)])],2)),[[Ft,e.visible]])}var zv=Le(p$,[["render",v$],["__file","option-group.vue"]]);const dy="ElSelect",g$=pe({name:dy,componentName:dy,components:{ElSelectMenu:c$,ElOption:$v,ElOptions:d$,ElOptionGroup:zv,ElTag:$D,ElScrollbar:Fw,ElTooltip:Wr,ElIcon:De},directives:{ClickOutside:Iv},props:h$,emits:[et,Pt,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:t,slots:n}){const r=it();r.appContext.config.warnHandler=(...m)=>{!m[0]||m[0].includes('Slot "default" invoked outside of the render function')||console.warn(...m)};const i=W(()=>{const{modelValue:m,multiple:y}=e,b=y?[]:void 0;return Pe(m)?y?m:b:y?b:m}),u=yt({...Sr(e),modelValue:i}),p=f$(u,t),{calculatorRef:o,inputStyle:a}=ON(),{getLabel:c,getValue:h,getOptions:l,getDisabled:f}=n$(e),s=m=>({label:c(m),value:h(m),disabled:f(m)}),d=m=>m.reduce((y,b)=>(y.push(b),b.children&&b.children.length>0&&y.push(...d(b.children)),y),[]),g=m=>{zi(m||[]).forEach(b=>{var _;if(Ye(b)&&(b.type.name==="ElOption"||b.type.name==="ElTree")){const S=b.type.name;if(S==="ElTree"){const C=((_=b.props)==null?void 0:_.data)||[];d(C).forEach(E=>{E.currentLabel=E.label||(Ye(E.value)?"":E.value),p.onOptionCreate(E)})}else if(S==="ElOption"){const C={...b.props};C.currentLabel=C.label||(Ye(C.value)?"":C.value),p.onOptionCreate(C)}}})};Te(()=>{var m;return(m=n.default)==null?void 0:m.call(n)},m=>{e.persistent||g(m)},{immediate:!0}),pt(Sf,yt({props:u,states:p.states,selectRef:p.selectRef,optionsArray:p.optionsArray,setSelected:p.setSelected,handleOptionSelect:p.handleOptionSelect,onOptionCreate:p.onOptionCreate,onOptionDestroy:p.onOptionDestroy}));const v=W(()=>e.multiple?p.states.selected.map(m=>m.currentLabel):p.states.selectedLabel);return At(()=>{r.appContext.config.warnHandler=void 0}),{...p,modelValue:i,selectedLabel:v,calculatorRef:o,inputStyle:a,getLabel:c,getValue:h,getOptions:l,getDisabled:f,getOptionProps:s}}});function m$(e,t){const n=Un("el-tag"),r=Un("el-tooltip"),i=Un("el-icon"),u=Un("el-option"),p=Un("el-option-group"),o=Un("el-options"),a=Un("el-scrollbar"),c=Un("el-select-menu"),h=Qx("click-outside");return mt(($(),oe("div",{ref:"selectRef",class:le([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[Cs(e.mouseEnterEventName)]:l=>e.states.inputHovering=!0,onMouseleave:l=>e.states.inputHovering=!1},[ce(r,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"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:l=>e.states.isBeforeHide=!1},{default:he(()=>{var l;return[ae("div",{ref:"wrapperRef",class:le([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:Ze(e.toggleMenu,["prevent"])},[e.$slots.prefix?($(),oe("div",{key:0,ref:"prefixRef",class:le(e.nsSelect.e("prefix"))},[Ce(e.$slots,"prefix")],2)):be("v-if",!0),ae("div",{ref:"selectionRef",class:le([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?Ce(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[($(!0),oe($e,null,Lt(e.showTagList,f=>($(),oe("div",{key:e.getValueKey(f),class:le(e.nsSelect.e("selected-item"))},[ce(n,{closable:!e.selectDisabled&&!f.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:ze(e.tagStyle),onClose:s=>e.deleteTag(s,f)},{default:he(()=>[ae("span",{class:le(e.nsSelect.e("tags-text"))},[Ce(e.$slots,"label",{label:f.currentLabel,value:f.value},()=>[We(Oe(f.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?($(),ye(r,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,teleported:e.teleported},{default:he(()=>[ae("div",{ref:"collapseItemRef",class:le(e.nsSelect.e("selected-item"))},[ce(n,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:ze(e.collapseTagStyle)},{default:he(()=>[ae("span",{class:le(e.nsSelect.e("tags-text"))}," + "+Oe(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:he(()=>[ae("div",{ref:"tagMenuRef",class:le(e.nsSelect.e("selection"))},[($(!0),oe($e,null,Lt(e.collapseTagList,f=>($(),oe("div",{key:e.getValueKey(f),class:le(e.nsSelect.e("selected-item"))},[ce(n,{class:"in-tooltip",closable:!e.selectDisabled&&!f.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:s=>e.deleteTag(s,f)},{default:he(()=>[ae("span",{class:le(e.nsSelect.e("tags-text"))},[Ce(e.$slots,"label",{label:f.currentLabel,value:f.value},()=>[We(Oe(f.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported"])):be("v-if",!0)]):be("v-if",!0),ae("div",{class:le([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[mt(ae("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":f=>e.states.inputValue=f,type:"text",name:e.name,class:le([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:ze(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((l=e.hoverOption)==null?void 0:l.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[nn(Ze(f=>e.navigateOptions("next"),["stop","prevent"]),["down"]),nn(Ze(f=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),nn(Ze(e.handleEsc,["stop","prevent"]),["esc"]),nn(Ze(e.selectOption,["stop","prevent"]),["enter"]),nn(Ze(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:Ze(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"]),[[yE,e.states.inputValue]]),e.filterable?($(),oe("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:le(e.nsSelect.e("input-calculator")),textContent:Oe(e.states.inputValue)},null,10,["textContent"])):be("v-if",!0)],2),e.shouldShowPlaceholder?($(),oe("div",{key:1,class:le([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?Ce(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[ae("span",null,Oe(e.currentPlaceholder),1)]):($(),oe("span",{key:1},Oe(e.currentPlaceholder),1))],2)):be("v-if",!0)],2),ae("div",{ref:"suffixRef",class:le(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClearBtn?($(),ye(i,{key:0,class:le([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:he(()=>[($(),ye(ut(e.iconComponent)))]),_:1},8,["class"])):be("v-if",!0),e.showClearBtn&&e.clearIcon?($(),ye(i,{key:1,class:le([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:he(()=>[($(),ye(ut(e.clearIcon)))]),_:1},8,["class","onClick"])):be("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?($(),ye(i,{key:2,class:le([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:he(()=>[($(),ye(ut(e.validateIcon)))]),_:1},8,["class"])):be("v-if",!0)],2)],10,["onClick"])]}),content:he(()=>[ce(c,{ref:"menuRef"},{default:he(()=>[e.$slots.header?($(),oe("div",{key:0,class:le(e.nsSelect.be("dropdown","header")),onClick:Ze(()=>{},["stop"])},[Ce(e.$slots,"header")],10,["onClick"])):be("v-if",!0),mt(ce(a,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:le([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:he(()=>[e.showNewOption?($(),ye(u,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):be("v-if",!0),ce(o,null,{default:he(()=>[Ce(e.$slots,"default",{},()=>[($(!0),oe($e,null,Lt(e.options,(l,f)=>{var s;return $(),oe($e,{key:f},[(s=e.getOptions(l))!=null&&s.length?($(),ye(p,{key:0,label:e.getLabel(l),disabled:e.getDisabled(l)},{default:he(()=>[($(!0),oe($e,null,Lt(e.getOptions(l),d=>($(),ye(u,$t({key:e.getValue(d)},e.getOptionProps(d)),null,16))),128))]),_:2},1032,["label","disabled"])):($(),ye(u,Vd($t({key:1},e.getOptionProps(l))),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[Ft,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?($(),oe("div",{key:1,class:le(e.nsSelect.be("dropdown","loading"))},[Ce(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?($(),oe("div",{key:2,class:le(e.nsSelect.be("dropdown","empty"))},[Ce(e.$slots,"empty",{},()=>[ae("span",null,Oe(e.emptyText),1)])],2)):be("v-if",!0),e.$slots.footer?($(),oe("div",{key:3,class:le(e.nsSelect.be("dropdown","footer")),onClick:Ze(()=>{},["stop"])},[Ce(e.$slots,"footer")],10,["onClick"])):be("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[h,e.handleClickOutside,e.popperRef]])}var y$=Le(g$,[["render",m$],["__file","select.vue"]]);const j2=dt(y$,{Option:$v,OptionGroup:zv}),V2=pr($v);pr(zv);const jv=()=>Ne(N2,{}),b$=Me({pageSize:{type:Number,required:!0},pageSizes:{type:Se(Array),default:()=>Ht([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:Wa},appendSizeTo:String}),_$=pe({name:"ElPaginationSizes"}),w$=pe({..._$,props:b$,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=Gt(),i=Ae("pagination"),u=jv(),p=ie(n.pageSize);Te(()=>n.pageSizes,(c,h)=>{if(!Wi(c,h)&&Pe(c)){const l=c.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",l)}}),Te(()=>n.pageSize,c=>{p.value=c});const o=W(()=>n.pageSizes);function a(c){var h;c!==p.value&&(p.value=c,(h=u.handleSizeChange)==null||h.call(u,Number(c)))}return(c,h)=>($(),oe("span",{class:le(w(i).e("sizes"))},[ce(w(j2),{"model-value":p.value,disabled:c.disabled,"popper-class":c.popperClass,size:c.size,teleported:c.teleported,"validate-event":!1,"append-to":c.appendSizeTo,onChange:a},{default:he(()=>[($(!0),oe($e,null,Lt(w(o),l=>($(),ye(w(V2),{key:l,value:l,label:l+w(r)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported","append-to"])],2))}});var S$=Le(w$,[["__file","sizes.vue"]]);const C$=Me({size:{type:String,values:Wa}}),x$=pe({name:"ElPaginationJumper"}),T$=pe({...x$,props:C$,setup(e){const{t}=Gt(),n=Ae("pagination"),{pageCount:r,disabled:i,currentPage:u,changeEvent:p}=jv(),o=ie(),a=W(()=>{var l;return(l=o.value)!=null?l:u==null?void 0:u.value});function c(l){o.value=l?+l:""}function h(l){l=Math.trunc(+l),p==null||p(l),o.value=void 0}return(l,f)=>($(),oe("span",{class:le(w(n).e("jump")),disabled:w(i)},[ae("span",{class:le([w(n).e("goto")])},Oe(w(t)("el.pagination.goto")),3),ce(w(qo),{size:l.size,class:le([w(n).e("editor"),w(n).is("in-pagination")]),min:1,max:w(r),disabled:w(i),"model-value":w(a),"validate-event":!1,"aria-label":w(t)("el.pagination.page"),type:"number","onUpdate:modelValue":c,onChange:h},null,8,["size","class","max","disabled","model-value","aria-label"]),ae("span",{class:le([w(n).e("classifier")])},Oe(w(t)("el.pagination.pageClassifier")),3)],10,["disabled"]))}});var E$=Le(T$,[["__file","jumper.vue"]]);const k$=Me({total:{type:Number,default:1e3}}),O$=pe({name:"ElPaginationTotal"}),P$=pe({...O$,props:k$,setup(e){const{t}=Gt(),n=Ae("pagination"),{disabled:r}=jv();return(i,u)=>($(),oe("span",{class:le(w(n).e("total")),disabled:w(r)},Oe(w(t)("el.pagination.total",{total:i.total})),11,["disabled"]))}});var A$=Le(P$,[["__file","total.vue"]]);const I$=Me({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),M$=pe({name:"ElPaginationPager"}),R$=pe({...M$,props:I$,emits:[Pt],setup(e,{emit:t}){const n=e,r=Ae("pager"),i=Ae("icon"),{t:u}=Gt(),p=ie(!1),o=ie(!1),a=ie(!1),c=ie(!1),h=ie(!1),l=ie(!1),f=W(()=>{const _=n.pagerCount,S=(_-1)/2,C=Number(n.currentPage),T=Number(n.pageCount);let E=!1,O=!1;T>_&&(C>_-S&&(E=!0),C<T-S&&(O=!0));const D=[];if(E&&!O){const j=T-(_-2);for(let k=j;k<T;k++)D.push(k)}else if(!E&&O)for(let j=2;j<_;j++)D.push(j);else if(E&&O){const j=Math.floor(_/2)-1;for(let k=C-j;k<=C+j;k++)D.push(k)}else for(let j=2;j<T;j++)D.push(j);return D}),s=W(()=>["more","btn-quickprev",i.b(),r.is("disabled",n.disabled)]),d=W(()=>["more","btn-quicknext",i.b(),r.is("disabled",n.disabled)]),g=W(()=>n.disabled?-1:0);Te(()=>[n.pageCount,n.pagerCount,n.currentPage],([_,S,C])=>{const T=(S-1)/2;let E=!1,O=!1;_>S&&(E=C>S-T,O=C<_-T),a.value&&(a.value=E),c.value&&(c.value=O),p.value=E,o.value=O},{immediate:!0});function v(_=!1){n.disabled||(_?a.value=!0:c.value=!0)}function m(_=!1){_?h.value=!0:l.value=!0}function y(_){const S=_.target;if(S.tagName.toLowerCase()==="li"&&Array.from(S.classList).includes("number")){const C=Number(S.textContent);C!==n.currentPage&&t(Pt,C)}else S.tagName.toLowerCase()==="li"&&Array.from(S.classList).includes("more")&&b(_)}function b(_){const S=_.target;if(S.tagName.toLowerCase()==="ul"||n.disabled)return;let C=Number(S.textContent);const T=n.pageCount,E=n.currentPage,O=n.pagerCount-2;S.className.includes("more")&&(S.className.includes("quickprev")?C=E-O:S.className.includes("quicknext")&&(C=E+O)),Number.isNaN(+C)||(C<1&&(C=1),C>T&&(C=T)),C!==E&&t(Pt,C)}return(_,S)=>($(),oe("ul",{class:le(w(r).b()),onClick:b,onKeyup:nn(y,["enter"])},[_.pageCount>0?($(),oe("li",{key:0,class:le([[w(r).is("active",_.currentPage===1),w(r).is("disabled",_.disabled)],"number"]),"aria-current":_.currentPage===1,"aria-label":w(u)("el.pagination.currentPage",{pager:1}),tabindex:w(g)}," 1 ",10,["aria-current","aria-label","tabindex"])):be("v-if",!0),p.value?($(),oe("li",{key:1,class:le(w(s)),tabindex:w(g),"aria-label":w(u)("el.pagination.prevPages",{pager:_.pagerCount-2}),onMouseenter:C=>v(!0),onMouseleave:C=>a.value=!1,onFocus:C=>m(!0),onBlur:C=>h.value=!1},[(a.value||h.value)&&!_.disabled?($(),ye(w(Qk),{key:0})):($(),ye(w(Em),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):be("v-if",!0),($(!0),oe($e,null,Lt(w(f),C=>($(),oe("li",{key:C,class:le([[w(r).is("active",_.currentPage===C),w(r).is("disabled",_.disabled)],"number"]),"aria-current":_.currentPage===C,"aria-label":w(u)("el.pagination.currentPage",{pager:C}),tabindex:w(g)},Oe(C),11,["aria-current","aria-label","tabindex"]))),128)),o.value?($(),oe("li",{key:2,class:le(w(d)),tabindex:w(g),"aria-label":w(u)("el.pagination.nextPages",{pager:_.pagerCount-2}),onMouseenter:C=>v(),onMouseleave:C=>c.value=!1,onFocus:C=>m(),onBlur:C=>l.value=!1},[(c.value||l.value)&&!_.disabled?($(),ye(w(tO),{key:0})):($(),ye(w(Em),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):be("v-if",!0),_.pageCount>1?($(),oe("li",{key:3,class:le([[w(r).is("active",_.currentPage===_.pageCount),w(r).is("disabled",_.disabled)],"number"]),"aria-current":_.currentPage===_.pageCount,"aria-label":w(u)("el.pagination.currentPage",{pager:_.pageCount}),tabindex:w(g)},Oe(_.pageCount),11,["aria-current","aria-label","tabindex"])):be("v-if",!0)],42,["onKeyup"]))}});var L$=Le(R$,[["__file","pager.vue"]]);const wn=e=>typeof e!="number",D$=Me({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>Ve(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:Se(Array),default:()=>Ht([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:Rt,default:()=>of},nextText:{type:String,default:""},nextIcon:{type:Rt,default:()=>Wo},teleported:{type:Boolean,default:!0},small:Boolean,size:Tr,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),F$={"update:current-page":e=>Ve(e),"update:page-size":e=>Ve(e),"size-change":e=>Ve(e),change:(e,t)=>Ve(e)&&Ve(t),"current-change":e=>Ve(e),"prev-click":e=>Ve(e),"next-click":e=>Ve(e)},hy="ElPagination";var B$=pe({name:hy,props:D$,emits:F$,setup(e,{emit:t,slots:n}){const{t:r}=Gt(),i=Ae("pagination"),u=it().vnode.props||{},p=Cw(),o=W(()=>{var S;return e.small?"small":(S=e.size)!=null?S:p.value});wf({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},W(()=>!!e.small));const a="onUpdate:currentPage"in u||"onUpdate:current-page"in u||"onCurrentChange"in u,c="onUpdate:pageSize"in u||"onUpdate:page-size"in u||"onSizeChange"in u,h=W(()=>{if(wn(e.total)&&wn(e.pageCount)||!wn(e.currentPage)&&!a)return!1;if(e.layout.includes("sizes")){if(wn(e.pageCount)){if(!wn(e.total)&&!wn(e.pageSize)&&!c)return!1}else if(!c)return!1}return!0}),l=ie(wn(e.defaultPageSize)?10:e.defaultPageSize),f=ie(wn(e.defaultCurrentPage)?1:e.defaultCurrentPage),s=W({get(){return wn(e.pageSize)?l.value:e.pageSize},set(S){wn(e.pageSize)&&(l.value=S),c&&(t("update:page-size",S),t("size-change",S))}}),d=W(()=>{let S=0;return wn(e.pageCount)?wn(e.total)||(S=Math.max(1,Math.ceil(e.total/s.value))):S=e.pageCount,S}),g=W({get(){return wn(e.currentPage)?f.value:e.currentPage},set(S){let C=S;S<1?C=1:S>d.value&&(C=d.value),wn(e.currentPage)&&(f.value=C),a&&(t("update:current-page",C),t("current-change",C))}});Te(d,S=>{g.value>S&&(g.value=S)}),Te([g,s],S=>{t(Pt,...S)},{flush:"post"});function v(S){g.value=S}function m(S){s.value=S;const C=d.value;g.value>C&&(g.value=C)}function y(){e.disabled||(g.value-=1,t("prev-click",g.value))}function b(){e.disabled||(g.value+=1,t("next-click",g.value))}function _(S,C){S&&(S.props||(S.props={}),S.props.class=[S.props.class,C].join(" "))}return pt(N2,{pageCount:d,disabled:W(()=>e.disabled),currentPage:g,changeEvent:v,handleSizeChange:m}),()=>{var S,C;if(!h.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&d.value<=1)return null;const T=[],E=[],O=gt("div",{class:i.e("rightwrapper")},E),D={prev:gt(ZN,{disabled:e.disabled,currentPage:g.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:y}),jumper:gt(E$,{size:o.value}),pager:gt(L$,{currentPage:g.value,pageCount:d.value,pagerCount:e.pagerCount,onChange:v,disabled:e.disabled}),next:gt(t$,{disabled:e.disabled,currentPage:g.value,pageCount:d.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:b}),sizes:gt(S$,{pageSize:s.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:o.value,appendSizeTo:e.appendSizeTo}),slot:(C=(S=n==null?void 0:n.default)==null?void 0:S.call(n))!=null?C:null,total:gt(A$,{total:wn(e.total)?0:e.total})},j=e.layout.split(",").map(U=>U.trim());let k=!1;return j.forEach(U=>{if(U==="->"){k=!0;return}k?E.push(D[U]):T.push(D[U])}),_(T[0],i.is("first")),_(T[T.length-1],i.is("last")),k&&E.length>0&&(_(E[0],i.is("first")),_(E[E.length-1],i.is("last")),T.push(O)),gt("div",{class:[i.b(),i.is("background",e.background),i.m(o.value)]},T)}}});const N$=dt(B$),$$=Me({trigger:wo.trigger,triggerKeys:wo.triggerKeys,placement:sd.placement,disabled:wo.disabled,visible:Qt.visible,transition:Qt.transition,popperOptions:sd.popperOptions,tabindex:sd.tabindex,content:Qt.content,popperStyle:Qt.popperStyle,popperClass:Qt.popperClass,enterable:{...Qt.enterable,default:!0},effect:{...Qt.effect,default:"light"},teleported:Qt.teleported,appendTo:Qt.appendTo,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}}),z$={"update:visible":e=>yn(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},j$="onUpdate:visible",V$=pe({name:"ElPopover"}),U$=pe({...V$,props:$$,emits:z$,setup(e,{expose:t,emit:n}){const r=e,i=W(()=>r[j$]),u=Ae("popover"),p=ie(),o=W(()=>{var v;return(v=w(p))==null?void 0:v.popperRef}),a=W(()=>[{width:An(r.width)},r.popperStyle]),c=W(()=>[u.b(),r.popperClass,{[u.m("plain")]:!!r.content}]),h=W(()=>r.transition===`${u.namespace.value}-fade-in-linear`),l=()=>{var v;(v=p.value)==null||v.hide()},f=()=>{n("before-enter")},s=()=>{n("before-leave")},d=()=>{n("after-enter")},g=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:o,hide:l}),(v,m)=>($(),ye(w(Wr),$t({ref_key:"tooltipRef",ref:p},v.$attrs,{trigger:v.trigger,"trigger-keys":v.triggerKeys,placement:v.placement,disabled:v.disabled,visible:v.visible,transition:v.transition,"popper-options":v.popperOptions,tabindex:v.tabindex,content:v.content,offset:v.offset,"show-after":v.showAfter,"hide-after":v.hideAfter,"auto-close":v.autoClose,"show-arrow":v.showArrow,"aria-label":v.title,effect:v.effect,enterable:v.enterable,"popper-class":w(c),"popper-style":w(a),teleported:v.teleported,"append-to":v.appendTo,persistent:v.persistent,"gpu-acceleration":w(h),"onUpdate:visible":w(i),onBeforeShow:f,onBeforeHide:s,onShow:d,onHide:g}),{content:he(()=>[v.title?($(),oe("div",{key:0,class:le(w(u).e("title")),role:"title"},Oe(v.title),3)):be("v-if",!0),Ce(v.$slots,"default",{},()=>[We(Oe(v.content),1)])]),default:he(()=>[v.$slots.reference?Ce(v.$slots,"reference",{key:0}):be("v-if",!0)]),_:3},16,["trigger","trigger-keys","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","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}});var H$=Le(U$,[["__file","popover.vue"]]);const py=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var W$={mounted(e,t){py(e,t)},updated(e,t){py(e,t)}};const K$="popover",G$=I6(W$,K$),Su=dt(H$,{directive:G$}),Y$=Me({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:Se(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:Se([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:Se(Function),default:e=>`${e}%`}}),X$=pe({name:"ElProgress"}),q$=pe({...X$,props:Y$,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=Ae("progress"),i=W(()=>{const b={width:`${t.percentage}%`,animationDuration:`${t.duration}s`},_=y(t.percentage);return _.includes("gradient")?b.background=_:b.backgroundColor=_,b}),u=W(()=>(t.strokeWidth/t.width*100).toFixed(1)),p=W(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(u.value)/2}`,10):0),o=W(()=>{const b=p.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}
`}),a=W(()=>2*Math.PI*p.value),c=W(()=>t.type==="dashboard"?.75:1),h=W(()=>`${-1*a.value*(1-c.value)/2}px`),l=W(()=>({strokeDasharray:`${a.value*c.value}px, ${a.value}px`,strokeDashoffset:h.value})),f=W(()=>({strokeDasharray:`${a.value*c.value*(t.percentage/100)}px, ${a.value}px`,strokeDashoffset:h.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),s=W(()=>{let b;return t.color?b=y(t.percentage):b=n[t.status]||n.default,b}),d=W(()=>t.status==="warning"?Gp:t.type==="line"?t.status==="success"?$l:sf:t.status==="success"?C1:Vr),g=W(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),v=W(()=>t.format(t.percentage));function m(b){const _=100/b.length;return b.map((C,T)=>Be(C)?{color:C,percentage:(T+1)*_}:C).sort((C,T)=>C.percentage-T.percentage)}const y=b=>{var _;const{color:S}=t;if(Re(S))return S(b);if(Be(S))return S;{const C=m(S);for(const T of C)if(T.percentage>b)return T.color;return(_=C[C.length-1])==null?void 0:_.color}};return(b,_)=>($(),oe("div",{class:le([w(r).b(),w(r).m(b.type),w(r).is(b.status),{[w(r).m("without-text")]:!b.showText,[w(r).m("text-inside")]:b.textInside}]),role:"progressbar","aria-valuenow":b.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[b.type==="line"?($(),oe("div",{key:0,class:le(w(r).b("bar"))},[ae("div",{class:le(w(r).be("bar","outer")),style:ze({height:`${b.strokeWidth}px`})},[ae("div",{class:le([w(r).be("bar","inner"),{[w(r).bem("bar","inner","indeterminate")]:b.indeterminate},{[w(r).bem("bar","inner","striped")]:b.striped},{[w(r).bem("bar","inner","striped-flow")]:b.stripedFlow}]),style:ze(w(i))},[(b.showText||b.$slots.default)&&b.textInside?($(),oe("div",{key:0,class:le(w(r).be("bar","innerText"))},[Ce(b.$slots,"default",{percentage:b.percentage},()=>[ae("span",null,Oe(w(v)),1)])],2)):be("v-if",!0)],6)],6)],2)):($(),oe("div",{key:1,class:le(w(r).b("circle")),style:ze({height:`${b.width}px`,width:`${b.width}px`})},[($(),oe("svg",{viewBox:"0 0 100 100"},[ae("path",{class:le(w(r).be("circle","track")),d:w(o),stroke:`var(${w(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":b.strokeLinecap,"stroke-width":w(u),fill:"none",style:ze(w(l))},null,14,["d","stroke","stroke-linecap","stroke-width"]),ae("path",{class:le(w(r).be("circle","path")),d:w(o),stroke:w(s),fill:"none",opacity:b.percentage?1:0,"stroke-linecap":b.strokeLinecap,"stroke-width":w(u),style:ze(w(f))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(b.showText||b.$slots.default)&&!b.textInside?($(),oe("div",{key:2,class:le(w(r).e("text")),style:ze({fontSize:`${w(g)}px`})},[Ce(b.$slots,"default",{percentage:b.percentage},()=>[b.status?($(),ye(w(De),{key:1},{default:he(()=>[($(),ye(ut(w(d))))]),_:1})):($(),oe("span",{key:0},Oe(w(v)),1))])],6)):be("v-if",!0)],10,["aria-valuenow"]))}});var Z$=Le(q$,[["__file","progress.vue"]]);const U2=dt(Z$),J$=["start","center","end","space-around","space-between","space-evenly"],Q$=["top","middle","bottom"],ez=Me({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:J$,default:"start"},align:{type:String,values:Q$}}),tz=pe({name:"ElRow"}),nz=pe({...tz,props:ez,setup(e){const t=e,n=Ae("row"),r=W(()=>t.gutter);pt(m2,{gutter:r});const i=W(()=>{const p={};return t.gutter&&(p.marginRight=p.marginLeft=`-${t.gutter/2}px`),p}),u=W(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(p,o)=>($(),ye(ut(p.tag),{class:le(w(u)),style:ze(w(i))},{default:he(()=>[Ce(p.$slots,"default")]),_:3},8,["class","style"]))}});var rz=Le(nz,[["__file","row.vue"]]);const iz=dt(rz),H2=Symbol("sliderContextKey"),az=Me({modelValue:{type:Se([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:Tr,inputSize:Tr,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:Se(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:Se(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Zo,default:"top"},marks:{type:Se(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...Hr(["ariaLabel"])}),fd=e=>Ve(e)||Pe(e)&&e.every(Ve),oz={[et]:fd,[ar]:fd,[Pt]:fd},sz=Me({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Zo,default:"top"}}),lz={[et]:e=>Ve(e)},uz=(e,t,n)=>{const r=ie(),i=ie(!1),u=W(()=>t.value instanceof Function),p=W(()=>u.value&&t.value(e.modelValue)||e.modelValue),o=ul(()=>{n.value&&(i.value=!0)},50),a=ul(()=>{n.value&&(i.value=!1)},50);return{tooltip:r,tooltipVisible:i,formatValue:p,displayTooltip:o,hideTooltip:a}},cz=(e,t,n)=>{const{disabled:r,min:i,max:u,step:p,showTooltip:o,persistent:a,precision:c,sliderSize:h,formatTooltip:l,emitChange:f,resetSize:s,updateDragging:d}=Ne(H2),{tooltip:g,tooltipVisible:v,formatValue:m,displayTooltip:y,hideTooltip:b}=uz(e,l,o),_=ie(),S=W(()=>`${(e.modelValue-i.value)/(u.value-i.value)*100}%`),C=W(()=>e.vertical?{bottom:S.value}:{left:S.value}),T=()=>{t.hovering=!0,y()},E=()=>{t.hovering=!1,t.dragging||b()},O=J=>{r.value||(J.preventDefault(),A(J),window.addEventListener("mousemove",B),window.addEventListener("touchmove",B),window.addEventListener("mouseup",I),window.addEventListener("touchend",I),window.addEventListener("contextmenu",I),_.value.focus())},D=J=>{r.value||(t.newPosition=Number.parseFloat(S.value)+J/(u.value-i.value)*100,M(t.newPosition),f())},j=()=>{D(-p.value)},k=()=>{D(p.value)},U=()=>{D(-p.value*4)},P=()=>{D(p.value*4)},re=()=>{r.value||(M(0),f())},q=()=>{r.value||(M(100),f())},V=J=>{let z=!0;switch(J.code){case je.left:case je.down:j();break;case je.right:case je.up:k();break;case je.home:re();break;case je.end:q();break;case je.pageDown:U();break;case je.pageUp:P();break;default:z=!1;break}z&&J.preventDefault()},te=J=>{let z,L;return J.type.startsWith("touch")?(L=J.touches[0].clientY,z=J.touches[0].clientX):(L=J.clientY,z=J.clientX),{clientX:z,clientY:L}},A=J=>{t.dragging=!0,t.isClick=!0;const{clientX:z,clientY:L}=te(J);e.vertical?t.startY=L:t.startX=z,t.startPosition=Number.parseFloat(S.value),t.newPosition=t.startPosition},B=J=>{if(t.dragging){t.isClick=!1,y(),s();let z;const{clientX:L,clientY:Q}=te(J);e.vertical?(t.currentY=Q,z=(t.startY-t.currentY)/h.value*100):(t.currentX=L,z=(t.currentX-t.startX)/h.value*100),t.newPosition=t.startPosition+z,M(t.newPosition)}},I=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||b(),t.isClick||M(t.newPosition),f()},0),window.removeEventListener("mousemove",B),window.removeEventListener("touchmove",B),window.removeEventListener("mouseup",I),window.removeEventListener("touchend",I),window.removeEventListener("contextmenu",I))},M=async J=>{if(J===null||Number.isNaN(+J))return;J<0?J=0:J>100&&(J=100);const z=100/((u.value-i.value)/p.value);let Q=Math.round(J/z)*z*(u.value-i.value)*.01+i.value;Q=Number.parseFloat(Q.toFixed(c.value)),Q!==e.modelValue&&n(et,Q),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await Ke(),t.dragging&&y(),g.value.updatePopper()};return Te(()=>t.dragging,J=>{d(J)}),ft(_,"touchstart",O,{passive:!1}),{disabled:r,button:_,tooltip:g,tooltipVisible:v,showTooltip:o,persistent:a,wrapperStyle:C,formatValue:m,handleMouseEnter:T,handleMouseLeave:E,onButtonDown:O,onKeyDown:V,setPosition:M}},fz=pe({name:"ElSliderButton"}),dz=pe({...fz,props:sz,emits:lz,setup(e,{expose:t,emit:n}){const r=e,i=Ae("slider"),u=yt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),p=W(()=>h.value?l.value:!1),{disabled:o,button:a,tooltip:c,showTooltip:h,persistent:l,tooltipVisible:f,wrapperStyle:s,formatValue:d,handleMouseEnter:g,handleMouseLeave:v,onButtonDown:m,onKeyDown:y,setPosition:b}=cz(r,u,n),{hovering:_,dragging:S}=Sr(u);return t({onButtonDown:m,onKeyDown:y,setPosition:b,hovering:_,dragging:S}),(C,T)=>($(),oe("div",{ref_key:"button",ref:a,class:le([w(i).e("button-wrapper"),{hover:w(_),dragging:w(S)}]),style:ze(w(s)),tabindex:w(o)?-1:0,onMouseenter:w(g),onMouseleave:w(v),onMousedown:w(m),onFocus:w(g),onBlur:w(v),onKeydown:w(y)},[ce(w(Wr),{ref_key:"tooltip",ref:c,visible:w(f),placement:C.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":C.tooltipClass,disabled:!w(h),persistent:w(p)},{content:he(()=>[ae("span",null,Oe(w(d)),1)]),default:he(()=>[ae("div",{class:le([w(i).e("button"),{hover:w(_),dragging:w(S)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,["tabindex","onMouseenter","onMouseleave","onMousedown","onFocus","onBlur","onKeydown"]))}});var vy=Le(dz,[["__file","button.vue"]]);const hz=Me({mark:{type:Se([String,Object]),default:void 0}});var pz=pe({name:"ElSliderMarker",props:hz,setup(e){const t=Ae("slider"),n=W(()=>Be(e.mark)?e.mark:e.mark.label),r=W(()=>Be(e.mark)?void 0:e.mark.style);return()=>gt("div",{class:t.e("marks-text"),style:r.value},n.value)}});const vz=(e,t,n)=>{const{form:r,formItem:i}=ia(),u=Bt(),p=ie(),o=ie(),a={firstButton:p,secondButton:o},c=W(()=>e.disabled||(r==null?void 0:r.disabled)||!1),h=W(()=>Math.min(t.firstValue,t.secondValue)),l=W(()=>Math.max(t.firstValue,t.secondValue)),f=W(()=>e.range?`${100*(l.value-h.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),s=W(()=>e.range?`${100*(h.value-e.min)/(e.max-e.min)}%`:"0%"),d=W(()=>e.vertical?{height:e.height}:{}),g=W(()=>e.vertical?{height:f.value,bottom:s.value}:{width:f.value,left:s.value}),v=()=>{if(u.value){const k=u.value.getBoundingClientRect();t.sliderSize=k[e.vertical?"height":"width"]}},m=k=>{const U=e.min+k*(e.max-e.min)/100;if(!e.range)return p;let P;return Math.abs(h.value-U)<Math.abs(l.value-U)?P=t.firstValue<t.secondValue?"firstButton":"secondButton":P=t.firstValue>t.secondValue?"firstButton":"secondButton",a[P]},y=k=>{const U=m(k);return U.value.setPosition(k),U},b=k=>{t.firstValue=k!=null?k:e.min,S(e.range?[h.value,l.value]:k!=null?k:e.min)},_=k=>{t.secondValue=k,e.range&&S([h.value,l.value])},S=k=>{n(et,k),n(ar,k)},C=async()=>{await Ke(),n(Pt,e.range?[h.value,l.value]:e.modelValue)},T=k=>{var U,P,re,q,V,te;if(c.value||t.dragging)return;v();let A=0;if(e.vertical){const B=(re=(P=(U=k.touches)==null?void 0:U.item(0))==null?void 0:P.clientY)!=null?re:k.clientY;A=(u.value.getBoundingClientRect().bottom-B)/t.sliderSize*100}else{const B=(te=(V=(q=k.touches)==null?void 0:q.item(0))==null?void 0:V.clientX)!=null?te:k.clientX,I=u.value.getBoundingClientRect().left;A=(B-I)/t.sliderSize*100}if(!(A<0||A>100))return y(A)};return{elFormItem:i,slider:u,firstButton:p,secondButton:o,sliderDisabled:c,minValue:h,maxValue:l,runwayStyle:d,barStyle:g,resetSize:v,setPosition:y,emitChange:C,onSliderWrapperPrevent:k=>{var U,P;(((U=a.firstButton.value)==null?void 0:U.dragging)||((P=a.secondButton.value)==null?void 0:P.dragging))&&k.preventDefault()},onSliderClick:k=>{T(k)&&C()},onSliderDown:async k=>{const U=T(k);U&&(await Ke(),U.value.onButtonDown(k))},onSliderMarkerDown:k=>{if(c.value||t.dragging)return;y(k)&&C()},setFirstValue:b,setSecondValue:_}},gz=(e,t,n,r)=>({stops:W(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const p=(e.max-e.min)/e.step,o=100*e.step/(e.max-e.min),a=Array.from({length:p-1}).map((c,h)=>(h+1)*o);return e.range?a.filter(c=>c<100*(n.value-e.min)/(e.max-e.min)||c>100*(r.value-e.min)/(e.max-e.min)):a.filter(c=>c>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:p=>e.vertical?{bottom:`${p}%`}:{left:`${p}%`}}),mz=e=>W(()=>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]})):[]),yz=(e,t,n,r,i,u)=>{const p=c=>{i(et,c),i(ar,c)},o=()=>e.range?![n.value,r.value].every((c,h)=>c===t.oldValue[h]):e.modelValue!==t.oldValue,a=()=>{var c,h;e.min>e.max&&Zt("Slider","min should not be greater than max.");const l=e.modelValue;e.range&&Pe(l)?l[1]<e.min?p([e.min,e.min]):l[0]>e.max?p([e.max,e.max]):l[0]<e.min?p([e.min,l[1]]):l[1]>e.max?p([l[0],e.max]):(t.firstValue=l[0],t.secondValue=l[1],o()&&(e.validateEvent&&((c=u==null?void 0:u.validate)==null||c.call(u,"change").catch(f=>void 0)),t.oldValue=l.slice())):!e.range&&Ve(l)&&!Number.isNaN(l)&&(l<e.min?p(e.min):l>e.max?p(e.max):(t.firstValue=l,o()&&(e.validateEvent&&((h=u==null?void 0:u.validate)==null||h.call(u,"change").catch(f=>void 0)),t.oldValue=l)))};a(),Te(()=>t.dragging,c=>{c||a()}),Te(()=>e.modelValue,(c,h)=>{t.dragging||Pe(c)&&Pe(h)&&c.every((l,f)=>l===h[f])&&t.firstValue===c[0]&&t.secondValue===c[1]||a()},{deep:!0}),Te(()=>[e.min,e.max],()=>{a()})},bz=(e,t,n)=>{const r=ie();return Je(async()=>{e.range?(Pe(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]):(!Ve(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),ft(window,"resize",n),await Ke(),n()}),{sliderWrapper:r}},_z=pe({name:"ElSlider"}),wz=pe({..._z,props:az,emits:oz,setup(e,{expose:t,emit:n}){const r=e,i=Ae("slider"),{t:u}=Gt(),p=yt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:o,slider:a,firstButton:c,secondButton:h,sliderDisabled:l,minValue:f,maxValue:s,runwayStyle:d,barStyle:g,resetSize:v,emitChange:m,onSliderWrapperPrevent:y,onSliderClick:b,onSliderDown:_,onSliderMarkerDown:S,setFirstValue:C,setSecondValue:T}=vz(r,p,n),{stops:E,getStopStyle:O}=gz(r,p,f,s),{inputId:D,isLabeledByFormItem:j}=Xo(r,{formItemContext:o}),k=Or(),U=W(()=>r.inputSize||k.value),P=W(()=>r.ariaLabel||u("el.slider.defaultLabel",{min:r.min,max:r.max})),re=W(()=>r.range?r.rangeStartLabel||u("el.slider.defaultRangeStartLabel"):P.value),q=W(()=>r.formatValueText?r.formatValueText(J.value):`${J.value}`),V=W(()=>r.rangeEndLabel||u("el.slider.defaultRangeEndLabel")),te=W(()=>r.formatValueText?r.formatValueText(z.value):`${z.value}`),A=W(()=>[i.b(),i.m(k.value),i.is("vertical",r.vertical),{[i.m("with-input")]:r.showInput}]),B=mz(r);yz(r,p,f,s,n,o);const I=W(()=>{const H=[r.min,r.max,r.step].map(G=>{const ne=`${G}`.split(".")[1];return ne?ne.length:0});return Math.max.apply(null,H)}),{sliderWrapper:M}=bz(r,p,v),{firstValue:J,secondValue:z,sliderSize:L}=Sr(p),Q=H=>{p.dragging=H};return ft(M,"touchstart",y,{passive:!1}),ft(M,"touchmove",y,{passive:!1}),pt(H2,{...Sr(r),sliderSize:L,disabled:l,precision:I,emitChange:m,resetSize:v,updateDragging:Q}),t({onSliderClick:b}),(H,G)=>{var ne,de;return $(),oe("div",{id:H.range?w(D):void 0,ref_key:"sliderWrapper",ref:M,class:le(w(A)),role:H.range?"group":void 0,"aria-label":H.range&&!w(j)?w(P):void 0,"aria-labelledby":H.range&&w(j)?(ne=w(o))==null?void 0:ne.labelId:void 0},[ae("div",{ref_key:"slider",ref:a,class:le([w(i).e("runway"),{"show-input":H.showInput&&!H.range},w(i).is("disabled",w(l))]),style:ze(w(d)),onMousedown:w(_),onTouchstartPassive:w(_)},[ae("div",{class:le(w(i).e("bar")),style:ze(w(g))},null,6),ce(vy,{id:H.range?void 0:w(D),ref_key:"firstButton",ref:c,"model-value":w(J),vertical:H.vertical,"tooltip-class":H.tooltipClass,placement:H.placement,role:"slider","aria-label":H.range||!w(j)?w(re):void 0,"aria-labelledby":!H.range&&w(j)?(de=w(o))==null?void 0:de.labelId:void 0,"aria-valuemin":H.min,"aria-valuemax":H.range?w(z):H.max,"aria-valuenow":w(J),"aria-valuetext":w(q),"aria-orientation":H.vertical?"vertical":"horizontal","aria-disabled":w(l),"onUpdate:modelValue":w(C)},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"]),H.range?($(),ye(vy,{key:0,ref_key:"secondButton",ref:h,"model-value":w(z),vertical:H.vertical,"tooltip-class":H.tooltipClass,placement:H.placement,role:"slider","aria-label":w(V),"aria-valuemin":w(J),"aria-valuemax":H.max,"aria-valuenow":w(z),"aria-valuetext":w(te),"aria-orientation":H.vertical?"vertical":"horizontal","aria-disabled":w(l),"onUpdate:modelValue":w(T)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):be("v-if",!0),H.showStops?($(),oe("div",{key:1},[($(!0),oe($e,null,Lt(w(E),(ve,_e)=>($(),oe("div",{key:_e,class:le(w(i).e("stop")),style:ze(w(O)(ve))},null,6))),128))])):be("v-if",!0),w(B).length>0?($(),oe($e,{key:2},[ae("div",null,[($(!0),oe($e,null,Lt(w(B),(ve,_e)=>($(),oe("div",{key:_e,style:ze(w(O)(ve.position)),class:le([w(i).e("stop"),w(i).e("marks-stop")])},null,6))),128))]),ae("div",{class:le(w(i).e("marks"))},[($(!0),oe($e,null,Lt(w(B),(ve,_e)=>($(),ye(w(pz),{key:_e,mark:ve.mark,style:ze(w(O)(ve.position)),onMousedown:Ze(N=>w(S)(ve.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):be("v-if",!0)],46,["onMousedown","onTouchstartPassive"]),H.showInput&&!H.range?($(),ye(w(Ph),{key:0,ref:"input","model-value":w(J),class:le(w(i).e("input")),step:H.step,disabled:w(l),controls:H.showInputControls,min:H.min,max:H.max,precision:w(I),debounce:H.debounce,size:w(U),"onUpdate:modelValue":w(C),onChange:w(m)},null,8,["model-value","class","step","disabled","controls","min","max","precision","debounce","size","onUpdate:modelValue","onChange"])):be("v-if",!0)],10,["id","role","aria-label","aria-labelledby"])}}});var Sz=Le(wz,[["__file","slider.vue"]]);const gy=dt(Sz),W2=e=>["",...Wa].includes(e),Cz=Me({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:W2},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:Rt},activeActionIcon:{type:Rt},activeIcon:{type:Rt},inactiveIcon:{type:Rt},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:Se(Function)},id:String,tabindex:{type:[String,Number]},...Hr(["ariaLabel"])}),xz={[et]:e=>yn(e)||Be(e)||Ve(e),[Pt]:e=>yn(e)||Be(e)||Ve(e),[ar]:e=>yn(e)||Be(e)||Ve(e)},K2="ElSwitch",Tz=pe({name:K2}),Ez=pe({...Tz,props:Cz,emits:xz,setup(e,{expose:t,emit:n}){const r=e,{formItem:i}=ia(),u=Or(),p=Ae("switch"),{inputId:o}=Xo(r,{formItemContext:i}),a=vr(W(()=>r.loading)),c=ie(r.modelValue!==!1),h=ie(),l=ie(),f=W(()=>[p.b(),p.m(u.value),p.is("disabled",a.value),p.is("checked",m.value)]),s=W(()=>[p.e("label"),p.em("label","left"),p.is("active",!m.value)]),d=W(()=>[p.e("label"),p.em("label","right"),p.is("active",m.value)]),g=W(()=>({width:An(r.width)}));Te(()=>r.modelValue,()=>{c.value=!0});const v=W(()=>c.value?r.modelValue:!1),m=W(()=>v.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(v.value)||(n(et,r.inactiveValue),n(Pt,r.inactiveValue),n(ar,r.inactiveValue)),Te(m,S=>{var C;h.value.checked=S,r.validateEvent&&((C=i==null?void 0:i.validate)==null||C.call(i,"change").catch(T=>void 0))});const y=()=>{const S=m.value?r.inactiveValue:r.activeValue;n(et,S),n(Pt,S),n(ar,S),Ke(()=>{h.value.checked=m.value})},b=()=>{if(a.value)return;const{beforeChange:S}=r;if(!S){y();return}const C=S();[Eo(C),yn(C)].includes(!0)||Zt(K2,"beforeChange must return type `Promise<boolean>` or `boolean`"),Eo(C)?C.then(E=>{E&&y()}).catch(E=>{}):C&&y()},_=()=>{var S,C;(C=(S=h.value)==null?void 0:S.focus)==null||C.call(S)};return Je(()=>{h.value.checked=m.value}),t({focus:_,checked:m}),(S,C)=>($(),oe("div",{class:le(w(f)),onClick:Ze(b,["prevent"])},[ae("input",{id:w(o),ref_key:"input",ref:h,class:le(w(p).e("input")),type:"checkbox",role:"switch","aria-checked":w(m),"aria-disabled":w(a),"aria-label":S.ariaLabel,name:S.name,"true-value":S.activeValue,"false-value":S.inactiveValue,disabled:w(a),tabindex:S.tabindex,onChange:y,onKeydown:nn(b,["enter"])},null,42,["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"]),!S.inlinePrompt&&(S.inactiveIcon||S.inactiveText)?($(),oe("span",{key:0,class:le(w(s))},[S.inactiveIcon?($(),ye(w(De),{key:0},{default:he(()=>[($(),ye(ut(S.inactiveIcon)))]),_:1})):be("v-if",!0),!S.inactiveIcon&&S.inactiveText?($(),oe("span",{key:1,"aria-hidden":w(m)},Oe(S.inactiveText),9,["aria-hidden"])):be("v-if",!0)],2)):be("v-if",!0),ae("span",{ref_key:"core",ref:l,class:le(w(p).e("core")),style:ze(w(g))},[S.inlinePrompt?($(),oe("div",{key:0,class:le(w(p).e("inner"))},[S.activeIcon||S.inactiveIcon?($(),ye(w(De),{key:0,class:le(w(p).is("icon"))},{default:he(()=>[($(),ye(ut(w(m)?S.activeIcon:S.inactiveIcon)))]),_:1},8,["class"])):S.activeText||S.inactiveText?($(),oe("span",{key:1,class:le(w(p).is("text")),"aria-hidden":!w(m)},Oe(w(m)?S.activeText:S.inactiveText),11,["aria-hidden"])):be("v-if",!0)],2)):be("v-if",!0),ae("div",{class:le(w(p).e("action"))},[S.loading?($(),ye(w(De),{key:0,class:le(w(p).is("loading"))},{default:he(()=>[ce(w(al))]),_:1},8,["class"])):w(m)?Ce(S.$slots,"active-action",{key:1},()=>[S.activeActionIcon?($(),ye(w(De),{key:0},{default:he(()=>[($(),ye(ut(S.activeActionIcon)))]),_:1})):be("v-if",!0)]):w(m)?be("v-if",!0):Ce(S.$slots,"inactive-action",{key:2},()=>[S.inactiveActionIcon?($(),ye(w(De),{key:0},{default:he(()=>[($(),ye(ut(S.inactiveActionIcon)))]),_:1})):be("v-if",!0)])],2)],6),!S.inlinePrompt&&(S.activeIcon||S.activeText)?($(),oe("span",{key:1,class:le(w(d))},[S.activeIcon?($(),ye(w(De),{key:0},{default:he(()=>[($(),ye(ut(S.activeIcon)))]),_:1})):be("v-if",!0),!S.activeIcon&&S.activeText?($(),oe("span",{key:1,"aria-hidden":!w(m)},Oe(S.activeText),9,["aria-hidden"])):be("v-if",!0)],2)):be("v-if",!0)],10,["onClick"]))}});var kz=Le(Ez,[["__file","switch.vue"]]);const my=dt(kz),Cf=Symbol("tabsRootContextKey"),Oz=Me({tabs:{type:Se(Array),default:()=>Ht([])},tabRefs:{type:Se(Object),default:()=>Ht({})}}),G2="ElTabBar",Pz=pe({name:G2}),Az=pe({...Pz,props:Oz,setup(e,{expose:t}){const n=e,r=Ne(Cf);r||Zt(G2,"<el-tabs><el-tab-bar /></el-tabs>");const i=Ae("tabs"),u=ie(),p=ie(),o=()=>{let f=0,s=0;const d=["top","bottom"].includes(r.props.tabPosition)?"width":"height",g=d==="width"?"x":"y",v=g==="x"?"left":"top";return n.tabs.every(m=>{if(vn(m.paneName))return!1;const y=n.tabRefs[m.paneName];if(!y)return!1;if(!m.active)return!0;f=y[`offset${Bi(v)}`],s=y[`client${Bi(d)}`];const b=window.getComputedStyle(y);return d==="width"&&(s-=Number.parseFloat(b.paddingLeft)+Number.parseFloat(b.paddingRight),f+=Number.parseFloat(b.paddingLeft)),!1}),{[d]:`${s}px`,transform:`translate${Bi(g)}(${f}px)`}},a=()=>p.value=o(),c=[],h=()=>{c.forEach(f=>f.stop()),c.length=0,Object.values(n.tabRefs).forEach(f=>{c.push(rn(f,a))})};Te(()=>n.tabs,async()=>{await Ke(),a(),h()},{immediate:!0});const l=rn(u,()=>a());return At(()=>{c.forEach(f=>f.stop()),c.length=0,l.stop()}),t({ref:u,update:a}),(f,s)=>($(),oe("div",{ref_key:"barRef",ref:u,class:le([w(i).e("active-bar"),w(i).is(w(r).props.tabPosition)]),style:ze(p.value)},null,6))}});var Iz=Le(Az,[["__file","tab-bar.vue"]]);const Mz=Me({panes:{type:Se(Array),default:()=>Ht([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),Rz={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},yy="ElTabNav",Lz=pe({name:yy,props:Mz,emits:Rz,setup(e,{expose:t,emit:n}){const r=Ne(Cf);r||Zt(yy,"<el-tabs><tab-nav /></el-tabs>");const i=Ae("tabs"),u=J8(),p=p6(),o=ie(),a=ie(),c=ie(),h=ie({}),l=ie(),f=ie(!1),s=ie(0),d=ie(!1),g=ie(!0),v=Bt(),m=W(()=>["top","bottom"].includes(r.props.tabPosition)?"width":"height"),y=W(()=>({transform:`translate${m.value==="width"?"X":"Y"}(-${s.value}px)`})),b=()=>{if(!o.value)return;const k=o.value[`offset${Bi(m.value)}`],U=s.value;if(!U)return;const P=U>k?U-k:0;s.value=P},_=()=>{if(!o.value||!a.value)return;const k=a.value[`offset${Bi(m.value)}`],U=o.value[`offset${Bi(m.value)}`],P=s.value;if(k-P<=U)return;const re=k-P>U*2?P+U:k-U;s.value=re},S=async()=>{const k=a.value;if(!f.value||!c.value||!o.value||!k)return;await Ke();const U=h.value[e.currentName];if(!U)return;const P=o.value,re=["top","bottom"].includes(r.props.tabPosition),q=U.getBoundingClientRect(),V=P.getBoundingClientRect(),te=re?k.offsetWidth-V.width:k.offsetHeight-V.height,A=s.value;let B=A;re?(q.left<V.left&&(B=A-(V.left-q.left)),q.right>V.right&&(B=A+q.right-V.right)):(q.top<V.top&&(B=A-(V.top-q.top)),q.bottom>V.bottom&&(B=A+(q.bottom-V.bottom))),B=Math.max(B,0),s.value=Math.min(B,te)},C=()=>{var k;if(!a.value||!o.value)return;e.stretch&&((k=l.value)==null||k.update());const U=a.value[`offset${Bi(m.value)}`],P=o.value[`offset${Bi(m.value)}`],re=s.value;P<U?(f.value=f.value||{},f.value.prev=re,f.value.next=re+P<U,U-re<P&&(s.value=U-P)):(f.value=!1,re>0&&(s.value=0))},T=k=>{let U=0;switch(k.code){case je.left:case je.up:U=-1;break;case je.right:case je.down:U=1;break;default:return}const P=Array.from(k.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let q=P.indexOf(k.target)+U;q<0?q=P.length-1:q>=P.length&&(q=0),P[q].focus({preventScroll:!0}),P[q].click(),E()},E=()=>{g.value&&(d.value=!0)},O=()=>d.value=!1,D=(k,U)=>{h.value[U]=k},j=async()=>{await Ke();const k=h.value[e.currentName];k==null||k.focus({preventScroll:!0})};return Te(u,k=>{k==="hidden"?g.value=!1:k==="visible"&&setTimeout(()=>g.value=!0,50)}),Te(p,k=>{k?setTimeout(()=>g.value=!0,50):g.value=!1}),rn(c,C),Je(()=>setTimeout(()=>S(),0)),zo(()=>C()),t({scrollToActiveTab:S,removeFocus:O,focusActiveTab:j,tabListRef:a,tabBarRef:l,scheduleRender:()=>ju(v)}),()=>{const k=f.value?[ce("span",{class:[i.e("nav-prev"),i.is("disabled",!f.value.prev)],onClick:b},[ce(De,null,{default:()=>[ce(of,null,null)]})]),ce("span",{class:[i.e("nav-next"),i.is("disabled",!f.value.next)],onClick:_},[ce(De,null,{default:()=>[ce(Wo,null,null)]})])]:null,U=e.panes.map((P,re)=>{var q,V,te,A;const B=P.uid,I=P.props.disabled,M=(V=(q=P.props.name)!=null?q:P.index)!=null?V:`${re}`,J=!I&&(P.isClosable||e.editable);P.index=`${re}`;const z=J?ce(De,{class:"is-icon-close",onClick:H=>n("tabRemove",P,H)},{default:()=>[ce(Vr,null,null)]}):null,L=((A=(te=P.slots).label)==null?void 0:A.call(te))||P.props.label,Q=!I&&P.active?0:-1;return ce("div",{ref:H=>D(H,M),class:[i.e("item"),i.is(r.props.tabPosition),i.is("active",P.active),i.is("disabled",I),i.is("closable",J),i.is("focus",d.value)],id:`tab-${M}`,key:`tab-${B}`,"aria-controls":`pane-${M}`,role:"tab","aria-selected":P.active,tabindex:Q,onFocus:()=>E(),onBlur:()=>O(),onClick:H=>{O(),n("tabClick",P,M,H)},onKeydown:H=>{J&&(H.code===je.delete||H.code===je.backspace)&&n("tabRemove",P,H)}},[L,z])});return v.value,ce("div",{ref:c,class:[i.e("nav-wrap"),i.is("scrollable",!!f.value),i.is(r.props.tabPosition)]},[k,ce("div",{class:i.e("nav-scroll"),ref:o},[e.panes.length>0?ce("div",{class:[i.e("nav"),i.is(r.props.tabPosition),i.is("stretch",e.stretch&&["top","bottom"].includes(r.props.tabPosition))],ref:a,style:y.value,role:"tablist",onKeydown:T},[e.type?null:ce(Iz,{ref:l,tabs:[...e.panes],tabRefs:h.value},null),U]):null])])}}}),Dz=Me({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:Se(Function),default:()=>!0},stretch:Boolean}),dd=e=>Be(e)||Ve(e),Fz={[et]:e=>dd(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>dd(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>dd(e),tabAdd:()=>!0},Bz=pe({name:"ElTabs",props:Dz,emits:Fz,setup(e,{emit:t,slots:n,expose:r}){var i;const u=Ae("tabs"),p=W(()=>["left","right"].includes(e.tabPosition)),{children:o,addChild:a,removeChild:c,ChildrenSorter:h}=u2(it(),"ElTabPane"),l=ie(),f=ie((i=e.modelValue)!=null?i:"0"),s=async(y,b=!1)=>{var _,S,C,T;if(!(f.value===y||vn(y)))try{let E;if(e.beforeLeave){const O=e.beforeLeave(y,f.value);E=O instanceof Promise?await O:O}else E=!0;if(E!==!1){const O=(_=o.value.find(D=>D.paneName===f.value))==null?void 0:_.isFocusInsidePane();f.value=y,b&&(t(et,y),t("tabChange",y)),(C=(S=l.value)==null?void 0:S.removeFocus)==null||C.call(S),O&&((T=l.value)==null||T.focusActiveTab())}}catch{}},d=(y,b,_)=>{y.props.disabled||(t("tabClick",y,_),s(b,!0))},g=(y,b)=>{y.props.disabled||vn(y.props.name)||(b.stopPropagation(),t("edit",y.props.name,"remove"),t("tabRemove",y.props.name))},v=()=>{t("edit",void 0,"add"),t("tabAdd")},m=y=>{const b=y.el.firstChild,_=["bottom","right"].includes(e.tabPosition)?y.children[0].el:y.children[1].el;b!==_&&b.before(_)};return Te(()=>e.modelValue,y=>s(y)),Te(f,async()=>{var y;await Ke(),(y=l.value)==null||y.scrollToActiveTab()}),pt(Cf,{props:e,currentName:f,registerPane:a,unregisterPane:c,nav$:l}),r({currentName:f,get tabNavRef(){return W5(l.value,["scheduleRender"])}}),()=>{const y=n["add-icon"],b=e.editable||e.addable?ce("div",{class:[u.e("new-tab"),p.value&&u.e("new-tab-vertical")],tabindex:"0",onClick:v,onKeydown:T=>{[je.enter,je.numpadEnter].includes(T.code)&&v()}},[y?Ce(n,"add-icon"):ce(De,{class:u.is("icon-plus")},{default:()=>[ce(Wp,null,null)]})]):null,_=()=>ce(Lz,{ref:l,currentName:f.value,editable:e.editable,type:e.type,panes:o.value,stretch:e.stretch,onTabClick:d,onTabRemove:g},null),S=ce("div",{class:[u.e("header"),p.value&&u.e("header-vertical"),u.is(e.tabPosition)]},[ce(h,null,{default:_,$stable:!0}),b]),C=ce("div",{class:u.e("content")},[Ce(n,"default")]);return ce("div",{class:[u.b(),u.m(e.tabPosition),{[u.m("card")]:e.type==="card",[u.m("border-card")]:e.type==="border-card"}],onVnodeMounted:m,onVnodeUpdated:m},[C,S])}}});var Nz=Bz;const $z=Me({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),Y2="ElTabPane",zz=pe({name:Y2}),jz=pe({...zz,props:$z,setup(e){const t=e,n=it(),r=Vo(),i=Ne(Cf);i||Zt(Y2,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const u=Ae("tab-pane"),p=ie(),o=ie(),a=W(()=>t.closable||i.props.closable),c=Tc(()=>{var g;return i.currentName.value===((g=t.name)!=null?g:o.value)}),h=ie(c.value),l=W(()=>{var g;return(g=t.name)!=null?g:o.value}),f=Tc(()=>!t.lazy||h.value||c.value),s=()=>{var g;return(g=p.value)==null?void 0:g.contains(document.activeElement)};Te(c,g=>{g&&(h.value=!0)});const d=yt({uid:n.uid,getVnode:()=>n.vnode,slots:r,props:t,paneName:l,active:c,index:o,isClosable:a,isFocusInsidePane:s});return i.registerPane(d),At(()=>{i.unregisterPane(d)}),Lp(()=>{var g;r.label&&((g=i.nav$.value)==null||g.scheduleRender())}),(g,v)=>w(f)?mt(($(),oe("div",{key:0,id:`pane-${w(l)}`,ref_key:"paneRef",ref:p,class:le(w(u).b()),role:"tabpanel","aria-hidden":!w(c),"aria-labelledby":`tab-${w(l)}`},[Ce(g.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[Ft,w(c)]]):be("v-if",!0)}});var X2=Le(jz,[["__file","tab-pane.vue"]]);const Vz=dt(Nz,{TabPane:X2}),hd=pr(X2),q2=Symbol("uploadContextKey"),Uz="ElUpload";class Hz extends Error{constructor(t,n,r,i){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=i}}function by(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 Hz(r,n.status,t.method,e)}function Wz(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Kz=e=>{typeof XMLHttpRequest>"u"&&Zt(Uz,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",u=>{const p=u;p.percent=u.total>0?u.loaded/u.total*100:0,e.onProgress(p)});const r=new FormData;if(e.data)for(const[u,p]of Object.entries(e.data))Pe(p)&&p.length?r.append(u,...p):r.append(u,p);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(by(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(by(n,e,t));e.onSuccess(Wz(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const i=e.headers||{};if(i instanceof Headers)i.forEach((u,p)=>t.setRequestHeader(p,u));else for(const[u,p]of Object.entries(i))qt(p)||t.setRequestHeader(u,String(p));return t.send(r),t},Z2=["text","picture","picture-card"];let Gz=1;const Mh=()=>Date.now()+Gz++,J2=Me({action:{type:String,default:"#"},headers:{type:Se(Object)},method:{type:String,default:"post"},data:{type:Se([Object,Function,Promise]),default:()=>Ht({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:Se(Array),default:()=>Ht([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:Z2,default:"text"},httpRequest:{type:Se(Function),default:Kz},disabled:Boolean,limit:Number}),Yz=Me({...J2,beforeUpload:{type:Se(Function),default:rt},beforeRemove:{type:Se(Function)},onRemove:{type:Se(Function),default:rt},onChange:{type:Se(Function),default:rt},onPreview:{type:Se(Function),default:rt},onSuccess:{type:Se(Function),default:rt},onProgress:{type:Se(Function),default:rt},onError:{type:Se(Function),default:rt},onExceed:{type:Se(Function),default:rt},crossorigin:{type:Se(String)}}),Xz=Me({files:{type:Se(Array),default:()=>Ht([])},disabled:Boolean,handlePreview:{type:Se(Function),default:rt},listType:{type:String,values:Z2,default:"text"},crossorigin:{type:Se(String)}}),qz={remove:e=>!!e},Zz=pe({name:"ElUploadList"}),Jz=pe({...Zz,props:Xz,emits:qz,setup(e,{emit:t}){const n=e,{t:r}=Gt(),i=Ae("upload"),u=Ae("icon"),p=Ae("list"),o=vr(),a=ie(!1),c=W(()=>[i.b("list"),i.bm("list",n.listType),i.is("disabled",n.disabled)]),h=l=>{t("remove",l)};return(l,f)=>($(),ye(r1,{tag:"ul",class:le(w(c)),name:w(p).b()},{default:he(()=>[($(!0),oe($e,null,Lt(l.files,(s,d)=>($(),oe("li",{key:s.uid||s.name,class:le([w(i).be("list","item"),w(i).is(s.status),{focusing:a.value}]),tabindex:"0",onKeydown:nn(g=>!w(o)&&h(s),["delete"]),onFocus:g=>a.value=!0,onBlur:g=>a.value=!1,onClick:g=>a.value=!1},[Ce(l.$slots,"default",{file:s,index:d},()=>[l.listType==="picture"||s.status!=="uploading"&&l.listType==="picture-card"?($(),oe("img",{key:0,class:le(w(i).be("list","item-thumbnail")),src:s.url,crossorigin:l.crossorigin,alt:""},null,10,["src","crossorigin"])):be("v-if",!0),s.status==="uploading"||l.listType!=="picture-card"?($(),oe("div",{key:1,class:le(w(i).be("list","item-info"))},[ae("a",{class:le(w(i).be("list","item-name")),onClick:Ze(g=>l.handlePreview(s),["prevent"])},[ce(w(De),{class:le(w(u).m("document"))},{default:he(()=>[ce(w(iO))]),_:1},8,["class"]),ae("span",{class:le(w(i).be("list","item-file-name")),title:s.name},Oe(s.name),11,["title"])],10,["onClick"]),s.status==="uploading"?($(),ye(w(U2),{key:0,type:l.listType==="picture-card"?"circle":"line","stroke-width":l.listType==="picture-card"?6:2,percentage:Number(s.percentage),style:ze(l.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):be("v-if",!0)],2)):be("v-if",!0),ae("label",{class:le(w(i).be("list","item-status-label"))},[l.listType==="text"?($(),ye(w(De),{key:0,class:le([w(u).m("upload-success"),w(u).m("circle-check")])},{default:he(()=>[ce(w($l))]),_:1},8,["class"])):["picture-card","picture"].includes(l.listType)?($(),ye(w(De),{key:1,class:le([w(u).m("upload-success"),w(u).m("check")])},{default:he(()=>[ce(w(C1))]),_:1},8,["class"])):be("v-if",!0)],2),w(o)?be("v-if",!0):($(),ye(w(De),{key:2,class:le(w(u).m("close")),onClick:g=>h(s)},{default:he(()=>[ce(w(Vr))]),_:2},1032,["class","onClick"])),be(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),be(" This is a bug which needs to be fixed "),be(" TODO: Fix the incorrect navigation interaction "),w(o)?be("v-if",!0):($(),oe("i",{key:3,class:le(w(u).m("close-tip"))},Oe(w(r)("el.upload.deleteTip")),3)),l.listType==="picture-card"?($(),oe("span",{key:4,class:le(w(i).be("list","item-actions"))},[ae("span",{class:le(w(i).be("list","item-preview")),onClick:g=>l.handlePreview(s)},[ce(w(De),{class:le(w(u).m("zoom-in"))},{default:he(()=>[ce(w(I1))]),_:1},8,["class"])],10,["onClick"]),w(o)?be("v-if",!0):($(),oe("span",{key:0,class:le(w(i).be("list","item-delete")),onClick:g=>h(s)},[ce(w(De),{class:le(w(u).m("delete"))},{default:he(()=>[ce(w(lf))]),_:1},8,["class"])],10,["onClick"]))],2)):be("v-if",!0)])],42,["onKeydown","onFocus","onBlur","onClick"]))),128)),Ce(l.$slots,"append")]),_:3},8,["class","name"]))}});var _y=Le(Jz,[["__file","upload-list.vue"]]);const Qz=Me({disabled:Boolean}),ej={file:e=>Pe(e)},Q2="ElUploadDrag",tj=pe({name:Q2}),nj=pe({...tj,props:Qz,emits:ej,setup(e,{emit:t}){Ne(q2)||Zt(Q2,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=Ae("upload"),i=ie(!1),u=vr(),p=c=>{if(u.value)return;i.value=!1,c.stopPropagation();const h=Array.from(c.dataTransfer.files),l=c.dataTransfer.items||[];h.forEach((f,s)=>{var d;const g=l[s],v=(d=g==null?void 0:g.webkitGetAsEntry)==null?void 0:d.call(g);v&&(f.isDirectory=v.isDirectory)}),t("file",h)},o=()=>{u.value||(i.value=!0)},a=c=>{c.currentTarget.contains(c.relatedTarget)||(i.value=!1)};return(c,h)=>($(),oe("div",{class:le([w(r).b("dragger"),w(r).is("dragover",i.value)]),onDrop:Ze(p,["prevent"]),onDragover:Ze(o,["prevent"]),onDragleave:Ze(a,["prevent"])},[Ce(c.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}});var rj=Le(nj,[["__file","upload-dragger.vue"]]);const ij=Me({...J2,beforeUpload:{type:Se(Function),default:rt},onRemove:{type:Se(Function),default:rt},onStart:{type:Se(Function),default:rt},onSuccess:{type:Se(Function),default:rt},onProgress:{type:Se(Function),default:rt},onError:{type:Se(Function),default:rt},onExceed:{type:Se(Function),default:rt}}),aj=pe({name:"ElUploadContent",inheritAttrs:!1}),oj=pe({...aj,props:ij,setup(e,{expose:t}){const n=e,r=Ae("upload"),i=vr(),u=Bt({}),p=Bt(),o=g=>{if(g.length===0)return;const{autoUpload:v,limit:m,fileList:y,multiple:b,onStart:_,onExceed:S}=n;if(m&&y.length+g.length>m){S(g,y);return}b||(g=g.slice(0,1));for(const C of g){const T=C;T.uid=Mh(),_(T),v&&a(T)}},a=async g=>{if(p.value.value="",!n.beforeUpload)return h(g);let v,m={};try{const b=n.data,_=n.beforeUpload(g);m=Ys(n.data)?e0(n.data):n.data,v=await _,Ys(n.data)&&Wi(b,m)&&(m=e0(n.data))}catch{v=!1}if(v===!1){n.onRemove(g);return}let y=g;v instanceof Blob&&(v instanceof File?y=v:y=new File([v],g.name,{type:g.type})),h(Object.assign(y,{uid:g.uid}),m)},c=async(g,v)=>Re(g)?g(v):g,h=async(g,v)=>{const{headers:m,data:y,method:b,withCredentials:_,name:S,action:C,onProgress:T,onSuccess:E,onError:O,httpRequest:D}=n;try{v=await c(v!=null?v:y,g)}catch{n.onRemove(g);return}const{uid:j}=g,k={headers:m||{},withCredentials:_,file:g,data:v,method:b,filename:S,action:C,onProgress:P=>{T(P,g)},onSuccess:P=>{E(P,g),delete u.value[j]},onError:P=>{O(P,g),delete u.value[j]}},U=D(k);u.value[j]=U,U instanceof Promise&&U.then(k.onSuccess,k.onError)},l=g=>{const v=g.target.files;!v||o(Array.from(v))},f=()=>{i.value||(p.value.value="",p.value.click())},s=()=>{f()};return t({abort:g=>{C6(u.value).filter(g?([m])=>String(g.uid)===m:()=>!0).forEach(([m,y])=>{y instanceof XMLHttpRequest&&y.abort(),delete u.value[m]})},upload:a}),(g,v)=>($(),oe("div",{class:le([w(r).b(),w(r).m(g.listType),w(r).is("drag",g.drag),w(r).is("disabled",w(i))]),tabindex:w(i)?"-1":"0",onClick:f,onKeydown:nn(Ze(s,["self"]),["enter","space"])},[g.drag?($(),ye(rj,{key:0,disabled:w(i),onFile:o},{default:he(()=>[Ce(g.$slots,"default")]),_:3},8,["disabled"])):Ce(g.$slots,"default",{key:1}),ae("input",{ref_key:"inputRef",ref:p,class:le(w(r).e("input")),name:g.name,disabled:w(i),multiple:g.multiple,accept:g.accept,type:"file",onChange:l,onClick:Ze(()=>{},["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","onKeydown"]))}});var wy=Le(oj,[["__file","upload-content.vue"]]);const Sy="ElUpload",Cy=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},sj=(e,t)=>{const n=h6(e,"fileList",void 0,{passive:!0}),r=s=>n.value.find(d=>d.uid===s.uid);function i(s){var d;(d=t.value)==null||d.abort(s)}function u(s=["ready","uploading","success","fail"]){n.value=n.value.filter(d=>!s.includes(d.status))}function p(s){n.value=n.value.filter(d=>d.uid!==s.uid)}const o=(s,d)=>{const g=r(d);!g||(console.error(s),g.status="fail",p(g),e.onError(s,g,n.value),e.onChange(g,n.value))},a=(s,d)=>{const g=r(d);!g||(e.onProgress(s,g,n.value),g.status="uploading",g.percentage=Math.round(s.percent))},c=(s,d)=>{const g=r(d);!g||(g.status="success",g.response=s,e.onSuccess(s,g,n.value),e.onChange(g,n.value))},h=s=>{qt(s.uid)&&(s.uid=Mh());const d={name:s.name,percentage:0,status:"ready",size:s.size,raw:s,uid:s.uid};if(e.listType==="picture-card"||e.listType==="picture")try{d.url=URL.createObjectURL(s)}catch(g){g.message,e.onError(g,d,n.value)}n.value=[...n.value,d],e.onChange(d,n.value)},l=async s=>{const d=s instanceof File?r(s):s;d||Zt(Sy,"file to be removed not found");const g=v=>{i(v),p(v),e.onRemove(v,n.value),Cy(v)};e.beforeRemove?await e.beforeRemove(d,n.value)!==!1&&g(d):g(d)};function f(){n.value.filter(({status:s})=>s==="ready").forEach(({raw:s})=>{var d;return s&&((d=t.value)==null?void 0:d.upload(s))})}return Te(()=>e.listType,s=>{s!=="picture-card"&&s!=="picture"||(n.value=n.value.map(d=>{const{raw:g,url:v}=d;if(!v&&g)try{d.url=URL.createObjectURL(g)}catch(m){e.onError(m,d,n.value)}return d}))}),Te(n,s=>{for(const d of s)d.uid||(d.uid=Mh()),d.status||(d.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:i,clearFiles:u,handleError:o,handleProgress:a,handleStart:h,handleSuccess:c,handleRemove:l,submit:f,revokeFileObjectURL:Cy}},lj=pe({name:"ElUpload"}),uj=pe({...lj,props:Yz,setup(e,{expose:t}){const n=e,r=vr(),i=Bt(),{abort:u,submit:p,clearFiles:o,uploadFiles:a,handleStart:c,handleError:h,handleRemove:l,handleSuccess:f,handleProgress:s,revokeFileObjectURL:d}=sj(n,i),g=W(()=>n.listType==="picture-card"),v=W(()=>({...n,fileList:a.value,onStart:c,onProgress:s,onSuccess:f,onError:h,onRemove:l}));return At(()=>{a.value.forEach(d)}),pt(q2,{accept:En(n,"accept")}),t({abort:u,submit:p,clearFiles:o,handleStart:c,handleRemove:l}),(m,y)=>($(),oe("div",null,[w(g)&&m.showFileList?($(),ye(_y,{key:0,disabled:w(r),"list-type":m.listType,files:w(a),crossorigin:m.crossorigin,"handle-preview":m.onPreview,onRemove:w(l)},Qs({append:he(()=>[ce(wy,$t({ref_key:"uploadRef",ref:i},w(v)),{default:he(()=>[m.$slots.trigger?Ce(m.$slots,"trigger",{key:0}):be("v-if",!0),!m.$slots.trigger&&m.$slots.default?Ce(m.$slots,"default",{key:1}):be("v-if",!0)]),_:3},16)]),_:2},[m.$slots.file?{name:"default",fn:he(({file:b,index:_})=>[Ce(m.$slots,"file",{file:b,index:_})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):be("v-if",!0),!w(g)||w(g)&&!m.showFileList?($(),ye(wy,$t({key:1,ref_key:"uploadRef",ref:i},w(v)),{default:he(()=>[m.$slots.trigger?Ce(m.$slots,"trigger",{key:0}):be("v-if",!0),!m.$slots.trigger&&m.$slots.default?Ce(m.$slots,"default",{key:1}):be("v-if",!0)]),_:3},16)):be("v-if",!0),m.$slots.trigger?Ce(m.$slots,"default",{key:2}):be("v-if",!0),Ce(m.$slots,"tip"),!w(g)&&m.showFileList?($(),ye(_y,{key:3,disabled:w(r),"list-type":m.listType,files:w(a),crossorigin:m.crossorigin,"handle-preview":m.onPreview,onRemove:w(l)},Qs({_:2},[m.$slots.file?{name:"default",fn:he(({file:b,index:_})=>[Ce(m.$slots,"file",{file:b,index:_})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):be("v-if",!0)]))}});var cj=Le(uj,[["__file","upload.vue"]]);const Vv=dt(cj),eS=["primary","success","info","warning","error"],tS=["top","top-left","top-right","bottom","bottom-left","bottom-right"],So="top",un=Ht({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:ct?document.body:void 0}),fj=Me({customClass:{type:String,default:un.customClass},dangerouslyUseHTMLString:{type:Boolean,default:un.dangerouslyUseHTMLString},duration:{type:Number,default:un.duration},icon:{type:Rt,default:un.icon},id:{type:String,default:un.id},message:{type:Se([String,Object,Function]),default:un.message},onClose:{type:Se(Function),default:un.onClose},showClose:{type:Boolean,default:un.showClose},type:{type:String,values:eS,default:un.type},plain:{type:Boolean,default:un.plain},offset:{type:Number,default:un.offset},placement:{type:String,values:tS,default:un.placement},zIndex:{type:Number,default:un.zIndex},grouping:{type:Boolean,default:un.grouping},repeatNum:{type:Number,default:un.repeatNum}}),dj={destroy:()=>!0},br=Xc({}),hj=e=>(br[e]||(br[e]=Xc([])),br[e]),pj=(e,t)=>{const n=br[t]||[],r=n.findIndex(p=>p.id===e),i=n[r];let u;return r>0&&(u=n[r-1]),{current:i,prev:u}},vj=(e,t)=>{const{prev:n}=pj(e,t);return n?n.vm.exposed.bottom.value:0},gj=(e,t,n)=>(br[n]||[]).findIndex(u=>u.id===e)>0?16:t,mj=pe({name:"ElMessage"}),yj=pe({...mj,props:fj,emits:dj,setup(e,{expose:t,emit:n}){const r=e,{Close:i}=Aw,u=ie(!1),{ns:p,zIndex:o}=Ew("message"),{currentZIndex:a,nextZIndex:c}=o,h=ie(),l=ie(!1),f=ie(0);let s;const d=W(()=>r.type?r.type==="error"?"danger":r.type:"info"),g=W(()=>{const k=r.type;return{[p.bm("icon",k)]:k&&Oc[k]}}),v=W(()=>r.icon||Oc[r.type]||""),m=W(()=>r.placement||So),y=W(()=>vj(r.id,m.value)),b=W(()=>gj(r.id,r.offset,m.value)+y.value),_=W(()=>f.value+b.value),S=W(()=>m.value.includes("left")?p.is("left"):m.value.includes("right")?p.is("right"):p.is("center")),C=W(()=>m.value.startsWith("top")?"top":"bottom"),T=W(()=>({[C.value]:`${b.value}px`,zIndex:a.value}));function E(){r.duration!==0&&({stop:s}=fl(()=>{D()},r.duration))}function O(){s==null||s()}function D(){l.value=!1,Ke(()=>{var k;u.value||((k=r.onClose)==null||k.call(r),n("destroy"))})}function j({code:k}){k===je.esc&&D()}return Je(()=>{E(),c(),l.value=!0}),Te(()=>r.repeatNum,()=>{O(),E()}),ft(document,"keydown",j),rn(h,()=>{f.value=h.value.getBoundingClientRect().height}),t({visible:l,bottom:_,close:D}),(k,U)=>($(),ye(sr,{name:w(p).b("fade"),onBeforeEnter:P=>u.value=!0,onBeforeLeave:k.onClose,onAfterLeave:P=>k.$emit("destroy"),persisted:""},{default:he(()=>[mt(ae("div",{id:k.id,ref_key:"messageRef",ref:h,class:le([w(p).b(),{[w(p).m(k.type)]:k.type},w(p).is("closable",k.showClose),w(p).is("plain",k.plain),w(p).is("bottom",w(C)==="bottom"),w(S),k.customClass]),style:ze(w(T)),role:"alert",onMouseenter:O,onMouseleave:E},[k.repeatNum>1?($(),ye(w(ML),{key:0,value:k.repeatNum,type:w(d),class:le(w(p).e("badge"))},null,8,["value","type","class"])):be("v-if",!0),w(v)?($(),ye(w(De),{key:1,class:le([w(p).e("icon"),w(g)])},{default:he(()=>[($(),ye(ut(w(v))))]),_:1},8,["class"])):be("v-if",!0),Ce(k.$slots,"default",{},()=>[k.dangerouslyUseHTMLString?($(),oe($e,{key:1},[be(" Caution here, message could've been compromised, never use user's input as message "),ae("p",{class:le(w(p).e("content")),innerHTML:k.message},null,10,["innerHTML"])],2112)):($(),oe("p",{key:0,class:le(w(p).e("content"))},Oe(k.message),3))]),k.showClose?($(),ye(w(De),{key:2,class:le(w(p).e("closeBtn")),onClick:Ze(D,["stop"])},{default:he(()=>[ce(w(i))]),_:1},8,["class","onClick"])):be("v-if",!0)],46,["id"]),[[Ft,l.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}});var bj=Le(yj,[["__file","message.vue"]]);let _j=1;const wj=e=>{if(!e.appendTo)e.appendTo=document.body;else if(Be(e.appendTo)){let n=document.querySelector(e.appendTo);rr(n)||(n=document.body),e.appendTo=n}},Sj=e=>{!e.placement&&Be(fn.placement)&&fn.placement&&(e.placement=fn.placement),e.placement||(e.placement=So),tS.includes(e.placement)||(`${e.placement}${So}`,e.placement=So)},nS=e=>{const t=!e||Be(e)||On(e)||Re(e)?{message:e}:e,n={...un,...t};return wj(n),Sj(n),yn(fn.grouping)&&!n.grouping&&(n.grouping=fn.grouping),Ve(fn.duration)&&n.duration===3e3&&(n.duration=fn.duration),Ve(fn.offset)&&n.offset===16&&(n.offset=fn.offset),yn(fn.showClose)&&!n.showClose&&(n.showClose=fn.showClose),yn(fn.plain)&&!n.plain&&(n.plain=fn.plain),n},Cj=e=>{const t=e.props.placement||So,n=br[t],r=n.indexOf(e);if(r===-1)return;n.splice(r,1);const{handler:i}=e;i.close()},xj=({appendTo:e,...t},n)=>{const r=`message_${_j++}`,i=t.onClose,u=document.createElement("div"),p={...t,id:r,onClose:()=>{i==null||i(),Cj(h)},onDestroy:()=>{bc(null,u)}},o=ce(bj,p,Re(p.message)||On(p.message)?{default:Re(p.message)?p.message:()=>p.message}:null);o.appContext=n||La._context,bc(o,u),e.appendChild(u.firstElementChild);const a=o.component,h={id:r,vnode:o,vm:a,handler:{close:()=>{a.exposed.close()}},props:o.component.props};return h},La=(e={},t)=>{if(!ct)return{close:()=>{}};const n=nS(e),r=hj(n.placement||So);if(n.grouping&&r.length){const u=r.find(({vnode:p})=>{var o;return((o=p.props)==null?void 0:o.message)===n.message});if(u)return u.props.repeatNum+=1,u.props.type=n.type,u.handler}if(Ve(fn.max)&&r.length>=fn.max)return{close:()=>{}};const i=xj(n,t);return r.push(i),i.handler};eS.forEach(e=>{La[e]=(t={},n)=>{const r=nS(t);return La({...r,type:e},n)}});function Tj(e){for(const t in br)if(nt(br,t)){const n=[...br[t]];for(const r of n)(!e||e===r.props.type)&&r.handler.close()}}function Ej(e){if(!br[e])return;[...br[e]].forEach(n=>n.handler.close())}La.closeAll=Tj;La.closeAllByPlacement=Ej;La._context=null;const Ji=A6(La,"$message"),Rh="_trap-focus-children",ya=[],xy=e=>{if(ya.length===0)return;const t=ya[ya.length-1][Rh];if(t.length>0&&e.code===je.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,r=e.target===t[0],i=e.target===t[t.length-1];r&&n&&(e.preventDefault(),t[t.length-1].focus()),i&&!n&&(e.preventDefault(),t[0].focus())}},kj={beforeMount(e){e[Rh]=I0(e),ya.push(e),ya.length<=1&&document.addEventListener("keydown",xy)},updated(e){Ke(()=>{e[Rh]=I0(e)})},unmounted(){ya.shift(),ya.length===0&&document.removeEventListener("keydown",xy)}},Oj=pe({name:"ElMessageBox",directives:{TrapFocus:kj},components:{ElButton:ht,ElFocusTrap:bf,ElInput:qo,ElOverlay:T2,ElIcon:De,...Aw},inheritAttrs:!1,props:{buttonSize:{type:String,validator:W2},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:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:r,ns:i,size:u}=Ew("message-box",W(()=>e.buttonSize)),{t:p}=n,{nextZIndex:o}=r,a=ie(!1),c=yt({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:Zi(al),cancelButtonLoadingIcon:Zi(al),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:o()}),h=W(()=>{const V=c.type;return{[i.bm("icon",V)]:V&&Oc[V]}}),l=Er(),f=Er(),s=W(()=>{const V=c.type;return c.icon||V&&Oc[V]||""}),d=W(()=>!!c.message),g=ie(),v=ie(),m=ie(),y=ie(),b=ie(),_=W(()=>c.confirmButtonClass);Te(()=>c.inputValue,async V=>{await Ke(),e.boxType==="prompt"&&V&&U()},{immediate:!0}),Te(()=>a.value,V=>{var te,A;V&&(e.boxType!=="prompt"&&(c.autofocus?m.value=(A=(te=b.value)==null?void 0:te.$el)!=null?A:g.value:m.value=g.value),c.zIndex=o()),e.boxType==="prompt"&&(V?Ke().then(()=>{var B;y.value&&y.value.$el&&(c.autofocus?m.value=(B=P())!=null?B:g.value:m.value=g.value)}):(c.editorErrorMessage="",c.validateError=!1))});const S=W(()=>e.draggable),C=W(()=>e.overflow),{isDragging:T}=O2(g,v,S,C);Je(async()=>{await Ke(),e.closeOnHashChange&&window.addEventListener("hashchange",E)}),At(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",E)});function E(){!a.value||(a.value=!1,Ke(()=>{c.action&&t("action",c.action)}))}const O=()=>{e.closeOnClickModal&&k(c.distinguishCancelAndClose?"close":"cancel")},D=Rv(O),j=V=>{if(c.inputType!=="textarea")return V.preventDefault(),k("confirm")},k=V=>{var te;e.boxType==="prompt"&&V==="confirm"&&!U()||(c.action=V,c.beforeClose?(te=c.beforeClose)==null||te.call(c,V,c,E):E())},U=()=>{if(e.boxType==="prompt"){const V=c.inputPattern;if(V&&!V.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||p("el.messagebox.error"),c.validateError=!0,!1;const te=c.inputValidator;if(Re(te)){const A=te(c.inputValue);if(A===!1)return c.editorErrorMessage=c.inputErrorMessage||p("el.messagebox.error"),c.validateError=!0,!1;if(Be(A))return c.editorErrorMessage=A,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},P=()=>{var V,te;const A=(V=y.value)==null?void 0:V.$refs;return(te=A==null?void 0:A.input)!=null?te:A==null?void 0:A.textarea},re=()=>{k("close")},q=()=>{e.closeOnPressEscape&&re()};return e.lockScroll&&P2(a),{...Sr(c),ns:i,overlayEvent:D,visible:a,hasMessage:d,typeClass:h,contentId:l,inputId:f,btnSize:u,iconComponent:s,confirmButtonClasses:_,rootRef:g,focusStartRef:m,headerRef:v,inputRef:y,isDragging:T,confirmRef:b,doClose:E,handleClose:re,onCloseRequested:q,handleWrapperClick:O,handleInputEnter:j,handleAction:k,t:p}}});function Pj(e,t,n,r,i,u){const p=Un("el-icon"),o=Un("el-input"),a=Un("el-button"),c=Un("el-focus-trap"),h=Un("el-overlay");return $(),ye(sr,{name:"fade-in-linear",onAfterLeave:l=>e.$emit("vanish"),persisted:""},{default:he(()=>[mt(ce(h,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:he(()=>[ae("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:le(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[ce(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:he(()=>[ae("div",{ref:"rootRef",class:le([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),e.ns.is("dragging",e.isDragging),{[e.ns.m("center")]:e.center}]),style:ze(e.customStyle),tabindex:"-1",onClick:Ze(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?($(),oe("div",{key:0,ref:"headerRef",class:le([e.ns.e("header"),{"show-close":e.showClose}])},[ae("div",{class:le(e.ns.e("title"))},[e.iconComponent&&e.center?($(),ye(p,{key:0,class:le([e.ns.e("status"),e.typeClass])},{default:he(()=>[($(),ye(ut(e.iconComponent)))]),_:1},8,["class"])):be("v-if",!0),ae("span",null,Oe(e.title),1)],2),e.showClose?($(),oe("button",{key:0,type:"button",class:le(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:l=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:nn(Ze(l=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[ce(p,{class:le(e.ns.e("close"))},{default:he(()=>[($(),ye(ut(e.closeIcon||"close")))]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):be("v-if",!0)],2)):be("v-if",!0),ae("div",{id:e.contentId,class:le(e.ns.e("content"))},[ae("div",{class:le(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?($(),ye(p,{key:0,class:le([e.ns.e("status"),e.typeClass])},{default:he(()=>[($(),ye(ut(e.iconComponent)))]),_:1},8,["class"])):be("v-if",!0),e.hasMessage?($(),oe("div",{key:1,class:le(e.ns.e("message"))},[Ce(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?($(),ye(ut(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):($(),ye(ut(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0,textContent:Oe(e.message)},null,8,["for","textContent"]))])],2)):be("v-if",!0)],2),mt(ae("div",{class:le(e.ns.e("input"))},[ce(o,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":l=>e.inputValue=l,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:le({invalid:e.validateError}),onKeydown:nn(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),ae("div",{class:le(e.ns.e("errormsg")),style:ze({visibility:e.editorErrorMessage?"visible":"hidden"})},Oe(e.editorErrorMessage),7)],2),[[Ft,e.showInput]])],10,["id"]),ae("div",{class:le(e.ns.e("btns"))},[e.showCancelButton?($(),ye(a,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:le([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:l=>e.handleAction("cancel"),onKeydown:nn(Ze(l=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:he(()=>[We(Oe(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):be("v-if",!0),mt(ce(a,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:le([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:l=>e.handleAction("confirm"),onKeydown:nn(Ze(l=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:he(()=>[We(Oe(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[Ft,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"]),[[Ft,e.visible]])]),_:3},8,["onAfterLeave"])}var Aj=Le(Oj,[["render",Pj],["__file","index.vue"]]);const ml=new Map,Ij=e=>{let t=document.body;return e.appendTo&&(Be(e.appendTo)&&(t=document.querySelector(e.appendTo)),rr(e.appendTo)&&(t=e.appendTo),rr(t)||(t=document.body)),t},Mj=(e,t,n=null)=>{const r=ce(Aj,e,Re(e.message)||On(e.message)?{default:Re(e.message)?e.message:()=>e.message}:null);return r.appContext=n,bc(r,t),Ij(e).appendChild(t.firstElementChild),r.component},Rj=()=>document.createElement("div"),Lj=(e,t)=>{const n=Rj();e.onVanish=()=>{bc(null,n),ml.delete(i)},e.onAction=u=>{const p=ml.get(i);let o;e.showInput?o={value:i.inputValue,action:u}:o=u,e.callback?e.callback(o,r.proxy):u==="cancel"||u==="close"?e.distinguishCancelAndClose&&u!=="cancel"?p.reject("close"):p.reject("cancel"):p.resolve(o)};const r=Mj(e,n,t),i=r.proxy;for(const u in e)nt(e,u)&&!nt(i.$props,u)&&(u==="closeIcon"&&Ye(e[u])?i[u]=Zi(e[u]):i[u]=e[u]);return i.visible=!0,i};function Jo(e,t=null){if(!ct)return Promise.reject();let n;return Be(e)||On(e)?e={message:e}:n=e.callback,new Promise((r,i)=>{const u=Lj(e,t!=null?t:Jo._context);ml.set(u,{options:e,callback:n,resolve:r,reject:i})})}const Dj=["alert","confirm","prompt"],Fj={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Dj.forEach(e=>{Jo[e]=Bj(e)});function Bj(e){return(t,n,r,i)=>{let u="";return Ye(n)?(r=n,u=""):vn(n)?u="":u=n,Jo(Object.assign({title:u,message:t,type:"",...Fj[e]},r,{boxType:e}),i)}}Jo.close=()=>{ml.forEach((e,t)=>{t.doClose()}),ml.clear()};Jo._context=null;const Ii=Jo;Ii.install=e=>{Ii._context=e._context,e.config.globalProperties.$msgbox=Ii,e.config.globalProperties.$messageBox=Ii,e.config.globalProperties.$alert=Ii.alert,e.config.globalProperties.$confirm=Ii.confirm,e.config.globalProperties.$prompt=Ii.prompt};const rS=Ii;const gn=Ho("options",()=>{const e=er("options",ie({colorMode:_0({emitAuto:!0})})),t=er("pageSize",25),n=er("pageless","Disabled"),r=er("allowLargerParams","Disabled"),i=er("autoCarousel","Enabled"),u=er("useBeta","Disabled"),p=er("imageDownloadType","PNG"),o=er("baseURL","");return e.value.colorMode=_0({emitAuto:!0,initialValue:e.value.colorMode}),{options:e,pageSize:t,pageless:n,allowLargerParams:r,autoCarousel:i,useBeta:u,imageDownloadType:p,baseURL:o}});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var lt=function(){return lt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u])}return t},lt.apply(this,arguments)};function Lh(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,u;r<i;r++)(u||!(r in t))&&(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return e.concat(u||Array.prototype.slice.call(t))}var Ot=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vt=Object.keys,mn=Array.isArray;typeof Promise<"u"&&!Ot.Promise&&(Ot.Promise=Promise);function In(e,t){return typeof t!="object"||Vt(t).forEach(function(n){e[n]=t[n]}),e}var yl=Object.getPrototypeOf,Nj={}.hasOwnProperty;function Jn(e,t){return Nj.call(e,t)}function Fo(e,t){typeof t=="function"&&(t=t(yl(e))),(typeof Reflect>"u"?Vt:Reflect.ownKeys)(t).forEach(function(n){mi(e,n,t[n])})}var iS=Object.defineProperty;function mi(e,t,n,r){iS(e,t,In(n&&Jn(n,"get")&&typeof n.get=="function"?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function Qo(e){return{from:function(t){return e.prototype=Object.create(t.prototype),mi(e.prototype,"constructor",e),{extend:Fo.bind(null,e.prototype)}}}}var $j=Object.getOwnPropertyDescriptor;function Uv(e,t){var n=$j(e,t),r;return n||(r=yl(e))&&Uv(r,t)}var zj=[].slice;function xf(e,t,n){return zj.call(e,t,n)}function aS(e,t){return t(e)}function ys(e){if(!e)throw new Error("Assertion Failed")}function oS(e){Ot.setImmediate?setImmediate(e):setTimeout(e,0)}function sS(e,t){return e.reduce(function(n,r,i){var u=t(r,i);return u&&(n[u[0]]=u[1]),n},{})}function jj(e,t,n){try{e.apply(null,n)}catch(r){t&&t(r)}}function fi(e,t){if(typeof t=="string"&&Jn(e,t))return e[t];if(!t)return e;if(typeof t!="string"){for(var n=[],r=0,i=t.length;r<i;++r){var u=fi(e,t[r]);n.push(u)}return n}var p=t.indexOf(".");if(p!==-1){var o=e[t.substr(0,p)];return o==null?void 0:fi(o,t.substr(p+1))}}function _r(e,t,n){if(!(!e||t===void 0)&&!("isFrozen"in Object&&Object.isFrozen(e)))if(typeof t!="string"&&"length"in t){ys(typeof n!="string"&&"length"in n);for(var r=0,i=t.length;r<i;++r)_r(e,t[r],n[r])}else{var u=t.indexOf(".");if(u!==-1){var p=t.substr(0,u),o=t.substr(u+1);if(o==="")n===void 0?mn(e)&&!isNaN(parseInt(p))?e.splice(p,1):delete e[p]:e[p]=n;else{var a=e[p];(!a||!Jn(e,p))&&(a=e[p]={}),_r(a,o,n)}}else n===void 0?mn(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function Vj(e,t){typeof t=="string"?_r(e,t,void 0):"length"in t&&[].map.call(t,function(n){_r(e,n,void 0)})}function lS(e){var t={};for(var n in e)Jn(e,n)&&(t[n]=e[n]);return t}var Uj=[].concat;function uS(e){return Uj.apply([],e)}var cS="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(uS([8,16,32,64].map(function(e){return["Int","Uint","Float"].map(function(t){return t+e+"Array"})}))).filter(function(e){return Ot[e]}),Hj=cS.map(function(e){return Ot[e]});sS(cS,function(e){return[e,!0]});var Fi=null;function Wl(e){Fi=typeof WeakMap<"u"&&new WeakMap;var t=Dh(e);return Fi=null,t}function Dh(e){if(!e||typeof e!="object")return e;var t=Fi&&Fi.get(e);if(t)return t;if(mn(e)){t=[],Fi&&Fi.set(e,t);for(var n=0,r=e.length;n<r;++n)t.push(Dh(e[n]))}else if(Hj.indexOf(e.constructor)>=0)t=e;else{var i=yl(e);t=i===Object.prototype?{}:Object.create(i),Fi&&Fi.set(e,t);for(var u in e)Jn(e,u)&&(t[u]=Dh(e[u]))}return t}var Wj={}.toString;function Fh(e){return Wj.call(e).slice(8,-1)}var Bh=typeof Symbol<"u"?Symbol.iterator:"@@iterator",Kj=typeof Bh=="symbol"?function(e){var t;return e!=null&&(t=e[Bh])&&t.apply(e)}:function(){return null},fo={};function ui(e){var t,n,r,i;if(arguments.length===1){if(mn(e))return e.slice();if(this===fo&&typeof e=="string")return[e];if(i=Kj(e)){for(n=[];r=i.next(),!r.done;)n.push(r.value);return n}if(e==null)return[e];if(t=e.length,typeof t=="number"){for(n=new Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}var Hv=typeof Symbol<"u"?function(e){return e[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},Kr=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function fS(e,t){Kr=e,dS=t}var dS=function(){return!0},Gj=!new Error("").stack;function Ka(){if(Gj)try{throw Ka.arguments,new Error}catch(e){return e}return new Error}function Nh(e,t){var n=e.stack;return n?(t=t||0,n.indexOf(e.name)===0&&(t+=(e.name+e.message).split(`
`).length),n.split(`
`).slice(t).filter(dS).map(function(r){return`
`+r}).join("")):""}var Yj=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"],hS=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Wv=Yj.concat(hS),Xj={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function es(e,t){this._e=Ka(),this.name=e,this.message=t}Qo(es).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+Nh(this._e,2))}},toString:function(){return this.name+": "+this.message}});function pS(e,t){return e+". Errors: "+Object.keys(t).map(function(n){return t[n].toString()}).filter(function(n,r,i){return i.indexOf(n)===r}).join(`
`)}function Mc(e,t,n,r){this._e=Ka(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=pS(e,t)}Qo(Mc).from(es);function zs(e,t){this._e=Ka(),this.name="BulkError",this.failures=Object.keys(t).map(function(n){return t[n]}),this.failuresByPos=t,this.message=pS(e,t)}Qo(zs).from(es);var Kv=Wv.reduce(function(e,t){return e[t]=t+"Error",e},{}),qj=es,Ge=Wv.reduce(function(e,t){var n=t+"Error";function r(i,u){this._e=Ka(),this.name=n,i?typeof i=="string"?(this.message=""+i+(u?`
`+u:""),this.inner=u||null):typeof i=="object"&&(this.message=i.name+" "+i.message,this.inner=i):(this.message=Xj[t]||n,this.inner=null)}return Qo(r).from(qj),e[t]=r,e},{});Ge.Syntax=SyntaxError;Ge.Type=TypeError;Ge.Range=RangeError;var Ty=hS.reduce(function(e,t){return e[t+"Error"]=Ge[t],e},{});function Zj(e,t){if(!e||e instanceof es||e instanceof TypeError||e instanceof SyntaxError||!e.name||!Ty[e.name])return e;var n=new Ty[e.name](t||e.message,e);return"stack"in e&&mi(n,"stack",{get:function(){return this.inner.stack}}),n}var Tf=Wv.reduce(function(e,t){return["Syntax","Type","Range"].indexOf(t)===-1&&(e[t+"Error"]=Ge[t]),e},{});Tf.ModifyError=Mc;Tf.DexieError=es;Tf.BulkError=zs;function Ct(){}function Kl(e){return e}function Jj(e,t){return e==null||e===Kl?t:function(n){return t(e(n))}}function Da(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function Qj(e,t){return e===Ct?t:function(){var n=e.apply(this,arguments);n!==void 0&&(arguments[0]=n);var r=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var u=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?Da(r,this.onsuccess):r),i&&(this.onerror=this.onerror?Da(i,this.onerror):i),u!==void 0?u:n}}function eV(e,t){return e===Ct?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?Da(n,this.onsuccess):n),r&&(this.onerror=this.onerror?Da(r,this.onerror):r)}}function tV(e,t){return e===Ct?t:function(n){var r=e.apply(this,arguments);In(n,r);var i=this.onsuccess,u=this.onerror;this.onsuccess=null,this.onerror=null;var p=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?Da(i,this.onsuccess):i),u&&(this.onerror=this.onerror?Da(u,this.onerror):u),r===void 0?p===void 0?void 0:p:In(r,p)}}function nV(e,t){return e===Ct?t:function(){return t.apply(this,arguments)===!1?!1:e.apply(this,arguments)}}function Gv(e,t){return e===Ct?t:function(){var n=e.apply(this,arguments);if(n&&typeof n.then=="function"){for(var r=this,i=arguments.length,u=new Array(i);i--;)u[i]=arguments[i];return n.then(function(){return t.apply(r,u)})}return t.apply(this,arguments)}}var bl={},rV=100,iV=20,vS=100,Yv=typeof Promise>"u"?[]:function(){var e=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[e,yl(e),e];var t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,yl(t),e]}(),$h=Yv[0],Rc=Yv[1],zh=Yv[2],gS=Rc&&Rc.then,Zu=$h&&$h.constructor,Xv=!!zh,jh=!1,aV=zh?function(){zh.then(Cu)}:Ot.setImmediate?setImmediate.bind(null,Cu):Ot.MutationObserver?function(){var e=document.createElement("div");new MutationObserver(function(){Cu(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:function(){setTimeout(Cu,0)},_l=function(e,t){bs.push([e,t]),Lc&&(aV(),Lc=!1)},Vh=!0,Lc=!0,ka=[],Ju=[],Uh=null,Hh=Kl,Co={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:Oy,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(function(e){try{Oy(e[0],e[1])}catch{}})}},He=Co,bs=[],Oa=0,Qu=[];function Fe(e){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=Ct,this._lib=!1;var t=this._PSD=He;if(Kr&&(this._stackHolder=Ka(),this._prev=null,this._numPrev=0),typeof e!="function"){if(e!==bl)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],this._state===!1&&Kh(this,this._value);return}this._state=null,this._value=null,++t.ref,yS(this,e)}var Wh={get:function(){var e=He,t=Dc;function n(r,i){var u=this,p=!e.global&&(e!==He||t!==Dc),o=p&&!yi(),a=new Fe(function(c,h){qv(u,new mS(Bc(r,e,p,o),Bc(i,e,p,o),c,h,e))});return Kr&&wS(a,this),a}return n.prototype=bl,n},set:function(e){mi(this,"then",e&&e.prototype===bl?Wh:{get:function(){return e},set:Wh.set})}};Fo(Fe.prototype,{then:Wh,_then:function(e,t){qv(this,new mS(null,null,e,t,He))},catch:function(e){if(arguments.length===1)return this.then(null,e);var t=arguments[0],n=arguments[1];return typeof t=="function"?this.then(null,function(r){return r instanceof t?n(r):ec(r)}):this.then(null,function(r){return r&&r.name===t?n(r):ec(r)})},finally:function(e){return this.then(function(t){return e(),t},function(t){return e(),ec(t)})},stack:{get:function(){if(this._stack)return this._stack;try{jh=!0;var e=_S(this,[],iV),t=e.join(`
From previous: `);return this._state!==null&&(this._stack=t),t}finally{jh=!1}}},timeout:function(e,t){var n=this;return e<1/0?new Fe(function(r,i){var u=setTimeout(function(){return i(new Ge.Timeout(t))},e);n.then(r,i).finally(clearTimeout.bind(null,u))}):this}});typeof Symbol<"u"&&Symbol.toStringTag&&mi(Fe.prototype,Symbol.toStringTag,"Dexie.Promise");Co.env=SS();function mS(e,t,n,r,i){this.onFulfilled=typeof e=="function"?e:null,this.onRejected=typeof t=="function"?t:null,this.resolve=n,this.reject=r,this.psd=i}Fo(Fe,{all:function(){var e=ui.apply(null,arguments).map(Fc);return new Fe(function(t,n){e.length===0&&t([]);var r=e.length;e.forEach(function(i,u){return Fe.resolve(i).then(function(p){e[u]=p,--r||t(e)},n)})})},resolve:function(e){if(e instanceof Fe)return e;if(e&&typeof e.then=="function")return new Fe(function(n,r){e.then(n,r)});var t=new Fe(bl,!0,e);return wS(t,Uh),t},reject:ec,race:function(){var e=ui.apply(null,arguments).map(Fc);return new Fe(function(t,n){e.map(function(r){return Fe.resolve(r).then(t,n)})})},PSD:{get:function(){return He},set:function(e){return He=e}},totalEchoes:{get:function(){return Dc}},newPSD:Qi,usePSD:ns,scheduler:{get:function(){return _l},set:function(e){_l=e}},rejectionMapper:{get:function(){return Hh},set:function(e){Hh=e}},follow:function(e,t){return new Fe(function(n,r){return Qi(function(i,u){var p=He;p.unhandleds=[],p.onunhandled=u,p.finalize=Da(function(){var o=this;sV(function(){o.unhandleds.length===0?i():u(o.unhandleds[0])})},p.finalize),e()},t,n,r)})}});Zu&&(Zu.allSettled&&mi(Fe,"allSettled",function(){var e=ui.apply(null,arguments).map(Fc);return new Fe(function(t){e.length===0&&t([]);var n=e.length,r=new Array(n);e.forEach(function(i,u){return Fe.resolve(i).then(function(p){return r[u]={status:"fulfilled",value:p}},function(p){return r[u]={status:"rejected",reason:p}}).then(function(){return--n||t(r)})})})}),Zu.any&&typeof AggregateError<"u"&&mi(Fe,"any",function(){var e=ui.apply(null,arguments).map(Fc);return new Fe(function(t,n){e.length===0&&n(new AggregateError([]));var r=e.length,i=new Array(r);e.forEach(function(u,p){return Fe.resolve(u).then(function(o){return t(o)},function(o){i[p]=o,--r||n(new AggregateError(i))})})})}));function yS(e,t){try{t(function(n){if(e._state===null){if(n===e)throw new TypeError("A promise cannot be resolved with itself.");var r=e._lib&&Gl();n&&typeof n.then=="function"?yS(e,function(i,u){n instanceof Fe?n._then(i,u):n.then(i,u)}):(e._state=!0,e._value=n,bS(e)),r&&Yl()}},Kh.bind(null,e))}catch(n){Kh(e,n)}}function Kh(e,t){if(Ju.push(t),e._state===null){var n=e._lib&&Gl();t=Hh(t),e._state=!1,e._value=t,Kr&&t!==null&&typeof t=="object"&&!t._promise&&jj(function(){var r=Uv(t,"stack");t._promise=e,mi(t,"stack",{get:function(){return jh?r&&(r.get?r.get.apply(t):r.value):e.stack}})}),lV(e),bS(e),n&&Yl()}}function bS(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)qv(e,t[n]);var i=e._PSD;--i.ref||i.finalize(),Oa===0&&(++Oa,_l(function(){--Oa===0&&Zv()},[]))}function qv(e,t){if(e._state===null){e._listeners.push(t);return}var n=e._state?t.onFulfilled:t.onRejected;if(n===null)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++Oa,_l(oV,[n,e,t])}function oV(e,t,n){try{Uh=t;var r,i=t._value;t._state?r=e(i):(Ju.length&&(Ju=[]),r=e(i),Ju.indexOf(i)===-1&&uV(t)),n.resolve(r)}catch(u){n.reject(u)}finally{Uh=null,--Oa===0&&Zv(),--n.psd.ref||n.psd.finalize()}}function _S(e,t,n){if(t.length===n)return t;var r="";if(e._state===!1){var i=e._value,u,p;i!=null?(u=i.name||"Error",p=i.message||i,r=Nh(i,0)):(u=i,p=""),t.push(u+(p?": "+p:"")+r)}return Kr&&(r=Nh(e._stackHolder,2),r&&t.indexOf(r)===-1&&t.push(r),e._prev&&_S(e._prev,t,n)),t}function wS(e,t){var n=t?t._numPrev+1:0;n<rV&&(e._prev=t,e._numPrev=n)}function Cu(){Gl()&&Yl()}function Gl(){var e=Vh;return Vh=!1,Lc=!1,e}function Yl(){var e,t,n;do for(;bs.length>0;)for(e=bs,bs=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}while(bs.length>0);Vh=!0,Lc=!0}function Zv(){var e=ka;ka=[],e.forEach(function(r){r._PSD.onunhandled.call(null,r._value,r)});for(var t=Qu.slice(0),n=t.length;n;)t[--n]()}function sV(e){function t(){e(),Qu.splice(Qu.indexOf(t),1)}Qu.push(t),++Oa,_l(function(){--Oa===0&&Zv()},[])}function lV(e){ka.some(function(t){return t._value===e._value})||ka.push(e)}function uV(e){for(var t=ka.length;t;)if(ka[--t]._value===e._value){ka.splice(t,1);return}}function ec(e){return new Fe(bl,!1,e)}function Mt(e,t){var n=He;return function(){var r=Gl(),i=He;try{return ea(n,!0),e.apply(this,arguments)}catch(u){t&&t(u)}finally{ea(i,!1),r&&Yl()}}}var pn={awaits:0,echoes:0,id:0},cV=0,tc=[],pd=0,Dc=0,fV=0;function Qi(e,t,n,r){var i=He,u=Object.create(i);u.parent=i,u.ref=0,u.global=!1,u.id=++fV;var p=Co.env;u.env=Xv?{Promise:Fe,PromiseProp:{value:Fe,configurable:!0,writable:!0},all:Fe.all,race:Fe.race,allSettled:Fe.allSettled,any:Fe.any,resolve:Fe.resolve,reject:Fe.reject,nthen:Ey(p.nthen,u),gthen:Ey(p.gthen,u)}:{},t&&In(u,t),++i.ref,u.finalize=function(){--this.parent.ref||this.parent.finalize()};var o=ns(u,e,n,r);return u.ref===0&&u.finalize(),o}function ts(){return pn.id||(pn.id=++cV),++pn.awaits,pn.echoes+=vS,pn.id}function yi(){return pn.awaits?(--pn.awaits===0&&(pn.id=0),pn.echoes=pn.awaits*vS,!0):!1}(""+gS).indexOf("[native code]")===-1&&(ts=yi=Ct);function Fc(e){return pn.echoes&&e&&e.constructor===Zu?(ts(),e.then(function(t){return yi(),t},function(t){return yi(),Wt(t)})):e}function dV(e){++Dc,(!pn.echoes||--pn.echoes===0)&&(pn.echoes=pn.id=0),tc.push(He),ea(e,!0)}function hV(){var e=tc[tc.length-1];tc.pop(),ea(e,!1)}function ea(e,t){var n=He;if((t?pn.echoes&&(!pd++||e!==He):pd&&(!--pd||e!==He))&&CS(t?dV.bind(null,e):hV),e!==He&&(He=e,n===Co&&(Co.env=SS()),Xv)){var r=Co.env.Promise,i=e.env;Rc.then=i.nthen,r.prototype.then=i.gthen,(n.global||e.global)&&(Object.defineProperty(Ot,"Promise",i.PromiseProp),r.all=i.all,r.race=i.race,r.resolve=i.resolve,r.reject=i.reject,i.allSettled&&(r.allSettled=i.allSettled),i.any&&(r.any=i.any))}}function SS(){var e=Ot.Promise;return Xv?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(Ot,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:Rc.then,gthen:e.prototype.then}:{}}function ns(e,t,n,r,i){var u=He;try{return ea(e,!0),t(n,r,i)}finally{ea(u,!1)}}function CS(e){gS.call($h,e)}function Bc(e,t,n,r){return typeof e!="function"?e:function(){var i=He;n&&ts(),ea(t,!0);try{return e.apply(this,arguments)}finally{ea(i,!1),r&&CS(yi)}}}function Ey(e,t){return function(n,r){return e.call(this,Bc(n,t),Bc(r,t))}}var ky="unhandledrejection";function Oy(e,t){var n;try{n=t.onuncatched(e)}catch{}if(n!==!1)try{var r,i={promise:t,reason:e};if(Ot.document&&document.createEvent?(r=document.createEvent("Event"),r.initEvent(ky,!0,!0),In(r,i)):Ot.CustomEvent&&(r=new CustomEvent(ky,{detail:i}),In(r,i)),r&&Ot.dispatchEvent&&(dispatchEvent(r),!Ot.PromiseRejectionEvent&&Ot.onunhandledrejection))try{Ot.onunhandledrejection(r)}catch{}Kr&&r&&!r.defaultPrevented&&console.warn("Unhandled rejection: "+(e.stack||e))}catch{}}var Wt=Fe.reject;function Gh(e,t,n,r){if(!e.idbdb||!e._state.openComplete&&!He.letThrough&&!e._vip){if(e._state.openComplete)return Wt(new Ge.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return Wt(new Ge.DatabaseClosed);e.open().catch(Ct)}return e._state.dbReadyPromise.then(function(){return Gh(e,t,n,r)})}else{var i=e._createTransaction(t,n,e._dbSchema);try{i.create(),e._state.PR1398_maxLoop=3}catch(u){return u.name===Kv.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(function(){return Gh(e,t,n,r)})):Wt(u)}return i._promise(t,function(u,p){return Qi(function(){return He.trans=i,r(u,p,i)})}).then(function(u){return i._completion.then(function(){return u})})}}var Py="3.2.7",ba=String.fromCharCode(65535),Yh=-1/0,Jr="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",xS="String expected.",js=[],Ef=typeof navigator<"u"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),pV=Ef,vV=Ef,TS=function(e){return!/(dexie\.js|dexie\.min\.js)/.test(e)},kf="__dbnames",vd="readonly",gd="readwrite";function Fa(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var ES={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function xu(e){return typeof e=="string"&&!/\./.test(e)?function(t){return t[e]===void 0&&e in t&&(t=Wl(t),delete t[e]),t}:function(t){return t}}var gV=function(){function e(){}return e.prototype._trans=function(t,n,r){var i=this._tx||He.trans,u=this.name;function p(a,c,h){if(!h.schema[u])throw new Ge.NotFound("Table "+u+" not part of transaction");return n(h.idbtrans,h)}var o=Gl();try{return i&&i.db===this.db?i===He.trans?i._promise(t,p,r):Qi(function(){return i._promise(t,p,r)},{trans:i,transless:He.transless||He}):Gh(this.db,t,[this.name],p)}finally{o&&Yl()}},e.prototype.get=function(t,n){var r=this;return t&&t.constructor===Object?this.where(t).first(n):this._trans("readonly",function(i){return r.core.get({trans:i,key:t}).then(function(u){return r.hook.reading.fire(u)})}).then(n)},e.prototype.where=function(t){if(typeof t=="string")return new this.db.WhereClause(this,t);if(mn(t))return new this.db.WhereClause(this,"["+t.join("+")+"]");var n=Vt(t);if(n.length===1)return this.where(n[0]).equals(t[n[0]]);var r=this.schema.indexes.concat(this.schema.primKey).filter(function(l){if(l.compound&&n.every(function(s){return l.keyPath.indexOf(s)>=0})){for(var f=0;f<n.length;++f)if(n.indexOf(l.keyPath[f])===-1)return!1;return!0}return!1}).sort(function(l,f){return l.keyPath.length-f.keyPath.length})[0];if(r&&this.db._maxKey!==ba){var i=r.keyPath.slice(0,n.length);return this.where(i).equals(i.map(function(l){return t[l]}))}!r&&Kr&&console.warn("The query "+JSON.stringify(t)+" on "+this.name+" would benefit of a "+("compound index ["+n.join("+")+"]"));var u=this.schema.idxByName,p=this.db._deps.indexedDB;function o(l,f){try{return p.cmp(l,f)===0}catch{return!1}}var a=n.reduce(function(l,f){var s=l[0],d=l[1],g=u[f],v=t[f];return[s||g,s||!g?Fa(d,g&&g.multi?function(m){var y=fi(m,f);return mn(y)&&y.some(function(b){return o(v,b)})}:function(m){return o(v,fi(m,f))}):d]},[null,null]),c=a[0],h=a[1];return c?this.where(c.name).equals(t[c.keyPath]).filter(h):r?this.filter(h):this.where(n).equals("")},e.prototype.filter=function(t){return this.toCollection().and(t)},e.prototype.count=function(t){return this.toCollection().count(t)},e.prototype.offset=function(t){return this.toCollection().offset(t)},e.prototype.limit=function(t){return this.toCollection().limit(t)},e.prototype.each=function(t){return this.toCollection().each(t)},e.prototype.toArray=function(t){return this.toCollection().toArray(t)},e.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},e.prototype.orderBy=function(t){return new this.db.Collection(new this.db.WhereClause(this,mn(t)?"["+t.join("+")+"]":t))},e.prototype.reverse=function(){return this.toCollection().reverse()},e.prototype.mapToClass=function(t){this.schema.mappedClass=t;var n=function(r){if(!r)return r;var i=Object.create(t.prototype);for(var u in r)if(Jn(r,u))try{i[u]=r[u]}catch{}return i};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=n,this.hook("reading",n),t},e.prototype.defineClass=function(){function t(n){In(this,n)}return this.mapToClass(t)},e.prototype.add=function(t,n){var r=this,i=this.schema.primKey,u=i.auto,p=i.keyPath,o=t;return p&&u&&(o=xu(p)(t)),this._trans("readwrite",function(a){return r.core.mutate({trans:a,type:"add",keys:n!=null?[n]:null,values:[o]})}).then(function(a){return a.numFailures?Fe.reject(a.failures[0]):a.lastResult}).then(function(a){if(p)try{_r(t,p,a)}catch{}return a})},e.prototype.update=function(t,n){if(typeof t=="object"&&!mn(t)){var r=fi(t,this.schema.primKey.keyPath);if(r===void 0)return Wt(new Ge.InvalidArgument("Given object does not contain its primary key"));try{typeof n!="function"?Vt(n).forEach(function(i){_r(t,i,n[i])}):n(t,{value:t,primKey:r})}catch{}return this.where(":id").equals(r).modify(n)}else return this.where(":id").equals(t).modify(n)},e.prototype.put=function(t,n){var r=this,i=this.schema.primKey,u=i.auto,p=i.keyPath,o=t;return p&&u&&(o=xu(p)(t)),this._trans("readwrite",function(a){return r.core.mutate({trans:a,type:"put",values:[o],keys:n!=null?[n]:null})}).then(function(a){return a.numFailures?Fe.reject(a.failures[0]):a.lastResult}).then(function(a){if(p)try{_r(t,p,a)}catch{}return a})},e.prototype.delete=function(t){var n=this;return this._trans("readwrite",function(r){return n.core.mutate({trans:r,type:"delete",keys:[t]})}).then(function(r){return r.numFailures?Fe.reject(r.failures[0]):void 0})},e.prototype.clear=function(){var t=this;return this._trans("readwrite",function(n){return t.core.mutate({trans:n,type:"deleteRange",range:ES})}).then(function(n){return n.numFailures?Fe.reject(n.failures[0]):void 0})},e.prototype.bulkGet=function(t){var n=this;return this._trans("readonly",function(r){return n.core.getMany({keys:t,trans:r}).then(function(i){return i.map(function(u){return n.hook.reading.fire(u)})})})},e.prototype.bulkAdd=function(t,n,r){var i=this,u=Array.isArray(n)?n:void 0;r=r||(u?void 0:n);var p=r?r.allKeys:void 0;return this._trans("readwrite",function(o){var a=i.schema.primKey,c=a.auto,h=a.keyPath;if(h&&u)throw new Ge.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(u&&u.length!==t.length)throw new Ge.InvalidArgument("Arguments objects and keys must have the same length");var l=t.length,f=h&&c?t.map(xu(h)):t;return i.core.mutate({trans:o,type:"add",keys:u,values:f,wantResults:p}).then(function(s){var d=s.numFailures,g=s.results,v=s.lastResult,m=s.failures,y=p?g:v;if(d===0)return y;throw new zs(i.name+".bulkAdd(): "+d+" of "+l+" operations failed",m)})})},e.prototype.bulkPut=function(t,n,r){var i=this,u=Array.isArray(n)?n:void 0;r=r||(u?void 0:n);var p=r?r.allKeys:void 0;return this._trans("readwrite",function(o){var a=i.schema.primKey,c=a.auto,h=a.keyPath;if(h&&u)throw new Ge.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(u&&u.length!==t.length)throw new Ge.InvalidArgument("Arguments objects and keys must have the same length");var l=t.length,f=h&&c?t.map(xu(h)):t;return i.core.mutate({trans:o,type:"put",keys:u,values:f,wantResults:p}).then(function(s){var d=s.numFailures,g=s.results,v=s.lastResult,m=s.failures,y=p?g:v;if(d===0)return y;throw new zs(i.name+".bulkPut(): "+d+" of "+l+" operations failed",m)})})},e.prototype.bulkDelete=function(t){var n=this,r=t.length;return this._trans("readwrite",function(i){return n.core.mutate({trans:i,type:"delete",keys:t})}).then(function(i){var u=i.numFailures,p=i.lastResult,o=i.failures;if(u===0)return p;throw new zs(n.name+".bulkDelete(): "+u+" of "+r+" operations failed",o)})},e}();function Xl(e){var t={},n=function(o,a){if(a){for(var c=arguments.length,h=new Array(c-1);--c;)h[c-1]=arguments[c];return t[o].subscribe.apply(null,h),e}else if(typeof o=="string")return t[o]};n.addEventType=u;for(var r=1,i=arguments.length;r<i;++r)u(arguments[r]);return n;function u(o,a,c){if(typeof o=="object")return p(o);a||(a=nV),c||(c=Ct);var h={subscribers:[],fire:c,subscribe:function(l){h.subscribers.indexOf(l)===-1&&(h.subscribers.push(l),h.fire=a(h.fire,l))},unsubscribe:function(l){h.subscribers=h.subscribers.filter(function(f){return f!==l}),h.fire=h.subscribers.reduce(a,c)}};return t[o]=n[o]=h,h}function p(o){Vt(o).forEach(function(a){var c=o[a];if(mn(c))u(a,o[a][0],o[a][1]);else if(c==="asap")var h=u(a,Kl,function(){for(var f=arguments.length,s=new Array(f);f--;)s[f]=arguments[f];h.subscribers.forEach(function(d){oS(function(){d.apply(null,s)})})});else throw new Ge.InvalidArgument("Invalid event config")})}}function ql(e,t){return Qo(t).from({prototype:e}),t}function mV(e){return ql(gV.prototype,function(n,r,i){this.db=e,this._tx=i,this.name=n,this.schema=r,this.hook=e._allTables[n]?e._allTables[n].hook:Xl(null,{creating:[Qj,Ct],reading:[Jj,Kl],updating:[tV,Ct],deleting:[eV,Ct]})})}function ro(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function md(e,t){e.filter=Fa(e.filter,t)}function yd(e,t,n){var r=e.replayFilter;e.replayFilter=r?function(){return Fa(r(),t())}:t,e.justLimit=n&&!r}function yV(e,t){e.isMatch=Fa(e.isMatch,t)}function nc(e,t){if(e.isPrimKey)return t.primaryKey;var n=t.getIndexByKeyPath(e.index);if(!n)throw new Ge.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function Ay(e,t,n){var r=nc(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:e.dir==="prev",unique:!!e.unique,query:{index:r,range:e.range}})}function Tu(e,t,n,r){var i=e.replayFilter?Fa(e.filter,e.replayFilter()):e.filter;if(e.or){var u={},p=function(o,a,c){if(!i||i(a,c,function(f){return a.stop(f)},function(f){return a.fail(f)})){var h=a.primaryKey,l=""+h;l==="[object ArrayBuffer]"&&(l=""+new Uint8Array(h)),Jn(u,l)||(u[l]=!0,t(o,a,c))}};return Promise.all([e.or._iterate(p,n),Iy(Ay(e,r,n),e.algorithm,p,!e.keysOnly&&e.valueMapper)])}else return Iy(Ay(e,r,n),Fa(e.algorithm,i),t,!e.keysOnly&&e.valueMapper)}function Iy(e,t,n,r){var i=r?function(p,o,a){return n(r(p),o,a)}:n,u=Mt(i);return e.then(function(p){if(p)return p.start(function(){var o=function(){return p.continue()};(!t||t(p,function(a){return o=a},function(a){p.stop(a),o=Ct},function(a){p.fail(a),o=Ct}))&&u(p.value,p,function(a){return o=a}),o()})})}function Tn(e,t){try{var n=My(e),r=My(t);if(n!==r)return n==="Array"?1:r==="Array"?-1:n==="binary"?1:r==="binary"?-1:n==="string"?1:r==="string"?-1:n==="Date"?1:r!=="Date"?NaN:-1;switch(n){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return _V(Ry(e),Ry(t));case"Array":return bV(e,t)}}catch{}return NaN}function bV(e,t){for(var n=e.length,r=t.length,i=n<r?n:r,u=0;u<i;++u){var p=Tn(e[u],t[u]);if(p!==0)return p}return n===r?0:n<r?-1:1}function _V(e,t){for(var n=e.length,r=t.length,i=n<r?n:r,u=0;u<i;++u)if(e[u]!==t[u])return e[u]<t[u]?-1:1;return n===r?0:n<r?-1:1}function My(e){var t=typeof e;if(t!=="object")return t;if(ArrayBuffer.isView(e))return"binary";var n=Fh(e);return n==="ArrayBuffer"?"binary":n}function Ry(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}var wV=function(){function e(){}return e.prototype._read=function(t,n){var r=this._ctx;return r.error?r.table._trans(null,Wt.bind(null,r.error)):r.table._trans("readonly",t).then(n)},e.prototype._write=function(t){var n=this._ctx;return n.error?n.table._trans(null,Wt.bind(null,n.error)):n.table._trans("readwrite",t,"locked")},e.prototype._addAlgorithm=function(t){var n=this._ctx;n.algorithm=Fa(n.algorithm,t)},e.prototype._iterate=function(t,n){return Tu(this._ctx,t,n,this._ctx.table.core)},e.prototype.clone=function(t){var n=Object.create(this.constructor.prototype),r=Object.create(this._ctx);return t&&In(r,t),n._ctx=r,n},e.prototype.raw=function(){return this._ctx.valueMapper=null,this},e.prototype.each=function(t){var n=this._ctx;return this._read(function(r){return Tu(n,t,r,n.table.core)})},e.prototype.count=function(t){var n=this;return this._read(function(r){var i=n._ctx,u=i.table.core;if(ro(i,!0))return u.count({trans:r,query:{index:nc(i,u.schema),range:i.range}}).then(function(o){return Math.min(o,i.limit)});var p=0;return Tu(i,function(){return++p,!1},r,u).then(function(){return p})}).then(t)},e.prototype.sortBy=function(t,n){var r=t.split(".").reverse(),i=r[0],u=r.length-1;function p(c,h){return h?p(c[r[h]],h-1):c[i]}var o=this._ctx.dir==="next"?1:-1;function a(c,h){var l=p(c,u),f=p(h,u);return l<f?-o:l>f?o:0}return this.toArray(function(c){return c.sort(a)}).then(n)},e.prototype.toArray=function(t){var n=this;return this._read(function(r){var i=n._ctx;if(i.dir==="next"&&ro(i,!0)&&i.limit>0){var u=i.valueMapper,p=nc(i,i.table.core.schema);return i.table.core.query({trans:r,limit:i.limit,values:!0,query:{index:p,range:i.range}}).then(function(a){var c=a.result;return u?c.map(u):c})}else{var o=[];return Tu(i,function(a){return o.push(a)},r,i.table.core).then(function(){return o})}},t)},e.prototype.offset=function(t){var n=this._ctx;return t<=0?this:(n.offset+=t,ro(n)?yd(n,function(){var r=t;return function(i,u){return r===0?!0:r===1?(--r,!1):(u(function(){i.advance(r),r=0}),!1)}}):yd(n,function(){var r=t;return function(){return--r<0}}),this)},e.prototype.limit=function(t){return this._ctx.limit=Math.min(this._ctx.limit,t),yd(this._ctx,function(){var n=t;return function(r,i,u){return--n<=0&&i(u),n>=0}},!0),this},e.prototype.until=function(t,n){return md(this._ctx,function(r,i,u){return t(r.value)?(i(u),n):!0}),this},e.prototype.first=function(t){return this.limit(1).toArray(function(n){return n[0]}).then(t)},e.prototype.last=function(t){return this.reverse().first(t)},e.prototype.filter=function(t){return md(this._ctx,function(n){return t(n.value)}),yV(this._ctx,t),this},e.prototype.and=function(t){return this.filter(t)},e.prototype.or=function(t){return new this.db.WhereClause(this._ctx.table,t,this)},e.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},e.prototype.desc=function(){return this.reverse()},e.prototype.eachKey=function(t){var n=this._ctx;return n.keysOnly=!n.isMatch,this.each(function(r,i){t(i.key,i)})},e.prototype.eachUniqueKey=function(t){return this._ctx.unique="unique",this.eachKey(t)},e.prototype.eachPrimaryKey=function(t){var n=this._ctx;return n.keysOnly=!n.isMatch,this.each(function(r,i){t(i.primaryKey,i)})},e.prototype.keys=function(t){var n=this._ctx;n.keysOnly=!n.isMatch;var r=[];return this.each(function(i,u){r.push(u.key)}).then(function(){return r}).then(t)},e.prototype.primaryKeys=function(t){var n=this._ctx;if(n.dir==="next"&&ro(n,!0)&&n.limit>0)return this._read(function(i){var u=nc(n,n.table.core.schema);return n.table.core.query({trans:i,values:!1,limit:n.limit,query:{index:u,range:n.range}})}).then(function(i){var u=i.result;return u}).then(t);n.keysOnly=!n.isMatch;var r=[];return this.each(function(i,u){r.push(u.primaryKey)}).then(function(){return r}).then(t)},e.prototype.uniqueKeys=function(t){return this._ctx.unique="unique",this.keys(t)},e.prototype.firstKey=function(t){return this.limit(1).keys(function(n){return n[0]}).then(t)},e.prototype.lastKey=function(t){return this.reverse().firstKey(t)},e.prototype.distinct=function(){var t=this._ctx,n=t.index&&t.table.schema.idxByName[t.index];if(!n||!n.multi)return this;var r={};return md(this._ctx,function(i){var u=i.primaryKey.toString(),p=Jn(r,u);return r[u]=!0,!p}),this},e.prototype.modify=function(t){var n=this,r=this._ctx;return this._write(function(i){var u;if(typeof t=="function")u=t;else{var p=Vt(t),o=p.length;u=function(m){for(var y=!1,b=0;b<o;++b){var _=p[b],S=t[_];fi(m,_)!==S&&(_r(m,_,S),y=!0)}return y}}var a=r.table.core,c=a.schema.primaryKey,h=c.outbound,l=c.extractKey,f=n.db._options.modifyChunkSize||200,s=[],d=0,g=[],v=function(m,y){var b=y.failures,_=y.numFailures;d+=m-_;for(var S=0,C=Vt(b);S<C.length;S++){var T=C[S];s.push(b[T])}};return n.clone().primaryKeys().then(function(m){var y=function(b){var _=Math.min(f,m.length-b);return a.getMany({trans:i,keys:m.slice(b,b+_),cache:"immutable"}).then(function(S){for(var C=[],T=[],E=h?[]:null,O=[],D=0;D<_;++D){var j=S[D],k={value:Wl(j),primKey:m[b+D]};u.call(k,k.value,k)!==!1&&(k.value==null?O.push(m[b+D]):!h&&Tn(l(j),l(k.value))!==0?(O.push(m[b+D]),C.push(k.value)):(T.push(k.value),h&&E.push(m[b+D])))}var U=ro(r)&&r.limit===1/0&&(typeof t!="function"||t===bd)&&{index:r.index,range:r.range};return Promise.resolve(C.length>0&&a.mutate({trans:i,type:"add",values:C}).then(function(P){for(var re in P.failures)O.splice(parseInt(re),1);v(C.length,P)})).then(function(){return(T.length>0||U&&typeof t=="object")&&a.mutate({trans:i,type:"put",keys:E,values:T,criteria:U,changeSpec:typeof t!="function"&&t}).then(function(P){return v(T.length,P)})}).then(function(){return(O.length>0||U&&t===bd)&&a.mutate({trans:i,type:"delete",keys:O,criteria:U}).then(function(P){return v(O.length,P)})}).then(function(){return m.length>b+_&&y(b+f)})})};return y(0).then(function(){if(s.length>0)throw new Mc("Error modifying one or more objects",s,d,g);return m.length})})})},e.prototype.delete=function(){var t=this._ctx,n=t.range;return ro(t)&&(t.isPrimKey&&!vV||n.type===3)?this._write(function(r){var i=t.table.core.schema.primaryKey,u=n;return t.table.core.count({trans:r,query:{index:i,range:u}}).then(function(p){return t.table.core.mutate({trans:r,type:"deleteRange",range:u}).then(function(o){var a=o.failures;o.lastResult,o.results;var c=o.numFailures;if(c)throw new Mc("Could not delete some values",Object.keys(a).map(function(h){return a[h]}),p-c);return p-c})})}):this.modify(bd)},e}(),bd=function(e,t){return t.value=null};function SV(e){return ql(wV.prototype,function(n,r){this.db=e;var i=ES,u=null;if(r)try{i=r()}catch(c){u=c}var p=n._ctx,o=p.table,a=o.hook.reading.fire;this._ctx={table:o,index:p.index,isPrimKey:!p.index||o.schema.primKey.keyPath&&p.index===o.schema.primKey.name,range:i,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:u,or:p.or,valueMapper:a!==Kl?a:null}})}function CV(e,t){return e<t?-1:e===t?0:1}function xV(e,t){return e>t?-1:e===t?0:1}function zn(e,t,n){var r=e instanceof OS?new e.Collection(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function io(e){return new e.Collection(e,function(){return kS("")}).limit(0)}function TV(e){return e==="next"?function(t){return t.toUpperCase()}:function(t){return t.toLowerCase()}}function EV(e){return e==="next"?function(t){return t.toLowerCase()}:function(t){return t.toUpperCase()}}function kV(e,t,n,r,i,u){for(var p=Math.min(e.length,r.length),o=-1,a=0;a<p;++a){var c=t[a];if(c!==r[a])return i(e[a],n[a])<0?e.substr(0,a)+n[a]+n.substr(a+1):i(e[a],r[a])<0?e.substr(0,a)+r[a]+n.substr(a+1):o>=0?e.substr(0,o)+t[o]+n.substr(o+1):null;i(e[a],c)<0&&(o=a)}return p<r.length&&u==="next"?e+n.substr(e.length):p<e.length&&u==="prev"?e.substr(0,n.length):o<0?null:e.substr(0,o)+r[o]+n.substr(o+1)}function Eu(e,t,n,r){var i,u,p,o,a,c,h,l=n.length;if(!n.every(function(g){return typeof g=="string"}))return zn(e,xS);function f(g){i=TV(g),u=EV(g),p=g==="next"?CV:xV;var v=n.map(function(m){return{lower:u(m),upper:i(m)}}).sort(function(m,y){return p(m.lower,y.lower)});o=v.map(function(m){return m.upper}),a=v.map(function(m){return m.lower}),c=g,h=g==="next"?"":r}f("next");var s=new e.Collection(e,function(){return Mi(o[0],a[l-1]+r)});s._ondirectionchange=function(g){f(g)};var d=0;return s._addAlgorithm(function(g,v,m){var y=g.key;if(typeof y!="string")return!1;var b=u(y);if(t(b,a,d))return!0;for(var _=null,S=d;S<l;++S){var C=kV(y,b,o[S],a[S],p,c);C===null&&_===null?d=S+1:(_===null||p(_,C)>0)&&(_=C)}return v(_!==null?function(){g.continue(_+h)}:m),!1}),s}function Mi(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function kS(e){return{type:1,lower:e,upper:e}}var OS=function(){function e(){}return Object.defineProperty(e.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),e.prototype.between=function(t,n,r,i){r=r!==!1,i=i===!0;try{return this._cmp(t,n)>0||this._cmp(t,n)===0&&(r||i)&&!(r&&i)?io(this):new this.Collection(this,function(){return Mi(t,n,!r,!i)})}catch{return zn(this,Jr)}},e.prototype.equals=function(t){return t==null?zn(this,Jr):new this.Collection(this,function(){return kS(t)})},e.prototype.above=function(t){return t==null?zn(this,Jr):new this.Collection(this,function(){return Mi(t,void 0,!0)})},e.prototype.aboveOrEqual=function(t){return t==null?zn(this,Jr):new this.Collection(this,function(){return Mi(t,void 0,!1)})},e.prototype.below=function(t){return t==null?zn(this,Jr):new this.Collection(this,function(){return Mi(void 0,t,!1,!0)})},e.prototype.belowOrEqual=function(t){return t==null?zn(this,Jr):new this.Collection(this,function(){return Mi(void 0,t)})},e.prototype.startsWith=function(t){return typeof t!="string"?zn(this,xS):this.between(t,t+ba,!0,!0)},e.prototype.startsWithIgnoreCase=function(t){return t===""?this.startsWith(t):Eu(this,function(n,r){return n.indexOf(r[0])===0},[t],ba)},e.prototype.equalsIgnoreCase=function(t){return Eu(this,function(n,r){return n===r[0]},[t],"")},e.prototype.anyOfIgnoreCase=function(){var t=ui.apply(fo,arguments);return t.length===0?io(this):Eu(this,function(n,r){return r.indexOf(n)!==-1},t,"")},e.prototype.startsWithAnyOfIgnoreCase=function(){var t=ui.apply(fo,arguments);return t.length===0?io(this):Eu(this,function(n,r){return r.some(function(i){return n.indexOf(i)===0})},t,ba)},e.prototype.anyOf=function(){var t=this,n=ui.apply(fo,arguments),r=this._cmp;try{n.sort(r)}catch{return zn(this,Jr)}if(n.length===0)return io(this);var i=new this.Collection(this,function(){return Mi(n[0],n[n.length-1])});i._ondirectionchange=function(p){r=p==="next"?t._ascending:t._descending,n.sort(r)};var u=0;return i._addAlgorithm(function(p,o,a){for(var c=p.key;r(c,n[u])>0;)if(++u,u===n.length)return o(a),!1;return r(c,n[u])===0?!0:(o(function(){p.continue(n[u])}),!1)}),i},e.prototype.notEqual=function(t){return this.inAnyRange([[Yh,t],[t,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},e.prototype.noneOf=function(){var t=ui.apply(fo,arguments);if(t.length===0)return new this.Collection(this);try{t.sort(this._ascending)}catch{return zn(this,Jr)}var n=t.reduce(function(r,i){return r?r.concat([[r[r.length-1][1],i]]):[[Yh,i]]},null);return n.push([t[t.length-1],this.db._maxKey]),this.inAnyRange(n,{includeLowers:!1,includeUppers:!1})},e.prototype.inAnyRange=function(t,n){var r=this,i=this._cmp,u=this._ascending,p=this._descending,o=this._min,a=this._max;if(t.length===0)return io(this);if(!t.every(function(S){return S[0]!==void 0&&S[1]!==void 0&&u(S[0],S[1])<=0}))return zn(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Ge.InvalidArgument);var c=!n||n.includeLowers!==!1,h=n&&n.includeUppers===!0;function l(S,C){for(var T=0,E=S.length;T<E;++T){var O=S[T];if(i(C[0],O[1])<0&&i(C[1],O[0])>0){O[0]=o(O[0],C[0]),O[1]=a(O[1],C[1]);break}}return T===E&&S.push(C),S}var f=u;function s(S,C){return f(S[0],C[0])}var d;try{d=t.reduce(l,[]),d.sort(s)}catch{return zn(this,Jr)}var g=0,v=h?function(S){return u(S,d[g][1])>0}:function(S){return u(S,d[g][1])>=0},m=c?function(S){return p(S,d[g][0])>0}:function(S){return p(S,d[g][0])>=0};function y(S){return!v(S)&&!m(S)}var b=v,_=new this.Collection(this,function(){return Mi(d[0][0],d[d.length-1][1],!c,!h)});return _._ondirectionchange=function(S){S==="next"?(b=v,f=u):(b=m,f=p),d.sort(s)},_._addAlgorithm(function(S,C,T){for(var E=S.key;b(E);)if(++g,g===d.length)return C(T),!1;return y(E)?!0:(r._cmp(E,d[g][1])===0||r._cmp(E,d[g][0])===0||C(function(){f===u?S.continue(d[g][0]):S.continue(d[g][1])}),!1)}),_},e.prototype.startsWithAnyOf=function(){var t=ui.apply(fo,arguments);return t.every(function(n){return typeof n=="string"})?t.length===0?io(this):this.inAnyRange(t.map(function(n){return[n,n+ba]})):zn(this,"startsWithAnyOf() only works with strings")},e}();function OV(e){return ql(OS.prototype,function(n,r,i){this.db=e,this._ctx={table:n,index:r===":id"?null:r,or:i};var u=e._deps.indexedDB;if(!u)throw new Ge.MissingAPI;this._cmp=this._ascending=u.cmp.bind(u),this._descending=function(p,o){return u.cmp(o,p)},this._max=function(p,o){return u.cmp(p,o)>0?p:o},this._min=function(p,o){return u.cmp(p,o)<0?p:o},this._IDBKeyRange=e._deps.IDBKeyRange})}function Dr(e){return Mt(function(t){return wl(t),e(t.target.error),!1})}function wl(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var Sl="storagemutated",ji="x-storagemutated-1",ta=Xl(null,Sl),PV=function(){function e(){}return e.prototype._lock=function(){return ys(!He.global),++this._reculock,this._reculock===1&&!He.global&&(He.lockOwnerFor=this),this},e.prototype._unlock=function(){if(ys(!He.global),--this._reculock===0)for(He.global||(He.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var t=this._blockedFuncs.shift();try{ns(t[1],t[0])}catch{}}return this},e.prototype._locked=function(){return this._reculock&&He.lockOwnerFor!==this},e.prototype.create=function(t){var n=this;if(!this.mode)return this;var r=this.db.idbdb,i=this.db._state.dbOpenError;if(ys(!this.idbtrans),!t&&!r)switch(i&&i.name){case"DatabaseClosedError":throw new Ge.DatabaseClosed(i);case"MissingAPIError":throw new Ge.MissingAPI(i.message,i);default:throw new Ge.OpenFailed(i)}if(!this.active)throw new Ge.TransactionInactive;return ys(this._completion._state===null),t=this.idbtrans=t||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):r.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})),t.onerror=Mt(function(u){wl(u),n._reject(t.error)}),t.onabort=Mt(function(u){wl(u),n.active&&n._reject(new Ge.Abort(t.error)),n.active=!1,n.on("abort").fire(u)}),t.oncomplete=Mt(function(){n.active=!1,n._resolve(),"mutatedParts"in t&&ta.storagemutated.fire(t.mutatedParts)}),this},e.prototype._promise=function(t,n,r){var i=this;if(t==="readwrite"&&this.mode!=="readwrite")return Wt(new Ge.ReadOnly("Transaction is readonly"));if(!this.active)return Wt(new Ge.TransactionInactive);if(this._locked())return new Fe(function(p,o){i._blockedFuncs.push([function(){i._promise(t,n,r).then(p,o)},He])});if(r)return Qi(function(){var p=new Fe(function(o,a){i._lock();var c=n(o,a,i);c&&c.then&&c.then(o,a)});return p.finally(function(){return i._unlock()}),p._lib=!0,p});var u=new Fe(function(p,o){var a=n(p,o,i);a&&a.then&&a.then(p,o)});return u._lib=!0,u},e.prototype._root=function(){return this.parent?this.parent._root():this},e.prototype.waitFor=function(t){var n=this._root(),r=Fe.resolve(t);if(n._waitingFor)n._waitingFor=n._waitingFor.then(function(){return r});else{n._waitingFor=r,n._waitingQueue=[];var i=n.idbtrans.objectStore(n.storeNames[0]);(function p(){for(++n._spinCount;n._waitingQueue.length;)n._waitingQueue.shift()();n._waitingFor&&(i.get(-1/0).onsuccess=p)})()}var u=n._waitingFor;return new Fe(function(p,o){r.then(function(a){return n._waitingQueue.push(Mt(p.bind(null,a)))},function(a){return n._waitingQueue.push(Mt(o.bind(null,a)))}).finally(function(){n._waitingFor===u&&(n._waitingFor=null)})})},e.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Ge.Abort))},e.prototype.table=function(t){var n=this._memoizedTables||(this._memoizedTables={});if(Jn(n,t))return n[t];var r=this.schema[t];if(!r)throw new Ge.NotFound("Table "+t+" not part of transaction");var i=new this.db.Table(t,r,this);return i.core=this.db.core.table(t),n[t]=i,i},e}();function AV(e){return ql(PV.prototype,function(n,r,i,u,p){var o=this;this.db=e,this.mode=n,this.storeNames=r,this.schema=i,this.chromeTransactionDurability=u,this.idbtrans=null,this.on=Xl(this,"complete","error","abort"),this.parent=p||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Fe(function(a,c){o._resolve=a,o._reject=c}),this._completion.then(function(){o.active=!1,o.on.complete.fire()},function(a){var c=o.active;return o.active=!1,o.on.error.fire(a),o.parent?o.parent._reject(a):c&&o.idbtrans&&o.idbtrans.abort(),Wt(a)})})}function Xh(e,t,n,r,i,u,p){return{name:e,keyPath:t,unique:n,multi:r,auto:i,compound:u,src:(n&&!p?"&":"")+(r?"*":"")+(i?"++":"")+PS(t)}}function PS(e){return typeof e=="string"?e:e?"["+[].join.call(e,"+")+"]":""}function AS(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:sS(n,function(r){return[r.name,r]})}}function IV(e){return e.length===1?e[0]:e}var Cl=function(e){try{return e.only([[]]),Cl=function(){return[[]]},[[]]}catch{return Cl=function(){return ba},ba}};function qh(e){return e==null?function(){}:typeof e=="string"?MV(e):function(t){return fi(t,e)}}function MV(e){var t=e.split(".");return t.length===1?function(n){return n[e]}:function(n){return fi(n,e)}}function Ly(e){return[].slice.call(e)}var RV=0;function Vs(e){return e==null?":id":typeof e=="string"?e:"["+e.join("+")+"]"}function LV(e,t,n){function r(l,f){var s=Ly(l.objectStoreNames);return{schema:{name:l.name,tables:s.map(function(d){return f.objectStore(d)}).map(function(d){var g=d.keyPath,v=d.autoIncrement,m=mn(g),y=g==null,b={},_={name:d.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:y,compound:m,keyPath:g,autoIncrement:v,unique:!0,extractKey:qh(g)},indexes:Ly(d.indexNames).map(function(S){return d.index(S)}).map(function(S){var C=S.name,T=S.unique,E=S.multiEntry,O=S.keyPath,D=mn(O),j={name:C,compound:D,keyPath:O,unique:T,multiEntry:E,extractKey:qh(O)};return b[Vs(O)]=j,j}),getIndexByKeyPath:function(S){return b[Vs(S)]}};return b[":id"]=_.primaryKey,g!=null&&(b[Vs(g)]=_.primaryKey),_})},hasGetAll:s.length>0&&"getAll"in f.objectStore(s[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}function i(l){if(l.type===3)return null;if(l.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var f=l.lower,s=l.upper,d=l.lowerOpen,g=l.upperOpen,v=f===void 0?s===void 0?null:t.upperBound(s,!!g):s===void 0?t.lowerBound(f,!!d):t.bound(f,s,!!d,!!g);return v}function u(l){var f=l.name;function s(v){var m=v.trans,y=v.type,b=v.keys,_=v.values,S=v.range;return new Promise(function(C,T){C=Mt(C);var E=m.objectStore(f),O=E.keyPath==null,D=y==="put"||y==="add";if(!D&&y!=="delete"&&y!=="deleteRange")throw new Error("Invalid operation type: "+y);var j=(b||_||{length:1}).length;if(b&&_&&b.length!==_.length)throw new Error("Given keys array must have same length as given values array.");if(j===0)return C({numFailures:0,failures:{},results:[],lastResult:void 0});var k,U=[],P=[],re=0,q=function(M){++re,wl(M)};if(y==="deleteRange"){if(S.type===4)return C({numFailures:re,failures:P,results:[],lastResult:void 0});S.type===3?U.push(k=E.clear()):U.push(k=E.delete(i(S)))}else{var V=D?O?[_,b]:[_,null]:[b,null],te=V[0],A=V[1];if(D)for(var B=0;B<j;++B)U.push(k=A&&A[B]!==void 0?E[y](te[B],A[B]):E[y](te[B])),k.onerror=q;else for(var B=0;B<j;++B)U.push(k=E[y](te[B])),k.onerror=q}var I=function(M){var J=M.target.result;U.forEach(function(z,L){return z.error!=null&&(P[L]=z.error)}),C({numFailures:re,failures:P,results:y==="delete"?b:U.map(function(z){return z.result}),lastResult:J})};k.onerror=function(M){q(M),I(M)},k.onsuccess=I})}function d(v){var m=v.trans,y=v.values,b=v.query,_=v.reverse,S=v.unique;return new Promise(function(C,T){C=Mt(C);var E=b.index,O=b.range,D=m.objectStore(f),j=E.isPrimaryKey?D:D.index(E.name),k=_?S?"prevunique":"prev":S?"nextunique":"next",U=y||!("openKeyCursor"in j)?j.openCursor(i(O),k):j.openKeyCursor(i(O),k);U.onerror=Dr(T),U.onsuccess=Mt(function(P){var re=U.result;if(!re){C(null);return}re.___id=++RV,re.done=!1;var q=re.continue.bind(re),V=re.continuePrimaryKey;V&&(V=V.bind(re));var te=re.advance.bind(re),A=function(){throw new Error("Cursor not started")},B=function(){throw new Error("Cursor not stopped")};re.trans=m,re.stop=re.continue=re.continuePrimaryKey=re.advance=A,re.fail=Mt(T),re.next=function(){var I=this,M=1;return this.start(function(){return M--?I.continue():I.stop()}).then(function(){return I})},re.start=function(I){var M=new Promise(function(z,L){z=Mt(z),U.onerror=Dr(L),re.fail=L,re.stop=function(Q){re.stop=re.continue=re.continuePrimaryKey=re.advance=B,z(Q)}}),J=function(){if(U.result)try{I()}catch(z){re.fail(z)}else re.done=!0,re.start=function(){throw new Error("Cursor behind last entry")},re.stop()};return U.onsuccess=Mt(function(z){U.onsuccess=J,J()}),re.continue=q,re.continuePrimaryKey=V,re.advance=te,J(),M},C(re)},T)})}function g(v){return function(m){return new Promise(function(y,b){y=Mt(y);var _=m.trans,S=m.values,C=m.limit,T=m.query,E=C===1/0?void 0:C,O=T.index,D=T.range,j=_.objectStore(f),k=O.isPrimaryKey?j:j.index(O.name),U=i(D);if(C===0)return y({result:[]});if(v){var P=S?k.getAll(U,E):k.getAllKeys(U,E);P.onsuccess=function(te){return y({result:te.target.result})},P.onerror=Dr(b)}else{var re=0,q=S||!("openKeyCursor"in k)?k.openCursor(U):k.openKeyCursor(U),V=[];q.onsuccess=function(te){var A=q.result;if(!A)return y({result:V});if(V.push(S?A.value:A.primaryKey),++re===C)return y({result:V});A.continue()},q.onerror=Dr(b)}})}}return{name:f,schema:l,mutate:s,getMany:function(v){var m=v.trans,y=v.keys;return new Promise(function(b,_){b=Mt(b);for(var S=m.objectStore(f),C=y.length,T=new Array(C),E=0,O=0,D,j=function(re){var q=re.target;(T[q._pos]=q.result)!=null,++O===E&&b(T)},k=Dr(_),U=0;U<C;++U){var P=y[U];P!=null&&(D=S.get(y[U]),D._pos=U,D.onsuccess=j,D.onerror=k,++E)}E===0&&b(T)})},get:function(v){var m=v.trans,y=v.key;return new Promise(function(b,_){b=Mt(b);var S=m.objectStore(f),C=S.get(y);C.onsuccess=function(T){return b(T.target.result)},C.onerror=Dr(_)})},query:g(a),openCursor:d,count:function(v){var m=v.query,y=v.trans,b=m.index,_=m.range;return new Promise(function(S,C){var T=y.objectStore(f),E=b.isPrimaryKey?T:T.index(b.name),O=i(_),D=O?E.count(O):E.count();D.onsuccess=Mt(function(j){return S(j.target.result)}),D.onerror=Dr(C)})}}}var p=r(e,n),o=p.schema,a=p.hasGetAll,c=o.tables.map(function(l){return u(l)}),h={};return c.forEach(function(l){return h[l.name]=l}),{stack:"dbcore",transaction:e.transaction.bind(e),table:function(l){var f=h[l];if(!f)throw new Error("Table '"+l+"' not found");return h[l]},MIN_KEY:-1/0,MAX_KEY:Cl(t),schema:o}}function DV(e,t){return t.reduce(function(n,r){var i=r.create;return lt(lt({},n),i(n))},e)}function FV(e,t,n,r){var i=n.IDBKeyRange;n.indexedDB;var u=DV(LV(t,i,r),e.dbcore);return{dbcore:u}}function Jv(e,t){var n=e._novip,r=t.db,i=FV(n._middlewares,r,n._deps,t);n.core=i.dbcore,n.tables.forEach(function(u){var p=u.name;n.core.schema.tables.some(function(o){return o.name===p})&&(u.core=n.core.table(p),n[p]instanceof n.Table&&(n[p].core=u.core))})}function Nc(e,t,n,r){var i=e._novip;n.forEach(function(u){var p=r[u];t.forEach(function(o){var a=Uv(o,u);(!a||"value"in a&&a.value===void 0)&&(o===i.Transaction.prototype||o instanceof i.Transaction?mi(o,u,{get:function(){return this.table(u)},set:function(c){iS(this,u,{value:c,writable:!0,configurable:!0,enumerable:!0})}}):o[u]=new i.Table(u,p))})})}function Zh(e,t){var n=e._novip;t.forEach(function(r){for(var i in r)r[i]instanceof n.Table&&delete r[i]})}function BV(e,t){return e._cfg.version-t._cfg.version}function NV(e,t,n,r){var i=e._dbSchema,u=e._createTransaction("readwrite",e._storeNames,i);u.create(n),u._completion.catch(r);var p=u._reject.bind(u),o=He.transless||He;Qi(function(){He.trans=u,He.transless=o,t===0?(Vt(i).forEach(function(a){Qv(n,a,i[a].primKey,i[a].indexes)}),Jv(e,n),Fe.follow(function(){return e.on.populate.fire(u)}).catch(p)):$V(e,t,u,n).catch(p)})}function $V(e,t,n,r){var i=e._novip,u=[],p=i._versions,o=i._dbSchema=eg(i,i.idbdb,r),a=!1,c=p.filter(function(l){return l._cfg.version>=t});c.forEach(function(l){u.push(function(){var f=o,s=l._cfg.dbschema;Qh(i,f,r),Qh(i,s,r),o=i._dbSchema=s;var d=IS(f,s);d.add.forEach(function(_){Qv(r,_[0],_[1].primKey,_[1].indexes)}),d.change.forEach(function(_){if(_.recreate)throw new Ge.Upgrade("Not yet support for changing primary key");var S=r.objectStore(_.name);_.add.forEach(function(C){return Jh(S,C)}),_.change.forEach(function(C){S.deleteIndex(C.name),Jh(S,C)}),_.del.forEach(function(C){return S.deleteIndex(C)})});var g=l._cfg.contentUpgrade;if(g&&l._cfg.version>t){Jv(i,r),n._memoizedTables={},a=!0;var v=lS(s);d.del.forEach(function(_){v[_]=f[_]}),Zh(i,[i.Transaction.prototype]),Nc(i,[i.Transaction.prototype],Vt(v),v),n.schema=v;var m=Hv(g);m&&ts();var y,b=Fe.follow(function(){if(y=g(n),y&&m){var _=yi.bind(null,null);y.then(_,_)}});return y&&typeof y.then=="function"?Fe.resolve(y):b.then(function(){return y})}}),u.push(function(f){if(!a||!pV){var s=l._cfg.dbschema;jV(s,f)}Zh(i,[i.Transaction.prototype]),Nc(i,[i.Transaction.prototype],i._storeNames,i._dbSchema),n.schema=i._dbSchema})});function h(){return u.length?Fe.resolve(u.shift()(n.idbtrans)).then(h):Fe.resolve()}return h().then(function(){zV(o,r)})}function IS(e,t){var n={del:[],add:[],change:[]},r;for(r in e)t[r]||n.del.push(r);for(r in t){var i=e[r],u=t[r];if(!i)n.add.push([r,u]);else{var p={name:r,def:u,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")!=""+(u.primKey.keyPath||"")||i.primKey.auto!==u.primKey.auto&&!Ef)p.recreate=!0,n.change.push(p);else{var o=i.idxByName,a=u.idxByName,c=void 0;for(c in o)a[c]||p.del.push(c);for(c in a){var h=o[c],l=a[c];h?h.src!==l.src&&p.change.push(l):p.add.push(l)}(p.del.length>0||p.add.length>0||p.change.length>0)&&n.change.push(p)}}}return n}function Qv(e,t,n,r){var i=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach(function(u){return Jh(i,u)}),i}function zV(e,t){Vt(e).forEach(function(n){t.db.objectStoreNames.contains(n)||Qv(t,n,e[n].primKey,e[n].indexes)})}function jV(e,t){[].slice.call(t.db.objectStoreNames).forEach(function(n){return e[n]==null&&t.db.deleteObjectStore(n)})}function Jh(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function eg(e,t,n){var r={},i=xf(t.objectStoreNames,0);return i.forEach(function(u){for(var p=n.objectStore(u),o=p.keyPath,a=Xh(PS(o),o||"",!1,!1,!!p.autoIncrement,o&&typeof o!="string",!0),c=[],h=0;h<p.indexNames.length;++h){var l=p.index(p.indexNames[h]);o=l.keyPath;var f=Xh(l.name,o,!!l.unique,!!l.multiEntry,!1,o&&typeof o!="string",!1);c.push(f)}r[u]=AS(u,a,c)}),r}function VV(e,t,n){var r=e._novip;r.verno=t.version/10;var i=r._dbSchema=eg(r,t,n);r._storeNames=xf(t.objectStoreNames,0),Nc(r,[r._allTables],Vt(i),i)}function UV(e,t){var n=eg(e,e.idbdb,t),r=IS(n,e._dbSchema);return!(r.add.length||r.change.some(function(i){return i.add.length||i.change.length}))}function Qh(e,t,n){for(var r=e._novip,i=n.db.objectStoreNames,u=0;u<i.length;++u){var p=i[u],o=n.objectStore(p);r._hasGetAll="getAll"in o;for(var a=0;a<o.indexNames.length;++a){var c=o.indexNames[a],h=o.index(c).keyPath,l=typeof h=="string"?h:"["+xf(h).join("+")+"]";if(t[p]){var f=t[p].idxByName[l];f&&(f.name=c,delete t[p].idxByName[l],t[p].idxByName[c]=f)}}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&Ot.WorkerGlobalScope&&Ot instanceof Ot.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(r._hasGetAll=!1)}function HV(e){return e.split(",").map(function(t,n){t=t.trim();var r=t.replace(/([&*]|\+\+)/g,""),i=/^\[/.test(r)?r.match(/^\[(.*)\]$/)[1].split("+"):r;return Xh(r,i||null,/\&/.test(t),/\*/.test(t),/\+\+/.test(t),mn(i),n===0)})}var WV=function(){function e(){}return e.prototype._parseStoresSpec=function(t,n){Vt(t).forEach(function(r){if(t[r]!==null){var i=HV(t[r]),u=i.shift();if(u.multi)throw new Ge.Schema("Primary key cannot be multi-valued");i.forEach(function(p){if(p.auto)throw new Ge.Schema("Only primary key can be marked as autoIncrement (++)");if(!p.keyPath)throw new Ge.Schema("Index must have a name and cannot be an empty string")}),n[r]=AS(r,u,i)}})},e.prototype.stores=function(t){var n=this.db;this._cfg.storesSource=this._cfg.storesSource?In(this._cfg.storesSource,t):t;var r=n._versions,i={},u={};return r.forEach(function(p){In(i,p._cfg.storesSource),u=p._cfg.dbschema={},p._parseStoresSpec(i,u)}),n._dbSchema=u,Zh(n,[n._allTables,n,n.Transaction.prototype]),Nc(n,[n._allTables,n,n.Transaction.prototype,this._cfg.tables],Vt(u),u),n._storeNames=Vt(u),this},e.prototype.upgrade=function(t){return this._cfg.contentUpgrade=Gv(this._cfg.contentUpgrade||Ct,t),this},e}();function KV(e){return ql(WV.prototype,function(n){this.db=e,this._cfg={version:n,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}function tg(e,t){var n=e._dbNamesDB;return n||(n=e._dbNamesDB=new ag(kf,{addons:[],indexedDB:e,IDBKeyRange:t}),n.version(1).stores({dbnames:"name"})),n.table("dbnames")}function ng(e){return e&&typeof e.databases=="function"}function GV(e){var t=e.indexedDB,n=e.IDBKeyRange;return ng(t)?Promise.resolve(t.databases()).then(function(r){return r.map(function(i){return i.name}).filter(function(i){return i!==kf})}):tg(t,n).toCollection().primaryKeys()}function YV(e,t){var n=e.indexedDB,r=e.IDBKeyRange;!ng(n)&&t!==kf&&tg(n,r).put({name:t}).catch(Ct)}function XV(e,t){var n=e.indexedDB,r=e.IDBKeyRange;!ng(n)&&t!==kf&&tg(n,r).delete(t).catch(Ct)}function ep(e){return Qi(function(){return He.letThrough=!0,e()})}function qV(){var e=!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent);if(!e||!indexedDB.databases)return Promise.resolve();var t;return new Promise(function(n){var r=function(){return indexedDB.databases().finally(n)};t=setInterval(r,100),r()}).finally(function(){return clearInterval(t)})}function ZV(e){var t=e._state,n=e._deps.indexedDB;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then(function(){return t.dbOpenError?Wt(t.dbOpenError):e});Kr&&(t.openCanceller._stackHolder=Ka()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;var r=t.openCanceller;function i(){if(t.openCanceller!==r)throw new Ge.DatabaseClosed("db.open() was cancelled")}var u=t.dbReadyResolve,p=null,o=!1,a=function(){return new Fe(function(c,h){if(i(),!n)throw new Ge.MissingAPI;var l=e.name,f=t.autoSchema?n.open(l):n.open(l,Math.round(e.verno*10));if(!f)throw new Ge.MissingAPI;f.onerror=Dr(h),f.onblocked=Mt(e._fireOnBlocked),f.onupgradeneeded=Mt(function(s){if(p=f.transaction,t.autoSchema&&!e._options.allowEmptyDB){f.onerror=wl,p.abort(),f.result.close();var d=n.deleteDatabase(l);d.onsuccess=d.onerror=Mt(function(){h(new Ge.NoSuchDatabase("Database "+l+" doesnt exist"))})}else{p.onerror=Dr(h);var g=s.oldVersion>Math.pow(2,62)?0:s.oldVersion;o=g<1,e._novip.idbdb=f.result,NV(e,g/10,p,h)}},h),f.onsuccess=Mt(function(){p=null;var s=e._novip.idbdb=f.result,d=xf(s.objectStoreNames);if(d.length>0)try{var g=s.transaction(IV(d),"readonly");t.autoSchema?VV(e,s,g):(Qh(e,e._dbSchema,g),UV(e,g)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),Jv(e,g)}catch{}js.push(e),s.onversionchange=Mt(function(v){t.vcFired=!0,e.on("versionchange").fire(v)}),s.onclose=Mt(function(v){e.on("close").fire(v)}),o&&YV(e._deps,l),c()},h)}).catch(function(c){return c&&c.name==="UnknownError"&&t.PR1398_maxLoop>0?(t.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),a()):Fe.reject(c)})};return Fe.race([r,(typeof navigator>"u"?Fe.resolve():qV()).then(a)]).then(function(){return i(),t.onReadyBeingFired=[],Fe.resolve(ep(function(){return e.on.ready.fire(e.vip)})).then(function c(){if(t.onReadyBeingFired.length>0){var h=t.onReadyBeingFired.reduce(Gv,Ct);return t.onReadyBeingFired=[],Fe.resolve(ep(function(){return h(e.vip)})).then(c)}})}).finally(function(){t.onReadyBeingFired=null,t.isBeingOpened=!1}).then(function(){return e}).catch(function(c){t.dbOpenError=c;try{p&&p.abort()}catch{}return r===t.openCanceller&&e._close(),Wt(c)}).finally(function(){t.openComplete=!0,u()})}function tp(e){var t=function(p){return e.next(p)},n=function(p){return e.throw(p)},r=u(t),i=u(n);function u(p){return function(o){var a=p(o),c=a.value;return a.done?c:!c||typeof c.then!="function"?mn(c)?Promise.all(c).then(r,i):r(c):c.then(r,i)}}return u(t)()}function JV(e,t,n){var r=arguments.length;if(r<2)throw new Ge.InvalidArgument("Too few arguments");for(var i=new Array(r-1);--r;)i[r-1]=arguments[r];n=i.pop();var u=uS(i);return[e,u,n]}function MS(e,t,n,r,i){return Fe.resolve().then(function(){var u=He.transless||He,p=e._createTransaction(t,n,e._dbSchema,r),o={trans:p,transless:u};if(r)p.idbtrans=r.idbtrans;else try{p.create(),e._state.PR1398_maxLoop=3}catch(l){return l.name===Kv.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(function(){return MS(e,t,n,null,i)})):Wt(l)}var a=Hv(i);a&&ts();var c,h=Fe.follow(function(){if(c=i.call(p,p),c)if(a){var l=yi.bind(null,null);c.then(l,l)}else typeof c.next=="function"&&typeof c.throw=="function"&&(c=tp(c))},o);return(c&&typeof c.then=="function"?Fe.resolve(c).then(function(l){return p.active?l:Wt(new Ge.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):h.then(function(){return c})).then(function(l){return r&&p._resolve(),p._completion.then(function(){return l})}).catch(function(l){return p._reject(l),Wt(l)})})}function ku(e,t,n){for(var r=mn(e)?e.slice():[e],i=0;i<n;++i)r.push(t);return r}function QV(e){return lt(lt({},e),{table:function(t){var n=e.table(t),r=n.schema,i={},u=[];function p(g,v,m){var y=Vs(g),b=i[y]=i[y]||[],_=g==null?0:typeof g=="string"?1:g.length,S=v>0,C=lt(lt({},m),{isVirtual:S,keyTail:v,keyLength:_,extractKey:qh(g),unique:!S&&m.unique});if(b.push(C),C.isPrimaryKey||u.push(C),_>1){var T=_===2?g[0]:g.slice(0,_-1);p(T,v+1,m)}return b.sort(function(E,O){return E.keyTail-O.keyTail}),C}var o=p(r.primaryKey.keyPath,0,r.primaryKey);i[":id"]=[o];for(var a=0,c=r.indexes;a<c.length;a++){var h=c[a];p(h.keyPath,0,h)}function l(g){var v=i[Vs(g)];return v&&v[0]}function f(g,v){return{type:g.type===1?2:g.type,lower:ku(g.lower,g.lowerOpen?e.MAX_KEY:e.MIN_KEY,v),lowerOpen:!0,upper:ku(g.upper,g.upperOpen?e.MIN_KEY:e.MAX_KEY,v),upperOpen:!0}}function s(g){var v=g.query.index;return v.isVirtual?lt(lt({},g),{query:{index:v,range:f(g.query.range,v.keyTail)}}):g}var d=lt(lt({},n),{schema:lt(lt({},r),{primaryKey:o,indexes:u,getIndexByKeyPath:l}),count:function(g){return n.count(s(g))},query:function(g){return n.query(s(g))},openCursor:function(g){var v=g.query.index,m=v.keyTail,y=v.isVirtual,b=v.keyLength;if(!y)return n.openCursor(g);function _(S){function C(E){E!=null?S.continue(ku(E,g.reverse?e.MAX_KEY:e.MIN_KEY,m)):g.unique?S.continue(S.key.slice(0,b).concat(g.reverse?e.MIN_KEY:e.MAX_KEY,m)):S.continue()}var T=Object.create(S,{continue:{value:C},continuePrimaryKey:{value:function(E,O){S.continuePrimaryKey(ku(E,e.MAX_KEY,m),O)}},primaryKey:{get:function(){return S.primaryKey}},key:{get:function(){var E=S.key;return b===1?E[0]:E.slice(0,b)}},value:{get:function(){return S.value}}});return T}return n.openCursor(s(g)).then(function(S){return S&&_(S)})}});return d}})}var e9={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:QV};function rg(e,t,n,r){return n=n||{},r=r||"",Vt(e).forEach(function(i){if(!Jn(t,i))n[r+i]=void 0;else{var u=e[i],p=t[i];if(typeof u=="object"&&typeof p=="object"&&u&&p){var o=Fh(u),a=Fh(p);o!==a?n[r+i]=t[i]:o==="Object"?rg(u,p,n,r+i+"."):u!==p&&(n[r+i]=t[i])}else u!==p&&(n[r+i]=t[i])}}),Vt(t).forEach(function(i){Jn(e,i)||(n[r+i]=t[i])}),n}function t9(e,t){return t.type==="delete"?t.keys:t.keys||t.values.map(e.extractKey)}var n9={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(e){return lt(lt({},e),{table:function(t){var n=e.table(t),r=n.schema.primaryKey,i=lt(lt({},n),{mutate:function(u){var p=He.trans,o=p.table(t).hook,a=o.deleting,c=o.creating,h=o.updating;switch(u.type){case"add":if(c.fire===Ct)break;return p._promise("readwrite",function(){return l(u)},!0);case"put":if(c.fire===Ct&&h.fire===Ct)break;return p._promise("readwrite",function(){return l(u)},!0);case"delete":if(a.fire===Ct)break;return p._promise("readwrite",function(){return l(u)},!0);case"deleteRange":if(a.fire===Ct)break;return p._promise("readwrite",function(){return f(u)},!0)}return n.mutate(u);function l(d){var g=He.trans,v=d.keys||t9(r,d);if(!v)throw new Error("Keys missing");return d=d.type==="add"||d.type==="put"?lt(lt({},d),{keys:v}):lt({},d),d.type!=="delete"&&(d.values=Lh([],d.values,!0)),d.keys&&(d.keys=Lh([],d.keys,!0)),r9(n,d,v).then(function(m){var y=v.map(function(b,_){var S=m[_],C={onerror:null,onsuccess:null};if(d.type==="delete")a.fire.call(C,b,S,g);else if(d.type==="add"||S===void 0){var T=c.fire.call(C,b,d.values[_],g);b==null&&T!=null&&(b=T,d.keys[_]=b,r.outbound||_r(d.values[_],r.keyPath,b))}else{var E=rg(S,d.values[_]),O=h.fire.call(C,E,b,S,g);if(O){var D=d.values[_];Object.keys(O).forEach(function(j){Jn(D,j)?D[j]=O[j]:_r(D,j,O[j])})}}return C});return n.mutate(d).then(function(b){for(var _=b.failures,S=b.results,C=b.numFailures,T=b.lastResult,E=0;E<v.length;++E){var O=S?S[E]:v[E],D=y[E];O==null?D.onerror&&D.onerror(_[E]):D.onsuccess&&D.onsuccess(d.type==="put"&&m[E]?d.values[E]:O)}return{failures:_,results:S,numFailures:C,lastResult:T}}).catch(function(b){return y.forEach(function(_){return _.onerror&&_.onerror(b)}),Promise.reject(b)})})}function f(d){return s(d.trans,d.range,1e4)}function s(d,g,v){return n.query({trans:d,values:!1,query:{index:r,range:g},limit:v}).then(function(m){var y=m.result;return l({type:"delete",keys:y,trans:d}).then(function(b){return b.numFailures>0?Promise.reject(b.failures[0]):y.length<v?{failures:[],numFailures:0,lastResult:void 0}:s(d,lt(lt({},g),{lower:y[y.length-1],lowerOpen:!0}),v)})})}}});return i}})}};function r9(e,t,n){return t.type==="add"?Promise.resolve([]):e.getMany({trans:t.trans,keys:n,cache:"immutable"})}function RS(e,t,n){try{if(!t||t.keys.length<e.length)return null;for(var r=[],i=0,u=0;i<t.keys.length&&u<e.length;++i)Tn(t.keys[i],e[u])===0&&(r.push(n?Wl(t.values[i]):t.values[i]),++u);return r.length===e.length?r:null}catch{return null}}var i9={stack:"dbcore",level:-1,create:function(e){return{table:function(t){var n=e.table(t);return lt(lt({},n),{getMany:function(r){if(!r.cache)return n.getMany(r);var i=RS(r.keys,r.trans._cache,r.cache==="clone");return i?Fe.resolve(i):n.getMany(r).then(function(u){return r.trans._cache={keys:r.keys,values:r.cache==="clone"?Wl(u):u},u})},mutate:function(r){return r.type!=="add"&&(r.trans._cache=null),n.mutate(r)}})}}}},_d;function ig(e){return!("from"in e)}var ii=function(e,t){if(this)In(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0});else{var n=new ii;return e&&"d"in e&&In(n,e),n}};Fo(ii.prototype,(_d={add:function(e){return $c(this,e),this},addKey:function(e){return xl(this,e,e),this},addKeys:function(e){var t=this;return e.forEach(function(n){return xl(t,n,n)}),this}},_d[Bh]=function(){return np(this)},_d));function xl(e,t,n){var r=Tn(t,n);if(!isNaN(r)){if(r>0)throw RangeError();if(ig(e))return In(e,{from:t,to:n,d:1});var i=e.l,u=e.r;if(Tn(n,e.from)<0)return i?xl(i,t,n):e.l={from:t,to:n,d:1,l:null,r:null},Dy(e);if(Tn(t,e.to)>0)return u?xl(u,t,n):e.r={from:t,to:n,d:1,l:null,r:null},Dy(e);Tn(t,e.from)<0&&(e.from=t,e.l=null,e.d=u?u.d+1:1),Tn(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);var p=!e.r;i&&!e.l&&$c(e,i),u&&p&&$c(e,u)}}function $c(e,t){function n(r,i){var u=i.from,p=i.to,o=i.l,a=i.r;xl(r,u,p),o&&n(r,o),a&&n(r,a)}ig(t)||n(e,t)}function a9(e,t){var n=np(t),r=n.next();if(r.done)return!1;for(var i=r.value,u=np(e),p=u.next(i.from),o=p.value;!r.done&&!p.done;){if(Tn(o.from,i.to)<=0&&Tn(o.to,i.from)>=0)return!0;Tn(i.from,o.from)<0?i=(r=n.next(o.from)).value:o=(p=u.next(i.from)).value}return!1}function np(e){var t=ig(e)?null:{s:0,n:e};return{next:function(n){for(var r=arguments.length>0;t;)switch(t.s){case 0:if(t.s=1,r)for(;t.n.l&&Tn(n,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!r||Tn(n,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function Dy(e){var t,n,r=(((t=e.r)===null||t===void 0?void 0:t.d)||0)-(((n=e.l)===null||n===void 0?void 0:n.d)||0),i=r>1?"r":r<-1?"l":"";if(i){var u=i==="r"?"l":"r",p=lt({},e),o=e[i];e.from=o.from,e.to=o.to,e[i]=o[i],p[i]=o[u],e[u]=p,p.d=Fy(p)}e.d=Fy(e)}function Fy(e){var t=e.r,n=e.l;return(t?n?Math.max(t.d,n.d):t.d:n?n.d:0)+1}var o9={stack:"dbcore",level:0,create:function(e){var t=e.schema.name,n=new ii(e.MIN_KEY,e.MAX_KEY);return lt(lt({},e),{table:function(r){var i=e.table(r),u=i.schema,p=u.primaryKey,o=p.extractKey,a=p.outbound,c=lt(lt({},i),{mutate:function(f){var s=f.trans,d=s.mutatedParts||(s.mutatedParts={}),g=function(T){var E="idb://"+t+"/"+r+"/"+T;return d[E]||(d[E]=new ii)},v=g(""),m=g(":dels"),y=f.type,b=f.type==="deleteRange"?[f.range]:f.type==="delete"?[f.keys]:f.values.length<50?[[],f.values]:[],_=b[0],S=b[1],C=f.trans._cache;return i.mutate(f).then(function(T){if(mn(_)){y!=="delete"&&(_=T.results),v.addKeys(_);var E=RS(_,C);!E&&y!=="add"&&m.addKeys(_),(E||S)&&s9(g,u,E,S)}else if(_){var O={from:_.lower,to:_.upper};m.add(O),v.add(O)}else v.add(n),m.add(n),u.indexes.forEach(function(D){return g(D.name).add(n)});return T})}}),h=function(f){var s,d,g=f.query,v=g.index,m=g.range;return[v,new ii((s=m.lower)!==null&&s!==void 0?s:e.MIN_KEY,(d=m.upper)!==null&&d!==void 0?d:e.MAX_KEY)]},l={get:function(f){return[p,new ii(f.key)]},getMany:function(f){return[p,new ii().addKeys(f.keys)]},count:h,query:h,openCursor:h};return Vt(l).forEach(function(f){c[f]=function(s){var d=He.subscr;if(d){var g=function(C){var T="idb://"+t+"/"+r+"/"+C;return d[T]||(d[T]=new ii)},v=g(""),m=g(":dels"),y=l[f](s),b=y[0],_=y[1];if(g(b.name||"").add(_),!b.isPrimaryKey)if(f==="count")m.add(n);else{var S=f==="query"&&a&&s.values&&i.query(lt(lt({},s),{values:!1}));return i[f].apply(this,arguments).then(function(C){if(f==="query"){if(a&&s.values)return S.then(function(D){var j=D.result;return v.addKeys(j),C});var T=s.values?C.result.map(o):C.result;s.values?v.addKeys(T):m.addKeys(T)}else if(f==="openCursor"){var E=C,O=s.values;return E&&Object.create(E,{key:{get:function(){return m.addKey(E.primaryKey),E.key}},primaryKey:{get:function(){var D=E.primaryKey;return m.addKey(D),D}},value:{get:function(){return O&&v.addKey(E.primaryKey),E.value}}})}return C})}}return i[f].apply(this,arguments)}}),c}})}};function s9(e,t,n,r){function i(u){var p=e(u.name||"");function o(c){return c!=null?u.extractKey(c):null}var a=function(c){return u.multiEntry&&mn(c)?c.forEach(function(h){return p.addKey(h)}):p.addKey(c)};(n||r).forEach(function(c,h){var l=n&&o(n[h]),f=r&&o(r[h]);Tn(l,f)!==0&&(l!=null&&a(l),f!=null&&a(f))})}t.indexes.forEach(i)}var ag=function(){function e(t,n){var r=this;this._middlewares={},this.verno=0;var i=e.dependencies;this._options=n=lt({addons:e.addons,autoOpen:!0,indexedDB:i.indexedDB,IDBKeyRange:i.IDBKeyRange},n),this._deps={indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange};var u=n.addons;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var p={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:Ct,dbReadyPromise:null,cancelOpen:Ct,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};p.dbReadyPromise=new Fe(function(o){p.dbReadyResolve=o}),p.openCanceller=new Fe(function(o,a){p.cancelOpen=a}),this._state=p,this.name=t,this.on=Xl(this,"populate","blocked","versionchange","close",{ready:[Gv,Ct]}),this.on.ready.subscribe=aS(this.on.ready.subscribe,function(o){return function(a,c){e.vip(function(){var h=r._state;if(h.openComplete)h.dbOpenError||Fe.resolve().then(a),c&&o(a);else if(h.onReadyBeingFired)h.onReadyBeingFired.push(a),c&&o(a);else{o(a);var l=r;c||o(function f(){l.on.ready.unsubscribe(a),l.on.ready.unsubscribe(f)})}})}}),this.Collection=SV(this),this.Table=mV(this),this.Transaction=AV(this),this.Version=KV(this),this.WhereClause=OV(this),this.on("versionchange",function(o){o.newVersion>0?console.warn("Another connection wants to upgrade database '"+r.name+"'. Closing db now to resume the upgrade."):console.warn("Another connection wants to delete database '"+r.name+"'. Closing db now to resume the delete request."),r.close()}),this.on("blocked",function(o){!o.newVersion||o.newVersion<o.oldVersion?console.warn("Dexie.delete('"+r.name+"') was blocked"):console.warn("Upgrade '"+r.name+"' blocked by other connection holding version "+o.oldVersion/10)}),this._maxKey=Cl(n.IDBKeyRange),this._createTransaction=function(o,a,c,h){return new r.Transaction(o,a,c,r._options.chromeTransactionDurability,h)},this._fireOnBlocked=function(o){r.on("blocked").fire(o),js.filter(function(a){return a.name===r.name&&a!==r&&!a._state.vcFired}).map(function(a){return a.on("versionchange").fire(o)})},this.use(e9),this.use(n9),this.use(o9),this.use(i9),this.vip=Object.create(this,{_vip:{value:!0}}),u.forEach(function(o){return o(r)})}return e.prototype.version=function(t){if(isNaN(t)||t<.1)throw new Ge.Type("Given version is not a positive number");if(t=Math.round(t*10)/10,this.idbdb||this._state.isBeingOpened)throw new Ge.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,t);var n=this._versions,r=n.filter(function(i){return i._cfg.version===t})[0];return r||(r=new this.Version(t),n.push(r),n.sort(BV),r.stores({}),this._state.autoSchema=!1,r)},e.prototype._whenReady=function(t){var n=this;return this.idbdb&&(this._state.openComplete||He.letThrough||this._vip)?t():new Fe(function(r,i){if(n._state.openComplete)return i(new Ge.DatabaseClosed(n._state.dbOpenError));if(!n._state.isBeingOpened){if(!n._options.autoOpen){i(new Ge.DatabaseClosed);return}n.open().catch(Ct)}n._state.dbReadyPromise.then(r,i)}).then(t)},e.prototype.use=function(t){var n=t.stack,r=t.create,i=t.level,u=t.name;u&&this.unuse({stack:n,name:u});var p=this._middlewares[n]||(this._middlewares[n]=[]);return p.push({stack:n,create:r,level:i==null?10:i,name:u}),p.sort(function(o,a){return o.level-a.level}),this},e.prototype.unuse=function(t){var n=t.stack,r=t.name,i=t.create;return n&&this._middlewares[n]&&(this._middlewares[n]=this._middlewares[n].filter(function(u){return i?u.create!==i:r?u.name!==r:!1})),this},e.prototype.open=function(){return ZV(this)},e.prototype._close=function(){var t=this._state,n=js.indexOf(this);if(n>=0&&js.splice(n,1),this.idbdb){try{this.idbdb.close()}catch{}this._novip.idbdb=null}t.dbReadyPromise=new Fe(function(r){t.dbReadyResolve=r}),t.openCanceller=new Fe(function(r,i){t.cancelOpen=i})},e.prototype.close=function(){this._close();var t=this._state;this._options.autoOpen=!1,t.dbOpenError=new Ge.DatabaseClosed,t.isBeingOpened&&t.cancelOpen(t.dbOpenError)},e.prototype.delete=function(){var t=this,n=arguments.length>0,r=this._state;return new Fe(function(i,u){var p=function(){t.close();var o=t._deps.indexedDB.deleteDatabase(t.name);o.onsuccess=Mt(function(){XV(t._deps,t.name),i()}),o.onerror=Dr(u),o.onblocked=t._fireOnBlocked};if(n)throw new Ge.InvalidArgument("Arguments not allowed in db.delete()");r.isBeingOpened?r.dbReadyPromise.then(p):p()})},e.prototype.backendDB=function(){return this.idbdb},e.prototype.isOpen=function(){return this.idbdb!==null},e.prototype.hasBeenClosed=function(){var t=this._state.dbOpenError;return t&&t.name==="DatabaseClosed"},e.prototype.hasFailed=function(){return this._state.dbOpenError!==null},e.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(e.prototype,"tables",{get:function(){var t=this;return Vt(this._allTables).map(function(n){return t._allTables[n]})},enumerable:!1,configurable:!0}),e.prototype.transaction=function(){var t=JV.apply(this,arguments);return this._transaction.apply(this,t)},e.prototype._transaction=function(t,n,r){var i=this,u=He.trans;(!u||u.db!==this||t.indexOf("!")!==-1)&&(u=null);var p=t.indexOf("?")!==-1;t=t.replace("!","").replace("?","");var o,a;try{if(a=n.map(function(h){var l=h instanceof i.Table?h.name:h;if(typeof l!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return l}),t=="r"||t===vd)o=vd;else if(t=="rw"||t==gd)o=gd;else throw new Ge.InvalidArgument("Invalid transaction mode: "+t);if(u){if(u.mode===vd&&o===gd)if(p)u=null;else throw new Ge.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");u&&a.forEach(function(h){if(u&&u.storeNames.indexOf(h)===-1)if(p)u=null;else throw new Ge.SubTransaction("Table "+h+" not included in parent transaction.")}),p&&u&&!u.active&&(u=null)}}catch(h){return u?u._promise(null,function(l,f){f(h)}):Wt(h)}var c=MS.bind(null,this,o,a,u,r);return u?u._promise(o,c,"lock"):He.trans?ns(He.transless,function(){return i._whenReady(c)}):this._whenReady(c)},e.prototype.table=function(t){if(!Jn(this._allTables,t))throw new Ge.InvalidTable("Table "+t+" does not exist");return this._allTables[t]},e}(),l9=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",u9=function(){function e(t){this._subscribe=t}return e.prototype.subscribe=function(t,n,r){return this._subscribe(!t||typeof t=="function"?{next:t,error:n,complete:r}:t)},e.prototype[l9]=function(){return this},e}();function LS(e,t){return Vt(t).forEach(function(n){var r=e[n]||(e[n]=new ii);$c(r,t[n])}),e}function og(e){var t=!1,n=void 0,r=new u9(function(i){var u=Hv(e);function p(v){u&&ts();var m=function(){return Qi(e,{subscr:v,trans:null})},y=He.trans?ns(He.transless,m):m();return u&&y.then(yi,yi),y}var o=!1,a={},c={},h={get closed(){return o},unsubscribe:function(){o=!0,ta.storagemutated.unsubscribe(d)}};i.start&&i.start(h);var l=!1,f=!1;function s(){return Vt(c).some(function(v){return a[v]&&a9(a[v],c[v])})}var d=function(v){LS(a,v),s()&&g()},g=function(){if(!(l||o)){a={};var v={},m=p(v);f||(ta(Sl,d),f=!0),l=!0,Promise.resolve(m).then(function(y){t=!0,n=y,l=!1,!o&&(s()?g():(a={},c=v,i.next&&i.next(y)))},function(y){l=!1,t=!1,i.error&&i.error(y),h.unsubscribe()})}};return g(),h});return r.hasValue=function(){return t},r.getValue=function(){return n},r}var rp;try{rp={indexedDB:Ot.indexedDB||Ot.mozIndexedDB||Ot.webkitIndexedDB||Ot.msIndexedDB,IDBKeyRange:Ot.IDBKeyRange||Ot.webkitIDBKeyRange}}catch{rp={indexedDB:null,IDBKeyRange:null}}var va=ag;Fo(va,lt(lt({},Tf),{delete:function(e){var t=new va(e,{addons:[]});return t.delete()},exists:function(e){return new va(e,{addons:[]}).open().then(function(t){return t.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(e){try{return GV(va.dependencies).then(e)}catch{return Wt(new Ge.MissingAPI)}},defineClass:function(){function e(t){In(this,t)}return e},ignoreTransaction:function(e){return He.trans?ns(He.transless,e):e()},vip:ep,async:function(e){return function(){try{var t=tp(e.apply(this,arguments));return!t||typeof t.then!="function"?Fe.resolve(t):t}catch(n){return Wt(n)}}},spawn:function(e,t,n){try{var r=tp(e.apply(n,t||[]));return!r||typeof r.then!="function"?Fe.resolve(r):r}catch(i){return Wt(i)}},currentTransaction:{get:function(){return He.trans||null}},waitFor:function(e,t){var n=Fe.resolve(typeof e=="function"?va.ignoreTransaction(e):e).timeout(t||6e4);return He.trans?He.trans.waitFor(n):n},Promise:Fe,debug:{get:function(){return Kr},set:function(e){fS(e,e==="dexie"?function(){return!0}:TS)}},derive:Qo,extend:In,props:Fo,override:aS,Events:Xl,on:ta,liveQuery:og,extendObservabilitySet:LS,getByKeyPath:fi,setByKeyPath:_r,delByKeyPath:Vj,shallowClone:lS,deepClone:Wl,getObjectDiff:rg,cmp:Tn,asap:oS,minKey:Yh,addons:[],connections:js,errnames:Kv,dependencies:rp,semVer:Py,version:Py.split(".").map(function(e){return parseInt(e)}).reduce(function(e,t,n){return e+t/Math.pow(10,n*2)})}));va.maxKey=Cl(va.dependencies.IDBKeyRange);typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(ta(Sl,function(e){if(!ci){var t;Ef?(t=document.createEvent("CustomEvent"),t.initCustomEvent(ji,!0,!0,e)):t=new CustomEvent(ji,{detail:e}),ci=!0,dispatchEvent(t),ci=!1}}),addEventListener(ji,function(e){var t=e.detail;ci||zc(t)}));function zc(e){var t=ci;try{ci=!0,ta.storagemutated.fire(e)}finally{ci=t}}var ci=!1;if(typeof BroadcastChannel<"u"){var Ou=new BroadcastChannel(ji);typeof Ou.unref=="function"&&Ou.unref(),ta(Sl,function(e){ci||Ou.postMessage(e)}),Ou.onmessage=function(e){e.data&&zc(e.data)}}else if(typeof self<"u"&&typeof navigator<"u"){ta(Sl,function(e){try{ci||(typeof localStorage<"u"&&localStorage.setItem(ji,JSON.stringify({trig:Math.random(),changedParts:e})),typeof self.clients=="object"&&Lh([],self.clients.matchAll({includeUncontrolled:!0}),!0).forEach(function(t){return t.postMessage({type:ji,changedParts:e})}))}catch{}}),typeof addEventListener<"u"&&addEventListener("storage",function(e){if(e.key===ji){var t=JSON.parse(e.newValue);t&&zc(t.changedParts)}});var By=self.document&&navigator.serviceWorker;By&&By.addEventListener("message",c9)}function c9(e){var t=e.data;t&&t.type===ji&&zc(t.changedParts)}Fe.rejectionMapper=Zj;fS(Kr,TS);class f9 extends ag{constructor(){super("stableui");wg(this,"outputs");this.version(.2).stores({outputs:""}),this.version(.3).stores({outputs:null,outputsTemp:"++id"}).upgrade(async n=>{const r=await n.table("outputs").get("outputs");await n.table("outputsTemp").bulkPut(JSON.parse(r))}),this.version(.4).stores({outputsTemp:null,outputs:"++id"}).upgrade(async n=>{const r=await n.table("outputsTemp").toArray();await n.table("outputs").bulkPut(r)}),this.version(.5).stores({outputs:"++id,starred,rated"}).upgrade(async n=>await n.table("outputs").toCollection().modify(r=>{r.starred=Number(r.starred),r.rated=Number(r.rated)}))}}const Dt=new f9;Dt.open().catch(()=>{jt().raiseError("The image database failed to open! This usually happens when using Firefox in Private Browsing mode. Try disabling Private Browsing or using another browser.",!0)});function Pu(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var DS={exports:{}};/*!
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/(function(e,t){(function(n){e.exports=n()})(function(){return function n(r,i,u){function p(c,h){if(!i[c]){if(!r[c]){var l=typeof Pu=="function"&&Pu;if(!h&&l)return l(c,!0);if(o)return o(c,!0);var f=new Error("Cannot find module '"+c+"'");throw f.code="MODULE_NOT_FOUND",f}var s=i[c]={exports:{}};r[c][0].call(s.exports,function(d){var g=r[c][1][d];return p(g||d)},s,s.exports,n,r,i,u)}return i[c].exports}for(var o=typeof Pu=="function"&&Pu,a=0;a<u.length;a++)p(u[a]);return p}({1:[function(n,r,i){var u=n("./utils"),p=n("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(a){for(var c,h,l,f,s,d,g,v=[],m=0,y=a.length,b=y,_=u.getTypeOf(a)!=="string";m<a.length;)b=y-m,l=_?(c=a[m++],h=m<y?a[m++]:0,m<y?a[m++]:0):(c=a.charCodeAt(m++),h=m<y?a.charCodeAt(m++):0,m<y?a.charCodeAt(m++):0),f=c>>2,s=(3&c)<<4|h>>4,d=1<b?(15&h)<<2|l>>6:64,g=2<b?63&l:64,v.push(o.charAt(f)+o.charAt(s)+o.charAt(d)+o.charAt(g));return v.join("")},i.decode=function(a){var c,h,l,f,s,d,g=0,v=0,m="data:";if(a.substr(0,m.length)===m)throw new Error("Invalid base64 input, it looks like a data url.");var y,b=3*(a=a.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(a.charAt(a.length-1)===o.charAt(64)&&b--,a.charAt(a.length-2)===o.charAt(64)&&b--,b%1!=0)throw new Error("Invalid base64 input, bad content length.");for(y=p.uint8array?new Uint8Array(0|b):new Array(0|b);g<a.length;)c=o.indexOf(a.charAt(g++))<<2|(f=o.indexOf(a.charAt(g++)))>>4,h=(15&f)<<4|(s=o.indexOf(a.charAt(g++)))>>2,l=(3&s)<<6|(d=o.indexOf(a.charAt(g++))),y[v++]=c,s!==64&&(y[v++]=h),d!==64&&(y[v++]=l);return y}},{"./support":30,"./utils":32}],2:[function(n,r,i){var u=n("./external"),p=n("./stream/DataWorker"),o=n("./stream/Crc32Probe"),a=n("./stream/DataLengthProbe");function c(h,l,f,s,d){this.compressedSize=h,this.uncompressedSize=l,this.crc32=f,this.compression=s,this.compressedContent=d}c.prototype={getContentWorker:function(){var h=new p(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),l=this;return h.on("end",function(){if(this.streamInfo.data_length!==l.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),h},getCompressedWorker:function(){return new p(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(h,l,f){return h.pipe(new o).pipe(new a("uncompressedSize")).pipe(l.compressWorker(f)).pipe(new a("compressedSize")).withStreamInfo("compression",l)},r.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,i){var u=n("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},i.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,i){var u=n("./utils"),p=function(){for(var o,a=[],c=0;c<256;c++){o=c;for(var h=0;h<8;h++)o=1&o?3988292384^o>>>1:o>>>1;a[c]=o}return a}();r.exports=function(o,a){return o!==void 0&&o.length?u.getTypeOf(o)!=="string"?function(c,h,l,f){var s=p,d=f+l;c^=-1;for(var g=f;g<d;g++)c=c>>>8^s[255&(c^h[g])];return-1^c}(0|a,o,o.length,0):function(c,h,l,f){var s=p,d=f+l;c^=-1;for(var g=f;g<d;g++)c=c>>>8^s[255&(c^h.charCodeAt(g))];return-1^c}(0|a,o,o.length,0):0}},{"./utils":32}],5:[function(n,r,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(n,r,i){var u=null;u=typeof Promise<"u"?Promise:n("lie"),r.exports={Promise:u}},{lie:37}],7:[function(n,r,i){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",p=n("pako"),o=n("./utils"),a=n("./stream/GenericWorker"),c=u?"uint8array":"array";function h(l,f){a.call(this,"FlateWorker/"+l),this._pako=null,this._pakoAction=l,this._pakoOptions=f,this.meta={}}i.magic="\b\0",o.inherits(h,a),h.prototype.processChunk=function(l){this.meta=l.meta,this._pako===null&&this._createPako(),this._pako.push(o.transformTo(c,l.data),!1)},h.prototype.flush=function(){a.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},h.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},h.prototype._createPako=function(){this._pako=new p[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var l=this;this._pako.onData=function(f){l.push({data:f,meta:l.meta})}},i.compressWorker=function(l){return new h("Deflate",l)},i.uncompressWorker=function(){return new h("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,i){function u(s,d){var g,v="";for(g=0;g<d;g++)v+=String.fromCharCode(255&s),s>>>=8;return v}function p(s,d,g,v,m,y){var b,_,S=s.file,C=s.compression,T=y!==c.utf8encode,E=o.transformTo("string",y(S.name)),O=o.transformTo("string",c.utf8encode(S.name)),D=S.comment,j=o.transformTo("string",y(D)),k=o.transformTo("string",c.utf8encode(D)),U=O.length!==S.name.length,P=k.length!==D.length,re="",q="",V="",te=S.dir,A=S.date,B={crc32:0,compressedSize:0,uncompressedSize:0};d&&!g||(B.crc32=s.crc32,B.compressedSize=s.compressedSize,B.uncompressedSize=s.uncompressedSize);var I=0;d&&(I|=8),T||!U&&!P||(I|=2048);var M=0,J=0;te&&(M|=16),m==="UNIX"?(J=798,M|=function(L,Q){var H=L;return L||(H=Q?16893:33204),(65535&H)<<16}(S.unixPermissions,te)):(J=20,M|=function(L){return 63&(L||0)}(S.dosPermissions)),b=A.getUTCHours(),b<<=6,b|=A.getUTCMinutes(),b<<=5,b|=A.getUTCSeconds()/2,_=A.getUTCFullYear()-1980,_<<=4,_|=A.getUTCMonth()+1,_<<=5,_|=A.getUTCDate(),U&&(q=u(1,1)+u(h(E),4)+O,re+="up"+u(q.length,2)+q),P&&(V=u(1,1)+u(h(j),4)+k,re+="uc"+u(V.length,2)+V);var z="";return z+=`
\0`,z+=u(I,2),z+=C.magic,z+=u(b,2),z+=u(_,2),z+=u(B.crc32,4),z+=u(B.compressedSize,4),z+=u(B.uncompressedSize,4),z+=u(E.length,2),z+=u(re.length,2),{fileRecord:l.LOCAL_FILE_HEADER+z+E+re,dirRecord:l.CENTRAL_FILE_HEADER+u(J,2)+z+u(j.length,2)+"\0\0\0\0"+u(M,4)+u(v,4)+E+re+j}}var o=n("../utils"),a=n("../stream/GenericWorker"),c=n("../utf8"),h=n("../crc32"),l=n("../signature");function f(s,d,g,v){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=d,this.zipPlatform=g,this.encodeFileName=v,this.streamFiles=s,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(f,a),f.prototype.push=function(s){var d=s.meta.percent||0,g=this.entriesCount,v=this._sources.length;this.accumulate?this.contentBuffer.push(s):(this.bytesWritten+=s.data.length,a.prototype.push.call(this,{data:s.data,meta:{currentFile:this.currentFile,percent:g?(d+100*(g-v-1))/g:100}}))},f.prototype.openedSource=function(s){this.currentSourceOffset=this.bytesWritten,this.currentFile=s.file.name;var d=this.streamFiles&&!s.file.dir;if(d){var g=p(s,d,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(s){this.accumulate=!1;var d=this.streamFiles&&!s.file.dir,g=p(s,d,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),d)this.push({data:function(v){return l.DATA_DESCRIPTOR+u(v.crc32,4)+u(v.compressedSize,4)+u(v.uncompressedSize,4)}(s),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},f.prototype.flush=function(){for(var s=this.bytesWritten,d=0;d<this.dirRecords.length;d++)this.push({data:this.dirRecords[d],meta:{percent:100}});var g=this.bytesWritten-s,v=function(m,y,b,_,S){var C=o.transformTo("string",S(_));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(m,2)+u(m,2)+u(y,4)+u(b,4)+u(C.length,2)+C}(this.dirRecords.length,g,s,this.zipComment,this.encodeFileName);this.push({data:v,meta:{percent:100}})},f.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},f.prototype.registerPrevious=function(s){this._sources.push(s);var d=this;return s.on("data",function(g){d.processChunk(g)}),s.on("end",function(){d.closedSource(d.previous.streamInfo),d._sources.length?d.prepareNextSource():d.end()}),s.on("error",function(g){d.error(g)}),this},f.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},f.prototype.error=function(s){var d=this._sources;if(!a.prototype.error.call(this,s))return!1;for(var g=0;g<d.length;g++)try{d[g].error(s)}catch{}return!0},f.prototype.lock=function(){a.prototype.lock.call(this);for(var s=this._sources,d=0;d<s.length;d++)s[d].lock()},r.exports=f},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,i){var u=n("../compressions"),p=n("./ZipFileWorker");i.generateWorker=function(o,a,c){var h=new p(a.streamFiles,c,a.platform,a.encodeFileName),l=0;try{o.forEach(function(f,s){l++;var d=function(y,b){var _=y||b,S=u[_];if(!S)throw new Error(_+" is not a valid compression method !");return S}(s.options.compression,a.compression),g=s.options.compressionOptions||a.compressionOptions||{},v=s.dir,m=s.date;s._compressWorker(d,g).withStreamInfo("file",{name:f,dir:v,date:m,comment:s.comment||"",unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions}).pipe(h)}),h.entriesCount=l}catch(f){h.error(f)}return h}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,i){function u(){if(!(this instanceof u))return new u;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var p=new u;for(var o in this)typeof this[o]!="function"&&(p[o]=this[o]);return p}}(u.prototype=n("./object")).loadAsync=n("./load"),u.support=n("./support"),u.defaults=n("./defaults"),u.version="3.10.1",u.loadAsync=function(p,o){return new u().loadAsync(p,o)},u.external=n("./external"),r.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,i){var u=n("./utils"),p=n("./external"),o=n("./utf8"),a=n("./zipEntries"),c=n("./stream/Crc32Probe"),h=n("./nodejsUtils");function l(f){return new p.Promise(function(s,d){var g=f.decompressed.getContentWorker().pipe(new c);g.on("error",function(v){d(v)}).on("end",function(){g.streamInfo.crc32!==f.decompressed.crc32?d(new Error("Corrupted zip : CRC32 mismatch")):s()}).resume()})}r.exports=function(f,s){var d=this;return s=u.extend(s||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),h.isNode&&h.isStream(f)?p.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",f,!0,s.optimizedBinaryString,s.base64).then(function(g){var v=new a(s);return v.load(g),v}).then(function(g){var v=[p.Promise.resolve(g)],m=g.files;if(s.checkCRC32)for(var y=0;y<m.length;y++)v.push(l(m[y]));return p.Promise.all(v)}).then(function(g){for(var v=g.shift(),m=v.files,y=0;y<m.length;y++){var b=m[y],_=b.fileNameStr,S=u.resolve(b.fileNameStr);d.file(S,b.decompressed,{binary:!0,optimizedBinaryString:!0,date:b.date,dir:b.dir,comment:b.fileCommentStr.length?b.fileCommentStr:null,unixPermissions:b.unixPermissions,dosPermissions:b.dosPermissions,createFolders:s.createFolders}),b.dir||(d.file(S).unsafeOriginalName=_)}return v.zipComment.length&&(d.comment=v.zipComment),d})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,i){var u=n("../utils"),p=n("../stream/GenericWorker");function o(a,c){p.call(this,"Nodejs stream input adapter for "+a),this._upstreamEnded=!1,this._bindStream(c)}u.inherits(o,p),o.prototype._bindStream=function(a){var c=this;(this._stream=a).pause(),a.on("data",function(h){c.push({data:h,meta:{percent:0}})}).on("error",function(h){c.isPaused?this.generatedError=h:c.error(h)}).on("end",function(){c.isPaused?c._upstreamEnded=!0:c.end()})},o.prototype.pause=function(){return!!p.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!p.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,i){var u=n("readable-stream").Readable;function p(o,a,c){u.call(this,a),this._helper=o;var h=this;o.on("data",function(l,f){h.push(l)||h._helper.pause(),c&&c(f)}).on("error",function(l){h.emit("error",l)}).on("end",function(){h.push(null)})}n("../utils").inherits(p,u),p.prototype._read=function(){this._helper.resume()},r.exports=p},{"../utils":32,"readable-stream":16}],14:[function(n,r,i){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(u,p){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(u,p);if(typeof u=="number")throw new Error('The "data" argument must not be a number');return new Buffer(u,p)},allocBuffer:function(u){if(Buffer.alloc)return Buffer.alloc(u);var p=new Buffer(u);return p.fill(0),p},isBuffer:function(u){return Buffer.isBuffer(u)},isStream:function(u){return u&&typeof u.on=="function"&&typeof u.pause=="function"&&typeof u.resume=="function"}}},{}],15:[function(n,r,i){function u(S,C,T){var E,O=o.getTypeOf(C),D=o.extend(T||{},h);D.date=D.date||new Date,D.compression!==null&&(D.compression=D.compression.toUpperCase()),typeof D.unixPermissions=="string"&&(D.unixPermissions=parseInt(D.unixPermissions,8)),D.unixPermissions&&16384&D.unixPermissions&&(D.dir=!0),D.dosPermissions&&16&D.dosPermissions&&(D.dir=!0),D.dir&&(S=m(S)),D.createFolders&&(E=v(S))&&y.call(this,E,!0);var j=O==="string"&&D.binary===!1&&D.base64===!1;T&&T.binary!==void 0||(D.binary=!j),(C instanceof l&&C.uncompressedSize===0||D.dir||!C||C.length===0)&&(D.base64=!1,D.binary=!0,C="",D.compression="STORE",O="string");var k=null;k=C instanceof l||C instanceof a?C:d.isNode&&d.isStream(C)?new g(S,C):o.prepareContent(S,C,D.binary,D.optimizedBinaryString,D.base64);var U=new f(S,k,D);this.files[S]=U}var p=n("./utf8"),o=n("./utils"),a=n("./stream/GenericWorker"),c=n("./stream/StreamHelper"),h=n("./defaults"),l=n("./compressedObject"),f=n("./zipObject"),s=n("./generate"),d=n("./nodejsUtils"),g=n("./nodejs/NodejsStreamInputAdapter"),v=function(S){S.slice(-1)==="/"&&(S=S.substring(0,S.length-1));var C=S.lastIndexOf("/");return 0<C?S.substring(0,C):""},m=function(S){return S.slice(-1)!=="/"&&(S+="/"),S},y=function(S,C){return C=C!==void 0?C:h.createFolders,S=m(S),this.files[S]||u.call(this,S,null,{dir:!0,createFolders:C}),this.files[S]};function b(S){return Object.prototype.toString.call(S)==="[object RegExp]"}var _={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(S){var C,T,E;for(C in this.files)E=this.files[C],(T=C.slice(this.root.length,C.length))&&C.slice(0,this.root.length)===this.root&&S(T,E)},filter:function(S){var C=[];return this.forEach(function(T,E){S(T,E)&&C.push(E)}),C},file:function(S,C,T){if(arguments.length!==1)return S=this.root+S,u.call(this,S,C,T),this;if(b(S)){var E=S;return this.filter(function(D,j){return!j.dir&&E.test(D)})}var O=this.files[this.root+S];return O&&!O.dir?O:null},folder:function(S){if(!S)return this;if(b(S))return this.filter(function(O,D){return D.dir&&S.test(O)});var C=this.root+S,T=y.call(this,C),E=this.clone();return E.root=T.name,E},remove:function(S){S=this.root+S;var C=this.files[S];if(C||(S.slice(-1)!=="/"&&(S+="/"),C=this.files[S]),C&&!C.dir)delete this.files[S];else for(var T=this.filter(function(O,D){return D.name.slice(0,S.length)===S}),E=0;E<T.length;E++)delete this.files[T[E].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(S){var C,T={};try{if((T=o.extend(S||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:p.utf8encode})).type=T.type.toLowerCase(),T.compression=T.compression.toUpperCase(),T.type==="binarystring"&&(T.type="string"),!T.type)throw new Error("No output type specified.");o.checkSupport(T.type),T.platform!=="darwin"&&T.platform!=="freebsd"&&T.platform!=="linux"&&T.platform!=="sunos"||(T.platform="UNIX"),T.platform==="win32"&&(T.platform="DOS");var E=T.comment||this.comment||"";C=s.generateWorker(this,T,E)}catch(O){(C=new a("error")).error(O)}return new c(C,T.type||"string",T.mimeType)},generateAsync:function(S,C){return this.generateInternalStream(S).accumulate(C)},generateNodeStream:function(S,C){return(S=S||{}).type||(S.type="nodebuffer"),this.generateInternalStream(S).toNodejsStream(C)}};r.exports=_},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,r,i){r.exports=n("stream")},{stream:void 0}],17:[function(n,r,i){var u=n("./DataReader");function p(o){u.call(this,o);for(var a=0;a<this.data.length;a++)o[a]=255&o[a]}n("../utils").inherits(p,u),p.prototype.byteAt=function(o){return this.data[this.zero+o]},p.prototype.lastIndexOfSignature=function(o){for(var a=o.charCodeAt(0),c=o.charCodeAt(1),h=o.charCodeAt(2),l=o.charCodeAt(3),f=this.length-4;0<=f;--f)if(this.data[f]===a&&this.data[f+1]===c&&this.data[f+2]===h&&this.data[f+3]===l)return f-this.zero;return-1},p.prototype.readAndCheckSignature=function(o){var a=o.charCodeAt(0),c=o.charCodeAt(1),h=o.charCodeAt(2),l=o.charCodeAt(3),f=this.readData(4);return a===f[0]&&c===f[1]&&h===f[2]&&l===f[3]},p.prototype.readData=function(o){if(this.checkOffset(o),o===0)return[];var a=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},r.exports=p},{"../utils":32,"./DataReader":18}],18:[function(n,r,i){var u=n("../utils");function p(o){this.data=o,this.length=o.length,this.index=0,this.zero=0}p.prototype={checkOffset:function(o){this.checkIndex(this.index+o)},checkIndex:function(o){if(this.length<this.zero+o||o<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+o+"). Corrupted zip ?")},setIndex:function(o){this.checkIndex(o),this.index=o},skip:function(o){this.setIndex(this.index+o)},byteAt:function(){},readInt:function(o){var a,c=0;for(this.checkOffset(o),a=this.index+o-1;a>=this.index;a--)c=(c<<8)+this.byteAt(a);return this.index+=o,c},readString:function(o){return u.transformTo("string",this.readData(o))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var o=this.readInt(4);return new Date(Date.UTC(1980+(o>>25&127),(o>>21&15)-1,o>>16&31,o>>11&31,o>>5&63,(31&o)<<1))}},r.exports=p},{"../utils":32}],19:[function(n,r,i){var u=n("./Uint8ArrayReader");function p(o){u.call(this,o)}n("../utils").inherits(p,u),p.prototype.readData=function(o){this.checkOffset(o);var a=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},r.exports=p},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,i){var u=n("./DataReader");function p(o){u.call(this,o)}n("../utils").inherits(p,u),p.prototype.byteAt=function(o){return this.data.charCodeAt(this.zero+o)},p.prototype.lastIndexOfSignature=function(o){return this.data.lastIndexOf(o)-this.zero},p.prototype.readAndCheckSignature=function(o){return o===this.readData(4)},p.prototype.readData=function(o){this.checkOffset(o);var a=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},r.exports=p},{"../utils":32,"./DataReader":18}],21:[function(n,r,i){var u=n("./ArrayReader");function p(o){u.call(this,o)}n("../utils").inherits(p,u),p.prototype.readData=function(o){if(this.checkOffset(o),o===0)return new Uint8Array(0);var a=this.data.subarray(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},r.exports=p},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,i){var u=n("../utils"),p=n("../support"),o=n("./ArrayReader"),a=n("./StringReader"),c=n("./NodeBufferReader"),h=n("./Uint8ArrayReader");r.exports=function(l){var f=u.getTypeOf(l);return u.checkSupport(f),f!=="string"||p.uint8array?f==="nodebuffer"?new c(l):p.uint8array?new h(u.transformTo("uint8array",l)):new o(u.transformTo("array",l)):new a(l)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,r,i){var u=n("./GenericWorker"),p=n("../utils");function o(a){u.call(this,"ConvertWorker to "+a),this.destType=a}p.inherits(o,u),o.prototype.processChunk=function(a){this.push({data:p.transformTo(this.destType,a.data),meta:a.meta})},r.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,i){var u=n("./GenericWorker"),p=n("../crc32");function o(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(o,u),o.prototype.processChunk=function(a){this.streamInfo.crc32=p(a.data,this.streamInfo.crc32||0),this.push(a)},r.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,i){var u=n("../utils"),p=n("./GenericWorker");function o(a){p.call(this,"DataLengthProbe for "+a),this.propName=a,this.withStreamInfo(a,0)}u.inherits(o,p),o.prototype.processChunk=function(a){if(a){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+a.data.length}p.prototype.processChunk.call(this,a)},r.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,i){var u=n("../utils"),p=n("./GenericWorker");function o(a){p.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,a.then(function(h){c.dataIsReady=!0,c.data=h,c.max=h&&h.length||0,c.type=u.getTypeOf(h),c.isPaused||c._tickAndRepeat()},function(h){c.error(h)})}u.inherits(o,p),o.prototype.cleanUp=function(){p.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!p.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var a=null,c=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":a=this.data.substring(this.index,c);break;case"uint8array":a=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":a=this.data.slice(this.index,c)}return this.index=c,this.push({data:a,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,i){function u(p){this.name=p||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(p){this.emit("data",p)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(p){this.emit("error",p)}return!0},error:function(p){return!this.isFinished&&(this.isPaused?this.generatedError=p:(this.isFinished=!0,this.emit("error",p),this.previous&&this.previous.error(p),this.cleanUp()),!0)},on:function(p,o){return this._listeners[p].push(o),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(p,o){if(this._listeners[p])for(var a=0;a<this._listeners[p].length;a++)this._listeners[p][a].call(this,o)},pipe:function(p){return p.registerPrevious(this)},registerPrevious:function(p){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=p.streamInfo,this.mergeStreamInfo(),this.previous=p;var o=this;return p.on("data",function(a){o.processChunk(a)}),p.on("end",function(){o.end()}),p.on("error",function(a){o.error(a)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var p=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),p=!0),this.previous&&this.previous.resume(),!p},flush:function(){},processChunk:function(p){this.push(p)},withStreamInfo:function(p,o){return this.extraStreamInfo[p]=o,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var p in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,p)&&(this.streamInfo[p]=this.extraStreamInfo[p])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var p="Worker "+this.name;return this.previous?this.previous+" -> "+p:p}},r.exports=u},{}],29:[function(n,r,i){var u=n("../utils"),p=n("./ConvertWorker"),o=n("./GenericWorker"),a=n("../base64"),c=n("../support"),h=n("../external"),l=null;if(c.nodestream)try{l=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function f(d,g){return new h.Promise(function(v,m){var y=[],b=d._internalType,_=d._outputType,S=d._mimeType;d.on("data",function(C,T){y.push(C),g&&g(T)}).on("error",function(C){y=[],m(C)}).on("end",function(){try{var C=function(T,E,O){switch(T){case"blob":return u.newBlob(u.transformTo("arraybuffer",E),O);case"base64":return a.encode(E);default:return u.transformTo(T,E)}}(_,function(T,E){var O,D=0,j=null,k=0;for(O=0;O<E.length;O++)k+=E[O].length;switch(T){case"string":return E.join("");case"array":return Array.prototype.concat.apply([],E);case"uint8array":for(j=new Uint8Array(k),O=0;O<E.length;O++)j.set(E[O],D),D+=E[O].length;return j;case"nodebuffer":return Buffer.concat(E);default:throw new Error("concat : unsupported type '"+T+"'")}}(b,y),S);v(C)}catch(T){m(T)}y=[]}).resume()})}function s(d,g,v){var m=g;switch(g){case"blob":case"arraybuffer":m="uint8array";break;case"base64":m="string"}try{this._internalType=m,this._outputType=g,this._mimeType=v,u.checkSupport(m),this._worker=d.pipe(new p(m)),d.lock()}catch(y){this._worker=new o("error"),this._worker.error(y)}}s.prototype={accumulate:function(d){return f(this,d)},on:function(d,g){var v=this;return d==="data"?this._worker.on(d,function(m){g.call(v,m.data,m.meta)}):this._worker.on(d,function(){u.delay(g,arguments,v)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(d){if(u.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new l(this,{objectMode:this._outputType!=="nodebuffer"},d)}},r.exports=s},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,r,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",i.nodebuffer=typeof Buffer<"u",i.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")i.blob=!1;else{var u=new ArrayBuffer(0);try{i.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var p=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);p.append(u),i.blob=p.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!n("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(n,r,i){for(var u=n("./utils"),p=n("./support"),o=n("./nodejsUtils"),a=n("./stream/GenericWorker"),c=new Array(256),h=0;h<256;h++)c[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;c[254]=c[254]=1;function l(){a.call(this,"utf-8 decode"),this.leftOver=null}function f(){a.call(this,"utf-8 encode")}i.utf8encode=function(s){return p.nodebuffer?o.newBufferFrom(s,"utf-8"):function(d){var g,v,m,y,b,_=d.length,S=0;for(y=0;y<_;y++)(64512&(v=d.charCodeAt(y)))==55296&&y+1<_&&(64512&(m=d.charCodeAt(y+1)))==56320&&(v=65536+(v-55296<<10)+(m-56320),y++),S+=v<128?1:v<2048?2:v<65536?3:4;for(g=p.uint8array?new Uint8Array(S):new Array(S),y=b=0;b<S;y++)(64512&(v=d.charCodeAt(y)))==55296&&y+1<_&&(64512&(m=d.charCodeAt(y+1)))==56320&&(v=65536+(v-55296<<10)+(m-56320),y++),v<128?g[b++]=v:(v<2048?g[b++]=192|v>>>6:(v<65536?g[b++]=224|v>>>12:(g[b++]=240|v>>>18,g[b++]=128|v>>>12&63),g[b++]=128|v>>>6&63),g[b++]=128|63&v);return g}(s)},i.utf8decode=function(s){return p.nodebuffer?u.transformTo("nodebuffer",s).toString("utf-8"):function(d){var g,v,m,y,b=d.length,_=new Array(2*b);for(g=v=0;g<b;)if((m=d[g++])<128)_[v++]=m;else if(4<(y=c[m]))_[v++]=65533,g+=y-1;else{for(m&=y===2?31:y===3?15:7;1<y&&g<b;)m=m<<6|63&d[g++],y--;1<y?_[v++]=65533:m<65536?_[v++]=m:(m-=65536,_[v++]=55296|m>>10&1023,_[v++]=56320|1023&m)}return _.length!==v&&(_.subarray?_=_.subarray(0,v):_.length=v),u.applyFromCharCode(_)}(s=u.transformTo(p.uint8array?"uint8array":"array",s))},u.inherits(l,a),l.prototype.processChunk=function(s){var d=u.transformTo(p.uint8array?"uint8array":"array",s.data);if(this.leftOver&&this.leftOver.length){if(p.uint8array){var g=d;(d=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),d.set(g,this.leftOver.length)}else d=this.leftOver.concat(d);this.leftOver=null}var v=function(y,b){var _;for((b=b||y.length)>y.length&&(b=y.length),_=b-1;0<=_&&(192&y[_])==128;)_--;return _<0||_===0?b:_+c[y[_]]>b?_:b}(d),m=d;v!==d.length&&(p.uint8array?(m=d.subarray(0,v),this.leftOver=d.subarray(v,d.length)):(m=d.slice(0,v),this.leftOver=d.slice(v,d.length))),this.push({data:i.utf8decode(m),meta:s.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=l,u.inherits(f,a),f.prototype.processChunk=function(s){this.push({data:i.utf8encode(s.data),meta:s.meta})},i.Utf8EncodeWorker=f},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,i){var u=n("./support"),p=n("./base64"),o=n("./nodejsUtils"),a=n("./external");function c(g){return g}function h(g,v){for(var m=0;m<g.length;++m)v[m]=255&g.charCodeAt(m);return v}n("setimmediate"),i.newBlob=function(g,v){i.checkSupport("blob");try{return new Blob([g],{type:v})}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return m.append(g),m.getBlob(v)}catch{throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(g,v,m){var y=[],b=0,_=g.length;if(_<=m)return String.fromCharCode.apply(null,g);for(;b<_;)v==="array"||v==="nodebuffer"?y.push(String.fromCharCode.apply(null,g.slice(b,Math.min(b+m,_)))):y.push(String.fromCharCode.apply(null,g.subarray(b,Math.min(b+m,_)))),b+=m;return y.join("")},stringifyByChar:function(g){for(var v="",m=0;m<g.length;m++)v+=String.fromCharCode(g[m]);return v},applyCanBeUsed:{uint8array:function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,o.allocBuffer(1)).length===1}catch{return!1}}()}};function f(g){var v=65536,m=i.getTypeOf(g),y=!0;if(m==="uint8array"?y=l.applyCanBeUsed.uint8array:m==="nodebuffer"&&(y=l.applyCanBeUsed.nodebuffer),y)for(;1<v;)try{return l.stringifyByChunk(g,m,v)}catch{v=Math.floor(v/2)}return l.stringifyByChar(g)}function s(g,v){for(var m=0;m<g.length;m++)v[m]=g[m];return v}i.applyFromCharCode=f;var d={};d.string={string:c,array:function(g){return h(g,new Array(g.length))},arraybuffer:function(g){return d.string.uint8array(g).buffer},uint8array:function(g){return h(g,new Uint8Array(g.length))},nodebuffer:function(g){return h(g,o.allocBuffer(g.length))}},d.array={string:f,array:c,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return o.newBufferFrom(g)}},d.arraybuffer={string:function(g){return f(new Uint8Array(g))},array:function(g){return s(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:c,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return o.newBufferFrom(new Uint8Array(g))}},d.uint8array={string:f,array:function(g){return s(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:c,nodebuffer:function(g){return o.newBufferFrom(g)}},d.nodebuffer={string:f,array:function(g){return s(g,new Array(g.length))},arraybuffer:function(g){return d.nodebuffer.uint8array(g).buffer},uint8array:function(g){return s(g,new Uint8Array(g.length))},nodebuffer:c},i.transformTo=function(g,v){if(v=v||"",!g)return v;i.checkSupport(g);var m=i.getTypeOf(v);return d[m][g](v)},i.resolve=function(g){for(var v=g.split("/"),m=[],y=0;y<v.length;y++){var b=v[y];b==="."||b===""&&y!==0&&y!==v.length-1||(b===".."?m.pop():m.push(b))}return m.join("/")},i.getTypeOf=function(g){return typeof g=="string"?"string":Object.prototype.toString.call(g)==="[object Array]"?"array":u.nodebuffer&&o.isBuffer(g)?"nodebuffer":u.uint8array&&g instanceof Uint8Array?"uint8array":u.arraybuffer&&g instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(g){if(!u[g.toLowerCase()])throw new Error(g+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(g){var v,m,y="";for(m=0;m<(g||"").length;m++)y+="\\x"+((v=g.charCodeAt(m))<16?"0":"")+v.toString(16).toUpperCase();return y},i.delay=function(g,v,m){setImmediate(function(){g.apply(m||null,v||[])})},i.inherits=function(g,v){function m(){}m.prototype=v.prototype,g.prototype=new m},i.extend=function(){var g,v,m={};for(g=0;g<arguments.length;g++)for(v in arguments[g])Object.prototype.hasOwnProperty.call(arguments[g],v)&&m[v]===void 0&&(m[v]=arguments[g][v]);return m},i.prepareContent=function(g,v,m,y,b){return a.Promise.resolve(v).then(function(_){return u.blob&&(_ instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(_))!==-1)&&typeof FileReader<"u"?new a.Promise(function(S,C){var T=new FileReader;T.onload=function(E){S(E.target.result)},T.onerror=function(E){C(E.target.error)},T.readAsArrayBuffer(_)}):_}).then(function(_){var S=i.getTypeOf(_);return S?(S==="arraybuffer"?_=i.transformTo("uint8array",_):S==="string"&&(b?_=p.decode(_):m&&y!==!0&&(_=function(C){return h(C,u.uint8array?new Uint8Array(C.length):new Array(C.length))}(_))),_):a.Promise.reject(new Error("Can't read the data of '"+g+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,r,i){var u=n("./reader/readerFor"),p=n("./utils"),o=n("./signature"),a=n("./zipEntry"),c=n("./support");function h(l){this.files=[],this.loadOptions=l}h.prototype={checkSignature:function(l){if(!this.reader.readAndCheckSignature(l)){this.reader.index-=4;var f=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+p.pretty(f)+", expected "+p.pretty(l)+")")}},isSignature:function(l,f){var s=this.reader.index;this.reader.setIndex(l);var d=this.reader.readString(4)===f;return this.reader.setIndex(s),d},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var l=this.reader.readData(this.zipCommentLength),f=c.uint8array?"uint8array":"array",s=p.transformTo(f,l);this.zipComment=this.loadOptions.decodeFileName(s)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var l,f,s,d=this.zip64EndOfCentralSize-44;0<d;)l=this.reader.readInt(2),f=this.reader.readInt(4),s=this.reader.readData(f),this.zip64ExtensibleData[l]={id:l,length:f,value:s}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var l,f;for(l=0;l<this.files.length;l++)f=this.files[l],this.reader.setIndex(f.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),f.readLocalPart(this.reader),f.handleUTF8(),f.processAttributes()},readCentralDir:function(){var l;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(l=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(l);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var l=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(l<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(l);var f=l;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===p.MAX_VALUE_16BITS||this.diskWithCentralDirStart===p.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===p.MAX_VALUE_16BITS||this.centralDirRecords===p.MAX_VALUE_16BITS||this.centralDirSize===p.MAX_VALUE_32BITS||this.centralDirOffset===p.MAX_VALUE_32BITS){if(this.zip64=!0,(l=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(l),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var s=this.centralDirOffset+this.centralDirSize;this.zip64&&(s+=20,s+=12+this.zip64EndOfCentralSize);var d=f-s;if(0<d)this.isSignature(f,o.CENTRAL_FILE_HEADER)||(this.reader.zero=d);else if(d<0)throw new Error("Corrupted zip: missing "+Math.abs(d)+" bytes.")},prepareReader:function(l){this.reader=u(l)},load:function(l){this.prepareReader(l),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=h},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,i){var u=n("./reader/readerFor"),p=n("./utils"),o=n("./compressedObject"),a=n("./crc32"),c=n("./utf8"),h=n("./compressions"),l=n("./support");function f(s,d){this.options=s,this.loadOptions=d}f.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(s){var d,g;if(s.skip(22),this.fileNameLength=s.readInt(2),g=s.readInt(2),this.fileName=s.readData(this.fileNameLength),s.skip(g),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((d=function(v){for(var m in h)if(Object.prototype.hasOwnProperty.call(h,m)&&h[m].magic===v)return h[m];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+p.pretty(this.compressionMethod)+" unknown (inner file : "+p.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,d,s.readData(this.compressedSize))},readCentralPart:function(s){this.versionMadeBy=s.readInt(2),s.skip(2),this.bitFlag=s.readInt(2),this.compressionMethod=s.readString(2),this.date=s.readDate(),this.crc32=s.readInt(4),this.compressedSize=s.readInt(4),this.uncompressedSize=s.readInt(4);var d=s.readInt(2);if(this.extraFieldsLength=s.readInt(2),this.fileCommentLength=s.readInt(2),this.diskNumberStart=s.readInt(2),this.internalFileAttributes=s.readInt(2),this.externalFileAttributes=s.readInt(4),this.localHeaderOffset=s.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");s.skip(d),this.readExtraFields(s),this.parseZIP64ExtraField(s),this.fileComment=s.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var s=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),s==0&&(this.dosPermissions=63&this.externalFileAttributes),s==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var s=u(this.extraFields[1].value);this.uncompressedSize===p.MAX_VALUE_32BITS&&(this.uncompressedSize=s.readInt(8)),this.compressedSize===p.MAX_VALUE_32BITS&&(this.compressedSize=s.readInt(8)),this.localHeaderOffset===p.MAX_VALUE_32BITS&&(this.localHeaderOffset=s.readInt(8)),this.diskNumberStart===p.MAX_VALUE_32BITS&&(this.diskNumberStart=s.readInt(4))}},readExtraFields:function(s){var d,g,v,m=s.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});s.index+4<m;)d=s.readInt(2),g=s.readInt(2),v=s.readData(g),this.extraFields[d]={id:d,length:g,value:v};s.setIndex(m)},handleUTF8:function(){var s=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=c.utf8decode(this.fileName),this.fileCommentStr=c.utf8decode(this.fileComment);else{var d=this.findExtraFieldUnicodePath();if(d!==null)this.fileNameStr=d;else{var g=p.transformTo(s,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var v=this.findExtraFieldUnicodeComment();if(v!==null)this.fileCommentStr=v;else{var m=p.transformTo(s,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(m)}}},findExtraFieldUnicodePath:function(){var s=this.extraFields[28789];if(s){var d=u(s.value);return d.readInt(1)!==1||a(this.fileName)!==d.readInt(4)?null:c.utf8decode(d.readData(s.length-5))}return null},findExtraFieldUnicodeComment:function(){var s=this.extraFields[25461];if(s){var d=u(s.value);return d.readInt(1)!==1||a(this.fileComment)!==d.readInt(4)?null:c.utf8decode(d.readData(s.length-5))}return null}},r.exports=f},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,r,i){function u(d,g,v){this.name=d,this.dir=v.dir,this.date=v.date,this.comment=v.comment,this.unixPermissions=v.unixPermissions,this.dosPermissions=v.dosPermissions,this._data=g,this._dataBinary=v.binary,this.options={compression:v.compression,compressionOptions:v.compressionOptions}}var p=n("./stream/StreamHelper"),o=n("./stream/DataWorker"),a=n("./utf8"),c=n("./compressedObject"),h=n("./stream/GenericWorker");u.prototype={internalStream:function(d){var g=null,v="string";try{if(!d)throw new Error("No output type specified.");var m=(v=d.toLowerCase())==="string"||v==="text";v!=="binarystring"&&v!=="text"||(v="string"),g=this._decompressWorker();var y=!this._dataBinary;y&&!m&&(g=g.pipe(new a.Utf8EncodeWorker)),!y&&m&&(g=g.pipe(new a.Utf8DecodeWorker))}catch(b){(g=new h("error")).error(b)}return new p(g,v,"")},async:function(d,g){return this.internalStream(d).accumulate(g)},nodeStream:function(d,g){return this.internalStream(d||"nodebuffer").toNodejsStream(g)},_compressWorker:function(d,g){if(this._data instanceof c&&this._data.compression.magic===d.magic)return this._data.getCompressedWorker();var v=this._decompressWorker();return this._dataBinary||(v=v.pipe(new a.Utf8EncodeWorker)),c.createWorkerFrom(v,d,g)},_decompressWorker:function(){return this._data instanceof c?this._data.getContentWorker():this._data instanceof h?this._data:new o(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],f=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},s=0;s<l.length;s++)u.prototype[l[s]]=f;r.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,i){(function(u){var p,o,a=u.MutationObserver||u.WebKitMutationObserver;if(a){var c=0,h=new a(d),l=u.document.createTextNode("");h.observe(l,{characterData:!0}),p=function(){l.data=c=++c%2}}else if(u.setImmediate||u.MessageChannel===void 0)p="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var g=u.document.createElement("script");g.onreadystatechange=function(){d(),g.onreadystatechange=null,g.parentNode.removeChild(g),g=null},u.document.documentElement.appendChild(g)}:function(){setTimeout(d,0)};else{var f=new u.MessageChannel;f.port1.onmessage=d,p=function(){f.port2.postMessage(0)}}var s=[];function d(){var g,v;o=!0;for(var m=s.length;m;){for(v=s,s=[],g=-1;++g<m;)v[g]();m=s.length}o=!1}r.exports=function(g){s.push(g)!==1||o||p()}}).call(this,typeof yu<"u"?yu:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,r,i){var u=n("immediate");function p(){}var o={},a=["REJECTED"],c=["FULFILLED"],h=["PENDING"];function l(m){if(typeof m!="function")throw new TypeError("resolver must be a function");this.state=h,this.queue=[],this.outcome=void 0,m!==p&&g(this,m)}function f(m,y,b){this.promise=m,typeof y=="function"&&(this.onFulfilled=y,this.callFulfilled=this.otherCallFulfilled),typeof b=="function"&&(this.onRejected=b,this.callRejected=this.otherCallRejected)}function s(m,y,b){u(function(){var _;try{_=y(b)}catch(S){return o.reject(m,S)}_===m?o.reject(m,new TypeError("Cannot resolve promise with itself")):o.resolve(m,_)})}function d(m){var y=m&&m.then;if(m&&(typeof m=="object"||typeof m=="function")&&typeof y=="function")return function(){y.apply(m,arguments)}}function g(m,y){var b=!1;function _(T){b||(b=!0,o.reject(m,T))}function S(T){b||(b=!0,o.resolve(m,T))}var C=v(function(){y(S,_)});C.status==="error"&&_(C.value)}function v(m,y){var b={};try{b.value=m(y),b.status="success"}catch(_){b.status="error",b.value=_}return b}(r.exports=l).prototype.finally=function(m){if(typeof m!="function")return this;var y=this.constructor;return this.then(function(b){return y.resolve(m()).then(function(){return b})},function(b){return y.resolve(m()).then(function(){throw b})})},l.prototype.catch=function(m){return this.then(null,m)},l.prototype.then=function(m,y){if(typeof m!="function"&&this.state===c||typeof y!="function"&&this.state===a)return this;var b=new this.constructor(p);return this.state!==h?s(b,this.state===c?m:y,this.outcome):this.queue.push(new f(b,m,y)),b},f.prototype.callFulfilled=function(m){o.resolve(this.promise,m)},f.prototype.otherCallFulfilled=function(m){s(this.promise,this.onFulfilled,m)},f.prototype.callRejected=function(m){o.reject(this.promise,m)},f.prototype.otherCallRejected=function(m){s(this.promise,this.onRejected,m)},o.resolve=function(m,y){var b=v(d,y);if(b.status==="error")return o.reject(m,b.value);var _=b.value;if(_)g(m,_);else{m.state=c,m.outcome=y;for(var S=-1,C=m.queue.length;++S<C;)m.queue[S].callFulfilled(y)}return m},o.reject=function(m,y){m.state=a,m.outcome=y;for(var b=-1,_=m.queue.length;++b<_;)m.queue[b].callRejected(y);return m},l.resolve=function(m){return m instanceof this?m:o.resolve(new this(p),m)},l.reject=function(m){var y=new this(p);return o.reject(y,m)},l.all=function(m){var y=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=m.length,_=!1;if(!b)return this.resolve([]);for(var S=new Array(b),C=0,T=-1,E=new this(p);++T<b;)O(m[T],T);return E;function O(D,j){y.resolve(D).then(function(k){S[j]=k,++C!==b||_||(_=!0,o.resolve(E,S))},function(k){_||(_=!0,o.reject(E,k))})}},l.race=function(m){var y=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=m.length,_=!1;if(!b)return this.resolve([]);for(var S=-1,C=new this(p);++S<b;)T=m[S],y.resolve(T).then(function(E){_||(_=!0,o.resolve(C,E))},function(E){_||(_=!0,o.reject(C,E))});var T;return C}},{immediate:36}],38:[function(n,r,i){var u={};(0,n("./lib/utils/common").assign)(u,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,i){var u=n("./zlib/deflate"),p=n("./utils/common"),o=n("./utils/strings"),a=n("./zlib/messages"),c=n("./zlib/zstream"),h=Object.prototype.toString,l=0,f=-1,s=0,d=8;function g(m){if(!(this instanceof g))return new g(m);this.options=p.assign({level:f,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:s,to:""},m||{});var y=this.options;y.raw&&0<y.windowBits?y.windowBits=-y.windowBits:y.gzip&&0<y.windowBits&&y.windowBits<16&&(y.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var b=u.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(b!==l)throw new Error(a[b]);if(y.header&&u.deflateSetHeader(this.strm,y.header),y.dictionary){var _;if(_=typeof y.dictionary=="string"?o.string2buf(y.dictionary):h.call(y.dictionary)==="[object ArrayBuffer]"?new Uint8Array(y.dictionary):y.dictionary,(b=u.deflateSetDictionary(this.strm,_))!==l)throw new Error(a[b]);this._dict_set=!0}}function v(m,y){var b=new g(y);if(b.push(m,!0),b.err)throw b.msg||a[b.err];return b.result}g.prototype.push=function(m,y){var b,_,S=this.strm,C=this.options.chunkSize;if(this.ended)return!1;_=y===~~y?y:y===!0?4:0,typeof m=="string"?S.input=o.string2buf(m):h.call(m)==="[object ArrayBuffer]"?S.input=new Uint8Array(m):S.input=m,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new p.Buf8(C),S.next_out=0,S.avail_out=C),(b=u.deflate(S,_))!==1&&b!==l)return this.onEnd(b),!(this.ended=!0);S.avail_out!==0&&(S.avail_in!==0||_!==4&&_!==2)||(this.options.to==="string"?this.onData(o.buf2binstring(p.shrinkBuf(S.output,S.next_out))):this.onData(p.shrinkBuf(S.output,S.next_out)))}while((0<S.avail_in||S.avail_out===0)&&b!==1);return _===4?(b=u.deflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===l):_!==2||(this.onEnd(l),!(S.avail_out=0))},g.prototype.onData=function(m){this.chunks.push(m)},g.prototype.onEnd=function(m){m===l&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=p.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},i.Deflate=g,i.deflate=v,i.deflateRaw=function(m,y){return(y=y||{}).raw=!0,v(m,y)},i.gzip=function(m,y){return(y=y||{}).gzip=!0,v(m,y)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,r,i){var u=n("./zlib/inflate"),p=n("./utils/common"),o=n("./utils/strings"),a=n("./zlib/constants"),c=n("./zlib/messages"),h=n("./zlib/zstream"),l=n("./zlib/gzheader"),f=Object.prototype.toString;function s(g){if(!(this instanceof s))return new s(g);this.options=p.assign({chunkSize:16384,windowBits:0,to:""},g||{});var v=this.options;v.raw&&0<=v.windowBits&&v.windowBits<16&&(v.windowBits=-v.windowBits,v.windowBits===0&&(v.windowBits=-15)),!(0<=v.windowBits&&v.windowBits<16)||g&&g.windowBits||(v.windowBits+=32),15<v.windowBits&&v.windowBits<48&&(15&v.windowBits)==0&&(v.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var m=u.inflateInit2(this.strm,v.windowBits);if(m!==a.Z_OK)throw new Error(c[m]);this.header=new l,u.inflateGetHeader(this.strm,this.header)}function d(g,v){var m=new s(v);if(m.push(g,!0),m.err)throw m.msg||c[m.err];return m.result}s.prototype.push=function(g,v){var m,y,b,_,S,C,T=this.strm,E=this.options.chunkSize,O=this.options.dictionary,D=!1;if(this.ended)return!1;y=v===~~v?v:v===!0?a.Z_FINISH:a.Z_NO_FLUSH,typeof g=="string"?T.input=o.binstring2buf(g):f.call(g)==="[object ArrayBuffer]"?T.input=new Uint8Array(g):T.input=g,T.next_in=0,T.avail_in=T.input.length;do{if(T.avail_out===0&&(T.output=new p.Buf8(E),T.next_out=0,T.avail_out=E),(m=u.inflate(T,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&O&&(C=typeof O=="string"?o.string2buf(O):f.call(O)==="[object ArrayBuffer]"?new Uint8Array(O):O,m=u.inflateSetDictionary(this.strm,C)),m===a.Z_BUF_ERROR&&D===!0&&(m=a.Z_OK,D=!1),m!==a.Z_STREAM_END&&m!==a.Z_OK)return this.onEnd(m),!(this.ended=!0);T.next_out&&(T.avail_out!==0&&m!==a.Z_STREAM_END&&(T.avail_in!==0||y!==a.Z_FINISH&&y!==a.Z_SYNC_FLUSH)||(this.options.to==="string"?(b=o.utf8border(T.output,T.next_out),_=T.next_out-b,S=o.buf2string(T.output,b),T.next_out=_,T.avail_out=E-_,_&&p.arraySet(T.output,T.output,b,_,0),this.onData(S)):this.onData(p.shrinkBuf(T.output,T.next_out)))),T.avail_in===0&&T.avail_out===0&&(D=!0)}while((0<T.avail_in||T.avail_out===0)&&m!==a.Z_STREAM_END);return m===a.Z_STREAM_END&&(y=a.Z_FINISH),y===a.Z_FINISH?(m=u.inflateEnd(this.strm),this.onEnd(m),this.ended=!0,m===a.Z_OK):y!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(T.avail_out=0))},s.prototype.onData=function(g){this.chunks.push(g)},s.prototype.onEnd=function(g){g===a.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=p.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},i.Inflate=s,i.inflate=d,i.inflateRaw=function(g,v){return(v=v||{}).raw=!0,d(g,v)},i.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,r,i){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(a){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var h=c.shift();if(h){if(typeof h!="object")throw new TypeError(h+"must be non-object");for(var l in h)h.hasOwnProperty(l)&&(a[l]=h[l])}}return a},i.shrinkBuf=function(a,c){return a.length===c?a:a.subarray?a.subarray(0,c):(a.length=c,a)};var p={arraySet:function(a,c,h,l,f){if(c.subarray&&a.subarray)a.set(c.subarray(h,h+l),f);else for(var s=0;s<l;s++)a[f+s]=c[h+s]},flattenChunks:function(a){var c,h,l,f,s,d;for(c=l=0,h=a.length;c<h;c++)l+=a[c].length;for(d=new Uint8Array(l),c=f=0,h=a.length;c<h;c++)s=a[c],d.set(s,f),f+=s.length;return d}},o={arraySet:function(a,c,h,l,f){for(var s=0;s<l;s++)a[f+s]=c[h+s]},flattenChunks:function(a){return[].concat.apply([],a)}};i.setTyped=function(a){a?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,p)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,o))},i.setTyped(u)},{}],42:[function(n,r,i){var u=n("./common"),p=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch{p=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{o=!1}for(var a=new u.Buf8(256),c=0;c<256;c++)a[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function h(l,f){if(f<65537&&(l.subarray&&o||!l.subarray&&p))return String.fromCharCode.apply(null,u.shrinkBuf(l,f));for(var s="",d=0;d<f;d++)s+=String.fromCharCode(l[d]);return s}a[254]=a[254]=1,i.string2buf=function(l){var f,s,d,g,v,m=l.length,y=0;for(g=0;g<m;g++)(64512&(s=l.charCodeAt(g)))==55296&&g+1<m&&(64512&(d=l.charCodeAt(g+1)))==56320&&(s=65536+(s-55296<<10)+(d-56320),g++),y+=s<128?1:s<2048?2:s<65536?3:4;for(f=new u.Buf8(y),g=v=0;v<y;g++)(64512&(s=l.charCodeAt(g)))==55296&&g+1<m&&(64512&(d=l.charCodeAt(g+1)))==56320&&(s=65536+(s-55296<<10)+(d-56320),g++),s<128?f[v++]=s:(s<2048?f[v++]=192|s>>>6:(s<65536?f[v++]=224|s>>>12:(f[v++]=240|s>>>18,f[v++]=128|s>>>12&63),f[v++]=128|s>>>6&63),f[v++]=128|63&s);return f},i.buf2binstring=function(l){return h(l,l.length)},i.binstring2buf=function(l){for(var f=new u.Buf8(l.length),s=0,d=f.length;s<d;s++)f[s]=l.charCodeAt(s);return f},i.buf2string=function(l,f){var s,d,g,v,m=f||l.length,y=new Array(2*m);for(s=d=0;s<m;)if((g=l[s++])<128)y[d++]=g;else if(4<(v=a[g]))y[d++]=65533,s+=v-1;else{for(g&=v===2?31:v===3?15:7;1<v&&s<m;)g=g<<6|63&l[s++],v--;1<v?y[d++]=65533:g<65536?y[d++]=g:(g-=65536,y[d++]=55296|g>>10&1023,y[d++]=56320|1023&g)}return h(y,d)},i.utf8border=function(l,f){var s;for((f=f||l.length)>l.length&&(f=l.length),s=f-1;0<=s&&(192&l[s])==128;)s--;return s<0||s===0?f:s+a[l[s]]>f?s:f}},{"./common":41}],43:[function(n,r,i){r.exports=function(u,p,o,a){for(var c=65535&u|0,h=u>>>16&65535|0,l=0;o!==0;){for(o-=l=2e3<o?2e3:o;h=h+(c=c+p[a++]|0)|0,--l;);c%=65521,h%=65521}return c|h<<16|0}},{}],44:[function(n,r,i){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,r,i){var u=function(){for(var p,o=[],a=0;a<256;a++){p=a;for(var c=0;c<8;c++)p=1&p?3988292384^p>>>1:p>>>1;o[a]=p}return o}();r.exports=function(p,o,a,c){var h=u,l=c+a;p^=-1;for(var f=c;f<l;f++)p=p>>>8^h[255&(p^o[f])];return-1^p}},{}],46:[function(n,r,i){var u,p=n("../utils/common"),o=n("./trees"),a=n("./adler32"),c=n("./crc32"),h=n("./messages"),l=0,f=4,s=0,d=-2,g=-1,v=4,m=2,y=8,b=9,_=286,S=30,C=19,T=2*_+1,E=15,O=3,D=258,j=D+O+1,k=42,U=113,P=1,re=2,q=3,V=4;function te(x,K){return x.msg=h[K],K}function A(x){return(x<<1)-(4<x?9:0)}function B(x){for(var K=x.length;0<=--K;)x[K]=0}function I(x){var K=x.state,X=K.pending;X>x.avail_out&&(X=x.avail_out),X!==0&&(p.arraySet(x.output,K.pending_buf,K.pending_out,X,x.next_out),x.next_out+=X,K.pending_out+=X,x.total_out+=X,x.avail_out-=X,K.pending-=X,K.pending===0&&(K.pending_out=0))}function M(x,K){o._tr_flush_block(x,0<=x.block_start?x.block_start:-1,x.strstart-x.block_start,K),x.block_start=x.strstart,I(x.strm)}function J(x,K){x.pending_buf[x.pending++]=K}function z(x,K){x.pending_buf[x.pending++]=K>>>8&255,x.pending_buf[x.pending++]=255&K}function L(x,K){var X,R,F=x.max_chain_length,ee=x.strstart,fe=x.prev_length,se=x.nice_match,Y=x.strstart>x.w_size-j?x.strstart-(x.w_size-j):0,ge=x.window,Z=x.w_mask,ue=x.prev,me=x.strstart+D,xe=ge[ee+fe-1],Ee=ge[ee+fe];x.prev_length>=x.good_match&&(F>>=2),se>x.lookahead&&(se=x.lookahead);do if(ge[(X=K)+fe]===Ee&&ge[X+fe-1]===xe&&ge[X]===ge[ee]&&ge[++X]===ge[ee+1]){ee+=2,X++;do;while(ge[++ee]===ge[++X]&&ge[++ee]===ge[++X]&&ge[++ee]===ge[++X]&&ge[++ee]===ge[++X]&&ge[++ee]===ge[++X]&&ge[++ee]===ge[++X]&&ge[++ee]===ge[++X]&&ge[++ee]===ge[++X]&&ee<me);if(R=D-(me-ee),ee=me-D,fe<R){if(x.match_start=K,se<=(fe=R))break;xe=ge[ee+fe-1],Ee=ge[ee+fe]}}while((K=ue[K&Z])>Y&&--F!=0);return fe<=x.lookahead?fe:x.lookahead}function Q(x){var K,X,R,F,ee,fe,se,Y,ge,Z,ue=x.w_size;do{if(F=x.window_size-x.lookahead-x.strstart,x.strstart>=ue+(ue-j)){for(p.arraySet(x.window,x.window,ue,ue,0),x.match_start-=ue,x.strstart-=ue,x.block_start-=ue,K=X=x.hash_size;R=x.head[--K],x.head[K]=ue<=R?R-ue:0,--X;);for(K=X=ue;R=x.prev[--K],x.prev[K]=ue<=R?R-ue:0,--X;);F+=ue}if(x.strm.avail_in===0)break;if(fe=x.strm,se=x.window,Y=x.strstart+x.lookahead,ge=F,Z=void 0,Z=fe.avail_in,ge<Z&&(Z=ge),X=Z===0?0:(fe.avail_in-=Z,p.arraySet(se,fe.input,fe.next_in,Z,Y),fe.state.wrap===1?fe.adler=a(fe.adler,se,Z,Y):fe.state.wrap===2&&(fe.adler=c(fe.adler,se,Z,Y)),fe.next_in+=Z,fe.total_in+=Z,Z),x.lookahead+=X,x.lookahead+x.insert>=O)for(ee=x.strstart-x.insert,x.ins_h=x.window[ee],x.ins_h=(x.ins_h<<x.hash_shift^x.window[ee+1])&x.hash_mask;x.insert&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[ee+O-1])&x.hash_mask,x.prev[ee&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=ee,ee++,x.insert--,!(x.lookahead+x.insert<O)););}while(x.lookahead<j&&x.strm.avail_in!==0)}function H(x,K){for(var X,R;;){if(x.lookahead<j){if(Q(x),x.lookahead<j&&K===l)return P;if(x.lookahead===0)break}if(X=0,x.lookahead>=O&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+O-1])&x.hash_mask,X=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart),X!==0&&x.strstart-X<=x.w_size-j&&(x.match_length=L(x,X)),x.match_length>=O)if(R=o._tr_tally(x,x.strstart-x.match_start,x.match_length-O),x.lookahead-=x.match_length,x.match_length<=x.max_lazy_match&&x.lookahead>=O){for(x.match_length--;x.strstart++,x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+O-1])&x.hash_mask,X=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart,--x.match_length!=0;);x.strstart++}else x.strstart+=x.match_length,x.match_length=0,x.ins_h=x.window[x.strstart],x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+1])&x.hash_mask;else R=o._tr_tally(x,0,x.window[x.strstart]),x.lookahead--,x.strstart++;if(R&&(M(x,!1),x.strm.avail_out===0))return P}return x.insert=x.strstart<O-1?x.strstart:O-1,K===f?(M(x,!0),x.strm.avail_out===0?q:V):x.last_lit&&(M(x,!1),x.strm.avail_out===0)?P:re}function G(x,K){for(var X,R,F;;){if(x.lookahead<j){if(Q(x),x.lookahead<j&&K===l)return P;if(x.lookahead===0)break}if(X=0,x.lookahead>=O&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+O-1])&x.hash_mask,X=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart),x.prev_length=x.match_length,x.prev_match=x.match_start,x.match_length=O-1,X!==0&&x.prev_length<x.max_lazy_match&&x.strstart-X<=x.w_size-j&&(x.match_length=L(x,X),x.match_length<=5&&(x.strategy===1||x.match_length===O&&4096<x.strstart-x.match_start)&&(x.match_length=O-1)),x.prev_length>=O&&x.match_length<=x.prev_length){for(F=x.strstart+x.lookahead-O,R=o._tr_tally(x,x.strstart-1-x.prev_match,x.prev_length-O),x.lookahead-=x.prev_length-1,x.prev_length-=2;++x.strstart<=F&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+O-1])&x.hash_mask,X=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart),--x.prev_length!=0;);if(x.match_available=0,x.match_length=O-1,x.strstart++,R&&(M(x,!1),x.strm.avail_out===0))return P}else if(x.match_available){if((R=o._tr_tally(x,0,x.window[x.strstart-1]))&&M(x,!1),x.strstart++,x.lookahead--,x.strm.avail_out===0)return P}else x.match_available=1,x.strstart++,x.lookahead--}return x.match_available&&(R=o._tr_tally(x,0,x.window[x.strstart-1]),x.match_available=0),x.insert=x.strstart<O-1?x.strstart:O-1,K===f?(M(x,!0),x.strm.avail_out===0?q:V):x.last_lit&&(M(x,!1),x.strm.avail_out===0)?P:re}function ne(x,K,X,R,F){this.good_length=x,this.max_lazy=K,this.nice_length=X,this.max_chain=R,this.func=F}function de(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new p.Buf16(2*T),this.dyn_dtree=new p.Buf16(2*(2*S+1)),this.bl_tree=new p.Buf16(2*(2*C+1)),B(this.dyn_ltree),B(this.dyn_dtree),B(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new p.Buf16(E+1),this.heap=new p.Buf16(2*_+1),B(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new p.Buf16(2*_+1),B(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ve(x){var K;return x&&x.state?(x.total_in=x.total_out=0,x.data_type=m,(K=x.state).pending=0,K.pending_out=0,K.wrap<0&&(K.wrap=-K.wrap),K.status=K.wrap?k:U,x.adler=K.wrap===2?0:1,K.last_flush=l,o._tr_init(K),s):te(x,d)}function _e(x){var K=ve(x);return K===s&&function(X){X.window_size=2*X.w_size,B(X.head),X.max_lazy_match=u[X.level].max_lazy,X.good_match=u[X.level].good_length,X.nice_match=u[X.level].nice_length,X.max_chain_length=u[X.level].max_chain,X.strstart=0,X.block_start=0,X.lookahead=0,X.insert=0,X.match_length=X.prev_length=O-1,X.match_available=0,X.ins_h=0}(x.state),K}function N(x,K,X,R,F,ee){if(!x)return d;var fe=1;if(K===g&&(K=6),R<0?(fe=0,R=-R):15<R&&(fe=2,R-=16),F<1||b<F||X!==y||R<8||15<R||K<0||9<K||ee<0||v<ee)return te(x,d);R===8&&(R=9);var se=new de;return(x.state=se).strm=x,se.wrap=fe,se.gzhead=null,se.w_bits=R,se.w_size=1<<se.w_bits,se.w_mask=se.w_size-1,se.hash_bits=F+7,se.hash_size=1<<se.hash_bits,se.hash_mask=se.hash_size-1,se.hash_shift=~~((se.hash_bits+O-1)/O),se.window=new p.Buf8(2*se.w_size),se.head=new p.Buf16(se.hash_size),se.prev=new p.Buf16(se.w_size),se.lit_bufsize=1<<F+6,se.pending_buf_size=4*se.lit_bufsize,se.pending_buf=new p.Buf8(se.pending_buf_size),se.d_buf=1*se.lit_bufsize,se.l_buf=3*se.lit_bufsize,se.level=K,se.strategy=ee,se.method=X,_e(x)}u=[new ne(0,0,0,0,function(x,K){var X=65535;for(X>x.pending_buf_size-5&&(X=x.pending_buf_size-5);;){if(x.lookahead<=1){if(Q(x),x.lookahead===0&&K===l)return P;if(x.lookahead===0)break}x.strstart+=x.lookahead,x.lookahead=0;var R=x.block_start+X;if((x.strstart===0||x.strstart>=R)&&(x.lookahead=x.strstart-R,x.strstart=R,M(x,!1),x.strm.avail_out===0)||x.strstart-x.block_start>=x.w_size-j&&(M(x,!1),x.strm.avail_out===0))return P}return x.insert=0,K===f?(M(x,!0),x.strm.avail_out===0?q:V):(x.strstart>x.block_start&&(M(x,!1),x.strm.avail_out),P)}),new ne(4,4,8,4,H),new ne(4,5,16,8,H),new ne(4,6,32,32,H),new ne(4,4,16,16,G),new ne(8,16,32,32,G),new ne(8,16,128,128,G),new ne(8,32,128,256,G),new ne(32,128,258,1024,G),new ne(32,258,258,4096,G)],i.deflateInit=function(x,K){return N(x,K,y,15,8,0)},i.deflateInit2=N,i.deflateReset=_e,i.deflateResetKeep=ve,i.deflateSetHeader=function(x,K){return x&&x.state?x.state.wrap!==2?d:(x.state.gzhead=K,s):d},i.deflate=function(x,K){var X,R,F,ee;if(!x||!x.state||5<K||K<0)return x?te(x,d):d;if(R=x.state,!x.output||!x.input&&x.avail_in!==0||R.status===666&&K!==f)return te(x,x.avail_out===0?-5:d);if(R.strm=x,X=R.last_flush,R.last_flush=K,R.status===k)if(R.wrap===2)x.adler=0,J(R,31),J(R,139),J(R,8),R.gzhead?(J(R,(R.gzhead.text?1:0)+(R.gzhead.hcrc?2:0)+(R.gzhead.extra?4:0)+(R.gzhead.name?8:0)+(R.gzhead.comment?16:0)),J(R,255&R.gzhead.time),J(R,R.gzhead.time>>8&255),J(R,R.gzhead.time>>16&255),J(R,R.gzhead.time>>24&255),J(R,R.level===9?2:2<=R.strategy||R.level<2?4:0),J(R,255&R.gzhead.os),R.gzhead.extra&&R.gzhead.extra.length&&(J(R,255&R.gzhead.extra.length),J(R,R.gzhead.extra.length>>8&255)),R.gzhead.hcrc&&(x.adler=c(x.adler,R.pending_buf,R.pending,0)),R.gzindex=0,R.status=69):(J(R,0),J(R,0),J(R,0),J(R,0),J(R,0),J(R,R.level===9?2:2<=R.strategy||R.level<2?4:0),J(R,3),R.status=U);else{var fe=y+(R.w_bits-8<<4)<<8;fe|=(2<=R.strategy||R.level<2?0:R.level<6?1:R.level===6?2:3)<<6,R.strstart!==0&&(fe|=32),fe+=31-fe%31,R.status=U,z(R,fe),R.strstart!==0&&(z(R,x.adler>>>16),z(R,65535&x.adler)),x.adler=1}if(R.status===69)if(R.gzhead.extra){for(F=R.pending;R.gzindex<(65535&R.gzhead.extra.length)&&(R.pending!==R.pending_buf_size||(R.gzhead.hcrc&&R.pending>F&&(x.adler=c(x.adler,R.pending_buf,R.pending-F,F)),I(x),F=R.pending,R.pending!==R.pending_buf_size));)J(R,255&R.gzhead.extra[R.gzindex]),R.gzindex++;R.gzhead.hcrc&&R.pending>F&&(x.adler=c(x.adler,R.pending_buf,R.pending-F,F)),R.gzindex===R.gzhead.extra.length&&(R.gzindex=0,R.status=73)}else R.status=73;if(R.status===73)if(R.gzhead.name){F=R.pending;do{if(R.pending===R.pending_buf_size&&(R.gzhead.hcrc&&R.pending>F&&(x.adler=c(x.adler,R.pending_buf,R.pending-F,F)),I(x),F=R.pending,R.pending===R.pending_buf_size)){ee=1;break}ee=R.gzindex<R.gzhead.name.length?255&R.gzhead.name.charCodeAt(R.gzindex++):0,J(R,ee)}while(ee!==0);R.gzhead.hcrc&&R.pending>F&&(x.adler=c(x.adler,R.pending_buf,R.pending-F,F)),ee===0&&(R.gzindex=0,R.status=91)}else R.status=91;if(R.status===91)if(R.gzhead.comment){F=R.pending;do{if(R.pending===R.pending_buf_size&&(R.gzhead.hcrc&&R.pending>F&&(x.adler=c(x.adler,R.pending_buf,R.pending-F,F)),I(x),F=R.pending,R.pending===R.pending_buf_size)){ee=1;break}ee=R.gzindex<R.gzhead.comment.length?255&R.gzhead.comment.charCodeAt(R.gzindex++):0,J(R,ee)}while(ee!==0);R.gzhead.hcrc&&R.pending>F&&(x.adler=c(x.adler,R.pending_buf,R.pending-F,F)),ee===0&&(R.status=103)}else R.status=103;if(R.status===103&&(R.gzhead.hcrc?(R.pending+2>R.pending_buf_size&&I(x),R.pending+2<=R.pending_buf_size&&(J(R,255&x.adler),J(R,x.adler>>8&255),x.adler=0,R.status=U)):R.status=U),R.pending!==0){if(I(x),x.avail_out===0)return R.last_flush=-1,s}else if(x.avail_in===0&&A(K)<=A(X)&&K!==f)return te(x,-5);if(R.status===666&&x.avail_in!==0)return te(x,-5);if(x.avail_in!==0||R.lookahead!==0||K!==l&&R.status!==666){var se=R.strategy===2?function(Y,ge){for(var Z;;){if(Y.lookahead===0&&(Q(Y),Y.lookahead===0)){if(ge===l)return P;break}if(Y.match_length=0,Z=o._tr_tally(Y,0,Y.window[Y.strstart]),Y.lookahead--,Y.strstart++,Z&&(M(Y,!1),Y.strm.avail_out===0))return P}return Y.insert=0,ge===f?(M(Y,!0),Y.strm.avail_out===0?q:V):Y.last_lit&&(M(Y,!1),Y.strm.avail_out===0)?P:re}(R,K):R.strategy===3?function(Y,ge){for(var Z,ue,me,xe,Ee=Y.window;;){if(Y.lookahead<=D){if(Q(Y),Y.lookahead<=D&&ge===l)return P;if(Y.lookahead===0)break}if(Y.match_length=0,Y.lookahead>=O&&0<Y.strstart&&(ue=Ee[me=Y.strstart-1])===Ee[++me]&&ue===Ee[++me]&&ue===Ee[++me]){xe=Y.strstart+D;do;while(ue===Ee[++me]&&ue===Ee[++me]&&ue===Ee[++me]&&ue===Ee[++me]&&ue===Ee[++me]&&ue===Ee[++me]&&ue===Ee[++me]&&ue===Ee[++me]&&me<xe);Y.match_length=D-(xe-me),Y.match_length>Y.lookahead&&(Y.match_length=Y.lookahead)}if(Y.match_length>=O?(Z=o._tr_tally(Y,1,Y.match_length-O),Y.lookahead-=Y.match_length,Y.strstart+=Y.match_length,Y.match_length=0):(Z=o._tr_tally(Y,0,Y.window[Y.strstart]),Y.lookahead--,Y.strstart++),Z&&(M(Y,!1),Y.strm.avail_out===0))return P}return Y.insert=0,ge===f?(M(Y,!0),Y.strm.avail_out===0?q:V):Y.last_lit&&(M(Y,!1),Y.strm.avail_out===0)?P:re}(R,K):u[R.level].func(R,K);if(se!==q&&se!==V||(R.status=666),se===P||se===q)return x.avail_out===0&&(R.last_flush=-1),s;if(se===re&&(K===1?o._tr_align(R):K!==5&&(o._tr_stored_block(R,0,0,!1),K===3&&(B(R.head),R.lookahead===0&&(R.strstart=0,R.block_start=0,R.insert=0))),I(x),x.avail_out===0))return R.last_flush=-1,s}return K!==f?s:R.wrap<=0?1:(R.wrap===2?(J(R,255&x.adler),J(R,x.adler>>8&255),J(R,x.adler>>16&255),J(R,x.adler>>24&255),J(R,255&x.total_in),J(R,x.total_in>>8&255),J(R,x.total_in>>16&255),J(R,x.total_in>>24&255)):(z(R,x.adler>>>16),z(R,65535&x.adler)),I(x),0<R.wrap&&(R.wrap=-R.wrap),R.pending!==0?s:1)},i.deflateEnd=function(x){var K;return x&&x.state?(K=x.state.status)!==k&&K!==69&&K!==73&&K!==91&&K!==103&&K!==U&&K!==666?te(x,d):(x.state=null,K===U?te(x,-3):s):d},i.deflateSetDictionary=function(x,K){var X,R,F,ee,fe,se,Y,ge,Z=K.length;if(!x||!x.state||(ee=(X=x.state).wrap)===2||ee===1&&X.status!==k||X.lookahead)return d;for(ee===1&&(x.adler=a(x.adler,K,Z,0)),X.wrap=0,Z>=X.w_size&&(ee===0&&(B(X.head),X.strstart=0,X.block_start=0,X.insert=0),ge=new p.Buf8(X.w_size),p.arraySet(ge,K,Z-X.w_size,X.w_size,0),K=ge,Z=X.w_size),fe=x.avail_in,se=x.next_in,Y=x.input,x.avail_in=Z,x.next_in=0,x.input=K,Q(X);X.lookahead>=O;){for(R=X.strstart,F=X.lookahead-(O-1);X.ins_h=(X.ins_h<<X.hash_shift^X.window[R+O-1])&X.hash_mask,X.prev[R&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=R,R++,--F;);X.strstart=R,X.lookahead=O-1,Q(X)}return X.strstart+=X.lookahead,X.block_start=X.strstart,X.insert=X.lookahead,X.lookahead=0,X.match_length=X.prev_length=O-1,X.match_available=0,x.next_in=se,x.input=Y,x.avail_in=fe,X.wrap=ee,s},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,r,i){r.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(n,r,i){r.exports=function(u,p){var o,a,c,h,l,f,s,d,g,v,m,y,b,_,S,C,T,E,O,D,j,k,U,P,re;o=u.state,a=u.next_in,P=u.input,c=a+(u.avail_in-5),h=u.next_out,re=u.output,l=h-(p-u.avail_out),f=h+(u.avail_out-257),s=o.dmax,d=o.wsize,g=o.whave,v=o.wnext,m=o.window,y=o.hold,b=o.bits,_=o.lencode,S=o.distcode,C=(1<<o.lenbits)-1,T=(1<<o.distbits)-1;e:do{b<15&&(y+=P[a++]<<b,b+=8,y+=P[a++]<<b,b+=8),E=_[y&C];t:for(;;){if(y>>>=O=E>>>24,b-=O,(O=E>>>16&255)===0)re[h++]=65535&E;else{if(!(16&O)){if((64&O)==0){E=_[(65535&E)+(y&(1<<O)-1)];continue t}if(32&O){o.mode=12;break e}u.msg="invalid literal/length code",o.mode=30;break e}D=65535&E,(O&=15)&&(b<O&&(y+=P[a++]<<b,b+=8),D+=y&(1<<O)-1,y>>>=O,b-=O),b<15&&(y+=P[a++]<<b,b+=8,y+=P[a++]<<b,b+=8),E=S[y&T];n:for(;;){if(y>>>=O=E>>>24,b-=O,!(16&(O=E>>>16&255))){if((64&O)==0){E=S[(65535&E)+(y&(1<<O)-1)];continue n}u.msg="invalid distance code",o.mode=30;break e}if(j=65535&E,b<(O&=15)&&(y+=P[a++]<<b,(b+=8)<O&&(y+=P[a++]<<b,b+=8)),s<(j+=y&(1<<O)-1)){u.msg="invalid distance too far back",o.mode=30;break e}if(y>>>=O,b-=O,(O=h-l)<j){if(g<(O=j-O)&&o.sane){u.msg="invalid distance too far back",o.mode=30;break e}if(U=m,(k=0)===v){if(k+=d-O,O<D){for(D-=O;re[h++]=m[k++],--O;);k=h-j,U=re}}else if(v<O){if(k+=d+v-O,(O-=v)<D){for(D-=O;re[h++]=m[k++],--O;);if(k=0,v<D){for(D-=O=v;re[h++]=m[k++],--O;);k=h-j,U=re}}}else if(k+=v-O,O<D){for(D-=O;re[h++]=m[k++],--O;);k=h-j,U=re}for(;2<D;)re[h++]=U[k++],re[h++]=U[k++],re[h++]=U[k++],D-=3;D&&(re[h++]=U[k++],1<D&&(re[h++]=U[k++]))}else{for(k=h-j;re[h++]=re[k++],re[h++]=re[k++],re[h++]=re[k++],2<(D-=3););D&&(re[h++]=re[k++],1<D&&(re[h++]=re[k++]))}break}}break}}while(a<c&&h<f);a-=D=b>>3,y&=(1<<(b-=D<<3))-1,u.next_in=a,u.next_out=h,u.avail_in=a<c?c-a+5:5-(a-c),u.avail_out=h<f?f-h+257:257-(h-f),o.hold=y,o.bits=b}},{}],49:[function(n,r,i){var u=n("../utils/common"),p=n("./adler32"),o=n("./crc32"),a=n("./inffast"),c=n("./inftrees"),h=1,l=2,f=0,s=-2,d=1,g=852,v=592;function m(k){return(k>>>24&255)+(k>>>8&65280)+((65280&k)<<8)+((255&k)<<24)}function y(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(k){var U;return k&&k.state?(U=k.state,k.total_in=k.total_out=U.total=0,k.msg="",U.wrap&&(k.adler=1&U.wrap),U.mode=d,U.last=0,U.havedict=0,U.dmax=32768,U.head=null,U.hold=0,U.bits=0,U.lencode=U.lendyn=new u.Buf32(g),U.distcode=U.distdyn=new u.Buf32(v),U.sane=1,U.back=-1,f):s}function _(k){var U;return k&&k.state?((U=k.state).wsize=0,U.whave=0,U.wnext=0,b(k)):s}function S(k,U){var P,re;return k&&k.state?(re=k.state,U<0?(P=0,U=-U):(P=1+(U>>4),U<48&&(U&=15)),U&&(U<8||15<U)?s:(re.window!==null&&re.wbits!==U&&(re.window=null),re.wrap=P,re.wbits=U,_(k))):s}function C(k,U){var P,re;return k?(re=new y,(k.state=re).window=null,(P=S(k,U))!==f&&(k.state=null),P):s}var T,E,O=!0;function D(k){if(O){var U;for(T=new u.Buf32(512),E=new u.Buf32(32),U=0;U<144;)k.lens[U++]=8;for(;U<256;)k.lens[U++]=9;for(;U<280;)k.lens[U++]=7;for(;U<288;)k.lens[U++]=8;for(c(h,k.lens,0,288,T,0,k.work,{bits:9}),U=0;U<32;)k.lens[U++]=5;c(l,k.lens,0,32,E,0,k.work,{bits:5}),O=!1}k.lencode=T,k.lenbits=9,k.distcode=E,k.distbits=5}function j(k,U,P,re){var q,V=k.state;return V.window===null&&(V.wsize=1<<V.wbits,V.wnext=0,V.whave=0,V.window=new u.Buf8(V.wsize)),re>=V.wsize?(u.arraySet(V.window,U,P-V.wsize,V.wsize,0),V.wnext=0,V.whave=V.wsize):(re<(q=V.wsize-V.wnext)&&(q=re),u.arraySet(V.window,U,P-re,q,V.wnext),(re-=q)?(u.arraySet(V.window,U,P-re,re,0),V.wnext=re,V.whave=V.wsize):(V.wnext+=q,V.wnext===V.wsize&&(V.wnext=0),V.whave<V.wsize&&(V.whave+=q))),0}i.inflateReset=_,i.inflateReset2=S,i.inflateResetKeep=b,i.inflateInit=function(k){return C(k,15)},i.inflateInit2=C,i.inflate=function(k,U){var P,re,q,V,te,A,B,I,M,J,z,L,Q,H,G,ne,de,ve,_e,N,x,K,X,R,F=0,ee=new u.Buf8(4),fe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!k||!k.state||!k.output||!k.input&&k.avail_in!==0)return s;(P=k.state).mode===12&&(P.mode=13),te=k.next_out,q=k.output,B=k.avail_out,V=k.next_in,re=k.input,A=k.avail_in,I=P.hold,M=P.bits,J=A,z=B,K=f;e:for(;;)switch(P.mode){case d:if(P.wrap===0){P.mode=13;break}for(;M<16;){if(A===0)break e;A--,I+=re[V++]<<M,M+=8}if(2&P.wrap&&I===35615){ee[P.check=0]=255&I,ee[1]=I>>>8&255,P.check=o(P.check,ee,2,0),M=I=0,P.mode=2;break}if(P.flags=0,P.head&&(P.head.done=!1),!(1&P.wrap)||(((255&I)<<8)+(I>>8))%31){k.msg="incorrect header check",P.mode=30;break}if((15&I)!=8){k.msg="unknown compression method",P.mode=30;break}if(M-=4,x=8+(15&(I>>>=4)),P.wbits===0)P.wbits=x;else if(x>P.wbits){k.msg="invalid window size",P.mode=30;break}P.dmax=1<<x,k.adler=P.check=1,P.mode=512&I?10:12,M=I=0;break;case 2:for(;M<16;){if(A===0)break e;A--,I+=re[V++]<<M,M+=8}if(P.flags=I,(255&P.flags)!=8){k.msg="unknown compression method",P.mode=30;break}if(57344&P.flags){k.msg="unknown header flags set",P.mode=30;break}P.head&&(P.head.text=I>>8&1),512&P.flags&&(ee[0]=255&I,ee[1]=I>>>8&255,P.check=o(P.check,ee,2,0)),M=I=0,P.mode=3;case 3:for(;M<32;){if(A===0)break e;A--,I+=re[V++]<<M,M+=8}P.head&&(P.head.time=I),512&P.flags&&(ee[0]=255&I,ee[1]=I>>>8&255,ee[2]=I>>>16&255,ee[3]=I>>>24&255,P.check=o(P.check,ee,4,0)),M=I=0,P.mode=4;case 4:for(;M<16;){if(A===0)break e;A--,I+=re[V++]<<M,M+=8}P.head&&(P.head.xflags=255&I,P.head.os=I>>8),512&P.flags&&(ee[0]=255&I,ee[1]=I>>>8&255,P.check=o(P.check,ee,2,0)),M=I=0,P.mode=5;case 5:if(1024&P.flags){for(;M<16;){if(A===0)break e;A--,I+=re[V++]<<M,M+=8}P.length=I,P.head&&(P.head.extra_len=I),512&P.flags&&(ee[0]=255&I,ee[1]=I>>>8&255,P.check=o(P.check,ee,2,0)),M=I=0}else P.head&&(P.head.extra=null);P.mode=6;case 6:if(1024&P.flags&&(A<(L=P.length)&&(L=A),L&&(P.head&&(x=P.head.extra_len-P.length,P.head.extra||(P.head.extra=new Array(P.head.extra_len)),u.arraySet(P.head.extra,re,V,L,x)),512&P.flags&&(P.check=o(P.check,re,L,V)),A-=L,V+=L,P.length-=L),P.length))break e;P.length=0,P.mode=7;case 7:if(2048&P.flags){if(A===0)break e;for(L=0;x=re[V+L++],P.head&&x&&P.length<65536&&(P.head.name+=String.fromCharCode(x)),x&&L<A;);if(512&P.flags&&(P.check=o(P.check,re,L,V)),A-=L,V+=L,x)break e}else P.head&&(P.head.name=null);P.length=0,P.mode=8;case 8:if(4096&P.flags){if(A===0)break e;for(L=0;x=re[V+L++],P.head&&x&&P.length<65536&&(P.head.comment+=String.fromCharCode(x)),x&&L<A;);if(512&P.flags&&(P.check=o(P.check,re,L,V)),A-=L,V+=L,x)break e}else P.head&&(P.head.comment=null);P.mode=9;case 9:if(512&P.flags){for(;M<16;){if(A===0)break e;A--,I+=re[V++]<<M,M+=8}if(I!==(65535&P.check)){k.msg="header crc mismatch",P.mode=30;break}M=I=0}P.head&&(P.head.hcrc=P.flags>>9&1,P.head.done=!0),k.adler=P.check=0,P.mode=12;break;case 10:for(;M<32;){if(A===0)break e;A--,I+=re[V++]<<M,M+=8}k.adler=P.check=m(I),M=I=0,P.mode=11;case 11:if(P.havedict===0)return k.next_out=te,k.avail_out=B,k.next_in=V,k.avail_in=A,P.hold=I,P.bits=M,2;k.adler=P.check=1,P.mode=12;case 12:if(U===5||U===6)break e;case 13:if(P.last){I>>>=7&M,M-=7&M,P.mode=27;break}for(;M<3;){if(A===0)break e;A--,I+=re[V++]<<M,M+=8}switch(P.last=1&I,M-=1,3&(I>>>=1)){case 0:P.mode=14;break;case 1:if(D(P),P.mode=20,U!==6)break;I>>>=2,M-=2;break e;case 2:P.mode=17;break;case 3:k.msg="invalid block type",P.mode=30}I>>>=2,M-=2;break;case 14:for(I>>>=7&M,M-=7&M;M<32;){if(A===0)break e;A--,I+=re[V++]<<M,M+=8}if((65535&I)!=(I>>>16^65535)){k.msg="invalid stored block lengths",P.mode=30;break}if(P.length=65535&I,M=I=0,P.mode=15,U===6)break e;case 15:P.mode=16;case 16:if(L=P.length){if(A<L&&(L=A),B<L&&(L=B),L===0)break e;u.arraySet(q,re,V,L,te),A-=L,V+=L,B-=L,te+=L,P.length-=L;break}P.mode=12;break;case 17:for(;M<14;){if(A===0)break e;A--,I+=re[V++]<<M,M+=8}if(P.nlen=257+(31&I),I>>>=5,M-=5,P.ndist=1+(31&I),I>>>=5,M-=5,P.ncode=4+(15&I),I>>>=4,M-=4,286<P.nlen||30<P.ndist){k.msg="too many length or distance symbols",P.mode=30;break}P.have=0,P.mode=18;case 18:for(;P.have<P.ncode;){for(;M<3;){if(A===0)break e;A--,I+=re[V++]<<M,M+=8}P.lens[fe[P.have++]]=7&I,I>>>=3,M-=3}for(;P.have<19;)P.lens[fe[P.have++]]=0;if(P.lencode=P.lendyn,P.lenbits=7,X={bits:P.lenbits},K=c(0,P.lens,0,19,P.lencode,0,P.work,X),P.lenbits=X.bits,K){k.msg="invalid code lengths set",P.mode=30;break}P.have=0,P.mode=19;case 19:for(;P.have<P.nlen+P.ndist;){for(;ne=(F=P.lencode[I&(1<<P.lenbits)-1])>>>16&255,de=65535&F,!((G=F>>>24)<=M);){if(A===0)break e;A--,I+=re[V++]<<M,M+=8}if(de<16)I>>>=G,M-=G,P.lens[P.have++]=de;else{if(de===16){for(R=G+2;M<R;){if(A===0)break e;A--,I+=re[V++]<<M,M+=8}if(I>>>=G,M-=G,P.have===0){k.msg="invalid bit length repeat",P.mode=30;break}x=P.lens[P.have-1],L=3+(3&I),I>>>=2,M-=2}else if(de===17){for(R=G+3;M<R;){if(A===0)break e;A--,I+=re[V++]<<M,M+=8}M-=G,x=0,L=3+(7&(I>>>=G)),I>>>=3,M-=3}else{for(R=G+7;M<R;){if(A===0)break e;A--,I+=re[V++]<<M,M+=8}M-=G,x=0,L=11+(127&(I>>>=G)),I>>>=7,M-=7}if(P.have+L>P.nlen+P.ndist){k.msg="invalid bit length repeat",P.mode=30;break}for(;L--;)P.lens[P.have++]=x}}if(P.mode===30)break;if(P.lens[256]===0){k.msg="invalid code -- missing end-of-block",P.mode=30;break}if(P.lenbits=9,X={bits:P.lenbits},K=c(h,P.lens,0,P.nlen,P.lencode,0,P.work,X),P.lenbits=X.bits,K){k.msg="invalid literal/lengths set",P.mode=30;break}if(P.distbits=6,P.distcode=P.distdyn,X={bits:P.distbits},K=c(l,P.lens,P.nlen,P.ndist,P.distcode,0,P.work,X),P.distbits=X.bits,K){k.msg="invalid distances set",P.mode=30;break}if(P.mode=20,U===6)break e;case 20:P.mode=21;case 21:if(6<=A&&258<=B){k.next_out=te,k.avail_out=B,k.next_in=V,k.avail_in=A,P.hold=I,P.bits=M,a(k,z),te=k.next_out,q=k.output,B=k.avail_out,V=k.next_in,re=k.input,A=k.avail_in,I=P.hold,M=P.bits,P.mode===12&&(P.back=-1);break}for(P.back=0;ne=(F=P.lencode[I&(1<<P.lenbits)-1])>>>16&255,de=65535&F,!((G=F>>>24)<=M);){if(A===0)break e;A--,I+=re[V++]<<M,M+=8}if(ne&&(240&ne)==0){for(ve=G,_e=ne,N=de;ne=(F=P.lencode[N+((I&(1<<ve+_e)-1)>>ve)])>>>16&255,de=65535&F,!(ve+(G=F>>>24)<=M);){if(A===0)break e;A--,I+=re[V++]<<M,M+=8}I>>>=ve,M-=ve,P.back+=ve}if(I>>>=G,M-=G,P.back+=G,P.length=de,ne===0){P.mode=26;break}if(32&ne){P.back=-1,P.mode=12;break}if(64&ne){k.msg="invalid literal/length code",P.mode=30;break}P.extra=15&ne,P.mode=22;case 22:if(P.extra){for(R=P.extra;M<R;){if(A===0)break e;A--,I+=re[V++]<<M,M+=8}P.length+=I&(1<<P.extra)-1,I>>>=P.extra,M-=P.extra,P.back+=P.extra}P.was=P.length,P.mode=23;case 23:for(;ne=(F=P.distcode[I&(1<<P.distbits)-1])>>>16&255,de=65535&F,!((G=F>>>24)<=M);){if(A===0)break e;A--,I+=re[V++]<<M,M+=8}if((240&ne)==0){for(ve=G,_e=ne,N=de;ne=(F=P.distcode[N+((I&(1<<ve+_e)-1)>>ve)])>>>16&255,de=65535&F,!(ve+(G=F>>>24)<=M);){if(A===0)break e;A--,I+=re[V++]<<M,M+=8}I>>>=ve,M-=ve,P.back+=ve}if(I>>>=G,M-=G,P.back+=G,64&ne){k.msg="invalid distance code",P.mode=30;break}P.offset=de,P.extra=15&ne,P.mode=24;case 24:if(P.extra){for(R=P.extra;M<R;){if(A===0)break e;A--,I+=re[V++]<<M,M+=8}P.offset+=I&(1<<P.extra)-1,I>>>=P.extra,M-=P.extra,P.back+=P.extra}if(P.offset>P.dmax){k.msg="invalid distance too far back",P.mode=30;break}P.mode=25;case 25:if(B===0)break e;if(L=z-B,P.offset>L){if((L=P.offset-L)>P.whave&&P.sane){k.msg="invalid distance too far back",P.mode=30;break}Q=L>P.wnext?(L-=P.wnext,P.wsize-L):P.wnext-L,L>P.length&&(L=P.length),H=P.window}else H=q,Q=te-P.offset,L=P.length;for(B<L&&(L=B),B-=L,P.length-=L;q[te++]=H[Q++],--L;);P.length===0&&(P.mode=21);break;case 26:if(B===0)break e;q[te++]=P.length,B--,P.mode=21;break;case 27:if(P.wrap){for(;M<32;){if(A===0)break e;A--,I|=re[V++]<<M,M+=8}if(z-=B,k.total_out+=z,P.total+=z,z&&(k.adler=P.check=P.flags?o(P.check,q,z,te-z):p(P.check,q,z,te-z)),z=B,(P.flags?I:m(I))!==P.check){k.msg="incorrect data check",P.mode=30;break}M=I=0}P.mode=28;case 28:if(P.wrap&&P.flags){for(;M<32;){if(A===0)break e;A--,I+=re[V++]<<M,M+=8}if(I!==(4294967295&P.total)){k.msg="incorrect length check",P.mode=30;break}M=I=0}P.mode=29;case 29:K=1;break e;case 30:K=-3;break e;case 31:return-4;case 32:default:return s}return k.next_out=te,k.avail_out=B,k.next_in=V,k.avail_in=A,P.hold=I,P.bits=M,(P.wsize||z!==k.avail_out&&P.mode<30&&(P.mode<27||U!==4))&&j(k,k.output,k.next_out,z-k.avail_out)?(P.mode=31,-4):(J-=k.avail_in,z-=k.avail_out,k.total_in+=J,k.total_out+=z,P.total+=z,P.wrap&&z&&(k.adler=P.check=P.flags?o(P.check,q,z,k.next_out-z):p(P.check,q,z,k.next_out-z)),k.data_type=P.bits+(P.last?64:0)+(P.mode===12?128:0)+(P.mode===20||P.mode===15?256:0),(J==0&&z===0||U===4)&&K===f&&(K=-5),K)},i.inflateEnd=function(k){if(!k||!k.state)return s;var U=k.state;return U.window&&(U.window=null),k.state=null,f},i.inflateGetHeader=function(k,U){var P;return k&&k.state?(2&(P=k.state).wrap)==0?s:((P.head=U).done=!1,f):s},i.inflateSetDictionary=function(k,U){var P,re=U.length;return k&&k.state?(P=k.state).wrap!==0&&P.mode!==11?s:P.mode===11&&p(1,U,re,0)!==P.check?-3:j(k,U,re,re)?(P.mode=31,-4):(P.havedict=1,f):s},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,r,i){var u=n("../utils/common"),p=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];r.exports=function(h,l,f,s,d,g,v,m){var y,b,_,S,C,T,E,O,D,j=m.bits,k=0,U=0,P=0,re=0,q=0,V=0,te=0,A=0,B=0,I=0,M=null,J=0,z=new u.Buf16(16),L=new u.Buf16(16),Q=null,H=0;for(k=0;k<=15;k++)z[k]=0;for(U=0;U<s;U++)z[l[f+U]]++;for(q=j,re=15;1<=re&&z[re]===0;re--);if(re<q&&(q=re),re===0)return d[g++]=20971520,d[g++]=20971520,m.bits=1,0;for(P=1;P<re&&z[P]===0;P++);for(q<P&&(q=P),k=A=1;k<=15;k++)if(A<<=1,(A-=z[k])<0)return-1;if(0<A&&(h===0||re!==1))return-1;for(L[1]=0,k=1;k<15;k++)L[k+1]=L[k]+z[k];for(U=0;U<s;U++)l[f+U]!==0&&(v[L[l[f+U]]++]=U);if(T=h===0?(M=Q=v,19):h===1?(M=p,J-=257,Q=o,H-=257,256):(M=a,Q=c,-1),k=P,C=g,te=U=I=0,_=-1,S=(B=1<<(V=q))-1,h===1&&852<B||h===2&&592<B)return 1;for(;;){for(E=k-te,D=v[U]<T?(O=0,v[U]):v[U]>T?(O=Q[H+v[U]],M[J+v[U]]):(O=96,0),y=1<<k-te,P=b=1<<V;d[C+(I>>te)+(b-=y)]=E<<24|O<<16|D|0,b!==0;);for(y=1<<k-1;I&y;)y>>=1;if(y!==0?(I&=y-1,I+=y):I=0,U++,--z[k]==0){if(k===re)break;k=l[f+v[U]]}if(q<k&&(I&S)!==_){for(te===0&&(te=q),C+=P,A=1<<(V=k-te);V+te<re&&!((A-=z[V+te])<=0);)V++,A<<=1;if(B+=1<<V,h===1&&852<B||h===2&&592<B)return 1;d[_=I&S]=q<<24|V<<16|C-g|0}}return I!==0&&(d[C+I]=k-te<<24|64<<16|0),m.bits=q,0}},{"../utils/common":41}],51:[function(n,r,i){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(n,r,i){var u=n("../utils/common"),p=0,o=1;function a(F){for(var ee=F.length;0<=--ee;)F[ee]=0}var c=0,h=29,l=256,f=l+1+h,s=30,d=19,g=2*f+1,v=15,m=16,y=7,b=256,_=16,S=17,C=18,T=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],E=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=new Array(2*(f+2));a(j);var k=new Array(2*s);a(k);var U=new Array(512);a(U);var P=new Array(256);a(P);var re=new Array(h);a(re);var q,V,te,A=new Array(s);function B(F,ee,fe,se,Y){this.static_tree=F,this.extra_bits=ee,this.extra_base=fe,this.elems=se,this.max_length=Y,this.has_stree=F&&F.length}function I(F,ee){this.dyn_tree=F,this.max_code=0,this.stat_desc=ee}function M(F){return F<256?U[F]:U[256+(F>>>7)]}function J(F,ee){F.pending_buf[F.pending++]=255&ee,F.pending_buf[F.pending++]=ee>>>8&255}function z(F,ee,fe){F.bi_valid>m-fe?(F.bi_buf|=ee<<F.bi_valid&65535,J(F,F.bi_buf),F.bi_buf=ee>>m-F.bi_valid,F.bi_valid+=fe-m):(F.bi_buf|=ee<<F.bi_valid&65535,F.bi_valid+=fe)}function L(F,ee,fe){z(F,fe[2*ee],fe[2*ee+1])}function Q(F,ee){for(var fe=0;fe|=1&F,F>>>=1,fe<<=1,0<--ee;);return fe>>>1}function H(F,ee,fe){var se,Y,ge=new Array(v+1),Z=0;for(se=1;se<=v;se++)ge[se]=Z=Z+fe[se-1]<<1;for(Y=0;Y<=ee;Y++){var ue=F[2*Y+1];ue!==0&&(F[2*Y]=Q(ge[ue]++,ue))}}function G(F){var ee;for(ee=0;ee<f;ee++)F.dyn_ltree[2*ee]=0;for(ee=0;ee<s;ee++)F.dyn_dtree[2*ee]=0;for(ee=0;ee<d;ee++)F.bl_tree[2*ee]=0;F.dyn_ltree[2*b]=1,F.opt_len=F.static_len=0,F.last_lit=F.matches=0}function ne(F){8<F.bi_valid?J(F,F.bi_buf):0<F.bi_valid&&(F.pending_buf[F.pending++]=F.bi_buf),F.bi_buf=0,F.bi_valid=0}function de(F,ee,fe,se){var Y=2*ee,ge=2*fe;return F[Y]<F[ge]||F[Y]===F[ge]&&se[ee]<=se[fe]}function ve(F,ee,fe){for(var se=F.heap[fe],Y=fe<<1;Y<=F.heap_len&&(Y<F.heap_len&&de(ee,F.heap[Y+1],F.heap[Y],F.depth)&&Y++,!de(ee,se,F.heap[Y],F.depth));)F.heap[fe]=F.heap[Y],fe=Y,Y<<=1;F.heap[fe]=se}function _e(F,ee,fe){var se,Y,ge,Z,ue=0;if(F.last_lit!==0)for(;se=F.pending_buf[F.d_buf+2*ue]<<8|F.pending_buf[F.d_buf+2*ue+1],Y=F.pending_buf[F.l_buf+ue],ue++,se===0?L(F,Y,ee):(L(F,(ge=P[Y])+l+1,ee),(Z=T[ge])!==0&&z(F,Y-=re[ge],Z),L(F,ge=M(--se),fe),(Z=E[ge])!==0&&z(F,se-=A[ge],Z)),ue<F.last_lit;);L(F,b,ee)}function N(F,ee){var fe,se,Y,ge=ee.dyn_tree,Z=ee.stat_desc.static_tree,ue=ee.stat_desc.has_stree,me=ee.stat_desc.elems,xe=-1;for(F.heap_len=0,F.heap_max=g,fe=0;fe<me;fe++)ge[2*fe]!==0?(F.heap[++F.heap_len]=xe=fe,F.depth[fe]=0):ge[2*fe+1]=0;for(;F.heap_len<2;)ge[2*(Y=F.heap[++F.heap_len]=xe<2?++xe:0)]=1,F.depth[Y]=0,F.opt_len--,ue&&(F.static_len-=Z[2*Y+1]);for(ee.max_code=xe,fe=F.heap_len>>1;1<=fe;fe--)ve(F,ge,fe);for(Y=me;fe=F.heap[1],F.heap[1]=F.heap[F.heap_len--],ve(F,ge,1),se=F.heap[1],F.heap[--F.heap_max]=fe,F.heap[--F.heap_max]=se,ge[2*Y]=ge[2*fe]+ge[2*se],F.depth[Y]=(F.depth[fe]>=F.depth[se]?F.depth[fe]:F.depth[se])+1,ge[2*fe+1]=ge[2*se+1]=Y,F.heap[1]=Y++,ve(F,ge,1),2<=F.heap_len;);F.heap[--F.heap_max]=F.heap[1],function(Ee,ke){var Ue,Xe,tt,qe,Yt,Bn,bt=ke.dyn_tree,zt=ke.max_code,Gr=ke.stat_desc.static_tree,Ci=ke.stat_desc.has_stree,Et=ke.stat_desc.extra_bits,Ar=ke.stat_desc.extra_base,ln=ke.stat_desc.max_length,_n=0;for(qe=0;qe<=v;qe++)Ee.bl_count[qe]=0;for(bt[2*Ee.heap[Ee.heap_max]+1]=0,Ue=Ee.heap_max+1;Ue<g;Ue++)ln<(qe=bt[2*bt[2*(Xe=Ee.heap[Ue])+1]+1]+1)&&(qe=ln,_n++),bt[2*Xe+1]=qe,zt<Xe||(Ee.bl_count[qe]++,Yt=0,Ar<=Xe&&(Yt=Et[Xe-Ar]),Bn=bt[2*Xe],Ee.opt_len+=Bn*(qe+Yt),Ci&&(Ee.static_len+=Bn*(Gr[2*Xe+1]+Yt)));if(_n!==0){do{for(qe=ln-1;Ee.bl_count[qe]===0;)qe--;Ee.bl_count[qe]--,Ee.bl_count[qe+1]+=2,Ee.bl_count[ln]--,_n-=2}while(0<_n);for(qe=ln;qe!==0;qe--)for(Xe=Ee.bl_count[qe];Xe!==0;)zt<(tt=Ee.heap[--Ue])||(bt[2*tt+1]!==qe&&(Ee.opt_len+=(qe-bt[2*tt+1])*bt[2*tt],bt[2*tt+1]=qe),Xe--)}}(F,ee),H(ge,xe,F.bl_count)}function x(F,ee,fe){var se,Y,ge=-1,Z=ee[1],ue=0,me=7,xe=4;for(Z===0&&(me=138,xe=3),ee[2*(fe+1)+1]=65535,se=0;se<=fe;se++)Y=Z,Z=ee[2*(se+1)+1],++ue<me&&Y===Z||(ue<xe?F.bl_tree[2*Y]+=ue:Y!==0?(Y!==ge&&F.bl_tree[2*Y]++,F.bl_tree[2*_]++):ue<=10?F.bl_tree[2*S]++:F.bl_tree[2*C]++,ge=Y,xe=(ue=0)===Z?(me=138,3):Y===Z?(me=6,3):(me=7,4))}function K(F,ee,fe){var se,Y,ge=-1,Z=ee[1],ue=0,me=7,xe=4;for(Z===0&&(me=138,xe=3),se=0;se<=fe;se++)if(Y=Z,Z=ee[2*(se+1)+1],!(++ue<me&&Y===Z)){if(ue<xe)for(;L(F,Y,F.bl_tree),--ue!=0;);else Y!==0?(Y!==ge&&(L(F,Y,F.bl_tree),ue--),L(F,_,F.bl_tree),z(F,ue-3,2)):ue<=10?(L(F,S,F.bl_tree),z(F,ue-3,3)):(L(F,C,F.bl_tree),z(F,ue-11,7));ge=Y,xe=(ue=0)===Z?(me=138,3):Y===Z?(me=6,3):(me=7,4)}}a(A);var X=!1;function R(F,ee,fe,se){z(F,(c<<1)+(se?1:0),3),function(Y,ge,Z,ue){ne(Y),ue&&(J(Y,Z),J(Y,~Z)),u.arraySet(Y.pending_buf,Y.window,ge,Z,Y.pending),Y.pending+=Z}(F,ee,fe,!0)}i._tr_init=function(F){X||(function(){var ee,fe,se,Y,ge,Z=new Array(v+1);for(Y=se=0;Y<h-1;Y++)for(re[Y]=se,ee=0;ee<1<<T[Y];ee++)P[se++]=Y;for(P[se-1]=Y,Y=ge=0;Y<16;Y++)for(A[Y]=ge,ee=0;ee<1<<E[Y];ee++)U[ge++]=Y;for(ge>>=7;Y<s;Y++)for(A[Y]=ge<<7,ee=0;ee<1<<E[Y]-7;ee++)U[256+ge++]=Y;for(fe=0;fe<=v;fe++)Z[fe]=0;for(ee=0;ee<=143;)j[2*ee+1]=8,ee++,Z[8]++;for(;ee<=255;)j[2*ee+1]=9,ee++,Z[9]++;for(;ee<=279;)j[2*ee+1]=7,ee++,Z[7]++;for(;ee<=287;)j[2*ee+1]=8,ee++,Z[8]++;for(H(j,f+1,Z),ee=0;ee<s;ee++)k[2*ee+1]=5,k[2*ee]=Q(ee,5);q=new B(j,T,l+1,f,v),V=new B(k,E,0,s,v),te=new B(new Array(0),O,0,d,y)}(),X=!0),F.l_desc=new I(F.dyn_ltree,q),F.d_desc=new I(F.dyn_dtree,V),F.bl_desc=new I(F.bl_tree,te),F.bi_buf=0,F.bi_valid=0,G(F)},i._tr_stored_block=R,i._tr_flush_block=function(F,ee,fe,se){var Y,ge,Z=0;0<F.level?(F.strm.data_type===2&&(F.strm.data_type=function(ue){var me,xe=4093624447;for(me=0;me<=31;me++,xe>>>=1)if(1&xe&&ue.dyn_ltree[2*me]!==0)return p;if(ue.dyn_ltree[18]!==0||ue.dyn_ltree[20]!==0||ue.dyn_ltree[26]!==0)return o;for(me=32;me<l;me++)if(ue.dyn_ltree[2*me]!==0)return o;return p}(F)),N(F,F.l_desc),N(F,F.d_desc),Z=function(ue){var me;for(x(ue,ue.dyn_ltree,ue.l_desc.max_code),x(ue,ue.dyn_dtree,ue.d_desc.max_code),N(ue,ue.bl_desc),me=d-1;3<=me&&ue.bl_tree[2*D[me]+1]===0;me--);return ue.opt_len+=3*(me+1)+5+5+4,me}(F),Y=F.opt_len+3+7>>>3,(ge=F.static_len+3+7>>>3)<=Y&&(Y=ge)):Y=ge=fe+5,fe+4<=Y&&ee!==-1?R(F,ee,fe,se):F.strategy===4||ge===Y?(z(F,2+(se?1:0),3),_e(F,j,k)):(z(F,4+(se?1:0),3),function(ue,me,xe,Ee){var ke;for(z(ue,me-257,5),z(ue,xe-1,5),z(ue,Ee-4,4),ke=0;ke<Ee;ke++)z(ue,ue.bl_tree[2*D[ke]+1],3);K(ue,ue.dyn_ltree,me-1),K(ue,ue.dyn_dtree,xe-1)}(F,F.l_desc.max_code+1,F.d_desc.max_code+1,Z+1),_e(F,F.dyn_ltree,F.dyn_dtree)),G(F),se&&ne(F)},i._tr_tally=function(F,ee,fe){return F.pending_buf[F.d_buf+2*F.last_lit]=ee>>>8&255,F.pending_buf[F.d_buf+2*F.last_lit+1]=255&ee,F.pending_buf[F.l_buf+F.last_lit]=255&fe,F.last_lit++,ee===0?F.dyn_ltree[2*fe]++:(F.matches++,ee--,F.dyn_ltree[2*(P[fe]+l+1)]++,F.dyn_dtree[2*M(ee)]++),F.last_lit===F.lit_bufsize-1},i._tr_align=function(F){z(F,2,3),L(F,b,j),function(ee){ee.bi_valid===16?(J(ee,ee.bi_buf),ee.bi_buf=0,ee.bi_valid=0):8<=ee.bi_valid&&(ee.pending_buf[ee.pending++]=255&ee.bi_buf,ee.bi_buf>>=8,ee.bi_valid-=8)}(F)}},{"../utils/common":41}],53:[function(n,r,i){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,r,i){(function(u){(function(p,o){if(!p.setImmediate){var a,c,h,l,f=1,s={},d=!1,g=p.document,v=Object.getPrototypeOf&&Object.getPrototypeOf(p);v=v&&v.setTimeout?v:p,a={}.toString.call(p.process)==="[object process]"?function(_){process.nextTick(function(){y(_)})}:function(){if(p.postMessage&&!p.importScripts){var _=!0,S=p.onmessage;return p.onmessage=function(){_=!1},p.postMessage("","*"),p.onmessage=S,_}}()?(l="setImmediate$"+Math.random()+"$",p.addEventListener?p.addEventListener("message",b,!1):p.attachEvent("onmessage",b),function(_){p.postMessage(l+_,"*")}):p.MessageChannel?((h=new MessageChannel).port1.onmessage=function(_){y(_.data)},function(_){h.port2.postMessage(_)}):g&&"onreadystatechange"in g.createElement("script")?(c=g.documentElement,function(_){var S=g.createElement("script");S.onreadystatechange=function(){y(_),S.onreadystatechange=null,c.removeChild(S),S=null},c.appendChild(S)}):function(_){setTimeout(y,0,_)},v.setImmediate=function(_){typeof _!="function"&&(_=new Function(""+_));for(var S=new Array(arguments.length-1),C=0;C<S.length;C++)S[C]=arguments[C+1];var T={callback:_,args:S};return s[f]=T,a(f),f++},v.clearImmediate=m}function m(_){delete s[_]}function y(_){if(d)setTimeout(y,0,_);else{var S=s[_];if(S){d=!0;try{(function(C){var T=C.callback,E=C.args;switch(E.length){case 0:T();break;case 1:T(E[0]);break;case 2:T(E[0],E[1]);break;case 3:T(E[0],E[1],E[2]);break;default:T.apply(o,E)}})(S)}finally{m(_),d=!1}}}}function b(_){_.source===p&&typeof _.data=="string"&&_.data.indexOf(l)===0&&y(+_.data.slice(l.length))}})(typeof self>"u"?u===void 0?this:u:self)}).call(this,typeof yu<"u"?yu:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(DS);var ip=function(e,t){return ip=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},ip(e,t)};function sg(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ip(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function d9(e,t,n,r){function i(u){return u instanceof n?u:new n(function(p){p(u)})}return new(n||(n=Promise))(function(u,p){function o(h){try{c(r.next(h))}catch(l){p(l)}}function a(h){try{c(r.throw(h))}catch(l){p(l)}}function c(h){h.done?u(h.value):i(h.value).then(o,a)}c((r=r.apply(e,t||[])).next())})}function FS(e,t){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},r,i,u,p=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return p.next=o(0),p.throw=o(1),p.return=o(2),typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function o(c){return function(h){return a([c,h])}}function a(c){if(r)throw new TypeError("Generator is already executing.");for(;p&&(p=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(u=c[0]&2?i.return:c[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,c[1])).done)return u;switch(i=0,u&&(c=[c[0]&2,u.value]),c[0]){case 0:case 1:u=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!u||c[1]>u[0]&&c[1]<u[3])){n.label=c[1];break}if(c[0]===6&&n.label<u[1]){n.label=u[1],u=c;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(c);break}u[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(h){c=[6,h],i=0}finally{r=u=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Tl(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function jc(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,u=[],p;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)u.push(i.value)}catch(o){p={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(p)throw p.error}}return u}function Vc(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,u;r<i;r++)(u||!(r in t))&&(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return e.concat(u||Array.prototype.slice.call(t))}function xo(e){return this instanceof xo?(this.v=e,this):new xo(e)}function h9(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,u=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",p),i[Symbol.asyncIterator]=function(){return this},i;function p(s){return function(d){return Promise.resolve(d).then(s,l)}}function o(s,d){r[s]&&(i[s]=function(g){return new Promise(function(v,m){u.push([s,g,v,m])>1||a(s,g)})},d&&(i[s]=d(i[s])))}function a(s,d){try{c(r[s](d))}catch(g){f(u[0][3],g)}}function c(s){s.value instanceof xo?Promise.resolve(s.value.v).then(h,l):f(u[0][2],s)}function h(s){a("next",s)}function l(s){a("throw",s)}function f(s,d){s(d),u.shift(),u.length&&a(u[0][0],u[0][1])}}function p9(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Tl=="function"?Tl(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(u){n[u]=e[u]&&function(p){return new Promise(function(o,a){p=e[u](p),i(o,a,p.done,p.value)})}}function i(u,p,o,a){Promise.resolve(a).then(function(c){u({value:c,done:o})},p)}}function sn(e){return typeof e=="function"}function v9(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var wd=v9(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
`+n.map(function(r,i){return i+1+") "+r.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=n}});function Ny(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var lg=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,i,u;if(!this.closed){this.closed=!0;var p=this._parentage;if(p)if(this._parentage=null,Array.isArray(p))try{for(var o=Tl(p),a=o.next();!a.done;a=o.next()){var c=a.value;c.remove(this)}}catch(g){t={error:g}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}else p.remove(this);var h=this.initialTeardown;if(sn(h))try{h()}catch(g){u=g instanceof wd?g.errors:[g]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var f=Tl(l),s=f.next();!s.done;s=f.next()){var d=s.value;try{$y(d)}catch(g){u=u!=null?u:[],g instanceof wd?u=Vc(Vc([],jc(u)),jc(g.errors)):u.push(g)}}}catch(g){r={error:g}}finally{try{s&&!s.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}if(u)throw new wd(u)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)$y(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Ny(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Ny(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();lg.EMPTY;function BS(e){return e instanceof lg||e&&"closed"in e&&sn(e.remove)&&sn(e.add)&&sn(e.unsubscribe)}function $y(e){sn(e)?e():e.unsubscribe()}var Of={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ap={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=ap.delegate;return i!=null&&i.setTimeout?i.setTimeout.apply(i,Vc([e,t],jc(n))):setTimeout.apply(void 0,Vc([e,t],jc(n)))},clearTimeout:function(e){var t=ap.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function NS(e){ap.setTimeout(function(){var t=Of.onUnhandledError;if(t)t(e);else throw e})}function zy(){}var Au=null;function g9(e){if(Of.useDeprecatedSynchronousErrorHandling){var t=!Au;if(t&&(Au={errorThrown:!1,error:null}),e(),t){var n=Au,r=n.errorThrown,i=n.error;if(Au=null,r)throw i}}else e()}var ug=function(e){sg(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,BS(n)&&n.add(r)):r.destination=_9,r}return t.create=function(n,r,i){return new op(n,r,i)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(lg),m9=Function.prototype.bind;function Sd(e,t){return m9.call(e,t)}var y9=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){Iu(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Iu(r)}else Iu(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Iu(n)}},e}(),op=function(e){sg(t,e);function t(n,r,i){var u=e.call(this)||this,p;if(sn(n)||!n)p={next:n!=null?n:void 0,error:r!=null?r:void 0,complete:i!=null?i:void 0};else{var o;u&&Of.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=function(){return u.unsubscribe()},p={next:n.next&&Sd(n.next,o),error:n.error&&Sd(n.error,o),complete:n.complete&&Sd(n.complete,o)}):p=n}return u.destination=new y9(p),u}return t}(ug);function Iu(e){NS(e)}function b9(e){throw e}var _9={closed:!0,next:zy,error:b9,complete:zy},cg=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function w9(e){return e}function S9(e){return e.length===0?w9:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}var Si=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var i=this,u=x9(t)?t:new op(t,n,r);return g9(function(){var p=i,o=p.operator,a=p.source;u.add(o?o.call(u,a):a?i._subscribe(u):i._trySubscribe(u))}),u},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=jy(n),new n(function(i,u){var p=new op({next:function(o){try{t(o)}catch(a){u(a),p.unsubscribe()}},error:u,complete:i});r.subscribe(p)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[cg]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return S9(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=jy(t),new t(function(r,i){var u;n.subscribe(function(p){return u=p},function(p){return i(p)},function(){return r(u)})})},e.create=function(t){return new e(t)},e}();function jy(e){var t;return(t=e!=null?e:Of.Promise)!==null&&t!==void 0?t:Promise}function C9(e){return e&&sn(e.next)&&sn(e.error)&&sn(e.complete)}function x9(e){return e&&e instanceof ug||C9(e)&&BS(e)}function T9(e){return sn(e==null?void 0:e.lift)}function $S(e){return function(t){if(T9(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function E9(e,t,n,r,i){return new k9(e,t,n,r,i)}var k9=function(e){sg(t,e);function t(n,r,i,u,p,o){var a=e.call(this,n)||this;return a.onFinalize=p,a.shouldUnsubscribe=o,a._next=r?function(c){try{r(c)}catch(h){n.error(h)}}:e.prototype._next,a._error=u?function(c){try{u(c)}catch(h){n.error(h)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=i?function(){try{i()}catch(c){n.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,a}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t}(ug),zS=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function jS(e){return sn(e==null?void 0:e.then)}function VS(e){return sn(e[cg])}function US(e){return Symbol.asyncIterator&&sn(e==null?void 0:e[Symbol.asyncIterator])}function HS(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function O9(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var WS=O9();function KS(e){return sn(e==null?void 0:e[WS])}function GS(e){return h9(this,arguments,function(){var n,r,i,u;return FS(this,function(p){switch(p.label){case 0:n=e.getReader(),p.label=1;case 1:p.trys.push([1,,9,10]),p.label=2;case 2:return[4,xo(n.read())];case 3:return r=p.sent(),i=r.value,u=r.done,u?[4,xo(void 0)]:[3,5];case 4:return[2,p.sent()];case 5:return[4,xo(i)];case 6:return[4,p.sent()];case 7:return p.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function YS(e){return sn(e==null?void 0:e.getReader)}function fg(e){if(e instanceof Si)return e;if(e!=null){if(VS(e))return P9(e);if(zS(e))return A9(e);if(jS(e))return I9(e);if(US(e))return XS(e);if(KS(e))return M9(e);if(YS(e))return R9(e)}throw HS(e)}function P9(e){return new Si(function(t){var n=e[cg]();if(sn(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function A9(e){return new Si(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function I9(e){return new Si(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,NS)})}function M9(e){return new Si(function(t){var n,r;try{for(var i=Tl(e),u=i.next();!u.done;u=i.next()){var p=u.value;if(t.next(p),t.closed)return}}catch(o){n={error:o}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()})}function XS(e){return new Si(function(t){L9(e,t).catch(function(n){return t.error(n)})})}function R9(e){return XS(GS(e))}function L9(e,t){var n,r,i,u;return d9(this,void 0,void 0,function(){var p,o;return FS(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),n=p9(e),a.label=1;case 1:return[4,n.next()];case 2:if(r=a.sent(),!!r.done)return[3,4];if(p=r.value,t.next(p),t.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return o=a.sent(),i={error:o},[3,11];case 6:return a.trys.push([6,,9,10]),r&&!r.done&&(u=n.return)?[4,u.call(n)]:[3,8];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function Pa(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var u=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(u),!i)return u}function qS(e,t){return t===void 0&&(t=0),$S(function(n,r){n.subscribe(E9(r,function(i){return Pa(r,e,function(){return r.next(i)},t)},function(){return Pa(r,e,function(){return r.complete()},t)},function(i){return Pa(r,e,function(){return r.error(i)},t)}))})}function ZS(e,t){return t===void 0&&(t=0),$S(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function D9(e,t){return fg(e).pipe(ZS(t),qS(t))}function F9(e,t){return fg(e).pipe(ZS(t),qS(t))}function B9(e,t){return new Si(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function N9(e,t){return new Si(function(n){var r;return Pa(n,t,function(){r=e[WS](),Pa(n,t,function(){var i,u,p;try{i=r.next(),u=i.value,p=i.done}catch(o){n.error(o);return}p?n.complete():n.next(u)},0,!0)}),function(){return sn(r==null?void 0:r.return)&&r.return()}})}function JS(e,t){if(!e)throw new Error("Iterable cannot be null");return new Si(function(n){Pa(n,t,function(){var r=e[Symbol.asyncIterator]();Pa(n,t,function(){r.next().then(function(i){i.done?n.complete():n.next(i.value)})},0,!0)})})}function $9(e,t){return JS(GS(e),t)}function z9(e,t){if(e!=null){if(VS(e))return D9(e,t);if(zS(e))return B9(e,t);if(jS(e))return F9(e,t);if(US(e))return JS(e,t);if(KS(e))return N9(e,t);if(YS(e))return $9(e,t)}throw HS(e)}function j9(e,t){return t?z9(e,t):fg(e)}function V9(e,t){const n=ie(t==null?void 0:t.initialValue),r=e.subscribe({next:i=>n.value=i,error:t==null?void 0:t.onError});return ra(()=>{r.unsubscribe()}),n}function U9(e,t,n){const r=ie(n==null?void 0:n.initialValue),i=og(e);let u=i.subscribe({next:p=>r.value=p,error:n==null?void 0:n.onError});return Te(t,()=>{u.unsubscribe(),u=i.subscribe({next:p=>r.value=p,error:n==null?void 0:n.onError})}),jo(()=>{u.unsubscribe()}),r}const Ba=Ho("outputs",()=>{const e=V9(j9(og(()=>Dt.outputs.count())),{initialValue:0}),t=ie(1),n=er("sortOutputsBy","Oldest"),r=er("currentImagesLayout","dynamic"),i=ie("all"),u=U9(()=>{const s=gn();let d;return i.value==="all"?d=Dt.outputs:i.value==="favourited"?d=Dt.outputs.where("starred").equals(1):i.value==="unfavourited"?d=Dt.outputs.where("starred").equals(0):d=Dt.outputs.where("rated").equals(0),n.value==="Newest"&&(d=d.reverse()),s.pageless==="Enabled"?d.toArray():d.offset((t.value-1)*s.pageSize).limit(s.pageSize).toArray()},[En(gn(),"pageless"),En(gn(),"pageSize"),t,n,i],{initialValue:[]});async function p(){if(navigator.storage&&navigator.storage.persist){const s=await navigator.storage.persist();console.log(`Persisted storage granted: ${s}`)}}async function o(){const s=localStorage.getItem("outputs");!s||(a(JSON.parse(s)),localStorage.removeItem("outputs"))}p(),o();async function a(s){const d=s.map(m=>{const{id:y,...b}=m;return b}),g=JSON.parse(JSON.stringify(d));console.log("Inserting outputs into database",g);const v=await Dt.outputs.bulkAdd(g,void 0,{allKeys:!0});return Dt.outputs.bulkGet(v)}async function c(s){const d=jt();if(!s.raw)return;if(!s.raw.type.includes("zip")){d.raiseError("Uploaded file needs to be a ZIP!",!1);return}const{files:g}=await DS.exports.loadAsync(s.raw);let v=0,m=0;Ji({message:"Loading images...",type:"info"});const y=[];for(const[_,S]of Object.entries(g)){const C=_.split("."),T=C.slice(-1).join("."),E=C.slice(0,-1).join(".");(T==="webp"||T==="png"||T==="gif"||T==="jpg"||T==="jpeg")&&y.push(new Promise(O=>{S.async("base64").then(async D=>{if(!g[E+".json"])return m++,O(null);const j=JSON.parse(await g[E+".json"].async("text"));v++,O({id:-1,image:`data:image/webp;base64,${D}`,...j,rated:j.rated?1:0,starred:j.starred?1:0})}).catch(D=>(d.raiseError(`Error while importing image: ${D}`,!1),m++,O(null)))}))}const b=await Promise.all(y);a(b.filter(_=>_!==null)),Ji({message:`Successfully imported ${v}/${v+m} images!`,type:"success"})}async function h(s){const d=await Dt.outputs.get(s);return Dt.outputs.update(s,{starred:d!=null&&d.starred?0:1})}function l(s){return Dt.outputs.delete(s)}async function f(s){const d=jt();return d.selected=[],d.multiSelect=!1,s===await Dt.outputs.toCollection().primaryKeys()?Dt.outputs.clear():Dt.outputs.bulkDelete(s)}return{outputsLength:e,sortBy:n,filterBy:i,currentPage:t,currentOutputs:u,currentLayout:r,deleteOutput:l,deleteMultipleOutputs:f,toggleStarred:h,pushOutputs:a,importFromZip:c}}),jt=Ho("ui",()=>{const e=ie(!1),t=ie([]),n=ie(["1"]),r=ie(-1),i=ie(!1),u=ie(!1);function p(f,s){console.error(f),Ji({type:"error",message:f,duration:s?0:void 0,showClose:s})}function o(f,s){console.warn(f),Ji({type:"warning",message:f,duration:s?0:void 0,showClose:s})}function a(){e.value=!e.value,!e.value&&(t.value=[])}function c(f){if(t.value.includes(f)){const s=t.value.indexOf(f);t.value.splice(s,1),t.value.length===0&&(e.value=!1);return}t.value.push(f)}async function h(){const f=Ba(),s=gn(),d=f.currentOutputs.findIndex(v=>v.id===r.value),g=f.currentOutputs[d+1];if(g){r.value=g.id;return}if(f.currentPage<=Math.floor(f.outputsLength/s.pageSize)){const v=f.sortBy==="Newest"?await Dt.outputs.where(":id").below(r.value).last():await Dt.outputs.where(":id").above(r.value).first();f.currentPage++,r.value=(v==null?void 0:v.id)||r.value;return}}async function l(){const f=Ba(),s=f.currentOutputs.findIndex(g=>g.id===r.value),d=f.currentOutputs[s-1];if(f.currentPage>1&&!d){const g=f.sortBy==="Oldest"?await Dt.outputs.where(":id").below(r.value).last():await Dt.outputs.where(":id").above(r.value).first();f.currentPage--,r.value=(g==null?void 0:g.id)||r.value;return}if(d){r.value=d.id;return}}return{multiSelect:e,selected:t,activeCollapse:n,activeModal:r,showGeneratorBadge:i,showGeneratedImages:u,raiseError:p,raiseWarning:o,toggleMultiSelect:a,toggleSelection:c,openModalToRight:h,openModalToLeft:l}}),bn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},H9={},W9={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};function K9(e,t){return $(),oe("svg",W9,[...t[0]||(t[0]=[ae("circle",{cy:"12",cx:"12",r:"12",stroke:"currentColor"},null,-1)])])}const G9=bn(H9,[["render",K9]]),Cd=pe({__name:"MainMenuItem",props:{index:{},isMobile:{type:Boolean}},setup(e){return(t,n)=>($(),ye(w(Nv),{index:t.index},{default:he(()=>[Ce(t.$slots,"icon"),t.isMobile?be("",!0):Ce(t.$slots,"title",{key:0})]),_:3},8,["index"]))}});const Y9="modulepreload",X9=function(e,t){return new URL(e,t).href},Vy={},Uy=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(u=>{if(u=X9(u,r),u in Vy)return;Vy[u]=!0;const p=u.endsWith(".css"),o=p?'[rel="stylesheet"]':"";if(!!r)for(let h=i.length-1;h>=0;h--){const l=i[h];if(l.href===u&&(!p||l.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${o}`))return;const c=document.createElement("link");if(c.rel=p?"stylesheet":Y9,p||(c.as="script",c.crossOrigin=""),c.href=u,document.head.appendChild(c),p)return new Promise((h,l)=>{c.addEventListener("load",h),c.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${u}`)))})})).then(()=>t())};const q9={},Z9={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"};function J9(e,t){return $(),oe("svg",Z9,[...t[0]||(t[0]=[ae("path",{d:"M7 14c-1.66 0-3 1.34-3 3c0 1.31-1.16 2-2 2c.92 1.22 2.49 2 4 2c2.21 0 4-1.79 4-4c0-1.66-1.34-3-3-3zm13.71-9.37l-1.34-1.34a.996.996 0 0 0-1.41 0L9 12.25L11.75 15l8.96-8.96a.996.996 0 0 0 0-1.41z",fill:"currentColor"},null,-1)])])}const QS=bn(q9,[["render",J9]]),Q9={},eU={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"};function tU(e,t){return $(),oe("svg",eU,[...t[0]||(t[0]=[ae("path",{d:"M24 14a5.99 5.99 0 0 0-4.885 9.471L14 28.586L15.414 30l5.115-5.115A5.997 5.997 0 1 0 24 14zm0 10a4 4 0 1 1 4-4a4.005 4.005 0 0 1-4 4z",fill:"currentColor"},null,-1),ae("path",{d:"M17 12a3 3 0 1 0-3-3a3.003 3.003 0 0 0 3 3zm0-4a1 1 0 1 1-1 1a1 1 0 0 1 1-1z",fill:"currentColor"},null,-1),ae("path",{d:"M12 24H4v-6.003L9 13l5.586 5.586L16 17.168l-5.586-5.585a2 2 0 0 0-2.828 0L4 15.168V4h20v6h2V4a2.002 2.002 0 0 0-2-2H4a2.002 2.002 0 0 0-2 2v20a2.002 2.002 0 0 0 2 2h8z",fill:"currentColor"},null,-1)])])}const nU=bn(Q9,[["render",tU]]);function eC(){const e=ie("..."),t=setInterval(()=>{e.value=e.value.length>=3?"":".".repeat(e.value.length+1)},1e3);return jo(()=>{clearInterval(t)}),{ellipsis:e}}const rU={style:{"text-align":"center"}},iU={class:"gen-text"},aU={key:0},oU={key:1},sU=pe({__name:"ImageProgress",props:{generated:{},total:{},elapsed:{}},emits:["showGenerated"],setup(e){const{ellipsis:t}=eC();return(n,r)=>{var i,u;return $(),oe("div",rU,[ce(w(U2),{type:"circle",percentage:100*((i=n.generated)!=null?i:0)/((u=n.total)!=null?u:1),width:200},{default:he(()=>[ae("span",null,Oe(n.generated)+" / "+Oe(n.total),1),r[1]||(r[1]=ae("br",null,null,-1))]),_:1},8,["percentage"]),ae("div",iU,[n.generated===n.total?($(),oe("span",aU,"All done!")):($(),oe("span",oU,[We("Generating"+Oe(w(t))+Oe("\xA0".repeat(3-w(t).length)),1),r[2]||(r[2]=ae("br",null,null,-1)),ae("sup",null,Oe(n.elapsed),1)]))]),n.generated?($(),oe("div",{key:0,onClick:r[0]||(r[0]=p=>n.$emit("showGenerated")),class:"view-images"},[ae("span",null,"View image"+Oe(n.total===1?"":"s"),1),ce(w(De),null,{default:he(()=>[ce(w(LO))]),_:1})])):be("",!0)])}}});const lU=bn(sU,[["__scopeId","data-v-02b183d9"]]);const uU={style:{width:"200px"}},cU=pe({__name:"InfoTooltip",props:{info:{},size:{},trigger:{}},setup(e){return(t,n)=>($(),ye(w(Wr),{trigger:t.trigger},{content:he(()=>[ae("div",uU,[Ce(t.$slots,"default",{},()=>[We(Oe(t.info),1)])])]),default:he(()=>[ce(w(De),{size:t.size},{default:he(()=>[ce(w(_c))]),_:1},8,["size"])]),_:3},8,["trigger"]))}}),fU={key:0,class:"align-vertical",style:{"margin-left":"5px"}},dU=pe({__name:"FormLabel",props:{label:{},info:{},labelStyle:{}},setup(e){return(t,n)=>($(),oe("span",{class:"align-vertical",style:ze(t.labelStyle||"height: 100%;")},[Ce(t.$slots,"default",{},()=>[We(Oe(t.label),1)],!0),t.info?($(),oe("div",fU,[ce(cU,{info:t.info,size:15},null,8,["info"])])):be("",!0)],4))}});const Zl=bn(dU,[["__scopeId","data-v-f636a774"]]),hU={key:0,style:{width:"100%"}},pU={key:1,style:{display:"flex","flex-direction":"column",gap:"8px",width:"100%"}},jn=pe({__name:"FormSlider",props:{label:{},modelValue:{},prop:{},min:{},max:{},step:{},info:{},disabled:{type:Boolean},labelStyle:{},multiple:{type:Boolean}},emits:["update:modelValue","change","onAdd","onRemove"],setup(e,{emit:t}){const r=dv(fv).smallerOrEqual("md"),i=e,u=t;function p(l,f){var d;if(i.multiple&&Array.isArray(i.modelValue)){f=f||0;const g=(d=Array.isArray(l)?l[0]:l)!=null?d:i.min;let v=i.modelValue;v[f]=g,u("update:modelValue",v),u("change",v);return}const s=l!=null?l:i.min;u("update:modelValue",s),u("change",s)}function o(){if(!i.multiple||!Array.isArray(i.modelValue))return;const l=i.min;u("update:modelValue",[...i.modelValue,l]),u("onAdd",l)}function a(){if(!i.multiple||!Array.isArray(i.modelValue))return;const l=i.modelValue,f=l.pop();u("update:modelValue",l),u("onRemove",f)}const c=W(()=>i.multiple&&Array.isArray(i.modelValue)?Array.from(Array(i.modelValue.length).keys()):[]),h=W(()=>Array.isArray(i.modelValue)?i.modelValue[0]:i.modelValue);return(l,f)=>($(),ye(w(Ki),{prop:l.prop},{label:he(()=>[ce(Zl,{info:l.info,"label-style":l.labelStyle},{default:he(()=>[Ce(l.$slots,"label",{},()=>[We(Oe(l.label),1)])]),_:3},8,["info","label-style"])]),default:he(()=>[!l.multiple||!Array.isArray(l.modelValue)?($(),oe("div",hU,[w(r)?be("",!0):($(),ye(w(gy),{key:0,"model-value":h.value,min:l.min,max:l.max,step:l.step,onInput:p,disabled:l.disabled,"show-input":""},null,8,["model-value","min","max","step","disabled"])),w(r)?($(),ye(w(Ph),{key:1,"model-value":h.value,min:l.min,max:l.max,step:l.step,onChange:p,disabled:l.disabled},null,8,["model-value","min","max","step","disabled"])):be("",!0)])):($(),oe("div",pU,[($(!0),oe($e,null,Lt(c.value,s=>($(),oe("div",{key:s},[w(r)?be("",!0):($(),ye(w(gy),{key:0,"model-value":l.modelValue[s],min:l.min,max:l.max,step:l.step,onInput:d=>p(d,s),disabled:l.disabled,"show-input":""},null,8,["model-value","min","max","step","onInput","disabled"])),w(r)?($(),ye(w(Ph),{key:1,"model-value":l.modelValue[s],min:l.min,max:l.max,step:l.step,onChange:d=>p(d,s),disabled:l.disabled},null,8,["model-value","min","max","step","onChange","disabled"])):be("",!0)]))),128)),ae("div",null,[ce(w(ht),{icon:w(Wp),onClick:f[0]||(f[0]=()=>o())},null,8,["icon"]),ce(w(ht),{icon:w(E1),onClick:f[1]||(f[1]=()=>a()),disabled:c.value.length<=1},null,8,["icon","disabled"])])])),Ce(l.$slots,"inline")]),_:3},8,["prop"]))}});const rc=pe({__name:"FormSelect",props:{label:{},modelValue:{},prop:{},options:{},multiple:{type:Boolean},info:{},filterable:{type:Boolean},labelStyle:{},placement:{}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=t;function r(i){n("update:modelValue",i),n("change",i)}return(i,u)=>($(),ye(w(Ki),{prop:i.prop},{label:he(()=>[ce(Zl,{info:i.info,"label-style":i.labelStyle},{default:he(()=>[Ce(i.$slots,"label",{},()=>[We(Oe(i.label),1)])]),_:3},8,["info","label-style"])]),default:he(()=>[ce(w(j2),{"model-value":i.modelValue,filterable:i.filterable,multiple:i.multiple,placement:i.placement,onChange:r,placeholder:"Select"},{default:he(()=>[($(!0),oe($e,null,Lt(i.options,p=>($(),ye(w(V2),{key:p,label:p.label!==void 0?p.label:p,value:p.value!==void 0?p.value:p,disabled:p.disabled!==void 0?p.disabled:!1},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","filterable","multiple","placement"]),Ce(i.$slots,"inline")]),_:3},8,["prop"]))}}),sp=pe({__name:"FormInput",props:{label:{},modelValue:{},prop:{},type:{},resize:{},placeholder:{},autosize:{type:[Boolean,Object]},info:{},labelStyle:{},change:{type:Function}},emits:["update:modelValue","focus","blur"],setup(e,{emit:t}){const n=e,r=t;function i(u){r("update:modelValue",u),n.change&&n.change(u)}return(u,p)=>($(),ye(w(Ki),{prop:u.prop},{label:he(()=>[ce(Zl,{info:u.info,"label-style":u.labelStyle},{default:he(()=>[Ce(u.$slots,"label",{},()=>[We(Oe(u.label),1)])]),_:3},8,["info","label-style"])]),default:he(()=>[ce(w(qo),{"model-value":u.modelValue,autosize:u.autosize,resize:u.resize,onInput:i,type:u.type,placeholder:u.placeholder,onFocus:p[0]||(p[0]=o=>u.$emit("focus")),onBlur:p[1]||(p[1]=o=>u.$emit("blur"))},{append:he(()=>[Ce(u.$slots,"append")]),_:3},8,["model-value","autosize","resize","type","placeholder"]),Ce(u.$slots,"inline")]),_:3},8,["prop"]))}});const Mu=pe({__name:"FormSwitch",props:{label:{},modelValue:{type:Boolean},prop:{},disabled:{type:Boolean},disabledText:{},defaultValue:{type:Boolean},info:{},labelStyle:{},change:{type:Function}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t;function i(u){const p=!!u;r("update:modelValue",p),n.change&&n.change(p)}return CT(()=>{n.disabled&&n.defaultValue!==void 0&&r("update:modelValue",n.defaultValue)}),(u,p)=>($(),ye(w(Ki),{prop:u.prop},{label:he(()=>[ce(Zl,{info:u.info,"label-style":u.labelStyle},{default:he(()=>[Ce(u.$slots,"label",{},()=>[We(Oe(u.label),1)])]),_:3},8,["info","label-style"])]),default:he(()=>[u.disabledText&&u.disabled?($(),ye(w(Wr),{key:0,content:u.disabledText,placement:"top",enterable:!1,"hide-after":100},{default:he(()=>[ce(w(my),{disabled:u.disabled,"model-value":u.modelValue,onChange:i},null,8,["disabled","model-value"])]),_:1},8,["content"])):($(),ye(w(my),{key:1,disabled:u.disabled,"model-value":u.modelValue,onChange:i},null,8,["disabled","model-value"])),Ce(u.$slots,"inline")]),_:3},8,["prop"]))}}),vU=pe({__name:"FormPromptInput",setup(e){const t=Hn();return(n,r)=>($(),ye(sp,{prop:"prompt",modelValue:w(t).prompt,"onUpdate:modelValue":r[0]||(r[0]=i=>w(t).prompt=i),autosize:{minRows:2,maxRows:15},resize:"vertical",type:"textarea",placeholder:"Enter prompt here","label-style":"justify-content: space-between; width: 100%;"},{label:he(()=>[...r[1]||(r[1]=[ae("div",null,"Prompt",-1)])]),_:1},8,["modelValue"]))}});const gU=bn(vU,[["__scopeId","data-v-6efe26a3"]]);const mU={style:{position:"relative",height:"100%",width:"100%"}},yU={class:"carousel-container"},bU=["src"],_U={class:"carousel-footer"},wU={style:{display:"flex","justify-content":"center"}},SU={style:{"white-space":"nowrap"}},CU=pe({__name:"GeneratedCarousel",setup(e){const t=Hn(),n=jt(),r=gn(),i=ie(0);function u(o){i.value=o,console.log(t.outputs[i.value])}function p(o){t.outputs.splice(t.outputs.findIndex(a=>a.output.id===o),1)}return(o,a)=>($(),oe("div",mU,[w(t).generating?($(),oe("div",{key:0,class:"back-to-generation",onClick:a[0]||(a[0]=c=>w(n).showGeneratedImages=!1)},[ce(w(De),null,{default:he(()=>[ce(w(Uk))]),_:1}),a[1]||(a[1]=ae("span",null,"Back to generation status",-1))])):be("",!0),ae("div",yU,[ce(w(_D),{class:"carousel",autoplay:w(r).autoCarousel==="Enabled",trigger:"click","indicator-position":"outside",onChange:u},{default:he(()=>[($(!0),oe($e,null,Lt(w(t).outputs,(c,h)=>($(),ye(w(wD),{key:h,style:{display:"flex","justify-content":"center"}},{default:he(()=>[c.type==="video"?($(),oe("video",{key:0,src:c.output.image,controls:"",style:{"max-width":"100%",height:"100%"}},null,8,bU)):be("",!0),c.type==="image"?($(),ye(w(Dv),{key:1,src:c.output.image,style:{width:"100%",height:"100%"},fit:"scale-down",onClick:()=>w(n).activeModal=c.output.id},null,8,["src","onClick"])):be("",!0)]),_:2},1024))),128))]),_:1},8,["autoplay"])]),ae("div",_U,[ce(w(iB)),ae("div",wU,[ce(w(Fw),null,{default:he(()=>[ae("div",SU,[ce(HC,{imageData:w(t).outputs[i.value].output,"on-delete":p},null,8,["imageData"])])]),_:1})])])]))}});const xU=bn(CU,[["__scopeId","data-v-897d3fee"]]);var mr={};const TU={},EU=Object.freeze(Object.defineProperty({__proto__:null,default:TU},Symbol.toStringTag,{value:"Module"})),xd=nD(EU);(function(e){/*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */var t=t||{version:"5.5.2"};if(e.fabric=t,typeof document<"u"&&typeof window<"u")document instanceof(typeof HTMLDocument<"u"?HTMLDocument:Document)?t.document=document:t.document=document.implementation.createHTMLDocument(""),t.window=window;else{var n=xd,r=new n.JSDOM(decodeURIComponent("%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E"),{features:{FetchExternalResources:["img"]},resources:"usable"}).window;t.document=r.document,t.jsdomImplForWrapper=xd.implForWrapper,t.nodeCanvas=xd.Canvas,t.window=r,DOMParser=t.window.DOMParser}t.isTouchSupported="ontouchstart"in t.window||"ontouchstart"in t.document||t.window&&t.window.navigator&&t.window.navigator.maxTouchPoints>0,t.isLikelyNode=typeof Buffer<"u"&&typeof window>"u",t.SHARED_ATTRIBUTES=["display","transform","fill","fill-opacity","fill-rule","opacity","stroke","stroke-dasharray","stroke-linecap","stroke-dashoffset","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","id","paint-order","vector-effect","instantiated_by_use","clip-path"],t.DPI=96,t.reNum="(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:[eE][-+]?\\d+)?)",t.commaWsp="(?:\\s+,?\\s*|,\\s*)",t.rePathCommand=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/ig,t.reNonWord=/[ \n\.,;!\?\-]/,t.fontPaths={},t.iMatrix=[1,0,0,1,0,0],t.svgNS="http://www.w3.org/2000/svg",t.perfLimitSizeTotal=2097152,t.maxCacheSideLimit=4096,t.minCacheSideLimit=256,t.charWidthsCache={},t.textureSize=2048,t.disableStyleCopyPaste=!1,t.enableGLFiltering=!0,t.devicePixelRatio=t.window.devicePixelRatio||t.window.webkitDevicePixelRatio||t.window.mozDevicePixelRatio||1,t.browserShadowBlurConstant=1,t.arcToSegmentsCache={},t.boundsOfCurveCache={},t.cachesBoundsOfCurve=!0,t.forceGLPutImageData=!1,t.initFilterBackend=function(){if(t.enableGLFiltering&&t.isWebglSupported&&t.isWebglSupported(t.textureSize))return console.log("max texture size: "+t.maxTextureSize),new t.WebglFilterBackend({tileSize:t.textureSize});if(t.Canvas2dFilterBackend)return new t.Canvas2dFilterBackend},typeof document<"u"&&typeof window<"u"&&(window.fabric=t),function(){function o(s,d){if(!!this.__eventListeners[s]){var g=this.__eventListeners[s];d?g[g.indexOf(d)]=!1:t.util.array.fill(g,!1)}}function a(s,d){if(this.__eventListeners||(this.__eventListeners={}),arguments.length===1)for(var g in s)this.on(g,s[g]);else this.__eventListeners[s]||(this.__eventListeners[s]=[]),this.__eventListeners[s].push(d);return this}function c(s,d){var g=function(){d.apply(this,arguments),this.off(s,g)}.bind(this);this.on(s,g)}function h(s,d){if(arguments.length===1)for(var g in s)c.call(this,g,s[g]);else c.call(this,s,d);return this}function l(s,d){if(!this.__eventListeners)return this;if(arguments.length===0)for(s in this.__eventListeners)o.call(this,s);else if(arguments.length===1&&typeof arguments[0]=="object")for(var g in s)o.call(this,g,s[g]);else o.call(this,s,d);return this}function f(s,d){if(!this.__eventListeners)return this;var g=this.__eventListeners[s];if(!g)return this;for(var v=0,m=g.length;v<m;v++)g[v]&&g[v].call(this,d||{});return this.__eventListeners[s]=g.filter(function(y){return y!==!1}),this}t.Observable={fire:f,on:a,once:h,off:l}}(),t.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var o=0,a=arguments.length;o<a;o++)this._onObjectAdded(arguments[o]);return this.renderOnAddRemove&&this.requestRenderAll(),this},insertAt:function(o,a,c){var h=this._objects;return c?h[a]=o:h.splice(a,0,o),this._onObjectAdded&&this._onObjectAdded(o),this.renderOnAddRemove&&this.requestRenderAll(),this},remove:function(){for(var o=this._objects,a,c=!1,h=0,l=arguments.length;h<l;h++)a=o.indexOf(arguments[h]),a!==-1&&(c=!0,o.splice(a,1),this._onObjectRemoved&&this._onObjectRemoved(arguments[h]));return this.renderOnAddRemove&&c&&this.requestRenderAll(),this},forEachObject:function(o,a){for(var c=this.getObjects(),h=0,l=c.length;h<l;h++)o.call(a,c[h],h,c);return this},getObjects:function(o){return typeof o>"u"?this._objects.concat():this._objects.filter(function(a){return a.type===o})},item:function(o){return this._objects[o]},isEmpty:function(){return this._objects.length===0},size:function(){return this._objects.length},contains:function(o,a){return this._objects.indexOf(o)>-1?!0:a?this._objects.some(function(c){return typeof c.contains=="function"&&c.contains(o,!0)}):!1},complexity:function(){return this._objects.reduce(function(o,a){return o+=a.complexity?a.complexity():0,o},0)}},t.CommonMethods={_setOptions:function(o){for(var a in o)this.set(a,o[a])},_initGradient:function(o,a){o&&o.colorStops&&!(o instanceof t.Gradient)&&this.set(a,new t.Gradient(o))},_initPattern:function(o,a,c){o&&o.source&&!(o instanceof t.Pattern)?this.set(a,new t.Pattern(o,c)):c&&c()},_setObject:function(o){for(var a in o)this._set(a,o[a])},set:function(o,a){return typeof o=="object"?this._setObject(o):this._set(o,a),this},_set:function(o,a){this[o]=a},toggle:function(o){var a=this.get(o);return typeof a=="boolean"&&this.set(o,!a),this},get:function(o){return this[o]}},function(o){var a=Math.sqrt,c=Math.atan2,h=Math.pow,l=Math.PI/180,f=Math.PI/2;t.util={cos:function(s){if(s===0)return 1;s<0&&(s=-s);var d=s/f;switch(d){case 1:case 3:return 0;case 2:return-1}return Math.cos(s)},sin:function(s){if(s===0)return 0;var d=s/f,g=1;switch(s<0&&(g=-1),d){case 1:return g;case 2:return 0;case 3:return-g}return Math.sin(s)},removeFromArray:function(s,d){var g=s.indexOf(d);return g!==-1&&s.splice(g,1),s},getRandomInt:function(s,d){return Math.floor(Math.random()*(d-s+1))+s},degreesToRadians:function(s){return s*l},radiansToDegrees:function(s){return s/l},rotatePoint:function(s,d,g){var v=new t.Point(s.x-d.x,s.y-d.y),m=t.util.rotateVector(v,g);return new t.Point(m.x,m.y).addEquals(d)},rotateVector:function(s,d){var g=t.util.sin(d),v=t.util.cos(d),m=s.x*v-s.y*g,y=s.x*g+s.y*v;return{x:m,y}},createVector:function(s,d){return new t.Point(d.x-s.x,d.y-s.y)},calcAngleBetweenVectors:function(s,d){return Math.acos((s.x*d.x+s.y*d.y)/(Math.hypot(s.x,s.y)*Math.hypot(d.x,d.y)))},getHatVector:function(s){return new t.Point(s.x,s.y).multiply(1/Math.hypot(s.x,s.y))},getBisector:function(s,d,g){var v=t.util.createVector(s,d),m=t.util.createVector(s,g),y=t.util.calcAngleBetweenVectors(v,m),b=t.util.calcAngleBetweenVectors(t.util.rotateVector(v,y),m),_=y*(b===0?1:-1)/2;return{vector:t.util.getHatVector(t.util.rotateVector(v,_)),angle:y}},projectStrokeOnPoints:function(s,d,g){var v=[],m=d.strokeWidth/2,y=d.strokeUniform?new t.Point(1/d.scaleX,1/d.scaleY):new t.Point(1,1),b=function(_){var S=m/Math.hypot(_.x,_.y);return new t.Point(_.x*S*y.x,_.y*S*y.y)};return s.length<=1||s.forEach(function(_,S){var C=new t.Point(_.x,_.y),T,E;S===0?(E=s[S+1],T=g?b(t.util.createVector(E,C)).addEquals(C):s[s.length-1]):S===s.length-1?(T=s[S-1],E=g?b(t.util.createVector(T,C)).addEquals(C):s[0]):(T=s[S-1],E=s[S+1]);var O=t.util.getBisector(C,T,E),D=O.vector,j=O.angle,k,U;if(d.strokeLineJoin==="miter"&&(k=-m/Math.sin(j/2),U=new t.Point(D.x*k*y.x,D.y*k*y.y),Math.hypot(U.x,U.y)/m<=d.strokeMiterLimit)){v.push(C.add(U)),v.push(C.subtract(U));return}k=-m*Math.SQRT2,U=new t.Point(D.x*k*y.x,D.y*k*y.y),v.push(C.add(U)),v.push(C.subtract(U))}),v},transformPoint:function(s,d,g){return g?new t.Point(d[0]*s.x+d[2]*s.y,d[1]*s.x+d[3]*s.y):new t.Point(d[0]*s.x+d[2]*s.y+d[4],d[1]*s.x+d[3]*s.y+d[5])},makeBoundingBoxFromPoints:function(s,d){if(d)for(var g=0;g<s.length;g++)s[g]=t.util.transformPoint(s[g],d);var v=[s[0].x,s[1].x,s[2].x,s[3].x],m=t.util.array.min(v),y=t.util.array.max(v),b=y-m,_=[s[0].y,s[1].y,s[2].y,s[3].y],S=t.util.array.min(_),C=t.util.array.max(_),T=C-S;return{left:m,top:S,width:b,height:T}},invertTransform:function(s){var d=1/(s[0]*s[3]-s[1]*s[2]),g=[d*s[3],-d*s[1],-d*s[2],d*s[0]],v=t.util.transformPoint({x:s[4],y:s[5]},g,!0);return g[4]=-v.x,g[5]=-v.y,g},toFixed:function(s,d){return parseFloat(Number(s).toFixed(d))},parseUnit:function(s,d){var g=/\D{0,2}$/.exec(s),v=parseFloat(s);switch(d||(d=t.Text.DEFAULT_SVG_FONT_SIZE),g[0]){case"mm":return v*t.DPI/25.4;case"cm":return v*t.DPI/2.54;case"in":return v*t.DPI;case"pt":return v*t.DPI/72;case"pc":return v*t.DPI/72*12;case"em":return v*d;default:return v}},falseFunction:function(){return!1},getKlass:function(s,d){return s=t.util.string.camelize(s.charAt(0).toUpperCase()+s.slice(1)),t.util.resolveNamespace(d)[s]},getSvgAttributes:function(s){var d=["instantiated_by_use","style","id","class"];switch(s){case"linearGradient":d=d.concat(["x1","y1","x2","y2","gradientUnits","gradientTransform"]);break;case"radialGradient":d=d.concat(["gradientUnits","gradientTransform","cx","cy","r","fx","fy","fr"]);break;case"stop":d=d.concat(["offset","stop-color","stop-opacity"]);break}return d},resolveNamespace:function(s){if(!s)return t;var d=s.split("."),g=d.length,v,m=o||t.window;for(v=0;v<g;++v)m=m[d[v]];return m},loadImage:function(s,d,g,v){if(!s){d&&d.call(g,s);return}var m=t.util.createImage(),y=function(){d&&d.call(g,m,!1),m=m.onload=m.onerror=null};m.onload=y,m.onerror=function(){t.log("Error loading "+m.src),d&&d.call(g,null,!0),m=m.onload=m.onerror=null},s.indexOf("data")!==0&&v!==void 0&&v!==null&&(m.crossOrigin=v),s.substring(0,14)==="data:image/svg"&&(m.onload=null,t.util.loadImageInDom(m,y)),m.src=s},loadImageInDom:function(s,d){var g=t.document.createElement("div");g.style.width=g.style.height="1px",g.style.left=g.style.top="-100%",g.style.position="absolute",g.appendChild(s),t.document.querySelector("body").appendChild(g),s.onload=function(){d(),g.parentNode.removeChild(g),g=null}},enlivenObjects:function(s,d,g,v){s=s||[];var m=[],y=0,b=s.length;function _(){++y===b&&d&&d(m.filter(function(S){return S}))}if(!b){d&&d(m);return}s.forEach(function(S,C){if(!S||!S.type){_();return}var T=t.util.getKlass(S.type,g);T.fromObject(S,function(E,O){O||(m[C]=E),v&&v(S,E,O),_()})})},enlivenObjectEnlivables:function(s,d,g){var v=t.Object.ENLIVEN_PROPS.filter(function(m){return!!s[m]});t.util.enlivenObjects(v.map(function(m){return s[m]}),function(m){var y={};v.forEach(function(b,_){y[b]=m[_],d&&(d[b]=m[_])}),g&&g(y)})},enlivenPatterns:function(s,d){s=s||[];function g(){++m===y&&d&&d(v)}var v=[],m=0,y=s.length;if(!y){d&&d(v);return}s.forEach(function(b,_){b&&b.source?new t.Pattern(b,function(S){v[_]=S,g()}):(v[_]=b,g())})},groupSVGElements:function(s,d,g){var v;return s&&s.length===1?(typeof g<"u"&&(s[0].sourcePath=g),s[0]):(d&&(d.width&&d.height?d.centerPoint={x:d.width/2,y:d.height/2}:(delete d.width,delete d.height)),v=new t.Group(s,d),typeof g<"u"&&(v.sourcePath=g),v)},populateWithProperties:function(s,d,g){if(g&&Array.isArray(g))for(var v=0,m=g.length;v<m;v++)g[v]in s&&(d[g[v]]=s[g[v]])},createCanvasElement:function(){return t.document.createElement("canvas")},copyCanvasElement:function(s){var d=t.util.createCanvasElement();return d.width=s.width,d.height=s.height,d.getContext("2d").drawImage(s,0,0),d},toDataURL:function(s,d,g){return s.toDataURL("image/"+d,g)},createImage:function(){return t.document.createElement("img")},multiplyTransformMatrices:function(s,d,g){return[s[0]*d[0]+s[2]*d[1],s[1]*d[0]+s[3]*d[1],s[0]*d[2]+s[2]*d[3],s[1]*d[2]+s[3]*d[3],g?0:s[0]*d[4]+s[2]*d[5]+s[4],g?0:s[1]*d[4]+s[3]*d[5]+s[5]]},qrDecompose:function(s){var d=c(s[1],s[0]),g=h(s[0],2)+h(s[1],2),v=a(g),m=(s[0]*s[3]-s[2]*s[1])/v,y=c(s[0]*s[2]+s[1]*s[3],g);return{angle:d/l,scaleX:v,scaleY:m,skewX:y/l,skewY:0,translateX:s[4],translateY:s[5]}},calcRotateMatrix:function(s){if(!s.angle)return t.iMatrix.concat();var d=t.util.degreesToRadians(s.angle),g=t.util.cos(d),v=t.util.sin(d);return[g,v,-v,g,0,0]},calcDimensionsMatrix:function(s){var d=typeof s.scaleX>"u"?1:s.scaleX,g=typeof s.scaleY>"u"?1:s.scaleY,v=[s.flipX?-d:d,0,0,s.flipY?-g:g,0,0],m=t.util.multiplyTransformMatrices,y=t.util.degreesToRadians;return s.skewX&&(v=m(v,[1,0,Math.tan(y(s.skewX)),1],!0)),s.skewY&&(v=m(v,[1,Math.tan(y(s.skewY)),0,1],!0)),v},composeMatrix:function(s){var d=[1,0,0,1,s.translateX||0,s.translateY||0],g=t.util.multiplyTransformMatrices;return s.angle&&(d=g(d,t.util.calcRotateMatrix(s))),(s.scaleX!==1||s.scaleY!==1||s.skewX||s.skewY||s.flipX||s.flipY)&&(d=g(d,t.util.calcDimensionsMatrix(s))),d},resetObjectTransform:function(s){s.scaleX=1,s.scaleY=1,s.skewX=0,s.skewY=0,s.flipX=!1,s.flipY=!1,s.rotate(0)},saveObjectTransform:function(s){return{scaleX:s.scaleX,scaleY:s.scaleY,skewX:s.skewX,skewY:s.skewY,angle:s.angle,left:s.left,flipX:s.flipX,flipY:s.flipY,top:s.top}},isTransparent:function(s,d,g,v){v>0&&(d>v?d-=v:d=0,g>v?g-=v:g=0);var m=!0,y,b,_=s.getImageData(d,g,v*2||1,v*2||1),S=_.data.length;for(y=3;y<S&&(b=_.data[y],m=b<=0,m!==!1);y+=4);return _=null,m},parsePreserveAspectRatioAttribute:function(s){var d="meet",g="Mid",v="Mid",m=s.split(" "),y;return m&&m.length&&(d=m.pop(),d!=="meet"&&d!=="slice"?(y=d,d="meet"):m.length&&(y=m.pop())),g=y!=="none"?y.slice(1,4):"none",v=y!=="none"?y.slice(5,8):"none",{meetOrSlice:d,alignX:g,alignY:v}},clearFabricFontCache:function(s){s=(s||"").toLowerCase(),s?t.charWidthsCache[s]&&delete t.charWidthsCache[s]:t.charWidthsCache={}},limitDimsByArea:function(s,d){var g=Math.sqrt(d*s),v=Math.floor(d/g);return{x:Math.floor(g),y:v}},capValue:function(s,d,g){return Math.max(s,Math.min(d,g))},findScaleToFit:function(s,d){return Math.min(d.width/s.width,d.height/s.height)},findScaleToCover:function(s,d){return Math.max(d.width/s.width,d.height/s.height)},matrixToSVG:function(s){return"matrix("+s.map(function(d){return t.util.toFixed(d,t.Object.NUM_FRACTION_DIGITS)}).join(" ")+")"},removeTransformFromObject:function(s,d){var g=t.util.invertTransform(d),v=t.util.multiplyTransformMatrices(g,s.calcOwnMatrix());t.util.applyTransformToObject(s,v)},addTransformToObject:function(s,d){t.util.applyTransformToObject(s,t.util.multiplyTransformMatrices(d,s.calcOwnMatrix()))},applyTransformToObject:function(s,d){var g=t.util.qrDecompose(d),v=new t.Point(g.translateX,g.translateY);s.flipX=!1,s.flipY=!1,s.set("scaleX",g.scaleX),s.set("scaleY",g.scaleY),s.skewX=g.skewX,s.skewY=g.skewY,s.angle=g.angle,s.setPositionByOrigin(v,"center","center")},sizeAfterTransform:function(s,d,g){var v=s/2,m=d/2,y=[{x:-v,y:-m},{x:v,y:-m},{x:-v,y:m},{x:v,y:m}],b=t.util.calcDimensionsMatrix(g),_=t.util.makeBoundingBoxFromPoints(y,b);return{x:_.width,y:_.height}},mergeClipPaths:function(s,d){var g=s,v=d;g.inverted&&!v.inverted&&(g=d,v=s),t.util.applyTransformToObject(v,t.util.multiplyTransformMatrices(t.util.invertTransform(g.calcTransformMatrix()),v.calcTransformMatrix()));var m=g.inverted&&v.inverted;return m&&(g.inverted=v.inverted=!1),new t.Group([g],{clipPath:v,inverted:m})},hasStyleChanged:function(s,d,g){return g=g||!1,s.fill!==d.fill||s.stroke!==d.stroke||s.strokeWidth!==d.strokeWidth||s.fontSize!==d.fontSize||s.fontFamily!==d.fontFamily||s.fontWeight!==d.fontWeight||s.fontStyle!==d.fontStyle||s.textBackgroundColor!==d.textBackgroundColor||s.deltaY!==d.deltaY||g&&(s.overline!==d.overline||s.underline!==d.underline||s.linethrough!==d.linethrough)},stylesToArray:function(g,d){for(var g=t.util.object.clone(g,!0),v=d.split(`
`),m=-1,y={},b=[],_=0;_<v.length;_++){if(!g[_]){m+=v[_].length;continue}for(var S=0;S<v[_].length;S++){m++;var C=g[_][S];if(C&&Object.keys(C).length>0){var T=t.util.hasStyleChanged(y,C,!0);T?b.push({start:m,end:m+1,style:C}):b[b.length-1].end++}y=C||{}}}return b},stylesFromArray:function(s,d){if(!Array.isArray(s))return s;for(var g=d.split(`
`),v=-1,m=0,y={},b=0;b<g.length;b++)for(var _=0;_<g[b].length;_++)v++,s[m]&&s[m].start<=v&&v<s[m].end&&(y[b]=y[b]||{},y[b][_]=Object.assign({},s[m].style),v===s[m].end-1&&m++);return y}}}(e),function(){var o=Array.prototype.join,a={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},c={m:"l",M:"L"};function h(A,B,I,M,J,z,L,Q,H,G,ne){var de=t.util.cos(A),ve=t.util.sin(A),_e=t.util.cos(B),N=t.util.sin(B),x=I*J*_e-M*z*N+L,K=M*J*_e+I*z*N+Q,X=G+H*(-I*J*ve-M*z*de),R=ne+H*(-M*J*ve+I*z*de),F=x+H*(I*J*N+M*z*_e),ee=K+H*(M*J*N-I*z*_e);return["C",X,R,F,ee,x,K]}function l(A,B,I,M,J,z,L){var Q=Math.PI,H=L*Q/180,G=t.util.sin(H),ne=t.util.cos(H),de=0,ve=0;I=Math.abs(I),M=Math.abs(M);var _e=-ne*A*.5-G*B*.5,N=-ne*B*.5+G*A*.5,x=I*I,K=M*M,X=N*N,R=_e*_e,F=x*K-x*X-K*R,ee=0;if(F<0){var fe=Math.sqrt(1-F/(x*K));I*=fe,M*=fe}else ee=(J===z?-1:1)*Math.sqrt(F/(x*X+K*R));var se=ee*I*N/M,Y=-ee*M*_e/I,ge=ne*se-G*Y+A*.5,Z=G*se+ne*Y+B*.5,ue=f(1,0,(_e-se)/I,(N-Y)/M),me=f((_e-se)/I,(N-Y)/M,(-_e-se)/I,(-N-Y)/M);z===0&&me>0?me-=2*Q:z===1&&me<0&&(me+=2*Q);for(var xe=Math.ceil(Math.abs(me/Q*2)),Ee=[],ke=me/xe,Ue=8/3*Math.sin(ke/4)*Math.sin(ke/4)/Math.sin(ke/2),Xe=ue+ke,tt=0;tt<xe;tt++)Ee[tt]=h(ue,Xe,ne,G,I,M,ge,Z,Ue,de,ve),de=Ee[tt][5],ve=Ee[tt][6],ue=Xe,Xe+=ke;return Ee}function f(A,B,I,M){var J=Math.atan2(B,A),z=Math.atan2(M,I);return z>=J?z-J:2*Math.PI-(J-z)}function s(A,B,I,M,J,z,L,Q){var H;if(t.cachesBoundsOfCurve&&(H=o.call(arguments),t.boundsOfCurveCache[H]))return t.boundsOfCurveCache[H];var G=Math.sqrt,ne=Math.min,de=Math.max,ve=Math.abs,_e=[],N=[[],[]],x,K,X,R,F,ee,fe,se;K=6*A-12*I+6*J,x=-3*A+9*I-9*J+3*L,X=3*I-3*A;for(var Y=0;Y<2;++Y){if(Y>0&&(K=6*B-12*M+6*z,x=-3*B+9*M-9*z+3*Q,X=3*M-3*B),ve(x)<1e-12){if(ve(K)<1e-12)continue;R=-X/K,0<R&&R<1&&_e.push(R);continue}fe=K*K-4*X*x,!(fe<0)&&(se=G(fe),F=(-K+se)/(2*x),0<F&&F<1&&_e.push(F),ee=(-K-se)/(2*x),0<ee&&ee<1&&_e.push(ee))}for(var ge,Z,ue=_e.length,me=ue,xe;ue--;)R=_e[ue],xe=1-R,ge=xe*xe*xe*A+3*xe*xe*R*I+3*xe*R*R*J+R*R*R*L,N[0][ue]=ge,Z=xe*xe*xe*B+3*xe*xe*R*M+3*xe*R*R*z+R*R*R*Q,N[1][ue]=Z;N[0][me]=A,N[1][me]=B,N[0][me+1]=L,N[1][me+1]=Q;var Ee=[{x:ne.apply(null,N[0]),y:ne.apply(null,N[1])},{x:de.apply(null,N[0]),y:de.apply(null,N[1])}];return t.cachesBoundsOfCurve&&(t.boundsOfCurveCache[H]=Ee),Ee}function d(A,B,I){for(var M=I[1],J=I[2],z=I[3],L=I[4],Q=I[5],H=I[6],G=I[7],ne=l(H-A,G-B,M,J,L,Q,z),de=0,ve=ne.length;de<ve;de++)ne[de][1]+=A,ne[de][2]+=B,ne[de][3]+=A,ne[de][4]+=B,ne[de][5]+=A,ne[de][6]+=B;return ne}function g(A){var B=0,I=0,M=A.length,J=0,z=0,L,Q,H,G=[],ne,de,ve;for(Q=0;Q<M;++Q){switch(H=!1,L=A[Q].slice(0),L[0]){case"l":L[0]="L",L[1]+=B,L[2]+=I;case"L":B=L[1],I=L[2];break;case"h":L[1]+=B;case"H":L[0]="L",L[2]=I,B=L[1];break;case"v":L[1]+=I;case"V":L[0]="L",I=L[1],L[1]=B,L[2]=I;break;case"m":L[0]="M",L[1]+=B,L[2]+=I;case"M":B=L[1],I=L[2],J=L[1],z=L[2];break;case"c":L[0]="C",L[1]+=B,L[2]+=I,L[3]+=B,L[4]+=I,L[5]+=B,L[6]+=I;case"C":de=L[3],ve=L[4],B=L[5],I=L[6];break;case"s":L[0]="S",L[1]+=B,L[2]+=I,L[3]+=B,L[4]+=I;case"S":ne==="C"?(de=2*B-de,ve=2*I-ve):(de=B,ve=I),B=L[3],I=L[4],L[0]="C",L[5]=L[3],L[6]=L[4],L[3]=L[1],L[4]=L[2],L[1]=de,L[2]=ve,de=L[3],ve=L[4];break;case"q":L[0]="Q",L[1]+=B,L[2]+=I,L[3]+=B,L[4]+=I;case"Q":de=L[1],ve=L[2],B=L[3],I=L[4];break;case"t":L[0]="T",L[1]+=B,L[2]+=I;case"T":ne==="Q"?(de=2*B-de,ve=2*I-ve):(de=B,ve=I),L[0]="Q",B=L[1],I=L[2],L[1]=de,L[2]=ve,L[3]=B,L[4]=I;break;case"a":L[0]="A",L[6]+=B,L[7]+=I;case"A":H=!0,G=G.concat(d(B,I,L)),B=L[6],I=L[7];break;case"z":case"Z":B=J,I=z;break}H||G.push(L),ne=L[0]}return G}function v(A,B,I,M){return Math.sqrt((I-A)*(I-A)+(M-B)*(M-B))}function m(A){return A*A*A}function y(A){return 3*A*A*(1-A)}function b(A){return 3*A*(1-A)*(1-A)}function _(A){return(1-A)*(1-A)*(1-A)}function S(A,B,I,M,J,z,L,Q){return function(H){var G=m(H),ne=y(H),de=b(H),ve=_(H);return{x:L*G+J*ne+I*de+A*ve,y:Q*G+z*ne+M*de+B*ve}}}function C(A,B,I,M,J,z,L,Q){return function(H){var G=1-H,ne=3*G*G*(I-A)+6*G*H*(J-I)+3*H*H*(L-J),de=3*G*G*(M-B)+6*G*H*(z-M)+3*H*H*(Q-z);return Math.atan2(de,ne)}}function T(A){return A*A}function E(A){return 2*A*(1-A)}function O(A){return(1-A)*(1-A)}function D(A,B,I,M,J,z){return function(L){var Q=T(L),H=E(L),G=O(L);return{x:J*Q+I*H+A*G,y:z*Q+M*H+B*G}}}function j(A,B,I,M,J,z){return function(L){var Q=1-L,H=2*Q*(I-A)+2*L*(J-I),G=2*Q*(M-B)+2*L*(z-M);return Math.atan2(G,H)}}function k(A,B,I){var M={x:B,y:I},J,z=0,L;for(L=1;L<=100;L+=1)J=A(L/100),z+=v(M.x,M.y,J.x,J.y),M=J;return z}function U(A,B){for(var I=0,M=0,J=A.iterator,z={x:A.x,y:A.y},L,Q,H=.01,G=A.angleFinder,ne;M<B&&H>1e-4;)L=J(I),ne=I,Q=v(z.x,z.y,L.x,L.y),Q+M>B?(I-=H,H/=2):(z=L,I+=H,M+=Q);return L.angle=G(ne),L}function P(A){for(var B=0,I=A.length,M,J=0,z=0,L=0,Q=0,H=[],G,ne,de,ve=0;ve<I;ve++){switch(M=A[ve],ne={x:J,y:z,command:M[0]},M[0]){case"M":ne.length=0,L=J=M[1],Q=z=M[2];break;case"L":ne.length=v(J,z,M[1],M[2]),J=M[1],z=M[2];break;case"C":G=S(J,z,M[1],M[2],M[3],M[4],M[5],M[6]),de=C(J,z,M[1],M[2],M[3],M[4],M[5],M[6]),ne.iterator=G,ne.angleFinder=de,ne.length=k(G,J,z),J=M[5],z=M[6];break;case"Q":G=D(J,z,M[1],M[2],M[3],M[4]),de=j(J,z,M[1],M[2],M[3],M[4]),ne.iterator=G,ne.angleFinder=de,ne.length=k(G,J,z),J=M[3],z=M[4];break;case"Z":case"z":ne.destX=L,ne.destY=Q,ne.length=v(J,z,L,Q),J=L,z=Q;break}B+=ne.length,H.push(ne)}return H.push({length:B,x:J,y:z}),H}function re(A,B,I){I||(I=P(A));for(var M=0;B-I[M].length>0&&M<I.length-2;)B-=I[M].length,M++;var J=I[M],z=B/J.length,L=J.command,Q=A[M],H;switch(L){case"M":return{x:J.x,y:J.y,angle:0};case"Z":case"z":return H=new t.Point(J.x,J.y).lerp(new t.Point(J.destX,J.destY),z),H.angle=Math.atan2(J.destY-J.y,J.destX-J.x),H;case"L":return H=new t.Point(J.x,J.y).lerp(new t.Point(Q[1],Q[2]),z),H.angle=Math.atan2(Q[2]-J.y,Q[1]-J.x),H;case"C":return U(J,B);case"Q":return U(J,B)}}function q(A){var B=[],I=[],M,J,z=t.rePathCommand,L="[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?\\s*",Q="("+L+")"+t.commaWsp,H="([01])"+t.commaWsp+"?",G=Q+"?"+Q+"?"+Q+H+H+Q+"?("+L+")",ne=new RegExp(G,"g"),de,ve,_e;if(!A||!A.match)return B;_e=A.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi);for(var N=0,x,K=_e.length;N<K;N++){M=_e[N],ve=M.slice(1).trim(),I.length=0;var X=M.charAt(0);if(x=[X],X.toLowerCase()==="a")for(var R;R=ne.exec(ve);)for(var F=1;F<R.length;F++)I.push(R[F]);else for(;de=z.exec(ve);)I.push(de[0]);for(var F=0,ee=I.length;F<ee;F++)J=parseFloat(I[F]),isNaN(J)||x.push(J);var fe=a[X.toLowerCase()],se=c[X]||X;if(x.length-1>fe)for(var Y=1,ge=x.length;Y<ge;Y+=fe)B.push([X].concat(x.slice(Y,Y+fe))),X=se;else B.push(x)}return B}function V(A,B){var I=[],M,J=new t.Point(A[0].x,A[0].y),z=new t.Point(A[1].x,A[1].y),L=A.length,Q=1,H=0,G=L>2;for(B=B||0,G&&(Q=A[2].x<z.x?-1:A[2].x===z.x?0:1,H=A[2].y<z.y?-1:A[2].y===z.y?0:1),I.push(["M",J.x-Q*B,J.y-H*B]),M=1;M<L;M++){if(!J.eq(z)){var ne=J.midPointFrom(z);I.push(["Q",J.x,J.y,ne.x,ne.y])}J=A[M],M+1<A.length&&(z=A[M+1])}return G&&(Q=J.x>A[M-2].x?1:J.x===A[M-2].x?0:-1,H=J.y>A[M-2].y?1:J.y===A[M-2].y?0:-1),I.push(["L",J.x+Q*B,J.y+H*B]),I}function te(A,B,I){return I&&(B=t.util.multiplyTransformMatrices(B,[1,0,0,1,-I.x,-I.y])),A.map(function(M){for(var J=M.slice(0),z={},L=1;L<M.length-1;L+=2)z.x=M[L],z.y=M[L+1],z=t.util.transformPoint(z,B),J[L]=z.x,J[L+1]=z.y;return J})}t.util.joinPath=function(A){return A.map(function(B){return B.join(" ")}).join(" ")},t.util.parsePath=q,t.util.makePathSimpler=g,t.util.getSmoothPathFromPoints=V,t.util.getPathSegmentsInfo=P,t.util.getBoundsOfCurve=s,t.util.getPointOnPath=re,t.util.transformPath=te}(),function(){var o=Array.prototype.slice;function a(s,d){for(var g=o.call(arguments,2),v=[],m=0,y=s.length;m<y;m++)v[m]=g.length?s[m][d].apply(s[m],g):s[m][d].call(s[m]);return v}function c(s,d){return f(s,d,function(g,v){return g>=v})}function h(s,d){return f(s,d,function(g,v){return g<v})}function l(s,d){for(var g=s.length;g--;)s[g]=d;return s}function f(s,d,g){if(!(!s||s.length===0)){var v=s.length-1,m=d?s[v][d]:s[v];if(d)for(;v--;)g(s[v][d],m)&&(m=s[v][d]);else for(;v--;)g(s[v],m)&&(m=s[v]);return m}}t.util.array={fill:l,invoke:a,min:h,max:c}}(),function(){function o(c,h,l){if(l)if(!t.isLikelyNode&&h instanceof Element)c=h;else if(h instanceof Array){c=[];for(var f=0,s=h.length;f<s;f++)c[f]=o({},h[f],l)}else if(h&&typeof h=="object")for(var d in h)d==="canvas"||d==="group"?c[d]=null:h.hasOwnProperty(d)&&(c[d]=o({},h[d],l));else c=h;else for(var d in h)c[d]=h[d];return c}function a(c,h){return o({},c,h)}t.util.object={extend:o,clone:a},t.util.object.extend(t.util,t.Observable)}(),function(){function o(f){return f.replace(/-+(.)?/g,function(s,d){return d?d.toUpperCase():""})}function a(f,s){return f.charAt(0).toUpperCase()+(s?f.slice(1):f.slice(1).toLowerCase())}function c(f){return f.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function h(f){var s=0,d,g=[];for(s=0,d;s<f.length;s++)(d=l(f,s))!==!1&&g.push(d);return g}function l(f,s){var d=f.charCodeAt(s);if(isNaN(d))return"";if(d<55296||d>57343)return f.charAt(s);if(55296<=d&&d<=56319){if(f.length<=s+1)throw"High surrogate without following low surrogate";var g=f.charCodeAt(s+1);if(56320>g||g>57343)throw"High surrogate without following low surrogate";return f.charAt(s)+f.charAt(s+1)}if(s===0)throw"Low surrogate without preceding high surrogate";var v=f.charCodeAt(s-1);if(55296>v||v>56319)throw"Low surrogate without preceding high surrogate";return!1}t.util.string={camelize:o,capitalize:a,escapeXml:c,graphemeSplit:h}}(),function(){var o=Array.prototype.slice,a=function(){},c=function(){for(var d in{toString:1})if(d==="toString")return!1;return!0}(),h=function(d,g,v){for(var m in g)m in d.prototype&&typeof d.prototype[m]=="function"&&(g[m]+"").indexOf("callSuper")>-1?d.prototype[m]=function(y){return function(){var b=this.constructor.superclass;this.constructor.superclass=v;var _=g[y].apply(this,arguments);if(this.constructor.superclass=b,y!=="initialize")return _}}(m):d.prototype[m]=g[m],c&&(g.toString!==Object.prototype.toString&&(d.prototype.toString=g.toString),g.valueOf!==Object.prototype.valueOf&&(d.prototype.valueOf=g.valueOf))};function l(){}function f(d){for(var g=null,v=this;v.constructor.superclass;){var m=v.constructor.superclass.prototype[d];if(v[d]!==m){g=m;break}v=v.constructor.superclass.prototype}return g?arguments.length>1?g.apply(this,o.call(arguments,1)):g.call(this):console.log("tried to callSuper "+d+", method not found in prototype chain",this)}function s(){var d=null,g=o.call(arguments,0);typeof g[0]=="function"&&(d=g.shift());function v(){this.initialize.apply(this,arguments)}v.superclass=d,v.subclasses=[],d&&(l.prototype=d.prototype,v.prototype=new l,d.subclasses.push(v));for(var m=0,y=g.length;m<y;m++)h(v,g[m],d);return v.prototype.initialize||(v.prototype.initialize=a),v.prototype.constructor=v,v.prototype.callSuper=f,v}t.util.createClass=s}(),function(){var o=!!t.document.createElement("div").attachEvent,a=["touchstart","touchmove","touchend"];t.util.addListener=function(h,l,f,s){h&&h.addEventListener(l,f,o?!1:s)},t.util.removeListener=function(h,l,f,s){h&&h.removeEventListener(l,f,o?!1:s)};function c(h){var l=h.changedTouches;return l&&l[0]?l[0]:h}t.util.getPointer=function(h){var l=h.target,f=t.util.getScrollLeftTop(l),s=c(h);return{x:s.clientX+f.left,y:s.clientY+f.top}},t.util.isTouchEvent=function(h){return a.indexOf(h.type)>-1||h.pointerType==="touch"}}(),function(){function o(s,d){var g=s.style;if(!g)return s;if(typeof d=="string")return s.style.cssText+=";"+d,d.indexOf("opacity")>-1?f(s,d.match(/opacity:\s*(\d?\.?\d*)/)[1]):s;for(var v in d)if(v==="opacity")f(s,d[v]);else{var m=v==="float"||v==="cssFloat"?typeof g.styleFloat>"u"?"cssFloat":"styleFloat":v;g.setProperty(m,d[v])}return s}var a=t.document.createElement("div"),c=typeof a.style.opacity=="string",h=typeof a.style.filter=="string",l=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,f=function(s){return s};c?f=function(s,d){return s.style.opacity=d,s}:h&&(f=function(s,d){var g=s.style;return s.currentStyle&&!s.currentStyle.hasLayout&&(g.zoom=1),l.test(g.filter)?(d=d>=.9999?"":"alpha(opacity="+d*100+")",g.filter=g.filter.replace(l,d)):g.filter+=" alpha(opacity="+d*100+")",s}),t.util.setStyle=o}(),function(){var o=Array.prototype.slice;function a(_){return typeof _=="string"?t.document.getElementById(_):_}var c,h=function(_){return o.call(_,0)};try{c=h(t.document.childNodes)instanceof Array}catch{}c||(h=function(_){for(var S=new Array(_.length),C=_.length;C--;)S[C]=_[C];return S});function l(_,S){var C=t.document.createElement(_);for(var T in S)T==="class"?C.className=S[T]:T==="for"?C.htmlFor=S[T]:C.setAttribute(T,S[T]);return C}function f(_,S){_&&(" "+_.className+" ").indexOf(" "+S+" ")===-1&&(_.className+=(_.className?" ":"")+S)}function s(_,S,C){return typeof S=="string"&&(S=l(S,C)),_.parentNode&&_.parentNode.replaceChild(S,_),S.appendChild(_),S}function d(_){for(var S=0,C=0,T=t.document.documentElement,E=t.document.body||{scrollLeft:0,scrollTop:0};_&&(_.parentNode||_.host)&&(_=_.parentNode||_.host,_===t.document?(S=E.scrollLeft||T.scrollLeft||0,C=E.scrollTop||T.scrollTop||0):(S+=_.scrollLeft||0,C+=_.scrollTop||0),!(_.nodeType===1&&_.style.position==="fixed")););return{left:S,top:C}}function g(_){var S,C=_&&_.ownerDocument,T={left:0,top:0},E={left:0,top:0},O,D={borderLeftWidth:"left",borderTopWidth:"top",paddingLeft:"left",paddingTop:"top"};if(!C)return E;for(var j in D)E[D[j]]+=parseInt(v(_,j),10)||0;return S=C.documentElement,typeof _.getBoundingClientRect<"u"&&(T=_.getBoundingClientRect()),O=d(_),{left:T.left+O.left-(S.clientLeft||0)+E.left,top:T.top+O.top-(S.clientTop||0)+E.top}}var v;t.document.defaultView&&t.document.defaultView.getComputedStyle?v=function(_,S){var C=t.document.defaultView.getComputedStyle(_,null);return C?C[S]:void 0}:v=function(_,S){var C=_.style[S];return!C&&_.currentStyle&&(C=_.currentStyle[S]),C},function(){var _=t.document.documentElement.style,S="userSelect"in _?"userSelect":"MozUserSelect"in _?"MozUserSelect":"WebkitUserSelect"in _?"WebkitUserSelect":"KhtmlUserSelect"in _?"KhtmlUserSelect":"";function C(E){return typeof E.onselectstart<"u"&&(E.onselectstart=t.util.falseFunction),S?E.style[S]="none":typeof E.unselectable=="string"&&(E.unselectable="on"),E}function T(E){return typeof E.onselectstart<"u"&&(E.onselectstart=null),S?E.style[S]="":typeof E.unselectable=="string"&&(E.unselectable=""),E}t.util.makeElementUnselectable=C,t.util.makeElementSelectable=T}();function m(_){var S=t.jsdomImplForWrapper(_);return S._canvas||S._image}function y(_){if(!!t.isLikelyNode){var S=t.jsdomImplForWrapper(_);S&&(S._image=null,S._canvas=null,S._currentSrc=null,S._attributes=null,S._classList=null)}}function b(_,S){_.imageSmoothingEnabled=_.imageSmoothingEnabled||_.webkitImageSmoothingEnabled||_.mozImageSmoothingEnabled||_.msImageSmoothingEnabled||_.oImageSmoothingEnabled,_.imageSmoothingEnabled=S}t.util.setImageSmoothing=b,t.util.getById=a,t.util.toArray=h,t.util.addClass=f,t.util.makeElement=l,t.util.wrapElement=s,t.util.getScrollLeftTop=d,t.util.getElementOffset=g,t.util.getNodeCanvas=m,t.util.cleanUpJsdomNode=y}(),function(){function o(h,l){return h+(/\?/.test(h)?"&":"?")+l}function a(){}function c(h,l){l||(l={});var f=l.method?l.method.toUpperCase():"GET",s=l.onComplete||function(){},d=new t.window.XMLHttpRequest,g=l.body||l.parameters;return d.onreadystatechange=function(){d.readyState===4&&(s(d),d.onreadystatechange=a)},f==="GET"&&(g=null,typeof l.parameters=="string"&&(h=o(h,l.parameters))),d.open(f,h,!0),(f==="POST"||f==="PUT")&&d.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),d.send(g),d}t.util.request=c}(),t.log=console.log,t.warn=console.warn,function(){var o=t.util.object.extend,a=t.util.object.clone,c=[];t.util.object.extend(c,{cancelAll:function(){var m=this.splice(0);return m.forEach(function(y){y.cancel()}),m},cancelByCanvas:function(m){if(!m)return[];var y=this.filter(function(b){return typeof b.target=="object"&&b.target.canvas===m});return y.forEach(function(b){b.cancel()}),y},cancelByTarget:function(m){var y=this.findAnimationsByTarget(m);return y.forEach(function(b){b.cancel()}),y},findAnimationIndex:function(m){return this.indexOf(this.findAnimation(m))},findAnimation:function(m){return this.find(function(y){return y.cancel===m})},findAnimationsByTarget:function(m){return m?this.filter(function(y){return y.target===m}):[]}});function h(){return!1}function l(m,y,b,_){return-b*Math.cos(m/_*(Math.PI/2))+b+y}function f(m){m||(m={});var y=!1,b,_=function(){var S=t.runningAnimations.indexOf(b);return S>-1&&t.runningAnimations.splice(S,1)[0]};return b=o(a(m),{cancel:function(){return y=!0,_()},currentValue:"startValue"in m?m.startValue:0,completionRate:0,durationRate:0}),t.runningAnimations.push(b),g(function(S){var C=S||+new Date,T=m.duration||500,E=C+T,O,D=m.onChange||h,j=m.abort||h,k=m.onComplete||h,U=m.easing||l,P="startValue"in m?m.startValue.length>0:!1,re="startValue"in m?m.startValue:0,q="endValue"in m?m.endValue:100,V=m.byValue||(P?re.map(function(te,A){return q[A]-re[A]}):q-re);m.onStart&&m.onStart(),function te(A){O=A||+new Date;var B=O>E?T:O-C,I=B/T,M=P?re.map(function(z,L){return U(B,re[L],V[L],T)}):U(B,re,V,T),J=Math.abs(P?(M[0]-re[0])/V[0]:(M-re)/V);if(b.currentValue=P?M.slice():M,b.completionRate=J,b.durationRate=I,!y){if(j(M,J,I)){_();return}if(O>E){b.currentValue=P?q.slice():q,b.completionRate=1,b.durationRate=1,D(P?q.slice():q,1,1),k(q,1,1),_();return}else D(M,J,I),g(te)}}(C)}),b.cancel}var s=t.window.requestAnimationFrame||t.window.webkitRequestAnimationFrame||t.window.mozRequestAnimationFrame||t.window.oRequestAnimationFrame||t.window.msRequestAnimationFrame||function(m){return t.window.setTimeout(m,1e3/60)},d=t.window.cancelAnimationFrame||t.window.clearTimeout;function g(){return s.apply(t.window,arguments)}function v(){return d.apply(t.window,arguments)}t.util.animate=f,t.util.requestAnimFrame=g,t.util.cancelAnimFrame=v,t.runningAnimations=c}(),function(){function o(c,h,l){var f="rgba("+parseInt(c[0]+l*(h[0]-c[0]),10)+","+parseInt(c[1]+l*(h[1]-c[1]),10)+","+parseInt(c[2]+l*(h[2]-c[2]),10);return f+=","+(c&&h?parseFloat(c[3]+l*(h[3]-c[3])):1),f+=")",f}function a(c,h,l,f){var s=new t.Color(c).getSource(),d=new t.Color(h).getSource(),g=f.onComplete,v=f.onChange;return f=f||{},t.util.animate(t.util.object.extend(f,{duration:l||500,startValue:s,endValue:d,byValue:d,easing:function(m,y,b,_){var S=f.colorEasing?f.colorEasing(m,_):1-Math.cos(m/_*(Math.PI/2));return o(y,b,S)},onComplete:function(m,y,b){if(g)return g(o(d,d,0),y,b)},onChange:function(m,y,b){if(v){if(Array.isArray(m))return v(o(m,m,0),y,b);v(m,y,b)}}}))}t.util.animateColor=a}(),function(){function o(A,B,I,M){return A<Math.abs(B)?(A=B,M=I/4):B===0&&A===0?M=I/(2*Math.PI)*Math.asin(1):M=I/(2*Math.PI)*Math.asin(B/A),{a:A,c:B,p:I,s:M}}function a(A,B,I){return A.a*Math.pow(2,10*(B-=1))*Math.sin((B*I-A.s)*(2*Math.PI)/A.p)}function c(A,B,I,M){return I*((A=A/M-1)*A*A+1)+B}function h(A,B,I,M){return A/=M/2,A<1?I/2*A*A*A+B:I/2*((A-=2)*A*A+2)+B}function l(A,B,I,M){return I*(A/=M)*A*A*A+B}function f(A,B,I,M){return-I*((A=A/M-1)*A*A*A-1)+B}function s(A,B,I,M){return A/=M/2,A<1?I/2*A*A*A*A+B:-I/2*((A-=2)*A*A*A-2)+B}function d(A,B,I,M){return I*(A/=M)*A*A*A*A+B}function g(A,B,I,M){return I*((A=A/M-1)*A*A*A*A+1)+B}function v(A,B,I,M){return A/=M/2,A<1?I/2*A*A*A*A*A+B:I/2*((A-=2)*A*A*A*A+2)+B}function m(A,B,I,M){return-I*Math.cos(A/M*(Math.PI/2))+I+B}function y(A,B,I,M){return I*Math.sin(A/M*(Math.PI/2))+B}function b(A,B,I,M){return-I/2*(Math.cos(Math.PI*A/M)-1)+B}function _(A,B,I,M){return A===0?B:I*Math.pow(2,10*(A/M-1))+B}function S(A,B,I,M){return A===M?B+I:I*(-Math.pow(2,-10*A/M)+1)+B}function C(A,B,I,M){return A===0?B:A===M?B+I:(A/=M/2,A<1?I/2*Math.pow(2,10*(A-1))+B:I/2*(-Math.pow(2,-10*--A)+2)+B)}function T(A,B,I,M){return-I*(Math.sqrt(1-(A/=M)*A)-1)+B}function E(A,B,I,M){return I*Math.sqrt(1-(A=A/M-1)*A)+B}function O(A,B,I,M){return A/=M/2,A<1?-I/2*(Math.sqrt(1-A*A)-1)+B:I/2*(Math.sqrt(1-(A-=2)*A)+1)+B}function D(A,B,I,M){var J=1.70158,z=0,L=I;if(A===0)return B;if(A/=M,A===1)return B+I;z||(z=M*.3);var Q=o(L,I,z,J);return-a(Q,A,M)+B}function j(A,B,I,M){var J=1.70158,z=0,L=I;if(A===0)return B;if(A/=M,A===1)return B+I;z||(z=M*.3);var Q=o(L,I,z,J);return Q.a*Math.pow(2,-10*A)*Math.sin((A*M-Q.s)*(2*Math.PI)/Q.p)+Q.c+B}function k(A,B,I,M){var J=1.70158,z=0,L=I;if(A===0)return B;if(A/=M/2,A===2)return B+I;z||(z=M*(.3*1.5));var Q=o(L,I,z,J);return A<1?-.5*a(Q,A,M)+B:Q.a*Math.pow(2,-10*(A-=1))*Math.sin((A*M-Q.s)*(2*Math.PI)/Q.p)*.5+Q.c+B}function U(A,B,I,M,J){return J===void 0&&(J=1.70158),I*(A/=M)*A*((J+1)*A-J)+B}function P(A,B,I,M,J){return J===void 0&&(J=1.70158),I*((A=A/M-1)*A*((J+1)*A+J)+1)+B}function re(A,B,I,M,J){return J===void 0&&(J=1.70158),A/=M/2,A<1?I/2*(A*A*(((J*=1.525)+1)*A-J))+B:I/2*((A-=2)*A*(((J*=1.525)+1)*A+J)+2)+B}function q(A,B,I,M){return I-V(M-A,0,I,M)+B}function V(A,B,I,M){return(A/=M)<1/2.75?I*(7.5625*A*A)+B:A<2/2.75?I*(7.5625*(A-=1.5/2.75)*A+.75)+B:A<2.5/2.75?I*(7.5625*(A-=2.25/2.75)*A+.9375)+B:I*(7.5625*(A-=2.625/2.75)*A+.984375)+B}function te(A,B,I,M){return A<M/2?q(A*2,0,I,M)*.5+B:V(A*2-M,0,I,M)*.5+I*.5+B}t.util.ease={easeInQuad:function(A,B,I,M){return I*(A/=M)*A+B},easeOutQuad:function(A,B,I,M){return-I*(A/=M)*(A-2)+B},easeInOutQuad:function(A,B,I,M){return A/=M/2,A<1?I/2*A*A+B:-I/2*(--A*(A-2)-1)+B},easeInCubic:function(A,B,I,M){return I*(A/=M)*A*A+B},easeOutCubic:c,easeInOutCubic:h,easeInQuart:l,easeOutQuart:f,easeInOutQuart:s,easeInQuint:d,easeOutQuint:g,easeInOutQuint:v,easeInSine:m,easeOutSine:y,easeInOutSine:b,easeInExpo:_,easeOutExpo:S,easeInOutExpo:C,easeInCirc:T,easeOutCirc:E,easeInOutCirc:O,easeInElastic:D,easeOutElastic:j,easeInOutElastic:k,easeInBack:U,easeOutBack:P,easeInOutBack:re,easeInBounce:q,easeOutBounce:V,easeInOutBounce:te}}(),function(o){var a=o.fabric||(o.fabric={}),c=a.util.object.extend,h=a.util.object.clone,l=a.util.toFixed,f=a.util.parseUnit,s=a.util.multiplyTransformMatrices,d=["path","circle","polygon","polyline","ellipse","rect","line","image","text"],g=["symbol","image","marker","pattern","view","svg"],v=["pattern","defs","symbol","metadata","clipPath","mask","desc"],m=["symbol","g","a","svg","clipPath","defs"],y={cx:"left",x:"left",r:"radius",cy:"top",y:"top",display:"visible",visibility:"visible",transform:"transformMatrix","fill-opacity":"fillOpacity","fill-rule":"fillRule","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","letter-spacing":"charSpacing","paint-order":"paintFirst","stroke-dasharray":"strokeDashArray","stroke-dashoffset":"strokeDashOffset","stroke-linecap":"strokeLineCap","stroke-linejoin":"strokeLineJoin","stroke-miterlimit":"strokeMiterLimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-decoration":"textDecoration","text-anchor":"textAnchor",opacity:"opacity","clip-path":"clipPath","clip-rule":"clipRule","vector-effect":"strokeUniform","image-rendering":"imageSmoothing"},b={stroke:"strokeOpacity",fill:"fillOpacity"},_="font-size",S="clip-path";a.svgValidTagNamesRegEx=E(d),a.svgViewBoxElementsRegEx=E(g),a.svgInvalidAncestorsRegEx=E(v),a.svgValidParentsRegEx=E(m),a.cssRules={},a.gradientDefs={},a.clipPaths={};function C(z){return z in y?y[z]:z}function T(z,L,Q,H){var G=Array.isArray(L),ne;if((z==="fill"||z==="stroke")&&L==="none")L="";else{if(z==="strokeUniform")return L==="non-scaling-stroke";if(z==="strokeDashArray")L==="none"?L=null:L=L.replace(/,/g," ").split(/\s+/).map(parseFloat);else if(z==="transformMatrix")Q&&Q.transformMatrix?L=s(Q.transformMatrix,a.parseTransformAttribute(L)):L=a.parseTransformAttribute(L);else if(z==="visible")L=L!=="none"&&L!=="hidden",Q&&Q.visible===!1&&(L=!1);else if(z==="opacity")L=parseFloat(L),Q&&typeof Q.opacity<"u"&&(L*=Q.opacity);else if(z==="textAnchor")L=L==="start"?"left":L==="end"?"right":"center";else if(z==="charSpacing")ne=f(L,H)/H*1e3;else if(z==="paintFirst"){var de=L.indexOf("fill"),ve=L.indexOf("stroke"),L="fill";(de>-1&&ve>-1&&ve<de||de===-1&&ve>-1)&&(L="stroke")}else{if(z==="href"||z==="xlink:href"||z==="font")return L;if(z==="imageSmoothing")return L==="optimizeQuality";ne=G?L.map(f):f(L,H)}}return!G&&isNaN(ne)?L:ne}function E(z){return new RegExp("^("+z.join("|")+")\\b","i")}function O(z){for(var L in b)if(!(typeof z[b[L]]>"u"||z[L]==="")){if(typeof z[L]>"u"){if(!a.Object.prototype[L])continue;z[L]=a.Object.prototype[L]}if(z[L].indexOf("url(")!==0){var Q=new a.Color(z[L]);z[L]=Q.setAlpha(l(Q.getAlpha()*z[b[L]],2)).toRgba()}}return z}function D(z,L){var Q,H=[],G,ne,de;for(ne=0,de=L.length;ne<de;ne++)Q=L[ne],G=z.getElementsByTagName(Q),H=H.concat(Array.prototype.slice.call(G));return H}a.parseTransformAttribute=function(){function z(Y,ge){var Z=a.util.cos(ge[0]),ue=a.util.sin(ge[0]),me=0,xe=0;ge.length===3&&(me=ge[1],xe=ge[2]),Y[0]=Z,Y[1]=ue,Y[2]=-ue,Y[3]=Z,Y[4]=me-(Z*me-ue*xe),Y[5]=xe-(ue*me+Z*xe)}function L(Y,ge){var Z=ge[0],ue=ge.length===2?ge[1]:ge[0];Y[0]=Z,Y[3]=ue}function Q(Y,ge,Z){Y[Z]=Math.tan(a.util.degreesToRadians(ge[0]))}function H(Y,ge){Y[4]=ge[0],ge.length===2&&(Y[5]=ge[1])}var G=a.iMatrix,ne=a.reNum,de=a.commaWsp,ve="(?:(skewX)\\s*\\(\\s*("+ne+")\\s*\\))",_e="(?:(skewY)\\s*\\(\\s*("+ne+")\\s*\\))",N="(?:(rotate)\\s*\\(\\s*("+ne+")(?:"+de+"("+ne+")"+de+"("+ne+"))?\\s*\\))",x="(?:(scale)\\s*\\(\\s*("+ne+")(?:"+de+"("+ne+"))?\\s*\\))",K="(?:(translate)\\s*\\(\\s*("+ne+")(?:"+de+"("+ne+"))?\\s*\\))",X="(?:(matrix)\\s*\\(\\s*("+ne+")"+de+"("+ne+")"+de+"("+ne+")"+de+"("+ne+")"+de+"("+ne+")"+de+"("+ne+")\\s*\\))",R="(?:"+X+"|"+K+"|"+x+"|"+N+"|"+ve+"|"+_e+")",F="(?:"+R+"(?:"+de+"*"+R+")*)",ee="^\\s*(?:"+F+"?)\\s*$",fe=new RegExp(ee),se=new RegExp(R,"g");return function(Y){var ge=G.concat(),Z=[];if(!Y||Y&&!fe.test(Y))return ge;Y.replace(se,function(me){var xe=new RegExp(R).exec(me).filter(function(Ue){return!!Ue}),Ee=xe[1],ke=xe.slice(2).map(parseFloat);switch(Ee){case"translate":H(ge,ke);break;case"rotate":ke[0]=a.util.degreesToRadians(ke[0]),z(ge,ke);break;case"scale":L(ge,ke);break;case"skewX":Q(ge,ke,2);break;case"skewY":Q(ge,ke,1);break;case"matrix":ge=ke;break}Z.push(ge.concat()),ge=G.concat()});for(var ue=Z[0];Z.length>1;)Z.shift(),ue=a.util.multiplyTransformMatrices(ue,Z[0]);return ue}}();function j(z,L){var Q,H;z.replace(/;\s*$/,"").split(";").forEach(function(G){var ne=G.split(":");Q=ne[0].trim().toLowerCase(),H=ne[1].trim(),L[Q]=H})}function k(z,L){var Q,H;for(var G in z)typeof z[G]>"u"||(Q=G.toLowerCase(),H=z[G],L[Q]=H)}function U(z,L){var Q={};for(var H in a.cssRules[L])if(P(z,H.split(" ")))for(var G in a.cssRules[L][H])Q[G]=a.cssRules[L][H][G];return Q}function P(z,L){var Q,H=!0;return Q=q(z,L.pop()),Q&&L.length&&(H=re(z,L)),Q&&H&&L.length===0}function re(z,L){for(var Q,H=!0;z.parentNode&&z.parentNode.nodeType===1&&L.length;)H&&(Q=L.pop()),z=z.parentNode,H=q(z,Q);return L.length===0}function q(z,L){var Q=z.nodeName,H=z.getAttribute("class"),G=z.getAttribute("id"),ne,de;if(ne=new RegExp("^"+Q,"i"),L=L.replace(ne,""),G&&L.length&&(ne=new RegExp("#"+G+"(?![a-zA-Z\\-]+)","i"),L=L.replace(ne,"")),H&&L.length)for(H=H.split(" "),de=H.length;de--;)ne=new RegExp("\\."+H[de]+"(?![a-zA-Z\\-]+)","i"),L=L.replace(ne,"");return L.length===0}function V(z,L){var Q;if(z.getElementById&&(Q=z.getElementById(L)),Q)return Q;var H,G,ne,de=z.getElementsByTagName("*");for(G=0,ne=de.length;G<ne;G++)if(H=de[G],L===H.getAttribute("id"))return H}function te(z){for(var L=D(z,["use","svg:use"]),Q=0;L.length&&Q<L.length;){var H=L[Q],G=H.getAttribute("xlink:href")||H.getAttribute("href");if(G===null)return;var ne=G.slice(1),de=H.getAttribute("x")||0,ve=H.getAttribute("y")||0,_e=V(z,ne).cloneNode(!0),N=(_e.getAttribute("transform")||"")+" translate("+de+", "+ve+")",x,K=L.length,X,R,F,ee,fe=a.svgNS;if(B(_e),/^svg$/i.test(_e.nodeName)){var se=_e.ownerDocument.createElementNS(fe,"g");for(R=0,F=_e.attributes,ee=F.length;R<ee;R++)X=F.item(R),se.setAttributeNS(fe,X.nodeName,X.nodeValue);for(;_e.firstChild;)se.appendChild(_e.firstChild);_e=se}for(R=0,F=H.attributes,ee=F.length;R<ee;R++)X=F.item(R),!(X.nodeName==="x"||X.nodeName==="y"||X.nodeName==="xlink:href"||X.nodeName==="href")&&(X.nodeName==="transform"?N=X.nodeValue+" "+N:_e.setAttribute(X.nodeName,X.nodeValue));_e.setAttribute("transform",N),_e.setAttribute("instantiated_by_use","1"),_e.removeAttribute("id"),x=H.parentNode,x.replaceChild(_e,H),L.length===K&&Q++}}var A=new RegExp("^\\s*("+a.reNum+"+)\\s*,?\\s*("+a.reNum+"+)\\s*,?\\s*("+a.reNum+"+)\\s*,?\\s*("+a.reNum+"+)\\s*$");function B(z){if(!a.svgViewBoxElementsRegEx.test(z.nodeName))return{};var L=z.getAttribute("viewBox"),Q=1,H=1,G=0,ne=0,de,ve,_e,N,x=z.getAttribute("width"),K=z.getAttribute("height"),X=z.getAttribute("x")||0,R=z.getAttribute("y")||0,F=z.getAttribute("preserveAspectRatio")||"",ee=!L||!(L=L.match(A)),fe=!x||!K||x==="100%"||K==="100%",se=ee&&fe,Y={},ge="",Z=0,ue=0;if(Y.width=0,Y.height=0,Y.toBeParsed=se,ee&&(X||R)&&z.parentNode&&z.parentNode.nodeName!=="#document"&&(ge=" translate("+f(X)+" "+f(R)+") ",_e=(z.getAttribute("transform")||"")+ge,z.setAttribute("transform",_e),z.removeAttribute("x"),z.removeAttribute("y")),se)return Y;if(ee)return Y.width=f(x),Y.height=f(K),Y;if(G=-parseFloat(L[1]),ne=-parseFloat(L[2]),de=parseFloat(L[3]),ve=parseFloat(L[4]),Y.minX=G,Y.minY=ne,Y.viewBoxWidth=de,Y.viewBoxHeight=ve,fe?(Y.width=de,Y.height=ve):(Y.width=f(x),Y.height=f(K),Q=Y.width/de,H=Y.height/ve),F=a.util.parsePreserveAspectRatioAttribute(F),F.alignX!=="none"&&(F.meetOrSlice==="meet"&&(H=Q=Q>H?H:Q),F.meetOrSlice==="slice"&&(H=Q=Q>H?Q:H),Z=Y.width-de*Q,ue=Y.height-ve*Q,F.alignX==="Mid"&&(Z/=2),F.alignY==="Mid"&&(ue/=2),F.alignX==="Min"&&(Z=0),F.alignY==="Min"&&(ue=0)),Q===1&&H===1&&G===0&&ne===0&&X===0&&R===0)return Y;if((X||R)&&z.parentNode.nodeName!=="#document"&&(ge=" translate("+f(X)+" "+f(R)+") "),_e=ge+" matrix("+Q+" 0 0 "+H+" "+(G*Q+Z)+" "+(ne*H+ue)+") ",z.nodeName==="svg"){for(N=z.ownerDocument.createElementNS(a.svgNS,"g");z.firstChild;)N.appendChild(z.firstChild);z.appendChild(N)}else N=z,N.removeAttribute("x"),N.removeAttribute("y"),_e=N.getAttribute("transform")+_e;return N.setAttribute("transform",_e),Y}function I(z,L){for(;z&&(z=z.parentNode);)if(z.nodeName&&L.test(z.nodeName.replace("svg:",""))&&!z.getAttribute("instantiated_by_use"))return!0;return!1}a.parseSVGDocument=function(z,L,Q,H){if(!!z){te(z);var G=a.Object.__uid++,ne,de,ve=B(z),_e=a.util.toArray(z.getElementsByTagName("*"));if(ve.crossOrigin=H&&H.crossOrigin,ve.svgUid=G,_e.length===0&&a.isLikelyNode){_e=z.selectNodes('//*[name(.)!="svg"]');var N=[];for(ne=0,de=_e.length;ne<de;ne++)N[ne]=_e[ne];_e=N}var x=_e.filter(function(X){return B(X),a.svgValidTagNamesRegEx.test(X.nodeName.replace("svg:",""))&&!I(X,a.svgInvalidAncestorsRegEx)});if(!x||x&&!x.length){L&&L([],{});return}var K={};_e.filter(function(X){return X.nodeName.replace("svg:","")==="clipPath"}).forEach(function(X){var R=X.getAttribute("id");K[R]=a.util.toArray(X.getElementsByTagName("*")).filter(function(F){return a.svgValidTagNamesRegEx.test(F.nodeName.replace("svg:",""))})}),a.gradientDefs[G]=a.getGradientDefs(z),a.cssRules[G]=a.getCSSRules(z),a.clipPaths[G]=K,a.parseElements(x,function(X,R){L&&(L(X,ve,R,_e),delete a.gradientDefs[G],delete a.cssRules[G],delete a.clipPaths[G])},h(ve),Q,H)}};function M(z,L){var Q=["gradientTransform","x1","x2","y1","y2","gradientUnits","cx","cy","r","fx","fy"],H="xlink:href",G=L.getAttribute(H).slice(1),ne=V(z,G);if(ne&&ne.getAttribute(H)&&M(z,ne),Q.forEach(function(ve){ne&&!L.hasAttribute(ve)&&ne.hasAttribute(ve)&&L.setAttribute(ve,ne.getAttribute(ve))}),!L.children.length)for(var de=ne.cloneNode(!0);de.firstChild;)L.appendChild(de.firstChild);L.removeAttribute(H)}var J=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+a.reNum+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+a.reNum+"))?\\s+(.*)");c(a,{parseFontDeclaration:function(z,L){var Q=z.match(J);if(!!Q){var H=Q[1],G=Q[3],ne=Q[4],de=Q[5],ve=Q[6];H&&(L.fontStyle=H),G&&(L.fontWeight=isNaN(parseFloat(G))?G:parseFloat(G)),ne&&(L.fontSize=f(ne)),ve&&(L.fontFamily=ve),de&&(L.lineHeight=de==="normal"?1:de)}},getGradientDefs:function(z){var L=["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"],Q=D(z,L),H,G=0,ne={};for(G=Q.length;G--;)H=Q[G],H.getAttribute("xlink:href")&&M(z,H),ne[H.getAttribute("id")]=H;return ne},parseAttributes:function(z,L,Q){if(!!z){var H,G={},ne,de;typeof Q>"u"&&(Q=z.getAttribute("svgUid")),z.parentNode&&a.svgValidParentsRegEx.test(z.parentNode.nodeName)&&(G=a.parseAttributes(z.parentNode,L,Q));var ve=L.reduce(function(F,ee){return H=z.getAttribute(ee),H&&(F[ee]=H),F},{}),_e=c(U(z,Q),a.parseStyleAttribute(z));ve=c(ve,_e),_e[S]&&z.setAttribute(S,_e[S]),ne=de=G.fontSize||a.Text.DEFAULT_SVG_FONT_SIZE,ve[_]&&(ve[_]=ne=f(ve[_],de));var N,x,K={};for(var X in ve)N=C(X),x=T(N,ve[X],G,ne),K[N]=x;K&&K.font&&a.parseFontDeclaration(K.font,K);var R=c(G,K);return a.svgValidParentsRegEx.test(z.nodeName)?R:O(R)}},parseElements:function(z,L,Q,H,G){new a.ElementsParser(z,L,Q,H,G).parse()},parseStyleAttribute:function(z){var L={},Q=z.getAttribute("style");return Q&&(typeof Q=="string"?j(Q,L):k(Q,L)),L},parsePointsAttribute:function(z){if(!z)return null;z=z.replace(/,/g," ").trim(),z=z.split(/\s+/);var L=[],Q,H;for(Q=0,H=z.length;Q<H;Q+=2)L.push({x:parseFloat(z[Q]),y:parseFloat(z[Q+1])});return L},getCSSRules:function(z){var L=z.getElementsByTagName("style"),Q,H,G={},ne;for(Q=0,H=L.length;Q<H;Q++){var de=L[Q].textContent;de=de.replace(/\/\*[\s\S]*?\*\//g,""),de.trim()!==""&&(ne=de.split("}"),ne=ne.filter(function(ve){return ve.trim()}),ne.forEach(function(ve){var _e=ve.split("{"),N={},x=_e[1].trim(),K=x.split(";").filter(function(ee){return ee.trim()});for(Q=0,H=K.length;Q<H;Q++){var X=K[Q].split(":"),R=X[0].trim(),F=X[1].trim();N[R]=F}ve=_e[0].trim(),ve.split(",").forEach(function(ee){ee=ee.replace(/^svg/i,"").trim(),ee!==""&&(G[ee]?a.util.object.extend(G[ee],N):G[ee]=a.util.object.clone(N))})}))}return G},loadSVGFromURL:function(z,L,Q,H){z=z.replace(/^\n\s*/,"").trim(),new a.util.request(z,{method:"get",onComplete:G});function G(ne){var de=ne.responseXML;if(!de||!de.documentElement)return L&&L(null),!1;a.parseSVGDocument(de.documentElement,function(ve,_e,N,x){L&&L(ve,_e,N,x)},Q,H)}},loadSVGFromString:function(z,L,Q,H){var G=new a.window.DOMParser,ne=G.parseFromString(z.trim(),"text/xml");a.parseSVGDocument(ne.documentElement,function(de,ve,_e,N){L(de,ve,_e,N)},Q,H)}})}(e),t.ElementsParser=function(o,a,c,h,l,f){this.elements=o,this.callback=a,this.options=c,this.reviver=h,this.svgUid=c&&c.svgUid||0,this.parsingOptions=l,this.regexUrl=/^url\(['"]?#([^'"]+)['"]?\)/g,this.doc=f},function(o){o.parse=function(){this.instances=new Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},o.createObjects=function(){var a=this;this.elements.forEach(function(c,h){c.setAttribute("svgUid",a.svgUid),a.createObject(c,h)})},o.findTag=function(a){return t[t.util.string.capitalize(a.tagName.replace("svg:",""))]},o.createObject=function(a,c){var h=this.findTag(a);if(h&&h.fromElement)try{h.fromElement(a,this.createCallback(c,a),this.options)}catch(l){t.log(l)}else this.checkIfDone()},o.createCallback=function(a,c){var h=this;return function(l){var f;h.resolveGradient(l,c,"fill"),h.resolveGradient(l,c,"stroke"),l instanceof t.Image&&l._originalElement&&(f=l.parsePreserveAspectRatioAttribute(c)),l._removeTransformMatrix(f),h.resolveClipPath(l,c),h.reviver&&h.reviver(c,l),h.instances[a]=l,h.checkIfDone()}},o.extractPropertyDefinition=function(a,c,h){var l=a[c],f=this.regexUrl;if(!!f.test(l)){f.lastIndex=0;var s=f.exec(l)[1];return f.lastIndex=0,t[h][this.svgUid][s]}},o.resolveGradient=function(a,c,h){var l=this.extractPropertyDefinition(a,h,"gradientDefs");if(l){var f=c.getAttribute(h+"-opacity"),s=t.Gradient.fromElement(l,a,f,this.options);a.set(h,s)}},o.createClipPathCallback=function(a,c){return function(h){h._removeTransformMatrix(),h.fillRule=h.clipRule,c.push(h)}},o.resolveClipPath=function(a,c){var h=this.extractPropertyDefinition(a,"clipPath","clipPaths"),l,f,s,d,g,v;if(h){d=[],s=t.util.invertTransform(a.calcTransformMatrix());for(var m=h[0].parentNode,y=c;y.parentNode&&y.getAttribute("clip-path")!==a.clipPath;)y=y.parentNode;y.parentNode.appendChild(m);for(var b=0;b<h.length;b++)l=h[b],f=this.findTag(l),f.fromElement(l,this.createClipPathCallback(a,d),this.options);d.length===1?h=d[0]:h=new t.Group(d),g=t.util.multiplyTransformMatrices(s,h.calcTransformMatrix()),h.clipPath&&this.resolveClipPath(h,y);var v=t.util.qrDecompose(g);h.flipX=!1,h.flipY=!1,h.set("scaleX",v.scaleX),h.set("scaleY",v.scaleY),h.angle=v.angle,h.skewX=v.skewX,h.skewY=0,h.setPositionByOrigin({x:v.translateX,y:v.translateY},"center","center"),a.clipPath=h}else delete a.clipPath},o.checkIfDone=function(){--this.numElements===0&&(this.instances=this.instances.filter(function(a){return a!=null}),this.callback(this.instances,this.elements))}}(t.ElementsParser.prototype),function(o){var a=o.fabric||(o.fabric={});if(a.Point){a.warn("fabric.Point is already defined");return}a.Point=c;function c(h,l){this.x=h,this.y=l}c.prototype={type:"point",constructor:c,add:function(h){return new c(this.x+h.x,this.y+h.y)},addEquals:function(h){return this.x+=h.x,this.y+=h.y,this},scalarAdd:function(h){return new c(this.x+h,this.y+h)},scalarAddEquals:function(h){return this.x+=h,this.y+=h,this},subtract:function(h){return new c(this.x-h.x,this.y-h.y)},subtractEquals:function(h){return this.x-=h.x,this.y-=h.y,this},scalarSubtract:function(h){return new c(this.x-h,this.y-h)},scalarSubtractEquals:function(h){return this.x-=h,this.y-=h,this},multiply:function(h){return new c(this.x*h,this.y*h)},multiplyEquals:function(h){return this.x*=h,this.y*=h,this},divide:function(h){return new c(this.x/h,this.y/h)},divideEquals:function(h){return this.x/=h,this.y/=h,this},eq:function(h){return this.x===h.x&&this.y===h.y},lt:function(h){return this.x<h.x&&this.y<h.y},lte:function(h){return this.x<=h.x&&this.y<=h.y},gt:function(h){return this.x>h.x&&this.y>h.y},gte:function(h){return this.x>=h.x&&this.y>=h.y},lerp:function(h,l){return typeof l>"u"&&(l=.5),l=Math.max(Math.min(1,l),0),new c(this.x+(h.x-this.x)*l,this.y+(h.y-this.y)*l)},distanceFrom:function(h){var l=this.x-h.x,f=this.y-h.y;return Math.sqrt(l*l+f*f)},midPointFrom:function(h){return this.lerp(h)},min:function(h){return new c(Math.min(this.x,h.x),Math.min(this.y,h.y))},max:function(h){return new c(Math.max(this.x,h.x),Math.max(this.y,h.y))},toString:function(){return this.x+","+this.y},setXY:function(h,l){return this.x=h,this.y=l,this},setX:function(h){return this.x=h,this},setY:function(h){return this.y=h,this},setFromPoint:function(h){return this.x=h.x,this.y=h.y,this},swap:function(h){var l=this.x,f=this.y;this.x=h.x,this.y=h.y,h.x=l,h.y=f},clone:function(){return new c(this.x,this.y)}}}(e),function(o){var a=o.fabric||(o.fabric={});if(a.Intersection){a.warn("fabric.Intersection is already defined");return}function c(h){this.status=h,this.points=[]}a.Intersection=c,a.Intersection.prototype={constructor:c,appendPoint:function(h){return this.points.push(h),this},appendPoints:function(h){return this.points=this.points.concat(h),this}},a.Intersection.intersectLineLine=function(h,l,f,s){var d,g=(s.x-f.x)*(h.y-f.y)-(s.y-f.y)*(h.x-f.x),v=(l.x-h.x)*(h.y-f.y)-(l.y-h.y)*(h.x-f.x),m=(s.y-f.y)*(l.x-h.x)-(s.x-f.x)*(l.y-h.y);if(m!==0){var y=g/m,b=v/m;0<=y&&y<=1&&0<=b&&b<=1?(d=new c("Intersection"),d.appendPoint(new a.Point(h.x+y*(l.x-h.x),h.y+y*(l.y-h.y)))):d=new c}else g===0||v===0?d=new c("Coincident"):d=new c("Parallel");return d},a.Intersection.intersectLinePolygon=function(h,l,f){var s=new c,d=f.length,g,v,m,y;for(y=0;y<d;y++)g=f[y],v=f[(y+1)%d],m=c.intersectLineLine(h,l,g,v),s.appendPoints(m.points);return s.points.length>0&&(s.status="Intersection"),s},a.Intersection.intersectPolygonPolygon=function(h,l){var f=new c,s=h.length,d;for(d=0;d<s;d++){var g=h[d],v=h[(d+1)%s],m=c.intersectLinePolygon(g,v,l);f.appendPoints(m.points)}return f.points.length>0&&(f.status="Intersection"),f},a.Intersection.intersectPolygonRectangle=function(h,l,f){var s=l.min(f),d=l.max(f),g=new a.Point(d.x,s.y),v=new a.Point(s.x,d.y),m=c.intersectLinePolygon(s,g,h),y=c.intersectLinePolygon(g,d,h),b=c.intersectLinePolygon(d,v,h),_=c.intersectLinePolygon(v,s,h),S=new c;return S.appendPoints(m.points),S.appendPoints(y.points),S.appendPoints(b.points),S.appendPoints(_.points),S.points.length>0&&(S.status="Intersection"),S}}(e),function(o){var a=o.fabric||(o.fabric={});if(a.Color){a.warn("fabric.Color is already defined.");return}function c(l){l?this._tryParsingColor(l):this.setSource([0,0,0,1])}a.Color=c,a.Color.prototype={_tryParsingColor:function(l){var f;l in c.colorNameMap&&(l=c.colorNameMap[l]),l==="transparent"&&(f=[255,255,255,0]),f||(f=c.sourceFromHex(l)),f||(f=c.sourceFromRgb(l)),f||(f=c.sourceFromHsl(l)),f||(f=[0,0,0,1]),f&&this.setSource(f)},_rgbToHsl:function(l,f,s){l/=255,f/=255,s/=255;var d,g,v,m=a.util.array.max([l,f,s]),y=a.util.array.min([l,f,s]);if(v=(m+y)/2,m===y)d=g=0;else{var b=m-y;switch(g=v>.5?b/(2-m-y):b/(m+y),m){case l:d=(f-s)/b+(f<s?6:0);break;case f:d=(s-l)/b+2;break;case s:d=(l-f)/b+4;break}d/=6}return[Math.round(d*360),Math.round(g*100),Math.round(v*100)]},getSource:function(){return this._source},setSource:function(l){this._source=l},toRgb:function(){var l=this.getSource();return"rgb("+l[0]+","+l[1]+","+l[2]+")"},toRgba:function(){var l=this.getSource();return"rgba("+l[0]+","+l[1]+","+l[2]+","+l[3]+")"},toHsl:function(){var l=this.getSource(),f=this._rgbToHsl(l[0],l[1],l[2]);return"hsl("+f[0]+","+f[1]+"%,"+f[2]+"%)"},toHsla:function(){var l=this.getSource(),f=this._rgbToHsl(l[0],l[1],l[2]);return"hsla("+f[0]+","+f[1]+"%,"+f[2]+"%,"+l[3]+")"},toHex:function(){var l=this.getSource(),f,s,d;return f=l[0].toString(16),f=f.length===1?"0"+f:f,s=l[1].toString(16),s=s.length===1?"0"+s:s,d=l[2].toString(16),d=d.length===1?"0"+d:d,f.toUpperCase()+s.toUpperCase()+d.toUpperCase()},toHexa:function(){var l=this.getSource(),f;return f=Math.round(l[3]*255),f=f.toString(16),f=f.length===1?"0"+f:f,this.toHex()+f.toUpperCase()},getAlpha:function(){return this.getSource()[3]},setAlpha:function(l){var f=this.getSource();return f[3]=l,this.setSource(f),this},toGrayscale:function(){var l=this.getSource(),f=parseInt((l[0]*.3+l[1]*.59+l[2]*.11).toFixed(0),10),s=l[3];return this.setSource([f,f,f,s]),this},toBlackWhite:function(l){var f=this.getSource(),s=(f[0]*.3+f[1]*.59+f[2]*.11).toFixed(0),d=f[3];return l=l||127,s=Number(s)<Number(l)?0:255,this.setSource([s,s,s,d]),this},overlayWith:function(l){l instanceof c||(l=new c(l));var f=[],s=this.getAlpha(),d=.5,g=this.getSource(),v=l.getSource(),m;for(m=0;m<3;m++)f.push(Math.round(g[m]*(1-d)+v[m]*d));return f[3]=s,this.setSource(f),this}},a.Color.reRGBa=/^rgba?\(\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*(?:\s*,\s*((?:\d*\.?\d+)?)\s*)?\)$/i,a.Color.reHSLa=/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i,a.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,a.Color.colorNameMap={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",darkgrey:"#A9A9A9",darkgreen:"#006400",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",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",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 h(l,f,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?l+(f-l)*6*s:s<1/2?f:s<2/3?l+(f-l)*(2/3-s)*6:l}a.Color.fromRgb=function(l){return c.fromSource(c.sourceFromRgb(l))},a.Color.sourceFromRgb=function(l){var f=l.match(c.reRGBa);if(f){var s=parseInt(f[1],10)/(/%$/.test(f[1])?100:1)*(/%$/.test(f[1])?255:1),d=parseInt(f[2],10)/(/%$/.test(f[2])?100:1)*(/%$/.test(f[2])?255:1),g=parseInt(f[3],10)/(/%$/.test(f[3])?100:1)*(/%$/.test(f[3])?255:1);return[parseInt(s,10),parseInt(d,10),parseInt(g,10),f[4]?parseFloat(f[4]):1]}},a.Color.fromRgba=c.fromRgb,a.Color.fromHsl=function(l){return c.fromSource(c.sourceFromHsl(l))},a.Color.sourceFromHsl=function(l){var f=l.match(c.reHSLa);if(!!f){var s=(parseFloat(f[1])%360+360)%360/360,d=parseFloat(f[2])/(/%$/.test(f[2])?100:1),g=parseFloat(f[3])/(/%$/.test(f[3])?100:1),v,m,y;if(d===0)v=m=y=g;else{var b=g<=.5?g*(d+1):g+d-g*d,_=g*2-b;v=h(_,b,s+1/3),m=h(_,b,s),y=h(_,b,s-1/3)}return[Math.round(v*255),Math.round(m*255),Math.round(y*255),f[4]?parseFloat(f[4]):1]}},a.Color.fromHsla=c.fromHsl,a.Color.fromHex=function(l){return c.fromSource(c.sourceFromHex(l))},a.Color.sourceFromHex=function(l){if(l.match(c.reHex)){var f=l.slice(l.indexOf("#")+1),s=f.length===3||f.length===4,d=f.length===8||f.length===4,g=s?f.charAt(0)+f.charAt(0):f.substring(0,2),v=s?f.charAt(1)+f.charAt(1):f.substring(2,4),m=s?f.charAt(2)+f.charAt(2):f.substring(4,6),y=d?s?f.charAt(3)+f.charAt(3):f.substring(6,8):"FF";return[parseInt(g,16),parseInt(v,16),parseInt(m,16),parseFloat((parseInt(y,16)/255).toFixed(2))]}},a.Color.fromSource=function(l){var f=new c;return f.setSource(l),f}}(e),function(o){var a=o.fabric||(o.fabric={}),c=["e","se","s","sw","w","nw","n","ne","e"],h=["ns","nesw","ew","nwse"],l={},f="left",s="top",d="right",g="bottom",v="center",m={top:g,bottom:s,left:d,right:f,center:v},y=a.util.radiansToDegrees,b=Math.sign||function(N){return(N>0)-(N<0)||+N};function _(N,x){var K=N.angle+y(Math.atan2(x.y,x.x))+360;return Math.round(K%360/45)}function S(N,x){var K=x.transform.target,X=K.canvas,R=a.util.object.clone(x);R.target=K,X&&X.fire("object:"+N,R),K.fire(N,x)}function C(N,x){var K=x.canvas,X=K.uniScaleKey,R=N[X];return K.uniformScaling&&!R||!K.uniformScaling&&R}function T(N){return N.originX===v&&N.originY===v}function E(N,x,K){var X=N.lockScalingX,R=N.lockScalingY;return!!(X&&R||!x&&(X||R)&&K||X&&x==="x"||R&&x==="y")}function O(N,x,K){var X="not-allowed",R=C(N,K),F="";if(x.x!==0&&x.y===0?F="x":x.x===0&&x.y!==0&&(F="y"),E(K,F,R))return X;var ee=_(K,x);return c[ee]+"-resize"}function D(N,x,K){var X="not-allowed";if(x.x!==0&&K.lockSkewingY||x.y!==0&&K.lockSkewingX)return X;var R=_(K,x)%4;return h[R]+"-resize"}function j(N,x,K){return N[K.canvas.altActionKey]?l.skewCursorStyleHandler(N,x,K):l.scaleCursorStyleHandler(N,x,K)}function k(N,x,K){var X=N[K.canvas.altActionKey];if(x.x===0)return X?"skewX":"scaleY";if(x.y===0)return X?"skewY":"scaleX"}function U(N,x,K){return K.lockRotation?"not-allowed":x.cursorStyle}function P(N,x,K,X){return{e:N,transform:x,pointer:{x:K,y:X}}}function re(N){return function(x,K,X,R){var F=K.target,ee=F.getCenterPoint(),fe=F.translateToOriginPoint(ee,K.originX,K.originY),se=N(x,K,X,R);return F.setPositionByOrigin(fe,K.originX,K.originY),se}}function q(N,x){return function(K,X,R,F){var ee=x(K,X,R,F);return ee&&S(N,P(K,X,R,F)),ee}}function V(N,x,K,X,R){var F=N.target,ee=F.controls[N.corner],fe=F.canvas.getZoom(),se=F.padding/fe,Y=F.toLocalPoint(new a.Point(X,R),x,K);return Y.x>=se&&(Y.x-=se),Y.x<=-se&&(Y.x+=se),Y.y>=se&&(Y.y-=se),Y.y<=se&&(Y.y+=se),Y.x-=ee.offsetX,Y.y-=ee.offsetY,Y}function te(N){return N.flipX!==N.flipY}function A(N,x,K,X,R){if(N[x]!==0){var F=N._getTransformedDimensions()[X],ee=R/F*N[K];N.set(K,ee)}}function B(N,x,K,X){var R=x.target,F=R._getTransformedDimensions(0,R.skewY),ee=V(x,x.originX,x.originY,K,X),fe=Math.abs(ee.x*2)-F.x,se=R.skewX,Y;fe<2?Y=0:(Y=y(Math.atan2(fe/R.scaleX,F.y/R.scaleY)),x.originX===f&&x.originY===g&&(Y=-Y),x.originX===d&&x.originY===s&&(Y=-Y),te(R)&&(Y=-Y));var ge=se!==Y;if(ge){var Z=R._getTransformedDimensions().y;R.set("skewX",Y),A(R,"skewY","scaleY","y",Z)}return ge}function I(N,x,K,X){var R=x.target,F=R._getTransformedDimensions(R.skewX,0),ee=V(x,x.originX,x.originY,K,X),fe=Math.abs(ee.y*2)-F.y,se=R.skewY,Y;fe<2?Y=0:(Y=y(Math.atan2(fe/R.scaleY,F.x/R.scaleX)),x.originX===f&&x.originY===g&&(Y=-Y),x.originX===d&&x.originY===s&&(Y=-Y),te(R)&&(Y=-Y));var ge=se!==Y;if(ge){var Z=R._getTransformedDimensions().x;R.set("skewY",Y),A(R,"skewX","scaleX","x",Z)}return ge}function M(N,x,K,X){var R=x.target,F=R.skewX,ee,fe=x.originY;if(R.lockSkewingX)return!1;if(F===0){var se=V(x,v,v,K,X);se.x>0?ee=f:ee=d}else F>0&&(ee=fe===s?f:d),F<0&&(ee=fe===s?d:f),te(R)&&(ee=ee===f?d:f);x.originX=ee;var Y=q("skewing",re(B));return Y(N,x,K,X)}function J(N,x,K,X){var R=x.target,F=R.skewY,ee,fe=x.originX;if(R.lockSkewingY)return!1;if(F===0){var se=V(x,v,v,K,X);se.y>0?ee=s:ee=g}else F>0&&(ee=fe===f?s:g),F<0&&(ee=fe===f?g:s),te(R)&&(ee=ee===s?g:s);x.originY=ee;var Y=q("skewing",re(I));return Y(N,x,K,X)}function z(N,x,K,X){var R=x,F=R.target,ee=F.translateToOriginPoint(F.getCenterPoint(),R.originX,R.originY);if(F.lockRotation)return!1;var fe=Math.atan2(R.ey-ee.y,R.ex-ee.x),se=Math.atan2(X-ee.y,K-ee.x),Y=y(se-fe+R.theta),ge=!0;if(F.snapAngle>0){var Z=F.snapAngle,ue=F.snapThreshold||Z,me=Math.ceil(Y/Z)*Z,xe=Math.floor(Y/Z)*Z;Math.abs(Y-xe)<ue?Y=xe:Math.abs(Y-me)<ue&&(Y=me)}return Y<0&&(Y=360+Y),Y%=360,ge=F.angle!==Y,F.angle=Y,ge}function L(N,x,K,X,R){R=R||{};var F=x.target,ee=F.lockScalingX,fe=F.lockScalingY,se=R.by,Y,ge,Z,ue,me=C(N,F),xe=E(F,se,me),Ee,ke,Ue=x.gestureScale;if(xe)return!1;if(Ue)ge=x.scaleX*Ue,Z=x.scaleY*Ue;else{if(Y=V(x,x.originX,x.originY,K,X),Ee=se!=="y"?b(Y.x):1,ke=se!=="x"?b(Y.y):1,x.signX||(x.signX=Ee),x.signY||(x.signY=ke),F.lockScalingFlip&&(x.signX!==Ee||x.signY!==ke))return!1;if(ue=F._getTransformedDimensions(),me&&!se){var Xe=Math.abs(Y.x)+Math.abs(Y.y),tt=x.original,qe=Math.abs(ue.x*tt.scaleX/F.scaleX)+Math.abs(ue.y*tt.scaleY/F.scaleY),Yt=Xe/qe;ge=tt.scaleX*Yt,Z=tt.scaleY*Yt}else ge=Math.abs(Y.x*F.scaleX/ue.x),Z=Math.abs(Y.y*F.scaleY/ue.y);T(x)&&(ge*=2,Z*=2),x.signX!==Ee&&se!=="y"&&(x.originX=m[x.originX],ge*=-1,x.signX=Ee),x.signY!==ke&&se!=="x"&&(x.originY=m[x.originY],Z*=-1,x.signY=ke)}var Bn=F.scaleX,bt=F.scaleY;return se?(se==="x"&&F.set("scaleX",ge),se==="y"&&F.set("scaleY",Z)):(!ee&&F.set("scaleX",ge),!fe&&F.set("scaleY",Z)),Bn!==F.scaleX||bt!==F.scaleY}function Q(N,x,K,X){return L(N,x,K,X)}function H(N,x,K,X){return L(N,x,K,X,{by:"x"})}function G(N,x,K,X){return L(N,x,K,X,{by:"y"})}function ne(N,x,K,X){return N[x.target.canvas.altActionKey]?l.skewHandlerX(N,x,K,X):l.scalingY(N,x,K,X)}function de(N,x,K,X){return N[x.target.canvas.altActionKey]?l.skewHandlerY(N,x,K,X):l.scalingX(N,x,K,X)}function ve(N,x,K,X){var R=x.target,F=V(x,x.originX,x.originY,K,X),ee=R.strokeWidth/(R.strokeUniform?R.scaleX:1),fe=T(x)?2:1,se=R.width,Y=Math.abs(F.x*fe/R.scaleX)-ee;return R.set("width",Math.max(Y,0)),se!==Y}function _e(N,x,K,X){var R=x.target,F=K-x.offsetX,ee=X-x.offsetY,fe=!R.get("lockMovementX")&&R.left!==F,se=!R.get("lockMovementY")&&R.top!==ee;return fe&&R.set("left",F),se&&R.set("top",ee),(fe||se)&&S("moving",P(N,x,K,X)),fe||se}l.scaleCursorStyleHandler=O,l.skewCursorStyleHandler=D,l.scaleSkewCursorStyleHandler=j,l.rotationWithSnapping=q("rotating",re(z)),l.scalingEqually=q("scaling",re(Q)),l.scalingX=q("scaling",re(H)),l.scalingY=q("scaling",re(G)),l.scalingYOrSkewingX=ne,l.scalingXOrSkewingY=de,l.changeWidth=q("resizing",re(ve)),l.skewHandlerX=M,l.skewHandlerY=J,l.dragHandler=_e,l.scaleOrSkewActionName=k,l.rotationStyleHandler=U,l.fireEvent=S,l.wrapWithFixedAnchor=re,l.wrapWithFireEvent=q,l.getLocalPoint=V,a.controlsUtils=l}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.degreesToRadians,h=a.controlsUtils;function l(s,d,g,v,m){v=v||{};var y=this.sizeX||v.cornerSize||m.cornerSize,b=this.sizeY||v.cornerSize||m.cornerSize,_=typeof v.transparentCorners<"u"?v.transparentCorners:m.transparentCorners,S=_?"stroke":"fill",C=!_&&(v.cornerStrokeColor||m.cornerStrokeColor),T=d,E=g,O;s.save(),s.fillStyle=v.cornerColor||m.cornerColor,s.strokeStyle=v.cornerStrokeColor||m.cornerStrokeColor,y>b?(O=y,s.scale(1,b/y),E=g*y/b):b>y?(O=b,s.scale(y/b,1),T=d*b/y):O=y,s.lineWidth=1,s.beginPath(),s.arc(T,E,O/2,0,2*Math.PI,!1),s[S](),C&&s.stroke(),s.restore()}function f(s,d,g,v,m){v=v||{};var y=this.sizeX||v.cornerSize||m.cornerSize,b=this.sizeY||v.cornerSize||m.cornerSize,_=typeof v.transparentCorners<"u"?v.transparentCorners:m.transparentCorners,S=_?"stroke":"fill",C=!_&&(v.cornerStrokeColor||m.cornerStrokeColor),T=y/2,E=b/2;s.save(),s.fillStyle=v.cornerColor||m.cornerColor,s.strokeStyle=v.cornerStrokeColor||m.cornerStrokeColor,s.lineWidth=1,s.translate(d,g),s.rotate(c(m.angle)),s[S+"Rect"](-T,-E,y,b),C&&s.strokeRect(-T,-E,y,b),s.restore()}h.renderCircleControl=l,h.renderSquareControl=f}(e),function(o){var a=o.fabric||(o.fabric={});function c(h){for(var l in h)this[l]=h[l]}a.Control=c,a.Control.prototype={visible:!0,actionName:"scale",angle:0,x:0,y:0,offsetX:0,offsetY:0,sizeX:null,sizeY:null,touchSizeX:null,touchSizeY:null,cursorStyle:"crosshair",withConnection:!1,actionHandler:function(){},mouseDownHandler:function(){},mouseUpHandler:function(){},getActionHandler:function(){return this.actionHandler},getMouseDownHandler:function(){return this.mouseDownHandler},getMouseUpHandler:function(){return this.mouseUpHandler},cursorStyleHandler:function(h,l){return l.cursorStyle},getActionName:function(h,l){return l.actionName},getVisibility:function(h,l){var f=h._controlsVisibility;return f&&typeof f[l]<"u"?f[l]:this.visible},setVisibility:function(h){this.visible=h},positionHandler:function(h,l){var f=a.util.transformPoint({x:this.x*h.x+this.offsetX,y:this.y*h.y+this.offsetY},l);return f},calcCornerCoords:function(h,l,f,s,d){var g,v,m,y,b=d?this.touchSizeX:this.sizeX,_=d?this.touchSizeY:this.sizeY;if(b&&_&&b!==_){var S=Math.atan2(_,b),C=Math.sqrt(b*b+_*_)/2,T=S-a.util.degreesToRadians(h),E=Math.PI/2-S-a.util.degreesToRadians(h);g=C*a.util.cos(T),v=C*a.util.sin(T),m=C*a.util.cos(E),y=C*a.util.sin(E)}else{var O=b&&_?b:l;C=O*.7071067812;var T=a.util.degreesToRadians(45-h);g=m=C*a.util.cos(T),v=y=C*a.util.sin(T)}return{tl:{x:f-y,y:s-m},tr:{x:f+g,y:s-v},bl:{x:f-g,y:s+v},br:{x:f+y,y:s+m}}},render:function(h,l,f,s,d){switch(s=s||{},s.cornerStyle||d.cornerStyle){case"circle":a.controlsUtils.renderCircleControl.call(this,h,l,f,s,d);break;default:a.controlsUtils.renderSquareControl.call(this,h,l,f,s,d)}}}}(e),function(){function o(f,s){var d=f.getAttribute("style"),g=f.getAttribute("offset")||0,v,m,y,b;if(g=parseFloat(g)/(/%$/.test(g)?100:1),g=g<0?0:g>1?1:g,d){var _=d.split(/\s*;\s*/);for(_[_.length-1]===""&&_.pop(),b=_.length;b--;){var S=_[b].split(/\s*:\s*/),C=S[0].trim(),T=S[1].trim();C==="stop-color"?v=T:C==="stop-opacity"&&(y=T)}}return v||(v=f.getAttribute("stop-color")||"rgb(0,0,0)"),y||(y=f.getAttribute("stop-opacity")),v=new t.Color(v),m=v.getAlpha(),y=isNaN(parseFloat(y))?1:parseFloat(y),y*=m*s,{offset:g,color:v.toRgb(),opacity:y}}function a(f){return{x1:f.getAttribute("x1")||0,y1:f.getAttribute("y1")||0,x2:f.getAttribute("x2")||"100%",y2:f.getAttribute("y2")||0}}function c(f){return{x1:f.getAttribute("fx")||f.getAttribute("cx")||"50%",y1:f.getAttribute("fy")||f.getAttribute("cy")||"50%",r1:0,x2:f.getAttribute("cx")||"50%",y2:f.getAttribute("cy")||"50%",r2:f.getAttribute("r")||"50%"}}var h=t.util.object.clone;t.Gradient=t.util.createClass({offsetX:0,offsetY:0,gradientTransform:null,gradientUnits:"pixels",type:"linear",initialize:function(f){f||(f={}),f.coords||(f.coords={});var s,d=this;Object.keys(f).forEach(function(g){d[g]=f[g]}),this.id?this.id+="_"+t.Object.__uid++:this.id=t.Object.__uid++,s={x1:f.coords.x1||0,y1:f.coords.y1||0,x2:f.coords.x2||0,y2:f.coords.y2||0},this.type==="radial"&&(s.r1=f.coords.r1||0,s.r2=f.coords.r2||0),this.coords=s,this.colorStops=f.colorStops.slice()},addColorStop:function(f){for(var s in f){var d=new t.Color(f[s]);this.colorStops.push({offset:parseFloat(s),color:d.toRgb(),opacity:d.getAlpha()})}return this},toObject:function(f){var s={type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?this.gradientTransform.concat():this.gradientTransform};return t.util.populateWithProperties(this,s,f),s},toSVG:function(f,m){var d=h(this.coords,!0),g,v,m=m||{},y,b,_=h(this.colorStops,!0),S=d.r1>d.r2,C=this.gradientTransform?this.gradientTransform.concat():t.iMatrix.concat(),T=-this.offsetX,E=-this.offsetY,O=!!m.additionalTransform,D=this.gradientUnits==="pixels"?"userSpaceOnUse":"objectBoundingBox";if(_.sort(function(re,q){return re.offset-q.offset}),D==="objectBoundingBox"?(T/=f.width,E/=f.height):(T+=f.width/2,E+=f.height/2),f.type==="path"&&this.gradientUnits!=="percentage"&&(T-=f.pathOffset.x,E-=f.pathOffset.y),C[4]-=T,C[5]-=E,b='id="SVGID_'+this.id+'" gradientUnits="'+D+'"',b+=' gradientTransform="'+(O?m.additionalTransform+" ":"")+t.util.matrixToSVG(C)+'" ',this.type==="linear"?y=["<linearGradient ",b,' x1="',d.x1,'" y1="',d.y1,'" x2="',d.x2,'" y2="',d.y2,`">
`]:this.type==="radial"&&(y=["<radialGradient ",b,' cx="',S?d.x1:d.x2,'" cy="',S?d.y1:d.y2,'" r="',S?d.r1:d.r2,'" fx="',S?d.x2:d.x1,'" fy="',S?d.y2:d.y1,`">
`]),this.type==="radial"){if(S)for(_=_.concat(),_.reverse(),g=0,v=_.length;g<v;g++)_[g].offset=1-_[g].offset;var j=Math.min(d.r1,d.r2);if(j>0){var k=Math.max(d.r1,d.r2),U=j/k;for(g=0,v=_.length;g<v;g++)_[g].offset+=U*(1-_[g].offset)}}for(g=0,v=_.length;g<v;g++){var P=_[g];y.push("<stop ",'offset="',P.offset*100+"%",'" style="stop-color:',P.color,typeof P.opacity<"u"?";stop-opacity: "+P.opacity:";",`"/>
`)}return y.push(this.type==="linear"?`</linearGradient>
`:`</radialGradient>
`),y.join("")},toLive:function(f){var s,d=t.util.object.clone(this.coords),g,v;if(!!this.type){for(this.type==="linear"?s=f.createLinearGradient(d.x1,d.y1,d.x2,d.y2):this.type==="radial"&&(s=f.createRadialGradient(d.x1,d.y1,d.r1,d.x2,d.y2,d.r2)),g=0,v=this.colorStops.length;g<v;g++){var m=this.colorStops[g].color,y=this.colorStops[g].opacity,b=this.colorStops[g].offset;typeof y<"u"&&(m=new t.Color(m).setAlpha(y).toRgba()),s.addColorStop(b,m)}return s}}}),t.util.object.extend(t.Gradient,{fromElement:function(f,s,d,g){var v=parseFloat(d)/(/%$/.test(d)?100:1);v=v<0?0:v>1?1:v,isNaN(v)&&(v=1);var m=f.getElementsByTagName("stop"),y,b=f.getAttribute("gradientUnits")==="userSpaceOnUse"?"pixels":"percentage",_=f.getAttribute("gradientTransform")||"",S=[],C,T,E=0,O=0,D;for(f.nodeName==="linearGradient"||f.nodeName==="LINEARGRADIENT"?(y="linear",C=a(f)):(y="radial",C=c(f)),T=m.length;T--;)S.push(o(m[T],v));D=t.parseTransformAttribute(_),l(s,C,g,b),b==="pixels"&&(E=-s.left,O=-s.top);var j=new t.Gradient({id:f.getAttribute("id"),type:y,coords:C,colorStops:S,gradientUnits:b,gradientTransform:D,offsetX:E,offsetY:O});return j}});function l(f,s,d,g){var v,m;Object.keys(s).forEach(function(y){v=s[y],v==="Infinity"?m=1:v==="-Infinity"?m=0:(m=parseFloat(s[y],10),typeof v=="string"&&/^(\d+\.\d+)%|(\d+)%$/.test(v)&&(m*=.01,g==="pixels"&&((y==="x1"||y==="x2"||y==="r2")&&(m*=d.viewBoxWidth||d.width),(y==="y1"||y==="y2")&&(m*=d.viewBoxHeight||d.height)))),s[y]=m})}}(),function(){var o=t.util.toFixed;t.Pattern=t.util.createClass({repeat:"repeat",offsetX:0,offsetY:0,crossOrigin:"",patternTransform:null,initialize:function(a,c){if(a||(a={}),this.id=t.Object.__uid++,this.setOptions(a),!a.source||a.source&&typeof a.source!="string"){c&&c(this);return}else{var h=this;this.source=t.util.createImage(),t.util.loadImage(a.source,function(l,f){h.source=l,c&&c(h,f)},null,this.crossOrigin)}},toObject:function(a){var c=t.Object.NUM_FRACTION_DIGITS,h,l;return typeof this.source.src=="string"?h=this.source.src:typeof this.source=="object"&&this.source.toDataURL&&(h=this.source.toDataURL()),l={type:"pattern",source:h,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:o(this.offsetX,c),offsetY:o(this.offsetY,c),patternTransform:this.patternTransform?this.patternTransform.concat():null},t.util.populateWithProperties(this,l,a),l},toSVG:function(a){var c=typeof this.source=="function"?this.source():this.source,h=c.width/a.width,l=c.height/a.height,f=this.offsetX/a.width,s=this.offsetY/a.height,d="";return(this.repeat==="repeat-x"||this.repeat==="no-repeat")&&(l=1,s&&(l+=Math.abs(s))),(this.repeat==="repeat-y"||this.repeat==="no-repeat")&&(h=1,f&&(h+=Math.abs(f))),c.src?d=c.src:c.toDataURL&&(d=c.toDataURL()),'<pattern id="SVGID_'+this.id+'" x="'+f+'" y="'+s+'" width="'+h+'" height="'+l+`">
<image x="0" y="0" width="`+c.width+'" height="'+c.height+'" xlink:href="'+d+`"></image>
</pattern>
`},setOptions:function(a){for(var c in a)this[c]=a[c]},toLive:function(a){var c=this.source;return!c||typeof c.src<"u"&&(!c.complete||c.naturalWidth===0||c.naturalHeight===0)?"":a.createPattern(c,this.repeat)}})}(),function(o){var a=o.fabric||(o.fabric={}),c=a.util.toFixed;if(a.Shadow){a.warn("fabric.Shadow is already defined.");return}a.Shadow=a.util.createClass({color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1,initialize:function(h){typeof h=="string"&&(h=this._parseShadow(h));for(var l in h)this[l]=h[l];this.id=a.Object.__uid++},_parseShadow:function(h){var l=h.trim(),f=a.Shadow.reOffsetsAndBlur.exec(l)||[],s=l.replace(a.Shadow.reOffsetsAndBlur,"")||"rgb(0,0,0)";return{color:s.trim(),offsetX:parseFloat(f[1],10)||0,offsetY:parseFloat(f[2],10)||0,blur:parseFloat(f[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")},toSVG:function(h){var l=40,f=40,s=a.Object.NUM_FRACTION_DIGITS,d=a.util.rotateVector({x:this.offsetX,y:this.offsetY},a.util.degreesToRadians(-h.angle)),g=20,v=new a.Color(this.color);return h.width&&h.height&&(l=c((Math.abs(d.x)+this.blur)/h.width,s)*100+g,f=c((Math.abs(d.y)+this.blur)/h.height,s)*100+g),h.flipX&&(d.x*=-1),h.flipY&&(d.y*=-1),'<filter id="SVGID_'+this.id+'" y="-'+f+'%" height="'+(100+2*f)+'%" x="-'+l+'%" width="'+(100+2*l)+`%" >
<feGaussianBlur in="SourceAlpha" stdDeviation="`+c(this.blur?this.blur/2:0,s)+`"></feGaussianBlur>
<feOffset dx="`+c(d.x,s)+'" dy="'+c(d.y,s)+`" result="oBlur" ></feOffset>
<feFlood flood-color="`+v.toRgb()+'" flood-opacity="'+v.getAlpha()+`"/>
<feComposite in2="oBlur" operator="in" />
<feMerge>
<feMergeNode></feMergeNode>
<feMergeNode in="SourceGraphic"></feMergeNode>
</feMerge>
</filter>
`},toObject:function(){if(this.includeDefaultValues)return{color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling};var h={},l=a.Shadow.prototype;return["color","blur","offsetX","offsetY","affectStroke","nonScaling"].forEach(function(f){this[f]!==l[f]&&(h[f]=this[f])},this),h}}),a.Shadow.reOffsetsAndBlur=/(?:\s|^)(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(\d+(?:\.\d*)?(?:px)?)?(?:\s?|$)(?:$|\s)/}(e),function(){if(t.StaticCanvas){t.warn("fabric.StaticCanvas is already defined.");return}var o=t.util.object.extend,a=t.util.getElementOffset,c=t.util.removeFromArray,h=t.util.toFixed,l=t.util.transformPoint,f=t.util.invertTransform,s=t.util.getNodeCanvas,d=t.util.createCanvasElement,g=new Error("Could not initialize `canvas` element");t.StaticCanvas=t.util.createClass(t.CommonMethods,{initialize:function(v,m){m||(m={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(v,m)},backgroundColor:"",backgroundImage:null,overlayColor:"",overlayImage:null,includeDefaultValues:!0,stateful:!1,renderOnAddRemove:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,imageSmoothingEnabled:!0,viewportTransform:t.iMatrix.concat(),backgroundVpt:!0,overlayVpt:!0,enableRetinaScaling:!0,vptCoords:{},skipOffscreen:!0,clipPath:void 0,_initStatic:function(v,m){var y=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(v),this._initOptions(m),this.interactive||this._initRetinaScaling(),m.overlayImage&&this.setOverlayImage(m.overlayImage,y),m.backgroundImage&&this.setBackgroundImage(m.backgroundImage,y),m.backgroundColor&&this.setBackgroundColor(m.backgroundColor,y),m.overlayColor&&this.setOverlayColor(m.overlayColor,y),this.calcOffset()},_isRetinaScaling:function(){return t.devicePixelRatio>1&&this.enableRetinaScaling},getRetinaScaling:function(){return this._isRetinaScaling()?Math.max(1,t.devicePixelRatio):1},_initRetinaScaling:function(){if(!!this._isRetinaScaling()){var v=t.devicePixelRatio;this.__initRetinaScaling(v,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl&&this.__initRetinaScaling(v,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(v,m,y){m.setAttribute("width",this.width*v),m.setAttribute("height",this.height*v),y.scale(v,v)},calcOffset:function(){return this._offset=a(this.lowerCanvasEl),this},setOverlayImage:function(v,m,y){return this.__setBgOverlayImage("overlayImage",v,m,y)},setBackgroundImage:function(v,m,y){return this.__setBgOverlayImage("backgroundImage",v,m,y)},setOverlayColor:function(v,m){return this.__setBgOverlayColor("overlayColor",v,m)},setBackgroundColor:function(v,m){return this.__setBgOverlayColor("backgroundColor",v,m)},__setBgOverlayImage:function(v,m,y,b){return typeof m=="string"?t.util.loadImage(m,function(_,S){if(_){var C=new t.Image(_,b);this[v]=C,C.canvas=this}y&&y(_,S)},this,b&&b.crossOrigin):(b&&m.setOptions(b),this[v]=m,m&&(m.canvas=this),y&&y(m,!1)),this},__setBgOverlayColor:function(v,m,y){return this[v]=m,this._initGradient(m,v),this._initPattern(m,v,y),this},_createCanvasElement:function(){var v=d();if(!v||(v.style||(v.style={}),typeof v.getContext>"u"))throw g;return v},_initOptions:function(v){var m=this.lowerCanvasEl;this._setOptions(v),this.width=this.width||parseInt(m.width,10)||0,this.height=this.height||parseInt(m.height,10)||0,this.lowerCanvasEl.style&&(m.width=this.width,m.height=this.height,m.style.width=this.width+"px",m.style.height=this.height+"px",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(v){v&&v.getContext?this.lowerCanvasEl=v:this.lowerCanvasEl=t.util.getById(v)||this._createCanvasElement(),t.util.addClass(this.lowerCanvasEl,"lower-canvas"),this._originalCanvasStyle=this.lowerCanvasEl.style,this.interactive&&this._applyCanvasStyle(this.lowerCanvasEl),this.contextContainer=this.lowerCanvasEl.getContext("2d")},getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(v,m){return this.setDimensions({width:v},m)},setHeight:function(v,m){return this.setDimensions({height:v},m)},setDimensions:function(v,m){var y;m=m||{};for(var b in v)y=v[b],m.cssOnly||(this._setBackstoreDimension(b,v[b]),y+="px",this.hasLostContext=!0),m.backstoreOnly||this._setCssDimension(b,y);return this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(this.contextTop),this._initRetinaScaling(),this.calcOffset(),m.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(v,m){return this.lowerCanvasEl[v]=m,this.upperCanvasEl&&(this.upperCanvasEl[v]=m),this.cacheCanvasEl&&(this.cacheCanvasEl[v]=m),this[v]=m,this},_setCssDimension:function(v,m){return this.lowerCanvasEl.style[v]=m,this.upperCanvasEl&&(this.upperCanvasEl.style[v]=m),this.wrapperEl&&(this.wrapperEl.style[v]=m),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(v){var m=this._activeObject,y=this.backgroundImage,b=this.overlayImage,_,S,C;for(this.viewportTransform=v,S=0,C=this._objects.length;S<C;S++)_=this._objects[S],_.group||_.setCoords(!0);return m&&m.setCoords(),y&&y.setCoords(!0),b&&b.setCoords(!0),this.calcViewportBoundaries(),this.renderOnAddRemove&&this.requestRenderAll(),this},zoomToPoint:function(v,m){var y=v,b=this.viewportTransform.slice(0);v=l(v,f(this.viewportTransform)),b[0]=m,b[3]=m;var _=l(v,b);return b[4]+=y.x-_.x,b[5]+=y.y-_.y,this.setViewportTransform(b)},setZoom:function(v){return this.zoomToPoint(new t.Point(0,0),v),this},absolutePan:function(v){var m=this.viewportTransform.slice(0);return m[4]=-v.x,m[5]=-v.y,this.setViewportTransform(m)},relativePan:function(v){return this.absolutePan(new t.Point(-v.x-this.viewportTransform[4],-v.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(v){this.stateful&&v.setupState(),v._set("canvas",this),v.setCoords(),this.fire("object:added",{target:v}),v.fire("added")},_onObjectRemoved:function(v){this.fire("object:removed",{target:v}),v.fire("removed"),delete v.canvas},clearContext:function(v){return v.clearRect(0,0,this.width,this.height),this},getContext:function(){return this.contextContainer},clear:function(){return this.remove.apply(this,this.getObjects()),this.backgroundImage=null,this.overlayImage=null,this.backgroundColor="",this.overlayColor="",this._hasITextHandlers&&(this.off("mouse:up",this._mouseUpITextHandler),this._iTextInstances=null,this._hasITextHandlers=!1),this.clearContext(this.contextContainer),this.fire("canvas:cleared"),this.renderOnAddRemove&&this.requestRenderAll(),this},renderAll:function(){var v=this.contextContainer;return this.renderCanvas(v,this._objects),this},renderAndReset:function(){this.isRendering=0,this.renderAll()},requestRenderAll:function(){return this.isRendering||(this.isRendering=t.util.requestAnimFrame(this.renderAndResetBound)),this},calcViewportBoundaries:function(){var v={},m=this.width,y=this.height,b=f(this.viewportTransform);return v.tl=l({x:0,y:0},b),v.br=l({x:m,y},b),v.tr=new t.Point(v.br.x,v.tl.y),v.bl=new t.Point(v.tl.x,v.br.y),this.vptCoords=v,v},cancelRequestedRender:function(){this.isRendering&&(t.util.cancelAnimFrame(this.isRendering),this.isRendering=0)},renderCanvas:function(v,m){var y=this.viewportTransform,b=this.clipPath;this.cancelRequestedRender(),this.calcViewportBoundaries(),this.clearContext(v),t.util.setImageSmoothing(v,this.imageSmoothingEnabled),this.fire("before:render",{ctx:v}),this._renderBackground(v),v.save(),v.transform(y[0],y[1],y[2],y[3],y[4],y[5]),this._renderObjects(v,m),v.restore(),!this.controlsAboveOverlay&&this.interactive&&this.drawControls(v),b&&(b.canvas=this,b.shouldCache(),b._transformDone=!0,b.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(v)),this._renderOverlay(v),this.controlsAboveOverlay&&this.interactive&&this.drawControls(v),this.fire("after:render",{ctx:v})},drawClipPathOnCanvas:function(v){var m=this.viewportTransform,y=this.clipPath;v.save(),v.transform(m[0],m[1],m[2],m[3],m[4],m[5]),v.globalCompositeOperation="destination-in",y.transform(v),v.scale(1/y.zoomX,1/y.zoomY),v.drawImage(y._cacheCanvas,-y.cacheTranslationX,-y.cacheTranslationY),v.restore()},_renderObjects:function(v,m){var y,b;for(y=0,b=m.length;y<b;++y)m[y]&&m[y].render(v)},_renderBackgroundOrOverlay:function(v,m){var y=this[m+"Color"],b=this[m+"Image"],_=this.viewportTransform,S=this[m+"Vpt"];if(!(!y&&!b)){if(y){v.save(),v.beginPath(),v.moveTo(0,0),v.lineTo(this.width,0),v.lineTo(this.width,this.height),v.lineTo(0,this.height),v.closePath(),v.fillStyle=y.toLive?y.toLive(v,this):y,S&&v.transform(_[0],_[1],_[2],_[3],_[4],_[5]),v.transform(1,0,0,1,y.offsetX||0,y.offsetY||0);var C=y.gradientTransform||y.patternTransform;C&&v.transform(C[0],C[1],C[2],C[3],C[4],C[5]),v.fill(),v.restore()}if(b){v.save();var T=this.skipOffscreen;this.skipOffscreen=S,S&&v.transform(_[0],_[1],_[2],_[3],_[4],_[5]),b.render(v),this.skipOffscreen=T,v.restore()}}},_renderBackground:function(v){this._renderBackgroundOrOverlay(v,"background")},_renderOverlay:function(v){this._renderBackgroundOrOverlay(v,"overlay")},getCenter:function(){return{top:this.height/2,left:this.width/2}},getCenterPoint:function(){return new t.Point(this.width/2,this.height/2)},centerObjectH:function(v){return this._centerObject(v,new t.Point(this.getCenterPoint().x,v.getCenterPoint().y))},centerObjectV:function(v){return this._centerObject(v,new t.Point(v.getCenterPoint().x,this.getCenterPoint().y))},centerObject:function(v){var m=this.getCenterPoint();return this._centerObject(v,m)},viewportCenterObject:function(v){var m=this.getVpCenter();return this._centerObject(v,m)},viewportCenterObjectH:function(v){var m=this.getVpCenter();return this._centerObject(v,new t.Point(m.x,v.getCenterPoint().y)),this},viewportCenterObjectV:function(v){var m=this.getVpCenter();return this._centerObject(v,new t.Point(v.getCenterPoint().x,m.y))},getVpCenter:function(){var v=this.getCenterPoint(),m=f(this.viewportTransform);return l(v,m)},_centerObject:function(v,m){return v.setPositionByOrigin(m,"center","center"),v.setCoords(),this.renderOnAddRemove&&this.requestRenderAll(),this},toDatalessJSON:function(v){return this.toDatalessObject(v)},toObject:function(v){return this._toObjectMethod("toObject",v)},toDatalessObject:function(v){return this._toObjectMethod("toDatalessObject",v)},_toObjectMethod:function(v,m){var y=this.clipPath,b={version:t.version,objects:this._toObjects(v,m)};return y&&!y.excludeFromExport&&(b.clipPath=this._toObject(this.clipPath,v,m)),o(b,this.__serializeBgOverlay(v,m)),t.util.populateWithProperties(this,b,m),b},_toObjects:function(v,m){return this._objects.filter(function(y){return!y.excludeFromExport}).map(function(y){return this._toObject(y,v,m)},this)},_toObject:function(v,m,y){var b;this.includeDefaultValues||(b=v.includeDefaultValues,v.includeDefaultValues=!1);var _=v[m](y);return this.includeDefaultValues||(v.includeDefaultValues=b),_},__serializeBgOverlay:function(v,m){var y={},b=this.backgroundImage,_=this.overlayImage,S=this.backgroundColor,C=this.overlayColor;return S&&S.toObject?S.excludeFromExport||(y.background=S.toObject(m)):S&&(y.background=S),C&&C.toObject?C.excludeFromExport||(y.overlay=C.toObject(m)):C&&(y.overlay=C),b&&!b.excludeFromExport&&(y.backgroundImage=this._toObject(b,v,m)),_&&!_.excludeFromExport&&(y.overlayImage=this._toObject(_,v,m)),y},svgViewportTransformation:!0,toSVG:function(v,m){v||(v={}),v.reviver=m;var y=[];return this._setSVGPreamble(y,v),this._setSVGHeader(y,v),this.clipPath&&y.push('<g clip-path="url(#'+this.clipPath.clipPathId+`)" >
`),this._setSVGBgOverlayColor(y,"background"),this._setSVGBgOverlayImage(y,"backgroundImage",m),this._setSVGObjects(y,m),this.clipPath&&y.push(`</g>
`),this._setSVGBgOverlayColor(y,"overlay"),this._setSVGBgOverlayImage(y,"overlayImage",m),y.push("</svg>"),y.join("")},_setSVGPreamble:function(v,m){m.suppressPreamble||v.push('<?xml version="1.0" encoding="',m.encoding||"UTF-8",`" standalone="no" ?>
`,'<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" ',`"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
`)},_setSVGHeader:function(v,m){var y=m.width||this.width,b=m.height||this.height,_,S='viewBox="0 0 '+this.width+" "+this.height+'" ',C=t.Object.NUM_FRACTION_DIGITS;m.viewBox?S='viewBox="'+m.viewBox.x+" "+m.viewBox.y+" "+m.viewBox.width+" "+m.viewBox.height+'" ':this.svgViewportTransformation&&(_=this.viewportTransform,S='viewBox="'+h(-_[4]/_[0],C)+" "+h(-_[5]/_[3],C)+" "+h(this.width/_[0],C)+" "+h(this.height/_[3],C)+'" '),v.push("<svg ",'xmlns="http://www.w3.org/2000/svg" ','xmlns:xlink="http://www.w3.org/1999/xlink" ','version="1.1" ','width="',y,'" ','height="',b,'" ',S,`xml:space="preserve">
`,"<desc>Created with Fabric.js ",t.version,`</desc>
`,`<defs>
`,this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(m),`</defs>
`)},createSVGClipPathMarkup:function(v){var m=this.clipPath;return m?(m.clipPathId="CLIPPATH_"+t.Object.__uid++,'<clipPath id="'+m.clipPathId+`" >
`+this.clipPath.toClipPathSVG(v.reviver)+`</clipPath>
`):""},createSVGRefElementsMarkup:function(){var v=this,m=["background","overlay"].map(function(y){var b=v[y+"Color"];if(b&&b.toLive){var _=v[y+"Vpt"],S=v.viewportTransform,C={width:v.width/(_?S[0]:1),height:v.height/(_?S[3]:1)};return b.toSVG(C,{additionalTransform:_?t.util.matrixToSVG(S):""})}});return m.join("")},createSVGFontFacesMarkup:function(){var v="",m={},y,b,_,S,C,T,E,O,D,j=t.fontPaths,k=[];for(this._objects.forEach(function P(re){k.push(re),re._objects&&re._objects.forEach(P)}),O=0,D=k.length;O<D;O++)if(y=k[O],b=y.fontFamily,!(y.type.indexOf("text")===-1||m[b]||!j[b])&&(m[b]=!0,!!y.styles)){_=y.styles;for(C in _){S=_[C];for(E in S)T=S[E],b=T.fontFamily,!m[b]&&j[b]&&(m[b]=!0)}}for(var U in m)v+=[` @font-face {
`," font-family: '",U,`';
`," src: url('",j[U],`');
`,` }
`].join("");return v&&(v=[' <style type="text/css">',`<![CDATA[
`,v,"]]>",`</style>
`].join("")),v},_setSVGObjects:function(v,m){var y,b,_,S=this._objects;for(b=0,_=S.length;b<_;b++)y=S[b],!y.excludeFromExport&&this._setSVGObject(v,y,m)},_setSVGObject:function(v,m,y){v.push(m.toSVG(y))},_setSVGBgOverlayImage:function(v,m,y){this[m]&&!this[m].excludeFromExport&&this[m].toSVG&&v.push(this[m].toSVG(y))},_setSVGBgOverlayColor:function(v,m){var y=this[m+"Color"],b=this.viewportTransform,_=this.width,S=this.height;if(!!y)if(y.toLive){var C=y.repeat,T=t.util.invertTransform(b),E=this[m+"Vpt"],O=E?t.util.matrixToSVG(T):"";v.push('<rect transform="'+O+" translate(",_/2,",",S/2,')"',' x="',y.offsetX-_/2,'" y="',y.offsetY-S/2,'" ','width="',C==="repeat-y"||C==="no-repeat"?y.source.width:_,'" height="',C==="repeat-x"||C==="no-repeat"?y.source.height:S,'" fill="url(#SVGID_'+y.id+')"',`></rect>
`)}else v.push('<rect x="0" y="0" width="100%" height="100%" ','fill="',y,'"',`></rect>
`)},sendToBack:function(v){if(!v)return this;var m=this._activeObject,y,b,_;if(v===m&&v.type==="activeSelection")for(_=m._objects,y=_.length;y--;)b=_[y],c(this._objects,b),this._objects.unshift(b);else c(this._objects,v),this._objects.unshift(v);return this.renderOnAddRemove&&this.requestRenderAll(),this},bringToFront:function(v){if(!v)return this;var m=this._activeObject,y,b,_;if(v===m&&v.type==="activeSelection")for(_=m._objects,y=0;y<_.length;y++)b=_[y],c(this._objects,b),this._objects.push(b);else c(this._objects,v),this._objects.push(v);return this.renderOnAddRemove&&this.requestRenderAll(),this},sendBackwards:function(v,m){if(!v)return this;var y=this._activeObject,b,_,S,C,T,E=0;if(v===y&&v.type==="activeSelection")for(T=y._objects,b=0;b<T.length;b++)_=T[b],S=this._objects.indexOf(_),S>0+E&&(C=S-1,c(this._objects,_),this._objects.splice(C,0,_)),E++;else S=this._objects.indexOf(v),S!==0&&(C=this._findNewLowerIndex(v,S,m),c(this._objects,v),this._objects.splice(C,0,v));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewLowerIndex:function(v,m,y){var b,_;if(y)for(b=m,_=m-1;_>=0;--_){var S=v.intersectsWithObject(this._objects[_])||v.isContainedWithinObject(this._objects[_])||this._objects[_].isContainedWithinObject(v);if(S){b=_;break}}else b=m-1;return b},bringForward:function(v,m){if(!v)return this;var y=this._activeObject,b,_,S,C,T,E=0;if(v===y&&v.type==="activeSelection")for(T=y._objects,b=T.length;b--;)_=T[b],S=this._objects.indexOf(_),S<this._objects.length-1-E&&(C=S+1,c(this._objects,_),this._objects.splice(C,0,_)),E++;else S=this._objects.indexOf(v),S!==this._objects.length-1&&(C=this._findNewUpperIndex(v,S,m),c(this._objects,v),this._objects.splice(C,0,v));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewUpperIndex:function(v,m,y){var b,_,S;if(y)for(b=m,_=m+1,S=this._objects.length;_<S;++_){var C=v.intersectsWithObject(this._objects[_])||v.isContainedWithinObject(this._objects[_])||this._objects[_].isContainedWithinObject(v);if(C){b=_;break}}else b=m+1;return b},moveTo:function(v,m){return c(this._objects,v),this._objects.splice(m,0,v),this.renderOnAddRemove&&this.requestRenderAll()},dispose:function(){return this.isRendering&&(t.util.cancelAnimFrame(this.isRendering),this.isRendering=0),this.forEachObject(function(v){v.dispose&&v.dispose()}),this._objects=[],this.backgroundImage&&this.backgroundImage.dispose&&this.backgroundImage.dispose(),this.backgroundImage=null,this.overlayImage&&this.overlayImage.dispose&&this.overlayImage.dispose(),this.overlayImage=null,this._iTextInstances=null,this.contextContainer=null,this.lowerCanvasEl.classList.remove("lower-canvas"),t.util.setStyle(this.lowerCanvasEl,this._originalCanvasStyle),delete this._originalCanvasStyle,this.lowerCanvasEl.setAttribute("width",this.width),this.lowerCanvasEl.setAttribute("height",this.height),t.util.cleanUpJsdomNode(this.lowerCanvasEl),this.lowerCanvasEl=void 0,this},toString:function(){return"#<fabric.Canvas ("+this.complexity()+"): { objects: "+this._objects.length+" }>"}}),o(t.StaticCanvas.prototype,t.Observable),o(t.StaticCanvas.prototype,t.Collection),o(t.StaticCanvas.prototype,t.DataURLExporter),o(t.StaticCanvas,{EMPTY_JSON:'{"objects": [], "background": "white"}',supports:function(v){var m=d();if(!m||!m.getContext)return null;var y=m.getContext("2d");if(!y)return null;switch(v){case"setLineDash":return typeof y.setLineDash<"u";default:return null}}}),t.StaticCanvas.prototype.toJSON=t.StaticCanvas.prototype.toObject,t.isLikelyNode&&(t.StaticCanvas.prototype.createPNGStream=function(){var v=s(this.lowerCanvasEl);return v&&v.createPNGStream()},t.StaticCanvas.prototype.createJPEGStream=function(v){var m=s(this.lowerCanvasEl);return m&&m.createJPEGStream(v)})}(),t.BaseBrush=t.util.createClass({color:"rgb(0, 0, 0)",width:1,shadow:null,strokeLineCap:"round",strokeLineJoin:"round",strokeMiterLimit:10,strokeDashArray:null,limitedToCanvasSize:!1,_setBrushStyles:function(o){o.strokeStyle=this.color,o.lineWidth=this.width,o.lineCap=this.strokeLineCap,o.miterLimit=this.strokeMiterLimit,o.lineJoin=this.strokeLineJoin,o.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(o){var a=this.canvas.viewportTransform;o.save(),o.transform(a[0],a[1],a[2],a[3],a[4],a[5])},_setShadow:function(){if(!!this.shadow){var o=this.canvas,a=this.shadow,c=o.contextTop,h=o.getZoom();o&&o._isRetinaScaling()&&(h*=t.devicePixelRatio),c.shadowColor=a.color,c.shadowBlur=a.blur*h,c.shadowOffsetX=a.offsetX*h,c.shadowOffsetY=a.offsetY*h}},needsFullRender:function(){var o=new t.Color(this.color);return o.getAlpha()<1||!!this.shadow},_resetShadow:function(){var o=this.canvas.contextTop;o.shadowColor="",o.shadowBlur=o.shadowOffsetX=o.shadowOffsetY=0},_isOutSideCanvas:function(o){return o.x<0||o.x>this.canvas.getWidth()||o.y<0||o.y>this.canvas.getHeight()}}),function(){t.PencilBrush=t.util.createClass(t.BaseBrush,{decimate:.4,drawStraightLine:!1,straightLineKey:"shiftKey",initialize:function(o){this.canvas=o,this._points=[]},needsFullRender:function(){return this.callSuper("needsFullRender")||this._hasStraightLine},_drawSegment:function(o,a,c){var h=a.midPointFrom(c);return o.quadraticCurveTo(a.x,a.y,h.x,h.y),h},onMouseDown:function(o,a){!this.canvas._isMainEvent(a.e)||(this.drawStraightLine=a.e[this.straightLineKey],this._prepareForDrawing(o),this._captureDrawingPath(o),this._render())},onMouseMove:function(o,a){if(!!this.canvas._isMainEvent(a.e)&&(this.drawStraightLine=a.e[this.straightLineKey],!(this.limitedToCanvasSize===!0&&this._isOutSideCanvas(o))&&this._captureDrawingPath(o)&&this._points.length>1))if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{var c=this._points,h=c.length,l=this.canvas.contextTop;this._saveAndTransform(l),this.oldEnd&&(l.beginPath(),l.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(l,c[h-2],c[h-1],!0),l.stroke(),l.restore()}},onMouseUp:function(o){return this.canvas._isMainEvent(o.e)?(this.drawStraightLine=!1,this.oldEnd=void 0,this._finalizeAndAddPath(),!1):!0},_prepareForDrawing:function(o){var a=new t.Point(o.x,o.y);this._reset(),this._addPoint(a),this.canvas.contextTop.moveTo(a.x,a.y)},_addPoint:function(o){return this._points.length>1&&o.eq(this._points[this._points.length-1])?!1:(this.drawStraightLine&&this._points.length>1&&(this._hasStraightLine=!0,this._points.pop()),this._points.push(o),!0)},_reset:function(){this._points=[],this._setBrushStyles(this.canvas.contextTop),this._setShadow(),this._hasStraightLine=!1},_captureDrawingPath:function(o){var a=new t.Point(o.x,o.y);return this._addPoint(a)},_render:function(o){var a,c,h=this._points[0],l=this._points[1];if(o=o||this.canvas.contextTop,this._saveAndTransform(o),o.beginPath(),this._points.length===2&&h.x===l.x&&h.y===l.y){var f=this.width/1e3;h=new t.Point(h.x,h.y),l=new t.Point(l.x,l.y),h.x-=f,l.x+=f}for(o.moveTo(h.x,h.y),a=1,c=this._points.length;a<c;a++)this._drawSegment(o,h,l),h=this._points[a],l=this._points[a+1];o.lineTo(h.x,h.y),o.stroke(),o.restore()},convertPointsToSVGPath:function(o){var a=this.width/1e3;return t.util.getSmoothPathFromPoints(o,a)},_isEmptySVGPath:function(o){var a=t.util.joinPath(o);return a==="M 0 0 Q 0 0 0 0 L 0 0"},createPath:function(o){var a=new t.Path(o,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray});return this.shadow&&(this.shadow.affectStroke=!0,a.shadow=new t.Shadow(this.shadow)),a},decimatePoints:function(o,a){if(o.length<=2)return o;var c=this.canvas.getZoom(),h=Math.pow(a/c,2),l,f=o.length-1,s=o[0],d=[s],g;for(l=1;l<f-1;l++)g=Math.pow(s.x-o[l].x,2)+Math.pow(s.y-o[l].y,2),g>=h&&(s=o[l],d.push(s));return d.push(o[f]),d},_finalizeAndAddPath:function(){var o=this.canvas.contextTop;o.closePath(),this.decimate&&(this._points=this.decimatePoints(this._points,this.decimate));var a=this.convertPointsToSVGPath(this._points);if(this._isEmptySVGPath(a)){this.canvas.requestRenderAll();return}var c=this.createPath(a);this.canvas.clearContext(this.canvas.contextTop),this.canvas.fire("before:path:created",{path:c}),this.canvas.add(c),this.canvas.requestRenderAll(),c.setCoords(),this._resetShadow(),this.canvas.fire("path:created",{path:c})}})}(),t.CircleBrush=t.util.createClass(t.BaseBrush,{width:10,initialize:function(o){this.canvas=o,this.points=[]},drawDot:function(o){var a=this.addPoint(o),c=this.canvas.contextTop;this._saveAndTransform(c),this.dot(c,a),c.restore()},dot:function(o,a){o.fillStyle=a.fill,o.beginPath(),o.arc(a.x,a.y,a.radius,0,Math.PI*2,!1),o.closePath(),o.fill()},onMouseDown:function(o){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(o)},_render:function(){var o=this.canvas.contextTop,a,c,h=this.points;for(this._saveAndTransform(o),a=0,c=h.length;a<c;a++)this.dot(o,h[a]);o.restore()},onMouseMove:function(o){this.limitedToCanvasSize===!0&&this._isOutSideCanvas(o)||(this.needsFullRender()?(this.canvas.clearContext(this.canvas.contextTop),this.addPoint(o),this._render()):this.drawDot(o))},onMouseUp:function(){var o=this.canvas.renderOnAddRemove,a,c;this.canvas.renderOnAddRemove=!1;var h=[];for(a=0,c=this.points.length;a<c;a++){var l=this.points[a],f=new t.Circle({radius:l.radius,left:l.x,top:l.y,originX:"center",originY:"center",fill:l.fill});this.shadow&&(f.shadow=new t.Shadow(this.shadow)),h.push(f)}var s=new t.Group(h);s.canvas=this.canvas,this.canvas.fire("before:path:created",{path:s}),this.canvas.add(s),this.canvas.fire("path:created",{path:s}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=o,this.canvas.requestRenderAll()},addPoint:function(o){var a=new t.Point(o.x,o.y),c=t.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,h=new t.Color(this.color).setAlpha(t.util.getRandomInt(0,100)/100).toRgba();return a.radius=c,a.fill=h,this.points.push(a),a}}),t.SprayBrush=t.util.createClass(t.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(o){this.canvas=o,this.sprayChunks=[]},onMouseDown:function(o){this.sprayChunks.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.addSprayChunk(o),this.render(this.sprayChunkPoints)},onMouseMove:function(o){this.limitedToCanvasSize===!0&&this._isOutSideCanvas(o)||(this.addSprayChunk(o),this.render(this.sprayChunkPoints))},onMouseUp:function(){var o=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;for(var a=[],c=0,h=this.sprayChunks.length;c<h;c++)for(var l=this.sprayChunks[c],f=0,s=l.length;f<s;f++){var d=new t.Rect({width:l[f].width,height:l[f].width,left:l[f].x+1,top:l[f].y+1,originX:"center",originY:"center",fill:this.color});a.push(d)}this.optimizeOverlapping&&(a=this._getOptimizedRects(a));var g=new t.Group(a);this.shadow&&g.set("shadow",new t.Shadow(this.shadow)),this.canvas.fire("before:path:created",{path:g}),this.canvas.add(g),this.canvas.fire("path:created",{path:g}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=o,this.canvas.requestRenderAll()},_getOptimizedRects:function(o){var a={},c,h,l;for(h=0,l=o.length;h<l;h++)c=o[h].left+""+o[h].top,a[c]||(a[c]=o[h]);var f=[];for(c in a)f.push(a[c]);return f},render:function(o){var a=this.canvas.contextTop,c,h;for(a.fillStyle=this.color,this._saveAndTransform(a),c=0,h=o.length;c<h;c++){var l=o[c];typeof l.opacity<"u"&&(a.globalAlpha=l.opacity),a.fillRect(l.x,l.y,l.width,l.width)}a.restore()},_render:function(){var o=this.canvas.contextTop,a,c;for(o.fillStyle=this.color,this._saveAndTransform(o),a=0,c=this.sprayChunks.length;a<c;a++)this.render(this.sprayChunks[a]);o.restore()},addSprayChunk:function(o){this.sprayChunkPoints=[];var a,c,h,l=this.width/2,f;for(f=0;f<this.density;f++){a=t.util.getRandomInt(o.x-l,o.x+l),c=t.util.getRandomInt(o.y-l,o.y+l),this.dotWidthVariance?h=t.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):h=this.dotWidth;var s=new t.Point(a,c);s.width=h,this.randomOpacity&&(s.opacity=t.util.getRandomInt(0,100)/100),this.sprayChunkPoints.push(s)}this.sprayChunks.push(this.sprayChunkPoints)}}),t.PatternBrush=t.util.createClass(t.PencilBrush,{getPatternSrc:function(){var o=20,a=5,c=t.util.createCanvasElement(),h=c.getContext("2d");return c.width=c.height=o+a,h.fillStyle=this.color,h.beginPath(),h.arc(o/2,o/2,o/2,0,Math.PI*2,!1),h.closePath(),h.fill(),c},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace("this.color",'"'+this.color+'"')},getPattern:function(o){return o.createPattern(this.source||this.getPatternSrc(),"repeat")},_setBrushStyles:function(o){this.callSuper("_setBrushStyles",o),o.strokeStyle=this.getPattern(o)},createPath:function(o){var a=this.callSuper("createPath",o),c=a._getLeftTopCoords().scalarAdd(a.strokeWidth/2);return a.stroke=new t.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-c.x,offsetY:-c.y}),a}}),function(){var o=t.util.getPointer,a=t.util.degreesToRadians,c=t.util.isTouchEvent;t.Canvas=t.util.createClass(t.StaticCanvas,{initialize:function(l,f){f||(f={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(l,f),this._initInteractive(),this._createCacheCanvas()},uniformScaling:!0,uniScaleKey:"shiftKey",centeredScaling:!1,centeredRotation:!1,centeredKey:"altKey",altActionKey:"shiftKey",interactive:!0,selection:!0,selectionKey:"shiftKey",altSelectionKey:null,selectionColor:"rgba(100, 100, 255, 0.3)",selectionDashArray:[],selectionBorderColor:"rgba(255, 255, 255, 0.3)",selectionLineWidth:1,selectionFullyContained:!1,hoverCursor:"move",moveCursor:"move",defaultCursor:"default",freeDrawingCursor:"crosshair",notAllowedCursor:"not-allowed",containerClass:"canvas-container",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,isDrawingMode:!1,preserveObjectStacking:!1,snapAngle:0,snapThreshold:null,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,targets:[],enablePointerEvents:!1,_hoveredTarget:null,_hoveredTargets:[],_initInteractive:function(){this._currentTransform=null,this._groupSelector=null,this._initWrapperElement(),this._createUpperCanvas(),this._initEventListeners(),this._initRetinaScaling(),this.freeDrawingBrush=t.PencilBrush&&new t.PencilBrush(this),this.calcOffset()},_chooseObjectsToRender:function(){var l=this.getActiveObjects(),f,s,d;if(l.length>0&&!this.preserveObjectStacking){s=[],d=[];for(var g=0,v=this._objects.length;g<v;g++)f=this._objects[g],l.indexOf(f)===-1?s.push(f):d.push(f);l.length>1&&(this._activeObject._objects=d),s.push.apply(s,d)}else s=this._objects;return s},renderAll:function(){this.contextTopDirty&&!this._groupSelector&&!this.isDrawingMode&&(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext&&(this.renderTopLayer(this.contextTop),this.hasLostContext=!1);var l=this.contextContainer;return this.renderCanvas(l,this._chooseObjectsToRender()),this},renderTopLayer:function(l){l.save(),this.isDrawingMode&&this._isCurrentlyDrawing&&(this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection&&this._groupSelector&&(this._drawSelection(l),this.contextTopDirty=!0),l.restore()},renderTop:function(){var l=this.contextTop;return this.clearContext(l),this.renderTopLayer(l),this.fire("after:render"),this},_normalizePointer:function(l,f){var s=l.calcTransformMatrix(),d=t.util.invertTransform(s),g=this.restorePointerVpt(f);return t.util.transformPoint(g,d)},isTargetTransparent:function(l,f,s){if(l.shouldCache()&&l._cacheCanvas&&l!==this._activeObject){var d=this._normalizePointer(l,{x:f,y:s}),g=Math.max(l.cacheTranslationX+d.x*l.zoomX,0),v=Math.max(l.cacheTranslationY+d.y*l.zoomY,0),_=t.util.isTransparent(l._cacheContext,Math.round(g),Math.round(v),this.targetFindTolerance);return _}var m=this.contextCache,y=l.selectionBackgroundColor,b=this.viewportTransform;l.selectionBackgroundColor="",this.clearContext(m),m.save(),m.transform(b[0],b[1],b[2],b[3],b[4],b[5]),l.render(m),m.restore(),l.selectionBackgroundColor=y;var _=t.util.isTransparent(m,f,s,this.targetFindTolerance);return _},_isSelectionKeyPressed:function(l){var f=!1;return Array.isArray(this.selectionKey)?f=!!this.selectionKey.find(function(s){return l[s]===!0}):f=l[this.selectionKey],f},_shouldClearSelection:function(l,f){var s=this.getActiveObjects(),d=this._activeObject;return!f||f&&d&&s.length>1&&s.indexOf(f)===-1&&d!==f&&!this._isSelectionKeyPressed(l)||f&&!f.evented||f&&!f.selectable&&d&&d!==f},_shouldCenterTransform:function(l,f,s){if(!!l){var d;return f==="scale"||f==="scaleX"||f==="scaleY"||f==="resizing"?d=this.centeredScaling||l.centeredScaling:f==="rotate"&&(d=this.centeredRotation||l.centeredRotation),d?!s:s}},_getOriginFromCorner:function(l,f){var s={x:l.originX,y:l.originY};return f==="ml"||f==="tl"||f==="bl"?s.x="right":(f==="mr"||f==="tr"||f==="br")&&(s.x="left"),f==="tl"||f==="mt"||f==="tr"?s.y="bottom":(f==="bl"||f==="mb"||f==="br")&&(s.y="top"),s},_getActionFromCorner:function(l,f,s,d){if(!f||!l)return"drag";var g=d.controls[f];return g.getActionName(s,g,d)},_setupCurrentTransform:function(l,f,s){if(!!f){var d=this.getPointer(l),g=f.__corner,v=f.controls[g],m=s&&g?v.getActionHandler(l,f,v):t.controlsUtils.dragHandler,y=this._getActionFromCorner(s,g,l,f),b=this._getOriginFromCorner(f,g),_=l[this.centeredKey],S={target:f,action:y,actionHandler:m,corner:g,scaleX:f.scaleX,scaleY:f.scaleY,skewX:f.skewX,skewY:f.skewY,offsetX:d.x-f.left,offsetY:d.y-f.top,originX:b.x,originY:b.y,ex:d.x,ey:d.y,lastX:d.x,lastY:d.y,theta:a(f.angle),width:f.width*f.scaleX,shiftKey:l.shiftKey,altKey:_,original:t.util.saveObjectTransform(f)};this._shouldCenterTransform(f,y,_)&&(S.originX="center",S.originY="center"),S.original.originX=b.x,S.original.originY=b.y,this._currentTransform=S,this._beforeTransform(l)}},setCursor:function(l){this.upperCanvasEl.style.cursor=l},_drawSelection:function(l){var f=this._groupSelector,s=new t.Point(f.ex,f.ey),d=t.util.transformPoint(s,this.viewportTransform),g=new t.Point(f.ex+f.left,f.ey+f.top),v=t.util.transformPoint(g,this.viewportTransform),m=Math.min(d.x,v.x),y=Math.min(d.y,v.y),b=Math.max(d.x,v.x),_=Math.max(d.y,v.y),S=this.selectionLineWidth/2;this.selectionColor&&(l.fillStyle=this.selectionColor,l.fillRect(m,y,b-m,_-y)),!(!this.selectionLineWidth||!this.selectionBorderColor)&&(l.lineWidth=this.selectionLineWidth,l.strokeStyle=this.selectionBorderColor,m+=S,y+=S,b-=S,_-=S,t.Object.prototype._setLineDash.call(this,l,this.selectionDashArray),l.strokeRect(m,y,b-m,_-y))},findTarget:function(l,f){if(!this.skipTargetFind){var s=!0,d=this.getPointer(l,s),g=this._activeObject,v=this.getActiveObjects(),m,y,b=c(l),_=v.length>1&&!f||v.length===1;if(this.targets=[],_&&g._findTargetCorner(d,b)||v.length>1&&!f&&g===this._searchPossibleTargets([g],d))return g;if(v.length===1&&g===this._searchPossibleTargets([g],d))if(this.preserveObjectStacking)m=g,y=this.targets,this.targets=[];else return g;var S=this._searchPossibleTargets(this._objects,d);return l[this.altSelectionKey]&&S&&m&&S!==m&&(S=m,this.targets=y),S}},_checkTarget:function(l,f,s){if(f&&f.visible&&f.evented&&f.containsPoint(l))if((this.perPixelTargetFind||f.perPixelTargetFind)&&!f.isEditing){var d=this.isTargetTransparent(f,s.x,s.y);if(!d)return!0}else return!0},_searchPossibleTargets:function(l,f){for(var s,d=l.length,g;d--;){var v=l[d],m=v.group?this._normalizePointer(v.group,f):f;if(this._checkTarget(m,v,f)){s=l[d],s.subTargetCheck&&s instanceof t.Group&&(g=this._searchPossibleTargets(s._objects,f),g&&this.targets.push(g));break}}return s},restorePointerVpt:function(l){return t.util.transformPoint(l,t.util.invertTransform(this.viewportTransform))},getPointer:function(l,f){if(this._absolutePointer&&!f)return this._absolutePointer;if(this._pointer&&f)return this._pointer;var s=o(l),d=this.upperCanvasEl,g=d.getBoundingClientRect(),v=g.width||0,m=g.height||0,y;(!v||!m)&&("top"in g&&"bottom"in g&&(m=Math.abs(g.top-g.bottom)),"right"in g&&"left"in g&&(v=Math.abs(g.right-g.left))),this.calcOffset(),s.x=s.x-this._offset.left,s.y=s.y-this._offset.top,f||(s=this.restorePointerVpt(s));var b=this.getRetinaScaling();return b!==1&&(s.x/=b,s.y/=b),v===0||m===0?y={width:1,height:1}:y={width:d.width/v,height:d.height/m},{x:s.x*y.width,y:s.y*y.height}},_createUpperCanvas:function(){var l=this.lowerCanvasEl.className.replace(/\s*lower-canvas\s*/,""),f=this.lowerCanvasEl,s=this.upperCanvasEl;s?s.className="":(s=this._createCanvasElement(),this.upperCanvasEl=s),t.util.addClass(s,"upper-canvas "+l),this.wrapperEl.appendChild(s),this._copyCanvasStyle(f,s),this._applyCanvasStyle(s),this.contextTop=s.getContext("2d")},getTopContext:function(){return this.contextTop},_createCacheCanvas:function(){this.cacheCanvasEl=this._createCanvasElement(),this.cacheCanvasEl.setAttribute("width",this.width),this.cacheCanvasEl.setAttribute("height",this.height),this.contextCache=this.cacheCanvasEl.getContext("2d")},_initWrapperElement:function(){this.wrapperEl=t.util.wrapElement(this.lowerCanvasEl,"div",{class:this.containerClass}),t.util.setStyle(this.wrapperEl,{width:this.width+"px",height:this.height+"px",position:"relative"}),t.util.makeElementUnselectable(this.wrapperEl)},_applyCanvasStyle:function(l){var f=this.width||l.width,s=this.height||l.height;t.util.setStyle(l,{position:"absolute",width:f+"px",height:s+"px",left:0,top:0,"touch-action":this.allowTouchScrolling?"manipulation":"none","-ms-touch-action":this.allowTouchScrolling?"manipulation":"none"}),l.width=f,l.height=s,t.util.makeElementUnselectable(l)},_copyCanvasStyle:function(l,f){f.style.cssText=l.style.cssText},getSelectionContext:function(){return this.contextTop},getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var l=this._activeObject;return l?l.type==="activeSelection"&&l._objects?l._objects.slice(0):[l]:[]},_onObjectRemoved:function(l){l===this._activeObject&&(this.fire("before:selection:cleared",{target:l}),this._discardActiveObject(),this.fire("selection:cleared",{target:l}),l.fire("deselected")),l===this._hoveredTarget&&(this._hoveredTarget=null,this._hoveredTargets=[]),this.callSuper("_onObjectRemoved",l)},_fireSelectionEvents:function(l,f){var s=!1,d=this.getActiveObjects(),g=[],v=[];l.forEach(function(m){d.indexOf(m)===-1&&(s=!0,m.fire("deselected",{e:f,target:m}),v.push(m))}),d.forEach(function(m){l.indexOf(m)===-1&&(s=!0,m.fire("selected",{e:f,target:m}),g.push(m))}),l.length>0&&d.length>0?s&&this.fire("selection:updated",{e:f,selected:g,deselected:v}):d.length>0?this.fire("selection:created",{e:f,selected:g}):l.length>0&&this.fire("selection:cleared",{e:f,deselected:v})},setActiveObject:function(l,f){var s=this.getActiveObjects();return this._setActiveObject(l,f),this._fireSelectionEvents(s,f),this},_setActiveObject:function(l,f){return this._activeObject===l||!this._discardActiveObject(f,l)||l.onSelect({e:f})?!1:(this._activeObject=l,!0)},_discardActiveObject:function(l,f){var s=this._activeObject;if(s){if(s.onDeselect({e:l,object:f}))return!1;this._activeObject=null}return!0},discardActiveObject:function(l){var f=this.getActiveObjects(),s=this.getActiveObject();return f.length&&this.fire("before:selection:cleared",{target:s,e:l}),this._discardActiveObject(l),this._fireSelectionEvents(f,l),this},dispose:function(){var l=this.wrapperEl;return this.removeListeners(),l.removeChild(this.upperCanvasEl),l.removeChild(this.lowerCanvasEl),this.contextCache=null,this.contextTop=null,["upperCanvasEl","cacheCanvasEl"].forEach(function(f){t.util.cleanUpJsdomNode(this[f]),this[f]=void 0}.bind(this)),l.parentNode&&l.parentNode.replaceChild(this.lowerCanvasEl,this.wrapperEl),delete this.wrapperEl,t.StaticCanvas.prototype.dispose.call(this),this},clear:function(){return this.discardActiveObject(),this.clearContext(this.contextTop),this.callSuper("clear")},drawControls:function(l){var f=this._activeObject;f&&f._renderControls(l)},_toObject:function(l,f,s){var d=this._realizeGroupTransformOnObject(l),g=this.callSuper("_toObject",l,f,s);return this._unwindGroupTransformOnObject(l,d),g},_realizeGroupTransformOnObject:function(l){if(l.group&&l.group.type==="activeSelection"&&this._activeObject===l.group){var f=["angle","flipX","flipY","left","scaleX","scaleY","skewX","skewY","top"],s={};return f.forEach(function(d){s[d]=l[d]}),t.util.addTransformToObject(l,this._activeObject.calcOwnMatrix()),s}else return null},_unwindGroupTransformOnObject:function(l,f){f&&l.set(f)},_setSVGObject:function(l,f,s){var d=this._realizeGroupTransformOnObject(f);this.callSuper("_setSVGObject",l,f,s),this._unwindGroupTransformOnObject(f,d)},setViewportTransform:function(l){this.renderOnAddRemove&&this._activeObject&&this._activeObject.isEditing&&this._activeObject.clearContextTop(),t.StaticCanvas.prototype.setViewportTransform.call(this,l)}});for(var h in t.StaticCanvas)h!=="prototype"&&(t.Canvas[h]=t.StaticCanvas[h])}(),function(){var o=t.util.addListener,a=t.util.removeListener,c=3,h=2,l=1,f={passive:!1};function s(d,g){return d.button&&d.button===g-1}t.util.object.extend(t.Canvas.prototype,{mainTouchId:null,_initEventListeners:function(){this.removeListeners(),this._bindEvents(),this.addOrRemove(o,"add")},_getEventPrefix:function(){return this.enablePointerEvents?"pointer":"mouse"},addOrRemove:function(d,g){var v=this.upperCanvasEl,m=this._getEventPrefix();d(t.window,"resize",this._onResize),d(v,m+"down",this._onMouseDown),d(v,m+"move",this._onMouseMove,f),d(v,m+"out",this._onMouseOut),d(v,m+"enter",this._onMouseEnter),d(v,"wheel",this._onMouseWheel),d(v,"contextmenu",this._onContextMenu),d(v,"dblclick",this._onDoubleClick),d(v,"dragover",this._onDragOver),d(v,"dragenter",this._onDragEnter),d(v,"dragleave",this._onDragLeave),d(v,"drop",this._onDrop),this.enablePointerEvents||d(v,"touchstart",this._onTouchStart,f),typeof eventjs<"u"&&g in eventjs&&(eventjs[g](v,"gesture",this._onGesture),eventjs[g](v,"drag",this._onDrag),eventjs[g](v,"orientation",this._onOrientationChange),eventjs[g](v,"shake",this._onShake),eventjs[g](v,"longpress",this._onLongPress))},removeListeners:function(){this.addOrRemove(a,"remove");var d=this._getEventPrefix();a(t.document,d+"up",this._onMouseUp),a(t.document,"touchend",this._onTouchEnd,f),a(t.document,d+"move",this._onMouseMove,f),a(t.document,"touchmove",this._onMouseMove,f)},_bindEvents:function(){this.eventsBound||(this._onMouseDown=this._onMouseDown.bind(this),this._onTouchStart=this._onTouchStart.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onResize=this._onResize.bind(this),this._onGesture=this._onGesture.bind(this),this._onDrag=this._onDrag.bind(this),this._onShake=this._onShake.bind(this),this._onLongPress=this._onLongPress.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._onMouseWheel=this._onMouseWheel.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseEnter=this._onMouseEnter.bind(this),this._onContextMenu=this._onContextMenu.bind(this),this._onDoubleClick=this._onDoubleClick.bind(this),this._onDragOver=this._onDragOver.bind(this),this._onDragEnter=this._simpleEventHandler.bind(this,"dragenter"),this._onDragLeave=this._simpleEventHandler.bind(this,"dragleave"),this._onDrop=this._onDrop.bind(this),this.eventsBound=!0)},_onGesture:function(d,g){this.__onTransformGesture&&this.__onTransformGesture(d,g)},_onDrag:function(d,g){this.__onDrag&&this.__onDrag(d,g)},_onMouseWheel:function(d){this.__onMouseWheel(d)},_onMouseOut:function(d){var g=this._hoveredTarget;this.fire("mouse:out",{target:g,e:d}),this._hoveredTarget=null,g&&g.fire("mouseout",{e:d});var v=this;this._hoveredTargets.forEach(function(m){v.fire("mouse:out",{target:m,e:d}),m&&m.fire("mouseout",{e:d})}),this._hoveredTargets=[]},_onMouseEnter:function(d){!this._currentTransform&&!this.findTarget(d)&&(this.fire("mouse:over",{target:null,e:d}),this._hoveredTarget=null,this._hoveredTargets=[])},_onOrientationChange:function(d,g){this.__onOrientationChange&&this.__onOrientationChange(d,g)},_onShake:function(d,g){this.__onShake&&this.__onShake(d,g)},_onLongPress:function(d,g){this.__onLongPress&&this.__onLongPress(d,g)},_onDragOver:function(d){d.preventDefault();var g=this._simpleEventHandler("dragover",d);this._fireEnterLeaveEvents(g,d)},_onDrop:function(d){return this._simpleEventHandler("drop:before",d),this._simpleEventHandler("drop",d)},_onContextMenu:function(d){return this.stopContextMenu&&(d.stopPropagation(),d.preventDefault()),!1},_onDoubleClick:function(d){this._cacheTransformEventData(d),this._handleEvent(d,"dblclick"),this._resetTransformEventData(d)},getPointerId:function(d){var g=d.changedTouches;return g?g[0]&&g[0].identifier:this.enablePointerEvents?d.pointerId:-1},_isMainEvent:function(d){return d.isPrimary===!0?!0:d.isPrimary===!1?!1:d.type==="touchend"&&d.touches.length===0?!0:d.changedTouches?d.changedTouches[0].identifier===this.mainTouchId:!0},_onTouchStart:function(d){d.preventDefault(),this.mainTouchId===null&&(this.mainTouchId=this.getPointerId(d)),this.__onMouseDown(d),this._resetTransformEventData();var g=this.upperCanvasEl,v=this._getEventPrefix();o(t.document,"touchend",this._onTouchEnd,f),o(t.document,"touchmove",this._onMouseMove,f),a(g,v+"down",this._onMouseDown)},_onMouseDown:function(d){this.__onMouseDown(d),this._resetTransformEventData();var g=this.upperCanvasEl,v=this._getEventPrefix();a(g,v+"move",this._onMouseMove,f),o(t.document,v+"up",this._onMouseUp),o(t.document,v+"move",this._onMouseMove,f)},_onTouchEnd:function(d){if(!(d.touches.length>0)){this.__onMouseUp(d),this._resetTransformEventData(),this.mainTouchId=null;var g=this._getEventPrefix();a(t.document,"touchend",this._onTouchEnd,f),a(t.document,"touchmove",this._onMouseMove,f);var v=this;this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout(function(){o(v.upperCanvasEl,g+"down",v._onMouseDown),v._willAddMouseDown=0},400)}},_onMouseUp:function(d){this.__onMouseUp(d),this._resetTransformEventData();var g=this.upperCanvasEl,v=this._getEventPrefix();this._isMainEvent(d)&&(a(t.document,v+"up",this._onMouseUp),a(t.document,v+"move",this._onMouseMove,f),o(g,v+"move",this._onMouseMove,f))},_onMouseMove:function(d){!this.allowTouchScrolling&&d.preventDefault&&d.preventDefault(),this.__onMouseMove(d)},_onResize:function(){this.calcOffset()},_shouldRender:function(d){var g=this._activeObject;return!!g!=!!d||g&&d&&g!==d?!0:(g&&g.isEditing,!1)},__onMouseUp:function(d){var g,v=this._currentTransform,m=this._groupSelector,y=!1,b=!m||m.left===0&&m.top===0;if(this._cacheTransformEventData(d),g=this._target,this._handleEvent(d,"up:before"),s(d,c)){this.fireRightClick&&this._handleEvent(d,"up",c,b);return}if(s(d,h)){this.fireMiddleClick&&this._handleEvent(d,"up",h,b),this._resetTransformEventData();return}if(this.isDrawingMode&&this._isCurrentlyDrawing){this._onMouseUpInDrawingMode(d);return}if(!!this._isMainEvent(d)){if(v&&(this._finalizeCurrentTransform(d),y=v.actionPerformed),!b){var _=g===this._activeObject;this._maybeGroupObjects(d),y||(y=this._shouldRender(g)||!_&&g===this._activeObject)}var S,C;if(g){if(S=g._findTargetCorner(this.getPointer(d,!0),t.util.isTouchEvent(d)),g.selectable&&g!==this._activeObject&&g.activeOn==="up")this.setActiveObject(g,d),y=!0;else{var T=g.controls[S],E=T&&T.getMouseUpHandler(d,g,T);E&&(C=this.getPointer(d),E(d,v,C.x,C.y))}g.isMoving=!1}if(v&&(v.target!==g||v.corner!==S)){var O=v.target&&v.target.controls[v.corner],D=O&&O.getMouseUpHandler(d,g,T);C=C||this.getPointer(d),D&&D(d,v,C.x,C.y)}this._setCursorFromEvent(d,g),this._handleEvent(d,"up",l,b),this._groupSelector=null,this._currentTransform=null,g&&(g.__corner=0),y?this.requestRenderAll():b||this.renderTop()}},_simpleEventHandler:function(d,g){var v=this.findTarget(g),m=this.targets,y={e:g,target:v,subTargets:m};if(this.fire(d,y),v&&v.fire(d,y),!m)return v;for(var b=0;b<m.length;b++)m[b].fire(d,y);return v},_handleEvent:function(d,g,v,m){var y=this._target,b=this.targets||[],_={e:d,target:y,subTargets:b,button:v||l,isClick:m||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};g==="up"&&(_.currentTarget=this.findTarget(d),_.currentSubTargets=this.targets),this.fire("mouse:"+g,_),y&&y.fire("mouse"+g,_);for(var S=0;S<b.length;S++)b[S].fire("mouse"+g,_)},_finalizeCurrentTransform:function(d){var g=this._currentTransform,v=g.target,m={e:d,target:v,transform:g,action:g.action};v._scaling&&(v._scaling=!1),v.setCoords(),(g.actionPerformed||this.stateful&&v.hasStateChanged())&&this._fire("modified",m)},_onMouseDownInDrawingMode:function(d){this._isCurrentlyDrawing=!0,this.getActiveObject()&&this.discardActiveObject(d).requestRenderAll();var g=this.getPointer(d);this.freeDrawingBrush.onMouseDown(g,{e:d,pointer:g}),this._handleEvent(d,"down")},_onMouseMoveInDrawingMode:function(d){if(this._isCurrentlyDrawing){var g=this.getPointer(d);this.freeDrawingBrush.onMouseMove(g,{e:d,pointer:g})}this.setCursor(this.freeDrawingCursor),this._handleEvent(d,"move")},_onMouseUpInDrawingMode:function(d){var g=this.getPointer(d);this._isCurrentlyDrawing=this.freeDrawingBrush.onMouseUp({e:d,pointer:g}),this._handleEvent(d,"up")},__onMouseDown:function(d){this._cacheTransformEventData(d),this._handleEvent(d,"down:before");var g=this._target;if(s(d,c)){this.fireRightClick&&this._handleEvent(d,"down",c);return}if(s(d,h)){this.fireMiddleClick&&this._handleEvent(d,"down",h);return}if(this.isDrawingMode){this._onMouseDownInDrawingMode(d);return}if(!!this._isMainEvent(d)&&!this._currentTransform){var v=this._pointer;this._previousPointer=v;var m=this._shouldRender(g),y=this._shouldGroup(d,g);if(this._shouldClearSelection(d,g)?this.discardActiveObject(d):y&&(this._handleGrouping(d,g),g=this._activeObject),this.selection&&(!g||!g.selectable&&!g.isEditing&&g!==this._activeObject)&&(this._groupSelector={ex:this._absolutePointer.x,ey:this._absolutePointer.y,top:0,left:0}),g){var b=g===this._activeObject;g.selectable&&g.activeOn==="down"&&this.setActiveObject(g,d);var _=g._findTargetCorner(this.getPointer(d,!0),t.util.isTouchEvent(d));if(g.__corner=_,g===this._activeObject&&(_||!y)){this._setupCurrentTransform(d,g,b);var S=g.controls[_],v=this.getPointer(d),C=S&&S.getMouseDownHandler(d,g,S);C&&C(d,this._currentTransform,v.x,v.y)}}this._handleEvent(d,"down"),(m||y)&&this.requestRenderAll()}},_resetTransformEventData:function(){this._target=null,this._pointer=null,this._absolutePointer=null},_cacheTransformEventData:function(d){this._resetTransformEventData(),this._pointer=this.getPointer(d,!0),this._absolutePointer=this.restorePointerVpt(this._pointer),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(d)||null},_beforeTransform:function(d){var g=this._currentTransform;this.stateful&&g.target.saveState(),this.fire("before:transform",{e:d,transform:g})},__onMouseMove:function(d){this._handleEvent(d,"move:before"),this._cacheTransformEventData(d);var g,v;if(this.isDrawingMode){this._onMouseMoveInDrawingMode(d);return}if(!!this._isMainEvent(d)){var m=this._groupSelector;m?(v=this._absolutePointer,m.left=v.x-m.ex,m.top=v.y-m.ey,this.renderTop()):this._currentTransform?this._transformObject(d):(g=this.findTarget(d)||null,this._setCursorFromEvent(d,g),this._fireOverOutEvents(g,d)),this._handleEvent(d,"move"),this._resetTransformEventData()}},_fireOverOutEvents:function(d,g){var v=this._hoveredTarget,m=this._hoveredTargets,y=this.targets,b=Math.max(m.length,y.length);this.fireSyntheticInOutEvents(d,g,{oldTarget:v,evtOut:"mouseout",canvasEvtOut:"mouse:out",evtIn:"mouseover",canvasEvtIn:"mouse:over"});for(var _=0;_<b;_++)this.fireSyntheticInOutEvents(y[_],g,{oldTarget:m[_],evtOut:"mouseout",evtIn:"mouseover"});this._hoveredTarget=d,this._hoveredTargets=this.targets.concat()},_fireEnterLeaveEvents:function(d,g){var v=this._draggedoverTarget,m=this._hoveredTargets,y=this.targets,b=Math.max(m.length,y.length);this.fireSyntheticInOutEvents(d,g,{oldTarget:v,evtOut:"dragleave",evtIn:"dragenter"});for(var _=0;_<b;_++)this.fireSyntheticInOutEvents(y[_],g,{oldTarget:m[_],evtOut:"dragleave",evtIn:"dragenter"});this._draggedoverTarget=d},fireSyntheticInOutEvents:function(d,g,v){var m,y,b=v.oldTarget,_,S,C=b!==d,T=v.canvasEvtIn,E=v.canvasEvtOut;C&&(m={e:g,target:d,previousTarget:b},y={e:g,target:b,nextTarget:d}),S=d&&C,_=b&&C,_&&(E&&this.fire(E,y),b.fire(v.evtOut,y)),S&&(T&&this.fire(T,m),d.fire(v.evtIn,m))},__onMouseWheel:function(d){this._cacheTransformEventData(d),this._handleEvent(d,"wheel"),this._resetTransformEventData()},_transformObject:function(d){var g=this.getPointer(d),v=this._currentTransform;v.reset=!1,v.shiftKey=d.shiftKey,v.altKey=d[this.centeredKey],this._performTransformAction(d,v,g),v.actionPerformed&&this.requestRenderAll()},_performTransformAction:function(d,g,v){var m=v.x,y=v.y,b=g.action,_=!1,S=g.actionHandler;S&&(_=S(d,g,m,y)),b==="drag"&&_&&(g.target.isMoving=!0,this.setCursor(g.target.moveCursor||this.moveCursor)),g.actionPerformed=g.actionPerformed||_},_fire:t.controlsUtils.fireEvent,_setCursorFromEvent:function(d,g){if(!g)return this.setCursor(this.defaultCursor),!1;var v=g.hoverCursor||this.hoverCursor,m=this._activeObject&&this._activeObject.type==="activeSelection"?this._activeObject:null,y=(!m||!m.contains(g))&&g._findTargetCorner(this.getPointer(d,!0));y?this.setCursor(this.getCornerCursor(y,g,d)):(g.subTargetCheck&&this.targets.concat().reverse().map(function(b){v=b.hoverCursor||v}),this.setCursor(v))},getCornerCursor:function(d,g,v){var m=g.controls[d];return m.cursorStyleHandler(v,m,g)}})}(),function(){var o=Math.min,a=Math.max;t.util.object.extend(t.Canvas.prototype,{_shouldGroup:function(c,h){var l=this._activeObject;return l&&this._isSelectionKeyPressed(c)&&h&&h.selectable&&this.selection&&(l!==h||l.type==="activeSelection")&&!h.onSelect({e:c})},_handleGrouping:function(c,h){var l=this._activeObject;l.__corner||h===l&&(h=this.findTarget(c,!0),!h||!h.selectable)||(l&&l.type==="activeSelection"?this._updateActiveSelection(h,c):this._createActiveSelection(h,c))},_updateActiveSelection:function(c,h){var l=this._activeObject,f=l._objects.slice(0);l.contains(c)?(l.removeWithUpdate(c),this._hoveredTarget=c,this._hoveredTargets=this.targets.concat(),l.size()===1&&this._setActiveObject(l.item(0),h)):(l.addWithUpdate(c),this._hoveredTarget=l,this._hoveredTargets=this.targets.concat()),this._fireSelectionEvents(f,h)},_createActiveSelection:function(c,h){var l=this.getActiveObjects(),f=this._createGroup(c);this._hoveredTarget=f,this._setActiveObject(f,h),this._fireSelectionEvents(l,h)},_createGroup:function(c){var h=this._objects,l=h.indexOf(this._activeObject)<h.indexOf(c),f=l?[this._activeObject,c]:[c,this._activeObject];return this._activeObject.isEditing&&this._activeObject.exitEditing(),new t.ActiveSelection(f,{canvas:this})},_groupSelectedObjects:function(c){var h=this._collectObjects(c),l;h.length===1?this.setActiveObject(h[0],c):h.length>1&&(l=new t.ActiveSelection(h.reverse(),{canvas:this}),this.setActiveObject(l,c))},_collectObjects:function(c){for(var h=[],l,f=this._groupSelector.ex,s=this._groupSelector.ey,d=f+this._groupSelector.left,g=s+this._groupSelector.top,v=new t.Point(o(f,d),o(s,g)),m=new t.Point(a(f,d),a(s,g)),y=!this.selectionFullyContained,b=f===d&&s===g,_=this._objects.length;_--&&(l=this._objects[_],!(!(!l||!l.selectable||!l.visible)&&(y&&l.intersectsWithRect(v,m,!0)||l.isContainedWithinRect(v,m,!0)||y&&l.containsPoint(v,null,!0)||y&&l.containsPoint(m,null,!0))&&(h.push(l),b))););return h.length>1&&(h=h.filter(function(S){return!S.onSelect({e:c})})),h},_maybeGroupObjects:function(c){this.selection&&this._groupSelector&&this._groupSelectedObjects(c),this.setCursor(this.defaultCursor),this._groupSelector=null}})}(),function(){t.util.object.extend(t.StaticCanvas.prototype,{toDataURL:function(o){o||(o={});var a=o.format||"png",c=o.quality||1,h=(o.multiplier||1)*(o.enableRetinaScaling?this.getRetinaScaling():1),l=this.toCanvasElement(h,o);return t.util.toDataURL(l,a,c)},toCanvasElement:function(o,a){o=o||1,a=a||{};var c=(a.width||this.width)*o,h=(a.height||this.height)*o,l=this.getZoom(),f=this.width,s=this.height,d=l*o,g=this.viewportTransform,v=(g[4]-(a.left||0))*o,m=(g[5]-(a.top||0))*o,y=this.interactive,b=[d,0,0,d,v,m],_=this.enableRetinaScaling,S=t.util.createCanvasElement(),C=this.contextTop;return S.width=c,S.height=h,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=b,this.width=c,this.height=h,this.calcViewportBoundaries(),this.renderCanvas(S.getContext("2d"),this._objects),this.viewportTransform=g,this.width=f,this.height=s,this.calcViewportBoundaries(),this.interactive=y,this.enableRetinaScaling=_,this.contextTop=C,S}})}(),t.util.object.extend(t.StaticCanvas.prototype,{loadFromJSON:function(o,a,c){if(!!o){var h=typeof o=="string"?JSON.parse(o):t.util.object.clone(o),l=this,f=h.clipPath,s=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete h.clipPath,this._enlivenObjects(h.objects,function(d){l.clear(),l._setBgOverlay(h,function(){f?l._enlivenObjects([f],function(g){l.clipPath=g[0],l.__setupCanvas.call(l,h,d,s,a)}):l.__setupCanvas.call(l,h,d,s,a)})},c),this}},__setupCanvas:function(o,a,c,h){var l=this;a.forEach(function(f,s){l.insertAt(f,s)}),this.renderOnAddRemove=c,delete o.objects,delete o.backgroundImage,delete o.overlayImage,delete o.background,delete o.overlay,this._setOptions(o),this.renderAll(),h&&h()},_setBgOverlay:function(o,a){var c={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(!o.backgroundImage&&!o.overlayImage&&!o.background&&!o.overlay){a&&a();return}var h=function(){c.backgroundImage&&c.overlayImage&&c.backgroundColor&&c.overlayColor&&a&&a()};this.__setBgOverlay("backgroundImage",o.backgroundImage,c,h),this.__setBgOverlay("overlayImage",o.overlayImage,c,h),this.__setBgOverlay("backgroundColor",o.background,c,h),this.__setBgOverlay("overlayColor",o.overlay,c,h)},__setBgOverlay:function(o,a,c,h){var l=this;if(!a){c[o]=!0,h&&h();return}o==="backgroundImage"||o==="overlayImage"?t.util.enlivenObjects([a],function(f){l[o]=f[0],c[o]=!0,h&&h()}):this["set"+t.util.string.capitalize(o,!0)](a,function(){c[o]=!0,h&&h()})},_enlivenObjects:function(o,a,c){if(!o||o.length===0){a&&a([]);return}t.util.enlivenObjects(o,function(h){a&&a(h)},null,c)},_toDataURL:function(o,a){this.clone(function(c){a(c.toDataURL(o))})},_toDataURLWithMultiplier:function(o,a,c){this.clone(function(h){c(h.toDataURLWithMultiplier(o,a))})},clone:function(o,a){var c=JSON.stringify(this.toJSON(a));this.cloneWithoutData(function(h){h.loadFromJSON(c,function(){o&&o(h)})})},cloneWithoutData:function(o){var a=t.util.createCanvasElement();a.width=this.width,a.height=this.height;var c=new t.Canvas(a);this.backgroundImage?(c.setBackgroundImage(this.backgroundImage.src,function(){c.renderAll(),o&&o(c)}),c.backgroundImageOpacity=this.backgroundImageOpacity,c.backgroundImageStretch=this.backgroundImageStretch):o&&o(c)}}),function(o){var a=o.fabric||(o.fabric={}),c=a.util.object.extend,h=a.util.object.clone,l=a.util.toFixed,f=a.util.string.capitalize,s=a.util.degreesToRadians,d=!a.isLikelyNode,g=2;a.Object||(a.Object=a.util.createClass(a.CommonMethods,{type:"object",originX:"left",originY:"top",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,touchCornerSize:24,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:"rgb(178,204,255)",borderDashArray:null,cornerColor:"rgb(178,204,255)",cornerStrokeColor:null,cornerStyle:"rect",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:"rgb(0,0,0)",fillRule:"nonzero",globalCompositeOperation:"source-over",backgroundColor:"",selectionBackgroundColor:"",stroke:null,strokeWidth:1,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,perPixelTargetFind:!1,includeDefaultValues:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:d,statefullCache:!1,noScaleCache:!0,strokeUniform:!1,dirty:!0,__corner:0,paintFirst:"fill",activeOn:"down",stateProperties:"top left width height scaleX scaleY flipX flipY originX originY transformMatrix stroke strokeWidth strokeDashArray strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit angle opacity fill globalCompositeOperation shadow visible backgroundColor skewX skewY fillRule paintFirst clipPath strokeUniform".split(" "),cacheProperties:"fill stroke strokeWidth strokeDashArray width height paintFirst strokeUniform strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit backgroundColor clipPath".split(" "),colorProperties:"fill stroke backgroundColor".split(" "),clipPath:void 0,inverted:!1,absolutePositioned:!1,initialize:function(v){v&&this.setOptions(v)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=a.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(v){var m=a.perfLimitSizeTotal,y=v.width,b=v.height,_=a.maxCacheSideLimit,S=a.minCacheSideLimit;if(y<=_&&b<=_&&y*b<=m)return y<S&&(v.width=S),b<S&&(v.height=S),v;var C=y/b,T=a.util.limitDimsByArea(C,m),E=a.util.capValue,O=E(S,T.x,_),D=E(S,T.y,_);return y>O&&(v.zoomX/=y/O,v.width=O,v.capped=!0),b>D&&(v.zoomY/=b/D,v.height=D,v.capped=!0),v},_getCacheCanvasDimensions:function(){var v=this.getTotalObjectScaling(),m=this._getTransformedDimensions(0,0),y=m.x*v.scaleX/this.scaleX,b=m.y*v.scaleY/this.scaleY;return{width:Math.ceil(y+g),height:Math.ceil(b+g),zoomX:v.scaleX,zoomY:v.scaleY,x:y,y:b}},_updateCacheCanvas:function(){var v=this.canvas;if(this.noScaleCache&&v&&v._currentTransform){var m=v._currentTransform.target,y=v._currentTransform.action;if(this===m&&y.slice&&y.slice(0,5)==="scale")return!1}var b=this._cacheCanvas,_=this._limitCacheSize(this._getCacheCanvasDimensions()),S=_.width,C=_.height,T,E,O=_.zoomX,D=_.zoomY,j=S!==this.cacheWidth||C!==this.cacheHeight,k=this.zoomX!==O||this.zoomY!==D,U=j||k;return U?(j?(b.width=S,b.height=C):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,b.width,b.height)),T=_.x/2,E=_.y/2,this.cacheTranslationX=Math.round(b.width/2-T)+T,this.cacheTranslationY=Math.round(b.height/2-E)+E,this.cacheWidth=S,this.cacheHeight=C,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(O,D),this.zoomX=O,this.zoomY=D,!0):!1},setOptions:function(v){this._setOptions(v),this._initGradient(v.fill,"fill"),this._initGradient(v.stroke,"stroke"),this._initPattern(v.fill,"fill"),this._initPattern(v.stroke,"stroke")},transform:function(v){var m=this.group&&!this.group._transformDone||this.group&&this.canvas&&v===this.canvas.contextTop,y=this.calcTransformMatrix(!m);v.transform(y[0],y[1],y[2],y[3],y[4],y[5])},toObject:function(v){var m=a.Object.NUM_FRACTION_DIGITS,y={type:this.type,version:a.version,originX:this.originX,originY:this.originY,left:l(this.left,m),top:l(this.top,m),width:l(this.width,m),height:l(this.height,m),fill:this.fill&&this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke&&this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:l(this.strokeWidth,m),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:l(this.strokeMiterLimit,m),scaleX:l(this.scaleX,m),scaleY:l(this.scaleY,m),angle:l(this.angle,m),flipX:this.flipX,flipY:this.flipY,opacity:l(this.opacity,m),shadow:this.shadow&&this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,skewX:l(this.skewX,m),skewY:l(this.skewY,m)};return this.clipPath&&!this.clipPath.excludeFromExport&&(y.clipPath=this.clipPath.toObject(v),y.clipPath.inverted=this.clipPath.inverted,y.clipPath.absolutePositioned=this.clipPath.absolutePositioned),a.util.populateWithProperties(this,y,v),this.includeDefaultValues||(y=this._removeDefaultValues(y)),y},toDatalessObject:function(v){return this.toObject(v)},_removeDefaultValues:function(v){var m=a.util.getKlass(v.type).prototype,y=m.stateProperties;return y.forEach(function(b){b==="left"||b==="top"||(v[b]===m[b]&&delete v[b],Array.isArray(v[b])&&Array.isArray(m[b])&&v[b].length===0&&m[b].length===0&&delete v[b])}),v},toString:function(){return"#<fabric."+f(this.type)+">"},getObjectScaling:function(){if(!this.group)return{scaleX:this.scaleX,scaleY:this.scaleY};var v=a.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(v.scaleX),scaleY:Math.abs(v.scaleY)}},getTotalObjectScaling:function(){var v=this.getObjectScaling(),m=v.scaleX,y=v.scaleY;if(this.canvas){var b=this.canvas.getZoom(),_=this.canvas.getRetinaScaling();m*=b*_,y*=b*_}return{scaleX:m,scaleY:y}},getObjectOpacity:function(){var v=this.opacity;return this.group&&(v*=this.group.getObjectOpacity()),v},_set:function(v,m){var y=v==="scaleX"||v==="scaleY",b=this[v]!==m,_=!1;return y&&(m=this._constrainScale(m)),v==="scaleX"&&m<0?(this.flipX=!this.flipX,m*=-1):v==="scaleY"&&m<0?(this.flipY=!this.flipY,m*=-1):v==="shadow"&&m&&!(m instanceof a.Shadow)?m=new a.Shadow(m):v==="dirty"&&this.group&&this.group.set("dirty",m),this[v]=m,b&&(_=this.group&&this.group.isOnACache(),this.cacheProperties.indexOf(v)>-1?(this.dirty=!0,_&&this.group.set("dirty",!0)):_&&this.stateProperties.indexOf(v)>-1&&this.group.set("dirty",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas&&this.canvas.viewportTransform?this.canvas.viewportTransform:a.iMatrix.concat()},isNotVisible:function(){return this.opacity===0||!this.width&&!this.height&&this.strokeWidth===0||!this.visible},render:function(v){this.isNotVisible()||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(v.save(),this._setupCompositeOperation(v),this.drawSelectionBackground(v),this.transform(v),this._setOpacity(v),this._setShadow(v,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(v)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(v),this.objectCaching&&this.statefullCache&&this.saveState({propertySet:"cacheProperties"})),v.restore())},renderCache:function(v){v=v||{},(!this._cacheCanvas||!this._cacheContext)&&this._createCacheCanvas(),this.isCacheDirty()&&(this.statefullCache&&this.saveState({propertySet:"cacheProperties"}),this.drawObject(this._cacheContext,v.forClipping),this.dirty=!1)},_removeCacheCanvas:function(){this._cacheCanvas=null,this._cacheContext=null,this.cacheWidth=0,this.cacheHeight=0},hasStroke:function(){return this.stroke&&this.stroke!=="transparent"&&this.strokeWidth!==0},hasFill:function(){return this.fill&&this.fill!=="transparent"},needsItsOwnCache:function(){return!!(this.paintFirst==="stroke"&&this.hasFill()&&this.hasStroke()&&typeof this.shadow=="object"||this.clipPath)},shouldCache:function(){return this.ownCaching=this.needsItsOwnCache()||this.objectCaching&&(!this.group||!this.group.isOnACache()),this.ownCaching},willDrawShadow:function(){return!!this.shadow&&(this.shadow.offsetX!==0||this.shadow.offsetY!==0)},drawClipPathOnCache:function(v,m){if(v.save(),m.inverted?v.globalCompositeOperation="destination-out":v.globalCompositeOperation="destination-in",m.absolutePositioned){var y=a.util.invertTransform(this.calcTransformMatrix());v.transform(y[0],y[1],y[2],y[3],y[4],y[5])}m.transform(v),v.scale(1/m.zoomX,1/m.zoomY),v.drawImage(m._cacheCanvas,-m.cacheTranslationX,-m.cacheTranslationY),v.restore()},drawObject:function(v,m){var y=this.fill,b=this.stroke;m?(this.fill="black",this.stroke="",this._setClippingProperties(v)):this._renderBackground(v),this._render(v),this._drawClipPath(v,this.clipPath),this.fill=y,this.stroke=b},_drawClipPath:function(v,m){!m||(m.canvas=this.canvas,m.shouldCache(),m._transformDone=!0,m.renderCache({forClipping:!0}),this.drawClipPathOnCache(v,m))},drawCacheOnCanvas:function(v){v.scale(1/this.zoomX,1/this.zoomY),v.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(v){if(this.isNotVisible())return!1;if(this._cacheCanvas&&this._cacheContext&&!v&&this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath&&this.clipPath.absolutePositioned||this.statefullCache&&this.hasStateChanged("cacheProperties")){if(this._cacheCanvas&&this._cacheContext&&!v){var m=this.cacheWidth/this.zoomX,y=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-m/2,-y/2,m,y)}return!0}return!1},_renderBackground:function(v){if(!!this.backgroundColor){var m=this._getNonTransformedDimensions();v.fillStyle=this.backgroundColor,v.fillRect(-m.x/2,-m.y/2,m.x,m.y),this._removeShadow(v)}},_setOpacity:function(v){this.group&&!this.group._transformDone?v.globalAlpha=this.getObjectOpacity():v.globalAlpha*=this.opacity},_setStrokeStyles:function(v,m){var y=m.stroke;y&&(v.lineWidth=m.strokeWidth,v.lineCap=m.strokeLineCap,v.lineDashOffset=m.strokeDashOffset,v.lineJoin=m.strokeLineJoin,v.miterLimit=m.strokeMiterLimit,y.toLive?y.gradientUnits==="percentage"||y.gradientTransform||y.patternTransform?this._applyPatternForTransformedGradient(v,y):(v.strokeStyle=y.toLive(v,this),this._applyPatternGradientTransform(v,y)):v.strokeStyle=m.stroke)},_setFillStyles:function(v,m){var y=m.fill;y&&(y.toLive?(v.fillStyle=y.toLive(v,this),this._applyPatternGradientTransform(v,m.fill)):v.fillStyle=y)},_setClippingProperties:function(v){v.globalAlpha=1,v.strokeStyle="transparent",v.fillStyle="#000000"},_setLineDash:function(v,m){!m||m.length===0||(1&m.length&&m.push.apply(m,m),v.setLineDash(m))},_renderControls:function(v,m){var y=this.getViewportTransform(),b=this.calcTransformMatrix(),_,S,C;m=m||{},S=typeof m.hasBorders<"u"?m.hasBorders:this.hasBorders,C=typeof m.hasControls<"u"?m.hasControls:this.hasControls,b=a.util.multiplyTransformMatrices(y,b),_=a.util.qrDecompose(b),v.save(),v.translate(_.translateX,_.translateY),v.lineWidth=1*this.borderScaleFactor,this.group||(v.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),this.flipX&&(_.angle-=180),v.rotate(s(this.group?_.angle:this.angle)),m.forActiveSelection||this.group?S&&this.drawBordersInGroup(v,_,m):S&&this.drawBorders(v,m),C&&this.drawControls(v,m),v.restore()},_setShadow:function(v){if(!!this.shadow){var m=this.shadow,y=this.canvas,b,_=y&&y.viewportTransform[0]||1,S=y&&y.viewportTransform[3]||1;m.nonScaling?b={scaleX:1,scaleY:1}:b=this.getObjectScaling(),y&&y._isRetinaScaling()&&(_*=a.devicePixelRatio,S*=a.devicePixelRatio),v.shadowColor=m.color,v.shadowBlur=m.blur*a.browserShadowBlurConstant*(_+S)*(b.scaleX+b.scaleY)/4,v.shadowOffsetX=m.offsetX*_*b.scaleX,v.shadowOffsetY=m.offsetY*S*b.scaleY}},_removeShadow:function(v){!this.shadow||(v.shadowColor="",v.shadowBlur=v.shadowOffsetX=v.shadowOffsetY=0)},_applyPatternGradientTransform:function(v,m){if(!m||!m.toLive)return{offsetX:0,offsetY:0};var y=m.gradientTransform||m.patternTransform,b=-this.width/2+m.offsetX||0,_=-this.height/2+m.offsetY||0;return m.gradientUnits==="percentage"?v.transform(this.width,0,0,this.height,b,_):v.transform(1,0,0,1,b,_),y&&v.transform(y[0],y[1],y[2],y[3],y[4],y[5]),{offsetX:b,offsetY:_}},_renderPaintInOrder:function(v){this.paintFirst==="stroke"?(this._renderStroke(v),this._renderFill(v)):(this._renderFill(v),this._renderStroke(v))},_render:function(){},_renderFill:function(v){!this.fill||(v.save(),this._setFillStyles(v,this),this.fillRule==="evenodd"?v.fill("evenodd"):v.fill(),v.restore())},_renderStroke:function(v){if(!(!this.stroke||this.strokeWidth===0)){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(v),v.save(),this.strokeUniform&&this.group){var m=this.getObjectScaling();v.scale(1/m.scaleX,1/m.scaleY)}else this.strokeUniform&&v.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(v,this.strokeDashArray),this._setStrokeStyles(v,this),v.stroke(),v.restore()}},_applyPatternForTransformedGradient:function(v,m){var y=this._limitCacheSize(this._getCacheCanvasDimensions()),b=a.util.createCanvasElement(),_,S=this.canvas.getRetinaScaling(),C=y.x/this.scaleX/S,T=y.y/this.scaleY/S;b.width=Math.ceil(C),b.height=Math.ceil(T),_=b.getContext("2d"),_.beginPath(),_.moveTo(0,0),_.lineTo(C,0),_.lineTo(C,T),_.lineTo(0,T),_.closePath(),_.translate(C/2,T/2),_.scale(y.zoomX/this.scaleX/S,y.zoomY/this.scaleY/S),this._applyPatternGradientTransform(_,m),_.fillStyle=m.toLive(v),_.fill(),v.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),v.scale(S*this.scaleX/y.zoomX,S*this.scaleY/y.zoomY),v.strokeStyle=_.createPattern(b,"no-repeat")},_findCenterFromElement:function(){return{x:this.left+this.width/2,y:this.top+this.height/2}},_assignTransformMatrixProps:function(){if(this.transformMatrix){var v=a.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set("scaleX",v.scaleX),this.set("scaleY",v.scaleY),this.angle=v.angle,this.skewX=v.skewX,this.skewY=0}},_removeTransformMatrix:function(v){var m=this._findCenterFromElement();this.transformMatrix&&(this._assignTransformMatrixProps(),m=a.util.transformPoint(m,this.transformMatrix)),this.transformMatrix=null,v&&(this.scaleX*=v.scaleX,this.scaleY*=v.scaleY,this.cropX=v.cropX,this.cropY=v.cropY,m.x+=v.offsetLeft,m.y+=v.offsetTop,this.width=v.width,this.height=v.height),this.setPositionByOrigin(m,"center","center")},clone:function(v,m){var y=this.toObject(m);this.constructor.fromObject?this.constructor.fromObject(y,v):a.Object._fromObject("Object",y,v)},cloneAsImage:function(v,m){var y=this.toCanvasElement(m);return v&&v(new a.Image(y)),this},toCanvasElement:function(v){v||(v={});var m=a.util,y=m.saveObjectTransform(this),b=this.group,_=this.shadow,S=Math.abs,C=(v.multiplier||1)*(v.enableRetinaScaling?a.devicePixelRatio:1);delete this.group,v.withoutTransform&&m.resetObjectTransform(this),v.withoutShadow&&(this.shadow=null);var T=a.util.createCanvasElement(),E=this.getBoundingRect(!0,!0),O=this.shadow,D,j={x:0,y:0},k,U,P;O&&(k=O.blur,O.nonScaling?D={scaleX:1,scaleY:1}:D=this.getObjectScaling(),j.x=2*Math.round(S(O.offsetX)+k)*S(D.scaleX),j.y=2*Math.round(S(O.offsetY)+k)*S(D.scaleY)),U=E.width+j.x,P=E.height+j.y,T.width=Math.ceil(U),T.height=Math.ceil(P);var re=new a.StaticCanvas(T,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});v.format==="jpeg"&&(re.backgroundColor="#fff"),this.setPositionByOrigin(new a.Point(re.width/2,re.height/2),"center","center");var q=this.canvas;re.add(this);var V=re.toCanvasElement(C||1,v);return this.shadow=_,this.set("canvas",q),b&&(this.group=b),this.set(y).setCoords(),re._objects=[],re.dispose(),re=null,V},toDataURL:function(v){return v||(v={}),a.util.toDataURL(this.toCanvasElement(v),v.format||"png",v.quality||1)},isType:function(v){return arguments.length>1?Array.from(arguments).includes(this.type):this.type===v},complexity:function(){return 1},toJSON:function(v){return this.toObject(v)},rotate:function(v){var m=(this.originX!=="center"||this.originY!=="center")&&this.centeredRotation;return m&&this._setOriginToCenter(),this.set("angle",v),m&&this._resetOrigin(),this},centerH:function(){return this.canvas&&this.canvas.centerObjectH(this),this},viewportCenterH:function(){return this.canvas&&this.canvas.viewportCenterObjectH(this),this},centerV:function(){return this.canvas&&this.canvas.centerObjectV(this),this},viewportCenterV:function(){return this.canvas&&this.canvas.viewportCenterObjectV(this),this},center:function(){return this.canvas&&this.canvas.centerObject(this),this},viewportCenter:function(){return this.canvas&&this.canvas.viewportCenterObject(this),this},getLocalPointer:function(v,m){m=m||this.canvas.getPointer(v);var y=new a.Point(m.x,m.y),b=this._getLeftTopCoords();return this.angle&&(y=a.util.rotatePoint(y,b,s(-this.angle))),{x:y.x-b.x,y:y.y-b.y}},_setupCompositeOperation:function(v){this.globalCompositeOperation&&(v.globalCompositeOperation=this.globalCompositeOperation)},dispose:function(){a.runningAnimations&&a.runningAnimations.cancelByTarget(this)}}),a.util.createAccessors&&a.util.createAccessors(a.Object),c(a.Object.prototype,a.Observable),a.Object.NUM_FRACTION_DIGITS=2,a.Object.ENLIVEN_PROPS=["clipPath"],a.Object._fromObject=function(v,m,y,b){var _=a[v];m=h(m,!0),a.util.enlivenPatterns([m.fill,m.stroke],function(S){typeof S[0]<"u"&&(m.fill=S[0]),typeof S[1]<"u"&&(m.stroke=S[1]),a.util.enlivenObjectEnlivables(m,m,function(){var C=b?new _(m[b],m):new _(m);y&&y(C)})})},a.Object.__uid=0)}(e),function(){var o=t.util.degreesToRadians,a={left:-.5,center:0,right:.5},c={top:-.5,center:0,bottom:.5};t.util.object.extend(t.Object.prototype,{translateToGivenOrigin:function(h,l,f,s,d){var g=h.x,v=h.y,m,y,b;return typeof l=="string"?l=a[l]:l-=.5,typeof s=="string"?s=a[s]:s-=.5,m=s-l,typeof f=="string"?f=c[f]:f-=.5,typeof d=="string"?d=c[d]:d-=.5,y=d-f,(m||y)&&(b=this._getTransformedDimensions(),g=h.x+m*b.x,v=h.y+y*b.y),new t.Point(g,v)},translateToCenterPoint:function(h,l,f){var s=this.translateToGivenOrigin(h,l,f,"center","center");return this.angle?t.util.rotatePoint(s,h,o(this.angle)):s},translateToOriginPoint:function(h,l,f){var s=this.translateToGivenOrigin(h,"center","center",l,f);return this.angle?t.util.rotatePoint(s,h,o(this.angle)):s},getCenterPoint:function(){var h=new t.Point(this.left,this.top);return this.translateToCenterPoint(h,this.originX,this.originY)},getPointByOrigin:function(h,l){var f=this.getCenterPoint();return this.translateToOriginPoint(f,h,l)},toLocalPoint:function(h,l,f){var s=this.getCenterPoint(),d,g;return typeof l<"u"&&typeof f<"u"?d=this.translateToGivenOrigin(s,"center","center",l,f):d=new t.Point(this.left,this.top),g=new t.Point(h.x,h.y),this.angle&&(g=t.util.rotatePoint(g,s,-o(this.angle))),g.subtractEquals(d)},setPositionByOrigin:function(h,l,f){var s=this.translateToCenterPoint(h,l,f),d=this.translateToOriginPoint(s,this.originX,this.originY);this.set("left",d.x),this.set("top",d.y)},adjustPosition:function(h){var l=o(this.angle),f=this.getScaledWidth(),s=t.util.cos(l)*f,d=t.util.sin(l)*f,g,v;typeof this.originX=="string"?g=a[this.originX]:g=this.originX-.5,typeof h=="string"?v=a[h]:v=h-.5,this.left+=s*(v-g),this.top+=d*(v-g),this.setCoords(),this.originX=h},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var h=this.getCenterPoint();this.originX="center",this.originY="center",this.left=h.x,this.top=h.y},_resetOrigin:function(){var h=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=h.x,this.top=h.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),"left","top")}})}(),function(){function o(f){return[new t.Point(f.tl.x,f.tl.y),new t.Point(f.tr.x,f.tr.y),new t.Point(f.br.x,f.br.y),new t.Point(f.bl.x,f.bl.y)]}var a=t.util,c=a.degreesToRadians,h=a.multiplyTransformMatrices,l=a.transformPoint;a.object.extend(t.Object.prototype,{oCoords:null,aCoords:null,lineCoords:null,ownMatrixCache:null,matrixCache:null,controls:{},_getCoords:function(f,s){return s?f?this.calcACoords():this.calcLineCoords():((!this.aCoords||!this.lineCoords)&&this.setCoords(!0),f?this.aCoords:this.lineCoords)},getCoords:function(f,s){return o(this._getCoords(f,s))},intersectsWithRect:function(f,s,d,g){var v=this.getCoords(d,g),m=t.Intersection.intersectPolygonRectangle(v,f,s);return m.status==="Intersection"},intersectsWithObject:function(f,s,d){var g=t.Intersection.intersectPolygonPolygon(this.getCoords(s,d),f.getCoords(s,d));return g.status==="Intersection"||f.isContainedWithinObject(this,s,d)||this.isContainedWithinObject(f,s,d)},isContainedWithinObject:function(f,s,d){for(var g=this.getCoords(s,d),v=s?f.aCoords:f.lineCoords,m=0,y=f._getImageLines(v);m<4;m++)if(!f.containsPoint(g[m],y))return!1;return!0},isContainedWithinRect:function(f,s,d,g){var v=this.getBoundingRect(d,g);return v.left>=f.x&&v.left+v.width<=s.x&&v.top>=f.y&&v.top+v.height<=s.y},containsPoint:function(f,m,d,g){var v=this._getCoords(d,g),m=m||this._getImageLines(v),y=this._findCrossPoints(f,m);return y!==0&&y%2===1},isOnScreen:function(f){if(!this.canvas)return!1;var s=this.canvas.vptCoords.tl,d=this.canvas.vptCoords.br,g=this.getCoords(!0,f);return g.some(function(v){return v.x<=d.x&&v.x>=s.x&&v.y<=d.y&&v.y>=s.y})||this.intersectsWithRect(s,d,!0,f)?!0:this._containsCenterOfCanvas(s,d,f)},_containsCenterOfCanvas:function(f,s,d){var g={x:(f.x+s.x)/2,y:(f.y+s.y)/2};return!!this.containsPoint(g,null,!0,d)},isPartiallyOnScreen:function(f){if(!this.canvas)return!1;var s=this.canvas.vptCoords.tl,d=this.canvas.vptCoords.br;if(this.intersectsWithRect(s,d,!0,f))return!0;var g=this.getCoords(!0,f).every(function(v){return(v.x>=d.x||v.x<=s.x)&&(v.y>=d.y||v.y<=s.y)});return g&&this._containsCenterOfCanvas(s,d,f)},_getImageLines:function(f){var s={topline:{o:f.tl,d:f.tr},rightline:{o:f.tr,d:f.br},bottomline:{o:f.br,d:f.bl},leftline:{o:f.bl,d:f.tl}};return s},_findCrossPoints:function(f,s){var d,g,v,m,y,b=0,_;for(var S in s)if(_=s[S],!(_.o.y<f.y&&_.d.y<f.y)&&!(_.o.y>=f.y&&_.d.y>=f.y)&&(_.o.x===_.d.x&&_.o.x>=f.x?y=_.o.x:(d=0,g=(_.d.y-_.o.y)/(_.d.x-_.o.x),v=f.y-d*f.x,m=_.o.y-g*_.o.x,y=-(v-m)/(d-g)),y>=f.x&&(b+=1),b===2))break;return b},getBoundingRect:function(f,s){var d=this.getCoords(f,s);return a.makeBoundingBoxFromPoints(d)},getScaledWidth:function(){return this._getTransformedDimensions().x},getScaledHeight:function(){return this._getTransformedDimensions().y},_constrainScale:function(f){return Math.abs(f)<this.minScaleLimit?f<0?-this.minScaleLimit:this.minScaleLimit:f===0?1e-4:f},scale:function(f){return this._set("scaleX",f),this._set("scaleY",f),this.setCoords()},scaleToWidth:function(f,s){var d=this.getBoundingRect(s).width/this.getScaledWidth();return this.scale(f/this.width/d)},scaleToHeight:function(f,s){var d=this.getBoundingRect(s).height/this.getScaledHeight();return this.scale(f/this.height/d)},calcLineCoords:function(){var f=this.getViewportTransform(),s=this.padding,d=c(this.angle),g=a.cos(d),v=a.sin(d),m=g*s,y=v*s,b=m+y,_=m-y,S=this.calcACoords(),C={tl:l(S.tl,f),tr:l(S.tr,f),bl:l(S.bl,f),br:l(S.br,f)};return s&&(C.tl.x-=_,C.tl.y-=b,C.tr.x+=b,C.tr.y-=_,C.bl.x-=b,C.bl.y+=_,C.br.x+=_,C.br.y+=b),C},calcOCoords:function(){var f=this._calcRotateMatrix(),s=this._calcTranslateMatrix(),d=this.getViewportTransform(),g=h(d,s),v=h(g,f),v=h(v,[1/d[0],0,0,1/d[3],0,0]),m=this._calculateCurrentDimensions(),y={};return this.forEachControl(function(b,_,S){y[_]=b.positionHandler(m,v,S)}),y},calcACoords:function(){var f=this._calcRotateMatrix(),s=this._calcTranslateMatrix(),d=h(s,f),g=this._getTransformedDimensions(),v=g.x/2,m=g.y/2;return{tl:l({x:-v,y:-m},d),tr:l({x:v,y:-m},d),bl:l({x:-v,y:m},d),br:l({x:v,y:m},d)}},setCoords:function(f){return this.aCoords=this.calcACoords(),this.lineCoords=this.group?this.aCoords:this.calcLineCoords(),f?this:(this.oCoords=this.calcOCoords(),this._setCornerCoords&&this._setCornerCoords(),this)},_calcRotateMatrix:function(){return a.calcRotateMatrix(this)},_calcTranslateMatrix:function(){var f=this.getCenterPoint();return[1,0,0,1,f.x,f.y]},transformMatrixKey:function(f){var s="_",d="";return!f&&this.group&&(d=this.group.transformMatrixKey(f)+s),d+this.top+s+this.left+s+this.scaleX+s+this.scaleY+s+this.skewX+s+this.skewY+s+this.angle+s+this.originX+s+this.originY+s+this.width+s+this.height+s+this.strokeWidth+this.flipX+this.flipY},calcTransformMatrix:function(f){var s=this.calcOwnMatrix();if(f||!this.group)return s;var d=this.transformMatrixKey(f),g=this.matrixCache||(this.matrixCache={});return g.key===d?g.value:(this.group&&(s=h(this.group.calcTransformMatrix(!1),s)),g.key=d,g.value=s,s)},calcOwnMatrix:function(){var f=this.transformMatrixKey(!0),s=this.ownMatrixCache||(this.ownMatrixCache={});if(s.key===f)return s.value;var d=this._calcTranslateMatrix(),g={angle:this.angle,translateX:d[4],translateY:d[5],scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY};return s.key=f,s.value=a.composeMatrix(g),s.value},_getNonTransformedDimensions:function(){var f=this.strokeWidth,s=this.width+f,d=this.height+f;return{x:s,y:d}},_getTransformedDimensions:function(f,s){typeof f>"u"&&(f=this.skewX),typeof s>"u"&&(s=this.skewY);var d,g,v,m=f===0&&s===0;if(this.strokeUniform?(g=this.width,v=this.height):(d=this._getNonTransformedDimensions(),g=d.x,v=d.y),m)return this._finalizeDimensions(g*this.scaleX,v*this.scaleY);var y=a.sizeAfterTransform(g,v,{scaleX:this.scaleX,scaleY:this.scaleY,skewX:f,skewY:s});return this._finalizeDimensions(y.x,y.y)},_finalizeDimensions:function(f,s){return this.strokeUniform?{x:f+this.strokeWidth,y:s+this.strokeWidth}:{x:f,y:s}},_calculateCurrentDimensions:function(){var f=this.getViewportTransform(),s=this._getTransformedDimensions(),d=l(s,f,!0);return d.scalarAdd(2*this.padding)}})}(),t.util.object.extend(t.Object.prototype,{sendToBack:function(){return this.group?t.StaticCanvas.prototype.sendToBack.call(this.group,this):this.canvas&&this.canvas.sendToBack(this),this},bringToFront:function(){return this.group?t.StaticCanvas.prototype.bringToFront.call(this.group,this):this.canvas&&this.canvas.bringToFront(this),this},sendBackwards:function(o){return this.group?t.StaticCanvas.prototype.sendBackwards.call(this.group,this,o):this.canvas&&this.canvas.sendBackwards(this,o),this},bringForward:function(o){return this.group?t.StaticCanvas.prototype.bringForward.call(this.group,this,o):this.canvas&&this.canvas.bringForward(this,o),this},moveTo:function(o){return this.group&&this.group.type!=="activeSelection"?t.StaticCanvas.prototype.moveTo.call(this.group,this,o):this.canvas&&this.canvas.moveTo(this,o),this}}),function(){function o(c,h){if(h){if(h.toLive)return c+": url(#SVGID_"+h.id+"); ";var l=new t.Color(h),f=c+": "+l.toRgb()+"; ",s=l.getAlpha();return s!==1&&(f+=c+"-opacity: "+s.toString()+"; "),f}else return c+": none; "}var a=t.util.toFixed;t.util.object.extend(t.Object.prototype,{getSvgStyles:function(c){var h=this.fillRule?this.fillRule:"nonzero",l=this.strokeWidth?this.strokeWidth:"0",f=this.strokeDashArray?this.strokeDashArray.join(" "):"none",s=this.strokeDashOffset?this.strokeDashOffset:"0",d=this.strokeLineCap?this.strokeLineCap:"butt",g=this.strokeLineJoin?this.strokeLineJoin:"miter",v=this.strokeMiterLimit?this.strokeMiterLimit:"4",m=typeof this.opacity<"u"?this.opacity:"1",y=this.visible?"":" visibility: hidden;",b=c?"":this.getSvgFilter(),_=o("fill",this.fill),S=o("stroke",this.stroke);return[S,"stroke-width: ",l,"; ","stroke-dasharray: ",f,"; ","stroke-linecap: ",d,"; ","stroke-dashoffset: ",s,"; ","stroke-linejoin: ",g,"; ","stroke-miterlimit: ",v,"; ",_,"fill-rule: ",h,"; ","opacity: ",m,";",b,y].join("")},getSvgSpanStyles:function(c,h){var l="; ",s=c.fontFamily?"font-family: "+(c.fontFamily.indexOf("'")===-1&&c.fontFamily.indexOf('"')===-1?"'"+c.fontFamily+"'":c.fontFamily)+l:"",f=c.strokeWidth?"stroke-width: "+c.strokeWidth+l:"",s=s,d=c.fontSize?"font-size: "+c.fontSize+"px"+l:"",g=c.fontStyle?"font-style: "+c.fontStyle+l:"",v=c.fontWeight?"font-weight: "+c.fontWeight+l:"",m=c.fill?o("fill",c.fill):"",y=c.stroke?o("stroke",c.stroke):"",b=this.getSvgTextDecoration(c),_=c.deltaY?"baseline-shift: "+-c.deltaY+"; ":"";return b&&(b="text-decoration: "+b+l),[y,f,s,d,g,v,b,m,_,h?"white-space: pre; ":""].join("")},getSvgTextDecoration:function(c){return["overline","underline","line-through"].filter(function(h){return c[h.replace("-","")]}).join(" ")},getSvgFilter:function(){return this.shadow?"filter: url(#SVGID_"+this.shadow.id+");":""},getSvgCommons:function(){return[this.id?'id="'+this.id+'" ':"",this.clipPath?'clip-path="url(#'+this.clipPath.clipPathId+')" ':""].join("")},getSvgTransform:function(c,h){var l=c?this.calcTransformMatrix():this.calcOwnMatrix(),f='transform="'+t.util.matrixToSVG(l);return f+(h||"")+'" '},_setSVGBg:function(c){if(this.backgroundColor){var h=t.Object.NUM_FRACTION_DIGITS;c.push(" <rect ",this._getFillAttributes(this.backgroundColor),' x="',a(-this.width/2,h),'" y="',a(-this.height/2,h),'" width="',a(this.width,h),'" height="',a(this.height,h),`"></rect>
`)}},toSVG:function(c){return this._createBaseSVGMarkup(this._toSVG(c),{reviver:c})},toClipPathSVG:function(c){return" "+this._createBaseClipPathSVGMarkup(this._toSVG(c),{reviver:c})},_createBaseClipPathSVGMarkup:function(c,h){h=h||{};var l=h.reviver,f=h.additionalTransform||"",s=[this.getSvgTransform(!0,f),this.getSvgCommons()].join(""),d=c.indexOf("COMMON_PARTS");return c[d]=s,l?l(c.join("")):c.join("")},_createBaseSVGMarkup:function(c,h){h=h||{};var l=h.noStyle,f=h.reviver,s=l?"":'style="'+this.getSvgStyles()+'" ',d=h.withShadow?'style="'+this.getSvgFilter()+'" ':"",g=this.clipPath,v=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",m=g&&g.absolutePositioned,y=this.stroke,b=this.fill,_=this.shadow,S,C=[],T,E=c.indexOf("COMMON_PARTS"),O=h.additionalTransform;return g&&(g.clipPathId="CLIPPATH_"+t.Object.__uid++,T='<clipPath id="'+g.clipPathId+`" >
`+g.toClipPathSVG(f)+`</clipPath>
`),m&&C.push("<g ",d,this.getSvgCommons(),` >
`),C.push("<g ",this.getSvgTransform(!1),m?"":d+this.getSvgCommons(),` >
`),S=[s,v,l?"":this.addPaintOrder()," ",O?'transform="'+O+'" ':""].join(""),c[E]=S,b&&b.toLive&&C.push(b.toSVG(this)),y&&y.toLive&&C.push(y.toSVG(this)),_&&C.push(_.toSVG(this)),g&&C.push(T),C.push(c.join("")),C.push(`</g>
`),m&&C.push(`</g>
`),f?f(C.join("")):C.join("")},addPaintOrder:function(){return this.paintFirst!=="fill"?' paint-order="'+this.paintFirst+'" ':""}})}(),function(){var o=t.util.object.extend,a="stateProperties";function c(l,f,s){var d={},g=!0;s.forEach(function(v){d[v]=l[v]}),o(l[f],d,g)}function h(l,f,s){if(l===f)return!0;if(Array.isArray(l)){if(!Array.isArray(f)||l.length!==f.length)return!1;for(var d=0,g=l.length;d<g;d++)if(!h(l[d],f[d]))return!1;return!0}else if(l&&typeof l=="object"){var v=Object.keys(l),m;if(!f||typeof f!="object"||!s&&v.length!==Object.keys(f).length)return!1;for(var d=0,g=v.length;d<g;d++)if(m=v[d],!(m==="canvas"||m==="group")&&!h(l[m],f[m]))return!1;return!0}}t.util.object.extend(t.Object.prototype,{hasStateChanged:function(l){l=l||a;var f="_"+l;return Object.keys(this[f]).length<this[l].length?!0:!h(this[f],this,!0)},saveState:function(l){var f=l&&l.propertySet||a,s="_"+f;return this[s]?(c(this,s,this[f]),l&&l.stateProperties&&c(this,s,l.stateProperties),this):this.setupState(l)},setupState:function(l){l=l||{};var f=l.propertySet||a;return l.propertySet=f,this["_"+f]={},this.saveState(l),this}})}(),function(){var o=t.util.degreesToRadians;t.util.object.extend(t.Object.prototype,{_findTargetCorner:function(a,c){if(!this.hasControls||this.group||!this.canvas||this.canvas._activeObject!==this)return!1;var h=a.x,l=a.y,f,s,d=Object.keys(this.oCoords),g=d.length-1,v;for(this.__corner=0;g>=0;g--)if(v=d[g],!!this.isControlVisible(v)&&(s=this._getImageLines(c?this.oCoords[v].touchCorner:this.oCoords[v].corner),f=this._findCrossPoints({x:h,y:l},s),f!==0&&f%2===1))return this.__corner=v,v;return!1},forEachControl:function(a){for(var c in this.controls)a(this.controls[c],c,this)},_setCornerCoords:function(){var a=this.oCoords;for(var c in a){var h=this.controls[c];a[c].corner=h.calcCornerCoords(this.angle,this.cornerSize,a[c].x,a[c].y,!1),a[c].touchCorner=h.calcCornerCoords(this.angle,this.touchCornerSize,a[c].x,a[c].y,!0)}},drawSelectionBackground:function(a){if(!this.selectionBackgroundColor||this.canvas&&!this.canvas.interactive||this.canvas&&this.canvas._activeObject!==this)return this;a.save();var c=this.getCenterPoint(),h=this._calculateCurrentDimensions(),l=this.canvas.viewportTransform;return a.translate(c.x,c.y),a.scale(1/l[0],1/l[3]),a.rotate(o(this.angle)),a.fillStyle=this.selectionBackgroundColor,a.fillRect(-h.x/2,-h.y/2,h.x,h.y),a.restore(),this},drawBorders:function(a,c){c=c||{};var h=this._calculateCurrentDimensions(),l=this.borderScaleFactor,f=h.x+l,s=h.y+l,d=typeof c.hasControls<"u"?c.hasControls:this.hasControls,g=!1;return a.save(),a.strokeStyle=c.borderColor||this.borderColor,this._setLineDash(a,c.borderDashArray||this.borderDashArray),a.strokeRect(-f/2,-s/2,f,s),d&&(a.beginPath(),this.forEachControl(function(v,m,y){v.withConnection&&v.getVisibility(y,m)&&(g=!0,a.moveTo(v.x*f,v.y*s),a.lineTo(v.x*f+v.offsetX,v.y*s+v.offsetY))}),g&&a.stroke()),a.restore(),this},drawBordersInGroup:function(a,c,h){h=h||{};var l=t.util.sizeAfterTransform(this.width,this.height,c),f=this.strokeWidth,s=this.strokeUniform,d=this.borderScaleFactor,g=l.x+f*(s?this.canvas.getZoom():c.scaleX)+d,v=l.y+f*(s?this.canvas.getZoom():c.scaleY)+d;return a.save(),this._setLineDash(a,h.borderDashArray||this.borderDashArray),a.strokeStyle=h.borderColor||this.borderColor,a.strokeRect(-g/2,-v/2,g,v),a.restore(),this},drawControls:function(a,c){c=c||{},a.save();var h=1,l,f;return this.canvas&&(h=this.canvas.getRetinaScaling()),a.setTransform(h,0,0,h,0,0),a.strokeStyle=a.fillStyle=c.cornerColor||this.cornerColor,this.transparentCorners||(a.strokeStyle=c.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(a,c.cornerDashArray||this.cornerDashArray),this.setCoords(),this.group&&(l=this.group.calcTransformMatrix()),this.forEachControl(function(s,d,g){f=g.oCoords[d],s.getVisibility(g,d)&&(l&&(f=t.util.transformPoint(f,l)),s.render(a,f.x,f.y,c,g))}),a.restore(),this},isControlVisible:function(a){return this.controls[a]&&this.controls[a].getVisibility(this,a)},setControlVisible:function(a,c){return this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[a]=c,this},setControlsVisibility:function(a){a||(a={});for(var c in a)this.setControlVisible(c,a[c]);return this},onDeselect:function(){},onSelect:function(){}})}(),t.util.object.extend(t.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(o,a){a=a||{};var c=function(){},h=a.onComplete||c,l=a.onChange||c,f=this;return t.util.animate({target:this,startValue:o.left,endValue:this.getCenterPoint().x,duration:this.FX_DURATION,onChange:function(s){o.set("left",s),f.requestRenderAll(),l()},onComplete:function(){o.setCoords(),h()}})},fxCenterObjectV:function(o,a){a=a||{};var c=function(){},h=a.onComplete||c,l=a.onChange||c,f=this;return t.util.animate({target:this,startValue:o.top,endValue:this.getCenterPoint().y,duration:this.FX_DURATION,onChange:function(s){o.set("top",s),f.requestRenderAll(),l()},onComplete:function(){o.setCoords(),h()}})},fxRemove:function(o,a){a=a||{};var c=function(){},h=a.onComplete||c,l=a.onChange||c,f=this;return t.util.animate({target:this,startValue:o.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(s){o.set("opacity",s),f.requestRenderAll(),l()},onComplete:function(){f.remove(o),h()}})}}),t.util.object.extend(t.Object.prototype,{animate:function(){if(arguments[0]&&typeof arguments[0]=="object"){var o=[],a,c,h=[];for(a in arguments[0])o.push(a);for(var l=0,f=o.length;l<f;l++)a=o[l],c=l!==f-1,h.push(this._animate(a,arguments[0][a],arguments[1],c));return h}else return this._animate.apply(this,arguments)},_animate:function(o,a,c,h){var l=this,f;a=a.toString(),c?c=t.util.object.clone(c):c={},~o.indexOf(".")&&(f=o.split("."));var s=l.colorProperties.indexOf(o)>-1||f&&l.colorProperties.indexOf(f[1])>-1,d=f?this.get(f[0])[f[1]]:this.get(o);"from"in c||(c.from=d),s||(~a.indexOf("=")?a=d+parseFloat(a.replace("=","")):a=parseFloat(a));var g={target:this,startValue:c.from,endValue:a,byValue:c.by,easing:c.easing,duration:c.duration,abort:c.abort&&function(v,m,y){return c.abort.call(l,v,m,y)},onChange:function(v,m,y){f?l[f[0]][f[1]]=v:l.set(o,v),!h&&c.onChange&&c.onChange(v,m,y)},onComplete:function(v,m,y){h||(l.setCoords(),c.onComplete&&c.onComplete(v,m,y))}};return s?t.util.animateColor(g.startValue,g.endValue,g.duration,g):t.util.animate(g)}}),function(o){var a=o.fabric||(o.fabric={}),c=a.util.object.extend,h=a.util.object.clone,l={x1:1,x2:1,y1:1,y2:1};if(a.Line){a.warn("fabric.Line is already defined");return}a.Line=a.util.createClass(a.Object,{type:"line",x1:0,y1:0,x2:0,y2:0,cacheProperties:a.Object.prototype.cacheProperties.concat("x1","x2","y1","y2"),initialize:function(s,d){s||(s=[0,0,0,0]),this.callSuper("initialize",d),this.set("x1",s[0]),this.set("y1",s[1]),this.set("x2",s[2]),this.set("y2",s[3]),this._setWidthHeight(d)},_setWidthHeight:function(s){s||(s={}),this.width=Math.abs(this.x2-this.x1),this.height=Math.abs(this.y2-this.y1),this.left="left"in s?s.left:this._getLeftToOriginX(),this.top="top"in s?s.top:this._getTopToOriginY()},_set:function(s,d){return this.callSuper("_set",s,d),typeof l[s]<"u"&&this._setWidthHeight(),this},_getLeftToOriginX:f({origin:"originX",axis1:"x1",axis2:"x2",dimension:"width"},{nearest:"left",center:"center",farthest:"right"}),_getTopToOriginY:f({origin:"originY",axis1:"y1",axis2:"y2",dimension:"height"},{nearest:"top",center:"center",farthest:"bottom"}),_render:function(s){s.beginPath();var d=this.calcLinePoints();s.moveTo(d.x1,d.y1),s.lineTo(d.x2,d.y2),s.lineWidth=this.strokeWidth;var g=s.strokeStyle;s.strokeStyle=this.stroke||s.fillStyle,this.stroke&&this._renderStroke(s),s.strokeStyle=g},_findCenterFromElement:function(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}},toObject:function(s){return c(this.callSuper("toObject",s),this.calcLinePoints())},_getNonTransformedDimensions:function(){var s=this.callSuper("_getNonTransformedDimensions");return this.strokeLineCap==="butt"&&(this.width===0&&(s.y-=this.strokeWidth),this.height===0&&(s.x-=this.strokeWidth)),s},calcLinePoints:function(){var s=this.x1<=this.x2?-1:1,d=this.y1<=this.y2?-1:1,g=s*this.width*.5,v=d*this.height*.5,m=s*this.width*-.5,y=d*this.height*-.5;return{x1:g,x2:m,y1:v,y2:y}},_toSVG:function(){var s=this.calcLinePoints();return["<line ","COMMON_PARTS",'x1="',s.x1,'" y1="',s.y1,'" x2="',s.x2,'" y2="',s.y2,`" />
`]}}),a.Line.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat("x1 y1 x2 y2".split(" ")),a.Line.fromElement=function(s,d,g){g=g||{};var v=a.parseAttributes(s,a.Line.ATTRIBUTE_NAMES),m=[v.x1||0,v.y1||0,v.x2||0,v.y2||0];d(new a.Line(m,c(v,g)))},a.Line.fromObject=function(s,d){function g(m){delete m.points,d&&d(m)}var v=h(s,!0);v.points=[s.x1,s.y1,s.x2,s.y2],a.Object._fromObject("Line",v,g,"points")};function f(s,d){var g=s.origin,v=s.axis1,m=s.axis2,y=s.dimension,b=d.nearest,_=d.center,S=d.farthest;return function(){switch(this.get(g)){case b:return Math.min(this.get(v),this.get(m));case _:return Math.min(this.get(v),this.get(m))+.5*this.get(y);case S:return Math.max(this.get(v),this.get(m))}}}}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.degreesToRadians;if(a.Circle){a.warn("fabric.Circle is already defined.");return}a.Circle=a.util.createClass(a.Object,{type:"circle",radius:0,startAngle:0,endAngle:360,cacheProperties:a.Object.prototype.cacheProperties.concat("radius","startAngle","endAngle"),_set:function(l,f){return this.callSuper("_set",l,f),l==="radius"&&this.setRadius(f),this},toObject:function(l){return this.callSuper("toObject",["radius","startAngle","endAngle"].concat(l))},_toSVG:function(){var l,f=0,s=0,d=(this.endAngle-this.startAngle)%360;if(d===0)l=["<circle ","COMMON_PARTS",'cx="'+f+'" cy="'+s+'" ','r="',this.radius,`" />
`];else{var g=c(this.startAngle),v=c(this.endAngle),m=this.radius,y=a.util.cos(g)*m,b=a.util.sin(g)*m,_=a.util.cos(v)*m,S=a.util.sin(v)*m,C=d>180?"1":"0";l=['<path d="M '+y+" "+b," A "+m+" "+m," 0 ",+C+" 1"," "+_+" "+S,'" ',"COMMON_PARTS",` />
`]}return l},_render:function(l){l.beginPath(),l.arc(0,0,this.radius,c(this.startAngle),c(this.endAngle),!1),this._renderPaintInOrder(l)},getRadiusX:function(){return this.get("radius")*this.get("scaleX")},getRadiusY:function(){return this.get("radius")*this.get("scaleY")},setRadius:function(l){return this.radius=l,this.set("width",l*2).set("height",l*2)}}),a.Circle.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat("cx cy r".split(" ")),a.Circle.fromElement=function(l,f){var s=a.parseAttributes(l,a.Circle.ATTRIBUTE_NAMES);if(!h(s))throw new Error("value of `r` attribute is required and can not be negative");s.left=(s.left||0)-s.radius,s.top=(s.top||0)-s.radius,f(new a.Circle(s))};function h(l){return"radius"in l&&l.radius>=0}a.Circle.fromObject=function(l,f){a.Object._fromObject("Circle",l,f)}}(e),function(o){var a=o.fabric||(o.fabric={});if(a.Triangle){a.warn("fabric.Triangle is already defined");return}a.Triangle=a.util.createClass(a.Object,{type:"triangle",width:100,height:100,_render:function(c){var h=this.width/2,l=this.height/2;c.beginPath(),c.moveTo(-h,l),c.lineTo(0,-l),c.lineTo(h,l),c.closePath(),this._renderPaintInOrder(c)},_toSVG:function(){var c=this.width/2,h=this.height/2,l=[-c+" "+h,"0 "+-h,c+" "+h].join(",");return["<polygon ","COMMON_PARTS",'points="',l,'" />']}}),a.Triangle.fromObject=function(c,h){return a.Object._fromObject("Triangle",c,h)}}(e),function(o){var a=o.fabric||(o.fabric={}),c=Math.PI*2;if(a.Ellipse){a.warn("fabric.Ellipse is already defined.");return}a.Ellipse=a.util.createClass(a.Object,{type:"ellipse",rx:0,ry:0,cacheProperties:a.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(h){this.callSuper("initialize",h),this.set("rx",h&&h.rx||0),this.set("ry",h&&h.ry||0)},_set:function(h,l){switch(this.callSuper("_set",h,l),h){case"rx":this.rx=l,this.set("width",l*2);break;case"ry":this.ry=l,this.set("height",l*2);break}return this},getRx:function(){return this.get("rx")*this.get("scaleX")},getRy:function(){return this.get("ry")*this.get("scaleY")},toObject:function(h){return this.callSuper("toObject",["rx","ry"].concat(h))},_toSVG:function(){return["<ellipse ","COMMON_PARTS",'cx="0" cy="0" ','rx="',this.rx,'" ry="',this.ry,`" />
`]},_render:function(h){h.beginPath(),h.save(),h.transform(1,0,0,this.ry/this.rx,0,0),h.arc(0,0,this.rx,0,c,!1),h.restore(),this._renderPaintInOrder(h)}}),a.Ellipse.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat("cx cy rx ry".split(" ")),a.Ellipse.fromElement=function(h,l){var f=a.parseAttributes(h,a.Ellipse.ATTRIBUTE_NAMES);f.left=(f.left||0)-f.rx,f.top=(f.top||0)-f.ry,l(new a.Ellipse(f))},a.Ellipse.fromObject=function(h,l){a.Object._fromObject("Ellipse",h,l)}}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.object.extend;if(a.Rect){a.warn("fabric.Rect is already defined");return}a.Rect=a.util.createClass(a.Object,{stateProperties:a.Object.prototype.stateProperties.concat("rx","ry"),type:"rect",rx:0,ry:0,cacheProperties:a.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(h){this.callSuper("initialize",h),this._initRxRy()},_initRxRy:function(){this.rx&&!this.ry?this.ry=this.rx:this.ry&&!this.rx&&(this.rx=this.ry)},_render:function(h){var l=this.rx?Math.min(this.rx,this.width/2):0,f=this.ry?Math.min(this.ry,this.height/2):0,s=this.width,d=this.height,g=-this.width/2,v=-this.height/2,m=l!==0||f!==0,y=1-.5522847498;h.beginPath(),h.moveTo(g+l,v),h.lineTo(g+s-l,v),m&&h.bezierCurveTo(g+s-y*l,v,g+s,v+y*f,g+s,v+f),h.lineTo(g+s,v+d-f),m&&h.bezierCurveTo(g+s,v+d-y*f,g+s-y*l,v+d,g+s-l,v+d),h.lineTo(g+l,v+d),m&&h.bezierCurveTo(g+y*l,v+d,g,v+d-y*f,g,v+d-f),h.lineTo(g,v+f),m&&h.bezierCurveTo(g,v+y*f,g+y*l,v,g+l,v),h.closePath(),this._renderPaintInOrder(h)},toObject:function(h){return this.callSuper("toObject",["rx","ry"].concat(h))},_toSVG:function(){var h=-this.width/2,l=-this.height/2;return["<rect ","COMMON_PARTS",'x="',h,'" y="',l,'" rx="',this.rx,'" ry="',this.ry,'" width="',this.width,'" height="',this.height,`" />
`]}}),a.Rect.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat("x y rx ry width height".split(" ")),a.Rect.fromElement=function(h,l,f){if(!h)return l(null);f=f||{};var s=a.parseAttributes(h,a.Rect.ATTRIBUTE_NAMES);s.left=s.left||0,s.top=s.top||0,s.height=s.height||0,s.width=s.width||0;var d=new a.Rect(c(f?a.util.object.clone(f):{},s));d.visible=d.visible&&d.width>0&&d.height>0,l(d)},a.Rect.fromObject=function(h,l){return a.Object._fromObject("Rect",h,l)}}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.object.extend,h=a.util.array.min,l=a.util.array.max,f=a.util.toFixed,s=a.util.projectStrokeOnPoints;if(a.Polyline){a.warn("fabric.Polyline is already defined");return}a.Polyline=a.util.createClass(a.Object,{type:"polyline",points:null,exactBoundingBox:!1,cacheProperties:a.Object.prototype.cacheProperties.concat("points"),initialize:function(d,g){g=g||{},this.points=d||[],this.callSuper("initialize",g),this._setPositionDimensions(g)},_projectStrokeOnPoints:function(){return s(this.points,this,!0)},_setPositionDimensions:function(d){var g=this._calcDimensions(d),v,m=this.exactBoundingBox?this.strokeWidth:0;this.width=g.width-m,this.height=g.height-m,d.fromSVG||(v=this.translateToGivenOrigin({x:g.left-this.strokeWidth/2+m/2,y:g.top-this.strokeWidth/2+m/2},"left","top",this.originX,this.originY)),typeof d.left>"u"&&(this.left=d.fromSVG?g.left:v.x),typeof d.top>"u"&&(this.top=d.fromSVG?g.top:v.y),this.pathOffset={x:g.left+this.width/2+m/2,y:g.top+this.height/2+m/2}},_calcDimensions:function(){var d=this.exactBoundingBox?this._projectStrokeOnPoints():this.points,g=h(d,"x")||0,v=h(d,"y")||0,m=l(d,"x")||0,y=l(d,"y")||0,b=m-g,_=y-v;return{left:g,top:v,width:b,height:_}},toObject:function(d){return c(this.callSuper("toObject",d),{points:this.points.concat()})},_toSVG:function(){for(var d=[],g=this.pathOffset.x,v=this.pathOffset.y,m=a.Object.NUM_FRACTION_DIGITS,y=0,b=this.points.length;y<b;y++)d.push(f(this.points[y].x-g,m),",",f(this.points[y].y-v,m)," ");return["<"+this.type+" ","COMMON_PARTS",'points="',d.join(""),`" />
`]},commonRender:function(d){var g,v=this.points.length,m=this.pathOffset.x,y=this.pathOffset.y;if(!v||isNaN(this.points[v-1].y))return!1;d.beginPath(),d.moveTo(this.points[0].x-m,this.points[0].y-y);for(var b=0;b<v;b++)g=this.points[b],d.lineTo(g.x-m,g.y-y);return!0},_render:function(d){!this.commonRender(d)||this._renderPaintInOrder(d)},complexity:function(){return this.get("points").length}}),a.Polyline.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat(),a.Polyline.fromElementGenerator=function(d){return function(g,v,m){if(!g)return v(null);m||(m={});var y=a.parsePointsAttribute(g.getAttribute("points")),b=a.parseAttributes(g,a[d].ATTRIBUTE_NAMES);b.fromSVG=!0,v(new a[d](y,c(b,m)))}},a.Polyline.fromElement=a.Polyline.fromElementGenerator("Polyline"),a.Polyline.fromObject=function(d,g){return a.Object._fromObject("Polyline",d,g,"points")}}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.projectStrokeOnPoints;if(a.Polygon){a.warn("fabric.Polygon is already defined");return}a.Polygon=a.util.createClass(a.Polyline,{type:"polygon",_projectStrokeOnPoints:function(){return c(this.points,this)},_render:function(h){!this.commonRender(h)||(h.closePath(),this._renderPaintInOrder(h))}}),a.Polygon.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat(),a.Polygon.fromElement=a.Polyline.fromElementGenerator("Polygon"),a.Polygon.fromObject=function(h,l){a.Object._fromObject("Polygon",h,l,"points")}}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.array.min,h=a.util.array.max,l=a.util.object.extend,f=a.util.object.clone,s=a.util.toFixed;if(a.Path){a.warn("fabric.Path is already defined");return}a.Path=a.util.createClass(a.Object,{type:"path",path:null,cacheProperties:a.Object.prototype.cacheProperties.concat("path","fillRule"),stateProperties:a.Object.prototype.stateProperties.concat("path"),initialize:function(d,g){g=f(g||{}),delete g.path,this.callSuper("initialize",g),this._setPath(d||[],g)},_setPath:function(d,g){this.path=a.util.makePathSimpler(Array.isArray(d)?d:a.util.parsePath(d)),a.Polyline.prototype._setPositionDimensions.call(this,g||{})},_renderPathCommands:function(d){var g,v=0,m=0,y=0,b=0,_=0,S=0,C=-this.pathOffset.x,T=-this.pathOffset.y;d.beginPath();for(var E=0,O=this.path.length;E<O;++E)switch(g=this.path[E],g[0]){case"L":y=g[1],b=g[2],d.lineTo(y+C,b+T);break;case"M":y=g[1],b=g[2],v=y,m=b,d.moveTo(y+C,b+T);break;case"C":y=g[5],b=g[6],_=g[3],S=g[4],d.bezierCurveTo(g[1]+C,g[2]+T,_+C,S+T,y+C,b+T);break;case"Q":d.quadraticCurveTo(g[1]+C,g[2]+T,g[3]+C,g[4]+T),y=g[3],b=g[4],_=g[1],S=g[2];break;case"z":case"Z":y=v,b=m,d.closePath();break}},_render:function(d){this._renderPathCommands(d),this._renderPaintInOrder(d)},toString:function(){return"#<fabric.Path ("+this.complexity()+'): { "top": '+this.top+', "left": '+this.left+" }>"},toObject:function(d){return l(this.callSuper("toObject",d),{path:this.path.map(function(g){return g.slice()})})},toDatalessObject:function(d){var g=this.toObject(["sourcePath"].concat(d));return g.sourcePath&&delete g.path,g},_toSVG:function(){var d=a.util.joinPath(this.path);return["<path ","COMMON_PARTS",'d="',d,'" stroke-linecap="round" ',`/>
`]},_getOffsetTransform:function(){var d=a.Object.NUM_FRACTION_DIGITS;return" translate("+s(-this.pathOffset.x,d)+", "+s(-this.pathOffset.y,d)+")"},toClipPathSVG:function(d){var g=this._getOffsetTransform();return" "+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:d,additionalTransform:g})},toSVG:function(d){var g=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:d,additionalTransform:g})},complexity:function(){return this.path.length},_calcDimensions:function(){for(var d=[],g=[],v,m=0,y=0,b=0,_=0,S,C=0,T=this.path.length;C<T;++C){switch(v=this.path[C],v[0]){case"L":b=v[1],_=v[2],S=[];break;case"M":b=v[1],_=v[2],m=b,y=_,S=[];break;case"C":S=a.util.getBoundsOfCurve(b,_,v[1],v[2],v[3],v[4],v[5],v[6]),b=v[5],_=v[6];break;case"Q":S=a.util.getBoundsOfCurve(b,_,v[1],v[2],v[1],v[2],v[3],v[4]),b=v[3],_=v[4];break;case"z":case"Z":b=m,_=y;break}S.forEach(function(P){d.push(P.x),g.push(P.y)}),d.push(b),g.push(_)}var E=c(d)||0,O=c(g)||0,D=h(d)||0,j=h(g)||0,k=D-E,U=j-O;return{left:E,top:O,width:k,height:U}}}),a.Path.fromObject=function(d,g){if(typeof d.sourcePath=="string"){var v=d.sourcePath;a.loadSVGFromURL(v,function(m){var y=m[0];y.setOptions(d),d.clipPath?a.util.enlivenObjects([d.clipPath],function(b){y.clipPath=b[0],g&&g(y)}):g&&g(y)})}else a.Object._fromObject("Path",d,g,"path")},a.Path.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat(["d"]),a.Path.fromElement=function(d,g,v){var m=a.parseAttributes(d,a.Path.ATTRIBUTE_NAMES);m.fromSVG=!0,g(new a.Path(m.d,l(m,v)))}}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.array.min,h=a.util.array.max;a.Group||(a.Group=a.util.createClass(a.Object,a.Collection,{type:"group",strokeWidth:0,subTargetCheck:!1,cacheProperties:[],useSetOnGroup:!1,initialize:function(l,f,s){f=f||{},this._objects=[],s&&this.callSuper("initialize",f),this._objects=l||[];for(var d=this._objects.length;d--;)this._objects[d].group=this;if(s)this._updateObjectsACoords();else{var g=f&&f.centerPoint;f.originX!==void 0&&(this.originX=f.originX),f.originY!==void 0&&(this.originY=f.originY),g||this._calcBounds(),this._updateObjectsCoords(g),delete f.centerPoint,this.callSuper("initialize",f)}this.setCoords()},_updateObjectsACoords:function(){for(var l=!0,f=this._objects.length;f--;)this._objects[f].setCoords(l)},_updateObjectsCoords:function(f){for(var f=f||this.getCenterPoint(),s=this._objects.length;s--;)this._updateObjectCoords(this._objects[s],f)},_updateObjectCoords:function(l,f){var s=l.left,d=l.top,g=!0;l.set({left:s-f.x,top:d-f.y}),l.group=this,l.setCoords(g)},toString:function(){return"#<fabric.Group: ("+this.complexity()+")>"},addWithUpdate:function(l){var f=!!this.group;return this._restoreObjectsState(),a.util.resetObjectTransform(this),l&&(f&&a.util.removeTransformFromObject(l,this.group.calcTransformMatrix()),this._objects.push(l),l.group=this,l._set("canvas",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.dirty=!0,f?this.group.addWithUpdate():this.setCoords(),this},removeWithUpdate:function(l){return this._restoreObjectsState(),a.util.resetObjectTransform(this),this.remove(l),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(l){this.dirty=!0,l.group=this,l._set("canvas",this.canvas)},_onObjectRemoved:function(l){this.dirty=!0,delete l.group},_set:function(l,f){var s=this._objects.length;if(this.useSetOnGroup)for(;s--;)this._objects[s].setOnGroup(l,f);if(l==="canvas")for(;s--;)this._objects[s]._set(l,f);a.Object.prototype._set.call(this,l,f)},toObject:function(l){var f=this.includeDefaultValues,s=this._objects.filter(function(g){return!g.excludeFromExport}).map(function(g){var v=g.includeDefaultValues;g.includeDefaultValues=f;var m=g.toObject(l);return g.includeDefaultValues=v,m}),d=a.Object.prototype.toObject.call(this,l);return d.objects=s,d},toDatalessObject:function(l){var f,s=this.sourcePath;if(s)f=s;else{var d=this.includeDefaultValues;f=this._objects.map(function(v){var m=v.includeDefaultValues;v.includeDefaultValues=d;var y=v.toDatalessObject(l);return v.includeDefaultValues=m,y})}var g=a.Object.prototype.toDatalessObject.call(this,l);return g.objects=f,g},render:function(l){this._transformDone=!0,this.callSuper("render",l),this._transformDone=!1},shouldCache:function(){var l=a.Object.prototype.shouldCache.call(this);if(l){for(var f=0,s=this._objects.length;f<s;f++)if(this._objects[f].willDrawShadow())return this.ownCaching=!1,!1}return l},willDrawShadow:function(){if(a.Object.prototype.willDrawShadow.call(this))return!0;for(var l=0,f=this._objects.length;l<f;l++)if(this._objects[l].willDrawShadow())return!0;return!1},isOnACache:function(){return this.ownCaching||this.group&&this.group.isOnACache()},drawObject:function(l){for(var f=0,s=this._objects.length;f<s;f++)this._objects[f].render(l);this._drawClipPath(l,this.clipPath)},isCacheDirty:function(l){if(this.callSuper("isCacheDirty",l))return!0;if(!this.statefullCache)return!1;for(var f=0,s=this._objects.length;f<s;f++)if(this._objects[f].isCacheDirty(!0)){if(this._cacheCanvas){var d=this.cacheWidth/this.zoomX,g=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-d/2,-g/2,d,g)}return!0}return!1},_restoreObjectsState:function(){var l=this.calcOwnMatrix();return this._objects.forEach(function(f){a.util.addTransformToObject(f,l),delete f.group,f.setCoords()}),this},destroy:function(){return this._objects.forEach(function(l){l.set("dirty",!0)}),this._restoreObjectsState()},dispose:function(){this.callSuper("dispose"),this.forEachObject(function(l){l.dispose&&l.dispose()}),this._objects=[]},toActiveSelection:function(){if(!!this.canvas){var l=this._objects,f=this.canvas;this._objects=[];var s=this.toObject();delete s.objects;var d=new a.ActiveSelection([]);return d.set(s),d.type="activeSelection",f.remove(this),l.forEach(function(g){g.group=d,g.dirty=!0,f.add(g)}),d.canvas=f,d._objects=l,f._activeObject=d,d.setCoords(),d}},ungroupOnCanvas:function(){return this._restoreObjectsState()},setObjectsCoords:function(){var l=!0;return this.forEachObject(function(f){f.setCoords(l)}),this},_calcBounds:function(l){for(var f=[],s=[],d,g,v,m=["tr","br","bl","tl"],y=0,b=this._objects.length,_,S=m.length;y<b;++y){for(d=this._objects[y],v=d.calcACoords(),_=0;_<S;_++)g=m[_],f.push(v[g].x),s.push(v[g].y);d.aCoords=v}this._getBounds(f,s,l)},_getBounds:function(l,f,s){var d=new a.Point(c(l),c(f)),g=new a.Point(h(l),h(f)),v=d.y||0,m=d.x||0,y=g.x-d.x||0,b=g.y-d.y||0;this.width=y,this.height=b,s||this.setPositionByOrigin({x:m,y:v},"left","top")},_toSVG:function(l){for(var f=["<g ","COMMON_PARTS",` >
`],s=0,d=this._objects.length;s<d;s++)f.push(" ",this._objects[s].toSVG(l));return f.push(`</g>
`),f},getSvgStyles:function(){var l=typeof this.opacity<"u"&&this.opacity!==1?"opacity: "+this.opacity+";":"",f=this.visible?"":" visibility: hidden;";return[l,this.getSvgFilter(),f].join("")},toClipPathSVG:function(l){for(var f=[],s=0,d=this._objects.length;s<d;s++)f.push(" ",this._objects[s].toClipPathSVG(l));return this._createBaseClipPathSVGMarkup(f,{reviver:l})}}),a.Group.fromObject=function(l,f){var s=l.objects,d=a.util.object.clone(l,!0);if(delete d.objects,typeof s=="string"){a.loadSVGFromURL(s,function(g){var v=a.util.groupSVGElements(g,l,s),m=d.clipPath;delete d.clipPath,v.set(d),m?a.util.enlivenObjects([m],function(y){v.clipPath=y[0],f&&f(v)}):f&&f(v)});return}a.util.enlivenObjects(s,function(g){a.util.enlivenObjectEnlivables(l,d,function(){f&&f(new a.Group(g,d,!0))})})})}(e),function(o){var a=o.fabric||(o.fabric={});a.ActiveSelection||(a.ActiveSelection=a.util.createClass(a.Group,{type:"activeSelection",initialize:function(c,h){h=h||{},this._objects=c||[];for(var l=this._objects.length;l--;)this._objects[l].group=this;h.originX&&(this.originX=h.originX),h.originY&&(this.originY=h.originY),this._calcBounds(),this._updateObjectsCoords(),a.Object.prototype.initialize.call(this,h),this.setCoords()},toGroup:function(){var c=this._objects.concat();this._objects=[];var h=a.Object.prototype.toObject.call(this),l=new a.Group([]);if(delete h.type,l.set(h),c.forEach(function(s){s.canvas.remove(s),s.group=l}),l._objects=c,!this.canvas)return l;var f=this.canvas;return f.add(l),f._activeObject=l,l.setCoords(),l},onDeselect:function(){return this.destroy(),!1},toString:function(){return"#<fabric.ActiveSelection: ("+this.complexity()+")>"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(c,h,l){c.save(),c.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,l=l||{},typeof l.hasControls>"u"&&(l.hasControls=!1),l.forActiveSelection=!0;for(var f=0,s=this._objects.length;f<s;f++)this._objects[f]._renderControls(c,l);this.callSuper("_renderControls",c,h),c.restore()}}),a.ActiveSelection.fromObject=function(c,h){a.util.enlivenObjects(c.objects,function(l){delete c.objects,h&&h(new a.ActiveSelection(l,c,!0))})})}(e),function(o){var a=t.util.object.extend;if(o.fabric||(o.fabric={}),o.fabric.Image){t.warn("fabric.Image is already defined.");return}t.Image=t.util.createClass(t.Object,{type:"image",strokeWidth:0,srcFromAttribute:!1,_lastScaleX:1,_lastScaleY:1,_filterScalingX:1,_filterScalingY:1,minimumScaleTrigger:.5,stateProperties:t.Object.prototype.stateProperties.concat("cropX","cropY"),cacheProperties:t.Object.prototype.cacheProperties.concat("cropX","cropY"),cacheKey:"",cropX:0,cropY:0,imageSmoothing:!0,initialize:function(c,h){h||(h={}),this.filters=[],this.cacheKey="texture"+t.Object.__uid++,this.callSuper("initialize",h),this._initElement(c,h)},getElement:function(){return this._element||{}},setElement:function(c,h){return this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._element=c,this._originalElement=c,this._initConfig(h),this.filters.length!==0&&this.applyFilters(),this.resizeFilter&&this.applyResizeFilters(),this},removeTexture:function(c){var h=t.filterBackend;h&&h.evictCachesForKey&&h.evictCachesForKey(c)},dispose:function(){this.callSuper("dispose"),this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._cacheContext=void 0,["_originalElement","_element","_filteredEl","_cacheCanvas"].forEach(function(c){t.util.cleanUpJsdomNode(this[c]),this[c]=void 0}.bind(this))},getCrossOrigin:function(){return this._originalElement&&(this._originalElement.crossOrigin||null)},getOriginalSize:function(){var c=this.getElement();return{width:c.naturalWidth||c.width,height:c.naturalHeight||c.height}},_stroke:function(c){if(!(!this.stroke||this.strokeWidth===0)){var h=this.width/2,l=this.height/2;c.beginPath(),c.moveTo(-h,-l),c.lineTo(h,-l),c.lineTo(h,l),c.lineTo(-h,l),c.lineTo(-h,-l),c.closePath()}},toObject:function(c){var h=[];this.filters.forEach(function(f){f&&h.push(f.toObject())});var l=a(this.callSuper("toObject",["cropX","cropY"].concat(c)),{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:h});return this.resizeFilter&&(l.resizeFilter=this.resizeFilter.toObject()),l},hasCrop:function(){return this.cropX||this.cropY||this.width<this._element.width||this.height<this._element.height},_toSVG:function(){var c=[],h=[],l,f=this._element,s=-this.width/2,d=-this.height/2,g="",v="";if(!f)return[];if(this.hasCrop()){var m=t.Object.__uid++;c.push('<clipPath id="imageCrop_'+m+`">
`,' <rect x="'+s+'" y="'+d+'" width="'+this.width+'" height="'+this.height+`" />
`,`</clipPath>
`),g=' clip-path="url(#imageCrop_'+m+')" '}if(this.imageSmoothing||(v='" image-rendering="optimizeSpeed'),h.push(" <image ","COMMON_PARTS",'xlink:href="',this.getSvgSrc(!0),'" x="',s-this.cropX,'" y="',d-this.cropY,'" width="',f.width||f.naturalWidth,'" height="',f.height||f.height,v,'"',g,`></image>
`),this.stroke||this.strokeDashArray){var y=this.fill;this.fill=null,l=[" <rect ",'x="',s,'" y="',d,'" width="',this.width,'" height="',this.height,'" style="',this.getSvgStyles(),`"/>
`],this.fill=y}return this.paintFirst!=="fill"?c=c.concat(l,h):c=c.concat(h,l),c},getSrc:function(c){var h=c?this._element:this._originalElement;return h?h.toDataURL?h.toDataURL():this.srcFromAttribute?h.getAttribute("src"):h.src:this.src||""},setSrc:function(c,h,l){return t.util.loadImage(c,function(f,s){this.setElement(f,l),this._setWidthHeight(),h&&h(this,s)},this,l&&l.crossOrigin),this},toString:function(){return'#<fabric.Image: { src: "'+this.getSrc()+'" }>'},applyResizeFilters:function(){var c=this.resizeFilter,h=this.minimumScaleTrigger,l=this.getTotalObjectScaling(),f=l.scaleX,s=l.scaleY,d=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!c||f>h&&s>h){this._element=d,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=f,this._lastScaleY=s;return}t.filterBackend||(t.filterBackend=t.initFilterBackend());var g=t.util.createCanvasElement(),v=this._filteredEl?this.cacheKey+"_filtered":this.cacheKey,m=d.width,y=d.height;g.width=m,g.height=y,this._element=g,this._lastScaleX=c.scaleX=f,this._lastScaleY=c.scaleY=s,t.filterBackend.applyFilters([c],d,m,y,this._element,v),this._filterScalingX=g.width/this._originalElement.width,this._filterScalingY=g.height/this._originalElement.height},applyFilters:function(c){if(c=c||this.filters||[],c=c.filter(function(d){return d&&!d.isNeutralState()}),this.set("dirty",!0),this.removeTexture(this.cacheKey+"_filtered"),c.length===0)return this._element=this._originalElement,this._filteredEl=null,this._filterScalingX=1,this._filterScalingY=1,this;var h=this._originalElement,l=h.naturalWidth||h.width,f=h.naturalHeight||h.height;if(this._element===this._originalElement){var s=t.util.createCanvasElement();s.width=l,s.height=f,this._element=s,this._filteredEl=s}else this._element=this._filteredEl,this._filteredEl.getContext("2d").clearRect(0,0,l,f),this._lastScaleX=1,this._lastScaleY=1;return t.filterBackend||(t.filterBackend=t.initFilterBackend()),t.filterBackend.applyFilters(c,this._originalElement,l,f,this._element,this.cacheKey),(this._originalElement.width!==this._element.width||this._originalElement.height!==this._element.height)&&(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height),this},_render:function(c){t.util.setImageSmoothing(c,this.imageSmoothing),this.isMoving!==!0&&this.resizeFilter&&this._needsResize()&&this.applyResizeFilters(),this._stroke(c),this._renderPaintInOrder(c)},drawCacheOnCanvas:function(c){t.util.setImageSmoothing(c,this.imageSmoothing),t.Object.prototype.drawCacheOnCanvas.call(this,c)},shouldCache:function(){return this.needsItsOwnCache()},_renderFill:function(c){var h=this._element;if(!!h){var l=this._filterScalingX,f=this._filterScalingY,s=this.width,d=this.height,g=Math.min,v=Math.max,m=v(this.cropX,0),y=v(this.cropY,0),b=h.naturalWidth||h.width,_=h.naturalHeight||h.height,S=m*l,C=y*f,T=g(s*l,b-S),E=g(d*f,_-C),O=-s/2,D=-d/2,j=g(s,b/l-m),k=g(d,_/f-y);h&&c.drawImage(h,S,C,T,E,O,D,j,k)}},_needsResize:function(){var c=this.getTotalObjectScaling();return c.scaleX!==this._lastScaleX||c.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(c,h){this.setElement(t.util.getById(c),h),t.util.addClass(this.getElement(),t.Image.CSS_CANVAS)},_initConfig:function(c){c||(c={}),this.setOptions(c),this._setWidthHeight(c)},_initFilters:function(c,h){c&&c.length?t.util.enlivenObjects(c,function(l){h&&h(l)},"fabric.Image.filters"):h&&h()},_setWidthHeight:function(c){c||(c={});var h=this.getElement();this.width=c.width||h.naturalWidth||h.width||0,this.height=c.height||h.naturalHeight||h.height||0},parsePreserveAspectRatioAttribute:function(){var c=t.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||""),h=this._element.width,l=this._element.height,f=1,s=1,d=0,g=0,v=0,m=0,y,b=this.width,_=this.height,S={width:b,height:_};return c&&(c.alignX!=="none"||c.alignY!=="none")?(c.meetOrSlice==="meet"&&(f=s=t.util.findScaleToFit(this._element,S),y=(b-h*f)/2,c.alignX==="Min"&&(d=-y),c.alignX==="Max"&&(d=y),y=(_-l*s)/2,c.alignY==="Min"&&(g=-y),c.alignY==="Max"&&(g=y)),c.meetOrSlice==="slice"&&(f=s=t.util.findScaleToCover(this._element,S),y=h-b/f,c.alignX==="Mid"&&(v=y/2),c.alignX==="Max"&&(v=y),y=l-_/s,c.alignY==="Mid"&&(m=y/2),c.alignY==="Max"&&(m=y),h=b/f,l=_/s)):(f=b/h,s=_/l),{width:h,height:l,scaleX:f,scaleY:s,offsetLeft:d,offsetTop:g,cropX:v,cropY:m}}}),t.Image.CSS_CANVAS="canvas-img",t.Image.prototype.getSvgSrc=t.Image.prototype.getSrc,t.Image.fromObject=function(c,h){var l=t.util.object.clone(c);t.util.loadImage(l.src,function(f,s){if(s){h&&h(null,!0);return}t.Image.prototype._initFilters.call(l,l.filters,function(d){l.filters=d||[],t.Image.prototype._initFilters.call(l,[l.resizeFilter],function(g){l.resizeFilter=g[0],t.util.enlivenObjectEnlivables(l,l,function(){var v=new t.Image(f,l);h(v,!1)})})})},null,l.crossOrigin)},t.Image.fromURL=function(c,h,l){t.util.loadImage(c,function(f,s){h&&h(new t.Image(f,l),s)},null,l&&l.crossOrigin)},t.Image.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y width height preserveAspectRatio xlink:href crossOrigin image-rendering".split(" ")),t.Image.fromElement=function(c,h,l){var f=t.parseAttributes(c,t.Image.ATTRIBUTE_NAMES);t.Image.fromURL(f["xlink:href"],h,a(l?t.util.object.clone(l):{},f))}}(e),t.util.object.extend(t.Object.prototype,{_getAngleValueForStraighten:function(){var o=this.angle%360;return o>0?Math.round((o-1)/90)*90:Math.round(o/90)*90},straighten:function(){return this.rotate(this._getAngleValueForStraighten())},fxStraighten:function(o){o=o||{};var a=function(){},c=o.onComplete||a,h=o.onChange||a,l=this;return t.util.animate({target:this,startValue:this.get("angle"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(f){l.rotate(f),h()},onComplete:function(){l.setCoords(),c()}})}}),t.util.object.extend(t.StaticCanvas.prototype,{straightenObject:function(o){return o.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(o){return o.fxStraighten({onChange:this.requestRenderAllBound})}}),function(){function o(c,h){var l="precision "+h+` float;
void main(){}`,f=c.createShader(c.FRAGMENT_SHADER);return c.shaderSource(f,l),c.compileShader(f),!!c.getShaderParameter(f,c.COMPILE_STATUS)}t.isWebglSupported=function(c){if(t.isLikelyNode)return!1;c=c||t.WebglFilterBackend.prototype.tileSize;var h=document.createElement("canvas"),l=h.getContext("webgl")||h.getContext("experimental-webgl"),f=!1;if(l){t.maxTextureSize=l.getParameter(l.MAX_TEXTURE_SIZE),f=t.maxTextureSize>=c;for(var s=["highp","mediump","lowp"],d=0;d<3;d++)if(o(l,s[d])){t.webGlPrecision=s[d];break}}return this.isSupported=f,f},t.WebglFilterBackend=a;function a(c){c&&c.tileSize&&(this.tileSize=c.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}a.prototype={tileSize:2048,resources:{},setupGLContext:function(c,h){this.dispose(),this.createWebGLCanvas(c,h),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(c,h)},chooseFastestCopyGLTo2DMethod:function(c,h){var l=typeof window.performance<"u",f;try{new ImageData(1,1),f=!0}catch{f=!1}var s=typeof ArrayBuffer<"u",d=typeof Uint8ClampedArray<"u";if(!!(l&&f&&s&&d)){var g=t.util.createCanvasElement(),v=new ArrayBuffer(c*h*4);if(t.forceGLPutImageData){this.imageBuffer=v,this.copyGLTo2D=p;return}var m={imageBuffer:v,destinationWidth:c,destinationHeight:h,targetCanvas:g},y,b,_;g.width=c,g.height=h,y=window.performance.now(),u.call(m,this.gl,m),b=window.performance.now()-y,y=window.performance.now(),p.call(m,this.gl,m),_=window.performance.now()-y,b>_?(this.imageBuffer=v,this.copyGLTo2D=p):this.copyGLTo2D=u}},createWebGLCanvas:function(c,h){var l=t.util.createCanvasElement();l.width=c,l.height=h;var f={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},s=l.getContext("webgl",f);s||(s=l.getContext("experimental-webgl",f)),s&&(s.clearColor(0,0,0,0),this.canvas=l,this.gl=s)},applyFilters:function(c,h,l,f,s,d){var g=this.gl,v;d&&(v=this.getCachedTexture(d,h));var m={originalWidth:h.width||h.originalWidth,originalHeight:h.height||h.originalHeight,sourceWidth:l,sourceHeight:f,destinationWidth:l,destinationHeight:f,context:g,sourceTexture:this.createTexture(g,l,f,!v&&h),targetTexture:this.createTexture(g,l,f),originalTexture:v||this.createTexture(g,l,f,!v&&h),passes:c.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:s},y=g.createFramebuffer();return g.bindFramebuffer(g.FRAMEBUFFER,y),c.forEach(function(b){b&&b.applyTo(m)}),i(m),this.copyGLTo2D(g,m),g.bindTexture(g.TEXTURE_2D,null),g.deleteTexture(m.sourceTexture),g.deleteTexture(m.targetTexture),g.deleteFramebuffer(y),s.getContext("2d").setTransform(1,0,0,1,0,0),m},dispose:function(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(c,h,l,f,s){var d=c.createTexture();return c.bindTexture(c.TEXTURE_2D,d),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,s||c.NEAREST),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,s||c.NEAREST),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE),f?c.texImage2D(c.TEXTURE_2D,0,c.RGBA,c.RGBA,c.UNSIGNED_BYTE,f):c.texImage2D(c.TEXTURE_2D,0,c.RGBA,h,l,0,c.RGBA,c.UNSIGNED_BYTE,null),d},getCachedTexture:function(c,h){if(this.textureCache[c])return this.textureCache[c];var l=this.createTexture(this.gl,h.width,h.height,h);return this.textureCache[c]=l,l},evictCachesForKey:function(c){this.textureCache[c]&&(this.gl.deleteTexture(this.textureCache[c]),delete this.textureCache[c])},copyGLTo2D:u,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var c=this.gl,h={renderer:"",vendor:""};if(!c)return h;var l=c.getExtension("WEBGL_debug_renderer_info");if(l){var f=c.getParameter(l.UNMASKED_RENDERER_WEBGL),s=c.getParameter(l.UNMASKED_VENDOR_WEBGL);f&&(h.renderer=f.toLowerCase()),s&&(h.vendor=s.toLowerCase())}return this.gpuInfo=h,h}}}();function i(o){var a=o.targetCanvas,c=a.width,h=a.height,l=o.destinationWidth,f=o.destinationHeight;(c!==l||h!==f)&&(a.width=l,a.height=f)}function u(o,a){var c=o.canvas,h=a.targetCanvas,l=h.getContext("2d");l.translate(0,h.height),l.scale(1,-1);var f=c.height-h.height;l.drawImage(c,0,f,h.width,h.height,0,0,h.width,h.height)}function p(o,a){var c=a.targetCanvas,h=c.getContext("2d"),l=a.destinationWidth,f=a.destinationHeight,s=l*f*4,d=new Uint8Array(this.imageBuffer,0,s),g=new Uint8ClampedArray(this.imageBuffer,0,s);o.readPixels(0,0,l,f,o.RGBA,o.UNSIGNED_BYTE,d);var v=new ImageData(g,l,f);h.putImageData(v,0,0)}(function(){var o=function(){};t.Canvas2dFilterBackend=a;function a(){}a.prototype={evictCachesForKey:o,dispose:o,clearWebGLCaches:o,resources:{},applyFilters:function(c,h,l,f,s){var d=s.getContext("2d");d.drawImage(h,0,0,l,f);var g=d.getImageData(0,0,l,f),v=d.getImageData(0,0,l,f),m={sourceWidth:l,sourceHeight:f,imageData:g,originalEl:h,originalImageData:v,canvasEl:s,ctx:d,filterBackend:this};return c.forEach(function(y){y.applyTo(m)}),(m.imageData.width!==l||m.imageData.height!==f)&&(s.width=m.imageData.width,s.height=m.imageData.height),d.putImageData(m.imageData,0,0),m}}})(),t.Image=t.Image||{},t.Image.filters=t.Image.filters||{},t.Image.filters.BaseFilter=t.util.createClass({type:"BaseFilter",vertexSource:`attribute vec2 aPosition;
varying vec2 vTexCoord;
void main() {
vTexCoord = aPosition;
gl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);
}`,fragmentSource:`precision highp float;
varying vec2 vTexCoord;
uniform sampler2D uTexture;
void main() {
gl_FragColor = texture2D(uTexture, vTexCoord);
}`,initialize:function(o){o&&this.setOptions(o)},setOptions:function(o){for(var a in o)this[a]=o[a]},createProgram:function(o,a,c){a=a||this.fragmentSource,c=c||this.vertexSource,t.webGlPrecision!=="highp"&&(a=a.replace(/precision highp float/g,"precision "+t.webGlPrecision+" float"));var h=o.createShader(o.VERTEX_SHADER);if(o.shaderSource(h,c),o.compileShader(h),!o.getShaderParameter(h,o.COMPILE_STATUS))throw new Error("Vertex shader compile error for "+this.type+": "+o.getShaderInfoLog(h));var l=o.createShader(o.FRAGMENT_SHADER);if(o.shaderSource(l,a),o.compileShader(l),!o.getShaderParameter(l,o.COMPILE_STATUS))throw new Error("Fragment shader compile error for "+this.type+": "+o.getShaderInfoLog(l));var f=o.createProgram();if(o.attachShader(f,h),o.attachShader(f,l),o.linkProgram(f),!o.getProgramParameter(f,o.LINK_STATUS))throw new Error('Shader link error for "${this.type}" '+o.getProgramInfoLog(f));var s=this.getAttributeLocations(o,f),d=this.getUniformLocations(o,f)||{};return d.uStepW=o.getUniformLocation(f,"uStepW"),d.uStepH=o.getUniformLocation(f,"uStepH"),{program:f,attributeLocations:s,uniformLocations:d}},getAttributeLocations:function(o,a){return{aPosition:o.getAttribLocation(a,"aPosition")}},getUniformLocations:function(){return{}},sendAttributeData:function(o,a,c){var h=a.aPosition,l=o.createBuffer();o.bindBuffer(o.ARRAY_BUFFER,l),o.enableVertexAttribArray(h),o.vertexAttribPointer(h,2,o.FLOAT,!1,0,0),o.bufferData(o.ARRAY_BUFFER,c,o.STATIC_DRAW)},_setupFrameBuffer:function(o){var a=o.context,c,h;o.passes>1?(c=o.destinationWidth,h=o.destinationHeight,(o.sourceWidth!==c||o.sourceHeight!==h)&&(a.deleteTexture(o.targetTexture),o.targetTexture=o.filterBackend.createTexture(a,c,h)),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,o.targetTexture,0)):(a.bindFramebuffer(a.FRAMEBUFFER,null),a.finish())},_swapTextures:function(o){o.passes--,o.pass++;var a=o.targetTexture;o.targetTexture=o.sourceTexture,o.sourceTexture=a},isNeutralState:function(){var o=this.mainParameter,a=t.Image.filters[this.type].prototype;if(o)if(Array.isArray(a[o])){for(var c=a[o].length;c--;)if(this[o][c]!==a[o][c])return!1;return!0}else return a[o]===this[o];else return!1},applyTo:function(o){o.webgl?(this._setupFrameBuffer(o),this.applyToWebGL(o),this._swapTextures(o)):this.applyTo2d(o)},retrieveShader:function(o){return o.programCache.hasOwnProperty(this.type)||(o.programCache[this.type]=this.createProgram(o.context)),o.programCache[this.type]},applyToWebGL:function(o){var a=o.context,c=this.retrieveShader(o);o.pass===0&&o.originalTexture?a.bindTexture(a.TEXTURE_2D,o.originalTexture):a.bindTexture(a.TEXTURE_2D,o.sourceTexture),a.useProgram(c.program),this.sendAttributeData(a,c.attributeLocations,o.aPosition),a.uniform1f(c.uniformLocations.uStepW,1/o.sourceWidth),a.uniform1f(c.uniformLocations.uStepH,1/o.sourceHeight),this.sendUniformData(a,c.uniformLocations),a.viewport(0,0,o.destinationWidth,o.destinationHeight),a.drawArrays(a.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(o,a,c){o.activeTexture(c),o.bindTexture(o.TEXTURE_2D,a),o.activeTexture(o.TEXTURE0)},unbindAdditionalTexture:function(o,a){o.activeTexture(a),o.bindTexture(o.TEXTURE_2D,null),o.activeTexture(o.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(o){this[this.mainParameter]=o},sendUniformData:function(){},createHelpLayer:function(o){if(!o.helpLayer){var a=document.createElement("canvas");a.width=o.sourceWidth,a.height=o.sourceHeight,o.helpLayer=a}},toObject:function(){var o={type:this.type},a=this.mainParameter;return a&&(o[a]=this[a]),o},toJSON:function(){return this.toObject()}}),t.Image.filters.BaseFilter.fromObject=function(o,a){var c=new t.Image.filters[o.type](o);return a&&a(c),c},function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,h=a.util.createClass;c.ColorMatrix=h(c.BaseFilter,{type:"ColorMatrix",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
varying vec2 vTexCoord;
uniform mat4 uColorMatrix;
uniform vec4 uConstants;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
color *= uColorMatrix;
color += uConstants;
gl_FragColor = color;
}`,matrix:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],mainParameter:"matrix",colorsOnly:!0,initialize:function(l){this.callSuper("initialize",l),this.matrix=this.matrix.slice(0)},applyTo2d:function(l){var f=l.imageData,s=f.data,d=s.length,g=this.matrix,v,m,y,b,_,S=this.colorsOnly;for(_=0;_<d;_+=4)v=s[_],m=s[_+1],y=s[_+2],S?(s[_]=v*g[0]+m*g[1]+y*g[2]+g[4]*255,s[_+1]=v*g[5]+m*g[6]+y*g[7]+g[9]*255,s[_+2]=v*g[10]+m*g[11]+y*g[12]+g[14]*255):(b=s[_+3],s[_]=v*g[0]+m*g[1]+y*g[2]+b*g[3]+g[4]*255,s[_+1]=v*g[5]+m*g[6]+y*g[7]+b*g[8]+g[9]*255,s[_+2]=v*g[10]+m*g[11]+y*g[12]+b*g[13]+g[14]*255,s[_+3]=v*g[15]+m*g[16]+y*g[17]+b*g[18]+g[19]*255)},getUniformLocations:function(l,f){return{uColorMatrix:l.getUniformLocation(f,"uColorMatrix"),uConstants:l.getUniformLocation(f,"uConstants")}},sendUniformData:function(l,f){var s=this.matrix,d=[s[0],s[1],s[2],s[3],s[5],s[6],s[7],s[8],s[10],s[11],s[12],s[13],s[15],s[16],s[17],s[18]],g=[s[4],s[9],s[14],s[19]];l.uniformMatrix4fv(f.uColorMatrix,!1,d),l.uniform4fv(f.uConstants,g)}}),a.Image.filters.ColorMatrix.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,h=a.util.createClass;c.Brightness=h(c.BaseFilter,{type:"Brightness",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform float uBrightness;
varying vec2 vTexCoord;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
color.rgb += uBrightness;
gl_FragColor = color;
}`,brightness:0,mainParameter:"brightness",applyTo2d:function(l){if(this.brightness!==0){var f=l.imageData,s=f.data,d,g=s.length,v=Math.round(this.brightness*255);for(d=0;d<g;d+=4)s[d]=s[d]+v,s[d+1]=s[d+1]+v,s[d+2]=s[d+2]+v}},getUniformLocations:function(l,f){return{uBrightness:l.getUniformLocation(f,"uBrightness")}},sendUniformData:function(l,f){l.uniform1f(f.uBrightness,this.brightness)}}),a.Image.filters.Brightness.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.object.extend,h=a.Image.filters,l=a.util.createClass;h.Convolute=l(h.BaseFilter,{type:"Convolute",opaque:!1,matrix:[0,0,0,0,1,0,0,0,0],fragmentSource:{Convolute_3_1:`precision highp float;
uniform sampler2D uTexture;
uniform float uMatrix[9];
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
vec4 color = vec4(0, 0, 0, 0);
for (float h = 0.0; h < 3.0; h+=1.0) {
for (float w = 0.0; w < 3.0; w+=1.0) {
vec2 matrixPos = vec2(uStepW * (w - 1), uStepH * (h - 1));
color += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 3.0 + w)];
}
}
gl_FragColor = color;
}`,Convolute_3_0:`precision highp float;
uniform sampler2D uTexture;
uniform float uMatrix[9];
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
vec4 color = vec4(0, 0, 0, 1);
for (float h = 0.0; h < 3.0; h+=1.0) {
for (float w = 0.0; w < 3.0; w+=1.0) {
vec2 matrixPos = vec2(uStepW * (w - 1.0), uStepH * (h - 1.0));
color.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 3.0 + w)];
}
}
float alpha = texture2D(uTexture, vTexCoord).a;
gl_FragColor = color;
gl_FragColor.a = alpha;
}`,Convolute_5_1:`precision highp float;
uniform sampler2D uTexture;
uniform float uMatrix[25];
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
vec4 color = vec4(0, 0, 0, 0);
for (float h = 0.0; h < 5.0; h+=1.0) {
for (float w = 0.0; w < 5.0; w+=1.0) {
vec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));
color += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 5.0 + w)];
}
}
gl_FragColor = color;
}`,Convolute_5_0:`precision highp float;
uniform sampler2D uTexture;
uniform float uMatrix[25];
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
vec4 color = vec4(0, 0, 0, 1);
for (float h = 0.0; h < 5.0; h+=1.0) {
for (float w = 0.0; w < 5.0; w+=1.0) {
vec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));
color.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 5.0 + w)];
}
}
float alpha = texture2D(uTexture, vTexCoord).a;
gl_FragColor = color;
gl_FragColor.a = alpha;
}`,Convolute_7_1:`precision highp float;
uniform sampler2D uTexture;
uniform float uMatrix[49];
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
vec4 color = vec4(0, 0, 0, 0);
for (float h = 0.0; h < 7.0; h+=1.0) {
for (float w = 0.0; w < 7.0; w+=1.0) {
vec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));
color += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 7.0 + w)];
}
}
gl_FragColor = color;
}`,Convolute_7_0:`precision highp float;
uniform sampler2D uTexture;
uniform float uMatrix[49];
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
vec4 color = vec4(0, 0, 0, 1);
for (float h = 0.0; h < 7.0; h+=1.0) {
for (float w = 0.0; w < 7.0; w+=1.0) {
vec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));
color.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 7.0 + w)];
}
}
float alpha = texture2D(uTexture, vTexCoord).a;
gl_FragColor = color;
gl_FragColor.a = alpha;
}`,Convolute_9_1:`precision highp float;
uniform sampler2D uTexture;
uniform float uMatrix[81];
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
vec4 color = vec4(0, 0, 0, 0);
for (float h = 0.0; h < 9.0; h+=1.0) {
for (float w = 0.0; w < 9.0; w+=1.0) {
vec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));
color += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 9.0 + w)];
}
}
gl_FragColor = color;
}`,Convolute_9_0:`precision highp float;
uniform sampler2D uTexture;
uniform float uMatrix[81];
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
vec4 color = vec4(0, 0, 0, 1);
for (float h = 0.0; h < 9.0; h+=1.0) {
for (float w = 0.0; w < 9.0; w+=1.0) {
vec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));
color.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 9.0 + w)];
}
}
float alpha = texture2D(uTexture, vTexCoord).a;
gl_FragColor = color;
gl_FragColor.a = alpha;
}`},retrieveShader:function(f){var s=Math.sqrt(this.matrix.length),d=this.type+"_"+s+"_"+(this.opaque?1:0),g=this.fragmentSource[d];return f.programCache.hasOwnProperty(d)||(f.programCache[d]=this.createProgram(f.context,g)),f.programCache[d]},applyTo2d:function(f){var s=f.imageData,d=s.data,g=this.matrix,v=Math.round(Math.sqrt(g.length)),m=Math.floor(v/2),y=s.width,b=s.height,_=f.ctx.createImageData(y,b),S=_.data,C=this.opaque?1:0,T,E,O,D,j,k,U,P,re,q,V,te,A;for(V=0;V<b;V++)for(q=0;q<y;q++){for(j=(V*y+q)*4,T=0,E=0,O=0,D=0,A=0;A<v;A++)for(te=0;te<v;te++)U=V+A-m,k=q+te-m,!(U<0||U>=b||k<0||k>=y)&&(P=(U*y+k)*4,re=g[A*v+te],T+=d[P]*re,E+=d[P+1]*re,O+=d[P+2]*re,C||(D+=d[P+3]*re));S[j]=T,S[j+1]=E,S[j+2]=O,C?S[j+3]=d[j+3]:S[j+3]=D}f.imageData=_},getUniformLocations:function(f,s){return{uMatrix:f.getUniformLocation(s,"uMatrix"),uOpaque:f.getUniformLocation(s,"uOpaque"),uHalfSize:f.getUniformLocation(s,"uHalfSize"),uSize:f.getUniformLocation(s,"uSize")}},sendUniformData:function(f,s){f.uniform1fv(s.uMatrix,this.matrix)},toObject:function(){return c(this.callSuper("toObject"),{opaque:this.opaque,matrix:this.matrix})}}),a.Image.filters.Convolute.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,h=a.util.createClass;c.Grayscale=h(c.BaseFilter,{type:"Grayscale",fragmentSource:{average:`precision highp float;
uniform sampler2D uTexture;
varying vec2 vTexCoord;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
float average = (color.r + color.b + color.g) / 3.0;
gl_FragColor = vec4(average, average, average, color.a);
}`,lightness:`precision highp float;
uniform sampler2D uTexture;
uniform int uMode;
varying vec2 vTexCoord;
void main() {
vec4 col = texture2D(uTexture, vTexCoord);
float average = (max(max(col.r, col.g),col.b) + min(min(col.r, col.g),col.b)) / 2.0;
gl_FragColor = vec4(average, average, average, col.a);
}`,luminosity:`precision highp float;
uniform sampler2D uTexture;
uniform int uMode;
varying vec2 vTexCoord;
void main() {
vec4 col = texture2D(uTexture, vTexCoord);
float average = 0.21 * col.r + 0.72 * col.g + 0.07 * col.b;
gl_FragColor = vec4(average, average, average, col.a);
}`},mode:"average",mainParameter:"mode",applyTo2d:function(l){var f=l.imageData,s=f.data,d,g=s.length,v,m=this.mode;for(d=0;d<g;d+=4)m==="average"?v=(s[d]+s[d+1]+s[d+2])/3:m==="lightness"?v=(Math.min(s[d],s[d+1],s[d+2])+Math.max(s[d],s[d+1],s[d+2]))/2:m==="luminosity"&&(v=.21*s[d]+.72*s[d+1]+.07*s[d+2]),s[d]=v,s[d+1]=v,s[d+2]=v},retrieveShader:function(l){var f=this.type+"_"+this.mode;if(!l.programCache.hasOwnProperty(f)){var s=this.fragmentSource[this.mode];l.programCache[f]=this.createProgram(l.context,s)}return l.programCache[f]},getUniformLocations:function(l,f){return{uMode:l.getUniformLocation(f,"uMode")}},sendUniformData:function(l,f){var s=1;l.uniform1i(f.uMode,s)},isNeutralState:function(){return!1}}),a.Image.filters.Grayscale.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,h=a.util.createClass;c.Invert=h(c.BaseFilter,{type:"Invert",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform int uInvert;
varying vec2 vTexCoord;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
if (uInvert == 1) {
gl_FragColor = vec4(1.0 - color.r,1.0 -color.g,1.0 -color.b,color.a);
} else {
gl_FragColor = color;
}
}`,invert:!0,mainParameter:"invert",applyTo2d:function(l){var f=l.imageData,s=f.data,d,g=s.length;for(d=0;d<g;d+=4)s[d]=255-s[d],s[d+1]=255-s[d+1],s[d+2]=255-s[d+2]},isNeutralState:function(){return!this.invert},getUniformLocations:function(l,f){return{uInvert:l.getUniformLocation(f,"uInvert")}},sendUniformData:function(l,f){l.uniform1i(f.uInvert,this.invert)}}),a.Image.filters.Invert.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.object.extend,h=a.Image.filters,l=a.util.createClass;h.Noise=l(h.BaseFilter,{type:"Noise",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform float uStepH;
uniform float uNoise;
uniform float uSeed;
varying vec2 vTexCoord;
float rand(vec2 co, float seed, float vScale) {
return fract(sin(dot(co.xy * vScale ,vec2(12.9898 , 78.233))) * 43758.5453 * (seed + 0.01) / 2.0);
}
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
color.rgb += (0.5 - rand(vTexCoord, uSeed, 0.1 / uStepH)) * uNoise;
gl_FragColor = color;
}`,mainParameter:"noise",noise:0,applyTo2d:function(f){if(this.noise!==0){var s=f.imageData,d=s.data,g,v=d.length,m=this.noise,y;for(g=0,v=d.length;g<v;g+=4)y=(.5-Math.random())*m,d[g]+=y,d[g+1]+=y,d[g+2]+=y}},getUniformLocations:function(f,s){return{uNoise:f.getUniformLocation(s,"uNoise"),uSeed:f.getUniformLocation(s,"uSeed")}},sendUniformData:function(f,s){f.uniform1f(s.uNoise,this.noise/255),f.uniform1f(s.uSeed,Math.random())},toObject:function(){return c(this.callSuper("toObject"),{noise:this.noise})}}),a.Image.filters.Noise.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,h=a.util.createClass;c.Pixelate=h(c.BaseFilter,{type:"Pixelate",blocksize:4,mainParameter:"blocksize",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform float uBlocksize;
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
float blockW = uBlocksize * uStepW;
float blockH = uBlocksize * uStepW;
int posX = int(vTexCoord.x / blockW);
int posY = int(vTexCoord.y / blockH);
float fposX = float(posX);
float fposY = float(posY);
vec2 squareCoords = vec2(fposX * blockW, fposY * blockH);
vec4 color = texture2D(uTexture, squareCoords);
gl_FragColor = color;
}`,applyTo2d:function(l){var f=l.imageData,s=f.data,d=f.height,g=f.width,v,m,y,b,_,S,C,T,E,O,D;for(m=0;m<d;m+=this.blocksize)for(y=0;y<g;y+=this.blocksize)for(v=m*4*g+y*4,b=s[v],_=s[v+1],S=s[v+2],C=s[v+3],O=Math.min(m+this.blocksize,d),D=Math.min(y+this.blocksize,g),T=m;T<O;T++)for(E=y;E<D;E++)v=T*4*g+E*4,s[v]=b,s[v+1]=_,s[v+2]=S,s[v+3]=C},isNeutralState:function(){return this.blocksize===1},getUniformLocations:function(l,f){return{uBlocksize:l.getUniformLocation(f,"uBlocksize"),uStepW:l.getUniformLocation(f,"uStepW"),uStepH:l.getUniformLocation(f,"uStepH")}},sendUniformData:function(l,f){l.uniform1f(f.uBlocksize,this.blocksize)}}),a.Image.filters.Pixelate.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.object.extend,h=a.Image.filters,l=a.util.createClass;h.RemoveColor=l(h.BaseFilter,{type:"RemoveColor",color:"#FFFFFF",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform vec4 uLow;
uniform vec4 uHigh;
varying vec2 vTexCoord;
void main() {
gl_FragColor = texture2D(uTexture, vTexCoord);
if(all(greaterThan(gl_FragColor.rgb,uLow.rgb)) && all(greaterThan(uHigh.rgb,gl_FragColor.rgb))) {
gl_FragColor.a = 0.0;
}
}`,distance:.02,useAlpha:!1,applyTo2d:function(f){var s=f.imageData,d=s.data,g,v=this.distance*255,m,y,b,_=new a.Color(this.color).getSource(),S=[_[0]-v,_[1]-v,_[2]-v],C=[_[0]+v,_[1]+v,_[2]+v];for(g=0;g<d.length;g+=4)m=d[g],y=d[g+1],b=d[g+2],m>S[0]&&y>S[1]&&b>S[2]&&m<C[0]&&y<C[1]&&b<C[2]&&(d[g+3]=0)},getUniformLocations:function(f,s){return{uLow:f.getUniformLocation(s,"uLow"),uHigh:f.getUniformLocation(s,"uHigh")}},sendUniformData:function(f,s){var d=new a.Color(this.color).getSource(),g=parseFloat(this.distance),v=[0+d[0]/255-g,0+d[1]/255-g,0+d[2]/255-g,1],m=[d[0]/255+g,d[1]/255+g,d[2]/255+g,1];f.uniform4fv(s.uLow,v),f.uniform4fv(s.uHigh,m)},toObject:function(){return c(this.callSuper("toObject"),{color:this.color,distance:this.distance})}}),a.Image.filters.RemoveColor.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,h=a.util.createClass,l={Brownie:[.5997,.34553,-.27082,0,.186,-.0377,.86095,.15059,0,-.1449,.24113,-.07441,.44972,0,-.02965,0,0,0,1,0],Vintage:[.62793,.32021,-.03965,0,.03784,.02578,.64411,.03259,0,.02926,.0466,-.08512,.52416,0,.02023,0,0,0,1,0],Kodachrome:[1.12855,-.39673,-.03992,0,.24991,-.16404,1.08352,-.05498,0,.09698,-.16786,-.56034,1.60148,0,.13972,0,0,0,1,0],Technicolor:[1.91252,-.85453,-.09155,0,.04624,-.30878,1.76589,-.10601,0,-.27589,-.2311,-.75018,1.84759,0,.12137,0,0,0,1,0],Polaroid:[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],Sepia:[.393,.769,.189,0,0,.349,.686,.168,0,0,.272,.534,.131,0,0,0,0,0,1,0],BlackWhite:[1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,0,0,0,1,0]};for(var f in l)c[f]=h(c.ColorMatrix,{type:f,matrix:l[f],mainParameter:!1,colorsOnly:!0}),a.Image.filters[f].fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric,c=a.Image.filters,h=a.util.createClass;c.BlendColor=h(c.BaseFilter,{type:"BlendColor",color:"#F95C63",mode:"multiply",alpha:1,fragmentSource:{multiply:`gl_FragColor.rgb *= uColor.rgb;
`,screen:`gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);
`,add:`gl_FragColor.rgb += uColor.rgb;
`,diff:`gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);
`,subtract:`gl_FragColor.rgb -= uColor.rgb;
`,lighten:`gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb);
`,darken:`gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb);
`,exclusion:`gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb);
`,overlay:`if (uColor.r < 0.5) {
gl_FragColor.r *= 2.0 * uColor.r;
} else {
gl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);
}
if (uColor.g < 0.5) {
gl_FragColor.g *= 2.0 * uColor.g;
} else {
gl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);
}
if (uColor.b < 0.5) {
gl_FragColor.b *= 2.0 * uColor.b;
} else {
gl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);
}
`,tint:`gl_FragColor.rgb *= (1.0 - uColor.a);
gl_FragColor.rgb += uColor.rgb;
`},buildSource:function(l){return`precision highp float;
uniform sampler2D uTexture;
uniform vec4 uColor;
varying vec2 vTexCoord;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
gl_FragColor = color;
if (color.a > 0.0) {
`+this.fragmentSource[l]+`}
}`},retrieveShader:function(l){var f=this.type+"_"+this.mode,s;return l.programCache.hasOwnProperty(f)||(s=this.buildSource(this.mode),l.programCache[f]=this.createProgram(l.context,s)),l.programCache[f]},applyTo2d:function(l){var f=l.imageData,s=f.data,d=s.length,g,v,m,y,b,_,S,C=1-this.alpha;S=new a.Color(this.color).getSource(),g=S[0]*this.alpha,v=S[1]*this.alpha,m=S[2]*this.alpha;for(var T=0;T<d;T+=4)switch(y=s[T],b=s[T+1],_=s[T+2],this.mode){case"multiply":s[T]=y*g/255,s[T+1]=b*v/255,s[T+2]=_*m/255;break;case"screen":s[T]=255-(255-y)*(255-g)/255,s[T+1]=255-(255-b)*(255-v)/255,s[T+2]=255-(255-_)*(255-m)/255;break;case"add":s[T]=y+g,s[T+1]=b+v,s[T+2]=_+m;break;case"diff":case"difference":s[T]=Math.abs(y-g),s[T+1]=Math.abs(b-v),s[T+2]=Math.abs(_-m);break;case"subtract":s[T]=y-g,s[T+1]=b-v,s[T+2]=_-m;break;case"darken":s[T]=Math.min(y,g),s[T+1]=Math.min(b,v),s[T+2]=Math.min(_,m);break;case"lighten":s[T]=Math.max(y,g),s[T+1]=Math.max(b,v),s[T+2]=Math.max(_,m);break;case"overlay":s[T]=g<128?2*y*g/255:255-2*(255-y)*(255-g)/255,s[T+1]=v<128?2*b*v/255:255-2*(255-b)*(255-v)/255,s[T+2]=m<128?2*_*m/255:255-2*(255-_)*(255-m)/255;break;case"exclusion":s[T]=g+y-2*g*y/255,s[T+1]=v+b-2*v*b/255,s[T+2]=m+_-2*m*_/255;break;case"tint":s[T]=g+y*C,s[T+1]=v+b*C,s[T+2]=m+_*C}},getUniformLocations:function(l,f){return{uColor:l.getUniformLocation(f,"uColor")}},sendUniformData:function(l,f){var s=new a.Color(this.color).getSource();s[0]=this.alpha*s[0]/255,s[1]=this.alpha*s[1]/255,s[2]=this.alpha*s[2]/255,s[3]=this.alpha,l.uniform4fv(f.uColor,s)},toObject:function(){return{type:this.type,color:this.color,mode:this.mode,alpha:this.alpha}}}),a.Image.filters.BlendColor.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric,c=a.Image.filters,h=a.util.createClass;c.BlendImage=h(c.BaseFilter,{type:"BlendImage",image:null,mode:"multiply",alpha:1,vertexSource:`attribute vec2 aPosition;
varying vec2 vTexCoord;
varying vec2 vTexCoord2;
uniform mat3 uTransformMatrix;
void main() {
vTexCoord = aPosition;
vTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy;
gl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);
}`,fragmentSource:{multiply:`precision highp float;
uniform sampler2D uTexture;
uniform sampler2D uImage;
uniform vec4 uColor;
varying vec2 vTexCoord;
varying vec2 vTexCoord2;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
vec4 color2 = texture2D(uImage, vTexCoord2);
color.rgba *= color2.rgba;
gl_FragColor = color;
}`,mask:`precision highp float;
uniform sampler2D uTexture;
uniform sampler2D uImage;
uniform vec4 uColor;
varying vec2 vTexCoord;
varying vec2 vTexCoord2;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
vec4 color2 = texture2D(uImage, vTexCoord2);
color.a = color2.a;
gl_FragColor = color;
}`},retrieveShader:function(l){var f=this.type+"_"+this.mode,s=this.fragmentSource[this.mode];return l.programCache.hasOwnProperty(f)||(l.programCache[f]=this.createProgram(l.context,s)),l.programCache[f]},applyToWebGL:function(l){var f=l.context,s=this.createTexture(l.filterBackend,this.image);this.bindAdditionalTexture(f,s,f.TEXTURE1),this.callSuper("applyToWebGL",l),this.unbindAdditionalTexture(f,f.TEXTURE1)},createTexture:function(l,f){return l.getCachedTexture(f.cacheKey,f._element)},calculateMatrix:function(){var l=this.image,f=l._element.width,s=l._element.height;return[1/l.scaleX,0,0,0,1/l.scaleY,0,-l.left/f,-l.top/s,1]},applyTo2d:function(l){var f=l.imageData,s=l.filterBackend.resources,d=f.data,g=d.length,v=f.width,m=f.height,y,b,_,S,C,T,E,O,D,j,k=this.image,U;s.blendImage||(s.blendImage=a.util.createCanvasElement()),D=s.blendImage,j=D.getContext("2d"),D.width!==v||D.height!==m?(D.width=v,D.height=m):j.clearRect(0,0,v,m),j.setTransform(k.scaleX,0,0,k.scaleY,k.left,k.top),j.drawImage(k._element,0,0,v,m),U=j.getImageData(0,0,v,m).data;for(var P=0;P<g;P+=4)switch(C=d[P],T=d[P+1],E=d[P+2],O=d[P+3],y=U[P],b=U[P+1],_=U[P+2],S=U[P+3],this.mode){case"multiply":d[P]=C*y/255,d[P+1]=T*b/255,d[P+2]=E*_/255,d[P+3]=O*S/255;break;case"mask":d[P+3]=S;break}},getUniformLocations:function(l,f){return{uTransformMatrix:l.getUniformLocation(f,"uTransformMatrix"),uImage:l.getUniformLocation(f,"uImage")}},sendUniformData:function(l,f){var s=this.calculateMatrix();l.uniform1i(f.uImage,1),l.uniformMatrix3fv(f.uTransformMatrix,!1,s)},toObject:function(){return{type:this.type,image:this.image&&this.image.toObject(),mode:this.mode,alpha:this.alpha}}}),a.Image.filters.BlendImage.fromObject=function(l,f){a.Image.fromObject(l.image,function(s){var d=a.util.object.clone(l);d.image=s,f(new a.Image.filters.BlendImage(d))})}}(e),function(o){var a=o.fabric||(o.fabric={}),c=Math.pow,h=Math.floor,l=Math.sqrt,f=Math.abs,s=Math.round,d=Math.sin,g=Math.ceil,v=a.Image.filters,m=a.util.createClass;v.Resize=m(v.BaseFilter,{type:"Resize",resizeType:"hermite",scaleX:1,scaleY:1,lanczosLobes:3,getUniformLocations:function(y,b){return{uDelta:y.getUniformLocation(b,"uDelta"),uTaps:y.getUniformLocation(b,"uTaps")}},sendUniformData:function(y,b){y.uniform2fv(b.uDelta,this.horizontal?[1/this.width,0]:[0,1/this.height]),y.uniform1fv(b.uTaps,this.taps)},retrieveShader:function(y){var b=this.getFilterWindow(),_=this.type+"_"+b;if(!y.programCache.hasOwnProperty(_)){var S=this.generateShader(b);y.programCache[_]=this.createProgram(y.context,S)}return y.programCache[_]},getFilterWindow:function(){var y=this.tempScale;return Math.ceil(this.lanczosLobes/y)},getTaps:function(){for(var y=this.lanczosCreate(this.lanczosLobes),b=this.tempScale,_=this.getFilterWindow(),S=new Array(_),C=1;C<=_;C++)S[C-1]=y(C*b);return S},generateShader:function(S){for(var b=new Array(S),_=this.fragmentSourceTOP,S,C=1;C<=S;C++)b[C-1]=C+".0 * uDelta";return _+="uniform float uTaps["+S+`];
`,_+=`void main() {
`,_+=` vec4 color = texture2D(uTexture, vTexCoord);
`,_+=` float sum = 1.0;
`,b.forEach(function(T,E){_+=" color += texture2D(uTexture, vTexCoord + "+T+") * uTaps["+E+`];
`,_+=" color += texture2D(uTexture, vTexCoord - "+T+") * uTaps["+E+`];
`,_+=" sum += 2.0 * uTaps["+E+`];
`}),_+=` gl_FragColor = color / sum;
`,_+="}",_},fragmentSourceTOP:`precision highp float;
uniform sampler2D uTexture;
uniform vec2 uDelta;
varying vec2 vTexCoord;
`,applyTo:function(y){y.webgl?(y.passes++,this.width=y.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=y.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),y.destinationWidth=this.dW,this._setupFrameBuffer(y),this.applyToWebGL(y),this._swapTextures(y),y.sourceWidth=y.destinationWidth,this.height=y.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),y.destinationHeight=this.dH,this._setupFrameBuffer(y),this.applyToWebGL(y),this._swapTextures(y),y.sourceHeight=y.destinationHeight):this.applyTo2d(y)},isNeutralState:function(){return this.scaleX===1&&this.scaleY===1},lanczosCreate:function(y){return function(b){if(b>=y||b<=-y)return 0;if(b<11920929e-14&&b>-11920929e-14)return 1;b*=Math.PI;var _=b/y;return d(b)/b*d(_)/_}},applyTo2d:function(y){var b=y.imageData,_=this.scaleX,S=this.scaleY;this.rcpScaleX=1/_,this.rcpScaleY=1/S;var C=b.width,T=b.height,E=s(C*_),O=s(T*S),D;this.resizeType==="sliceHack"?D=this.sliceByTwo(y,C,T,E,O):this.resizeType==="hermite"?D=this.hermiteFastResize(y,C,T,E,O):this.resizeType==="bilinear"?D=this.bilinearFiltering(y,C,T,E,O):this.resizeType==="lanczos"&&(D=this.lanczosResize(y,C,T,E,O)),y.imageData=D},sliceByTwo:function(y,b,_,S,C){var T=y.imageData,E=.5,O=!1,D=!1,j=b*E,k=_*E,U=a.filterBackend.resources,P,re,q=0,V=0,te=b,A=0;for(U.sliceByTwo||(U.sliceByTwo=document.createElement("canvas")),P=U.sliceByTwo,(P.width<b*1.5||P.height<_)&&(P.width=b*1.5,P.height=_),re=P.getContext("2d"),re.clearRect(0,0,b*1.5,_),re.putImageData(T,0,0),S=h(S),C=h(C);!O||!D;)b=j,_=k,S<h(j*E)?j=h(j*E):(j=S,O=!0),C<h(k*E)?k=h(k*E):(k=C,D=!0),re.drawImage(P,q,V,b,_,te,A,j,k),q=te,V=A,A+=k;return re.getImageData(q,V,S,C)},lanczosResize:function(y,b,_,S,C){function T(I){var M,J,z,L,Q,H,G,ne,de,ve,_e;for(A.x=(I+.5)*k,B.x=h(A.x),M=0;M<C;M++){for(A.y=(M+.5)*U,B.y=h(A.y),Q=0,H=0,G=0,ne=0,de=0,J=B.x-q;J<=B.x+q;J++)if(!(J<0||J>=b)){ve=h(1e3*f(J-A.x)),te[ve]||(te[ve]={});for(var N=B.y-V;N<=B.y+V;N++)N<0||N>=_||(_e=h(1e3*f(N-A.y)),te[ve][_e]||(te[ve][_e]=j(l(c(ve*P,2)+c(_e*re,2))/1e3)),z=te[ve][_e],z>0&&(L=(N*b+J)*4,Q+=z,H+=z*E[L],G+=z*E[L+1],ne+=z*E[L+2],de+=z*E[L+3]))}L=(M*S+I)*4,D[L]=H/Q,D[L+1]=G/Q,D[L+2]=ne/Q,D[L+3]=de/Q}return++I<S?T(I):O}var E=y.imageData.data,O=y.ctx.createImageData(S,C),D=O.data,j=this.lanczosCreate(this.lanczosLobes),k=this.rcpScaleX,U=this.rcpScaleY,P=2/this.rcpScaleX,re=2/this.rcpScaleY,q=g(k*this.lanczosLobes/2),V=g(U*this.lanczosLobes/2),te={},A={},B={};return T(0)},bilinearFiltering:function(y,b,_,S,C){var T,E,O,D,j,k,U,P,re,q,V,te,A=0,B,I=this.rcpScaleX,M=this.rcpScaleY,J=4*(b-1),z=y.imageData,L=z.data,Q=y.ctx.createImageData(S,C),H=Q.data;for(U=0;U<C;U++)for(P=0;P<S;P++)for(j=h(I*P),k=h(M*U),re=I*P-j,q=M*U-k,B=4*(k*b+j),V=0;V<4;V++)T=L[B+V],E=L[B+4+V],O=L[B+J+V],D=L[B+J+4+V],te=T*(1-re)*(1-q)+E*re*(1-q)+O*q*(1-re)+D*re*q,H[A++]=te;return Q},hermiteFastResize:function(y,b,_,S,C){for(var T=this.rcpScaleX,E=this.rcpScaleY,O=g(T/2),D=g(E/2),j=y.imageData,k=j.data,U=y.ctx.createImageData(S,C),P=U.data,re=0;re<C;re++)for(var q=0;q<S;q++){for(var V=(q+re*S)*4,te=0,A=0,B=0,I=0,M=0,J=0,z=0,L=(re+.5)*E,Q=h(re*E);Q<(re+1)*E;Q++)for(var H=f(L-(Q+.5))/D,G=(q+.5)*T,ne=H*H,de=h(q*T);de<(q+1)*T;de++){var ve=f(G-(de+.5))/O,_e=l(ne+ve*ve);_e>1&&_e<-1||(te=2*_e*_e*_e-3*_e*_e+1,te>0&&(ve=4*(de+Q*b),z+=te*k[ve+3],B+=te,k[ve+3]<255&&(te=te*k[ve+3]/250),I+=te*k[ve],M+=te*k[ve+1],J+=te*k[ve+2],A+=te))}P[V]=I/A,P[V+1]=M/A,P[V+2]=J/A,P[V+3]=z/B}return U},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),a.Image.filters.Resize.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,h=a.util.createClass;c.Contrast=h(c.BaseFilter,{type:"Contrast",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform float uContrast;
varying vec2 vTexCoord;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
float contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));
color.rgb = contrastF * (color.rgb - 0.5) + 0.5;
gl_FragColor = color;
}`,contrast:0,mainParameter:"contrast",applyTo2d:function(l){if(this.contrast!==0){var f=l.imageData,s,g,d=f.data,g=d.length,v=Math.floor(this.contrast*255),m=259*(v+255)/(255*(259-v));for(s=0;s<g;s+=4)d[s]=m*(d[s]-128)+128,d[s+1]=m*(d[s+1]-128)+128,d[s+2]=m*(d[s+2]-128)+128}},getUniformLocations:function(l,f){return{uContrast:l.getUniformLocation(f,"uContrast")}},sendUniformData:function(l,f){l.uniform1f(f.uContrast,this.contrast)}}),a.Image.filters.Contrast.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,h=a.util.createClass;c.Saturation=h(c.BaseFilter,{type:"Saturation",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform float uSaturation;
varying vec2 vTexCoord;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
float rgMax = max(color.r, color.g);
float rgbMax = max(rgMax, color.b);
color.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;
color.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;
color.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;
gl_FragColor = color;
}`,saturation:0,mainParameter:"saturation",applyTo2d:function(l){if(this.saturation!==0){var f=l.imageData,s=f.data,d=s.length,g=-this.saturation,v,m;for(v=0;v<d;v+=4)m=Math.max(s[v],s[v+1],s[v+2]),s[v]+=m!==s[v]?(m-s[v])*g:0,s[v+1]+=m!==s[v+1]?(m-s[v+1])*g:0,s[v+2]+=m!==s[v+2]?(m-s[v+2])*g:0}},getUniformLocations:function(l,f){return{uSaturation:l.getUniformLocation(f,"uSaturation")}},sendUniformData:function(l,f){l.uniform1f(f.uSaturation,-this.saturation)}}),a.Image.filters.Saturation.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,h=a.util.createClass;c.Vibrance=h(c.BaseFilter,{type:"Vibrance",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform float uVibrance;
varying vec2 vTexCoord;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
float max = max(color.r, max(color.g, color.b));
float avg = (color.r + color.g + color.b) / 3.0;
float amt = (abs(max - avg) * 2.0) * uVibrance;
color.r += max != color.r ? (max - color.r) * amt : 0.00;
color.g += max != color.g ? (max - color.g) * amt : 0.00;
color.b += max != color.b ? (max - color.b) * amt : 0.00;
gl_FragColor = color;
}`,vibrance:0,mainParameter:"vibrance",applyTo2d:function(l){if(this.vibrance!==0){var f=l.imageData,s=f.data,d=s.length,g=-this.vibrance,v,m,y,b;for(v=0;v<d;v+=4)m=Math.max(s[v],s[v+1],s[v+2]),y=(s[v]+s[v+1]+s[v+2])/3,b=Math.abs(m-y)*2/255*g,s[v]+=m!==s[v]?(m-s[v])*b:0,s[v+1]+=m!==s[v+1]?(m-s[v+1])*b:0,s[v+2]+=m!==s[v+2]?(m-s[v+2])*b:0}},getUniformLocations:function(l,f){return{uVibrance:l.getUniformLocation(f,"uVibrance")}},sendUniformData:function(l,f){l.uniform1f(f.uVibrance,-this.vibrance)}}),a.Image.filters.Vibrance.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,h=a.util.createClass;c.Blur=h(c.BaseFilter,{type:"Blur",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform vec2 uDelta;
varying vec2 vTexCoord;
const float nSamples = 15.0;
vec3 v3offset = vec3(12.9898, 78.233, 151.7182);
float random(vec3 scale) {
return fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);
}
void main() {
vec4 color = vec4(0.0);
float total = 0.0;
float offset = random(v3offset);
for (float t = -nSamples; t <= nSamples; t++) {
float percent = (t + offset - 0.5) / nSamples;
float weight = 1.0 - abs(percent);
color += texture2D(uTexture, vTexCoord + uDelta * percent) * weight;
total += weight;
}
gl_FragColor = color / total;
}`,blur:0,mainParameter:"blur",applyTo:function(l){l.webgl?(this.aspectRatio=l.sourceWidth/l.sourceHeight,l.passes++,this._setupFrameBuffer(l),this.horizontal=!0,this.applyToWebGL(l),this._swapTextures(l),this._setupFrameBuffer(l),this.horizontal=!1,this.applyToWebGL(l),this._swapTextures(l)):this.applyTo2d(l)},applyTo2d:function(l){l.imageData=this.simpleBlur(l)},simpleBlur:function(l){var f=l.filterBackend.resources,s,d,g=l.imageData.width,v=l.imageData.height;f.blurLayer1||(f.blurLayer1=a.util.createCanvasElement(),f.blurLayer2=a.util.createCanvasElement()),s=f.blurLayer1,d=f.blurLayer2,(s.width!==g||s.height!==v)&&(d.width=s.width=g,d.height=s.height=v);var m=s.getContext("2d"),y=d.getContext("2d"),b=15,_,S,C,T,E=this.blur*.06*.5;for(m.putImageData(l.imageData,0,0),y.clearRect(0,0,g,v),T=-b;T<=b;T++)_=(Math.random()-.5)/4,S=T/b,C=E*S*g+_,y.globalAlpha=1-Math.abs(S),y.drawImage(s,C,_),m.drawImage(d,0,0),y.globalAlpha=1,y.clearRect(0,0,d.width,d.height);for(T=-b;T<=b;T++)_=(Math.random()-.5)/4,S=T/b,C=E*S*v+_,y.globalAlpha=1-Math.abs(S),y.drawImage(s,_,C),m.drawImage(d,0,0),y.globalAlpha=1,y.clearRect(0,0,d.width,d.height);l.ctx.drawImage(s,0,0);var O=l.ctx.getImageData(0,0,s.width,s.height);return m.globalAlpha=1,m.clearRect(0,0,s.width,s.height),O},getUniformLocations:function(l,f){return{delta:l.getUniformLocation(f,"uDelta")}},sendUniformData:function(l,f){var s=this.chooseRightDelta();l.uniform2fv(f.delta,s)},chooseRightDelta:function(){var l=1,f=[0,0],s;return this.horizontal?this.aspectRatio>1&&(l=1/this.aspectRatio):this.aspectRatio<1&&(l=this.aspectRatio),s=l*this.blur*.12,this.horizontal?f[0]=s:f[1]=s,f}}),c.Blur.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,h=a.util.createClass;c.Gamma=h(c.BaseFilter,{type:"Gamma",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform vec3 uGamma;
varying vec2 vTexCoord;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
vec3 correction = (1.0 / uGamma);
color.r = pow(color.r, correction.r);
color.g = pow(color.g, correction.g);
color.b = pow(color.b, correction.b);
gl_FragColor = color;
gl_FragColor.rgb *= color.a;
}`,gamma:[1,1,1],mainParameter:"gamma",initialize:function(l){this.gamma=[1,1,1],c.BaseFilter.prototype.initialize.call(this,l)},applyTo2d:function(l){var f=l.imageData,s=f.data,d=this.gamma,g=s.length,v=1/d[0],m=1/d[1],y=1/d[2],b;for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),b=0,g=256;b<g;b++)this.rVals[b]=Math.pow(b/255,v)*255,this.gVals[b]=Math.pow(b/255,m)*255,this.bVals[b]=Math.pow(b/255,y)*255;for(b=0,g=s.length;b<g;b+=4)s[b]=this.rVals[s[b]],s[b+1]=this.gVals[s[b+1]],s[b+2]=this.bVals[s[b+2]]},getUniformLocations:function(l,f){return{uGamma:l.getUniformLocation(f,"uGamma")}},sendUniformData:function(l,f){l.uniform3fv(f.uGamma,this.gamma)}}),a.Image.filters.Gamma.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,h=a.util.createClass;c.Composed=h(c.BaseFilter,{type:"Composed",subFilters:[],initialize:function(l){this.callSuper("initialize",l),this.subFilters=this.subFilters.slice(0)},applyTo:function(l){l.passes+=this.subFilters.length-1,this.subFilters.forEach(function(f){f.applyTo(l)})},toObject:function(){return a.util.object.extend(this.callSuper("toObject"),{subFilters:this.subFilters.map(function(l){return l.toObject()})})},isNeutralState:function(){return!this.subFilters.some(function(l){return!l.isNeutralState()})}}),a.Image.filters.Composed.fromObject=function(l,f){var s=l.subFilters||[],d=s.map(function(v){return new a.Image.filters[v.type](v)}),g=new a.Image.filters.Composed({subFilters:d});return f&&f(g),g}}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,h=a.util.createClass;c.HueRotation=h(c.ColorMatrix,{type:"HueRotation",rotation:0,mainParameter:"rotation",calculateMatrix:function(){var l=this.rotation*Math.PI,f=a.util.cos(l),s=a.util.sin(l),d=1/3,g=Math.sqrt(d)*s,v=1-f;this.matrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],this.matrix[0]=f+v/3,this.matrix[1]=d*v-g,this.matrix[2]=d*v+g,this.matrix[5]=d*v+g,this.matrix[6]=f+d*v,this.matrix[7]=d*v-g,this.matrix[10]=d*v-g,this.matrix[11]=d*v+g,this.matrix[12]=f+d*v},isNeutralState:function(l){return this.calculateMatrix(),c.BaseFilter.prototype.isNeutralState.call(this,l)},applyTo:function(l){this.calculateMatrix(),c.BaseFilter.prototype.applyTo.call(this,l)}}),a.Image.filters.HueRotation.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.object.clone;if(a.Text){a.warn("fabric.Text is already defined");return}var h="fontFamily fontWeight fontSize text underline overline linethrough textAlign fontStyle lineHeight textBackgroundColor charSpacing styles direction path pathStartOffset pathSide pathAlign".split(" ");a.Text=a.util.createClass(a.Object,{_dimensionAffectingProps:["fontSize","fontWeight","fontFamily","fontStyle","lineHeight","text","charSpacing","textAlign","styles","path","pathStartOffset","pathSide","pathAlign"],_reNewline:/\r?\n/,_reSpacesAndTabs:/[ \t\r]/g,_reSpaceAndTab:/[ \t\r]/,_reWords:/\S+/g,type:"text",fontSize:40,fontWeight:"normal",fontFamily:"Times New Roman",underline:!1,overline:!1,linethrough:!1,textAlign:"left",fontStyle:"normal",lineHeight:1.16,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},textBackgroundColor:"",stateProperties:a.Object.prototype.stateProperties.concat(h),cacheProperties:a.Object.prototype.cacheProperties.concat(h),stroke:null,shadow:null,path:null,pathStartOffset:0,pathSide:"left",pathAlign:"baseline",_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.315,overline:-.88},_fontSizeMult:1.13,charSpacing:0,styles:null,_measuringContext:null,deltaY:0,direction:"ltr",_styleProperties:["stroke","strokeWidth","fill","fontFamily","fontSize","fontWeight","fontStyle","underline","overline","linethrough","deltaY","textBackgroundColor"],__charBounds:[],CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2,initialize:function(l,f){this.styles=f?f.styles||{}:{},this.text=l,this.__skipDimension=!0,this.callSuper("initialize",f),this.path&&this.setPathInfo(),this.__skipDimension=!1,this.initDimensions(),this.setCoords(),this.setupState({propertySet:"_dimensionAffectingProps"})},setPathInfo:function(){var l=this.path;l&&(l.segmentsInfo=a.util.getPathSegmentsInfo(l.path))},getMeasuringContext:function(){return a._measuringContext||(a._measuringContext=this.canvas&&this.canvas.contextCache||a.util.createCanvasElement().getContext("2d")),a._measuringContext},_splitText:function(){var l=this._splitTextIntoLines(this.text);return this.textLines=l.lines,this._textLines=l.graphemeLines,this._unwrappedTextLines=l._unwrappedLines,this._text=l.graphemeText,l},initDimensions:function(){if(!this.__skipDimension){if(this._splitText(),this._clearCache(),this.path){var l=this.getHeightOfLine(0)*1.1;this.width=this.path.width+l,this.height=this.path.height+l}else this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,this.height=this.calcTextHeight();this.textAlign.indexOf("justify")!==-1&&this.enlargeSpaces(),this.saveState({propertySet:"_dimensionAffectingProps"})}},enlargeSpaces:function(){for(var l,f,s,d,g,v,m,y=0,b=this._textLines.length;y<b;y++)if(!(this.textAlign!=="justify"&&(y===b-1||this.isEndOfWrapping(y)))&&(d=0,g=this._textLines[y],f=this.getLineWidth(y),f<this.width&&(m=this.textLines[y].match(this._reSpacesAndTabs)))){s=m.length,l=(this.width-f)/s;for(var _=0,S=g.length;_<=S;_++)v=this.__charBounds[y][_],this._reSpaceAndTab.test(g[_])?(v.width+=l,v.kernedWidth+=l,v.left+=d,d+=l):v.left+=d}},isEndOfWrapping:function(l){return l===this._textLines.length-1},missingNewlineOffset:function(){return 1},toString:function(){return"#<fabric.Text ("+this.complexity()+'): { "text": "'+this.text+'", "fontFamily": "'+this.fontFamily+'" }>'},_getCacheCanvasDimensions:function(){var l=this.callSuper("_getCacheCanvasDimensions"),f=this.fontSize;return l.width+=f*l.zoomX,l.height+=f*l.zoomY,l},_render:function(l){var f=this.path;f&&!f.isNotVisible()&&f._render(l),this._setTextStyles(l),this._renderTextLinesBackground(l),this._renderTextDecoration(l,"underline"),this._renderText(l),this._renderTextDecoration(l,"overline"),this._renderTextDecoration(l,"linethrough")},_renderText:function(l){this.paintFirst==="stroke"?(this._renderTextStroke(l),this._renderTextFill(l)):(this._renderTextFill(l),this._renderTextStroke(l))},_setTextStyles:function(l,f,s){if(l.textBaseline="alphabetic",this.path)switch(this.pathAlign){case"center":l.textBaseline="middle";break;case"ascender":l.textBaseline="top";break;case"descender":l.textBaseline="bottom";break}l.font=this._getFontDeclaration(f,s)},calcTextWidth:function(){for(var l=this.getLineWidth(0),f=1,s=this._textLines.length;f<s;f++){var d=this.getLineWidth(f);d>l&&(l=d)}return l},_renderTextLine:function(l,f,s,d,g,v){this._renderChars(l,f,s,d,g,v)},_renderTextLinesBackground:function(l){if(!(!this.textBackgroundColor&&!this.styleHas("textBackgroundColor"))){for(var f,s,d=l.fillStyle,g,v,m=this._getLeftOffset(),y=this._getTopOffset(),b=0,_=0,S,C,T=this.path,E,O=0,D=this._textLines.length;O<D;O++){if(f=this.getHeightOfLine(O),!this.textBackgroundColor&&!this.styleHas("textBackgroundColor",O)){y+=f;continue}g=this._textLines[O],s=this._getLineLeftOffset(O),_=0,b=0,v=this.getValueOfPropertyAt(O,0,"textBackgroundColor");for(var j=0,k=g.length;j<k;j++)S=this.__charBounds[O][j],C=this.getValueOfPropertyAt(O,j,"textBackgroundColor"),T?(l.save(),l.translate(S.renderLeft,S.renderTop),l.rotate(S.angle),l.fillStyle=C,C&&l.fillRect(-S.width/2,-f/this.lineHeight*(1-this._fontSizeFraction),S.width,f/this.lineHeight),l.restore()):C!==v?(E=m+s+b,this.direction==="rtl"&&(E=this.width-E-_),l.fillStyle=v,v&&l.fillRect(E,y,_,f/this.lineHeight),b=S.left,_=S.width,v=C):_+=S.kernedWidth;C&&!T&&(E=m+s+b,this.direction==="rtl"&&(E=this.width-E-_),l.fillStyle=C,l.fillRect(E,y,_,f/this.lineHeight)),y+=f}l.fillStyle=d,this._removeShadow(l)}},getFontCache:function(l){var f=l.fontFamily.toLowerCase();a.charWidthsCache[f]||(a.charWidthsCache[f]={});var s=a.charWidthsCache[f],d=l.fontStyle.toLowerCase()+"_"+(l.fontWeight+"").toLowerCase();return s[d]||(s[d]={}),s[d]},_measureChar:function(l,f,s,d){var g=this.getFontCache(f),v=this._getFontDeclaration(f),m=this._getFontDeclaration(d),y=s+l,b=v===m,_,S,C,T=f.fontSize/this.CACHE_FONT_SIZE,E;if(s&&g[s]!==void 0&&(C=g[s]),g[l]!==void 0&&(E=_=g[l]),b&&g[y]!==void 0&&(S=g[y],E=S-C),_===void 0||C===void 0||S===void 0){var O=this.getMeasuringContext();this._setTextStyles(O,f,!0)}return _===void 0&&(E=_=O.measureText(l).width,g[l]=_),C===void 0&&b&&s&&(C=O.measureText(s).width,g[s]=C),b&&S===void 0&&(S=O.measureText(y).width,g[y]=S,E=S-C),{width:_*T,kernedWidth:E*T}},getHeightOfChar:function(l,f){return this.getValueOfPropertyAt(l,f,"fontSize")},measureLine:function(l){var f=this._measureLine(l);return this.charSpacing!==0&&(f.width-=this._getWidthOfCharSpacing()),f.width<0&&(f.width=0),f},_measureLine:function(l){var f=0,s,d,g=this._textLines[l],v,m,y=0,b=new Array(g.length),_=0,S,C,T=this.path,E=this.pathSide==="right";for(this.__charBounds[l]=b,s=0;s<g.length;s++)d=g[s],m=this._getGraphemeBox(d,l,s,v),b[s]=m,f+=m.kernedWidth,v=d;if(b[s]={left:m?m.left+m.width:0,width:0,kernedWidth:0,height:this.fontSize},T){switch(C=T.segmentsInfo[T.segmentsInfo.length-1].length,S=a.util.getPointOnPath(T.path,0,T.segmentsInfo),S.x+=T.pathOffset.x,S.y+=T.pathOffset.y,this.textAlign){case"left":_=E?C-f:0;break;case"center":_=(C-f)/2;break;case"right":_=E?0:C-f;break}for(_+=this.pathStartOffset*(E?-1:1),s=E?g.length-1:0;E?s>=0:s<g.length;E?s--:s++)m=b[s],_>C?_%=C:_<0&&(_+=C),this._setGraphemeOnPath(_,m,S),_+=m.kernedWidth}return{width:f,numOfSpaces:y}},_setGraphemeOnPath:function(l,f,s){var d=l+f.kernedWidth/2,g=this.path,v=a.util.getPointOnPath(g.path,d,g.segmentsInfo);f.renderLeft=v.x-s.x,f.renderTop=v.y-s.y,f.angle=v.angle+(this.pathSide==="right"?Math.PI:0)},_getGraphemeBox:function(l,f,s,d,g){var v=this.getCompleteStyleDeclaration(f,s),m=d?this.getCompleteStyleDeclaration(f,s-1):{},y=this._measureChar(l,v,d,m),b=y.kernedWidth,_=y.width,S;this.charSpacing!==0&&(S=this._getWidthOfCharSpacing(),_+=S,b+=S);var C={width:_,left:0,height:v.fontSize,kernedWidth:b,deltaY:v.deltaY};if(s>0&&!g){var T=this.__charBounds[f][s-1];C.left=T.left+T.width+y.kernedWidth-y.width}return C},getHeightOfLine:function(l){if(this.__lineHeights[l])return this.__lineHeights[l];for(var f=this._textLines[l],s=this.getHeightOfChar(l,0),d=1,g=f.length;d<g;d++)s=Math.max(this.getHeightOfChar(l,d),s);return this.__lineHeights[l]=s*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var l,f=0,s=0,d=this._textLines.length;s<d;s++)l=this.getHeightOfLine(s),f+=s===d-1?l/this.lineHeight:l;return f},_getLeftOffset:function(){return this.direction==="ltr"?-this.width/2:this.width/2},_getTopOffset:function(){return-this.height/2},_renderTextCommon:function(l,f){l.save();for(var s=0,d=this._getLeftOffset(),g=this._getTopOffset(),v=0,m=this._textLines.length;v<m;v++){var y=this.getHeightOfLine(v),b=y/this.lineHeight,_=this._getLineLeftOffset(v);this._renderTextLine(f,l,this._textLines[v],d+_,g+s+b,v),s+=y}l.restore()},_renderTextFill:function(l){!this.fill&&!this.styleHas("fill")||this._renderTextCommon(l,"fillText")},_renderTextStroke:function(l){(!this.stroke||this.strokeWidth===0)&&this.isEmptyStyles()||(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(l),l.save(),this._setLineDash(l,this.strokeDashArray),l.beginPath(),this._renderTextCommon(l,"strokeText"),l.closePath(),l.restore())},_renderChars:function(l,f,s,d,g,v){var m=this.getHeightOfLine(v),y=this.textAlign.indexOf("justify")!==-1,b,_,S="",C,T=0,E,O=this.path,D=!y&&this.charSpacing===0&&this.isEmptyStyles(v)&&!O,j=this.direction==="ltr",k=this.direction==="ltr"?1:-1,U,P=f.canvas.getAttribute("dir");if(f.save(),P!==this.direction&&(f.canvas.setAttribute("dir",j?"ltr":"rtl"),f.direction=j?"ltr":"rtl",f.textAlign=j?"left":"right"),g-=m*this._fontSizeFraction/this.lineHeight,D){this._renderChar(l,f,v,0,s.join(""),d,g,m),f.restore();return}for(var re=0,q=s.length-1;re<=q;re++)E=re===q||this.charSpacing||O,S+=s[re],C=this.__charBounds[v][re],T===0?(d+=k*(C.kernedWidth-C.width),T+=C.width):T+=C.kernedWidth,y&&!E&&this._reSpaceAndTab.test(s[re])&&(E=!0),E||(b=b||this.getCompleteStyleDeclaration(v,re),_=this.getCompleteStyleDeclaration(v,re+1),E=a.util.hasStyleChanged(b,_,!1)),E&&(O?(f.save(),f.translate(C.renderLeft,C.renderTop),f.rotate(C.angle),this._renderChar(l,f,v,re,S,-T/2,0,m),f.restore()):(U=d,this._renderChar(l,f,v,re,S,U,g,m)),S="",b=_,d+=k*T,T=0);f.restore()},_applyPatternGradientTransformText:function(l){var f=a.util.createCanvasElement(),s,d=this.width+this.strokeWidth,g=this.height+this.strokeWidth;return f.width=d,f.height=g,s=f.getContext("2d"),s.beginPath(),s.moveTo(0,0),s.lineTo(d,0),s.lineTo(d,g),s.lineTo(0,g),s.closePath(),s.translate(d/2,g/2),s.fillStyle=l.toLive(s),this._applyPatternGradientTransform(s,l),s.fill(),s.createPattern(f,"no-repeat")},handleFiller:function(l,f,s){var d,g;return s.toLive?s.gradientUnits==="percentage"||s.gradientTransform||s.patternTransform?(d=-this.width/2,g=-this.height/2,l.translate(d,g),l[f]=this._applyPatternGradientTransformText(s),{offsetX:d,offsetY:g}):(l[f]=s.toLive(l,this),this._applyPatternGradientTransform(l,s)):(l[f]=s,{offsetX:0,offsetY:0})},_setStrokeStyles:function(l,f){return l.lineWidth=f.strokeWidth,l.lineCap=this.strokeLineCap,l.lineDashOffset=this.strokeDashOffset,l.lineJoin=this.strokeLineJoin,l.miterLimit=this.strokeMiterLimit,this.handleFiller(l,"strokeStyle",f.stroke)},_setFillStyles:function(l,f){return this.handleFiller(l,"fillStyle",f.fill)},_renderChar:function(l,f,s,d,g,v,m){var y=this._getStyleDeclaration(s,d),b=this.getCompleteStyleDeclaration(s,d),_=l==="fillText"&&b.fill,S=l==="strokeText"&&b.stroke&&b.strokeWidth,C,T;!S&&!_||(f.save(),_&&(C=this._setFillStyles(f,b)),S&&(T=this._setStrokeStyles(f,b)),f.font=this._getFontDeclaration(b),y&&y.textBackgroundColor&&this._removeShadow(f),y&&y.deltaY&&(m+=y.deltaY),_&&f.fillText(g,v-C.offsetX,m-C.offsetY),S&&f.strokeText(g,v-T.offsetX,m-T.offsetY),f.restore())},setSuperscript:function(l,f){return this._setScript(l,f,this.superscript)},setSubscript:function(l,f){return this._setScript(l,f,this.subscript)},_setScript:function(l,f,s){var d=this.get2DCursorLocation(l,!0),g=this.getValueOfPropertyAt(d.lineIndex,d.charIndex,"fontSize"),v=this.getValueOfPropertyAt(d.lineIndex,d.charIndex,"deltaY"),m={fontSize:g*s.size,deltaY:v+g*s.baseline};return this.setSelectionStyles(m,l,f),this},_getLineLeftOffset:function(l){var f=this.getLineWidth(l),s=this.width-f,d=this.textAlign,g=this.direction,m,v=0,m=this.isEndOfWrapping(l);return d==="justify"||d==="justify-center"&&!m||d==="justify-right"&&!m||d==="justify-left"&&!m?0:(d==="center"&&(v=s/2),d==="right"&&(v=s),d==="justify-center"&&(v=s/2),d==="justify-right"&&(v=s),g==="rtl"&&(v-=s),v)},_clearCache:function(){this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]},_shouldClearDimensionCache:function(){var l=this._forceClearCache;return l||(l=this.hasStateChanged("_dimensionAffectingProps")),l&&(this.dirty=!0,this._forceClearCache=!1),l},getLineWidth:function(l){if(this.__lineWidths[l]!==void 0)return this.__lineWidths[l];var f=this.measureLine(l),s=f.width;return this.__lineWidths[l]=s,s},_getWidthOfCharSpacing:function(){return this.charSpacing!==0?this.fontSize*this.charSpacing/1e3:0},getValueOfPropertyAt:function(l,f,s){var d=this._getStyleDeclaration(l,f);return d&&typeof d[s]<"u"?d[s]:this[s]},_renderTextDecoration:function(l,f){if(!(!this[f]&&!this.styleHas(f))){l.save(),(f==="overline"||f==="linethrough")&&this._removeShadow(l);for(var s,d,g,v,m,y,b,_,S=this._getLeftOffset(),C=this._getTopOffset(),T,E,O,D,j,k,U,P,re=this.path,q=this._getWidthOfCharSpacing(),V=this.offsets[f],te=0,A=this._textLines.length;te<A;te++){if(s=this.getHeightOfLine(te),!this[f]&&!this.styleHas(f,te)){C+=s;continue}b=this._textLines[te],k=s/this.lineHeight,v=this._getLineLeftOffset(te),E=0,O=0,_=this.getValueOfPropertyAt(te,0,f),P=this.getValueOfPropertyAt(te,0,"fill"),T=C+k*(1-this._fontSizeFraction),d=this.getHeightOfChar(te,0),m=this.getValueOfPropertyAt(te,0,"deltaY");for(var B=0,I=b.length;B<I;B++)if(D=this.__charBounds[te][B],j=this.getValueOfPropertyAt(te,B,f),U=this.getValueOfPropertyAt(te,B,"fill"),g=this.getHeightOfChar(te,B),y=this.getValueOfPropertyAt(te,B,"deltaY"),re&&j&&U)l.save(),l.fillStyle=P,l.translate(D.renderLeft,D.renderTop),l.rotate(D.angle),l.fillRect(-D.kernedWidth/2,V*g+y,D.kernedWidth,this.fontSize/15),l.restore();else if((j!==_||U!==P||g!==d||y!==m)&&O>0){var M=S+v+E;this.direction==="rtl"&&(M=this.width-M-O),_&&P&&(l.fillStyle=P,l.fillRect(M,T+V*d+m,O,this.fontSize/15)),E=D.left,O=D.width,_=j,P=U,d=g,m=y}else O+=D.kernedWidth;var M=S+v+E;this.direction==="rtl"&&(M=this.width-M-O),l.fillStyle=U,j&&U&&l.fillRect(M,T+V*d+m,O-q,this.fontSize/15),C+=s}l.restore()}},_getFontDeclaration:function(l,f){var s=l||this,d=this.fontFamily,g=a.Text.genericFonts.indexOf(d.toLowerCase())>-1,v=d===void 0||d.indexOf("'")>-1||d.indexOf(",")>-1||d.indexOf('"')>-1||g?s.fontFamily:'"'+s.fontFamily+'"';return[a.isLikelyNode?s.fontWeight:s.fontStyle,a.isLikelyNode?s.fontStyle:s.fontWeight,f?this.CACHE_FONT_SIZE+"px":s.fontSize+"px",v].join(" ")},render:function(l){!this.visible||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._shouldClearDimensionCache()&&this.initDimensions(),this.callSuper("render",l))},_splitTextIntoLines:function(l){for(var f=l.split(this._reNewline),s=new Array(f.length),d=[`
`],g=[],v=0;v<f.length;v++)s[v]=a.util.string.graphemeSplit(f[v]),g=g.concat(s[v],d);return g.pop(),{_unwrappedLines:s,lines:f,graphemeText:g,graphemeLines:s}},toObject:function(l){var f=h.concat(l),s=this.callSuper("toObject",f);return s.styles=a.util.stylesToArray(this.styles,this.text),s.path&&(s.path=this.path.toObject()),s},set:function(l,f){this.callSuper("set",l,f);var s=!1,d=!1;if(typeof l=="object")for(var g in l)g==="path"&&this.setPathInfo(),s=s||this._dimensionAffectingProps.indexOf(g)!==-1,d=d||g==="path";else s=this._dimensionAffectingProps.indexOf(l)!==-1,d=l==="path";return d&&this.setPathInfo(),s&&(this.initDimensions(),this.setCoords()),this},complexity:function(){return 1}}),a.Text.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat("x y dx dy font-family font-style font-weight font-size letter-spacing text-decoration text-anchor".split(" ")),a.Text.DEFAULT_SVG_FONT_SIZE=16,a.Text.fromElement=function(l,f,s){if(!l)return f(null);var d=a.parseAttributes(l,a.Text.ATTRIBUTE_NAMES),g=d.textAnchor||"left";if(s=a.util.object.extend(s?c(s):{},d),s.top=s.top||0,s.left=s.left||0,d.textDecoration){var v=d.textDecoration;v.indexOf("underline")!==-1&&(s.underline=!0),v.indexOf("overline")!==-1&&(s.overline=!0),v.indexOf("line-through")!==-1&&(s.linethrough=!0),delete s.textDecoration}"dx"in d&&(s.left+=d.dx),"dy"in d&&(s.top+=d.dy),"fontSize"in s||(s.fontSize=a.Text.DEFAULT_SVG_FONT_SIZE);var m="";"textContent"in l?m=l.textContent:"firstChild"in l&&l.firstChild!==null&&"data"in l.firstChild&&l.firstChild.data!==null&&(m=l.firstChild.data),m=m.replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," ");var y=s.strokeWidth;s.strokeWidth=0;var b=new a.Text(m,s),_=b.getScaledHeight()/b.height,S=(b.height+b.strokeWidth)*b.lineHeight-b.height,C=S*_,T=b.getScaledHeight()+C,E=0;g==="center"&&(E=b.getScaledWidth()/2),g==="right"&&(E=b.getScaledWidth()),b.set({left:b.left-E,top:b.top-(T-b.fontSize*(.07+b._fontSizeFraction))/b.lineHeight,strokeWidth:typeof y<"u"?y:1}),f(b)},a.Text.fromObject=function(l,f){var s=c(l),d=l.path;return delete s.path,a.Object._fromObject("Text",s,function(g){g.styles=a.util.stylesFromArray(l.styles,l.text),d?a.Object._fromObject("Path",d,function(v){g.set("path",v),f(g)},"path"):f(g)},"text")},a.Text.genericFonts=["sans-serif","serif","cursive","fantasy","monospace"],a.util.createAccessors&&a.util.createAccessors(a.Text)}(e),function(){t.util.object.extend(t.Text.prototype,{isEmptyStyles:function(o){if(!this.styles||typeof o<"u"&&!this.styles[o])return!0;var a=typeof o>"u"?this.styles:{line:this.styles[o]};for(var c in a)for(var h in a[c])for(var l in a[c][h])return!1;return!0},styleHas:function(o,a){if(!this.styles||!o||o===""||typeof a<"u"&&!this.styles[a])return!1;var c=typeof a>"u"?this.styles:{0:this.styles[a]};for(var h in c)for(var l in c[h])if(typeof c[h][l][o]<"u")return!0;return!1},cleanStyle:function(o){if(!this.styles||!o||o==="")return!1;var a=this.styles,c=0,h,l,f=!0,s=0,d;for(var g in a){h=0;for(var v in a[g]){var d=a[g][v],m=d.hasOwnProperty(o);c++,m?(l?d[o]!==l&&(f=!1):l=d[o],d[o]===this[o]&&delete d[o]):f=!1,Object.keys(d).length!==0?h++:delete a[g][v]}h===0&&delete a[g]}for(var y=0;y<this._textLines.length;y++)s+=this._textLines[y].length;f&&c===s&&(this[o]=l,this.removeStyle(o))},removeStyle:function(o){if(!(!this.styles||!o||o==="")){var a=this.styles,c,h,l;for(h in a){c=a[h];for(l in c)delete c[l][o],Object.keys(c[l]).length===0&&delete c[l];Object.keys(c).length===0&&delete a[h]}}},_extendStyles:function(o,a){var c=this.get2DCursorLocation(o);this._getLineStyle(c.lineIndex)||this._setLineStyle(c.lineIndex),this._getStyleDeclaration(c.lineIndex,c.charIndex)||this._setStyleDeclaration(c.lineIndex,c.charIndex,{}),t.util.object.extend(this._getStyleDeclaration(c.lineIndex,c.charIndex),a)},get2DCursorLocation:function(o,a){typeof o>"u"&&(o=this.selectionStart);for(var c=a?this._unwrappedTextLines:this._textLines,h=c.length,l=0;l<h;l++){if(o<=c[l].length)return{lineIndex:l,charIndex:o};o-=c[l].length+this.missingNewlineOffset(l,a)}return{lineIndex:l-1,charIndex:c[l-1].length<o?c[l-1].length:o}},getSelectionStyles:function(o,a,c){typeof o>"u"&&(o=this.selectionStart||0),typeof a>"u"&&(a=this.selectionEnd||o);for(var h=[],l=o;l<a;l++)h.push(this.getStyleAtPosition(l,c));return h},getStyleAtPosition:function(o,a){var c=this.get2DCursorLocation(o),h=a?this.getCompleteStyleDeclaration(c.lineIndex,c.charIndex):this._getStyleDeclaration(c.lineIndex,c.charIndex);return h||{}},setSelectionStyles:function(o,a,c){typeof a>"u"&&(a=this.selectionStart||0),typeof c>"u"&&(c=this.selectionEnd||a);for(var h=a;h<c;h++)this._extendStyles(h,o);return this._forceClearCache=!0,this},_getStyleDeclaration:function(o,a){var c=this.styles&&this.styles[o];return c?c[a]:null},getCompleteStyleDeclaration:function(o,a){for(var c=this._getStyleDeclaration(o,a)||{},h={},l,f=0;f<this._styleProperties.length;f++)l=this._styleProperties[f],h[l]=typeof c[l]>"u"?this[l]:c[l];return h},_setStyleDeclaration:function(o,a,c){this.styles[o][a]=c},_deleteStyleDeclaration:function(o,a){delete this.styles[o][a]},_getLineStyle:function(o){return!!this.styles[o]},_setLineStyle:function(o){this.styles[o]={}},_deleteLineStyle:function(o){delete this.styles[o]}})}(),function(){function o(a){a.textDecoration&&(a.textDecoration.indexOf("underline")>-1&&(a.underline=!0),a.textDecoration.indexOf("line-through")>-1&&(a.linethrough=!0),a.textDecoration.indexOf("overline")>-1&&(a.overline=!0),delete a.textDecoration)}t.IText=t.util.createClass(t.Text,t.Observable,{type:"i-text",selectionStart:0,selectionEnd:0,selectionColor:"rgba(17,119,255,0.3)",isEditing:!1,editable:!0,editingBorderColor:"rgba(102,153,255,0.25)",cursorWidth:2,cursorColor:"",cursorDelay:1e3,cursorDuration:600,caching:!0,hiddenTextareaContainer:null,_reSpace:/\s|\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],inCompositionMode:!1,initialize:function(a,c){this.callSuper("initialize",a,c),this.initBehavior()},setSelectionStart:function(a){a=Math.max(a,0),this._updateAndFire("selectionStart",a)},setSelectionEnd:function(a){a=Math.min(a,this.text.length),this._updateAndFire("selectionEnd",a)},_updateAndFire:function(a,c){this[a]!==c&&(this._fireSelectionChanged(),this[a]=c),this._updateTextarea()},_fireSelectionChanged:function(){this.fire("selection:changed"),this.canvas&&this.canvas.fire("text:selection:changed",{target:this})},initDimensions:function(){this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this.callSuper("initDimensions")},render:function(a){this.clearContextTop(),this.callSuper("render",a),this.cursorOffsetCache={},this.renderCursorOrSelection()},_render:function(a){this.callSuper("_render",a)},clearContextTop:function(a){if(!(!this.isEditing||!this.canvas||!this.canvas.contextTop)){var c=this.canvas.contextTop,h=this.canvas.viewportTransform;c.save(),c.transform(h[0],h[1],h[2],h[3],h[4],h[5]),this.transform(c),this._clearTextArea(c),a||c.restore()}},renderCursorOrSelection:function(){if(!(!this.isEditing||!this.canvas||!this.canvas.contextTop)){var a=this._getCursorBoundaries(),c=this.canvas.contextTop;this.clearContextTop(!0),this.selectionStart===this.selectionEnd?this.renderCursor(a,c):this.renderSelection(a,c),c.restore()}},_clearTextArea:function(a){var c=this.width+4,h=this.height+4;a.clearRect(-c/2,-h/2,c,h)},_getCursorBoundaries:function(a){typeof a>"u"&&(a=this.selectionStart);var c=this._getLeftOffset(),h=this._getTopOffset(),l=this._getCursorBoundariesOffsets(a);return{left:c,top:h,leftOffset:l.left,topOffset:l.top}},_getCursorBoundariesOffsets:function(a){if(this.cursorOffsetCache&&"top"in this.cursorOffsetCache)return this.cursorOffsetCache;var c,h,l,f=0,s=0,d,g=this.get2DCursorLocation(a);l=g.charIndex,h=g.lineIndex;for(var v=0;v<h;v++)f+=this.getHeightOfLine(v);c=this._getLineLeftOffset(h);var m=this.__charBounds[h][l];return m&&(s=m.left),this.charSpacing!==0&&l===this._textLines[h].length&&(s-=this._getWidthOfCharSpacing()),d={top:f,left:c+(s>0?s:0)},this.direction==="rtl"&&(d.left*=-1),this.cursorOffsetCache=d,this.cursorOffsetCache},renderCursor:function(a,c){var h=this.get2DCursorLocation(),l=h.lineIndex,f=h.charIndex>0?h.charIndex-1:0,s=this.getValueOfPropertyAt(l,f,"fontSize"),d=this.scaleX*this.canvas.getZoom(),g=this.cursorWidth/d,v=a.topOffset,m=this.getValueOfPropertyAt(l,f,"deltaY");v+=(1-this._fontSizeFraction)*this.getHeightOfLine(l)/this.lineHeight-s*(1-this._fontSizeFraction),this.inCompositionMode&&this.renderSelection(a,c),c.fillStyle=this.cursorColor||this.getValueOfPropertyAt(l,f,"fill"),c.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,c.fillRect(a.left+a.leftOffset-g/2,v+a.top+m,g,s)},renderSelection:function(a,c){for(var h=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,l=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,f=this.textAlign.indexOf("justify")!==-1,s=this.get2DCursorLocation(h),d=this.get2DCursorLocation(l),g=s.lineIndex,v=d.lineIndex,m=s.charIndex<0?0:s.charIndex,y=d.charIndex<0?0:d.charIndex,b=g;b<=v;b++){var _=this._getLineLeftOffset(b)||0,S=this.getHeightOfLine(b),C=0,T=0,E=0;if(b===g&&(T=this.__charBounds[g][m].left),b>=g&&b<v)E=f&&!this.isEndOfWrapping(b)?this.width:this.getLineWidth(b)||5;else if(b===v)if(y===0)E=this.__charBounds[v][y].left;else{var O=this._getWidthOfCharSpacing();E=this.__charBounds[v][y-1].left+this.__charBounds[v][y-1].width-O}C=S,(this.lineHeight<1||b===v&&this.lineHeight>1)&&(S/=this.lineHeight);var D=a.left+_+T,j=E-T,k=S,U=0;this.inCompositionMode?(c.fillStyle=this.compositionColor||"black",k=1,U=S):c.fillStyle=this.selectionColor,this.direction==="rtl"&&(D=this.width-D-j),c.fillRect(D,a.top+a.topOffset+U,j,k),a.topOffset+=C}},getCurrentCharFontSize:function(){var a=this._getCurrentCharIndex();return this.getValueOfPropertyAt(a.l,a.c,"fontSize")},getCurrentCharColor:function(){var a=this._getCurrentCharIndex();return this.getValueOfPropertyAt(a.l,a.c,"fill")},_getCurrentCharIndex:function(){var a=this.get2DCursorLocation(this.selectionStart,!0),c=a.charIndex>0?a.charIndex-1:0;return{l:a.lineIndex,c}}}),t.IText.fromObject=function(a,c){var h=t.util.stylesFromArray(a.styles,a.text),l=Object.assign({},a,{styles:h});if(delete l.path,o(l),l.styles)for(var f in l.styles)for(var s in l.styles[f])o(l.styles[f][s]);t.Object._fromObject("IText",l,function(d){a.path?t.Object._fromObject("Path",a.path,function(g){d.set("path",g),c(d)},"path"):c(d)},"text")}}(),function(){var o=t.util.object.clone;t.util.object.extend(t.IText.prototype,{initBehavior:function(){this.initAddedHandler(),this.initRemovedHandler(),this.initCursorSelectionHandlers(),this.initDoubleClickSimulation(),this.mouseMoveHandler=this.mouseMoveHandler.bind(this)},onDeselect:function(){this.isEditing&&this.exitEditing(),this.selected=!1},initAddedHandler:function(){var a=this;this.on("added",function(){var c=a.canvas;c&&(c._hasITextHandlers||(c._hasITextHandlers=!0,a._initCanvasHandlers(c)),c._iTextInstances=c._iTextInstances||[],c._iTextInstances.push(a))})},initRemovedHandler:function(){var a=this;this.on("removed",function(){var c=a.canvas;c&&(c._iTextInstances=c._iTextInstances||[],t.util.removeFromArray(c._iTextInstances,a),c._iTextInstances.length===0&&(c._hasITextHandlers=!1,a._removeCanvasHandlers(c)))})},_initCanvasHandlers:function(a){a._mouseUpITextHandler=function(){a._iTextInstances&&a._iTextInstances.forEach(function(c){c.__isMousedown=!1})},a.on("mouse:up",a._mouseUpITextHandler)},_removeCanvasHandlers:function(a){a.off("mouse:up",a._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,"_onTickComplete")},_animateCursor:function(a,c,h,l){var f;return f={isAborted:!1,abort:function(){this.isAborted=!0}},a.animate("_currentCursorOpacity",c,{duration:h,onComplete:function(){f.isAborted||a[l]()},onChange:function(){a.canvas&&a.selectionStart===a.selectionEnd&&a.renderCursorOrSelection()},abort:function(){return f.isAborted}}),f},_onTickComplete:function(){var a=this;this._cursorTimeout1&&clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout(function(){a._currentTickCompleteState=a._animateCursor(a,0,this.cursorDuration/2,"_tick")},100)},initDelayedCursor:function(a){var c=this,h=a?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout(function(){c._tick()},h)},abortCursorAnimation:function(){var a=this._currentTickState||this._currentTickCompleteState,c=this.canvas;this._currentTickState&&this._currentTickState.abort(),this._currentTickCompleteState&&this._currentTickCompleteState.abort(),clearTimeout(this._cursorTimeout1),clearTimeout(this._cursorTimeout2),this._currentCursorOpacity=0,a&&c&&c.clearContext(c.contextTop||c.contextContainer)},selectAll:function(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this},getSelectedText:function(){return this._text.slice(this.selectionStart,this.selectionEnd).join("")},findWordBoundaryLeft:function(a){var c=0,h=a-1;if(this._reSpace.test(this._text[h]))for(;this._reSpace.test(this._text[h]);)c++,h--;for(;/\S/.test(this._text[h])&&h>-1;)c++,h--;return a-c},findWordBoundaryRight:function(a){var c=0,h=a;if(this._reSpace.test(this._text[h]))for(;this._reSpace.test(this._text[h]);)c++,h++;for(;/\S/.test(this._text[h])&&h<this._text.length;)c++,h++;return a+c},findLineBoundaryLeft:function(a){for(var c=0,h=a-1;!/\n/.test(this._text[h])&&h>-1;)c++,h--;return a-c},findLineBoundaryRight:function(a){for(var c=0,h=a;!/\n/.test(this._text[h])&&h<this._text.length;)c++,h++;return a+c},searchWordBoundary:function(a,c){for(var h=this._text,l=this._reSpace.test(h[a])?a-1:a,f=h[l],s=t.reNonWord;!s.test(f)&&l>0&&l<h.length;)l+=c,f=h[l];return s.test(f)&&(l+=c===1?0:1),l},selectWord:function(a){a=a||this.selectionStart;var c=this.searchWordBoundary(a,-1),h=this.searchWordBoundary(a,1);this.selectionStart=c,this.selectionEnd=h,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(a){a=a||this.selectionStart;var c=this.findLineBoundaryLeft(a),h=this.findLineBoundaryRight(a);return this.selectionStart=c,this.selectionEnd=h,this._fireSelectionChanged(),this._updateTextarea(),this},enterEditing:function(a){if(!(this.isEditing||!this.editable))return this.canvas&&(this.canvas.calcOffset(),this.exitEditingOnOthers(this.canvas)),this.isEditing=!0,this.initHiddenTextarea(a),this.hiddenTextarea.focus(),this.hiddenTextarea.value=this.text,this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick(),this.fire("editing:entered"),this._fireSelectionChanged(),this.canvas?(this.canvas.fire("text:editing:entered",{target:this}),this.initMouseMoveHandler(),this.canvas.requestRenderAll(),this):this},exitEditingOnOthers:function(a){a._iTextInstances&&a._iTextInstances.forEach(function(c){c.selected=!1,c.isEditing&&c.exitEditing()})},initMouseMoveHandler:function(){this.canvas.on("mouse:move",this.mouseMoveHandler)},mouseMoveHandler:function(a){if(!(!this.__isMousedown||!this.isEditing)){document.activeElement!==this.hiddenTextarea&&this.hiddenTextarea.focus();var c=this.getSelectionStartFromPointer(a.e),h=this.selectionStart,l=this.selectionEnd;(c!==this.__selectionStartOnMouseDown||h===l)&&(h===c||l===c)||(c>this.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=c):(this.selectionStart=c,this.selectionEnd=this.__selectionStartOnMouseDown),(this.selectionStart!==h||this.selectionEnd!==l)&&(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}},_setEditingProps:function(){this.hoverCursor="text",this.canvas&&(this.canvas.defaultCursor=this.canvas.moveCursor="text"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0},fromStringToGraphemeSelection:function(a,c,h){var l=h.slice(0,a),f=t.util.string.graphemeSplit(l).length;if(a===c)return{selectionStart:f,selectionEnd:f};var s=h.slice(a,c),d=t.util.string.graphemeSplit(s).length;return{selectionStart:f,selectionEnd:f+d}},fromGraphemeToStringSelection:function(a,c,h){var l=h.slice(0,a),f=l.join("").length;if(a===c)return{selectionStart:f,selectionEnd:f};var s=h.slice(a,c),d=s.join("").length;return{selectionStart:f,selectionEnd:f+d}},_updateTextarea:function(){if(this.cursorOffsetCache={},!!this.hiddenTextarea){if(!this.inCompositionMode){var a=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=a.selectionStart,this.hiddenTextarea.selectionEnd=a.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(!!this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords());var a=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=a.selectionEnd,this.inCompositionMode||(this.selectionStart=a.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var a=this._calcTextareaPosition();this.hiddenTextarea.style.left=a.left,this.hiddenTextarea.style.top=a.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var a=this.inCompositionMode?this.compositionStart:this.selectionStart,c=this._getCursorBoundaries(a),h=this.get2DCursorLocation(a),l=h.lineIndex,f=h.charIndex,s=this.getValueOfPropertyAt(l,f,"fontSize")*this.lineHeight,d=c.leftOffset,g=this.calcTransformMatrix(),v={x:c.left+d,y:c.top+c.topOffset+s},m=this.canvas.getRetinaScaling(),y=this.canvas.upperCanvasEl,b=y.width/m,_=y.height/m,S=b-s,C=_-s,T=y.clientWidth/b,E=y.clientHeight/_;return v=t.util.transformPoint(v,g),v=t.util.transformPoint(v,this.canvas.viewportTransform),v.x*=T,v.y*=E,v.x<0&&(v.x=0),v.x>S&&(v.x=S),v.y<0&&(v.y=0),v.y>C&&(v.y=C),v.x+=this.canvas._offset.left,v.y+=this.canvas._offset.top,{left:v.x+"px",top:v.y+"px",fontSize:s+"px",charHeight:s}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}},_restoreEditingProps:function(){!this._savedProps||(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var a=this._textBeforeEdit!==this.text,c=this.hiddenTextarea;return this.selected=!1,this.isEditing=!1,this.selectionEnd=this.selectionStart,c&&(c.blur&&c.blur(),c.parentNode&&c.parentNode.removeChild(c)),this.hiddenTextarea=null,this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this.fire("editing:exited"),a&&this.fire("modified"),this.canvas&&(this.canvas.off("mouse:move",this.mouseMoveHandler),this.canvas.fire("text:editing:exited",{target:this}),a&&this.canvas.fire("object:modified",{target:this})),this},_removeExtraneousStyles:function(){for(var a in this.styles)this._textLines[a]||delete this.styles[a]},removeStyleFromTo:function(a,c){var h=this.get2DCursorLocation(a,!0),l=this.get2DCursorLocation(c,!0),f=h.lineIndex,s=h.charIndex,d=l.lineIndex,g=l.charIndex,v,m;if(f!==d){if(this.styles[f])for(v=s;v<this._unwrappedTextLines[f].length;v++)delete this.styles[f][v];if(this.styles[d])for(v=g;v<this._unwrappedTextLines[d].length;v++)m=this.styles[d][v],m&&(this.styles[f]||(this.styles[f]={}),this.styles[f][s+v-g]=m);for(v=f+1;v<=d;v++)delete this.styles[v];this.shiftLineStyles(d,f-d)}else if(this.styles[f]){m=this.styles[f];var y=g-s,b,_;for(v=s;v<g;v++)delete m[v];for(_ in this.styles[f])b=parseInt(_,10),b>=g&&(m[b-y]=m[_],delete m[_])}},shiftLineStyles:function(a,c){var h=o(this.styles);for(var l in this.styles){var f=parseInt(l,10);f>a&&(this.styles[f+c]=h[f],h[f-c]||delete this.styles[f])}},restartCursorIfNeeded:function(){(!this._currentTickState||this._currentTickState.isAborted||!this._currentTickCompleteState||this._currentTickCompleteState.isAborted)&&this.initDelayedCursor()},insertNewlineStyleObject:function(a,c,h,l){var f,s={},d=!1,g=this._unwrappedTextLines[a].length,v=g===c;h||(h=1),this.shiftLineStyles(a,h),this.styles[a]&&(f=this.styles[a][c===0?c:c-1]);for(var m in this.styles[a]){var y=parseInt(m,10);y>=c&&(d=!0,s[y-c]=this.styles[a][m],v&&c===0||delete this.styles[a][m])}var b=!1;for(d&&!v&&(this.styles[a+h]=s,b=!0),(b||g>c)&&h--;h>0;)l&&l[h-1]?this.styles[a+h]={0:o(l[h-1])}:f?this.styles[a+h]={0:o(f)}:delete this.styles[a+h],h--;this._forceClearCache=!0},insertCharStyleObject:function(a,c,h,l){this.styles||(this.styles={});var f=this.styles[a],s=f?o(f):{};h||(h=1);for(var d in s){var g=parseInt(d,10);g>=c&&(f[g+h]=s[g],s[g-h]||delete f[g])}if(this._forceClearCache=!0,l){for(;h--;)!Object.keys(l[h]).length||(this.styles[a]||(this.styles[a]={}),this.styles[a][c+h]=o(l[h]));return}if(!!f)for(var v=f[c?c-1:1];v&&h--;)this.styles[a][c+h]=o(v)},insertNewStyleBlock:function(a,c,h){for(var l=this.get2DCursorLocation(c,!0),f=[0],s=0,d=0;d<a.length;d++)a[d]===`
`?(s++,f[s]=0):f[s]++;f[0]>0&&(this.insertCharStyleObject(l.lineIndex,l.charIndex,f[0],h),h=h&&h.slice(f[0]+1)),s&&this.insertNewlineStyleObject(l.lineIndex,l.charIndex+f[0],s);for(var d=1;d<s;d++)f[d]>0?this.insertCharStyleObject(l.lineIndex+d,0,f[d],h):h&&this.styles[l.lineIndex+d]&&h[0]&&(this.styles[l.lineIndex+d][0]=h[0]),h=h&&h.slice(f[d]+1);f[d]>0&&this.insertCharStyleObject(l.lineIndex+d,0,f[d],h)},setSelectionStartEndWithShift:function(a,c,h){h<=a?(c===a?this._selectionDirection="left":this._selectionDirection==="right"&&(this._selectionDirection="left",this.selectionEnd=a),this.selectionStart=h):h>a&&h<c?this._selectionDirection==="right"?this.selectionEnd=h:this.selectionStart=h:(c===a?this._selectionDirection="right":this._selectionDirection==="left"&&(this._selectionDirection="right",this.selectionStart=c),this.selectionEnd=h)},setSelectionInBoundaries:function(){var a=this.text.length;this.selectionStart>a?this.selectionStart=a:this.selectionStart<0&&(this.selectionStart=0),this.selectionEnd>a?this.selectionEnd=a:this.selectionEnd<0&&(this.selectionEnd=0)}})}(),t.util.object.extend(t.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on("mousedown",this.onMouseDown)},onMouseDown:function(o){if(!!this.canvas){this.__newClickTime=+new Date;var a=o.pointer;this.isTripleClick(a)&&(this.fire("tripleclick",o),this._stopEvent(o.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=a,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(o){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===o.x&&this.__lastPointer.y===o.y},_stopEvent:function(o){o.preventDefault&&o.preventDefault(),o.stopPropagation&&o.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(o){!this.isEditing||this.selectWord(this.getSelectionStartFromPointer(o.e))},tripleClickHandler:function(o){!this.isEditing||this.selectLine(this.getSelectionStartFromPointer(o.e))},initClicks:function(){this.on("mousedblclick",this.doubleClickHandler),this.on("tripleclick",this.tripleClickHandler)},_mouseDownHandler:function(o){!this.canvas||!this.editable||o.e.button&&o.e.button!==1||(this.__isMousedown=!0,this.selected&&(this.inCompositionMode=!1,this.setCursorByClick(o.e)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(o){!this.canvas||!this.editable||o.e.button&&o.e.button!==1||(this.selected=this===this.canvas._activeObject)},initMousedownHandler:function(){this.on("mousedown",this._mouseDownHandler),this.on("mousedown:before",this._mouseDownHandlerBefore)},initMouseupHandler:function(){this.on("mouseup",this.mouseUpHandler)},mouseUpHandler:function(o){if(this.__isMousedown=!1,!(!this.editable||this.group||o.transform&&o.transform.actionPerformed||o.e.button&&o.e.button!==1)){if(this.canvas){var a=this.canvas._activeObject;if(a&&a!==this)return}this.__lastSelected&&!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(o.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(o){var a=this.getSelectionStartFromPointer(o),c=this.selectionStart,h=this.selectionEnd;o.shiftKey?this.setSelectionStartEndWithShift(c,h,a):(this.selectionStart=a,this.selectionEnd=a),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(o){for(var a=this.getLocalPointer(o),c=0,h=0,l=0,f=0,s=0,d,g,v=0,m=this._textLines.length;v<m&&l<=a.y;v++)l+=this.getHeightOfLine(v)*this.scaleY,s=v,v>0&&(f+=this._textLines[v-1].length+this.missingNewlineOffset(v-1));d=this._getLineLeftOffset(s),h=d*this.scaleX,g=this._textLines[s],this.direction==="rtl"&&(a.x=this.width*this.scaleX-a.x+h);for(var y=0,b=g.length;y<b&&(c=h,h+=this.__charBounds[s][y].kernedWidth*this.scaleX,h<=a.x);y++)f++;return this._getNewSelectionStartFromOffset(a,c,h,f,b)},_getNewSelectionStartFromOffset:function(o,a,c,h,l){var f=o.x-a,s=c-o.x,d=s>f||s<0?0:1,g=h+d;return this.flipX&&(g=l-g),g>this._text.length&&(g=this._text.length),g}}),t.util.object.extend(t.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=t.document.createElement("textarea"),this.hiddenTextarea.setAttribute("autocapitalize","off"),this.hiddenTextarea.setAttribute("autocorrect","off"),this.hiddenTextarea.setAttribute("autocomplete","off"),this.hiddenTextarea.setAttribute("spellcheck","false"),this.hiddenTextarea.setAttribute("data-fabric-hiddentextarea",""),this.hiddenTextarea.setAttribute("wrap","off");var o=this._calcTextareaPosition();this.hiddenTextarea.style.cssText="position: absolute; top: "+o.top+"; left: "+o.left+"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; padding-top: "+o.fontSize+";",this.hiddenTextareaContainer?this.hiddenTextareaContainer.appendChild(this.hiddenTextarea):t.document.body.appendChild(this.hiddenTextarea),t.util.addListener(this.hiddenTextarea,"keydown",this.onKeyDown.bind(this)),t.util.addListener(this.hiddenTextarea,"keyup",this.onKeyUp.bind(this)),t.util.addListener(this.hiddenTextarea,"input",this.onInput.bind(this)),t.util.addListener(this.hiddenTextarea,"copy",this.copy.bind(this)),t.util.addListener(this.hiddenTextarea,"cut",this.copy.bind(this)),t.util.addListener(this.hiddenTextarea,"paste",this.paste.bind(this)),t.util.addListener(this.hiddenTextarea,"compositionstart",this.onCompositionStart.bind(this)),t.util.addListener(this.hiddenTextarea,"compositionupdate",this.onCompositionUpdate.bind(this)),t.util.addListener(this.hiddenTextarea,"compositionend",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized&&this.canvas&&(t.util.addListener(this.canvas.upperCanvasEl,"click",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorRight",36:"moveCursorLeft",37:"moveCursorLeft",38:"moveCursorUp",39:"moveCursorRight",40:"moveCursorDown"},keysMapRtl:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorLeft",36:"moveCursorRight",37:"moveCursorRight",38:"moveCursorUp",39:"moveCursorLeft",40:"moveCursorDown"},ctrlKeysMapUp:{67:"copy",88:"cut"},ctrlKeysMapDown:{65:"selectAll"},onClick:function(){this.hiddenTextarea&&this.hiddenTextarea.focus()},onKeyDown:function(o){if(!!this.isEditing){var a=this.direction==="rtl"?this.keysMapRtl:this.keysMap;if(o.keyCode in a)this[a[o.keyCode]](o);else if(o.keyCode in this.ctrlKeysMapDown&&(o.ctrlKey||o.metaKey))this[this.ctrlKeysMapDown[o.keyCode]](o);else return;o.stopImmediatePropagation(),o.preventDefault(),o.keyCode>=33&&o.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}},onKeyUp:function(o){if(!this.isEditing||this._copyDone||this.inCompositionMode){this._copyDone=!1;return}if(o.keyCode in this.ctrlKeysMapUp&&(o.ctrlKey||o.metaKey))this[this.ctrlKeysMapUp[o.keyCode]](o);else return;o.stopImmediatePropagation(),o.preventDefault(),this.canvas&&this.canvas.requestRenderAll()},onInput:function(o){var a=this.fromPaste;if(this.fromPaste=!1,o&&o.stopPropagation(),!!this.isEditing){var c=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,h=this._text.length,l=c.length,f,s,d=l-h,g=this.selectionStart,v=this.selectionEnd,m=g!==v,y,b,_;if(this.hiddenTextarea.value===""){this.styles={},this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll());return}var S=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),C=g>S.selectionStart;m?(f=this._text.slice(g,v),d+=v-g):l<h&&(C?f=this._text.slice(v+d,v):f=this._text.slice(g,g-d)),s=c.slice(S.selectionEnd-d,S.selectionEnd),f&&f.length&&(s.length&&(y=this.getSelectionStyles(g,g+1,!1),y=s.map(function(){return y[0]})),m?(b=g,_=v):C?(b=v-f.length,_=v):(b=v,_=v+f.length),this.removeStyleFromTo(b,_)),s.length&&(a&&s.join("")===t.copiedText&&!t.disableStyleCopyPaste&&(y=t.copiedTextStyle),this.insertNewStyleBlock(s,g,y)),this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll())}},onCompositionStart:function(){this.inCompositionMode=!0},onCompositionEnd:function(){this.inCompositionMode=!1},onCompositionUpdate:function(o){this.compositionStart=o.target.selectionStart,this.compositionEnd=o.target.selectionEnd,this.updateTextareaPosition()},copy:function(){this.selectionStart!==this.selectionEnd&&(t.copiedText=this.getSelectedText(),t.disableStyleCopyPaste?t.copiedTextStyle=null:t.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0)},paste:function(){this.fromPaste=!0},_getClipboardData:function(o){return o&&o.clipboardData||t.window.clipboardData},_getWidthBeforeCursor:function(o,a){var c=this._getLineLeftOffset(o),h;return a>0&&(h=this.__charBounds[o][a-1],c+=h.left+h.width),c},getDownCursorOffset:function(o,a){var c=this._getSelectionForOffset(o,a),h=this.get2DCursorLocation(c),l=h.lineIndex;if(l===this._textLines.length-1||o.metaKey||o.keyCode===34)return this._text.length-c;var f=h.charIndex,s=this._getWidthBeforeCursor(l,f),d=this._getIndexOnLine(l+1,s),g=this._textLines[l].slice(f);return g.length+d+1+this.missingNewlineOffset(l)},_getSelectionForOffset:function(o,a){return o.shiftKey&&this.selectionStart!==this.selectionEnd&&a?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(o,a){var c=this._getSelectionForOffset(o,a),h=this.get2DCursorLocation(c),l=h.lineIndex;if(l===0||o.metaKey||o.keyCode===33)return-c;var f=h.charIndex,s=this._getWidthBeforeCursor(l,f),d=this._getIndexOnLine(l-1,s),g=this._textLines[l].slice(0,f),v=this.missingNewlineOffset(l-1);return-this._textLines[l-1].length+d-g.length+(1-v)},_getIndexOnLine:function(o,a){for(var c=this._textLines[o],h=this._getLineLeftOffset(o),l=h,f=0,s,d,g=0,v=c.length;g<v;g++)if(s=this.__charBounds[o][g].width,l+=s,l>a){d=!0;var m=l-s,y=l,b=Math.abs(m-a),_=Math.abs(y-a);f=_<b?g:g-1;break}return d||(f=c.length-1),f},moveCursorDown:function(o){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",o)},moveCursorUp:function(o){this.selectionStart===0&&this.selectionEnd===0||this._moveCursorUpOrDown("Up",o)},_moveCursorUpOrDown:function(o,a){var c="get"+o+"CursorOffset",h=this[c](a,this._selectionDirection==="right");a.shiftKey?this.moveCursorWithShift(h):this.moveCursorWithoutShift(h),h!==0&&(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(o){var a=this._selectionDirection==="left"?this.selectionStart+o:this.selectionEnd+o;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,a),o!==0},moveCursorWithoutShift:function(o){return o<0?(this.selectionStart+=o,this.selectionEnd=this.selectionStart):(this.selectionEnd+=o,this.selectionStart=this.selectionEnd),o!==0},moveCursorLeft:function(o){this.selectionStart===0&&this.selectionEnd===0||this._moveCursorLeftOrRight("Left",o)},_move:function(o,a,c){var h;if(o.altKey)h=this["findWordBoundary"+c](this[a]);else if(o.metaKey||o.keyCode===35||o.keyCode===36)h=this["findLineBoundary"+c](this[a]);else return this[a]+=c==="Left"?-1:1,!0;if(typeof h<"u"&&this[a]!==h)return this[a]=h,!0},_moveLeft:function(o,a){return this._move(o,a,"Left")},_moveRight:function(o,a){return this._move(o,a,"Right")},moveCursorLeftWithoutShift:function(o){var a=!0;return this._selectionDirection="left",this.selectionEnd===this.selectionStart&&this.selectionStart!==0&&(a=this._moveLeft(o,"selectionStart")),this.selectionEnd=this.selectionStart,a},moveCursorLeftWithShift:function(o){if(this._selectionDirection==="right"&&this.selectionStart!==this.selectionEnd)return this._moveLeft(o,"selectionEnd");if(this.selectionStart!==0)return this._selectionDirection="left",this._moveLeft(o,"selectionStart")},moveCursorRight:function(o){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",o)},_moveCursorLeftOrRight:function(o,a){var c="moveCursor"+o+"With";this._currentCursorOpacity=1,a.shiftKey?c+="Shift":c+="outShift",this[c](a)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(o){if(this._selectionDirection==="left"&&this.selectionStart!==this.selectionEnd)return this._moveRight(o,"selectionStart");if(this.selectionEnd!==this._text.length)return this._selectionDirection="right",this._moveRight(o,"selectionEnd")},moveCursorRightWithoutShift:function(o){var a=!0;return this._selectionDirection="right",this.selectionStart===this.selectionEnd?(a=this._moveRight(o,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,a},removeChars:function(o,a){typeof a>"u"&&(a=o+1),this.removeStyleFromTo(o,a),this._text.splice(o,a-o),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(o,a,c,h){typeof h>"u"&&(h=c),h>c&&this.removeStyleFromTo(c,h);var l=t.util.string.graphemeSplit(o);this.insertNewStyleBlock(l,c,a),this._text=[].concat(this._text.slice(0,c),l,this._text.slice(h)),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),function(){var o=t.util.toFixed,a=t.util.radiansToDegrees,c=t.util.calcRotateMatrix,h=t.util.transformPoint,l=/ +/g;t.util.object.extend(t.Text.prototype,{_toSVG:function(){var f=this._getSVGLeftTopOffsets(),s=this._getSVGTextAndBg(f.textTop,f.textLeft);return this._wrapSVGTextAndBg(s)},toSVG:function(f){var s=this._createBaseSVGMarkup(this._toSVG(),{reviver:f,noStyle:!0,withShadow:!0}),d=this.path;return d?s+d._createBaseSVGMarkup(d._toSVG(),{reviver:f,withShadow:!0}):s},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(f){var s=!0,d=this.getSvgTextDecoration(this);return[f.textBgRects.join(""),' <text xml:space="preserve" ',this.fontFamily?'font-family="'+this.fontFamily.replace(/"/g,"'")+'" ':"",this.fontSize?'font-size="'+this.fontSize+'" ':"",this.fontStyle?'font-style="'+this.fontStyle+'" ':"",this.fontWeight?'font-weight="'+this.fontWeight+'" ':"",d?'text-decoration="'+d+'" ':"",'style="',this.getSvgStyles(s),'"',this.addPaintOrder()," >",f.textSpans.join(""),`</text>
`]},_getSVGTextAndBg:function(f,s){var d=[],g=[],v=f,m;this._setSVGBg(g);for(var y=0,b=this._textLines.length;y<b;y++)m=this._getLineLeftOffset(y),(this.textBackgroundColor||this.styleHas("textBackgroundColor",y))&&this._setSVGTextLineBg(g,y,s+m,v),this._setSVGTextLineText(d,y,s+m,v),v+=this.getHeightOfLine(y);return{textSpans:d,textBgRects:g}},_createTextCharSpan:function(f,s,d,g,v){var m=f!==f.trim()||f.match(l),y=this.getSvgSpanStyles(s,m),b=y?'style="'+y+'"':"",_=s.deltaY,S="",C=t.Object.NUM_FRACTION_DIGITS,T="";if(_&&(S=' dy="'+o(_,C)+'" '),v.renderLeft!==void 0){var E=v.angle;T=' rotate="'+o(a(E),t.Object.NUM_FRACTION_DIGITS)+'" ';var O=v.width/2,D=c({angle:a(E)});D[4]=v.renderLeft,D[5]=v.renderTop;var j=h({x:-O,y:0},D);d=j.x,g=j.y}return['<tspan x="',o(d,C),'" y="',o(g,C),'" ',S,b,T,">",t.util.string.escapeXml(f),"</tspan>"].join("")},_setSVGTextLineText:function(f,s,d,g){var v=this.getHeightOfLine(s),m=this.textAlign.indexOf("justify")!==-1,y,b,_="",S,C,T=0,E=this._textLines[s],O;g+=v*(1-this._fontSizeFraction)/this.lineHeight;for(var D=0,j=E.length-1;D<=j;D++)O=D===j||this.charSpacing||this.path,_+=E[D],S=this.__charBounds[s][D],T===0?(d+=S.kernedWidth-S.width,T+=S.width):T+=S.kernedWidth,m&&!O&&this._reSpaceAndTab.test(E[D])&&(O=!0),O||(y=y||this.getCompleteStyleDeclaration(s,D),b=this.getCompleteStyleDeclaration(s,D+1),O=t.util.hasStyleChanged(y,b,!0)),O&&(C=this._getStyleDeclaration(s,D)||{},f.push(this._createTextCharSpan(_,C,d,g,S)),_="",y=b,d+=T,T=0)},_pushTextBgRect:function(f,s,d,g,v,m){var y=t.Object.NUM_FRACTION_DIGITS;f.push(" <rect ",this._getFillAttributes(s),' x="',o(d,y),'" y="',o(g,y),'" width="',o(v,y),'" height="',o(m,y),`"></rect>
`)},_setSVGTextLineBg:function(f,s,d,g){for(var v=this._textLines[s],m=this.getHeightOfLine(s)/this.lineHeight,y=0,b=0,_,S,C=this.getValueOfPropertyAt(s,0,"textBackgroundColor"),T=0,E=v.length;T<E;T++)_=this.__charBounds[s][T],S=this.getValueOfPropertyAt(s,T,"textBackgroundColor"),S!==C?(C&&this._pushTextBgRect(f,C,d+b,g,y,m),b=_.left,y=_.width,C=S):y+=_.kernedWidth;S&&this._pushTextBgRect(f,S,d+b,g,y,m)},_getFillAttributes:function(f){var s=f&&typeof f=="string"?new t.Color(f):"";return!s||!s.getSource()||s.getAlpha()===1?'fill="'+f+'"':'opacity="'+s.getAlpha()+'" fill="'+s.setAlpha(1).toRgb()+'"'},_getSVGLineTopOffset:function(f){for(var s=0,d=0,g=0;g<f;g++)s+=this.getHeightOfLine(g);return d=this.getHeightOfLine(g),{lineTop:s,offset:(this._fontSizeMult-this._fontSizeFraction)*d/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(f){var s=t.Object.prototype.getSvgStyles.call(this,f);return s+" white-space: pre;"}})}(),function(o){var a=o.fabric||(o.fabric={});a.Textbox=a.util.createClass(a.IText,a.Observable,{type:"textbox",minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:a.Text.prototype._dimensionAffectingProps.concat("width"),_wordJoiners:/[ \t\r]/,splitByGrapheme:!1,initDimensions:function(){this.__skipDimension||(this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth>this.width&&this._set("width",this.dynamicMinWidth),this.textAlign.indexOf("justify")!==-1&&this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:"_dimensionAffectingProps"}))},_generateStyleMap:function(c){for(var h=0,l=0,f=0,s={},d=0;d<c.graphemeLines.length;d++)c.graphemeText[f]===`
`&&d>0?(l=0,f++,h++):!this.splitByGrapheme&&this._reSpaceAndTab.test(c.graphemeText[f])&&d>0&&(l++,f++),s[d]={line:h,offset:l},f+=c.graphemeLines[d].length,l+=c.graphemeLines[d].length;return s},styleHas:function(c,h){if(this._styleMap&&!this.isWrapping){var l=this._styleMap[h];l&&(h=l.line)}return a.Text.prototype.styleHas.call(this,c,h)},isEmptyStyles:function(c){if(!this.styles)return!0;var h=0,l=c+1,f,s,d=!1,g=this._styleMap[c],v=this._styleMap[c+1];g&&(c=g.line,h=g.offset),v&&(l=v.line,d=l===c,f=v.offset),s=typeof c>"u"?this.styles:{line:this.styles[c]};for(var m in s)for(var y in s[m])if(y>=h&&(!d||y<f))for(var b in s[m][y])return!1;return!0},_getStyleDeclaration:function(c,h){if(this._styleMap&&!this.isWrapping){var l=this._styleMap[c];if(!l)return null;c=l.line,h=l.offset+h}return this.callSuper("_getStyleDeclaration",c,h)},_setStyleDeclaration:function(c,h,l){var f=this._styleMap[c];c=f.line,h=f.offset+h,this.styles[c][h]=l},_deleteStyleDeclaration:function(c,h){var l=this._styleMap[c];c=l.line,h=l.offset+h,delete this.styles[c][h]},_getLineStyle:function(c){var h=this._styleMap[c];return!!this.styles[h.line]},_setLineStyle:function(c){var h=this._styleMap[c];this.styles[h.line]={}},_wrapText:function(c,h){var l=[],f;for(this.isWrapping=!0,f=0;f<c.length;f++)l=l.concat(this._wrapLine(c[f],f,h));return this.isWrapping=!1,l},_measureWord:function(c,h,l){var f=0,s,d=!0;l=l||0;for(var g=0,v=c.length;g<v;g++){var m=this._getGraphemeBox(c[g],h,g+l,s,d);f+=m.kernedWidth,s=c[g]}return f},_wrapLine:function(c,h,l,D){var s=0,d=this.splitByGrapheme,g=[],v=[],m=d?a.util.string.graphemeSplit(c):c.split(this._wordJoiners),y="",b=0,_=d?"":" ",S=0,C=0,T=0,E=!0,O=this._getWidthOfCharSpacing(),D=D||0;m.length===0&&m.push([]),l-=D;for(var j=0;j<m.length;j++)y=d?m[j]:a.util.string.graphemeSplit(m[j]),S=this._measureWord(y,h,b),b+=y.length,s+=C+S-O,s>l&&!E?(g.push(v),v=[],s=S,E=!0):s+=O,!E&&!d&&v.push(_),v=v.concat(y),C=d?0:this._measureWord([_],h,b),b++,E=!1,S>T&&(T=S);return j&&g.push(v),T+D>this.dynamicMinWidth&&(this.dynamicMinWidth=T-O+D),g},isEndOfWrapping:function(c){return!this._styleMap[c+1]||this._styleMap[c+1].line!==this._styleMap[c].line},missingNewlineOffset:function(c,h){return this.splitByGrapheme&&!h?this.isEndOfWrapping(c)?1:0:1},_splitTextIntoLines:function(c){for(var h=a.Text.prototype._splitTextIntoLines.call(this,c),l=this._wrapText(h.lines,this.width),f=new Array(l.length),s=0;s<l.length;s++)f[s]=l[s].join("");return h.lines=f,h.graphemeLines=l,h},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var c={};for(var h in this._styleMap)this._textLines[h]&&(c[this._styleMap[h].line]=1);for(var h in this.styles)c[h]||delete this.styles[h]},toObject:function(c){return this.callSuper("toObject",["minWidth","splitByGrapheme"].concat(c))}}),a.Textbox.fromObject=function(c,h){var l=a.util.stylesFromArray(c.styles,c.text),f=Object.assign({},c,{styles:l});return delete f.path,a.Object._fromObject("Textbox",f,function(s){c.path?a.Object._fromObject("Path",c.path,function(d){s.set("path",d),h(s)},"path"):h(s)},"text")}}(e),function(){var o=t.controlsUtils,a=o.scaleSkewCursorStyleHandler,c=o.scaleCursorStyleHandler,h=o.scalingEqually,l=o.scalingYOrSkewingX,f=o.scalingXOrSkewingY,s=o.scaleOrSkewActionName,d=t.Object.prototype.controls;if(d.ml=new t.Control({x:-.5,y:0,cursorStyleHandler:a,actionHandler:f,getActionName:s}),d.mr=new t.Control({x:.5,y:0,cursorStyleHandler:a,actionHandler:f,getActionName:s}),d.mb=new t.Control({x:0,y:.5,cursorStyleHandler:a,actionHandler:l,getActionName:s}),d.mt=new t.Control({x:0,y:-.5,cursorStyleHandler:a,actionHandler:l,getActionName:s}),d.tl=new t.Control({x:-.5,y:-.5,cursorStyleHandler:c,actionHandler:h}),d.tr=new t.Control({x:.5,y:-.5,cursorStyleHandler:c,actionHandler:h}),d.bl=new t.Control({x:-.5,y:.5,cursorStyleHandler:c,actionHandler:h}),d.br=new t.Control({x:.5,y:.5,cursorStyleHandler:c,actionHandler:h}),d.mtr=new t.Control({x:0,y:-.5,actionHandler:o.rotationWithSnapping,cursorStyleHandler:o.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:"rotate"}),t.Textbox){var g=t.Textbox.prototype.controls={};g.mtr=d.mtr,g.tr=d.tr,g.br=d.br,g.tl=d.tl,g.bl=d.bl,g.mt=d.mt,g.mb=d.mb,g.mr=new t.Control({x:.5,y:0,actionHandler:o.changeWidth,cursorStyleHandler:a,actionName:"resizing"}),g.ml=new t.Control({x:-.5,y:0,actionHandler:o.changeWidth,cursorStyleHandler:a,actionName:"resizing"})}}()})(mr);const Us=Ho("canvas",()=>{const e=()=>({canvas:void 0,brush:void 0,visibleImageLayer:void 0,imageLayer:void 0,visibleDrawLayer:void 0,drawLayer:void 0,cropPreviewLayer:void 0,maskPathColor:"",maskBackgroundColor:"",imageScale:1,undoHistory:[],redoHistory:[],drawing:!1}),t=ie({...e(),maskPathColor:"white",maskBackgroundColor:"black"}),n=ie({...e(),maskPathColor:"black",maskBackgroundColor:"white"}),r=W(()=>Hn().generatorType==="Inpainting"),i=W(()=>r.value?t.value:n.value),u=W(()=>Hn().currentImageProps),p=W({get:()=>i.value.drawing&&!r.value,set:B=>i.value.drawing=B}),o=ie(512),a=ie(512),c=ie(!1),h=ie(30),l=ie(!1),f=new mr.fabric.Circle({radius:h.value,left:0,originX:"center",originY:"center",angle:0,fill:"",stroke:"red",strokeWidth:3,opacity:0}),s=ie("Erase"),d=ie("rgb(0, 0, 0, 1)");function g(){!i.value.canvas||i.value.canvas.renderAll()}function v(){c.value=!c.value,s.value=c.value?"Draw":"Erase"}function m(B=null){!i.value.canvas||(i.value.brush=i.value.canvas.freeDrawingBrush,i.value.brush.color=B||i.value.brush.color,i.value.brush.width=h.value)}async function y({history:B,erase:I=!1,draw:M=!1}={}){if(!B||!i.value.drawLayer||!i.value.visibleDrawLayer||!i.value.imageLayer||!i.value.visibleImageLayer||!i.value.canvas)return;B.path.selectable=!1,B.path.opacity=1,B.drawPath=await V(B.path),B.visibleDrawPath=await V(B.path),I?(B.visibleDrawPath.globalCompositeOperation="destination-out",B.drawPath.stroke=i.value.maskBackgroundColor):(B.visibleDrawPath.globalCompositeOperation="source-over",B.drawPath.stroke=M?d.value:i.value.maskPathColor);let J=await V(B.drawPath);J=J.scale(i.value.imageScale),J.left=J.left+B.drawPath.left*(i.value.imageScale-1),J.top=J.top+B.drawPath.top*(i.value.imageScale-1),M?(i.value.imageLayer.add(J),i.value.visibleImageLayer.addWithUpdate(B.visibleDrawPath)):(i.value.drawLayer.add(J),i.value.visibleDrawLayer.addWithUpdate(B.visibleDrawPath)),i.value.canvas.remove(B.path),g()}function b(){if(i.value.undoHistory.length===0)return;const B=i.value.undoHistory.pop();y({history:B,erase:!1,draw:p.value}),i.value.redoHistory.push(B)}function _(){if(i.value.redoHistory.length===0||!i.value.drawLayer||!i.value.visibleDrawLayer||!i.value.imageLayer||!i.value.visibleImageLayer||!i.value.canvas)return;const B=i.value.redoHistory.pop();i.value.undoHistory.push(B),p.value?(i.value.imageLayer.remove(B.drawPath),i.value.visibleImageLayer.remove(B.visibleDrawPath)):(i.value.drawLayer.remove(B.drawPath),i.value.visibleDrawLayer.remove(B.visibleDrawPath)),delete B.drawPath,delete B.visibleDrawPath,g()}function S(B){i.value.canvas=new mr.fabric.Canvas(B,{isDrawingMode:!1,width:o.value,height:a.value,backgroundColor:"white"}),i.value.canvas.selection=!1,i.value.canvas.freeDrawingCursor="crosshair",m(i.value.maskPathColor),i.value.canvas.on("mouse:move",A),i.value.canvas.on("path:created",te),g()}function C(B,I,M,J){let z=J,L=J;return I>M?(B.scaleToWidth(J),z=J*(a.value/o.value)):(B.scaleToHeight(J),L=J*(o.value/a.value)),{newHeight:z,newWidth:L}}function T(B){const I=Hn();if(P(),B.selectable=!1,o.value=B.width,a.value=B.height,o.value>I.maxDimensions||a.value>I.maxDimensions){const{newHeight:J,newWidth:z}=C(B,o.value,a.value,I.maxDimensions);o.value=z,a.value=J}if(o.value<I.minDimensions||a.value<I.minDimensions){const{newHeight:J,newWidth:z}=C(B,o.value,a.value,I.minDimensions);o.value=z,a.value=J}const M=512;B.cloneAsImage(J=>{o.value>a.value?i.value.imageScale=o.value/M:i.value.imageScale=a.value/M,i.value.imageLayer=k({image:J,layerHeight:J.height,layerWidth:J.width})}),B.cloneAsImage(J=>{if(!i.value.canvas)return;if(o.value!==M||a.value!==M){const{newHeight:Q,newWidth:H}=C(J,o.value,a.value,M);o.value=H,a.value=Q}i.value.canvas.setWidth(o.value),i.value.canvas.setHeight(a.value),i.value.canvas.isDrawingMode=!0,i.value.visibleDrawLayer=U(),i.value.visibleImageLayer=U({image:J}),i.value.drawLayer=k();const z=o.value*i.value.imageScale,L=a.value*i.value.imageScale;I.params.width=z-z%64,I.params.height=L-L%64,i.value.visibleDrawLayer.set("opacity",.8),i.value.canvas.add(i.value.visibleImageLayer),i.value.canvas.add(i.value.visibleDrawLayer),i.value.canvas.add(f),l.value=!0,D(),E()})}function E(){const B=Hn();if(!i.value.imageLayer||!i.value.drawLayer)return;const I=i.value.imageLayer.getCenter().left-B.params.width/2,M=B.params.width,J=i.value.imageLayer.getCenter().top-B.params.height/2,z=B.params.height,L={format:"jpeg",quality:1,left:I,top:J,width:M,height:z};u.value.sourceImage=i.value.imageLayer.toDataURL(L),u.value.maskImage=i.value.redoHistory.length===0||p.value?void 0:i.value.drawLayer.toDataURL(L).split(",")[1]}let O;function D(){if(!i.value.canvas)return;const B=Hn();i.value.cropPreviewLayer&&(i.value.canvas.remove(i.value.cropPreviewLayer),i.value.cropPreviewLayer=void 0),l.value&&(i.value.cropPreviewLayer=U({layerWidth:B.params.width/i.value.imageScale,layerHeight:B.params.height/i.value.imageScale,fill:"rgba(100, 0, 0, 0.5)"}),i.value.canvas.centerObject(i.value.cropPreviewLayer),i.value.canvas.add(i.value.cropPreviewLayer),O&&clearTimeout(O),O=setTimeout(()=>{l.value=!1,D(),O=void 0},5e3))}function j(B,I){const M="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdj+P///38ACfsD/QVDRcoAAAAASUVORK5CYII=";mr.fabric.Image.fromURL(M,J=>{J.set({height:B,width:I});const z=J.toDataURL({format:"png"});u.value.sourceImage=z,p.value=!0,T(J)})}function k({image:B,layerWidth:I,layerHeight:M}={}){const J=new mr.fabric.Canvas(null);return J.selection=!1,J.backgroundColor=i.value.maskBackgroundColor,J.setHeight(M||a.value),J.setWidth(I||o.value),B&&J.add(B),J}function U({image:B,layerWidth:I,layerHeight:M,fill:J,abosolute:z}={}){const L=B||new mr.fabric.Rect({width:I||o.value,height:M||a.value,left:0,top:0,fill:J||"transparent",absolutePositioned:z||!0,selectable:!1});return new mr.fabric.Group([L],{selectable:!1,absolutePositioned:z||!0})}function P(){!i.value.canvas||(i.value.visibleImageLayer&&(i.value.canvas.remove(i.value.visibleImageLayer),i.value.visibleImageLayer=void 0),i.value.visibleDrawLayer&&(i.value.canvas.remove(i.value.visibleDrawLayer),i.value.visibleDrawLayer=void 0),i.value.imageLayer=void 0,i.value.drawLayer=void 0,i.value.redoHistory=[],i.value.undoHistory=[],i.value.canvas.isDrawingMode=!1)}function re(){if(!!i.value.canvas){if(i.value.visibleDrawLayer&&(i.value.canvas.remove(i.value.visibleDrawLayer),i.value.visibleDrawLayer=void 0),p.value){const B=Hn();j(B.params.height||512,B.params.width||512)}i.value.drawLayer=void 0,i.value.redoHistory=[],i.value.undoHistory=[],i.value.visibleDrawLayer=U(),i.value.drawLayer=k(),i.value.visibleDrawLayer.set("opacity",.8),i.value.canvas.add(i.value.visibleDrawLayer)}}function q(){var I;E();const B=document.createElement("a");if(p.value){B.href="data:image/png;base64,"+((I=u.value.sourceImage)==null?void 0:I.split(",")[1]),B.download="image_drawing.png",B.click();return}B.href="data:image/png;base64,"+u.value.maskImage,B.download="image_mask.png",B.click()}async function V(B){return new Promise((I,M)=>{try{B.clone(I)}catch(J){M(J)}})}async function te(B){const I={path:B.path};y({history:I,erase:c.value,draw:p.value}),i.value.redoHistory.push(I)}function A(B){if(!i.value.canvas)return;const I=i.value.canvas.getPointer(B.e);f.left=I.x,f.top=I.y,f.opacity=.8,c.value?(f.set("strokeWidth",3),f.set("fill",""),m("red")):(f.set("strokeWidth",0),p.value?(f.set("fill",d.value),m(d.value)):(f.set("fill","white"),m("white"))),f.set("radius",h.value/2),g()}return{showCropPreview:l,erasing:c,switchToolText:s,brushSize:h,drawColor:d,drawing:p,imageProps:i,updateCropPreview:D,createNewCanvas:S,downloadMask:q,resetCanvas:P,resetDrawing:re,flipErase:v,undoAction:_,redoAction:b,newImage:T,newBlankImage:j,setBrush:m,saveImages:E}});const kU={},OU={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 20 20"};function PU(e,t){return $(),oe("svg",OU,[...t[0]||(t[0]=[ae("g",{fill:"none"},[ae("path",{d:"M11.197 2.44a1.5 1.5 0 0 1 2.121 0l4.243 4.242a1.5 1.5 0 0 1 0 2.121L9.364 17H14.5a.5.5 0 0 1 0 1H7.82a1.496 1.496 0 0 1-1.14-.437L2.437 13.32a1.5 1.5 0 0 1 0-2.121l8.76-8.76zm1.414.706a.5.5 0 0 0-.707 0L5.538 9.512l4.95 4.95l6.366-6.366a.5.5 0 0 0 0-.707L12.61 3.146zM9.781 15.17l-4.95-4.95l-1.687 1.687a.5.5 0 0 0 0 .707l4.243 4.243a.5.5 0 0 0 .707 0l1.687-1.687z",fill:"currentColor"})],-1)])])}const AU=bn(kU,[["render",PU]]);async function IU(e,t){const n=document.createElement("canvas"),r=n.getContext("2d"),i=new Image;return i.src=e,await new Promise(p=>i.onload=p),n.width=i.width,n.height=i.height,r==null||r.drawImage(i,0,0),n.toDataURL(t)}async function MU(e,t){const n=e.split(";base64,"),r=t!=null?t:n[0].split(":")[1],i=window.atob(r===n[0].split(":")[1]?n[1]:(await IU(e,r)).split(",")[1]),u=new Uint8Array(i.length);for(let p=0;p<i.length;++p)u[p]=i.charCodeAt(p);return u}async function _a(e,t){const n=t!=null?t:e.split(";base64,")[0].split(":")[1],r=await MU(e,t);return new Blob([r],{type:n})}function tC(e){return new Promise((t,n)=>{const r=new FileReader;r.onload=()=>t(r.result),r.onerror=i=>n(i),r.readAsDataURL(e)})}const RU={key:0},LU={class:"canvas-container"},DU={class:"action-buttons",style:{left:"10px",right:"unset"}},FU={class:"action-buttons"},BU=pe({__name:"CustomCanvas",setup(e){const t=Hn(),n=jt(),r=Us(),i=ie();async function u(o){if(!o.raw.type.includes("image")){n.raiseError("Uploaded file needs to be a image!",!1),i.value.clearFiles();return}const a=await tC(o.raw);t.currentImageProps.sourceImage=a,r.drawing=!1,mr.fabric.Image.fromURL(a,r.newImage)}function p(){t.currentImageProps.sourceImage="",r.resetCanvas()}return Je(()=>{r.createNewCanvas("canvas"),t.currentImageProps.sourceImage&&mr.fabric.Image.fromURL(t.currentImageProps.sourceImage,r.newImage)}),(o,a)=>($(),oe($e,null,[w(t).currentImageProps.sourceImage?be("",!0):($(),ye(w(Vv),{key:0,drag:"",ref_key:"upload",ref:i,"auto-upload":!1,onChange:u,limit:1,multiple:""},{tip:he(()=>[w(t).generatorType==="Img2Img"?($(),oe("div",RU,[a[9]||(a[9]=ae("div",{class:"center-horizontal",style:{"margin-top":"5px"}},"OR",-1)),ae("div",{class:"center-both",style:{cursor:"pointer","text-decoration":"underline","font-size":"1rem"},onClick:a[0]||(a[0]=c=>w(r).newBlankImage(w(t).params.height||512,w(t).params.width||512))},[ce(w(De),{size:20,style:{"margin-right":"2px"}},{default:he(()=>[ce(QS)]),_:1}),a[8]||(a[8]=We("draw something",-1))])])):be("",!0)]),default:he(()=>[ce(w(De),{size:100},{default:he(()=>[ce(w(Kp))]),_:1}),a[10]||(a[10]=ae("div",null,[We("Drop file here OR "),ae("em",null,"click to upload")],-1))]),_:1},512)),mt(ae("div",null,[ae("div",LU,[a[11]||(a[11]=ae("canvas",{id:"canvas"},null,-1)),ae("div",DU,[ce(w(ht),{onClick:a[1]||(a[1]=c=>w(r).undoAction()),icon:w(k1),plain:"",disabled:w(r).imageProps.redoHistory.length===0},null,8,["icon","disabled"]),ce(w(ht),{onClick:a[2]||(a[2]=c=>w(r).redoAction()),icon:w(O1),plain:"",disabled:w(r).imageProps.undoHistory.length===0},null,8,["icon","disabled"])]),ae("div",FU,[ce(w(ht),{onClick:a[3]||(a[3]=c=>w(r).resetDrawing()),icon:w(Vr),plain:""},null,8,["icon"]),ce(w(ht),{onClick:p,icon:w(lf),plain:""},null,8,["icon"]),ce(w(ht),{onClick:a[4]||(a[4]=c=>w(r).downloadMask()),icon:w(il),plain:""},null,8,["icon"]),ce(w(ht),{onClick:a[5]||(a[5]=c=>w(r).flipErase()),icon:w(r).erasing?w(sO):AU,plain:""},null,8,["icon"]),w(r).drawing?($(),ye(w(LF),{key:0,modelValue:w(r).drawColor,"onUpdate:modelValue":a[6]||(a[6]=c=>w(r).drawColor=c),"show-alpha":""},null,8,["modelValue"])):be("",!0)]),ce(w(Lv),{"label-width":"110px",style:{"margin-top":"10px"}},{default:he(()=>[ce(jn,{style:{"margin-bottom":"5px"},label:"Brush Size",prop:"brushSize",modelValue:w(r).brushSize,"onUpdate:modelValue":a[7]||(a[7]=c=>w(r).brushSize=c),min:10,max:100,step:10,onChange:w(r).setBrush},null,8,["modelValue","onChange"])]),_:1})])],512),[[Ft,w(t).currentImageProps.sourceImage]])],64))}});const Hy=bn(BU,[["__scopeId","data-v-048c3c7e"]]),NU={class:"centerIcons"},$U={class:"stackedIcons"},zU=pe({__name:"StackedIcon",props:{iconOne:{type:[Object,Function]},iconTwo:{type:[Object,Function]},size:{}},setup(e){JT(n=>({a52249ca:n.size+"px"}));const t=e;return(n,r)=>($(),oe("div",NU,[ae("div",$U,[ce(w(De),{class:"firstIcon",size:n.size},{default:he(()=>[($(),ye(ut(t.iconOne)))]),_:1},8,["size"]),ce(w(De),{class:"secondIcon",size:n.size},{default:he(()=>[($(),ye(ut(t.iconTwo)))]),_:1},8,["size"])])]))}});const jU=bn(zU,[["__scopeId","data-v-97afe113"]]),VU={key:1,style:{width:"40px"}},Ru=pe({__name:"GeneratorMenuItem",props:{index:{},iconOne:{type:[Object,Function]},iconTwo:{type:[Object,Function]},isMobile:{type:Boolean}},setup(e){const t=e;return(n,r)=>($(),ye(w(Wr),{content:n.index,placement:n.isMobile?"bottom":"right",enterable:!1,"hide-after":100},{default:he(()=>[ce(w(Nv),{index:n.index,style:{height:"60px",display:"flex","justify-content":"center"}},{default:he(()=>[n.iconTwo?($(),ye(jU,{key:0,iconOne:n.iconOne,iconTwo:n.iconTwo,size:40},null,8,["iconOne","iconTwo"])):($(),oe("div",VU,[ce(w(De),{style:{width:"35px"},size:40},{default:he(()=>[($(),ye(ut(t.iconOne)))]),_:1})]))]),_:1},8,["index"])]),_:1},8,["content","placement"]))}});/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const UU=4,Wy=0,Ky=1,HU=2;function rs(e){let t=e.length;for(;--t>=0;)e[t]=0}const WU=0,nC=1,KU=2,GU=3,YU=258,dg=29,Jl=256,El=Jl+1+dg,To=30,hg=19,rC=2*El+1,wa=15,Td=16,XU=7,pg=256,iC=16,aC=17,oC=18,lp=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),ic=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),qU=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),sC=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ZU=512,ai=new Array((El+2)*2);rs(ai);const Hs=new Array(To*2);rs(Hs);const kl=new Array(ZU);rs(kl);const Ol=new Array(YU-GU+1);rs(Ol);const vg=new Array(dg);rs(vg);const Uc=new Array(To);rs(Uc);function Ed(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}let lC,uC,cC;function kd(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const fC=e=>e<256?kl[e]:kl[256+(e>>>7)],Pl=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Ln=(e,t,n)=>{e.bi_valid>Td-n?(e.bi_buf|=t<<e.bi_valid&65535,Pl(e,e.bi_buf),e.bi_buf=t>>Td-e.bi_valid,e.bi_valid+=n-Td):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},Br=(e,t,n)=>{Ln(e,n[t*2],n[t*2+1])},dC=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},JU=e=>{e.bi_valid===16?(Pl(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},QU=(e,t)=>{const n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,u=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,o=t.stat_desc.extra_base,a=t.stat_desc.max_length;let c,h,l,f,s,d,g=0;for(f=0;f<=wa;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,c=e.heap_max+1;c<rC;c++)h=e.heap[c],f=n[n[h*2+1]*2+1]+1,f>a&&(f=a,g++),n[h*2+1]=f,!(h>r)&&(e.bl_count[f]++,s=0,h>=o&&(s=p[h-o]),d=n[h*2],e.opt_len+=d*(f+s),u&&(e.static_len+=d*(i[h*2+1]+s)));if(g!==0){do{for(f=a-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[a]--,g-=2}while(g>0);for(f=a;f!==0;f--)for(h=e.bl_count[f];h!==0;)l=e.heap[--c],!(l>r)&&(n[l*2+1]!==f&&(e.opt_len+=(f-n[l*2+1])*n[l*2],n[l*2+1]=f),h--)}},hC=(e,t,n)=>{const r=new Array(wa+1);let i=0,u,p;for(u=1;u<=wa;u++)i=i+n[u-1]<<1,r[u]=i;for(p=0;p<=t;p++){let o=e[p*2+1];o!==0&&(e[p*2]=dC(r[o]++,o))}},e7=()=>{let e,t,n,r,i;const u=new Array(wa+1);for(n=0,r=0;r<dg-1;r++)for(vg[r]=n,e=0;e<1<<lp[r];e++)Ol[n++]=r;for(Ol[n-1]=r,i=0,r=0;r<16;r++)for(Uc[r]=i,e=0;e<1<<ic[r];e++)kl[i++]=r;for(i>>=7;r<To;r++)for(Uc[r]=i<<7,e=0;e<1<<ic[r]-7;e++)kl[256+i++]=r;for(t=0;t<=wa;t++)u[t]=0;for(e=0;e<=143;)ai[e*2+1]=8,e++,u[8]++;for(;e<=255;)ai[e*2+1]=9,e++,u[9]++;for(;e<=279;)ai[e*2+1]=7,e++,u[7]++;for(;e<=287;)ai[e*2+1]=8,e++,u[8]++;for(hC(ai,El+1,u),e=0;e<To;e++)Hs[e*2+1]=5,Hs[e*2]=dC(e,5);lC=new Ed(ai,lp,Jl+1,El,wa),uC=new Ed(Hs,ic,0,To,wa),cC=new Ed(new Array(0),qU,0,hg,XU)},pC=e=>{let t;for(t=0;t<El;t++)e.dyn_ltree[t*2]=0;for(t=0;t<To;t++)e.dyn_dtree[t*2]=0;for(t=0;t<hg;t++)e.bl_tree[t*2]=0;e.dyn_ltree[pg*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},vC=e=>{e.bi_valid>8?Pl(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Gy=(e,t,n,r)=>{const i=t*2,u=n*2;return e[i]<e[u]||e[i]===e[u]&&r[t]<=r[n]},Od=(e,t,n)=>{const r=e.heap[n];let i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&Gy(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!Gy(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},Yy=(e,t,n)=>{let r,i,u=0,p,o;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+u++]&255,r+=(e.pending_buf[e.sym_buf+u++]&255)<<8,i=e.pending_buf[e.sym_buf+u++],r===0?Br(e,i,t):(p=Ol[i],Br(e,p+Jl+1,t),o=lp[p],o!==0&&(i-=vg[p],Ln(e,i,o)),r--,p=fC(r),Br(e,p,n),o=ic[p],o!==0&&(r-=Uc[p],Ln(e,r,o)));while(u<e.sym_next);Br(e,pg,t)},up=(e,t)=>{const n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,u=t.stat_desc.elems;let p,o,a=-1,c;for(e.heap_len=0,e.heap_max=rC,p=0;p<u;p++)n[p*2]!==0?(e.heap[++e.heap_len]=a=p,e.depth[p]=0):n[p*2+1]=0;for(;e.heap_len<2;)c=e.heap[++e.heap_len]=a<2?++a:0,n[c*2]=1,e.depth[c]=0,e.opt_len--,i&&(e.static_len-=r[c*2+1]);for(t.max_code=a,p=e.heap_len>>1;p>=1;p--)Od(e,n,p);c=u;do p=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Od(e,n,1),o=e.heap[1],e.heap[--e.heap_max]=p,e.heap[--e.heap_max]=o,n[c*2]=n[p*2]+n[o*2],e.depth[c]=(e.depth[p]>=e.depth[o]?e.depth[p]:e.depth[o])+1,n[p*2+1]=n[o*2+1]=c,e.heap[1]=c++,Od(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],QU(e,t),hC(n,a,e.bl_count)},Xy=(e,t,n)=>{let r,i=-1,u,p=t[0*2+1],o=0,a=7,c=4;for(p===0&&(a=138,c=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)u=p,p=t[(r+1)*2+1],!(++o<a&&u===p)&&(o<c?e.bl_tree[u*2]+=o:u!==0?(u!==i&&e.bl_tree[u*2]++,e.bl_tree[iC*2]++):o<=10?e.bl_tree[aC*2]++:e.bl_tree[oC*2]++,o=0,i=u,p===0?(a=138,c=3):u===p?(a=6,c=3):(a=7,c=4))},qy=(e,t,n)=>{let r,i=-1,u,p=t[0*2+1],o=0,a=7,c=4;for(p===0&&(a=138,c=3),r=0;r<=n;r++)if(u=p,p=t[(r+1)*2+1],!(++o<a&&u===p)){if(o<c)do Br(e,u,e.bl_tree);while(--o!==0);else u!==0?(u!==i&&(Br(e,u,e.bl_tree),o--),Br(e,iC,e.bl_tree),Ln(e,o-3,2)):o<=10?(Br(e,aC,e.bl_tree),Ln(e,o-3,3)):(Br(e,oC,e.bl_tree),Ln(e,o-11,7));o=0,i=u,p===0?(a=138,c=3):u===p?(a=6,c=3):(a=7,c=4)}},t7=e=>{let t;for(Xy(e,e.dyn_ltree,e.l_desc.max_code),Xy(e,e.dyn_dtree,e.d_desc.max_code),up(e,e.bl_desc),t=hg-1;t>=3&&e.bl_tree[sC[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},n7=(e,t,n,r)=>{let i;for(Ln(e,t-257,5),Ln(e,n-1,5),Ln(e,r-4,4),i=0;i<r;i++)Ln(e,e.bl_tree[sC[i]*2+1],3);qy(e,e.dyn_ltree,t-1),qy(e,e.dyn_dtree,n-1)},r7=e=>{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return Wy;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Ky;for(n=32;n<Jl;n++)if(e.dyn_ltree[n*2]!==0)return Ky;return Wy};let Zy=!1;const i7=e=>{Zy||(e7(),Zy=!0),e.l_desc=new kd(e.dyn_ltree,lC),e.d_desc=new kd(e.dyn_dtree,uC),e.bl_desc=new kd(e.bl_tree,cC),e.bi_buf=0,e.bi_valid=0,pC(e)},gC=(e,t,n,r)=>{Ln(e,(WU<<1)+(r?1:0),3),vC(e),Pl(e,n),Pl(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},a7=e=>{Ln(e,nC<<1,3),Br(e,pg,ai),JU(e)},o7=(e,t,n,r)=>{let i,u,p=0;e.level>0?(e.strm.data_type===HU&&(e.strm.data_type=r7(e)),up(e,e.l_desc),up(e,e.d_desc),p=t7(e),i=e.opt_len+3+7>>>3,u=e.static_len+3+7>>>3,u<=i&&(i=u)):i=u=n+5,n+4<=i&&t!==-1?gC(e,t,n,r):e.strategy===UU||u===i?(Ln(e,(nC<<1)+(r?1:0),3),Yy(e,ai,Hs)):(Ln(e,(KU<<1)+(r?1:0),3),n7(e,e.l_desc.max_code+1,e.d_desc.max_code+1,p+1),Yy(e,e.dyn_ltree,e.dyn_dtree)),pC(e),r&&vC(e)},s7=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(Ol[n]+Jl+1)*2]++,e.dyn_dtree[fC(t)*2]++),e.sym_next===e.sym_end);var l7=i7,u7=gC,c7=o7,f7=s7,d7=a7,h7={_tr_init:l7,_tr_stored_block:u7,_tr_flush_block:c7,_tr_tally:f7,_tr_align:d7};const p7=(e,t,n,r)=>{let i=e&65535|0,u=e>>>16&65535|0,p=0;for(;n!==0;){p=n>2e3?2e3:n,n-=p;do i=i+t[r++]|0,u=u+i|0;while(--p);i%=65521,u%=65521}return i|u<<16|0};var Al=p7;const v7=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},g7=new Uint32Array(v7()),m7=(e,t,n,r)=>{const i=g7,u=r+n;e^=-1;for(let p=r;p<u;p++)e=e>>>8^i[(e^t[p])&255];return e^-1};var Xt=m7,Na={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},is={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:y7,_tr_stored_block:cp,_tr_flush_block:b7,_tr_tally:Gi,_tr_align:_7}=h7,{Z_NO_FLUSH:Yi,Z_PARTIAL_FLUSH:w7,Z_FULL_FLUSH:S7,Z_FINISH:tr,Z_BLOCK:Jy,Z_OK:Jt,Z_STREAM_END:Qy,Z_STREAM_ERROR:zr,Z_DATA_ERROR:C7,Z_BUF_ERROR:Pd,Z_DEFAULT_COMPRESSION:x7,Z_FILTERED:T7,Z_HUFFMAN_ONLY:Lu,Z_RLE:E7,Z_FIXED:k7,Z_DEFAULT_STRATEGY:O7,Z_UNKNOWN:P7,Z_DEFLATED:Pf}=is,A7=9,I7=15,M7=8,R7=29,L7=256,fp=L7+1+R7,D7=30,F7=19,B7=2*fp+1,N7=15,st=3,Vi=258,jr=Vi+st+1,$7=32,Bo=42,gg=57,dp=69,hp=73,pp=91,vp=103,Sa=113,_s=666,kn=1,as=2,$a=3,os=4,z7=3,Ca=(e,t)=>(e.msg=Na[t],t),eb=e=>e*2-(e>4?9:0),Ni=e=>{let t=e.length;for(;--t>=0;)e[t]=0},j7=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);t=i,r=t;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)};let V7=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask,Xi=V7;const Vn=e=>{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},qn=(e,t)=>{b7(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Vn(e.strm)},vt=(e,t)=>{e.pending_buf[e.pending++]=t},ps=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},gp=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=Al(e.adler,t,i,n):e.state.wrap===2&&(e.adler=Xt(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},mC=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,u,p=e.prev_length,o=e.nice_match;const a=e.strstart>e.w_size-jr?e.strstart-(e.w_size-jr):0,c=e.window,h=e.w_mask,l=e.prev,f=e.strstart+Vi;let s=c[r+p-1],d=c[r+p];e.prev_length>=e.good_match&&(n>>=2),o>e.lookahead&&(o=e.lookahead);do if(i=t,!(c[i+p]!==d||c[i+p-1]!==s||c[i]!==c[r]||c[++i]!==c[r+1])){r+=2,i++;do;while(c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&r<f);if(u=Vi-(f-r),r=f-Vi,u>p){if(e.match_start=t,p=u,u>=o)break;s=c[r+p-1],d=c[r+p]}}while((t=l[t&h])>a&&--n!==0);return p<=e.lookahead?p:e.lookahead},No=e=>{const t=e.w_size;let n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-jr)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),j7(e),r+=t),e.strm.avail_in===0)break;if(n=gp(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=st)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Xi(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Xi(e,e.ins_h,e.window[i+st-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<st)););}while(e.lookahead<jr&&e.strm.avail_in!==0)},yC=(e,t)=>{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,u,p=0,o=e.strm.avail_in;do{if(r=65535,u=e.bi_valid+42>>3,e.strm.avail_out<u||(u=e.strm.avail_out-u,i=e.strstart-e.block_start,r>i+e.strm.avail_in&&(r=i+e.strm.avail_in),r>u&&(r=u),r<n&&(r===0&&t!==tr||t===Yi||r!==i+e.strm.avail_in)))break;p=t===tr&&r===i+e.strm.avail_in?1:0,cp(e,0,0,p),e.pending_buf[e.pending-4]=r,e.pending_buf[e.pending-3]=r>>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,Vn(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(gp(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(p===0);return o-=e.strm.avail_in,o&&(o>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=o&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-o,e.strm.next_in),e.strstart),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),p?os:t!==Yi&&t!==tr&&e.strm.avail_in===0&&e.strstart===e.block_start?as:(u=e.window_size-e.strstart,e.strm.avail_in>u&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,u+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),u>e.strm.avail_in&&(u=e.strm.avail_in),u&&(gp(e.strm,e.window,e.strstart,u),e.strstart+=u,e.insert+=u>e.w_size-e.insert?e.w_size-e.insert:u),e.high_water<e.strstart&&(e.high_water=e.strstart),u=e.bi_valid+42>>3,u=e.pending_buf_size-u>65535?65535:e.pending_buf_size-u,n=u>e.w_size?e.w_size:u,i=e.strstart-e.block_start,(i>=n||(i||t===tr)&&t!==Yi&&e.strm.avail_in===0&&i<=u)&&(r=i>u?u:i,p=t===tr&&e.strm.avail_in===0&&r===i?1:0,cp(e,e.block_start,r,p),e.block_start+=r,Vn(e.strm)),p?$a:kn)},Ad=(e,t)=>{let n,r;for(;;){if(e.lookahead<jr){if(No(e),e.lookahead<jr&&t===Yi)return kn;if(e.lookahead===0)break}if(n=0,e.lookahead>=st&&(e.ins_h=Xi(e,e.ins_h,e.window[e.strstart+st-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-jr&&(e.match_length=mC(e,n)),e.match_length>=st)if(r=Gi(e,e.strstart-e.match_start,e.match_length-st),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=st){e.match_length--;do e.strstart++,e.ins_h=Xi(e,e.ins_h,e.window[e.strstart+st-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Xi(e,e.ins_h,e.window[e.strstart+1]);else r=Gi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(qn(e,!1),e.strm.avail_out===0))return kn}return e.insert=e.strstart<st-1?e.strstart:st-1,t===tr?(qn(e,!0),e.strm.avail_out===0?$a:os):e.sym_next&&(qn(e,!1),e.strm.avail_out===0)?kn:as},ao=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<jr){if(No(e),e.lookahead<jr&&t===Yi)return kn;if(e.lookahead===0)break}if(n=0,e.lookahead>=st&&(e.ins_h=Xi(e,e.ins_h,e.window[e.strstart+st-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=st-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-jr&&(e.match_length=mC(e,n),e.match_length<=5&&(e.strategy===T7||e.match_length===st&&e.strstart-e.match_start>4096)&&(e.match_length=st-1)),e.prev_length>=st&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-st,r=Gi(e,e.strstart-1-e.prev_match,e.prev_length-st),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Xi(e,e.ins_h,e.window[e.strstart+st-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=st-1,e.strstart++,r&&(qn(e,!1),e.strm.avail_out===0))return kn}else if(e.match_available){if(r=Gi(e,0,e.window[e.strstart-1]),r&&qn(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return kn}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Gi(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<st-1?e.strstart:st-1,t===tr?(qn(e,!0),e.strm.avail_out===0?$a:os):e.sym_next&&(qn(e,!1),e.strm.avail_out===0)?kn:as},U7=(e,t)=>{let n,r,i,u;const p=e.window;for(;;){if(e.lookahead<=Vi){if(No(e),e.lookahead<=Vi&&t===Yi)return kn;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=st&&e.strstart>0&&(i=e.strstart-1,r=p[i],r===p[++i]&&r===p[++i]&&r===p[++i])){u=e.strstart+Vi;do;while(r===p[++i]&&r===p[++i]&&r===p[++i]&&r===p[++i]&&r===p[++i]&&r===p[++i]&&r===p[++i]&&r===p[++i]&&i<u);e.match_length=Vi-(u-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=st?(n=Gi(e,1,e.match_length-st),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Gi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(qn(e,!1),e.strm.avail_out===0))return kn}return e.insert=0,t===tr?(qn(e,!0),e.strm.avail_out===0?$a:os):e.sym_next&&(qn(e,!1),e.strm.avail_out===0)?kn:as},H7=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(No(e),e.lookahead===0)){if(t===Yi)return kn;break}if(e.match_length=0,n=Gi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(qn(e,!1),e.strm.avail_out===0))return kn}return e.insert=0,t===tr?(qn(e,!0),e.strm.avail_out===0?$a:os):e.sym_next&&(qn(e,!1),e.strm.avail_out===0)?kn:as};function Mr(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}const ws=[new Mr(0,0,0,0,yC),new Mr(4,4,8,4,Ad),new Mr(4,5,16,8,Ad),new Mr(4,6,32,32,Ad),new Mr(4,4,16,16,ao),new Mr(8,16,32,32,ao),new Mr(8,16,128,128,ao),new Mr(8,32,128,256,ao),new Mr(32,128,258,1024,ao),new Mr(32,258,258,4096,ao)],W7=e=>{e.window_size=2*e.w_size,Ni(e.head),e.max_lazy_match=ws[e.level].max_lazy,e.good_match=ws[e.level].good_length,e.nice_match=ws[e.level].nice_length,e.max_chain_length=ws[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=st-1,e.match_available=0,e.ins_h=0};function K7(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Pf,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(B7*2),this.dyn_dtree=new Uint16Array((2*D7+1)*2),this.bl_tree=new Uint16Array((2*F7+1)*2),Ni(this.dyn_ltree),Ni(this.dyn_dtree),Ni(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(N7+1),this.heap=new Uint16Array(2*fp+1),Ni(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*fp+1),Ni(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Ql=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Bo&&t.status!==gg&&t.status!==dp&&t.status!==hp&&t.status!==pp&&t.status!==vp&&t.status!==Sa&&t.status!==_s?1:0},bC=e=>{if(Ql(e))return Ca(e,zr);e.total_in=e.total_out=0,e.data_type=P7;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?gg:t.wrap?Bo:Sa,e.adler=t.wrap===2?0:1,t.last_flush=-2,y7(t),Jt},_C=e=>{const t=bC(e);return t===Jt&&W7(e.state),t},G7=(e,t)=>Ql(e)||e.state.wrap!==2?zr:(e.state.gzhead=t,Jt),wC=(e,t,n,r,i,u)=>{if(!e)return zr;let p=1;if(t===x7&&(t=6),r<0?(p=0,r=-r):r>15&&(p=2,r-=16),i<1||i>A7||n!==Pf||r<8||r>15||t<0||t>9||u<0||u>k7||r===8&&p!==1)return Ca(e,zr);r===8&&(r=9);const o=new K7;return e.state=o,o.strm=e,o.status=Bo,o.wrap=p,o.gzhead=null,o.w_bits=r,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=i+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+st-1)/st),o.window=new Uint8Array(o.w_size*2),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<i+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=(o.lit_bufsize-1)*3,o.level=t,o.strategy=u,o.method=n,_C(e)},Y7=(e,t)=>wC(e,t,Pf,I7,M7,O7),X7=(e,t)=>{if(Ql(e)||t>Jy||t<0)return e?Ca(e,zr):zr;const n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===_s&&t!==tr)return Ca(e,e.avail_out===0?Pd:zr);const r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(Vn(e),e.avail_out===0)return n.last_flush=-1,Jt}else if(e.avail_in===0&&eb(t)<=eb(r)&&t!==tr)return Ca(e,Pd);if(n.status===_s&&e.avail_in!==0)return Ca(e,Pd);if(n.status===Bo&&n.wrap===0&&(n.status=Sa),n.status===Bo){let i=Pf+(n.w_bits-8<<4)<<8,u=-1;if(n.strategy>=Lu||n.level<2?u=0:n.level<6?u=1:n.level===6?u=2:u=3,i|=u<<6,n.strstart!==0&&(i|=$7),i+=31-i%31,ps(n,i),n.strstart!==0&&(ps(n,e.adler>>>16),ps(n,e.adler&65535)),e.adler=1,n.status=Sa,Vn(e),n.pending!==0)return n.last_flush=-1,Jt}if(n.status===gg){if(e.adler=0,vt(n,31),vt(n,139),vt(n,8),n.gzhead)vt(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),vt(n,n.gzhead.time&255),vt(n,n.gzhead.time>>8&255),vt(n,n.gzhead.time>>16&255),vt(n,n.gzhead.time>>24&255),vt(n,n.level===9?2:n.strategy>=Lu||n.level<2?4:0),vt(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(vt(n,n.gzhead.extra.length&255),vt(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=Xt(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=dp;else if(vt(n,0),vt(n,0),vt(n,0),vt(n,0),vt(n,0),vt(n,n.level===9?2:n.strategy>=Lu||n.level<2?4:0),vt(n,z7),n.status=Sa,Vn(e),n.pending!==0)return n.last_flush=-1,Jt}if(n.status===dp){if(n.gzhead.extra){let i=n.pending,u=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+u>n.pending_buf_size;){let o=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>i&&(e.adler=Xt(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=o,Vn(e),n.pending!==0)return n.last_flush=-1,Jt;i=0,u-=o}let p=new Uint8Array(n.gzhead.extra);n.pending_buf.set(p.subarray(n.gzindex,n.gzindex+u),n.pending),n.pending+=u,n.gzhead.hcrc&&n.pending>i&&(e.adler=Xt(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=hp}if(n.status===hp){if(n.gzhead.name){let i=n.pending,u;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=Xt(e.adler,n.pending_buf,n.pending-i,i)),Vn(e),n.pending!==0)return n.last_flush=-1,Jt;i=0}n.gzindex<n.gzhead.name.length?u=n.gzhead.name.charCodeAt(n.gzindex++)&255:u=0,vt(n,u)}while(u!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=Xt(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=pp}if(n.status===pp){if(n.gzhead.comment){let i=n.pending,u;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=Xt(e.adler,n.pending_buf,n.pending-i,i)),Vn(e),n.pending!==0)return n.last_flush=-1,Jt;i=0}n.gzindex<n.gzhead.comment.length?u=n.gzhead.comment.charCodeAt(n.gzindex++)&255:u=0,vt(n,u)}while(u!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=Xt(e.adler,n.pending_buf,n.pending-i,i))}n.status=vp}if(n.status===vp){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Vn(e),n.pending!==0))return n.last_flush=-1,Jt;vt(n,e.adler&255),vt(n,e.adler>>8&255),e.adler=0}if(n.status=Sa,Vn(e),n.pending!==0)return n.last_flush=-1,Jt}if(e.avail_in!==0||n.lookahead!==0||t!==Yi&&n.status!==_s){let i=n.level===0?yC(n,t):n.strategy===Lu?H7(n,t):n.strategy===E7?U7(n,t):ws[n.level].func(n,t);if((i===$a||i===os)&&(n.status=_s),i===kn||i===$a)return e.avail_out===0&&(n.last_flush=-1),Jt;if(i===as&&(t===w7?_7(n):t!==Jy&&(cp(n,0,0,!1),t===S7&&(Ni(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Vn(e),e.avail_out===0))return n.last_flush=-1,Jt}return t!==tr?Jt:n.wrap<=0?Qy:(n.wrap===2?(vt(n,e.adler&255),vt(n,e.adler>>8&255),vt(n,e.adler>>16&255),vt(n,e.adler>>24&255),vt(n,e.total_in&255),vt(n,e.total_in>>8&255),vt(n,e.total_in>>16&255),vt(n,e.total_in>>24&255)):(ps(n,e.adler>>>16),ps(n,e.adler&65535)),Vn(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?Jt:Qy)},q7=e=>{if(Ql(e))return zr;const t=e.state.status;return e.state=null,t===Sa?Ca(e,C7):Jt},Z7=(e,t)=>{let n=t.length;if(Ql(e))return zr;const r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==Bo||r.lookahead)return zr;if(i===1&&(e.adler=Al(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(Ni(r.head),r.strstart=0,r.block_start=0,r.insert=0);let a=new Uint8Array(r.w_size);a.set(t.subarray(n-r.w_size,n),0),t=a,n=r.w_size}const u=e.avail_in,p=e.next_in,o=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,No(r);r.lookahead>=st;){let a=r.strstart,c=r.lookahead-(st-1);do r.ins_h=Xi(r,r.ins_h,r.window[a+st-1]),r.prev[a&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=a,a++;while(--c);r.strstart=a,r.lookahead=st-1,No(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=st-1,r.match_available=0,e.next_in=p,e.input=o,e.avail_in=u,r.wrap=i,Jt};var J7=Y7,Q7=wC,eH=_C,tH=bC,nH=G7,rH=X7,iH=q7,aH=Z7,oH="pako deflate (from Nodeca project)",Ws={deflateInit:J7,deflateInit2:Q7,deflateReset:eH,deflateResetKeep:tH,deflateSetHeader:nH,deflate:rH,deflateEnd:iH,deflateSetDictionary:aH,deflateInfo:oH};const sH=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var lH=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(!!n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const r in n)sH(n,r)&&(e[r]=n[r])}}return e},uH=e=>{let t=0;for(let r=0,i=e.length;r<i;r++)t+=e[r].length;const n=new Uint8Array(t);for(let r=0,i=0,u=e.length;r<u;r++){let p=e[r];n.set(p,i),i+=p.length}return n},Af={assign:lH,flattenChunks:uH};let SC=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{SC=!1}const Il=new Uint8Array(256);for(let e=0;e<256;e++)Il[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Il[254]=Il[254]=1;var cH=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,u,p=e.length,o=0;for(i=0;i<p;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<p&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),o+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(o),u=0,i=0;u<o;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<p&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[u++]=n:n<2048?(t[u++]=192|n>>>6,t[u++]=128|n&63):n<65536?(t[u++]=224|n>>>12,t[u++]=128|n>>>6&63,t[u++]=128|n&63):(t[u++]=240|n>>>18,t[u++]=128|n>>>12&63,t[u++]=128|n>>>6&63,t[u++]=128|n&63);return t};const fH=(e,t)=>{if(t<65534&&e.subarray&&SC)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n};var dH=(e,t)=>{const n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i;const u=new Array(n*2);for(i=0,r=0;r<n;){let p=e[r++];if(p<128){u[i++]=p;continue}let o=Il[p];if(o>4){u[i++]=65533,r+=o-1;continue}for(p&=o===2?31:o===3?15:7;o>1&&r<n;)p=p<<6|e[r++]&63,o--;if(o>1){u[i++]=65533;continue}p<65536?u[i++]=p:(p-=65536,u[i++]=55296|p>>10&1023,u[i++]=56320|p&1023)}return fH(u,i)},hH=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+Il[e[n]]>t?n:t},Ml={string2buf:cH,buf2string:dH,utf8border:hH};function pH(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var CC=pH;const xC=Object.prototype.toString,{Z_NO_FLUSH:vH,Z_SYNC_FLUSH:gH,Z_FULL_FLUSH:mH,Z_FINISH:yH,Z_OK:Hc,Z_STREAM_END:bH,Z_DEFAULT_COMPRESSION:_H,Z_DEFAULT_STRATEGY:wH,Z_DEFLATED:SH}=is;function eu(e){this.options=Af.assign({level:_H,method:SH,chunkSize:16384,windowBits:15,memLevel:8,strategy:wH},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new CC,this.strm.avail_out=0;let n=Ws.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Hc)throw new Error(Na[n]);if(t.header&&Ws.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=Ml.string2buf(t.dictionary):xC.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=Ws.deflateSetDictionary(this.strm,r),n!==Hc)throw new Error(Na[n]);this._dict_set=!0}}eu.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let i,u;if(this.ended)return!1;for(t===~~t?u=t:u=t===!0?yH:vH,typeof e=="string"?n.input=Ml.string2buf(e):xC.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(u===gH||u===mH)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=Ws.deflate(n,u),i===bH)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=Ws.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===Hc;if(n.avail_out===0){this.onData(n.output);continue}if(u>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};eu.prototype.onData=function(e){this.chunks.push(e)};eu.prototype.onEnd=function(e){e===Hc&&(this.result=Af.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function mg(e,t){const n=new eu(t);if(n.push(e,!0),n.err)throw n.msg||Na[n.err];return n.result}function CH(e,t){return t=t||{},t.raw=!0,mg(e,t)}function xH(e,t){return t=t||{},t.gzip=!0,mg(e,t)}var TH=eu,EH=mg,kH=CH,OH=xH,PH=is,AH={Deflate:TH,deflate:EH,deflateRaw:kH,gzip:OH,constants:PH};const Du=16209,IH=16191;var MH=function(t,n){let r,i,u,p,o,a,c,h,l,f,s,d,g,v,m,y,b,_,S,C,T,E,O,D;const j=t.state;r=t.next_in,O=t.input,i=r+(t.avail_in-5),u=t.next_out,D=t.output,p=u-(n-t.avail_out),o=u+(t.avail_out-257),a=j.dmax,c=j.wsize,h=j.whave,l=j.wnext,f=j.window,s=j.hold,d=j.bits,g=j.lencode,v=j.distcode,m=(1<<j.lenbits)-1,y=(1<<j.distbits)-1;e:do{d<15&&(s+=O[r++]<<d,d+=8,s+=O[r++]<<d,d+=8),b=g[s&m];t:for(;;){if(_=b>>>24,s>>>=_,d-=_,_=b>>>16&255,_===0)D[u++]=b&65535;else if(_&16){S=b&65535,_&=15,_&&(d<_&&(s+=O[r++]<<d,d+=8),S+=s&(1<<_)-1,s>>>=_,d-=_),d<15&&(s+=O[r++]<<d,d+=8,s+=O[r++]<<d,d+=8),b=v[s&y];n:for(;;){if(_=b>>>24,s>>>=_,d-=_,_=b>>>16&255,_&16){if(C=b&65535,_&=15,d<_&&(s+=O[r++]<<d,d+=8,d<_&&(s+=O[r++]<<d,d+=8)),C+=s&(1<<_)-1,C>a){t.msg="invalid distance too far back",j.mode=Du;break e}if(s>>>=_,d-=_,_=u-p,C>_){if(_=C-_,_>h&&j.sane){t.msg="invalid distance too far back",j.mode=Du;break e}if(T=0,E=f,l===0){if(T+=c-_,_<S){S-=_;do D[u++]=f[T++];while(--_);T=u-C,E=D}}else if(l<_){if(T+=c+l-_,_-=l,_<S){S-=_;do D[u++]=f[T++];while(--_);if(T=0,l<S){_=l,S-=_;do D[u++]=f[T++];while(--_);T=u-C,E=D}}}else if(T+=l-_,_<S){S-=_;do D[u++]=f[T++];while(--_);T=u-C,E=D}for(;S>2;)D[u++]=E[T++],D[u++]=E[T++],D[u++]=E[T++],S-=3;S&&(D[u++]=E[T++],S>1&&(D[u++]=E[T++]))}else{T=u-C;do D[u++]=D[T++],D[u++]=D[T++],D[u++]=D[T++],S-=3;while(S>2);S&&(D[u++]=D[T++],S>1&&(D[u++]=D[T++]))}}else if((_&64)===0){b=v[(b&65535)+(s&(1<<_)-1)];continue n}else{t.msg="invalid distance code",j.mode=Du;break e}break}}else if((_&64)===0){b=g[(b&65535)+(s&(1<<_)-1)];continue t}else if(_&32){j.mode=IH;break e}else{t.msg="invalid literal/length code",j.mode=Du;break e}break}}while(r<i&&u<o);S=d>>3,r-=S,d-=S<<3,s&=(1<<d)-1,t.next_in=r,t.next_out=u,t.avail_in=r<i?5+(i-r):5-(r-i),t.avail_out=u<o?257+(o-u):257-(u-o),j.hold=s,j.bits=d};const oo=15,tb=852,nb=592,rb=0,Id=1,ib=2,RH=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),LH=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),DH=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),FH=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),BH=(e,t,n,r,i,u,p,o)=>{const a=o.bits;let c=0,h=0,l=0,f=0,s=0,d=0,g=0,v=0,m=0,y=0,b,_,S,C,T,E=null,O;const D=new Uint16Array(oo+1),j=new Uint16Array(oo+1);let k=null,U,P,re;for(c=0;c<=oo;c++)D[c]=0;for(h=0;h<r;h++)D[t[n+h]]++;for(s=a,f=oo;f>=1&&D[f]===0;f--);if(s>f&&(s=f),f===0)return i[u++]=1<<24|64<<16|0,i[u++]=1<<24|64<<16|0,o.bits=1,0;for(l=1;l<f&&D[l]===0;l++);for(s<l&&(s=l),v=1,c=1;c<=oo;c++)if(v<<=1,v-=D[c],v<0)return-1;if(v>0&&(e===rb||f!==1))return-1;for(j[1]=0,c=1;c<oo;c++)j[c+1]=j[c]+D[c];for(h=0;h<r;h++)t[n+h]!==0&&(p[j[t[n+h]]++]=h);if(e===rb?(E=k=p,O=20):e===Id?(E=RH,k=LH,O=257):(E=DH,k=FH,O=0),y=0,h=0,c=l,T=u,d=s,g=0,S=-1,m=1<<s,C=m-1,e===Id&&m>tb||e===ib&&m>nb)return 1;for(;;){U=c-g,p[h]+1<O?(P=0,re=p[h]):p[h]>=O?(P=k[p[h]-O],re=E[p[h]-O]):(P=32+64,re=0),b=1<<c-g,_=1<<d,l=_;do _-=b,i[T+(y>>g)+_]=U<<24|P<<16|re|0;while(_!==0);for(b=1<<c-1;y&b;)b>>=1;if(b!==0?(y&=b-1,y+=b):y=0,h++,--D[c]===0){if(c===f)break;c=t[n+p[h]]}if(c>s&&(y&C)!==S){for(g===0&&(g=s),T+=l,d=c-g,v=1<<d;d+g<f&&(v-=D[d+g],!(v<=0));)d++,v<<=1;if(m+=1<<d,e===Id&&m>tb||e===ib&&m>nb)return 1;S=y&C,i[S]=s<<24|d<<16|T-u|0}}return y!==0&&(i[T+y]=c-g<<24|64<<16|0),o.bits=s,0};var Ks=BH;const NH=0,TC=1,EC=2,{Z_FINISH:ab,Z_BLOCK:$H,Z_TREES:Fu,Z_OK:za,Z_STREAM_END:zH,Z_NEED_DICT:jH,Z_STREAM_ERROR:hr,Z_DATA_ERROR:kC,Z_MEM_ERROR:OC,Z_BUF_ERROR:VH,Z_DEFLATED:ob}=is,If=16180,sb=16181,lb=16182,ub=16183,cb=16184,fb=16185,db=16186,hb=16187,pb=16188,vb=16189,Wc=16190,Qr=16191,Md=16192,gb=16193,Rd=16194,mb=16195,yb=16196,bb=16197,_b=16198,Bu=16199,Nu=16200,wb=16201,Sb=16202,Cb=16203,xb=16204,Tb=16205,Ld=16206,Eb=16207,kb=16208,It=16209,PC=16210,AC=16211,UH=852,HH=592,WH=15,KH=WH,Ob=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function GH(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Ga=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<If||t.mode>AC?1:0},IC=e=>{if(Ga(e))return hr;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=If,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(UH),t.distcode=t.distdyn=new Int32Array(HH),t.sane=1,t.back=-1,za},MC=e=>{if(Ga(e))return hr;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,IC(e)},RC=(e,t)=>{let n;if(Ga(e))return hr;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?hr:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,MC(e))},LC=(e,t)=>{if(!e)return hr;const n=new GH;e.state=n,n.strm=e,n.window=null,n.mode=If;const r=RC(e,t);return r!==za&&(e.state=null),r},YH=e=>LC(e,KH);let Pb=!0,Dd,Fd;const XH=e=>{if(Pb){Dd=new Int32Array(512),Fd=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Ks(TC,e.lens,0,288,Dd,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Ks(EC,e.lens,0,32,Fd,0,e.work,{bits:5}),Pb=!1}e.lencode=Dd,e.lenbits=9,e.distcode=Fd,e.distbits=5},DC=(e,t,n,r)=>{let i;const u=e.state;return u.window===null&&(u.wsize=1<<u.wbits,u.wnext=0,u.whave=0,u.window=new Uint8Array(u.wsize)),r>=u.wsize?(u.window.set(t.subarray(n-u.wsize,n),0),u.wnext=0,u.whave=u.wsize):(i=u.wsize-u.wnext,i>r&&(i=r),u.window.set(t.subarray(n-r,n-r+i),u.wnext),r-=i,r?(u.window.set(t.subarray(n-r,n),0),u.wnext=r,u.whave=u.wsize):(u.wnext+=i,u.wnext===u.wsize&&(u.wnext=0),u.whave<u.wsize&&(u.whave+=i))),0},qH=(e,t)=>{let n,r,i,u,p,o,a,c,h,l,f,s,d,g,v=0,m,y,b,_,S,C,T,E;const O=new Uint8Array(4);let D,j;const k=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Ga(e)||!e.output||!e.input&&e.avail_in!==0)return hr;n=e.state,n.mode===Qr&&(n.mode=Md),p=e.next_out,i=e.output,a=e.avail_out,u=e.next_in,r=e.input,o=e.avail_in,c=n.hold,h=n.bits,l=o,f=a,E=za;e:for(;;)switch(n.mode){case If:if(n.wrap===0){n.mode=Md;break}for(;h<16;){if(o===0)break e;o--,c+=r[u++]<<h,h+=8}if(n.wrap&2&&c===35615){n.wbits===0&&(n.wbits=15),n.check=0,O[0]=c&255,O[1]=c>>>8&255,n.check=Xt(n.check,O,2,0),c=0,h=0,n.mode=sb;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((c&255)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=It;break}if((c&15)!==ob){e.msg="unknown compression method",n.mode=It;break}if(c>>>=4,h-=4,T=(c&15)+8,n.wbits===0&&(n.wbits=T),T>15||T>n.wbits){e.msg="invalid window size",n.mode=It;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=c&512?vb:Qr,c=0,h=0;break;case sb:for(;h<16;){if(o===0)break e;o--,c+=r[u++]<<h,h+=8}if(n.flags=c,(n.flags&255)!==ob){e.msg="unknown compression method",n.mode=It;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=It;break}n.head&&(n.head.text=c>>8&1),n.flags&512&&n.wrap&4&&(O[0]=c&255,O[1]=c>>>8&255,n.check=Xt(n.check,O,2,0)),c=0,h=0,n.mode=lb;case lb:for(;h<32;){if(o===0)break e;o--,c+=r[u++]<<h,h+=8}n.head&&(n.head.time=c),n.flags&512&&n.wrap&4&&(O[0]=c&255,O[1]=c>>>8&255,O[2]=c>>>16&255,O[3]=c>>>24&255,n.check=Xt(n.check,O,4,0)),c=0,h=0,n.mode=ub;case ub:for(;h<16;){if(o===0)break e;o--,c+=r[u++]<<h,h+=8}n.head&&(n.head.xflags=c&255,n.head.os=c>>8),n.flags&512&&n.wrap&4&&(O[0]=c&255,O[1]=c>>>8&255,n.check=Xt(n.check,O,2,0)),c=0,h=0,n.mode=cb;case cb:if(n.flags&1024){for(;h<16;){if(o===0)break e;o--,c+=r[u++]<<h,h+=8}n.length=c,n.head&&(n.head.extra_len=c),n.flags&512&&n.wrap&4&&(O[0]=c&255,O[1]=c>>>8&255,n.check=Xt(n.check,O,2,0)),c=0,h=0}else n.head&&(n.head.extra=null);n.mode=fb;case fb:if(n.flags&1024&&(s=n.length,s>o&&(s=o),s&&(n.head&&(T=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(u,u+s),T)),n.flags&512&&n.wrap&4&&(n.check=Xt(n.check,r,s,u)),o-=s,u+=s,n.length-=s),n.length))break e;n.length=0,n.mode=db;case db:if(n.flags&2048){if(o===0)break e;s=0;do T=r[u+s++],n.head&&T&&n.length<65536&&(n.head.name+=String.fromCharCode(T));while(T&&s<o);if(n.flags&512&&n.wrap&4&&(n.check=Xt(n.check,r,s,u)),o-=s,u+=s,T)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=hb;case hb:if(n.flags&4096){if(o===0)break e;s=0;do T=r[u+s++],n.head&&T&&n.length<65536&&(n.head.comment+=String.fromCharCode(T));while(T&&s<o);if(n.flags&512&&n.wrap&4&&(n.check=Xt(n.check,r,s,u)),o-=s,u+=s,T)break e}else n.head&&(n.head.comment=null);n.mode=pb;case pb:if(n.flags&512){for(;h<16;){if(o===0)break e;o--,c+=r[u++]<<h,h+=8}if(n.wrap&4&&c!==(n.check&65535)){e.msg="header crc mismatch",n.mode=It;break}c=0,h=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Qr;break;case vb:for(;h<32;){if(o===0)break e;o--,c+=r[u++]<<h,h+=8}e.adler=n.check=Ob(c),c=0,h=0,n.mode=Wc;case Wc:if(n.havedict===0)return e.next_out=p,e.avail_out=a,e.next_in=u,e.avail_in=o,n.hold=c,n.bits=h,jH;e.adler=n.check=1,n.mode=Qr;case Qr:if(t===$H||t===Fu)break e;case Md:if(n.last){c>>>=h&7,h-=h&7,n.mode=Ld;break}for(;h<3;){if(o===0)break e;o--,c+=r[u++]<<h,h+=8}switch(n.last=c&1,c>>>=1,h-=1,c&3){case 0:n.mode=gb;break;case 1:if(XH(n),n.mode=Bu,t===Fu){c>>>=2,h-=2;break e}break;case 2:n.mode=yb;break;case 3:e.msg="invalid block type",n.mode=It}c>>>=2,h-=2;break;case gb:for(c>>>=h&7,h-=h&7;h<32;){if(o===0)break e;o--,c+=r[u++]<<h,h+=8}if((c&65535)!==(c>>>16^65535)){e.msg="invalid stored block lengths",n.mode=It;break}if(n.length=c&65535,c=0,h=0,n.mode=Rd,t===Fu)break e;case Rd:n.mode=mb;case mb:if(s=n.length,s){if(s>o&&(s=o),s>a&&(s=a),s===0)break e;i.set(r.subarray(u,u+s),p),o-=s,u+=s,a-=s,p+=s,n.length-=s;break}n.mode=Qr;break;case yb:for(;h<14;){if(o===0)break e;o--,c+=r[u++]<<h,h+=8}if(n.nlen=(c&31)+257,c>>>=5,h-=5,n.ndist=(c&31)+1,c>>>=5,h-=5,n.ncode=(c&15)+4,c>>>=4,h-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=It;break}n.have=0,n.mode=bb;case bb:for(;n.have<n.ncode;){for(;h<3;){if(o===0)break e;o--,c+=r[u++]<<h,h+=8}n.lens[k[n.have++]]=c&7,c>>>=3,h-=3}for(;n.have<19;)n.lens[k[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,D={bits:n.lenbits},E=Ks(NH,n.lens,0,19,n.lencode,0,n.work,D),n.lenbits=D.bits,E){e.msg="invalid code lengths set",n.mode=It;break}n.have=0,n.mode=_b;case _b:for(;n.have<n.nlen+n.ndist;){for(;v=n.lencode[c&(1<<n.lenbits)-1],m=v>>>24,y=v>>>16&255,b=v&65535,!(m<=h);){if(o===0)break e;o--,c+=r[u++]<<h,h+=8}if(b<16)c>>>=m,h-=m,n.lens[n.have++]=b;else{if(b===16){for(j=m+2;h<j;){if(o===0)break e;o--,c+=r[u++]<<h,h+=8}if(c>>>=m,h-=m,n.have===0){e.msg="invalid bit length repeat",n.mode=It;break}T=n.lens[n.have-1],s=3+(c&3),c>>>=2,h-=2}else if(b===17){for(j=m+3;h<j;){if(o===0)break e;o--,c+=r[u++]<<h,h+=8}c>>>=m,h-=m,T=0,s=3+(c&7),c>>>=3,h-=3}else{for(j=m+7;h<j;){if(o===0)break e;o--,c+=r[u++]<<h,h+=8}c>>>=m,h-=m,T=0,s=11+(c&127),c>>>=7,h-=7}if(n.have+s>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=It;break}for(;s--;)n.lens[n.have++]=T}}if(n.mode===It)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=It;break}if(n.lenbits=9,D={bits:n.lenbits},E=Ks(TC,n.lens,0,n.nlen,n.lencode,0,n.work,D),n.lenbits=D.bits,E){e.msg="invalid literal/lengths set",n.mode=It;break}if(n.distbits=6,n.distcode=n.distdyn,D={bits:n.distbits},E=Ks(EC,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,D),n.distbits=D.bits,E){e.msg="invalid distances set",n.mode=It;break}if(n.mode=Bu,t===Fu)break e;case Bu:n.mode=Nu;case Nu:if(o>=6&&a>=258){e.next_out=p,e.avail_out=a,e.next_in=u,e.avail_in=o,n.hold=c,n.bits=h,MH(e,f),p=e.next_out,i=e.output,a=e.avail_out,u=e.next_in,r=e.input,o=e.avail_in,c=n.hold,h=n.bits,n.mode===Qr&&(n.back=-1);break}for(n.back=0;v=n.lencode[c&(1<<n.lenbits)-1],m=v>>>24,y=v>>>16&255,b=v&65535,!(m<=h);){if(o===0)break e;o--,c+=r[u++]<<h,h+=8}if(y&&(y&240)===0){for(_=m,S=y,C=b;v=n.lencode[C+((c&(1<<_+S)-1)>>_)],m=v>>>24,y=v>>>16&255,b=v&65535,!(_+m<=h);){if(o===0)break e;o--,c+=r[u++]<<h,h+=8}c>>>=_,h-=_,n.back+=_}if(c>>>=m,h-=m,n.back+=m,n.length=b,y===0){n.mode=Tb;break}if(y&32){n.back=-1,n.mode=Qr;break}if(y&64){e.msg="invalid literal/length code",n.mode=It;break}n.extra=y&15,n.mode=wb;case wb:if(n.extra){for(j=n.extra;h<j;){if(o===0)break e;o--,c+=r[u++]<<h,h+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,h-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=Sb;case Sb:for(;v=n.distcode[c&(1<<n.distbits)-1],m=v>>>24,y=v>>>16&255,b=v&65535,!(m<=h);){if(o===0)break e;o--,c+=r[u++]<<h,h+=8}if((y&240)===0){for(_=m,S=y,C=b;v=n.distcode[C+((c&(1<<_+S)-1)>>_)],m=v>>>24,y=v>>>16&255,b=v&65535,!(_+m<=h);){if(o===0)break e;o--,c+=r[u++]<<h,h+=8}c>>>=_,h-=_,n.back+=_}if(c>>>=m,h-=m,n.back+=m,y&64){e.msg="invalid distance code",n.mode=It;break}n.offset=b,n.extra=y&15,n.mode=Cb;case Cb:if(n.extra){for(j=n.extra;h<j;){if(o===0)break e;o--,c+=r[u++]<<h,h+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,h-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=It;break}n.mode=xb;case xb:if(a===0)break e;if(s=f-a,n.offset>s){if(s=n.offset-s,s>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=It;break}s>n.wnext?(s-=n.wnext,d=n.wsize-s):d=n.wnext-s,s>n.length&&(s=n.length),g=n.window}else g=i,d=p-n.offset,s=n.length;s>a&&(s=a),a-=s,n.length-=s;do i[p++]=g[d++];while(--s);n.length===0&&(n.mode=Nu);break;case Tb:if(a===0)break e;i[p++]=n.length,a--,n.mode=Nu;break;case Ld:if(n.wrap){for(;h<32;){if(o===0)break e;o--,c|=r[u++]<<h,h+=8}if(f-=a,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?Xt(n.check,i,f,p-f):Al(n.check,i,f,p-f)),f=a,n.wrap&4&&(n.flags?c:Ob(c))!==n.check){e.msg="incorrect data check",n.mode=It;break}c=0,h=0}n.mode=Eb;case Eb:if(n.wrap&&n.flags){for(;h<32;){if(o===0)break e;o--,c+=r[u++]<<h,h+=8}if(n.wrap&4&&c!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=It;break}c=0,h=0}n.mode=kb;case kb:E=zH;break e;case It:E=kC;break e;case PC:return OC;case AC:default:return hr}return e.next_out=p,e.avail_out=a,e.next_in=u,e.avail_in=o,n.hold=c,n.bits=h,(n.wsize||f!==e.avail_out&&n.mode<It&&(n.mode<Ld||t!==ab))&&DC(e,e.output,e.next_out,f-e.avail_out),l-=e.avail_in,f-=e.avail_out,e.total_in+=l,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?Xt(n.check,i,f,e.next_out-f):Al(n.check,i,f,e.next_out-f)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Qr?128:0)+(n.mode===Bu||n.mode===Rd?256:0),(l===0&&f===0||t===ab)&&E===za&&(E=VH),E},ZH=e=>{if(Ga(e))return hr;let t=e.state;return t.window&&(t.window=null),e.state=null,za},JH=(e,t)=>{if(Ga(e))return hr;const n=e.state;return(n.wrap&2)===0?hr:(n.head=t,t.done=!1,za)},QH=(e,t)=>{const n=t.length;let r,i,u;return Ga(e)||(r=e.state,r.wrap!==0&&r.mode!==Wc)?hr:r.mode===Wc&&(i=1,i=Al(i,t,n,0),i!==r.check)?kC:(u=DC(e,t,n,n),u?(r.mode=PC,OC):(r.havedict=1,za))};var eW=MC,tW=RC,nW=IC,rW=YH,iW=LC,aW=qH,oW=ZH,sW=JH,lW=QH,uW="pako inflate (from Nodeca project)",oi={inflateReset:eW,inflateReset2:tW,inflateResetKeep:nW,inflateInit:rW,inflateInit2:iW,inflate:aW,inflateEnd:oW,inflateGetHeader:sW,inflateSetDictionary:lW,inflateInfo:uW};function cW(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var fW=cW;const FC=Object.prototype.toString,{Z_NO_FLUSH:dW,Z_FINISH:hW,Z_OK:Rl,Z_STREAM_END:Bd,Z_NEED_DICT:Nd,Z_STREAM_ERROR:pW,Z_DATA_ERROR:Ab,Z_MEM_ERROR:vW}=is;function tu(e){this.options=Af.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new CC,this.strm.avail_out=0;let n=oi.inflateInit2(this.strm,t.windowBits);if(n!==Rl)throw new Error(Na[n]);if(this.header=new fW,oi.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Ml.string2buf(t.dictionary):FC.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=oi.inflateSetDictionary(this.strm,t.dictionary),n!==Rl)))throw new Error(Na[n])}tu.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let u,p,o;if(this.ended)return!1;for(t===~~t?p=t:p=t===!0?hW:dW,FC.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),u=oi.inflate(n,p),u===Nd&&i&&(u=oi.inflateSetDictionary(n,i),u===Rl?u=oi.inflate(n,p):u===Ab&&(u=Nd));n.avail_in>0&&u===Bd&&n.state.wrap>0&&e[n.next_in]!==0;)oi.inflateReset(n),u=oi.inflate(n,p);switch(u){case pW:case Ab:case Nd:case vW:return this.onEnd(u),this.ended=!0,!1}if(o=n.avail_out,n.next_out&&(n.avail_out===0||u===Bd))if(this.options.to==="string"){let a=Ml.utf8border(n.output,n.next_out),c=n.next_out-a,h=Ml.buf2string(n.output,a);n.next_out=c,n.avail_out=r-c,c&&n.output.set(n.output.subarray(a,a+c),0),this.onData(h)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(u===Rl&&o===0)){if(u===Bd)return u=oi.inflateEnd(this.strm),this.onEnd(u),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};tu.prototype.onData=function(e){this.chunks.push(e)};tu.prototype.onEnd=function(e){e===Rl&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Af.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function yg(e,t){const n=new tu(t);if(n.push(e),n.err)throw n.msg||Na[n.err];return n.result}function gW(e,t){return t=t||{},t.raw=!0,yg(e,t)}var mW=tu,yW=yg,bW=gW,_W=yg,wW=is,SW={Inflate:mW,inflate:yW,inflateRaw:bW,ungzip:_W,constants:wW};const{Deflate:BK,deflate:NK,deflateRaw:CW,gzip:$K}=AH,{Inflate:zK,inflate:jK,inflateRaw:xW,ungzip:VK}=SW;var TW=CW,EW=xW;function Ib(e){const t=new Map;for(const n of e){const[r,i]=n.split("="),u=decodeURIComponent(i);t.set(r,u)}return t}const kW=function(){if(!window.location.search.includes("?"))return;const t=window.location.search.replace("?","").split("&");let n=Ib(t);if(console.log("URL params:",n),n.get("share")){const u=EW(new Uint8Array(atob(n.get("share")).split("").map(p=>p.charCodeAt(0))),{to:"string"});if(!u){jt().raiseError("Error when trying to decode share parameter!",!1);return}n=Ib(u.split("&")),console.log("Share URL params:",n)}const r={id:-1,image:"",prompt:n.get("prompt")||"",sampler_name:n.get("sampler_name")||"k_euler",seed:Number(n.get("seed"))||-1,steps:Number(n.get("steps")||20),cfg_scale:Number(n.get("cfg_scale")||5),height:Number(n.get("height")||512),width:Number(n.get("width")||512),clip_skip:Number(n.get("clip_skip")||0),frames:Number(n.get("frames")||1),scheduler:n.get("scheduler")||"default"};Hn().generateText2Img(r,!1)},OW=10;function mp(e,t,n,r,i=u=>jt().raiseError(u,!1)){if(e.status===n&&t)return!0;if(!t.message)return i(`${r}: Got response code ${e.status}`);if(!t.errors)return i(`${r}: ${t.message}`);const u=Object.entries(t.errors).map(p=>`${p[0]} - ${p[1]}`).join(" | ");return i(`${r}: ${t.message} (${u})`)}const PW=Ho("interrogate",()=>{const e=ie({}),t=ie(!1);async function n(p){jt().raiseError(p,!1),t.value=!1,e.value={}}async function r(){const p=gn(),{source_image:o}=e.value;if(!o)return n("Failed to get interrogation ID: No image supplied.");t.value=!0;const a=await fetch(`${p.baseURL.length===0?".":p.baseURL}/sdapi/v1/interrogate`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({image:o.split(",")[1],model:"clip"})}),c=await a.json();!mp(a,c,200,"Failed to get interrogation",n)||(e.value.id=c.id,e.value.status=c.caption)}function i(){e.value={},t.value=!1}function u(){return e.value.status||!1}return{currentInterrogation:e,interrogating:t,interrogateImage:r,getFormStatus:u,resetInterrogation:i}}),AW={key:0,style:{"margin-top":"16px"}},IW={key:1,style:{"margin-top":"16px"}},MW={key:2},RW={style:{"margin-top":"8px"}},LW={key:0},DW={key:0},FW={key:1},BW=pe({__name:"InterrogationView",setup(e){const t=PW(),n=Hn(),r=jt(),i=ie();async function u(c){if(i.value.clearFiles(),!c.raw.type.includes("image")){r.raiseError("Uploaded file needs to be a image!",!1);return}const h=await tC(c.raw);t.currentInterrogation.source_image=h,t.interrogateImage()}function p(){n.generateText2Img({prompt:o.value})}const o=W(()=>t.getFormStatus()),{ellipsis:a}=eC();return(c,h)=>w(t).currentInterrogation.source_image?w(t).currentInterrogation.status?($(),oe("div",MW,[ae("div",RW,[ce(w(ht),{icon:w(Rs),onClick:w(t).resetInterrogation},{default:he(()=>[...h[1]||(h[1]=[We("New Interrogation",-1)])]),_:1},8,["icon","onClick"]),o.value?($(),ye(w(ht),{key:0,icon:w(Rs),onClick:p,disabled:!o.value},{default:he(()=>[...h[2]||(h[2]=[We("Text2Img (Caption)",-1)])]),_:1},8,["icon","disabled"])):be("",!0)]),h[4]||(h[4]=ae("h2",{style:{margin:"16px 0 8px 0"}},"Interrogation Results",-1)),ce(w(Dv),{src:w(t).currentInterrogation.source_image},null,8,["src"]),o.value?($(),oe("div",LW,[h[3]||(h[3]=ae("h3",null,"Caption",-1)),o.value?($(),oe("div",FW,[ae("strong",null,Oe(o.value),1)])):($(),oe("div",DW,"Processing"+Oe(w(a)),1))])):be("",!0)])):($(),oe("div",IW,[ae("strong",null,"Uploading image"+Oe(w(a)),1)])):($(),oe("div",AW,[ae("div",null,[ce(w(Vv),{onChange:u,"auto-upload":!1,limit:1,class:"interrogation-upload",ref_key:"upload",ref:i,multiple:"",drag:""},{default:he(()=>[ce(w(De),{size:100},{default:he(()=>[ce(w(Kp))]),_:1}),h[0]||(h[0]=ae("div",null,[We("Drop file here OR "),ae("em",null,"click to upload")],-1))]),_:1},512)])]))}});const NW=bn(BW,[["__scopeId","data-v-be7ceae5"]]);function $W(e,t,n){if(e===0)return"0"+(t?"s":"seconds");if(e==null)return"?";const r=Math.floor(e/86400),i=Math.floor(e%86400/3600),u=Math.floor(e%86400%3600/60),p=Math.floor(e%86400%3600%60),o=r>0?r+(t?"d":"days"):"",a=i>0?i+(t?"h":"hours"):"",c=u>0?u+(t?"m":"minutes"):"",h=p>0?p+(t?"s":"seconds"):"",l=[];return n!=null&&n.days&&l.push(o),n!=null&&n.hours&&l.push(a),n!=null&&n.minutes&&l.push(c),n!=null&&n.seconds&&l.push(h),l.join(" ")}const zW={class:"form"},jW={key:0,style:{"padding-bottom":"50px"}},VW={class:"sidebar"},UW={class:"main"},HW={class:"image center-horizontal"},WW={key:0},KW=pe({__name:"GenerateView",setup(e){const n=dv(fv).smallerOrEqual("md"),r=Hn(),i=jt(),u=Us(),p=gn();let o=[];const a=A8(async()=>{if(o.length===0)try{o=(await(await fetch(`${p.baseURL.length===0?".":p.baseURL}/sdapi/v1/samplers`)).json()).map(v=>v.name)}catch{o=[]}return o.length===0?[]:l(o)}),c=["default","discrete","karras","exponential","ays","gits","sgm_uniform","simple","smoothstep"],h=yt({prompt:[{required:!0,message:"Please input prompt",trigger:"change"}]});function l(v){return!r.params||!r.params.sampler_name||v.indexOf(r.params.sampler_name)===-1&&(r.params.sampler_name=v[0]),v}function f(v){return"Elapsed: "+$W(v,!0,{days:!0,hours:!0,minutes:!0,seconds:!0})}function s(){r.validGeneratorTypes.includes(r.generatorType)||(i.showGeneratorBadge=!1)}function d(v){r.generatorType=v,s(),console.log(v)}function g(){u.showCropPreview=!0,u.updateCropPreview()}return s(),kW(),(v,m)=>($(),oe($e,null,[ce(w(B2),{"default-active":w(r).generatorType,collapse:!0,onSelect:d,mode:w(n)?"horizontal":"vertical",class:le(w(n)?"mobile-generator-types":"generator-types"),style:ze(w(n)?"overflow-x: auto":"")},{default:he(()=>[ce(Ru,{index:"Text2Img","icon-one":w(Zk),"icon-two":w(uu),isMobile:w(n)},null,8,["icon-one","icon-two","isMobile"]),ce(Ru,{index:"Img2Img","icon-one":w(uu),"icon-two":w(uu),isMobile:w(n)},null,8,["icon-one","icon-two","isMobile"]),ce(Ru,{index:"Inpainting","icon-one":QS,"icon-two":w(uu),isMobile:w(n)},null,8,["icon-two","isMobile"]),ce(Ru,{index:"Interrogation","icon-one":nU,isMobile:w(n)},null,8,["isMobile"])]),_:1},8,["default-active","mode","class","style"]),ae("div",zW,[w(r).generatorType==="Interrogation"?($(),oe("div",jW,[m[29]||(m[29]=ae("h1",{style:{margin:"0"}},"Interrogation",-1)),m[30]||(m[30]=ae("div",null,"Interrogate images to get their predicted descriptions.",-1)),ce(NW)])):($(),ye(w(Lv),{key:1,"label-position":"left","label-width":"140px",model:w(r),class:"container",rules:h,onSubmit:m[28]||(m[28]=Ze(()=>{},["prevent"]))},{default:he(()=>[ae("div",VW,[ce(w(oF),{modelValue:w(i).activeCollapse,"onUpdate:modelValue":m[23]||(m[23]=y=>w(i).activeCollapse=y),style:{"margin-bottom":"24px"}},{default:he(()=>[ce(w(sF),{title:"Generation Options",name:"1"},{default:he(()=>[ce(gU),ce(sp,{label:"Negative Prompt",prop:"negativePrompt",modelValue:w(r).negativePrompt,"onUpdate:modelValue":m[0]||(m[0]=y=>w(r).negativePrompt=y),autosize:{maxRows:15},resize:"vertical",type:"textarea",placeholder:"Enter negative prompt here",info:"What to exclude from the image. Not working? Try increasing the guidance."},null,8,["modelValue"]),ce(sp,{label:"Seed",prop:"seed",modelValue:w(r).params.seed,"onUpdate:modelValue":m[2]||(m[2]=y=>w(r).params.seed=y),placeholder:"Enter seed here"},{append:he(()=>[ce(w(Wr),{content:"Randomize!",placement:"top"},{default:he(()=>[ce(w(ht),{icon:w(bO),onClick:m[1]||(m[1]=()=>w(r).params.seed=w(BC)())},null,8,["icon"])]),_:1})]),_:1},8,["modelValue"]),w(r).multiSelect.sampler.enabled?($(),ye(rc,{key:0,label:"Sampler(s)",prop:"samplers",modelValue:w(r).multiSelect.sampler.selected,"onUpdate:modelValue":m[3]||(m[3]=y=>w(r).multiSelect.sampler.selected=y),options:w(a),info:"Multi-select enabled. Heun and DPM2 double generation time per step, but converge twice as fast.",multiple:""},null,8,["modelValue","options"])):($(),ye(rc,{key:1,label:"Sampler",prop:"sampler",modelValue:w(r).params.sampler_name,"onUpdate:modelValue":m[4]||(m[4]=y=>w(r).params.sampler_name=y),options:w(a),info:"Heun and DPM2 double generation time per step, but converge twice as fast."},null,8,["modelValue","options"])),ce(jn,{label:"Batch Size",prop:"batchSize",modelValue:w(r).params.n,"onUpdate:modelValue":m[5]||(m[5]=y=>w(r).params.n=y),min:w(r).minImages,max:w(r).maxImages},null,8,["modelValue","min","max"]),w(r).multiSelect.steps.enabled?($(),ye(jn,{key:2,label:"Steps(s)",prop:"multiSteps",modelValue:w(r).multiSelect.steps.selected,"onUpdate:modelValue":m[6]||(m[6]=y=>w(r).multiSelect.steps.selected=y),min:w(r).minSteps,max:w(r).maxSteps,info:"Multi-select enabled. Keep step count between 30 to 50 for optimal generation times. Coherence typically peaks between 60 and 90 steps, with a trade-off in speed.",multiple:""},null,8,["modelValue","min","max"])):($(),ye(jn,{key:3,label:"Steps",prop:"steps",modelValue:w(r).params.steps,"onUpdate:modelValue":m[7]||(m[7]=y=>w(r).params.steps=y),min:w(r).minSteps,max:w(r).maxSteps,info:"Keep step count between 30 to 50 for optimal generation times. Coherence typically peaks between 60 and 90 steps, with a trade-off in speed."},null,8,["modelValue","min","max"])),ce(jn,{label:"Width",prop:"width",modelValue:w(r).params.width,"onUpdate:modelValue":m[8]||(m[8]=y=>w(r).params.width=y),min:w(r).minDimensions,max:w(r).maxDimensions,step:64,onChange:g},null,8,["modelValue","min","max"]),ce(jn,{label:"Height",prop:"height",modelValue:w(r).params.height,"onUpdate:modelValue":m[9]||(m[9]=y=>w(r).params.height=y),min:w(r).minDimensions,max:w(r).maxDimensions,step:64,onChange:g},null,8,["modelValue","min","max"]),w(r).multiSelect.guidance.enabled?($(),ye(jn,{key:4,label:"Guidance(s)",prop:"cfgScales",modelValue:w(r).multiSelect.guidance.selected,"onUpdate:modelValue":m[10]||(m[10]=y=>w(r).multiSelect.guidance.selected=y),min:w(r).minCfgScale,max:w(r).maxCfgScale,info:"Multi-select enabled. Higher values will make the AI respect your prompt more. Lower values allow the AI to be more creative.",multiple:""},null,8,["modelValue","min","max"])):($(),ye(jn,{key:5,label:"Guidance",prop:"cfgScale",modelValue:w(r).params.cfg_scale,"onUpdate:modelValue":m[11]||(m[11]=y=>w(r).params.cfg_scale=y),min:w(r).minCfgScale,max:w(r).maxCfgScale,step:.5,info:"Higher values will make the AI respect your prompt more. Lower values allow the AI to be more creative."},null,8,["modelValue","min","max"])),w(r).multiSelect.clipSkip.enabled?($(),ye(jn,{key:6,label:"CLIP Skip(s)",prop:"clipSkips",modelValue:w(r).multiSelect.clipSkip.selected,"onUpdate:modelValue":m[12]||(m[12]=y=>w(r).multiSelect.clipSkip.selected=y),min:w(r).minClipSkip,max:w(r).maxClipSkip,info:"Multi-select enabled. Last layers of CLIP to ignore. For most situations this can be left alone.",multiple:""},null,8,["modelValue","min","max"])):($(),ye(jn,{key:7,label:"CLIP Skip",prop:"clipSkip",modelValue:w(r).params.clip_skip,"onUpdate:modelValue":m[13]||(m[13]=y=>w(r).params.clip_skip=y),min:w(r).minClipSkip,max:w(r).maxClipSkip,info:"Last layers of CLIP to ignore. For most situations this can be left alone."},null,8,["modelValue","min","max"])),w(r).sourceGeneratorTypes.includes(w(r).generatorType)?($(),ye(jn,{key:8,label:"Init Strength",prop:"denoise",modelValue:w(r).params.denoising_strength,"onUpdate:modelValue":m[14]||(m[14]=y=>w(r).params.denoising_strength=y),min:w(r).minDenoise,max:w(r).maxDenoise,step:.01,info:"The final image will diverge from the starting image at higher values."},null,8,["modelValue","min","max"])):be("",!0),ce(jn,{label:"Video Frames",prop:"frames",modelValue:w(r).params.frames,"onUpdate:modelValue":m[15]||(m[15]=y=>w(r).params.frames=y),min:w(r).minFrames,max:w(r).maxFrames,info:"Number of consecutive video frames to generate (Video models only). Max 80 frames, about 5 seconds of video."},null,8,["modelValue","min","max"]),ce(rc,{label:"Scheduler",prop:"scheduler",modelValue:w(r).params.scheduler,"onUpdate:modelValue":m[16]||(m[16]=y=>w(r).params.scheduler=y),options:c,info:"Experimental! KoboldCpp only, allows you to use a different scheduler. Leave as default otherwise."},null,8,["modelValue"]),ae("div",null,[m[31]||(m[31]=ae("span",{style:{height:"100%","font-size":"14px"}},[We("Reference Image: "),ae("br"),We("(Photomaker/Kontext) ")],-1)),ae("input",{class:"el-button",type:"file",id:"extra_image_input",onChange:m[17]||(m[17]=y=>w(r).setExtraImage(y)),accept:"image/*",multiple:""},null,32),ae("button",{onClick:m[18]||(m[18]=y=>w(r).clearExtraImage()),class:"el-button"},"Clear Image")]),m[32]||(m[32]=ae("h3",{style:{margin:"16px 0 4px 0"}},"Multi Select",-1)),ce(w(iz),null,{default:he(()=>[ce(w(bu),{span:w(n)?24:12},{default:he(()=>[ce(Mu,{label:"Multi Sampler",prop:"multiSamplerSwitch",modelValue:w(r).multiSelect.sampler.enabled,"onUpdate:modelValue":m[19]||(m[19]=y=>w(r).multiSelect.sampler.enabled=y)},null,8,["modelValue"])]),_:1},8,["span"]),ce(w(bu),{span:w(n)?24:12},{default:he(()=>[ce(Mu,{label:"Multi Guidance",prop:"multiGuidanceSwitch",modelValue:w(r).multiSelect.guidance.enabled,"onUpdate:modelValue":m[20]||(m[20]=y=>w(r).multiSelect.guidance.enabled=y)},null,8,["modelValue"])]),_:1},8,["span"]),ce(w(bu),{span:w(n)?24:12},{default:he(()=>[ce(Mu,{label:"Multi CLIP Skip",prop:"multiClipSkipSwitch",modelValue:w(r).multiSelect.clipSkip.enabled,"onUpdate:modelValue":m[21]||(m[21]=y=>w(r).multiSelect.clipSkip.enabled=y)},null,8,["modelValue"])]),_:1},8,["span"]),ce(w(bu),{span:w(n)?24:12},{default:he(()=>[ce(Mu,{label:"Multi Steps",prop:"multiStepsSwitch",modelValue:w(r).multiSelect.steps.enabled,"onUpdate:modelValue":m[22]||(m[22]=y=>w(r).multiSelect.steps.enabled=y)},null,8,["modelValue"])]),_:1},8,["span"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),ae("div",UW,[ce(w(ht),{onClick:m[24]||(m[24]=()=>{w(r).cancelled=!0,w(r).generating=!1,w(r).resetStore()}),class:"reset-btn"},{default:he(()=>[...m[33]||(m[33]=[We("Reset",-1)])]),_:1}),ce(w(ht),{type:"primary",class:"generate-cancel-btn",style:ze(w(r).generating?"width: 55%;":""),onClick:m[25]||(m[25]=()=>w(r).generateImage(w(r).generatorType))},{default:he(()=>[ae("span",null," Generate "+Oe(w(r).totalImageCount)+" image"+Oe(w(r).totalImageCount===1?"":"s"),1)]),_:1},8,["style"]),w(r).generating?($(),ye(w(ht),{key:0,type:"danger",class:"generate-cancel-btn",style:{width:"25%"},disabled:w(r).cancelled,onClick:m[26]||(m[26]=()=>{w(r).cancelled=!0,w(r).generating=!1,w(r).clearQueue()})},{default:he(()=>[...m[34]||(m[34]=[We("Cancel all",-1)])]),_:1},8,["disabled"])):be("",!0)]),ae("div",HW,[ce(w(sD),{class:"center-both generated-image"},{default:he(()=>[!w(r).generating&&w(r).outputs.length==0?($(),oe("div",WW,[/Inpainting/.test(w(r).generatorType)?($(),ye(Hy,{key:0})):be("",!0),/Img2Img/.test(w(r).generatorType)?($(),ye(Hy,{key:1})):be("",!0)])):be("",!0),!w(i).showGeneratedImages&&w(r).generating?($(),ye(lU,{key:1,generated:w(r).outputs.length,total:w(r).queue.length,elapsed:f(w(r).timer.seconds),onShowGenerated:m[27]||(m[27]=y=>w(i).showGeneratedImages=!0)},null,8,["generated","total","elapsed"])):be("",!0),w(i).showGeneratedImages&&w(r).outputs.length!==0?($(),ye(xU,{key:2})):be("",!0)]),_:1})])]),_:1},8,["model","rules"]))])],64))}});const Gs=Lk({history:ck("./"),routes:[{path:"/",name:"generate",component:KW},{path:"/images",name:"images",component:()=>Uy(()=>Promise.resolve().then(()=>MK),void 0,import.meta.url)},{path:"/options",name:"options",component:()=>Uy(()=>Promise.resolve().then(()=>DK),void 0,import.meta.url)},{path:"/return",name:"return",redirect:e=>(window.location.href=window.location.pathname.endsWith("/")?"..":".","/")}]});function $d(){return{steps:20,n:1,sampler_name:"Euler",width:512,height:512,cfg_scale:5,clip_skip:0,seed:-1,denoising_strength:.6,frames:1,scheduler:"default"}}function BC(){return Math.floor(Math.random()*9999999)+1}const Hn=Ho("generator",()=>{const e=["Text2Img","Img2Img","Inpainting"],t=["Img2Img","Inpainting"],n=ie("Text2Img"),r=ie(""),i=er("promptHistory",[]),u=ie(""),p=er("negativeLibrary",[]),o=ie($d()),a=ie({interval:0,seconds:0}),c=ie({sampler:{name:"Sampler",enabled:!1,selected:[o.value.sampler_name],noneMessage:"Failed to generate: No sampler selected.",mapToParam:Z=>Z.sampler_name},steps:{name:"Steps",enabled:!1,selected:[o.value.steps],noneMessage:"Failed to generate: No steps selected.",mapToParam:Z=>Z.steps},guidance:{name:"CFG Scale",enabled:!1,selected:[o.value.cfg_scale],noneMessage:"Failed to generate: No guidance selected.",mapToParam:Z=>Z.cfg_scale},clipSkip:{name:"Clip Skip",enabled:!1,selected:[o.value.clip_skip],noneMessage:"Failed to generate: No CLIP Skip selected.",mapToParam:Z=>Z.clip_skip}}),h=()=>({sourceProcessing:void 0,sourceImage:void 0,maskImage:void 0}),l=ie({...h(),sourceProcessing:"inpainting"}),f=ie({...h(),sourceProcessing:"img2img"}),s=Z=>Z==="Inpainting"?l.value:Z==="Img2Img"?f.value:h(),d=W(()=>s(n.value)),g=ie(""),v=ie(!1),m=ie(!1),y=ie([]),b=ie([]),_=ie(64),S=W(()=>gn().allowLargerParams==="Enabled"?3072:1024),C=ie(1),T=ie(20),E=ie(1),O=W(()=>gn().allowLargerParams==="Enabled"?150:50),D=ie(1),j=ie(24),k=ie(.1),U=ie(1),P=ie(0),re=ie(10),q=ie(1),V=ie(80),te=(Z,ue,me)=>Array.from({length:(ue-Z+1)/me},(xe,Ee)=>(Ee+Z)*me),A=ie(te(P.value,re.value,1)),B=ie(te(D.value,j.value,.5)),I=W(()=>{const Z=(Xe,tt,qe=1)=>Xe*(tt.enabled?tt.selected.length:qe),me=o.value.n*_e().length,xe=Z(me,c.value.sampler),Ee=Z(xe,c.value.steps),ke=Z(Ee,c.value.guidance);return Z(ke,c.value.clipSkip)});function M(){return o.value=$d(),l.value=h(),f.value=h(),y.value=[],jt().showGeneratedImages=!1,J(),!0}function J(){b.value=[]}async function z(Z){if(!e.includes(Z))return[];if(r.value==="")return Q("Failed to generate: No prompt submitted.");for(const Et of Object.values(c.value))if(Et.enabled&&Et.selected.length===0)return Q(Et.noneMessage);const ue=Us(),me=jt();ue.saveImages();const{sourceImage:xe,maskImage:Ee,sourceProcessing:ke}=s(Z);F(r.value);const Ue=[],Xe=(Et,Ar)=>Et.enabled?Et.selected:Ar,tt=_e(),qe=Xe(c.value.guidance,[o.value.cfg_scale]),Yt=Xe(c.value.steps,[o.value.steps]),Bn=Xe(c.value.clipSkip,[o.value.clip_skip]),bt=Xe(c.value.sampler,[o.value.sampler_name]),zt=[await K()];for(const Et of qe)for(const Ar of Yt)for(const ln of Bn)for(const _n of tt){const Yr=_n.split(" ### ");for(const Rf of bt){let Xa=parseInt(o.value.seed.toString());(isNaN(Xa)||Xa<0)&&(Xa=BC());for(let qa=0;qa<o.value.n;qa++){const Lf=Xa+parseInt(qa.toString());let Mn={prompt:_n,params:{...o.value,seed:Lf,sampler_name:Rf,cfg_scale:Et,steps:Ar,clip_skip:ln,prompt:Yr[0],negative_prompt:Yr[1]||"",init_images:xe?[xe.split(",")[1]]:[],mask:Ee,inpainting_mask_invert:Ee?0:null,inpainting_fill:Ee?1:null},source_image:xe==null?void 0:xe.split(",")[1],source_mask:Ee,source_processing:ke,models:zt};Mn.params.sampler_name=="default"&&delete Mn.params.sampler_name,Mn.params.scheduler=="default"&&delete Mn.params.scheduler,Mn.params.frames&&Mn.params.frames<=1&&delete Mn.params.frames,se&&se.length>0&&(Mn.params.extra_images=se),Ue.push(Mn)}}}let Gr=!1;v.value||(Gr=!0),v.value=!0,me.showGeneratedImages=!1;for(let Et=0;Et<Ue.length;Et++)b.value.push({...Ue[Et],jobId:"",index:Et,gathered:!1,failed:!1});Gr&&(y.value=[]),m.value=!1;function Ci(Et){return Math.min(Et.length,OW)}for(a.value.interval&&(clearInterval(a.value.interval),a.value.interval=0,a.value.seconds=0),a.value.interval=setInterval(()=>{a.value.seconds++},1e3);!b.value.every(Et=>Et.gathered||Et.failed)&&!m.value;){const Et=b.value.filter(ln=>!ln.gathered&&!ln.failed),Ar=Ci(Et);for(const[ln,_n]of Et.slice(0,Ar).entries()){if(m.value)break;_n.gathered=!0;try{const Yr=await N(_n.params);if(!Yr){_n.failed=!0;continue}L([{...Yr,..._n}])}catch(Yr){_n.failed=!0,console.error("Error fetching image:",Yr)}}}}async function L(Z){const ue=Ba();console.log(Z);const me=await Promise.all(Z.map(async ke=>{const Ue=ke.images[0];return{id:-1,image:`data:image/${!!ke.animated?"gif":"png"};base64,${Ue}`,prompt:ke.prompt,clip_skip:ke.params.clip_skip,modelName:ke.models[0],seed:ke.params.seed,steps:ke.params.steps,sampler_name:ke.params.sampler_name,cfg_scale:ke.params.cfg_scale,width:ke.params.width,height:ke.params.height,frames:ke.params.frames,scheduler:ke.params.scheduler}})),xe=await ue.pushOutputs(me),Ee=0;return y.value=[...xe.map(ke=>({type:"image",index:Ee,output:ke})),...y.value].sort((ke,Ue)=>ke.index-Ue.index),y.value.length===b.value.length&&(b.value=[],v.value=!1,jt().showGeneratedImages=!0,clearInterval(a.value.interval),a.value.interval=0,a.value.seconds=0),me}async function Q(Z){const ue=jt();return Z&&ue.raiseError(Z,!1),[]}function H(Z,ue,me,xe){return ue<=me?ue:(jt().raiseWarning(`This image was generated using the 'Larger Values' option. Setting '${Z}' to its default value instead of ${ue}.`,!0),xe)}function G(Z,ue=!0){const me=$d();if(n.value="Text2Img",c.value.guidance.enabled=!1,c.value.sampler.enabled=!1,Gs.push("/"),ue&&(Z.width=Z.width||me.width,Z.height=Z.height||me.height),Z.prompt){const xe=Z.prompt.split(" ### ");r.value=xe[0],u.value=xe[1]||""}Z.sampler_name&&(o.value.sampler_name=Z.sampler_name),Z.steps&&(o.value.steps=H("steps",Z.steps,O.value,me.steps)),Z.cfg_scale&&(o.value.cfg_scale=Z.cfg_scale),Z.width&&(o.value.width=H("width",Z.width,S.value,me.width)),Z.height&&(o.value.height=H("height",Z.height,S.value,me.height)),Z.seed&&(o.value.seed=Z.seed),Z.clip_skip&&(o.value.clip_skip=H("clip_skip",Z.clip_skip,re.value,me.clip_skip)),Z.scheduler&&(o.value.scheduler=Z.scheduler),Z.frames&&(o.value.frames=H("frames",Z.frames,V.value,me.frames))}function ne(Z){const ue=Us();n.value="Img2Img",f.value.sourceImage=Z,ue.drawing=!1,y.value=[],Gs.push("/"),mr.fabric.Image.fromURL(Z,ue.newImage)}function de(Z){const ue=Us();y.value=[],l.value.sourceImage=Z,n.value="Inpainting",Gs.push("/"),mr.fabric.Image.fromURL(Z,ue.newImage)}function ve(){return u.value===""?r.value:`${r.value} ### ${u.value}`}function _e(){const Z=ve(),ue=Z.match(/\{(.*?)\}/g)||[];if(ue.length===0)return[Z];let me=[];return ue.forEach(xe=>{const Ee=[],ke=xe.replace("{","").replace("}","").split("|");me.length===0?ke.forEach(Ue=>{const Xe=Z.replace(xe,Ue);Ee.push(Xe)}):me.forEach(Ue=>{ke.forEach(Xe=>{const tt=Ue.replace(xe,Xe);Ee.push(tt)})}),me=[...Ee]}),me}async function N(Z){const ue=gn();try{const me=await fetch(`${ue.baseURL.length===0?".":ue.baseURL}/sdapi/v1/${Z.init_images.length>0?"img":"txt"}2img`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Z)}),xe=await me.json();return mp(me,xe,200,"Failed to fetch",x)?xe:!1}catch{return!1}}function x(Z){return jt().raiseError(Z,!1),m.value=!1,y.value=[],!1}async function K(){const Z=gn(),ue=await fetch(`${Z.baseURL.length===0?".":Z.baseURL}/sdapi/v1/sd-models`),me=await ue.json();if(!!mp(ue,me,200,"Failed to get available models"))return me.length===0?"(No model loaded)":me[0].model_name}function X(Z){p.value.indexOf(Z)===-1&&(p.value=[...p.value,Z])}function R(Z){p.value=p.value.filter(ue=>ue!=Z)}function F(Z){if(i.value.findIndex(ue=>ue.prompt===Z)===-1){if(i.value.length>=10+i.value.filter(ue=>ue.starred).length){const ue=i.value.filter(xe=>!xe.starred),me=i.value.findIndex(xe=>xe===ue[ue.length-1]);i.value.splice(me,1)}i.value=[...i.value,{starred:!1,timestamp:Date.now(),prompt:Z}]}}function ee(Z){i.value=i.value.filter(ue=>ue.prompt!=Z&&ue!=Z)}function fe(){return!1}var se=[];function Y(Z){let ue=Z.target;if(se=[],ue.files.length>0)for(let me=0;me<ue.files.length;++me){let xe=ue.files[me];const Ee=new FileReader;Ee.onload=function(ke){let Ue=ke.target?ke.target.result:"";Ue.includes("data:image")&&(Ue=Ue.split(",")[1]),console.log(Ue),se.push(Ue)},Ee.onerror=function(){console.log("Error reading file.")},Ee.readAsDataURL(xe)}else console.log("No file to load")}function ge(){se=[];const Z=document.getElementById("extra_image_input");Z&&(Z.value="")}return{generatorType:n,prompt:r,params:o,outputs:y,inpainting:l,img2img:f,uploadDimensions:g,cancelled:m,multiSelect:c,negativePrompt:u,generating:v,negativePromptLibrary:p,minDimensions:_,maxDimensions:S,minImages:C,maxImages:T,minSteps:E,maxSteps:O,minCfgScale:D,maxCfgScale:j,minDenoise:k,maxDenoise:U,minClipSkip:P,maxClipSkip:re,minFrames:q,maxFrames:V,clipSkipList:A,cfgList:B,queue:b,promptHistory:i,timer:a,validGeneratorTypes:e,sourceGeneratorTypes:t,currentImageProps:d,totalImageCount:I,generateImage:z,generateText2Img:G,generateImg2Img:ne,generateInpainting:de,getPrompt:fe,resetStore:M,clearQueue:J,pushToNegativeLibrary:X,removeFromNegativeLibrary:R,pushToPromptHistory:F,removeFromPromptHistory:ee,setExtraImage:Y,clearExtraImage:ge}});"stream"in Blob.prototype||Object.defineProperty(Blob.prototype,"stream",{value(){return new Response(this).body}});var Mf=e=>new DataView(new ArrayBuffer(e)),Ya=e=>new Uint8Array(e.buffer||e),po=e=>new TextEncoder().encode(String(e));function GW(e,t,n=436){if(t===void 0||t instanceof Date||(t=new Date(t)),e instanceof File)return{t:t||new Date(e.lastModified),bytes:e.stream(),mode:n};if(e instanceof Response)return{t:t||new Date(e.headers.get("Last-Modified")||Date.now()),bytes:e.body,mode:n};if(t===void 0)t=new Date;else if(isNaN(t))throw new Error("Invalid modification date.");if(typeof e=="string")return{t,bytes:po(e),mode:n};if(e instanceof Blob)return{t,bytes:e.stream(),mode:n};if(e instanceof Uint8Array||e instanceof ReadableStream)return{t,bytes:e,mode:n};if(e instanceof ArrayBuffer||ArrayBuffer.isView(e))return{t,bytes:Ya(e),mode:n};if(Symbol.asyncIterator in e)return{t,bytes:NC(e[Symbol.asyncIterator]()),mode:n};throw new TypeError("Unsupported input format.")}function NC(e,t=e){return new ReadableStream({async pull(n){let r=0;for(;n.desiredSize>r;){const i=await e.next();if(!i.value){n.close();break}{const u=YW(i.value);n.enqueue(u),r+=u.byteLength}}},cancel(n){var r;(r=t.throw)==null||r.call(t,n)}})}function YW(e){return typeof e=="string"?po(e):e instanceof Uint8Array?e:Ya(e)}function $C(e,t,n){let[r,i]=function(u){return u?u instanceof Uint8Array?[u,1]:ArrayBuffer.isView(u)||u instanceof ArrayBuffer?[Ya(u),1]:[po(u),0]:[void 0,0]}(t);if(e instanceof File)return{o:zd(r||po(e.name)),i:e.size,u:i};if(e instanceof Response){const u=e.headers.get("content-disposition"),p=u&&u.match(/;\s*filename\*?\s*=\s*(?:UTF-\d+''|)["']?([^;"'\r\n]*)["']?(?:;|$)/i),o=p&&p[1]||e.url&&new URL(e.url).pathname.split("/").findLast(Boolean),a=o&&decodeURIComponent(o),c=n||+e.headers.get("content-length");return{o:zd(r||po(a)),i:c,u:i}}return r=zd(r),typeof e=="string"?{o:r,i:po(e).length,u:i}:e instanceof Blob?{o:r,i:e.size,u:i}:e instanceof ArrayBuffer||ArrayBuffer.isView(e)?{o:r,i:e.byteLength,u:i}:{o:r,i:XW(e,n),u:i}}function XW(e,t){return t>-1?t:e?void 0:0}function zd(e){if(!e||e.every(t=>t===47))throw new Error("The file must have a name.");for(;e[e.length-1]===47;)e=e.subarray(0,-1);return e}var zC=new Uint32Array(256);for(let e=0;e<256;++e){let t=e;for(let n=0;n<8;++n)t=t>>>1^(1&t&&3988292384);zC[e]=t}function Mb(e,t=0){t=~t;for(var n=0,r=e.length;n<r;n++)t=t>>>8^zC[255&t^e[n]];return~t>>>0}function jC(e,t,n=0){const r=e.getSeconds()>>1|e.getMinutes()<<5|e.getHours()<<11,i=e.getDate()|e.getMonth()+1<<5|e.getFullYear()-1980<<9;t.setUint16(n,r,1),t.setUint16(n+2,i,1)}function qW({o:e,u:t},n){return 8*(!t||(n!=null?n:function(r){try{ZW.decode(r)}catch{return 0}return 1}(e)))}var ZW=new TextDecoder("utf8",{fatal:1});function JW(e,t=0){const n=Mf(30);return n.setUint32(0,1347093252),n.setUint32(4,335546368|t),jC(e.t,n,10),n.setUint16(26,e.o.length,1),Ya(n)}async function*QW(e){let{bytes:t}=e;if("then"in t&&(t=await t),t instanceof Uint8Array)yield t,e.l=Mb(t,0),e.i=t.length;else{e.i=0;const n=t.getReader();for(;;){const{value:r,done:i}=await n.read();if(i)break;e.l=Mb(r,e.l),e.i+=r.length,yield r}}}function eK(e){const t=Mf(16);return t.setUint32(0,1347094280),t.setUint32(4,e.l,1),t.setUint32(8,e.i,1),t.setUint32(12,e.i,1),Ya(t)}function tK(e,t,n=0){const r=Mf(46);return r.setUint32(0,1347092738),r.setUint32(4,352523264),r.setUint16(8,2048|n),jC(e.t,r,12),r.setUint32(16,e.l,1),r.setUint32(20,e.i,1),r.setUint32(24,e.i,1),r.setUint16(28,e.o.length,1),r.setUint16(40,32768|e.mode,1),r.setUint32(42,t,1),Ya(r)}function VC(e){return e instanceof File||e instanceof Response?[[e],[e]]:[[e.input,e.name,e.size],[e.input,e.lastModified,e.mode]]}var nK=e=>function(t){var n;let r=22;for(const i of t){if(!i.o)throw new Error("Every file must have a non-empty name.");if(isNaN((n=i.i)!=null?n:NaN))throw new Error(`Missing size for file "${new TextDecoder().decode(i.o)}".`);r+=2*i.o.length+i.i+92}return r}(function*(t){for(const n of t)yield $C(...VC(n)[0])}(e));function rK(e,t={}){const n={"Content-Type":"application/zip","Content-Disposition":"attachment"};Number.isInteger(t.length)&&t.length>0&&(n["Content-Length"]=t.length),t.metadata&&(n["Content-Length"]=nK(t.metadata));const r=function(i){var u;const p=i[Symbol.iterator in i?Symbol.iterator:Symbol.asyncIterator]();return{async next(){const o=await p.next();if(o.done)return o;const[a,c]=VC(o.value);return{done:0,value:Object.assign(GW(...c),$C(...a))}},throw:(u=p.throw)==null?void 0:u.bind(p),[Symbol.asyncIterator](){return this}}}(e);return new Response(NC(async function*(i,u){const p=[];let o=0,a=0;for await(const l of i){const f=qW(l,u.buffersAreUTF8);yield JW(l,f),yield new Uint8Array(l.o),yield*QW(l),yield eK(l),p.push(tK(l,o,f)),p.push(l.o),a++,o+=46+l.o.length+l.i}let c=0;for(const l of p)yield l,c+=l.length;const h=Mf(22);h.setUint32(0,1347093766),h.setUint16(8,a,1),h.setUint16(10,a,1),h.setUint32(12,c,1),h.setUint32(16,o,1),yield Ya(h)}(r,t),r),{headers:n})}async function UC(e,t=!0,n){const r=gn();t&&Ji({message:`Downloading ${e.length} image(s)...`,type:"info"});const i=[];for(let o=0;o<e.length;o++){const a=await Dt.outputs.get(e[o]);if(!a)continue;const{image:c,id:h,...l}=a,f=`${o}-${a.seed}-${a.prompt}`.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd();let s=r.imageDownloadType;a.frames&&a.frames>1&&(s="GIF"),s==="PNG"?i.push({name:f+".png",input:await _a(c,"image/png")}):s==="JPG"?i.push({name:f+".jpg",input:await _a(c,"image/jpeg")}):s==="GIF"?i.push({name:f+".gif",input:await _a(c,"image/gif")}):i.push({name:f+".webp",input:await _a(c,"image/webp")}),i.push({name:f+".json",input:JSON.stringify(l,void 0,4)}),n&&n()}const u=await rK(i).blob(),p=document.createElement("a");p.href=URL.createObjectURL(u),p.download="sdui_images.zip",p.click()}async function iK(e,t){const n=gn(),r=document.createElement("a");let i;n.imageDownloadType==="PNG"?(i=await _a(e,"image/png"),r.href=URL.createObjectURL(i),r.download=t.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd()+".png"):n.imageDownloadType==="JPG"?(i=await _a(e,"image/jpeg"),r.href=URL.createObjectURL(i),r.download=t.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd()+".jpg"):n.imageDownloadType==="GIF"?(i=await _a(e,"image/gif"),r.href=URL.createObjectURL(i),r.download=t.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd()+".gif"):(r.href=e,r.download=t.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd()+".webp"),r.click(),i&&URL.revokeObjectURL(r.href)}const HC=pe({__name:"ImageActions",props:{imageData:{},onDelete:{type:Function}},setup(e){const t=Hn(),n=Ba(),r=e,i=()=>{rS.confirm("This action will permanently delete this image. Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{n.deleteOutput(r.imageData.id),r.onDelete!==void 0&&r.onDelete(r.imageData.id),Ji({type:"success",message:"Deleted Image"})})};async function u(p){const o=window.location.origin,a={prompt:p.prompt,width:p.width?p.width:void 0,height:p.height?p.height:void 0,steps:p.steps,cfg_scale:p.cfg_scale,sampler_name:p.sampler_name,model_name:p.modelName,seed:p.seed,clip_skip:p.clip_skip,frames:p.frames,scheduler:p.scheduler},c=window.location.pathname.replace("images","");let h=`${o}${c}?share=`,l="",f="";for(const[d,g]of Object.entries(a)){if(!g)continue;let v=g;typeof g=="string"?v=encodeURIComponent(g):Array.isArray(g)&&(v=JSON.stringify(g)),l+=`${f}${d}=${v}`,f="&"}const s=btoa(String.fromCharCode.apply(null,Array.from(TW(l))));h+=s,await navigator.clipboard.writeText(h),Ji({type:"success",message:"Copied shareable link to clipboard"})}return(p,o)=>($(),oe($e,null,[ce(w(ht),{onClick:i,type:"danger",icon:w(lf),plain:""},{default:he(()=>[...o[7]||(o[7]=[We("Delete",-1)])]),_:1},8,["icon"]),ce(w(ht),{onClick:o[0]||(o[0]=a=>w(iK)(p.imageData.image,`${p.imageData.seed}-${p.imageData.prompt}`)),type:"success",icon:w(il),plain:""},{default:he(()=>[...o[8]||(o[8]=[We("Download",-1)])]),_:1},8,["icon"]),p.imageData.starred?be("",!0):($(),ye(w(ht),{key:0,onClick:o[1]||(o[1]=a=>w(n).toggleStarred(p.imageData.id)),type:"warning",icon:w(jO),plain:""},{default:he(()=>[...o[9]||(o[9]=[We("Favourite",-1)])]),_:1},8,["icon"])),p.imageData.starred?($(),ye(w(ht),{key:1,onClick:o[2]||(o[2]=a=>w(n).toggleStarred(p.imageData.id)),type:"warning",icon:w(P1),plain:""},{default:he(()=>[...o[10]||(o[10]=[We("Unfavourite",-1)])]),_:1},8,["icon"])):be("",!0),ce(w(ht),{onClick:o[3]||(o[3]=a=>w(t).generateText2Img(p.imageData)),type:"success",icon:w(Rs),plain:""},{default:he(()=>[...o[11]||(o[11]=[We("Text2img",-1)])]),_:1},8,["icon"]),ce(w(ht),{onClick:o[4]||(o[4]=a=>w(t).generateImg2Img(p.imageData.image)),type:"success",icon:w(Rs),plain:""},{default:he(()=>[...o[12]||(o[12]=[We("Img2img",-1)])]),_:1},8,["icon"]),ce(w(ht),{onClick:o[5]||(o[5]=a=>w(t).generateInpainting(p.imageData.image)),type:"success",icon:w(Rs),plain:""},{default:he(()=>[...o[13]||(o[13]=[We("Inpainting",-1)])]),_:1},8,["icon"]),ce(w(ht),{onClick:o[6]||(o[6]=a=>u(p.imageData)),type:"success",icon:w(gO),plain:""},{default:he(()=>[...o[14]||(o[14]=[We("Copy Link",-1)])]),_:1},8,["icon"])],64))}}),aK={class:"main-output",style:{position:"relative",display:"flex","align-items":"center","justify-content":"center"}},oK=["src"],sK={style:{"font-size":"18px","font-weight":"500"}},lK={style:{"font-family":"'Segoe UI', Tahoma, Geneva, Verdana, sans-serif","letter-spacing":"0.025em"}},uK=pe({__name:"ImageDialog",setup(e){const t=Ba(),n=jt(),r=ie();o6(r,{onSwipeEnd(o,a){a==="RIGHT"&&n.openModalToLeft(),a==="LEFT"&&n.openModalToRight()}});const i=W({get(){return n.activeModal!==-1},set(){n.activeModal=-1}}),u=ie(t.currentOutputs[0]);Te(()=>n.activeModal,async()=>{const o=t.currentOutputs.find(a=>a.id===n.activeModal);if(o)return u.value=o;u.value=await Dt.outputs.get(n.activeModal)||t.currentOutputs[0]});function p(){i.value=!1}return(o,a)=>{var c;return $(),ye(w(QF),{"model-value":i.value,width:(c=u.value)==null?void 0:c.width,class:"image-viewer",onClosed:p,"align-center":""},{default:he(()=>{var h,l,f;return[ae("div",{class:"main-output-container",ref_key:"target",ref:r},[ae("div",aK,[(h=u.value)!=null&&h.image?($(),oe("img",{key:0,src:u.value.image,alt:"Output image",style:{"max-width":"100%","max-height":"100%","object-fit":"contain"}},null,8,oK)):be("",!0)])],512),ae("div",sK,Oe(((l=u.value.prompt)==null?void 0:l.split("###")[0])||"Unkown Creation"),1),ae("div",lK,[ae("div",null,"Negative Prompt: "+Oe(((f=u.value.prompt)==null?void 0:f.split("###")[1])||"None"),1),ae("span",null,"Model: "+Oe(u.value.modelName||"Unknown")+" - ",1),ae("span",null,"Sampler: "+Oe(u.value.sampler_name||"Unknown")+" - ",1),ae("span",null,"Seed: "+Oe(u.value.seed||"Unknown")+" - ",1),ae("span",null,"Steps: "+Oe(u.value.steps||"Unknown")+" - ",1),ae("span",null,"CFG Scale: "+Oe(u.value.cfg_scale||"Unknown")+" - ",1),ae("span",null,"Clip Skip: "+Oe(u.value.clip_skip||"Unknown")+" - ",1),ae("span",null,"Dimensions: "+Oe(u.value.width||"???")+"x"+Oe(u.value.height||"???")+" - ",1)]),ae("div",null,[ce(HC,{"image-data":u.value},null,8,["image-data"])])]}),_:1},8,["model-value","width"])}}});const cK={class:"generator-icons"},fK=pe({__name:"App",setup(e){const n=dv(fv).smallerOrEqual("md"),r=jt();gn();const i=Fk(),u=ie();return Te(()=>i.path,p=>{u.value&&u.value.open(p)}),(p,o)=>($(),oe($e,null,[ae("div",{class:le({"menu-container":!w(n)})},[ce(w(B2),{"default-active":w(i).path,mode:"horizontal",router:!0,ellipsis:!w(n),class:le(w(n)?"mobile-menu":"menu"),ref_key:"menuRef",ref:u},{default:he(()=>[w(n)?be("",!0):($(),ye(w(Nv),{key:0,class:"remove-item-styling center-vertical"},{title:he(()=>[...o[0]||(o[0]=[ae("div",{style:{"font-size":"20px"}},"Stable UI",-1)])]),_:1})),ce(Cd,{isMobile:w(n),index:"/"},{icon:he(()=>[ae("div",cK,[ce(w(De),null,{default:he(()=>[ce(w(kO))]),_:1}),w(r).showGeneratorBadge?($(),ye(w(De),{key:0,class:"generator-badge",size:10},{default:he(()=>[ce(G9)]),_:1})):be("",!0)])]),title:he(()=>[...o[1]||(o[1]=[We("Generate",-1)])]),_:1},8,["isMobile"]),ce(Cd,{isMobile:w(n),index:"/images"},{icon:he(()=>[ce(w(De),null,{default:he(()=>[ce(w(wO))]),_:1})]),title:he(()=>[...o[2]||(o[2]=[We("Images",-1)])]),_:1},8,["isMobile"]),ce(Cd,{isMobile:w(n),index:"/options"},{icon:he(()=>[ce(w(De),null,{default:he(()=>[ce(w(HO))]),_:1})]),title:he(()=>[...o[3]||(o[3]=[We("Options",-1)])]),_:1},8,["isMobile"])]),_:1},8,["default-active","ellipsis","class"])],2),ae("div",{class:le({view:!w(n)})},[ce(w(S1))],2),ce(uK)],64))}});const dK=bn(fK,[["__scopeId","data-v-92d556b8"]]);const bg=xE(dK);bg.use(OE());bg.use(Gs);bg.mount("#app");Gs.replace("/");const hK={key:1,class:"image-action"},pK=pe({__name:"CustomImage",props:{imageData:{}},setup(e){const t=e,n=jt(),r=ie(null);D8(r,n.toggleMultiSelect,{modifiers:{prevent:!0}});const i=ie(!1);mw(r,([{isIntersecting:p}])=>{p&&(i.value=p)},{rootMargin:"500px"});const u=W(()=>n.selected.includes(t.imageData.id));return(p,o)=>($(),oe("div",{class:"relative",ref_key:"containerRef",ref:r},[i.value?($(),ye(w(Dv),{key:0,class:"thumbnail",src:p.imageData.image,onClick:o[0]||(o[0]=a=>w(n).activeModal=p.imageData.id),fit:"cover",loading:"lazy",style:ze(`${u.value&&"opacity: 0.5"}`)},null,8,["src","style"])):be("",!0),i.value?($(),oe("div",hK,[p.imageData.starred?($(),ye(w(De),{key:0,class:"starred-icon",size:35,color:"var(--el-color-warning)"},{default:he(()=>[ce(w(P1))]),_:1})):be("",!0),w(n).multiSelect?($(),oe("div",{key:1,class:"select-container",onClick:o[1]||(o[1]=a=>w(n).toggleSelection(p.imageData.id))},[ce(w(De),{class:"select-icon",size:35,color:`rgba(255, 255, 255, ${u.value?"1":"0.5"})`},{default:he(()=>[u.value?be("",!0):($(),ye(w($l),{key:0})),u.value?($(),ye(w(x1),{key:1})):be("",!0)]),_:1},8,["color"])])):be("",!0)])):be("",!0)],512))}});const Rb=bn(pK,[["__scopeId","data-v-2920607f"]]);const vK={},gK={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"};function mK(e,t){return $(),oe("svg",gK,[...t[0]||(t[0]=[ae("path",{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-696 72h136v656H184V184zm656 656H384V384h456v456zM384 320V184h456v136H384z",fill:"currentColor"},null,-1)])])}const yK=bn(vK,[["render",mK]]),bK={class:"images-top-bar"},_K={class:"options"},wK=["onClick"],SK=["onClick"],CK=["onClick"],xK={key:1,class:"center-both",style:{gap:"12px"}},TK={key:2},EK={key:0},kK={key:0,style:{display:"flex",gap:"8px"}},OK={key:1,class:"images"},PK={key:1},AK=pe({__name:"ImagesView",setup(e){const{width:t}=v6(),n=Ba(),r=gn(),i=jt();function u(){i.selected=i.selected.filter(f=>!n.currentOutputs.map(s=>s.id).includes(f)),i.selected=[...i.selected,...n.currentOutputs.map(f=>f.id)],i.multiSelect=!0}async function p(){const f=await Dt.outputs.toCollection().primaryKeys();i.selected=f,i.multiSelect=!0}function o(){i.selected=i.selected.filter(f=>!n.currentOutputs.map(s=>s.id).includes(f)),i.selected.length===0&&(i.multiSelect=!1)}function a(){i.selected=[],i.multiSelect=!1}const c=()=>{rS.confirm(`This action will permanently delete ${i.selected.length} images. Continue?`,"Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{n.deleteMultipleOutputs(i.selected)})};f0(["a","A","ArrowLeft"],i.openModalToLeft),f0(["d","D","ArrowRight"],i.openModalToRight);async function h(){UC(i.selected)}const l=W(()=>{let f=2;t.value>1440?f=6:t.value>1280?f=5:t.value>768?f=4:t.value>480&&(f=3);const s=[];for(let d=0;d<f;d++){const g=[];for(let v=d;v<n.currentOutputs.length;v+=f)g.push(n.currentOutputs[v]);s.push(g)}return s});return(f,s)=>($(),oe($e,null,[ae("div",bK,[ae("div",_K,[ce(w(Su),{placement:"bottom",title:"Sort By",trigger:"click",width:200,transition:"none","hide-after":0},{reference:he(()=>[ce(w(ht),{class:"btn-select"},{default:he(()=>[ce(w(De),{size:16},{default:he(()=>[ce(w(NO))]),_:1})]),_:1})]),default:he(()=>[($(),oe($e,null,Lt(["Newest","Oldest"],d=>ae("div",{key:d,onClick:()=>w(n).sortBy=d,class:le(`el-select-dropdown__item ${w(n).sortBy===d?"selected":""}`)},Oe(d),11,wK)),64))]),_:1}),ce(w(Su),{placement:"bottom",title:"Filter By",trigger:"click",width:240,transition:"none","hide-after":0},{reference:he(()=>[ce(w(ht),{class:"btn-select"},{default:he(()=>[ce(w(De),{size:16},{default:he(()=>[ce(w(uO))]),_:1})]),_:1})]),default:he(()=>[($(),oe($e,null,Lt(["all","favourited","unfavourited","unrated"],d=>ae("div",{key:d,onClick:()=>w(n).filterBy=d,class:le(`el-select-dropdown__item ${w(n).filterBy===d?"selected":""}`)},Oe(w(n).filterBy===d?"Showing":"Show")+" "+Oe(d),11,SK)),64))]),_:1}),ce(w(Su),{placement:"bottom",title:"Image Layout",trigger:"click",width:240,transition:"none","hide-after":0},{reference:he(()=>[ce(w(ht),{class:"btn-select"},{default:he(()=>[ce(w(De),{size:16},{default:he(()=>[ce(yK)]),_:1})]),_:1})]),default:he(()=>[($(),oe($e,null,Lt([{label:"Square Grid",value:"grid"},{label:"Dynamic Layout",value:"dynamic"}],d=>ae("div",{key:d.value,onClick:()=>w(n).currentLayout=d.value,class:le(`el-select-dropdown__item ${w(n).currentLayout===d.value?"selected":""}`)},Oe(d.label),11,CK)),64))]),_:1}),ce(w(Su),{placement:"bottom",title:"Selection",trigger:"click",width:240,transition:"none","hide-after":0},{reference:he(()=>[ce(w(ht),{class:"btn-select"},{default:he(()=>[ce(w(De),{size:16},{default:he(()=>[w(i).multiSelect?($(),ye(w(x1),{key:0})):($(),ye(w($l),{key:1}))]),_:1})]),_:1})]),default:he(()=>[w(i).multiSelect?($(),oe("div",{key:0,class:"el-select-dropdown__item selected",onClick:s[0]||(s[0]=(...d)=>w(i).toggleMultiSelect&&w(i).toggleMultiSelect(...d))},"Disable multi-select")):($(),oe("div",{key:1,class:"el-select-dropdown__item",onClick:s[1]||(s[1]=(...d)=>w(i).toggleMultiSelect&&w(i).toggleMultiSelect(...d))},"Enable multi-select")),w(i).selected.length>0?($(),oe("div",{key:2,class:"el-select-dropdown__item selected",onClick:a},"Deselect All")):($(),oe("div",{key:3,class:"el-select-dropdown__item",onClick:p},"Select All")),w(i).selected.every(d=>!w(n).currentOutputs.map(g=>g.id).includes(d))?($(),oe("div",{key:5,class:"el-select-dropdown__item",onClick:u},"Select Page")):($(),oe("div",{key:4,class:"el-select-dropdown__item selected",onClick:o},"Deselect Page"))]),_:1})]),w(r).pageless==="Disabled"?($(),ye(w(N$),{key:0,layout:"prev, pager, next",total:w(n).outputsLength,"page-size":w(r).pageSize,"current-page":w(n).currentPage,"onUpdate:currentPage":s[2]||(s[2]=d=>w(n).currentPage=d),"hide-on-single-page":""},null,8,["total","page-size","current-page"])):be("",!0),w(i).multiSelect?($(),oe("div",xK,[ae("div",null,Oe(w(i).selected.length)+" selected",1),ce(w(ht),{type:"danger",onClick:c,icon:w(lf),plain:""},{default:he(()=>[...s[3]||(s[3]=[We("Delete",-1)])]),_:1},8,["icon"]),ce(w(ht),{type:"success",onClick:h,icon:w(il),plain:"",style:{margin:"0"}},{default:he(()=>[...s[4]||(s[4]=[We("Download",-1)])]),_:1},8,["icon"])])):($(),oe("div",TK,[...s[5]||(s[5]=[ae("em",{style:{"font-size":"14px"}},"(long press to select multiple images)",-1)])]))]),w(n).outputsLength!=0?($(),oe("div",EK,[w(n).currentLayout==="dynamic"?($(),oe("div",kK,[($(!0),oe($e,null,Lt(l.value,(d,g)=>($(),oe("div",{key:g,style:{flex:"1 1 0%"}},[($(!0),oe($e,null,Lt(d,v=>($(),ye(Rb,{key:v.id,"image-data":v,style:{"margin-bottom":"8px"}},null,8,["image-data"]))),128))]))),128))])):be("",!0),w(n).currentLayout==="grid"?($(),oe("div",OK,[($(!0),oe($e,null,Lt(w(n).currentOutputs,d=>($(),ye(Rb,{key:d.id,"image-data":d,style:{width:"200px",height:"200px"}},null,8,["image-data"]))),128))])):be("",!0)])):be("",!0),w(n).outputsLength==0?($(),oe("div",PK,[ce(w(_B),{description:"No Images Found"})])):be("",!0)],64))}});const IK=bn(AK,[["__scopeId","data-v-8a60c6a0"]]),MK=Object.freeze(Object.defineProperty({__proto__:null,default:IK},Symbol.toStringTag,{value:"Module"}));const $u=pe({__name:"FormRadio",props:{label:{},modelValue:{},prop:{},useBoolean:{type:Boolean},options:{},disabled:{type:Boolean},info:{},labelStyle:{},change:{type:Function}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t;function i(p){if(p!==void 0&&(n.useBoolean&&p==="Enabled"?r("update:modelValue",!0):n.useBoolean&&p==="Disabled"?r("update:modelValue",!1):r("update:modelValue",p),!!n.change))return n.useBoolean&&p==="Enabled"?n.change(!0):n.useBoolean&&p==="Disabled"?n.change(!1):n.change(p)}const u=W(()=>n.useBoolean?n.modelValue===!0?"Enabled":n.modelValue===!1?"Disabled":n.modelValue:n.modelValue);return(p,o)=>($(),ye(w(Ki),{prop:p.prop},{label:he(()=>[ce(Zl,{info:p.info,"label-style":p.labelStyle},{default:he(()=>[Ce(p.$slots,"label",{},()=>[We(Oe(p.label),1)])]),_:3},8,["info","label-style"])]),default:he(()=>[ce(w(RD),{disabled:p.disabled,"model-value":u.value,onChange:i},{default:he(()=>[($(!0),oe($e,null,Lt(p.options,a=>($(),ye(w(LD),{key:a,label:a},null,8,["label"]))),128))]),_:1},8,["disabled","model-value"]),Ce(p.$slots,"inline")]),_:3},8,["prop"]))}}),RK=pe({__name:"OptionsView",setup(e){const t=gn(),n=Ba(),r=[{value:"dark",label:"Dark"},{value:"light",label:"Light"},{value:"auto",label:"Auto"}],i=ie([]),u=ie(),p=ie(!1),o=ie(0);async function a(h){n.importFromZip(h),u.value.clearFiles()}async function c(){Ji({message:`Downloading ${n.outputsLength} image(s)... (this may take a while)`,type:"info"}),p.value=!0,o.value=0;const h=await Dt.outputs.toCollection().primaryKeys();await UC(h,!1,()=>{o.value++}),p.value=!1,o.value=0}return(h,l)=>($(),oe($e,null,[l[13]||(l[13]=ae("h1",null,"Options",-1)),ce(w(Lv),{"label-position":"top",model:w(t).options,onSubmit:l[8]||(l[8]=Ze(()=>{},["prevent"]))},{default:he(()=>[ce(w(Vz),{type:"border-card",style:{"min-height":"50vh"}},{default:he(()=>[ce(w(hd),{label:"\u{1F5A8}\uFE0F Generation"},{default:he(()=>[l[9]||(l[9]=ae("h2",null,"Generation Options",-1)),ce(w(Ki),{label:"Base URL",prop:"baseURL"},{default:he(()=>[ce(w(qo),{class:"apikey",modelValue:w(t).baseURL,"onUpdate:modelValue":l[0]||(l[0]=f=>w(t).baseURL=f)},null,8,["modelValue"])]),_:1}),ce($u,{label:"Allow Larger Params",prop:"pageless",modelValue:w(t).allowLargerParams,"onUpdate:modelValue":l[1]||(l[1]=f=>w(t).allowLargerParams=f),options:["Enabled","Disabled"]},null,8,["modelValue"])]),_:1}),ce(w(hd),{label:"\u{1F4F7} Images"},{default:he(()=>[l[11]||(l[11]=ae("h2",null,"Image Options",-1)),ce(jn,{label:"Images Per Page",prop:"pageSize",modelValue:w(t).pageSize,"onUpdate:modelValue":l[2]||(l[2]=f=>w(t).pageSize=f),min:10,max:50,step:5,disabled:w(t).pageless==="Enabled"},null,8,["modelValue","disabled"]),ce($u,{label:"Pageless Format",prop:"pageless",modelValue:w(t).pageless,"onUpdate:modelValue":l[3]||(l[3]=f=>w(t).pageless=f),options:["Enabled","Disabled"]},null,8,["modelValue"]),ce($u,{label:"Carousel Auto Cycle",prop:"autoCarousel",modelValue:w(t).autoCarousel,"onUpdate:modelValue":l[4]||(l[4]=f=>w(t).autoCarousel=f),options:["Enabled","Disabled"]},null,8,["modelValue"]),ce($u,{label:"Image Download Format",prop:"downloadType",modelValue:w(t).imageDownloadType,"onUpdate:modelValue":l[5]||(l[5]=f=>w(t).imageDownloadType=f),options:["PNG","JPG","WEBP","GIF"]},null,8,["modelValue"]),ce(w(Ki),{label:"Export Images (ZIP File)"},{default:he(()=>[p.value?($(),ye(w(ht),{key:1,icon:w(il),disabled:""},{default:he(()=>[We("Downloading... ("+Oe(o.value)+" / "+Oe(w(n).outputsLength)+" image(s))",1)]),_:1},8,["icon"])):($(),ye(w(ht),{key:0,icon:w(il),onClick:l[6]||(l[6]=f=>c())},{default:he(()=>[We("Download "+Oe(w(n).outputsLength)+" image(s)",1)]),_:1},8,["icon"]))]),_:1}),ce(w(Ki),{label:"Import Images (ZIP File)"},{default:he(()=>[ce(w(Vv),{drag:"",ref_key:"upload",ref:u,"auto-upload":!1,onChange:a,"file-list":i.value,limit:1,multiple:""},{default:he(()=>[ce(w(De),{size:100},{default:he(()=>[ce(w(Kp))]),_:1}),l[10]||(l[10]=ae("div",null,[We("Drop file here OR "),ae("em",null,"click to upload")],-1))]),_:1},8,["file-list"])]),_:1})]),_:1}),ce(w(hd),{label:"\u2699\uFE0F General"},{default:he(()=>[l[12]||(l[12]=ae("h2",null,"General Options",-1)),ce(rc,{label:"Color Scheme",prop:"colorScheme",modelValue:w(t).options.colorMode,"onUpdate:modelValue":l[7]||(l[7]=f=>w(t).options.colorMode=f),options:r},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])],64))}});const LK=bn(RK,[["__scopeId","data-v-b6ca7a75"]]),DK=Object.freeze(Object.defineProperty({__proto__:null,default:LK},Symbol.toStringTag,{value:"Module"}));
</script>
<style rel="stylesheet">:root{--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary-rgb:64,158,255;--el-color-success-rgb:103,194,58;--el-color-warning-rgb:230,162,60;--el-color-danger-rgb:245,108,108;--el-color-error-rgb:245,108,108;--el-color-info-rgb:144,147,153;--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","\5fae\8f6f\96c5\9ed1",Arial,sans-serif;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-transition-duration:.3s;--el-transition-duration-fast:.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(.645,.045,.355,1);--el-transition-function-fast-bezier:cubic-bezier(.23,1,.32,1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow:box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large:40px;--el-component-size:32px;--el-component-size-small:24px;color-scheme:light;--el-color-primary:#409eff;--el-color-primary-light-3:rgb(121,187,255);--el-color-primary-light-5:rgb(160,207,255);--el-color-primary-light-7:rgb(198,226,255);--el-color-primary-light-8:rgb(217,236,255);--el-color-primary-light-9:rgb(236,245,255);--el-color-primary-dark-2:rgb(51,126,204);--el-color-success:#67c23a;--el-color-success-light-3:rgb(149,212,117);--el-color-success-light-5:rgb(179,225,157);--el-color-success-light-7:rgb(209,237,196);--el-color-success-light-8:rgb(225,243,216);--el-color-success-light-9:rgb(240,249,235);--el-color-success-dark-2:rgb(82,155,46);--el-color-warning:#e6a23c;--el-color-warning-light-3:rgb(238,190,119);--el-color-warning-light-5:rgb(243,209,158);--el-color-warning-light-7:rgb(248,227,197);--el-color-warning-light-8:rgb(250,236,216);--el-color-warning-light-9:rgb(253,246,236);--el-color-warning-dark-2:rgb(184,130,48);--el-color-danger:#f56c6c;--el-color-danger-light-3:rgb(248,152,152);--el-color-danger-light-5:rgb(250,182,182);--el-color-danger-light-7:rgb(252,211,211);--el-color-danger-light-8:rgb(253,226,226);--el-color-danger-light-9:rgb(254,240,240);--el-color-danger-dark-2:rgb(196,86,86);--el-color-error:#f56c6c;--el-color-error-light-3:rgb(248,152,152);--el-color-error-light-5:rgb(250,182,182);--el-color-error-light-7:rgb(252,211,211);--el-color-error-light-8:rgb(253,226,226);--el-color-error-light-9:rgb(254,240,240);--el-color-error-dark-2:rgb(196,86,86);--el-color-info:#909399;--el-color-info-light-3:rgb(177,179,184);--el-color-info-light-5:rgb(200,201,204);--el-color-info-light-7:rgb(222,223,224);--el-color-info-light-8:rgb(233,233,235);--el-color-info-light-9:rgb(244,244,245);--el-color-info-dark-2:rgb(115,118,122);--el-bg-color:#ffffff;--el-bg-color-page:#f2f3f5;--el-bg-color-overlay:#ffffff;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:#909399;--el-text-color-placeholder:#a8abb2;--el-text-color-disabled:#c0c4cc;--el-border-color:#dcdfe6;--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-color-dark:#d4d7de;--el-border-color-darker:#cdd0d6;--el-fill-color:#f0f2f5;--el-fill-color-light:#f5f7fa;--el-fill-color-lighter:#fafafa;--el-fill-color-extra-light:#fafcff;--el-fill-color-dark:#ebedf0;--el-fill-color-darker:#e6e8eb;--el-fill-color-blank:#ffffff;--el-box-shadow:0px 12px 32px 4px rgba(0,0,0,.04),0px 8px 20px rgba(0,0,0,.08);--el-box-shadow-light:0px 0px 12px rgba(0,0,0,.12);--el-box-shadow-lighter:0px 0px 6px rgba(0,0,0,.12);--el-box-shadow-dark:0px 16px 48px 16px rgba(0,0,0,.08),0px 12px 32px rgba(0,0,0,.12),0px 8px 16px -8px rgba(0,0,0,.16);--el-disabled-bg-color:var(--el-fill-color-light);--el-disabled-text-color:var(--el-text-color-placeholder);--el-disabled-border-color:var(--el-border-color-light);--el-overlay-color:rgba(0,0,0,.8);--el-overlay-color-light:rgba(0,0,0,.7);--el-overlay-color-lighter:rgba(0,0,0,.5);--el-mask-color:rgba(255,255,255,.9);--el-mask-color-extra-light:rgba(255,255,255,.3);--el-border-width:1px;--el-border-style:solid;--el-border-color-hover:var(--el-text-color-disabled);--el-border:var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey:var(--el-border-color)}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.el-icon{--color:inherit;align-items:center;display:inline-flex;height:1em;justify-content:center;line-height:1em;position:relative;width:1em;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}:root{--el-menu-active-color:var(--el-color-primary);--el-menu-text-color:var(--el-text-color-primary);--el-menu-hover-text-color:var(--el-color-primary);--el-menu-bg-color:var(--el-fill-color-blank);--el-menu-hover-bg-color:var(--el-color-primary-light-9);--el-menu-item-height:56px;--el-menu-sub-item-height:calc(var(--el-menu-item-height) - 6px);--el-menu-horizontal-height:60px;--el-menu-horizontal-sub-item-height:36px;--el-menu-item-font-size:var(--el-font-size-base);--el-menu-item-hover-fill:var(--el-color-primary-light-9);--el-menu-border-color:var(--el-border-color);--el-menu-base-level-padding:20px;--el-menu-level-padding:20px;--el-menu-icon-width:24px}.el-menu{background-color:var(--el-menu-bg-color);border-right:1px solid var(--el-menu-border-color);box-sizing:border-box;list-style:none;margin:0;padding-left:0;position:relative}.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item-group__title,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-sub-menu__title{padding-left:calc(var(--el-menu-base-level-padding) + var(--el-menu-level)*var(--el-menu-level-padding));white-space:nowrap}.el-menu:not(.el-menu--collapse) .el-sub-menu__title{padding-right:calc(var(--el-menu-base-level-padding) + var(--el-menu-icon-width))}.el-menu--horizontal{border-right:none;display:flex;flex-wrap:nowrap;height:var(--el-menu-horizontal-height)}.el-menu--horizontal.el-menu--popup-container{height:unset}.el-menu--horizontal.el-menu{border-bottom:1px solid var(--el-menu-border-color)}.el-menu--horizontal>.el-menu-item{align-items:center;border-bottom:2px solid transparent;color:var(--el-menu-text-color);display:inline-flex;height:100%;justify-content:center;margin:0}.el-menu--horizontal>.el-menu-item a,.el-menu--horizontal>.el-menu-item a:hover{color:inherit}.el-menu--horizontal>.el-sub-menu:focus,.el-menu--horizontal>.el-sub-menu:hover{outline:none}.el-menu--horizontal>.el-sub-menu:hover .el-sub-menu__title{color:var(--el-menu-hover-text-color)}.el-menu--horizontal>.el-sub-menu.is-active .el-sub-menu__title{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title{border-bottom:2px solid transparent;color:var(--el-menu-text-color);height:100%}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title:hover{background-color:var(--el-menu-bg-color)}.el-menu--horizontal .el-menu .el-menu-item,.el-menu--horizontal .el-menu .el-sub-menu__title{align-items:center;background-color:var(--el-menu-bg-color);color:var(--el-menu-text-color);display:flex;height:var(--el-menu-horizontal-sub-item-height);line-height:var(--el-menu-horizontal-sub-item-height);padding:0 10px}.el-menu--horizontal .el-menu .el-sub-menu__title{padding-right:40px}.el-menu--horizontal .el-menu .el-menu-item.is-active,.el-menu--horizontal .el-menu .el-menu-item.is-active:hover,.el-menu--horizontal .el-menu .el-sub-menu.is-active>.el-sub-menu__title,.el-menu--horizontal .el-menu .el-sub-menu.is-active>.el-sub-menu__title:hover{color:var(--el-menu-active-color)}.el-menu--horizontal .el-menu-item:not(.is-disabled):focus,.el-menu--horizontal .el-menu-item:not(.is-disabled):hover{background-color:var(--el-menu-hover-bg-color);color:var(--el-menu-active-color,var(--el-menu-hover-text-color));outline:none}.el-menu--horizontal>.el-menu-item.is-active{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)!important}.el-menu--collapse{width:calc(var(--el-menu-icon-width) + var(--el-menu-base-level-padding)*2)}.el-menu--collapse>.el-menu-item [class^=el-icon],.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title [class^=el-icon],.el-menu--collapse>.el-sub-menu>.el-sub-menu__title [class^=el-icon]{margin:0;text-align:center;vertical-align:middle;width:var(--el-menu-icon-width)}.el-menu--collapse>.el-menu-item .el-sub-menu__icon-arrow,.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title .el-sub-menu__icon-arrow,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title .el-sub-menu__icon-arrow{display:none}.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title>span,.el-menu--collapse>.el-menu-item>span,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title>span{display:inline-block;height:0;overflow:hidden;visibility:hidden;width:0}.el-menu--collapse>.el-menu-item.is-active i{color:inherit}.el-menu--collapse .el-menu .el-sub-menu{min-width:200px}.el-menu--collapse .el-sub-menu.is-active .el-sub-menu__title{color:var(--el-menu-active-color)}.el-menu--popup{border:none;border-radius:var(--el-border-radius-small);box-shadow:var(--el-box-shadow-light);min-width:200px;padding:5px 0;z-index:100}.el-menu .el-icon{flex-shrink:0}.el-menu-item{align-items:center;box-sizing:border-box;color:var(--el-menu-text-color);cursor:pointer;display:flex;font-size:var(--el-menu-item-font-size);height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);list-style:none;padding:0 var(--el-menu-base-level-padding);position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);white-space:nowrap}.el-menu-item *{vertical-align:bottom}.el-menu-item i{color:inherit}.el-menu-item:focus,.el-menu-item:hover{outline:none}.el-menu-item:hover{background-color:var(--el-menu-hover-bg-color)}.el-menu-item.is-disabled{background:none!important;cursor:not-allowed;opacity:.25}.el-menu-item [class^=el-icon]{font-size:18px;margin-right:5px;text-align:center;vertical-align:middle;width:var(--el-menu-icon-width)}.el-menu-item.is-active{color:var(--el-menu-active-color)}.el-menu-item.is-active i{color:inherit}.el-menu-item .el-menu-tooltip__trigger{align-items:center;box-sizing:border-box;display:inline-flex;height:100%;left:0;padding:0 var(--el-menu-base-level-padding);position:absolute;top:0;width:100%}.el-sub-menu{list-style:none;margin:0;padding-left:0}.el-sub-menu__title{align-items:center;box-sizing:border-box;color:var(--el-menu-text-color);cursor:pointer;display:flex;font-size:var(--el-menu-item-font-size);height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);list-style:none;padding:0 var(--el-menu-base-level-padding);position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);white-space:nowrap}.el-sub-menu__title *{vertical-align:bottom}.el-sub-menu__title i{color:inherit}.el-sub-menu__title:focus,.el-sub-menu__title:hover{outline:none}.el-sub-menu__title.is-disabled{background:none!important;cursor:not-allowed;opacity:.25}.el-sub-menu__title:hover{background-color:var(--el-menu-hover-bg-color)}.el-sub-menu .el-menu{border:none}.el-sub-menu .el-menu-item{height:var(--el-menu-sub-item-height);line-height:var(--el-menu-sub-item-height)}.el-sub-menu.el-sub-menu__hide-arrow .el-sub-menu__title{padding-right:var(--el-menu-base-level-padding)}.el-sub-menu__hide-arrow .el-sub-menu__icon-arrow{display:none!important}.el-sub-menu.is-active .el-sub-menu__title{border-bottom-color:var(--el-menu-active-color)}.el-sub-menu.is-disabled .el-menu-item,.el-sub-menu.is-disabled .el-sub-menu__title{background:none!important;cursor:not-allowed;opacity:.25}.el-sub-menu .el-icon{font-size:18px;margin-right:5px;text-align:center;vertical-align:middle;width:var(--el-menu-icon-width)}.el-sub-menu .el-icon.el-sub-menu__icon-more{margin-right:0!important}.el-sub-menu .el-sub-menu__icon-arrow{font-size:12px;margin-right:0;margin-top:-6px;position:absolute;right:var(--el-menu-base-level-padding);top:50%;transition:transform var(--el-transition-duration);width:inherit}.el-menu-item-group>ul{padding:0}.el-menu-item-group__title{color:var(--el-text-color-secondary);font-size:12px;line-height:normal;padding:7px 0 7px var(--el-menu-base-level-padding)}.horizontal-collapse-transition .el-sub-menu__title .el-sub-menu__icon-arrow{opacity:0;transition:var(--el-transition-duration-fast)}.el-popper{--el-popper-border-radius:var(--el-popover-border-radius,4px);border-radius:var(--el-popper-border-radius);font-size:12px;line-height:20px;min-width:10px;overflow-wrap:break-word;padding:5px 11px;position:absolute;visibility:visible;word-break:normal;z-index:2000}.el-popper.is-dark{color:var(--el-bg-color)}.el-popper.is-dark,.el-popper.is-dark>.el-popper__arrow:before{background:var(--el-text-color-primary);border:1px solid var(--el-text-color-primary)}.el-popper.is-dark>.el-popper__arrow:before{right:0}.el-popper.is-light,.el-popper.is-light>.el-popper__arrow:before{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light)}.el-popper.is-light>.el-popper__arrow:before{right:0}.el-popper.is-pure{padding:0}.el-popper__arrow,.el-popper__arrow:before{height:10px;position:absolute;width:10px;z-index:-1}.el-popper__arrow:before{background:var(--el-text-color-primary);box-sizing:border-box;content:" ";transform:rotate(45deg)}.el-popper[data-popper-placement^=top]>.el-popper__arrow{bottom:-5px}.el-popper[data-popper-placement^=top]>.el-popper__arrow:before{border-bottom-right-radius:2px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow{top:-5px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow:before{border-top-left-radius:2px}.el-popper[data-popper-placement^=left]>.el-popper__arrow{right:-5px}.el-popper[data-popper-placement^=left]>.el-popper__arrow:before{border-top-right-radius:2px}.el-popper[data-popper-placement^=right]>.el-popper__arrow{left:-5px}.el-popper[data-popper-placement^=right]>.el-popper__arrow:before{border-bottom-left-radius:2px}.el-popper[data-popper-placement^=top]>.el-popper__arrow:before{border-left-color:transparent!important;border-top-color:transparent!important}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow:before{border-bottom-color:transparent!important;border-right-color:transparent!important}.el-popper[data-popper-placement^=left]>.el-popper__arrow:before{border-bottom-color:transparent!important;border-left-color:transparent!important}.el-popper[data-popper-placement^=right]>.el-popper__arrow:before{border-right-color:transparent!important;border-top-color:transparent!important}.el-badge{--el-badge-bg-color:var(--el-color-danger);--el-badge-radius:10px;--el-badge-font-size:12px;--el-badge-padding:6px;--el-badge-size:18px;display:inline-block;position:relative;vertical-align:middle;width:-moz-fit-content;width:fit-content}.el-badge__content{align-items:center;background-color:var(--el-badge-bg-color);border:1px solid var(--el-bg-color);border-radius:var(--el-badge-radius);color:var(--el-color-white);display:inline-flex;font-size:var(--el-badge-font-size);height:var(--el-badge-size);justify-content:center;padding:0 var(--el-badge-padding);white-space:nowrap}.el-badge__content.is-fixed{position:absolute;right:calc(1px + var(--el-badge-size)/2);top:0;transform:translateY(-50%) translate(100%);z-index:var(--el-index-normal)}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{border-radius:50%;height:8px;padding:0;right:0;width:8px}.el-badge__content.is-hide-zero{display:none}.el-badge__content--primary{background-color:var(--el-color-primary)}.el-badge__content--success{background-color:var(--el-color-success)}.el-badge__content--warning{background-color:var(--el-color-warning)}.el-badge__content--info{background-color:var(--el-color-info)}.el-badge__content--danger{background-color:var(--el-color-danger)}.el-message{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-border-color-lighter);--el-message-padding:11px 15px;--el-message-close-size:16px;--el-message-close-icon-color:var(--el-text-color-placeholder);--el-message-close-hover-color:var(--el-text-color-secondary);align-items:center;background-color:var(--el-message-bg-color);border-color:var(--el-message-border-color);border-radius:var(--el-border-radius-base);border-style:var(--el-border-style);border-width:var(--el-border-width);box-sizing:border-box;display:flex;gap:8px;max-width:calc(100% - 32px);padding:var(--el-message-padding);position:fixed;transition:opacity var(--el-transition-duration),transform .4s,top .4s,bottom .4s;width:-moz-fit-content;width:fit-content}.el-message.is-left{left:16px}.el-message.is-right{right:16px}.el-message.is-center{left:50%;transform:translate(-50%)}.el-message.is-plain{background-color:var(--el-bg-color-overlay);border-color:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-message p{margin:0}.el-message--primary{--el-message-bg-color:var(--el-color-primary-light-9);--el-message-border-color:var(--el-color-primary-light-8);--el-message-text-color:var(--el-color-primary)}.el-message--primary .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--primary{color:var(--el-message-text-color)}.el-message--success{--el-message-bg-color:var(--el-color-success-light-9);--el-message-border-color:var(--el-color-success-light-8);--el-message-text-color:var(--el-color-success)}.el-message--success .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--success{color:var(--el-message-text-color)}.el-message--info{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-color-info-light-8);--el-message-text-color:var(--el-color-info)}.el-message--info .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--info{color:var(--el-message-text-color)}.el-message--warning{--el-message-bg-color:var(--el-color-warning-light-9);--el-message-border-color:var(--el-color-warning-light-8);--el-message-text-color:var(--el-color-warning)}.el-message--warning .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--warning{color:var(--el-message-text-color)}.el-message--error{--el-message-bg-color:var(--el-color-error-light-9);--el-message-border-color:var(--el-color-error-light-8);--el-message-text-color:var(--el-color-error)}.el-message--error .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--error{color:var(--el-message-text-color)}.el-message .el-message__badge{position:absolute;right:-8px;top:-8px}.el-message__content{font-size:14px;line-height:1;padding:0}.el-message__content:focus{outline-width:0}.el-message .el-message__closeBtn{color:var(--el-message-close-icon-color);cursor:pointer;font-size:var(--el-message-close-size)}.el-message .el-message__closeBtn:focus{outline-width:0}.el-message .el-message__closeBtn:hover{color:var(--el-message-close-hover-color)}.el-message-fade-enter-from,.el-message-fade-leave-to{opacity:0}.el-message-fade-enter-from:is(.is-left,.is-right),.el-message-fade-leave-to:is(.is-left,.is-right){transform:translateY(-100%)}.el-message-fade-enter-from:is(.is-left,.is-right).is-bottom,.el-message-fade-leave-to:is(.is-left,.is-right).is-bottom{transform:translateY(100%)}.el-message-fade-enter-from.is-center,.el-message-fade-leave-to.is-center{transform:translate(-50%,-100%)}.el-message-fade-enter-from.is-center.is-bottom,.el-message-fade-leave-to.is-center.is-bottom{transform:translate(-50%,100%)}.el-dialog{--el-dialog-width:50%;--el-dialog-margin-top:15vh;--el-dialog-bg-color:var(--el-bg-color);--el-dialog-box-shadow:var(--el-box-shadow);--el-dialog-title-font-size:var(--el-font-size-large);--el-dialog-content-font-size:14px;--el-dialog-font-line-height:var(--el-font-line-height-primary);--el-dialog-padding-primary:16px;--el-dialog-border-radius:var(--el-border-radius-base);background:var(--el-dialog-bg-color);border-radius:var(--el-dialog-border-radius);box-shadow:var(--el-dialog-box-shadow);box-sizing:border-box;margin:var(--el-dialog-margin-top,15vh) auto 50px;overflow-wrap:break-word;padding:var(--el-dialog-padding-primary);position:relative;width:var(--el-dialog-width,50%)}.el-dialog:focus{outline:none!important}.el-dialog.is-align-center{margin:auto}.el-dialog.is-fullscreen{--el-dialog-width:100%;--el-dialog-margin-top:0;border-radius:0;height:100%;margin-bottom:0;overflow:auto}.el-dialog__wrapper{bottom:0;left:0;margin:0;overflow:auto;position:fixed;right:0;top:0}.el-dialog.is-draggable .el-dialog__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-dialog__header{padding-bottom:var(--el-dialog-padding-primary)}.el-dialog__header.show-close{padding-right:calc(var(--el-dialog-padding-primary) + var(--el-message-close-size, 16px))}.el-dialog__headerbtn{background:transparent;border:none;cursor:pointer;font-size:var(--el-message-close-size,16px);height:48px;outline:none;padding:0;position:absolute;right:0;top:0;width:48px}.el-dialog__headerbtn .el-dialog__close{color:var(--el-color-info);font-size:inherit}.el-dialog__headerbtn:focus .el-dialog__close,.el-dialog__headerbtn:hover .el-dialog__close{color:var(--el-color-primary)}.el-dialog__title{color:var(--el-text-color-primary);font-size:var(--el-dialog-title-font-size);line-height:var(--el-dialog-font-line-height)}.el-dialog__body{color:var(--el-text-color-regular);font-size:var(--el-dialog-content-font-size)}.el-dialog__footer{box-sizing:border-box;padding-top:var(--el-dialog-padding-primary);text-align:right}.el-dialog--center{text-align:center}.el-dialog--center .el-dialog__body{text-align:initial}.el-dialog--center .el-dialog__footer{text-align:inherit}.el-modal-dialog.is-penetrable{pointer-events:none}.el-modal-dialog.is-penetrable .el-dialog{pointer-events:auto}.el-overlay-dialog{bottom:0;left:0;overflow:auto;position:fixed;right:0;top:0}.dialog-fade-enter-active{animation:modal-fade-in var(--el-transition-duration)}.dialog-fade-enter-active .el-overlay-dialog{animation:dialog-fade-in var(--el-transition-duration)}.dialog-fade-leave-active{animation:modal-fade-out var(--el-transition-duration)}.dialog-fade-leave-active .el-overlay-dialog{animation:dialog-fade-out var(--el-transition-duration)}@keyframes dialog-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes dialog-fade-out{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20px,0)}}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}.el-overlay{background-color:var(--el-overlay-color-lighter);bottom:0;height:100%;left:0;overflow:auto;position:fixed;right:0;top:0;z-index:2000}.el-overlay .el-overlay-root{height:0}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transform-origin:center top;transition:var(--el-transition-md-fade)}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transform-origin:center bottom;transition:var(--el-transition-md-fade)}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transform-origin:top left;transition:var(--el-transition-md-fade)}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-enter-active,.el-collapse-transition-leave-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-collapse{--el-collapse-border-color:var(--el-border-color-lighter);--el-collapse-header-height:48px;--el-collapse-header-bg-color:var(--el-fill-color-blank);--el-collapse-header-text-color:var(--el-text-color-primary);--el-collapse-header-font-size:13px;--el-collapse-content-bg-color:var(--el-fill-color-blank);--el-collapse-content-font-size:13px;--el-collapse-content-text-color:var(--el-text-color-primary);border-bottom:1px solid var(--el-collapse-border-color);border-top:1px solid var(--el-collapse-border-color)}.el-collapse-item.is-disabled .el-collapse-item__header{color:var(--el-text-color-disabled);cursor:not-allowed}.el-collapse-item__header{align-items:center;background-color:var(--el-collapse-header-bg-color);border:none;border-bottom:1px solid var(--el-collapse-border-color);color:var(--el-collapse-header-text-color);cursor:pointer;display:flex;font-size:var(--el-collapse-header-font-size);font-weight:500;line-height:var(--el-collapse-header-height);min-height:var(--el-collapse-header-height);outline:none;padding:0;transition:border-bottom-color var(--el-transition-duration);width:100%}.el-collapse-item__arrow{font-weight:300;transition:transform var(--el-transition-duration)}.el-collapse-item__arrow.is-active{transform:rotate(90deg)}.el-collapse-item__title{flex:auto;text-align:left}.el-collapse-item__header.focusing:focus:not(:hover){color:var(--el-color-primary)}.el-collapse-item__header.is-active{border-bottom-color:transparent}.el-collapse-item__wrap{background-color:var(--el-collapse-content-bg-color);border-bottom:1px solid var(--el-collapse-border-color);box-sizing:border-box;overflow:hidden;will-change:height}.el-collapse-item__content{color:var(--el-collapse-content-text-color);font-size:var(--el-collapse-content-font-size);line-height:1.7692307692;padding-bottom:25px}.el-collapse-item:last-child{margin-bottom:-1px}.el-collapse-icon-position-left .el-collapse-item__header{gap:8px}.el-collapse-icon-position-left .el-collapse-item__title{order:1}.el-collapse-icon-position-right .el-collapse-item__header{padding-right:8px}.el-form{--el-form-label-font-size:var(--el-font-size-base);--el-form-inline-content-width:220px}.el-form--inline .el-form-item{display:inline-flex;margin-right:32px;vertical-align:middle}.el-form--inline.el-form--label-top{display:flex;flex-wrap:wrap}.el-form--inline.el-form--label-top .el-form-item{display:block}.el-form-item{display:flex;--font-size:14px;margin-bottom:18px}.el-form-item .el-form-item{margin-bottom:0}.el-form-item .el-input__validateIcon{display:none}.el-form-item--large{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:22px}.el-form-item--large .el-form-item__label{height:40px;line-height:40px}.el-form-item--large .el-form-item__content{line-height:40px}.el-form-item--large .el-form-item__error{padding-top:4px}.el-form-item--default{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--default .el-form-item__label{height:32px;line-height:32px}.el-form-item--default .el-form-item__content{line-height:32px}.el-form-item--default .el-form-item__error{padding-top:2px}.el-form-item--small{--font-size:12px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--small .el-form-item__label{height:24px;line-height:24px}.el-form-item--small .el-form-item__content{line-height:24px}.el-form-item--small .el-form-item__error{padding-top:2px}.el-form-item--label-left .el-form-item__label{justify-content:flex-start;text-align:left}.el-form-item--label-right .el-form-item__label{justify-content:flex-end;text-align:right}.el-form-item--label-top{display:block}.el-form-item--label-top .el-form-item__label{display:block;height:auto;line-height:22px;margin-bottom:8px;text-align:left;width:-moz-fit-content;width:fit-content}.el-form-item__label-wrap{display:flex}.el-form-item__label{align-items:flex-start;box-sizing:border-box;color:var(--el-text-color-regular);display:inline-flex;flex:0 0 auto;font-size:var(--el-form-label-font-size);height:32px;line-height:32px;padding:0 12px 0 0}.el-form-item__content{align-items:center;display:flex;flex:1;flex-wrap:wrap;font-size:var(--font-size);line-height:32px;min-width:0;position:relative}.el-form-item__content .el-input-group{vertical-align:top}.el-form-item__error{color:var(--el-color-danger);font-size:12px;left:0;line-height:1;padding-top:2px;position:absolute;top:100%}.el-form-item__error--inline{display:inline-block;left:auto;margin-left:10px;position:relative;top:auto}.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label-wrap>.el-form-item__label:before,.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label:before{color:var(--el-color-danger);content:"*";margin-right:4px}.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label-wrap>.el-form-item__label:after,.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label:after{color:var(--el-color-danger);content:"*";margin-left:4px}.el-form-item.is-error .el-form-item__content .el-input-tag__wrapper,.el-form-item.is-error .el-form-item__content .el-input-tag__wrapper.is-focus,.el-form-item.is-error .el-form-item__content .el-input-tag__wrapper:focus,.el-form-item.is-error .el-form-item__content .el-input-tag__wrapper:hover,.el-form-item.is-error .el-form-item__content .el-input__wrapper,.el-form-item.is-error .el-form-item__content .el-input__wrapper.is-focus,.el-form-item.is-error .el-form-item__content .el-input__wrapper:focus,.el-form-item.is-error .el-form-item__content .el-input__wrapper:hover,.el-form-item.is-error .el-form-item__content .el-select__wrapper,.el-form-item.is-error .el-form-item__content .el-select__wrapper.is-focus,.el-form-item.is-error .el-form-item__content .el-select__wrapper:focus,.el-form-item.is-error .el-form-item__content .el-select__wrapper:hover,.el-form-item.is-error .el-form-item__content .el-textarea__inner,.el-form-item.is-error .el-form-item__content .el-textarea__inner.is-focus,.el-form-item.is-error .el-form-item__content .el-textarea__inner:focus,.el-form-item.is-error .el-form-item__content .el-textarea__inner:hover{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-form-item__content .el-input-group__append .el-input__wrapper,.el-form-item.is-error .el-form-item__content .el-input-group__prepend .el-input__wrapper{box-shadow:inset 0 0 0 1px transparent}.el-form-item.is-error .el-form-item__content .el-input-group__append .el-input__validateIcon,.el-form-item.is-error .el-form-item__content .el-input-group__prepend .el-input__validateIcon{display:none}.el-form-item.is-error .el-form-item__content .el-input__validateIcon{color:var(--el-color-danger)}.el-form-item--feedback .el-input__validateIcon{display:inline-flex}.el-button{--el-button-font-weight:var(--el-font-weight-primary);--el-button-border-color:var(--el-border-color);--el-button-bg-color:var(--el-fill-color-blank);--el-button-text-color:var(--el-text-color-regular);--el-button-disabled-text-color:var(--el-disabled-text-color);--el-button-disabled-bg-color:var(--el-fill-color-blank);--el-button-disabled-border-color:var(--el-border-color-light);--el-button-divide-border-color:rgba(255,255,255,.5);--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-color-primary-light-9);--el-button-hover-border-color:var(--el-color-primary-light-7);--el-button-active-text-color:var(--el-button-hover-text-color);--el-button-active-border-color:var(--el-color-primary);--el-button-active-bg-color:var(--el-button-hover-bg-color);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-hover-link-text-color:var(--el-text-color-secondary);--el-button-active-color:var(--el-text-color-primary);align-items:center;-webkit-appearance:none;background-color:var(--el-button-bg-color);border:var(--el-border);border-color:var(--el-button-border-color);box-sizing:border-box;color:var(--el-button-text-color);cursor:pointer;display:inline-flex;font-weight:var(--el-button-font-weight);height:32px;justify-content:center;line-height:1;outline:none;text-align:center;transition:.1s;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.el-button:hover{background-color:var(--el-button-hover-bg-color);border-color:var(--el-button-hover-border-color);color:var(--el-button-hover-text-color);outline:none}.el-button:active{background-color:var(--el-button-active-bg-color);border-color:var(--el-button-active-border-color);color:var(--el-button-active-text-color);outline:none}.el-button:focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px;transition:outline-offset 0s,outline 0s}.el-button>span{align-items:center;display:inline-flex}.el-button+.el-button{margin-left:12px}.el-button{border-radius:var(--el-border-radius-base);font-size:var(--el-font-size-base)}.el-button,.el-button.is-round{padding:8px 15px}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon]+span{margin-left:6px}.el-button [class*=el-icon] svg{vertical-align:bottom}.el-button.is-plain{--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-fill-color-blank);--el-button-hover-border-color:var(--el-color-primary)}.el-button.is-active{background-color:var(--el-button-active-bg-color);border-color:var(--el-button-active-border-color);color:var(--el-button-active-text-color);outline:none}.el-button.is-disabled,.el-button.is-disabled:hover{background-color:var(--el-button-disabled-bg-color);background-image:none;border-color:var(--el-button-disabled-border-color);color:var(--el-button-disabled-text-color);cursor:not-allowed}.el-button.is-loading{pointer-events:none;position:relative}.el-button.is-loading:before{background-color:var(--el-mask-color-extra-light);border-radius:inherit;bottom:-1px;content:"";left:-1px;pointer-events:none;position:absolute;right:-1px;top:-1px;z-index:1}.el-button.is-round{border-radius:var(--el-border-radius-round)}.el-button.is-circle{border-radius:50%;padding:8px;width:32px}.el-button.is-text{background-color:transparent;border:0 solid transparent;color:var(--el-button-text-color)}.el-button.is-text.is-disabled{background-color:transparent!important;color:var(--el-button-disabled-text-color)}.el-button.is-text:not(.is-disabled):hover{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled):focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px;transition:outline-offset 0s,outline 0s}.el-button.is-text:not(.is-disabled):active{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled).is-has-bg:hover{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg:active{background-color:var(--el-fill-color-dark)}.el-button__text--expand{letter-spacing:.3em;margin-right:-.3em}.el-button.is-link{background:transparent;border-color:transparent;color:var(--el-button-text-color);height:auto;padding:2px}.el-button.is-link:hover{color:var(--el-button-hover-link-text-color)}.el-button.is-link.is-disabled{background-color:transparent!important;border-color:transparent!important;color:var(--el-button-disabled-text-color)}.el-button.is-link:not(.is-disabled):active,.el-button.is-link:not(.is-disabled):hover{background-color:transparent;border-color:transparent}.el-button.is-link:not(.is-disabled):active{color:var(--el-button-active-color)}.el-button--text{background:transparent;border-color:transparent;color:var(--el-color-primary);padding-left:0;padding-right:0}.el-button--text.is-disabled{background-color:transparent!important;border-color:transparent!important;color:var(--el-button-disabled-text-color)}.el-button--text:not(.is-disabled):hover{background-color:transparent;border-color:transparent;color:var(--el-color-primary-light-3)}.el-button--text:not(.is-disabled):active{background-color:transparent;border-color:transparent;color:var(--el-color-primary-dark-2)}.el-button__link--expand{letter-spacing:.3em;margin-right:-.3em}.el-button--primary{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-primary);--el-button-border-color:var(--el-color-primary);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-active-color:var(--el-color-primary-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-primary-light-5);--el-button-hover-bg-color:var(--el-color-primary-light-3);--el-button-hover-border-color:var(--el-color-primary-light-3);--el-button-active-bg-color:var(--el-color-primary-dark-2);--el-button-active-border-color:var(--el-color-primary-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-primary-light-5);--el-button-disabled-border-color:var(--el-color-primary-light-5)}.el-button--primary.is-link,.el-button--primary.is-plain,.el-button--primary.is-text{--el-button-text-color:var(--el-color-primary);--el-button-bg-color:var(--el-color-primary-light-9);--el-button-border-color:var(--el-color-primary-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-primary);--el-button-hover-border-color:var(--el-color-primary);--el-button-active-text-color:var(--el-color-white)}.el-button--primary.is-link.is-disabled,.el-button--primary.is-link.is-disabled:active,.el-button--primary.is-link.is-disabled:focus,.el-button--primary.is-link.is-disabled:hover,.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:active,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:hover,.el-button--primary.is-text.is-disabled,.el-button--primary.is-text.is-disabled:active,.el-button--primary.is-text.is-disabled:focus,.el-button--primary.is-text.is-disabled:hover{background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary-light-8);color:var(--el-color-primary-light-5)}.el-button--success{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-success);--el-button-border-color:var(--el-color-success);--el-button-outline-color:var(--el-color-success-light-5);--el-button-active-color:var(--el-color-success-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-success-light-5);--el-button-hover-bg-color:var(--el-color-success-light-3);--el-button-hover-border-color:var(--el-color-success-light-3);--el-button-active-bg-color:var(--el-color-success-dark-2);--el-button-active-border-color:var(--el-color-success-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-success-light-5);--el-button-disabled-border-color:var(--el-color-success-light-5)}.el-button--success.is-link,.el-button--success.is-plain,.el-button--success.is-text{--el-button-text-color:var(--el-color-success);--el-button-bg-color:var(--el-color-success-light-9);--el-button-border-color:var(--el-color-success-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-success);--el-button-hover-border-color:var(--el-color-success);--el-button-active-text-color:var(--el-color-white)}.el-button--success.is-link.is-disabled,.el-button--success.is-link.is-disabled:active,.el-button--success.is-link.is-disabled:focus,.el-button--success.is-link.is-disabled:hover,.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:active,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:hover,.el-button--success.is-text.is-disabled,.el-button--success.is-text.is-disabled:active,.el-button--success.is-text.is-disabled:focus,.el-button--success.is-text.is-disabled:hover{background-color:var(--el-color-success-light-9);border-color:var(--el-color-success-light-8);color:var(--el-color-success-light-5)}.el-button--warning{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-warning);--el-button-border-color:var(--el-color-warning);--el-button-outline-color:var(--el-color-warning-light-5);--el-button-active-color:var(--el-color-warning-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-warning-light-5);--el-button-hover-bg-color:var(--el-color-warning-light-3);--el-button-hover-border-color:var(--el-color-warning-light-3);--el-button-active-bg-color:var(--el-color-warning-dark-2);--el-button-active-border-color:var(--el-color-warning-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-warning-light-5);--el-button-disabled-border-color:var(--el-color-warning-light-5)}.el-button--warning.is-link,.el-button--warning.is-plain,.el-button--warning.is-text{--el-button-text-color:var(--el-color-warning);--el-button-bg-color:var(--el-color-warning-light-9);--el-button-border-color:var(--el-color-warning-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-warning);--el-button-hover-border-color:var(--el-color-warning);--el-button-active-text-color:var(--el-color-white)}.el-button--warning.is-link.is-disabled,.el-button--warning.is-link.is-disabled:active,.el-button--warning.is-link.is-disabled:focus,.el-button--warning.is-link.is-disabled:hover,.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:active,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:hover,.el-button--warning.is-text.is-disabled,.el-button--warning.is-text.is-disabled:active,.el-button--warning.is-text.is-disabled:focus,.el-button--warning.is-text.is-disabled:hover{background-color:var(--el-color-warning-light-9);border-color:var(--el-color-warning-light-8);color:var(--el-color-warning-light-5)}.el-button--danger{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-danger);--el-button-border-color:var(--el-color-danger);--el-button-outline-color:var(--el-color-danger-light-5);--el-button-active-color:var(--el-color-danger-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-danger-light-5);--el-button-hover-bg-color:var(--el-color-danger-light-3);--el-button-hover-border-color:var(--el-color-danger-light-3);--el-button-active-bg-color:var(--el-color-danger-dark-2);--el-button-active-border-color:var(--el-color-danger-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-danger-light-5);--el-button-disabled-border-color:var(--el-color-danger-light-5)}.el-button--danger.is-link,.el-button--danger.is-plain,.el-button--danger.is-text{--el-button-text-color:var(--el-color-danger);--el-button-bg-color:var(--el-color-danger-light-9);--el-button-border-color:var(--el-color-danger-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-danger);--el-button-hover-border-color:var(--el-color-danger);--el-button-active-text-color:var(--el-color-white)}.el-button--danger.is-link.is-disabled,.el-button--danger.is-link.is-disabled:active,.el-button--danger.is-link.is-disabled:focus,.el-button--danger.is-link.is-disabled:hover,.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:active,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:hover,.el-button--danger.is-text.is-disabled,.el-button--danger.is-text.is-disabled:active,.el-button--danger.is-text.is-disabled:focus,.el-button--danger.is-text.is-disabled:hover{background-color:var(--el-color-danger-light-9);border-color:var(--el-color-danger-light-8);color:var(--el-color-danger-light-5)}.el-button--info{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-info);--el-button-border-color:var(--el-color-info);--el-button-outline-color:var(--el-color-info-light-5);--el-button-active-color:var(--el-color-info-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-info-light-5);--el-button-hover-bg-color:var(--el-color-info-light-3);--el-button-hover-border-color:var(--el-color-info-light-3);--el-button-active-bg-color:var(--el-color-info-dark-2);--el-button-active-border-color:var(--el-color-info-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-info-light-5);--el-button-disabled-border-color:var(--el-color-info-light-5)}.el-button--info.is-link,.el-button--info.is-plain,.el-button--info.is-text{--el-button-text-color:var(--el-color-info);--el-button-bg-color:var(--el-color-info-light-9);--el-button-border-color:var(--el-color-info-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-info);--el-button-hover-border-color:var(--el-color-info);--el-button-active-text-color:var(--el-color-white)}.el-button--info.is-link.is-disabled,.el-button--info.is-link.is-disabled:active,.el-button--info.is-link.is-disabled:focus,.el-button--info.is-link.is-disabled:hover,.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:active,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:hover,.el-button--info.is-text.is-disabled,.el-button--info.is-text.is-disabled:active,.el-button--info.is-text.is-disabled:focus,.el-button--info.is-text.is-disabled:hover{background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8);color:var(--el-color-info-light-5)}.el-button--large{--el-button-size:40px;height:var(--el-button-size)}.el-button--large [class*=el-icon]+span{margin-left:8px}.el-button--large{border-radius:var(--el-border-radius-base);font-size:var(--el-font-size-base);padding:12px 19px}.el-button--large.is-round{padding:12px 19px}.el-button--large.is-circle{padding:12px;width:var(--el-button-size)}.el-button--small{--el-button-size:24px;height:var(--el-button-size)}.el-button--small [class*=el-icon]+span{margin-left:4px}.el-button--small{border-radius:calc(var(--el-border-radius-base) - 1px);font-size:12px;padding:5px 11px}.el-button--small.is-round{padding:5px 11px}.el-button--small.is-circle{padding:5px;width:var(--el-button-size)}.el-card{--el-card-border-color:var(--el-border-color-light);--el-card-border-radius:4px;--el-card-padding:20px;--el-card-bg-color:var(--el-fill-color-blank);background-color:var(--el-card-bg-color);border:1px solid var(--el-card-border-color);border-radius:var(--el-card-border-radius);color:var(--el-text-color-primary);overflow:hidden;transition:var(--el-transition-duration)}.el-card.is-always-shadow,.el-card.is-hover-shadow:focus,.el-card.is-hover-shadow:hover{box-shadow:var(--el-box-shadow-light)}.el-card__header{border-bottom:1px solid var(--el-card-border-color);box-sizing:border-box;padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding)}.el-card__body{padding:var(--el-card-padding)}.el-card__footer{border-top:1px solid var(--el-card-border-color);box-sizing:border-box;padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding)}.el-row{box-sizing:border-box;display:flex;flex-wrap:wrap;position:relative}.el-row.is-justify-center{justify-content:center}.el-row.is-justify-end{justify-content:flex-end}.el-row.is-justify-space-between{justify-content:space-between}.el-row.is-justify-space-around{justify-content:space-around}.el-row.is-justify-space-evenly{justify-content:space-evenly}.el-row.is-align-top{align-items:flex-start}.el-row.is-align-middle{align-items:center}.el-row.is-align-bottom{align-items:flex-end}[class*=el-col-]{box-sizing:border-box}[class*=el-col-].is-guttered{display:block;min-height:1px}.el-col-0{flex:0 0 0%;max-width:0}.el-col-0,.el-col-0.is-guttered{display:none}.el-col-offset-0{margin-left:0}.el-col-pull-0{position:relative;right:0}.el-col-push-0{left:0;position:relative}.el-col-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-1,.el-col-1.is-guttered{display:block}.el-col-offset-1{margin-left:4.1666666667%}.el-col-pull-1{position:relative;right:4.1666666667%}.el-col-push-1{left:4.1666666667%;position:relative}.el-col-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-2,.el-col-2.is-guttered{display:block}.el-col-offset-2{margin-left:8.3333333333%}.el-col-pull-2{position:relative;right:8.3333333333%}.el-col-push-2{left:8.3333333333%;position:relative}.el-col-3{flex:0 0 12.5%;max-width:12.5%}.el-col-3,.el-col-3.is-guttered{display:block}.el-col-offset-3{margin-left:12.5%}.el-col-pull-3{position:relative;right:12.5%}.el-col-push-3{left:12.5%;position:relative}.el-col-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-4,.el-col-4.is-guttered{display:block}.el-col-offset-4{margin-left:16.6666666667%}.el-col-pull-4{position:relative;right:16.6666666667%}.el-col-push-4{left:16.6666666667%;position:relative}.el-col-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-5,.el-col-5.is-guttered{display:block}.el-col-offset-5{margin-left:20.8333333333%}.el-col-pull-5{position:relative;right:20.8333333333%}.el-col-push-5{left:20.8333333333%;position:relative}.el-col-6{flex:0 0 25%;max-width:25%}.el-col-6,.el-col-6.is-guttered{display:block}.el-col-offset-6{margin-left:25%}.el-col-pull-6{position:relative;right:25%}.el-col-push-6{left:25%;position:relative}.el-col-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-7,.el-col-7.is-guttered{display:block}.el-col-offset-7{margin-left:29.1666666667%}.el-col-pull-7{position:relative;right:29.1666666667%}.el-col-push-7{left:29.1666666667%;position:relative}.el-col-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-8,.el-col-8.is-guttered{display:block}.el-col-offset-8{margin-left:33.3333333333%}.el-col-pull-8{position:relative;right:33.3333333333%}.el-col-push-8{left:33.3333333333%;position:relative}.el-col-9{flex:0 0 37.5%;max-width:37.5%}.el-col-9,.el-col-9.is-guttered{display:block}.el-col-offset-9{margin-left:37.5%}.el-col-pull-9{position:relative;right:37.5%}.el-col-push-9{left:37.5%;position:relative}.el-col-10{flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-10,.el-col-10.is-guttered{display:block}.el-col-offset-10{margin-left:41.6666666667%}.el-col-pull-10{position:relative;right:41.6666666667%}.el-col-push-10{left:41.6666666667%;position:relative}.el-col-11{flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-11,.el-col-11.is-guttered{display:block}.el-col-offset-11{margin-left:45.8333333333%}.el-col-pull-11{position:relative;right:45.8333333333%}.el-col-push-11{left:45.8333333333%;position:relative}.el-col-12{flex:0 0 50%;max-width:50%}.el-col-12,.el-col-12.is-guttered{display:block}.el-col-offset-12{margin-left:50%}.el-col-pull-12{position:relative;right:50%}.el-col-push-12{left:50%;position:relative}.el-col-13{flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-13,.el-col-13.is-guttered{display:block}.el-col-offset-13{margin-left:54.1666666667%}.el-col-pull-13{position:relative;right:54.1666666667%}.el-col-push-13{left:54.1666666667%;position:relative}.el-col-14{flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-14,.el-col-14.is-guttered{display:block}.el-col-offset-14{margin-left:58.3333333333%}.el-col-pull-14{position:relative;right:58.3333333333%}.el-col-push-14{left:58.3333333333%;position:relative}.el-col-15{flex:0 0 62.5%;max-width:62.5%}.el-col-15,.el-col-15.is-guttered{display:block}.el-col-offset-15{margin-left:62.5%}.el-col-pull-15{position:relative;right:62.5%}.el-col-push-15{left:62.5%;position:relative}.el-col-16{flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-16,.el-col-16.is-guttered{display:block}.el-col-offset-16{margin-left:66.6666666667%}.el-col-pull-16{position:relative;right:66.6666666667%}.el-col-push-16{left:66.6666666667%;position:relative}.el-col-17{flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-17,.el-col-17.is-guttered{display:block}.el-col-offset-17{margin-left:70.8333333333%}.el-col-pull-17{position:relative;right:70.8333333333%}.el-col-push-17{left:70.8333333333%;position:relative}.el-col-18{flex:0 0 75%;max-width:75%}.el-col-18,.el-col-18.is-guttered{display:block}.el-col-offset-18{margin-left:75%}.el-col-pull-18{position:relative;right:75%}.el-col-push-18{left:75%;position:relative}.el-col-19{flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-19,.el-col-19.is-guttered{display:block}.el-col-offset-19{margin-left:79.1666666667%}.el-col-pull-19{position:relative;right:79.1666666667%}.el-col-push-19{left:79.1666666667%;position:relative}.el-col-20{flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-20,.el-col-20.is-guttered{display:block}.el-col-offset-20{margin-left:83.3333333333%}.el-col-pull-20{position:relative;right:83.3333333333%}.el-col-push-20{left:83.3333333333%;position:relative}.el-col-21{flex:0 0 87.5%;max-width:87.5%}.el-col-21,.el-col-21.is-guttered{display:block}.el-col-offset-21{margin-left:87.5%}.el-col-pull-21{position:relative;right:87.5%}.el-col-push-21{left:87.5%;position:relative}.el-col-22{flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-22,.el-col-22.is-guttered{display:block}.el-col-offset-22{margin-left:91.6666666667%}.el-col-pull-22{position:relative;right:91.6666666667%}.el-col-push-22{left:91.6666666667%;position:relative}.el-col-23{flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-23,.el-col-23.is-guttered{display:block}.el-col-offset-23{margin-left:95.8333333333%}.el-col-pull-23{position:relative;right:95.8333333333%}.el-col-push-23{left:95.8333333333%;position:relative}.el-col-24{flex:0 0 100%;max-width:100%}.el-col-24,.el-col-24.is-guttered{display:block}.el-col-offset-24{margin-left:100%}.el-col-pull-24{position:relative;right:100%}.el-col-push-24{left:100%;position:relative}@media only screen and (max-width:767px){.el-col-xs-0{display:none;flex:0 0 0%;max-width:0}.el-col-xs-0.is-guttered{display:none}.el-col-xs-offset-0{margin-left:0}.el-col-xs-pull-0{position:relative;right:0}.el-col-xs-push-0{left:0;position:relative}.el-col-xs-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-xs-1,.el-col-xs-1.is-guttered{display:block}.el-col-xs-offset-1{margin-left:4.1666666667%}.el-col-xs-pull-1{position:relative;right:4.1666666667%}.el-col-xs-push-1{left:4.1666666667%;position:relative}.el-col-xs-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-xs-2,.el-col-xs-2.is-guttered{display:block}.el-col-xs-offset-2{margin-left:8.3333333333%}.el-col-xs-pull-2{position:relative;right:8.3333333333%}.el-col-xs-push-2{left:8.3333333333%;position:relative}.el-col-xs-3{flex:0 0 12.5%;max-width:12.5%}.el-col-xs-3,.el-col-xs-3.is-guttered{display:block}.el-col-xs-offset-3{margin-left:12.5%}.el-col-xs-pull-3{position:relative;right:12.5%}.el-col-xs-push-3{left:12.5%;position:relative}.el-col-xs-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-xs-4,.el-col-xs-4.is-guttered{display:block}.el-col-xs-offset-4{margin-left:16.6666666667%}.el-col-xs-pull-4{position:relative;right:16.6666666667%}.el-col-xs-push-4{left:16.6666666667%;position:relative}.el-col-xs-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-xs-5,.el-col-xs-5.is-guttered{display:block}.el-col-xs-offset-5{margin-left:20.8333333333%}.el-col-xs-pull-5{position:relative;right:20.8333333333%}.el-col-xs-push-5{left:20.8333333333%;position:relative}.el-col-xs-6{flex:0 0 25%;max-width:25%}.el-col-xs-6,.el-col-xs-6.is-guttered{display:block}.el-col-xs-offset-6{margin-left:25%}.el-col-xs-pull-6{position:relative;right:25%}.el-col-xs-push-6{left:25%;position:relative}.el-col-xs-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-xs-7,.el-col-xs-7.is-guttered{display:block}.el-col-xs-offset-7{margin-left:29.1666666667%}.el-col-xs-pull-7{position:relative;right:29.1666666667%}.el-col-xs-push-7{left:29.1666666667%;position:relative}.el-col-xs-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-xs-8,.el-col-xs-8.is-guttered{display:block}.el-col-xs-offset-8{margin-left:33.3333333333%}.el-col-xs-pull-8{position:relative;right:33.3333333333%}.el-col-xs-push-8{left:33.3333333333%;position:relative}.el-col-xs-9{flex:0 0 37.5%;max-width:37.5%}.el-col-xs-9,.el-col-xs-9.is-guttered{display:block}.el-col-xs-offset-9{margin-left:37.5%}.el-col-xs-pull-9{position:relative;right:37.5%}.el-col-xs-push-9{left:37.5%;position:relative}.el-col-xs-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-xs-10.is-guttered{display:block}.el-col-xs-offset-10{margin-left:41.6666666667%}.el-col-xs-pull-10{position:relative;right:41.6666666667%}.el-col-xs-push-10{left:41.6666666667%;position:relative}.el-col-xs-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-xs-11.is-guttered{display:block}.el-col-xs-offset-11{margin-left:45.8333333333%}.el-col-xs-pull-11{position:relative;right:45.8333333333%}.el-col-xs-push-11{left:45.8333333333%;position:relative}.el-col-xs-12{display:block;flex:0 0 50%;max-width:50%}.el-col-xs-12.is-guttered{display:block}.el-col-xs-offset-12{margin-left:50%}.el-col-xs-pull-12{position:relative;right:50%}.el-col-xs-push-12{left:50%;position:relative}.el-col-xs-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-xs-13.is-guttered{display:block}.el-col-xs-offset-13{margin-left:54.1666666667%}.el-col-xs-pull-13{position:relative;right:54.1666666667%}.el-col-xs-push-13{left:54.1666666667%;position:relative}.el-col-xs-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-xs-14.is-guttered{display:block}.el-col-xs-offset-14{margin-left:58.3333333333%}.el-col-xs-pull-14{position:relative;right:58.3333333333%}.el-col-xs-push-14{left:58.3333333333%;position:relative}.el-col-xs-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-xs-15.is-guttered{display:block}.el-col-xs-offset-15{margin-left:62.5%}.el-col-xs-pull-15{position:relative;right:62.5%}.el-col-xs-push-15{left:62.5%;position:relative}.el-col-xs-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-xs-16.is-guttered{display:block}.el-col-xs-offset-16{margin-left:66.6666666667%}.el-col-xs-pull-16{position:relative;right:66.6666666667%}.el-col-xs-push-16{left:66.6666666667%;position:relative}.el-col-xs-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-xs-17.is-guttered{display:block}.el-col-xs-offset-17{margin-left:70.8333333333%}.el-col-xs-pull-17{position:relative;right:70.8333333333%}.el-col-xs-push-17{left:70.8333333333%;position:relative}.el-col-xs-18{display:block;flex:0 0 75%;max-width:75%}.el-col-xs-18.is-guttered{display:block}.el-col-xs-offset-18{margin-left:75%}.el-col-xs-pull-18{position:relative;right:75%}.el-col-xs-push-18{left:75%;position:relative}.el-col-xs-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-xs-19.is-guttered{display:block}.el-col-xs-offset-19{margin-left:79.1666666667%}.el-col-xs-pull-19{position:relative;right:79.1666666667%}.el-col-xs-push-19{left:79.1666666667%;position:relative}.el-col-xs-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-xs-20.is-guttered{display:block}.el-col-xs-offset-20{margin-left:83.3333333333%}.el-col-xs-pull-20{position:relative;right:83.3333333333%}.el-col-xs-push-20{left:83.3333333333%;position:relative}.el-col-xs-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-xs-21.is-guttered{display:block}.el-col-xs-offset-21{margin-left:87.5%}.el-col-xs-pull-21{position:relative;right:87.5%}.el-col-xs-push-21{left:87.5%;position:relative}.el-col-xs-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-xs-22.is-guttered{display:block}.el-col-xs-offset-22{margin-left:91.6666666667%}.el-col-xs-pull-22{position:relative;right:91.6666666667%}.el-col-xs-push-22{left:91.6666666667%;position:relative}.el-col-xs-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-xs-23.is-guttered{display:block}.el-col-xs-offset-23{margin-left:95.8333333333%}.el-col-xs-pull-23{position:relative;right:95.8333333333%}.el-col-xs-push-23{left:95.8333333333%;position:relative}.el-col-xs-24{display:block;flex:0 0 100%;max-width:100%}.el-col-xs-24.is-guttered{display:block}.el-col-xs-offset-24{margin-left:100%}.el-col-xs-pull-24{position:relative;right:100%}.el-col-xs-push-24{left:100%;position:relative}}@media only screen and (min-width:768px){.el-col-sm-0{display:none;flex:0 0 0%;max-width:0}.el-col-sm-0.is-guttered{display:none}.el-col-sm-offset-0{margin-left:0}.el-col-sm-pull-0{position:relative;right:0}.el-col-sm-push-0{left:0;position:relative}.el-col-sm-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-sm-1,.el-col-sm-1.is-guttered{display:block}.el-col-sm-offset-1{margin-left:4.1666666667%}.el-col-sm-pull-1{position:relative;right:4.1666666667%}.el-col-sm-push-1{left:4.1666666667%;position:relative}.el-col-sm-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-sm-2,.el-col-sm-2.is-guttered{display:block}.el-col-sm-offset-2{margin-left:8.3333333333%}.el-col-sm-pull-2{position:relative;right:8.3333333333%}.el-col-sm-push-2{left:8.3333333333%;position:relative}.el-col-sm-3{flex:0 0 12.5%;max-width:12.5%}.el-col-sm-3,.el-col-sm-3.is-guttered{display:block}.el-col-sm-offset-3{margin-left:12.5%}.el-col-sm-pull-3{position:relative;right:12.5%}.el-col-sm-push-3{left:12.5%;position:relative}.el-col-sm-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-sm-4,.el-col-sm-4.is-guttered{display:block}.el-col-sm-offset-4{margin-left:16.6666666667%}.el-col-sm-pull-4{position:relative;right:16.6666666667%}.el-col-sm-push-4{left:16.6666666667%;position:relative}.el-col-sm-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-sm-5,.el-col-sm-5.is-guttered{display:block}.el-col-sm-offset-5{margin-left:20.8333333333%}.el-col-sm-pull-5{position:relative;right:20.8333333333%}.el-col-sm-push-5{left:20.8333333333%;position:relative}.el-col-sm-6{flex:0 0 25%;max-width:25%}.el-col-sm-6,.el-col-sm-6.is-guttered{display:block}.el-col-sm-offset-6{margin-left:25%}.el-col-sm-pull-6{position:relative;right:25%}.el-col-sm-push-6{left:25%;position:relative}.el-col-sm-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-sm-7,.el-col-sm-7.is-guttered{display:block}.el-col-sm-offset-7{margin-left:29.1666666667%}.el-col-sm-pull-7{position:relative;right:29.1666666667%}.el-col-sm-push-7{left:29.1666666667%;position:relative}.el-col-sm-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-sm-8,.el-col-sm-8.is-guttered{display:block}.el-col-sm-offset-8{margin-left:33.3333333333%}.el-col-sm-pull-8{position:relative;right:33.3333333333%}.el-col-sm-push-8{left:33.3333333333%;position:relative}.el-col-sm-9{flex:0 0 37.5%;max-width:37.5%}.el-col-sm-9,.el-col-sm-9.is-guttered{display:block}.el-col-sm-offset-9{margin-left:37.5%}.el-col-sm-pull-9{position:relative;right:37.5%}.el-col-sm-push-9{left:37.5%;position:relative}.el-col-sm-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-sm-10.is-guttered{display:block}.el-col-sm-offset-10{margin-left:41.6666666667%}.el-col-sm-pull-10{position:relative;right:41.6666666667%}.el-col-sm-push-10{left:41.6666666667%;position:relative}.el-col-sm-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-sm-11.is-guttered{display:block}.el-col-sm-offset-11{margin-left:45.8333333333%}.el-col-sm-pull-11{position:relative;right:45.8333333333%}.el-col-sm-push-11{left:45.8333333333%;position:relative}.el-col-sm-12{display:block;flex:0 0 50%;max-width:50%}.el-col-sm-12.is-guttered{display:block}.el-col-sm-offset-12{margin-left:50%}.el-col-sm-pull-12{position:relative;right:50%}.el-col-sm-push-12{left:50%;position:relative}.el-col-sm-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-sm-13.is-guttered{display:block}.el-col-sm-offset-13{margin-left:54.1666666667%}.el-col-sm-pull-13{position:relative;right:54.1666666667%}.el-col-sm-push-13{left:54.1666666667%;position:relative}.el-col-sm-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-sm-14.is-guttered{display:block}.el-col-sm-offset-14{margin-left:58.3333333333%}.el-col-sm-pull-14{position:relative;right:58.3333333333%}.el-col-sm-push-14{left:58.3333333333%;position:relative}.el-col-sm-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-sm-15.is-guttered{display:block}.el-col-sm-offset-15{margin-left:62.5%}.el-col-sm-pull-15{position:relative;right:62.5%}.el-col-sm-push-15{left:62.5%;position:relative}.el-col-sm-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-sm-16.is-guttered{display:block}.el-col-sm-offset-16{margin-left:66.6666666667%}.el-col-sm-pull-16{position:relative;right:66.6666666667%}.el-col-sm-push-16{left:66.6666666667%;position:relative}.el-col-sm-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-sm-17.is-guttered{display:block}.el-col-sm-offset-17{margin-left:70.8333333333%}.el-col-sm-pull-17{position:relative;right:70.8333333333%}.el-col-sm-push-17{left:70.8333333333%;position:relative}.el-col-sm-18{display:block;flex:0 0 75%;max-width:75%}.el-col-sm-18.is-guttered{display:block}.el-col-sm-offset-18{margin-left:75%}.el-col-sm-pull-18{position:relative;right:75%}.el-col-sm-push-18{left:75%;position:relative}.el-col-sm-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-sm-19.is-guttered{display:block}.el-col-sm-offset-19{margin-left:79.1666666667%}.el-col-sm-pull-19{position:relative;right:79.1666666667%}.el-col-sm-push-19{left:79.1666666667%;position:relative}.el-col-sm-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-sm-20.is-guttered{display:block}.el-col-sm-offset-20{margin-left:83.3333333333%}.el-col-sm-pull-20{position:relative;right:83.3333333333%}.el-col-sm-push-20{left:83.3333333333%;position:relative}.el-col-sm-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-sm-21.is-guttered{display:block}.el-col-sm-offset-21{margin-left:87.5%}.el-col-sm-pull-21{position:relative;right:87.5%}.el-col-sm-push-21{left:87.5%;position:relative}.el-col-sm-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-sm-22.is-guttered{display:block}.el-col-sm-offset-22{margin-left:91.6666666667%}.el-col-sm-pull-22{position:relative;right:91.6666666667%}.el-col-sm-push-22{left:91.6666666667%;position:relative}.el-col-sm-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-sm-23.is-guttered{display:block}.el-col-sm-offset-23{margin-left:95.8333333333%}.el-col-sm-pull-23{position:relative;right:95.8333333333%}.el-col-sm-push-23{left:95.8333333333%;position:relative}.el-col-sm-24{display:block;flex:0 0 100%;max-width:100%}.el-col-sm-24.is-guttered{display:block}.el-col-sm-offset-24{margin-left:100%}.el-col-sm-pull-24{position:relative;right:100%}.el-col-sm-push-24{left:100%;position:relative}}@media only screen and (min-width:992px){.el-col-md-0{display:none;flex:0 0 0%;max-width:0}.el-col-md-0.is-guttered{display:none}.el-col-md-offset-0{margin-left:0}.el-col-md-pull-0{position:relative;right:0}.el-col-md-push-0{left:0;position:relative}.el-col-md-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-md-1,.el-col-md-1.is-guttered{display:block}.el-col-md-offset-1{margin-left:4.1666666667%}.el-col-md-pull-1{position:relative;right:4.1666666667%}.el-col-md-push-1{left:4.1666666667%;position:relative}.el-col-md-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-md-2,.el-col-md-2.is-guttered{display:block}.el-col-md-offset-2{margin-left:8.3333333333%}.el-col-md-pull-2{position:relative;right:8.3333333333%}.el-col-md-push-2{left:8.3333333333%;position:relative}.el-col-md-3{flex:0 0 12.5%;max-width:12.5%}.el-col-md-3,.el-col-md-3.is-guttered{display:block}.el-col-md-offset-3{margin-left:12.5%}.el-col-md-pull-3{position:relative;right:12.5%}.el-col-md-push-3{left:12.5%;position:relative}.el-col-md-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-md-4,.el-col-md-4.is-guttered{display:block}.el-col-md-offset-4{margin-left:16.6666666667%}.el-col-md-pull-4{position:relative;right:16.6666666667%}.el-col-md-push-4{left:16.6666666667%;position:relative}.el-col-md-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-md-5,.el-col-md-5.is-guttered{display:block}.el-col-md-offset-5{margin-left:20.8333333333%}.el-col-md-pull-5{position:relative;right:20.8333333333%}.el-col-md-push-5{left:20.8333333333%;position:relative}.el-col-md-6{flex:0 0 25%;max-width:25%}.el-col-md-6,.el-col-md-6.is-guttered{display:block}.el-col-md-offset-6{margin-left:25%}.el-col-md-pull-6{position:relative;right:25%}.el-col-md-push-6{left:25%;position:relative}.el-col-md-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-md-7,.el-col-md-7.is-guttered{display:block}.el-col-md-offset-7{margin-left:29.1666666667%}.el-col-md-pull-7{position:relative;right:29.1666666667%}.el-col-md-push-7{left:29.1666666667%;position:relative}.el-col-md-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-md-8,.el-col-md-8.is-guttered{display:block}.el-col-md-offset-8{margin-left:33.3333333333%}.el-col-md-pull-8{position:relative;right:33.3333333333%}.el-col-md-push-8{left:33.3333333333%;position:relative}.el-col-md-9{flex:0 0 37.5%;max-width:37.5%}.el-col-md-9,.el-col-md-9.is-guttered{display:block}.el-col-md-offset-9{margin-left:37.5%}.el-col-md-pull-9{position:relative;right:37.5%}.el-col-md-push-9{left:37.5%;position:relative}.el-col-md-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-md-10.is-guttered{display:block}.el-col-md-offset-10{margin-left:41.6666666667%}.el-col-md-pull-10{position:relative;right:41.6666666667%}.el-col-md-push-10{left:41.6666666667%;position:relative}.el-col-md-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-md-11.is-guttered{display:block}.el-col-md-offset-11{margin-left:45.8333333333%}.el-col-md-pull-11{position:relative;right:45.8333333333%}.el-col-md-push-11{left:45.8333333333%;position:relative}.el-col-md-12{display:block;flex:0 0 50%;max-width:50%}.el-col-md-12.is-guttered{display:block}.el-col-md-offset-12{margin-left:50%}.el-col-md-pull-12{position:relative;right:50%}.el-col-md-push-12{left:50%;position:relative}.el-col-md-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-md-13.is-guttered{display:block}.el-col-md-offset-13{margin-left:54.1666666667%}.el-col-md-pull-13{position:relative;right:54.1666666667%}.el-col-md-push-13{left:54.1666666667%;position:relative}.el-col-md-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-md-14.is-guttered{display:block}.el-col-md-offset-14{margin-left:58.3333333333%}.el-col-md-pull-14{position:relative;right:58.3333333333%}.el-col-md-push-14{left:58.3333333333%;position:relative}.el-col-md-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-md-15.is-guttered{display:block}.el-col-md-offset-15{margin-left:62.5%}.el-col-md-pull-15{position:relative;right:62.5%}.el-col-md-push-15{left:62.5%;position:relative}.el-col-md-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-md-16.is-guttered{display:block}.el-col-md-offset-16{margin-left:66.6666666667%}.el-col-md-pull-16{position:relative;right:66.6666666667%}.el-col-md-push-16{left:66.6666666667%;position:relative}.el-col-md-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-md-17.is-guttered{display:block}.el-col-md-offset-17{margin-left:70.8333333333%}.el-col-md-pull-17{position:relative;right:70.8333333333%}.el-col-md-push-17{left:70.8333333333%;position:relative}.el-col-md-18{display:block;flex:0 0 75%;max-width:75%}.el-col-md-18.is-guttered{display:block}.el-col-md-offset-18{margin-left:75%}.el-col-md-pull-18{position:relative;right:75%}.el-col-md-push-18{left:75%;position:relative}.el-col-md-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-md-19.is-guttered{display:block}.el-col-md-offset-19{margin-left:79.1666666667%}.el-col-md-pull-19{position:relative;right:79.1666666667%}.el-col-md-push-19{left:79.1666666667%;position:relative}.el-col-md-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-md-20.is-guttered{display:block}.el-col-md-offset-20{margin-left:83.3333333333%}.el-col-md-pull-20{position:relative;right:83.3333333333%}.el-col-md-push-20{left:83.3333333333%;position:relative}.el-col-md-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-md-21.is-guttered{display:block}.el-col-md-offset-21{margin-left:87.5%}.el-col-md-pull-21{position:relative;right:87.5%}.el-col-md-push-21{left:87.5%;position:relative}.el-col-md-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-md-22.is-guttered{display:block}.el-col-md-offset-22{margin-left:91.6666666667%}.el-col-md-pull-22{position:relative;right:91.6666666667%}.el-col-md-push-22{left:91.6666666667%;position:relative}.el-col-md-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-md-23.is-guttered{display:block}.el-col-md-offset-23{margin-left:95.8333333333%}.el-col-md-pull-23{position:relative;right:95.8333333333%}.el-col-md-push-23{left:95.8333333333%;position:relative}.el-col-md-24{display:block;flex:0 0 100%;max-width:100%}.el-col-md-24.is-guttered{display:block}.el-col-md-offset-24{margin-left:100%}.el-col-md-pull-24{position:relative;right:100%}.el-col-md-push-24{left:100%;position:relative}}@media only screen and (min-width:1200px){.el-col-lg-0{display:none;flex:0 0 0%;max-width:0}.el-col-lg-0.is-guttered{display:none}.el-col-lg-offset-0{margin-left:0}.el-col-lg-pull-0{position:relative;right:0}.el-col-lg-push-0{left:0;position:relative}.el-col-lg-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-lg-1,.el-col-lg-1.is-guttered{display:block}.el-col-lg-offset-1{margin-left:4.1666666667%}.el-col-lg-pull-1{position:relative;right:4.1666666667%}.el-col-lg-push-1{left:4.1666666667%;position:relative}.el-col-lg-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-lg-2,.el-col-lg-2.is-guttered{display:block}.el-col-lg-offset-2{margin-left:8.3333333333%}.el-col-lg-pull-2{position:relative;right:8.3333333333%}.el-col-lg-push-2{left:8.3333333333%;position:relative}.el-col-lg-3{flex:0 0 12.5%;max-width:12.5%}.el-col-lg-3,.el-col-lg-3.is-guttered{display:block}.el-col-lg-offset-3{margin-left:12.5%}.el-col-lg-pull-3{position:relative;right:12.5%}.el-col-lg-push-3{left:12.5%;position:relative}.el-col-lg-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-lg-4,.el-col-lg-4.is-guttered{display:block}.el-col-lg-offset-4{margin-left:16.6666666667%}.el-col-lg-pull-4{position:relative;right:16.6666666667%}.el-col-lg-push-4{left:16.6666666667%;position:relative}.el-col-lg-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-lg-5,.el-col-lg-5.is-guttered{display:block}.el-col-lg-offset-5{margin-left:20.8333333333%}.el-col-lg-pull-5{position:relative;right:20.8333333333%}.el-col-lg-push-5{left:20.8333333333%;position:relative}.el-col-lg-6{flex:0 0 25%;max-width:25%}.el-col-lg-6,.el-col-lg-6.is-guttered{display:block}.el-col-lg-offset-6{margin-left:25%}.el-col-lg-pull-6{position:relative;right:25%}.el-col-lg-push-6{left:25%;position:relative}.el-col-lg-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-lg-7,.el-col-lg-7.is-guttered{display:block}.el-col-lg-offset-7{margin-left:29.1666666667%}.el-col-lg-pull-7{position:relative;right:29.1666666667%}.el-col-lg-push-7{left:29.1666666667%;position:relative}.el-col-lg-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-lg-8,.el-col-lg-8.is-guttered{display:block}.el-col-lg-offset-8{margin-left:33.3333333333%}.el-col-lg-pull-8{position:relative;right:33.3333333333%}.el-col-lg-push-8{left:33.3333333333%;position:relative}.el-col-lg-9{flex:0 0 37.5%;max-width:37.5%}.el-col-lg-9,.el-col-lg-9.is-guttered{display:block}.el-col-lg-offset-9{margin-left:37.5%}.el-col-lg-pull-9{position:relative;right:37.5%}.el-col-lg-push-9{left:37.5%;position:relative}.el-col-lg-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-lg-10.is-guttered{display:block}.el-col-lg-offset-10{margin-left:41.6666666667%}.el-col-lg-pull-10{position:relative;right:41.6666666667%}.el-col-lg-push-10{left:41.6666666667%;position:relative}.el-col-lg-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-lg-11.is-guttered{display:block}.el-col-lg-offset-11{margin-left:45.8333333333%}.el-col-lg-pull-11{position:relative;right:45.8333333333%}.el-col-lg-push-11{left:45.8333333333%;position:relative}.el-col-lg-12{display:block;flex:0 0 50%;max-width:50%}.el-col-lg-12.is-guttered{display:block}.el-col-lg-offset-12{margin-left:50%}.el-col-lg-pull-12{position:relative;right:50%}.el-col-lg-push-12{left:50%;position:relative}.el-col-lg-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-lg-13.is-guttered{display:block}.el-col-lg-offset-13{margin-left:54.1666666667%}.el-col-lg-pull-13{position:relative;right:54.1666666667%}.el-col-lg-push-13{left:54.1666666667%;position:relative}.el-col-lg-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-lg-14.is-guttered{display:block}.el-col-lg-offset-14{margin-left:58.3333333333%}.el-col-lg-pull-14{position:relative;right:58.3333333333%}.el-col-lg-push-14{left:58.3333333333%;position:relative}.el-col-lg-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-lg-15.is-guttered{display:block}.el-col-lg-offset-15{margin-left:62.5%}.el-col-lg-pull-15{position:relative;right:62.5%}.el-col-lg-push-15{left:62.5%;position:relative}.el-col-lg-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-lg-16.is-guttered{display:block}.el-col-lg-offset-16{margin-left:66.6666666667%}.el-col-lg-pull-16{position:relative;right:66.6666666667%}.el-col-lg-push-16{left:66.6666666667%;position:relative}.el-col-lg-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-lg-17.is-guttered{display:block}.el-col-lg-offset-17{margin-left:70.8333333333%}.el-col-lg-pull-17{position:relative;right:70.8333333333%}.el-col-lg-push-17{left:70.8333333333%;position:relative}.el-col-lg-18{display:block;flex:0 0 75%;max-width:75%}.el-col-lg-18.is-guttered{display:block}.el-col-lg-offset-18{margin-left:75%}.el-col-lg-pull-18{position:relative;right:75%}.el-col-lg-push-18{left:75%;position:relative}.el-col-lg-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-lg-19.is-guttered{display:block}.el-col-lg-offset-19{margin-left:79.1666666667%}.el-col-lg-pull-19{position:relative;right:79.1666666667%}.el-col-lg-push-19{left:79.1666666667%;position:relative}.el-col-lg-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-lg-20.is-guttered{display:block}.el-col-lg-offset-20{margin-left:83.3333333333%}.el-col-lg-pull-20{position:relative;right:83.3333333333%}.el-col-lg-push-20{left:83.3333333333%;position:relative}.el-col-lg-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-lg-21.is-guttered{display:block}.el-col-lg-offset-21{margin-left:87.5%}.el-col-lg-pull-21{position:relative;right:87.5%}.el-col-lg-push-21{left:87.5%;position:relative}.el-col-lg-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-lg-22.is-guttered{display:block}.el-col-lg-offset-22{margin-left:91.6666666667%}.el-col-lg-pull-22{position:relative;right:91.6666666667%}.el-col-lg-push-22{left:91.6666666667%;position:relative}.el-col-lg-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-lg-23.is-guttered{display:block}.el-col-lg-offset-23{margin-left:95.8333333333%}.el-col-lg-pull-23{position:relative;right:95.8333333333%}.el-col-lg-push-23{left:95.8333333333%;position:relative}.el-col-lg-24{display:block;flex:0 0 100%;max-width:100%}.el-col-lg-24.is-guttered{display:block}.el-col-lg-offset-24{margin-left:100%}.el-col-lg-pull-24{position:relative;right:100%}.el-col-lg-push-24{left:100%;position:relative}}@media only screen and (min-width:1920px){.el-col-xl-0{display:none;flex:0 0 0%;max-width:0}.el-col-xl-0.is-guttered{display:none}.el-col-xl-offset-0{margin-left:0}.el-col-xl-pull-0{position:relative;right:0}.el-col-xl-push-0{left:0;position:relative}.el-col-xl-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-xl-1,.el-col-xl-1.is-guttered{display:block}.el-col-xl-offset-1{margin-left:4.1666666667%}.el-col-xl-pull-1{position:relative;right:4.1666666667%}.el-col-xl-push-1{left:4.1666666667%;position:relative}.el-col-xl-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-xl-2,.el-col-xl-2.is-guttered{display:block}.el-col-xl-offset-2{margin-left:8.3333333333%}.el-col-xl-pull-2{position:relative;right:8.3333333333%}.el-col-xl-push-2{left:8.3333333333%;position:relative}.el-col-xl-3{flex:0 0 12.5%;max-width:12.5%}.el-col-xl-3,.el-col-xl-3.is-guttered{display:block}.el-col-xl-offset-3{margin-left:12.5%}.el-col-xl-pull-3{position:relative;right:12.5%}.el-col-xl-push-3{left:12.5%;position:relative}.el-col-xl-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-xl-4,.el-col-xl-4.is-guttered{display:block}.el-col-xl-offset-4{margin-left:16.6666666667%}.el-col-xl-pull-4{position:relative;right:16.6666666667%}.el-col-xl-push-4{left:16.6666666667%;position:relative}.el-col-xl-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-xl-5,.el-col-xl-5.is-guttered{display:block}.el-col-xl-offset-5{margin-left:20.8333333333%}.el-col-xl-pull-5{position:relative;right:20.8333333333%}.el-col-xl-push-5{left:20.8333333333%;position:relative}.el-col-xl-6{flex:0 0 25%;max-width:25%}.el-col-xl-6,.el-col-xl-6.is-guttered{display:block}.el-col-xl-offset-6{margin-left:25%}.el-col-xl-pull-6{position:relative;right:25%}.el-col-xl-push-6{left:25%;position:relative}.el-col-xl-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-xl-7,.el-col-xl-7.is-guttered{display:block}.el-col-xl-offset-7{margin-left:29.1666666667%}.el-col-xl-pull-7{position:relative;right:29.1666666667%}.el-col-xl-push-7{left:29.1666666667%;position:relative}.el-col-xl-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-xl-8,.el-col-xl-8.is-guttered{display:block}.el-col-xl-offset-8{margin-left:33.3333333333%}.el-col-xl-pull-8{position:relative;right:33.3333333333%}.el-col-xl-push-8{left:33.3333333333%;position:relative}.el-col-xl-9{flex:0 0 37.5%;max-width:37.5%}.el-col-xl-9,.el-col-xl-9.is-guttered{display:block}.el-col-xl-offset-9{margin-left:37.5%}.el-col-xl-pull-9{position:relative;right:37.5%}.el-col-xl-push-9{left:37.5%;position:relative}.el-col-xl-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-xl-10.is-guttered{display:block}.el-col-xl-offset-10{margin-left:41.6666666667%}.el-col-xl-pull-10{position:relative;right:41.6666666667%}.el-col-xl-push-10{left:41.6666666667%;position:relative}.el-col-xl-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-xl-11.is-guttered{display:block}.el-col-xl-offset-11{margin-left:45.8333333333%}.el-col-xl-pull-11{position:relative;right:45.8333333333%}.el-col-xl-push-11{left:45.8333333333%;position:relative}.el-col-xl-12{display:block;flex:0 0 50%;max-width:50%}.el-col-xl-12.is-guttered{display:block}.el-col-xl-offset-12{margin-left:50%}.el-col-xl-pull-12{position:relative;right:50%}.el-col-xl-push-12{left:50%;position:relative}.el-col-xl-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-xl-13.is-guttered{display:block}.el-col-xl-offset-13{margin-left:54.1666666667%}.el-col-xl-pull-13{position:relative;right:54.1666666667%}.el-col-xl-push-13{left:54.1666666667%;position:relative}.el-col-xl-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-xl-14.is-guttered{display:block}.el-col-xl-offset-14{margin-left:58.3333333333%}.el-col-xl-pull-14{position:relative;right:58.3333333333%}.el-col-xl-push-14{left:58.3333333333%;position:relative}.el-col-xl-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-xl-15.is-guttered{display:block}.el-col-xl-offset-15{margin-left:62.5%}.el-col-xl-pull-15{position:relative;right:62.5%}.el-col-xl-push-15{left:62.5%;position:relative}.el-col-xl-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-xl-16.is-guttered{display:block}.el-col-xl-offset-16{margin-left:66.6666666667%}.el-col-xl-pull-16{position:relative;right:66.6666666667%}.el-col-xl-push-16{left:66.6666666667%;position:relative}.el-col-xl-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-xl-17.is-guttered{display:block}.el-col-xl-offset-17{margin-left:70.8333333333%}.el-col-xl-pull-17{position:relative;right:70.8333333333%}.el-col-xl-push-17{left:70.8333333333%;position:relative}.el-col-xl-18{display:block;flex:0 0 75%;max-width:75%}.el-col-xl-18.is-guttered{display:block}.el-col-xl-offset-18{margin-left:75%}.el-col-xl-pull-18{position:relative;right:75%}.el-col-xl-push-18{left:75%;position:relative}.el-col-xl-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-xl-19.is-guttered{display:block}.el-col-xl-offset-19{margin-left:79.1666666667%}.el-col-xl-pull-19{position:relative;right:79.1666666667%}.el-col-xl-push-19{left:79.1666666667%;position:relative}.el-col-xl-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-xl-20.is-guttered{display:block}.el-col-xl-offset-20{margin-left:83.3333333333%}.el-col-xl-pull-20{position:relative;right:83.3333333333%}.el-col-xl-push-20{left:83.3333333333%;position:relative}.el-col-xl-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-xl-21.is-guttered{display:block}.el-col-xl-offset-21{margin-left:87.5%}.el-col-xl-pull-21{position:relative;right:87.5%}.el-col-xl-push-21{left:87.5%;position:relative}.el-col-xl-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-xl-22.is-guttered{display:block}.el-col-xl-offset-22{margin-left:91.6666666667%}.el-col-xl-pull-22{position:relative;right:91.6666666667%}.el-col-xl-push-22{left:91.6666666667%;position:relative}.el-col-xl-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-xl-23.is-guttered{display:block}.el-col-xl-offset-23{margin-left:95.8333333333%}.el-col-xl-pull-23{position:relative;right:95.8333333333%}.el-col-xl-push-23{left:95.8333333333%;position:relative}.el-col-xl-24{display:block;flex:0 0 100%;max-width:100%}.el-col-xl-24.is-guttered{display:block}.el-col-xl-offset-24{margin-left:100%}.el-col-xl-pull-24{position:relative;right:100%}.el-col-xl-push-24{left:100%;position:relative}}.el-progress{align-items:center;display:flex;line-height:1;position:relative}.el-progress__text{color:var(--el-text-color-regular);font-size:14px;line-height:1;margin-left:5px;min-width:50px}.el-progress__text i{display:block;vertical-align:middle}.el-progress--circle,.el-progress--dashboard{display:inline-block}.el-progress--circle .el-progress__text,.el-progress--dashboard .el-progress__text{left:0;margin:0;position:absolute;text-align:center;top:50%;transform:translateY(-50%);width:100%}.el-progress--circle .el-progress__text i,.el-progress--dashboard .el-progress__text i{display:inline-block;vertical-align:middle}.el-progress--without-text .el-progress__text{display:none}.el-progress--without-text .el-progress-bar{display:block;margin-right:0;padding-right:0}.el-progress--text-inside .el-progress-bar{margin-right:0;padding-right:0}.el-progress.is-success .el-progress-bar__inner{background-color:var(--el-color-success)}.el-progress.is-success .el-progress__text{color:var(--el-color-success)}.el-progress.is-warning .el-progress-bar__inner{background-color:var(--el-color-warning)}.el-progress.is-warning .el-progress__text{color:var(--el-color-warning)}.el-progress.is-exception .el-progress-bar__inner{background-color:var(--el-color-danger)}.el-progress.is-exception .el-progress__text{color:var(--el-color-danger)}.el-progress-bar{box-sizing:border-box;flex-grow:1}.el-progress-bar__outer{background-color:var(--el-border-color-lighter);border-radius:100px;height:6px;overflow:hidden;position:relative;vertical-align:middle}.el-progress-bar__inner{background-color:var(--el-color-primary);border-radius:100px;height:100%;left:0;line-height:1;position:absolute;text-align:right;top:0;transition:width .6s ease;white-space:nowrap}.el-progress-bar__inner:after{content:"";display:inline-block;height:100%;vertical-align:middle}.el-progress-bar__inner--indeterminate{animation:indeterminate 3s infinite;transform:translateZ(0)}.el-progress-bar__inner--striped{background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0,transparent 50%,rgba(0,0,0,.1) 0,rgba(0,0,0,.1) 75%,transparent 0,transparent);background-size:1.25em 1.25em}.el-progress-bar__inner--striped.el-progress-bar__inner--striped-flow{animation:striped-flow 3s linear infinite}.el-progress-bar__innerText{color:#fff;display:inline-block;font-size:12px;margin:0 5px;vertical-align:middle}@keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@keyframes indeterminate{0%{left:-100%}to{left:100%}}@keyframes striped-flow{0%{background-position:-100%}to{background-position:100%}}.view-images[data-v-02b183d9],.gen-text[data-v-02b183d9]{display:flex;align-items:center;justify-content:center;color:var(--el-color-info);font-weight:500;margin-top:8px;gap:8px}.gen-text[data-v-02b183d9]{font-weight:400}.view-images[data-v-02b183d9]:hover{cursor:pointer;text-decoration:underline}.el-slider{--el-slider-main-bg-color:var(--el-color-primary);--el-slider-runway-bg-color:var(--el-border-color-light);--el-slider-stop-bg-color:var(--el-color-white);--el-slider-disabled-color:var(--el-text-color-placeholder);--el-slider-border-radius:3px;--el-slider-height:6px;--el-slider-button-size:20px;--el-slider-button-wrapper-size:36px;--el-slider-button-wrapper-offset:-15px;align-items:center;display:flex;height:32px;width:100%}.el-slider__runway{background-color:var(--el-slider-runway-bg-color);border-radius:var(--el-slider-border-radius);cursor:pointer;flex:1;height:var(--el-slider-height);position:relative}.el-slider__runway.show-input{margin-right:30px;width:auto}.el-slider__runway.is-disabled{cursor:default}.el-slider__runway.is-disabled .el-slider__bar{background-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button{border-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button-wrapper.dragging,.el-slider__runway.is-disabled .el-slider__button-wrapper.hover,.el-slider__runway.is-disabled .el-slider__button-wrapper:hover{cursor:not-allowed}.el-slider__runway.is-disabled .el-slider__button.dragging,.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button:hover{transform:scale(1)}.el-slider__runway.is-disabled .el-slider__button.dragging,.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button:hover{cursor:not-allowed}.el-slider__input{flex-shrink:0;width:130px}.el-slider__bar{background-color:var(--el-slider-main-bg-color);border-bottom-left-radius:var(--el-slider-border-radius);border-top-left-radius:var(--el-slider-border-radius);height:var(--el-slider-height);position:absolute}.el-slider__button-wrapper{background-color:transparent;height:var(--el-slider-button-wrapper-size);line-height:normal;outline:none;position:absolute;text-align:center;top:var(--el-slider-button-wrapper-offset);transform:translate(-50%);-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--el-slider-button-wrapper-size);z-index:1}.el-slider__button-wrapper:after{content:"";display:inline-block;height:100%;vertical-align:middle}.el-slider__button-wrapper.hover,.el-slider__button-wrapper:hover{cursor:grab}.el-slider__button-wrapper.dragging{cursor:grabbing}.el-slider__button{background-color:var(--el-color-white);border:2px solid var(--el-slider-main-bg-color);border-radius:50%;box-sizing:border-box;display:inline-block;height:var(--el-slider-button-size);transition:var(--el-transition-duration-fast);-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:var(--el-slider-button-size)}.el-slider__button.dragging,.el-slider__button.hover,.el-slider__button:hover{transform:scale(1.2)}.el-slider__button.hover,.el-slider__button:hover{cursor:grab}.el-slider__button.dragging{cursor:grabbing}.el-slider__stop{background-color:var(--el-slider-stop-bg-color);border-radius:var(--el-border-radius-circle);height:var(--el-slider-height);position:absolute;transform:translate(-50%);width:var(--el-slider-height)}.el-slider__marks{height:100%;left:12px;top:0;width:18px}.el-slider__marks-text{color:var(--el-color-info);font-size:14px;margin-top:15px;position:absolute;transform:translate(-50%);white-space:pre}.el-slider.is-vertical{display:inline-flex;flex:0;height:100%;position:relative;width:auto}.el-slider.is-vertical .el-slider__runway{height:100%;margin:0 16px;width:var(--el-slider-height)}.el-slider.is-vertical .el-slider__bar{border-radius:0 0 3px 3px;height:auto;width:var(--el-slider-height)}.el-slider.is-vertical .el-slider__button-wrapper{left:var(--el-slider-button-wrapper-offset);top:auto;transform:translateY(50%)}.el-slider.is-vertical .el-slider__stop{transform:translateY(50%)}.el-slider.is-vertical .el-slider__marks-text{left:15px;margin-top:0;transform:translateY(50%)}.el-slider--large{height:40px}.el-slider--small{height:24px}.el-textarea{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%;display:inline-block;font-size:var(--el-font-size-base);position:relative;vertical-align:bottom;width:100%}.el-textarea__inner{-webkit-appearance:none;background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;border:none;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;box-sizing:border-box;color:var(--el-input-text-color,var(--el-text-color-regular));display:block;font-family:inherit;font-size:inherit;line-height:1.5;padding:5px 11px;position:relative;resize:vertical;transition:var(--el-transition-box-shadow);width:100%}.el-textarea__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-textarea__inner:focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset;outline:none}.el-textarea .el-input__count{background:var(--el-fill-color-blank);bottom:5px;color:var(--el-color-info);font-size:12px;line-height:14px;position:absolute;right:10px}.el-textarea.is-disabled .el-textarea__inner{background-color:var(--el-disabled-bg-color);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset;color:var(--el-disabled-text-color);cursor:not-allowed}.el-textarea.is-disabled .el-textarea__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-disabled .el-textarea__inner::placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-exceed .el-textarea__inner{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-textarea.is-exceed .el-input__count{color:var(--el-color-danger)}.el-input{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%;--el-input-height:var(--el-component-size);box-sizing:border-box;display:inline-flex;font-size:var(--el-font-size-base);line-height:var(--el-input-height);position:relative;vertical-align:middle;width:var(--el-input-width)}.el-input::-webkit-scrollbar{width:6px;z-index:11}.el-input::-webkit-scrollbar:horizontal{height:6px}.el-input::-webkit-scrollbar-thumb{background:var(--el-text-color-disabled);border-radius:5px;width:6px}.el-input::-webkit-scrollbar-corner,.el-input::-webkit-scrollbar-track{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track-piece{background:var(--el-fill-color-blank);width:6px}.el-input .el-input__clear,.el-input .el-input__password{color:var(--el-input-icon-color);cursor:pointer;font-size:14px}.el-input .el-input__clear:hover,.el-input .el-input__password:hover{color:var(--el-input-clear-hover-color)}.el-input .el-input__count{align-items:center;color:var(--el-color-info);display:inline-flex;font-size:12px;height:100%}.el-input .el-input__count .el-input__count-inner{background:var(--el-fill-color-blank);display:inline-block;line-height:normal;padding-left:8px}.el-input__wrapper{align-items:center;background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;cursor:text;display:inline-flex;flex-grow:1;justify-content:center;padding:1px 11px;transform:translateZ(0);transition:var(--el-transition-box-shadow)}.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-input{--el-input-inner-height:calc(var(--el-input-height, 32px) - 2px)}.el-input__inner{-webkit-appearance:none;background:none;border:none;box-sizing:border-box;color:var(--el-input-text-color,var(--el-text-color-regular));flex-grow:1;font-size:inherit;height:var(--el-input-inner-height);line-height:var(--el-input-inner-height);outline:none;padding:0;width:100%}.el-input__inner:focus{outline:none}.el-input__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner[type=password]::-ms-reveal{display:none}.el-input__inner[type=number]{line-height:1}.el-input__prefix{color:var(--el-input-icon-color,var(--el-text-color-placeholder));display:inline-flex;flex-shrink:0;flex-wrap:nowrap;height:100%;line-height:var(--el-input-inner-height);pointer-events:none;text-align:center;transition:all var(--el-transition-duration);white-space:nowrap}.el-input__prefix-inner{align-items:center;display:inline-flex;justify-content:center;pointer-events:all}.el-input__prefix-inner>:last-child{margin-right:8px}.el-input__prefix-inner>:first-child,.el-input__prefix-inner>:first-child.el-input__icon{margin-left:0}.el-input__suffix{color:var(--el-input-icon-color,var(--el-text-color-placeholder));display:inline-flex;flex-shrink:0;flex-wrap:nowrap;height:100%;line-height:var(--el-input-inner-height);pointer-events:none;text-align:center;transition:all var(--el-transition-duration);white-space:nowrap}.el-input__suffix-inner{align-items:center;display:inline-flex;justify-content:center;pointer-events:all}.el-input__suffix-inner>:first-child{margin-left:8px}.el-input .el-input__icon{align-items:center;display:flex;height:inherit;justify-content:center;line-height:inherit;margin-left:8px;transition:all var(--el-transition-duration)}.el-input__validateIcon{pointer-events:none}.el-input.is-active .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-color, ) inset}.el-input.is-disabled{cursor:not-allowed}.el-input.is-disabled .el-input__wrapper{background-color:var(--el-disabled-bg-color);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset;cursor:not-allowed}.el-input.is-disabled .el-input__inner{color:var(--el-disabled-text-color);-webkit-text-fill-color:var(--el-disabled-text-color);cursor:not-allowed}.el-input.is-disabled .el-input__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__inner::placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__icon{cursor:not-allowed}.el-input.is-disabled .el-input__prefix-inner,.el-input.is-disabled .el-input__suffix-inner{pointer-events:none}.el-input.is-exceed .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-input.is-exceed .el-input__suffix .el-input__count{color:var(--el-color-danger)}.el-input--large{--el-input-height:var(--el-component-size-large);font-size:14px}.el-input--large .el-input__wrapper{padding:1px 15px}.el-input--large{--el-input-inner-height:calc(var(--el-input-height, 40px) - 2px)}.el-input--small{--el-input-height:var(--el-component-size-small);font-size:12px}.el-input--small .el-input__wrapper{padding:1px 7px}.el-input--small{--el-input-inner-height:calc(var(--el-input-height, 24px) - 2px)}.el-input-group{align-items:stretch;display:inline-flex;width:100%}.el-input-group__append,.el-input-group__prepend{align-items:center;background-color:var(--el-fill-color-light);border-radius:var(--el-input-border-radius);color:var(--el-color-info);display:inline-flex;justify-content:center;min-height:100%;padding:0 20px;position:relative;white-space:nowrap}.el-input-group__append:focus,.el-input-group__prepend:focus{outline:none}.el-input-group__append .el-button,.el-input-group__append .el-select,.el-input-group__prepend .el-button,.el-input-group__prepend .el-select{display:inline-block;flex:1;margin:0 -20px}.el-input-group__append button.el-button,.el-input-group__append button.el-button:hover,.el-input-group__append div.el-select .el-select__wrapper,.el-input-group__append div.el-select:hover .el-select__wrapper,.el-input-group__prepend button.el-button,.el-input-group__prepend button.el-button:hover,.el-input-group__prepend div.el-select .el-select__wrapper,.el-input-group__prepend div.el-select:hover .el-select__wrapper{background-color:transparent;border-color:transparent;color:inherit}.el-input-group__append .el-button,.el-input-group__append .el-input,.el-input-group__prepend .el-button,.el-input-group__prepend .el-input{font-size:inherit}.el-input-group__prepend{border-bottom-right-radius:0;border-right:0;border-top-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group__append{border-left:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--prepend>.el-input__wrapper,.el-input-group__append{border-bottom-left-radius:0;border-top-left-radius:0}.el-input-group--prepend .el-input-group__prepend .el-select .el-select__wrapper{border-bottom-right-radius:0;border-top-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group--append>.el-input__wrapper{border-bottom-right-radius:0;border-top-right-radius:0}.el-input-group--append .el-input-group__append .el-select .el-select__wrapper{border-bottom-left-radius:0;border-top-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-hidden{display:none!important}.el-input-number{display:inline-flex;line-height:30px;position:relative;vertical-align:middle;width:150px}.el-input-number .el-input__wrapper{padding-left:42px;padding-right:42px}.el-input-number .el-input__inner{-webkit-appearance:none;-moz-appearance:textfield;line-height:1;text-align:center}.el-input-number .el-input__inner::-webkit-inner-spin-button,.el-input-number .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-input-number.is-left .el-input__inner{text-align:left}.el-input-number.is-right .el-input__inner{text-align:right}.el-input-number.is-center .el-input__inner{text-align:center}.el-input-number__decrease,.el-input-number__increase{align-items:center;background:var(--el-fill-color-light);bottom:1px;color:var(--el-text-color-regular);cursor:pointer;display:flex;font-size:13px;height:auto;justify-content:center;position:absolute;top:1px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:32px;z-index:1}.el-input-number__decrease:hover,.el-input-number__increase:hover{color:var(--el-color-primary)}.el-input-number__decrease:hover~.el-input:not(.is-disabled) .el-input__wrapper,.el-input-number__increase:hover~.el-input:not(.is-disabled) .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-border-color,var(--el-color-primary)) inset}.el-input-number__decrease.is-disabled,.el-input-number__increase.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-input-number__increase{border-left:var(--el-border);border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0;right:1px}.el-input-number__decrease{border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);border-right:var(--el-border);left:1px}.el-input-number.is-disabled .el-input-number__decrease,.el-input-number.is-disabled .el-input-number__increase{border-color:var(--el-disabled-border-color);color:var(--el-disabled-border-color)}.el-input-number.is-disabled .el-input-number__decrease:hover,.el-input-number.is-disabled .el-input-number__increase:hover{color:var(--el-disabled-border-color);cursor:not-allowed}.el-input-number--large{line-height:38px;width:180px}.el-input-number--large .el-input-number__decrease,.el-input-number--large .el-input-number__increase{font-size:14px;width:40px}.el-input-number--large.is-controls-right .el-input--large .el-input__wrapper{padding-right:47px}.el-input-number--large .el-input--large .el-input__wrapper{padding-left:47px;padding-right:47px}.el-input-number--small{line-height:22px;width:120px}.el-input-number--small .el-input-number__decrease,.el-input-number--small .el-input-number__increase{font-size:12px;width:24px}.el-input-number--small.is-controls-right .el-input--small .el-input__wrapper{padding-right:31px}.el-input-number--small .el-input--small .el-input__wrapper{padding-left:31px;padding-right:31px}.el-input-number--small .el-input-number__decrease [class*=el-icon],.el-input-number--small .el-input-number__increase [class*=el-icon]{transform:scale(.9)}.el-input-number.is-without-controls .el-input__wrapper{padding-left:15px;padding-right:15px}.el-input-number.is-controls-right .el-input__wrapper{padding-left:15px;padding-right:42px}.el-input-number.is-controls-right .el-input-number__decrease,.el-input-number.is-controls-right .el-input-number__increase{--el-input-number-controls-height:15px;height:var(--el-input-number-controls-height);line-height:var(--el-input-number-controls-height)}.el-input-number.is-controls-right .el-input-number__decrease [class*=el-icon],.el-input-number.is-controls-right .el-input-number__increase [class*=el-icon]{transform:scale(.8)}.el-input-number.is-controls-right .el-input-number__increase{border-bottom:var(--el-border);border-radius:0 var(--el-border-radius-base) 0 0;bottom:auto;left:auto}.el-input-number.is-controls-right .el-input-number__decrease{border-left:var(--el-border);border-radius:0 0 var(--el-border-radius-base) 0;border-right:none;left:auto;right:1px;top:auto}.el-input-number.is-controls-right[class*=large] [class*=decrease],.el-input-number.is-controls-right[class*=large] [class*=increase]{--el-input-number-controls-height:19px}.el-input-number.is-controls-right[class*=small] [class*=decrease],.el-input-number.is-controls-right[class*=small] [class*=increase]{--el-input-number-controls-height:11px}.align-vertical[data-v-f636a774]{display:flex;align-items:center;height:100%}.el-tag{--el-tag-font-size:12px;--el-tag-border-radius:4px;--el-tag-border-radius-rounded:9999px;align-items:center;background-color:var(--el-tag-bg-color);border-color:var(--el-tag-border-color);border-radius:var(--el-tag-border-radius);border-style:solid;border-width:1px;box-sizing:border-box;color:var(--el-tag-text-color);display:inline-flex;font-size:var(--el-tag-font-size);height:24px;justify-content:center;line-height:1;padding:0 9px;vertical-align:middle;white-space:nowrap;--el-icon-size:14px}.el-tag,.el-tag.el-tag--primary{--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-bg-color:var(--el-color-success-light-9);--el-tag-border-color:var(--el-color-success-light-8);--el-tag-hover-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-bg-color:var(--el-color-warning-light-9);--el-tag-border-color:var(--el-color-warning-light-8);--el-tag-hover-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-bg-color:var(--el-color-danger-light-9);--el-tag-border-color:var(--el-color-danger-light-8);--el-tag-hover-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-bg-color:var(--el-color-error-light-9);--el-tag-border-color:var(--el-color-error-light-8);--el-tag-hover-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-bg-color:var(--el-color-info-light-9);--el-tag-border-color:var(--el-color-info-light-8);--el-tag-hover-color:var(--el-color-info)}.el-tag.is-hit{border-color:var(--el-color-primary)}.el-tag.is-round{border-radius:var(--el-tag-border-radius-rounded)}.el-tag .el-tag__close{color:var(--el-tag-text-color);flex-shrink:0}.el-tag .el-tag__close:hover{background-color:var(--el-tag-hover-color);color:var(--el-color-white)}.el-tag.el-tag--primary{--el-tag-text-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-text-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-text-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-text-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-text-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-text-color:var(--el-color-info)}.el-tag .el-icon{border-radius:50%;cursor:pointer;font-size:calc(var(--el-icon-size) - 2px);height:var(--el-icon-size);width:var(--el-icon-size)}.el-tag .el-tag__close{margin-left:6px}.el-tag--dark{--el-tag-text-color:var(--el-color-white)}.el-tag--dark,.el-tag--dark.el-tag--primary{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3)}.el-tag--dark.el-tag--success{--el-tag-bg-color:var(--el-color-success);--el-tag-border-color:var(--el-color-success);--el-tag-hover-color:var(--el-color-success-light-3)}.el-tag--dark.el-tag--warning{--el-tag-bg-color:var(--el-color-warning);--el-tag-border-color:var(--el-color-warning);--el-tag-hover-color:var(--el-color-warning-light-3)}.el-tag--dark.el-tag--danger{--el-tag-bg-color:var(--el-color-danger);--el-tag-border-color:var(--el-color-danger);--el-tag-hover-color:var(--el-color-danger-light-3)}.el-tag--dark.el-tag--error{--el-tag-bg-color:var(--el-color-error);--el-tag-border-color:var(--el-color-error);--el-tag-hover-color:var(--el-color-error-light-3)}.el-tag--dark.el-tag--info{--el-tag-bg-color:var(--el-color-info);--el-tag-border-color:var(--el-color-info);--el-tag-hover-color:var(--el-color-info-light-3)}.el-tag--dark.el-tag--danger,.el-tag--dark.el-tag--error,.el-tag--dark.el-tag--info,.el-tag--dark.el-tag--primary,.el-tag--dark.el-tag--success,.el-tag--dark.el-tag--warning{--el-tag-text-color:var(--el-color-white)}.el-tag--plain,.el-tag--plain.el-tag--primary{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary)}.el-tag--plain.el-tag--success{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-success-light-5);--el-tag-hover-color:var(--el-color-success)}.el-tag--plain.el-tag--warning{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-warning-light-5);--el-tag-hover-color:var(--el-color-warning)}.el-tag--plain.el-tag--danger{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-danger-light-5);--el-tag-hover-color:var(--el-color-danger)}.el-tag--plain.el-tag--error{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-error-light-5);--el-tag-hover-color:var(--el-color-error)}.el-tag--plain.el-tag--info{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-info-light-5);--el-tag-hover-color:var(--el-color-info)}.el-tag.is-closable{padding-right:5px}.el-tag--large{height:32px;padding:0 11px;--el-icon-size:16px}.el-tag--large .el-tag__close{margin-left:8px}.el-tag--large.is-closable{padding-right:7px}.el-tag--small{height:20px;padding:0 7px;--el-icon-size:12px}.el-tag--small .el-tag__close{margin-left:4px}.el-tag--small.is-closable{padding-right:3px}.el-tag--small .el-icon-close{transform:scale(.8)}.el-tag.el-tag--primary.is-hit{border-color:var(--el-color-primary)}.el-tag.el-tag--success.is-hit{border-color:var(--el-color-success)}.el-tag.el-tag--warning.is-hit{border-color:var(--el-color-warning)}.el-tag.el-tag--danger.is-hit{border-color:var(--el-color-danger)}.el-tag.el-tag--error.is-hit{border-color:var(--el-color-error)}.el-tag.el-tag--info.is-hit{border-color:var(--el-color-info)}.el-select-dropdown.is-multiple .el-select-dropdown__item.is-selected:after{background-color:var(--el-color-primary);background-position:50%;background-repeat:no-repeat;border-right:none;border-top:none;content:"";height:12px;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;position:absolute;right:20px;top:50%;transform:translateY(-50%);width:12px}.el-scrollbar{--el-scrollbar-opacity:.3;--el-scrollbar-bg-color:var(--el-text-color-secondary);--el-scrollbar-hover-opacity:.5;--el-scrollbar-hover-bg-color:var(--el-text-color-secondary);height:100%;overflow:hidden;position:relative}.el-scrollbar__wrap{height:100%;overflow:auto}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{display:none}.el-scrollbar__thumb{background-color:var(--el-scrollbar-bg-color,var(--el-text-color-secondary));border-radius:inherit;cursor:pointer;display:block;height:0;opacity:var(--el-scrollbar-opacity,.3);position:relative;transition:var(--el-transition-duration) background-color;width:0}.el-scrollbar__thumb:hover{background-color:var(--el-scrollbar-hover-bg-color,var(--el-text-color-secondary));opacity:var(--el-scrollbar-hover-opacity,.5)}.el-scrollbar__bar{border-radius:4px;bottom:2px;position:absolute;right:2px;z-index:1}.el-scrollbar__bar.is-vertical{top:2px;width:6px}.el-scrollbar__bar.is-vertical>div{width:100%}.el-scrollbar__bar.is-horizontal{height:6px;left:2px}.el-scrollbar__bar.is-horizontal>div{height:100%}.el-scrollbar-fade-enter-active{transition:opacity .34s ease-out}.el-scrollbar-fade-leave-active{transition:opacity .12s ease-out}.el-scrollbar-fade-enter-from,.el-scrollbar-fade-leave-active{opacity:0}.el-select-dropdown{border-radius:var(--el-border-radius-base);box-sizing:border-box;z-index:calc(var(--el-index-top) + 1)}.el-select-dropdown .el-scrollbar.is-empty .el-select-dropdown__list{padding:0}.el-select-dropdown__empty,.el-select-dropdown__loading{color:var(--el-text-color-secondary);font-size:var(--el-select-font-size);margin:0;padding:10px 0;text-align:center}.el-select-dropdown__wrap{max-height:274px}.el-select-dropdown__list{box-sizing:border-box;list-style:none;margin:0;padding:6px 0}.el-select-dropdown__list.el-vl__window{margin:6px 0;padding:0}.el-select-dropdown__header{border-bottom:1px solid var(--el-border-color-light);padding:10px}.el-select-dropdown__footer{border-top:1px solid var(--el-border-color-light);padding:10px}.el-select-dropdown__item{box-sizing:border-box;color:var(--el-text-color-regular);cursor:pointer;font-size:var(--el-font-size-base);height:34px;line-height:34px;overflow:hidden;padding:0 32px 0 20px;position:relative;text-overflow:ellipsis;white-space:nowrap}.el-select-dropdown__item.is-hovering{background-color:var(--el-fill-color-light)}.el-select-dropdown__item.is-selected{color:var(--el-color-primary);font-weight:700}.el-select-dropdown__item.is-disabled{background-color:unset;color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select-dropdown.is-multiple .el-select-dropdown__item.is-selected:after{background-color:var(--el-color-primary);background-position:50%;background-repeat:no-repeat;border-right:none;border-top:none;content:"";height:12px;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;position:absolute;right:20px;top:50%;transform:translateY(-50%);width:12px}.el-select-dropdown.is-multiple .el-select-dropdown__item.is-disabled:after{background-color:var(--el-text-color-placeholder)}.el-select-group{margin:0;padding:0}.el-select-group__wrap{list-style:none;margin:0;padding:0;position:relative}.el-select-group__title{box-sizing:border-box;color:var(--el-color-info);font-size:12px;line-height:34px;overflow:hidden;padding:0 20px;text-overflow:ellipsis;white-space:nowrap}.el-select-group .el-select-dropdown__item{padding-left:20px}.el-select{--el-select-border-color-hover:var(--el-border-color-hover);--el-select-disabled-color:var(--el-disabled-text-color);--el-select-disabled-border:var(--el-disabled-border-color);--el-select-font-size:var(--el-font-size-base);--el-select-close-hover-color:var(--el-text-color-secondary);--el-select-input-color:var(--el-text-color-placeholder);--el-select-multiple-input-color:var(--el-text-color-regular);--el-select-input-focus-border-color:var(--el-color-primary);--el-select-input-font-size:14px;--el-select-width:100%;display:inline-block;position:relative;vertical-align:middle;width:var(--el-select-width)}.el-select__wrapper{align-items:center;background-color:var(--el-fill-color-blank);border-radius:var(--el-border-radius-base);box-shadow:0 0 0 1px var(--el-border-color) inset;box-sizing:border-box;cursor:pointer;display:flex;font-size:14px;gap:6px;line-height:24px;min-height:32px;padding:4px 12px;position:relative;text-align:left;transform:translateZ(0);transition:var(--el-transition-duration)}.el-select__wrapper.is-filterable{cursor:text}.el-select__wrapper.is-focused{box-shadow:0 0 0 1px var(--el-color-primary) inset}.el-select__wrapper.is-hovering:not(.is-focused){box-shadow:0 0 0 1px var(--el-border-color-hover) inset}.el-select__wrapper.is-disabled{background-color:var(--el-fill-color-light);color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select__wrapper.is-disabled,.el-select__wrapper.is-disabled:hover{box-shadow:0 0 0 1px var(--el-select-disabled-border) inset}.el-select__wrapper.is-disabled.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-select__wrapper.is-disabled .el-select__selected-item{color:var(--el-select-disabled-color)}.el-select__wrapper.is-disabled .el-select__caret,.el-select__wrapper.is-disabled .el-tag,.el-select__wrapper.is-disabled input{cursor:not-allowed}.el-select__wrapper.is-disabled .el-select__prefix,.el-select__wrapper.is-disabled .el-select__suffix{pointer-events:none}.el-select__prefix,.el-select__suffix{align-items:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));display:flex;flex-shrink:0;gap:6px}.el-select__caret{color:var(--el-select-input-color);cursor:pointer;font-size:var(--el-select-input-font-size);transform:rotate(0);transition:var(--el-transition-duration)}.el-select__caret.is-reverse{transform:rotate(180deg)}.el-select__clear{cursor:pointer}.el-select__clear:hover{color:var(--el-select-close-hover-color)}.el-select__selection{align-items:center;display:flex;flex:1;flex-wrap:wrap;gap:6px;min-width:0;position:relative}.el-select__selection.is-near{margin-left:-8px}.el-select__selection .el-tag{border-color:transparent;cursor:pointer}.el-select__selection .el-tag.el-tag--plain{border-color:var(--el-tag-border-color)}.el-select__selection .el-tag .el-tag__content{min-width:0}.el-select__selected-item{display:flex;flex-wrap:wrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-select__tags-text{line-height:normal}.el-select__placeholder,.el-select__tags-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-select__placeholder{color:var(--el-input-text-color,var(--el-text-color-regular));position:absolute;top:50%;transform:translateY(-50%);width:100%;z-index:-1}.el-select__placeholder.is-transparent{color:var(--el-text-color-placeholder);-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-select__popper.el-popper{background:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-select__popper.el-popper,.el-select__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-select__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-left-color:transparent;border-top-color:transparent}.el-select__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-select__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-bottom-color:transparent;border-left-color:transparent}.el-select__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-select__input-wrapper{flex:1}.el-select__input-wrapper.is-hidden{opacity:0;position:absolute;z-index:-1}.el-select__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:var(--el-select-multiple-input-color);font-family:inherit;font-size:inherit;height:24px;outline:none;padding:0;width:100%}.el-select__input.is-disabled{cursor:not-allowed}.el-select__input-calculator{left:0;max-width:100%;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:pre}.el-select--large .el-select__wrapper{font-size:14px;gap:6px;line-height:24px;min-height:40px;padding:8px 16px}.el-select--large .el-select__selection{gap:6px}.el-select--large .el-select__selection.is-near{margin-left:-8px}.el-select--large .el-select__prefix,.el-select--large .el-select__suffix{gap:6px}.el-select--large .el-select__input{height:24px}.el-select--small .el-select__wrapper{font-size:12px;gap:4px;line-height:20px;min-height:24px;padding:2px 8px}.el-select--small .el-select__selection{gap:4px}.el-select--small .el-select__selection.is-near{margin-left:-6px}.el-select--small .el-select__prefix,.el-select--small .el-select__suffix{gap:4px}.el-select--small .el-select__input{height:20px}.el-switch{--el-switch-on-color:var(--el-color-primary);--el-switch-off-color:var(--el-border-color);align-items:center;display:inline-flex;font-size:14px;height:32px;line-height:20px;position:relative;vertical-align:middle}.el-switch.is-disabled .el-switch__core,.el-switch.is-disabled .el-switch__label{cursor:not-allowed}.el-switch__label{color:var(--el-text-color-primary);cursor:pointer;display:inline-block;font-size:14px;font-weight:500;height:20px;transition:var(--el-transition-duration-fast);vertical-align:middle}.el-switch__label.is-active{color:var(--el-color-primary)}.el-switch__label--left{margin-right:10px}.el-switch__label--right{margin-left:10px}.el-switch__label *{display:inline-block;font-size:14px;line-height:1}.el-switch__label .el-icon{height:inherit}.el-switch__label .el-icon svg{vertical-align:middle}.el-switch__input{height:0;margin:0;opacity:0;position:absolute;width:0}.el-switch__input:focus-visible~.el-switch__core{outline:2px solid var(--el-switch-on-color);outline-offset:1px}.el-switch__core{align-items:center;background:var(--el-switch-off-color);border:1px solid var(--el-switch-border-color,var(--el-switch-off-color));border-radius:10px;box-sizing:border-box;cursor:pointer;display:inline-flex;height:20px;min-width:40px;outline:none;position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration)}.el-switch__core .el-switch__inner{align-items:center;display:flex;height:16px;justify-content:center;overflow:hidden;padding:0 4px 0 18px;transition:all var(--el-transition-duration);width:100%}.el-switch__core .el-switch__inner .is-icon,.el-switch__core .el-switch__inner .is-text{color:var(--el-color-white);font-size:12px;overflow:hidden;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.el-switch__core .el-switch__action{align-items:center;background-color:var(--el-color-white);border-radius:var(--el-border-radius-circle);color:var(--el-switch-off-color);display:flex;height:16px;justify-content:center;left:1px;position:absolute;transition:all var(--el-transition-duration);width:16px}.el-switch.is-checked .el-switch__core{background-color:var(--el-switch-on-color);border-color:var(--el-switch-border-color,var(--el-switch-on-color))}.el-switch.is-checked .el-switch__core .el-switch__action{color:var(--el-switch-on-color);left:calc(100% - 17px)}.el-switch.is-checked .el-switch__core .el-switch__inner{padding:0 18px 0 4px}.el-switch.is-disabled{opacity:.6}.el-switch--wide .el-switch__label.el-switch__label--left span{left:10px}.el-switch--wide .el-switch__label.el-switch__label--right span{right:10px}.el-switch .label-fade-enter-from,.el-switch .label-fade-leave-active{opacity:0}.el-switch--large{font-size:14px;height:40px;line-height:24px}.el-switch--large .el-switch__label{font-size:14px;height:24px}.el-switch--large .el-switch__label *{font-size:14px}.el-switch--large .el-switch__core{border-radius:12px;height:24px;min-width:50px}.el-switch--large .el-switch__core .el-switch__inner{height:20px;padding:0 6px 0 22px}.el-switch--large .el-switch__core .el-switch__action{height:20px;width:20px}.el-switch--large.is-checked .el-switch__core .el-switch__action{left:calc(100% - 21px)}.el-switch--large.is-checked .el-switch__core .el-switch__inner{padding:0 22px 0 6px}.el-switch--small{font-size:12px;height:24px;line-height:16px}.el-switch--small .el-switch__label{font-size:12px;height:16px}.el-switch--small .el-switch__label *{font-size:12px}.el-switch--small .el-switch__core{border-radius:8px;height:16px;min-width:30px}.el-switch--small .el-switch__core .el-switch__inner{height:12px;padding:0 2px 0 14px}.el-switch--small .el-switch__core .el-switch__action{height:12px;width:12px}.el-switch--small.is-checked .el-switch__core .el-switch__action{left:calc(100% - 13px)}.el-switch--small.is-checked .el-switch__core .el-switch__inner{padding:0 14px 0 2px}h3[data-v-6efe26a3]{margin:0}h4[data-v-6efe26a3],h5[data-v-6efe26a3]{margin-bottom:0}.tag-select[data-v-6efe26a3]{display:flex;justify-content:space-between;gap:32px;padding:0 8px;width:240px}.tag-select[data-v-6efe26a3]:hover{background-color:#646464!important}.trigger-select[data-v-6efe26a3]{width:30px;height:30px}[data-v-6efe26a3] .trigger-select .el-input__wrapper{padding:0}[data-v-6efe26a3] .trigger-select .el-input__suffix{width:100%}.el-carousel{--el-carousel-arrow-font-size:12px;--el-carousel-arrow-size:36px;--el-carousel-arrow-background:rgba(31,45,61,.11);--el-carousel-arrow-hover-background:rgba(31,45,61,.23);--el-carousel-indicator-width:30px;--el-carousel-indicator-height:2px;--el-carousel-indicator-padding-horizontal:4px;--el-carousel-indicator-padding-vertical:12px;--el-carousel-indicator-out-color:var(--el-border-color-hover);position:relative}.el-carousel--horizontal,.el-carousel--vertical{overflow:hidden}.el-carousel__container{height:300px;position:relative}.el-carousel__arrow{align-items:center;background-color:var(--el-carousel-arrow-background);border:none;border-radius:50%;color:#fff;cursor:pointer;display:inline-flex;font-size:var(--el-carousel-arrow-font-size);height:var(--el-carousel-arrow-size);justify-content:center;margin:0;outline:none;padding:0;position:absolute;text-align:center;top:50%;transform:translateY(-50%);transition:var(--el-transition-duration);width:var(--el-carousel-arrow-size);z-index:10}.el-carousel__arrow--left{left:16px}.el-carousel__arrow--right{right:16px}.el-carousel__arrow:hover{background-color:var(--el-carousel-arrow-hover-background)}.el-carousel__arrow i{cursor:pointer}.el-carousel__indicators{list-style:none;margin:0;padding:0;position:absolute;z-index:calc(var(--el-index-normal) + 1)}.el-carousel__indicators--horizontal{bottom:0;left:50%;transform:translate(-50%)}.el-carousel__indicators--vertical{right:0;top:50%;transform:translateY(-50%)}.el-carousel__indicators--outside{bottom:calc(var(--el-carousel-indicator-height) + var(--el-carousel-indicator-padding-vertical)*2);position:static;text-align:center;transform:none}.el-carousel__indicators--outside .el-carousel__indicator:hover button{opacity:.64}.el-carousel__indicators--outside button{background-color:var(--el-carousel-indicator-out-color);opacity:.24}.el-carousel__indicators--right{right:0}.el-carousel__indicators--labels{left:0;right:0;text-align:center;transform:none}.el-carousel__indicators--labels .el-carousel__button{color:#000;font-size:12px;height:auto;padding:2px 18px;width:auto}.el-carousel__indicators--labels .el-carousel__indicator{padding:6px 4px}.el-carousel__indicator{background-color:transparent;cursor:pointer}.el-carousel__indicator:hover button{opacity:.72}.el-carousel__indicator--horizontal{display:inline-block;padding:var(--el-carousel-indicator-padding-vertical) var(--el-carousel-indicator-padding-horizontal)}.el-carousel__indicator--vertical{padding:var(--el-carousel-indicator-padding-horizontal) var(--el-carousel-indicator-padding-vertical)}.el-carousel__indicator--vertical .el-carousel__button{height:calc(var(--el-carousel-indicator-width)/2);width:var(--el-carousel-indicator-height)}.el-carousel__indicator.is-active button{opacity:1}.el-carousel__button{background-color:#fff;border:none;cursor:pointer;display:block;height:var(--el-carousel-indicator-height);margin:0;opacity:.48;outline:none;padding:0;transition:var(--el-transition-duration);width:var(--el-carousel-indicator-width)}.carousel-arrow-left-enter-from,.carousel-arrow-left-leave-active{opacity:0;transform:translateY(-50%) translate(-10px)}.carousel-arrow-right-enter-from,.carousel-arrow-right-leave-active{opacity:0;transform:translateY(-50%) translate(10px)}.el-transitioning{filter:url(#elCarouselHorizontal)}.el-transitioning-vertical{filter:url(#elCarouselVertical)}.el-carousel__item{display:inline-block;height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%}.el-carousel__item,.el-carousel__item.is-active{z-index:calc(var(--el-index-normal) - 1)}.el-carousel__item--card,.el-carousel__item.is-animating{transition:transform .4s ease-in-out}.el-carousel__item--card{width:50%}.el-carousel__item--card.is-in-stage{cursor:pointer;z-index:var(--el-index-normal)}.el-carousel__item--card.is-in-stage.is-hover .el-carousel__mask,.el-carousel__item--card.is-in-stage:hover .el-carousel__mask{opacity:.12}.el-carousel__item--card.is-active{z-index:calc(var(--el-index-normal) + 1)}.el-carousel__item--card-vertical{height:50%;width:100%}.el-carousel__mask{background-color:var(--el-color-white);height:100%;left:0;opacity:.24;position:absolute;top:0;transition:var(--el-transition-duration-fast);width:100%}.el-image__error,.el-image__inner,.el-image__placeholder,.el-image__wrapper{height:100%;width:100%}.el-image{display:inline-block;overflow:hidden;position:relative}.el-image__inner{opacity:1;vertical-align:top}.el-image__inner.is-loading{opacity:0}.el-image__wrapper{left:0;position:absolute;top:0}.el-image__error,.el-image__placeholder{background:var(--el-fill-color-light)}.el-image__error{align-items:center;color:var(--el-text-color-placeholder);display:flex;font-size:14px;justify-content:center;vertical-align:middle}.el-image__preview{cursor:pointer}.el-image-viewer__wrapper{bottom:0;left:0;position:fixed;right:0;top:0}.el-image-viewer__wrapper:focus{outline:none!important}.el-image-viewer__btn{align-items:center;border-radius:50%;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;opacity:.8;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}.el-image-viewer__btn .el-icon{cursor:pointer}.el-image-viewer__close{font-size:40px;height:40px;right:40px;top:40px;width:40px}.el-image-viewer__canvas{align-items:center;display:flex;height:100%;justify-content:center;position:static;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.el-image-viewer__actions{background-color:var(--el-text-color-regular);border-color:#fff;border-radius:22px;bottom:30px;height:44px;left:50%;padding:0 23px;transform:translate(-50%)}.el-image-viewer__actions__inner{align-items:center;color:#fff;cursor:default;display:flex;font-size:23px;gap:22px;height:100%;justify-content:space-around;padding:0 6px;width:100%}.el-image-viewer__actions__divider{margin:0 -6px}.el-image-viewer__progress{bottom:90px;color:#fff;cursor:default;left:50%;transform:translate(-50%)}.el-image-viewer__prev{left:40px}.el-image-viewer__next,.el-image-viewer__prev{background-color:var(--el-text-color-regular);border-color:#fff;color:#fff;font-size:24px;height:44px;top:50%;transform:translateY(-50%);width:44px}.el-image-viewer__next{right:40px;text-indent:2px}.el-image-viewer__close{background-color:var(--el-text-color-regular);border-color:#fff;color:#fff;font-size:24px;height:44px;width:44px}.el-image-viewer__mask{background:#000;height:100%;left:0;opacity:.5;position:absolute;top:0;width:100%}.viewer-fade-enter-active{animation:viewer-fade-in var(--el-transition-duration)}.viewer-fade-leave-active{animation:viewer-fade-out var(--el-transition-duration)}@keyframes viewer-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes viewer-fade-out{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20px,0)}}.el-divider{position:relative}.el-divider--horizontal{border-top:1px var(--el-border-color) var(--el-border-style);display:block;height:1px;margin:24px 0;width:100%}.el-divider--vertical{border-left:1px var(--el-border-color) var(--el-border-style);display:inline-block;height:1em;margin:0 8px;position:relative;vertical-align:middle;width:1px}.el-divider__text{background-color:var(--el-bg-color);color:var(--el-text-color-primary);font-size:14px;font-weight:500;padding:0 20px;position:absolute}.el-divider__text.is-left{left:20px;transform:translateY(-50%)}.el-divider__text.is-center{left:50%;transform:translate(-50%) translateY(-50%)}.el-divider__text.is-right{right:20px;transform:translateY(-50%)}.carousel-footer[data-v-897d3fee]{position:absolute;bottom:24px;width:100%}.carousel[data-v-897d3fee]{--el-carousel-indicator-padding-vertical: 4px;width:100%;margin:auto}.carousel-container[data-v-897d3fee]{display:flex;width:100%;height:100%;overflow-y:auto}.back-to-generation[data-v-897d3fee]{position:absolute;top:16px;left:16px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--el-color-info);font-weight:500;z-index:1}.back-to-generation[data-v-897d3fee]:hover{cursor:pointer;text-decoration:underline}@media only screen and (max-width: 1280px){.carousel-footer[data-v-897d3fee]{bottom:5px}.carousel-footer>.el-divider[data-v-897d3fee]{margin:5px 0}}.el-upload{--el-upload-dragger-padding-horizontal:40px;--el-upload-dragger-padding-vertical:10px;align-items:center;cursor:pointer;display:inline-flex;justify-content:center;outline:none}.el-upload.is-disabled{cursor:not-allowed}.el-upload.is-disabled:focus{color:inherit}.el-upload.is-disabled:focus,.el-upload.is-disabled:focus .el-upload-dragger{border-color:var(--el-border-color-darker)}.el-upload.is-disabled .el-upload-dragger{background-color:var(--el-disabled-bg-color);cursor:not-allowed}.el-upload.is-disabled .el-upload-dragger .el-upload__text{color:var(--el-text-color-placeholder)}.el-upload.is-disabled .el-upload-dragger .el-upload__text em{color:var(--el-disabled-text-color)}.el-upload.is-disabled .el-upload-dragger:hover{border-color:var(--el-border-color-darker)}.el-upload__input{display:none}.el-upload__tip{color:var(--el-text-color-regular);font-size:12px;margin-top:7px}.el-upload iframe{filter:alpha(opacity=0);left:0;opacity:0;position:absolute;top:0;z-index:-1}.el-upload--picture-card{--el-upload-picture-card-size:148px;align-items:center;background-color:var(--el-fill-color-lighter);border:1px dashed var(--el-border-color-darker);border-radius:6px;box-sizing:border-box;cursor:pointer;display:inline-flex;height:var(--el-upload-picture-card-size);justify-content:center;vertical-align:top;width:var(--el-upload-picture-card-size)}.el-upload--picture-card>i{color:var(--el-text-color-secondary);font-size:28px}.el-upload--picture-card:hover{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload.is-drag{display:block}.el-upload:focus{color:var(--el-color-primary)}.el-upload:focus,.el-upload:focus .el-upload-dragger{border-color:var(--el-color-primary)}.el-upload-dragger{background-color:var(--el-fill-color-blank);border:1px dashed var(--el-border-color);border-radius:6px;box-sizing:border-box;cursor:pointer;overflow:hidden;padding:var(--el-upload-dragger-padding-horizontal) var(--el-upload-dragger-padding-vertical);position:relative;text-align:center}.el-upload-dragger .el-icon--upload{color:var(--el-text-color-placeholder);font-size:67px;line-height:50px;margin-bottom:16px}.el-upload-dragger+.el-upload__tip{text-align:center}.el-upload-dragger~.el-upload__files{border-top:var(--el-border);margin-top:7px;padding-top:5px}.el-upload-dragger .el-upload__text{color:var(--el-text-color-regular);font-size:14px;text-align:center}.el-upload-dragger .el-upload__text em{color:var(--el-color-primary);font-style:normal}.el-upload-dragger:hover{border-color:var(--el-color-primary)}.el-upload-dragger.is-dragover{background-color:var(--el-color-primary-light-9);border:2px dashed var(--el-color-primary);padding:calc(var(--el-upload-dragger-padding-horizontal) - 1px) calc(var(--el-upload-dragger-padding-vertical) - 1px)}.el-upload-list{list-style:none;margin:10px 0 0;padding:0;position:relative}.el-upload-list__item{border-radius:4px;box-sizing:border-box;color:var(--el-text-color-regular);font-size:14px;margin-bottom:5px;position:relative;transition:all .5s cubic-bezier(.55,0,.1,1);width:100%}.el-upload-list__item .el-progress{position:absolute;top:20px;width:100%}.el-upload-list__item .el-progress__text{position:absolute;right:0;top:-13px}.el-upload-list__item .el-progress-bar{margin-right:0;padding-right:0}.el-upload-list__item .el-icon--upload-success{color:var(--el-color-success)}.el-upload-list__item .el-icon--close{color:var(--el-text-color-regular);cursor:pointer;display:none;opacity:.75;position:absolute;right:5px;top:50%;transform:translateY(-50%);transition:opacity var(--el-transition-duration)}.el-upload-list__item .el-icon--close:hover{color:var(--el-color-primary);opacity:1}.el-upload-list__item .el-icon--close-tip{color:var(--el-color-primary);cursor:pointer;display:none;font-size:12px;font-style:normal;opacity:1;position:absolute;right:5px;top:1px}.el-upload-list__item:hover{background-color:var(--el-fill-color-light)}.el-upload-list__item:hover .el-icon--close{display:inline-flex}.el-upload-list__item:hover .el-progress__text{display:none}.el-upload-list__item .el-upload-list__item-info{display:inline-flex;flex-direction:column;justify-content:center;margin-left:4px;width:calc(100% - 30px)}.el-upload-list__item.is-success .el-upload-list__item-status-label{display:inline-flex}.el-upload-list__item.is-success .el-upload-list__item-name:focus,.el-upload-list__item.is-success .el-upload-list__item-name:hover{color:var(--el-color-primary);cursor:pointer}.el-upload-list__item.is-success:focus:not(:hover) .el-icon--close-tip{display:inline-block}.el-upload-list__item.is-success:active,.el-upload-list__item.is-success:not(.focusing):focus{outline-width:0}.el-upload-list__item.is-success:active .el-icon--close-tip,.el-upload-list__item.is-success:not(.focusing):focus .el-icon--close-tip{display:none}.el-upload-list__item.is-success:focus .el-upload-list__item-status-label,.el-upload-list__item.is-success:hover .el-upload-list__item-status-label{display:none;opacity:0}.el-upload-list__item-name{align-items:center;color:var(--el-text-color-regular);display:inline-flex;font-size:var(--el-font-size-base);padding:0 4px;text-align:center;transition:color var(--el-transition-duration)}.el-upload-list__item-name .el-icon{color:var(--el-text-color-secondary);margin-right:6px}.el-upload-list__item-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-upload-list__item-status-label{align-items:center;display:none;height:100%;justify-content:center;line-height:inherit;position:absolute;right:5px;top:0;transition:opacity var(--el-transition-duration)}.el-upload-list__item-delete{color:var(--el-text-color-regular);display:none;font-size:12px;position:absolute;right:10px;top:0}.el-upload-list__item-delete:hover{color:var(--el-color-primary)}.el-upload-list--picture-card{--el-upload-list-picture-card-size:148px;display:inline-flex;flex-wrap:wrap;margin:0}.el-upload-list--picture-card .el-upload-list__item{background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;display:inline-flex;height:var(--el-upload-list-picture-card-size);margin:0 8px 8px 0;overflow:hidden;padding:0;width:var(--el-upload-list-picture-card-size)}.el-upload-list--picture-card .el-upload-list__item .el-icon--check,.el-upload-list--picture-card .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture-card .el-upload-list__item .el-icon--close{display:none}.el-upload-list--picture-card .el-upload-list__item:hover .el-upload-list__item-status-label{display:block;opacity:0}.el-upload-list--picture-card .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture-card .el-upload-list__item .el-upload-list__item-name{display:none}.el-upload-list--picture-card .el-upload-list__item-thumbnail{height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.el-upload-list--picture-card .el-upload-list__item-status-label{background:var(--el-color-success);height:24px;right:-15px;text-align:center;top:-6px;transform:rotate(45deg);width:40px}.el-upload-list--picture-card .el-upload-list__item-status-label i{font-size:12px;margin-top:11px;transform:rotate(-45deg)}.el-upload-list--picture-card .el-upload-list__item-actions{align-items:center;background-color:var(--el-overlay-color-lighter);color:#fff;cursor:default;display:inline-flex;font-size:20px;height:100%;justify-content:center;left:0;opacity:0;position:absolute;top:0;transition:opacity var(--el-transition-duration);width:100%}.el-upload-list--picture-card .el-upload-list__item-actions span{cursor:pointer;display:none}.el-upload-list--picture-card .el-upload-list__item-actions span+span{margin-left:16px}.el-upload-list--picture-card .el-upload-list__item-actions .el-upload-list__item-delete{color:inherit;font-size:inherit;position:static}.el-upload-list--picture-card .el-upload-list__item-actions:hover{opacity:1}.el-upload-list--picture-card .el-upload-list__item-actions:hover span{display:inline-flex}.el-upload-list--picture-card .el-progress{bottom:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:126px}.el-upload-list--picture-card .el-progress .el-progress__text{top:50%}.el-upload-list--picture .el-upload-list__item{align-items:center;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;display:flex;margin-top:10px;overflow:hidden;padding:10px;z-index:0}.el-upload-list--picture .el-upload-list__item .el-icon--check,.el-upload-list--picture .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture .el-upload-list__item:hover .el-upload-list__item-status-label{display:inline-flex;opacity:0}.el-upload-list--picture .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name i{display:none}.el-upload-list--picture .el-upload-list__item .el-icon--close{top:5px;transform:translateY(0)}.el-upload-list--picture .el-upload-list__item-thumbnail{align-items:center;background-color:var(--el-color-white);display:inline-flex;height:70px;justify-content:center;-o-object-fit:contain;object-fit:contain;position:relative;width:70px;z-index:1}.el-upload-list--picture .el-upload-list__item-status-label{background:var(--el-color-success);height:26px;position:absolute;right:-17px;text-align:center;top:-7px;transform:rotate(45deg);width:46px}.el-upload-list--picture .el-upload-list__item-status-label i{font-size:12px;margin-top:12px;transform:rotate(-45deg)}.el-upload-list--picture .el-progress{position:relative;top:-7px}.el-upload-cover{cursor:default;height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:10}.el-upload-cover:after{content:"";display:inline-block;height:100%;vertical-align:middle}.el-upload-cover img{display:block;height:100%;width:100%}.el-upload-cover__label{background:var(--el-color-success);height:24px;right:-15px;text-align:center;top:-6px;transform:rotate(45deg);width:40px}.el-upload-cover__label i{color:#fff;font-size:12px;margin-top:11px;transform:rotate(-45deg)}.el-upload-cover__progress{display:inline-block;position:static;vertical-align:middle;width:243px}.el-upload-cover__progress+.el-upload__inner{opacity:0}.el-upload-cover__content{height:100%;left:0;position:absolute;top:0;width:100%}.el-upload-cover__interact{background-color:var(--el-overlay-color-light);bottom:0;height:100%;left:0;position:absolute;text-align:center;width:100%}.el-upload-cover__interact .btn{color:#fff;cursor:pointer;display:inline-block;font-size:14px;margin-top:60px;transition:var(--el-transition-md-fade);vertical-align:middle}.el-upload-cover__interact .btn i{margin-top:0}.el-upload-cover__interact .btn span{opacity:0;transition:opacity .15s linear}.el-upload-cover__interact .btn:not(:first-child){margin-left:35px}.el-upload-cover__interact .btn:hover{transform:translateY(-13px)}.el-upload-cover__interact .btn:hover span{opacity:1}.el-upload-cover__interact .btn i{color:#fff;display:block;font-size:24px;line-height:inherit;margin:0 auto 5px}.el-upload-cover__title{background-color:#fff;bottom:0;color:var(--el-text-color-primary);font-size:14px;font-weight:400;height:36px;left:0;line-height:36px;margin:0;overflow:hidden;padding:0 10px;position:absolute;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%}.el-upload-cover+.el-upload__inner{opacity:0;position:relative;z-index:1}.el-color-picker{display:inline-block;height:32px;line-height:normal;outline:none;position:relative;width:32px}.el-color-picker:hover:not(.is-disabled,.is-focused) .el-color-picker__trigger{border-color:var(--el-border-color-hover)}.el-color-picker:focus-visible:not(.is-disabled) .el-color-picker__trigger{outline:2px solid var(--el-color-primary);outline-offset:1px}.el-color-picker.is-focused .el-color-picker__trigger{border-color:var(--el-color-primary)}.el-color-picker.is-disabled .el-color-picker__trigger{background-color:var(--el-fill-color-light);cursor:not-allowed}.el-color-picker.is-disabled .el-color-picker__color{opacity:.3}.el-color-picker--large{height:40px;width:40px}.el-color-picker--small{height:24px;width:24px}.el-color-picker--small .el-color-picker__empty,.el-color-picker--small .el-color-picker__icon{transform:scale(.8)}.el-color-picker__trigger{align-items:center;border:1px solid var(--el-border-color);border-radius:4px;cursor:pointer;display:inline-flex;font-size:0;justify-content:center;padding:4px}.el-color-picker__color,.el-color-picker__trigger{box-sizing:border-box;height:100%;position:relative;width:100%}.el-color-picker__color{border:1px solid var(--el-text-color-secondary);border-radius:var(--el-border-radius-small);display:block;text-align:center}.el-color-picker__color.is-alpha{background-image:linear-gradient(45deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(45deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%);background-position:0 0,6px 0,6px -6px,0 6px;background-size:12px 12px}.el-color-picker__color-inner{align-items:center;display:inline-flex;height:100%;justify-content:center;width:100%}.el-color-picker .el-color-picker__empty{color:var(--el-text-color-secondary);font-size:12px}.el-color-picker .el-color-picker__icon{align-items:center;color:#fff;display:inline-flex;font-size:12px;justify-content:center}.el-color-picker__panel{background-color:#fff;border-radius:var(--el-border-radius-base);box-shadow:var(--el-box-shadow-light)}.el-color-picker__panel.el-popper{border:1px solid var(--el-border-color-lighter)}.el-color-picker,.el-color-picker__panel{--el-color-picker-alpha-bg-a:#ccc;--el-color-picker-alpha-bg-b:transparent}.dark .el-color-picker,.dark .el-color-picker__panel{--el-color-picker-alpha-bg-a:#333333}.el-color-picker-panel{background:var(--el-bg-color-overlay);box-sizing:content-box;padding:12px;width:300px}.el-color-picker-panel.is-border{border:1px solid var(--el-border-color-lighter);border-radius:4px}.el-color-picker-panel__wrapper{margin-bottom:6px}.el-color-picker-panel__footer{display:flex;justify-content:space-between;margin-top:12px;text-align:right}.el-color-picker-panel__footer .el-input{color:#000;font-size:12px;line-height:26px;width:160px}.el-color-picker-panel.is-disabled .el-color-hue-slider,.el-color-picker-panel.is-disabled .el-color-svpanel{cursor:not-allowed;opacity:.3}.el-color-picker-panel.is-disabled .el-color-hue-slider__thumb{cursor:not-allowed}.el-color-picker-panel.is-disabled .el-color-alpha-slider,.el-color-picker-panel.is-disabled .el-color-predefine .el-color-predefine__color-selector{cursor:not-allowed;opacity:.3}.el-color-predefine{display:flex;font-size:12px;margin-top:8px;width:280px}.el-color-predefine__colors{display:flex;flex:1;flex-wrap:wrap;gap:8px}.el-color-predefine__color-selector{border-radius:4px;cursor:pointer;height:20px;width:20px}.el-color-predefine__color-selector.selected{box-shadow:0 0 3px 2px var(--el-color-primary)}.el-color-predefine__color-selector>div{border-radius:3px;display:flex;height:100%}.el-color-predefine__color-selector.is-alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.el-color-hue-slider{background-color:red;box-sizing:border-box;float:right;height:12px;padding:0 2px;position:relative;width:280px}.el-color-hue-slider__bar{background:linear-gradient(90deg,#f00 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00);height:100%;position:relative}.el-color-hue-slider__thumb{background:#fff;border:1px solid var(--el-border-color-lighter);border-radius:1px;box-shadow:0 0 2px #0009;box-sizing:border-box;cursor:pointer;height:100%;left:0;position:absolute;top:0;width:4px;z-index:1}.el-color-hue-slider__thumb:focus-visible{outline:2px solid var(--el-color-primary);outline-offset:1px}.el-color-hue-slider.is-vertical{height:180px;padding:2px 0;width:12px}.el-color-hue-slider.is-vertical .el-color-hue-slider__bar{background:linear-gradient(180deg,#f00 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00)}.el-color-hue-slider.is-vertical .el-color-hue-slider__thumb{height:4px;left:0;top:0;width:100%}.el-color-svpanel{height:180px;position:relative;width:280px}.el-color-svpanel__black,.el-color-svpanel__white{bottom:0;left:0;position:absolute;right:0;top:0}.el-color-svpanel__white{background:linear-gradient(90deg,#fff,rgba(255,255,255,0))}.el-color-svpanel__black{background:linear-gradient(0deg,#000,rgba(0,0,0,0))}.el-color-svpanel__cursor{position:absolute}.el-color-svpanel__cursor>div{border-radius:50%;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px #0000004d,0 0 1px 2px #0006;cursor:head;height:4px;transform:translate(-2px,-2px);width:4px}.el-color-alpha-slider{background-image:linear-gradient(45deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(45deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%);background-position:0 0,6px 0,6px -6px,0 6px;background-size:12px 12px;box-sizing:border-box;height:12px;position:relative;width:280px}.el-color-alpha-slider.is-disabled .el-color-alpha-slider__thumb{cursor:not-allowed}.el-color-alpha-slider__bar{background:linear-gradient(to right,rgba(255,255,255,0) 0,var(--el-bg-color) 100%);height:100%;position:relative}.el-color-alpha-slider__thumb{background:#fff;border:1px solid var(--el-border-color-lighter);border-radius:1px;box-shadow:0 0 2px #0009;box-sizing:border-box;cursor:pointer;height:100%;left:0;position:absolute;top:0;width:4px;z-index:1}.el-color-alpha-slider__thumb:focus-visible{outline:2px solid var(--el-color-primary);outline-offset:1px}.el-color-alpha-slider.is-vertical{height:180px;width:20px}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__bar{background:linear-gradient(180deg,rgba(255,255,255,0) 0,rgb(255,255,255))}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__thumb{height:4px;left:0;top:0;width:100%}.el-color-picker-panel{--el-color-picker-alpha-bg-a:#ccc;--el-color-picker-alpha-bg-b:transparent}.dark .el-color-picker-panel{--el-color-picker-alpha-bg-a:#333333}.action-buttons[data-v-048c3c7e]{display:flex;flex-direction:column;position:absolute;gap:10px;top:10px;right:10px}.action-buttons[data-v-048c3c7e]>*{width:30px;height:30px;margin:0}.canvas-container[data-v-048c3c7e]{position:relative}@media only screen and (max-width: 1280px){.canvas-container[data-v-048c3c7e]{transform:scale(.7)}}.firstIcon[data-v-97afe113]{position:absolute;right:15%;bottom:12%;opacity:.8;z-index:0}.secondIcon[data-v-97afe113]{position:absolute;left:15%;top:12%;z-index:1}.centerIcons[data-v-97afe113]{width:var(--a52249ca);height:var(--a52249ca);display:flex;align-items:center;justify-content:center}.stackedIcons[data-v-97afe113]{position:relative;width:100%;height:100%}@media only screen and (max-width: 768px){.firstIcon[data-v-97afe113]{right:30%}.secondIcon[data-v-97afe113]{left:30%}}h3[data-v-be7ceae5]{margin-bottom:0}.interrogation-upload[data-v-be7ceae5]{max-width:720px}:root{--sidebar-width: 70px }.small-btn{padding:6px 8px;height:unset}.generator-types{position:fixed;height:calc(100vh - 67px);top:67px}.mobile-generator-types{width:100%}.generated-image{aspect-ratio:1 / 1;width:100%;height:100%;display:flex;justify-content:center;align-items:center;padding-top:20px;padding-bottom:20px}.generated-image>.el-card__body{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.el-collapse,.sidebar-container{width:100%}.form{padding-left:20px;margin-left:var(--sidebar-width)}.main{grid-area:main;display:flex;justify-content:center}.generate-cancel-btn{width:80%}.sidebar{grid-area:sidebar;max-width:90%}.image{grid-area:image}.container{display:grid;height:75vh;grid-template-columns:50% 50%;grid-template-rows:40px 95%;grid-template-areas:"sidebar main" "sidebar image"}@media only screen and (max-width: 1280px){.generated-image>.el-card__body{height:100%;display:flex;justify-content:center;align-items:center}.generated-image{width:80%;height:100%;padding-top:0;padding-bottom:0}.container{display:grid;height:110vh;grid-template-rows:minmax(400px,45vh) 65px 60%;grid-template-columns:100%;gap:10px;grid-template-areas:"image" "main" "sidebar"}.sidebar{max-width:100%}.main{flex-wrap:wrap;gap:5px}.main>*{width:100%!important;margin:0!important}.reset-btn{order:1}.generate-cancel-btn{order:0}}@media only screen and (max-width: 768px){.generated-image{width:100%;height:100%;padding-top:0;padding-bottom:0}.container{grid-template-rows:minmax(400px,50vh) 65px 60%}.form{padding-top:20px;padding-left:0;margin-left:0}}:root{--el-popup-modal-bg-color:var(--el-color-black);--el-popup-modal-opacity:.5}.v-modal-enter{animation:v-modal-in var(--el-transition-duration-fast) ease}.v-modal-leave{animation:v-modal-out var(--el-transition-duration-fast) ease forwards}@keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{background:var(--el-popup-modal-bg-color);height:100%;left:0;opacity:var(--el-popup-modal-opacity);position:fixed;top:0;width:100%}.el-popup-parent--hidden{overflow:hidden}.el-message-box{--el-messagebox-title-color:var(--el-text-color-primary);--el-messagebox-width:420px;--el-messagebox-border-radius:4px;--el-messagebox-box-shadow:var(--el-box-shadow);--el-messagebox-font-size:var(--el-font-size-large);--el-messagebox-content-font-size:var(--el-font-size-base);--el-messagebox-content-color:var(--el-text-color-regular);--el-messagebox-error-font-size:12px;--el-messagebox-padding-primary:12px;--el-messagebox-font-line-height:var(--el-font-line-height-primary);backface-visibility:hidden;background-color:var(--el-bg-color);border-radius:var(--el-messagebox-border-radius);box-shadow:var(--el-messagebox-box-shadow);box-sizing:border-box;display:inline-block;font-size:var(--el-messagebox-font-size);max-width:var(--el-messagebox-width);overflow:hidden;overflow-wrap:break-word;padding:var(--el-messagebox-padding-primary);position:relative;text-align:left;vertical-align:middle;width:100%}.el-message-box:focus{outline:none!important}.is-message-box .el-overlay-message-box{bottom:0;left:0;overflow:auto;padding:16px;position:fixed;right:0;text-align:center;top:0}.is-message-box .el-overlay-message-box:after{content:"";display:inline-block;height:100%;vertical-align:middle;width:0}.el-message-box.is-draggable .el-message-box__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-message-box__header{padding-bottom:var(--el-messagebox-padding-primary)}.el-message-box__header.show-close{padding-right:calc(var(--el-messagebox-padding-primary) + var(--el-message-close-size, 16px))}.el-message-box__title{color:var(--el-messagebox-title-color);font-size:var(--el-messagebox-font-size);line-height:var(--el-messagebox-font-line-height)}.el-message-box__headerbtn{background:transparent;border:none;cursor:pointer;font-size:var(--el-message-close-size,16px);height:40px;outline:none;padding:0;position:absolute;right:0;top:0;width:40px}.el-message-box__headerbtn .el-message-box__close{color:var(--el-color-info);font-size:inherit}.el-message-box__headerbtn:focus .el-message-box__close,.el-message-box__headerbtn:hover .el-message-box__close{color:var(--el-color-primary)}.el-message-box__content{color:var(--el-messagebox-content-color);font-size:var(--el-messagebox-content-font-size)}.el-message-box__container{align-items:center;display:flex;gap:12px}.el-message-box__input{padding-top:12px}.el-message-box__input div.invalid>input,.el-message-box__input div.invalid>input:focus{border-color:var(--el-color-error)}.el-message-box__status{font-size:24px}.el-message-box__status.el-message-box-icon--primary{--el-messagebox-color:var(--el-color-primary);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--success{--el-messagebox-color:var(--el-color-success);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--info{--el-messagebox-color:var(--el-color-info);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--warning{--el-messagebox-color:var(--el-color-warning);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--error{--el-messagebox-color:var(--el-color-error);color:var(--el-messagebox-color)}.el-message-box__message{margin:0;min-width:0}.el-message-box__message p{line-height:var(--el-messagebox-font-line-height);margin:0}.el-message-box__errormsg{color:var(--el-color-error);font-size:var(--el-messagebox-error-font-size);line-height:var(--el-messagebox-font-line-height)}.el-message-box__btns{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;padding-top:var(--el-messagebox-padding-primary)}.el-message-box--center .el-message-box__title{align-items:center;display:flex;gap:6px;justify-content:center}.el-message-box--center .el-message-box__status{font-size:inherit}.el-message-box--center .el-message-box__btns,.el-message-box--center .el-message-box__container{justify-content:center}.fade-in-linear-enter-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration)}.fade-in-linear-leave-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration) reverse}@keyframes msgbox-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}.main-output-container{display:flex;justify-content:center;background-color:var(--el-fill-color-light)}.main-output{width:100%;height:512px;max-height:100%}.image-viewer{width:100%;max-width:1024px;height:72vh;display:flex;flex-direction:column}.image-viewer>.el-dialog__header{padding:26px}.image-viewer>.el-dialog__body{display:flex;flex-direction:column;justify-content:space-between;gap:10px;text-align:center;word-break:keep-all;overflow-y:scroll;padding-top:0;height:100%}@media only screen and (max-width: 1280px){.image-viewer{width:720px}}@media only screen and (max-width: 768px){.image-viewer{width:100%;height:80vh}.main-output{width:100%;height:40vh}}.el-menu--horizontal .el-menu-item[data-v-92d556b8]:not(.is-disabled):focus,.el-menu--horizontal .el-menu-item[data-v-92d556b8]:not(.is-disabled):hover{background-color:transparent!important}.remove-item-styling[data-v-92d556b8]{cursor:default;color:var(--el-menu-text-color)!important;background-color:transparent!important}.remove-item-styling[data-v-92d556b8]:hover{cursor:default;color:var(--el-menu-text-color)!important}.view[data-v-92d556b8]{margin-top:80px}.generator-icons[data-v-92d556b8]{position:relative;display:inline-flex;justify-content:center;align-items:center}.generator-badge[data-v-92d556b8]{position:absolute;bottom:9px;right:-7px;color:var(--el-color-danger)!important}.mobile-menu[data-v-92d556b8]{z-index:100;position:fixed;bottom:0;height:50px;left:50%;transform:translate(-50%);width:100%;justify-content:center;--el-menu-bg-color: var(--el-mask-color) }.mobile-menu[data-v-92d556b8]>*{width:60px}html.dark{color-scheme:dark;--el-color-primary:#409eff;--el-color-primary-light-3:rgb(51,117,185);--el-color-primary-light-5:rgb(42,89,138);--el-color-primary-light-7:rgb(33,61,91);--el-color-primary-light-8:rgb(29,48,67);--el-color-primary-light-9:rgb(24,34,43);--el-color-primary-dark-2:rgb(102,177,255);--el-color-success:#67c23a;--el-color-success-light-3:rgb(78,142,47);--el-color-success-light-5:rgb(62,107,39);--el-color-success-light-7:rgb(45,72,31);--el-color-success-light-8:rgb(37,55,28);--el-color-success-light-9:rgb(28,37,24);--el-color-success-dark-2:rgb(133,206,97);--el-color-warning:#e6a23c;--el-color-warning-light-3:rgb(167,119,48);--el-color-warning-light-5:rgb(125,91,40);--el-color-warning-light-7:rgb(83,63,32);--el-color-warning-light-8:rgb(62,48,28);--el-color-warning-light-9:rgb(41,34,24);--el-color-warning-dark-2:rgb(235,181,99);--el-color-danger:#f56c6c;--el-color-danger-light-3:rgb(178,82,82);--el-color-danger-light-5:rgb(133,64,64);--el-color-danger-light-7:rgb(88,46,46);--el-color-danger-light-8:rgb(65,38,38);--el-color-danger-light-9:rgb(42,29,29);--el-color-danger-dark-2:rgb(247,137,137);--el-color-error:#f56c6c;--el-color-error-light-3:rgb(178,82,82);--el-color-error-light-5:rgb(133,64,64);--el-color-error-light-7:rgb(88,46,46);--el-color-error-light-8:rgb(65,38,38);--el-color-error-light-9:rgb(42,29,29);--el-color-error-dark-2:rgb(247,137,137);--el-color-info:#909399;--el-color-info-light-3:rgb(107,109,113);--el-color-info-light-5:rgb(82,84,87);--el-color-info-light-7:rgb(57,58,60);--el-color-info-light-8:rgb(45,45,47);--el-color-info-light-9:rgb(32,33,33);--el-color-info-dark-2:rgb(166,169,173);--el-box-shadow:0px 12px 32px 4px rgba(0,0,0,.36),0px 8px 20px rgba(0,0,0,.72);--el-box-shadow-light:0px 0px 12px rgba(0,0,0,.72);--el-box-shadow-lighter:0px 0px 6px rgba(0,0,0,.72);--el-box-shadow-dark:0px 16px 48px 16px rgba(0,0,0,.72),0px 12px 32px #000000,0px 8px 16px -8px #000000;--el-bg-color-page:#0a0a0a;--el-bg-color:#141414;--el-bg-color-overlay:#1d1e1f;--el-text-color-primary:#E5EAF3;--el-text-color-regular:#CFD3DC;--el-text-color-secondary:#A3A6AD;--el-text-color-placeholder:#8D9095;--el-text-color-disabled:#6C6E72;--el-border-color-darker:#636466;--el-border-color-dark:#58585B;--el-border-color:#4C4D4F;--el-border-color-light:#414243;--el-border-color-lighter:#363637;--el-border-color-extra-light:#2B2B2C;--el-fill-color-darker:#424243;--el-fill-color-dark:#39393A;--el-fill-color:#303030;--el-fill-color-light:#262727;--el-fill-color-lighter:#1D1D1D;--el-fill-color-extra-light:#191919;--el-fill-color-blank:transparent;--el-mask-color:rgba(0,0,0,.8);--el-mask-color-extra-light:rgba(0,0,0,.3)}html.dark .el-button{--el-button-disabled-text-color:rgba(255,255,255,.5)}html.dark .el-card{--el-card-bg-color:var(--el-bg-color-overlay)}html.dark .el-empty{--el-empty-fill-color-0:var(--el-color-black);--el-empty-fill-color-1:#4b4b52;--el-empty-fill-color-2:#36383d;--el-empty-fill-color-3:#1e1e20;--el-empty-fill-color-4:#262629;--el-empty-fill-color-5:#202124;--el-empty-fill-color-6:#212224;--el-empty-fill-color-7:#1b1c1f;--el-empty-fill-color-8:#1c1d1f;--el-empty-fill-color-9:#18181a}html{height:100%}body{padding:0;height:calc(100% - 16px);display:flex;justify-content:center;transition:color .5s,background-color .5s;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:15px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#app{height:100%}#app,.menu{width:calc(100% - 8px)}@media only screen and (min-width: 1024px){#app,.menu{max-width:1024px}}@media only screen and (min-width: 1280px){#app,.menu{max-width:1280px}}@media only screen and (min-width: 1536px){#app,.menu{max-width:1536px}}.image-notification{padding:25px!important;width:310px!important;justify-content:space-evenly;user-select:none}.image-notification>.el-notification__icon{height:auto!important;width:auto!important;align-items:start!important}.center-both{display:flex;justify-content:center;align-items:center}.center-horizontal{display:flex;justify-content:center}.center-vertical{display:flex;align-items:center}.menu-container{width:100%;z-index:100;padding-top:4px;backdrop-filter:blur(4px);display:flex;justify-content:center;border-bottom:solid 1px var(--el-menu-border-color);position:fixed;top:0;left:0}html.dark .menu-container{background-color:#00000080}html.light .menu-container{background-color:#ffffff80}.menu{border-bottom:0;background-color:transparent}*{scrollbar-width:auto;scrollbar-color:rgba(163,166,173,.3) transparent}*::-webkit-scrollbar{width:12px}*::-webkit-scrollbar-thumb{background-color:#a3a6ad4d;border-radius:10px;border:3px none transparent}*::-webkit-scrollbar-thumb:hover{background-color:#a3a6ad80}#extra_image_input::file-selector-button{visibility:hidden}.thumbnail[data-v-2920607f]{display:block;width:100%;height:100%;border-radius:4px}.thumbnail[data-v-2920607f]:hover{cursor:pointer}.relative[data-v-2920607f]{position:relative}.image-action[data-v-2920607f]{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.starred-icon[data-v-2920607f]{position:absolute;left:5px;top:5px}.select-container[data-v-2920607f]{position:absolute;width:100%;height:100%;pointer-events:all}.select-icon[data-v-2920607f]{position:absolute;right:5px;top:5px}.el-empty{--el-empty-padding:40px 0;--el-empty-image-width:160px;--el-empty-description-margin-top:20px;--el-empty-bottom-margin-top:20px;--el-empty-fill-color-0:var(--el-color-white);--el-empty-fill-color-1:#fcfcfd;--el-empty-fill-color-2:#f8f9fb;--el-empty-fill-color-3:#f7f8fc;--el-empty-fill-color-4:#eeeff3;--el-empty-fill-color-5:#edeef2;--el-empty-fill-color-6:#e9ebef;--el-empty-fill-color-7:#e5e7e9;--el-empty-fill-color-8:#e0e3e9;--el-empty-fill-color-9:#d5d7de;align-items:center;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;padding:var(--el-empty-padding);text-align:center}.el-empty__image{width:var(--el-empty-image-width)}.el-empty__image img{height:100%;-o-object-fit:contain;object-fit:contain;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:top;width:100%}.el-empty__image svg{color:var(--el-svg-monochrome-grey);fill:currentColor;height:100%;vertical-align:top;width:100%}.el-empty__description{margin-top:var(--el-empty-description-margin-top)}.el-empty__description p{color:var(--el-text-color-secondary);font-size:var(--el-font-size-base);margin:0}.el-empty__bottom{margin-top:var(--el-empty-bottom-margin-top)}.el-pagination{--el-pagination-font-size:14px;--el-pagination-bg-color:var(--el-fill-color-blank);--el-pagination-text-color:var(--el-text-color-primary);--el-pagination-border-radius:2px;--el-pagination-button-color:var(--el-text-color-primary);--el-pagination-button-width:32px;--el-pagination-button-height:32px;--el-pagination-button-disabled-color:var(--el-text-color-placeholder);--el-pagination-button-disabled-bg-color:var(--el-fill-color-blank);--el-pagination-button-bg-color:var(--el-fill-color);--el-pagination-hover-color:var(--el-color-primary);--el-pagination-font-size-small:12px;--el-pagination-button-width-small:24px;--el-pagination-button-height-small:24px;--el-pagination-button-width-large:40px;--el-pagination-button-height-large:40px;--el-pagination-item-gap:16px;align-items:center;color:var(--el-pagination-text-color);display:flex;font-size:var(--el-pagination-font-size);font-weight:400;white-space:nowrap}.el-pagination .el-input__inner{-moz-appearance:textfield;text-align:center}.el-pagination .el-select{width:128px}.el-pagination button{align-items:center;background:var(--el-pagination-bg-color);border:none;border-radius:var(--el-pagination-border-radius);box-sizing:border-box;color:var(--el-pagination-button-color);cursor:pointer;display:flex;font-size:var(--el-pagination-font-size);height:var(--el-pagination-button-height);justify-content:center;line-height:var(--el-pagination-button-height);min-width:var(--el-pagination-button-width);padding:0 4px;text-align:center}.el-pagination button *{pointer-events:none}.el-pagination button:focus{outline:none}.el-pagination button.is-active,.el-pagination button:hover{color:var(--el-pagination-hover-color)}.el-pagination button.is-active{cursor:default;font-weight:700}.el-pagination button.is-active.is-disabled{color:var(--el-text-color-secondary);font-weight:700}.el-pagination button.is-disabled,.el-pagination button:disabled{background-color:var(--el-pagination-button-disabled-bg-color);color:var(--el-pagination-button-disabled-color);cursor:not-allowed}.el-pagination button:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-pagination .btn-next .el-icon,.el-pagination .btn-prev .el-icon{display:block;font-size:12px;font-weight:700;width:inherit}.el-pagination>.is-first{margin-left:0!important}.el-pagination>.is-last{margin-right:0!important}.el-pagination .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination__sizes,.el-pagination__total{color:var(--el-text-color-regular);font-weight:400;margin-left:var(--el-pagination-item-gap)}.el-pagination__total[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__jump{align-items:center;color:var(--el-text-color-regular);display:flex;font-weight:400;margin-left:var(--el-pagination-item-gap)}.el-pagination__jump[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__goto{margin-right:8px}.el-pagination__editor{box-sizing:border-box;text-align:center}.el-pagination__editor.el-input{width:56px}.el-pagination__editor .el-input__inner::-webkit-inner-spin-button,.el-pagination__editor .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-pagination__classifier{margin-left:8px}.el-pagination__rightwrapper{align-items:center;display:flex;flex:1;justify-content:flex-end}.el-pagination.is-background .btn-next,.el-pagination.is-background .btn-prev,.el-pagination.is-background .el-pager li{background-color:var(--el-pagination-button-bg-color);margin:0 4px}.el-pagination.is-background .btn-next.is-active,.el-pagination.is-background .btn-prev.is-active,.el-pagination.is-background .el-pager li.is-active{background-color:var(--el-color-primary);color:var(--el-color-white)}.el-pagination.is-background .btn-next.is-disabled,.el-pagination.is-background .btn-next:disabled,.el-pagination.is-background .btn-prev.is-disabled,.el-pagination.is-background .btn-prev:disabled,.el-pagination.is-background .el-pager li.is-disabled,.el-pagination.is-background .el-pager li:disabled{background-color:var(--el-disabled-bg-color);color:var(--el-text-color-placeholder)}.el-pagination.is-background .btn-next.is-disabled.is-active,.el-pagination.is-background .btn-next:disabled.is-active,.el-pagination.is-background .btn-prev.is-disabled.is-active,.el-pagination.is-background .btn-prev:disabled.is-active,.el-pagination.is-background .el-pager li.is-disabled.is-active,.el-pagination.is-background .el-pager li:disabled.is-active{background-color:var(--el-fill-color-dark);color:var(--el-text-color-secondary)}.el-pagination.is-background .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination--small .btn-next,.el-pagination--small .btn-prev,.el-pagination--small .el-pager li{font-size:var(--el-pagination-font-size-small);height:var(--el-pagination-button-height-small);line-height:var(--el-pagination-button-height-small);min-width:var(--el-pagination-button-width-small)}.el-pagination--small button,.el-pagination--small span:not([class*=suffix]){font-size:var(--el-pagination-font-size-small)}.el-pagination--small .el-select{width:100px}.el-pagination--large .btn-next,.el-pagination--large .btn-prev,.el-pagination--large .el-pager li{height:var(--el-pagination-button-height-large);line-height:var(--el-pagination-button-height-large);min-width:var(--el-pagination-button-width-large)}.el-pagination--large .el-select .el-input{width:160px}.el-pager{font-size:0;list-style:none;margin:0;padding:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-pager,.el-pager li{align-items:center;display:flex}.el-pager li{background:var(--el-pagination-bg-color);border:none;border-radius:var(--el-pagination-border-radius);box-sizing:border-box;color:var(--el-pagination-button-color);cursor:pointer;font-size:var(--el-pagination-font-size);height:var(--el-pagination-button-height);justify-content:center;line-height:var(--el-pagination-button-height);min-width:var(--el-pagination-button-width);padding:0 4px;text-align:center}.el-pager li *{pointer-events:none}.el-pager li:focus{outline:none}.el-pager li.is-active,.el-pager li:hover{color:var(--el-pagination-hover-color)}.el-pager li.is-active{cursor:default;font-weight:700}.el-pager li.is-active.is-disabled{color:var(--el-text-color-secondary);font-weight:700}.el-pager li.is-disabled,.el-pager li:disabled{background-color:var(--el-pagination-button-disabled-bg-color);color:var(--el-pagination-button-disabled-color);cursor:not-allowed}.el-pager li:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-popover{--el-popover-bg-color:var(--el-bg-color-overlay);--el-popover-font-size:var(--el-font-size-base);--el-popover-border-color:var(--el-border-color-lighter);--el-popover-padding:12px;--el-popover-padding-large:18px 20px;--el-popover-title-font-size:16px;--el-popover-title-text-color:var(--el-text-color-primary);--el-popover-border-radius:4px}.el-popover.el-popper{background:var(--el-popover-bg-color);border:1px solid var(--el-popover-border-color);border-radius:var(--el-popover-border-radius);box-shadow:var(--el-box-shadow-light);box-sizing:border-box;color:var(--el-text-color-regular);font-size:var(--el-popover-font-size);line-height:1.4;min-width:150px;overflow-wrap:break-word;padding:var(--el-popover-padding);z-index:var(--el-index-popper)}.el-popover.el-popper--plain{padding:var(--el-popover-padding-large)}.el-popover__title{color:var(--el-popover-title-text-color);font-size:var(--el-popover-title-font-size);line-height:1;margin-bottom:12px}.el-popover__reference:focus:hover,.el-popover__reference:focus:not(.focusing){outline-width:0}.el-popover.el-popper.is-dark{--el-popover-bg-color:var(--el-text-color-primary);--el-popover-border-color:var(--el-text-color-primary);--el-popover-title-text-color:var(--el-bg-color);color:var(--el-bg-color)}.el-popover.el-popper:focus,.el-popover.el-popper:focus:active{outline-width:0}.images[data-v-8a60c6a0]{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;width:100%}.selected[data-v-8a60c6a0]{color:var(--el-color-primary);text-decoration:underline;background-color:#262626}.btn-select[data-v-8a60c6a0]{width:48px;height:32px}.options[data-v-8a60c6a0]{display:flex;align-items:center;gap:8px}.options[data-v-8a60c6a0]>*{margin:0}.images-top-bar[data-v-8a60c6a0]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.images-top-bar[data-v-8a60c6a0]>*{width:100%;display:flex;justify-content:center;text-align:center;white-space:nowrap;flex-grow:0}.bottom-pagination[data-v-8a60c6a0]{display:none}@media only screen and (max-width: 768px){.images-top-bar[data-v-8a60c6a0]{flex-wrap:wrap}.bottom-pagination[data-v-8a60c6a0]{margin-bottom:50px;display:flex}}.el-tabs{--el-tabs-header-height:40px;display:flex}.el-tabs__header{align-items:center;display:flex;justify-content:space-between;margin:0 0 15px;padding:0;position:relative}.el-tabs__header-vertical{flex-direction:column}.el-tabs__active-bar{background-color:var(--el-color-primary);bottom:0;height:2px;left:0;list-style:none;position:absolute;transition:width var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),transform var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);z-index:1}.el-tabs__new-tab{align-items:center;border:1px solid var(--el-border-color);border-radius:3px;color:var(--el-text-color-primary);cursor:pointer;display:flex;flex-shrink:0;font-size:12px;height:20px;justify-content:center;line-height:20px;margin:10px 0 10px 10px;text-align:center;transition:all .15s;width:20px}.el-tabs__new-tab .is-icon-plus{height:inherit;transform:scale(.8);width:inherit}.el-tabs__new-tab .is-icon-plus svg{vertical-align:middle}.el-tabs__new-tab:hover{color:var(--el-color-primary)}.el-tabs__new-tab-vertical{margin-left:0}.el-tabs__nav-wrap{flex:1 auto;margin-bottom:-1px;overflow:hidden;position:relative}.el-tabs__nav-wrap:after{background-color:var(--el-border-color-light);bottom:0;content:"";height:2px;left:0;position:absolute;width:100%;z-index:var(--el-index-normal)}.el-tabs__nav-wrap.is-scrollable{box-sizing:border-box;padding:0 20px}.el-tabs__nav-scroll{overflow:hidden}.el-tabs__nav-next,.el-tabs__nav-prev{color:var(--el-text-color-secondary);cursor:pointer;font-size:12px;line-height:44px;position:absolute;text-align:center;width:20px}.el-tabs__nav-next{right:0}.el-tabs__nav-prev{left:0}.el-tabs__nav{display:flex;float:left;position:relative;transition:transform var(--el-transition-duration);white-space:nowrap;z-index:calc(var(--el-index-normal) + 1)}.el-tabs__nav.is-stretch{display:flex;min-width:100%}.el-tabs__nav.is-stretch>*{flex:1;text-align:center}.el-tabs__item{align-items:center;box-sizing:border-box;color:var(--el-text-color-primary);display:flex;font-size:var(--el-font-size-base);font-weight:500;height:var(--el-tabs-header-height);justify-content:center;list-style:none;padding:0 20px;position:relative}.el-tabs__item:focus,.el-tabs__item:focus:active{outline:none}.el-tabs__item:focus-visible{border-radius:3px;box-shadow:0 0 2px 2px var(--el-color-primary) inset}.el-tabs__item .is-icon-close{border-radius:50%;margin-left:5px;text-align:center;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs__item .is-icon-close:before{display:inline-block;transform:scale(.9)}.el-tabs__item .is-icon-close:hover{background-color:var(--el-text-color-placeholder);color:#fff}.el-tabs__item.is-active,.el-tabs__item:hover{color:var(--el-color-primary)}.el-tabs__item:hover{cursor:pointer}.el-tabs__item.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-tabs__content{flex-grow:1;overflow:hidden;position:relative}.el-tabs--bottom>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:0}.el-tabs--bottom>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top>.el-tabs__header .el-tabs__item:last-child{padding-right:0}.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:20px}.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child{padding-right:20px}.el-tabs--card>.el-tabs__header{border-bottom:1px solid var(--el-border-color-light);box-sizing:border-box;height:var(--el-tabs-header-height)}.el-tabs--card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--card>.el-tabs__header .el-tabs__nav{border:1px solid var(--el-border-color-light);border-bottom:none;border-radius:4px 4px 0 0;box-sizing:border-box}.el-tabs--card>.el-tabs__header .el-tabs__active-bar{display:none}.el-tabs--card>.el-tabs__header .el-tabs__item .is-icon-close{font-size:12px;height:14px;overflow:hidden;position:relative;right:-2px;transform-origin:100% 50%;width:0}.el-tabs--card>.el-tabs__header .el-tabs__item{border-bottom:1px solid transparent;border-left:1px solid var(--el-border-color-light);margin-top:-1px;transition:color var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),padding var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs--card>.el-tabs__header .el-tabs__item:first-child{border-left:none}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover{padding-left:13px;padding-right:13px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover .is-icon-close{width:14px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{border-bottom-color:var(--el-bg-color)}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable{padding-left:20px;padding-right:20px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable .is-icon-close{width:14px}.el-tabs--border-card{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color)}.el-tabs--border-card>.el-tabs__content{padding:15px}.el-tabs--border-card>.el-tabs__header{background-color:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color-light);margin:0}.el-tabs--border-card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--border-card>.el-tabs__header .el-tabs__item{border:1px solid transparent;color:var(--el-text-color-secondary);margin-top:-1px;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs--border-card>.el-tabs__header .el-tabs__item+.el-tabs__item,.el-tabs--border-card>.el-tabs__header .el-tabs__item:first-child{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{background-color:var(--el-bg-color-overlay);border-left-color:var(--el-border-color);border-right-color:var(--el-border-color);color:var(--el-color-primary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item:not(.is-disabled):hover{color:var(--el-color-primary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-disabled{color:var(--el-disabled-text-color)}.el-tabs--border-card>.el-tabs__header .is-scrollable .el-tabs__item:first-child{margin-left:0}.el-tabs--bottom{flex-direction:column}.el-tabs--bottom .el-tabs__header.is-bottom{margin-bottom:0;margin-top:10px}.el-tabs--bottom.el-tabs--border-card .el-tabs__header.is-bottom{border-bottom:0;border-top:1px solid var(--el-border-color)}.el-tabs--bottom.el-tabs--border-card .el-tabs__nav-wrap.is-bottom{margin-bottom:0;margin-top:-1px}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom:not(.is-active){border:1px solid transparent}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom{margin:0 -1px -1px}.el-tabs--left,.el-tabs--right{overflow:hidden}.el-tabs--left .el-tabs__header.is-left,.el-tabs--left .el-tabs__header.is-right,.el-tabs--left .el-tabs__nav-scroll,.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__header.is-left,.el-tabs--right .el-tabs__header.is-right,.el-tabs--right .el-tabs__nav-scroll,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{height:100%}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__active-bar.is-right,.el-tabs--right .el-tabs__active-bar.is-left,.el-tabs--right .el-tabs__active-bar.is-right{bottom:auto;height:auto;top:0;width:2px}.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{margin-bottom:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{cursor:pointer;height:30px;line-height:30px;text-align:center;width:100%}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i{transform:rotate(90deg)}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{left:auto;top:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next{bottom:0;right:auto}.el-tabs--left .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--left .el-tabs__nav-wrap.is-right.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-right.is-scrollable{padding:30px 0}.el-tabs--left .el-tabs__nav-wrap.is-left:after,.el-tabs--left .el-tabs__nav-wrap.is-right:after,.el-tabs--right .el-tabs__nav-wrap.is-left:after,.el-tabs--right .el-tabs__nav-wrap.is-right:after{bottom:auto;height:100%;top:0;width:2px}.el-tabs--left .el-tabs__nav.is-left,.el-tabs--left .el-tabs__nav.is-right,.el-tabs--right .el-tabs__nav.is-left,.el-tabs--right .el-tabs__nav.is-right{flex-direction:column}.el-tabs--left .el-tabs__item.is-left,.el-tabs--right .el-tabs__item.is-left{justify-content:flex-end}.el-tabs--left .el-tabs__item.is-right,.el-tabs--right .el-tabs__item.is-right{justify-content:flex-start}.el-tabs--left{flex-direction:row}.el-tabs--left .el-tabs__header.is-left{margin-bottom:0;margin-right:10px}.el-tabs--left .el-tabs__nav-wrap.is-left{margin-right:-1px}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__nav-wrap.is-left:after{left:auto;right:0}.el-tabs--left .el-tabs__item.is-left{text-align:right}.el-tabs--left.el-tabs--card .el-tabs__active-bar.is-left{display:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left{border-bottom:none;border-left:none;border-right:1px solid var(--el-border-color-light);border-top:1px solid var(--el-border-color-light);text-align:left}.el-tabs--left.el-tabs--card .el-tabs__item.is-left:first-child{border-right:1px solid var(--el-border-color-light);border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active{border:1px solid var(--el-border-color-light);border-bottom:none;border-left:none;border-right:1px solid #fff}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:first-child{border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:last-child{border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__nav{border-bottom:1px solid var(--el-border-color-light);border-radius:4px 0 0 4px;border-right:none}.el-tabs--left.el-tabs--card .el-tabs__new-tab{float:none}.el-tabs--left.el-tabs--border-card .el-tabs__header.is-left{border-right:1px solid var(--el-border-color)}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left{border:1px solid transparent;margin:-1px 0 -1px -1px}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left.is-active{border-color:rgb(209,219,229) transparent}.el-tabs--left>.el-tabs__content+.el-tabs__header{order:-1}.el-tabs--right .el-tabs__header.is-right{margin-bottom:0;margin-left:10px}.el-tabs--right .el-tabs__nav-wrap.is-right{margin-left:-1px}.el-tabs--right .el-tabs__nav-wrap.is-right:after{left:0;right:auto}.el-tabs--right .el-tabs__active-bar.is-right{left:0}.el-tabs--right.el-tabs--card .el-tabs__active-bar.is-right{display:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right{border-bottom:none;border-top:1px solid var(--el-border-color-light)}.el-tabs--right.el-tabs--card .el-tabs__item.is-right:first-child{border-left:1px solid var(--el-border-color-light);border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active{border:1px solid var(--el-border-color-light);border-bottom:none;border-left:1px solid #fff;border-right:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:first-child{border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:last-child{border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__nav{border-bottom:1px solid var(--el-border-color-light);border-left:none;border-radius:0 4px 4px 0}.el-tabs--right.el-tabs--border-card .el-tabs__header.is-right{border-left:1px solid var(--el-border-color)}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right{border:1px solid transparent;margin:-1px -1px -1px 0}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right.is-active{border-color:rgb(209,219,229) transparent}.el-tabs--top{flex-direction:column}.el-tabs--top>.el-tabs__content+.el-tabs__header{order:-1}.slideInLeft-transition,.slideInRight-transition{display:inline-block}.slideInRight-enter{animation:slideInRight-enter var(--el-transition-duration)}.slideInRight-leave{animation:slideInRight-leave var(--el-transition-duration);left:0;position:absolute;right:0}.slideInLeft-enter{animation:slideInLeft-enter var(--el-transition-duration)}.slideInLeft-leave{animation:slideInLeft-leave var(--el-transition-duration);left:0;position:absolute;right:0}@keyframes slideInRight-enter{0%{opacity:0;transform:translate(100%);transform-origin:0 0}to{opacity:1;transform:translate(0);transform-origin:0 0}}@keyframes slideInRight-leave{0%{opacity:1;transform:translate(0);transform-origin:0 0}to{opacity:0;transform:translate(100%);transform-origin:0 0}}@keyframes slideInLeft-enter{0%{opacity:0;transform:translate(-100%);transform-origin:0 0}to{opacity:1;transform:translate(0);transform-origin:0 0}}@keyframes slideInLeft-leave{0%{opacity:1;transform:translate(0);transform-origin:0 0}to{opacity:0;transform:translate(-100%);transform-origin:0 0}}.el-radio-group{align-items:center;display:inline-flex;flex-wrap:wrap;font-size:0}.el-radio-button{--el-radio-button-checked-bg-color:var(--el-color-primary);--el-radio-button-checked-text-color:var(--el-color-white);--el-radio-button-checked-border-color:var(--el-color-primary);--el-radio-button-disabled-checked-fill:var(--el-border-color-extra-light)}.el-radio-button,.el-radio-button__inner{display:inline-block;outline:none;position:relative}.el-radio-button__inner{-webkit-appearance:none;background:var(--el-button-bg-color,var(--el-fill-color-blank));border:var(--el-border);border-left:0;border-radius:0;box-sizing:border-box;color:var(--el-button-text-color,var(--el-text-color-regular));cursor:pointer;font-size:var(--el-font-size-base);font-weight:var(--el-button-font-weight,var(--el-font-weight-primary));line-height:1;margin:0;padding:8px 15px;text-align:center;transition:var(--el-transition-all);-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.el-radio-button__inner.is-round{padding:8px 15px}.el-radio-button__inner:hover{color:var(--el-color-primary)}.el-radio-button__inner [class*=el-icon-]{line-height:.9}.el-radio-button__inner [class*=el-icon-]+span{margin-left:5px}.el-radio-button:first-child .el-radio-button__inner{border-left:var(--el-border);border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);box-shadow:none!important}.el-radio-button.is-active .el-radio-button__original-radio:not(:disabled)+.el-radio-button__inner{background-color:var(--el-radio-button-checked-bg-color,var(--el-color-primary));border-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));box-shadow:-1px 0 0 0 var(--el-radio-button-checked-border-color,var(--el-color-primary));color:var(--el-radio-button-checked-text-color,var(--el-color-white))}.el-radio-button__original-radio{opacity:0;outline:none;position:absolute;z-index:-1}.el-radio-button__original-radio:focus-visible+.el-radio-button__inner{border-left:var(--el-border);border-left-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));border-radius:var(--el-border-radius-base);box-shadow:none;outline:2px solid var(--el-radio-button-checked-border-color);outline-offset:1px;z-index:2}.el-radio-button__original-radio:disabled+.el-radio-button__inner{background-color:var(--el-button-disabled-bg-color,var(--el-fill-color-blank));background-image:none;border-color:var(--el-button-disabled-border-color,var(--el-border-color-light));box-shadow:none;color:var(--el-disabled-text-color);cursor:not-allowed}.el-radio-button__original-radio:disabled:checked+.el-radio-button__inner{background-color:var(--el-radio-button-disabled-checked-fill)}.el-radio-button:last-child .el-radio-button__inner{border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0}.el-radio-button:first-child:last-child .el-radio-button__inner{border-radius:var(--el-border-radius-base)}.el-radio-button--large .el-radio-button__inner{border-radius:0;font-size:var(--el-font-size-base);padding:12px 19px}.el-radio-button--large .el-radio-button__inner.is-round{padding:12px 19px}.el-radio-button--small .el-radio-button__inner{border-radius:0;font-size:12px;padding:5px 11px}.el-radio-button--small .el-radio-button__inner.is-round{padding:5px 11px}.anon[data-v-b6ca7a75]{width:80px}.el-tab-pane[data-v-b6ca7a75]{max-width:600px}h2[data-v-b6ca7a75]{margin-top:0}.apikey[data-v-b6ca7a75]{width:calc(100% - 80px)}@media only screen and (max-width: 1000px){.anon[data-v-b6ca7a75]{width:80px}.apikey[data-v-b6ca7a75]{width:100%}}
</style>
</head>
<body>
<div id="app"></div>
<script>window.history.pushState=window.history.replaceState=function(){};</script>
</body>
</html>