Files
koboldcpp/embd_res/kcpp_sdui.embd
T
2026-09-05 09:29:08 +08:00

537 lines
1.3 MiB
Plaintext

<!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 ex=Object.defineProperty;var tx=(e,t,n)=>t in e?ex(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var nx=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Sg=(e,t,n)=>(tx(e,typeof t!="symbol"?t+"":t,n),n);var NY=nx((Qn,er)=>{(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 l of i)if(l.type==="childList")for(const m of l.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&r(m)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerpolicy&&(l.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?l.credentials="include":i.crossorigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();/**
* @vue/shared v3.5.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function wp(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const At={},Ro=[],at=()=>{},Bb=()=>!1,of=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Sp=e=>e.startsWith("onUpdate:"),Kt=Object.assign,Cp=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},rx=Object.prototype.hasOwnProperty,st=(e,t)=>rx.call(e,t),Ue=Array.isArray,Do=e=>Kl(e)==="[object Map]",$b=e=>Kl(e)==="[object Set]",Cg=e=>Kl(e)==="[object Date]",Ve=e=>typeof e=="function",Ke=e=>typeof e=="string",Or=e=>typeof e=="symbol",nt=e=>e!==null&&typeof e=="object",bc=e=>(nt(e)||Ve(e))&&Ve(e.then)&&Ve(e.catch),Nb=Object.prototype.toString,Kl=e=>Nb.call(e),qu=e=>Kl(e).slice(8,-1),zb=e=>Kl(e)==="[object Object]",xp=e=>Ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ns=wp(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),sf=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ix=/-\w/g,nr=sf(e=>e.replace(ix,t=>t.slice(1).toUpperCase())),ax=/\B([A-Z])/g,fa=sf(e=>e.replace(ax,"-$1").toLowerCase()),Xl=sf(e=>e.charAt(0).toUpperCase()+e.slice(1)),Zu=sf(e=>e?`on${Xl(e)}`:""),Zi=(e,t)=>!Object.is(e,t),Ju=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},jb=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},qd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ox=e=>{const t=Ke(e)?Number(e):NaN;return isNaN(t)?e:t};let xg;const ql=()=>xg||(xg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ze(e){if(Ue(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=Ke(r)?cx(r):ze(r);if(i)for(const l in i)t[l]=i[l]}return t}else if(Ke(e)||nt(e))return e}const sx=/;(?![^(]*\))/g,lx=/:([^]+)/,ux=/\/\*[^]*?\*\//g;function cx(e){const t={};return e.replace(ux,"").split(sx).forEach(n=>{if(n){const r=n.split(lx);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ce(e){let t="";if(Ke(e))t=e;else if(Ue(e))for(let n=0;n<e.length;n++){const r=ce(e[n]);r&&(t+=r+" ")}else if(nt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const fx="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",dx=wp(fx);function Vb(e){return!!e||e===""}function hx(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=_c(e[r],t[r]);return n}function _c(e,t){if(e===t)return!0;let n=Cg(e),r=Cg(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Or(e),r=Or(t),n||r)return e===t;if(n=Ue(e),r=Ue(t),n||r)return n&&r?hx(e,t):!1;if(n=nt(e),r=nt(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,l=Object.keys(t).length;if(i!==l)return!1;for(const m in e){const o=e.hasOwnProperty(m),a=t.hasOwnProperty(m);if(o&&!a||!o&&a||!_c(e[m],t[m]))return!1}}return String(e)===String(t)}const Ub=e=>!!(e&&e.__v_isRef===!0),Ee=e=>Ke(e)?e:e==null?"":Ue(e)||nt(e)&&(e.toString===Nb||!Ve(e.toString))?Ub(e)?Ee(e.value):JSON.stringify(e,Hb,2):String(e),Hb=(e,t)=>Ub(t)?Hb(e,t.value):Do(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],l)=>(n[Uf(r,l)+" =>"]=i,n),{})}:$b(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Uf(n))}:Or(t)?Uf(t):nt(t)&&!Ue(t)&&!zb(t)?String(t):t,Uf=(e,t="")=>{var n;return Or(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function px(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 _n;class Wb{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=_n,!t&&_n&&(this.index=(_n.scopes||(_n.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=_n;try{return _n=this,t()}finally{_n=n}}}on(){++this._on===1&&(this.prevScope=_n,_n=this)}off(){this._on>0&&--this._on===0&&(_n=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 Tp(e){return new Wb(e)}function kp(){return _n}function Ep(e,t=!1){_n&&_n.cleanups.push(e)}let Lt;const Hf=new WeakSet;class Gb{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,_n&&_n.active&&_n.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Hf.has(this)&&(Hf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Kb(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Tg(this),Xb(this);const t=Lt,n=kr;Lt=this,kr=!0;try{return this.fn()}finally{qb(this),Lt=t,kr=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Pp(t);this.deps=this.depsTail=void 0,Tg(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Hf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Zd(this)&&this.run()}get dirty(){return Zd(this)}}let Yb=0,zs,js;function Kb(e,t=!1){if(e.flags|=8,t){e.next=js,js=e;return}e.next=zs,zs=e}function Op(){Yb++}function Ap(){if(--Yb>0)return;if(js){let t=js;for(js=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;zs;){let t=zs;for(zs=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 Xb(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function qb(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),Pp(r),mx(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Zd(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Zb(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Zb(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ul)||(e.globalVersion=ul,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Zd(e))))return;e.flags|=2;const t=e.dep,n=Lt,r=kr;Lt=e,kr=!0;try{Xb(e);const i=e.fn(e._value);(t.version===0||Zi(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Lt=n,kr=r,qb(e),e.flags&=-3}}function Pp(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 l=n.computed.deps;l;l=l.nextDep)Pp(l,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function mx(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let kr=!0;const Jb=[];function yi(){Jb.push(kr),kr=!1}function bi(){const e=Jb.pop();kr=e===void 0?!0:e}function Tg(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Lt;Lt=void 0;try{t()}finally{Lt=n}}}let ul=0;class gx{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 Ip{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(!Lt||!kr||Lt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Lt)n=this.activeLink=new gx(Lt,this),Lt.deps?(n.prevDep=Lt.depsTail,Lt.depsTail.nextDep=n,Lt.depsTail=n):Lt.deps=Lt.depsTail=n,Qb(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=Lt.depsTail,n.nextDep=void 0,Lt.depsTail.nextDep=n,Lt.depsTail=n,Lt.deps===n&&(Lt.deps=r)}return n}trigger(t){this.version++,ul++,this.notify(t)}notify(t){Op();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ap()}}}function Qb(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)Qb(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const wc=new WeakMap,Na=Symbol(""),Jd=Symbol(""),cl=Symbol("");function wn(e,t,n){if(kr&&Lt){let r=wc.get(e);r||wc.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Ip),i.map=r,i.key=n),i.track()}}function di(e,t,n,r,i,l){const m=wc.get(e);if(!m){ul++;return}const o=a=>{a&&a.trigger()};if(Op(),t==="clear")m.forEach(o);else{const a=Ue(e),c=a&&xp(n);if(a&&n==="length"){const d=Number(r);m.forEach((u,f)=>{(f==="length"||f===cl||!Or(f)&&f>=d)&&o(u)})}else switch((n!==void 0||m.has(void 0))&&o(m.get(n)),c&&o(m.get(cl)),t){case"add":a?c&&o(m.get("length")):(o(m.get(Na)),Do(e)&&o(m.get(Jd)));break;case"delete":a||(o(m.get(Na)),Do(e)&&o(m.get(Jd)));break;case"set":Do(e)&&o(m.get(Na));break}}Ap()}function vx(e,t){const n=wc.get(e);return n&&n.get(t)}function vo(e){const t=rt(e);return t===e?t:(wn(t,"iterate",cl),dr(e)?t:t.map(dn))}function lf(e){return wn(e=rt(e),"iterate",cl),e}const yx={__proto__:null,[Symbol.iterator](){return Wf(this,Symbol.iterator,dn)},concat(...e){return vo(this).concat(...e.map(t=>Ue(t)?vo(t):t))},entries(){return Wf(this,"entries",e=>(e[1]=dn(e[1]),e))},every(e,t){return ti(this,"every",e,t,void 0,arguments)},filter(e,t){return ti(this,"filter",e,t,n=>n.map(dn),arguments)},find(e,t){return ti(this,"find",e,t,dn,arguments)},findIndex(e,t){return ti(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ti(this,"findLast",e,t,dn,arguments)},findLastIndex(e,t){return ti(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ti(this,"forEach",e,t,void 0,arguments)},includes(...e){return Gf(this,"includes",e)},indexOf(...e){return Gf(this,"indexOf",e)},join(e){return vo(this).join(e)},lastIndexOf(...e){return Gf(this,"lastIndexOf",e)},map(e,t){return ti(this,"map",e,t,void 0,arguments)},pop(){return Ss(this,"pop")},push(...e){return Ss(this,"push",e)},reduce(e,...t){return kg(this,"reduce",e,t)},reduceRight(e,...t){return kg(this,"reduceRight",e,t)},shift(){return Ss(this,"shift")},some(e,t){return ti(this,"some",e,t,void 0,arguments)},splice(...e){return Ss(this,"splice",e)},toReversed(){return vo(this).toReversed()},toSorted(e){return vo(this).toSorted(e)},toSpliced(...e){return vo(this).toSpliced(...e)},unshift(...e){return Ss(this,"unshift",e)},values(){return Wf(this,"values",dn)}};function Wf(e,t,n){const r=lf(e),i=r[t]();return r!==e&&!dr(e)&&(i._next=i.next,i.next=()=>{const l=i._next();return l.value&&(l.value=n(l.value)),l}),i}const bx=Array.prototype;function ti(e,t,n,r,i,l){const m=lf(e),o=m!==e&&!dr(e),a=m[t];if(a!==bx[t]){const u=a.apply(e,l);return o?dn(u):u}let c=n;m!==e&&(o?c=function(u,f){return n.call(this,dn(u),f,e)}:n.length>2&&(c=function(u,f){return n.call(this,u,f,e)}));const d=a.call(m,c,r);return o&&i?i(d):d}function kg(e,t,n,r){const i=lf(e);let l=n;return i!==e&&(dr(e)?n.length>3&&(l=function(m,o,a){return n.call(this,m,o,a,e)}):l=function(m,o,a){return n.call(this,m,dn(o),a,e)}),i[t](l,...r)}function Gf(e,t,n){const r=rt(e);wn(r,"iterate",cl);const i=r[t](...n);return(i===-1||i===!1)&&Dp(n[0])?(n[0]=rt(n[0]),r[t](...n)):i}function Ss(e,t,n=[]){yi(),Op();const r=rt(e)[t].apply(e,n);return Ap(),bi(),r}const _x=wp("__proto__,__v_isRef,__isVue"),e_=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Or));function wx(e){Or(e)||(e=String(e));const t=rt(this);return wn(t,"has",e),t.hasOwnProperty(e)}class t_{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,l=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return l;if(n==="__v_raw")return r===(i?l?Ix:a_:l?i_:r_).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const m=Ue(t);if(!i){let a;if(m&&(a=yx[n]))return a;if(n==="hasOwnProperty")return wx}const o=Reflect.get(t,n,Ot(t)?t:r);return(Or(n)?e_.has(n):_x(n))||(i||wn(t,"get",n),l)?o:Ot(o)?m&&xp(n)?o:o.value:nt(o)?i?as(o):Tt(o):o}}class n_ extends t_{constructor(t=!1){super(!1,t)}set(t,n,r,i){let l=t[n];if(!this._isShallow){const a=ra(l);if(!dr(r)&&!ra(r)&&(l=rt(l),r=rt(r)),!Ue(t)&&Ot(l)&&!Ot(r))return a||(l.value=r),!0}const m=Ue(t)&&xp(n)?Number(n)<t.length:st(t,n),o=Reflect.set(t,n,r,Ot(t)?t:i);return t===rt(i)&&(m?Zi(r,l)&&di(t,"set",n,r):di(t,"add",n,r)),o}deleteProperty(t,n){const r=st(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&di(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!Or(n)||!e_.has(n))&&wn(t,"has",n),r}ownKeys(t){return wn(t,"iterate",Ue(t)?"length":Na),Reflect.ownKeys(t)}}class Sx extends t_{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Cx=new n_,xx=new Sx,Tx=new n_(!0),Qd=e=>e,bu=e=>Reflect.getPrototypeOf(e);function kx(e,t,n){return function(...r){const i=this.__v_raw,l=rt(i),m=Do(l),o=e==="entries"||e===Symbol.iterator&&m,a=e==="keys"&&m,c=i[e](...r),d=n?Qd:t?Sc:dn;return!t&&wn(l,"iterate",a?Jd:Na),{next(){const{value:u,done:f}=c.next();return f?{value:u,done:f}:{value:o?[d(u[0]),d(u[1])]:d(u),done:f}},[Symbol.iterator](){return this}}}}function _u(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ex(e,t){const n={get(i){const l=this.__v_raw,m=rt(l),o=rt(i);e||(Zi(i,o)&&wn(m,"get",i),wn(m,"get",o));const{has:a}=bu(m),c=t?Qd:e?Sc:dn;if(a.call(m,i))return c(l.get(i));if(a.call(m,o))return c(l.get(o));l!==m&&l.get(i)},get size(){const i=this.__v_raw;return!e&&wn(rt(i),"iterate",Na),i.size},has(i){const l=this.__v_raw,m=rt(l),o=rt(i);return e||(Zi(i,o)&&wn(m,"has",i),wn(m,"has",o)),i===o?l.has(i):l.has(i)||l.has(o)},forEach(i,l){const m=this,o=m.__v_raw,a=rt(o),c=t?Qd:e?Sc:dn;return!e&&wn(a,"iterate",Na),o.forEach((d,u)=>i.call(l,c(d),c(u),m))}};return Kt(n,e?{add:_u("add"),set:_u("set"),delete:_u("delete"),clear:_u("clear")}:{add(i){!t&&!dr(i)&&!ra(i)&&(i=rt(i));const l=rt(this);return bu(l).has.call(l,i)||(l.add(i),di(l,"add",i,i)),this},set(i,l){!t&&!dr(l)&&!ra(l)&&(l=rt(l));const m=rt(this),{has:o,get:a}=bu(m);let c=o.call(m,i);c||(i=rt(i),c=o.call(m,i));const d=a.call(m,i);return m.set(i,l),c?Zi(l,d)&&di(m,"set",i,l):di(m,"add",i,l),this},delete(i){const l=rt(this),{has:m,get:o}=bu(l);let a=m.call(l,i);a||(i=rt(i),a=m.call(l,i)),o&&o.call(l,i);const c=l.delete(i);return a&&di(l,"delete",i,void 0),c},clear(){const i=rt(this),l=i.size!==0,m=i.clear();return l&&di(i,"clear",void 0,void 0),m}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=kx(i,e,t)}),n}function Mp(e,t){const n=Ex(e,t);return(r,i,l)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(st(n,i)&&i in r?n:r,i,l)}const Ox={get:Mp(!1,!1)},Ax={get:Mp(!1,!0)},Px={get:Mp(!0,!1)},r_=new WeakMap,i_=new WeakMap,a_=new WeakMap,Ix=new WeakMap;function Mx(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Lx(e){return e.__v_skip||!Object.isExtensible(e)?0:Mx(qu(e))}function Tt(e){return ra(e)?e:Rp(e,!1,Cx,Ox,r_)}function Lp(e){return Rp(e,!1,Tx,Ax,i_)}function as(e){return Rp(e,!0,xx,Px,a_)}function Rp(e,t,n,r,i){if(!nt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=Lx(e);if(l===0)return e;const m=i.get(e);if(m)return m;const o=new Proxy(e,l===2?r:n);return i.set(e,o),o}function Ji(e){return ra(e)?Ji(e.__v_raw):!!(e&&e.__v_isReactive)}function ra(e){return!!(e&&e.__v_isReadonly)}function dr(e){return!!(e&&e.__v_isShallow)}function Dp(e){return e?!!e.__v_raw:!1}function rt(e){const t=e&&e.__v_raw;return t?rt(t):e}function fl(e){return!st(e,"__v_skip")&&Object.isExtensible(e)&&jb(e,"__v_skip",!0),e}const dn=e=>nt(e)?Tt(e):e,Sc=e=>nt(e)?as(e):e;function Ot(e){return e?e.__v_isRef===!0:!1}function ie(e){return o_(e,!1)}function mn(e){return o_(e,!0)}function o_(e,t){return Ot(e)?e:new Rx(e,t)}class Rx{constructor(t,n){this.dep=new Ip,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:rt(t),this._value=n?t:dn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||dr(t)||ra(t);t=r?t:rt(t),Zi(t,n)&&(this._rawValue=t,this._value=r?t:dn(t),this.dep.trigger())}}function Cs(e){e.dep&&e.dep.trigger()}function _(e){return Ot(e)?e.value:e}const Dx={get:(e,t,n)=>t==="__v_raw"?e:_(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Ot(i)&&!Ot(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function s_(e){return Ji(e)?e:new Proxy(e,Dx)}function pr(e){const t=Ue(e)?new Array(e.length):{};for(const n in e)t[n]=l_(e,n);return t}class Fx{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 vx(rt(this._object),this._key)}}class Bx{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 rr(e,t,n){return Ot(e)?e:Ve(e)?new Bx(e):nt(e)&&arguments.length>1?l_(e,t,n):ie(e)}function l_(e,t,n){const r=e[t];return Ot(r)?r:new Fx(e,t,n)}class $x{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ip(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ul-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Lt!==this)return Kb(this,!0),!0}get value(){const t=this.dep.track();return Zb(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function u_(e,t,n=!1){let r,i;return Ve(e)?r=e:(r=e.get,i=e.set),new $x(r,i,n)}const wu={},Cc=new WeakMap;let Ca;function Nx(e,t=!1,n=Ca){if(n){let r=Cc.get(n);r||Cc.set(n,r=[]),r.push(e)}}function zx(e,t,n=At){const{immediate:r,deep:i,once:l,scheduler:m,augmentJob:o,call:a}=n,c=w=>i?w:dr(w)||i===!1||i===0?hi(w,1):hi(w);let d,u,f,s,h=!1,g=!1;if(Ot(e)?(u=()=>e.value,h=dr(e)):Ji(e)?(u=()=>c(e),h=!0):Ue(e)?(g=!0,h=e.some(w=>Ji(w)||dr(w)),u=()=>e.map(w=>{if(Ot(w))return w.value;if(Ji(w))return c(w);if(Ve(w))return a?a(w,2):w()})):Ve(e)?t?u=a?()=>a(e,2):e:u=()=>{if(f){yi();try{f()}finally{bi()}}const w=Ca;Ca=d;try{return a?a(e,3,[s]):e(s)}finally{Ca=w}}:u=at,t&&i){const w=u,S=i===!0?1/0:i;u=()=>hi(w(),S)}const p=kp(),v=()=>{d.stop(),p&&p.active&&Cp(p.effects,d)};if(l&&t){const w=t;t=(...S)=>{w(...S),v()}}let y=g?new Array(e.length).fill(wu):wu;const b=w=>{if(!(!(d.flags&1)||!d.dirty&&!w))if(t){const S=d.run();if(i||h||(g?S.some((C,T)=>Zi(C,y[T])):Zi(S,y))){f&&f();const C=Ca;Ca=d;try{const T=[S,y===wu?void 0:g&&y[0]===wu?[]:y,s];y=S,a?a(t,3,T):t(...T)}finally{Ca=C}}}else d.run()};return o&&o(b),d=new Gb(u),d.scheduler=m?()=>m(b,!1):b,s=w=>Nx(w,!1,d),f=d.onStop=()=>{const w=Cc.get(d);if(w){if(a)a(w,4);else for(const S of w)S();Cc.delete(d)}},t?r?b(!0):y=d.run():m?m(b.bind(null,!0),!0):d.run(),v.pause=d.pause.bind(d),v.resume=d.resume.bind(d),v.stop=v,v}function hi(e,t=1/0,n){if(t<=0||!nt(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ot(e))hi(e.value,t,n);else if(Ue(e))for(let r=0;r<e.length;r++)hi(e[r],t,n);else if($b(e)||Do(e))e.forEach(r=>{hi(r,t,n)});else if(zb(e)){for(const r in e)hi(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&hi(e[r],t,n)}return e}/**
* @vue/runtime-core v3.5.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Zl(e,t,n,r){try{return r?e(...r):e()}catch(i){uf(i,t,n)}}function Ar(e,t,n,r){if(Ve(e)){const i=Zl(e,t,n,r);return i&&bc(i)&&i.catch(l=>{uf(l,t,n)}),i}if(Ue(e)){const i=[];for(let l=0;l<e.length;l++)i.push(Ar(e[l],t,n,r));return i}}function uf(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:l,throwUnhandledErrorInProduction:m}=t&&t.appContext.config||At;if(t){let o=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const d=o.ec;if(d){for(let u=0;u<d.length;u++)if(d[u](e,a,c)===!1)return}o=o.parent}if(l){yi(),Zl(l,null,10,[e,a,c]),bi();return}}jx(e,n,i,r,m)}function jx(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const Pn=[];let Nr=-1;const Fo=[];let Vi=null,ko=0;const c_=Promise.resolve();let xc=null;function Ge(e){const t=xc||c_;return e?t.then(this?e.bind(this):e):t}function Vx(e){let t=Nr+1,n=Pn.length;for(;t<n;){const r=t+n>>>1,i=Pn[r],l=dl(i);l<e||l===e&&i.flags&2?t=r+1:n=r}return t}function Fp(e){if(!(e.flags&1)){const t=dl(e),n=Pn[Pn.length-1];!n||!(e.flags&2)&&t>=dl(n)?Pn.push(e):Pn.splice(Vx(t),0,e),e.flags|=1,f_()}}function f_(){xc||(xc=c_.then(p_))}function d_(e){Ue(e)?Fo.push(...e):Vi&&e.id===-1?Vi.splice(ko+1,0,e):e.flags&1||(Fo.push(e),e.flags|=1),f_()}function Eg(e,t,n=Nr+1){for(;n<Pn.length;n++){const r=Pn[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Pn.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function h_(e){if(Fo.length){const t=[...new Set(Fo)].sort((n,r)=>dl(n)-dl(r));if(Fo.length=0,Vi){Vi.push(...t);return}for(Vi=t,ko=0;ko<Vi.length;ko++){const n=Vi[ko];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Vi=null,ko=0}}const dl=e=>e.id==null?e.flags&2?-1:1/0:e.id;function p_(e){const t=at;try{for(Nr=0;Nr<Pn.length;Nr++){const n=Pn[Nr];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),Zl(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;Nr<Pn.length;Nr++){const n=Pn[Nr];n&&(n.flags&=-2)}Nr=-1,Pn.length=0,h_(),xc=null,(Pn.length||Fo.length)&&p_()}}let pn=null,m_=null;function Tc(e){const t=pn;return pn=e,m_=e&&e.type.__scopeId||null,t}function ue(e,t=pn,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Ac(-1);const l=Tc(t);let m;try{m=e(...i)}finally{Tc(l),r._d&&Ac(1)}return m};return r._n=!0,r._c=!0,r._d=!0,r}function xt(e,t){if(pn===null)return e;const n=pf(pn),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[l,m,o,a=At]=t[i];l&&(Ve(l)&&(l={mounted:l,updated:l}),l.deep&&hi(m),r.push({dir:l,instance:n,value:m,oldValue:void 0,arg:o,modifiers:a}))}return e}function ya(e,t,n,r){const i=e.dirs,l=t&&t.dirs;for(let m=0;m<i.length;m++){const o=i[m];l&&(o.oldValue=l[m].value);let a=o.dir[r];a&&(yi(),Ar(a,n,8,[e.el,o,e,t]),bi())}}const g_=Symbol("_vte"),v_=e=>e.__isTeleport,Vs=e=>e&&(e.disabled||e.disabled===""),Og=e=>e&&(e.defer||e.defer===""),Ag=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Pg=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,eh=(e,t)=>{const n=e&&e.to;return Ke(n)?t?t(n):null:n},y_={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,l,m,o,a,c){const{mc:d,pc:u,pbc:f,o:{insert:s,querySelector:h,createText:g,createComment:p}}=c,v=Vs(t.props);let{shapeFlag:y,children:b,dynamicChildren:w}=t;if(e==null){const S=t.el=g(""),C=t.anchor=g("");s(S,n,r),s(C,n,r);const T=(A,P)=>{y&16&&(i&&i.isCE&&(i.ce._teleportTarget=A),d(b,A,P,i,l,m,o,a))},k=()=>{const A=t.target=eh(t.props,h),P=b_(A,t,g,s);A&&(m!=="svg"&&Ag(A)?m="svg":m!=="mathml"&&Pg(A)&&(m="mathml"),v||(T(A,P),Qu(t,!1)))};v&&(T(n,C),Qu(t,!0)),Og(t.props)?(t.el.__isMounted=!1,An(()=>{k(),delete t.el.__isMounted},l)):k()}else{if(Og(t.props)&&e.el.__isMounted===!1){An(()=>{y_.process(e,t,n,r,i,l,m,o,a,c)},l);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,k=Vs(e.props),A=k?n:C,P=k?S:T;if(m==="svg"||Ag(C)?m="svg":(m==="mathml"||Pg(C))&&(m="mathml"),w?(f(e.dynamicChildren,w,A,i,l,m,o),Hp(e,t,!0)):a||u(e,t,A,P,i,l,m,o,!1),v)k?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 z=t.target=eh(t.props,h);z&&Su(t,z,null,c,0)}else k&&Su(t,C,T,c,1);Qu(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},l){const{shapeFlag:m,children:o,anchor:a,targetStart:c,targetAnchor:d,target:u,props:f}=e;if(u&&(i(c),i(d)),l&&i(a),m&16){const s=l||!Vs(f);for(let h=0;h<o.length;h++){const g=o[h];r(g,t,n,s,!!g.dynamicChildren)}}},move:Su,hydrate:Ux};function Su(e,t,n,{o:{insert:r},m:i},l=2){l===0&&r(e.targetAnchor,t,n);const{el:m,anchor:o,shapeFlag:a,children:c,props:d}=e,u=l===2;if(u&&r(m,t,n),(!u||Vs(d))&&a&16)for(let f=0;f<c.length;f++)i(c[f],t,n,2);u&&r(o,t,n)}function Ux(e,t,n,r,i,l,{o:{nextSibling:m,parentNode:o,querySelector:a,insert:c,createText:d}},u){function f(g,p,v,y){p.anchor=u(m(g),p,o(g),n,r,i,l),p.targetStart=v,p.targetAnchor=y}const s=t.target=eh(t.props,a),h=Vs(t.props);if(s){const g=s._lpa||s.firstChild;if(t.shapeFlag&16)if(h)f(e,t,g,g&&m(g));else{t.anchor=m(e);let p=g;for(;p;){if(p&&p.nodeType===8){if(p.data==="teleport start anchor")t.targetStart=p;else if(p.data==="teleport anchor"){t.targetAnchor=p,s._lpa=t.targetAnchor&&m(t.targetAnchor);break}}p=m(p)}t.targetAnchor||b_(s,t,d,c),u(g&&m(g),t,s,n,r,i,l)}Qu(t,h)}else h&&t.shapeFlag&16&&f(e,t,e,m(e));return t.anchor&&m(t.anchor)}const Bp=y_;function Qu(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 b_(e,t,n,r){const i=t.targetStart=n(""),l=t.targetAnchor=n("");return i[g_]=l,e&&(r(i,e),r(l,e)),l}const li=Symbol("_leaveCb"),Cu=Symbol("_enterCb");function __(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return tt(()=>{e.isMounted=!0}),Jt(()=>{e.isUnmounting=!0}),e}const lr=[Function,Array],w_={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:lr,onEnter:lr,onAfterEnter:lr,onEnterCancelled:lr,onBeforeLeave:lr,onLeave:lr,onAfterLeave:lr,onLeaveCancelled:lr,onBeforeAppear:lr,onAppear:lr,onAfterAppear:lr,onAppearCancelled:lr},S_=e=>{const t=e.subTree;return t.component?S_(t.component):t},Hx={name:"BaseTransition",props:w_,setup(e,{slots:t}){const n=kt(),r=__();return()=>{const i=t.default&&$p(t.default(),!0);if(!i||!i.length)return;const l=C_(i),m=rt(e),{mode:o}=m;if(r.isLeaving)return Yf(l);const a=Ig(l);if(!a)return Yf(l);let c=hl(a,m,r,n,u=>c=u);a.type!==hn&&Wa(a,c);let d=n.subTree&&Ig(n.subTree);if(d&&d.type!==hn&&!ka(d,a)&&S_(n).type!==hn){let u=hl(d,m,r,n);if(Wa(d,u),o==="out-in"&&a.type!==hn)return r.isLeaving=!0,u.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete u.afterLeave,d=void 0},Yf(l);o==="in-out"&&a.type!==hn?u.delayLeave=(f,s,h)=>{const g=x_(r,d);g[String(d.key)]=d,f[li]=()=>{s(),f[li]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{h(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return l}}};function C_(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==hn){t=n;break}}return t}const Wx=Hx;function x_(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 hl(e,t,n,r,i){const{appear:l,mode:m,persisted:o=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:f,onLeave:s,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:p,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,w=String(e.key),S=x_(n,e),C=(A,P)=>{A&&Ar(A,r,9,P)},T=(A,P)=>{const z=P[1];C(A,P),Ue(A)?A.every(I=>I.length<=1)&&z():A.length<=1&&z()},k={mode:m,persisted:o,beforeEnter(A){let P=a;if(!n.isMounted)if(l)P=p||a;else return;A[li]&&A[li](!0);const z=S[w];z&&ka(e,z)&&z.el[li]&&z.el[li](),C(P,[A])},enter(A){let P=c,z=d,I=u;if(!n.isMounted)if(l)P=v||c,z=y||d,I=b||u;else return;let $=!1;const O=A[Cu]=Y=>{$||($=!0,Y?C(I,[A]):C(z,[A]),k.delayedLeave&&k.delayedLeave(),A[Cu]=void 0)};P?T(P,[A,O]):O()},leave(A,P){const z=String(e.key);if(A[Cu]&&A[Cu](!0),n.isUnmounting)return P();C(f,[A]);let I=!1;const $=A[li]=O=>{I||(I=!0,P(),O?C(g,[A]):C(h,[A]),A[li]=void 0,S[z]===e&&delete S[z])};S[z]=e,s?T(s,[A,$]):$()},clone(A){const P=hl(A,t,n,r,i);return i&&i(P),P}};return k}function Yf(e){if(cf(e))return e=wi(e),e.children=null,e}function Ig(e){if(!cf(e))return v_(e.type)&&e.children?C_(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&&Ve(n.default))return n.default()}}function Wa(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Wa(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 $p(e,t=!1,n){let r=[],i=0;for(let l=0;l<e.length;l++){let m=e[l];const o=n==null?m.key:String(n)+String(m.key!=null?m.key:l);m.type===$e?(m.patchFlag&128&&i++,r=r.concat($p(m.children,t,o))):(t||m.type!==hn)&&r.push(o!=null?wi(m,{key:o}):m)}if(i>1)for(let l=0;l<r.length;l++)r[l].patchFlag=-2;return r}function be(e,t){return Ve(e)?(()=>Kt({name:e.name},t,{setup:e}))():e}function T_(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const kc=new WeakMap;function Us(e,t,n,r,i=!1){if(Ue(e)){e.forEach((h,g)=>Us(h,t&&(Ue(t)?t[g]:t),n,r,i));return}if(Bo(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Us(e,t,n,r.component.subTree);return}const l=r.shapeFlag&4?pf(r.component):r.el,m=i?null:l,{i:o,r:a}=e,c=t&&t.r,d=o.refs===At?o.refs={}:o.refs,u=o.setupState,f=rt(u),s=u===At?Bb:h=>st(f,h);if(c!=null&&c!==a){if(Mg(t),Ke(c))d[c]=null,s(c)&&(u[c]=null);else if(Ot(c)){c.value=null;const h=t;h.k&&(d[h.k]=null)}}if(Ve(a))Zl(a,o,12,[m,d]);else{const h=Ke(a),g=Ot(a);if(h||g){const p=()=>{if(e.f){const v=h?s(a)?u[a]:d[a]:a.value;if(i)Ue(v)&&Cp(v,l);else if(Ue(v))v.includes(l)||v.push(l);else if(h)d[a]=[l],s(a)&&(u[a]=d[a]);else{const y=[l];a.value=y,e.k&&(d[e.k]=y)}}else h?(d[a]=m,s(a)&&(u[a]=m)):g&&(a.value=m,e.k&&(d[e.k]=m))};if(m){const v=()=>{p(),kc.delete(e)};v.id=-1,kc.set(e,v),An(v,n)}else Mg(e),p()}}}function Mg(e){const t=kc.get(e);t&&(t.flags|=8,kc.delete(e))}ql().requestIdleCallback;ql().cancelIdleCallback;const Bo=e=>!!e.type.__asyncLoader,cf=e=>e.type.__isKeepAlive;function Gx(e,t){E_(e,"a",t)}function k_(e,t){E_(e,"da",t)}function E_(e,t,n=Sn){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(ff(t,r,n),n){let i=n.parent;for(;i&&i.parent;)cf(i.parent.vnode)&&Yx(r,t,n,i),i=i.parent}}function Yx(e,t,n,r){const i=ff(t,e,r,!0);da(()=>{Cp(r[t],i)},n)}function ff(e,t,n=Sn,r=!1){if(n){const i=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...m)=>{yi();const o=Jl(n),a=Ar(t,n,e,m);return o(),bi(),a});return r?i.unshift(l):i.push(l),l}}const ki=e=>(t,n=Sn)=>{(!ml||e==="sp")&&ff(e,(...r)=>t(...r),n)},O_=ki("bm"),tt=ki("m"),A_=ki("bu"),no=ki("u"),Jt=ki("bum"),da=ki("um"),Kx=ki("sp"),Xx=ki("rtg"),qx=ki("rtc");function Zx(e,t=Sn){ff("ec",e,t)}const Np="components",Jx="directives";function yt(e,t){return zp(Np,e,!0,t)||e}const P_=Symbol.for("v-ndc");function Ct(e){return Ke(e)?zp(Np,e,!1)||e:e||P_}function I_(e){return zp(Jx,e)}function zp(e,t,n=!0,r=!1){const i=pn||Sn;if(i){const l=i.type;if(e===Np){const o=jT(l,!1);if(o&&(o===t||o===nr(t)||o===Xl(nr(t))))return l}const m=Lg(i[e]||l[e],t)||Lg(i.appContext[e],t);return!m&&r?l:m}}function Lg(e,t){return e&&(e[t]||e[nr(t)]||e[Xl(nr(t))])}function $t(e,t,n,r){let i;const l=n&&n[r],m=Ue(e);if(m||Ke(e)){const o=m&&Ji(e);let a=!1,c=!1;o&&(a=!dr(e),c=ra(e),e=lf(e)),i=new Array(e.length);for(let d=0,u=e.length;d<u;d++)i[d]=t(a?c?Sc(dn(e[d])):dn(e[d]):e[d],d,void 0,l&&l[d])}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,l&&l[o])}else if(nt(e))if(e[Symbol.iterator])i=Array.from(e,(o,a)=>t(o,a,void 0,l&&l[a]));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,c=o.length;a<c;a++){const d=o[a];i[a]=t(e[d],d,a,l&&l[a])}}else i=[];return n&&(n[r]=i),i}function Ec(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Ue(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 l=r.fn(...i);return l&&(l.key=r.key),l}:r.fn)}return e}function ke(e,t,n={},r,i){if(pn.ce||pn.parent&&Bo(pn.parent)&&pn.parent.ce)return t!=="default"&&(n.name=t),N(),ve($e,null,[oe("slot",n,r&&r())],64);let l=e[t];l&&l._c&&(l._d=!1),N();const m=l&&M_(l(n)),o=n.key||m&&m.key,a=ve($e,{key:(o&&!Or(o)?o:`_${t}`)+(!m&&r?"_fb":"")},m||(r?r():[]),m&&e._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),l&&l._c&&(l._d=!0),a}function M_(e){return e.some(t=>_i(t)?!(t.type===hn||t.type===$e&&!M_(t.children)):!0)?e:null}function Qx(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Zu(r)]=e[r];return n}const th=e=>e?Z_(e)?pf(e):th(e.parent):null,Hs=Kt(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=>th(e.parent),$root:e=>th(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>jp(e),$forceUpdate:e=>e.f||(e.f=()=>{Fp(e.update)}),$nextTick:e=>e.n||(e.n=Ge.bind(e.proxy)),$watch:e=>CT.bind(e)}),Kf=(e,t)=>e!==At&&!e.__isScriptSetup&&st(e,t),eT={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:l,accessCache:m,type:o,appContext:a}=e;let c;if(t[0]!=="$"){const s=m[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 l[t]}else{if(Kf(r,t))return m[t]=1,r[t];if(i!==At&&st(i,t))return m[t]=2,i[t];if((c=e.propsOptions[0])&&st(c,t))return m[t]=3,l[t];if(n!==At&&st(n,t))return m[t]=4,n[t];nh&&(m[t]=0)}}const d=Hs[t];let u,f;if(d)return t==="$attrs"&&wn(e.attrs,"get",""),d(e);if((u=o.__cssModules)&&(u=u[t]))return u;if(n!==At&&st(n,t))return m[t]=4,n[t];if(f=a.config.globalProperties,st(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:l}=e;return Kf(i,t)?(i[t]=n,!0):r!==At&&st(r,t)?(r[t]=n,!0):st(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:l,type:m}},o){let a,c;return!!(n[o]||e!==At&&o[0]!=="$"&&st(e,o)||Kf(t,o)||(a=l[0])&&st(a,o)||st(r,o)||st(Hs,o)||st(i.config.globalProperties,o)||(c=m.__cssModules)&&c[o])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:st(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function os(){return R_().slots}function L_(){return R_().attrs}function R_(e){const t=kt();return t.setupContext||(t.setupContext=Q_(t))}function Rg(e){return Ue(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let nh=!0;function tT(e){const t=jp(e),n=e.proxy,r=e.ctx;nh=!1,t.beforeCreate&&Dg(t.beforeCreate,e,"bc");const{data:i,computed:l,methods:m,watch:o,provide:a,inject:c,created:d,beforeMount:u,mounted:f,beforeUpdate:s,updated:h,activated:g,deactivated:p,beforeDestroy:v,beforeUnmount:y,destroyed:b,unmounted:w,render:S,renderTracked:C,renderTriggered:T,errorCaptured:k,serverPrefetch:A,expose:P,inheritAttrs:z,components:I,directives:$,filters:O}=t;if(c&&nT(c,r,null),m)for(const q in m){const J=m[q];Ve(J)&&(r[q]=J.bind(n))}if(i){const q=i.call(n,n);nt(q)&&(e.data=Tt(q))}if(nh=!0,l)for(const q in l){const J=l[q],E=Ve(J)?J.bind(n,n):Ve(J.get)?J.get.bind(n,n):at,V=!Ve(J)&&Ve(J.set)?J.set.bind(n):at,M=ee({get:E,set:V});Object.defineProperty(r,q,{enumerable:!0,configurable:!0,get:()=>M.value,set:R=>M.value=R})}if(o)for(const q in o)D_(o[q],r,n,q);if(a){const q=Ve(a)?a.call(n):a;Reflect.ownKeys(q).forEach(J=>{gt(J,q[J])})}d&&Dg(d,e,"c");function ae(q,J){Ue(J)?J.forEach(E=>q(E.bind(n))):J&&q(J.bind(n))}if(ae(O_,u),ae(tt,f),ae(A_,s),ae(no,h),ae(Gx,g),ae(k_,p),ae(Zx,k),ae(qx,C),ae(Xx,T),ae(Jt,y),ae(da,w),ae(Kx,A),Ue(P))if(P.length){const q=e.exposed||(e.exposed={});P.forEach(J=>{Object.defineProperty(q,J,{get:()=>n[J],set:E=>n[J]=E,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===at&&(e.render=S),z!=null&&(e.inheritAttrs=z),I&&(e.components=I),$&&(e.directives=$),A&&T_(e)}function nT(e,t,n=at){Ue(e)&&(e=rh(e));for(const r in e){const i=e[r];let l;nt(i)?"default"in i?l=Xe(i.from||r,i.default,!0):l=Xe(i.from||r):l=Xe(i),Ot(l)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>l.value,set:m=>l.value=m}):t[r]=l}}function Dg(e,t,n){Ar(Ue(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function D_(e,t,n,r){let i=r.includes(".")?G_(n,r):()=>n[r];if(Ke(e)){const l=t[e];Ve(l)&&Te(i,l)}else if(Ve(e))Te(i,e.bind(n));else if(nt(e))if(Ue(e))e.forEach(l=>D_(l,t,n,r));else{const l=Ve(e.handler)?e.handler.bind(n):t[e.handler];Ve(l)&&Te(i,l,e)}}function jp(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:l,config:{optionMergeStrategies:m}}=e.appContext,o=l.get(t);let a;return o?a=o:!i.length&&!n&&!r?a=t:(a={},i.length&&i.forEach(c=>Oc(a,c,m,!0)),Oc(a,t,m)),nt(t)&&l.set(t,a),a}function Oc(e,t,n,r=!1){const{mixins:i,extends:l}=t;l&&Oc(e,l,n,!0),i&&i.forEach(m=>Oc(e,m,n,!0));for(const m in t)if(!(r&&m==="expose")){const o=rT[m]||n&&n[m];e[m]=o?o(e[m],t[m]):t[m]}return e}const rT={data:Fg,props:Bg,emits:Bg,methods:Ms,computed:Ms,beforeCreate:On,created:On,beforeMount:On,mounted:On,beforeUpdate:On,updated:On,beforeDestroy:On,beforeUnmount:On,destroyed:On,unmounted:On,activated:On,deactivated:On,errorCaptured:On,serverPrefetch:On,components:Ms,directives:Ms,watch:aT,provide:Fg,inject:iT};function Fg(e,t){return t?e?function(){return Kt(Ve(e)?e.call(this,this):e,Ve(t)?t.call(this,this):t)}:t:e}function iT(e,t){return Ms(rh(e),rh(t))}function rh(e){if(Ue(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function On(e,t){return e?[...new Set([].concat(e,t))]:t}function Ms(e,t){return e?Kt(Object.create(null),e,t):t}function Bg(e,t){return e?Ue(e)&&Ue(t)?[...new Set([...e,...t])]:Kt(Object.create(null),Rg(e),Rg(t!=null?t:{})):t}function aT(e,t){if(!e)return t;if(!t)return e;const n=Kt(Object.create(null),e);for(const r in t)n[r]=On(e[r],t[r]);return n}function F_(){return{app:null,config:{isNativeTag:Bb,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 oT=0;function sT(e,t){return function(r,i=null){Ve(r)||(r=Kt({},r)),i!=null&&!nt(i)&&(i=null);const l=F_(),m=new WeakSet,o=[];let a=!1;const c=l.app={_uid:oT++,_component:r,_props:i,_container:null,_context:l,_instance:null,version:UT,get config(){return l.config},set config(d){},use(d,...u){return m.has(d)||(d&&Ve(d.install)?(m.add(d),d.install(c,...u)):Ve(d)&&(m.add(d),d(c,...u))),c},mixin(d){return l.mixins.includes(d)||l.mixins.push(d),c},component(d,u){return u?(l.components[d]=u,c):l.components[d]},directive(d,u){return u?(l.directives[d]=u,c):l.directives[d]},mount(d,u,f){if(!a){const s=c._ceVNode||oe(r,i);return s.appContext=l,f===!0?f="svg":f===!1&&(f=void 0),u&&t?t(s,d):e(s,d,f),a=!0,c._container=d,d.__vue_app__=c,pf(s.component)}},onUnmount(d){o.push(d)},unmount(){a&&(Ar(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(d,u){return l.provides[d]=u,c},runWithContext(d){const u=za;za=c;try{return d()}finally{za=u}}};return c}}let za=null;function gt(e,t){if(Sn){let n=Sn.provides;const r=Sn.parent&&Sn.parent.provides;r===n&&(n=Sn.provides=Object.create(r)),n[e]=t}}function Xe(e,t,n=!1){const r=kt();if(r||za){let i=za?za._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&&Ve(t)?t.call(r&&r.proxy):t}}function lT(){return!!(kt()||za)}const B_={},$_=()=>Object.create(B_),N_=e=>Object.getPrototypeOf(e)===B_;function uT(e,t,n,r=!1){const i={},l=$_();e.propsDefaults=Object.create(null),z_(e,t,i,l);for(const m in e.propsOptions[0])m in i||(i[m]=void 0);n?e.props=r?i:Lp(i):e.type.props?e.props=i:e.props=l,e.attrs=l}function cT(e,t,n,r){const{props:i,attrs:l,vnode:{patchFlag:m}}=e,o=rt(i),[a]=e.propsOptions;let c=!1;if((r||m>0)&&!(m&16)){if(m&8){const d=e.vnode.dynamicProps;for(let u=0;u<d.length;u++){let f=d[u];if(hf(e.emitsOptions,f))continue;const s=t[f];if(a)if(st(l,f))s!==l[f]&&(l[f]=s,c=!0);else{const h=nr(f);i[h]=ih(a,o,h,s,e,!1)}else s!==l[f]&&(l[f]=s,c=!0)}}}else{z_(e,t,i,l)&&(c=!0);let d;for(const u in o)(!t||!st(t,u)&&((d=fa(u))===u||!st(t,d)))&&(a?n&&(n[u]!==void 0||n[d]!==void 0)&&(i[u]=ih(a,o,u,void 0,e,!0)):delete i[u]);if(l!==o)for(const u in l)(!t||!st(t,u)&&!0)&&(delete l[u],c=!0)}c&&di(e.attrs,"set","")}function z_(e,t,n,r){const[i,l]=e.propsOptions;let m=!1,o;if(t)for(let a in t){if(Ns(a))continue;const c=t[a];let d;i&&st(i,d=nr(a))?!l||!l.includes(d)?n[d]=c:(o||(o={}))[d]=c:hf(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,m=!0)}if(l){const a=rt(n),c=o||At;for(let d=0;d<l.length;d++){const u=l[d];n[u]=ih(i,a,u,c[u],e,!st(c,u))}}return m}function ih(e,t,n,r,i,l){const m=e[n];if(m!=null){const o=st(m,"default");if(o&&r===void 0){const a=m.default;if(m.type!==Function&&!m.skipFactory&&Ve(a)){const{propsDefaults:c}=i;if(n in c)r=c[n];else{const d=Jl(i);r=c[n]=a.call(null,t),d()}}else r=a;i.ce&&i.ce._setProp(n,r)}m[0]&&(l&&!o?r=!1:m[1]&&(r===""||r===fa(n))&&(r=!0))}return r}const fT=new WeakMap;function j_(e,t,n=!1){const r=n?fT:t.propsCache,i=r.get(e);if(i)return i;const l=e.props,m={},o=[];let a=!1;if(!Ve(e)){const d=u=>{a=!0;const[f,s]=j_(u,t,!0);Kt(m,f),s&&o.push(...s)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!l&&!a)return nt(e)&&r.set(e,Ro),Ro;if(Ue(l))for(let d=0;d<l.length;d++){const u=nr(l[d]);$g(u)&&(m[u]=At)}else if(l)for(const d in l){const u=nr(d);if($g(u)){const f=l[d],s=m[u]=Ue(f)||Ve(f)?{type:f}:Kt({},f),h=s.type;let g=!1,p=!0;if(Ue(h))for(let v=0;v<h.length;++v){const y=h[v],b=Ve(y)&&y.name;if(b==="Boolean"){g=!0;break}else b==="String"&&(p=!1)}else g=Ve(h)&&h.name==="Boolean";s[0]=g,s[1]=p,(g||st(s,"default"))&&o.push(u)}}const c=[m,o];return nt(e)&&r.set(e,c),c}function $g(e){return e[0]!=="$"&&!Ns(e)}const Vp=e=>e==="_"||e==="_ctx"||e==="$stable",Up=e=>Ue(e)?e.map(jr):[jr(e)],dT=(e,t,n)=>{if(t._n)return t;const r=ue((...i)=>Up(t(...i)),n);return r._c=!1,r},V_=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Vp(i))continue;const l=e[i];if(Ve(l))t[i]=dT(i,l,r);else if(l!=null){const m=Up(l);t[i]=()=>m}}},U_=(e,t)=>{const n=Up(t);e.slots.default=()=>n},H_=(e,t,n)=>{for(const r in t)(n||!Vp(r))&&(e[r]=t[r])},hT=(e,t,n)=>{const r=e.slots=$_();if(e.vnode.shapeFlag&32){const i=t._;i?(H_(r,t,n),n&&jb(r,"_",i,!0)):V_(t,r)}else t&&U_(e,t)},pT=(e,t,n)=>{const{vnode:r,slots:i}=e;let l=!0,m=At;if(r.shapeFlag&32){const o=t._;o?n&&o===1?l=!1:H_(i,t,n):(l=!t.$stable,V_(t,i)),m=t}else t&&(U_(e,t),m={default:1});if(l)for(const o in i)!Vp(o)&&m[o]==null&&delete i[o]};function mT(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(ql().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const An=IT;function gT(e){return vT(e)}function vT(e,t){mT();const n=ql();n.__VUE__=!0;const{insert:r,remove:i,patchProp:l,createElement:m,createText:o,createComment:a,setText:c,setElementText:d,parentNode:u,nextSibling:f,setScopeId:s=at,insertStaticContent:h}=e,g=(j,x,U,K=null,L=null,F=null,X=void 0,de=null,le=!!x.dynamicChildren)=>{if(j===x)return;j&&!ka(j,x)&&(K=H(j),R(j,L,F,!0),j=null),x.patchFlag===-2&&(le=!1,x.dynamicChildren=null);const{type:G,ref:pe,shapeFlag:re}=x;switch(G){case ss:p(j,x,U,K);break;case hn:v(j,x,U,K);break;case ec:j==null&&y(x,U,K,X);break;case $e:I(j,x,U,K,L,F,X,de,le);break;default:re&1?S(j,x,U,K,L,F,X,de,le):re&6?$(j,x,U,K,L,F,X,de,le):(re&64||re&128)&&G.process(j,x,U,K,L,F,X,de,le,fe)}pe!=null&&L?Us(pe,j&&j.ref,F,x||j,!x):pe==null&&j&&j.ref!=null&&Us(j.ref,null,F,j,!0)},p=(j,x,U,K)=>{if(j==null)r(x.el=o(x.children),U,K);else{const L=x.el=j.el;x.children!==j.children&&c(L,x.children)}},v=(j,x,U,K)=>{j==null?r(x.el=a(x.children||""),U,K):x.el=j.el},y=(j,x,U,K)=>{[j.el,j.anchor]=h(j.children,x,U,K,j.el,j.anchor)},b=({el:j,anchor:x},U,K)=>{let L;for(;j&&j!==x;)L=f(j),r(j,U,K),j=L;r(x,U,K)},w=({el:j,anchor:x})=>{let U;for(;j&&j!==x;)U=f(j),i(j),j=U;i(x)},S=(j,x,U,K,L,F,X,de,le)=>{x.type==="svg"?X="svg":x.type==="math"&&(X="mathml"),j==null?C(x,U,K,L,F,X,de,le):A(j,x,L,F,X,de,le)},C=(j,x,U,K,L,F,X,de)=>{let le,G;const{props:pe,shapeFlag:re,transition:he,dirs:Se}=j;if(le=j.el=m(j.type,F,pe&&pe.is,pe),re&8?d(le,j.children):re&16&&k(j.children,le,null,K,L,Xf(j,F),X,de),Se&&ya(j,null,K,"created"),T(le,j,j.scopeId,X,K),pe){for(const Oe in pe)Oe!=="value"&&!Ns(Oe)&&l(le,Oe,null,pe[Oe],F,K);"value"in pe&&l(le,"value",null,pe.value,F),(G=pe.onVnodeBeforeMount)&&Fr(G,K,j)}Se&&ya(j,null,K,"beforeMount");const xe=yT(L,he);xe&&he.beforeEnter(le),r(le,x,U),((G=pe&&pe.onVnodeMounted)||xe||Se)&&An(()=>{G&&Fr(G,K,j),xe&&he.enter(le),Se&&ya(j,null,K,"mounted")},L)},T=(j,x,U,K,L)=>{if(U&&s(j,U),K)for(let F=0;F<K.length;F++)s(j,K[F]);if(L){let F=L.subTree;if(x===F||K_(F.type)&&(F.ssContent===x||F.ssFallback===x)){const X=L.vnode;T(j,X,X.scopeId,X.slotScopeIds,L.parent)}}},k=(j,x,U,K,L,F,X,de,le=0)=>{for(let G=le;G<j.length;G++){const pe=j[G]=de?Ui(j[G]):jr(j[G]);g(null,pe,x,U,K,L,F,X,de)}},A=(j,x,U,K,L,F,X)=>{const de=x.el=j.el;let{patchFlag:le,dynamicChildren:G,dirs:pe}=x;le|=j.patchFlag&16;const re=j.props||At,he=x.props||At;let Se;if(U&&ba(U,!1),(Se=he.onVnodeBeforeUpdate)&&Fr(Se,U,x,j),pe&&ya(x,j,U,"beforeUpdate"),U&&ba(U,!0),(re.innerHTML&&he.innerHTML==null||re.textContent&&he.textContent==null)&&d(de,""),G?P(j.dynamicChildren,G,de,U,K,Xf(x,L),F):X||J(j,x,de,null,U,K,Xf(x,L),F,!1),le>0){if(le&16)z(de,re,he,U,L);else if(le&2&&re.class!==he.class&&l(de,"class",null,he.class,L),le&4&&l(de,"style",re.style,he.style,L),le&8){const xe=x.dynamicProps;for(let Oe=0;Oe<xe.length;Oe++){const Le=xe[Oe],ye=re[Le],Ce=he[Le];(Ce!==ye||Le==="value")&&l(de,Le,ye,Ce,L,U)}}le&1&&j.children!==x.children&&d(de,x.children)}else!X&&G==null&&z(de,re,he,U,L);((Se=he.onVnodeUpdated)||pe)&&An(()=>{Se&&Fr(Se,U,x,j),pe&&ya(x,j,U,"updated")},K)},P=(j,x,U,K,L,F,X)=>{for(let de=0;de<x.length;de++){const le=j[de],G=x[de],pe=le.el&&(le.type===$e||!ka(le,G)||le.shapeFlag&198)?u(le.el):U;g(le,G,pe,null,K,L,F,X,!0)}},z=(j,x,U,K,L)=>{if(x!==U){if(x!==At)for(const F in x)!Ns(F)&&!(F in U)&&l(j,F,x[F],null,L,K);for(const F in U){if(Ns(F))continue;const X=U[F],de=x[F];X!==de&&F!=="value"&&l(j,F,de,X,L,K)}"value"in U&&l(j,"value",x.value,U.value,L)}},I=(j,x,U,K,L,F,X,de,le)=>{const G=x.el=j?j.el:o(""),pe=x.anchor=j?j.anchor:o("");let{patchFlag:re,dynamicChildren:he,slotScopeIds:Se}=x;Se&&(de=de?de.concat(Se):Se),j==null?(r(G,U,K),r(pe,U,K),k(x.children||[],U,pe,L,F,X,de,le)):re>0&&re&64&&he&&j.dynamicChildren?(P(j.dynamicChildren,he,U,L,F,X,de),(x.key!=null||L&&x===L.subTree)&&Hp(j,x,!0)):J(j,x,U,pe,L,F,X,de,le)},$=(j,x,U,K,L,F,X,de,le)=>{x.slotScopeIds=de,j==null?x.shapeFlag&512?L.ctx.activate(x,U,K,X,le):O(x,U,K,L,F,X,le):Y(j,x,le)},O=(j,x,U,K,L,F,X)=>{const de=j.component=BT(j,K,L);if(cf(j)&&(de.ctx.renderer=fe),$T(de,!1,X),de.asyncDep){if(L&&L.registerDep(de,ae,X),!j.el){const le=de.subTree=oe(hn);v(null,le,x,U),j.placeholder=le.el}}else ae(de,j,x,U,L,F,X)},Y=(j,x,U)=>{const K=x.component=j.component;if(AT(j,x,U))if(K.asyncDep&&!K.asyncResolved){q(K,x,U);return}else K.next=x,K.update();else x.el=j.el,K.vnode=x},ae=(j,x,U,K,L,F,X)=>{const de=()=>{if(j.isMounted){let{next:re,bu:he,u:Se,parent:xe,vnode:Oe}=j;{const Ie=W_(j);if(Ie){re&&(re.el=Oe.el,q(j,re,X)),Ie.asyncDep.then(()=>{j.isUnmounted||de()});return}}let Le=re,ye;ba(j,!1),re?(re.el=Oe.el,q(j,re,X)):re=Oe,he&&Ju(he),(ye=re.props&&re.props.onVnodeBeforeUpdate)&&Fr(ye,xe,re,Oe),ba(j,!0);const Ce=qf(j),Me=j.subTree;j.subTree=Ce,g(Me,Ce,u(Me.el),H(Me),j,L,F),re.el=Ce.el,Le===null&&PT(j,Ce.el),Se&&An(Se,L),(ye=re.props&&re.props.onVnodeUpdated)&&An(()=>Fr(ye,xe,re,Oe),L)}else{let re;const{el:he,props:Se}=x,{bm:xe,m:Oe,parent:Le,root:ye,type:Ce}=j,Me=Bo(x);if(ba(j,!1),xe&&Ju(xe),!Me&&(re=Se&&Se.onVnodeBeforeMount)&&Fr(re,Le,x),ba(j,!0),he&&_e){const Ie=()=>{j.subTree=qf(j),_e(he,j.subTree,j,L,null)};Me&&Ce.__asyncHydrate?Ce.__asyncHydrate(he,j,Ie):Ie()}else{ye.ce&&ye.ce._def.shadowRoot!==!1&&ye.ce._injectChildStyle(Ce);const Ie=j.subTree=qf(j);g(null,Ie,U,K,j,L,F),x.el=Ie.el}if(Oe&&An(Oe,L),!Me&&(re=Se&&Se.onVnodeMounted)){const Ie=x;An(()=>Fr(re,Le,Ie),L)}(x.shapeFlag&256||Le&&Bo(Le.vnode)&&Le.vnode.shapeFlag&256)&&j.a&&An(j.a,L),j.isMounted=!0,x=U=K=null}};j.scope.on();const le=j.effect=new Gb(de);j.scope.off();const G=j.update=le.run.bind(le),pe=j.job=le.runIfDirty.bind(le);pe.i=j,pe.id=j.uid,le.scheduler=()=>Fp(pe),ba(j,!0),G()},q=(j,x,U)=>{x.component=j;const K=j.vnode.props;j.vnode=x,j.next=null,cT(j,x.props,K,U),pT(j,x.children,U),yi(),Eg(j),bi()},J=(j,x,U,K,L,F,X,de,le=!1)=>{const G=j&&j.children,pe=j?j.shapeFlag:0,re=x.children,{patchFlag:he,shapeFlag:Se}=x;if(he>0){if(he&128){V(G,re,U,K,L,F,X,de,le);return}else if(he&256){E(G,re,U,K,L,F,X,de,le);return}}Se&8?(pe&16&&Z(G,L,F),re!==G&&d(U,re)):pe&16?Se&16?V(G,re,U,K,L,F,X,de,le):Z(G,L,F,!0):(pe&8&&d(U,""),Se&16&&k(re,U,K,L,F,X,de,le))},E=(j,x,U,K,L,F,X,de,le)=>{j=j||Ro,x=x||Ro;const G=j.length,pe=x.length,re=Math.min(G,pe);let he;for(he=0;he<re;he++){const Se=x[he]=le?Ui(x[he]):jr(x[he]);g(j[he],Se,U,null,L,F,X,de,le)}G>pe?Z(j,L,F,!0,!1,re):k(x,U,K,L,F,X,de,le,re)},V=(j,x,U,K,L,F,X,de,le)=>{let G=0;const pe=x.length;let re=j.length-1,he=pe-1;for(;G<=re&&G<=he;){const Se=j[G],xe=x[G]=le?Ui(x[G]):jr(x[G]);if(ka(Se,xe))g(Se,xe,U,null,L,F,X,de,le);else break;G++}for(;G<=re&&G<=he;){const Se=j[re],xe=x[he]=le?Ui(x[he]):jr(x[he]);if(ka(Se,xe))g(Se,xe,U,null,L,F,X,de,le);else break;re--,he--}if(G>re){if(G<=he){const Se=he+1,xe=Se<pe?x[Se].el:K;for(;G<=he;)g(null,x[G]=le?Ui(x[G]):jr(x[G]),U,xe,L,F,X,de,le),G++}}else if(G>he)for(;G<=re;)R(j[G],L,F,!0),G++;else{const Se=G,xe=G,Oe=new Map;for(G=xe;G<=he;G++){const it=x[G]=le?Ui(x[G]):jr(x[G]);it.key!=null&&Oe.set(it.key,G)}let Le,ye=0;const Ce=he-xe+1;let Me=!1,Ie=0;const ht=new Array(Ce);for(G=0;G<Ce;G++)ht[G]=0;for(G=Se;G<=re;G++){const it=j[G];if(ye>=Ce){R(it,L,F,!0);continue}let Ft;if(it.key!=null)Ft=Oe.get(it.key);else for(Le=xe;Le<=he;Le++)if(ht[Le-xe]===0&&ka(it,x[Le])){Ft=Le;break}Ft===void 0?R(it,L,F,!0):(ht[Ft-xe]=G+1,Ft>=Ie?Ie=Ft:Me=!0,g(it,x[Ft],U,null,L,F,X,de,le),ye++)}const Ut=Me?bT(ht):Ro;for(Le=Ut.length-1,G=Ce-1;G>=0;G--){const it=xe+G,Ft=x[it],Qt=x[it+1],_r=it+1<pe?Qt.el||Qt.placeholder:K;ht[G]===0?g(null,Ft,U,_r,L,F,X,de,le):Me&&(Le<0||G!==Ut[Le]?M(Ft,U,_r,2):Le--)}}},M=(j,x,U,K,L=null)=>{const{el:F,type:X,transition:de,children:le,shapeFlag:G}=j;if(G&6){M(j.component.subTree,x,U,K);return}if(G&128){j.suspense.move(x,U,K);return}if(G&64){X.move(j,x,U,fe);return}if(X===$e){r(F,x,U);for(let re=0;re<le.length;re++)M(le[re],x,U,K);r(j.anchor,x,U);return}if(X===ec){b(j,x,U);return}if(K!==2&&G&1&&de)if(K===0)de.beforeEnter(F),r(F,x,U),An(()=>de.enter(F),L);else{const{leave:re,delayLeave:he,afterLeave:Se}=de,xe=()=>{j.ctx.isUnmounted?i(F):r(F,x,U)},Oe=()=>{F._isLeaving&&F[li](!0),re(F,()=>{xe(),Se&&Se()})};he?he(F,xe,Oe):Oe()}else r(F,x,U)},R=(j,x,U,K=!1,L=!1)=>{const{type:F,props:X,ref:de,children:le,dynamicChildren:G,shapeFlag:pe,patchFlag:re,dirs:he,cacheIndex:Se}=j;if(re===-2&&(L=!1),de!=null&&(yi(),Us(de,null,U,j,!0),bi()),Se!=null&&(x.renderCache[Se]=void 0),pe&256){x.ctx.deactivate(j);return}const xe=pe&1&&he,Oe=!Bo(j);let Le;if(Oe&&(Le=X&&X.onVnodeBeforeUnmount)&&Fr(Le,x,j),pe&6)B(j.component,U,K);else{if(pe&128){j.suspense.unmount(U,K);return}xe&&ya(j,null,x,"beforeUnmount"),pe&64?j.type.remove(j,x,U,fe,K):G&&!G.hasOnce&&(F!==$e||re>0&&re&64)?Z(G,x,U,!1,!0):(F===$e&&re&384||!L&&pe&16)&&Z(le,x,U),K&&W(j)}(Oe&&(Le=X&&X.onVnodeUnmounted)||xe)&&An(()=>{Le&&Fr(Le,x,j),xe&&ya(j,null,x,"unmounted")},U)},W=j=>{const{type:x,el:U,anchor:K,transition:L}=j;if(x===$e){D(U,K);return}if(x===ec){w(j);return}const F=()=>{i(U),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(j.shapeFlag&1&&L&&!L.persisted){const{leave:X,delayLeave:de}=L,le=()=>X(U,F);de?de(j.el,F,le):le()}else F()},D=(j,x)=>{let U;for(;j!==x;)U=f(j),i(j),j=U;i(x)},B=(j,x,U)=>{const{bum:K,scope:L,job:F,subTree:X,um:de,m:le,a:G}=j;Ng(le),Ng(G),K&&Ju(K),L.stop(),F&&(F.flags|=8,R(X,j,x,U)),de&&An(de,x),An(()=>{j.isUnmounted=!0},x)},Z=(j,x,U,K=!1,L=!1,F=0)=>{for(let X=F;X<j.length;X++)R(j[X],x,U,K,L)},H=j=>{if(j.shapeFlag&6)return H(j.component.subTree);if(j.shapeFlag&128)return j.suspense.next();const x=f(j.anchor||j.el),U=x&&x[g_];return U?f(U):x};let Q=!1;const te=(j,x,U)=>{j==null?x._vnode&&R(x._vnode,null,null,!0):g(x._vnode||null,j,x,null,null,null,U),x._vnode=j,Q||(Q=!0,Eg(),h_(),Q=!1)},fe={p:g,um:R,m:M,r:W,mt:O,mc:k,pc:J,pbc:P,n:H,o:e};let me,_e;return t&&([me,_e]=t(fe)),{render:te,hydrate:me,createApp:sT(te,me)}}function Xf({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 ba({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function yT(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Hp(e,t,n=!1){const r=e.children,i=t.children;if(Ue(r)&&Ue(i))for(let l=0;l<r.length;l++){const m=r[l];let o=i[l];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[l]=Ui(i[l]),o.el=m.el),!n&&o.patchFlag!==-2&&Hp(m,o)),o.type===ss&&o.patchFlag!==-1&&(o.el=m.el),o.type===hn&&!o.el&&(o.el=m.el)}}function bT(e){const t=e.slice(),n=[0];let r,i,l,m,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(l=0,m=n.length-1;l<m;)o=l+m>>1,e[n[o]]<c?l=o+1:m=o;c<e[n[l]]&&(l>0&&(t[r]=n[l-1]),n[l]=r)}}for(l=n.length,m=n[l-1];l-- >0;)n[l]=m,m=t[m];return n}function W_(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:W_(t)}function Ng(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const _T=Symbol.for("v-scx"),wT=()=>Xe(_T);function ro(e,t){return df(e,null,t)}function ST(e,t){return df(e,null,{flush:"post"})}function Te(e,t,n){return df(e,t,n)}function df(e,t,n=At){const{immediate:r,deep:i,flush:l,once:m}=n,o=Kt({},n),a=t&&r||!t&&l!=="post";let c;if(ml){if(l==="sync"){const s=wT();c=s.__watcherHandles||(s.__watcherHandles=[])}else if(!a){const s=()=>{};return s.stop=at,s.resume=at,s.pause=at,s}}const d=Sn;o.call=(s,h,g)=>Ar(s,d,h,g);let u=!1;l==="post"?o.scheduler=s=>{An(s,d&&d.suspense)}:l!=="sync"&&(u=!0,o.scheduler=(s,h)=>{h?s():Fp(s)}),o.augmentJob=s=>{t&&(s.flags|=4),u&&(s.flags|=2,d&&(s.id=d.uid,s.i=d))};const f=zx(e,t,o);return ml&&(c?c.push(f):a&&f()),f}function CT(e,t,n){const r=this.proxy,i=Ke(e)?e.includes(".")?G_(r,e):()=>r[e]:e.bind(r,r);let l;Ve(t)?l=t:(l=t.handler,n=t);const m=Jl(this),o=df(i,l.bind(r),n);return m(),o}function G_(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 xT=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${nr(t)}Modifiers`]||e[`${fa(t)}Modifiers`];function TT(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||At;let i=n;const l=t.startsWith("update:"),m=l&&xT(r,t.slice(7));m&&(m.trim&&(i=n.map(d=>Ke(d)?d.trim():d)),m.number&&(i=n.map(qd)));let o,a=r[o=Zu(t)]||r[o=Zu(nr(t))];!a&&l&&(a=r[o=Zu(fa(t))]),a&&Ar(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,Ar(c,e,6,i)}}const kT=new WeakMap;function Y_(e,t,n=!1){const r=n?kT:t.emitsCache,i=r.get(e);if(i!==void 0)return i;const l=e.emits;let m={},o=!1;if(!Ve(e)){const a=c=>{const d=Y_(c,t,!0);d&&(o=!0,Kt(m,d))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!l&&!o?(nt(e)&&r.set(e,null),null):(Ue(l)?l.forEach(a=>m[a]=null):Kt(m,l),nt(e)&&r.set(e,m),m)}function hf(e,t){return!e||!of(t)?!1:(t=t.slice(2).replace(/Once$/,""),st(e,t[0].toLowerCase()+t.slice(1))||st(e,fa(t))||st(e,t))}function qf(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[l],slots:m,attrs:o,emit:a,render:c,renderCache:d,props:u,data:f,setupState:s,ctx:h,inheritAttrs:g}=e,p=Tc(e);let v,y;try{if(n.shapeFlag&4){const w=i||r,S=w;v=jr(c.call(S,w,d,u,s,f,h)),y=o}else{const w=t;v=jr(w.length>1?w(u,{attrs:o,slots:m,emit:a}):w(u,null)),y=t.props?o:ET(o)}}catch(w){Ws.length=0,uf(w,e,1),v=oe(hn)}let b=v;if(y&&g!==!1){const w=Object.keys(y),{shapeFlag:S}=b;w.length&&S&7&&(l&&w.some(Sp)&&(y=OT(y,l)),b=wi(b,y,!1,!0))}return n.dirs&&(b=wi(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Wa(b,n.transition),v=b,Tc(p),v}const ET=e=>{let t;for(const n in e)(n==="class"||n==="style"||of(n))&&((t||(t={}))[n]=e[n]);return t},OT=(e,t)=>{const n={};for(const r in e)(!Sp(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function AT(e,t,n){const{props:r,children:i,component:l}=e,{props:m,children:o,patchFlag:a}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?zg(r,m,c):!!m;if(a&8){const d=t.dynamicProps;for(let u=0;u<d.length;u++){const f=d[u];if(m[f]!==r[f]&&!hf(c,f))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===m?!1:r?m?zg(r,m,c):!0:!!m;return!1}function zg(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 l=r[i];if(t[l]!==e[l]&&!hf(n,l))return!0}return!1}function PT({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 K_=e=>e.__isSuspense;function IT(e,t){t&&t.pendingBranch?Ue(e)?t.effects.push(...e):t.effects.push(e):d_(e)}const $e=Symbol.for("v-fgt"),ss=Symbol.for("v-txt"),hn=Symbol.for("v-cmt"),ec=Symbol.for("v-stc"),Ws=[];let qn=null;function N(e=!1){Ws.push(qn=e?null:[])}function MT(){Ws.pop(),qn=Ws[Ws.length-1]||null}let pl=1;function Ac(e,t=!1){pl+=e,e<0&&qn&&t&&(qn.hasOnce=!0)}function X_(e){return e.dynamicChildren=pl>0?qn||Ro:null,MT(),pl>0&&qn&&qn.push(e),e}function se(e,t,n,r,i,l){return X_(ne(e,t,n,r,i,l,!0))}function ve(e,t,n,r,i){return X_(oe(e,t,n,r,i,!0))}function _i(e){return e?e.__v_isVNode===!0:!1}function ka(e,t){return e.type===t.type&&e.key===t.key}const q_=({key:e})=>e!=null?e:null,tc=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ke(e)||Ot(e)||Ve(e)?{i:pn,r:e,k:t,f:!!n}:e:null);function ne(e,t=null,n=null,r=0,i=null,l=e===$e?0:1,m=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&q_(t),ref:t&&tc(t),scopeId:m_,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:l,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:pn};return o?(Wp(a,n),l&128&&e.normalize(a)):n&&(a.shapeFlag|=Ke(n)?8:16),pl>0&&!m&&qn&&(a.patchFlag>0||l&6)&&a.patchFlag!==32&&qn.push(a),a}const oe=LT;function LT(e,t=null,n=null,r=0,i=null,l=!1){if((!e||e===P_)&&(e=hn),_i(e)){const o=wi(e,t,!0);return n&&Wp(o,n),pl>0&&!l&&qn&&(o.shapeFlag&6?qn[qn.indexOf(e)]=o:qn.push(o)),o.patchFlag=-2,o}if(VT(e)&&(e=e.__vccOpts),t){t=RT(t);let{class:o,style:a}=t;o&&!Ke(o)&&(t.class=ce(o)),nt(a)&&(Dp(a)&&!Ue(a)&&(a=Kt({},a)),t.style=ze(a))}const m=Ke(e)?1:K_(e)?128:v_(e)?64:nt(e)?4:Ve(e)?2:0;return ne(e,t,n,r,i,m,l,!0)}function RT(e){return e?Dp(e)||N_(e)?Kt({},e):e:null}function wi(e,t,n=!1,r=!1){const{props:i,ref:l,patchFlag:m,children:o,transition:a}=e,c=t?zn(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&q_(c),ref:t&&t.ref?n&&l?Ue(l)?l.concat(tc(t)):[l,tc(t)]:tc(t):l,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?m===-1?16:m|16:m,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&wi(e.ssContent),ssFallback:e.ssFallback&&wi(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Wa(d,a.clone(d)),d}function Ne(e=" ",t=0){return oe(ss,null,e,t)}function ge(e="",t=!1){return t?(N(),ve(hn,null,e)):oe(hn,null,e)}function jr(e){return e==null||typeof e=="boolean"?oe(hn):Ue(e)?oe($e,null,e.slice()):_i(e)?Ui(e):oe(ss,null,String(e))}function Ui(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:wi(e)}function Wp(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ue(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Wp(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!N_(t)?t._ctx=pn:i===3&&pn&&(pn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ve(t)?(t={default:t,_ctx:pn},n=32):(t=String(t),r&64?(n=16,t=[Ne(t)]):n=8);e.children=t,e.shapeFlag|=n}function zn(...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=ce([t.class,r.class]));else if(i==="style")t.style=ze([t.style,r.style]);else if(of(i)){const l=t[i],m=r[i];m&&l!==m&&!(Ue(l)&&l.includes(m))&&(t[i]=l?[].concat(l,m):m)}else i!==""&&(t[i]=r[i])}return t}function Fr(e,t,n,r=null){Ar(e,t,7,[n,r])}const DT=F_();let FT=0;function BT(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||DT,l={uid:FT++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Wb(!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:j_(r,i),emitsOptions:Y_(r,i),emit:null,emitted:null,propsDefaults:At,inheritAttrs:r.inheritAttrs,ctx:At,data:At,props:At,attrs:At,slots:At,refs:At,setupState:At,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 l.ctx={_:l},l.root=t?t.root:l,l.emit=TT.bind(null,l),e.ce&&e.ce(l),l}let Sn=null;const kt=()=>Sn||pn;let Pc,ah;{const e=ql(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),l=>{i.length>1?i.forEach(m=>m(l)):i[0](l)}};Pc=t("__VUE_INSTANCE_SETTERS__",n=>Sn=n),ah=t("__VUE_SSR_SETTERS__",n=>ml=n)}const Jl=e=>{const t=Sn;return Pc(e),e.scope.on(),()=>{e.scope.off(),Pc(t)}},jg=()=>{Sn&&Sn.scope.off(),Pc(null)};function Z_(e){return e.vnode.shapeFlag&4}let ml=!1;function $T(e,t=!1,n=!1){t&&ah(t);const{props:r,children:i}=e.vnode,l=Z_(e);uT(e,r,l,t),hT(e,i,n||t);const m=l?NT(e,t):void 0;return t&&ah(!1),m}function NT(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,eT);const{setup:r}=n;if(r){yi();const i=e.setupContext=r.length>1?Q_(e):null,l=Jl(e),m=Zl(r,e,0,[e.props,i]),o=bc(m);if(bi(),l(),(o||e.sp)&&!Bo(e)&&T_(e),o){if(m.then(jg,jg),t)return m.then(a=>{Vg(e,a,t)}).catch(a=>{uf(a,e,0)});e.asyncDep=m}else Vg(e,m,t)}else J_(e,t)}function Vg(e,t,n){Ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:nt(t)&&(e.setupState=s_(t)),J_(e,n)}let Ug;function J_(e,t,n){const r=e.type;if(!e.render){if(!t&&Ug&&!r.render){const i=r.template||jp(e).template;if(i){const{isCustomElement:l,compilerOptions:m}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,c=Kt(Kt({isCustomElement:l,delimiters:o},m),a);r.render=Ug(i,c)}}e.render=r.render||at}{const i=Jl(e);yi();try{tT(e)}finally{bi(),i()}}}const zT={get(e,t){return wn(e,"get",""),e[t]}};function Q_(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,zT),slots:e.slots,emit:e.emit,expose:t}}function pf(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(s_(fl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Hs)return Hs[n](e)},has(t,n){return n in t||n in Hs}})):e.proxy}function jT(e,t=!0){return Ve(e)?e.displayName||e.name:e.name||t&&e.__name}function VT(e){return Ve(e)&&"__vccOpts"in e}const ee=(e,t)=>u_(e,t,ml);function St(e,t,n){const r=(l,m,o)=>{Ac(-1);try{return oe(l,m,o)}finally{Ac(1)}},i=arguments.length;return i===2?nt(t)&&!Ue(t)?_i(t)?r(e,null,[t]):r(e,t):r(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&_i(n)&&(n=[n]),r(e,t,n))}const UT="3.5.21",HT=at;/**
* @vue/runtime-dom v3.5.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let oh;const Hg=typeof window<"u"&&window.trustedTypes;if(Hg)try{oh=Hg.createPolicy("vue",{createHTML:e=>e})}catch{}const e1=oh?e=>oh.createHTML(e):e=>e,WT="http://www.w3.org/2000/svg",GT="http://www.w3.org/1998/Math/MathML",oi=typeof document<"u"?document:null,Wg=oi&&oi.createElement("template"),YT={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"?oi.createElementNS(WT,e):t==="mathml"?oi.createElementNS(GT,e):n?oi.createElement(e,{is:n}):oi.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>oi.createTextNode(e),createComment:e=>oi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>oi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,l){const m=n?n.previousSibling:t.lastChild;if(i&&(i===l||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===l||!(i=i.nextSibling)););else{Wg.innerHTML=e1(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=Wg.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[m?m.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Mi="transition",xs="animation",Ho=Symbol("_vtc"),t1={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},n1=Kt({},w_,t1),KT=e=>(e.displayName="Transition",e.props=n1,e),Hn=KT((e,{slots:t})=>St(Wx,r1(e),t)),_a=(e,t=[])=>{Ue(e)?e.forEach(n=>n(...t)):e&&e(...t)},Gg=e=>e?Ue(e)?e.some(t=>t.length>1):e.length>1:!1;function r1(e){const t={};for(const I in e)I in t1||(t[I]=e[I]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:l=`${n}-enter-from`,enterActiveClass:m=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:a=l,appearActiveClass:c=m,appearToClass:d=o,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:s=`${n}-leave-to`}=e,h=XT(i),g=h&&h[0],p=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:w,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:T=y,onAppearCancelled:k=b}=t,A=(I,$,O,Y)=>{I._enterCancelled=Y,Fi(I,$?d:o),Fi(I,$?c:m),O&&O()},P=(I,$)=>{I._isLeaving=!1,Fi(I,u),Fi(I,s),Fi(I,f),$&&$()},z=I=>($,O)=>{const Y=I?T:y,ae=()=>A($,I,O);_a(Y,[$,ae]),Yg(()=>{Fi($,I?a:l),$r($,I?d:o),Gg(Y)||Kg($,r,g,ae)})};return Kt(t,{onBeforeEnter(I){_a(v,[I]),$r(I,l),$r(I,m)},onBeforeAppear(I){_a(C,[I]),$r(I,a),$r(I,c)},onEnter:z(!1),onAppear:z(!0),onLeave(I,$){I._isLeaving=!0;const O=()=>P(I,$);$r(I,u),I._enterCancelled?($r(I,f),sh()):(sh(),$r(I,f)),Yg(()=>{!I._isLeaving||(Fi(I,u),$r(I,s),Gg(w)||Kg(I,r,p,O))}),_a(w,[I,O])},onEnterCancelled(I){A(I,!1,void 0,!0),_a(b,[I])},onAppearCancelled(I){A(I,!0,void 0,!0),_a(k,[I])},onLeaveCancelled(I){P(I),_a(S,[I])}})}function XT(e){if(e==null)return null;if(nt(e))return[Zf(e.enter),Zf(e.leave)];{const t=Zf(e);return[t,t]}}function Zf(e){return ox(e)}function $r(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ho]||(e[Ho]=new Set)).add(t)}function Fi(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Ho];n&&(n.delete(t),n.size||(e[Ho]=void 0))}function Yg(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let qT=0;function Kg(e,t,n,r){const i=e._endId=++qT,l=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(l,n);const{type:m,timeout:o,propCount:a}=i1(e,t);if(!m)return r();const c=m+"end";let d=0;const u=()=>{e.removeEventListener(c,f),l()},f=s=>{s.target===e&&++d>=a&&u()};setTimeout(()=>{d<a&&u()},o+1),e.addEventListener(c,f)}function i1(e,t){const n=window.getComputedStyle(e),r=h=>(n[h]||"").split(", "),i=r(`${Mi}Delay`),l=r(`${Mi}Duration`),m=Xg(i,l),o=r(`${xs}Delay`),a=r(`${xs}Duration`),c=Xg(o,a);let d=null,u=0,f=0;t===Mi?m>0&&(d=Mi,u=m,f=l.length):t===xs?c>0&&(d=xs,u=c,f=a.length):(u=Math.max(m,c),d=u>0?m>c?Mi:xs:null,f=d?d===Mi?l.length:a.length:0);const s=d===Mi&&/\b(?:transform|all)(?:,|$)/.test(r(`${Mi}Property`).toString());return{type:d,timeout:u,propCount:f,hasTransform:s}}function Xg(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>qg(n)+qg(e[r])))}function qg(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function sh(){return document.body.offsetHeight}function ZT(e,t,n){const r=e[Ho];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ic=Symbol("_vod"),a1=Symbol("_vsh"),Gt={name:"show",beforeMount(e,{value:t},{transition:n}){e[Ic]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Ts(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),Ts(e,!0),r.enter(e)):r.leave(e,()=>{Ts(e,!1)}):Ts(e,t))},beforeUnmount(e,{value:t}){Ts(e,t)}};function Ts(e,t){e.style.display=t?e[Ic]:"none",e[a1]=!t}const o1=Symbol("");function JT(e){const t=kt();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(l=>Mc(l,i))},r=()=>{const i=e(t.proxy);t.ce?Mc(t.ce,i):lh(t.subTree,i),n(i)};A_(()=>{d_(r)}),tt(()=>{Te(r,at,{flush:"post"});const i=new MutationObserver(r);i.observe(t.subTree.el.parentNode,{childList:!0}),da(()=>i.disconnect())})}function lh(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{lh(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Mc(e.el,t);else if(e.type===$e)e.children.forEach(n=>lh(n,t));else if(e.type===ec){let{el:n,anchor:r}=e;for(;n&&(Mc(n,t),n!==r);)n=n.nextSibling}}function Mc(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const i in t){const l=px(t[i]);n.setProperty(`--${i}`,l),r+=`--${i}: ${l};`}n[o1]=r}}const QT=/(?:^|;)\s*display\s*:/;function ek(e,t,n){const r=e.style,i=Ke(n);let l=!1;if(n&&!i){if(t)if(Ke(t))for(const m of t.split(";")){const o=m.slice(0,m.indexOf(":")).trim();n[o]==null&&nc(r,o,"")}else for(const m in t)n[m]==null&&nc(r,m,"");for(const m in n)m==="display"&&(l=!0),nc(r,m,n[m])}else if(i){if(t!==n){const m=r[o1];m&&(n+=";"+m),r.cssText=n,l=QT.test(n)}}else t&&e.removeAttribute("style");Ic in e&&(e[Ic]=l?r.display:"",e[a1]&&(r.display="none"))}const Zg=/\s*!important$/;function nc(e,t,n){if(Ue(n))n.forEach(r=>nc(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=tk(e,t);Zg.test(n)?e.setProperty(fa(r),n.replace(Zg,""),"important"):e[r]=n}}const Jg=["Webkit","Moz","ms"],Jf={};function tk(e,t){const n=Jf[t];if(n)return n;let r=nr(t);if(r!=="filter"&&r in e)return Jf[t]=r;r=Xl(r);for(let i=0;i<Jg.length;i++){const l=Jg[i]+r;if(l in e)return Jf[t]=l}return t}const Qg="http://www.w3.org/1999/xlink";function ev(e,t,n,r,i,l=dx(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Qg,t.slice(6,t.length)):e.setAttributeNS(Qg,t,n):n==null||l&&!Vb(n)?e.removeAttribute(t):e.setAttribute(t,l?"":Or(n)?String(n):n)}function tv(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?e1(n):n);return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){const o=l==="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 m=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=Vb(n):n==null&&o==="string"?(n="",m=!0):o==="number"&&(n=0,m=!0)}try{e[t]=n}catch{}m&&e.removeAttribute(i||t)}function Ea(e,t,n,r){e.addEventListener(t,n,r)}function nk(e,t,n,r){e.removeEventListener(t,n,r)}const nv=Symbol("_vei");function rk(e,t,n,r,i=null){const l=e[nv]||(e[nv]={}),m=l[t];if(r&&m)m.value=r;else{const[o,a]=ik(t);if(r){const c=l[t]=sk(r,i);Ea(e,o,c,a)}else m&&(nk(e,o,m,a),l[t]=void 0)}}const rv=/(?:Once|Passive|Capture)$/;function ik(e){let t;if(rv.test(e)){t={};let r;for(;r=e.match(rv);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):fa(e.slice(2)),t]}let Qf=0;const ak=Promise.resolve(),ok=()=>Qf||(ak.then(()=>Qf=0),Qf=Date.now());function sk(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ar(lk(r,n.value),t,5,[r])};return n.value=e,n.attached=ok(),n}function lk(e,t){if(Ue(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 iv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,uk=(e,t,n,r,i,l)=>{const m=i==="svg";t==="class"?ZT(e,r,m):t==="style"?ek(e,n,r):of(t)?Sp(t)||rk(e,t,n,r,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ck(e,t,r,m))?(tv(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ev(e,t,r,m,l,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ke(r))?tv(e,nr(t),r,l,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),ev(e,t,r,m))};function ck(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&iv(t)&&Ve(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 iv(t)&&Ke(n)?!1:t in e}const s1=new WeakMap,l1=new WeakMap,Lc=Symbol("_moveCb"),av=Symbol("_enterCb"),fk=e=>(delete e.props.mode,e),dk=fk({name:"TransitionGroup",props:Kt({},n1,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=kt(),r=__();let i,l;return no(()=>{if(!i.length)return;const m=e.moveClass||`${e.name||"v"}-move`;if(!vk(i[0].el,n.vnode.el,m)){i=[];return}i.forEach(pk),i.forEach(mk);const o=i.filter(gk);sh(),o.forEach(a=>{const c=a.el,d=c.style;$r(c,m),d.transform=d.webkitTransform=d.transitionDuration="";const u=c[Lc]=f=>{f&&f.target!==c||(!f||f.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",u),c[Lc]=null,Fi(c,m))};c.addEventListener("transitionend",u)}),i=[]}),()=>{const m=rt(e),o=r1(m);let a=m.tag||$e;if(i=[],l)for(let c=0;c<l.length;c++){const d=l[c];d.el&&d.el instanceof Element&&(i.push(d),Wa(d,hl(d,o,r,n)),s1.set(d,d.el.getBoundingClientRect()))}l=t.default?$p(t.default()):[];for(let c=0;c<l.length;c++){const d=l[c];d.key!=null&&Wa(d,hl(d,o,r,n))}return oe(a,null,l)}}}),hk=dk;function pk(e){const t=e.el;t[Lc]&&t[Lc](),t[av]&&t[av]()}function mk(e){l1.set(e,e.el.getBoundingClientRect())}function gk(e){const t=s1.get(e),n=l1.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const l=e.el.style;return l.transform=l.webkitTransform=`translate(${r}px,${i}px)`,l.transitionDuration="0s",e}}function vk(e,t,n){const r=e.cloneNode(),i=e[Ho];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 l=t.nodeType===1?t:t.parentNode;l.appendChild(r);const{hasTransform:m}=i1(r);return l.removeChild(r),m}const Rc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ue(t)?n=>Ju(t,n):t};function yk(e){e.target.composing=!0}function ov(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const $o=Symbol("_assign"),bk={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[$o]=Rc(i);const l=r||i.props&&i.props.type==="number";Ea(e,t?"change":"input",m=>{if(m.target.composing)return;let o=e.value;n&&(o=o.trim()),l&&(o=qd(o)),e[$o](o)}),n&&Ea(e,"change",()=>{e.value=e.value.trim()}),t||(Ea(e,"compositionstart",yk),Ea(e,"compositionend",ov),Ea(e,"change",ov))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:l}},m){if(e[$o]=Rc(m),e.composing)return;const o=(l||e.type==="number")&&!/^0\d/.test(e.value)?qd(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))}},u1={created(e,{value:t},n){e.checked=_c(t,n.props.value),e[$o]=Rc(n),Ea(e,"change",()=>{e[$o](_k(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[$o]=Rc(r),t!==n&&(e.checked=_c(t,r.props.value))}};function _k(e){return"_value"in e?e._value:e.value}const wk=["ctrl","shift","alt","meta"],Sk={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)=>wk.some(n=>e[`${n}Key`]&&!t.includes(n))},Qe=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(i,...l)=>{for(let m=0;m<t.length;m++){const o=Sk[t[m]];if(o&&o(i,t))return}return e(i,...l)})},Ck={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Dt=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const l=fa(i.key);if(t.some(m=>m===l||Ck[m]===l))return e(i)})},xk=Kt({patchProp:uk},YT);let sv;function c1(){return sv||(sv=gT(xk))}const Dc=(...e)=>{c1().render(...e)},Tk=(...e)=>{const t=c1().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=Ek(r);if(!i)return;const l=t._component;!Ve(l)&&!l.render&&!l.template&&(l.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const m=n(i,!1,kk(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),m},t};function kk(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ek(e){return Ke(e)?document.querySelector(e):e}var Ok=!1;/*!
* pinia v2.3.1
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let f1;const mf=e=>f1=e,d1=Symbol();function uh(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Gs;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Gs||(Gs={}));function Ak(){const e=Tp(!0),t=e.run(()=>ie({}));let n=[],r=[];const i=fl({install(l){mf(i),i._a=l,l.provide(d1,i),l.config.globalProperties.$pinia=i,r.forEach(m=>n.push(m)),r=[]},use(l){return!this._a&&!Ok?r.push(l):n.push(l),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const h1=()=>{};function lv(e,t,n,r=h1){e.push(t);const i=()=>{const l=e.indexOf(t);l>-1&&(e.splice(l,1),r())};return!n&&kp()&&Ep(i),i}function yo(e,...t){e.slice().forEach(n=>{n(...t)})}const Pk=e=>e(),uv=Symbol(),ed=Symbol();function ch(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];uh(i)&&uh(r)&&e.hasOwnProperty(n)&&!Ot(r)&&!Ji(r)?e[n]=ch(i,r):e[n]=r}return e}const Ik=Symbol();function Mk(e){return!uh(e)||!e.hasOwnProperty(Ik)}const{assign:Bi}=Object;function Lk(e){return!!(Ot(e)&&e.effect)}function Rk(e,t,n,r){const{state:i,actions:l,getters:m}=t,o=n.state.value[e];let a;function c(){o||(n.state.value[e]=i?i():{});const d=pr(n.state.value[e]);return Bi(d,l,Object.keys(m||{}).reduce((u,f)=>(u[f]=fl(ee(()=>{mf(n);const s=n._s.get(e);return m[f].call(s,s)})),u),{}))}return a=p1(e,c,t,n,r,!0),a}function p1(e,t,n={},r,i,l){let m;const o=Bi({actions:{}},n),a={deep:!0};let c,d,u=[],f=[],s;const h=r.state.value[e];!l&&!h&&(r.state.value[e]={}),ie({});let g;function p(k){let A;c=d=!1,typeof k=="function"?(k(r.state.value[e]),A={type:Gs.patchFunction,storeId:e,events:s}):(ch(r.state.value[e],k),A={type:Gs.patchObject,payload:k,storeId:e,events:s});const P=g=Symbol();Ge().then(()=>{g===P&&(c=!0)}),d=!0,yo(u,A,r.state.value[e])}const v=l?function(){const{state:A}=n,P=A?A():{};this.$patch(z=>{Bi(z,P)})}:h1;function y(){m.stop(),u=[],f=[],r._s.delete(e)}const b=(k,A="")=>{if(uv in k)return k[ed]=A,k;const P=function(){mf(r);const z=Array.from(arguments),I=[],$=[];function O(q){I.push(q)}function Y(q){$.push(q)}yo(f,{args:z,name:P[ed],store:S,after:O,onError:Y});let ae;try{ae=k.apply(this&&this.$id===e?this:S,z)}catch(q){throw yo($,q),q}return ae instanceof Promise?ae.then(q=>(yo(I,q),q)).catch(q=>(yo($,q),Promise.reject(q))):(yo(I,ae),ae)};return P[uv]=!0,P[ed]=A,P},w={_p:r,$id:e,$onAction:lv.bind(null,f),$patch:p,$reset:v,$subscribe(k,A={}){const P=lv(u,k,A.detached,()=>z()),z=m.run(()=>Te(()=>r.state.value[e],I=>{(A.flush==="sync"?d:c)&&k({storeId:e,type:Gs.direct,events:s},I)},Bi({},a,A)));return P},$dispose:y},S=Tt(w);r._s.set(e,S);const T=(r._a&&r._a.runWithContext||Pk)(()=>r._e.run(()=>(m=Tp()).run(()=>t({action:b}))));for(const k in T){const A=T[k];if(Ot(A)&&!Lk(A)||Ji(A))l||(h&&Mk(A)&&(Ot(A)?A.value=h[k]:ch(A,h[k])),r.state.value[e][k]=A);else if(typeof A=="function"){const P=b(A,k);T[k]=P,o.actions[k]=A}}return Bi(S,T),Bi(rt(S),T),Object.defineProperty(S,"$state",{get:()=>r.state.value[e],set:k=>{p(A=>{Bi(A,k)})}}),r._p.forEach(k=>{Bi(S,m.run(()=>k({store:S,app:r._a,pinia:r,options:o})))}),h&&l&&n.hydrate&&n.hydrate(S.$state,h),c=!0,d=!0,S}/*! #__NO_SIDE_EFFECTS__ */function ls(e,t,n){let r,i;const l=typeof t=="function";typeof e=="string"?(r=e,i=l?n:t):(i=e,r=e.id);function m(o,a){const c=lT();return o=o||(c?Xe(d1,null):null),o&&mf(o),o=f1,o._s.has(r)||(l?p1(r,t,i,o):Rk(r,i,o)),o._s.get(r)}return m.$id=r,m}/*!
* vue-router v4.5.1
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/const Eo=typeof document<"u";function m1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Dk(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&m1(e.default)}const wt=Object.assign;function td(e,t){const n={};for(const r in t){const i=t[r];n[r]=Pr(i)?i.map(e):e(i)}return n}const Ys=()=>{},Pr=Array.isArray,g1=/#/g,Fk=/&/g,Bk=/\//g,$k=/=/g,Nk=/\?/g,v1=/\+/g,zk=/%5B/g,jk=/%5D/g,y1=/%5E/g,Vk=/%60/g,b1=/%7B/g,Uk=/%7C/g,_1=/%7D/g,Hk=/%20/g;function Gp(e){return encodeURI(""+e).replace(Uk,"|").replace(zk,"[").replace(jk,"]")}function Wk(e){return Gp(e).replace(b1,"{").replace(_1,"}").replace(y1,"^")}function fh(e){return Gp(e).replace(v1,"%2B").replace(Hk,"+").replace(g1,"%23").replace(Fk,"%26").replace(Vk,"`").replace(b1,"{").replace(_1,"}").replace(y1,"^")}function Gk(e){return fh(e).replace($k,"%3D")}function Yk(e){return Gp(e).replace(g1,"%23").replace(Nk,"%3F")}function Kk(e){return e==null?"":Yk(e).replace(Bk,"%2F")}function gl(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Xk=/\/$/,qk=e=>e.replace(Xk,"");function nd(e,t,n="/"){let r,i={},l="",m="";const o=t.indexOf("#");let a=t.indexOf("?");return o<a&&o>=0&&(a=-1),a>-1&&(r=t.slice(0,a),l=t.slice(a+1,o>-1?o:t.length),i=e(l)),o>-1&&(r=r||t.slice(0,o),m=t.slice(o,t.length)),r=eE(r!=null?r:t,n),{fullPath:r+(l&&"?")+l+m,path:r,query:i,hash:gl(m)}}function Zk(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function cv(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Jk(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Wo(t.matched[r],n.matched[i])&&w1(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Wo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function w1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Qk(e[n],t[n]))return!1;return!0}function Qk(e,t){return Pr(e)?fv(e,t):Pr(t)?fv(t,e):e===t}function fv(e,t){return Pr(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function eE(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 l=n.length-1,m,o;for(m=0;m<r.length;m++)if(o=r[m],o!==".")if(o==="..")l>1&&l--;else break;return n.slice(0,l).join("/")+"/"+r.slice(m).join("/")}const Li={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var vl;(function(e){e.pop="pop",e.push="push"})(vl||(vl={}));var Ks;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ks||(Ks={}));function tE(e){if(!e)if(Eo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),qk(e)}const nE=/^[^#]+#/;function rE(e,t){return e.replace(nE,"#")+t}function iE(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 gf=()=>({left:window.scrollX,top:window.scrollY});function aE(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=iE(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 dv(e,t){return(history.state?history.state.position-t:-1)+e}const dh=new Map;function oE(e,t){dh.set(e,t)}function sE(e){const t=dh.get(e);return dh.delete(e),t}let lE=()=>location.protocol+"//"+location.host;function S1(e,t){const{pathname:n,search:r,hash:i}=t,l=e.indexOf("#");if(l>-1){let o=i.includes(e.slice(l))?e.slice(l).length:1,a=i.slice(o);return a[0]!=="/"&&(a="/"+a),cv(a,"")}return cv(n,e)+r+i}function uE(e,t,n,r){let i=[],l=[],m=null;const o=({state:f})=>{const s=S1(e,location),h=n.value,g=t.value;let p=0;if(f){if(n.value=s,t.value=f,m&&m===h){m=null;return}p=g?f.position-g.position:0}else r(s);i.forEach(v=>{v(n.value,h,{delta:p,type:vl.pop,direction:p?p>0?Ks.forward:Ks.back:Ks.unknown})})};function a(){m=n.value}function c(f){i.push(f);const s=()=>{const h=i.indexOf(f);h>-1&&i.splice(h,1)};return l.push(s),s}function d(){const{history:f}=window;!f.state||f.replaceState(wt({},f.state,{scroll:gf()}),"")}function u(){for(const f of l)f();l=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:a,listen:c,destroy:u}}function hv(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?gf():null}}function cE(e){const{history:t,location:n}=window,r={value:S1(e,n)},i={value:t.state};i.value||l(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(a,c,d){const u=e.indexOf("#"),f=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+a:lE()+e+a;try{t[d?"replaceState":"pushState"](c,"",f),i.value=c}catch(s){console.error(s),n[d?"replace":"assign"](f)}}function m(a,c){const d=wt({},t.state,hv(i.value.back,a,i.value.forward,!0),c,{position:i.value.position});l(a,d,!0),r.value=a}function o(a,c){const d=wt({},i.value,t.state,{forward:a,scroll:gf()});l(d.current,d,!0);const u=wt({},hv(r.value,a,null),{position:d.position+1},c);l(a,u,!1),r.value=a}return{location:r,state:i,push:o,replace:m}}function fE(e){e=tE(e);const t=cE(e),n=uE(e,t.state,t.location,t.replace);function r(l,m=!0){m||n.pauseListeners(),history.go(l)}const i=wt({location:"",base:e,go:r,createHref:rE.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 dE(e){return typeof e=="string"||e&&typeof e=="object"}function C1(e){return typeof e=="string"||typeof e=="symbol"}const x1=Symbol("");var pv;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(pv||(pv={}));function Go(e,t){return wt(new Error,{type:e,[x1]:!0},t)}function ni(e,t){return e instanceof Error&&x1 in e&&(t==null||!!(e.type&t))}const mv="[^/]+?",hE={sensitive:!1,strict:!1,start:!0,end:!0},pE=/[.+*?^${}()[\]/\\]/g;function mE(e,t){const n=wt({},hE,t),r=[];let i=n.start?"^":"";const l=[];for(const c of e){const d=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let u=0;u<c.length;u++){const f=c[u];let s=40+(n.sensitive?.25:0);if(f.type===0)u||(i+="/"),i+=f.value.replace(pE,"\\$&"),s+=40;else if(f.type===1){const{value:h,repeatable:g,optional:p,regexp:v}=f;l.push({name:h,repeatable:g,optional:p});const y=v||mv;if(y!==mv){s+=10;try{new RegExp(`(${y})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${h}" (${y}): `+w.message)}}let b=g?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;u||(b=p&&c.length<2?`(?:/${b})`:"/"+b),p&&(b+="?"),i+=b,s+=20,p&&(s+=-8),g&&(s+=-20),y===".*"&&(s+=-50)}d.push(s)}r.push(d)}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 m=new RegExp(i,n.sensitive?"":"i");function o(c){const d=c.match(m),u={};if(!d)return null;for(let f=1;f<d.length;f++){const s=d[f]||"",h=l[f-1];u[h.name]=s&&h.repeatable?s.split("/"):s}return u}function a(c){let d="",u=!1;for(const f of e){(!u||!d.endsWith("/"))&&(d+="/"),u=!1;for(const s of f)if(s.type===0)d+=s.value;else if(s.type===1){const{value:h,repeatable:g,optional:p}=s,v=h in c?c[h]:"";if(Pr(v)&&!g)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const y=Pr(v)?v.join("/"):v;if(!y)if(p)f.length<2&&(d.endsWith("/")?d=d.slice(0,-1):u=!0);else throw new Error(`Missing required param "${h}"`);d+=y}}return d||"/"}return{re:m,score:r,keys:l,parse:o,stringify:a}}function gE(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 T1(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const l=gE(r[n],i[n]);if(l)return l;n++}if(Math.abs(i.length-r.length)===1){if(gv(r))return 1;if(gv(i))return-1}return i.length-r.length}function gv(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const vE={type:0,value:""},yE=/[a-zA-Z0-9_]/;function bE(e){if(!e)return[[]];if(e==="/")return[[vE]];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 l;function m(){l&&i.push(l),l=[]}let o=0,a,c="",d="";function u(){!c||(n===0?l.push({type:0,value:c}):n===1||n===2||n===3?(l.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:c,regexp:d,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&&u(),m()):a===":"?(u(),n=1):f();break;case 4:f(),n=r;break;case 1:a==="("?n=2:yE.test(a)?f():(u(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&o--);break;case 2:a===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+a:n=3:d+=a;break;case 3:u(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&o--,d="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),u(),m(),i}function _E(e,t,n){const r=mE(bE(e.path),n),i=wt(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function wE(e,t){const n=[],r=new Map;t=_v({strict:!1,end:!0,sensitive:!1},t);function i(u){return r.get(u)}function l(u,f,s){const h=!s,g=yv(u);g.aliasOf=s&&s.record;const p=_v(t,u),v=[g];if("alias"in u){const w=typeof u.alias=="string"?[u.alias]:u.alias;for(const S of w)v.push(yv(wt({},g,{components:s?s.record.components:g.components,path:S,aliasOf:s?s.record:g})))}let y,b;for(const w of v){const{path:S}=w;if(f&&S[0]!=="/"){const C=f.record.path,T=C[C.length-1]==="/"?"":"/";w.path=f.record.path+(S&&T+S)}if(y=_E(w,f,p),s?s.alias.push(y):(b=b||y,b!==y&&b.alias.push(y),h&&u.name&&!bv(y)&&m(u.name)),k1(y)&&a(y),g.children){const C=g.children;for(let T=0;T<C.length;T++)l(C[T],y,s&&s.children[T])}s=s||y}return b?()=>{m(b)}:Ys}function m(u){if(C1(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(m),f.alias.forEach(m))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(m),u.alias.forEach(m))}}function o(){return n}function a(u){const f=xE(u,n);n.splice(f,0,u),u.record.name&&!bv(u)&&r.set(u.record.name,u)}function c(u,f){let s,h={},g,p;if("name"in u&&u.name){if(s=r.get(u.name),!s)throw Go(1,{location:u});p=s.record.name,h=wt(vv(f.params,s.keys.filter(b=>!b.optional).concat(s.parent?s.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),u.params&&vv(u.params,s.keys.map(b=>b.name))),g=s.stringify(h)}else if(u.path!=null)g=u.path,s=n.find(b=>b.re.test(g)),s&&(h=s.parse(g),p=s.record.name);else{if(s=f.name?r.get(f.name):n.find(b=>b.re.test(f.path)),!s)throw Go(1,{location:u,currentLocation:f});p=s.record.name,h=wt({},f.params,u.params),g=s.stringify(h)}const v=[];let y=s;for(;y;)v.unshift(y.record),y=y.parent;return{name:p,path:g,params:h,matched:v,meta:CE(v)}}e.forEach(u=>l(u));function d(){n.length=0,r.clear()}return{addRoute:l,resolve:c,removeRoute:m,clearRoutes:d,getRoutes:o,getRecordMatcher:i}}function vv(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function yv(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:SE(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 SE(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 bv(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function CE(e){return e.reduce((t,n)=>wt(t,n.meta),{})}function _v(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function xE(e,t){let n=0,r=t.length;for(;n!==r;){const l=n+r>>1;T1(e,t[l])<0?r=l:n=l+1}const i=TE(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function TE(e){let t=e;for(;t=t.parent;)if(k1(t)&&T1(e,t)===0)return t}function k1({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function kE(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 l=r[i].replace(v1," "),m=l.indexOf("="),o=gl(m<0?l:l.slice(0,m)),a=m<0?null:gl(l.slice(m+1));if(o in t){let c=t[o];Pr(c)||(c=t[o]=[c]),c.push(a)}else t[o]=a}return t}function wv(e){let t="";for(let n in e){const r=e[n];if(n=Gk(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Pr(r)?r.map(l=>l&&fh(l)):[r&&fh(r)]).forEach(l=>{l!==void 0&&(t+=(t.length?"&":"")+n,l!=null&&(t+="="+l))})}return t}function EE(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Pr(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const OE=Symbol(""),Sv=Symbol(""),Yp=Symbol(""),Kp=Symbol(""),hh=Symbol("");function ks(){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 Hi(e,t,n,r,i,l=m=>m()){const m=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((o,a)=>{const c=f=>{f===!1?a(Go(4,{from:n,to:t})):f instanceof Error?a(f):dE(f)?a(Go(2,{from:t,to:f})):(m&&r.enterCallbacks[i]===m&&typeof f=="function"&&m.push(f),o())},d=l(()=>e.call(r&&r.instances[i],t,n,c));let u=Promise.resolve(d);e.length<3&&(u=u.then(c)),u.catch(f=>a(f))})}function rd(e,t,n,r,i=l=>l()){const l=[];for(const m of e)for(const o in m.components){let a=m.components[o];if(!(t!=="beforeRouteEnter"&&!m.instances[o]))if(m1(a)){const d=(a.__vccOpts||a)[t];d&&l.push(Hi(d,n,r,m,o,i))}else{let c=a();l.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${o}" at "${m.path}"`);const u=Dk(d)?d.default:d;m.mods[o]=d,m.components[o]=u;const s=(u.__vccOpts||u)[t];return s&&Hi(s,n,r,m,o,i)()}))}}return l}function Cv(e){const t=Xe(Yp),n=Xe(Kp),r=ee(()=>{const a=_(e.to);return t.resolve(a)}),i=ee(()=>{const{matched:a}=r.value,{length:c}=a,d=a[c-1],u=n.matched;if(!d||!u.length)return-1;const f=u.findIndex(Wo.bind(null,d));if(f>-1)return f;const s=xv(a[c-2]);return c>1&&xv(d)===s&&u[u.length-1].path!==s?u.findIndex(Wo.bind(null,a[c-2])):f}),l=ee(()=>i.value>-1&&LE(n.params,r.value.params)),m=ee(()=>i.value>-1&&i.value===n.matched.length-1&&w1(n.params,r.value.params));function o(a={}){if(ME(a)){const c=t[_(e.replace)?"replace":"push"](_(e.to)).catch(Ys);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:ee(()=>r.value.href),isActive:l,isExactActive:m,navigate:o}}function AE(e){return e.length===1?e[0]:e}const PE=be({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:Cv,setup(e,{slots:t}){const n=Tt(Cv(e)),{options:r}=Xe(Yp),i=ee(()=>({[Tv(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Tv(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&AE(t.default(n));return e.custom?l:St("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},l)}}}),IE=PE;function ME(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 LE(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(!Pr(i)||i.length!==r.length||r.some((l,m)=>l!==i[m]))return!1}return!0}function xv(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Tv=(e,t,n)=>e!=null?e:t!=null?t:n,RE=be({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Xe(hh),i=ee(()=>e.route||r.value),l=Xe(Sv,0),m=ee(()=>{let c=_(l);const{matched:d}=i.value;let u;for(;(u=d[c])&&!u.components;)c++;return c}),o=ee(()=>i.value.matched[m.value]);gt(Sv,ee(()=>m.value+1)),gt(OE,o),gt(hh,i);const a=ie();return Te(()=>[a.value,o.value,e.name],([c,d,u],[f,s,h])=>{d&&(d.instances[u]=c,s&&s!==d&&c&&c===f&&(d.leaveGuards.size||(d.leaveGuards=s.leaveGuards),d.updateGuards.size||(d.updateGuards=s.updateGuards))),c&&d&&(!s||!Wo(d,s)||!f)&&(d.enterCallbacks[u]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=i.value,d=e.name,u=o.value,f=u&&u.components[d];if(!f)return kv(n.default,{Component:f,route:c});const s=u.props[d],h=s?s===!0?c.params:typeof s=="function"?s(c):s:null,p=St(f,wt({},h,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(u.instances[d]=null)},ref:a}));return kv(n.default,{Component:p,route:c})||p}}});function kv(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const E1=RE;function DE(e){const t=wE(e.routes,e),n=e.parseQuery||kE,r=e.stringifyQuery||wv,i=e.history,l=ks(),m=ks(),o=ks(),a=mn(Li);let c=Li;Eo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=td.bind(null,H=>""+H),u=td.bind(null,Kk),f=td.bind(null,gl);function s(H,Q){let te,fe;return C1(H)?(te=t.getRecordMatcher(H),fe=Q):fe=H,t.addRoute(fe,te)}function h(H){const Q=t.getRecordMatcher(H);Q&&t.removeRoute(Q)}function g(){return t.getRoutes().map(H=>H.record)}function p(H){return!!t.getRecordMatcher(H)}function v(H,Q){if(Q=wt({},Q||a.value),typeof H=="string"){const x=nd(n,H,Q.path),U=t.resolve({path:x.path},Q),K=i.createHref(x.fullPath);return wt(x,U,{params:f(U.params),hash:gl(x.hash),redirectedFrom:void 0,href:K})}let te;if(H.path!=null)te=wt({},H,{path:nd(n,H.path,Q.path).path});else{const x=wt({},H.params);for(const U in x)x[U]==null&&delete x[U];te=wt({},H,{params:u(x)}),Q.params=u(Q.params)}const fe=t.resolve(te,Q),me=H.hash||"";fe.params=d(f(fe.params));const _e=Zk(r,wt({},H,{hash:Wk(me),path:fe.path})),j=i.createHref(_e);return wt({fullPath:_e,hash:me,query:r===wv?EE(H.query):H.query||{}},fe,{redirectedFrom:void 0,href:j})}function y(H){return typeof H=="string"?nd(n,H,a.value.path):wt({},H)}function b(H,Q){if(c!==H)return Go(8,{from:Q,to:H})}function w(H){return T(H)}function S(H){return w(wt(y(H),{replace:!0}))}function C(H){const Q=H.matched[H.matched.length-1];if(Q&&Q.redirect){const{redirect:te}=Q;let fe=typeof te=="function"?te(H):te;return typeof fe=="string"&&(fe=fe.includes("?")||fe.includes("#")?fe=y(fe):{path:fe},fe.params={}),wt({query:H.query,hash:H.hash,params:fe.path!=null?{}:H.params},fe)}}function T(H,Q){const te=c=v(H),fe=a.value,me=H.state,_e=H.force,j=H.replace===!0,x=C(te);if(x)return T(wt(y(x),{state:typeof x=="object"?wt({},me,x.state):me,force:_e,replace:j}),Q||te);const U=te;U.redirectedFrom=Q;let K;return!_e&&Jk(r,fe,te)&&(K=Go(16,{to:U,from:fe}),M(fe,fe,!0,!1)),(K?Promise.resolve(K):P(U,fe)).catch(L=>ni(L)?ni(L,2)?L:V(L):J(L,U,fe)).then(L=>{if(L){if(ni(L,2))return T(wt({replace:j},y(L.to),{state:typeof L.to=="object"?wt({},me,L.to.state):me,force:_e}),Q||U)}else L=I(U,fe,!0,j,me);return z(U,fe,L),L})}function k(H,Q){const te=b(H,Q);return te?Promise.reject(te):Promise.resolve()}function A(H){const Q=D.values().next().value;return Q&&typeof Q.runWithContext=="function"?Q.runWithContext(H):H()}function P(H,Q){let te;const[fe,me,_e]=FE(H,Q);te=rd(fe.reverse(),"beforeRouteLeave",H,Q);for(const x of fe)x.leaveGuards.forEach(U=>{te.push(Hi(U,H,Q))});const j=k.bind(null,H,Q);return te.push(j),Z(te).then(()=>{te=[];for(const x of l.list())te.push(Hi(x,H,Q));return te.push(j),Z(te)}).then(()=>{te=rd(me,"beforeRouteUpdate",H,Q);for(const x of me)x.updateGuards.forEach(U=>{te.push(Hi(U,H,Q))});return te.push(j),Z(te)}).then(()=>{te=[];for(const x of _e)if(x.beforeEnter)if(Pr(x.beforeEnter))for(const U of x.beforeEnter)te.push(Hi(U,H,Q));else te.push(Hi(x.beforeEnter,H,Q));return te.push(j),Z(te)}).then(()=>(H.matched.forEach(x=>x.enterCallbacks={}),te=rd(_e,"beforeRouteEnter",H,Q,A),te.push(j),Z(te))).then(()=>{te=[];for(const x of m.list())te.push(Hi(x,H,Q));return te.push(j),Z(te)}).catch(x=>ni(x,8)?x:Promise.reject(x))}function z(H,Q,te){o.list().forEach(fe=>A(()=>fe(H,Q,te)))}function I(H,Q,te,fe,me){const _e=b(H,Q);if(_e)return _e;const j=Q===Li,x=Eo?history.state:{};te&&(fe||j?i.replace(H.fullPath,wt({scroll:j&&x&&x.scroll},me)):i.push(H.fullPath,me)),a.value=H,M(H,Q,te,j),V()}let $;function O(){$||($=i.listen((H,Q,te)=>{if(!B.listening)return;const fe=v(H),me=C(fe);if(me){T(wt(me,{replace:!0,force:!0}),fe).catch(Ys);return}c=fe;const _e=a.value;Eo&&oE(dv(_e.fullPath,te.delta),gf()),P(fe,_e).catch(j=>ni(j,12)?j:ni(j,2)?(T(wt(y(j.to),{force:!0}),fe).then(x=>{ni(x,20)&&!te.delta&&te.type===vl.pop&&i.go(-1,!1)}).catch(Ys),Promise.reject()):(te.delta&&i.go(-te.delta,!1),J(j,fe,_e))).then(j=>{j=j||I(fe,_e,!1),j&&(te.delta&&!ni(j,8)?i.go(-te.delta,!1):te.type===vl.pop&&ni(j,20)&&i.go(-1,!1)),z(fe,_e,j)}).catch(Ys)}))}let Y=ks(),ae=ks(),q;function J(H,Q,te){V(H);const fe=ae.list();return fe.length?fe.forEach(me=>me(H,Q,te)):console.error(H),Promise.reject(H)}function E(){return q&&a.value!==Li?Promise.resolve():new Promise((H,Q)=>{Y.add([H,Q])})}function V(H){return q||(q=!H,O(),Y.list().forEach(([Q,te])=>H?te(H):Q()),Y.reset()),H}function M(H,Q,te,fe){const{scrollBehavior:me}=e;if(!Eo||!me)return Promise.resolve();const _e=!te&&sE(dv(H.fullPath,0))||(fe||!te)&&history.state&&history.state.scroll||null;return Ge().then(()=>me(H,Q,_e)).then(j=>j&&aE(j)).catch(j=>J(j,H,Q))}const R=H=>i.go(H);let W;const D=new Set,B={currentRoute:a,listening:!0,addRoute:s,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:p,getRoutes:g,resolve:v,options:e,push:w,replace:S,go:R,back:()=>R(-1),forward:()=>R(1),beforeEach:l.add,beforeResolve:m.add,afterEach:o.add,onError:ae.add,isReady:E,install(H){const Q=this;H.component("RouterLink",IE),H.component("RouterView",E1),H.config.globalProperties.$router=Q,Object.defineProperty(H.config.globalProperties,"$route",{enumerable:!0,get:()=>_(a)}),Eo&&!W&&a.value===Li&&(W=!0,w(i.location).catch(me=>{}));const te={};for(const me in Li)Object.defineProperty(te,me,{get:()=>a.value[me],enumerable:!0});H.provide(Yp,Q),H.provide(Kp,Lp(te)),H.provide(hh,a);const fe=H.unmount;D.add(H),H.unmount=function(){D.delete(H),D.size<1&&(c=Li,$&&$(),$=null,a.value=Li,W=!1,q=!1),fe()}}};function Z(H){return H.reduce((Q,te)=>Q.then(()=>A(te)),Promise.resolve())}return B}function FE(e,t){const n=[],r=[],i=[],l=Math.max(t.matched.length,e.matched.length);for(let m=0;m<l;m++){const o=t.matched[m];o&&(e.matched.find(c=>Wo(c,o))?r.push(o):n.push(o));const a=e.matched[m];a&&(t.matched.find(c=>Wo(c,a))||i.push(a))}return[n,r,i]}function BE(e){return Xe(Kp)}/*! Element Plus Icons Vue v2.3.2 */var $E=be({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),Yo=$E,NE=be({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),vf=NE,zE=be({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),us=zE,jE=be({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),ph=jE,VE=be({name:"Back",__name:"back",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),ne("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"})]))}}),O1=VE,UE=be({name:"Check",__name:"check",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),A1=UE,HE=be({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),P1=HE,WE=be({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"}),ne("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"})]))}}),Ql=WE,GE=be({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),I1=GE,YE=be({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"}),ne("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"})]))}}),yf=YE,KE=be({name:"CloseBold",__name:"close-bold",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496"})]))}}),XE=KE,qE=be({name:"Close",__name:"close",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),Kr=qE,ZE=be({name:"Comment",__name:"comment",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),JE=ZE,QE=be({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),eO=QE,tO=be({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),nO=tO,rO=be({name:"Delete",__name:"delete",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),Yi=rO,iO=be({name:"Document",__name:"document",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),M1=iO,aO=be({name:"Download",__name:"download",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),yl=aO,oO=be({name:"EditPen",__name:"edit-pen",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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=be({name:"Filter",__name:"filter",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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=be({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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=be({name:"Hide",__name:"hide",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"}),ne("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=be({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),Xp=pO,mO=be({name:"Link",__name:"link",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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=mO,vO=be({name:"Loading",__name:"loading",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),qp=vO,yO=be({name:"MagicStick",__name:"magic-stick",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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=be({name:"Menu",__name:"menu",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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=be({name:"Minus",__name:"minus",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),L1=SO,CO=be({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),Ev=CO,xO=be({name:"More",__name:"more",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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,kO=be({name:"Operation",__name:"operation",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),EO=kO,OO=be({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),xu=OO,AO=be({name:"Plus",__name:"plus",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),bf=AO,PO=be({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),R1=PO,IO=be({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),D1=IO,MO=be({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),mh=MO,LO=be({name:"Right",__name:"right",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),RO=LO,DO=be({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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=be({name:"Sort",__name:"sort",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),$O=BO,NO=be({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),F1=NO,zO=be({name:"Star",__name:"star",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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=be({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),B1=VO,UO=be({name:"Tools",__name:"tools",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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=be({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),Zp=WO,GO=be({name:"View",__name:"view",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),YO=GO,KO=be({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),Jp=KO,XO=be({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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"})]))}}),$1=XO,qO=be({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(N(),se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("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,JO=typeof global=="object"&&global&&global.Object===Object&&global;const N1=JO;var QO=typeof self=="object"&&self&&self.Object===Object&&self,e3=N1||QO||Function("return this")();const Lr=e3;var t3=Lr.Symbol;const Xr=t3;var z1=Object.prototype,n3=z1.hasOwnProperty,r3=z1.toString,Es=Xr?Xr.toStringTag:void 0;function i3(e){var t=n3.call(e,Es),n=e[Es];try{e[Es]=void 0;var r=!0}catch{}var i=r3.call(e);return r&&(t?e[Es]=n:delete e[Es]),i}var a3=Object.prototype,o3=a3.toString;function s3(e){return o3.call(e)}var l3="[object Null]",u3="[object Undefined]",Ov=Xr?Xr.toStringTag:void 0;function cs(e){return e==null?e===void 0?u3:l3:Ov&&Ov in Object(e)?i3(e):s3(e)}function ia(e){return e!=null&&typeof e=="object"}var c3="[object Symbol]";function _f(e){return typeof e=="symbol"||ia(e)&&cs(e)==c3}function f3(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 Si=d3;var h3=1/0,Av=Xr?Xr.prototype:void 0,Pv=Av?Av.toString:void 0;function j1(e){if(typeof e=="string")return e;if(Si(e))return f3(e,j1)+"";if(_f(e))return Pv?Pv.call(e):"";var t=e+"";return t=="0"&&1/e==-h3?"-0":t}var p3=/\s/;function m3(e){for(var t=e.length;t--&&p3.test(e.charAt(t)););return t}var g3=/^\s+/;function v3(e){return e&&e.slice(0,m3(e)+1).replace(g3,"")}function Ir(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Iv=0/0,y3=/^[-+]0x[0-9a-f]+$/i,b3=/^0b[01]+$/i,_3=/^0o[0-7]+$/i,w3=parseInt;function Mv(e){if(typeof e=="number")return e;if(_f(e))return Iv;if(Ir(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ir(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=v3(e);var n=b3.test(e);return n||_3.test(e)?w3(e.slice(2),n?2:8):y3.test(e)?Iv:+e}var S3="[object AsyncFunction]",C3="[object Function]",x3="[object GeneratorFunction]",T3="[object Proxy]";function V1(e){if(!Ir(e))return!1;var t=cs(e);return t==C3||t==x3||t==S3||t==T3}var k3=Lr["__core-js_shared__"];const id=k3;var Lv=function(){var e=/[^.]+$/.exec(id&&id.keys&&id.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function E3(e){return!!Lv&&Lv in e}var O3=Function.prototype,A3=O3.toString;function io(e){if(e!=null){try{return A3.call(e)}catch{}try{return e+""}catch{}}return""}var P3=/[\\^$.*+?()[\]{}|]/g,I3=/^\[object .+?Constructor\]$/,M3=Function.prototype,L3=Object.prototype,R3=M3.toString,D3=L3.hasOwnProperty,F3=RegExp("^"+R3.call(D3).replace(P3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function B3(e){if(!Ir(e)||E3(e))return!1;var t=V1(e)?F3:I3;return t.test(io(e))}function $3(e,t){return e==null?void 0:e[t]}function ao(e,t){var n=$3(e,t);return B3(n)?n:void 0}var N3=ao(Lr,"WeakMap");const gh=N3;var Rv=Object.create,z3=function(){function e(){}return function(t){if(!Ir(t))return{};if(Rv)return Rv(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const j3=z3;function V3(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var U3=function(){try{var e=ao(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Dv=U3;function H3(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var W3=9007199254740991,G3=/^(?:0|[1-9]\d*)$/;function U1(e,t){var n=typeof e;return t=t==null?W3:t,!!t&&(n=="number"||n!="symbol"&&G3.test(e))&&e>-1&&e%1==0&&e<t}function H1(e,t,n){t=="__proto__"&&Dv?Dv(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 Y3=Object.prototype,K3=Y3.hasOwnProperty;function em(e,t,n){var r=e[t];(!(K3.call(e,t)&&Qp(r,n))||n===void 0&&!(t in e))&&H1(e,t,n)}function wf(e,t,n,r){var i=!n;n||(n={});for(var l=-1,m=t.length;++l<m;){var o=t[l],a=r?r(n[o],e[o],o,n,e):void 0;a===void 0&&(a=e[o]),i?H1(n,o,a):em(n,o,a)}return n}var X3=9007199254740991;function W1(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=X3}function G1(e){return e!=null&&W1(e.length)&&!V1(e)}var q3=Object.prototype;function tm(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||q3;return e===n}function Z3(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var J3="[object Arguments]";function Fv(e){return ia(e)&&cs(e)==J3}var Y1=Object.prototype,Q3=Y1.hasOwnProperty,e4=Y1.propertyIsEnumerable,t4=Fv(function(){return arguments}())?Fv:function(e){return ia(e)&&Q3.call(e,"callee")&&!e4.call(e,"callee")};const n4=t4;function r4(){return!1}var K1=typeof Qn=="object"&&Qn&&!Qn.nodeType&&Qn,Bv=K1&&typeof er=="object"&&er&&!er.nodeType&&er,i4=Bv&&Bv.exports===K1,$v=i4?Lr.Buffer:void 0,a4=$v?$v.isBuffer:void 0,o4=a4||r4;const Fc=o4;var s4="[object Arguments]",l4="[object Array]",u4="[object Boolean]",c4="[object Date]",f4="[object Error]",d4="[object Function]",h4="[object Map]",p4="[object Number]",m4="[object Object]",g4="[object RegExp]",v4="[object Set]",y4="[object String]",b4="[object WeakMap]",_4="[object ArrayBuffer]",w4="[object DataView]",S4="[object Float32Array]",C4="[object Float64Array]",x4="[object Int8Array]",T4="[object Int16Array]",k4="[object Int32Array]",E4="[object Uint8Array]",O4="[object Uint8ClampedArray]",A4="[object Uint16Array]",P4="[object Uint32Array]",Bt={};Bt[S4]=Bt[C4]=Bt[x4]=Bt[T4]=Bt[k4]=Bt[E4]=Bt[O4]=Bt[A4]=Bt[P4]=!0;Bt[s4]=Bt[l4]=Bt[_4]=Bt[u4]=Bt[w4]=Bt[c4]=Bt[f4]=Bt[d4]=Bt[h4]=Bt[p4]=Bt[m4]=Bt[g4]=Bt[v4]=Bt[y4]=Bt[b4]=!1;function I4(e){return ia(e)&&W1(e.length)&&!!Bt[cs(e)]}function nm(e){return function(t){return e(t)}}var X1=typeof Qn=="object"&&Qn&&!Qn.nodeType&&Qn,Xs=X1&&typeof er=="object"&&er&&!er.nodeType&&er,M4=Xs&&Xs.exports===X1,ad=M4&&N1.process,L4=function(){try{var e=Xs&&Xs.require&&Xs.require("util").types;return e||ad&&ad.binding&&ad.binding("util")}catch{}}();const Ko=L4;var Nv=Ko&&Ko.isTypedArray,R4=Nv?nm(Nv):I4;const q1=R4;var D4=Object.prototype,F4=D4.hasOwnProperty;function Z1(e,t){var n=Si(e),r=!n&&n4(e),i=!n&&!r&&Fc(e),l=!n&&!r&&!i&&q1(e),m=n||r||i||l,o=m?Z3(e.length,String):[],a=o.length;for(var c in e)(t||F4.call(e,c))&&!(m&&(c=="length"||i&&(c=="offset"||c=="parent")||l&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||U1(c,a)))&&o.push(c);return o}function J1(e,t){return function(n){return e(t(n))}}var B4=J1(Object.keys,Object);const $4=B4;var N4=Object.prototype,z4=N4.hasOwnProperty;function j4(e){if(!tm(e))return $4(e);var t=[];for(var n in Object(e))z4.call(e,n)&&n!="constructor"&&t.push(n);return t}function rm(e){return G1(e)?Z1(e):j4(e)}function V4(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var U4=Object.prototype,H4=U4.hasOwnProperty;function W4(e){if(!Ir(e))return V4(e);var t=tm(e),n=[];for(var r in e)r=="constructor"&&(t||!H4.call(e,r))||n.push(r);return n}function im(e){return G1(e)?Z1(e,!0):W4(e)}var G4=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y4=/^\w*$/;function K4(e,t){if(Si(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||_f(e)?!0:Y4.test(e)||!G4.test(e)||t!=null&&e in Object(t)}var X4=ao(Object,"create");const bl=X4;function q4(){this.__data__=bl?bl(null):{},this.size=0}function Z4(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var J4="__lodash_hash_undefined__",Q4=Object.prototype,eA=Q4.hasOwnProperty;function tA(e){var t=this.__data__;if(bl){var n=t[e];return n===J4?void 0:n}return eA.call(t,e)?t[e]:void 0}var nA=Object.prototype,rA=nA.hasOwnProperty;function iA(e){var t=this.__data__;return bl?t[e]!==void 0:rA.call(t,e)}var aA="__lodash_hash_undefined__";function oA(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=bl&&t===void 0?aA:t,this}function Ga(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])}}Ga.prototype.clear=q4;Ga.prototype.delete=Z4;Ga.prototype.get=tA;Ga.prototype.has=iA;Ga.prototype.set=oA;function sA(){this.__data__=[],this.size=0}function Sf(e,t){for(var n=e.length;n--;)if(Qp(e[n][0],t))return n;return-1}var lA=Array.prototype,uA=lA.splice;function cA(e){var t=this.__data__,n=Sf(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():uA.call(t,n,1),--this.size,!0}function fA(e){var t=this.__data__,n=Sf(t,e);return n<0?void 0:t[n][1]}function dA(e){return Sf(this.__data__,e)>-1}function hA(e,t){var n=this.__data__,r=Sf(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ei(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])}}Ei.prototype.clear=sA;Ei.prototype.delete=cA;Ei.prototype.get=fA;Ei.prototype.has=dA;Ei.prototype.set=hA;var pA=ao(Lr,"Map");const _l=pA;function mA(){this.size=0,this.__data__={hash:new Ga,map:new(_l||Ei),string:new Ga}}function gA(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Cf(e,t){var n=e.__data__;return gA(t)?n[typeof t=="string"?"string":"hash"]:n.map}function vA(e){var t=Cf(this,e).delete(e);return this.size-=t?1:0,t}function yA(e){return Cf(this,e).get(e)}function bA(e){return Cf(this,e).has(e)}function _A(e,t){var n=Cf(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Oi(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])}}Oi.prototype.clear=mA;Oi.prototype.delete=vA;Oi.prototype.get=yA;Oi.prototype.has=bA;Oi.prototype.set=_A;var wA="Expected a function";function am(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(wA);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],l=n.cache;if(l.has(i))return l.get(i);var m=e.apply(this,r);return n.cache=l.set(i,m)||l,m};return n.cache=new(am.Cache||Oi),n}am.Cache=Oi;var SA=500;function CA(e){var t=am(e,function(r){return n.size===SA&&n.clear(),r}),n=t.cache;return t}var xA=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,TA=/\\(\\)?/g,kA=CA(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(xA,function(n,r,i,l){t.push(i?l.replace(TA,"$1"):r||n)}),t});const EA=kA;function OA(e){return e==null?"":j1(e)}function Q1(e,t){return Si(e)?e:K4(e,t)?[e]:EA(OA(e))}var AA=1/0;function ew(e){if(typeof e=="string"||_f(e))return e;var t=e+"";return t=="0"&&1/e==-AA?"-0":t}function PA(e,t){t=Q1(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[ew(t[n++])];return n&&n==r?e:void 0}function Xn(e,t,n){var r=e==null?void 0:PA(e,t);return r===void 0?n:r}function tw(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var IA=J1(Object.getPrototypeOf,Object);const nw=IA;function wl(){if(!arguments.length)return[];var e=arguments[0];return Si(e)?e:[e]}function MA(){this.__data__=new Ei,this.size=0}function LA(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function RA(e){return this.__data__.get(e)}function DA(e){return this.__data__.has(e)}var FA=200;function BA(e,t){var n=this.__data__;if(n instanceof Ei){var r=n.__data__;if(!_l||r.length<FA-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Oi(r)}return n.set(e,t),this.size=n.size,this}function gi(e){var t=this.__data__=new Ei(e);this.size=t.size}gi.prototype.clear=MA;gi.prototype.delete=LA;gi.prototype.get=RA;gi.prototype.has=DA;gi.prototype.set=BA;function $A(e,t){return e&&wf(t,rm(t),e)}function NA(e,t){return e&&wf(t,im(t),e)}var rw=typeof Qn=="object"&&Qn&&!Qn.nodeType&&Qn,zv=rw&&typeof er=="object"&&er&&!er.nodeType&&er,zA=zv&&zv.exports===rw,jv=zA?Lr.Buffer:void 0,Vv=jv?jv.allocUnsafe:void 0;function jA(e,t){if(t)return e.slice();var n=e.length,r=Vv?Vv(n):new e.constructor(n);return e.copy(r),r}function VA(e,t){for(var n=-1,r=e==null?0:e.length,i=0,l=[];++n<r;){var m=e[n];t(m,n,e)&&(l[i++]=m)}return l}function iw(){return[]}var UA=Object.prototype,HA=UA.propertyIsEnumerable,Uv=Object.getOwnPropertySymbols,WA=Uv?function(e){return e==null?[]:(e=Object(e),VA(Uv(e),function(t){return HA.call(e,t)}))}:iw;const om=WA;function GA(e,t){return wf(e,om(e),t)}var YA=Object.getOwnPropertySymbols,KA=YA?function(e){for(var t=[];e;)tw(t,om(e)),e=nw(e);return t}:iw;const aw=KA;function XA(e,t){return wf(e,aw(e),t)}function ow(e,t,n){var r=t(e);return Si(e)?r:tw(r,n(e))}function vh(e){return ow(e,rm,om)}function qA(e){return ow(e,im,aw)}var ZA=ao(Lr,"DataView");const yh=ZA;var JA=ao(Lr,"Promise");const bh=JA;var QA=ao(Lr,"Set");const _h=QA;var Hv="[object Map]",eP="[object Object]",Wv="[object Promise]",Gv="[object Set]",Yv="[object WeakMap]",Kv="[object DataView]",tP=io(yh),nP=io(_l),rP=io(bh),iP=io(_h),aP=io(gh),xa=cs;(yh&&xa(new yh(new ArrayBuffer(1)))!=Kv||_l&&xa(new _l)!=Hv||bh&&xa(bh.resolve())!=Wv||_h&&xa(new _h)!=Gv||gh&&xa(new gh)!=Yv)&&(xa=function(e){var t=cs(e),n=t==eP?e.constructor:void 0,r=n?io(n):"";if(r)switch(r){case tP:return Kv;case nP:return Hv;case rP:return Wv;case iP:return Gv;case aP:return Yv}return t});const Sl=xa;var oP=Object.prototype,sP=oP.hasOwnProperty;function lP(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&sP.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var uP=Lr.Uint8Array;const Bc=uP;function sm(e){var t=new e.constructor(e.byteLength);return new Bc(t).set(new Bc(e)),t}function cP(e,t){var n=t?sm(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var fP=/\w*$/;function dP(e){var t=new e.constructor(e.source,fP.exec(e));return t.lastIndex=e.lastIndex,t}var Xv=Xr?Xr.prototype:void 0,qv=Xv?Xv.valueOf:void 0;function hP(e){return qv?Object(qv.call(e)):{}}function pP(e,t){var n=t?sm(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var mP="[object Boolean]",gP="[object Date]",vP="[object Map]",yP="[object Number]",bP="[object RegExp]",_P="[object Set]",wP="[object String]",SP="[object Symbol]",CP="[object ArrayBuffer]",xP="[object DataView]",TP="[object Float32Array]",kP="[object Float64Array]",EP="[object Int8Array]",OP="[object Int16Array]",AP="[object Int32Array]",PP="[object Uint8Array]",IP="[object Uint8ClampedArray]",MP="[object Uint16Array]",LP="[object Uint32Array]";function RP(e,t,n){var r=e.constructor;switch(t){case CP:return sm(e);case mP:case gP:return new r(+e);case xP:return cP(e,n);case TP:case kP:case EP:case OP:case AP:case PP:case IP:case MP:case LP:return pP(e,n);case vP:return new r;case yP:case wP:return new r(e);case bP:return dP(e);case _P:return new r;case SP:return hP(e)}}function DP(e){return typeof e.constructor=="function"&&!tm(e)?j3(nw(e)):{}}var FP="[object Map]";function BP(e){return ia(e)&&Sl(e)==FP}var Zv=Ko&&Ko.isMap,$P=Zv?nm(Zv):BP;const NP=$P;var zP="[object Set]";function jP(e){return ia(e)&&Sl(e)==zP}var Jv=Ko&&Ko.isSet,VP=Jv?nm(Jv):jP;const UP=VP;var HP=1,WP=2,GP=4,sw="[object Arguments]",YP="[object Array]",KP="[object Boolean]",XP="[object Date]",qP="[object Error]",lw="[object Function]",ZP="[object GeneratorFunction]",JP="[object Map]",QP="[object Number]",uw="[object Object]",eI="[object RegExp]",tI="[object Set]",nI="[object String]",rI="[object Symbol]",iI="[object WeakMap]",aI="[object ArrayBuffer]",oI="[object DataView]",sI="[object Float32Array]",lI="[object Float64Array]",uI="[object Int8Array]",cI="[object Int16Array]",fI="[object Int32Array]",dI="[object Uint8Array]",hI="[object Uint8ClampedArray]",pI="[object Uint16Array]",mI="[object Uint32Array]",Mt={};Mt[sw]=Mt[YP]=Mt[aI]=Mt[oI]=Mt[KP]=Mt[XP]=Mt[sI]=Mt[lI]=Mt[uI]=Mt[cI]=Mt[fI]=Mt[JP]=Mt[QP]=Mt[uw]=Mt[eI]=Mt[tI]=Mt[nI]=Mt[rI]=Mt[dI]=Mt[hI]=Mt[pI]=Mt[mI]=!0;Mt[qP]=Mt[lw]=Mt[iI]=!1;function rc(e,t,n,r,i,l){var m,o=t&HP,a=t&WP,c=t&GP;if(n&&(m=i?n(e,r,i,l):n(e)),m!==void 0)return m;if(!Ir(e))return e;var d=Si(e);if(d){if(m=lP(e),!o)return V3(e,m)}else{var u=Sl(e),f=u==lw||u==ZP;if(Fc(e))return jA(e,o);if(u==uw||u==sw||f&&!i){if(m=a||f?{}:DP(e),!o)return a?XA(e,NA(m,e)):GA(e,$A(m,e))}else{if(!Mt[u])return i?e:{};m=RP(e,u,o)}}l||(l=new gi);var s=l.get(e);if(s)return s;l.set(e,m),UP(e)?e.forEach(function(p){m.add(rc(p,t,n,p,e,l))}):NP(e)&&e.forEach(function(p,v){m.set(v,rc(p,t,n,v,e,l))});var h=c?a?qA:vh:a?im:rm,g=d?void 0:h(e);return H3(g||e,function(p,v){g&&(v=p,p=e[v]),em(m,v,rc(p,t,n,v,e,l))}),m}var gI=4;function Qv(e){return rc(e,gI)}var vI="__lodash_hash_undefined__";function yI(e){return this.__data__.set(e,vI),this}function bI(e){return this.__data__.has(e)}function $c(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Oi;++t<n;)this.add(e[t])}$c.prototype.add=$c.prototype.push=yI;$c.prototype.has=bI;function _I(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 wI(e,t){return e.has(t)}var SI=1,CI=2;function cw(e,t,n,r,i,l){var m=n&SI,o=e.length,a=t.length;if(o!=a&&!(m&&a>o))return!1;var c=l.get(e),d=l.get(t);if(c&&d)return c==t&&d==e;var u=-1,f=!0,s=n&CI?new $c:void 0;for(l.set(e,t),l.set(t,e);++u<o;){var h=e[u],g=t[u];if(r)var p=m?r(g,h,u,t,e,l):r(h,g,u,e,t,l);if(p!==void 0){if(p)continue;f=!1;break}if(s){if(!_I(t,function(v,y){if(!wI(s,y)&&(h===v||i(h,v,n,r,l)))return s.push(y)})){f=!1;break}}else if(!(h===g||i(h,g,n,r,l))){f=!1;break}}return l.delete(e),l.delete(t),f}function xI(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function TI(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var kI=1,EI=2,OI="[object Boolean]",AI="[object Date]",PI="[object Error]",II="[object Map]",MI="[object Number]",LI="[object RegExp]",RI="[object Set]",DI="[object String]",FI="[object Symbol]",BI="[object ArrayBuffer]",$I="[object DataView]",e0=Xr?Xr.prototype:void 0,od=e0?e0.valueOf:void 0;function NI(e,t,n,r,i,l,m){switch(n){case $I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case BI:return!(e.byteLength!=t.byteLength||!l(new Bc(e),new Bc(t)));case OI:case AI:case MI:return Qp(+e,+t);case PI:return e.name==t.name&&e.message==t.message;case LI:case DI:return e==t+"";case II:var o=xI;case RI:var a=r&kI;if(o||(o=TI),e.size!=t.size&&!a)return!1;var c=m.get(e);if(c)return c==t;r|=EI,m.set(e,t);var d=cw(o(e),o(t),r,i,l,m);return m.delete(e),d;case FI:if(od)return od.call(e)==od.call(t)}return!1}var zI=1,jI=Object.prototype,VI=jI.hasOwnProperty;function UI(e,t,n,r,i,l){var m=n&zI,o=vh(e),a=o.length,c=vh(t),d=c.length;if(a!=d&&!m)return!1;for(var u=a;u--;){var f=o[u];if(!(m?f in t:VI.call(t,f)))return!1}var s=l.get(e),h=l.get(t);if(s&&h)return s==t&&h==e;var g=!0;l.set(e,t),l.set(t,e);for(var p=m;++u<a;){f=o[u];var v=e[f],y=t[f];if(r)var b=m?r(y,v,f,t,e,l):r(v,y,f,e,t,l);if(!(b===void 0?v===y||i(v,y,n,r,l):b)){g=!1;break}p||(p=f=="constructor")}if(g&&!p){var w=e.constructor,S=t.constructor;w!=S&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof S=="function"&&S instanceof S)&&(g=!1)}return l.delete(e),l.delete(t),g}var HI=1,t0="[object Arguments]",n0="[object Array]",Tu="[object Object]",WI=Object.prototype,r0=WI.hasOwnProperty;function GI(e,t,n,r,i,l){var m=Si(e),o=Si(t),a=m?n0:Sl(e),c=o?n0:Sl(t);a=a==t0?Tu:a,c=c==t0?Tu:c;var d=a==Tu,u=c==Tu,f=a==c;if(f&&Fc(e)){if(!Fc(t))return!1;m=!0,d=!1}if(f&&!d)return l||(l=new gi),m||q1(e)?cw(e,t,n,r,i,l):NI(e,t,a,n,r,i,l);if(!(n&HI)){var s=d&&r0.call(e,"__wrapped__"),h=u&&r0.call(t,"__wrapped__");if(s||h){var g=s?e.value():e,p=h?t.value():t;return l||(l=new gi),i(g,p,n,r,l)}}return f?(l||(l=new gi),UI(e,t,n,r,i,l)):!1}function fw(e,t,n,r,i){return e===t?!0:e==null||t==null||!ia(e)&&!ia(t)?e!==e&&t!==t:GI(e,t,n,r,fw,i)}var YI=function(){return Lr.Date.now()};const sd=YI;var KI="Expected a function",XI=Math.max,qI=Math.min;function Xo(e,t,n){var r,i,l,m,o,a,c=0,d=!1,u=!1,f=!0;if(typeof e!="function")throw new TypeError(KI);t=Mv(t)||0,Ir(n)&&(d=!!n.leading,u="maxWait"in n,l=u?XI(Mv(n.maxWait)||0,t):l,f="trailing"in n?!!n.trailing:f);function s(C){var T=r,k=i;return r=i=void 0,c=C,m=e.apply(k,T),m}function h(C){return c=C,o=setTimeout(v,t),d?s(C):m}function g(C){var T=C-a,k=C-c,A=t-T;return u?qI(A,l-k):A}function p(C){var T=C-a,k=C-c;return a===void 0||T>=t||T<0||u&&k>=l}function v(){var C=sd();if(p(C))return y(C);o=setTimeout(v,g(C))}function y(C){return o=void 0,f&&r?s(C):(r=i=void 0,m)}function b(){o!==void 0&&clearTimeout(o),c=0,r=a=i=o=void 0}function w(){return o===void 0?m:y(sd())}function S(){var C=sd(),T=p(C);if(r=arguments,i=this,a=C,T){if(o===void 0)return h(a);if(u)return clearTimeout(o),o=setTimeout(v,t),s(a)}return o===void 0&&(o=setTimeout(v,t)),m}return S.cancel=b,S.flush=w,S}function dw(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 wh(e,t){return fw(e,t)}function Hr(e){return e==null}function ZI(e,t,n,r){if(!Ir(e))return e;t=Q1(t,e);for(var i=-1,l=t.length,m=l-1,o=e;o!=null&&++i<l;){var a=ew(t[i]),c=n;if(a==="__proto__"||a==="constructor"||a==="prototype")return e;if(i!=m){var d=o[a];c=r?r(d,a,o):void 0,c===void 0&&(c=Ir(d)?d:U1(t[i+1])?[]:{})}em(o,a,c),o=o[a]}return e}function JI(e,t,n){return e==null?e:ZI(e,t,n)}var QI="Expected a function";function qs(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(QI);return Ir(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Xo(e,t,{leading:r,maxWait:t,trailing:i})}const e5='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',t5=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,i0=e=>Array.from(e.querySelectorAll(e5)).filter(t=>n5(t)&&t5(t)),n5=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)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}},ic=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},si=(e,t,{checkForDefaultPrevented:n=!0}={})=>i=>{const l=e==null?void 0:e(i);if(n===!1||!l)return t==null?void 0:t(i)};var r5=Object.defineProperty,i5=Object.defineProperties,a5=Object.getOwnPropertyDescriptors,a0=Object.getOwnPropertySymbols,o5=Object.prototype.hasOwnProperty,s5=Object.prototype.propertyIsEnumerable,o0=(e,t,n)=>t in e?r5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,l5=(e,t)=>{for(var n in t||(t={}))o5.call(t,n)&&o0(e,n,t[n]);if(a0)for(var n of a0(t))s5.call(t,n)&&o0(e,n,t[n]);return e},u5=(e,t)=>i5(e,a5(t));function s0(e,t){var n;const r=mn();return ro(()=>{r.value=e()},u5(l5({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),as(r)}var l0;const dt=typeof window<"u",c5=e=>typeof e<"u",tr=e=>typeof e=="boolean",hw=e=>typeof e=="function",lt=e=>typeof e=="number",f5=e=>typeof e=="string",jn=()=>{},d5=dt&&((l0=window==null?void 0:window.navigator)==null?void 0:l0.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Cr(e){return typeof e=="function"?e():_(e)}function lm(e,t){function n(...r){return new Promise((i,l)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(l)})}return n}const pw=e=>e();function h5(e,t={}){let n,r,i=jn;const l=o=>{clearTimeout(o),i(),i=jn};return o=>{const a=Cr(e),c=Cr(t.maxWait);return n&&l(n),a<=0||c!==void 0&&c<=0?(r&&(l(r),r=null),Promise.resolve(o())):new Promise((d,u)=>{i=t.rejectOnCancel?u:d,c&&!r&&(r=setTimeout(()=>{n&&l(n),r=null,d(o())},c)),n=setTimeout(()=>{r&&l(r),r=null,d(o())},a)})}}function p5(e,t=!0,n=!0,r=!1){let i=0,l,m=!0,o=jn,a;const c=()=>{l&&(clearTimeout(l),l=void 0,o(),o=jn)};return u=>{const f=Cr(e),s=Date.now()-i,h=()=>a=u();return c(),f<=0?(i=Date.now(),h()):(s>f&&(n||!m)?(i=Date.now(),h()):t&&(a=new Promise((g,p)=>{o=r?p:g,l=setTimeout(()=>{i=Date.now(),m=!0,g(h()),c()},Math.max(0,f-s))})),!n&&!l&&(l=setTimeout(()=>m=!0,f)),m=!1,a)}}function m5(e=pw){const t=ie(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...l)=>{t.value&&e(...l)};return{isActive:as(t),pause:n,resume:r,eventFilter:i}}function g5(e){return e}function v5(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),l=parseFloat(r)+t;return Number.isNaN(l)?e:l+i}function oo(e){return kp()?(Ep(e),!0):!1}function mw(e,t=200,n={}){return lm(h5(t,n),e)}function y5(e,t=200,n={}){const r=ie(e.value),i=mw(()=>{r.value=e.value},t,n);return Te(e,()=>i()),r}function gw(e,t=200,n=!1,r=!0,i=!1){return lm(p5(t,n,r,i),e)}function b5(e){return typeof e=="function"?ee(e):ie(e)}function um(e,t=!0){kt()?tt(e):t?e():Ge(e)}function Cl(e,t,n={}){const{immediate:r=!0}=n,i=ie(!1);let l=null;function m(){l&&(clearTimeout(l),l=null)}function o(){i.value=!1,m()}function a(...c){m(),i.value=!0,l=setTimeout(()=>{i.value=!1,l=null,e(...c)},Cr(t))}return r&&(i.value=!0,dt&&a()),oo(o),{isPending:as(i),start:a,stop:o}}var u0=Object.getOwnPropertySymbols,_5=Object.prototype.hasOwnProperty,w5=Object.prototype.propertyIsEnumerable,S5=(e,t)=>{var n={};for(var r in e)_5.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&u0)for(var r of u0(e))t.indexOf(r)<0&&w5.call(e,r)&&(n[r]=e[r]);return n};function C5(e,t,n={}){const r=n,{eventFilter:i=pw}=r,l=S5(r,["eventFilter"]);return Te(e,lm(i,t),l)}var x5=Object.defineProperty,T5=Object.defineProperties,k5=Object.getOwnPropertyDescriptors,Nc=Object.getOwnPropertySymbols,vw=Object.prototype.hasOwnProperty,yw=Object.prototype.propertyIsEnumerable,c0=(e,t,n)=>t in e?x5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E5=(e,t)=>{for(var n in t||(t={}))vw.call(t,n)&&c0(e,n,t[n]);if(Nc)for(var n of Nc(t))yw.call(t,n)&&c0(e,n,t[n]);return e},O5=(e,t)=>T5(e,k5(t)),A5=(e,t)=>{var n={};for(var r in e)vw.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Nc)for(var r of Nc(e))t.indexOf(r)<0&&yw.call(e,r)&&(n[r]=e[r]);return n};function P5(e,t,n={}){const r=n,{eventFilter:i}=r,l=A5(r,["eventFilter"]),{eventFilter:m,pause:o,resume:a,isActive:c}=m5(i);return{stop:C5(e,t,O5(E5({},l),{eventFilter:m})),pause:o,resume:a,isActive:c}}function f0(e,t,n){let r;Ot(n)?r={evaluating:n}:r=n||{};const{lazy:i=!1,evaluating:l=void 0,shallow:m=!1,onError:o=jn}=r,a=ie(!i),c=m?mn(t):ie(t);let d=0;return ro(async u=>{if(!a.value)return;d++;const f=d;let s=!1;l&&Promise.resolve().then(()=>{l.value=!0});try{const h=await e(g=>{u(()=>{l&&(l.value=!1),s||g()})});f===d&&(c.value=h)}catch(h){o(h)}finally{l&&f===d&&(l.value=!1),s=!0}}),i?ee(()=>(a.value=!0,c.value)):c}function xr(e){var t;const n=Cr(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Wn=dt?window:void 0,I5=dt?window.document:void 0;dt&&window.navigator;dt&&window.location;function bt(...e){let t,n,r,i;if(f5(e[0])||Array.isArray(e[0])?([n,r,i]=e,t=Wn):[t,n,r,i]=e,!t)return jn;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const l=[],m=()=>{l.forEach(d=>d()),l.length=0},o=(d,u,f,s)=>(d.addEventListener(u,f,s),()=>d.removeEventListener(u,f,s)),a=Te(()=>[xr(t),Cr(i)],([d,u])=>{m(),d&&l.push(...n.flatMap(f=>r.map(s=>o(d,f,s,u))))},{immediate:!0,flush:"post"}),c=()=>{a(),m()};return oo(c),c}let d0=!1;function M5(e,t,n={}){const{window:r=Wn,ignore:i=[],capture:l=!0,detectIframe:m=!1}=n;if(!r)return;d5&&!d0&&(d0=!0,Array.from(r.document.body.children).forEach(f=>f.addEventListener("click",jn)));let o=!0;const a=f=>i.some(s=>{if(typeof s=="string")return Array.from(r.document.querySelectorAll(s)).some(h=>h===f.target||f.composedPath().includes(h));{const h=xr(s);return h&&(f.target===h||f.composedPath().includes(h))}}),d=[bt(r,"click",f=>{const s=xr(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:l}),bt(r,"pointerdown",f=>{const s=xr(e);s&&(o=!f.composedPath().includes(s)&&!a(f))},{passive:!0}),m&&bt(r,"blur",f=>{var s;const h=xr(e);((s=r.document.activeElement)==null?void 0:s.tagName)==="IFRAME"&&!(h!=null&&h.contains(r.document.activeElement))&&t(f)})].filter(Boolean);return()=>d.forEach(f=>f())}const L5=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0;function h0(...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=Wn,eventName:l="keydown",passive:m=!1}=r,o=L5(t);return bt(i,l,c=>{o(c)&&n(c)},m)}const R5=500;function D5(e,t,n){var r,i;const l=ee(()=>xr(e));let m;function o(){m&&(clearTimeout(m),m=void 0)}function a(d){var u,f,s,h;((u=n==null?void 0:n.modifiers)==null?void 0:u.self)&&d.target!==l.value||(o(),(f=n==null?void 0:n.modifiers)!=null&&f.prevent&&d.preventDefault(),(s=n==null?void 0:n.modifiers)!=null&&s.stop&&d.stopPropagation(),m=setTimeout(()=>t(d),(h=n==null?void 0:n.delay)!=null?h:R5))}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};bt(l,"pointerdown",a,c),bt(l,"pointerup",o,c),bt(l,"pointerleave",o,c)}function cm(e,t=!1){const n=ie(),r=()=>n.value=Boolean(e());return r(),um(r,t),n}function Oo(e,t={}){const{window:n=Wn}=t,r=cm(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const l=ie(!1),m=()=>{!i||("removeEventListener"in i?i.removeEventListener("change",o):i.removeListener(o))},o=()=>{!r.value||(m(),i=n.matchMedia(b5(e).value),l.value=i.matches,"addEventListener"in i?i.addEventListener("change",o):i.addListener(o))};return ro(o),oo(()=>m()),l}const fm={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};var F5=Object.defineProperty,p0=Object.getOwnPropertySymbols,B5=Object.prototype.hasOwnProperty,$5=Object.prototype.propertyIsEnumerable,m0=(e,t,n)=>t in e?F5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N5=(e,t)=>{for(var n in t||(t={}))B5.call(t,n)&&m0(e,n,t[n]);if(p0)for(var n of p0(t))$5.call(t,n)&&m0(e,n,t[n]);return e};function dm(e,t={}){function n(o,a){let c=e[o];return a!=null&&(c=v5(c,a)),typeof c=="number"&&(c=`${c}px`),c}const{window:r=Wn}=t;function i(o){return r?r.matchMedia(o).matches:!1}const l=o=>Oo(`(min-width: ${n(o)})`,t),m=Object.keys(e).reduce((o,a)=>(Object.defineProperty(o,a,{get:()=>l(a),enumerable:!0,configurable:!0}),o),{});return N5({greater(o){return Oo(`(min-width: ${n(o,.1)})`,t)},greaterOrEqual:l,smaller(o){return Oo(`(max-width: ${n(o,-.1)})`,t)},smallerOrEqual(o){return Oo(`(max-width: ${n(o)})`,t)},between(o,a){return Oo(`(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)})`)}},m)}function z5(e){return JSON.parse(JSON.stringify(e))}const Sh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ch="__vueuse_ssr_handlers__";Sh[Ch]=Sh[Ch]||{};const j5=Sh[Ch];function bw(e,t){return j5[e]||t}function V5(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 U5=Object.defineProperty,g0=Object.getOwnPropertySymbols,H5=Object.prototype.hasOwnProperty,W5=Object.prototype.propertyIsEnumerable,v0=(e,t,n)=>t in e?U5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y0=(e,t)=>{for(var n in t||(t={}))H5.call(t,n)&&v0(e,n,t[n]);if(g0)for(var n of g0(t))W5.call(t,n)&&v0(e,n,t[n]);return e};const G5={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()}},b0="vueuse-storage";function _w(e,t,n,r={}){var i;const{flush:l="pre",deep:m=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:d,window:u=Wn,eventFilter:f,onError:s=k=>{console.error(k)}}=r,h=(d?mn:ie)(t);if(!n)try{n=bw("getDefaultStorage",()=>{var k;return(k=Wn)==null?void 0:k.localStorage})()}catch(k){s(k)}if(!n)return h;const g=Cr(t),p=V5(g),v=(i=r.serializer)!=null?i:G5[p],{pause:y,resume:b}=P5(h,()=>w(h.value),{flush:l,deep:m,eventFilter:f});return u&&o&&(bt(u,"storage",T),bt(u,b0,C)),T(),h;function w(k){try{if(k==null)n.removeItem(e);else{const A=v.write(k),P=n.getItem(e);P!==A&&(n.setItem(e,A),u&&u.dispatchEvent(new CustomEvent(b0,{detail:{key:e,oldValue:P,newValue:A,storageArea:n}})))}}catch(A){s(A)}}function S(k){const A=k?k.newValue:n.getItem(e);if(A==null)return a&&g!==null&&n.setItem(e,v.write(g)),g;if(!k&&c){const P=v.read(A);return hw(c)?c(P,g):p==="object"&&!Array.isArray(P)?y0(y0({},g),P):P}else return typeof A!="string"?A:v.read(A)}function C(k){T(k.detail)}function T(k){if(!(k&&k.storageArea!==n)){if(k&&k.key==null){h.value=g;return}if(!(k&&k.key!==e)){y();try{h.value=S(k)}catch(A){s(A)}finally{k?Ge(b):b()}}}}}function Y5(e){return Oo("(prefers-color-scheme: dark)",e)}var K5=Object.defineProperty,_0=Object.getOwnPropertySymbols,X5=Object.prototype.hasOwnProperty,q5=Object.prototype.propertyIsEnumerable,w0=(e,t,n)=>t in e?K5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Z5=(e,t)=>{for(var n in t||(t={}))X5.call(t,n)&&w0(e,n,t[n]);if(_0)for(var n of _0(t))q5.call(t,n)&&w0(e,n,t[n]);return e};function S0(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:i=Wn,storage:l,storageKey:m="vueuse-color-scheme",listenToStorageChanges:o=!0,storageRef:a,emitAuto:c}=e,d=Z5({auto:"",light:"light",dark:"dark"},e.modes||{}),u=Y5({window:i}),f=ee(()=>u.value?"dark":"light"),s=a||(m==null?ie(r):_w(m,r,l,{window:i,listenToStorageChanges:o})),h=ee({get(){return s.value==="auto"&&!c?f.value:s.value},set(y){s.value=y}}),g=bw("updateHTMLAttrs",(y,b,w)=>{const S=i==null?void 0:i.document.querySelector(y);if(!!S)if(b==="class"){const C=w.split(/\s/g);Object.values(d).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,w)});function p(y){var b;const w=y==="auto"?f.value:y;g(t,n,(b=d[w])!=null?b:w)}function v(y){e.onChanged?e.onChanged(y,p):p(y)}return Te(h,v,{flush:"post",immediate:!0}),c&&Te(f,()=>v(h.value),{flush:"post"}),um(()=>v(h.value)),h}function J5({document:e=I5}={}){if(!e)return ie("visible");const t=ie(e.visibilityState);return bt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var C0=Object.getOwnPropertySymbols,Q5=Object.prototype.hasOwnProperty,e6=Object.prototype.propertyIsEnumerable,t6=(e,t)=>{var n={};for(var r in e)Q5.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&C0)for(var r of C0(e))t.indexOf(r)<0&&e6.call(e,r)&&(n[r]=e[r]);return n};function Jr(e,t,n={}){const r=n,{window:i=Wn}=r,l=t6(r,["window"]);let m;const o=cm(()=>i&&"ResizeObserver"in i),a=()=>{m&&(m.disconnect(),m=void 0)},c=Te(()=>xr(e),u=>{a(),o.value&&i&&u&&(m=new ResizeObserver(t),m.observe(u,l))},{immediate:!0,flush:"post"}),d=()=>{a(),c()};return oo(d),{isSupported:o,stop:d}}const x0=1;function n6(e,t={}){const{throttle:n=0,idle:r=200,onStop:i=jn,onScroll:l=jn,offset:m={left:0,right:0,top:0,bottom:0},eventListenerOptions:o={capture:!1,passive:!0},behavior:a="auto"}=t,c=ie(0),d=ie(0),u=ee({get(){return c.value},set(w){s(w,void 0)}}),f=ee({get(){return d.value},set(w){s(void 0,w)}});function s(w,S){var C,T,k;const A=Cr(e);!A||(k=A instanceof Document?document.body:A)==null||k.scrollTo({top:(C=Cr(S))!=null?C:f.value,left:(T=Cr(w))!=null?T:u.value,behavior:Cr(a)})}const h=ie(!1),g=Tt({left:!0,right:!1,top:!0,bottom:!1}),p=Tt({left:!1,right:!1,top:!1,bottom:!1}),v=w=>{!h.value||(h.value=!1,p.left=!1,p.right=!1,p.top=!1,p.bottom=!1,i(w))},y=mw(v,n+r),b=w=>{const S=w.target===document?w.target.documentElement:w.target,C=S.scrollLeft;p.left=C<c.value,p.right=C>d.value,g.left=C<=0+(m.left||0),g.right=C+S.clientWidth>=S.scrollWidth-(m.right||0)-x0,c.value=C;let T=S.scrollTop;w.target===document&&!T&&(T=document.body.scrollTop),p.top=T<d.value,p.bottom=T>d.value,g.top=T<=0+(m.top||0),g.bottom=T+S.clientHeight>=S.scrollHeight-(m.bottom||0)-x0,d.value=T,h.value=!0,y(w),l(w)};return bt(e,"scroll",n?gw(b,n,!0,!1):b,o),bt(e,"scrollend",v,o),{x:u,y:f,isScrolling:h,arrivedState:g,directions:p}}function r6(e,t,n={}){const{root:r,rootMargin:i="0px",threshold:l=.1,window:m=Wn}=n,o=cm(()=>m&&"IntersectionObserver"in m);let a=jn;const c=o.value?Te(()=>({el:xr(e),root:xr(r)}),({el:u,root:f})=>{if(a(),!u)return;const s=new IntersectionObserver(t,{root:f,rootMargin:i,threshold:l});s.observe(u),a=()=>{s.disconnect(),a=jn}},{immediate:!0,flush:"post"}):jn,d=()=>{a(),c()};return oo(d),{isSupported:o,stop:d}}function un(e,t,n={}){const{window:r=Wn}=n;return _w(e,t,r==null?void 0:r.localStorage,n)}var Oa;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Oa||(Oa={}));function i6(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:i,onSwipeStart:l,passive:m=!0,window:o=Wn}=t,a=Tt({x:0,y:0}),c=Tt({x:0,y:0}),d=ee(()=>a.x-c.x),u=ee(()=>a.y-c.y),{max:f,abs:s}=Math,h=ee(()=>f(s(d.value),s(u.value))>=n),g=ie(!1),p=ee(()=>h.value?s(d.value)>s(u.value)?d.value>0?Oa.LEFT:Oa.RIGHT:u.value>0?Oa.UP:Oa.DOWN:Oa.NONE),v=A=>[A.touches[0].clientX,A.touches[0].clientY],y=(A,P)=>{a.x=A,a.y=P},b=(A,P)=>{c.x=A,c.y=P};let w;const S=a6(o==null?void 0:o.document);m?w=S?{passive:!0}:{capture:!1}:w=S?{passive:!1,capture:!0}:{capture:!0};const C=A=>{g.value&&(i==null||i(A,p.value)),g.value=!1},T=[bt(e,"touchstart",A=>{w.capture&&!w.passive&&A.preventDefault();const[P,z]=v(A);y(P,z),b(P,z),l==null||l(A)},w),bt(e,"touchmove",A=>{const[P,z]=v(A);b(P,z),!g.value&&h.value&&(g.value=!0),g.value&&(r==null||r(A))},w),bt(e,"touchend",C,w),bt(e,"touchcancel",C,w)];return{isPassiveEventSupported:S,isSwiping:g,direction:p,coordsStart:a,coordsEnd:c,lengthX:d,lengthY:u,stop:()=>T.forEach(A=>A())}}function a6(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",jn,n),e.removeEventListener("x",jn),t}var o6=Object.defineProperty,T0=Object.getOwnPropertySymbols,s6=Object.prototype.hasOwnProperty,l6=Object.prototype.propertyIsEnumerable,k0=(e,t,n)=>t in e?o6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u6=(e,t)=>{for(var n in t||(t={}))s6.call(t,n)&&k0(e,n,t[n]);if(T0)for(var n of T0(t))l6.call(t,n)&&k0(e,n,t[n]);return e};const c6={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]};u6({linear:g5},c6);function f6(e,t,n,r={}){var i,l,m;const{clone:o=!1,passive:a=!1,eventName:c,deep:d=!1,defaultValue:u}=r,f=kt(),s=n||(f==null?void 0:f.emit)||((i=f==null?void 0:f.$emit)==null?void 0:i.bind(f))||((m=(l=f==null?void 0:f.proxy)==null?void 0:l.$emit)==null?void 0:m.bind(f==null?void 0:f.proxy));let h=c;t||(t="modelValue"),h=c||h||`update:${t.toString()}`;const g=v=>o?hw(o)?o(v):z5(v):v,p=()=>c5(e[t])?g(e[t]):u;if(a){const v=p(),y=ie(v);return Te(()=>e[t],b=>y.value=g(b)),Te(y,b=>{(b!==e[t]||d)&&s(h,b)},{deep:d}),y}else return ee({get(){return p()},set(v){s(h,v)}})}function d6({window:e=Wn}={}){if(!e)return ie(!1);const t=ie(e.document.hasFocus());return bt(e,"blur",()=>{t.value=!1}),bt(e,"focus",()=>{t.value=!0}),t}function ww(e={}){const{window:t=Wn,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:l=!0}=e,m=ie(n),o=ie(r),a=()=>{t&&(l?(m.value=t.innerWidth,o.value=t.innerHeight):(m.value=t.document.documentElement.clientWidth,o.value=t.document.documentElement.clientHeight))};return a(),um(a),bt("resize",a,{passive:!0}),i&&bt("orientationchange",a,{passive:!0}),{width:m,height:o}}const h6=(e,t)=>{if(!dt||!e||!t)return!1;const n=e.getBoundingClientRect();let r;return t instanceof Element?r=t.getBoundingClientRect():r={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right},hm=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}},Tr=e=>e===void 0,Ya=e=>typeof Element>"u"?!1:e instanceof Element,p6=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Aa=e=>Xl(e),xh=e=>Object.keys(e),m6=e=>Object.entries(e),ld=(e,t,n)=>({get value(){return Xn(e,t,n)},set value(r){JI(e,t,r)}});class g6 extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ln(e,t){throw new g6(`[${e}] ${t}`)}const Sw=(e="")=>e.split(" ").filter(t=>!!t.trim()),Th=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ls=(e,t)=>{!e||!t.trim()||e.classList.add(...Sw(t))},ac=(e,t)=>{!e||!t.trim()||e.classList.remove(...Sw(t))},Cw=(e,t)=>{var n;if(!dt||!e||!t)return"";let r=nr(t);r==="float"&&(r="cssFloat");try{const i=e.style[r];if(i)return i;const l=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return l?l[r]:""}catch{return e.style[r]}};function qr(e,t="px"){if(!e)return"";if(Ke(e))return e;if(lt(e))return`${e}${t}`}const v6=(e,t)=>{if(!dt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=Cw(e,n);return["scroll","auto","overlay"].some(i=>r.includes(i))},y6=(e,t)=>{if(!dt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(v6(n,t))return n;n=n.parentNode}return n};let ku;const b6=e=>{var t;if(!dt)return 0;if(ku!==void 0)return ku;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 l=i.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),ku=r-l,ku};function _6(e,t){if(!dt)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),l=i+t.offsetHeight,m=e.scrollTop,o=m+e.clientHeight;i<m?e.scrollTop=i:l>o&&(e.scrollTop=l-e.clientHeight)}const xw="__epPropKey",Ae=e=>e,w6=e=>nt(e)&&!!e[xw],xf=(e,t)=>{if(!nt(e)||w6(e))return e;const{values:n,required:r,default:i,type:l,validator:m}=e,a={type:l,required:!!r,validator:n||m?c=>{let d=!1,u=[];if(n&&(u=Array.from(n),st(e,"default")&&u.push(i),d||(d=u.includes(c))),m&&(d||(d=m(c))),!d&&u.length>0){const f=[...new Set(u)].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 d}:void 0,[xw]:!0};return st(e,"default")&&(a.default=i),a},Be=e=>dw(Object.entries(e).map(([t,n])=>[t,xf(n,t)])),qt=Ae([String,Object,Function]),S6={Close:Kr},Tw={Close:Kr,SuccessFilled:B1,InfoFilled:Xp,WarningFilled:Jp,CircleCloseFilled:I1},zc={success:B1,warning:Jp,error:I1,info:Xp},C6={validating:qp,success:Ql,error:yf},_t=(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},x6=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),T6=(e,t)=>(e.install=n=>{n.directive(t,e)},e),yr=e=>(e.install=at,e),k6=(...e)=>t=>{e.forEach(n=>{Ve(n)?n(t):n.value=t})},Et={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"},mt="update:modelValue",Mr="change",Ka="input",eu=["","default","small","large"],E6={large:40,default:32,small:24},O6=e=>E6[e||"default"],Tf=e=>["",...eu].includes(e);var oc=(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))(oc||{});const kw=e=>{const t=Ue(e)?e:[e],n=[];return t.forEach(r=>{Ue(r.children)?n.push(...kw(r.children)):n.push(r)}),n},A6=()=>dt&&/firefox/i.test(window.navigator.userAgent),Ew=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),pm=()=>Math.floor(Math.random()*1e4),ln=e=>e,P6=["class","style"],I6=/^on[A-Z]/,Ow=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=ee(()=>((n==null?void 0:n.value)||[]).concat(P6)),i=kt();return ee(i?()=>{var l;return dw(Object.entries((l=i.proxy)==null?void 0:l.$attrs).filter(([m])=>!r.value.includes(m)&&!(t&&I6.test(m))))}:()=>({}))},Aw=Symbol("buttonGroupContextKey"),Pw=Symbol("carouselContextKey"),Iw=Symbol("collapseContextKey"),Mw=Symbol(),Lw=Symbol("dialogInjectionKey"),fs=Symbol("formContextKey"),Xa=Symbol("formItemContextKey"),Rw=Symbol("elPaginationKey"),Dw=Symbol("radioGroupKey"),Fw=Symbol("rowContextKey"),Bw=Symbol("scrollbarContextKey"),$w=Symbol("sliderContextKey"),kf=Symbol("tabsRootContextKey"),Nw=Symbol("uploadContextKey"),mm=Symbol("popper"),zw=Symbol("popperContent"),jw=e=>{const t=kt();return ee(()=>{var n,r;return(r=((n=t.proxy)==null?void 0:n.$props)[e])!=null?r:void 0})},jc=ie();function Ai(e,t=void 0){const n=kt()?Xe(Mw,jc):jc;return e?ee(()=>{var r,i;return(i=(r=n.value)==null?void 0:r[e])!=null?i:t}):n}const M6=(e,t,n=!1)=>{var r;const i=!!kt(),l=i?Ai():void 0,m=(r=t==null?void 0:t.provide)!=null?r:i?gt:void 0;if(!m)return;const o=ee(()=>{const a=_(e);return l!=null&&l.value?L6(l.value,a):a});return m(Mw,o),(n||!jc.value)&&(jc.value=o.value),o},L6=(e,t)=>{var n;const r=[...new Set([...xh(e),...xh(t)])],i={};for(const l of r)i[l]=(n=t[l])!=null?n:e[l];return i},aa=xf({type:String,values:eu,required:!1}),br=(e,t={})=>{const n=ie(void 0),r=t.prop?n:jw("size"),i=t.global?n:Ai("size"),l=t.form?{size:void 0}:Xe(fs,void 0),m=t.formItem?{size:void 0}:Xe(Xa,void 0);return ee(()=>r.value||_(e)||(m==null?void 0:m.size)||(l==null?void 0:l.size)||i.value||"")},so=e=>{const t=jw("disabled"),n=Xe(fs,void 0);return ee(()=>t.value||_(e)||(n==null?void 0:n.disabled)||!1)},xl=({from:e,replacement:t,scope:n,version:r,ref:i,type:l="API"},m)=>{Te(()=>_(m),o=>{},{immediate:!0})},Vw=(e,t,n)=>{let r={offsetX:0,offsetY:0};const i=o=>{const a=o.clientX,c=o.clientY,{offsetX:d,offsetY:u}=r,f=e.value.getBoundingClientRect(),s=f.left,h=f.top,g=f.width,p=f.height,v=document.documentElement.clientWidth,y=document.documentElement.clientHeight,b=-s+d,w=-h+u,S=v-s-g+d,C=y-h-p+u,T=A=>{const P=Math.min(Math.max(d+A.clientX-a,b),S),z=Math.min(Math.max(u+A.clientY-c,w),C);r={offsetX:P,offsetY:z},e.value.style.transform=`translate(${qr(P)}, ${qr(z)})`},k=()=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",k)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",k)},l=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},m=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)};tt(()=>{ro(()=>{n.value?l():m()})}),Jt(()=>{m()})},R6=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}}),Ef="el",D6="is-",wa=(e,t,n,r,i)=>{let l=`${e}-${t}`;return n&&(l+=`-${n}`),r&&(l+=`__${r}`),i&&(l+=`--${i}`),l},Pe=e=>{const t=Ai("namespace",Ef);return{namespace:t,b:(h="")=>wa(t.value,e,h,"",""),e:h=>h?wa(t.value,e,"",h,""):"",m:h=>h?wa(t.value,e,"","",h):"",be:(h,g)=>h&&g?wa(t.value,e,h,g,""):"",em:(h,g)=>h&&g?wa(t.value,e,"",h,g):"",bm:(h,g)=>h&&g?wa(t.value,e,h,"",g):"",bem:(h,g,p)=>h&&g&&p?wa(t.value,e,h,g,p):"",is:(h,...g)=>{const p=g.length>=1?g[0]:!0;return h&&p?`${D6}${h}`:""},cssVar:h=>{const g={};for(const p in h)h[p]&&(g[`--${t.value}-${p}`]=h[p]);return g},cssVarName:h=>`--${t.value}-${h}`,cssVarBlock:h=>{const g={};for(const p in h)h[p]&&(g[`--${t.value}-${e}-${p}`]=h[p]);return g},cssVarBlockName:h=>`--${t.value}-${e}-${h}`}},F6={prefix:Math.floor(Math.random()*1e4),current:0},B6=Symbol("elIdInjection"),oa=e=>{const t=Xe(B6,F6),n=Ai("namespace",Ef);return ee(()=>_(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},ha=()=>{const e=Xe(fs,void 0),t=Xe(Xa,void 0);return{form:e,formItem:t}},tu=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=ie(!1)),r||(r=ie(!1));const i=ie();let l;const m=ee(()=>{var o;return!!(!e.label&&t&&t.inputIds&&((o=t.inputIds)==null?void 0:o.length)<=1)});return tt(()=>{l=Te([rr(e,"id"),n],([o,a])=>{const c=o!=null?o:a?void 0:oa().value;c!==i.value&&(t!=null&&t.removeInputId&&(i.value&&t.removeInputId(i.value),!(r!=null&&r.value)&&!a&&c&&t.addInputId(c)),i.value=c)},{immediate:!0})}),da(()=>{l&&l(),t!=null&&t.removeInputId&&i.value&&t.removeInputId(i.value)}),{isLabeledByFormItem:m,inputId:i}};var $6={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},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"},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:"",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"},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"}}};const N6=e=>(t,n)=>z6(t,n,_(e)),z6=(e,t,n)=>Xn(n,e,e).replace(/\{(\w+)\}/g,(r,i)=>{var l;return`${(l=t==null?void 0:t[i])!=null?l:`{${i}}`}`}),j6=e=>{const t=ee(()=>_(e).name),n=Ot(e)?e:ie(e);return{lang:t,locale:n,t:N6(e)}},Tn=()=>{const e=Ai("locale");return j6(ee(()=>e.value||$6))},Uw=e=>{Ot(e)||Ln("[useLockscreen]","You need to pass a ref param to this function");const t=Pe("popup"),n=u_(()=>t.bm("parent","hidden"));if(!dt||Th(document.body,n.value))return;let r=0,i=!1,l="0";const m=()=>{setTimeout(()=>{ac(document.body,n.value),i&&(document.body.style.width=l)},200)};Te(e,o=>{if(!o){m();return}i=!Th(document.body,n.value),i&&(l=document.body.style.width),r=b6(t.namespace.value);const a=document.documentElement.clientHeight<document.body.scrollHeight,c=Cw(document.body,"overflowY");r>0&&(a||c==="scroll")&&i&&(document.body.style.width=`calc(100% - ${r}px)`),Ls(document.body,n.value)}),Ep(()=>m())},V6=xf({type:Ae(Boolean),default:null}),U6=xf({type:Ae(Function)}),H6=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],i={[e]:V6,[n]:U6};return{useModelToggle:({indicator:m,toggleReason:o,shouldHideWhenRouteChanges:a,shouldProceed:c,onShow:d,onHide:u})=>{const f=kt(),{emit:s}=f,h=f.props,g=ee(()=>Ve(h[n])),p=ee(()=>h[e]===null),v=T=>{m.value!==!0&&(m.value=!0,o&&(o.value=T),Ve(d)&&d(T))},y=T=>{m.value!==!1&&(m.value=!1,o&&(o.value=T),Ve(u)&&u(T))},b=T=>{if(h.disabled===!0||Ve(c)&&!c())return;const k=g.value&&dt;k&&s(t,!0),(p.value||!k)&&v(T)},w=T=>{if(h.disabled===!0||!dt)return;const k=g.value&&dt;k&&s(t,!1),(p.value||!k)&&y(T)},S=T=>{!tr(T)||(h.disabled&&T?g.value&&s(t,!1):m.value!==T&&(T?v():y()))},C=()=>{m.value?w():b()};return Te(()=>h[e],S),a&&f.appContext.config.globalProperties.$route!==void 0&&Te(()=>({...f.proxy.$route}),()=>{a.value&&m.value&&w()}),tt(()=>{S(h[e])}),{hide:w,show:b,toggle:C,hasUpdateHandler:g}},useModelToggleProps:i,useModelToggleEmits:r}},W6=(e,t)=>{let n;Te(()=>e.value,r=>{var i,l;r?(n=document.activeElement,Ot(t)&&((l=(i=t.value).focus)==null||l.call(i))):n.focus()})},gm=e=>{if(!e)return{onClick:at,onMousedown:at,onMouseup:at};let t=!1,n=!1;return{onClick:m=>{t&&n&&e(m),t=n=!1},onMousedown:m=>{t=m.target===m.currentTarget},onMouseup:m=>{n=m.target===m.currentTarget}}};function G6(){let e;const t=(r,i)=>{n(),e=window.setTimeout(r,i)},n=()=>window.clearTimeout(e);return oo(()=>n()),{registerTimeout:t,cancelTimeout:n}}let Ao=[];const E0=e=>{const t=e;t.key===Et.esc&&Ao.forEach(n=>n(t))},Y6=e=>{tt(()=>{Ao.length===0&&document.addEventListener("keydown",E0),dt&&Ao.push(e)}),Jt(()=>{Ao=Ao.filter(t=>t!==e),Ao.length===0&&dt&&document.removeEventListener("keydown",E0)})};let O0;const K6=Ai("namespace",Ef),Hw=`${K6.value}-popper-container-${pm()}`,Ww=`#${Hw}`,X6=()=>{const e=document.createElement("div");return e.id=Hw,document.body.appendChild(e),e},q6=()=>{O_(()=>{!dt||(!O0||!document.body.querySelector(Ww))&&(O0=X6())})},Z6=Be({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),J6=({showAfter:e,hideAfter:t,open:n,close:r})=>{const{registerTimeout:i}=G6();return{onOpen:o=>{i(()=>{n(o)},_(e))},onClose:o=>{i(()=>{r(o)},_(t))}}},Gw=Symbol("elForwardRef"),Q6=e=>{gt(Gw,{setForwardRef:n=>{e.value=n}})},e8=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),A0=ie(0),nu=()=>{const e=Ai("zIndex",2e3),t=ee(()=>e.value+A0.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(A0.value++,t.value)}};function t8(e){const t=ie();function n(){if(e.value==null)return;const{selectionStart:i,selectionEnd:l,value:m}=e.value;if(i==null||l==null)return;const o=m.slice(0,Math.max(0,i)),a=m.slice(Math.max(0,l));t.value={selectionStart:i,selectionEnd:l,value:m,beforeTxt:o,afterTxt:a}}function r(){if(e.value==null||t.value==null)return;const{value:i}=e.value,{beforeTxt:l,afterTxt:m,selectionStart:o}=t.value;if(l==null||m==null||o==null)return;let a=i.length;if(i.endsWith(m))a=i.length-m.length;else if(i.startsWith(l))a=l.length;else{const c=l[o-1],d=i.indexOf(c,o-1);d!==-1&&(a=d+1)}e.value.setSelectionRange(a,a)}return[n,r]}var Re=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n};const n8=Be({size:{type:Ae([Number,String])},color:{type:String}}),r8={name:"ElIcon",inheritAttrs:!1},i8=be({...r8,props:n8,setup(e){const t=e,n=Pe("icon"),r=ee(()=>{const{size:i,color:l}=t;return!i&&!l?{}:{fontSize:Tr(i)?void 0:qr(i),"--color":l}});return(i,l)=>(N(),se("i",zn({class:_(n).b(),style:_(r)},i.$attrs),[ke(i.$slots,"default")],16))}});var a8=Re(i8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const De=_t(a8);let wr;const o8=`
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
`,s8=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function l8(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:s8.map(m=>`${m}:${t.getPropertyValue(m)}`).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function P0(e,t=1,n){var r;wr||(wr=document.createElement("textarea"),document.body.appendChild(wr));const{paddingSize:i,borderSize:l,boxSizing:m,contextStyle:o}=l8(e);wr.setAttribute("style",`${o};${o8}`),wr.value=e.value||e.placeholder||"";let a=wr.scrollHeight;const c={};m==="border-box"?a=a+l:m==="content-box"&&(a=a-i),wr.value="";const d=wr.scrollHeight-i;if(lt(t)){let u=d*t;m==="border-box"&&(u=u+i+l),a=Math.max(u,a),c.minHeight=`${u}px`}if(lt(n)){let u=d*n;m==="border-box"&&(u=u+i+l),a=Math.min(u,a)}return c.height=`${a}px`,(r=wr.parentNode)==null||r.removeChild(wr),wr=void 0,c}const u8=Be({id:{type:String,default:void 0},size:aa,disabled:Boolean,modelValue:{type:Ae([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Ae([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String,default:""},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:qt},prefixIcon:{type:qt},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Ae([Object,Array,String]),default:()=>ln({})}}),c8={[mt]:e=>Ke(e),input:e=>Ke(e),change:e=>Ke(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},f8=["role"],d8=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"],h8=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder"],p8={name:"ElInput",inheritAttrs:!1},m8=be({...p8,props:u8,emits:c8,setup(e,{expose:t,emit:n}){const r=e,i={suffix:"append",prefix:"prepend"},l=kt(),m=L_(),o=os(),a=ee(()=>{const re={};return r.containerRole==="combobox"&&(re["aria-haspopup"]=m["aria-haspopup"],re["aria-owns"]=m["aria-owns"],re["aria-expanded"]=m["aria-expanded"]),re}),c=Ow({excludeKeys:ee(()=>Object.keys(a.value))}),{form:d,formItem:u}=ha(),{inputId:f}=tu(r,{formItemContext:u}),s=br(),h=so(),g=Pe("input"),p=Pe("textarea"),v=mn(),y=mn(),b=ie(!1),w=ie(!1),S=ie(!1),C=ie(!1),T=ie(),k=mn(r.inputStyle),A=ee(()=>v.value||y.value),P=ee(()=>{var re;return(re=d==null?void 0:d.statusIcon)!=null?re:!1}),z=ee(()=>(u==null?void 0:u.validateState)||""),I=ee(()=>z.value&&C6[z.value]),$=ee(()=>C.value?YO:hO),O=ee(()=>[m.style,r.inputStyle]),Y=ee(()=>[r.inputStyle,k.value,{resize:r.resize}]),ae=ee(()=>Hr(r.modelValue)?"":String(r.modelValue)),q=ee(()=>r.clearable&&!h.value&&!r.readonly&&!!ae.value&&(b.value||w.value)),J=ee(()=>r.showPassword&&!h.value&&!r.readonly&&!!ae.value&&(!!ae.value||b.value)),E=ee(()=>r.showWordLimit&&!!c.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!h.value&&!r.readonly&&!r.showPassword),V=ee(()=>Array.from(ae.value).length),M=ee(()=>!!E.value&&V.value>Number(c.value.maxlength)),R=ee(()=>!!o.suffix||!!r.suffixIcon||q.value||r.showPassword||E.value||!!z.value&&P.value),[W,D]=t8(v);Jr(y,re=>{if(!E.value||r.resize!=="both")return;const he=re[0],{width:Se}=he.contentRect;T.value={right:`calc(100% - ${Se+15+6}px)`}});const B=()=>{const{type:re,autosize:he}=r;if(!(!dt||re!=="textarea"))if(he){const Se=nt(he)?he.minRows:void 0,xe=nt(he)?he.maxRows:void 0;k.value={...P0(y.value,Se,xe)}}else k.value={minHeight:P0(y.value).minHeight}},Z=()=>{const re=A.value;!re||re.value===ae.value||(re.value=ae.value)},H=re=>{const{el:he}=l.vnode;if(!he)return;const xe=Array.from(he.querySelectorAll(`.${g.e(re)}`)).find(Le=>Le.parentNode===he);if(!xe)return;const Oe=i[re];o[Oe]?xe.style.transform=`translateX(${re==="suffix"?"-":""}${he.querySelector(`.${g.be("group",Oe)}`).offsetWidth}px)`:xe.removeAttribute("style")},Q=()=>{H("prefix"),H("suffix")},te=async re=>{W();let{value:he}=re.target;if(r.formatter&&(he=r.parser?r.parser(he):he,he=r.formatter(he)),!S.value){if(he===ae.value){Z();return}n(mt,he),n("input",he),await Ge(),Z(),D()}},fe=re=>{n("change",re.target.value)},me=re=>{n("compositionstart",re),S.value=!0},_e=re=>{var he;n("compositionupdate",re);const Se=(he=re.target)==null?void 0:he.value,xe=Se[Se.length-1]||"";S.value=!Ew(xe)},j=re=>{n("compositionend",re),S.value&&(S.value=!1,te(re))},x=()=>{C.value=!C.value,U()},U=async()=>{var re;await Ge(),(re=A.value)==null||re.focus()},K=()=>{var re;return(re=A.value)==null?void 0:re.blur()},L=re=>{b.value=!0,n("focus",re)},F=re=>{var he;b.value=!1,n("blur",re),r.validateEvent&&((he=u==null?void 0:u.validate)==null||he.call(u,"blur").catch(Se=>void 0))},X=re=>{w.value=!1,n("mouseleave",re)},de=re=>{w.value=!0,n("mouseenter",re)},le=re=>{n("keydown",re)},G=()=>{var re;(re=A.value)==null||re.select()},pe=()=>{n(mt,""),n("change",""),n("clear"),n("input","")};return Te(()=>r.modelValue,()=>{var re;Ge(()=>B()),r.validateEvent&&((re=u==null?void 0:u.validate)==null||re.call(u,"change").catch(he=>void 0))}),Te(ae,()=>Z()),Te(()=>r.type,async()=>{await Ge(),Z(),B(),Q()}),tt(async()=>{!r.formatter&&r.parser,Z(),Q(),await Ge(),B()}),no(async()=>{await Ge(),Q()}),t({input:v,textarea:y,ref:A,textareaStyle:Y,autosize:rr(r,"autosize"),focus:U,blur:K,select:G,clear:pe,resizeTextarea:B}),(re,he)=>xt((N(),se("div",zn(_(a),{class:[re.type==="textarea"?_(p).b():_(g).b(),_(g).m(_(s)),_(g).is("disabled",_(h)),_(g).is("exceed",_(M)),{[_(g).b("group")]:re.$slots.prepend||re.$slots.append,[_(g).bm("group","append")]:re.$slots.append,[_(g).bm("group","prepend")]:re.$slots.prepend,[_(g).m("prefix")]:re.$slots.prefix||re.prefixIcon,[_(g).m("suffix")]:re.$slots.suffix||re.suffixIcon||re.clearable||re.showPassword,[_(g).bm("suffix","password-clear")]:_(q)&&_(J)},re.$attrs.class],style:_(O),role:re.containerRole,onMouseenter:de,onMouseleave:X}),[ge(" input "),re.type!=="textarea"?(N(),se($e,{key:0},[ge(" prepend slot "),re.$slots.prepend?(N(),se("div",{key:0,class:ce(_(g).be("group","prepend"))},[ke(re.$slots,"prepend")],2)):ge("v-if",!0),ne("div",{class:ce([_(g).e("wrapper"),_(g).is("focus",b.value)])},[ge(" prefix slot "),re.$slots.prefix||re.prefixIcon?(N(),se("span",{key:0,class:ce(_(g).e("prefix"))},[ne("span",{class:ce(_(g).e("prefix-inner"))},[ke(re.$slots,"prefix"),re.prefixIcon?(N(),ve(_(De),{key:0,class:ce(_(g).e("icon"))},{default:ue(()=>[(N(),ve(Ct(re.prefixIcon)))]),_:1},8,["class"])):ge("v-if",!0)],2)],2)):ge("v-if",!0),ne("input",zn({id:_(f),ref_key:"input",ref:v,class:_(g).e("inner")},_(c),{type:re.showPassword?C.value?"text":"password":re.type,disabled:_(h),formatter:re.formatter,parser:re.parser,readonly:re.readonly,autocomplete:re.autocomplete,tabindex:re.tabindex,"aria-label":re.label,placeholder:re.placeholder,style:re.inputStyle,onCompositionstart:me,onCompositionupdate:_e,onCompositionend:j,onInput:te,onFocus:L,onBlur:F,onChange:fe,onKeydown:le}),null,16,d8),ge(" suffix slot "),_(R)?(N(),se("span",{key:1,class:ce(_(g).e("suffix"))},[ne("span",{class:ce(_(g).e("suffix-inner"))},[!_(q)||!_(J)||!_(E)?(N(),se($e,{key:0},[ke(re.$slots,"suffix"),re.suffixIcon?(N(),ve(_(De),{key:0,class:ce(_(g).e("icon"))},{default:ue(()=>[(N(),ve(Ct(re.suffixIcon)))]),_:1},8,["class"])):ge("v-if",!0)],64)):ge("v-if",!0),_(q)?(N(),ve(_(De),{key:1,class:ce([_(g).e("icon"),_(g).e("clear")]),onMousedown:Qe(_(at),["prevent"]),onClick:pe},{default:ue(()=>[oe(_(yf))]),_:1},8,["class","onMousedown"])):ge("v-if",!0),_(J)?(N(),ve(_(De),{key:2,class:ce([_(g).e("icon"),_(g).e("password")]),onClick:x},{default:ue(()=>[(N(),ve(Ct(_($))))]),_:1},8,["class"])):ge("v-if",!0),_(E)?(N(),se("span",{key:3,class:ce(_(g).e("count"))},[ne("span",{class:ce(_(g).e("count-inner"))},Ee(_(V))+" / "+Ee(_(c).maxlength),3)],2)):ge("v-if",!0),_(z)&&_(I)&&_(P)?(N(),ve(_(De),{key:4,class:ce([_(g).e("icon"),_(g).e("validateIcon"),_(g).is("loading",_(z)==="validating")])},{default:ue(()=>[(N(),ve(Ct(_(I))))]),_:1},8,["class"])):ge("v-if",!0)],2)],2)):ge("v-if",!0)],2),ge(" append slot "),re.$slots.append?(N(),se("div",{key:1,class:ce(_(g).be("group","append"))},[ke(re.$slots,"append")],2)):ge("v-if",!0)],64)):(N(),se($e,{key:1},[ge(" textarea "),ne("textarea",zn({id:_(f),ref_key:"textarea",ref:y,class:_(p).e("inner")},_(c),{tabindex:re.tabindex,disabled:_(h),readonly:re.readonly,autocomplete:re.autocomplete,style:_(Y),"aria-label":re.label,placeholder:re.placeholder,onCompositionstart:me,onCompositionupdate:_e,onCompositionend:j,onInput:te,onFocus:L,onBlur:F,onChange:fe,onKeydown:le}),null,16,h8),_(E)?(N(),se("span",{key:0,style:ze(T.value),class:ce(_(g).e("count"))},Ee(_(V))+" / "+Ee(_(c).maxlength),7)):ge("v-if",!0)],64))],16,f8)),[[Gt,re.type!=="hidden"]])}});var g8=Re(m8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const lo=_t(g8),Io=4,v8={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"}},y8=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),b8=Be({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),_8=be({__name:"thumb",props:b8,setup(e){const t=e,n="Thumb",r=Xe(Bw),i=Pe("scrollbar");r||Ln(n,"can not inject scrollbar context");const l=ie(),m=ie(),o=ie({}),a=ie(!1);let c=!1,d=!1,u=dt?document.onselectstart:null;const f=ee(()=>v8[t.vertical?"vertical":"horizontal"]),s=ee(()=>y8({size:t.size,move:t.move,bar:f.value})),h=ee(()=>l.value[f.value.offset]**2/r.wrapElement[f.value.scrollSize]/t.ratio/m.value[f.value.offset]),g=T=>{var k;if(T.stopPropagation(),T.ctrlKey||[1,2].includes(T.button))return;(k=window.getSelection())==null||k.removeAllRanges(),v(T);const A=T.currentTarget;!A||(o.value[f.value.axis]=A[f.value.offset]-(T[f.value.client]-A.getBoundingClientRect()[f.value.direction]))},p=T=>{if(!m.value||!l.value||!r.wrapElement)return;const k=Math.abs(T.target.getBoundingClientRect()[f.value.direction]-T[f.value.client]),A=m.value[f.value.offset]/2,P=(k-A)*100*h.value/l.value[f.value.offset];r.wrapElement[f.value.scroll]=P*r.wrapElement[f.value.scrollSize]/100},v=T=>{T.stopImmediatePropagation(),c=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",b),u=document.onselectstart,document.onselectstart=()=>!1},y=T=>{if(!l.value||!m.value||c===!1)return;const k=o.value[f.value.axis];if(!k)return;const A=(l.value.getBoundingClientRect()[f.value.direction]-T[f.value.client])*-1,P=m.value[f.value.offset]-k,z=(A-P)*100*h.value/l.value[f.value.offset];r.wrapElement[f.value.scroll]=z*r.wrapElement[f.value.scrollSize]/100},b=()=>{c=!1,o.value[f.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",b),C(),d&&(a.value=!1)},w=()=>{d=!1,a.value=!!t.size},S=()=>{d=!0,a.value=c};Jt(()=>{C(),document.removeEventListener("mouseup",b)});const C=()=>{document.onselectstart!==u&&(document.onselectstart=u)};return bt(rr(r,"scrollbarElement"),"mousemove",w),bt(rr(r,"scrollbarElement"),"mouseleave",S),(T,k)=>(N(),ve(Hn,{name:_(i).b("fade"),persisted:""},{default:ue(()=>[xt(ne("div",{ref_key:"instance",ref:l,class:ce([_(i).e("bar"),_(i).is(_(f).key)]),onMousedown:p},[ne("div",{ref_key:"thumb",ref:m,class:ce(_(i).e("thumb")),style:ze(_(s)),onMousedown:g},null,38)],34),[[Gt,T.always||a.value]])]),_:1},8,["name"]))}});var I0=Re(_8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const w8=Be({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),S8=be({__name:"bar",props:w8,setup(e,{expose:t}){const n=e,r=ie(0),i=ie(0);return t({handleScroll:m=>{if(m){const o=m.offsetHeight-Io,a=m.offsetWidth-Io;i.value=m.scrollTop*100/o*n.ratioY,r.value=m.scrollLeft*100/a*n.ratioX}}}),(m,o)=>(N(),se($e,null,[oe(I0,{move:r.value,ratio:m.ratioX,size:m.width,always:m.always},null,8,["move","ratio","size","always"]),oe(I0,{move:i.value,ratio:m.ratioY,size:m.height,vertical:"",always:m.always},null,8,["move","ratio","size","always"])],64))}});var C8=Re(S8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const x8=Be({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:Ae([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}}),T8={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(lt)},k8={name:"ElScrollbar"},E8=be({...k8,props:x8,emits:T8,setup(e,{expose:t,emit:n}){const r=e,i=Pe("scrollbar");let l,m;const o=ie(),a=ie(),c=ie(),d=ie("0"),u=ie("0"),f=ie(),s=ie(1),h=ie(1),g=ee(()=>{const S={};return r.height&&(S.height=qr(r.height)),r.maxHeight&&(S.maxHeight=qr(r.maxHeight)),[r.wrapStyle,S]}),p=()=>{var S;a.value&&((S=f.value)==null||S.handleScroll(a.value),n("scroll",{scrollTop:a.value.scrollTop,scrollLeft:a.value.scrollLeft}))};function v(S,C){nt(S)?a.value.scrollTo(S):lt(S)&&lt(C)&&a.value.scrollTo(S,C)}const y=S=>{!lt(S)||(a.value.scrollTop=S)},b=S=>{!lt(S)||(a.value.scrollLeft=S)},w=()=>{if(!a.value)return;const S=a.value.offsetHeight-Io,C=a.value.offsetWidth-Io,T=S**2/a.value.scrollHeight,k=C**2/a.value.scrollWidth,A=Math.max(T,r.minSize),P=Math.max(k,r.minSize);s.value=T/(S-T)/(A/(S-A)),h.value=k/(C-k)/(P/(C-P)),u.value=A+Io<S?`${A}px`:"",d.value=P+Io<C?`${P}px`:""};return Te(()=>r.noresize,S=>{S?(l==null||l(),m==null||m()):({stop:l}=Jr(c,w),m=bt("resize",w))},{immediate:!0}),Te(()=>[r.maxHeight,r.height],()=>{r.native||Ge(()=>{var S;w(),a.value&&((S=f.value)==null||S.handleScroll(a.value))})}),gt(Bw,Tt({scrollbarElement:o,wrapElement:a})),tt(()=>{r.native||Ge(()=>{w()})}),no(()=>w()),t({wrap$:a,update:w,scrollTo:v,setScrollTop:y,setScrollLeft:b,handleScroll:p}),(S,C)=>(N(),se("div",{ref_key:"scrollbar$",ref:o,class:ce(_(i).b())},[ne("div",{ref_key:"wrap$",ref:a,class:ce([S.wrapClass,_(i).e("wrap"),{[_(i).em("wrap","hidden-default")]:!S.native}]),style:ze(_(g)),onScroll:p},[(N(),ve(Ct(S.tag),{ref_key:"resize$",ref:c,class:ce([_(i).e("view"),S.viewClass]),style:ze(S.viewStyle)},{default:ue(()=>[ke(S.$slots,"default")]),_:3},8,["class","style"]))],38),S.native?ge("v-if",!0):(N(),ve(C8,{key:0,ref_key:"barRef",ref:f,height:u.value,width:d.value,always:S.always,"ratio-x":h.value,"ratio-y":s.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var O8=Re(E8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const Yw=_t(O8),A8={LIGHT:"light",DARK:"dark"},P8=["dialog","grid","listbox","menu","tooltip","tree"],Kw=Be({role:{type:String,values:P8,default:"tooltip"}}),I8={name:"ElPopperRoot",inheritAttrs:!1},M8=be({...I8,props:Kw,setup(e,{expose:t}){const n=e,r=ie(),i=ie(),l=ie(),m=ie(),o=ee(()=>n.role),a={triggerRef:r,popperInstanceRef:i,contentRef:l,referenceRef:m,role:o};return t(a),gt(mm,a),(c,d)=>ke(c.$slots,"default")}});var L8=Re(M8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const Xw=Be({arrowOffset:{type:Number,default:5}}),R8={name:"ElPopperArrow",inheritAttrs:!1},D8=be({...R8,props:Xw,setup(e,{expose:t}){const n=e,r=Pe("popper"),{arrowOffset:i,arrowRef:l}=Xe(zw,void 0);return Te(()=>n.arrowOffset,m=>{i.value=m}),Jt(()=>{l.value=void 0}),t({arrowRef:l}),(m,o)=>(N(),se("span",{ref_key:"arrowRef",ref:l,class:ce(_(r).e("arrow")),"data-popper-arrow":""},null,2))}});var F8=Re(D8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const B8="ElOnlyChild",$8=be({name:B8,setup(e,{slots:t,attrs:n}){var r;const i=Xe(Gw),l=e8((r=i==null?void 0:i.setForwardRef)!=null?r:at);return()=>{var m;const o=(m=t.default)==null?void 0:m.call(t,n);if(!o||o.length>1)return null;const a=qw(o);return a?xt(wi(a,n),[[l]]):null}}});function qw(e){if(!e)return null;const t=e;for(const n of t){if(nt(n))switch(n.type){case hn:continue;case ss:case"svg":return M0(n);case $e:return qw(n.children);default:return n}return M0(n)}return null}function M0(e){const t=Pe("only-child");return oe("span",{class:t.e("content")},[e])}const Zw=Be({virtualRef:{type:Ae(Object)},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean}),N8={name:"ElPopperTrigger",inheritAttrs:!1},z8=be({...N8,props:Zw,setup(e,{expose:t}){const n=e,{role:r,triggerRef:i}=Xe(mm,void 0);Q6(i);const l=ee(()=>o.value?n.id:void 0),m=ee(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),o=ee(()=>{if(r&&r.value!=="tooltip")return r.value}),a=ee(()=>o.value?`${n.open}`:void 0);let c;return tt(()=>{Te(()=>n.virtualRef,d=>{d&&(i.value=xr(d))},{immediate:!0}),Te(()=>i.value,(d,u)=>{c==null||c(),c=void 0,Ya(d)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(f=>{var s;const h=n[f];h&&(d.addEventListener(f.slice(2).toLowerCase(),h),(s=u==null?void 0:u.removeEventListener)==null||s.call(u,f.slice(2).toLowerCase(),h))}),c=Te([l,m,o,a],f=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((s,h)=>{Hr(f[h])?d.removeAttribute(s):d.setAttribute(s,f[h])})},{immediate:!0})),Ya(u)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(f=>u.removeAttribute(f))},{immediate:!0})}),Jt(()=>{c==null||c(),c=void 0}),t({triggerRef:i}),(d,u)=>d.virtualTriggering?ge("v-if",!0):(N(),ve(_($8),zn({key:0},d.$attrs,{"aria-controls":_(l),"aria-describedby":_(m),"aria-expanded":_(a),"aria-haspopup":_(o)}),{default:ue(()=>[ke(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var j8=Re(z8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]),Vn="top",mr="bottom",gr="right",Un="left",vm="auto",ru=[Vn,mr,gr,Un],qo="start",Tl="end",V8="clippingParents",Jw="viewport",Os="popper",U8="reference",L0=ru.reduce(function(e,t){return e.concat([t+"-"+qo,t+"-"+Tl])},[]),ds=[].concat(ru,[vm]).reduce(function(e,t){return e.concat([t,t+"-"+qo,t+"-"+Tl])},[]),H8="beforeRead",W8="read",G8="afterRead",Y8="beforeMain",K8="main",X8="afterMain",q8="beforeWrite",Z8="write",J8="afterWrite",Q8=[H8,W8,G8,Y8,K8,X8,q8,Z8,J8];function Zr(e){return e?(e.nodeName||"").toLowerCase():null}function Rr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zo(e){var t=Rr(e).Element;return e instanceof t||e instanceof Element}function hr(e){var t=Rr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ym(e){if(typeof ShadowRoot>"u")return!1;var t=Rr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function eM(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},l=t.elements[n];!hr(l)||!Zr(l)||(Object.assign(l.style,r),Object.keys(i).forEach(function(m){var o=i[m];o===!1?l.removeAttribute(m):l.setAttribute(m,o===!0?"":o)}))})}function tM(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],l=t.attributes[r]||{},m=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),o=m.reduce(function(a,c){return a[c]="",a},{});!hr(i)||!Zr(i)||(Object.assign(i.style,o),Object.keys(l).forEach(function(a){i.removeAttribute(a)}))})}}var Qw={name:"applyStyles",enabled:!0,phase:"write",fn:eM,effect:tM,requires:["computeStyles"]};function Wr(e){return e.split("-")[0]}var ja=Math.max,Vc=Math.min,Jo=Math.round;function Qo(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(hr(e)&&t){var l=e.offsetHeight,m=e.offsetWidth;m>0&&(r=Jo(n.width)/m||1),l>0&&(i=Jo(n.height)/l||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 bm(e){var t=Qo(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 e2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ym(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ci(e){return Rr(e).getComputedStyle(e)}function nM(e){return["table","td","th"].indexOf(Zr(e))>=0}function pa(e){return((Zo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Of(e){return Zr(e)==="html"?e:e.assignedSlot||e.parentNode||(ym(e)?e.host:null)||pa(e)}function R0(e){return!hr(e)||Ci(e).position==="fixed"?null:e.offsetParent}function rM(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&hr(e)){var r=Ci(e);if(r.position==="fixed")return null}var i=Of(e);for(ym(i)&&(i=i.host);hr(i)&&["html","body"].indexOf(Zr(i))<0;){var l=Ci(i);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return i;i=i.parentNode}return null}function iu(e){for(var t=Rr(e),n=R0(e);n&&nM(n)&&Ci(n).position==="static";)n=R0(n);return n&&(Zr(n)==="html"||Zr(n)==="body"&&Ci(n).position==="static")?t:n||rM(e)||t}function _m(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zs(e,t,n){return ja(e,Vc(t,n))}function iM(e,t,n){var r=Zs(e,t,n);return r>n?n:r}function t2(){return{top:0,right:0,bottom:0,left:0}}function n2(e){return Object.assign({},t2(),e)}function r2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var aM=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,n2(typeof e!="number"?e:r2(e,ru))};function oM(e){var t,n=e.state,r=e.name,i=e.options,l=n.elements.arrow,m=n.modifiersData.popperOffsets,o=Wr(n.placement),a=_m(o),c=[Un,gr].indexOf(o)>=0,d=c?"height":"width";if(!(!l||!m)){var u=aM(i.padding,n),f=bm(l),s=a==="y"?Vn:Un,h=a==="y"?mr:gr,g=n.rects.reference[d]+n.rects.reference[a]-m[a]-n.rects.popper[d],p=m[a]-n.rects.reference[a],v=iu(l),y=v?a==="y"?v.clientHeight||0:v.clientWidth||0:0,b=g/2-p/2,w=u[s],S=y-f[d]-u[h],C=y/2-f[d]/2+b,T=Zs(w,C,S),k=a;n.modifiersData[r]=(t={},t[k]=T,t.centerOffset=T-C,t)}}function sM(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)||!e2(t.elements.popper,i)||(t.elements.arrow=i))}var lM={name:"arrow",enabled:!0,phase:"main",fn:oM,effect:sM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function es(e){return e.split("-")[1]}var uM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cM(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:Jo(t*i)/i||0,y:Jo(n*i)/i||0}}function D0(e){var t,n=e.popper,r=e.popperRect,i=e.placement,l=e.variation,m=e.offsets,o=e.position,a=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,f=m.x,s=f===void 0?0:f,h=m.y,g=h===void 0?0:h,p=typeof d=="function"?d({x:s,y:g}):{x:s,y:g};s=p.x,g=p.y;var v=m.hasOwnProperty("x"),y=m.hasOwnProperty("y"),b=Un,w=Vn,S=window;if(c){var C=iu(n),T="clientHeight",k="clientWidth";if(C===Rr(n)&&(C=pa(n),Ci(C).position!=="static"&&o==="absolute"&&(T="scrollHeight",k="scrollWidth")),C=C,i===Vn||(i===Un||i===gr)&&l===Tl){w=mr;var A=u&&C===S&&S.visualViewport?S.visualViewport.height:C[T];g-=A-r.height,g*=a?1:-1}if(i===Un||(i===Vn||i===mr)&&l===Tl){b=gr;var P=u&&C===S&&S.visualViewport?S.visualViewport.width:C[k];s-=P-r.width,s*=a?1:-1}}var z=Object.assign({position:o},c&&uM),I=d===!0?cM({x:s,y:g}):{x:s,y:g};if(s=I.x,g=I.y,a){var $;return Object.assign({},z,($={},$[w]=y?"0":"",$[b]=v?"0":"",$.transform=(S.devicePixelRatio||1)<=1?"translate("+s+"px, "+g+"px)":"translate3d("+s+"px, "+g+"px, 0)",$))}return Object.assign({},z,(t={},t[w]=y?g+"px":"",t[b]=v?s+"px":"",t.transform="",t))}function fM(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,l=n.adaptive,m=l===void 0?!0:l,o=n.roundOffsets,a=o===void 0?!0:o,c={placement:Wr(t.placement),variation:es(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,D0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:m,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,D0(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 i2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fM,data:{}},Eu={passive:!0};function dM(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,l=i===void 0?!0:i,m=r.resize,o=m===void 0?!0:m,a=Rr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&c.forEach(function(d){d.addEventListener("scroll",n.update,Eu)}),o&&a.addEventListener("resize",n.update,Eu),function(){l&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Eu)}),o&&a.removeEventListener("resize",n.update,Eu)}}var a2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:dM,data:{}},hM={left:"right",right:"left",bottom:"top",top:"bottom"};function sc(e){return e.replace(/left|right|bottom|top/g,function(t){return hM[t]})}var pM={start:"end",end:"start"};function F0(e){return e.replace(/start|end/g,function(t){return pM[t]})}function wm(e){var t=Rr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Sm(e){return Qo(pa(e)).left+wm(e).scrollLeft}function mM(e){var t=Rr(e),n=pa(e),r=t.visualViewport,i=n.clientWidth,l=n.clientHeight,m=0,o=0;return r&&(i=r.width,l=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(m=r.offsetLeft,o=r.offsetTop)),{width:i,height:l,x:m+Sm(e),y:o}}function gM(e){var t,n=pa(e),r=wm(e),i=(t=e.ownerDocument)==null?void 0:t.body,l=ja(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),m=ja(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+Sm(e),a=-r.scrollTop;return Ci(i||n).direction==="rtl"&&(o+=ja(n.clientWidth,i?i.clientWidth:0)-l),{width:l,height:m,x:o,y:a}}function Cm(e){var t=Ci(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function o2(e){return["html","body","#document"].indexOf(Zr(e))>=0?e.ownerDocument.body:hr(e)&&Cm(e)?e:o2(Of(e))}function Js(e,t){var n;t===void 0&&(t=[]);var r=o2(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),l=Rr(r),m=i?[l].concat(l.visualViewport||[],Cm(r)?r:[]):r,o=t.concat(m);return i?o:o.concat(Js(Of(m)))}function kh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function vM(e){var t=Qo(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 B0(e,t){return t===Jw?kh(mM(e)):Zo(t)?vM(t):kh(gM(pa(e)))}function yM(e){var t=Js(Of(e)),n=["absolute","fixed"].indexOf(Ci(e).position)>=0,r=n&&hr(e)?iu(e):e;return Zo(r)?t.filter(function(i){return Zo(i)&&e2(i,r)&&Zr(i)!=="body"}):[]}function bM(e,t,n){var r=t==="clippingParents"?yM(e):[].concat(t),i=[].concat(r,[n]),l=i[0],m=i.reduce(function(o,a){var c=B0(e,a);return o.top=ja(c.top,o.top),o.right=Vc(c.right,o.right),o.bottom=Vc(c.bottom,o.bottom),o.left=ja(c.left,o.left),o},B0(e,l));return m.width=m.right-m.left,m.height=m.bottom-m.top,m.x=m.left,m.y=m.top,m}function s2(e){var t=e.reference,n=e.element,r=e.placement,i=r?Wr(r):null,l=r?es(r):null,m=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,a;switch(i){case Vn:a={x:m,y:t.y-n.height};break;case mr:a={x:m,y:t.y+t.height};break;case gr:a={x:t.x+t.width,y:o};break;case Un:a={x:t.x-n.width,y:o};break;default:a={x:t.x,y:t.y}}var c=i?_m(i):null;if(c!=null){var d=c==="y"?"height":"width";switch(l){case qo:a[c]=a[c]-(t[d]/2-n[d]/2);break;case Tl:a[c]=a[c]+(t[d]/2-n[d]/2);break}}return a}function kl(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,l=n.boundary,m=l===void 0?V8:l,o=n.rootBoundary,a=o===void 0?Jw:o,c=n.elementContext,d=c===void 0?Os:c,u=n.altBoundary,f=u===void 0?!1:u,s=n.padding,h=s===void 0?0:s,g=n2(typeof h!="number"?h:r2(h,ru)),p=d===Os?U8:Os,v=e.rects.popper,y=e.elements[f?p:d],b=bM(Zo(y)?y:y.contextElement||pa(e.elements.popper),m,a),w=Qo(e.elements.reference),S=s2({reference:w,element:v,strategy:"absolute",placement:i}),C=kh(Object.assign({},v,S)),T=d===Os?C:w,k={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},A=e.modifiersData.offset;if(d===Os&&A){var P=A[i];Object.keys(k).forEach(function(z){var I=[gr,mr].indexOf(z)>=0?1:-1,$=[Vn,mr].indexOf(z)>=0?"y":"x";k[z]+=P[$]*I})}return k}function _M(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,l=n.rootBoundary,m=n.padding,o=n.flipVariations,a=n.allowedAutoPlacements,c=a===void 0?ds:a,d=es(r),u=d?o?L0:L0.filter(function(h){return es(h)===d}):ru,f=u.filter(function(h){return c.indexOf(h)>=0});f.length===0&&(f=u);var s=f.reduce(function(h,g){return h[g]=kl(e,{placement:g,boundary:i,rootBoundary:l,padding:m})[Wr(g)],h},{});return Object.keys(s).sort(function(h,g){return s[h]-s[g]})}function wM(e){if(Wr(e)===vm)return[];var t=sc(e);return[F0(e),t,F0(t)]}function SM(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,l=i===void 0?!0:i,m=n.altAxis,o=m===void 0?!0:m,a=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,f=n.altBoundary,s=n.flipVariations,h=s===void 0?!0:s,g=n.allowedAutoPlacements,p=t.options.placement,v=Wr(p),y=v===p,b=a||(y||!h?[sc(p)]:wM(p)),w=[p].concat(b).reduce(function(D,B){return D.concat(Wr(B)===vm?_M(t,{placement:B,boundary:d,rootBoundary:u,padding:c,flipVariations:h,allowedAutoPlacements:g}):B)},[]),S=t.rects.reference,C=t.rects.popper,T=new Map,k=!0,A=w[0],P=0;P<w.length;P++){var z=w[P],I=Wr(z),$=es(z)===qo,O=[Vn,mr].indexOf(I)>=0,Y=O?"width":"height",ae=kl(t,{placement:z,boundary:d,rootBoundary:u,altBoundary:f,padding:c}),q=O?$?gr:Un:$?mr:Vn;S[Y]>C[Y]&&(q=sc(q));var J=sc(q),E=[];if(l&&E.push(ae[I]<=0),o&&E.push(ae[q]<=0,ae[J]<=0),E.every(function(D){return D})){A=z,k=!1;break}T.set(z,E)}if(k)for(var V=h?3:1,M=function(D){var B=w.find(function(Z){var H=T.get(Z);if(H)return H.slice(0,D).every(function(Q){return Q})});if(B)return A=B,"break"},R=V;R>0;R--){var W=M(R);if(W==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}var CM={name:"flip",enabled:!0,phase:"main",fn:SM,requiresIfExists:["offset"],data:{_skip:!1}};function $0(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 N0(e){return[Vn,gr,mr,Un].some(function(t){return e[t]>=0})}function xM(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,l=t.modifiersData.preventOverflow,m=kl(t,{elementContext:"reference"}),o=kl(t,{altBoundary:!0}),a=$0(m,r),c=$0(o,i,l),d=N0(a),u=N0(c);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}var TM={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:xM};function kM(e,t,n){var r=Wr(e),i=[Un,Vn].indexOf(r)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,m=l[0],o=l[1];return m=m||0,o=(o||0)*i,[Un,gr].indexOf(r)>=0?{x:o,y:m}:{x:m,y:o}}function EM(e){var t=e.state,n=e.options,r=e.name,i=n.offset,l=i===void 0?[0,0]:i,m=ds.reduce(function(d,u){return d[u]=kM(u,t.rects,l),d},{}),o=m[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]=m}var OM={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:EM};function AM(e){var t=e.state,n=e.name;t.modifiersData[n]=s2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var l2={name:"popperOffsets",enabled:!0,phase:"read",fn:AM,data:{}};function PM(e){return e==="x"?"y":"x"}function IM(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,l=i===void 0?!0:i,m=n.altAxis,o=m===void 0?!1:m,a=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,f=n.tether,s=f===void 0?!0:f,h=n.tetherOffset,g=h===void 0?0:h,p=kl(t,{boundary:a,rootBoundary:c,padding:u,altBoundary:d}),v=Wr(t.placement),y=es(t.placement),b=!y,w=_m(v),S=PM(w),C=t.modifiersData.popperOffsets,T=t.rects.reference,k=t.rects.popper,A=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,P=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(C){if(l){var $,O=w==="y"?Vn:Un,Y=w==="y"?mr:gr,ae=w==="y"?"height":"width",q=C[w],J=q+p[O],E=q-p[Y],V=s?-k[ae]/2:0,M=y===qo?T[ae]:k[ae],R=y===qo?-k[ae]:-T[ae],W=t.elements.arrow,D=s&&W?bm(W):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:t2(),Z=B[O],H=B[Y],Q=Zs(0,T[ae],D[ae]),te=b?T[ae]/2-V-Q-Z-P.mainAxis:M-Q-Z-P.mainAxis,fe=b?-T[ae]/2+V+Q+H+P.mainAxis:R+Q+H+P.mainAxis,me=t.elements.arrow&&iu(t.elements.arrow),_e=me?w==="y"?me.clientTop||0:me.clientLeft||0:0,j=($=z==null?void 0:z[w])!=null?$:0,x=q+te-j-_e,U=q+fe-j,K=Zs(s?Vc(J,x):J,q,s?ja(E,U):E);C[w]=K,I[w]=K-q}if(o){var L,F=w==="x"?Vn:Un,X=w==="x"?mr:gr,de=C[S],le=S==="y"?"height":"width",G=de+p[F],pe=de-p[X],re=[Vn,Un].indexOf(v)!==-1,he=(L=z==null?void 0:z[S])!=null?L:0,Se=re?G:de-T[le]-k[le]-he+P.altAxis,xe=re?de+T[le]+k[le]-he-P.altAxis:pe,Oe=s&&re?iM(Se,de,xe):Zs(s?Se:G,de,s?xe:pe);C[S]=Oe,I[S]=Oe-de}t.modifiersData[r]=I}}var MM={name:"preventOverflow",enabled:!0,phase:"main",fn:IM,requiresIfExists:["offset"]};function LM(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function RM(e){return e===Rr(e)||!hr(e)?wm(e):LM(e)}function DM(e){var t=e.getBoundingClientRect(),n=Jo(t.width)/e.offsetWidth||1,r=Jo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function FM(e,t,n){n===void 0&&(n=!1);var r=hr(t),i=hr(t)&&DM(t),l=pa(t),m=Qo(e,i),o={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((Zr(t)!=="body"||Cm(l))&&(o=RM(t)),hr(t)?(a=Qo(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):l&&(a.x=Sm(l))),{x:m.left+o.scrollLeft-a.x,y:m.top+o.scrollTop-a.y,width:m.width,height:m.height}}function BM(e){var t=new Map,n=new Set,r=[];e.forEach(function(l){t.set(l.name,l)});function i(l){n.add(l.name);var m=[].concat(l.requires||[],l.requiresIfExists||[]);m.forEach(function(o){if(!n.has(o)){var a=t.get(o);a&&i(a)}}),r.push(l)}return e.forEach(function(l){n.has(l.name)||i(l)}),r}function $M(e){var t=BM(e);return Q8.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function NM(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function zM(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 z0={placement:"bottom",modifiers:[],strategy:"absolute"};function j0(){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 xm(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,l=i===void 0?z0:i;return function(m,o,a){a===void 0&&(a=l);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},z0,l),modifiersData:{},elements:{reference:m,popper:o},attributes:{},styles:{}},d=[],u=!1,f={state:c,setOptions:function(g){var p=typeof g=="function"?g(c.options):g;h(),c.options=Object.assign({},l,c.options,p),c.scrollParents={reference:Zo(m)?Js(m):m.contextElement?Js(m.contextElement):[],popper:Js(o)};var v=$M(zM([].concat(r,c.options.modifiers)));return c.orderedModifiers=v.filter(function(y){return y.enabled}),s(),f.update()},forceUpdate:function(){if(!u){var g=c.elements,p=g.reference,v=g.popper;if(j0(p,v)){c.rects={reference:FM(p,iu(v),c.options.strategy==="fixed"),popper:bm(v)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(k){return c.modifiersData[k.name]=Object.assign({},k.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],w=b.fn,S=b.options,C=S===void 0?{}:S,T=b.name;typeof w=="function"&&(c=w({state:c,options:C,name:T,instance:f})||c)}}}},update:NM(function(){return new Promise(function(g){f.forceUpdate(),g(c)})}),destroy:function(){h(),u=!0}};if(!j0(m,o))return f;f.setOptions(a).then(function(g){!u&&a.onFirstUpdate&&a.onFirstUpdate(g)});function s(){c.orderedModifiers.forEach(function(g){var p=g.name,v=g.options,y=v===void 0?{}:v,b=g.effect;if(typeof b=="function"){var w=b({state:c,name:p,instance:f,options:y}),S=function(){};d.push(w||S)}})}function h(){d.forEach(function(g){return g()}),d=[]}return f}}xm();var jM=[a2,l2,i2,Qw];xm({defaultModifiers:jM});var VM=[a2,l2,i2,Qw,OM,CM,MM,lM,TM],UM=xm({defaultModifiers:VM});const u2=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},V0=(e,t)=>{for(const n of e)if(!HM(n,t))return n},HM=(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},WM=e=>{const t=u2(e),n=V0(t,e),r=V0(t.reverse(),e);return[n,r]},GM=e=>e instanceof HTMLInputElement&&"select"in e,$i=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&GM(e)&&t&&e.select()}};function U0(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const YM=()=>{let e=[];return{push:r=>{const i=e[0];i&&r!==i&&i.pause(),e=U0(e,r),e.unshift(r)},remove:r=>{var i,l;e=U0(e,r),(l=(i=e[0])==null?void 0:i.resume)==null||l.call(i)}}},KM=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if($i(r,t),document.activeElement!==n)return},H0=YM(),ud="focus-trap.focus-after-trapped",cd="focus-trap.focus-after-released",W0={cancelable:!0,bubbles:!1},G0="focusAfterTrapped",Y0="focusAfterReleased",c2=Symbol("elFocusTrap"),XM=be({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[G0,Y0,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=ie();let r,i;Y6(s=>{e.trapped&&!l.paused&&t("release-requested",s)});const l={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},m=s=>{if(!e.loop&&!e.trapped||l.paused)return;const{key:h,altKey:g,ctrlKey:p,metaKey:v,currentTarget:y,shiftKey:b}=s,{loop:w}=e,S=h===Et.tab&&!g&&!p&&!v,C=document.activeElement;if(S&&C){const T=y,[k,A]=WM(T);k&&A?!b&&C===A?(s.preventDefault(),w&&$i(k,!0),t("focusout-prevented")):b&&[k,T].includes(C)&&(s.preventDefault(),w&&$i(A,!0),t("focusout-prevented")):C===T&&(s.preventDefault(),t("focusout-prevented"))}};gt(c2,{focusTrapRef:n,onKeydown:m}),Te(()=>e.focusTrapEl,s=>{s&&(n.value=s)},{immediate:!0}),Te([n],([s],[h])=>{s&&(s.addEventListener("keydown",m),s.addEventListener("focusin",c),s.addEventListener("focusout",d)),h&&(h.removeEventListener("keydown",m),h.removeEventListener("focusin",c),h.removeEventListener("focusout",d))});const o=s=>{t(G0,s)},a=s=>t(Y0,s),c=s=>{const h=_(n);if(!h)return;const g=s.target,p=g&&h.contains(g);p&&t("focusin",s),!l.paused&&e.trapped&&(p?i=g:$i(i,!0))},d=s=>{const h=_(n);if(!(l.paused||!h))if(e.trapped){const g=s.relatedTarget;!Hr(g)&&!h.contains(g)&&setTimeout(()=>{!l.paused&&e.trapped&&$i(i,!0)},0)}else{const g=s.target;g&&h.contains(g)||t("focusout",s)}};async function u(){await Ge();const s=_(n);if(s){H0.push(l);const h=document.activeElement;if(r=h,!s.contains(h)){const p=new Event(ud,W0);s.addEventListener(ud,o),s.dispatchEvent(p),p.defaultPrevented||Ge(()=>{let v=e.focusStartEl;Ke(v)||($i(v),document.activeElement!==v&&(v="first")),v==="first"&&KM(u2(s),!0),(document.activeElement===h||v==="container")&&$i(s)})}}}function f(){const s=_(n);if(s){s.removeEventListener(ud,o);const h=new Event(cd,W0);s.addEventListener(cd,a),s.dispatchEvent(h),h.defaultPrevented||$i(r!=null?r:document.body,!0),s.removeEventListener(cd,o),H0.remove(l)}}return tt(()=>{e.trapped&&u(),Te(()=>e.trapped,s=>{s?u():f()})}),Jt(()=>{e.trapped&&f()}),{onKeydown:m}}});function qM(e,t,n,r,i,l){return ke(e.$slots,"default",{handleKeydown:e.onKeydown})}var Tm=Re(XM,[["render",qM],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const ZM=["fixed","absolute"],JM=Be({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Ae(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:ds,default:"bottom"},popperOptions:{type:Ae(Object),default:()=>({})},strategy:{type:String,values:ZM,default:"absolute"}}),f2=Be({...JM,id:String,style:{type:Ae([String,Array,Object])},className:{type:Ae([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Ae([String,Array,Object])},popperStyle:{type:Ae([String,Array,Object])},referenceEl:{type:Ae(Object)},triggerTargetEl:{type:Ae(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),QM=["mouseenter","mouseleave","focus","blur","close"],K0=(e,t)=>{const{placement:n,strategy:r,popperOptions:i}=e,l={placement:n,strategy:r,...i,modifiers:tL(e)};return nL(l,t),rL(l,i==null?void 0:i.modifiers),l},eL=e=>{if(!!dt)return xr(e)};function tL(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,adaptive:n}}]}function nL(e,{arrowEl:t,arrowOffset:n}){e.modifiers.push({name:"arrow",options:{element:t,padding:n!=null?n:5}})}function rL(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const iL={name:"ElPopperContent"},aL=be({...iL,props:f2,emits:QM,setup(e,{expose:t,emit:n}){const r=e,{popperInstanceRef:i,contentRef:l,triggerRef:m,role:o}=Xe(mm,void 0),a=Xe(Xa,void 0),{nextZIndex:c}=nu(),d=Pe("popper"),u=ie(),f=ie("first"),s=ie(),h=ie();gt(zw,{arrowRef:s,arrowOffset:h}),a&&(a.addInputId||a.removeInputId)&&gt(Xa,{...a,addInputId:at,removeInputId:at});const g=ie(r.zIndex||c()),p=ie(!1);let v;const y=ee(()=>eL(r.referenceEl)||_(m)),b=ee(()=>[{zIndex:_(g)},r.popperStyle]),w=ee(()=>[d.b(),d.is("pure",r.pure),d.is(r.effect),r.popperClass]),S=ee(()=>o&&o.value==="dialog"?"false":void 0),C=({referenceEl:O,popperContentEl:Y,arrowEl:ae})=>{const q=K0(r,{arrowEl:ae,arrowOffset:_(h)});return UM(O,Y,q)},T=(O=!0)=>{var Y;(Y=_(i))==null||Y.update(),O&&(g.value=r.zIndex||c())},k=()=>{var O,Y;const ae={name:"eventListeners",enabled:r.visible};(Y=(O=_(i))==null?void 0:O.setOptions)==null||Y.call(O,q=>({...q,modifiers:[...q.modifiers||[],ae]})),T(!1),r.visible&&r.focusOnShow?p.value=!0:r.visible===!1&&(p.value=!1)},A=()=>{n("focus")},P=()=>{f.value="first",n("blur")},z=O=>{var Y;r.visible&&!p.value&&(O.target&&(f.value=O.target),p.value=!0,O.relatedTarget&&((Y=O.relatedTarget)==null||Y.focus()))},I=()=>{r.trapping||(p.value=!1)},$=()=>{p.value=!1,n("close")};return tt(()=>{let O;Te(y,Y=>{var ae;O==null||O();const q=_(i);if((ae=q==null?void 0:q.destroy)==null||ae.call(q),Y){const J=_(u);l.value=J,i.value=C({referenceEl:Y,popperContentEl:J,arrowEl:_(s)}),O=Te(()=>Y.getBoundingClientRect(),()=>T(),{immediate:!0})}else i.value=void 0},{immediate:!0}),Te(()=>r.triggerTargetEl,(Y,ae)=>{v==null||v(),v=void 0;const q=_(Y||u.value),J=_(ae||u.value);if(Ya(q)){const{ariaLabel:E,id:V}=pr(r);v=Te([o,E,S,V],M=>{["role","aria-label","aria-modal","id"].forEach((R,W)=>{Hr(M[W])?q.removeAttribute(R):q.setAttribute(R,M[W])})},{immediate:!0})}J!==q&&Ya(J)&&["role","aria-label","aria-modal","id"].forEach(E=>{J.removeAttribute(E)})},{immediate:!0}),Te(()=>r.visible,k,{immediate:!0}),Te(()=>K0(r,{arrowEl:_(s),arrowOffset:_(h)}),Y=>{var ae;return(ae=i.value)==null?void 0:ae.setOptions(Y)})}),Jt(()=>{v==null||v(),v=void 0}),t({popperContentRef:u,popperInstanceRef:i,updatePopper:T,contentStyle:b}),(O,Y)=>(N(),se("div",{ref_key:"popperContentRef",ref:u,style:ze(_(b)),class:ce(_(w)),tabindex:"-1",onMouseenter:Y[0]||(Y[0]=ae=>O.$emit("mouseenter",ae)),onMouseleave:Y[1]||(Y[1]=ae=>O.$emit("mouseleave",ae))},[oe(_(Tm),{trapped:p.value,"trap-on-focus-in":!0,"focus-trap-el":u.value,"focus-start-el":f.value,onFocusAfterTrapped:A,onFocusAfterReleased:P,onFocusin:z,onFocusoutPrevented:I,onReleaseRequested:$},{default:ue(()=>[ke(O.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}});var oL=Re(aL,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const sL=_t(L8),lL=Pe("tooltip"),ur=Be({...Z6,...f2,appendTo:{type:Ae([String,Object]),default:Ww},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Ae(Boolean),default:null},transition:{type:String,default:`${lL.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}}),El=Be({...Zw,disabled:Boolean,trigger:{type:Ae([String,Array]),default:"hover"},triggerKeys:{type:Ae(Array),default:()=>[Et.enter,Et.space]}}),uL=Be({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:!0}}),km=Symbol("elTooltip"),cL=be({name:"ElTooltipContent",components:{ElPopperContent:oL},inheritAttrs:!1,props:ur,setup(e){const t=ie(null),n=ie(!1),r=ie(!1),i=ie(!1),l=ie(!1),{controlled:m,id:o,open:a,trigger:c,onClose:d,onOpen:u,onShow:f,onHide:s,onBeforeShow:h,onBeforeHide:g}=Xe(km,void 0),p=ee(()=>e.persistent);Jt(()=>{l.value=!0});const v=ee(()=>_(p)?!0:_(a)),y=ee(()=>e.disabled?!1:_(a)),b=ee(()=>{var O;return(O=e.style)!=null?O:{}}),w=ee(()=>!_(a)),S=()=>{s()},C=()=>{if(_(m))return!0},T=si(C,()=>{e.enterable&&_(c)==="hover"&&u()}),k=si(C,()=>{_(c)==="hover"&&d()}),A=()=>{var O,Y;(Y=(O=t.value)==null?void 0:O.updatePopper)==null||Y.call(O),h==null||h()},P=()=>{g==null||g()},z=()=>{f(),$=M5(ee(()=>{var O;return(O=t.value)==null?void 0:O.popperContentRef}),()=>{if(_(m))return;_(c)!=="hover"&&d()})},I=()=>{e.virtualTriggering||d()};let $;return Te(()=>_(a),O=>{O||$==null||$()},{flush:"post"}),{ariaHidden:w,entering:r,leaving:i,id:o,intermediateOpen:n,contentStyle:b,contentRef:t,destroyed:l,shouldRender:v,shouldShow:y,onClose:d,open:a,onAfterShow:z,onBeforeEnter:A,onBeforeLeave:P,onContentEnter:T,onContentLeave:k,onTransitionLeave:S,onBlur:I}}});function fL(e,t,n,r,i,l){const m=yt("el-popper-content");return N(),ve(Bp,{disabled:!e.teleported,to:e.appendTo},[oe(Hn,{name:e.transition,onAfterLeave:e.onTransitionLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterShow,onBeforeLeave:e.onBeforeLeave},{default:ue(()=>[e.shouldRender?xt((N(),ve(m,zn({key:0,id:e.id,ref:"contentRef"},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":e.ariaHidden,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,e.contentStyle],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:e.shouldShow,"z-index":e.zIndex,onMouseenter:e.onContentEnter,onMouseleave:e.onContentLeave,onBlur:e.onBlur,onClose:e.onClose}),{default:ue(()=>[ge(" Workaround bug #6378 "),e.destroyed?ge("v-if",!0):ke(e.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onBlur","onClose"])),[[Gt,e.shouldShow]]):ge("v-if",!0)]),_:3},8,["name","onAfterLeave","onBeforeEnter","onAfterEnter","onBeforeLeave"])],8,["disabled","to"])}var dL=Re(cL,[["render",fL],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const hL=(e,t)=>Ue(e)?e.includes(t):e===t,bo=(e,t,n)=>r=>{hL(_(e),t)&&n(r)},pL=be({name:"ElTooltipTrigger",components:{ElPopperTrigger:j8},props:El,setup(e){const t=Pe("tooltip"),{controlled:n,id:r,open:i,onOpen:l,onClose:m,onToggle:o}=Xe(km,void 0),a=ie(null),c=()=>{if(_(n)||e.disabled)return!0},d=rr(e,"trigger"),u=si(c,bo(d,"hover",l)),f=si(c,bo(d,"hover",m)),s=si(c,bo(d,"click",y=>{y.button===0&&o(y)})),h=si(c,bo(d,"focus",l)),g=si(c,bo(d,"focus",m)),p=si(c,bo(d,"contextmenu",y=>{y.preventDefault(),o(y)})),v=si(c,y=>{const{code:b}=y;e.triggerKeys.includes(b)&&(y.preventDefault(),o(y))});return{onBlur:g,onContextMenu:p,onFocus:h,onMouseenter:u,onMouseleave:f,onClick:s,onKeydown:v,open:i,id:r,triggerRef:a,ns:t}}});function mL(e,t,n,r,i,l){const m=yt("el-popper-trigger");return N(),ve(m,{id:e.id,"virtual-ref":e.virtualRef,open:e.open,"virtual-triggering":e.virtualTriggering,class:ce(e.ns.e("trigger")),onBlur:e.onBlur,onClick:e.onClick,onContextmenu:e.onContextMenu,onFocus:e.onFocus,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave,onKeydown:e.onKeydown},{default:ue(()=>[ke(e.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"])}var gL=Re(pL,[["render",mL],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const{useModelToggleProps:vL,useModelToggle:yL,useModelToggleEmits:bL}=H6("visible"),_L=be({name:"ElTooltip",components:{ElPopper:sL,ElPopperArrow:F8,ElTooltipContent:dL,ElTooltipTrigger:gL},props:{...Kw,...vL,...ur,...El,...Xw,...uL},emits:[...bL,"before-show","before-hide","show","hide","open","close"],setup(e,{emit:t}){q6();const n=ee(()=>(Tr(e.openDelay),e.openDelay||e.showAfter)),r=ee(()=>(Tr(e.visibleArrow),tr(e.visibleArrow)?e.visibleArrow:e.showArrow)),i=oa(),l=ie(null),m=ie(null),o=()=>{var v;const y=_(l);y&&((v=y.popperInstanceRef)==null||v.update())},a=ie(!1),c=ie(void 0),{show:d,hide:u,hasUpdateHandler:f}=yL({indicator:a,toggleReason:c}),{onOpen:s,onClose:h}=J6({showAfter:n,hideAfter:rr(e,"hideAfter"),open:d,close:u}),g=ee(()=>tr(e.visible)&&!f.value);gt(km,{controlled:g,id:i,open:as(a),trigger:rr(e,"trigger"),onOpen:v=>{s(v)},onClose:v=>{h(v)},onToggle:v=>{_(a)?h(v):s(v)},onShow:()=>{t("show",c.value)},onHide:()=>{t("hide",c.value)},onBeforeShow:()=>{t("before-show",c.value)},onBeforeHide:()=>{t("before-hide",c.value)},updatePopper:o}),Te(()=>e.disabled,v=>{v&&a.value&&(a.value=!1)});const p=()=>{var v,y;const b=(y=(v=m.value)==null?void 0:v.contentRef)==null?void 0:y.popperContentRef;return b&&b.contains(document.activeElement)};return k_(()=>a.value&&u()),{compatShowAfter:n,compatShowArrow:r,popperRef:l,contentRef:m,open:a,hide:u,isFocusInsideContent:p,updatePopper:o,onOpen:s,onClose:h}}}),wL=["innerHTML"],SL={key:1};function CL(e,t,n,r,i,l){const m=yt("el-tooltip-trigger"),o=yt("el-popper-arrow"),a=yt("el-tooltip-content"),c=yt("el-popper");return N(),ve(c,{ref:"popperRef",role:e.role},{default:ue(()=>[oe(m,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:ue(()=>[e.$slots.default?ke(e.$slots,"default",{key:0}):ge("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),oe(a,{ref:"contentRef","aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.compatShowAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:ue(()=>[ke(e.$slots,"content",{},()=>[e.rawContent?(N(),se("span",{key:0,innerHTML:e.content},null,8,wL)):(N(),se("span",SL,Ee(e.content),1))]),e.compatShowArrow?(N(),ve(o,{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):ge("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"])}var xL=Re(_L,[["render",CL],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const fn=_t(xL),TL=Be({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"}}),kL=["textContent"],EL={name:"ElBadge"},OL=be({...EL,props:TL,setup(e,{expose:t}){const n=e,r=Pe("badge"),i=ee(()=>n.isDot?"":lt(n.value)&&lt(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return t({content:i}),(l,m)=>(N(),se("div",{class:ce(_(r).b())},[ke(l.$slots,"default"),oe(Hn,{name:`${_(r).namespace.value}-zoom-in-center`,persisted:""},{default:ue(()=>[xt(ne("sup",{class:ce([_(r).e("content"),_(r).em("content",l.type),_(r).is("fixed",!!l.$slots.default),_(r).is("dot",l.isDot)]),textContent:Ee(_(i))},null,10,kL),[[Gt,!l.hidden&&(_(i)||l.isDot)]])]),_:1},8,["name"])],2))}});var AL=Re(OL,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const PL=_t(AL),IL=["default","primary","success","warning","info","danger","text",""],ML=["button","submit","reset"],Eh=Be({size:aa,disabled:Boolean,type:{type:String,values:IL,default:""},icon:{type:qt},nativeType:{type:String,values:ML,default:"button"},loading:Boolean,loadingIcon:{type:qt,default:()=>qp},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),LL={click:e=>e instanceof MouseEvent};function gn(e,t){RL(e)&&(e="100%");var n=DL(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 Ou(e){return Math.min(1,Math.max(0,e))}function RL(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function DL(e){return typeof e=="string"&&e.indexOf("%")!==-1}function d2(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Au(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ia(e){return e.length===1?"0"+e:String(e)}function FL(e,t,n){return{r:gn(e,255)*255,g:gn(t,255)*255,b:gn(n,255)*255}}function X0(e,t,n){e=gn(e,255),t=gn(t,255),n=gn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),l=0,m=0,o=(r+i)/2;if(r===i)m=0,l=0;else{var a=r-i;switch(m=o>.5?a/(2-r-i):a/(r+i),r){case e:l=(t-n)/a+(t<n?6:0);break;case t:l=(n-e)/a+2;break;case n:l=(e-t)/a+4;break}l/=6}return{h:l,s:m,l:o}}function fd(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 BL(e,t,n){var r,i,l;if(e=gn(e,360),t=gn(t,100),n=gn(n,100),t===0)i=n,l=n,r=n;else{var m=n<.5?n*(1+t):n+t-n*t,o=2*n-m;r=fd(o,m,e+1/3),i=fd(o,m,e),l=fd(o,m,e-1/3)}return{r:r*255,g:i*255,b:l*255}}function q0(e,t,n){e=gn(e,255),t=gn(t,255),n=gn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),l=0,m=r,o=r-i,a=r===0?0:o/r;if(r===i)l=0;else{switch(r){case e:l=(t-n)/o+(t<n?6:0);break;case t:l=(n-e)/o+2;break;case n:l=(e-t)/o+4;break}l/=6}return{h:l,s:a,v:m}}function $L(e,t,n){e=gn(e,360)*6,t=gn(t,100),n=gn(n,100);var r=Math.floor(e),i=e-r,l=n*(1-t),m=n*(1-i*t),o=n*(1-(1-i)*t),a=r%6,c=[n,m,l,l,o,n][a],d=[o,n,n,m,l,l][a],u=[l,l,o,n,n,m][a];return{r:c*255,g:d*255,b:u*255}}function Z0(e,t,n,r){var i=[Ia(Math.round(e).toString(16)),Ia(Math.round(t).toString(16)),Ia(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 NL(e,t,n,r,i){var l=[Ia(Math.round(e).toString(16)),Ia(Math.round(t).toString(16)),Ia(Math.round(n).toString(16)),Ia(zL(r))];return i&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))&&l[3].startsWith(l[3].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}function zL(e){return Math.round(parseFloat(e)*255).toString(16)}function J0(e){return Gn(e)/255}function Gn(e){return parseInt(e,16)}function jL(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Oh={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 VL(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,l=null,m=!1,o=!1;return typeof e=="string"&&(e=WL(e)),typeof e=="object"&&(ri(e.r)&&ri(e.g)&&ri(e.b)?(t=FL(e.r,e.g,e.b),m=!0,o=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ri(e.h)&&ri(e.s)&&ri(e.v)?(r=Au(e.s),i=Au(e.v),t=$L(e.h,r,i),m=!0,o="hsv"):ri(e.h)&&ri(e.s)&&ri(e.l)&&(r=Au(e.s),l=Au(e.l),t=BL(e.h,r,l),m=!0,o="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=d2(n),{ok:m,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 UL="[-\\+]?\\d+%?",HL="[-\\+]?\\d*\\.\\d+%?",Ki="(?:".concat(HL,")|(?:").concat(UL,")"),dd="[\\s|\\(]+(".concat(Ki,")[,|\\s]+(").concat(Ki,")[,|\\s]+(").concat(Ki,")\\s*\\)?"),hd="[\\s|\\(]+(".concat(Ki,")[,|\\s]+(").concat(Ki,")[,|\\s]+(").concat(Ki,")[,|\\s]+(").concat(Ki,")\\s*\\)?"),Sr={CSS_UNIT:new RegExp(Ki),rgb:new RegExp("rgb"+dd),rgba:new RegExp("rgba"+hd),hsl:new RegExp("hsl"+dd),hsla:new RegExp("hsla"+hd),hsv:new RegExp("hsv"+dd),hsva:new RegExp("hsva"+hd),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 WL(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Oh[e])e=Oh[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Sr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Sr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Sr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Sr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Sr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Sr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Sr.hex8.exec(e),n?{r:Gn(n[1]),g:Gn(n[2]),b:Gn(n[3]),a:J0(n[4]),format:t?"name":"hex8"}:(n=Sr.hex6.exec(e),n?{r:Gn(n[1]),g:Gn(n[2]),b:Gn(n[3]),format:t?"name":"hex"}:(n=Sr.hex4.exec(e),n?{r:Gn(n[1]+n[1]),g:Gn(n[2]+n[2]),b:Gn(n[3]+n[3]),a:J0(n[4]+n[4]),format:t?"name":"hex8"}:(n=Sr.hex3.exec(e),n?{r:Gn(n[1]+n[1]),g:Gn(n[2]+n[2]),b:Gn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function ri(e){return Boolean(Sr.CSS_UNIT.exec(String(e)))}var h2=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=jL(t)),this.originalInput=t;var i=VL(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,l=t.r/255,m=t.g/255,o=t.b/255;return l<=.03928?n=l/12.92:n=Math.pow((l+.055)/1.055,2.4),m<=.03928?r=m/12.92:r=Math.pow((m+.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=d2(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=q0(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=q0(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=X0(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=X0(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),Z0(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),NL(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(gn(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(gn(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="#"+Z0(this.r,this.g,this.b,!1),n=0,r=Object.entries(Oh);n<r.length;n++){var i=r[n],l=i[0],m=i[1];if(t===m)return l}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,l=!n&&i&&(t.startsWith("hex")||t==="name");return l?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=Ou(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=Ou(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=Ou(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=Ou(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(),l=n/100,m={r:(i.r-r.r)*l+r.r,g:(i.g-r.g)*l+r.g,b:(i.b-r.b)*l+r.b,a:(i.a-r.a)*l+r.a};return new e(m)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,l=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,l.push(new e(r));return l},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,l=n.v,m=[],o=1/t;t--;)m.push(new e({h:r,s:i,v:l})),l=(l+o)%1;return m},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],l=360/t,m=1;m<t;m++)i.push(new e({h:(r+m*l)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Ri(e,t=20){return e.mix("#141414",t).toString()}function GL(e){const t=so(),n=Pe("button");return ee(()=>{let r={};const i=e.color;if(i){const l=new h2(i),m=e.dark?l.tint(20).toString():Ri(l,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Ri(l,90):l.tint(90).toString(),"text-color":i,"border-color":e.dark?Ri(l,50):l.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":m,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":m}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?Ri(l,90):l.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Ri(l,50):l.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Ri(l,80):l.tint(80).toString());else{const o=e.dark?Ri(l,30):l.tint(30).toString(),a=l.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":i,"text-color":a,"border-color":i,"hover-bg-color":o,"hover-text-color":a,"hover-border-color":o,"active-bg-color":m,"active-border-color":m}),t.value){const c=e.dark?Ri(l,50):l.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=c,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=c}}}return r})}const YL=["aria-disabled","disabled","autofocus","type"],KL={name:"ElButton"},XL=be({...KL,props:Eh,emits:LL,setup(e,{expose:t,emit:n}){const r=e,i=os();xl({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},ee(()=>r.type==="text"));const l=Xe(Aw,void 0),m=Ai("button"),o=Pe("button"),{form:a}=ha(),c=br(ee(()=>l==null?void 0:l.size)),d=so(),u=ie(),f=ee(()=>r.type||(l==null?void 0:l.type)||""),s=ee(()=>{var v,y,b;return(b=(y=r.autoInsertSpace)!=null?y:(v=m.value)==null?void 0:v.autoInsertSpace)!=null?b:!1}),h=ee(()=>{var v;const y=(v=i.default)==null?void 0:v.call(i);if(s.value&&(y==null?void 0:y.length)===1){const b=y[0];if((b==null?void 0:b.type)===ss){const w=b.children;return/^\p{Unified_Ideograph}{2}$/u.test(w.trim())}}return!1}),g=GL(r),p=v=>{r.nativeType==="reset"&&(a==null||a.resetFields()),n("click",v)};return t({ref:u,size:c,type:f,disabled:d,shouldAddSpace:h}),(v,y)=>(N(),se("button",{ref_key:"_ref",ref:u,class:ce([_(o).b(),_(o).m(_(f)),_(o).m(_(c)),_(o).is("disabled",_(d)),_(o).is("loading",v.loading),_(o).is("plain",v.plain),_(o).is("round",v.round),_(o).is("circle",v.circle),_(o).is("text",v.text),_(o).is("link",v.link),_(o).is("has-bg",v.bg)]),"aria-disabled":_(d)||v.loading,disabled:_(d)||v.loading,autofocus:v.autofocus,type:v.nativeType,style:ze(_(g)),onClick:p},[v.loading?(N(),se($e,{key:0},[v.$slots.loading?ke(v.$slots,"loading",{key:0}):(N(),ve(_(De),{key:1,class:ce(_(o).is("loading"))},{default:ue(()=>[(N(),ve(Ct(v.loadingIcon)))]),_:1},8,["class"]))],64)):v.icon||v.$slots.icon?(N(),ve(_(De),{key:1},{default:ue(()=>[v.icon?(N(),ve(Ct(v.icon),{key:0})):ke(v.$slots,"icon",{key:1})]),_:3})):ge("v-if",!0),v.$slots.default?(N(),se("span",{key:2,class:ce({[_(o).em("text","expand")]:_(h)})},[ke(v.$slots,"default")],2)):ge("v-if",!0)],14,YL))}});var qL=Re(XL,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const ZL={size:Eh.size,type:Eh.type},JL={name:"ElButtonGroup"},QL=be({...JL,props:ZL,setup(e){const t=e;gt(Aw,Tt({size:rr(t,"size"),type:rr(t,"type")}));const n=Pe("button");return(r,i)=>(N(),se("div",{class:ce(`${_(n).b("group")}`)},[ke(r.$slots,"default")],2))}});var p2=Re(QL,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Ze=_t(qL,{ButtonGroup:p2});yr(p2);var Pu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function eR(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 Ni=new Map;let Q0;dt&&(document.addEventListener("mousedown",e=>Q0=e),document.addEventListener("mouseup",e=>{for(const t of Ni.values())for(const{documentHandler:n}of t)n(e,Q0)}));function ey(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Ya(t.arg)&&n.push(t.arg),function(r,i){const l=t.instance.popperRef,m=r.target,o=i==null?void 0:i.target,a=!t||!t.instance,c=!m||!o,d=e.contains(m)||e.contains(o),u=e===m,f=n.length&&n.some(h=>h==null?void 0:h.contains(m))||n.length&&n.includes(o),s=l&&(l.contains(m)||l.contains(o));a||c||d||u||f||s||t.value(r,i)}}const m2={beforeMount(e,t){Ni.has(e)||Ni.set(e,[]),Ni.get(e).push({documentHandler:ey(e,t),bindingFn:t.value})},updated(e,t){Ni.has(e)||Ni.set(e,[]);const n=Ni.get(e),r=n.findIndex(l=>l.bindingFn===t.oldValue),i={documentHandler:ey(e,t),bindingFn:t.value};r>=0?n.splice(r,1,i):n.push(i)},unmounted(e){Ni.delete(e)}},tR=100,nR=600,ty={beforeMount(e,t){let n=null,r=null;const i=()=>t.value&&t.value(),l=()=>{r&&(clearTimeout(r),r=null),n&&(clearInterval(n),n=null)};e.addEventListener("mousedown",m=>{m.button===0&&(i(),document.addEventListener("mouseup",l,{once:!0}),l(),r=setTimeout(()=>{n=setInterval(()=>{i()},tR)},nR))})}},Ah="_trap-focus-children",Ma=[],ny=e=>{if(Ma.length===0)return;const t=Ma[Ma.length-1][Ah];if(t.length>0&&e.code===Et.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())}},rR={beforeMount(e){e[Ah]=i0(e),Ma.push(e),Ma.length<=1&&document.addEventListener("keydown",ny)},updated(e){Ge(()=>{e[Ah]=i0(e)})},unmounted(){Ma.shift(),Ma.length===0&&document.removeEventListener("keydown",ny)}},iR=Be({header:{type:String,default:""},bodyStyle:{type:Ae([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),aR={name:"ElCard"},oR=be({...aR,props:iR,setup(e){const t=Pe("card");return(n,r)=>(N(),se("div",{class:ce([_(t).b(),_(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(N(),se("div",{key:0,class:ce(_(t).e("header"))},[ke(n.$slots,"header",{},()=>[Ne(Ee(n.header),1)])],2)):ge("v-if",!0),ne("div",{class:ce(_(t).e("body")),style:ze(n.bodyStyle)},[ke(n.$slots,"default")],6)],2))}});var sR=Re(oR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const lR=_t(sR),uR=Be({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:""},indicator:{type:Boolean,default:!0},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),cR={change:(e,t)=>[e,t].every(lt)},fR=["onMouseenter","onMouseleave"],dR=["onMouseenter","onClick"],hR={key:0},pR={name:"ElCarousel"},mR=be({...pR,props:uR,emits:cR,setup(e,{expose:t,emit:n}){const r=e,i=Pe("carousel"),l=300,m=ie(-1),o=ie(null),a=ie(!1),c=ie(),d=ie([]),u=ee(()=>r.arrow!=="never"&&!_(p)),f=ee(()=>d.value.some(M=>M.props.label.toString().length>0)),s=ee(()=>{const M=[i.b(),i.m(r.direction)];return _(g)&&M.push(i.m("card")),M}),h=ee(()=>{const M=[i.e("indicators"),i.em("indicators",r.direction)];return f.value&&M.push(i.em("indicators","labels")),(r.indicatorPosition==="outside"||_(g))&&M.push(i.em("indicators","outside")),M}),g=ee(()=>r.type==="card"),p=ee(()=>r.direction==="vertical"),v=qs(M=>{C(M)},l,{trailing:!0}),y=qs(M=>{ae(M)},l);function b(){o.value&&(clearInterval(o.value),o.value=null)}function w(){r.interval<=0||!r.autoplay||o.value||(o.value=setInterval(()=>S(),r.interval))}const S=()=>{m.value<d.value.length-1?m.value=m.value+1:r.loop&&(m.value=0)};function C(M){if(Ke(M)){const D=d.value.filter(B=>B.props.name===M);D.length>0&&(M=d.value.indexOf(D[0]))}if(M=Number(M),Number.isNaN(M)||M!==Math.floor(M))return;const R=d.value.length,W=m.value;M<0?m.value=r.loop?R-1:0:M>=R?m.value=r.loop?0:R-1:m.value=M,W===m.value&&T(W),E()}function T(M){d.value.forEach((R,W)=>{R.translateItem(W,m.value,M)})}function k(M){d.value.push(M)}function A(M){const R=d.value.findIndex(W=>W.uid===M);R!==-1&&(d.value.splice(R,1),m.value===R&&J())}function P(M,R){var W,D,B,Z;const H=_(d),Q=H.length;if(Q===0||!M.states.inStage)return!1;const te=R+1,fe=R-1,me=Q-1,_e=H[me].states.active,j=H[0].states.active,x=(D=(W=H[te])==null?void 0:W.states)==null?void 0:D.active,U=(Z=(B=H[fe])==null?void 0:B.states)==null?void 0:Z.active;return R===me&&j||x?"left":R===0&&_e||U?"right":!1}function z(){a.value=!0,r.pauseOnHover&&b()}function I(){a.value=!1,w()}function $(M){_(p)||d.value.forEach((R,W)=>{M===P(R,W)&&(R.states.hover=!0)})}function O(){_(p)||d.value.forEach(M=>{M.states.hover=!1})}function Y(M){m.value=M}function ae(M){r.trigger==="hover"&&M!==m.value&&(m.value=M)}function q(){C(m.value-1)}function J(){C(m.value+1)}function E(){b(),w()}Te(()=>m.value,(M,R)=>{T(R),R>-1&&n("change",M,R)}),Te(()=>r.autoplay,M=>{M?w():b()}),Te(()=>r.loop,()=>{C(m.value)}),Te(()=>r.interval,()=>{E()});const V=mn();return tt(async()=>{await Ge(),V.value=Jr(c.value,()=>{T()}),r.initialIndex<d.value.length&&r.initialIndex>=0&&(m.value=r.initialIndex),w()}),Jt(()=>{b(),c.value&&V.value&&V.value.stop()}),gt(Pw,{root:c,isCardType:g,isVertical:p,items:d,loop:r.loop,addItem:k,removeItem:A,setActiveItem:C}),t({setActiveItem:C,prev:q,next:J}),(M,R)=>(N(),se("div",{ref_key:"root",ref:c,class:ce(_(s)),onMouseenter:Qe(z,["stop"]),onMouseleave:Qe(I,["stop"])},[ne("div",{class:ce(_(i).e("container")),style:ze({height:M.height})},[_(u)?(N(),ve(Hn,{key:0,name:"carousel-arrow-left",persisted:""},{default:ue(()=>[xt(ne("button",{type:"button",class:ce([_(i).e("arrow"),_(i).em("arrow","left")]),onMouseenter:R[0]||(R[0]=W=>$("left")),onMouseleave:O,onClick:R[1]||(R[1]=Qe(W=>_(v)(m.value-1),["stop"]))},[oe(_(De),null,{default:ue(()=>[oe(_(vf))]),_:1})],34),[[Gt,(M.arrow==="always"||a.value)&&(r.loop||m.value>0)]])]),_:1})):ge("v-if",!0),_(u)?(N(),ve(Hn,{key:1,name:"carousel-arrow-right",persisted:""},{default:ue(()=>[xt(ne("button",{type:"button",class:ce([_(i).e("arrow"),_(i).em("arrow","right")]),onMouseenter:R[2]||(R[2]=W=>$("right")),onMouseleave:O,onClick:R[3]||(R[3]=Qe(W=>_(v)(m.value+1),["stop"]))},[oe(_(De),null,{default:ue(()=>[oe(_(us))]),_:1})],34),[[Gt,(M.arrow==="always"||a.value)&&(r.loop||m.value<d.value.length-1)]])]),_:1})):ge("v-if",!0),ke(M.$slots,"default")],6),M.indicatorPosition!=="none"?(N(),se("ul",{key:0,class:ce(_(h))},[(N(!0),se($e,null,$t(d.value,(W,D)=>(N(),se("li",{key:D,class:ce([_(i).e("indicator"),_(i).em("indicator",M.direction),_(i).is("active",D===m.value)]),onMouseenter:B=>_(y)(D),onClick:Qe(B=>Y(D),["stop"])},[ne("button",{class:ce(_(i).e("button"))},[_(f)?(N(),se("span",hR,Ee(W.props.label),1)):ge("v-if",!0)],2)],42,dR))),128))],2)):ge("v-if",!0)],42,fR))}});var gR=Re(mR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const vR=Be({name:{type:String,default:""},label:{type:[String,Number],default:""}}),yR={name:"ElCarouselItem"},bR=be({...yR,props:vR,setup(e){const t=e,n=Pe("carousel"),r=Xe(Pw),i=kt(),l=.83,m=ie(!1),o=ie(0),a=ie(1),c=ie(!1),d=ie(!1),u=ie(!1),f=ie(!1),{isCardType:s,isVertical:h}=r,g=ee(()=>{const C=`${`translate${_(h)?"Y":"X"}`}(${_(o)}px)`,T=`scale(${_(a)})`;return{transform:[C,T].join(" ")}});function p(S,C,T){const k=T-1,A=C-1,P=C+1,z=T/2;return C===0&&S===k?-1:C===k&&S===0?T:S<A&&C-S>=z?T+1:S>P&&S-C>=z?-2:S}function v(S,C){var T;const k=((T=r.root.value)==null?void 0:T.offsetWidth)||0;return u.value?k*((2-l)*(S-C)+1)/4:S<C?-(1+l)*k/4:(3+l)*k/4}function y(S,C,T){const k=r.root.value;return k?((T?k.offsetHeight:k.offsetWidth)||0)*(S-C):0}const b=(S,C,T)=>{var k;const A=_(s),P=(k=r.items.value.length)!=null?k:Number.NaN,z=S===C;!A&&!Tr(T)&&(f.value=z||S===T),!z&&P>2&&r.loop&&(S=p(S,C,P));const I=_(h);c.value=z,A?(u.value=Math.round(Math.abs(S-C))<=1,o.value=v(S,C),a.value=_(c)?1:l):o.value=y(S,C,I),d.value=!0};function w(){if(r&&_(s)){const S=r.items.value.findIndex(({uid:C})=>C===i.uid);r.setActiveItem(S)}}return tt(()=>{r.addItem({props:t,states:Tt({hover:m,translate:o,scale:a,active:c,ready:d,inStage:u,animating:f}),uid:i.uid,translateItem:b})}),da(()=>{r.removeItem(i.uid)}),(S,C)=>xt((N(),se("div",{class:ce([_(n).e("item"),_(n).is("active",c.value),_(n).is("in-stage",u.value),_(n).is("hover",m.value),_(n).is("animating",f.value),{[_(n).em("item","card")]:_(s)}]),style:ze(_(g)),onClick:w},[_(s)?xt((N(),se("div",{key:0,class:ce(_(n).e("mask"))},null,2)),[[Gt,!c.value]]):ge("v-if",!0),ke(S.$slots,"default")],6)),[[Gt,d.value]])}});var g2=Re(bR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const _R=_t(gR,{CarouselItem:g2}),wR=yr(g2),v2=Be({size:aa,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),SR=Be({...v2,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),y2={[mt]:e=>Ke(e)||lt(e)||tr(e),[Mr]:e=>Ke(e)||lt(e)||tr(e)},b2=(e,t)=>{const n=ie(),r=Xe(Dw,void 0),i=ee(()=>!!r),l=ee({get(){return i.value?r.modelValue:e.modelValue},set(d){i.value?r.changeEvent(d):t&&t(mt,d),n.value.checked=e.modelValue===e.label}}),m=br(ee(()=>r==null?void 0:r.size)),o=so(ee(()=>r==null?void 0:r.disabled)),a=ie(!1),c=ee(()=>o.value||i.value&&l.value!==e.label?-1:0);return{radioRef:n,isGroup:i,radioGroup:r,focus:a,size:m,disabled:o,tabIndex:c,modelValue:l}},CR=["value","name","disabled"],xR={name:"ElRadio"},TR=be({...xR,props:SR,emits:y2,setup(e,{emit:t}){const n=e,r=Pe("radio"),{radioRef:i,radioGroup:l,focus:m,size:o,disabled:a,modelValue:c}=b2(n,t);function d(){Ge(()=>t("change",c.value))}return(u,f)=>{var s;return N(),se("label",{class:ce([_(r).b(),_(r).is("disabled",_(a)),_(r).is("focus",_(m)),_(r).is("bordered",u.border),_(r).is("checked",_(c)===u.label),_(r).m(_(o))])},[ne("span",{class:ce([_(r).e("input"),_(r).is("disabled",_(a)),_(r).is("checked",_(c)===u.label)])},[xt(ne("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":f[0]||(f[0]=h=>Ot(c)?c.value=h:null),class:ce(_(r).e("original")),value:u.label,name:u.name||((s=_(l))==null?void 0:s.name),disabled:_(a),type:"radio",onFocus:f[1]||(f[1]=h=>m.value=!0),onBlur:f[2]||(f[2]=h=>m.value=!1),onChange:d},null,42,CR),[[u1,_(c)]]),ne("span",{class:ce(_(r).e("inner"))},null,2)],2),ne("span",{class:ce(_(r).e("label")),onKeydown:f[3]||(f[3]=Qe(()=>{},["stop"]))},[ke(u.$slots,"default",{},()=>[Ne(Ee(u.label),1)])],34)],2)}}});var kR=Re(TR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const ER=Be({...v2,name:{type:String,default:""}}),OR=["value","name","disabled"],AR={name:"ElRadioButton"},PR=be({...AR,props:ER,setup(e){const t=e,n=Pe("radio"),{radioRef:r,focus:i,size:l,disabled:m,modelValue:o,radioGroup:a}=b2(t),c=ee(()=>({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(d,u)=>{var f;return N(),se("label",{class:ce([_(n).b("button"),_(n).is("active",_(o)===d.label),_(n).is("disabled",_(m)),_(n).is("focus",_(i)),_(n).bm("button",_(l))])},[xt(ne("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":u[0]||(u[0]=s=>Ot(o)?o.value=s:null),class:ce(_(n).be("button","original-radio")),value:d.label,type:"radio",name:d.name||((f=_(a))==null?void 0:f.name),disabled:_(m),onFocus:u[1]||(u[1]=s=>i.value=!0),onBlur:u[2]||(u[2]=s=>i.value=!1)},null,42,OR),[[u1,_(o)]]),ne("span",{class:ce(_(n).be("button","inner")),style:ze(_(o)===d.label?_(c):{}),onKeydown:u[3]||(u[3]=Qe(()=>{},["stop"]))},[ke(d.$slots,"default",{},()=>[Ne(Ee(d.label),1)])],38)],2)}}});var _2=Re(PR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const IR=Be({id:{type:String,default:void 0},size:aa,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),MR=y2,LR=["id","aria-label","aria-labelledby"],RR={name:"ElRadioGroup"},DR=be({...RR,props:IR,emits:MR,setup(e,{emit:t}){const n=e,r=Pe("radio"),i=oa(),l=ie(),{formItem:m}=ha(),{inputId:o,isLabeledByFormItem:a}=tu(n,{formItemContext:m}),c=u=>{t(mt,u),Ge(()=>t("change",u))};tt(()=>{const u=l.value.querySelectorAll("[type=radio]"),f=u[0];!Array.from(u).some(s=>s.checked)&&f&&(f.tabIndex=0)});const d=ee(()=>n.name||i.value);return gt(Dw,Tt({...pr(n),changeEvent:c,name:d})),Te(()=>n.modelValue,()=>{n.validateEvent&&(m==null||m.validate("change").catch(u=>void 0))}),(u,f)=>(N(),se("div",{id:_(o),ref_key:"radioGroupRef",ref:l,class:ce(_(r).b("group")),role:"radiogroup","aria-label":_(a)?void 0:u.label||"radio-group","aria-labelledby":_(a)?_(m).labelId:void 0},[ke(u.$slots,"default")],10,LR))}});var w2=Re(DR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);_t(kR,{RadioButton:_2,RadioGroup:w2});const FR=yr(w2),BR=yr(_2),S2=Be({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:eu,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),$R={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},NR={name:"ElTag"},zR=be({...NR,props:S2,emits:$R,setup(e,{emit:t}){const n=e,r=br(),i=Pe("tag"),l=ee(()=>{const{type:a,hit:c,effect:d,closable:u,round:f}=n;return[i.b(),i.is("closable",u),i.m(a),i.m(r.value),i.m(d),i.is("hit",c),i.is("round",f)]}),m=a=>{t("close",a)},o=a=>{t("click",a)};return(a,c)=>a.disableTransitions?(N(),se("span",{key:0,class:ce(_(l)),style:ze({backgroundColor:a.color}),onClick:o},[ne("span",{class:ce(_(i).e("content"))},[ke(a.$slots,"default")],2),a.closable?(N(),ve(_(De),{key:0,class:ce(_(i).e("close")),onClick:Qe(m,["stop"])},{default:ue(()=>[oe(_(Kr))]),_:1},8,["class","onClick"])):ge("v-if",!0)],6)):(N(),ve(Hn,{key:1,name:`${_(i).namespace.value}-zoom-in-center`,appear:""},{default:ue(()=>[ne("span",{class:ce(_(l)),style:ze({backgroundColor:a.color}),onClick:o},[ne("span",{class:ce(_(i).e("content"))},[ke(a.$slots,"default")],2),a.closable?(N(),ve(_(De),{key:0,class:ce(_(i).e("close")),onClick:Qe(m,["stop"])},{default:ue(()=>[oe(_(Kr))]),_:1},8,["class","onClick"])):ge("v-if",!0)],6)]),_:3},8,["name"]))}});var jR=Re(zR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const VR=_t(jR),UR=Be({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:Ae([Number,Object]),default:()=>ln({})},sm:{type:Ae([Number,Object]),default:()=>ln({})},md:{type:Ae([Number,Object]),default:()=>ln({})},lg:{type:Ae([Number,Object]),default:()=>ln({})},xl:{type:Ae([Number,Object]),default:()=>ln({})}}),HR={name:"ElCol"},WR=be({...HR,props:UR,setup(e){const t=e,{gutter:n}=Xe(Fw,{gutter:ee(()=>0)}),r=Pe("col"),i=ee(()=>{const m={};return n.value&&(m.paddingLeft=m.paddingRight=`${n.value/2}px`),m}),l=ee(()=>{const m=[];return["span","offset","pull","push"].forEach(c=>{const d=t[c];lt(d)&&(c==="span"?m.push(r.b(`${t[c]}`)):d>0&&m.push(r.b(`${c}-${t[c]}`)))}),["xs","sm","md","lg","xl"].forEach(c=>{lt(t[c])?m.push(r.b(`${c}-${t[c]}`)):nt(t[c])&&Object.entries(t[c]).forEach(([d,u])=>{m.push(d!=="span"?r.b(`${c}-${d}-${u}`):r.b(`${c}-${u}`))})}),n.value&&m.push(r.is("guttered")),m});return(m,o)=>(N(),ve(Ct(m.tag),{class:ce([_(r).b(),_(l)]),style:ze(_(i))},{default:ue(()=>[ke(m.$slots,"default")]),_:3},8,["class","style"]))}});var GR=Re(WR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const _o=_t(GR),ry=e=>typeof lt(e),YR=Be({accordion:Boolean,modelValue:{type:Ae([Array,String,Number]),default:()=>ln([])}}),KR={[mt]:ry,[Mr]:ry},XR={name:"ElCollapse"},qR=be({...XR,props:YR,emits:KR,setup(e,{expose:t,emit:n}){const r=e,i=Pe("collapse"),l=ie(wl(r.modelValue)),m=a=>{l.value=a;const c=r.accordion?l.value[0]:l.value;n(mt,c),n(Mr,c)},o=a=>{if(r.accordion)m([(l.value[0]||l.value[0]===0)&&l.value[0]===a?"":a]);else{const c=[...l.value],d=c.indexOf(a);d>-1?c.splice(d,1):c.push(a),m(c)}};return Te(()=>r.modelValue,()=>l.value=wl(r.modelValue),{deep:!0}),gt(Iw,{activeNames:l,handleItemClick:o}),t({activeNames:l,setActiveNames:m}),(a,c)=>(N(),se("div",{class:ce(_(i).b()),role:"tablist","aria-multiselectable":"true"},[ke(a.$slots,"default")],2))}});var ZR=Re(qR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const JR={name:"ElCollapseTransition"},QR=be({...JR,setup(e){const t=Pe("collapse-transition"),n={beforeEnter(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0},enter(r){r.dataset.oldOverflow=r.style.overflow,r.scrollHeight!==0?(r.style.maxHeight=`${r.scrollHeight}px`,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom):(r.style.maxHeight=0,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom),r.style.overflow="hidden"},afterEnter(r){r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow},beforeLeave(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.dataset.oldOverflow=r.style.overflow,r.style.maxHeight=`${r.scrollHeight}px`,r.style.overflow="hidden"},leave(r){r.scrollHeight!==0&&(r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0)},afterLeave(r){r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom}};return(r,i)=>(N(),ve(Hn,zn({name:_(t).b()},Qx(n)),{default:ue(()=>[ke(r.$slots,"default")]),_:3},16,["name"]))}});var lc=Re(QR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);lc.install=e=>{e.component(lc.name,lc)};const C2=lc,eD=Be({title:{type:String,default:""},name:{type:Ae([String,Number]),default:()=>pm()},disabled:Boolean}),tD=["aria-expanded","aria-controls","aria-describedby"],nD=["id","tabindex","onKeypress"],rD=["id","aria-hidden","aria-labelledby"],iD={name:"ElCollapseItem"},aD=be({...iD,props:eD,setup(e,{expose:t}){const n=e,r=Xe(Iw),i=Pe("collapse"),l=ie(!1),m=ie(!1),o=ie(pm()),a=ee(()=>r==null?void 0:r.activeNames.value.includes(n.name)),c=()=>{setTimeout(()=>{m.value?m.value=!1:l.value=!0},50)},d=()=>{n.disabled||(r==null||r.handleItemClick(n.name),l.value=!1,m.value=!0)},u=()=>{r==null||r.handleItemClick(n.name)};return t({isActive:a}),(f,s)=>(N(),se("div",{class:ce([_(i).b("item"),_(i).is("active",_(a)),_(i).is("disabled",f.disabled)])},[ne("div",{role:"tab","aria-expanded":_(a),"aria-controls":_(i).b(`content-${o.value}`),"aria-describedby":_(i).b(`content-${o.value}`)},[ne("div",{id:_(i).b(`head-${o.value}`),class:ce([_(i).be("item","header"),_(i).is("active",_(a)),{focusing:l.value&&!f.disabled}]),role:"button",tabindex:f.disabled?-1:0,onClick:d,onKeypress:Dt(Qe(u,["stop","prevent"]),["space","enter"]),onFocus:c,onBlur:s[0]||(s[0]=h=>l.value=!1)},[ke(f.$slots,"title",{},()=>[Ne(Ee(f.title),1)]),oe(_(De),{class:ce([_(i).be("item","arrow"),_(i).is("active",_(a))])},{default:ue(()=>[oe(_(us))]),_:1},8,["class"])],42,nD)],8,tD),oe(_(C2),null,{default:ue(()=>[xt(ne("div",{id:_(i).b(`content-${o.value}`),class:ce(_(i).be("item","wrap")),role:"tabpanel","aria-hidden":!_(a),"aria-labelledby":_(i).b(`head-${o.value}`)},[ne("div",{class:ce(_(i).be("item","content"))},[ke(f.$slots,"default")],2)],10,rD),[[Gt,_(a)]])]),_:3})],2))}});var x2=Re(aD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const oD=_t(ZR,{CollapseItem:x2}),sD=yr(x2);let pd=!1;function Ol(e,t){if(!dt)return;const n=function(l){var m;(m=t.drag)==null||m.call(t,l)},r=function(l){var m;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,pd=!1,(m=t.end)==null||m.call(t,l)},i=function(l){var m;pd||(l.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),pd=!0,(m=t.start)==null||m.call(t,l))};e.addEventListener("mousedown",i),e.addEventListener("touchstart",i)}const lD=be({name:"ElColorAlphaSlider",props:{color:{type:Object,required:!0},vertical:{type:Boolean,default:!1}},setup(e){const t=Pe("color-alpha-slider"),n=kt(),r=mn(null),i=mn(null),l=ie(0),m=ie(0),o=ie(null);Te(()=>e.color.get("alpha"),()=>{s()}),Te(()=>e.color.value,()=>{s()});function a(){if(e.vertical)return 0;const h=n.vnode.el,g=e.color.get("alpha");return h?Math.round(g*(h.offsetWidth-r.value.offsetWidth/2)/100):0}function c(){const h=n.vnode.el;if(!e.vertical)return 0;const g=e.color.get("alpha");return h?Math.round(g*(h.offsetHeight-r.value.offsetHeight/2)/100):0}function d(){if(e.color&&e.color.value){const{r:h,g,b:p}=e.color.toRgb();return`linear-gradient(to right, rgba(${h}, ${g}, ${p}, 0) 0%, rgba(${h}, ${g}, ${p}, 1) 100%)`}return null}function u(h){h.target!==r.value&&f(h)}function f(h){const p=n.vnode.el.getBoundingClientRect(),{clientX:v,clientY:y}=hm(h);if(e.vertical){let b=y-p.top;b=Math.max(r.value.offsetHeight/2,b),b=Math.min(b,p.height-r.value.offsetHeight/2),e.color.set("alpha",Math.round((b-r.value.offsetHeight/2)/(p.height-r.value.offsetHeight)*100))}else{let b=v-p.left;b=Math.max(r.value.offsetWidth/2,b),b=Math.min(b,p.width-r.value.offsetWidth/2),e.color.set("alpha",Math.round((b-r.value.offsetWidth/2)/(p.width-r.value.offsetWidth)*100))}}function s(){l.value=a(),m.value=c(),o.value=d()}return tt(()=>{const h={drag:g=>{f(g)},end:g=>{f(g)}};Ol(i.value,h),Ol(r.value,h),s()}),{thumb:r,bar:i,thumbLeft:l,thumbTop:m,background:o,handleClick:u,update:s,ns:t}}});function uD(e,t,n,r,i,l){return N(),se("div",{class:ce([e.ns.b(),e.ns.is("vertical",e.vertical)])},[ne("div",{ref:"bar",class:ce(e.ns.e("bar")),style:ze({background:e.background}),onClick:t[0]||(t[0]=(...m)=>e.handleClick&&e.handleClick(...m))},null,6),ne("div",{ref:"thumb",class:ce(e.ns.e("thumb")),style:ze({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var cD=Re(lD,[["render",uD],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const fD=be({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Pe("color-hue-slider"),n=kt(),r=ie(null),i=ie(null),l=ie(0),m=ie(0),o=ee(()=>e.color.get("hue"));Te(()=>o.value,()=>{f()});function a(s){s.target!==r.value&&c(s)}function c(s){const g=n.vnode.el.getBoundingClientRect(),{clientX:p,clientY:v}=hm(s);let y;if(e.vertical){let b=v-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=p-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 d(){const s=n.vnode.el;if(e.vertical)return 0;const h=e.color.get("hue");return s?Math.round(h*(s.offsetWidth-r.value.offsetWidth/2)/360):0}function u(){const s=n.vnode.el;if(!e.vertical)return 0;const h=e.color.get("hue");return s?Math.round(h*(s.offsetHeight-r.value.offsetHeight/2)/360):0}function f(){l.value=d(),m.value=u()}return tt(()=>{const s={drag:h=>{c(h)},end:h=>{c(h)}};Ol(i.value,s),Ol(r.value,s),f()}),{bar:i,thumb:r,thumbLeft:l,thumbTop:m,hueValue:o,handleClick:a,update:f,ns:t}}});function dD(e,t,n,r,i,l){return N(),se("div",{class:ce([e.ns.b(),e.ns.is("vertical",e.vertical)])},[ne("div",{ref:"bar",class:ce(e.ns.e("bar")),onClick:t[0]||(t[0]=(...m)=>e.handleClick&&e.handleClick(...m))},null,2),ne("div",{ref:"thumb",class:ce(e.ns.e("thumb")),style:ze({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var hD=Re(fD,[["render",dD],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const T2=Symbol(),pD=()=>Xe(T2),iy=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},mD=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},gD=function(e){return typeof e=="string"&&e.includes("%")},No=function(e,t){mD(e)&&(e="100%");const n=gD(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},ay={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},uc=function(e){e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${ay[t]||t}${ay[n]||n}`},oy=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${uc(e)}${uc(t)}${uc(n)}`},md={A:10,B:11,C:12,D:13,E:14,F:15},Sa=function(e){return e.length===2?(md[e[0].toUpperCase()]||+e[0])*16+(md[e[1].toUpperCase()]||+e[1]):md[e[1].toUpperCase()]||+e[1]},vD=function(e,t,n){t=t/100,n=n/100;let r=t;const i=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,r*=i<=1?i:2-i;const l=(n+t)/2,m=n===0?2*r/(i+r):2*t/(n+t);return{h:e,s:m*100,v:l*100}},sy=function(e,t,n){e=No(e,255),t=No(t,255),n=No(n,255);const r=Math.max(e,t,n),i=Math.min(e,t,n);let l;const m=r,o=r-i,a=r===0?0:o/r;if(r===i)l=0;else{switch(r){case e:{l=(t-n)/o+(t<n?6:0);break}case t:{l=(n-e)/o+2;break}case n:{l=(e-t)/o+4;break}}l/=6}return{h:l*360,s:a*100,v:m*100}},As=function(e,t,n){e=No(e,360)*6,t=No(t,100),n=No(n,100);const r=Math.floor(e),i=e-r,l=n*(1-t),m=n*(1-i*t),o=n*(1-(1-i)*t),a=r%6,c=[n,m,l,l,o,n][a],d=[o,n,n,m,l,l][a],u=[l,l,o,n,n,m][a];return{r:Math.round(c*255),g:Math.round(d*255),b:Math.round(u*255)}};class Qs{constructor(t){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="",t=t||{};for(const n in t)st(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)st(t,r)&&this.set(r,t[r]);return}this[`_${t}`]=n,this.doOnChange()}get(t){return t==="alpha"?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return As(this._hue,this._saturation,this._value)}fromString(t){if(!t){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const n=(r,i,l)=>{this._hue=Math.max(0,Math.min(360,r)),this._saturation=Math.max(0,Math.min(100,i)),this._value=Math.max(0,Math.min(100,l)),this.doOnChange()};if(t.includes("hsl")){const r=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,l)=>l>2?Number.parseFloat(i):Number.parseInt(i,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:i,s:l,v:m}=vD(r[0],r[1],r[2]);n(i,l,m)}}else if(t.includes("hsv")){const r=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,l)=>l>2?Number.parseFloat(i):Number.parseInt(i,10));r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3&&n(r[0],r[1],r[2])}else if(t.includes("rgb")){const r=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,l)=>l>2?Number.parseFloat(i):Number.parseInt(i,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:i,s:l,v:m}=sy(r[0],r[1],r[2]);n(i,l,m)}}else if(t.includes("#")){const r=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))return;let i,l,m;r.length===3?(i=Sa(r[0]+r[0]),l=Sa(r[1]+r[1]),m=Sa(r[2]+r[2])):(r.length===6||r.length===8)&&(i=Sa(r.slice(0,2)),l=Sa(r.slice(2,4)),m=Sa(r.slice(4,6))),r.length===8?this._alpha=Sa(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:o,s:a,v:c}=sy(i,l,m);n(o,a,c)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:n,_value:r,_alpha:i,format:l}=this;if(this.enableAlpha)switch(l){case"hsl":{const m=iy(t,n/100,r/100);this.value=`hsla(${t}, ${Math.round(m[1]*100)}%, ${Math.round(m[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(n)}%, ${Math.round(r)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${oy(As(t,n,r))}${uc(i*255/100)}`;break}default:{const{r:m,g:o,b:a}=As(t,n,r);this.value=`rgba(${m}, ${o}, ${a}, ${this.get("alpha")/100})`}}else switch(l){case"hsl":{const m=iy(t,n/100,r/100);this.value=`hsl(${t}, ${Math.round(m[1]*100)}%, ${Math.round(m[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(r)}%)`;break}case"rgb":{const{r:m,g:o,b:a}=As(t,n,r);this.value=`rgb(${m}, ${o}, ${a})`;break}default:this.value=oy(As(t,n,r))}}}const yD=be({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=Pe("color-predefine"),{currentColor:n}=pD(),r=ie(l(e.colors,e.color));Te(()=>n.value,m=>{const o=new Qs;o.fromString(m),r.value.forEach(a=>{a.selected=o.compare(a)})}),ro(()=>{r.value=l(e.colors,e.color)});function i(m){e.color.fromString(e.colors[m])}function l(m,o){return m.map(a=>{const c=new Qs;return c.enableAlpha=!0,c.format="rgba",c.fromString(a),c.selected=c.value===o.value,c})}return{rgbaColors:r,handleSelect:i,ns:t}}}),bD=["onClick"];function _D(e,t,n,r,i,l){return N(),se("div",{class:ce(e.ns.b())},[ne("div",{class:ce(e.ns.e("colors"))},[(N(!0),se($e,null,$t(e.rgbaColors,(m,o)=>(N(),se("div",{key:e.colors[o],class:ce([e.ns.e("color-selector"),e.ns.is("alpha",m._alpha<100),{selected:m.selected}]),onClick:a=>e.handleSelect(o)},[ne("div",{style:ze({backgroundColor:m.value})},null,4)],10,bD))),128))],2)],2)}var wD=Re(yD,[["render",_D],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const SD=be({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Pe("color-svpanel"),n=kt(),r=ie(0),i=ie(0),l=ie("hsl(0, 100%, 50%)"),m=ee(()=>{const c=e.color.get("hue"),d=e.color.get("value");return{hue:c,value:d}});function o(){const c=e.color.get("saturation"),d=e.color.get("value"),u=n.vnode.el,{clientWidth:f,clientHeight:s}=u;i.value=c*f/100,r.value=(100-d)*s/100,l.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function a(c){const u=n.vnode.el.getBoundingClientRect(),{clientX:f,clientY:s}=hm(c);let h=f-u.left,g=s-u.top;h=Math.max(0,h),h=Math.min(h,u.width),g=Math.max(0,g),g=Math.min(g,u.height),i.value=h,r.value=g,e.color.set({saturation:h/u.width*100,value:100-g/u.height*100})}return Te(()=>m.value,()=>{o()}),tt(()=>{Ol(n.vnode.el,{drag:c=>{a(c)},end:c=>{a(c)}}),o()}),{cursorTop:r,cursorLeft:i,background:l,colorValue:m,handleDrag:a,update:o,ns:t}}}),CD=ne("div",null,null,-1),xD=[CD];function TD(e,t,n,r,i,l){return N(),se("div",{class:ce(e.ns.b()),style:ze({backgroundColor:e.background})},[ne("div",{class:ce(e.ns.e("white"))},null,2),ne("div",{class:ce(e.ns.e("black"))},null,2),ne("div",{class:ce(e.ns.e("cursor")),style:ze({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},xD,6)],6)}var kD=Re(SD,[["render",TD],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const ED=be({name:"ElColorPicker",components:{ElButton:Ze,ElTooltip:fn,ElInput:lo,ElIcon:De,Close:Kr,ArrowDown:Yo,SvPanel:kD,HueSlider:hD,AlphaSlider:cD,Predefine:wD},directives:{ClickOutside:m2},props:{modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:{type:String,validator:Tf},popperClass:String,label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:Array,validateEvent:{type:Boolean,default:!0}},emits:["change","active-change",mt],setup(e,{emit:t}){const{t:n}=Tn(),r=Pe("color"),{form:i,formItem:l}=ha(),{inputId:m,isLabeledByFormItem:o}=tu(e,{formItemContext:l}),a=ie(),c=ie(),d=ie(),u=ie(null);let f=!0;const s=Tt(new Qs({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue})),h=ie(!1),g=ie(!1),p=ie(""),v=ee(()=>!e.modelValue&&!g.value?"transparent":T(s,e.showAlpha)),y=br(),b=ee(()=>!!(e.disabled||(i==null?void 0:i.disabled))),w=ee(()=>!e.modelValue&&!g.value?"":s.value),S=ee(()=>o.value?void 0:e.label||n("el.colorpicker.defaultLabel")),C=ee(()=>o.value?l==null?void 0:l.labelId:void 0);Te(()=>e.modelValue,ae=>{ae?ae&&ae!==s.value&&(f=!1,s.fromString(ae)):g.value=!1}),Te(()=>w.value,ae=>{p.value=ae,f&&t("active-change",ae),f=!0}),Te(()=>s.value,()=>{!e.modelValue&&!g.value&&(g.value=!0)});function T(ae,q){if(!(ae instanceof Qs))throw new TypeError("color should be instance of _color Class");const{r:J,g:E,b:V}=ae.toRgb();return q?`rgba(${J}, ${E}, ${V}, ${ae.get("alpha")/100})`:`rgb(${J}, ${E}, ${V})`}function k(ae){h.value=ae}const A=Xo(k,100);function P(){A(!1),z()}function z(){Ge(()=>{e.modelValue?s.fromString(e.modelValue):(s.value="",Ge(()=>{g.value=!1}))})}function I(){b.value||A(!h.value)}function $(){s.fromString(p.value)}function O(){const ae=s.value;t(mt,ae),t("change",ae),e.validateEvent&&(l==null||l.validate("change").catch(q=>void 0)),A(!1),Ge(()=>{const q=new Qs({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue});s.compare(q)||z()})}function Y(){A(!1),t(mt,null),t("change",null),e.modelValue!==null&&e.validateEvent&&(l==null||l.validate("change").catch(ae=>void 0)),z()}return tt(()=>{e.modelValue&&(p.value=w.value)}),Te(()=>h.value,()=>{Ge(()=>{var ae,q,J;(ae=a.value)==null||ae.update(),(q=c.value)==null||q.update(),(J=d.value)==null||J.update()})}),gt(T2,{currentColor:w}),{color:s,colorDisabled:b,colorSize:y,displayedColor:v,showPanelColor:g,showPicker:h,customInput:p,buttonId:m,buttonAriaLabel:S,buttonAriaLabelledby:C,handleConfirm:$,hide:P,handleTrigger:I,clear:Y,confirmValue:O,t:n,ns:r,hue:a,svPanel:c,alpha:d,popper:u}}}),OD=["id","aria-label","aria-labelledby","aria-description","tabindex"];function AD(e,t,n,r,i,l){const m=yt("hue-slider"),o=yt("sv-panel"),a=yt("alpha-slider"),c=yt("predefine"),d=yt("el-input"),u=yt("el-button"),f=yt("arrow-down"),s=yt("el-icon"),h=yt("close"),g=yt("el-tooltip"),p=I_("click-outside");return N(),ve(g,{ref:"popper",visible:e.showPicker,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[e.ns.be("picker","panel"),e.ns.b("dropdown"),e.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${e.ns.namespace.value}-zoom-in-top`,persistent:""},{content:ue(()=>[xt((N(),se("div",null,[ne("div",{class:ce(e.ns.be("dropdown","main-wrapper"))},[oe(m,{ref:"hue",class:"hue-slider",color:e.color,vertical:""},null,8,["color"]),oe(o,{ref:"svPanel",color:e.color},null,8,["color"])],2),e.showAlpha?(N(),ve(a,{key:0,ref:"alpha",color:e.color},null,8,["color"])):ge("v-if",!0),e.predefine?(N(),ve(c,{key:1,ref:"predefine",color:e.color,colors:e.predefine},null,8,["color","colors"])):ge("v-if",!0),ne("div",{class:ce(e.ns.be("dropdown","btns"))},[ne("span",{class:ce(e.ns.be("dropdown","value"))},[oe(d,{modelValue:e.customInput,"onUpdate:modelValue":t[0]||(t[0]=v=>e.customInput=v),"validate-event":!1,size:"small",onKeyup:Dt(e.handleConfirm,["enter"]),onBlur:e.handleConfirm},null,8,["modelValue","onKeyup","onBlur"])],2),oe(u,{class:ce(e.ns.be("dropdown","link-btn")),text:"",size:"small",onClick:e.clear},{default:ue(()=>[Ne(Ee(e.t("el.colorpicker.clear")),1)]),_:1},8,["class","onClick"]),oe(u,{plain:"",size:"small",class:ce(e.ns.be("dropdown","btn")),onClick:e.confirmValue},{default:ue(()=>[Ne(Ee(e.t("el.colorpicker.confirm")),1)]),_:1},8,["class","onClick"])],2)])),[[p,e.hide]])]),default:ue(()=>[ne("div",{id:e.buttonId,class:ce([e.ns.b("picker"),e.ns.is("disabled",e.colorDisabled),e.ns.bm("picker",e.colorSize)]),role:"button","aria-label":e.buttonAriaLabel,"aria-labelledby":e.buttonAriaLabelledby,"aria-description":e.t("el.colorpicker.description",{color:e.modelValue||""}),tabindex:e.tabindex,onKeydown:t[2]||(t[2]=Dt((...v)=>e.handleTrigger&&e.handleTrigger(...v),["enter"]))},[e.colorDisabled?(N(),se("div",{key:0,class:ce(e.ns.be("picker","mask"))},null,2)):ge("v-if",!0),ne("div",{class:ce(e.ns.be("picker","trigger")),onClick:t[1]||(t[1]=(...v)=>e.handleTrigger&&e.handleTrigger(...v))},[ne("span",{class:ce([e.ns.be("picker","color"),e.ns.is("alpha",e.showAlpha)])},[ne("span",{class:ce(e.ns.be("picker","color-inner")),style:ze({backgroundColor:e.displayedColor})},[xt(oe(s,{class:ce([e.ns.be("picker","icon"),e.ns.is("icon-arrow-down")])},{default:ue(()=>[oe(f)]),_:1},8,["class"]),[[Gt,e.modelValue||e.showPanelColor]]),!e.modelValue&&!e.showPanelColor?(N(),ve(s,{key:0,class:ce([e.ns.be("picker","empty"),e.ns.is("icon-close")])},{default:ue(()=>[oe(h)]),_:1},8,["class"])):ge("v-if",!0)],6)],2)],2)],42,OD)]),_:1},8,["visible","popper-class","transition"])}var cc=Re(ED,[["render",AD],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/index.vue"]]);cc.install=e=>{e.component(cc.name,cc)};const PD=cc,ID=PD,Ph={},MD=Be({a11y:{type:Boolean,default:!0},locale:{type:Ae(Object)},size:aa,button:{type:Ae(Object)},experimentalFeatures:{type:Ae(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Ae(Object)},zIndex:Number,namespace:{type:String,default:"el"}});be({name:"ElConfigProvider",props:MD,setup(e,{slots:t}){Te(()=>e.message,r=>{Object.assign(Ph,r!=null?r:{})},{immediate:!0,deep:!0});const n=M6(e);return()=>ke(t,"default",{config:n==null?void 0:n.value})}});const LD=Be({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Ae([String,Array,Object])},zIndex:{type:Ae([String,Number])}}),RD={click:e=>e instanceof MouseEvent};var DD=be({name:"ElOverlay",props:LD,emits:RD,setup(e,{slots:t,emit:n}){const r=Pe("overlay"),i=a=>{n("click",a)},{onClick:l,onMousedown:m,onMouseup:o}=gm(e.customMaskEvent?void 0:i);return()=>e.mask?oe("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:l,onMousedown:m,onMouseup:o},[ke(t,"default")],oc.STYLE|oc.CLASS|oc.PROPS,["onClick","onMouseup","onMousedown"]):St("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[ke(t,"default")])}});const k2=DD,E2=Be({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:qt},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),FD={close:()=>!0},BD=["aria-label"],$D=["id"],ND={name:"ElDialogContent"},zD=be({...ND,props:E2,emits:FD,setup(e){const t=e,{t:n}=Tn(),{Close:r}=S6,{dialogRef:i,headerRef:l,bodyId:m,ns:o,style:a}=Xe(Lw),{focusTrapRef:c}=Xe(c2),d=k6(c,i),u=ee(()=>t.draggable);return Vw(i,l,u),(f,s)=>(N(),se("div",{ref:_(d),class:ce([_(o).b(),_(o).is("fullscreen",f.fullscreen),_(o).is("draggable",_(u)),_(o).is("align-center",f.alignCenter),{[_(o).m("center")]:f.center},f.customClass]),style:ze(_(a)),tabindex:"-1",onClick:s[1]||(s[1]=Qe(()=>{},["stop"]))},[ne("header",{ref_key:"headerRef",ref:l,class:ce(_(o).e("header"))},[ke(f.$slots,"header",{},()=>[ne("span",{role:"heading",class:ce(_(o).e("title"))},Ee(f.title),3)]),f.showClose?(N(),se("button",{key:0,"aria-label":_(n)("el.dialog.close"),class:ce(_(o).e("headerbtn")),type:"button",onClick:s[0]||(s[0]=h=>f.$emit("close"))},[oe(_(De),{class:ce(_(o).e("close"))},{default:ue(()=>[(N(),ve(Ct(f.closeIcon||_(r))))]),_:1},8,["class"])],10,BD)):ge("v-if",!0)],2),ne("div",{id:_(m),class:ce(_(o).e("body"))},[ke(f.$slots,"default")],10,$D),f.$slots.footer?(N(),se("footer",{key:0,class:ce(_(o).e("footer"))},[ke(f.$slots,"footer")],2)):ge("v-if",!0)],6))}});var jD=Re(zD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const VD=Be({...E2,appendToBody:{type:Boolean,default:!1},beforeClose:{type:Ae(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),UD={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[mt]:e=>tr(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},HD=(e,t)=>{const r=kt().emit,{nextZIndex:i}=nu();let l="";const m=oa(),o=oa(),a=ie(!1),c=ie(!1),d=ie(!1),u=ie(e.zIndex||i());let f,s;const h=Ai("namespace",Ef),g=ee(()=>{const $={},O=`--${h.value}-dialog`;return e.fullscreen||(e.top&&($[`${O}-margin-top`]=e.top),e.width&&($[`${O}-width`]=qr(e.width))),$}),p=ee(()=>e.alignCenter?{display:"flex"}:{});function v(){r("opened")}function y(){r("closed"),r(mt,!1),e.destroyOnClose&&(d.value=!1)}function b(){r("close")}function w(){s==null||s(),f==null||f(),e.openDelay&&e.openDelay>0?{stop:f}=Cl(()=>k(),e.openDelay):k()}function S(){f==null||f(),s==null||s(),e.closeDelay&&e.closeDelay>0?{stop:s}=Cl(()=>A(),e.closeDelay):A()}function C(){function $(O){O||(c.value=!0,a.value=!1)}e.beforeClose?e.beforeClose($):S()}function T(){e.closeOnClickModal&&C()}function k(){!dt||(a.value=!0)}function A(){a.value=!1}function P(){r("openAutoFocus")}function z(){r("closeAutoFocus")}e.lockScroll&&Uw(a);function I(){e.closeOnPressEscape&&C()}return Te(()=>e.modelValue,$=>{$?(c.value=!1,w(),d.value=!0,u.value=e.zIndex?u.value++:i(),Ge(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):a.value&&S()}),Te(()=>e.fullscreen,$=>{!t.value||($?(l=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=l)}),tt(()=>{e.modelValue&&(a.value=!0,d.value=!0,w())}),{afterEnter:v,afterLeave:y,beforeLeave:b,handleClose:C,onModalClick:T,close:S,doClose:A,onOpenAutoFocus:P,onCloseAutoFocus:z,onCloseRequested:I,titleId:m,bodyId:o,closed:c,style:g,overlayDialogStyle:p,rendered:d,visible:a,zIndex:u}},WD=["aria-label","aria-labelledby","aria-describedby"],GD={name:"ElDialog",inheritAttrs:!1},YD=be({...GD,props:VD,emits:UD,setup(e,{expose:t}){const n=e,r=os();xl({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"},ee(()=>!!r.title)),xl({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},ee(()=>!!n.customClass));const i=Pe("dialog"),l=ie(),m=ie(),o=ie(),{visible:a,titleId:c,bodyId:d,style:u,overlayDialogStyle:f,rendered:s,zIndex:h,afterEnter:g,afterLeave:p,beforeLeave:v,handleClose:y,onModalClick:b,onOpenAutoFocus:w,onCloseAutoFocus:S,onCloseRequested:C}=HD(n,l);gt(Lw,{dialogRef:l,headerRef:m,bodyId:d,ns:i,rendered:s,style:u});const T=gm(b),k=ee(()=>n.draggable&&!n.fullscreen);return t({visible:a,dialogContentRef:o}),(A,P)=>(N(),ve(Bp,{to:"body",disabled:!A.appendToBody},[oe(Hn,{name:"dialog-fade",onAfterEnter:_(g),onAfterLeave:_(p),onBeforeLeave:_(v),persisted:""},{default:ue(()=>[xt(oe(_(k2),{"custom-mask-event":"",mask:A.modal,"overlay-class":A.modalClass,"z-index":_(h)},{default:ue(()=>[ne("div",{role:"dialog","aria-modal":"true","aria-label":A.title||void 0,"aria-labelledby":A.title?void 0:_(c),"aria-describedby":_(d),class:ce(`${_(i).namespace.value}-overlay-dialog`),style:ze(_(f)),onClick:P[0]||(P[0]=(...z)=>_(T).onClick&&_(T).onClick(...z)),onMousedown:P[1]||(P[1]=(...z)=>_(T).onMousedown&&_(T).onMousedown(...z)),onMouseup:P[2]||(P[2]=(...z)=>_(T).onMouseup&&_(T).onMouseup(...z))},[oe(_(Tm),{loop:"",trapped:_(a),"focus-start-el":"container",onFocusAfterTrapped:_(w),onFocusAfterReleased:_(S),onReleaseRequested:_(C)},{default:ue(()=>[_(s)?(N(),ve(jD,zn({key:0,ref_key:"dialogContentRef",ref:o},A.$attrs,{"custom-class":A.customClass,center:A.center,"align-center":A.alignCenter,"close-icon":A.closeIcon,draggable:_(k),fullscreen:A.fullscreen,"show-close":A.showClose,title:A.title,onClose:_(y)}),Ec({header:ue(()=>[A.$slots.title?ke(A.$slots,"title",{key:1}):ke(A.$slots,"header",{key:0,close:_(y),titleId:_(c),titleClass:_(i).e("title")})]),default:ue(()=>[ke(A.$slots,"default")]),_:2},[A.$slots.footer?{name:"footer",fn:ue(()=>[ke(A.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):ge("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onReleaseRequested"])],46,WD)]),_:3},8,["mask","overlay-class","z-index"]),[[Gt,_(a)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var KD=Re(YD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const XD=_t(KD),qD=Be({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:Ae(String),default:"solid"}}),ZD={name:"ElDivider"},JD=be({...ZD,props:qD,setup(e){const t=e,n=Pe("divider"),r=ee(()=>n.cssVar({"border-style":t.borderStyle}));return(i,l)=>(N(),se("div",{class:ce([_(n).b(),_(n).m(i.direction)]),style:ze(_(r)),role:"separator"},[i.$slots.default&&i.direction!=="vertical"?(N(),se("div",{key:0,class:ce([_(n).e("text"),_(n).is(i.contentPosition)])},[ke(i.$slots,"default")],2)):ge("v-if",!0)],6))}});var QD=Re(JD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const eF=_t(QD),tF={inheritAttrs:!1};function nF(e,t,n,r,i,l){return ke(e.$slots,"default")}var rF=Re(tF,[["render",nF],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const iF={name:"ElCollectionItem",inheritAttrs:!1};function aF(e,t,n,r,i,l){return ke(e.$slots,"default")}var oF=Re(iF,[["render",aF],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const sF="data-el-collection-item",lF=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),i=Symbol(n),l={...rF,name:t,setup(){const o=ie(null),a=new Map;gt(r,{itemMap:a,getItems:()=>{const d=_(o);if(!d)return[];const u=Array.from(d.querySelectorAll(`[${sF}]`));return[...a.values()].sort((s,h)=>u.indexOf(s.ref)-u.indexOf(h.ref))},collectionRef:o})}},m={...oF,name:n,setup(o,{attrs:a}){const c=ie(null),d=Xe(r,void 0);gt(i,{collectionItemRef:c}),tt(()=>{const u=_(c);u&&d.itemMap.set(u,{ref:u,...a})}),Jt(()=>{const u=_(c);d.itemMap.delete(u)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:i,ElCollection:l,ElCollectionItem:m}},gd=Be({trigger:El.trigger,effect:{...ur.effect,default:"light"},type:{type:Ae(String)},placement:{type:Ae(String),default:"bottom"},popperOptions:{type:Ae(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:Ae([Number,String]),default:0},maxHeight:{type:Ae([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:Ae(Object)}});Be({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:qt}});Be({onKeydown:{type:Ae(Function)}});lF("Dropdown");let uF=0;const cF=be({name:"ImgEmpty",setup(){return{ns:Pe("empty"),id:++uF}}}),fF={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},dF=["id"],hF=["stop-color"],pF=["stop-color"],mF=["id"],gF=["stop-color"],vF=["stop-color"],yF=["id"],bF={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},_F={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},wF={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},SF=["fill"],CF=["fill"],xF={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},TF=["fill"],kF=["fill"],EF=["fill"],OF=["fill"],AF=["fill"],PF={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},IF=["fill","xlink:href"],MF=["fill","mask"],LF=["fill"];function RF(e,t,n,r,i,l){return N(),se("svg",fF,[ne("defs",null,[ne("linearGradient",{id:`linearGradient-1-${e.id}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[ne("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,hF),ne("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,pF)],8,dF),ne("linearGradient",{id:`linearGradient-2-${e.id}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[ne("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,gF),ne("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,vF)],8,mF),ne("rect",{id:`path-3-${e.id}`,x:"0",y:"0",width:"17",height:"36"},null,8,yF)]),ne("g",bF,[ne("g",_F,[ne("g",wF,[ne("path",{id:"Oval-Copy-2",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(${e.ns.cssVarBlockName("fill-color-3")})`},null,8,SF),ne("polygon",{id:"Rectangle-Copy-14",fill:`var(${e.ns.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,CF),ne("g",xF,[ne("polygon",{id:"Rectangle-Copy-10",fill:`var(${e.ns.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,TF),ne("polygon",{id:"Rectangle-Copy-11",fill:`var(${e.ns.cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,kF),ne("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${e.id})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,EF),ne("polygon",{id:"Rectangle-Copy-13",fill:`var(${e.ns.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,OF)]),ne("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${e.id})`,x:"13",y:"45",width:"40",height:"36"},null,8,AF),ne("g",PF,[ne("use",{id:"Mask",fill:`var(${e.ns.cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${e.id}`},null,8,IF),ne("polygon",{id:"Rectangle-Copy",fill:`var(${e.ns.cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${e.id})`,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,MF)]),ne("polygon",{id:"Rectangle-Copy-18",fill:`var(${e.ns.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,LF)])])])])}var DF=Re(cF,[["render",RF],["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const FF={image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},BF=["src"],$F={key:1},NF={name:"ElEmpty"},zF=be({...NF,props:FF,setup(e){const t=e,{t:n}=Tn(),r=Pe("empty"),i=ee(()=>t.description||n("el.table.emptyText")),l=ee(()=>({width:t.imageSize?`${t.imageSize}px`:""}));return(m,o)=>(N(),se("div",{class:ce(_(r).b())},[ne("div",{class:ce(_(r).e("image")),style:ze(_(l))},[m.image?(N(),se("img",{key:0,src:m.image,ondragstart:"return false"},null,8,BF)):ke(m.$slots,"image",{key:1},()=>[oe(DF)])],6),ne("div",{class:ce(_(r).e("description"))},[m.$slots.description?ke(m.$slots,"description",{key:0}):(N(),se("p",$F,Ee(_(i)),1))],2),m.$slots.default?(N(),se("div",{key:0,class:ce(_(r).e("bottom"))},[ke(m.$slots,"default")],2)):ge("v-if",!0)],2))}});var jF=Re(zF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const VF=_t(jF),UF=Be({model:Object,rules:{type:Ae(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},size:{type:String,values:eu},disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean}),HF={validate:(e,t,n)=>(Ue(e)||Ke(e))&&tr(t)&&Ke(n)};function WF(){const e=ie([]),t=ee(()=>{if(!e.value.length)return"0";const l=Math.max(...e.value);return l?`${l}px`:""});function n(l){return e.value.indexOf(l)}function r(l,m){if(l&&m){const o=n(m);e.value.splice(o,1,l)}else l&&e.value.push(l)}function i(l){const m=n(l);m>-1&&e.value.splice(m,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:i}}const Iu=(e,t)=>{const n=wl(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},GF={name:"ElForm"},YF=be({...GF,props:UF,emits:HF,setup(e,{expose:t,emit:n}){const r=e,i=[],l=br(),m=Pe("form"),o=ee(()=>{const{labelPosition:y,inline:b}=r;return[m.b(),m.m(l.value||"default"),{[m.m(`label-${y}`)]:y,[m.m("inline")]:b}]}),a=y=>{i.push(y)},c=y=>{y.prop&&i.splice(i.indexOf(y),1)},d=(y=[])=>{!r.model||Iu(i,y).forEach(b=>b.resetField())},u=(y=[])=>{Iu(i,y).forEach(b=>b.clearValidate())},f=ee(()=>!!r.model),s=y=>{if(i.length===0)return[];const b=Iu(i,y);return b.length?b:[]},h=async y=>p(void 0,y),g=async(y=[])=>{if(!f.value)return!1;const b=s(y);if(b.length===0)return!0;let w={};for(const S of b)try{await S.validate("")}catch(C){w={...w,...C}}return Object.keys(w).length===0?!0:Promise.reject(w)},p=async(y=[],b)=>{const w=!Ve(b);try{const S=await g(y);return S===!0&&(b==null||b(S)),S}catch(S){const C=S;return r.scrollToError&&v(Object.keys(C)[0]),b==null||b(!1,C),w&&Promise.reject(C)}},v=y=>{var b;const w=Iu(i,y)[0];w&&((b=w.$el)==null||b.scrollIntoView())};return Te(()=>r.rules,()=>{r.validateOnRuleChange&&h().catch(y=>void 0)},{deep:!0}),gt(fs,Tt({...pr(r),emit:n,resetFields:d,clearValidate:u,validateField:p,addField:a,removeField:c,...WF()})),t({validate:h,validateField:p,resetFields:d,clearValidate:u,scrollToField:v}),(y,b)=>(N(),se("form",{class:ce(_(o))},[ke(y.$slots,"default")],2))}});var KF=Re(YF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function La(){return La=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},La.apply(this,arguments)}function XF(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Al(e,t)}function Ih(e){return Ih=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ih(e)}function Al(e,t){return Al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Al(e,t)}function qF(){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 fc(e,t,n){return qF()?fc=Reflect.construct.bind():fc=function(i,l,m){var o=[null];o.push.apply(o,l);var a=Function.bind.apply(i,o),c=new a;return m&&Al(c,m.prototype),c},fc.apply(null,arguments)}function ZF(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Mh(e){var t=typeof Map=="function"?new Map:void 0;return Mh=function(r){if(r===null||!ZF(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 fc(r,arguments,Ih(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Al(i,r)},Mh(e)}var JF=/%[sdj%]/g,QF=function(){};typeof process<"u"&&process.env;function Lh(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 Zn(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,l=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var m=e.replace(JF,function(o){if(o==="%%")return"%";if(i>=l)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 m}return e}function eB(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function an(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||eB(t)&&typeof e=="string"&&!e)}function tB(e,t,n){var r=[],i=0,l=e.length;function m(o){r.push.apply(r,o||[]),i++,i===l&&n(r)}e.forEach(function(o){t(o,m)})}function ly(e,t,n){var r=0,i=e.length;function l(m){if(m&&m.length){n(m);return}var o=r;r=r+1,o<i?t(e[o],l):n([])}l([])}function nB(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var uy=function(e){XF(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}(Mh(Error));function rB(e,t,n,r,i){if(t.first){var l=new Promise(function(f,s){var h=function(v){return r(v),v.length?s(new uy(v,Lh(v))):f(i)},g=nB(e);ly(g,n,h)});return l.catch(function(f){return f}),l}var m=t.firstFields===!0?Object.keys(e):t.firstFields||[],o=Object.keys(e),a=o.length,c=0,d=[],u=new Promise(function(f,s){var h=function(p){if(d.push.apply(d,p),c++,c===a)return r(d),d.length?s(new uy(d,Lh(d))):f(i)};o.length||(r(d),f(i)),o.forEach(function(g){var p=e[g];m.indexOf(g)!==-1?ly(p,n,h):tB(p,n,h)})});return u.catch(function(f){return f}),u}function iB(e){return!!(e&&e.message!==void 0)}function aB(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function cy(e,t){return function(n){var r;return e.fullFields?r=aB(t,e.fullFields):r=t[n.field||e.fullField],iB(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 fy(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]=La({},e[n],r):e[n]=r}}return e}var O2=function(t,n,r,i,l,m){t.required&&(!r.hasOwnProperty(t.field)||an(n,m||t.type))&&i.push(Zn(l.messages.required,t.fullField))},oB=function(t,n,r,i,l){(/^\s+$/.test(n)||n==="")&&i.push(Zn(l.messages.whitespace,t.fullField))},Mu,sB=function(){if(Mu)return Mu;var e="[a-fA-F\\d:]",t=function(w){return w&&w.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(),l=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),m=new RegExp("^"+n+"$"),o=new RegExp("^"+i+"$"),a=function(w){return w&&w.exact?l:new RegExp("(?:"+t(w)+n+t(w)+")|(?:"+t(w)+i+t(w)+")","g")};a.v4=function(b){return b&&b.exact?m: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]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",u=a.v4().source,f=a.v6().source,s="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",v='(?:[/?#][^\\s"]*)?',y="(?:"+c+"|www\\.)"+d+"(?:localhost|"+u+"|"+f+"|"+s+h+g+")"+p+v;return Mu=new RegExp("(?:^"+y+"$)","i"),Mu},dy={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},Rs={integer:function(t){return Rs.number(t)&&parseInt(t,10)===t},float:function(t){return Rs.number(t)&&!Rs.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"&&!Rs.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(dy.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(sB())},hex:function(t){return typeof t=="string"&&!!t.match(dy.hex)}},lB=function(t,n,r,i,l){if(t.required&&n===void 0){O2(t,n,r,i,l);return}var m=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=t.type;m.indexOf(o)>-1?Rs[o](n)||i.push(Zn(l.messages.types[o],t.fullField,t.type)):o&&typeof n!==t.type&&i.push(Zn(l.messages.types[o],t.fullField,t.type))},uB=function(t,n,r,i,l){var m=typeof t.len=="number",o=typeof t.min=="number",a=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,u=null,f=typeof n=="number",s=typeof n=="string",h=Array.isArray(n);if(f?u="number":s?u="string":h&&(u="array"),!u)return!1;h&&(d=n.length),s&&(d=n.replace(c,"_").length),m?d!==t.len&&i.push(Zn(l.messages[u].len,t.fullField,t.len)):o&&!a&&d<t.min?i.push(Zn(l.messages[u].min,t.fullField,t.min)):a&&!o&&d>t.max?i.push(Zn(l.messages[u].max,t.fullField,t.max)):o&&a&&(d<t.min||d>t.max)&&i.push(Zn(l.messages[u].range,t.fullField,t.min,t.max))},wo="enum",cB=function(t,n,r,i,l){t[wo]=Array.isArray(t[wo])?t[wo]:[],t[wo].indexOf(n)===-1&&i.push(Zn(l.messages[wo],t.fullField,t[wo].join(", ")))},fB=function(t,n,r,i,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(Zn(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var m=new RegExp(t.pattern);m.test(n)||i.push(Zn(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},ut={required:O2,whitespace:oB,type:lB,range:uB,enum:cB,pattern:fB},dB=function(t,n,r,i,l){var m=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(an(n,"string")&&!t.required)return r();ut.required(t,n,i,m,l,"string"),an(n,"string")||(ut.type(t,n,i,m,l),ut.range(t,n,i,m,l),ut.pattern(t,n,i,m,l),t.whitespace===!0&&ut.whitespace(t,n,i,m,l))}r(m)},hB=function(t,n,r,i,l){var m=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(an(n)&&!t.required)return r();ut.required(t,n,i,m,l),n!==void 0&&ut.type(t,n,i,m,l)}r(m)},pB=function(t,n,r,i,l){var m=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(n===""&&(n=void 0),an(n)&&!t.required)return r();ut.required(t,n,i,m,l),n!==void 0&&(ut.type(t,n,i,m,l),ut.range(t,n,i,m,l))}r(m)},mB=function(t,n,r,i,l){var m=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(an(n)&&!t.required)return r();ut.required(t,n,i,m,l),n!==void 0&&ut.type(t,n,i,m,l)}r(m)},gB=function(t,n,r,i,l){var m=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(an(n)&&!t.required)return r();ut.required(t,n,i,m,l),an(n)||ut.type(t,n,i,m,l)}r(m)},vB=function(t,n,r,i,l){var m=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(an(n)&&!t.required)return r();ut.required(t,n,i,m,l),n!==void 0&&(ut.type(t,n,i,m,l),ut.range(t,n,i,m,l))}r(m)},yB=function(t,n,r,i,l){var m=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(an(n)&&!t.required)return r();ut.required(t,n,i,m,l),n!==void 0&&(ut.type(t,n,i,m,l),ut.range(t,n,i,m,l))}r(m)},bB=function(t,n,r,i,l){var m=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(n==null&&!t.required)return r();ut.required(t,n,i,m,l,"array"),n!=null&&(ut.type(t,n,i,m,l),ut.range(t,n,i,m,l))}r(m)},_B=function(t,n,r,i,l){var m=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(an(n)&&!t.required)return r();ut.required(t,n,i,m,l),n!==void 0&&ut.type(t,n,i,m,l)}r(m)},wB="enum",SB=function(t,n,r,i,l){var m=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(an(n)&&!t.required)return r();ut.required(t,n,i,m,l),n!==void 0&&ut[wB](t,n,i,m,l)}r(m)},CB=function(t,n,r,i,l){var m=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(an(n,"string")&&!t.required)return r();ut.required(t,n,i,m,l),an(n,"string")||ut.pattern(t,n,i,m,l)}r(m)},xB=function(t,n,r,i,l){var m=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(an(n,"date")&&!t.required)return r();if(ut.required(t,n,i,m,l),!an(n,"date")){var a;n instanceof Date?a=n:a=new Date(n),ut.type(t,a,i,m,l),a&&ut.range(t,a.getTime(),i,m,l)}}r(m)},TB=function(t,n,r,i,l){var m=[],o=Array.isArray(n)?"array":typeof n;ut.required(t,n,i,m,l,o),r(m)},vd=function(t,n,r,i,l){var m=t.type,o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(an(n,m)&&!t.required)return r();ut.required(t,n,i,o,l,m),an(n,m)||ut.type(t,n,i,o,l)}r(o)},kB=function(t,n,r,i,l){var m=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(an(n)&&!t.required)return r();ut.required(t,n,i,m,l)}r(m)},el={string:dB,method:hB,number:pB,boolean:mB,regexp:gB,integer:vB,float:yB,array:bB,object:_B,enum:SB,pattern:CB,date:xB,url:vd,hex:vd,email:vd,required:TB,any:kB};function Rh(){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 Dh=Rh(),au=function(){function e(n){this.rules=null,this._messages=Dh,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(l){var m=r[l];i.rules[l]=Array.isArray(m)?m:[m]})},t.messages=function(r){return r&&(this._messages=fy(Rh(),r)),this._messages},t.validate=function(r,i,l){var m=this;i===void 0&&(i={}),l===void 0&&(l=function(){});var o=r,a=i,c=l;if(typeof a=="function"&&(c=a,a={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,o),Promise.resolve(o);function d(g){var p=[],v={};function y(w){if(Array.isArray(w)){var S;p=(S=p).concat.apply(S,w)}else p.push(w)}for(var b=0;b<g.length;b++)y(g[b]);p.length?(v=Lh(p),c(p,v)):c(null,o)}if(a.messages){var u=this.messages();u===Dh&&(u=Rh()),fy(u,a.messages),a.messages=u}else a.messages=this.messages();var f={},s=a.keys||Object.keys(this.rules);s.forEach(function(g){var p=m.rules[g],v=o[g];p.forEach(function(y){var b=y;typeof b.transform=="function"&&(o===r&&(o=La({},o)),v=o[g]=b.transform(v)),typeof b=="function"?b={validator:b}:b=La({},b),b.validator=m.getValidationMethod(b),b.validator&&(b.field=g,b.fullField=b.fullField||g,b.type=m.getType(b),f[g]=f[g]||[],f[g].push({rule:b,value:v,source:o,field:g}))})});var h={};return rB(f,a,function(g,p){var v=g.rule,y=(v.type==="object"||v.type==="array")&&(typeof v.fields=="object"||typeof v.defaultField=="object");y=y&&(v.required||!v.required&&g.value),v.field=g.field;function b(C,T){return La({},T,{fullField:v.fullField+"."+C,fullFields:v.fullFields?[].concat(v.fullFields,[C]):[C]})}function w(C){C===void 0&&(C=[]);var T=Array.isArray(C)?C:[C];!a.suppressWarning&&T.length&&e.warning("async-validator:",T),T.length&&v.message!==void 0&&(T=[].concat(v.message));var k=T.map(cy(v,o));if(a.first&&k.length)return h[v.field]=1,p(k);if(!y)p(k);else{if(v.required&&!g.value)return v.message!==void 0?k=[].concat(v.message).map(cy(v,o)):a.error&&(k=[a.error(v,Zn(a.messages.required,v.field))]),p(k);var A={};v.defaultField&&Object.keys(g.value).map(function(I){A[I]=v.defaultField}),A=La({},A,g.rule.fields);var P={};Object.keys(A).forEach(function(I){var $=A[I],O=Array.isArray($)?$:[$];P[I]=O.map(b.bind(null,I))});var z=new e(P);z.messages(a.messages),g.rule.options&&(g.rule.options.messages=a.messages,g.rule.options.error=a.error),z.validate(g.value,g.rule.options||a,function(I){var $=[];k&&k.length&&$.push.apply($,k),I&&I.length&&$.push.apply($,I),p($.length?$:null)})}}var S;if(v.asyncValidator)S=v.asyncValidator(v,g.value,w,g.source,a);else if(v.validator){try{S=v.validator(v,g.value,w,g.source,a)}catch(C){console.error==null||console.error(C),a.suppressValidatorError||setTimeout(function(){throw C},0),w(C.message)}S===!0?w():S===!1?w(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||(v.fullField||v.field)+" fails"):S instanceof Array?w(S):S instanceof Error&&w(S.message)}S&&S.then&&S.then(function(){return w()},function(C){return w(C)})},function(g){d(g)},o)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!el.hasOwnProperty(r.type))throw new Error(Zn("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),l=i.indexOf("message");return l!==-1&&i.splice(l,1),i.length===1&&i[0]==="required"?el.required:el[this.getType(r)]||void 0},e}();au.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");el[t]=n};au.warning=QF;au.messages=Dh;au.validators=el;const EB=["","error","validating","success"],OB=Be({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:Ae([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Ae([Object,Array])},error:String,validateStatus:{type:String,values:EB},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:eu}}),hy="ElLabelWrap";var AB=be({name:hy,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Xe(fs,void 0);Xe(Xa)||Ln(hy,"usage: <el-form-item><label-wrap /></el-form-item>");const i=Pe("form"),l=ie(),m=ie(0),o=()=>{var d;if((d=l.value)!=null&&d.firstElementChild){const u=window.getComputedStyle(l.value.firstElementChild).width;return Math.ceil(Number.parseFloat(u))}else return 0},a=(d="update")=>{Ge(()=>{t.default&&e.isAutoWidth&&(d==="update"?m.value=o():d==="remove"&&(n==null||n.deregisterLabelWidth(m.value)))})},c=()=>a("update");return tt(()=>{c()}),Jt(()=>{a("remove")}),no(()=>c()),Te(m,(d,u)=>{e.updateAll&&(n==null||n.registerLabelWidth(d,u))}),Jr(ee(()=>{var d,u;return(u=(d=l.value)==null?void 0:d.firstElementChild)!=null?u:null}),c),()=>{var d,u;if(!t)return null;const{isAutoWidth:f}=e;if(f){const s=n==null?void 0:n.autoLabelWidth,h={};if(s&&s!=="auto"){const g=Math.max(0,Number.parseInt(s,10)-m.value),p=n.labelPosition==="left"?"marginRight":"marginLeft";g&&(h[p]=`${g}px`)}return oe("div",{ref:l,class:[i.be("item","label-wrap")],style:h},[(d=t.default)==null?void 0:d.call(t)])}else return oe($e,{ref:l},[(u=t.default)==null?void 0:u.call(t)])}}});const PB=["role","aria-labelledby"],IB={name:"ElFormItem"},MB=be({...IB,props:OB,setup(e,{expose:t}){const n=e,r=os(),i=Xe(fs,void 0),l=Xe(Xa,void 0),m=br(void 0,{formItem:!1}),o=Pe("form-item"),a=oa().value,c=ie([]),d=ie(""),u=y5(d,100),f=ie(""),s=ie();let h,g=!1;const p=ee(()=>{if((i==null?void 0:i.labelPosition)==="top")return{};const H=qr(n.labelWidth||(i==null?void 0:i.labelWidth)||"");return H?{width:H}:{}}),v=ee(()=>{if((i==null?void 0:i.labelPosition)==="top"||(i==null?void 0:i.inline))return{};if(!n.label&&!n.labelWidth&&A)return{};const H=qr(n.labelWidth||(i==null?void 0:i.labelWidth)||"");return!n.label&&!r.label?{marginLeft:H}:{}}),y=ee(()=>[o.b(),o.m(m.value),o.is("error",d.value==="error"),o.is("validating",d.value==="validating"),o.is("success",d.value==="success"),o.is("required",O.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}]),b=ee(()=>tr(n.inlineMessage)?n.inlineMessage:(i==null?void 0:i.inlineMessage)||!1),w=ee(()=>[o.e("error"),{[o.em("error","inline")]:b.value}]),S=ee(()=>n.prop?Ke(n.prop)?n.prop:n.prop.join("."):""),C=ee(()=>!!(n.label||r.label)),T=ee(()=>n.for||c.value.length===1?c.value[0]:void 0),k=ee(()=>!T.value&&C.value),A=!!l,P=ee(()=>{const H=i==null?void 0:i.model;if(!(!H||!n.prop))return ld(H,n.prop).value}),z=ee(()=>{const{required:H}=n,Q=[];n.rules&&Q.push(...wl(n.rules));const te=i==null?void 0:i.rules;if(te&&n.prop){const fe=ld(te,n.prop).value;fe&&Q.push(...wl(fe))}if(H!==void 0){const fe=Q.map((me,_e)=>[me,_e]).filter(([me])=>Object.keys(me).includes("required"));if(fe.length>0)for(const[me,_e]of fe)me.required!==H&&(Q[_e]={...me,required:H});else Q.push({required:H})}return Q}),I=ee(()=>z.value.length>0),$=H=>z.value.filter(te=>!te.trigger||!H?!0:Array.isArray(te.trigger)?te.trigger.includes(H):te.trigger===H).map(({trigger:te,...fe})=>fe),O=ee(()=>z.value.some(H=>H.required)),Y=ee(()=>{var H;return u.value==="error"&&n.showMessage&&((H=i==null?void 0:i.showMessage)!=null?H:!0)}),ae=ee(()=>`${n.label||""}${(i==null?void 0:i.labelSuffix)||""}`),q=H=>{d.value=H},J=H=>{var Q,te;const{errors:fe,fields:me}=H;(!fe||!me)&&console.error(H),q("error"),f.value=fe?(te=(Q=fe==null?void 0:fe[0])==null?void 0:Q.message)!=null?te:`${n.prop} is required`:"",i==null||i.emit("validate",n.prop,!1,f.value)},E=()=>{q("success"),i==null||i.emit("validate",n.prop,!0,"")},V=async H=>{const Q=S.value;return new au({[Q]:H}).validate({[Q]:P.value},{firstFields:!0}).then(()=>(E(),!0)).catch(fe=>(J(fe),Promise.reject(fe)))},M=async(H,Q)=>{if(g)return!1;const te=Ve(Q);if(!I.value)return Q==null||Q(!1),!1;const fe=$(H);return fe.length===0?(Q==null||Q(!0),!0):(q("validating"),V(fe).then(()=>(Q==null||Q(!0),!0)).catch(me=>{const{fields:_e}=me;return Q==null||Q(!1,_e),te?!1:Promise.reject(_e)}))},R=()=>{q(""),f.value="",g=!1},W=async()=>{const H=i==null?void 0:i.model;if(!H||!n.prop)return;const Q=ld(H,n.prop);g=!0,Q.value=Qv(h),await Ge(),R(),g=!1},D=H=>{c.value.includes(H)||c.value.push(H)},B=H=>{c.value=c.value.filter(Q=>Q!==H)};Te(()=>n.error,H=>{f.value=H||"",q(H?"error":"")},{immediate:!0}),Te(()=>n.validateStatus,H=>q(H||""));const Z=Tt({...pr(n),$el:s,size:m,validateState:d,labelId:a,inputIds:c,isGroup:k,addInputId:D,removeInputId:B,resetField:W,clearValidate:R,validate:M});return gt(Xa,Z),tt(()=>{n.prop&&(i==null||i.addField(Z),h=Qv(P.value))}),Jt(()=>{i==null||i.removeField(Z)}),t({size:m,validateMessage:f,validateState:d,validate:M,clearValidate:R,resetField:W}),(H,Q)=>{var te;return N(),se("div",{ref_key:"formItemRef",ref:s,class:ce(_(y)),role:_(k)?"group":void 0,"aria-labelledby":_(k)?_(a):void 0},[oe(_(AB),{"is-auto-width":_(p).width==="auto","update-all":((te=_(i))==null?void 0:te.labelWidth)==="auto"},{default:ue(()=>[_(C)?(N(),ve(Ct(_(T)?"label":"div"),{key:0,id:_(a),for:_(T),class:ce(_(o).e("label")),style:ze(_(p))},{default:ue(()=>[ke(H.$slots,"label",{label:_(ae)},()=>[Ne(Ee(_(ae)),1)])]),_:3},8,["id","for","class","style"])):ge("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),ne("div",{class:ce(_(o).e("content")),style:ze(_(v))},[ke(H.$slots,"default"),oe(Hn,{name:`${_(o).namespace.value}-zoom-in-top`},{default:ue(()=>[_(Y)?ke(H.$slots,"error",{key:0,error:f.value},()=>[ne("div",{class:ce(_(w))},Ee(f.value),3)]):ge("v-if",!0)]),_:3},8,["name"])],6)],10,PB)}}});var A2=Re(MB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const Em=_t(KF,{FormItem:A2}),Qi=yr(A2),LB=Be({urlList:{type:Ae(Array),default:()=>ln([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0}}),RB={close:()=>!0,switch:e=>lt(e)},DB=["src"],FB={name:"ElImageViewer"},BB=be({...FB,props:LB,emits:RB,setup(e,{expose:t,emit:n}){const r=e,i={CONTAIN:{name:"contain",icon:fl(fO)},ORIGINAL:{name:"original",icon:fl(FO)}},l=A6()?"DOMMouseScroll":"mousewheel",{t:m}=Tn(),o=Pe("image-viewer"),{nextZIndex:a}=nu(),c=ie(),d=ie([]),u=Tp(),f=ie(!0),s=ie(r.initialIndex),h=mn(i.CONTAIN),g=ie({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),p=ee(()=>{const{urlList:J}=r;return J.length<=1}),v=ee(()=>s.value===0),y=ee(()=>s.value===r.urlList.length-1),b=ee(()=>r.urlList[s.value]),w=ee(()=>{const{scale:J,deg:E,offsetX:V,offsetY:M,enableTransition:R}=g.value;let W=V/J,D=M/J;switch(E%360){case 90:case-270:[W,D]=[D,-W];break;case 180:case-180:[W,D]=[-W,-D];break;case 270:case-90:[W,D]=[-D,W];break}const B={transform:`scale(${J}) rotate(${E}deg) translate(${W}px, ${D}px)`,transition:R?"transform .3s":""};return h.value.name===i.CONTAIN.name&&(B.maxWidth=B.maxHeight="100%"),B}),S=ee(()=>lt(r.zIndex)?r.zIndex:a());function C(){k(),n("close")}function T(){const J=qs(V=>{switch(V.code){case Et.esc:r.closeOnPressEscape&&C();break;case Et.space:$();break;case Et.left:Y();break;case Et.up:q("zoomIn");break;case Et.right:ae();break;case Et.down:q("zoomOut");break}}),E=qs(V=>{(V.wheelDelta?V.wheelDelta:-V.detail)>0?q("zoomIn",{zoomRate:1.2,enableTransition:!1}):q("zoomOut",{zoomRate:1.2,enableTransition:!1})});u.run(()=>{bt(document,"keydown",J),bt(document,l,E)})}function k(){u.stop()}function A(){f.value=!1}function P(J){f.value=!1,J.target.alt=m("el.image.error")}function z(J){if(f.value||J.button!==0||!c.value)return;g.value.enableTransition=!1;const{offsetX:E,offsetY:V}=g.value,M=J.pageX,R=J.pageY,W=qs(B=>{g.value={...g.value,offsetX:E+B.pageX-M,offsetY:V+B.pageY-R}}),D=bt(document,"mousemove",W);bt(document,"mouseup",()=>{D()}),J.preventDefault()}function I(){g.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function $(){if(f.value)return;const J=xh(i),E=Object.values(i),V=h.value.name,R=(E.findIndex(W=>W.name===V)+1)%J.length;h.value=i[J[R]],I()}function O(J){const E=r.urlList.length;s.value=(J+E)%E}function Y(){v.value&&!r.infinite||O(s.value-1)}function ae(){y.value&&!r.infinite||O(s.value+1)}function q(J,E={}){if(f.value)return;const{zoomRate:V,rotateDeg:M,enableTransition:R}={zoomRate:1.4,rotateDeg:90,enableTransition:!0,...E};switch(J){case"zoomOut":g.value.scale>.2&&(g.value.scale=Number.parseFloat((g.value.scale/V).toFixed(3)));break;case"zoomIn":g.value.scale<7&&(g.value.scale=Number.parseFloat((g.value.scale*V).toFixed(3)));break;case"clockwise":g.value.deg+=M;break;case"anticlockwise":g.value.deg-=M;break}g.value.enableTransition=R}return Te(b,()=>{Ge(()=>{const J=d.value[0];J!=null&&J.complete||(f.value=!0)})}),Te(s,J=>{I(),n("switch",J)}),tt(()=>{var J,E;T(),(E=(J=c.value)==null?void 0:J.focus)==null||E.call(J)}),t({setActiveItem:O}),(J,E)=>(N(),ve(Bp,{to:"body",disabled:!J.teleported},[oe(Hn,{name:"viewer-fade",appear:""},{default:ue(()=>[ne("div",{ref_key:"wrapper",ref:c,tabindex:-1,class:ce(_(o).e("wrapper")),style:ze({zIndex:_(S)})},[ne("div",{class:ce(_(o).e("mask")),onClick:E[0]||(E[0]=Qe(V=>J.hideOnClickModal&&C(),["self"]))},null,2),ge(" CLOSE "),ne("span",{class:ce([_(o).e("btn"),_(o).e("close")]),onClick:C},[oe(_(De),null,{default:ue(()=>[oe(_(Kr))]),_:1})],2),ge(" ARROW "),_(p)?ge("v-if",!0):(N(),se($e,{key:0},[ne("span",{class:ce([_(o).e("btn"),_(o).e("prev"),_(o).is("disabled",!J.infinite&&_(v))]),onClick:Y},[oe(_(De),null,{default:ue(()=>[oe(_(vf))]),_:1})],2),ne("span",{class:ce([_(o).e("btn"),_(o).e("next"),_(o).is("disabled",!J.infinite&&_(y))]),onClick:ae},[oe(_(De),null,{default:ue(()=>[oe(_(us))]),_:1})],2)],64)),ge(" ACTIONS "),ne("div",{class:ce([_(o).e("btn"),_(o).e("actions")])},[ne("div",{class:ce(_(o).e("actions__inner"))},[oe(_(De),{onClick:E[1]||(E[1]=V=>q("zoomOut"))},{default:ue(()=>[oe(_(ZO))]),_:1}),oe(_(De),{onClick:E[2]||(E[2]=V=>q("zoomIn"))},{default:ue(()=>[oe(_($1))]),_:1}),ne("i",{class:ce(_(o).e("actions__divider"))},null,2),oe(_(De),{onClick:$},{default:ue(()=>[(N(),ve(Ct(_(h).icon)))]),_:1}),ne("i",{class:ce(_(o).e("actions__divider"))},null,2),oe(_(De),{onClick:E[3]||(E[3]=V=>q("anticlockwise"))},{default:ue(()=>[oe(_(R1))]),_:1}),oe(_(De),{onClick:E[4]||(E[4]=V=>q("clockwise"))},{default:ue(()=>[oe(_(D1))]),_:1})],2)],2),ge(" CANVAS "),ne("div",{class:ce(_(o).e("canvas"))},[(N(!0),se($e,null,$t(J.urlList,(V,M)=>xt((N(),se("img",{ref_for:!0,ref:R=>d.value[M]=R,key:V,src:V,style:ze(_(w)),class:ce(_(o).e("img")),onLoad:A,onError:P,onMousedown:z},null,46,DB)),[[Gt,M===s.value]])),128))],2),ke(J.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var $B=Re(BB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const NB=_t($B),zB=Be({hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:{type:Boolean,default:!1},scrollContainer:{type:Ae([String,Object])},previewSrcList:{type:Ae(Array),default:()=>ln([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0}}),jB={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>lt(e),close:()=>!0,show:()=>!0},VB=["src","loading"],UB={key:0},HB={name:"ElImage",inheritAttrs:!1},WB=be({...HB,props:zB,emits:jB,setup(e,{emit:t}){const n=e;let r="";const{t:i}=Tn(),l=Pe("image"),m=L_(),o=Ow(),a=ie(),c=ie(!1),d=ie(!0),u=ie(!1),f=ie(),s=ie(),h=dt&&"loading"in HTMLImageElement.prototype;let g,p;const v=ee(()=>m.style),y=ee(()=>{const{fit:q}=n;return dt&&q?{objectFit:q}:{}}),b=ee(()=>{const{previewSrcList:q}=n;return Array.isArray(q)&&q.length>0}),w=ee(()=>{const{previewSrcList:q,initialIndex:J}=n;let E=J;return J>q.length-1&&(E=0),E}),S=ee(()=>n.loading==="eager"?!1:!h&&n.loading==="lazy"||n.lazy),C=()=>{!dt||(d.value=!0,c.value=!1,a.value=n.src)};function T(q){d.value=!1,c.value=!1,t("load",q)}function k(q){d.value=!1,c.value=!0,t("error",q)}function A(){h6(f.value,s.value)&&(C(),I())}const P=gw(A,200);async function z(){var q;if(!dt)return;await Ge();const{scrollContainer:J}=n;Ya(J)?s.value=J:Ke(J)&&J!==""?s.value=(q=document.querySelector(J))!=null?q:void 0:f.value&&(s.value=y6(f.value)),s.value&&(g=bt(s,"scroll",P),setTimeout(()=>A(),100))}function I(){!dt||!s.value||!P||(g==null||g(),s.value=void 0)}function $(q){if(!!q.ctrlKey){if(q.deltaY<0)return q.preventDefault(),!1;if(q.deltaY>0)return q.preventDefault(),!1}}function O(){!b.value||(p=bt("wheel",$,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",u.value=!0,t("show"))}function Y(){p==null||p(),document.body.style.overflow=r,u.value=!1,t("close")}function ae(q){t("switch",q)}return Te(()=>n.src,()=>{S.value?(d.value=!0,c.value=!1,I(),z()):C()}),tt(()=>{S.value?z():C()}),(q,J)=>(N(),se("div",{ref_key:"container",ref:f,class:ce([_(l).b(),q.$attrs.class]),style:ze(_(v))},[a.value!==void 0&&!c.value?(N(),se("img",zn({key:0},_(o),{src:a.value,loading:q.loading,style:_(y),class:[_(l).e("inner"),_(b)&&_(l).e("preview"),d.value&&_(l).is("loading")],onClick:O,onLoad:T,onError:k}),null,16,VB)):ge("v-if",!0),d.value||c.value?(N(),se("div",{key:1,class:ce(_(l).e("wrapper"))},[d.value?ke(q.$slots,"placeholder",{key:0},()=>[ne("div",{class:ce(_(l).e("placeholder"))},null,2)]):c.value?ke(q.$slots,"error",{key:1},()=>[ne("div",{class:ce(_(l).e("error"))},Ee(_(i)("el.image.error")),3)]):ge("v-if",!0)],2)):ge("v-if",!0),_(b)?(N(),se($e,{key:2},[u.value?(N(),ve(_(NB),{key:0,"z-index":q.zIndex,"initial-index":_(w),infinite:q.infinite,"url-list":q.previewSrcList,"hide-on-click-modal":q.hideOnClickModal,teleported:q.previewTeleported,"close-on-press-escape":q.closeOnPressEscape,onClose:Y,onSwitch:ae},{default:ue(()=>[q.$slots.viewer?(N(),se("div",UB,[ke(q.$slots,"viewer")])):ge("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):ge("v-if",!0)],64)):ge("v-if",!0)],6))}});var GB=Re(WB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const zo=_t(GB),YB=Be({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:aa,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||lt(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),KB={[Mr]:(e,t)=>e!==t,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Ka]:e=>lt(e)||Hr(e),[mt]:e=>lt(e)||Hr(e)},XB=["aria-label","onKeydown"],qB=["aria-label","onKeydown"],ZB={name:"ElInputNumber"},JB=be({...ZB,props:YB,emits:KB,setup(e,{expose:t,emit:n}){const r=e,{t:i}=Tn(),l=Pe("input-number"),m=ie(),o=Tt({currentValue:r.modelValue,userInput:null}),{formItem:a}=ha(),c=ee(()=>lt(r.modelValue)&&y(r.modelValue,-1)<r.min),d=ee(()=>lt(r.modelValue)&&y(r.modelValue)>r.max),u=ee(()=>{const $=v(r.step);return Tr(r.precision)?Math.max(v(r.modelValue),$):($>r.precision,r.precision)}),f=ee(()=>r.controls&&r.controlsPosition==="right"),s=br(),h=so(),g=ee(()=>{if(o.userInput!==null)return o.userInput;let $=o.currentValue;if(Hr($))return"";if(lt($)){if(Number.isNaN($))return"";Tr(r.precision)||($=$.toFixed(r.precision))}return $}),p=($,O)=>{if(Tr(O)&&(O=u.value),O===0)return Math.round($);let Y=String($);const ae=Y.indexOf(".");if(ae===-1||!Y.replace(".","").split("")[ae+O])return $;const E=Y.length;return Y.charAt(E-1)==="5"&&(Y=`${Y.slice(0,Math.max(0,E-1))}6`),Number.parseFloat(Number(Y).toFixed(O))},v=$=>{if(Hr($))return 0;const O=$.toString(),Y=O.indexOf(".");let ae=0;return Y!==-1&&(ae=O.length-Y-1),ae},y=($,O=1)=>lt($)?p($+r.step*O):o.currentValue,b=()=>{if(r.readonly||h.value||d.value)return;const $=r.modelValue||0,O=y($);C(O)},w=()=>{if(r.readonly||h.value||c.value)return;const $=r.modelValue||0,O=y($,-1);C(O)},S=($,O)=>{const{max:Y,min:ae,step:q,precision:J,stepStrictly:E,valueOnClear:V}=r;let M=Number($);if(Hr($)||Number.isNaN(M))return null;if($===""){if(V===null)return null;M=Ke(V)?{min:ae,max:Y}[V]:V}return E&&(M=p(Math.round(M/q)*q,J)),Tr(J)||(M=p(M,J)),(M>Y||M<ae)&&(M=M>Y?Y:ae,O&&n("update:modelValue",M)),M},C=$=>{var O;const Y=o.currentValue,ae=S($);Y!==ae&&(o.userInput=null,n("update:modelValue",ae),n("input",ae),n("change",ae,Y),r.validateEvent&&((O=a==null?void 0:a.validate)==null||O.call(a,"change").catch(q=>void 0)),o.currentValue=ae)},T=$=>o.userInput=$,k=$=>{const O=$!==""?Number($):"";(lt(O)&&!Number.isNaN(O)||$==="")&&C(O),o.userInput=null},A=()=>{var $,O;(O=($=m.value)==null?void 0:$.focus)==null||O.call($)},P=()=>{var $,O;(O=($=m.value)==null?void 0:$.blur)==null||O.call($)},z=$=>{n("focus",$)},I=$=>{var O;n("blur",$),r.validateEvent&&((O=a==null?void 0:a.validate)==null||O.call(a,"blur").catch(Y=>void 0))};return Te(()=>r.modelValue,$=>{o.currentValue=S($,!0),o.userInput=null},{immediate:!0}),tt(()=>{var $;const{min:O,max:Y,modelValue:ae}=r,q=($=m.value)==null?void 0:$.input;if(q.setAttribute("role","spinbutton"),Number.isFinite(Y)?q.setAttribute("aria-valuemax",String(Y)):q.removeAttribute("aria-valuemax"),Number.isFinite(O)?q.setAttribute("aria-valuemin",String(O)):q.removeAttribute("aria-valuemin"),q.setAttribute("aria-valuenow",String(o.currentValue)),q.setAttribute("aria-disabled",String(h.value)),!lt(ae)&&ae!=null){let J=Number(ae);Number.isNaN(J)&&(J=null),n("update:modelValue",J)}}),no(()=>{var $;const O=($=m.value)==null?void 0:$.input;O==null||O.setAttribute("aria-valuenow",`${o.currentValue}`)}),t({focus:A,blur:P}),($,O)=>(N(),se("div",{class:ce([_(l).b(),_(l).m(_(s)),_(l).is("disabled",_(h)),_(l).is("without-controls",!$.controls),_(l).is("controls-right",_(f))]),onDragstart:O[0]||(O[0]=Qe(()=>{},["prevent"]))},[$.controls?xt((N(),se("span",{key:0,role:"button","aria-label":_(i)("el.inputNumber.decrease"),class:ce([_(l).e("decrease"),_(l).is("disabled",_(c))]),onKeydown:Dt(w,["enter"])},[oe(_(De),null,{default:ue(()=>[_(f)?(N(),ve(_(Yo),{key:0})):(N(),ve(_(L1),{key:1}))]),_:1})],42,XB)),[[_(ty),w]]):ge("v-if",!0),$.controls?xt((N(),se("span",{key:1,role:"button","aria-label":_(i)("el.inputNumber.increase"),class:ce([_(l).e("increase"),_(l).is("disabled",_(d))]),onKeydown:Dt(b,["enter"])},[oe(_(De),null,{default:ue(()=>[_(f)?(N(),ve(_(ph),{key:0})):(N(),ve(_(bf),{key:1}))]),_:1})],42,qB)),[[_(ty),b]]):ge("v-if",!0),oe(_(lo),{id:$.id,ref_key:"input",ref:m,type:"number",step:$.step,"model-value":_(g),placeholder:$.placeholder,readonly:$.readonly,disabled:_(h),size:_(s),max:$.max,min:$.min,name:$.name,label:$.label,"validate-event":!1,onKeydown:[Dt(Qe(b,["prevent"]),["up"]),Dt(Qe(w,["prevent"]),["down"])],onBlur:I,onFocus:z,onInput:T,onChange:k},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var QB=Re(JB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const Uc=_t(QB),e$=Be({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:qt}}),t$={click:e=>e instanceof MouseEvent},n$=["href"],r$={name:"ElLink"},i$=be({...r$,props:e$,emits:t$,setup(e,{emit:t}){const n=e,r=Pe("link");function i(l){n.disabled||t("click",l)}return(l,m)=>(N(),se("a",{class:ce([_(r).b(),_(r).m(l.type),_(r).is("disabled",l.disabled),_(r).is("underline",l.underline&&!l.disabled)]),href:l.disabled||!l.href?void 0:l.href,onClick:i},[l.icon?(N(),ve(_(De),{key:0},{default:ue(()=>[(N(),ve(Ct(l.icon)))]),_:1})):ge("v-if",!0),l.$slots.default?(N(),se("span",{key:1,class:ce(_(r).e("inner"))},[ke(l.$slots,"default")],2)):ge("v-if",!0),l.$slots.icon?ke(l.$slots,"icon",{key:2}):ge("v-if",!0)],10,n$))}});var a$=Re(i$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const o$=_t(a$);class s${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 Et.down:{this.gotoSubIndex(this.subIndex+1),i=!0;break}case Et.up:{this.gotoSubIndex(this.subIndex-1),i=!0;break}case Et.tab:{ic(t,"mouseleave");break}case Et.enter:case Et.space:{i=!0,r.currentTarget.click();break}}return i&&(r.preventDefault(),r.stopPropagation()),!1})})}}class l${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 s$(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case Et.down:{ic(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case Et.up:{ic(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case Et.tab:{ic(t.currentTarget,"mouseleave");break}case Et.enter:case Et.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}}class u${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 l$(r,t)})}}const c$=be({name:"ElMenuCollapseTransition",setup(){const e=Pe("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,r){Ls(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",r()},onAfterEnter(n){ac(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),Th(n,e.m("collapse"))?(ac(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),Ls(n,e.m("collapse"))):(Ls(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),ac(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){Ls(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function f$(e,t,n,r,i,l){return N(),ve(Hn,zn({mode:"out-in"},e.listeners),{default:ue(()=>[ke(e.$slots,"default")]),_:3},16)}var d$=Re(c$,[["render",f$],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function P2(e,t){const n=ee(()=>{let i=e.parent;const l=[t.value];for(;i.type.name!=="ElMenu";)i.props.index&&l.unshift(i.props.index),i=i.parent;return l});return{parentMenu:ee(()=>{let i=e.parent;for(;i&&!["ElMenu","ElSubMenu"].includes(i.type.name);)i=i.parent;return i}),indexPath:n}}function h$(e){return ee(()=>{const n=e.backgroundColor;return n?new h2(n).shade(20).toString():""})}const I2=(e,t)=>{const n=Pe("menu");return ee(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":h$(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},p$=Be({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:qt},expandOpenIcon:{type:qt},collapseCloseIcon:{type:qt},collapseOpenIcon:{type:qt}}),yd="ElSubMenu";var Om=be({name:yd,props:p$,setup(e,{slots:t,expose:n}){const r=kt(),{indexPath:i,parentMenu:l}=P2(r,ee(()=>e.index)),m=Pe("menu"),o=Pe("sub-menu"),a=Xe("rootMenu");a||Ln(yd,"can not inject root menu");const c=Xe(`subMenu:${l.value.uid}`);c||Ln(yd,"can not inject sub menu");const d=ie({}),u=ie({});let f;const s=ie(!1),h=ie(),g=ie(null),p=ee(()=>z.value==="horizontal"&&y.value?"bottom-start":"right-start"),v=ee(()=>z.value==="horizontal"&&y.value||z.value==="vertical"&&!a.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?C.value?e.expandOpenIcon:e.expandCloseIcon:Yo:e.collapseCloseIcon&&e.collapseOpenIcon?C.value?e.collapseOpenIcon:e.collapseCloseIcon:us),y=ee(()=>c.level===0),b=ee(()=>e.popperAppendToBody===void 0?y.value:Boolean(e.popperAppendToBody)),w=ee(()=>a.props.collapse?`${m.namespace.value}-zoom-in-left`:`${m.namespace.value}-zoom-in-top`),S=ee(()=>z.value==="horizontal"&&y.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),C=ee(()=>a.openedMenus.includes(e.index)),T=ee(()=>{let E=!1;return Object.values(d.value).forEach(V=>{V.active&&(E=!0)}),Object.values(u.value).forEach(V=>{V.active&&(E=!0)}),E}),k=ee(()=>a.props.backgroundColor||""),A=ee(()=>a.props.activeTextColor||""),P=ee(()=>a.props.textColor||""),z=ee(()=>a.props.mode),I=Tt({index:e.index,indexPath:i,active:T}),$=ee(()=>z.value!=="horizontal"?{color:P.value}:{borderBottomColor:T.value?a.props.activeTextColor?A.value:"":"transparent",color:T.value?A.value:P.value}),O=()=>{var E,V,M;return(M=(V=(E=g.value)==null?void 0:E.popperRef)==null?void 0:V.popperInstanceRef)==null?void 0:M.destroy()},Y=E=>{E||O()},ae=()=>{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})},q=(E,V=e.showTimeout)=>{var M;E.type!=="focus"&&(a.props.menuTrigger==="click"&&a.props.mode==="horizontal"||!a.props.collapse&&a.props.mode==="vertical"||e.disabled||(c.mouseInChild.value=!0,f==null||f(),{stop:f}=Cl(()=>{a.openMenu(e.index,i.value)},V),b.value&&((M=l.value.vnode.el)==null||M.dispatchEvent(new MouseEvent("mouseenter")))))},J=(E=!1)=>{var V,M;a.props.menuTrigger==="click"&&a.props.mode==="horizontal"||!a.props.collapse&&a.props.mode==="vertical"||(f==null||f(),c.mouseInChild.value=!1,{stop:f}=Cl(()=>!s.value&&a.closeMenu(e.index,i.value),e.hideTimeout),b.value&&E&&((V=r.parent)==null?void 0:V.type.name)==="ElSubMenu"&&((M=c.handleMouseleave)==null||M.call(c,!0)))};Te(()=>a.props.collapse,E=>Y(Boolean(E)));{const E=M=>{u.value[M.index]=M},V=M=>{delete u.value[M.index]};gt(`subMenu:${r.uid}`,{addSubMenu:E,removeSubMenu:V,handleMouseleave:J,mouseInChild:s,level:c.level+1})}return n({opened:C}),tt(()=>{a.addSubMenu(I),c.addSubMenu(I)}),Jt(()=>{c.removeSubMenu(I),a.removeSubMenu(I)}),()=>{var E;const V=[(E=t.title)==null?void 0:E.call(t),St(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:()=>Ke(v.value)?St(r.appContext.components[v.value]):St(v.value)})],M=I2(a.props,c.level+1),R=a.isMenuPopup?St(fn,{ref:g,visible:C.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:p.value,teleported:b.value,fallbackPlacements:S.value,transition:w.value,gpuAcceleration:!1},{content:()=>{var W;return St("div",{class:[m.m(z.value),m.m("popup-container"),e.popperClass],onMouseenter:D=>q(D,100),onMouseleave:()=>J(!0),onFocus:D=>q(D,100)},[St("ul",{class:[m.b(),m.m("popup"),m.m(`popup-${p.value}`)],style:M.value},[(W=t.default)==null?void 0:W.call(t)])])},default:()=>St("div",{class:o.e("title"),style:[$.value,{backgroundColor:k.value}],onClick:ae},V)}):St($e,{},[St("div",{class:o.e("title"),style:[$.value,{backgroundColor:k.value}],ref:h,onClick:ae},V),St(C2,{},{default:()=>{var W;return xt(St("ul",{role:"menu",class:[m.b(),m.m("inline")],style:M.value},[(W=t.default)==null?void 0:W.call(t)]),[[Gt,C.value]])}})]);return St("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:q,onMouseleave:()=>J(!0),onFocus:q},[R])}}});const m$=Be({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Ae(Array),default:()=>ln([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0}}),bd=e=>Array.isArray(e)&&e.every(t=>Ke(t)),g$={close:(e,t)=>Ke(e)&&bd(t),open:(e,t)=>Ke(e)&&bd(t),select:(e,t,n,r)=>Ke(e)&&bd(t)&&nt(n)&&(r===void 0||r instanceof Promise)};var v$=be({name:"ElMenu",props:m$,emits:g$,setup(e,{emit:t,slots:n,expose:r}){const i=kt(),l=i.appContext.config.globalProperties.$router,m=ie(),o=Pe("menu"),a=Pe("sub-menu"),c=ie(-1),d=ie(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),u=ie(e.defaultActive),f=ie({}),s=ie({}),h=ee(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),g=()=>{const P=u.value&&f.value[u.value];if(!P||e.mode==="horizontal"||e.collapse)return;P.indexPath.forEach(I=>{const $=s.value[I];$&&p(I,$.indexPath)})},p=(P,z)=>{d.value.includes(P)||(e.uniqueOpened&&(d.value=d.value.filter(I=>z.includes(I))),d.value.push(P),t("open",P,z))},v=(P,z)=>{const I=d.value.indexOf(P);I!==-1&&d.value.splice(I,1),t("close",P,z)},y=({index:P,indexPath:z})=>{d.value.includes(P)?v(P,z):p(P,z)},b=P=>{(e.mode==="horizontal"||e.collapse)&&(d.value=[]);const{index:z,indexPath:I}=P;if(!(z===void 0||I===void 0))if(e.router&&l){const $=P.route||z,O=l.push($).then(Y=>(Y||(u.value=z),Y));t("select",z,I,{index:z,indexPath:I,route:$},O)}else u.value=z,t("select",z,I,{index:z,indexPath:I})},w=P=>{const z=f.value,I=z[P]||u.value&&z[u.value]||z[e.defaultActive];I?u.value=I.index:u.value=P},S=()=>{var P,z;if(!m.value)return-1;const I=Array.from((z=(P=m.value)==null?void 0:P.childNodes)!=null?z:[]).filter(E=>E.nodeName!=="#text"||E.nodeValue),$=64,O=Number.parseInt(getComputedStyle(m.value).paddingLeft,10),Y=Number.parseInt(getComputedStyle(m.value).paddingRight,10),ae=m.value.clientWidth-O-Y;let q=0,J=0;return I.forEach((E,V)=>{q+=E.offsetWidth||0,q<=ae-$&&(J=V+1)}),J===I.length?-1:J},C=(P,z=33.34)=>{let I;return()=>{I&&clearTimeout(I),I=setTimeout(()=>{P()},z)}};let T=!0;const k=()=>{const P=()=>{c.value=-1,Ge(()=>{c.value=S()})};T?P():C(P)(),T=!1};Te(()=>e.defaultActive,P=>{f.value[P]||(u.value=""),w(P)}),Te(()=>e.collapse,P=>{P&&(d.value=[])}),Te(f.value,g);let A;ro(()=>{e.mode==="horizontal"&&e.ellipsis?A=Jr(m,k).stop:A==null||A()});{const P=O=>{s.value[O.index]=O},z=O=>{delete s.value[O.index]};gt("rootMenu",Tt({props:e,openedMenus:d,items:f,subMenus:s,activeIndex:u,isMenuPopup:h,addMenuItem:O=>{f.value[O.index]=O},removeMenuItem:O=>{delete f.value[O.index]},addSubMenu:P,removeSubMenu:z,openMenu:p,closeMenu:v,handleMenuItemClick:b,handleSubMenuClick:y})),gt(`subMenu:${i.uid}`,{addSubMenu:P,removeSubMenu:z,mouseInChild:ie(!1),level:0})}return tt(()=>{e.mode==="horizontal"&&new u$(i.vnode.el,o.namespace.value)}),r({open:z=>{const{indexPath:I}=s.value[z];I.forEach($=>p($,I))},close:v,handleResize:k}),()=>{var P,z;let I=(z=(P=n.default)==null?void 0:P.call(n))!=null?z:[];const $=[];if(e.mode==="horizontal"&&m.value){const ae=kw(I),q=c.value===-1?ae:ae.slice(0,c.value),J=c.value===-1?[]:ae.slice(c.value);(J==null?void 0:J.length)&&e.ellipsis&&(I=q,$.push(St(Om,{index:"sub-menu-more",class:a.e("hide-arrow")},{title:()=>St(De,{class:a.e("icon-more")},{default:()=>St(TO)}),default:()=>J})))}const O=I2(e,0),Y=St("ul",{key:String(e.collapse),role:"menubar",ref:m,style:O.value,class:{[o.b()]:!0,[o.m(e.mode)]:!0,[o.m("collapse")]:e.collapse}},[...I,...$]);return e.collapseTransition&&e.mode==="vertical"?St(d$,()=>Y):Y}}});const y$=Be({index:{type:Ae([String,null]),default:null},route:{type:Ae([String,Object])},disabled:Boolean}),b$={click:e=>Ke(e.index)&&Array.isArray(e.indexPath)},_d="ElMenuItem",_$=be({name:_d,components:{ElTooltip:fn},props:y$,emits:b$,setup(e,{emit:t}){const n=kt(),r=Xe("rootMenu"),i=Pe("menu"),l=Pe("menu-item");r||Ln(_d,"can not inject root menu");const{parentMenu:m,indexPath:o}=P2(n,rr(e,"index")),a=Xe(`subMenu:${m.value.uid}`);a||Ln(_d,"can not inject sub menu");const c=ee(()=>e.index===r.activeIndex),d=Tt({index:e.index,indexPath:o,active:c}),u=()=>{e.disabled||(r.handleMenuItemClick({index:e.index,indexPath:o.value,route:e.route}),t("click",d))};return tt(()=>{a.addSubMenu(d),r.addMenuItem(d)}),Jt(()=>{a.removeSubMenu(d),r.removeMenuItem(d)}),{Effect:A8,parentMenu:m,rootMenu:r,active:c,nsMenu:i,nsMenuItem:l,handleClick:u}}});function w$(e,t,n,r,i,l){const m=yt("el-tooltip");return N(),se("li",{class:ce([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...o)=>e.handleClick&&e.handleClick(...o))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(N(),ve(m,{key:0,effect:e.Effect.DARK,placement:"right","fallback-placements":["left"],persistent:""},{content:ue(()=>[ke(e.$slots,"title")]),default:ue(()=>[ne("div",{class:ce(e.nsMenu.be("tooltip","trigger"))},[ke(e.$slots,"default")],2)]),_:3},8,["effect"])):(N(),se($e,{key:1},[ke(e.$slots,"default"),ke(e.$slots,"title")],64))],2)}var M2=Re(_$,[["render",w$],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const S$={title:String},C$="ElMenuItemGroup",x$=be({name:C$,props:S$,setup(){return{ns:Pe("menu-item-group")}}});function T$(e,t,n,r,i,l){return N(),se("li",{class:ce(e.ns.b())},[ne("div",{class:ce(e.ns.e("title"))},[e.$slots.title?ke(e.$slots,"title",{key:1}):(N(),se($e,{key:0},[Ne(Ee(e.title),1)],64))],2),ne("ul",null,[ke(e.$slots,"default")])],2)}var L2=Re(x$,[["render",T$],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const R2=_t(v$,{MenuItem:M2,MenuItemGroup:L2,SubMenu:Om}),Am=yr(M2);yr(L2);yr(Om);const k$=Be({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:qt}}),E$={click:e=>e instanceof MouseEvent},O$=["disabled","aria-disabled"],A$={key:0},P$={name:"ElPaginationPrev"},I$=be({...P$,props:k$,emits:E$,setup(e){const t=e,n=ee(()=>t.disabled||t.currentPage<=1);return(r,i)=>(N(),se("button",{type:"button",class:"btn-prev",disabled:_(n),"aria-disabled":_(n),onClick:i[0]||(i[0]=l=>r.$emit("click",l))},[r.prevText?(N(),se("span",A$,Ee(r.prevText),1)):(N(),ve(_(De),{key:1},{default:ue(()=>[(N(),ve(Ct(r.prevIcon)))]),_:1}))],8,O$))}});var M$=Re(I$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const L$=Be({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:qt}}),R$=["disabled","aria-disabled"],D$={key:0},F$={name:"ElPaginationNext"},B$=be({...F$,props:L$,emits:["click"],setup(e){const t=e,n=ee(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(r,i)=>(N(),se("button",{type:"button",class:"btn-next",disabled:_(n),"aria-disabled":_(n),onClick:i[0]||(i[0]=l=>r.$emit("click",l))},[r.nextText?(N(),se("span",D$,Ee(r.nextText),1)):(N(),ve(_(De),{key:1},{default:ue(()=>[(N(),ve(Ct(r.nextIcon)))]),_:1}))],8,R$))}});var $$=Re(B$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const D2="ElSelectGroup",Af="ElSelect";function N$(e,t){const n=Xe(Af),r=Xe(D2,{disabled:!1}),i=ee(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),l=ee(()=>n.props.multiple?u(n.props.modelValue,e.value):f(e.value,n.props.modelValue)),m=ee(()=>{if(n.props.multiple){const g=n.props.modelValue||[];return!l.value&&g.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),o=ee(()=>e.label||(i.value?"":e.value)),a=ee(()=>e.value||e.label||""),c=ee(()=>e.disabled||t.groupDisabled||m.value),d=kt(),u=(g=[],p)=>{if(i.value){const v=n.props.valueKey;return g&&g.some(y=>rt(Xn(y,v))===Xn(p,v))}else return g&&g.includes(p)},f=(g,p)=>{if(i.value){const{valueKey:v}=n.props;return Xn(g,v)===Xn(p,v)}else return g===p},s=()=>{!e.disabled&&!r.disabled&&(n.hoverIndex=n.optionsArray.indexOf(d.proxy))};Te(()=>o.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),Te(()=>e.value,(g,p)=>{const{remote:v,valueKey:y}=n.props;if(Object.is(g,p)||(n.onOptionDestroy(p,d.proxy),n.onOptionCreate(d.proxy)),!e.created&&!v){if(y&&typeof g=="object"&&typeof p=="object"&&g[y]===p[y])return;n.setSelected()}}),Te(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0});const{queryChange:h}=rt(n);return Te(h,g=>{const{query:p}=_(g),v=new RegExp(p6(p),"i");t.visible=v.test(o.value)||e.created,t.visible||n.filteredOptionsCount--}),{select:n,currentLabel:o,currentValue:a,itemSelected:l,isDisabled:c,hoverItem:s}}const z$=be({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=Pe("select"),n=Tt({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:r,itemSelected:i,isDisabled:l,select:m,hoverItem:o}=N$(e,n),{visible:a,hover:c}=pr(n),d=kt().proxy;m.onOptionCreate(d),Jt(()=>{const f=d.value,{selected:s}=m,g=(m.props.multiple?s:[s]).some(p=>p.value===d.value);Ge(()=>{m.cachedOptions.get(f)===d&&!g&&m.cachedOptions.delete(f)}),m.onOptionDestroy(f,d)});function u(){e.disabled!==!0&&n.groupDisabled!==!0&&m.handleOptionSelect(d,!0)}return{ns:t,currentLabel:r,itemSelected:i,isDisabled:l,select:m,hoverItem:o,visible:a,hover:c,selectOptionClick:u,states:n}}});function j$(e,t,n,r,i,l){return xt((N(),se("li",{class:ce([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...m)=>e.hoverItem&&e.hoverItem(...m)),onClick:t[1]||(t[1]=Qe((...m)=>e.selectOptionClick&&e.selectOptionClick(...m),["stop"]))},[ke(e.$slots,"default",{},()=>[ne("span",null,Ee(e.currentLabel),1)])],34)),[[Gt,e.visible]])}var Pm=Re(z$,[["render",j$],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const V$=be({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Xe(Af),t=Pe("select"),n=ee(()=>e.props.popperClass),r=ee(()=>e.props.multiple),i=ee(()=>e.props.fitInputWidth),l=ie("");function m(){var o;l.value=`${(o=e.selectWrapper)==null?void 0:o.offsetWidth}px`}return tt(()=>{m(),Jr(e.selectWrapper,m)}),{ns:t,minWidth:l,popperClass:n,isMultiple:r,isFitInputWidth:i}}});function U$(e,t,n,r,i,l){return N(),se("div",{class:ce([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:ze({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[ke(e.$slots,"default")],6)}var H$=Re(V$,[["render",U$],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function W$(e){const{t}=Tn();return Tt({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1})}const G$=(e,t,n)=>{const{t:r}=Tn(),i=Pe("select"),l=ie(null),m=ie(null),o=ie(null),a=ie(null),c=ie(null),d=ie(null),u=ie(-1),f=mn({query:""}),s=mn(""),{form:h,formItem:g}=ha(),p=ee(()=>!e.filterable||e.multiple||!t.visible),v=ee(()=>e.disabled||(h==null?void 0:h.disabled)),y=ee(()=>{const ye=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!v.value&&t.inputHovering&&ye}),b=ee(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),w=ee(()=>i.is("reverse",b.value&&t.visible&&e.suffixTransition)),S=ee(()=>e.remote?300:0),C=ee(()=>e.loading?e.loadingText||r("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||r("el.select.noMatch"):t.options.size===0?e.noDataText||r("el.select.noData"):null),T=ee(()=>Array.from(t.options.values())),k=ee(()=>Array.from(t.cachedOptions.values())),A=ee(()=>{const ye=T.value.filter(Ce=>!Ce.created).some(Ce=>Ce.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!ye}),P=br(),z=ee(()=>["small"].includes(P.value)?"small":"default"),I=ee({get(){return t.visible&&C.value!==!1},set(ye){t.visible=ye}});Te([()=>v.value,()=>P.value,()=>h==null?void 0:h.size],()=>{Ge(()=>{$()})}),Te(()=>e.placeholder,ye=>{t.cachedPlaceHolder=t.currentPlaceholder=ye}),Te(()=>e.modelValue,(ye,Ce)=>{e.multiple&&($(),ye&&ye.length>0||m.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",O(t.query))),q(),e.filterable&&!e.multiple&&(t.inputLength=20),!wh(ye,Ce)&&e.validateEvent&&(g==null||g.validate("change").catch(Me=>void 0))},{flush:"post",deep:!0}),Te(()=>t.visible,ye=>{var Ce,Me,Ie;ye?((Me=(Ce=o.value)==null?void 0:Ce.updatePopper)==null||Me.call(Ce),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,e.multiple?(Ie=m.value)==null||Ie.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),O(t.query),!e.multiple&&!e.remote&&(f.value.query="",Cs(f),Cs(s)))):(m.value&&m.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,E(),Ge(()=>{m.value&&m.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),n.emit("visible-change",ye)}),Te(()=>t.options.entries(),()=>{var ye,Ce,Me;if(!dt)return;(Ce=(ye=o.value)==null?void 0:ye.updatePopper)==null||Ce.call(ye),e.multiple&&$();const Ie=((Me=c.value)==null?void 0:Me.querySelectorAll("input"))||[];Array.from(Ie).includes(document.activeElement)||q(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&ae()},{flush:"post"}),Te(()=>t.hoverIndex,ye=>{typeof ye=="number"&&ye>-1?u.value=T.value[ye]||{}:u.value={},T.value.forEach(Ce=>{Ce.hover=u.value===Ce})});const $=()=>{e.collapseTags&&!e.filterable||Ge(()=>{var ye,Ce;if(!l.value)return;const Me=l.value.$el.querySelector("input"),Ie=a.value,ht=O6(P.value||(h==null?void 0:h.size));Me.style.height=`${(t.selected.length===0?ht:Math.max(Ie?Ie.clientHeight+(Ie.clientHeight>ht?6:0):0,ht))-2}px`,t.tagInMultiLine=Number.parseFloat(Me.style.height)>=ht,t.visible&&C.value!==!1&&((Ce=(ye=o.value)==null?void 0:ye.updatePopper)==null||Ce.call(ye))})},O=async ye=>{if(!(t.previousQuery===ye||t.isOnComposition)){if(t.previousQuery===null&&(typeof e.filterMethod=="function"||typeof e.remoteMethod=="function")){t.previousQuery=ye;return}t.previousQuery=ye,Ge(()=>{var Ce,Me;t.visible&&((Me=(Ce=o.value)==null?void 0:Ce.updatePopper)==null||Me.call(Ce))}),t.hoverIndex=-1,e.multiple&&e.filterable&&Ge(()=>{const Ce=m.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,Ce):Ce,Y(),$()}),e.remote&&typeof e.remoteMethod=="function"?(t.hoverIndex=-1,e.remoteMethod(ye)):typeof e.filterMethod=="function"?(e.filterMethod(ye),Cs(s)):(t.filteredOptionsCount=t.optionsCount,f.value.query=ye,Cs(f),Cs(s)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await Ge(),ae())}},Y=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=m.value.value?"":t.cachedPlaceHolder)},ae=()=>{const ye=T.value.filter(Ie=>Ie.visible&&!Ie.disabled&&!Ie.states.groupDisabled),Ce=ye.find(Ie=>Ie.created),Me=ye[0];t.hoverIndex=fe(T.value,Ce||Me)},q=()=>{var ye;if(e.multiple)t.selectedLabel="";else{const Me=J(e.modelValue);(ye=Me.props)!=null&&ye.created?(t.createdLabel=Me.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=Me.currentLabel,t.selected=Me,e.filterable&&(t.query=t.selectedLabel);return}const Ce=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(Me=>{Ce.push(J(Me))}),t.selected=Ce,Ge(()=>{$()})},J=ye=>{let Ce;const Me=qu(ye).toLowerCase()==="object",Ie=qu(ye).toLowerCase()==="null",ht=qu(ye).toLowerCase()==="undefined";for(let Ft=t.cachedOptions.size-1;Ft>=0;Ft--){const Qt=k.value[Ft];if(Me?Xn(Qt.value,e.valueKey)===Xn(ye,e.valueKey):Qt.value===ye){Ce={value:ye,currentLabel:Qt.currentLabel,isDisabled:Qt.isDisabled};break}}if(Ce)return Ce;const Ut=Me?ye.label:!Ie&&!ht?ye:"",it={value:ye,currentLabel:Ut};return e.multiple&&(it.hitState=!1),it},E=()=>{setTimeout(()=>{const ye=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(Ce=>T.value.findIndex(Me=>Xn(Me,ye)===Xn(Ce,ye)))):t.hoverIndex=-1:t.hoverIndex=T.value.findIndex(Ce=>xe(Ce)===xe(t.selected))},300)},V=()=>{var ye,Ce;M(),(Ce=(ye=o.value)==null?void 0:ye.updatePopper)==null||Ce.call(ye),e.multiple&&!e.filterable&&$()},M=()=>{var ye;t.inputWidth=(ye=l.value)==null?void 0:ye.$el.getBoundingClientRect().width},R=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,O(t.query))},W=Xo(()=>{R()},S.value),D=Xo(ye=>{O(ye.target.value)},S.value),B=ye=>{wh(e.modelValue,ye)||n.emit(Mr,ye)},Z=ye=>{if(ye.target.value.length<=0&&!K()){const Ce=e.modelValue.slice();Ce.pop(),n.emit(mt,Ce),B(Ce)}ye.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)},H=(ye,Ce)=>{const Me=t.selected.indexOf(Ce);if(Me>-1&&!v.value){const Ie=e.modelValue.slice();Ie.splice(Me,1),n.emit(mt,Ie),B(Ie),n.emit("remove-tag",Ce.value)}ye.stopPropagation()},Q=ye=>{ye.stopPropagation();const Ce=e.multiple?[]:"";if(typeof Ce!="string")for(const Me of t.selected)Me.isDisabled&&Ce.push(Me.value);n.emit(mt,Ce),B(Ce),t.hoverIndex=-1,t.visible=!1,n.emit("clear")},te=(ye,Ce)=>{var Me;if(e.multiple){const Ie=(e.modelValue||[]).slice(),ht=fe(Ie,ye.value);ht>-1?Ie.splice(ht,1):(e.multipleLimit<=0||Ie.length<e.multipleLimit)&&Ie.push(ye.value),n.emit(mt,Ie),B(Ie),ye.created&&(t.query="",O(""),t.inputLength=20),e.filterable&&((Me=m.value)==null||Me.focus())}else n.emit(mt,ye.value),B(ye.value),t.visible=!1;t.isSilentBlur=Ce,me(),!t.visible&&Ge(()=>{_e(ye)})},fe=(ye=[],Ce)=>{if(!nt(Ce))return ye.indexOf(Ce);const Me=e.valueKey;let Ie=-1;return ye.some((ht,Ut)=>rt(Xn(ht,Me))===Xn(Ce,Me)?(Ie=Ut,!0):!1),Ie},me=()=>{t.softFocus=!0;const ye=m.value||l.value;ye&&(ye==null||ye.focus())},_e=ye=>{var Ce,Me,Ie,ht,Ut;const it=Array.isArray(ye)?ye[0]:ye;let Ft=null;if(it!=null&&it.value){const Qt=T.value.filter(_r=>_r.value===it.value);Qt.length>0&&(Ft=Qt[0].$el)}if(o.value&&Ft){const Qt=(ht=(Ie=(Me=(Ce=o.value)==null?void 0:Ce.popperRef)==null?void 0:Me.contentRef)==null?void 0:Ie.querySelector)==null?void 0:ht.call(Ie,`.${i.be("dropdown","wrap")}`);Qt&&_6(Qt,Ft)}(Ut=d.value)==null||Ut.handleScroll()},j=ye=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(ye.value,ye),t.cachedOptions.set(ye.value,ye)},x=(ye,Ce)=>{t.options.get(ye)===Ce&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(ye))},U=ye=>{ye.code!==Et.backspace&&K(!1),t.inputLength=m.value.value.length*15+20,$()},K=ye=>{if(!Array.isArray(t.selected))return;const Ce=t.selected[t.selected.length-1];if(!!Ce)return ye===!0||ye===!1?(Ce.hitState=ye,ye):(Ce.hitState=!Ce.hitState,Ce.hitState)},L=ye=>{const Ce=ye.target.value;if(ye.type==="compositionend")t.isOnComposition=!1,Ge(()=>O(Ce));else{const Me=Ce[Ce.length-1]||"";t.isOnComposition=!Ew(Me)}},F=()=>{Ge(()=>_e(t.selected))},X=ye=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),n.emit("focus",ye))},de=()=>{var ye;t.visible=!1,(ye=l.value)==null||ye.blur()},le=ye=>{Ge(()=>{t.isSilentBlur?t.isSilentBlur=!1:n.emit("blur",ye)}),t.softFocus=!1},G=ye=>{Q(ye)},pe=()=>{t.visible=!1},re=ye=>{t.visible&&(ye.preventDefault(),ye.stopPropagation(),t.visible=!1)},he=()=>{var ye;v.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:t.visible=!t.visible,t.visible&&((ye=m.value||l.value)==null||ye.focus()))},Se=()=>{t.visible?T.value[t.hoverIndex]&&te(T.value[t.hoverIndex],void 0):he()},xe=ye=>nt(ye.value)?Xn(ye.value,e.valueKey):ye.value,Oe=ee(()=>T.value.filter(ye=>ye.visible).every(ye=>ye.disabled)),Le=ye=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!Oe.value){ye==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):ye==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const Ce=T.value[t.hoverIndex];(Ce.disabled===!0||Ce.states.groupDisabled===!0||!Ce.visible)&&Le(ye),Ge(()=>_e(u.value))}};return{optionsArray:T,selectSize:P,handleResize:V,debouncedOnInputChange:W,debouncedQueryChange:D,deletePrevTag:Z,deleteTag:H,deleteSelected:Q,handleOptionSelect:te,scrollToOption:_e,readonly:p,resetInputHeight:$,showClose:y,iconComponent:b,iconReverse:w,showNewOption:A,collapseTagSize:z,setSelected:q,managePlaceholder:Y,selectDisabled:v,emptyText:C,toggleLastOptionHitState:K,resetInputState:U,handleComposition:L,onOptionCreate:j,onOptionDestroy:x,handleMenuEnter:F,handleFocus:X,blur:de,handleBlur:le,handleClearClick:G,handleClose:pe,handleKeydownEscape:re,toggleMenu:he,selectOption:Se,getValueKey:xe,navigateOptions:Le,dropMenuVisible:I,queryChange:f,groupQueryChange:s,reference:l,input:m,tooltipRef:o,tags:a,selectWrapper:c,scrollbar:d}},py="ElSelect",Y$=be({name:py,componentName:py,components:{ElInput:lo,ElSelectMenu:H$,ElOption:Pm,ElTag:VR,ElScrollbar:Yw,ElTooltip:fn,ElIcon:De},directives:{ClickOutside:m2},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:Tf},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},teleported:ur.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:qt,default:yf},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:qt,default:Yo},tagType:{...S2.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:ds,default:"bottom-start"}},emits:[mt,Mr,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=Pe("select"),r=Pe("input"),{t:i}=Tn(),l=W$(e),{optionsArray:m,selectSize:o,readonly:a,handleResize:c,collapseTagSize:d,debouncedOnInputChange:u,debouncedQueryChange:f,deletePrevTag:s,deleteTag:h,deleteSelected:g,handleOptionSelect:p,scrollToOption:v,setSelected:y,resetInputHeight:b,managePlaceholder:w,showClose:S,selectDisabled:C,iconComponent:T,iconReverse:k,showNewOption:A,emptyText:P,toggleLastOptionHitState:z,resetInputState:I,handleComposition:$,onOptionCreate:O,onOptionDestroy:Y,handleMenuEnter:ae,handleFocus:q,blur:J,handleBlur:E,handleClearClick:V,handleClose:M,handleKeydownEscape:R,toggleMenu:W,selectOption:D,getValueKey:B,navigateOptions:Z,dropMenuVisible:H,reference:Q,input:te,tooltipRef:fe,tags:me,selectWrapper:_e,scrollbar:j,queryChange:x,groupQueryChange:U}=G$(e,l,t),{focus:K}=R6(Q),{inputWidth:L,selected:F,inputLength:X,filteredOptionsCount:de,visible:le,softFocus:G,selectedLabel:pe,hoverIndex:re,query:he,inputHovering:Se,currentPlaceholder:xe,menuVisibleOnFocus:Oe,isOnComposition:Le,isSilentBlur:ye,options:Ce,cachedOptions:Me,optionsCount:Ie,prefixWidth:ht,tagInMultiLine:Ut}=pr(l),it=ee(()=>{const yn=[n.b()],ar=_(o);return ar&&yn.push(n.m(ar)),e.disabled&&yn.push(n.m("disabled")),yn}),Ft=ee(()=>({maxWidth:`${_(L)-32}px`,width:"100%"})),Qt=ee(()=>({maxWidth:`${_(L)>123?_(L)-123:_(L)-75}px`}));gt(Af,Tt({props:e,options:Ce,optionsArray:m,cachedOptions:Me,optionsCount:Ie,filteredOptionsCount:de,hoverIndex:re,handleOptionSelect:p,onOptionCreate:O,onOptionDestroy:Y,selectWrapper:_e,selected:F,setSelected:y,queryChange:x,groupQueryChange:U})),tt(()=>{l.cachedPlaceHolder=xe.value=e.placeholder||i("el.select.placeholder"),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(xe.value=""),Jr(_e,c),e.remote&&e.multiple&&b(),Ge(()=>{const yn=Q.value&&Q.value.$el;if(!!yn&&(L.value=yn.getBoundingClientRect().width,t.slots.prefix)){const ar=yn.querySelector(`.${r.e("prefix")}`);ht.value=Math.max(ar.getBoundingClientRect().width+5,30)}}),y()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(mt,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(mt,"");const _r=ee(()=>{var yn,ar;return(ar=(yn=fe.value)==null?void 0:yn.popperRef)==null?void 0:ar.contentRef});return{tagInMultiLine:Ut,prefixWidth:ht,selectSize:o,readonly:a,handleResize:c,collapseTagSize:d,debouncedOnInputChange:u,debouncedQueryChange:f,deletePrevTag:s,deleteTag:h,deleteSelected:g,handleOptionSelect:p,scrollToOption:v,inputWidth:L,selected:F,inputLength:X,filteredOptionsCount:de,visible:le,softFocus:G,selectedLabel:pe,hoverIndex:re,query:he,inputHovering:Se,currentPlaceholder:xe,menuVisibleOnFocus:Oe,isOnComposition:Le,isSilentBlur:ye,options:Ce,resetInputHeight:b,managePlaceholder:w,showClose:S,selectDisabled:C,iconComponent:T,iconReverse:k,showNewOption:A,emptyText:P,toggleLastOptionHitState:z,resetInputState:I,handleComposition:$,handleMenuEnter:ae,handleFocus:q,blur:J,handleBlur:E,handleClearClick:V,handleClose:M,handleKeydownEscape:R,toggleMenu:W,selectOption:D,getValueKey:B,navigateOptions:Z,dropMenuVisible:H,focus:K,reference:Q,input:te,tooltipRef:fe,popperPaneRef:_r,tags:me,selectWrapper:_e,scrollbar:j,wrapperKls:it,selectTagsStyle:Ft,nsSelect:n,tagTextStyle:Qt}}}),K$=["disabled","autocomplete"],X$={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function q$(e,t,n,r,i,l){const m=yt("el-tag"),o=yt("el-tooltip"),a=yt("el-icon"),c=yt("el-input"),d=yt("el-option"),u=yt("el-scrollbar"),f=yt("el-select-menu"),s=I_("click-outside");return xt((N(),se("div",{ref:"selectWrapper",class:ce(e.wrapperKls),onClick:t[22]||(t[22]=Qe((...h)=>e.toggleMenu&&e.toggleMenu(...h),["stop"]))},[oe(o,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"fallback-placements":["bottom-start","top-start","right","left"],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,onShow:e.handleMenuEnter},{default:ue(()=>[ne("div",{class:"select-trigger",onMouseenter:t[20]||(t[20]=h=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=h=>e.inputHovering=!1)},[e.multiple?(N(),se("div",{key:0,ref:"tags",class:ce(e.nsSelect.e("tags")),style:ze(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(N(),se("span",{key:0,class:ce([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[oe(m,{closable:!e.selectDisabled&&!e.selected[0].isDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:e.tagType,"disable-transitions":"",onClose:t[0]||(t[0]=h=>e.deleteTag(h,e.selected[0]))},{default:ue(()=>[ne("span",{class:ce(e.nsSelect.e("tags-text")),style:ze(e.tagTextStyle)},Ee(e.selected[0].currentLabel),7)]),_:1},8,["closable","size","hit","type"]),e.selected.length>1?(N(),ve(m,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:ue(()=>[e.collapseTagsTooltip?(N(),ve(o,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:ue(()=>[ne("span",{class:ce(e.nsSelect.e("tags-text"))},"+ "+Ee(e.selected.length-1),3)]),content:ue(()=>[ne("div",{class:ce(e.nsSelect.e("collapse-tags"))},[(N(!0),se($e,null,$t(e.selected.slice(1),(h,g)=>(N(),se("div",{key:g,class:ce(e.nsSelect.e("collapse-tag"))},[(N(),ve(m,{key:e.getValueKey(h),class:"in-tooltip",closable:!e.selectDisabled&&!h.isDisabled,size:e.collapseTagSize,hit:h.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:p=>e.deleteTag(p,h)},{default:ue(()=>[ne("span",{class:ce(e.nsSelect.e("tags-text")),style:ze({maxWidth:e.inputWidth-75+"px"})},Ee(h.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(N(),se("span",{key:1,class:ce(e.nsSelect.e("tags-text"))},"+ "+Ee(e.selected.length-1),3))]),_:1},8,["size","type"])):ge("v-if",!0)],2)):ge("v-if",!0),ge(" <div> "),e.collapseTags?ge("v-if",!0):(N(),ve(Hn,{key:1,onAfterLeave:e.resetInputHeight},{default:ue(()=>[ne("span",{class:ce([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(N(!0),se($e,null,$t(e.selected,h=>(N(),ve(m,{key:e.getValueKey(h),closable:!e.selectDisabled&&!h.isDisabled,size:e.collapseTagSize,hit:h.hitState,type:e.tagType,"disable-transitions":"",onClose:g=>e.deleteTag(g,h)},{default:ue(()=>[ne("span",{class:ce(e.nsSelect.e("tags-text")),style:ze({maxWidth:e.inputWidth-75+"px"})},Ee(h.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),ge(" </div> "),e.filterable?xt((N(),se("input",{key:2,ref:"input","onUpdate:modelValue":t[1]||(t[1]=h=>e.query=h),type:"text",class:ce([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:ze({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:t[2]||(t[2]=(...h)=>e.handleFocus&&e.handleFocus(...h)),onBlur:t[3]||(t[3]=(...h)=>e.handleBlur&&e.handleBlur(...h)),onKeyup:t[4]||(t[4]=(...h)=>e.managePlaceholder&&e.managePlaceholder(...h)),onKeydown:[t[5]||(t[5]=(...h)=>e.resetInputState&&e.resetInputState(...h)),t[6]||(t[6]=Dt(Qe(h=>e.navigateOptions("next"),["prevent"]),["down"])),t[7]||(t[7]=Dt(Qe(h=>e.navigateOptions("prev"),["prevent"]),["up"])),t[8]||(t[8]=Dt((...h)=>e.handleKeydownEscape&&e.handleKeydownEscape(...h),["esc"])),t[9]||(t[9]=Dt(Qe((...h)=>e.selectOption&&e.selectOption(...h),["stop","prevent"]),["enter"])),t[10]||(t[10]=Dt((...h)=>e.deletePrevTag&&e.deletePrevTag(...h),["delete"])),t[11]||(t[11]=Dt(h=>e.visible=!1,["tab"]))],onCompositionstart:t[12]||(t[12]=(...h)=>e.handleComposition&&e.handleComposition(...h)),onCompositionupdate:t[13]||(t[13]=(...h)=>e.handleComposition&&e.handleComposition(...h)),onCompositionend:t[14]||(t[14]=(...h)=>e.handleComposition&&e.handleComposition(...h)),onInput:t[15]||(t[15]=(...h)=>e.debouncedQueryChange&&e.debouncedQueryChange(...h))},null,46,K$)),[[bk,e.query]]):ge("v-if",!0)],6)):ge("v-if",!0),oe(c,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=h=>e.selectedLabel=h),type:"text",placeholder:e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:ce([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=Dt(Qe(h=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=Dt(Qe(h=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),Dt(Qe(e.selectOption,["stop","prevent"]),["enter"]),Dt(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=Dt(h=>e.visible=!1,["tab"]))]},Ec({suffix:ue(()=>[e.iconComponent&&!e.showClose?(N(),ve(a,{key:0,class:ce([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:ue(()=>[(N(),ve(Ct(e.iconComponent)))]),_:1},8,["class"])):ge("v-if",!0),e.showClose&&e.clearIcon?(N(),ve(a,{key:1,class:ce([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:ue(()=>[(N(),ve(Ct(e.clearIcon)))]),_:1},8,["class","onClick"])):ge("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:ue(()=>[ne("div",X$,[ke(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:ue(()=>[oe(f,null,{default:ue(()=>[xt(oe(u,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:ce([e.nsSelect.is("empty",!e.allowCreate&&Boolean(e.query)&&e.filteredOptionsCount===0)])},{default:ue(()=>[e.showNewOption?(N(),ve(d,{key:0,value:e.query,created:!0},null,8,["value"])):ge("v-if",!0),ke(e.$slots,"default")]),_:3},8,["wrap-class","view-class","class"]),[[Gt,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(N(),se($e,{key:0},[e.$slots.empty?ke(e.$slots,"empty",{key:0}):(N(),se("p",{key:1,class:ce(e.nsSelect.be("dropdown","empty"))},Ee(e.emptyText),3))],64)):ge("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","effect","transition","persistent","onShow"])],2)),[[s,e.handleClose,e.popperPaneRef]])}var Z$=Re(Y$,[["render",q$],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const J$=be({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=Pe("select"),n=ie(!0),r=kt(),i=ie([]);gt(D2,Tt({...pr(e)}));const l=Xe(Af);tt(()=>{i.value=m(r.subTree)});const m=a=>{const c=[];return Array.isArray(a.children)&&a.children.forEach(d=>{var u;d.type&&d.type.name==="ElOption"&&d.component&&d.component.proxy?c.push(d.component.proxy):(u=d.children)!=null&&u.length&&c.push(...m(d))}),c},{groupQueryChange:o}=rt(l);return Te(o,()=>{n.value=i.value.some(a=>a.visible===!0)},{flush:"post"}),{visible:n,ns:t}}});function Q$(e,t,n,r,i,l){return xt((N(),se("ul",{class:ce(e.ns.be("group","wrap"))},[ne("li",{class:ce(e.ns.be("group","title"))},Ee(e.label),3),ne("li",null,[ne("ul",{class:ce(e.ns.b("group"))},[ke(e.$slots,"default")],2)])],2)),[[Gt,e.visible]])}var F2=Re(J$,[["render",Q$],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const Im=_t(Z$,{Option:Pm,OptionGroup:F2}),Hc=yr(Pm);yr(F2);const Mm=()=>Xe(Rw,{}),eN=Be({pageSize:{type:Number,required:!0},pageSizes:{type:Ae(Array),default:()=>ln([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,size:{type:String,default:"default"}}),tN={name:"ElPaginationSizes"},nN=be({...tN,props:eN,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=Tn(),i=Pe("pagination"),l=Mm(),m=ie(n.pageSize);Te(()=>n.pageSizes,(c,d)=>{if(!wh(c,d)&&Array.isArray(c)){const u=c.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",u)}}),Te(()=>n.pageSize,c=>{m.value=c});const o=ee(()=>n.pageSizes);function a(c){var d;c!==m.value&&(m.value=c,(d=l.handleSizeChange)==null||d.call(l,Number(c)))}return(c,d)=>(N(),se("span",{class:ce(_(i).e("sizes"))},[oe(_(Im),{"model-value":m.value,disabled:c.disabled,"popper-class":c.popperClass,size:c.size,"validate-event":!1,onChange:a},{default:ue(()=>[(N(!0),se($e,null,$t(_(o),u=>(N(),ve(_(Hc),{key:u,value:u,label:u+_(r)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size"])],2))}});var rN=Re(nN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const iN=["disabled"],aN={name:"ElPaginationJumper"},oN=be({...aN,setup(e){const{t}=Tn(),n=Pe("pagination"),{pageCount:r,disabled:i,currentPage:l,changeEvent:m}=Mm(),o=ie(),a=ee(()=>{var u;return(u=o.value)!=null?u:l==null?void 0:l.value});function c(u){o.value=+u}function d(u){u=Math.trunc(+u),m==null||m(+u),o.value=void 0}return(u,f)=>(N(),se("span",{class:ce(_(n).e("jump")),disabled:_(i)},[Ne(Ee(_(t)("el.pagination.goto"))+" ",1),oe(_(lo),{size:"small",class:ce([_(n).e("editor"),_(n).is("in-pagination")]),min:1,max:_(r),disabled:_(i),"model-value":_(a),"validate-event":!1,type:"number","onUpdate:modelValue":c,onChange:d},null,8,["class","max","disabled","model-value"]),Ne(" "+Ee(_(t)("el.pagination.pageClassifier")),1)],10,iN))}});var sN=Re(oN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const lN=Be({total:{type:Number,default:1e3}}),uN=["disabled"],cN={name:"ElPaginationTotal"},fN=be({...cN,props:lN,setup(e){const{t}=Tn(),n=Pe("pagination"),{disabled:r}=Mm();return(i,l)=>(N(),se("span",{class:ce(_(n).e("total")),disabled:_(r)},Ee(_(t)("el.pagination.total",{total:i.total})),11,uN))}});var dN=Re(fN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const hN=Be({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),pN=["onKeyup"],mN=["aria-current","tabindex"],gN=["tabindex"],vN=["aria-current","tabindex"],yN=["tabindex"],bN=["aria-current","tabindex"],_N={name:"ElPaginationPager"},wN=be({..._N,props:hN,emits:["change"],setup(e,{emit:t}){const n=e,r=Pe("pager"),i=Pe("icon"),l=ie(!1),m=ie(!1),o=ie(!1),a=ie(!1),c=ie(!1),d=ie(!1),u=ee(()=>{const v=n.pagerCount,y=(v-1)/2,b=Number(n.currentPage),w=Number(n.pageCount);let S=!1,C=!1;w>v&&(b>v-y&&(S=!0),b<w-y&&(C=!0));const T=[];if(S&&!C){const k=w-(v-2);for(let A=k;A<w;A++)T.push(A)}else if(!S&&C)for(let k=2;k<v;k++)T.push(k);else if(S&&C){const k=Math.floor(v/2)-1;for(let A=b-k;A<=b+k;A++)T.push(A)}else for(let k=2;k<w;k++)T.push(k);return T}),f=ee(()=>n.disabled?-1:0);ro(()=>{const v=(n.pagerCount-1)/2;l.value=!1,m.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-v&&(l.value=!0),n.currentPage<n.pageCount-v&&(m.value=!0))});function s(v=!1){n.disabled||(v?o.value=!0:a.value=!0)}function h(v=!1){v?c.value=!0:d.value=!0}function g(v){const y=v.target;if(y.tagName.toLowerCase()==="li"&&Array.from(y.classList).includes("number")){const b=Number(y.textContent);b!==n.currentPage&&t("change",b)}else y.tagName.toLowerCase()==="li"&&Array.from(y.classList).includes("more")&&p(v)}function p(v){const y=v.target;if(y.tagName.toLowerCase()==="ul"||n.disabled)return;let b=Number(y.textContent);const w=n.pageCount,S=n.currentPage,C=n.pagerCount-2;y.className.includes("more")&&(y.className.includes("quickprev")?b=S-C:y.className.includes("quicknext")&&(b=S+C)),Number.isNaN(+b)||(b<1&&(b=1),b>w&&(b=w)),b!==S&&t("change",b)}return(v,y)=>(N(),se("ul",{class:ce(_(r).b()),onClick:p,onKeyup:Dt(g,["enter"])},[v.pageCount>0?(N(),se("li",{key:0,class:ce([[_(r).is("active",v.currentPage===1),_(r).is("disabled",v.disabled)],"number"]),"aria-current":v.currentPage===1,tabindex:_(f)}," 1 ",10,mN)):ge("v-if",!0),l.value?(N(),se("li",{key:1,class:ce(["more","btn-quickprev",_(i).b(),_(r).is("disabled",v.disabled)]),tabindex:_(f),onMouseenter:y[0]||(y[0]=b=>s(!0)),onMouseleave:y[1]||(y[1]=b=>o.value=!1),onFocus:y[2]||(y[2]=b=>h(!0)),onBlur:y[3]||(y[3]=b=>c.value=!1)},[o.value||c.value?(N(),ve(_(eO),{key:0})):(N(),ve(_(Ev),{key:1}))],42,gN)):ge("v-if",!0),(N(!0),se($e,null,$t(_(u),b=>(N(),se("li",{key:b,class:ce([[_(r).is("active",v.currentPage===b),_(r).is("disabled",v.disabled)],"number"]),"aria-current":v.currentPage===b,tabindex:_(f)},Ee(b),11,vN))),128)),m.value?(N(),se("li",{key:2,class:ce(["more","btn-quicknext",_(i).b(),_(r).is("disabled",v.disabled)]),tabindex:_(f),onMouseenter:y[4]||(y[4]=b=>s()),onMouseleave:y[5]||(y[5]=b=>a.value=!1),onFocus:y[6]||(y[6]=b=>h()),onBlur:y[7]||(y[7]=b=>d.value=!1)},[a.value||d.value?(N(),ve(_(nO),{key:0})):(N(),ve(_(Ev),{key:1}))],42,yN)):ge("v-if",!0),v.pageCount>1?(N(),se("li",{key:3,class:ce([[_(r).is("active",v.currentPage===v.pageCount),_(r).is("disabled",v.disabled)],"number"]),"aria-current":v.currentPage===v.pageCount,tabindex:_(f)},Ee(v.pageCount),11,bN)):ge("v-if",!0)],42,pN))}});var SN=Re(wN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const En=e=>typeof e!="number",CN=Be({total:Number,pageSize:Number,defaultPageSize:Number,currentPage:Number,defaultCurrentPage:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>typeof e=="number"&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:Ae(Array),default:()=>ln([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:qt,default:()=>vf},nextText:{type:String,default:""},nextIcon:{type:qt,default:()=>us},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),xN={"update:current-page":e=>typeof e=="number","update:page-size":e=>typeof e=="number","size-change":e=>typeof e=="number","current-change":e=>typeof e=="number","prev-click":e=>typeof e=="number","next-click":e=>typeof e=="number"},my="ElPagination";var TN=be({name:my,props:CN,emits:xN,setup(e,{emit:t,slots:n}){const{t:r}=Tn(),i=Pe("pagination"),l=kt().vnode.props||{},m="onUpdate:currentPage"in l||"onUpdate:current-page"in l||"onCurrentChange"in l,o="onUpdate:pageSize"in l||"onUpdate:page-size"in l||"onSizeChange"in l,a=ee(()=>{if(En(e.total)&&En(e.pageCount)||!En(e.currentPage)&&!m)return!1;if(e.layout.includes("sizes")){if(En(e.pageCount)){if(!En(e.total)&&!En(e.pageSize)&&!o)return!1}else if(!o)return!1}return!0}),c=ie(En(e.defaultPageSize)?10:e.defaultPageSize),d=ie(En(e.defaultCurrentPage)?1:e.defaultCurrentPage),u=ee({get(){return En(e.pageSize)?c.value:e.pageSize},set(b){En(e.pageSize)&&(c.value=b),o&&(t("update:page-size",b),t("size-change",b))}}),f=ee(()=>{let b=0;return En(e.pageCount)?En(e.total)||(b=Math.max(1,Math.ceil(e.total/u.value))):b=e.pageCount,b}),s=ee({get(){return En(e.currentPage)?d.value:e.currentPage},set(b){let w=b;b<1?w=1:b>f.value&&(w=f.value),En(e.currentPage)&&(d.value=w),m&&(t("update:current-page",w),t("current-change",w))}});Te(f,b=>{s.value>b&&(s.value=b)});function h(b){s.value=b}function g(b){u.value=b;const w=f.value;s.value>w&&(s.value=w)}function p(){e.disabled||(s.value-=1,t("prev-click",s.value))}function v(){e.disabled||(s.value+=1,t("next-click",s.value))}function y(b,w){b&&(b.props||(b.props={}),b.props.class=[b.props.class,w].join(" "))}return gt(Rw,{pageCount:f,disabled:ee(()=>e.disabled),currentPage:s,changeEvent:h,handleSizeChange:g}),()=>{var b,w;if(!a.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&f.value<=1)return null;const S=[],C=[],T=St("div",{class:i.e("rightwrapper")},C),k={prev:St(M$,{disabled:e.disabled,currentPage:s.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:p}),jumper:St(sN),pager:St(SN,{currentPage:s.value,pageCount:f.value,pagerCount:e.pagerCount,onChange:h,disabled:e.disabled}),next:St($$,{disabled:e.disabled,currentPage:s.value,pageCount:f.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:v}),sizes:St(rN,{pageSize:u.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,size:e.small?"small":"default"}),slot:(w=(b=n==null?void 0:n.default)==null?void 0:b.call(n))!=null?w:null,total:St(dN,{total:En(e.total)?0:e.total})},A=e.layout.split(",").map(z=>z.trim());let P=!1;return A.forEach(z=>{if(z==="->"){P=!0;return}P?C.push(k[z]):S.push(k[z])}),y(S[0],i.is("first")),y(S[S.length-1],i.is("last")),P&&C.length>0&&(y(C[0],i.is("first")),y(C[C.length-1],i.is("last")),S.push(T)),St("div",{role:"pagination","aria-label":"pagination",class:[i.b(),i.is("background",e.background),{[i.m("small")]:e.small}]},S)}}});const kN=_t(TN),EN=Be({trigger:El.trigger,placement:gd.placement,disabled:El.disabled,visible:ur.visible,transition:ur.transition,popperOptions:gd.popperOptions,tabindex:gd.tabindex,content:ur.content,popperStyle:ur.popperStyle,popperClass:ur.popperClass,enterable:{...ur.enterable,default:!0},effect:{...ur.effect,default:"light"},teleported:ur.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),ON={"update:visible":e=>tr(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},AN={name:"ElPopover"},PN=be({...AN,props:EN,emits:ON,setup(e,{expose:t,emit:n}){const r=e,i="onUpdate:visible",l=ee(()=>r[i]),m=Pe("popover"),o=ie(),a=ee(()=>{var v;return(v=_(o))==null?void 0:v.popperRef}),c=ee(()=>[{width:qr(r.width)},r.popperStyle]),d=ee(()=>[m.b(),r.popperClass,{[m.m("plain")]:!!r.content}]),u=ee(()=>r.transition===`${m.namespace.value}-fade-in-linear`),f=()=>{var v;(v=o.value)==null||v.hide()},s=()=>{n("before-enter")},h=()=>{n("before-leave")},g=()=>{n("after-enter")},p=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:a,hide:f}),(v,y)=>(N(),ve(_(fn),zn({ref_key:"tooltipRef",ref:o},v.$attrs,{trigger:v.trigger,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":_(d),"popper-style":_(c),teleported:v.teleported,persistent:v.persistent,"gpu-acceleration":_(u),"onUpdate:visible":_(l),onBeforeShow:s,onBeforeHide:h,onShow:g,onHide:p}),{content:ue(()=>[v.title?(N(),se("div",{key:0,class:ce(_(m).e("title")),role:"title"},Ee(v.title),3)):ge("v-if",!0),ke(v.$slots,"default",{},()=>[Ne(Ee(v.content),1)])]),default:ue(()=>[v.$slots.reference?ke(v.$slots,"reference",{key:0}):ge("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var IN=Re(PN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const gy=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var MN={mounted(e,t){gy(e,t)},updated(e,t){gy(e,t)}};const LN="popover",RN=T6(MN,LN),Lu=_t(IN,{directive:RN}),DN=Be({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:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:Ae(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:Ae([String,Array,Function]),default:""},format:{type:Ae(Function),default:e=>`${e}%`}}),FN=["aria-valuenow"],BN={viewBox:"0 0 100 100"},$N=["d","stroke","stroke-width"],NN=["d","stroke","opacity","stroke-linecap","stroke-width"],zN={key:0},jN={name:"ElProgress"},VN=be({...jN,props:DN,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=Pe("progress"),i=ee(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:y(t.percentage)})),l=ee(()=>(t.strokeWidth/t.width*100).toFixed(1)),m=ee(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(l.value)/2}`,10):0),o=ee(()=>{const b=m.value,w=t.type==="dashboard";return`
M 50 50
m 0 ${w?"":"-"}${b}
a ${b} ${b} 0 1 1 0 ${w?"-":""}${b*2}
a ${b} ${b} 0 1 1 0 ${w?"":"-"}${b*2}
`}),a=ee(()=>2*Math.PI*m.value),c=ee(()=>t.type==="dashboard"?.75:1),d=ee(()=>`${-1*a.value*(1-c.value)/2}px`),u=ee(()=>({strokeDasharray:`${a.value*c.value}px, ${a.value}px`,strokeDashoffset:d.value})),f=ee(()=>({strokeDasharray:`${a.value*c.value*(t.percentage/100)}px, ${a.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),s=ee(()=>{let b;return t.color?b=y(t.percentage):b=n[t.status]||n.default,b}),h=ee(()=>t.status==="warning"?Jp:t.type==="line"?t.status==="success"?Ql:yf:t.status==="success"?A1:Kr),g=ee(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),p=ee(()=>t.format(t.percentage));function v(b){const w=100/b.length;return b.map((C,T)=>Ke(C)?{color:C,percentage:(T+1)*w}:C).sort((C,T)=>C.percentage-T.percentage)}const y=b=>{var w;const{color:S}=t;if(Ve(S))return S(b);if(Ke(S))return S;{const C=v(S);for(const T of C)if(T.percentage>b)return T.color;return(w=C[C.length-1])==null?void 0:w.color}};return(b,w)=>(N(),se("div",{class:ce([_(r).b(),_(r).m(b.type),_(r).is(b.status),{[_(r).m("without-text")]:!b.showText,[_(r).m("text-inside")]:b.textInside}]),role:"progressbar","aria-valuenow":b.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[b.type==="line"?(N(),se("div",{key:0,class:ce(_(r).b("bar"))},[ne("div",{class:ce(_(r).be("bar","outer")),style:ze({height:`${b.strokeWidth}px`})},[ne("div",{class:ce([_(r).be("bar","inner"),{[_(r).bem("bar","inner","indeterminate")]:b.indeterminate}]),style:ze(_(i))},[(b.showText||b.$slots.default)&&b.textInside?(N(),se("div",{key:0,class:ce(_(r).be("bar","innerText"))},[ke(b.$slots,"default",{percentage:b.percentage},()=>[ne("span",null,Ee(_(p)),1)])],2)):ge("v-if",!0)],6)],6)],2)):(N(),se("div",{key:1,class:ce(_(r).b("circle")),style:ze({height:`${b.width}px`,width:`${b.width}px`})},[(N(),se("svg",BN,[ne("path",{class:ce(_(r).be("circle","track")),d:_(o),stroke:`var(${_(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":_(l),fill:"none",style:ze(_(u))},null,14,$N),ne("path",{class:ce(_(r).be("circle","path")),d:_(o),stroke:_(s),fill:"none",opacity:b.percentage?1:0,"stroke-linecap":b.strokeLinecap,"stroke-width":_(l),style:ze(_(f))},null,14,NN)]))],6)),(b.showText||b.$slots.default)&&!b.textInside?(N(),se("div",{key:2,class:ce(_(r).e("text")),style:ze({fontSize:`${_(g)}px`})},[ke(b.$slots,"default",{percentage:b.percentage},()=>[b.status?(N(),ve(_(De),{key:1},{default:ue(()=>[(N(),ve(Ct(_(h))))]),_:1})):(N(),se("span",zN,Ee(_(p)),1))])],6)):ge("v-if",!0)],10,FN))}});var UN=Re(VN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const B2=_t(UN),HN=["start","center","end","space-around","space-between","space-evenly"],WN=["top","middle","bottom"],GN=Be({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:HN,default:"start"},align:{type:String,values:WN,default:"top"}}),YN={name:"ElRow"},KN=be({...YN,props:GN,setup(e){const t=e,n=Pe("row"),r=ee(()=>t.gutter);gt(Fw,{gutter:r});const i=ee(()=>{const l={};return t.gutter&&(l.marginRight=l.marginLeft=`-${t.gutter/2}px`),l});return(l,m)=>(N(),ve(Ct(l.tag),{class:ce([_(n).b(),_(n).is(`justify-${t.justify}`,l.justify!=="start"),_(n).is(`align-${t.align}`,l.align!=="top")]),style:ze(_(i))},{default:ue(()=>[ke(l.$slots,"default")]),_:3},8,["class","style"]))}});var XN=Re(KN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const vy=_t(XN),qN=Be({modelValue:{type:Ae([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:aa,inputSize:aa,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:Ae(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:Ae(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:ds,default:"top"},marks:{type:Ae(Object)},validateEvent:{type:Boolean,default:!0}}),wd=e=>lt(e)||Ue(e)&&e.every(lt),ZN={[mt]:wd,[Ka]:wd,[Mr]:wd},JN=(e,t,n)=>{const r=ie();return tt(async()=>{e.range?(Array.isArray(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]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),bt(window,"resize",n),await Ge(),n()}),{sliderWrapper:r}},QN=e=>ee(()=>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]})):[]),ez=(e,t,n)=>{const{form:r,formItem:i}=ha(),l=mn(),m=ie(),o=ie(),a={firstButton:m,secondButton:o},c=ee(()=>e.disabled||(r==null?void 0:r.disabled)||!1),d=ee(()=>Math.min(t.firstValue,t.secondValue)),u=ee(()=>Math.max(t.firstValue,t.secondValue)),f=ee(()=>e.range?`${100*(u.value-d.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),s=ee(()=>e.range?`${100*(d.value-e.min)/(e.max-e.min)}%`:"0%"),h=ee(()=>e.vertical?{height:e.height}:{}),g=ee(()=>e.vertical?{height:f.value,bottom:s.value}:{width:f.value,left:s.value}),p=()=>{l.value&&(t.sliderSize=l.value[`client${e.vertical?"Height":"Width"}`])},v=z=>{const I=e.min+z*(e.max-e.min)/100;if(!e.range)return m;let $;return Math.abs(d.value-I)<Math.abs(u.value-I)?$=t.firstValue<t.secondValue?"firstButton":"secondButton":$=t.firstValue>t.secondValue?"firstButton":"secondButton",a[$]},y=z=>{const I=v(z);return I.value.setPosition(z),I},b=z=>{t.firstValue=z,S(e.range?[d.value,u.value]:z)},w=z=>{t.secondValue=z,e.range&&S([d.value,u.value])},S=z=>{n(mt,z),n(Ka,z)},C=async()=>{await Ge(),n(Mr,e.range?[d.value,u.value]:e.modelValue)},T=z=>{var I,$,O,Y,ae,q;if(c.value||t.dragging)return;p();let J=0;if(e.vertical){const E=(O=($=(I=z.touches)==null?void 0:I.item(0))==null?void 0:$.clientY)!=null?O:z.clientY;J=(l.value.getBoundingClientRect().bottom-E)/t.sliderSize*100}else{const E=(q=(ae=(Y=z.touches)==null?void 0:Y.item(0))==null?void 0:ae.clientX)!=null?q:z.clientX,V=l.value.getBoundingClientRect().left;J=(E-V)/t.sliderSize*100}if(!(J<0||J>100))return y(J)};return{elFormItem:i,slider:l,firstButton:m,secondButton:o,sliderDisabled:c,minValue:d,maxValue:u,runwayStyle:h,barStyle:g,resetSize:p,setPosition:y,emitChange:C,onSliderWrapperPrevent:z=>{var I,$;(((I=a.firstButton.value)==null?void 0:I.dragging)||(($=a.secondButton.value)==null?void 0:$.dragging))&&z.preventDefault()},onSliderClick:z=>{T(z)&&C()},onSliderDown:async z=>{const I=T(z);I&&(await Ge(),I.value.onButtonDown(z))},setFirstValue:b,setSecondValue:w}},{left:tz,down:nz,right:rz,up:iz,home:az,end:oz,pageUp:sz,pageDown:lz}=Et,uz=(e,t,n)=>{const r=ie(),i=ie(!1),l=ee(()=>t.value instanceof Function),m=ee(()=>l.value&&t.value(e.modelValue)||e.modelValue),o=Xo(()=>{n.value&&(i.value=!0)},50),a=Xo(()=>{n.value&&(i.value=!1)},50);return{tooltip:r,tooltipVisible:i,formatValue:m,displayTooltip:o,hideTooltip:a}},cz=(e,t,n)=>{const{disabled:r,min:i,max:l,step:m,showTooltip:o,precision:a,sliderSize:c,formatTooltip:d,emitChange:u,resetSize:f,updateDragging:s}=Xe($w),{tooltip:h,tooltipVisible:g,formatValue:p,displayTooltip:v,hideTooltip:y}=uz(e,d,o),b=ie(),w=ee(()=>`${(e.modelValue-i.value)/(l.value-i.value)*100}%`),S=ee(()=>e.vertical?{bottom:w.value}:{left:w.value}),C=()=>{t.hovering=!0,v()},T=()=>{t.hovering=!1,t.dragging||y()},k=R=>{r.value||(R.preventDefault(),J(R),window.addEventListener("mousemove",E),window.addEventListener("touchmove",E),window.addEventListener("mouseup",V),window.addEventListener("touchend",V),window.addEventListener("contextmenu",V),b.value.focus())},A=R=>{r.value||(t.newPosition=Number.parseFloat(w.value)+R/(l.value-i.value)*100,M(t.newPosition),u())},P=()=>{A(-m.value)},z=()=>{A(m.value)},I=()=>{A(-m.value*4)},$=()=>{A(m.value*4)},O=()=>{r.value||(M(0),u())},Y=()=>{r.value||(M(100),u())},ae=R=>{let W=!0;[tz,nz].includes(R.key)?P():[rz,iz].includes(R.key)?z():R.key===az?O():R.key===oz?Y():R.key===lz?I():R.key===sz?$():W=!1,W&&R.preventDefault()},q=R=>{let W,D;return R.type.startsWith("touch")?(D=R.touches[0].clientY,W=R.touches[0].clientX):(D=R.clientY,W=R.clientX),{clientX:W,clientY:D}},J=R=>{t.dragging=!0,t.isClick=!0;const{clientX:W,clientY:D}=q(R);e.vertical?t.startY=D:t.startX=W,t.startPosition=Number.parseFloat(w.value),t.newPosition=t.startPosition},E=R=>{if(t.dragging){t.isClick=!1,v(),f();let W;const{clientX:D,clientY:B}=q(R);e.vertical?(t.currentY=B,W=(t.startY-t.currentY)/c.value*100):(t.currentX=D,W=(t.currentX-t.startX)/c.value*100),t.newPosition=t.startPosition+W,M(t.newPosition)}},V=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||y(),t.isClick||M(t.newPosition),u()},0),window.removeEventListener("mousemove",E),window.removeEventListener("touchmove",E),window.removeEventListener("mouseup",V),window.removeEventListener("touchend",V),window.removeEventListener("contextmenu",V))},M=async R=>{if(R===null||Number.isNaN(+R))return;R<0?R=0:R>100&&(R=100);const W=100/((l.value-i.value)/m.value);let B=Math.round(R/W)*W*(l.value-i.value)*.01+i.value;B=Number.parseFloat(B.toFixed(a.value)),B!==e.modelValue&&n(mt,B),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await Ge(),t.dragging&&v(),h.value.updatePopper()};return Te(()=>t.dragging,R=>{s(R)}),{disabled:r,button:b,tooltip:h,tooltipVisible:g,showTooltip:o,wrapperStyle:S,formatValue:p,handleMouseEnter:C,handleMouseLeave:T,onButtonDown:k,onKeyDown:ae,setPosition:M}},fz=(e,t,n,r)=>({stops:ee(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const m=(e.max-e.min)/e.step,o=100*e.step/(e.max-e.min),a=Array.from({length:m-1}).map((c,d)=>(d+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:m=>e.vertical?{bottom:`${m}%`}:{left:`${m}%`}}),dz=(e,t,n,r,i,l)=>{const m=c=>{i(mt,c),i(Ka,c)},o=()=>e.range?![n.value,r.value].every((c,d)=>c===t.oldValue[d]):e.modelValue!==t.oldValue,a=()=>{var c,d;if(e.min>e.max){Ln("Slider","min should not be greater than max.");return}const u=e.modelValue;e.range&&Array.isArray(u)?u[1]<e.min?m([e.min,e.min]):u[0]>e.max?m([e.max,e.max]):u[0]<e.min?m([e.min,u[1]]):u[1]>e.max?m([u[0],e.max]):(t.firstValue=u[0],t.secondValue=u[1],o()&&(e.validateEvent&&((c=l==null?void 0:l.validate)==null||c.call(l,"change").catch(f=>void 0)),t.oldValue=u.slice())):!e.range&&typeof u=="number"&&!Number.isNaN(u)&&(u<e.min?m(e.min):u>e.max?m(e.max):(t.firstValue=u,o()&&(e.validateEvent&&((d=l==null?void 0:l.validate)==null||d.call(l,"change").catch(f=>void 0)),t.oldValue=u)))};a(),Te(()=>t.dragging,c=>{c||a()}),Te(()=>e.modelValue,(c,d)=>{t.dragging||Array.isArray(c)&&Array.isArray(d)&&c.every((u,f)=>u===d[f])&&t.firstValue===c[0]&&t.secondValue===c[1]||a()},{deep:!0}),Te(()=>[e.min,e.max],()=>{a()})},hz=Be({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:ds,default:"top"}}),pz={[mt]:e=>lt(e)},mz=["tabindex"],gz={name:"ElSliderButton"},vz=be({...gz,props:hz,emits:pz,setup(e,{expose:t,emit:n}){const r=e,i=Pe("slider"),l=Tt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:m,button:o,tooltip:a,showTooltip:c,tooltipVisible:d,wrapperStyle:u,formatValue:f,handleMouseEnter:s,handleMouseLeave:h,onButtonDown:g,onKeyDown:p,setPosition:v}=cz(r,l,n),{hovering:y,dragging:b}=pr(l);return t({onButtonDown:g,onKeyDown:p,setPosition:v,hovering:y,dragging:b}),(w,S)=>(N(),se("div",{ref_key:"button",ref:o,class:ce([_(i).e("button-wrapper"),{hover:_(y),dragging:_(b)}]),style:ze(_(u)),tabindex:_(m)?-1:0,onMouseenter:S[0]||(S[0]=(...C)=>_(s)&&_(s)(...C)),onMouseleave:S[1]||(S[1]=(...C)=>_(h)&&_(h)(...C)),onMousedown:S[2]||(S[2]=(...C)=>_(g)&&_(g)(...C)),onTouchstart:S[3]||(S[3]=(...C)=>_(g)&&_(g)(...C)),onFocus:S[4]||(S[4]=(...C)=>_(s)&&_(s)(...C)),onBlur:S[5]||(S[5]=(...C)=>_(h)&&_(h)(...C)),onKeydown:S[6]||(S[6]=(...C)=>_(p)&&_(p)(...C))},[oe(_(fn),{ref_key:"tooltip",ref:a,visible:_(d),placement:w.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":w.tooltipClass,disabled:!_(c),persistent:""},{content:ue(()=>[ne("span",null,Ee(_(f)),1)]),default:ue(()=>[ne("div",{class:ce([_(i).e("button"),{hover:_(y),dragging:_(b)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,mz))}});var yy=Re(vz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const yz=Be({mark:{type:Ae([String,Object]),default:void 0}});var bz=be({name:"ElSliderMarker",props:yz,setup(e){const t=Pe("slider"),n=ee(()=>Ke(e.mark)?e.mark:e.mark.label),r=ee(()=>Ke(e.mark)?void 0:e.mark.style);return()=>St("div",{class:t.e("marks-text"),style:r.value},n.value)}});const _z=["id","role","aria-label","aria-labelledby"],wz={key:1},Sz={name:"ElSlider"},Cz=be({...Sz,props:qN,emits:ZN,setup(e,{expose:t,emit:n}){const r=e,i=Pe("slider"),{t:l}=Tn(),m=Tt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:o,slider:a,firstButton:c,secondButton:d,sliderDisabled:u,minValue:f,maxValue:s,runwayStyle:h,barStyle:g,resetSize:p,emitChange:v,onSliderWrapperPrevent:y,onSliderClick:b,onSliderDown:w,setFirstValue:S,setSecondValue:C}=ez(r,m,n),{stops:T,getStopStyle:k}=fz(r,m,f,s),{inputId:A,isLabeledByFormItem:P}=tu(r,{formItemContext:o}),z=br(),I=ee(()=>r.inputSize||z.value),$=ee(()=>r.label||l("el.slider.defaultLabel",{min:r.min,max:r.max})),O=ee(()=>r.range?r.rangeStartLabel||l("el.slider.defaultRangeStartLabel"):$.value),Y=ee(()=>r.formatValueText?r.formatValueText(R.value):`${R.value}`),ae=ee(()=>r.rangeEndLabel||l("el.slider.defaultRangeEndLabel")),q=ee(()=>r.formatValueText?r.formatValueText(W.value):`${W.value}`),J=ee(()=>[i.b(),i.m(z.value),i.is("vertical",r.vertical),{[i.m("with-input")]:r.showInput}]),E=QN(r);dz(r,m,f,s,n,o);const V=ee(()=>{const Z=[r.min,r.max,r.step].map(H=>{const Q=`${H}`.split(".")[1];return Q?Q.length:0});return Math.max.apply(null,Z)}),{sliderWrapper:M}=JN(r,m,p),{firstValue:R,secondValue:W,sliderSize:D}=pr(m),B=Z=>{m.dragging=Z};return gt($w,{...pr(r),sliderSize:D,disabled:u,precision:V,emitChange:v,resetSize:p,updateDragging:B}),t({onSliderClick:b}),(Z,H)=>{var Q,te;return N(),se("div",{id:Z.range?_(A):void 0,ref_key:"sliderWrapper",ref:M,class:ce(_(J)),role:Z.range?"group":void 0,"aria-label":Z.range&&!_(P)?_($):void 0,"aria-labelledby":Z.range&&_(P)?(Q=_(o))==null?void 0:Q.labelId:void 0,onTouchstart:H[2]||(H[2]=(...fe)=>_(y)&&_(y)(...fe)),onTouchmove:H[3]||(H[3]=(...fe)=>_(y)&&_(y)(...fe))},[ne("div",{ref_key:"slider",ref:a,class:ce([_(i).e("runway"),{"show-input":Z.showInput&&!Z.range},_(i).is("disabled",_(u))]),style:ze(_(h)),onMousedown:H[0]||(H[0]=(...fe)=>_(w)&&_(w)(...fe)),onTouchstart:H[1]||(H[1]=(...fe)=>_(w)&&_(w)(...fe))},[ne("div",{class:ce(_(i).e("bar")),style:ze(_(g))},null,6),oe(yy,{id:Z.range?void 0:_(A),ref_key:"firstButton",ref:c,"model-value":_(R),vertical:Z.vertical,"tooltip-class":Z.tooltipClass,placement:Z.placement,role:"slider","aria-label":Z.range||!_(P)?_(O):void 0,"aria-labelledby":!Z.range&&_(P)?(te=_(o))==null?void 0:te.labelId:void 0,"aria-valuemin":Z.min,"aria-valuemax":Z.range?_(W):Z.max,"aria-valuenow":_(R),"aria-valuetext":_(Y),"aria-orientation":Z.vertical?"vertical":"horizontal","aria-disabled":_(u),"onUpdate:modelValue":_(S)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),Z.range?(N(),ve(yy,{key:0,ref_key:"secondButton",ref:d,"model-value":_(W),vertical:Z.vertical,"tooltip-class":Z.tooltipClass,placement:Z.placement,role:"slider","aria-label":_(ae),"aria-valuemin":_(R),"aria-valuemax":Z.max,"aria-valuenow":_(W),"aria-valuetext":_(q),"aria-orientation":Z.vertical?"vertical":"horizontal","aria-disabled":_(u),"onUpdate:modelValue":_(C)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):ge("v-if",!0),Z.showStops?(N(),se("div",wz,[(N(!0),se($e,null,$t(_(T),(fe,me)=>(N(),se("div",{key:me,class:ce(_(i).e("stop")),style:ze(_(k)(fe))},null,6))),128))])):ge("v-if",!0),_(E).length>0?(N(),se($e,{key:2},[ne("div",null,[(N(!0),se($e,null,$t(_(E),(fe,me)=>(N(),se("div",{key:me,style:ze(_(k)(fe.position)),class:ce([_(i).e("stop"),_(i).e("marks-stop")])},null,6))),128))]),ne("div",{class:ce(_(i).e("marks"))},[(N(!0),se($e,null,$t(_(E),(fe,me)=>(N(),ve(_(bz),{key:me,mark:fe.mark,style:ze(_(k)(fe.position))},null,8,["mark","style"]))),128))],2)],64)):ge("v-if",!0)],38),Z.showInput&&!Z.range?(N(),ve(_(Uc),{key:0,ref:"input","model-value":_(R),class:ce(_(i).e("input")),step:Z.step,disabled:_(u),controls:Z.showInputControls,min:Z.min,max:Z.max,debounce:Z.debounce,size:_(I),"onUpdate:modelValue":_(S),onChange:_(v)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):ge("v-if",!0)],42,_z)}}});var xz=Re(Cz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const by=_t(xz),Tz=Be({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:qt},inactiveIcon:{type:qt},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{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},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:Ae(Function)},size:{type:String,validator:Tf},tabindex:{type:[String,Number]}}),kz={[mt]:e=>tr(e)||Ke(e)||lt(e),[Mr]:e=>tr(e)||Ke(e)||lt(e),[Ka]:e=>tr(e)||Ke(e)||lt(e)},Ez=["onClick"],Oz=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],Az=["aria-hidden"],Pz=["aria-hidden"],Iz=["aria-hidden"],Mz=["aria-hidden"],Lz={name:"ElSwitch"},Rz=be({...Lz,props:Tz,emits:kz,setup(e,{expose:t,emit:n}){const r=e,i="ElSwitch",l=kt(),{formItem:m}=ha(),o=br(),a=Pe("switch");xl({from:'"value"',replacement:'"model-value" or "v-model"',scope:i,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},ee(()=>{var C;return!!((C=l.vnode.props)!=null&&C.value)}));const{inputId:c}=tu(r,{formItemContext:m}),d=so(ee(()=>r.loading)),u=ie(r.modelValue!==!1),f=ie(),s=ie(),h=ee(()=>[a.b(),a.m(o.value),a.is("disabled",d.value),a.is("checked",v.value)]),g=ee(()=>({width:qr(r.width)}));Te(()=>r.modelValue,()=>{u.value=!0}),Te(()=>r.value,()=>{u.value=!1});const p=ee(()=>u.value?r.modelValue:r.value),v=ee(()=>p.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(p.value)||(n(mt,r.inactiveValue),n(Mr,r.inactiveValue),n(Ka,r.inactiveValue)),Te(v,C=>{var T;f.value.checked=C,r.validateEvent&&((T=m==null?void 0:m.validate)==null||T.call(m,"change").catch(k=>void 0))});const y=()=>{const C=v.value?r.inactiveValue:r.activeValue;n(mt,C),n(Mr,C),n(Ka,C),Ge(()=>{f.value.checked=v.value})},b=()=>{if(d.value)return;const{beforeChange:C}=r;if(!C){y();return}const T=C();[bc(T),tr(T)].includes(!0)||Ln(i,"beforeChange must return type `Promise<boolean>` or `boolean`"),bc(T)?T.then(A=>{A&&y()}).catch(A=>{}):T&&y()},w=ee(()=>a.cssVarBlock({...r.activeColor?{"on-color":r.activeColor}:null,...r.inactiveColor?{"off-color":r.inactiveColor}:null,...r.borderColor?{"border-color":r.borderColor}:null})),S=()=>{var C,T;(T=(C=f.value)==null?void 0:C.focus)==null||T.call(C)};return tt(()=>{f.value.checked=v.value}),t({focus:S,checked:v}),(C,T)=>(N(),se("div",{class:ce(_(h)),style:ze(_(w)),onClick:Qe(b,["prevent"])},[ne("input",{id:_(c),ref_key:"input",ref:f,class:ce(_(a).e("input")),type:"checkbox",role:"switch","aria-checked":_(v),"aria-disabled":_(d),name:C.name,"true-value":C.activeValue,"false-value":C.inactiveValue,disabled:_(d),tabindex:C.tabindex,onChange:y,onKeydown:Dt(b,["enter"])},null,42,Oz),!C.inlinePrompt&&(C.inactiveIcon||C.inactiveText)?(N(),se("span",{key:0,class:ce([_(a).e("label"),_(a).em("label","left"),_(a).is("active",!_(v))])},[C.inactiveIcon?(N(),ve(_(De),{key:0},{default:ue(()=>[(N(),ve(Ct(C.inactiveIcon)))]),_:1})):ge("v-if",!0),!C.inactiveIcon&&C.inactiveText?(N(),se("span",{key:1,"aria-hidden":_(v)},Ee(C.inactiveText),9,Az)):ge("v-if",!0)],2)):ge("v-if",!0),ne("span",{ref_key:"core",ref:s,class:ce(_(a).e("core")),style:ze(_(g))},[C.inlinePrompt?(N(),se("div",{key:0,class:ce(_(a).e("inner"))},[C.activeIcon||C.inactiveIcon?(N(),se($e,{key:0},[C.activeIcon?(N(),ve(_(De),{key:0,class:ce([_(a).is("icon"),_(v)?_(a).is("show"):_(a).is("hide")])},{default:ue(()=>[(N(),ve(Ct(C.activeIcon)))]),_:1},8,["class"])):ge("v-if",!0),C.inactiveIcon?(N(),ve(_(De),{key:1,class:ce([_(a).is("icon"),_(v)?_(a).is("hide"):_(a).is("show")])},{default:ue(()=>[(N(),ve(Ct(C.inactiveIcon)))]),_:1},8,["class"])):ge("v-if",!0)],64)):C.activeText||C.inactiveIcon?(N(),se($e,{key:1},[C.activeText?(N(),se("span",{key:0,class:ce([_(a).is("text"),_(v)?_(a).is("show"):_(a).is("hide")]),"aria-hidden":!_(v)},Ee(C.activeText.substring(0,3)),11,Pz)):ge("v-if",!0),C.inactiveText?(N(),se("span",{key:1,class:ce([_(a).is("text"),_(v)?_(a).is("hide"):_(a).is("show")]),"aria-hidden":_(v)},Ee(C.inactiveText.substring(0,3)),11,Iz)):ge("v-if",!0)],64)):ge("v-if",!0)],2)):ge("v-if",!0),ne("div",{class:ce(_(a).e("action"))},[C.loading?(N(),ve(_(De),{key:0,class:ce(_(a).is("loading"))},{default:ue(()=>[oe(_(qp))]),_:1},8,["class"])):ge("v-if",!0)],2)],6),!C.inlinePrompt&&(C.activeIcon||C.activeText)?(N(),se("span",{key:1,class:ce([_(a).e("label"),_(a).em("label","right"),_(a).is("active",_(v))])},[C.activeIcon?(N(),ve(_(De),{key:0},{default:ue(()=>[(N(),ve(Ct(C.activeIcon)))]),_:1})):ge("v-if",!0),!C.activeIcon&&C.activeText?(N(),se("span",{key:1,"aria-hidden":!_(v)},Ee(C.activeText),9,Mz)):ge("v-if",!0)],2)):ge("v-if",!0)],14,Ez))}});var Dz=Re(Rz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const _y=_t(Dz),Fz=Be({tabs:{type:Ae(Array),default:()=>ln([])}}),Bz={name:"ElTabBar"},$z=be({...Bz,props:Fz,setup(e,{expose:t}){const n=e,r="ElTabBar",i=kt(),l=Xe(kf);l||Ln(r,"<el-tabs><el-tab-bar /></el-tabs>");const m=Pe("tabs"),o=ie(),a=ie(),c=()=>{let u=0,f=0;const s=["top","bottom"].includes(l.props.tabPosition)?"width":"height",h=s==="width"?"x":"y";return n.tabs.every(g=>{var p,v,y,b;const w=(v=(p=i.parent)==null?void 0:p.refs)==null?void 0:v[`tab-${g.uid}`];if(!w)return!1;if(!g.active)return!0;f=w[`client${Aa(s)}`];const S=h==="x"?"left":"top";u=w.getBoundingClientRect()[S]-((b=(y=w.parentElement)==null?void 0:y.getBoundingClientRect()[S])!=null?b:0);const C=window.getComputedStyle(w);return s==="width"&&(n.tabs.length>1&&(f-=Number.parseFloat(C.paddingLeft)+Number.parseFloat(C.paddingRight)),u+=Number.parseFloat(C.paddingLeft)),!1}),{[s]:`${f}px`,transform:`translate${Aa(h)}(${u}px)`}},d=()=>a.value=c();return Te(()=>n.tabs,async()=>{await Ge(),d()},{immediate:!0}),Jr(o,()=>d()),t({ref:o,update:d}),(u,f)=>(N(),se("div",{ref_key:"barRef",ref:o,class:ce([_(m).e("active-bar"),_(m).is(_(l).props.tabPosition)]),style:ze(a.value)},null,6))}});var Nz=Re($z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const zz=Be({panes:{type:Ae(Array),default:()=>ln([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),jz={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},wy="ElTabNav",Vz=be({name:wy,props:zz,emits:jz,setup(e,{expose:t,emit:n}){const r=kt(),i=Xe(kf);i||Ln(wy,"<el-tabs><tab-nav /></el-tabs>");const l=Pe("tabs"),m=J5(),o=d6(),a=ie(),c=ie(),d=ie(),u=ie(!1),f=ie(0),s=ie(!1),h=ie(!0),g=ee(()=>["top","bottom"].includes(i.props.tabPosition)?"width":"height"),p=ee(()=>({transform:`translate${g.value==="width"?"X":"Y"}(-${f.value}px)`})),v=()=>{if(!a.value)return;const k=a.value[`offset${Aa(g.value)}`],A=f.value;if(!A)return;const P=A>k?A-k:0;f.value=P},y=()=>{if(!a.value||!c.value)return;const k=c.value[`offset${Aa(g.value)}`],A=a.value[`offset${Aa(g.value)}`],P=f.value;if(k-P<=A)return;const z=k-P>A*2?P+A:k-A;f.value=z},b=async()=>{const k=c.value;if(!u.value||!d.value||!a.value||!k)return;await Ge();const A=d.value.querySelector(".is-active");if(!A)return;const P=a.value,z=["top","bottom"].includes(i.props.tabPosition),I=A.getBoundingClientRect(),$=P.getBoundingClientRect(),O=z?k.offsetWidth-$.width:k.offsetHeight-$.height,Y=f.value;let ae=Y;z?(I.left<$.left&&(ae=Y-($.left-I.left)),I.right>$.right&&(ae=Y+I.right-$.right)):(I.top<$.top&&(ae=Y-($.top-I.top)),I.bottom>$.bottom&&(ae=Y+(I.bottom-$.bottom))),ae=Math.max(ae,0),f.value=Math.min(ae,O)},w=()=>{if(!c.value||!a.value)return;const k=c.value[`offset${Aa(g.value)}`],A=a.value[`offset${Aa(g.value)}`],P=f.value;if(A<k){const z=f.value;u.value=u.value||{},u.value.prev=z,u.value.next=z+A<k,k-z<A&&(f.value=k-A)}else u.value=!1,P>0&&(f.value=0)},S=k=>{const A=k.code,{up:P,down:z,left:I,right:$}=Et;if(![P,z,I,$].includes(A))return;const O=Array.from(k.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),Y=O.indexOf(k.target);let ae;A===I||A===P?Y===0?ae=O.length-1:ae=Y-1:Y<O.length-1?ae=Y+1:ae=0,O[ae].focus(),O[ae].click(),C()},C=()=>{h.value&&(s.value=!0)},T=()=>s.value=!1;return Te(m,k=>{k==="hidden"?h.value=!1:k==="visible"&&setTimeout(()=>h.value=!0,50)}),Te(o,k=>{k?setTimeout(()=>h.value=!0,50):h.value=!1}),Jr(d,w),tt(()=>setTimeout(()=>b(),0)),no(()=>w()),t({scrollToActiveTab:b,removeFocus:T}),Te(()=>e.panes,()=>r.update(),{flush:"post"}),()=>{const k=u.value?[oe("span",{class:[l.e("nav-prev"),l.is("disabled",!u.value.prev)],onClick:v},[oe(De,null,{default:()=>[oe(vf,null,null)]})]),oe("span",{class:[l.e("nav-next"),l.is("disabled",!u.value.next)],onClick:y},[oe(De,null,{default:()=>[oe(us,null,null)]})])]:null,A=e.panes.map((P,z)=>{var I,$,O,Y;const ae=P.uid,q=P.props.disabled,J=($=(I=P.props.name)!=null?I:P.index)!=null?$:`${z}`,E=!q&&(P.isClosable||e.editable);P.index=`${z}`;const V=E?oe(De,{class:"is-icon-close",onClick:W=>n("tabRemove",P,W)},{default:()=>[oe(Kr,null,null)]}):null,M=((Y=(O=P.slots).label)==null?void 0:Y.call(O))||P.props.label,R=!q&&P.active?0:-1;return oe("div",{ref:`tab-${ae}`,class:[l.e("item"),l.is(i.props.tabPosition),l.is("active",P.active),l.is("disabled",q),l.is("closable",E),l.is("focus",s.value)],id:`tab-${J}`,key:`tab-${ae}`,"aria-controls":`pane-${J}`,role:"tab","aria-selected":P.active,tabindex:R,onFocus:()=>C(),onBlur:()=>T(),onClick:W=>{T(),n("tabClick",P,J,W)},onKeydown:W=>{E&&(W.code===Et.delete||W.code===Et.backspace)&&n("tabRemove",P,W)}},[M,V])});return oe("div",{ref:d,class:[l.e("nav-wrap"),l.is("scrollable",!!u.value),l.is(i.props.tabPosition)]},[k,oe("div",{class:l.e("nav-scroll"),ref:a},[oe("div",{class:[l.e("nav"),l.is(i.props.tabPosition),l.is("stretch",e.stretch&&["top","bottom"].includes(i.props.tabPosition))],ref:c,style:p.value,role:"tablist",onKeydown:S},[e.type?null:oe(Nz,{tabs:[...e.panes]},null),A])])])}}}),Uz=Be({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:Ae(Function),default:()=>!0},stretch:Boolean}),Sd=e=>Ke(e)||lt(e),Hz={[mt]:e=>Sd(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>Sd(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>Sd(e),tabAdd:()=>!0};var Wz=be({name:"ElTabs",props:Uz,emits:Hz,setup(e,{emit:t,slots:n,expose:r}){var i,l;const m=Pe("tabs"),o=ie(),a=Tt({}),c=ie((l=(i=e.modelValue)!=null?i:e.activeName)!=null?l:"0"),d=g=>{c.value=g,t(mt,g),t("tabChange",g)},u=async g=>{var p,v,y;if(!(c.value===g||Tr(g)))try{await((p=e.beforeLeave)==null?void 0:p.call(e,g,c.value))!==!1&&(d(g),(y=(v=o.value)==null?void 0:v.removeFocus)==null||y.call(v))}catch{}},f=(g,p,v)=>{g.props.disabled||(u(p),t("tabClick",g,v))},s=(g,p)=>{g.props.disabled||Tr(g.props.name)||(p.stopPropagation(),t("edit",g.props.name,"remove"),t("tabRemove",g.props.name))},h=()=>{t("edit",void 0,"add"),t("tabAdd")};return xl({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},ee(()=>!!e.activeName)),Te(()=>e.activeName,g=>u(g)),Te(()=>e.modelValue,g=>u(g)),Te(c,async()=>{var g;await Ge(),(g=o.value)==null||g.scrollToActiveTab()}),gt(kf,{props:e,currentName:c,registerPane:v=>a[v.uid]=v,unregisterPane:v=>delete a[v]}),r({currentName:c}),()=>{const g=e.editable||e.addable?oe("span",{class:m.e("new-tab"),tabindex:"0",onClick:h,onKeydown:y=>{y.code===Et.enter&&h()}},[oe(De,{class:m.is("icon-plus")},{default:()=>[oe(bf,null,null)]})]):null,p=oe("div",{class:[m.e("header"),m.is(e.tabPosition)]},[g,oe(Vz,{ref:o,currentName:c.value,editable:e.editable,type:e.type,panes:Object.values(a),stretch:e.stretch,onTabClick:f,onTabRemove:s},null)]),v=oe("div",{class:m.e("content")},[ke(n,"default")]);return oe("div",{class:[m.b(),m.m(e.tabPosition),{[m.m("card")]:e.type==="card",[m.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[p,v]:[v,p]])}}});const Gz=Be({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),Yz=["id","aria-hidden","aria-labelledby"],Kz={name:"ElTabPane"},Xz=be({...Kz,props:Gz,setup(e){const t=e,n="ElTabPane",r=kt(),i=os(),l=Xe(kf);l||Ln(n,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const m=Pe("tab-pane"),o=ie(),a=ee(()=>t.closable||l.props.closable),c=s0(()=>{var h;return l.currentName.value===((h=t.name)!=null?h:o.value)}),d=ie(c.value),u=ee(()=>{var h;return(h=t.name)!=null?h:o.value}),f=s0(()=>!t.lazy||d.value||c.value);Te(c,h=>{h&&(d.value=!0)});const s=Tt({uid:r.uid,slots:i,props:t,paneName:u,active:c,index:o,isClosable:a});return tt(()=>{l.registerPane(s)}),da(()=>{l.unregisterPane(s.uid)}),(h,g)=>_(f)?xt((N(),se("div",{key:0,id:`pane-${_(u)}`,class:ce(_(m).b()),role:"tabpanel","aria-hidden":!_(c),"aria-labelledby":`tab-${_(u)}`},[ke(h.$slots,"default")],10,Yz)),[[Gt,_(c)]]):ge("v-if",!0)}});var $2=Re(Xz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const qz=_t(Wz,{TabPane:$2}),Cd=yr($2),Zz="ElUpload";class Jz extends Error{constructor(t,n,r,i){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=i}}function Sy(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 Jz(r,n.status,t.method,e)}function Qz(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const ej=e=>{typeof XMLHttpRequest>"u"&&Ln(Zz,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",l=>{const m=l;m.percent=l.total>0?l.loaded/l.total*100:0,e.onProgress(m)});const r=new FormData;if(e.data)for(const[l,m]of Object.entries(e.data))Array.isArray(m)?r.append(l,...m):r.append(l,m);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(Sy(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(Sy(n,e,t));e.onSuccess(Qz(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((l,m)=>t.setRequestHeader(m,l));else for(const[l,m]of Object.entries(i))Hr(m)||t.setRequestHeader(l,String(m));return t.send(r),t},N2=["text","picture","picture-card"];let tj=1;const z2=()=>Date.now()+tj++,j2=Be({action:{type:String,default:"#"},headers:{type:Ae(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>ln({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:Ae(Array),default:()=>ln([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:N2,default:"text"},httpRequest:{type:Ae(Function),default:ej},disabled:Boolean,limit:Number}),nj=Be({...j2,beforeUpload:{type:Ae(Function),default:at},beforeRemove:{type:Ae(Function)},onRemove:{type:Ae(Function),default:at},onChange:{type:Ae(Function),default:at},onPreview:{type:Ae(Function),default:at},onSuccess:{type:Ae(Function),default:at},onProgress:{type:Ae(Function),default:at},onError:{type:Ae(Function),default:at},onExceed:{type:Ae(Function),default:at}}),rj=Be({files:{type:Ae(Array),default:()=>ln([])},disabled:{type:Boolean,default:!1},handlePreview:{type:Ae(Function),default:at},listType:{type:String,values:N2,default:"text"}}),ij={remove:e=>!!e},aj=["onKeydown"],oj=["src"],sj=["onClick"],lj=["onClick"],uj=["onClick"],cj={name:"ElUploadList"},fj=be({...cj,props:rj,emits:ij,setup(e,{emit:t}){const{t:n}=Tn(),r=Pe("upload"),i=Pe("icon"),l=Pe("list"),m=ie(!1),o=a=>{t("remove",a)};return(a,c)=>(N(),ve(hk,{tag:"ul",class:ce([_(r).b("list"),_(r).bm("list",a.listType),_(r).is("disabled",a.disabled)]),name:_(l).b()},{default:ue(()=>[(N(!0),se($e,null,$t(a.files,d=>(N(),se("li",{key:d.uid||d.name,class:ce([_(r).be("list","item"),_(r).is(d.status),{focusing:m.value}]),tabindex:"0",onKeydown:Dt(u=>!a.disabled&&o(d),["delete"]),onFocus:c[0]||(c[0]=u=>m.value=!0),onBlur:c[1]||(c[1]=u=>m.value=!1),onClick:c[2]||(c[2]=u=>m.value=!1)},[ke(a.$slots,"default",{file:d},()=>[a.listType==="picture"||d.status!=="uploading"&&a.listType==="picture-card"?(N(),se("img",{key:0,class:ce(_(r).be("list","item-thumbnail")),src:d.url,alt:""},null,10,oj)):ge("v-if",!0),d.status==="uploading"||a.listType!=="picture-card"?(N(),se("div",{key:1,class:ce(_(r).be("list","item-info"))},[ne("a",{class:ce(_(r).be("list","item-name")),onClick:Qe(u=>a.handlePreview(d),["prevent"])},[oe(_(De),{class:ce(_(i).m("document"))},{default:ue(()=>[oe(_(M1))]),_:1},8,["class"]),ne("span",{class:ce(_(r).be("list","item-file-name"))},Ee(d.name),3)],10,sj),d.status==="uploading"?(N(),ve(_(B2),{key:0,type:a.listType==="picture-card"?"circle":"line","stroke-width":a.listType==="picture-card"?6:2,percentage:Number(d.percentage),style:ze(a.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):ge("v-if",!0)],2)):ge("v-if",!0),ne("label",{class:ce(_(r).be("list","item-status-label"))},[a.listType==="text"?(N(),ve(_(De),{key:0,class:ce([_(i).m("upload-success"),_(i).m("circle-check")])},{default:ue(()=>[oe(_(Ql))]),_:1},8,["class"])):["picture-card","picture"].includes(a.listType)?(N(),ve(_(De),{key:1,class:ce([_(i).m("upload-success"),_(i).m("check")])},{default:ue(()=>[oe(_(A1))]),_:1},8,["class"])):ge("v-if",!0)],2),a.disabled?ge("v-if",!0):(N(),ve(_(De),{key:2,class:ce(_(i).m("close")),onClick:u=>o(d)},{default:ue(()=>[oe(_(Kr))]),_:2},1032,["class","onClick"])),ge(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),ge(" This is a bug which needs to be fixed "),ge(" TODO: Fix the incorrect navigation interaction "),a.disabled?ge("v-if",!0):(N(),se("i",{key:3,class:ce(_(i).m("close-tip"))},Ee(_(n)("el.upload.deleteTip")),3)),a.listType==="picture-card"?(N(),se("span",{key:4,class:ce(_(r).be("list","item-actions"))},[ne("span",{class:ce(_(r).be("list","item-preview")),onClick:u=>a.handlePreview(d)},[oe(_(De),{class:ce(_(i).m("zoom-in"))},{default:ue(()=>[oe(_($1))]),_:1},8,["class"])],10,lj),a.disabled?ge("v-if",!0):(N(),se("span",{key:0,class:ce(_(r).be("list","item-delete")),onClick:u=>o(d)},[oe(_(De),{class:ce(_(i).m("delete"))},{default:ue(()=>[oe(_(Yi))]),_:1},8,["class"])],10,uj))],2)):ge("v-if",!0)])],42,aj))),128)),ke(a.$slots,"append")]),_:3},8,["class","name"]))}});var Cy=Re(fj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const dj=Be({disabled:{type:Boolean,default:!1}}),hj={file:e=>Ue(e)},pj=["onDrop","onDragover"],mj={name:"ElUploadDrag"},gj=be({...mj,props:dj,emits:hj,setup(e,{emit:t}){const n=e,r="ElUploadDrag",i=Xe(Nw);i||Ln(r,"usage: <el-upload><el-upload-dragger /></el-upload>");const l=Pe("upload"),m=ie(!1),o=c=>{if(n.disabled)return;m.value=!1;const d=Array.from(c.dataTransfer.files),u=i.accept.value;if(!u){t("file",d);return}const f=d.filter(s=>{const{type:h,name:g}=s,p=g.includes(".")?`.${g.split(".").pop()}`:"",v=h.replace(/\/.*$/,"");return u.split(",").map(y=>y.trim()).filter(y=>y).some(y=>y.startsWith(".")?p===y:/\/\*$/.test(y)?v===y.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(y)?h===y:!1)});t("file",f)},a=()=>{n.disabled||(m.value=!0)};return(c,d)=>(N(),se("div",{class:ce([_(l).b("dragger"),_(l).is("dragover",m.value)]),onDrop:Qe(o,["prevent"]),onDragover:Qe(a,["prevent"]),onDragleave:d[0]||(d[0]=Qe(u=>m.value=!1,["prevent"]))},[ke(c.$slots,"default")],42,pj))}});var vj=Re(gj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const yj=Be({...j2,beforeUpload:{type:Ae(Function),default:at},onRemove:{type:Ae(Function),default:at},onStart:{type:Ae(Function),default:at},onSuccess:{type:Ae(Function),default:at},onProgress:{type:Ae(Function),default:at},onError:{type:Ae(Function),default:at},onExceed:{type:Ae(Function),default:at}}),bj=["onKeydown"],_j=["name","multiple","accept"],wj={name:"ElUploadContent",inheritAttrs:!1},Sj=be({...wj,props:yj,setup(e,{expose:t}){const n=e,r=Pe("upload"),i=mn({}),l=mn(),m=s=>{if(s.length===0)return;const{autoUpload:h,limit:g,fileList:p,multiple:v,onStart:y,onExceed:b}=n;if(g&&p.length+s.length>g){b(s,p);return}v||(s=s.slice(0,1));for(const w of s){const S=w;S.uid=z2(),y(S),h&&o(S)}},o=async s=>{if(l.value.value="",!n.beforeUpload)return a(s);let h;try{h=await n.beforeUpload(s)}catch{h=!1}if(h===!1){n.onRemove(s);return}let g=s;h instanceof Blob&&(h instanceof File?g=h:g=new File([h],s.name,{type:s.type})),a(Object.assign(g,{uid:s.uid}))},a=s=>{const{headers:h,data:g,method:p,withCredentials:v,name:y,action:b,onProgress:w,onSuccess:S,onError:C,httpRequest:T}=n,{uid:k}=s,A={headers:h||{},withCredentials:v,file:s,data:g,method:p,filename:y,action:b,onProgress:z=>{w(z,s)},onSuccess:z=>{S(z,s),delete i.value[k]},onError:z=>{C(z,s),delete i.value[k]}},P=T(A);i.value[k]=P,P instanceof Promise&&P.then(A.onSuccess,A.onError)},c=s=>{const h=s.target.files;!h||m(Array.from(h))},d=()=>{n.disabled||(l.value.value="",l.value.click())},u=()=>{d()};return t({abort:s=>{m6(i.value).filter(s?([g])=>String(s.uid)===g:()=>!0).forEach(([g,p])=>{p instanceof XMLHttpRequest&&p.abort(),delete i.value[g]})},upload:o}),(s,h)=>(N(),se("div",{class:ce([_(r).b(),_(r).m(s.listType),_(r).is("drag",s.drag)]),tabindex:"0",onClick:d,onKeydown:Dt(Qe(u,["self"]),["enter","space"])},[s.drag?(N(),ve(vj,{key:0,disabled:s.disabled,onFile:m},{default:ue(()=>[ke(s.$slots,"default")]),_:3},8,["disabled"])):ke(s.$slots,"default",{key:1}),ne("input",{ref_key:"inputRef",ref:l,class:ce(_(r).e("input")),name:s.name,multiple:s.multiple,accept:s.accept,type:"file",onChange:c,onClick:h[0]||(h[0]=Qe(()=>{},["stop"]))},null,42,_j)],42,bj))}});var xy=Re(Sj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const Ty="ElUpload",Cj=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},xj=(e,t)=>{const n=f6(e,"fileList",void 0,{passive:!0}),r=f=>n.value.find(s=>s.uid===f.uid);function i(f){var s;(s=t.value)==null||s.abort(f)}function l(f=["ready","uploading","success","fail"]){n.value=n.value.filter(s=>!f.includes(s.status))}const m=(f,s)=>{const h=r(s);!h||(console.error(f),h.status="fail",n.value.splice(n.value.indexOf(h),1),e.onError(f,h,n.value),e.onChange(h,n.value))},o=(f,s)=>{const h=r(s);!h||(e.onProgress(f,h,n.value),h.status="uploading",h.percentage=Math.round(f.percent))},a=(f,s)=>{const h=r(s);!h||(h.status="success",h.response=f,e.onSuccess(f,h,n.value),e.onChange(h,n.value))},c=f=>{const s={name:f.name,percentage:0,status:"ready",size:f.size,raw:f,uid:f.uid};if(e.listType==="picture-card"||e.listType==="picture")try{s.url=URL.createObjectURL(f)}catch(h){h.message,e.onError(h,s,n.value)}n.value=[...n.value,s],e.onChange(s,n.value)},d=async f=>{const s=f instanceof File?r(f):f;s||Ln(Ty,"file to be removed not found");const h=g=>{i(g);const p=n.value;p.splice(p.indexOf(g),1),e.onRemove(g,p),Cj(g)};e.beforeRemove?await e.beforeRemove(s,n.value)!==!1&&h(s):h(s)};function u(){n.value.filter(({status:f})=>f==="ready").forEach(({raw:f})=>{var s;return f&&((s=t.value)==null?void 0:s.upload(f))})}return Te(()=>e.listType,f=>{f!=="picture-card"&&f!=="picture"||(n.value=n.value.map(s=>{const{raw:h,url:g}=s;if(!g&&h)try{s.url=URL.createObjectURL(h)}catch(p){e.onError(p,s,n.value)}return s}))}),Te(n,f=>{for(const s of f)s.uid||(s.uid=z2()),s.status||(s.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:i,clearFiles:l,handleError:m,handleProgress:o,handleStart:c,handleSuccess:a,handleRemove:d,submit:u}},Tj={name:"ElUpload"},kj=be({...Tj,props:nj,setup(e,{expose:t}){const n=e,r=os(),i=so(),l=mn(),{abort:m,submit:o,clearFiles:a,uploadFiles:c,handleStart:d,handleError:u,handleRemove:f,handleSuccess:s,handleProgress:h}=xj(n,l),g=ee(()=>n.listType==="picture-card"),p=ee(()=>({...n,fileList:c.value,onStart:d,onProgress:h,onSuccess:s,onError:u,onRemove:f}));return Jt(()=>{c.value.forEach(({url:v})=>{v!=null&&v.startsWith("blob:")&&URL.revokeObjectURL(v)})}),gt(Nw,{accept:rr(n,"accept")}),t({abort:m,submit:o,clearFiles:a,handleStart:d,handleRemove:f}),(v,y)=>(N(),se("div",null,[_(g)&&v.showFileList?(N(),ve(Cy,{key:0,disabled:_(i),"list-type":v.listType,files:_(c),"handle-preview":v.onPreview,onRemove:_(f)},Ec({append:ue(()=>[oe(xy,zn({ref_key:"uploadRef",ref:l},_(p)),{default:ue(()=>[_(r).trigger?ke(v.$slots,"trigger",{key:0}):ge("v-if",!0),!_(r).trigger&&_(r).default?ke(v.$slots,"default",{key:1}):ge("v-if",!0)]),_:3},16)]),_:2},[v.$slots.file?{name:"default",fn:ue(({file:b})=>[ke(v.$slots,"file",{file:b})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):ge("v-if",!0),!_(g)||_(g)&&!v.showFileList?(N(),ve(xy,zn({key:1,ref_key:"uploadRef",ref:l},_(p)),{default:ue(()=>[_(r).trigger?ke(v.$slots,"trigger",{key:0}):ge("v-if",!0),!_(r).trigger&&_(r).default?ke(v.$slots,"default",{key:1}):ge("v-if",!0)]),_:3},16)):ge("v-if",!0),v.$slots.trigger?ke(v.$slots,"default",{key:2}):ge("v-if",!0),ke(v.$slots,"tip"),!_(g)&&v.showFileList?(N(),ve(Cy,{key:3,disabled:_(i),"list-type":v.listType,files:_(c),"handle-preview":v.onPreview,onRemove:_(f)},Ec({_:2},[v.$slots.file?{name:"default",fn:ue(({file:b})=>[ke(v.$slots,"file",{file:b})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):ge("v-if",!0)]))}});var Ej=Re(kj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const Lm=_t(Ej),V2=["success","info","warning","error"],$n=ln({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:dt?document.body:void 0}),Oj=Be({customClass:{type:String,default:$n.customClass},center:{type:Boolean,default:$n.center},dangerouslyUseHTMLString:{type:Boolean,default:$n.dangerouslyUseHTMLString},duration:{type:Number,default:$n.duration},icon:{type:qt,default:$n.icon},id:{type:String,default:$n.id},message:{type:Ae([String,Object,Function]),default:$n.message},onClose:{type:Ae(Function),required:!1},showClose:{type:Boolean,default:$n.showClose},type:{type:String,values:V2,default:$n.type},offset:{type:Number,default:$n.offset},zIndex:{type:Number,default:$n.zIndex},grouping:{type:Boolean,default:$n.grouping},repeatNum:{type:Number,default:$n.repeatNum}}),Aj={destroy:()=>!0},Ur=Lp([]),Pj=e=>{const t=Ur.findIndex(i=>i.id===e),n=Ur[t];let r;return t>0&&(r=Ur[t-1]),{current:n,prev:r}},Ij=e=>{const{prev:t}=Pj(e);return t?t.vm.exposed.bottom.value:0},Mj=["id"],Lj=["innerHTML"],Rj={name:"ElMessage"},Dj=be({...Rj,props:Oj,emits:Aj,setup(e,{expose:t}){const n=e,{Close:r}=Tw,i=Pe("message"),l=ie(),m=ie(!1),o=ie(0);let a;const c=ee(()=>n.type?n.type==="error"?"danger":n.type:"info"),d=ee(()=>{const w=n.type;return{[i.bm("icon",w)]:w&&zc[w]}}),u=ee(()=>n.icon||zc[n.type]||""),f=ee(()=>Ij(n.id)),s=ee(()=>n.offset+f.value),h=ee(()=>o.value+s.value),g=ee(()=>({top:`${s.value}px`,zIndex:n.zIndex}));function p(){n.duration!==0&&({stop:a}=Cl(()=>{y()},n.duration))}function v(){a==null||a()}function y(){m.value=!1}function b({code:w}){w===Et.esc&&y()}return tt(()=>{p(),m.value=!0}),Te(()=>n.repeatNum,()=>{v(),p()}),bt(document,"keydown",b),Jr(l,()=>{o.value=l.value.getBoundingClientRect().height}),t({visible:m,bottom:h,close:y}),(w,S)=>(N(),ve(Hn,{name:_(i).b("fade"),onBeforeLeave:w.onClose,onAfterLeave:S[0]||(S[0]=C=>w.$emit("destroy")),persisted:""},{default:ue(()=>[xt(ne("div",{id:w.id,ref_key:"messageRef",ref:l,class:ce([_(i).b(),{[_(i).m(w.type)]:w.type&&!w.icon},_(i).is("center",w.center),_(i).is("closable",w.showClose),w.customClass]),style:ze(_(g)),role:"alert",onMouseenter:v,onMouseleave:p},[w.repeatNum>1?(N(),ve(_(PL),{key:0,value:w.repeatNum,type:_(c),class:ce(_(i).e("badge"))},null,8,["value","type","class"])):ge("v-if",!0),_(u)?(N(),ve(_(De),{key:1,class:ce([_(i).e("icon"),_(d)])},{default:ue(()=>[(N(),ve(Ct(_(u))))]),_:1},8,["class"])):ge("v-if",!0),ke(w.$slots,"default",{},()=>[w.dangerouslyUseHTMLString?(N(),se($e,{key:1},[ge(" Caution here, message could've been compromised, never use user's input as message "),ne("p",{class:ce(_(i).e("content")),innerHTML:w.message},null,10,Lj)],2112)):(N(),se("p",{key:0,class:ce(_(i).e("content"))},Ee(w.message),3))]),w.showClose?(N(),ve(_(De),{key:2,class:ce(_(i).e("closeBtn")),onClick:Qe(y,["stop"])},{default:ue(()=>[oe(_(r))]),_:1},8,["class","onClick"])):ge("v-if",!0)],46,Mj),[[Gt,m.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Fj=Re(Dj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let Bj=1;const U2=e=>{const t=!e||Ke(e)||_i(e)||Ve(e)?{message:e}:e,n={...$n,...t};if(!n.appendTo)n.appendTo=document.body;else if(Ke(n.appendTo)){let r=document.querySelector(n.appendTo);Ya(r)||(r=document.body),n.appendTo=r}return n},$j=e=>{const t=Ur.indexOf(e);if(t===-1)return;Ur.splice(t,1);const{handler:n}=e;n.close()},Nj=({appendTo:e,...t},n)=>{const{nextZIndex:r}=nu(),i=`message_${Bj++}`,l=t.onClose,m=document.createElement("div"),o={...t,zIndex:r()+t.zIndex,id:i,onClose:()=>{l==null||l(),$j(u)},onDestroy:()=>{Dc(null,m)}},a=oe(Fj,o,Ve(o.message)||_i(o.message)?{default:Ve(o.message)?o.message:()=>o.message}:null);a.appContext=n||ts._context,Dc(a,m),e.appendChild(m.firstElementChild);const c=a.component,u={id:i,vnode:a,vm:c,handler:{close:()=>{c.exposed.visible.value=!1}},props:a.component.props};return u},ts=(e={},t)=>{if(!dt)return{close:()=>{}};if(lt(Ph.max)&&Ur.length>=Ph.max)return{close:()=>{}};const n=U2(e);if(n.grouping&&Ur.length){const i=Ur.find(({vnode:l})=>{var m;return((m=l.props)==null?void 0:m.message)===n.message});if(i)return i.props.repeatNum+=1,i.props.type=n.type,i.handler}const r=Nj(n,t);return Ur.push(r),r.handler};V2.forEach(e=>{ts[e]=(t={},n)=>{const r=U2(t);return ts({...r,type:e},n)}});function zj(e){for(const t of Ur)(!e||e===t.props.type)&&t.handler.close()}ts.closeAll=zj;ts._context=null;const sa=x6(ts,"$message"),jj=be({name:"ElMessageBox",directives:{TrapFocus:rR},components:{ElButton:Ze,ElFocusTrap:Tm,ElInput:lo,ElOverlay:k2,ElIcon:De,...Tw},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Tf},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,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{t:n}=Tn(),r=Pe("message-box"),i=ie(!1),{nextZIndex:l}=nu(),m=Tt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:l()}),o=ee(()=>{const $=m.type;return{[r.bm("icon",$)]:$&&zc[$]}}),a=oa(),c=oa(),d=br(ee(()=>e.buttonSize),{prop:!0,form:!0,formItem:!0}),u=ee(()=>m.icon||zc[m.type]||""),f=ee(()=>!!m.message),s=ie(),h=ie(),g=ie(),p=ie(),v=ie(),y=ee(()=>m.confirmButtonClass);Te(()=>m.inputValue,async $=>{await Ge(),e.boxType==="prompt"&&$!==null&&A()},{immediate:!0}),Te(()=>i.value,$=>{var O,Y;$&&(e.boxType!=="prompt"&&(m.autofocus?g.value=(Y=(O=v.value)==null?void 0:O.$el)!=null?Y:s.value:g.value=s.value),m.zIndex=l()),e.boxType==="prompt"&&($?Ge().then(()=>{var ae;p.value&&p.value.$el&&(m.autofocus?g.value=(ae=P())!=null?ae:s.value:g.value=s.value)}):(m.editorErrorMessage="",m.validateError=!1))});const b=ee(()=>e.draggable);Vw(s,h,b),tt(async()=>{await Ge(),e.closeOnHashChange&&window.addEventListener("hashchange",w)}),Jt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",w)});function w(){!i.value||(i.value=!1,Ge(()=>{m.action&&t("action",m.action)}))}const S=()=>{e.closeOnClickModal&&k(m.distinguishCancelAndClose?"close":"cancel")},C=gm(S),T=$=>{if(m.inputType!=="textarea")return $.preventDefault(),k("confirm")},k=$=>{var O;e.boxType==="prompt"&&$==="confirm"&&!A()||(m.action=$,m.beforeClose?(O=m.beforeClose)==null||O.call(m,$,m,w):w())},A=()=>{if(e.boxType==="prompt"){const $=m.inputPattern;if($&&!$.test(m.inputValue||""))return m.editorErrorMessage=m.inputErrorMessage||n("el.messagebox.error"),m.validateError=!0,!1;const O=m.inputValidator;if(typeof O=="function"){const Y=O(m.inputValue);if(Y===!1)return m.editorErrorMessage=m.inputErrorMessage||n("el.messagebox.error"),m.validateError=!0,!1;if(typeof Y=="string")return m.editorErrorMessage=Y,m.validateError=!0,!1}}return m.editorErrorMessage="",m.validateError=!1,!0},P=()=>{const $=p.value.$refs;return $.input||$.textarea},z=()=>{k("close")},I=()=>{e.closeOnPressEscape&&z()};return e.lockScroll&&Uw(i),W6(i),{...pr(m),ns:r,overlayEvent:C,visible:i,hasMessage:f,typeClass:o,contentId:a,inputId:c,btnSize:d,iconComponent:u,confirmButtonClasses:y,rootRef:s,focusStartRef:g,headerRef:h,inputRef:p,confirmRef:v,doClose:w,handleClose:z,onCloseRequested:I,handleWrapperClick:S,handleInputEnter:T,handleAction:k,t:n}}}),Vj=["aria-label","aria-describedby"],Uj=["aria-label"],Hj=["id"];function Wj(e,t,n,r,i,l){const m=yt("el-icon"),o=yt("close"),a=yt("el-input"),c=yt("el-button"),d=yt("el-focus-trap"),u=yt("el-overlay");return N(),ve(Hn,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=f=>e.$emit("vanish")),persisted:""},{default:ue(()=>[xt(oe(u,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:ue(()=>[ne("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:ce(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...f)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...f)),onMousedown:t[9]||(t[9]=(...f)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...f)),onMouseup:t[10]||(t[10]=(...f)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...f))},[oe(d,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:ue(()=>[ne("div",{ref:"rootRef",class:ce([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:ze(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Qe(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(N(),se("div",{key:0,ref:"headerRef",class:ce(e.ns.e("header"))},[ne("div",{class:ce(e.ns.e("title"))},[e.iconComponent&&e.center?(N(),ve(m,{key:0,class:ce([e.ns.e("status"),e.typeClass])},{default:ue(()=>[(N(),ve(Ct(e.iconComponent)))]),_:1},8,["class"])):ge("v-if",!0),ne("span",null,Ee(e.title),1)],2),e.showClose?(N(),se("button",{key:0,type:"button",class:ce(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=Dt(Qe(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[oe(m,{class:ce(e.ns.e("close"))},{default:ue(()=>[oe(o)]),_:1},8,["class"])],42,Uj)):ge("v-if",!0)],2)):ge("v-if",!0),ne("div",{id:e.contentId,class:ce(e.ns.e("content"))},[ne("div",{class:ce(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(N(),ve(m,{key:0,class:ce([e.ns.e("status"),e.typeClass])},{default:ue(()=>[(N(),ve(Ct(e.iconComponent)))]),_:1},8,["class"])):ge("v-if",!0),e.hasMessage?(N(),se("div",{key:1,class:ce(e.ns.e("message"))},[ke(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(N(),ve(Ct(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(N(),ve(Ct(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:ue(()=>[Ne(Ee(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):ge("v-if",!0)],2),xt(ne("div",{class:ce(e.ns.e("input"))},[oe(a,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=f=>e.inputValue=f),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:ce({invalid:e.validateError}),onKeydown:Dt(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),ne("div",{class:ce(e.ns.e("errormsg")),style:ze({visibility:e.editorErrorMessage?"visible":"hidden"})},Ee(e.editorErrorMessage),7)],2),[[Gt,e.showInput]])],10,Hj),ne("div",{class:ce(e.ns.e("btns"))},[e.showCancelButton?(N(),ve(c,{key:0,loading:e.cancelButtonLoading,class:ce([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=f=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Dt(Qe(f=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:ue(()=>[Ne(Ee(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):ge("v-if",!0),xt(oe(c,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:ce([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=f=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=Dt(Qe(f=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:ue(()=>[Ne(Ee(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[Gt,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,Vj)]),_:3},8,["z-index","overlay-class","mask"]),[[Gt,e.visible]])]),_:3})}var Gj=Re(jj,[["render",Wj],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const Pl=new Map,Yj=(e,t,n=null)=>{const r=oe(Gj,e,Ve(e.message)||_i(e.message)?{default:Ve(e.message)?e.message:()=>e.message}:null);return r.appContext=n,Dc(r,t),document.body.appendChild(t.firstElementChild),r.component},Kj=()=>document.createElement("div"),Xj=(e,t)=>{const n=Kj();e.onVanish=()=>{Dc(null,n),Pl.delete(i)},e.onAction=l=>{const m=Pl.get(i);let o;e.showInput?o={value:i.inputValue,action:l}:o=l,e.callback?e.callback(o,r.proxy):l==="cancel"||l==="close"?e.distinguishCancelAndClose&&l!=="cancel"?m.reject("close"):m.reject("cancel"):m.resolve(o)};const r=Yj(e,n,t),i=r.proxy;for(const l in e)st(e,l)&&!st(i.$props,l)&&(i[l]=e[l]);return i.visible=!0,i};function hs(e,t=null){if(!dt)return Promise.reject();let n;return Ke(e)||_i(e)?e={message:e}:n=e.callback,new Promise((r,i)=>{const l=Xj(e,t!=null?t:hs._context);Pl.set(l,{options:e,callback:n,resolve:r,reject:i})})}const qj=["alert","confirm","prompt"],Zj={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};qj.forEach(e=>{hs[e]=Jj(e)});function Jj(e){return(t,n,r,i)=>{let l="";return nt(n)?(r=n,l=""):Tr(n)?l="":l=n,hs(Object.assign({title:l,message:t,type:"",...Zj[e]},r,{boxType:e}),i)}}hs.close=()=>{Pl.forEach((e,t)=>{t.doClose()}),Pl.clear()};hs._context=null;const zi=hs;zi.install=e=>{zi._context=e._context,e.config.globalProperties.$msgbox=zi,e.config.globalProperties.$messageBox=zi,e.config.globalProperties.$alert=zi.alert,e.config.globalProperties.$confirm=zi.confirm,e.config.globalProperties.$prompt=zi.prompt};const H2=zi,Rt=ls("options",()=>{const e=un("options",ie({colorMode:S0({emitAuto:!0})})),t=un("pageSize",25),n=un("pageless","Disabled"),r=un("allowLargerParams","Disabled"),i=un("alsoRequestAvi","Enabled"),l=un("keepImageGenOnDisconnect","Disabled"),m=un("fetchGenerationProgress","Text"),o=un("autoCarousel","Enabled"),a=un("useBeta","Disabled"),c=un("imageDownloadType","PNG"),d=un("imageResizeMode","NoScale"),u=un("baseURL","");return e.value.colorMode=S0({emitAuto:!0,initialValue:e.value.colorMode}),{options:e,pageSize:t,pageless:n,allowLargerParams:r,alsoRequestAvi:i,keepImageGenOnDisconnect:l,fetchGenerationProgress:m,autoCarousel:o,useBeta:a,imageDownloadType:c,imageResizeMode:d,baseURL:u}});/*! *****************************************************************************
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 ft=function(){return ft=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},ft.apply(this,arguments)};function Fh(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,l;r<i;r++)(l||!(r in t))&&(l||(l=Array.prototype.slice.call(t,0,r)),l[r]=t[r]);return e.concat(l||Array.prototype.slice.call(t))}var Nt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Zt=Object.keys,xn=Array.isArray;typeof Promise<"u"&&!Nt.Promise&&(Nt.Promise=Promise);function Rn(e,t){return typeof t!="object"||Zt(t).forEach(function(n){e[n]=t[n]}),e}var Il=Object.getPrototypeOf,Qj={}.hasOwnProperty;function ir(e,t){return Qj.call(e,t)}function ns(e,t){typeof t=="function"&&(t=t(Il(e))),(typeof Reflect>"u"?Zt:Reflect.ownKeys)(t).forEach(function(n){xi(e,n,t[n])})}var W2=Object.defineProperty;function xi(e,t,n,r){W2(e,t,Rn(n&&ir(n,"get")&&typeof n.get=="function"?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function ps(e){return{from:function(t){return e.prototype=Object.create(t.prototype),xi(e.prototype,"constructor",e),{extend:ns.bind(null,e.prototype)}}}}var e9=Object.getOwnPropertyDescriptor;function Rm(e,t){var n=e9(e,t),r;return n||(r=Il(e))&&Rm(r,t)}var t9=[].slice;function Pf(e,t,n){return t9.call(e,t,n)}function G2(e,t){return t(e)}function Ds(e){if(!e)throw new Error("Assertion Failed")}function Y2(e){Nt.setImmediate?setImmediate(e):setTimeout(e,0)}function K2(e,t){return e.reduce(function(n,r,i){var l=t(r,i);return l&&(n[l[0]]=l[1]),n},{})}function n9(e,t,n){try{e.apply(null,n)}catch(r){t&&t(r)}}function vi(e,t){if(typeof t=="string"&&ir(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 l=vi(e,t[r]);n.push(l)}return n}var m=t.indexOf(".");if(m!==-1){var o=e[t.substr(0,m)];return o==null?void 0:vi(o,t.substr(m+1))}}function Er(e,t,n){if(!(!e||t===void 0)&&!("isFrozen"in Object&&Object.isFrozen(e)))if(typeof t!="string"&&"length"in t){Ds(typeof n!="string"&&"length"in n);for(var r=0,i=t.length;r<i;++r)Er(e,t[r],n[r])}else{var l=t.indexOf(".");if(l!==-1){var m=t.substr(0,l),o=t.substr(l+1);if(o==="")n===void 0?xn(e)&&!isNaN(parseInt(m))?e.splice(m,1):delete e[m]:e[m]=n;else{var a=e[m];(!a||!ir(e,m))&&(a=e[m]={}),Er(a,o,n)}}else n===void 0?xn(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function r9(e,t){typeof t=="string"?Er(e,t,void 0):"length"in t&&[].map.call(t,function(n){Er(e,n,void 0)})}function X2(e){var t={};for(var n in e)ir(e,n)&&(t[n]=e[n]);return t}var i9=[].concat;function q2(e){return i9.apply([],e)}var Z2="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(q2([8,16,32,64].map(function(e){return["Int","Uint","Float"].map(function(t){return t+e+"Array"})}))).filter(function(e){return Nt[e]}),a9=Z2.map(function(e){return Nt[e]});K2(Z2,function(e){return[e,!0]});var Wi=null;function ou(e){Wi=typeof WeakMap<"u"&&new WeakMap;var t=Bh(e);return Wi=null,t}function Bh(e){if(!e||typeof e!="object")return e;var t=Wi&&Wi.get(e);if(t)return t;if(xn(e)){t=[],Wi&&Wi.set(e,t);for(var n=0,r=e.length;n<r;++n)t.push(Bh(e[n]))}else if(a9.indexOf(e.constructor)>=0)t=e;else{var i=Il(e);t=i===Object.prototype?{}:Object.create(i),Wi&&Wi.set(e,t);for(var l in e)ir(e,l)&&(t[l]=Bh(e[l]))}return t}var o9={}.toString;function $h(e){return o9.call(e).slice(8,-1)}var Nh=typeof Symbol<"u"?Symbol.iterator:"@@iterator",s9=typeof Nh=="symbol"?function(e){var t;return e!=null&&(t=e[Nh])&&t.apply(e)}:function(){return null},Po={};function pi(e){var t,n,r,i;if(arguments.length===1){if(xn(e))return e.slice();if(this===Po&&typeof e=="string")return[e];if(i=s9(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 Dm=typeof Symbol<"u"?function(e){return e[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},Qr=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function J2(e,t){Qr=e,Q2=t}var Q2=function(){return!0},l9=!new Error("").stack;function uo(){if(l9)try{throw uo.arguments,new Error}catch(e){return e}return new Error}function zh(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(Q2).map(function(r){return`
`+r}).join("")):""}var u9=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"],eS=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Fm=u9.concat(eS),c9={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 ms(e,t){this._e=uo(),this.name=e,this.message=t}ps(ms).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+zh(this._e,2))}},toString:function(){return this.name+": "+this.message}});function tS(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 Wc(e,t,n,r){this._e=uo(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=tS(e,t)}ps(Wc).from(ms);function tl(e,t){this._e=uo(),this.name="BulkError",this.failures=Object.keys(t).map(function(n){return t[n]}),this.failuresByPos=t,this.message=tS(e,t)}ps(tl).from(ms);var Bm=Fm.reduce(function(e,t){return e[t]=t+"Error",e},{}),f9=ms,qe=Fm.reduce(function(e,t){var n=t+"Error";function r(i,l){this._e=uo(),this.name=n,i?typeof i=="string"?(this.message=""+i+(l?`
`+l:""),this.inner=l||null):typeof i=="object"&&(this.message=i.name+" "+i.message,this.inner=i):(this.message=c9[t]||n,this.inner=null)}return ps(r).from(f9),e[t]=r,e},{});qe.Syntax=SyntaxError;qe.Type=TypeError;qe.Range=RangeError;var ky=eS.reduce(function(e,t){return e[t+"Error"]=qe[t],e},{});function d9(e,t){if(!e||e instanceof ms||e instanceof TypeError||e instanceof SyntaxError||!e.name||!ky[e.name])return e;var n=new ky[e.name](t||e.message,e);return"stack"in e&&xi(n,"stack",{get:function(){return this.inner.stack}}),n}var If=Fm.reduce(function(e,t){return["Syntax","Type","Range"].indexOf(t)===-1&&(e[t+"Error"]=qe[t]),e},{});If.ModifyError=Wc;If.DexieError=ms;If.BulkError=tl;function Pt(){}function su(e){return e}function h9(e,t){return e==null||e===su?t:function(n){return t(e(n))}}function qa(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function p9(e,t){return e===Pt?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 l=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?qa(r,this.onsuccess):r),i&&(this.onerror=this.onerror?qa(i,this.onerror):i),l!==void 0?l:n}}function m9(e,t){return e===Pt?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?qa(n,this.onsuccess):n),r&&(this.onerror=this.onerror?qa(r,this.onerror):r)}}function g9(e,t){return e===Pt?t:function(n){var r=e.apply(this,arguments);Rn(n,r);var i=this.onsuccess,l=this.onerror;this.onsuccess=null,this.onerror=null;var m=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?qa(i,this.onsuccess):i),l&&(this.onerror=this.onerror?qa(l,this.onerror):l),r===void 0?m===void 0?void 0:m:Rn(r,m)}}function v9(e,t){return e===Pt?t:function(){return t.apply(this,arguments)===!1?!1:e.apply(this,arguments)}}function $m(e,t){return e===Pt?t:function(){var n=e.apply(this,arguments);if(n&&typeof n.then=="function"){for(var r=this,i=arguments.length,l=new Array(i);i--;)l[i]=arguments[i];return n.then(function(){return t.apply(r,l)})}return t.apply(this,arguments)}}var Ml={},y9=100,b9=20,nS=100,Nm=typeof Promise>"u"?[]:function(){var e=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[e,Il(e),e];var t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,Il(t),e]}(),jh=Nm[0],Gc=Nm[1],Vh=Nm[2],rS=Gc&&Gc.then,dc=jh&&jh.constructor,zm=!!Vh,Uh=!1,_9=Vh?function(){Vh.then(Ru)}:Nt.setImmediate?setImmediate.bind(null,Ru):Nt.MutationObserver?function(){var e=document.createElement("div");new MutationObserver(function(){Ru(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:function(){setTimeout(Ru,0)},Ll=function(e,t){Fs.push([e,t]),Yc&&(_9(),Yc=!1)},Hh=!0,Yc=!0,Va=[],hc=[],Wh=null,Gh=su,jo={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:Ay,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(function(e){try{Ay(e[0],e[1])}catch{}})}},Ye=jo,Fs=[],Ua=0,pc=[];function Fe(e){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=Pt,this._lib=!1;var t=this._PSD=Ye;if(Qr&&(this._stackHolder=uo(),this._prev=null,this._numPrev=0),typeof e!="function"){if(e!==Ml)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,aS(this,e)}var Yh={get:function(){var e=Ye,t=Kc;function n(r,i){var l=this,m=!e.global&&(e!==Ye||t!==Kc),o=m&&!Ti(),a=new Fe(function(c,d){jm(l,new iS(qc(r,e,m,o),qc(i,e,m,o),c,d,e))});return Qr&&lS(a,this),a}return n.prototype=Ml,n},set:function(e){xi(this,"then",e&&e.prototype===Ml?Yh:{get:function(){return e},set:Yh.set})}};ns(Fe.prototype,{then:Yh,_then:function(e,t){jm(this,new iS(null,null,e,t,Ye))},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):mc(r)}):this.then(null,function(r){return r&&r.name===t?n(r):mc(r)})},finally:function(e){return this.then(function(t){return e(),t},function(t){return e(),mc(t)})},stack:{get:function(){if(this._stack)return this._stack;try{Uh=!0;var e=sS(this,[],b9),t=e.join(`
From previous: `);return this._state!==null&&(this._stack=t),t}finally{Uh=!1}}},timeout:function(e,t){var n=this;return e<1/0?new Fe(function(r,i){var l=setTimeout(function(){return i(new qe.Timeout(t))},e);n.then(r,i).finally(clearTimeout.bind(null,l))}):this}});typeof Symbol<"u"&&Symbol.toStringTag&&xi(Fe.prototype,Symbol.toStringTag,"Dexie.Promise");jo.env=uS();function iS(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}ns(Fe,{all:function(){var e=pi.apply(null,arguments).map(Xc);return new Fe(function(t,n){e.length===0&&t([]);var r=e.length;e.forEach(function(i,l){return Fe.resolve(i).then(function(m){e[l]=m,--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(Ml,!0,e);return lS(t,Wh),t},reject:mc,race:function(){var e=pi.apply(null,arguments).map(Xc);return new Fe(function(t,n){e.map(function(r){return Fe.resolve(r).then(t,n)})})},PSD:{get:function(){return Ye},set:function(e){return Ye=e}},totalEchoes:{get:function(){return Kc}},newPSD:la,usePSD:vs,scheduler:{get:function(){return Ll},set:function(e){Ll=e}},rejectionMapper:{get:function(){return Gh},set:function(e){Gh=e}},follow:function(e,t){return new Fe(function(n,r){return la(function(i,l){var m=Ye;m.unhandleds=[],m.onunhandled=l,m.finalize=qa(function(){var o=this;S9(function(){o.unhandleds.length===0?i():l(o.unhandleds[0])})},m.finalize),e()},t,n,r)})}});dc&&(dc.allSettled&&xi(Fe,"allSettled",function(){var e=pi.apply(null,arguments).map(Xc);return new Fe(function(t){e.length===0&&t([]);var n=e.length,r=new Array(n);e.forEach(function(i,l){return Fe.resolve(i).then(function(m){return r[l]={status:"fulfilled",value:m}},function(m){return r[l]={status:"rejected",reason:m}}).then(function(){return--n||t(r)})})})}),dc.any&&typeof AggregateError<"u"&&xi(Fe,"any",function(){var e=pi.apply(null,arguments).map(Xc);return new Fe(function(t,n){e.length===0&&n(new AggregateError([]));var r=e.length,i=new Array(r);e.forEach(function(l,m){return Fe.resolve(l).then(function(o){return t(o)},function(o){i[m]=o,--r||n(new AggregateError(i))})})})}));function aS(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&&lu();n&&typeof n.then=="function"?aS(e,function(i,l){n instanceof Fe?n._then(i,l):n.then(i,l)}):(e._state=!0,e._value=n,oS(e)),r&&uu()}},Kh.bind(null,e))}catch(n){Kh(e,n)}}function Kh(e,t){if(hc.push(t),e._state===null){var n=e._lib&&lu();t=Gh(t),e._state=!1,e._value=t,Qr&&t!==null&&typeof t=="object"&&!t._promise&&n9(function(){var r=Rm(t,"stack");t._promise=e,xi(t,"stack",{get:function(){return Uh?r&&(r.get?r.get.apply(t):r.value):e.stack}})}),C9(e),oS(e),n&&uu()}}function oS(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)jm(e,t[n]);var i=e._PSD;--i.ref||i.finalize(),Ua===0&&(++Ua,Ll(function(){--Ua===0&&Vm()},[]))}function jm(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,++Ua,Ll(w9,[n,e,t])}function w9(e,t,n){try{Wh=t;var r,i=t._value;t._state?r=e(i):(hc.length&&(hc=[]),r=e(i),hc.indexOf(i)===-1&&x9(t)),n.resolve(r)}catch(l){n.reject(l)}finally{Wh=null,--Ua===0&&Vm(),--n.psd.ref||n.psd.finalize()}}function sS(e,t,n){if(t.length===n)return t;var r="";if(e._state===!1){var i=e._value,l,m;i!=null?(l=i.name||"Error",m=i.message||i,r=zh(i,0)):(l=i,m=""),t.push(l+(m?": "+m:"")+r)}return Qr&&(r=zh(e._stackHolder,2),r&&t.indexOf(r)===-1&&t.push(r),e._prev&&sS(e._prev,t,n)),t}function lS(e,t){var n=t?t._numPrev+1:0;n<y9&&(e._prev=t,e._numPrev=n)}function Ru(){lu()&&uu()}function lu(){var e=Hh;return Hh=!1,Yc=!1,e}function uu(){var e,t,n;do for(;Fs.length>0;)for(e=Fs,Fs=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}while(Fs.length>0);Hh=!0,Yc=!0}function Vm(){var e=Va;Va=[],e.forEach(function(r){r._PSD.onunhandled.call(null,r._value,r)});for(var t=pc.slice(0),n=t.length;n;)t[--n]()}function S9(e){function t(){e(),pc.splice(pc.indexOf(t),1)}pc.push(t),++Ua,Ll(function(){--Ua===0&&Vm()},[])}function C9(e){Va.some(function(t){return t._value===e._value})||Va.push(e)}function x9(e){for(var t=Va.length;t;)if(Va[--t]._value===e._value){Va.splice(t,1);return}}function mc(e){return new Fe(Ml,!1,e)}function Vt(e,t){var n=Ye;return function(){var r=lu(),i=Ye;try{return ua(n,!0),e.apply(this,arguments)}catch(l){t&&t(l)}finally{ua(i,!1),r&&uu()}}}var Cn={awaits:0,echoes:0,id:0},T9=0,gc=[],xd=0,Kc=0,k9=0;function la(e,t,n,r){var i=Ye,l=Object.create(i);l.parent=i,l.ref=0,l.global=!1,l.id=++k9;var m=jo.env;l.env=zm?{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(m.nthen,l),gthen:Ey(m.gthen,l)}:{},t&&Rn(l,t),++i.ref,l.finalize=function(){--this.parent.ref||this.parent.finalize()};var o=vs(l,e,n,r);return l.ref===0&&l.finalize(),o}function gs(){return Cn.id||(Cn.id=++T9),++Cn.awaits,Cn.echoes+=nS,Cn.id}function Ti(){return Cn.awaits?(--Cn.awaits===0&&(Cn.id=0),Cn.echoes=Cn.awaits*nS,!0):!1}(""+rS).indexOf("[native code]")===-1&&(gs=Ti=Pt);function Xc(e){return Cn.echoes&&e&&e.constructor===dc?(gs(),e.then(function(t){return Ti(),t},function(t){return Ti(),rn(t)})):e}function E9(e){++Kc,(!Cn.echoes||--Cn.echoes===0)&&(Cn.echoes=Cn.id=0),gc.push(Ye),ua(e,!0)}function O9(){var e=gc[gc.length-1];gc.pop(),ua(e,!1)}function ua(e,t){var n=Ye;if((t?Cn.echoes&&(!xd++||e!==Ye):xd&&(!--xd||e!==Ye))&&cS(t?E9.bind(null,e):O9),e!==Ye&&(Ye=e,n===jo&&(jo.env=uS()),zm)){var r=jo.env.Promise,i=e.env;Gc.then=i.nthen,r.prototype.then=i.gthen,(n.global||e.global)&&(Object.defineProperty(Nt,"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 uS(){var e=Nt.Promise;return zm?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(Nt,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:Gc.then,gthen:e.prototype.then}:{}}function vs(e,t,n,r,i){var l=Ye;try{return ua(e,!0),t(n,r,i)}finally{ua(l,!1)}}function cS(e){rS.call(jh,e)}function qc(e,t,n,r){return typeof e!="function"?e:function(){var i=Ye;n&&gs(),ua(t,!0);try{return e.apply(this,arguments)}finally{ua(i,!1),r&&cS(Ti)}}}function Ey(e,t){return function(n,r){return e.call(this,qc(n,t),qc(r,t))}}var Oy="unhandledrejection";function Ay(e,t){var n;try{n=t.onuncatched(e)}catch{}if(n!==!1)try{var r,i={promise:t,reason:e};if(Nt.document&&document.createEvent?(r=document.createEvent("Event"),r.initEvent(Oy,!0,!0),Rn(r,i)):Nt.CustomEvent&&(r=new CustomEvent(Oy,{detail:i}),Rn(r,i)),r&&Nt.dispatchEvent&&(dispatchEvent(r),!Nt.PromiseRejectionEvent&&Nt.onunhandledrejection))try{Nt.onunhandledrejection(r)}catch{}Qr&&r&&!r.defaultPrevented&&console.warn("Unhandled rejection: "+(e.stack||e))}catch{}}var rn=Fe.reject;function Xh(e,t,n,r){if(!e.idbdb||!e._state.openComplete&&!Ye.letThrough&&!e._vip){if(e._state.openComplete)return rn(new qe.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return rn(new qe.DatabaseClosed);e.open().catch(Pt)}return e._state.dbReadyPromise.then(function(){return Xh(e,t,n,r)})}else{var i=e._createTransaction(t,n,e._dbSchema);try{i.create(),e._state.PR1398_maxLoop=3}catch(l){return l.name===Bm.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(function(){return Xh(e,t,n,r)})):rn(l)}return i._promise(t,function(l,m){return la(function(){return Ye.trans=i,r(l,m,i)})}).then(function(l){return i._completion.then(function(){return l})})}}var Py="3.2.7",Ra=String.fromCharCode(65535),qh=-1/0,ii="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",fS="String expected.",nl=[],Mf=typeof navigator<"u"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),A9=Mf,P9=Mf,dS=function(e){return!/(dexie\.js|dexie\.min\.js)/.test(e)},Lf="__dbnames",Td="readonly",kd="readwrite";function Za(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var hS={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Du(e){return typeof e=="string"&&!/\./.test(e)?function(t){return t[e]===void 0&&e in t&&(t=ou(t),delete t[e]),t}:function(t){return t}}var I9=function(){function e(){}return e.prototype._trans=function(t,n,r){var i=this._tx||Ye.trans,l=this.name;function m(a,c,d){if(!d.schema[l])throw new qe.NotFound("Table "+l+" not part of transaction");return n(d.idbtrans,d)}var o=lu();try{return i&&i.db===this.db?i===Ye.trans?i._promise(t,m,r):la(function(){return i._promise(t,m,r)},{trans:i,transless:Ye.transless||Ye}):Xh(this.db,t,[this.name],m)}finally{o&&uu()}},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(l){return r.hook.reading.fire(l)})}).then(n)},e.prototype.where=function(t){if(typeof t=="string")return new this.db.WhereClause(this,t);if(xn(t))return new this.db.WhereClause(this,"["+t.join("+")+"]");var n=Zt(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(u){if(u.compound&&n.every(function(s){return u.keyPath.indexOf(s)>=0})){for(var f=0;f<n.length;++f)if(n.indexOf(u.keyPath[f])===-1)return!1;return!0}return!1}).sort(function(u,f){return u.keyPath.length-f.keyPath.length})[0];if(r&&this.db._maxKey!==Ra){var i=r.keyPath.slice(0,n.length);return this.where(i).equals(i.map(function(u){return t[u]}))}!r&&Qr&&console.warn("The query "+JSON.stringify(t)+" on "+this.name+" would benefit of a "+("compound index ["+n.join("+")+"]"));var l=this.schema.idxByName,m=this.db._deps.indexedDB;function o(u,f){try{return m.cmp(u,f)===0}catch{return!1}}var a=n.reduce(function(u,f){var s=u[0],h=u[1],g=l[f],p=t[f];return[s||g,s||!g?Za(h,g&&g.multi?function(v){var y=vi(v,f);return xn(y)&&y.some(function(b){return o(p,b)})}:function(v){return o(p,vi(v,f))}):h]},[null,null]),c=a[0],d=a[1];return c?this.where(c.name).equals(t[c.keyPath]).filter(d):r?this.filter(d):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,xn(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 l in r)if(ir(r,l))try{i[l]=r[l]}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){Rn(this,n)}return this.mapToClass(t)},e.prototype.add=function(t,n){var r=this,i=this.schema.primKey,l=i.auto,m=i.keyPath,o=t;return m&&l&&(o=Du(m)(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(m)try{Er(t,m,a)}catch{}return a})},e.prototype.update=function(t,n){if(typeof t=="object"&&!xn(t)){var r=vi(t,this.schema.primKey.keyPath);if(r===void 0)return rn(new qe.InvalidArgument("Given object does not contain its primary key"));try{typeof n!="function"?Zt(n).forEach(function(i){Er(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,l=i.auto,m=i.keyPath,o=t;return m&&l&&(o=Du(m)(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(m)try{Er(t,m,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:hS})}).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(l){return n.hook.reading.fire(l)})})})},e.prototype.bulkAdd=function(t,n,r){var i=this,l=Array.isArray(n)?n:void 0;r=r||(l?void 0:n);var m=r?r.allKeys:void 0;return this._trans("readwrite",function(o){var a=i.schema.primKey,c=a.auto,d=a.keyPath;if(d&&l)throw new qe.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(l&&l.length!==t.length)throw new qe.InvalidArgument("Arguments objects and keys must have the same length");var u=t.length,f=d&&c?t.map(Du(d)):t;return i.core.mutate({trans:o,type:"add",keys:l,values:f,wantResults:m}).then(function(s){var h=s.numFailures,g=s.results,p=s.lastResult,v=s.failures,y=m?g:p;if(h===0)return y;throw new tl(i.name+".bulkAdd(): "+h+" of "+u+" operations failed",v)})})},e.prototype.bulkPut=function(t,n,r){var i=this,l=Array.isArray(n)?n:void 0;r=r||(l?void 0:n);var m=r?r.allKeys:void 0;return this._trans("readwrite",function(o){var a=i.schema.primKey,c=a.auto,d=a.keyPath;if(d&&l)throw new qe.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(l&&l.length!==t.length)throw new qe.InvalidArgument("Arguments objects and keys must have the same length");var u=t.length,f=d&&c?t.map(Du(d)):t;return i.core.mutate({trans:o,type:"put",keys:l,values:f,wantResults:m}).then(function(s){var h=s.numFailures,g=s.results,p=s.lastResult,v=s.failures,y=m?g:p;if(h===0)return y;throw new tl(i.name+".bulkPut(): "+h+" of "+u+" operations failed",v)})})},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 l=i.numFailures,m=i.lastResult,o=i.failures;if(l===0)return m;throw new tl(n.name+".bulkDelete(): "+l+" of "+r+" operations failed",o)})},e}();function cu(e){var t={},n=function(o,a){if(a){for(var c=arguments.length,d=new Array(c-1);--c;)d[c-1]=arguments[c];return t[o].subscribe.apply(null,d),e}else if(typeof o=="string")return t[o]};n.addEventType=l;for(var r=1,i=arguments.length;r<i;++r)l(arguments[r]);return n;function l(o,a,c){if(typeof o=="object")return m(o);a||(a=v9),c||(c=Pt);var d={subscribers:[],fire:c,subscribe:function(u){d.subscribers.indexOf(u)===-1&&(d.subscribers.push(u),d.fire=a(d.fire,u))},unsubscribe:function(u){d.subscribers=d.subscribers.filter(function(f){return f!==u}),d.fire=d.subscribers.reduce(a,c)}};return t[o]=n[o]=d,d}function m(o){Zt(o).forEach(function(a){var c=o[a];if(xn(c))l(a,o[a][0],o[a][1]);else if(c==="asap")var d=l(a,su,function(){for(var f=arguments.length,s=new Array(f);f--;)s[f]=arguments[f];d.subscribers.forEach(function(h){Y2(function(){h.apply(null,s)})})});else throw new qe.InvalidArgument("Invalid event config")})}}function fu(e,t){return ps(t).from({prototype:e}),t}function M9(e){return fu(I9.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:cu(null,{creating:[p9,Pt],reading:[h9,su],updating:[g9,Pt],deleting:[m9,Pt]})})}function So(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function Ed(e,t){e.filter=Za(e.filter,t)}function Od(e,t,n){var r=e.replayFilter;e.replayFilter=r?function(){return Za(r(),t())}:t,e.justLimit=n&&!r}function L9(e,t){e.isMatch=Za(e.isMatch,t)}function vc(e,t){if(e.isPrimKey)return t.primaryKey;var n=t.getIndexByKeyPath(e.index);if(!n)throw new qe.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function Iy(e,t,n){var r=vc(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 Fu(e,t,n,r){var i=e.replayFilter?Za(e.filter,e.replayFilter()):e.filter;if(e.or){var l={},m=function(o,a,c){if(!i||i(a,c,function(f){return a.stop(f)},function(f){return a.fail(f)})){var d=a.primaryKey,u=""+d;u==="[object ArrayBuffer]"&&(u=""+new Uint8Array(d)),ir(l,u)||(l[u]=!0,t(o,a,c))}};return Promise.all([e.or._iterate(m,n),My(Iy(e,r,n),e.algorithm,m,!e.keysOnly&&e.valueMapper)])}else return My(Iy(e,r,n),Za(e.algorithm,i),t,!e.keysOnly&&e.valueMapper)}function My(e,t,n,r){var i=r?function(m,o,a){return n(r(m),o,a)}:n,l=Vt(i);return e.then(function(m){if(m)return m.start(function(){var o=function(){return m.continue()};(!t||t(m,function(a){return o=a},function(a){m.stop(a),o=Pt},function(a){m.fail(a),o=Pt}))&&l(m.value,m,function(a){return o=a}),o()})})}function In(e,t){try{var n=Ly(e),r=Ly(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 D9(Ry(e),Ry(t));case"Array":return R9(e,t)}}catch{}return NaN}function R9(e,t){for(var n=e.length,r=t.length,i=n<r?n:r,l=0;l<i;++l){var m=In(e[l],t[l]);if(m!==0)return m}return n===r?0:n<r?-1:1}function D9(e,t){for(var n=e.length,r=t.length,i=n<r?n:r,l=0;l<i;++l)if(e[l]!==t[l])return e[l]<t[l]?-1:1;return n===r?0:n<r?-1:1}function Ly(e){var t=typeof e;if(t!=="object")return t;if(ArrayBuffer.isView(e))return"binary";var n=$h(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 F9=function(){function e(){}return e.prototype._read=function(t,n){var r=this._ctx;return r.error?r.table._trans(null,rn.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,rn.bind(null,n.error)):n.table._trans("readwrite",t,"locked")},e.prototype._addAlgorithm=function(t){var n=this._ctx;n.algorithm=Za(n.algorithm,t)},e.prototype._iterate=function(t,n){return Fu(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&&Rn(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 Fu(n,t,r,n.table.core)})},e.prototype.count=function(t){var n=this;return this._read(function(r){var i=n._ctx,l=i.table.core;if(So(i,!0))return l.count({trans:r,query:{index:vc(i,l.schema),range:i.range}}).then(function(o){return Math.min(o,i.limit)});var m=0;return Fu(i,function(){return++m,!1},r,l).then(function(){return m})}).then(t)},e.prototype.sortBy=function(t,n){var r=t.split(".").reverse(),i=r[0],l=r.length-1;function m(c,d){return d?m(c[r[d]],d-1):c[i]}var o=this._ctx.dir==="next"?1:-1;function a(c,d){var u=m(c,l),f=m(d,l);return u<f?-o:u>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"&&So(i,!0)&&i.limit>0){var l=i.valueMapper,m=vc(i,i.table.core.schema);return i.table.core.query({trans:r,limit:i.limit,values:!0,query:{index:m,range:i.range}}).then(function(a){var c=a.result;return l?c.map(l):c})}else{var o=[];return Fu(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,So(n)?Od(n,function(){var r=t;return function(i,l){return r===0?!0:r===1?(--r,!1):(l(function(){i.advance(r),r=0}),!1)}}):Od(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),Od(this._ctx,function(){var n=t;return function(r,i,l){return--n<=0&&i(l),n>=0}},!0),this},e.prototype.until=function(t,n){return Ed(this._ctx,function(r,i,l){return t(r.value)?(i(l),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 Ed(this._ctx,function(n){return t(n.value)}),L9(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,l){r.push(l.key)}).then(function(){return r}).then(t)},e.prototype.primaryKeys=function(t){var n=this._ctx;if(n.dir==="next"&&So(n,!0)&&n.limit>0)return this._read(function(i){var l=vc(n,n.table.core.schema);return n.table.core.query({trans:i,values:!1,limit:n.limit,query:{index:l,range:n.range}})}).then(function(i){var l=i.result;return l}).then(t);n.keysOnly=!n.isMatch;var r=[];return this.each(function(i,l){r.push(l.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 Ed(this._ctx,function(i){var l=i.primaryKey.toString(),m=ir(r,l);return r[l]=!0,!m}),this},e.prototype.modify=function(t){var n=this,r=this._ctx;return this._write(function(i){var l;if(typeof t=="function")l=t;else{var m=Zt(t),o=m.length;l=function(v){for(var y=!1,b=0;b<o;++b){var w=m[b],S=t[w];vi(v,w)!==S&&(Er(v,w,S),y=!0)}return y}}var a=r.table.core,c=a.schema.primaryKey,d=c.outbound,u=c.extractKey,f=n.db._options.modifyChunkSize||200,s=[],h=0,g=[],p=function(v,y){var b=y.failures,w=y.numFailures;h+=v-w;for(var S=0,C=Zt(b);S<C.length;S++){var T=C[S];s.push(b[T])}};return n.clone().primaryKeys().then(function(v){var y=function(b){var w=Math.min(f,v.length-b);return a.getMany({trans:i,keys:v.slice(b,b+w),cache:"immutable"}).then(function(S){for(var C=[],T=[],k=d?[]:null,A=[],P=0;P<w;++P){var z=S[P],I={value:ou(z),primKey:v[b+P]};l.call(I,I.value,I)!==!1&&(I.value==null?A.push(v[b+P]):!d&&In(u(z),u(I.value))!==0?(A.push(v[b+P]),C.push(I.value)):(T.push(I.value),d&&k.push(v[b+P])))}var $=So(r)&&r.limit===1/0&&(typeof t!="function"||t===Ad)&&{index:r.index,range:r.range};return Promise.resolve(C.length>0&&a.mutate({trans:i,type:"add",values:C}).then(function(O){for(var Y in O.failures)A.splice(parseInt(Y),1);p(C.length,O)})).then(function(){return(T.length>0||$&&typeof t=="object")&&a.mutate({trans:i,type:"put",keys:k,values:T,criteria:$,changeSpec:typeof t!="function"&&t}).then(function(O){return p(T.length,O)})}).then(function(){return(A.length>0||$&&t===Ad)&&a.mutate({trans:i,type:"delete",keys:A,criteria:$}).then(function(O){return p(A.length,O)})}).then(function(){return v.length>b+w&&y(b+f)})})};return y(0).then(function(){if(s.length>0)throw new Wc("Error modifying one or more objects",s,h,g);return v.length})})})},e.prototype.delete=function(){var t=this._ctx,n=t.range;return So(t)&&(t.isPrimKey&&!P9||n.type===3)?this._write(function(r){var i=t.table.core.schema.primaryKey,l=n;return t.table.core.count({trans:r,query:{index:i,range:l}}).then(function(m){return t.table.core.mutate({trans:r,type:"deleteRange",range:l}).then(function(o){var a=o.failures;o.lastResult,o.results;var c=o.numFailures;if(c)throw new Wc("Could not delete some values",Object.keys(a).map(function(d){return a[d]}),m-c);return m-c})})}):this.modify(Ad)},e}(),Ad=function(e,t){return t.value=null};function B9(e){return fu(F9.prototype,function(n,r){this.db=e;var i=hS,l=null;if(r)try{i=r()}catch(c){l=c}var m=n._ctx,o=m.table,a=o.hook.reading.fire;this._ctx={table:o,index:m.index,isPrimKey:!m.index||o.schema.primKey.keyPath&&m.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:l,or:m.or,valueMapper:a!==su?a:null}})}function $9(e,t){return e<t?-1:e===t?0:1}function N9(e,t){return e>t?-1:e===t?0:1}function Yn(e,t,n){var r=e instanceof mS?new e.Collection(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function Co(e){return new e.Collection(e,function(){return pS("")}).limit(0)}function z9(e){return e==="next"?function(t){return t.toUpperCase()}:function(t){return t.toLowerCase()}}function j9(e){return e==="next"?function(t){return t.toLowerCase()}:function(t){return t.toUpperCase()}}function V9(e,t,n,r,i,l){for(var m=Math.min(e.length,r.length),o=-1,a=0;a<m;++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 m<r.length&&l==="next"?e+n.substr(e.length):m<e.length&&l==="prev"?e.substr(0,n.length):o<0?null:e.substr(0,o)+r[o]+n.substr(o+1)}function Bu(e,t,n,r){var i,l,m,o,a,c,d,u=n.length;if(!n.every(function(g){return typeof g=="string"}))return Yn(e,fS);function f(g){i=z9(g),l=j9(g),m=g==="next"?$9:N9;var p=n.map(function(v){return{lower:l(v),upper:i(v)}}).sort(function(v,y){return m(v.lower,y.lower)});o=p.map(function(v){return v.upper}),a=p.map(function(v){return v.lower}),c=g,d=g==="next"?"":r}f("next");var s=new e.Collection(e,function(){return ji(o[0],a[u-1]+r)});s._ondirectionchange=function(g){f(g)};var h=0;return s._addAlgorithm(function(g,p,v){var y=g.key;if(typeof y!="string")return!1;var b=l(y);if(t(b,a,h))return!0;for(var w=null,S=h;S<u;++S){var C=V9(y,b,o[S],a[S],m,c);C===null&&w===null?h=S+1:(w===null||m(w,C)>0)&&(w=C)}return p(w!==null?function(){g.continue(w+d)}:v),!1}),s}function ji(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function pS(e){return{type:1,lower:e,upper:e}}var mS=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)?Co(this):new this.Collection(this,function(){return ji(t,n,!r,!i)})}catch{return Yn(this,ii)}},e.prototype.equals=function(t){return t==null?Yn(this,ii):new this.Collection(this,function(){return pS(t)})},e.prototype.above=function(t){return t==null?Yn(this,ii):new this.Collection(this,function(){return ji(t,void 0,!0)})},e.prototype.aboveOrEqual=function(t){return t==null?Yn(this,ii):new this.Collection(this,function(){return ji(t,void 0,!1)})},e.prototype.below=function(t){return t==null?Yn(this,ii):new this.Collection(this,function(){return ji(void 0,t,!1,!0)})},e.prototype.belowOrEqual=function(t){return t==null?Yn(this,ii):new this.Collection(this,function(){return ji(void 0,t)})},e.prototype.startsWith=function(t){return typeof t!="string"?Yn(this,fS):this.between(t,t+Ra,!0,!0)},e.prototype.startsWithIgnoreCase=function(t){return t===""?this.startsWith(t):Bu(this,function(n,r){return n.indexOf(r[0])===0},[t],Ra)},e.prototype.equalsIgnoreCase=function(t){return Bu(this,function(n,r){return n===r[0]},[t],"")},e.prototype.anyOfIgnoreCase=function(){var t=pi.apply(Po,arguments);return t.length===0?Co(this):Bu(this,function(n,r){return r.indexOf(n)!==-1},t,"")},e.prototype.startsWithAnyOfIgnoreCase=function(){var t=pi.apply(Po,arguments);return t.length===0?Co(this):Bu(this,function(n,r){return r.some(function(i){return n.indexOf(i)===0})},t,Ra)},e.prototype.anyOf=function(){var t=this,n=pi.apply(Po,arguments),r=this._cmp;try{n.sort(r)}catch{return Yn(this,ii)}if(n.length===0)return Co(this);var i=new this.Collection(this,function(){return ji(n[0],n[n.length-1])});i._ondirectionchange=function(m){r=m==="next"?t._ascending:t._descending,n.sort(r)};var l=0;return i._addAlgorithm(function(m,o,a){for(var c=m.key;r(c,n[l])>0;)if(++l,l===n.length)return o(a),!1;return r(c,n[l])===0?!0:(o(function(){m.continue(n[l])}),!1)}),i},e.prototype.notEqual=function(t){return this.inAnyRange([[qh,t],[t,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},e.prototype.noneOf=function(){var t=pi.apply(Po,arguments);if(t.length===0)return new this.Collection(this);try{t.sort(this._ascending)}catch{return Yn(this,ii)}var n=t.reduce(function(r,i){return r?r.concat([[r[r.length-1][1],i]]):[[qh,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,l=this._ascending,m=this._descending,o=this._min,a=this._max;if(t.length===0)return Co(this);if(!t.every(function(S){return S[0]!==void 0&&S[1]!==void 0&&l(S[0],S[1])<=0}))return Yn(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",qe.InvalidArgument);var c=!n||n.includeLowers!==!1,d=n&&n.includeUppers===!0;function u(S,C){for(var T=0,k=S.length;T<k;++T){var A=S[T];if(i(C[0],A[1])<0&&i(C[1],A[0])>0){A[0]=o(A[0],C[0]),A[1]=a(A[1],C[1]);break}}return T===k&&S.push(C),S}var f=l;function s(S,C){return f(S[0],C[0])}var h;try{h=t.reduce(u,[]),h.sort(s)}catch{return Yn(this,ii)}var g=0,p=d?function(S){return l(S,h[g][1])>0}:function(S){return l(S,h[g][1])>=0},v=c?function(S){return m(S,h[g][0])>0}:function(S){return m(S,h[g][0])>=0};function y(S){return!p(S)&&!v(S)}var b=p,w=new this.Collection(this,function(){return ji(h[0][0],h[h.length-1][1],!c,!d)});return w._ondirectionchange=function(S){S==="next"?(b=p,f=l):(b=v,f=m),h.sort(s)},w._addAlgorithm(function(S,C,T){for(var k=S.key;b(k);)if(++g,g===h.length)return C(T),!1;return y(k)?!0:(r._cmp(k,h[g][1])===0||r._cmp(k,h[g][0])===0||C(function(){f===l?S.continue(h[g][0]):S.continue(h[g][1])}),!1)}),w},e.prototype.startsWithAnyOf=function(){var t=pi.apply(Po,arguments);return t.every(function(n){return typeof n=="string"})?t.length===0?Co(this):this.inAnyRange(t.map(function(n){return[n,n+Ra]})):Yn(this,"startsWithAnyOf() only works with strings")},e}();function U9(e){return fu(mS.prototype,function(n,r,i){this.db=e,this._ctx={table:n,index:r===":id"?null:r,or:i};var l=e._deps.indexedDB;if(!l)throw new qe.MissingAPI;this._cmp=this._ascending=l.cmp.bind(l),this._descending=function(m,o){return l.cmp(o,m)},this._max=function(m,o){return l.cmp(m,o)>0?m:o},this._min=function(m,o){return l.cmp(m,o)<0?m:o},this._IDBKeyRange=e._deps.IDBKeyRange})}function zr(e){return Vt(function(t){return Rl(t),e(t.target.error),!1})}function Rl(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var Dl="storagemutated",Xi="x-storagemutated-1",ca=cu(null,Dl),H9=function(){function e(){}return e.prototype._lock=function(){return Ds(!Ye.global),++this._reculock,this._reculock===1&&!Ye.global&&(Ye.lockOwnerFor=this),this},e.prototype._unlock=function(){if(Ds(!Ye.global),--this._reculock===0)for(Ye.global||(Ye.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var t=this._blockedFuncs.shift();try{vs(t[1],t[0])}catch{}}return this},e.prototype._locked=function(){return this._reculock&&Ye.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(Ds(!this.idbtrans),!t&&!r)switch(i&&i.name){case"DatabaseClosedError":throw new qe.DatabaseClosed(i);case"MissingAPIError":throw new qe.MissingAPI(i.message,i);default:throw new qe.OpenFailed(i)}if(!this.active)throw new qe.TransactionInactive;return Ds(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=Vt(function(l){Rl(l),n._reject(t.error)}),t.onabort=Vt(function(l){Rl(l),n.active&&n._reject(new qe.Abort(t.error)),n.active=!1,n.on("abort").fire(l)}),t.oncomplete=Vt(function(){n.active=!1,n._resolve(),"mutatedParts"in t&&ca.storagemutated.fire(t.mutatedParts)}),this},e.prototype._promise=function(t,n,r){var i=this;if(t==="readwrite"&&this.mode!=="readwrite")return rn(new qe.ReadOnly("Transaction is readonly"));if(!this.active)return rn(new qe.TransactionInactive);if(this._locked())return new Fe(function(m,o){i._blockedFuncs.push([function(){i._promise(t,n,r).then(m,o)},Ye])});if(r)return la(function(){var m=new Fe(function(o,a){i._lock();var c=n(o,a,i);c&&c.then&&c.then(o,a)});return m.finally(function(){return i._unlock()}),m._lib=!0,m});var l=new Fe(function(m,o){var a=n(m,o,i);a&&a.then&&a.then(m,o)});return l._lib=!0,l},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 m(){for(++n._spinCount;n._waitingQueue.length;)n._waitingQueue.shift()();n._waitingFor&&(i.get(-1/0).onsuccess=m)})()}var l=n._waitingFor;return new Fe(function(m,o){r.then(function(a){return n._waitingQueue.push(Vt(m.bind(null,a)))},function(a){return n._waitingQueue.push(Vt(o.bind(null,a)))}).finally(function(){n._waitingFor===l&&(n._waitingFor=null)})})},e.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new qe.Abort))},e.prototype.table=function(t){var n=this._memoizedTables||(this._memoizedTables={});if(ir(n,t))return n[t];var r=this.schema[t];if(!r)throw new qe.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 W9(e){return fu(H9.prototype,function(n,r,i,l,m){var o=this;this.db=e,this.mode=n,this.storeNames=r,this.schema=i,this.chromeTransactionDurability=l,this.idbtrans=null,this.on=cu(this,"complete","error","abort"),this.parent=m||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(),rn(a)})})}function Zh(e,t,n,r,i,l,m){return{name:e,keyPath:t,unique:n,multi:r,auto:i,compound:l,src:(n&&!m?"&":"")+(r?"*":"")+(i?"++":"")+gS(t)}}function gS(e){return typeof e=="string"?e:e?"["+[].join.call(e,"+")+"]":""}function vS(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:K2(n,function(r){return[r.name,r]})}}function G9(e){return e.length===1?e[0]:e}var Fl=function(e){try{return e.only([[]]),Fl=function(){return[[]]},[[]]}catch{return Fl=function(){return Ra},Ra}};function Jh(e){return e==null?function(){}:typeof e=="string"?Y9(e):function(t){return vi(t,e)}}function Y9(e){var t=e.split(".");return t.length===1?function(n){return n[e]}:function(n){return vi(n,e)}}function Dy(e){return[].slice.call(e)}var K9=0;function rl(e){return e==null?":id":typeof e=="string"?e:"["+e.join("+")+"]"}function X9(e,t,n){function r(u,f){var s=Dy(u.objectStoreNames);return{schema:{name:u.name,tables:s.map(function(h){return f.objectStore(h)}).map(function(h){var g=h.keyPath,p=h.autoIncrement,v=xn(g),y=g==null,b={},w={name:h.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:y,compound:v,keyPath:g,autoIncrement:p,unique:!0,extractKey:Jh(g)},indexes:Dy(h.indexNames).map(function(S){return h.index(S)}).map(function(S){var C=S.name,T=S.unique,k=S.multiEntry,A=S.keyPath,P=xn(A),z={name:C,compound:P,keyPath:A,unique:T,multiEntry:k,extractKey:Jh(A)};return b[rl(A)]=z,z}),getIndexByKeyPath:function(S){return b[rl(S)]}};return b[":id"]=w.primaryKey,g!=null&&(b[rl(g)]=w.primaryKey),w})},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(u){if(u.type===3)return null;if(u.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var f=u.lower,s=u.upper,h=u.lowerOpen,g=u.upperOpen,p=f===void 0?s===void 0?null:t.upperBound(s,!!g):s===void 0?t.lowerBound(f,!!h):t.bound(f,s,!!h,!!g);return p}function l(u){var f=u.name;function s(p){var v=p.trans,y=p.type,b=p.keys,w=p.values,S=p.range;return new Promise(function(C,T){C=Vt(C);var k=v.objectStore(f),A=k.keyPath==null,P=y==="put"||y==="add";if(!P&&y!=="delete"&&y!=="deleteRange")throw new Error("Invalid operation type: "+y);var z=(b||w||{length:1}).length;if(b&&w&&b.length!==w.length)throw new Error("Given keys array must have same length as given values array.");if(z===0)return C({numFailures:0,failures:{},results:[],lastResult:void 0});var I,$=[],O=[],Y=0,ae=function(R){++Y,Rl(R)};if(y==="deleteRange"){if(S.type===4)return C({numFailures:Y,failures:O,results:[],lastResult:void 0});S.type===3?$.push(I=k.clear()):$.push(I=k.delete(i(S)))}else{var q=P?A?[w,b]:[w,null]:[b,null],J=q[0],E=q[1];if(P)for(var V=0;V<z;++V)$.push(I=E&&E[V]!==void 0?k[y](J[V],E[V]):k[y](J[V])),I.onerror=ae;else for(var V=0;V<z;++V)$.push(I=k[y](J[V])),I.onerror=ae}var M=function(R){var W=R.target.result;$.forEach(function(D,B){return D.error!=null&&(O[B]=D.error)}),C({numFailures:Y,failures:O,results:y==="delete"?b:$.map(function(D){return D.result}),lastResult:W})};I.onerror=function(R){ae(R),M(R)},I.onsuccess=M})}function h(p){var v=p.trans,y=p.values,b=p.query,w=p.reverse,S=p.unique;return new Promise(function(C,T){C=Vt(C);var k=b.index,A=b.range,P=v.objectStore(f),z=k.isPrimaryKey?P:P.index(k.name),I=w?S?"prevunique":"prev":S?"nextunique":"next",$=y||!("openKeyCursor"in z)?z.openCursor(i(A),I):z.openKeyCursor(i(A),I);$.onerror=zr(T),$.onsuccess=Vt(function(O){var Y=$.result;if(!Y){C(null);return}Y.___id=++K9,Y.done=!1;var ae=Y.continue.bind(Y),q=Y.continuePrimaryKey;q&&(q=q.bind(Y));var J=Y.advance.bind(Y),E=function(){throw new Error("Cursor not started")},V=function(){throw new Error("Cursor not stopped")};Y.trans=v,Y.stop=Y.continue=Y.continuePrimaryKey=Y.advance=E,Y.fail=Vt(T),Y.next=function(){var M=this,R=1;return this.start(function(){return R--?M.continue():M.stop()}).then(function(){return M})},Y.start=function(M){var R=new Promise(function(D,B){D=Vt(D),$.onerror=zr(B),Y.fail=B,Y.stop=function(Z){Y.stop=Y.continue=Y.continuePrimaryKey=Y.advance=V,D(Z)}}),W=function(){if($.result)try{M()}catch(D){Y.fail(D)}else Y.done=!0,Y.start=function(){throw new Error("Cursor behind last entry")},Y.stop()};return $.onsuccess=Vt(function(D){$.onsuccess=W,W()}),Y.continue=ae,Y.continuePrimaryKey=q,Y.advance=J,W(),R},C(Y)},T)})}function g(p){return function(v){return new Promise(function(y,b){y=Vt(y);var w=v.trans,S=v.values,C=v.limit,T=v.query,k=C===1/0?void 0:C,A=T.index,P=T.range,z=w.objectStore(f),I=A.isPrimaryKey?z:z.index(A.name),$=i(P);if(C===0)return y({result:[]});if(p){var O=S?I.getAll($,k):I.getAllKeys($,k);O.onsuccess=function(J){return y({result:J.target.result})},O.onerror=zr(b)}else{var Y=0,ae=S||!("openKeyCursor"in I)?I.openCursor($):I.openKeyCursor($),q=[];ae.onsuccess=function(J){var E=ae.result;if(!E)return y({result:q});if(q.push(S?E.value:E.primaryKey),++Y===C)return y({result:q});E.continue()},ae.onerror=zr(b)}})}}return{name:f,schema:u,mutate:s,getMany:function(p){var v=p.trans,y=p.keys;return new Promise(function(b,w){b=Vt(b);for(var S=v.objectStore(f),C=y.length,T=new Array(C),k=0,A=0,P,z=function(Y){var ae=Y.target;(T[ae._pos]=ae.result)!=null,++A===k&&b(T)},I=zr(w),$=0;$<C;++$){var O=y[$];O!=null&&(P=S.get(y[$]),P._pos=$,P.onsuccess=z,P.onerror=I,++k)}k===0&&b(T)})},get:function(p){var v=p.trans,y=p.key;return new Promise(function(b,w){b=Vt(b);var S=v.objectStore(f),C=S.get(y);C.onsuccess=function(T){return b(T.target.result)},C.onerror=zr(w)})},query:g(a),openCursor:h,count:function(p){var v=p.query,y=p.trans,b=v.index,w=v.range;return new Promise(function(S,C){var T=y.objectStore(f),k=b.isPrimaryKey?T:T.index(b.name),A=i(w),P=A?k.count(A):k.count();P.onsuccess=Vt(function(z){return S(z.target.result)}),P.onerror=zr(C)})}}}var m=r(e,n),o=m.schema,a=m.hasGetAll,c=o.tables.map(function(u){return l(u)}),d={};return c.forEach(function(u){return d[u.name]=u}),{stack:"dbcore",transaction:e.transaction.bind(e),table:function(u){var f=d[u];if(!f)throw new Error("Table '"+u+"' not found");return d[u]},MIN_KEY:-1/0,MAX_KEY:Fl(t),schema:o}}function q9(e,t){return t.reduce(function(n,r){var i=r.create;return ft(ft({},n),i(n))},e)}function Z9(e,t,n,r){var i=n.IDBKeyRange;n.indexedDB;var l=q9(X9(t,i,r),e.dbcore);return{dbcore:l}}function Um(e,t){var n=e._novip,r=t.db,i=Z9(n._middlewares,r,n._deps,t);n.core=i.dbcore,n.tables.forEach(function(l){var m=l.name;n.core.schema.tables.some(function(o){return o.name===m})&&(l.core=n.core.table(m),n[m]instanceof n.Table&&(n[m].core=l.core))})}function Zc(e,t,n,r){var i=e._novip;n.forEach(function(l){var m=r[l];t.forEach(function(o){var a=Rm(o,l);(!a||"value"in a&&a.value===void 0)&&(o===i.Transaction.prototype||o instanceof i.Transaction?xi(o,l,{get:function(){return this.table(l)},set:function(c){W2(this,l,{value:c,writable:!0,configurable:!0,enumerable:!0})}}):o[l]=new i.Table(l,m))})})}function Qh(e,t){var n=e._novip;t.forEach(function(r){for(var i in r)r[i]instanceof n.Table&&delete r[i]})}function J9(e,t){return e._cfg.version-t._cfg.version}function Q9(e,t,n,r){var i=e._dbSchema,l=e._createTransaction("readwrite",e._storeNames,i);l.create(n),l._completion.catch(r);var m=l._reject.bind(l),o=Ye.transless||Ye;la(function(){Ye.trans=l,Ye.transless=o,t===0?(Zt(i).forEach(function(a){Hm(n,a,i[a].primKey,i[a].indexes)}),Um(e,n),Fe.follow(function(){return e.on.populate.fire(l)}).catch(m)):eV(e,t,l,n).catch(m)})}function eV(e,t,n,r){var i=e._novip,l=[],m=i._versions,o=i._dbSchema=Wm(i,i.idbdb,r),a=!1,c=m.filter(function(u){return u._cfg.version>=t});c.forEach(function(u){l.push(function(){var f=o,s=u._cfg.dbschema;tp(i,f,r),tp(i,s,r),o=i._dbSchema=s;var h=yS(f,s);h.add.forEach(function(w){Hm(r,w[0],w[1].primKey,w[1].indexes)}),h.change.forEach(function(w){if(w.recreate)throw new qe.Upgrade("Not yet support for changing primary key");var S=r.objectStore(w.name);w.add.forEach(function(C){return ep(S,C)}),w.change.forEach(function(C){S.deleteIndex(C.name),ep(S,C)}),w.del.forEach(function(C){return S.deleteIndex(C)})});var g=u._cfg.contentUpgrade;if(g&&u._cfg.version>t){Um(i,r),n._memoizedTables={},a=!0;var p=X2(s);h.del.forEach(function(w){p[w]=f[w]}),Qh(i,[i.Transaction.prototype]),Zc(i,[i.Transaction.prototype],Zt(p),p),n.schema=p;var v=Dm(g);v&&gs();var y,b=Fe.follow(function(){if(y=g(n),y&&v){var w=Ti.bind(null,null);y.then(w,w)}});return y&&typeof y.then=="function"?Fe.resolve(y):b.then(function(){return y})}}),l.push(function(f){if(!a||!A9){var s=u._cfg.dbschema;nV(s,f)}Qh(i,[i.Transaction.prototype]),Zc(i,[i.Transaction.prototype],i._storeNames,i._dbSchema),n.schema=i._dbSchema})});function d(){return l.length?Fe.resolve(l.shift()(n.idbtrans)).then(d):Fe.resolve()}return d().then(function(){tV(o,r)})}function yS(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],l=t[r];if(!i)n.add.push([r,l]);else{var m={name:r,def:l,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")!=""+(l.primKey.keyPath||"")||i.primKey.auto!==l.primKey.auto&&!Mf)m.recreate=!0,n.change.push(m);else{var o=i.idxByName,a=l.idxByName,c=void 0;for(c in o)a[c]||m.del.push(c);for(c in a){var d=o[c],u=a[c];d?d.src!==u.src&&m.change.push(u):m.add.push(u)}(m.del.length>0||m.add.length>0||m.change.length>0)&&n.change.push(m)}}}return n}function Hm(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(l){return ep(i,l)}),i}function tV(e,t){Zt(e).forEach(function(n){t.db.objectStoreNames.contains(n)||Hm(t,n,e[n].primKey,e[n].indexes)})}function nV(e,t){[].slice.call(t.db.objectStoreNames).forEach(function(n){return e[n]==null&&t.db.deleteObjectStore(n)})}function ep(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function Wm(e,t,n){var r={},i=Pf(t.objectStoreNames,0);return i.forEach(function(l){for(var m=n.objectStore(l),o=m.keyPath,a=Zh(gS(o),o||"",!1,!1,!!m.autoIncrement,o&&typeof o!="string",!0),c=[],d=0;d<m.indexNames.length;++d){var u=m.index(m.indexNames[d]);o=u.keyPath;var f=Zh(u.name,o,!!u.unique,!!u.multiEntry,!1,o&&typeof o!="string",!1);c.push(f)}r[l]=vS(l,a,c)}),r}function rV(e,t,n){var r=e._novip;r.verno=t.version/10;var i=r._dbSchema=Wm(r,t,n);r._storeNames=Pf(t.objectStoreNames,0),Zc(r,[r._allTables],Zt(i),i)}function iV(e,t){var n=Wm(e,e.idbdb,t),r=yS(n,e._dbSchema);return!(r.add.length||r.change.some(function(i){return i.add.length||i.change.length}))}function tp(e,t,n){for(var r=e._novip,i=n.db.objectStoreNames,l=0;l<i.length;++l){var m=i[l],o=n.objectStore(m);r._hasGetAll="getAll"in o;for(var a=0;a<o.indexNames.length;++a){var c=o.indexNames[a],d=o.index(c).keyPath,u=typeof d=="string"?d:"["+Pf(d).join("+")+"]";if(t[m]){var f=t[m].idxByName[u];f&&(f.name=c,delete t[m].idxByName[u],t[m].idxByName[c]=f)}}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&Nt.WorkerGlobalScope&&Nt instanceof Nt.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(r._hasGetAll=!1)}function aV(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 Zh(r,i||null,/\&/.test(t),/\*/.test(t),/\+\+/.test(t),xn(i),n===0)})}var oV=function(){function e(){}return e.prototype._parseStoresSpec=function(t,n){Zt(t).forEach(function(r){if(t[r]!==null){var i=aV(t[r]),l=i.shift();if(l.multi)throw new qe.Schema("Primary key cannot be multi-valued");i.forEach(function(m){if(m.auto)throw new qe.Schema("Only primary key can be marked as autoIncrement (++)");if(!m.keyPath)throw new qe.Schema("Index must have a name and cannot be an empty string")}),n[r]=vS(r,l,i)}})},e.prototype.stores=function(t){var n=this.db;this._cfg.storesSource=this._cfg.storesSource?Rn(this._cfg.storesSource,t):t;var r=n._versions,i={},l={};return r.forEach(function(m){Rn(i,m._cfg.storesSource),l=m._cfg.dbschema={},m._parseStoresSpec(i,l)}),n._dbSchema=l,Qh(n,[n._allTables,n,n.Transaction.prototype]),Zc(n,[n._allTables,n,n.Transaction.prototype,this._cfg.tables],Zt(l),l),n._storeNames=Zt(l),this},e.prototype.upgrade=function(t){return this._cfg.contentUpgrade=$m(this._cfg.contentUpgrade||Pt,t),this},e}();function sV(e){return fu(oV.prototype,function(n){this.db=e,this._cfg={version:n,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}function Gm(e,t){var n=e._dbNamesDB;return n||(n=e._dbNamesDB=new qm(Lf,{addons:[],indexedDB:e,IDBKeyRange:t}),n.version(1).stores({dbnames:"name"})),n.table("dbnames")}function Ym(e){return e&&typeof e.databases=="function"}function lV(e){var t=e.indexedDB,n=e.IDBKeyRange;return Ym(t)?Promise.resolve(t.databases()).then(function(r){return r.map(function(i){return i.name}).filter(function(i){return i!==Lf})}):Gm(t,n).toCollection().primaryKeys()}function uV(e,t){var n=e.indexedDB,r=e.IDBKeyRange;!Ym(n)&&t!==Lf&&Gm(n,r).put({name:t}).catch(Pt)}function cV(e,t){var n=e.indexedDB,r=e.IDBKeyRange;!Ym(n)&&t!==Lf&&Gm(n,r).delete(t).catch(Pt)}function np(e){return la(function(){return Ye.letThrough=!0,e()})}function fV(){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 dV(e){var t=e._state,n=e._deps.indexedDB;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then(function(){return t.dbOpenError?rn(t.dbOpenError):e});Qr&&(t.openCanceller._stackHolder=uo()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;var r=t.openCanceller;function i(){if(t.openCanceller!==r)throw new qe.DatabaseClosed("db.open() was cancelled")}var l=t.dbReadyResolve,m=null,o=!1,a=function(){return new Fe(function(c,d){if(i(),!n)throw new qe.MissingAPI;var u=e.name,f=t.autoSchema?n.open(u):n.open(u,Math.round(e.verno*10));if(!f)throw new qe.MissingAPI;f.onerror=zr(d),f.onblocked=Vt(e._fireOnBlocked),f.onupgradeneeded=Vt(function(s){if(m=f.transaction,t.autoSchema&&!e._options.allowEmptyDB){f.onerror=Rl,m.abort(),f.result.close();var h=n.deleteDatabase(u);h.onsuccess=h.onerror=Vt(function(){d(new qe.NoSuchDatabase("Database "+u+" doesnt exist"))})}else{m.onerror=zr(d);var g=s.oldVersion>Math.pow(2,62)?0:s.oldVersion;o=g<1,e._novip.idbdb=f.result,Q9(e,g/10,m,d)}},d),f.onsuccess=Vt(function(){m=null;var s=e._novip.idbdb=f.result,h=Pf(s.objectStoreNames);if(h.length>0)try{var g=s.transaction(G9(h),"readonly");t.autoSchema?rV(e,s,g):(tp(e,e._dbSchema,g),iV(e,g)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),Um(e,g)}catch{}nl.push(e),s.onversionchange=Vt(function(p){t.vcFired=!0,e.on("versionchange").fire(p)}),s.onclose=Vt(function(p){e.on("close").fire(p)}),o&&uV(e._deps,u),c()},d)}).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():fV()).then(a)]).then(function(){return i(),t.onReadyBeingFired=[],Fe.resolve(np(function(){return e.on.ready.fire(e.vip)})).then(function c(){if(t.onReadyBeingFired.length>0){var d=t.onReadyBeingFired.reduce($m,Pt);return t.onReadyBeingFired=[],Fe.resolve(np(function(){return d(e.vip)})).then(c)}})}).finally(function(){t.onReadyBeingFired=null,t.isBeingOpened=!1}).then(function(){return e}).catch(function(c){t.dbOpenError=c;try{m&&m.abort()}catch{}return r===t.openCanceller&&e._close(),rn(c)}).finally(function(){t.openComplete=!0,l()})}function rp(e){var t=function(m){return e.next(m)},n=function(m){return e.throw(m)},r=l(t),i=l(n);function l(m){return function(o){var a=m(o),c=a.value;return a.done?c:!c||typeof c.then!="function"?xn(c)?Promise.all(c).then(r,i):r(c):c.then(r,i)}}return l(t)()}function hV(e,t,n){var r=arguments.length;if(r<2)throw new qe.InvalidArgument("Too few arguments");for(var i=new Array(r-1);--r;)i[r-1]=arguments[r];n=i.pop();var l=q2(i);return[e,l,n]}function bS(e,t,n,r,i){return Fe.resolve().then(function(){var l=Ye.transless||Ye,m=e._createTransaction(t,n,e._dbSchema,r),o={trans:m,transless:l};if(r)m.idbtrans=r.idbtrans;else try{m.create(),e._state.PR1398_maxLoop=3}catch(u){return u.name===Bm.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(function(){return bS(e,t,n,null,i)})):rn(u)}var a=Dm(i);a&&gs();var c,d=Fe.follow(function(){if(c=i.call(m,m),c)if(a){var u=Ti.bind(null,null);c.then(u,u)}else typeof c.next=="function"&&typeof c.throw=="function"&&(c=rp(c))},o);return(c&&typeof c.then=="function"?Fe.resolve(c).then(function(u){return m.active?u:rn(new qe.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):d.then(function(){return c})).then(function(u){return r&&m._resolve(),m._completion.then(function(){return u})}).catch(function(u){return m._reject(u),rn(u)})})}function $u(e,t,n){for(var r=xn(e)?e.slice():[e],i=0;i<n;++i)r.push(t);return r}function pV(e){return ft(ft({},e),{table:function(t){var n=e.table(t),r=n.schema,i={},l=[];function m(g,p,v){var y=rl(g),b=i[y]=i[y]||[],w=g==null?0:typeof g=="string"?1:g.length,S=p>0,C=ft(ft({},v),{isVirtual:S,keyTail:p,keyLength:w,extractKey:Jh(g),unique:!S&&v.unique});if(b.push(C),C.isPrimaryKey||l.push(C),w>1){var T=w===2?g[0]:g.slice(0,w-1);m(T,p+1,v)}return b.sort(function(k,A){return k.keyTail-A.keyTail}),C}var o=m(r.primaryKey.keyPath,0,r.primaryKey);i[":id"]=[o];for(var a=0,c=r.indexes;a<c.length;a++){var d=c[a];m(d.keyPath,0,d)}function u(g){var p=i[rl(g)];return p&&p[0]}function f(g,p){return{type:g.type===1?2:g.type,lower:$u(g.lower,g.lowerOpen?e.MAX_KEY:e.MIN_KEY,p),lowerOpen:!0,upper:$u(g.upper,g.upperOpen?e.MIN_KEY:e.MAX_KEY,p),upperOpen:!0}}function s(g){var p=g.query.index;return p.isVirtual?ft(ft({},g),{query:{index:p,range:f(g.query.range,p.keyTail)}}):g}var h=ft(ft({},n),{schema:ft(ft({},r),{primaryKey:o,indexes:l,getIndexByKeyPath:u}),count:function(g){return n.count(s(g))},query:function(g){return n.query(s(g))},openCursor:function(g){var p=g.query.index,v=p.keyTail,y=p.isVirtual,b=p.keyLength;if(!y)return n.openCursor(g);function w(S){function C(k){k!=null?S.continue($u(k,g.reverse?e.MAX_KEY:e.MIN_KEY,v)):g.unique?S.continue(S.key.slice(0,b).concat(g.reverse?e.MIN_KEY:e.MAX_KEY,v)):S.continue()}var T=Object.create(S,{continue:{value:C},continuePrimaryKey:{value:function(k,A){S.continuePrimaryKey($u(k,e.MAX_KEY,v),A)}},primaryKey:{get:function(){return S.primaryKey}},key:{get:function(){var k=S.key;return b===1?k[0]:k.slice(0,b)}},value:{get:function(){return S.value}}});return T}return n.openCursor(s(g)).then(function(S){return S&&w(S)})}});return h}})}var mV={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:pV};function Km(e,t,n,r){return n=n||{},r=r||"",Zt(e).forEach(function(i){if(!ir(t,i))n[r+i]=void 0;else{var l=e[i],m=t[i];if(typeof l=="object"&&typeof m=="object"&&l&&m){var o=$h(l),a=$h(m);o!==a?n[r+i]=t[i]:o==="Object"?Km(l,m,n,r+i+"."):l!==m&&(n[r+i]=t[i])}else l!==m&&(n[r+i]=t[i])}}),Zt(t).forEach(function(i){ir(e,i)||(n[r+i]=t[i])}),n}function gV(e,t){return t.type==="delete"?t.keys:t.keys||t.values.map(e.extractKey)}var vV={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(e){return ft(ft({},e),{table:function(t){var n=e.table(t),r=n.schema.primaryKey,i=ft(ft({},n),{mutate:function(l){var m=Ye.trans,o=m.table(t).hook,a=o.deleting,c=o.creating,d=o.updating;switch(l.type){case"add":if(c.fire===Pt)break;return m._promise("readwrite",function(){return u(l)},!0);case"put":if(c.fire===Pt&&d.fire===Pt)break;return m._promise("readwrite",function(){return u(l)},!0);case"delete":if(a.fire===Pt)break;return m._promise("readwrite",function(){return u(l)},!0);case"deleteRange":if(a.fire===Pt)break;return m._promise("readwrite",function(){return f(l)},!0)}return n.mutate(l);function u(h){var g=Ye.trans,p=h.keys||gV(r,h);if(!p)throw new Error("Keys missing");return h=h.type==="add"||h.type==="put"?ft(ft({},h),{keys:p}):ft({},h),h.type!=="delete"&&(h.values=Fh([],h.values,!0)),h.keys&&(h.keys=Fh([],h.keys,!0)),yV(n,h,p).then(function(v){var y=p.map(function(b,w){var S=v[w],C={onerror:null,onsuccess:null};if(h.type==="delete")a.fire.call(C,b,S,g);else if(h.type==="add"||S===void 0){var T=c.fire.call(C,b,h.values[w],g);b==null&&T!=null&&(b=T,h.keys[w]=b,r.outbound||Er(h.values[w],r.keyPath,b))}else{var k=Km(S,h.values[w]),A=d.fire.call(C,k,b,S,g);if(A){var P=h.values[w];Object.keys(A).forEach(function(z){ir(P,z)?P[z]=A[z]:Er(P,z,A[z])})}}return C});return n.mutate(h).then(function(b){for(var w=b.failures,S=b.results,C=b.numFailures,T=b.lastResult,k=0;k<p.length;++k){var A=S?S[k]:p[k],P=y[k];A==null?P.onerror&&P.onerror(w[k]):P.onsuccess&&P.onsuccess(h.type==="put"&&v[k]?h.values[k]:A)}return{failures:w,results:S,numFailures:C,lastResult:T}}).catch(function(b){return y.forEach(function(w){return w.onerror&&w.onerror(b)}),Promise.reject(b)})})}function f(h){return s(h.trans,h.range,1e4)}function s(h,g,p){return n.query({trans:h,values:!1,query:{index:r,range:g},limit:p}).then(function(v){var y=v.result;return u({type:"delete",keys:y,trans:h}).then(function(b){return b.numFailures>0?Promise.reject(b.failures[0]):y.length<p?{failures:[],numFailures:0,lastResult:void 0}:s(h,ft(ft({},g),{lower:y[y.length-1],lowerOpen:!0}),p)})})}}});return i}})}};function yV(e,t,n){return t.type==="add"?Promise.resolve([]):e.getMany({trans:t.trans,keys:n,cache:"immutable"})}function _S(e,t,n){try{if(!t||t.keys.length<e.length)return null;for(var r=[],i=0,l=0;i<t.keys.length&&l<e.length;++i)In(t.keys[i],e[l])===0&&(r.push(n?ou(t.values[i]):t.values[i]),++l);return r.length===e.length?r:null}catch{return null}}var bV={stack:"dbcore",level:-1,create:function(e){return{table:function(t){var n=e.table(t);return ft(ft({},n),{getMany:function(r){if(!r.cache)return n.getMany(r);var i=_S(r.keys,r.trans._cache,r.cache==="clone");return i?Fe.resolve(i):n.getMany(r).then(function(l){return r.trans._cache={keys:r.keys,values:r.cache==="clone"?ou(l):l},l})},mutate:function(r){return r.type!=="add"&&(r.trans._cache=null),n.mutate(r)}})}}}},Pd;function Xm(e){return!("from"in e)}var ui=function(e,t){if(this)Rn(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0});else{var n=new ui;return e&&"d"in e&&Rn(n,e),n}};ns(ui.prototype,(Pd={add:function(e){return Jc(this,e),this},addKey:function(e){return Bl(this,e,e),this},addKeys:function(e){var t=this;return e.forEach(function(n){return Bl(t,n,n)}),this}},Pd[Nh]=function(){return ip(this)},Pd));function Bl(e,t,n){var r=In(t,n);if(!isNaN(r)){if(r>0)throw RangeError();if(Xm(e))return Rn(e,{from:t,to:n,d:1});var i=e.l,l=e.r;if(In(n,e.from)<0)return i?Bl(i,t,n):e.l={from:t,to:n,d:1,l:null,r:null},Fy(e);if(In(t,e.to)>0)return l?Bl(l,t,n):e.r={from:t,to:n,d:1,l:null,r:null},Fy(e);In(t,e.from)<0&&(e.from=t,e.l=null,e.d=l?l.d+1:1),In(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);var m=!e.r;i&&!e.l&&Jc(e,i),l&&m&&Jc(e,l)}}function Jc(e,t){function n(r,i){var l=i.from,m=i.to,o=i.l,a=i.r;Bl(r,l,m),o&&n(r,o),a&&n(r,a)}Xm(t)||n(e,t)}function _V(e,t){var n=ip(t),r=n.next();if(r.done)return!1;for(var i=r.value,l=ip(e),m=l.next(i.from),o=m.value;!r.done&&!m.done;){if(In(o.from,i.to)<=0&&In(o.to,i.from)>=0)return!0;In(i.from,o.from)<0?i=(r=n.next(o.from)).value:o=(m=l.next(i.from)).value}return!1}function ip(e){var t=Xm(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&&In(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||In(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 Fy(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 l=i==="r"?"l":"r",m=ft({},e),o=e[i];e.from=o.from,e.to=o.to,e[i]=o[i],m[i]=o[l],e[l]=m,m.d=By(m)}e.d=By(e)}function By(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 wV={stack:"dbcore",level:0,create:function(e){var t=e.schema.name,n=new ui(e.MIN_KEY,e.MAX_KEY);return ft(ft({},e),{table:function(r){var i=e.table(r),l=i.schema,m=l.primaryKey,o=m.extractKey,a=m.outbound,c=ft(ft({},i),{mutate:function(f){var s=f.trans,h=s.mutatedParts||(s.mutatedParts={}),g=function(T){var k="idb://"+t+"/"+r+"/"+T;return h[k]||(h[k]=new ui)},p=g(""),v=g(":dels"),y=f.type,b=f.type==="deleteRange"?[f.range]:f.type==="delete"?[f.keys]:f.values.length<50?[[],f.values]:[],w=b[0],S=b[1],C=f.trans._cache;return i.mutate(f).then(function(T){if(xn(w)){y!=="delete"&&(w=T.results),p.addKeys(w);var k=_S(w,C);!k&&y!=="add"&&v.addKeys(w),(k||S)&&SV(g,l,k,S)}else if(w){var A={from:w.lower,to:w.upper};v.add(A),p.add(A)}else p.add(n),v.add(n),l.indexes.forEach(function(P){return g(P.name).add(n)});return T})}}),d=function(f){var s,h,g=f.query,p=g.index,v=g.range;return[p,new ui((s=v.lower)!==null&&s!==void 0?s:e.MIN_KEY,(h=v.upper)!==null&&h!==void 0?h:e.MAX_KEY)]},u={get:function(f){return[m,new ui(f.key)]},getMany:function(f){return[m,new ui().addKeys(f.keys)]},count:d,query:d,openCursor:d};return Zt(u).forEach(function(f){c[f]=function(s){var h=Ye.subscr;if(h){var g=function(C){var T="idb://"+t+"/"+r+"/"+C;return h[T]||(h[T]=new ui)},p=g(""),v=g(":dels"),y=u[f](s),b=y[0],w=y[1];if(g(b.name||"").add(w),!b.isPrimaryKey)if(f==="count")v.add(n);else{var S=f==="query"&&a&&s.values&&i.query(ft(ft({},s),{values:!1}));return i[f].apply(this,arguments).then(function(C){if(f==="query"){if(a&&s.values)return S.then(function(P){var z=P.result;return p.addKeys(z),C});var T=s.values?C.result.map(o):C.result;s.values?p.addKeys(T):v.addKeys(T)}else if(f==="openCursor"){var k=C,A=s.values;return k&&Object.create(k,{key:{get:function(){return v.addKey(k.primaryKey),k.key}},primaryKey:{get:function(){var P=k.primaryKey;return v.addKey(P),P}},value:{get:function(){return A&&p.addKey(k.primaryKey),k.value}}})}return C})}}return i[f].apply(this,arguments)}}),c}})}};function SV(e,t,n,r){function i(l){var m=e(l.name||"");function o(c){return c!=null?l.extractKey(c):null}var a=function(c){return l.multiEntry&&xn(c)?c.forEach(function(d){return m.addKey(d)}):m.addKey(c)};(n||r).forEach(function(c,d){var u=n&&o(n[d]),f=r&&o(r[d]);In(u,f)!==0&&(u!=null&&a(u),f!=null&&a(f))})}t.indexes.forEach(i)}var qm=function(){function e(t,n){var r=this;this._middlewares={},this.verno=0;var i=e.dependencies;this._options=n=ft({addons:e.addons,autoOpen:!0,indexedDB:i.indexedDB,IDBKeyRange:i.IDBKeyRange},n),this._deps={indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange};var l=n.addons;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var m={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:Pt,dbReadyPromise:null,cancelOpen:Pt,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};m.dbReadyPromise=new Fe(function(o){m.dbReadyResolve=o}),m.openCanceller=new Fe(function(o,a){m.cancelOpen=a}),this._state=m,this.name=t,this.on=cu(this,"populate","blocked","versionchange","close",{ready:[$m,Pt]}),this.on.ready.subscribe=G2(this.on.ready.subscribe,function(o){return function(a,c){e.vip(function(){var d=r._state;if(d.openComplete)d.dbOpenError||Fe.resolve().then(a),c&&o(a);else if(d.onReadyBeingFired)d.onReadyBeingFired.push(a),c&&o(a);else{o(a);var u=r;c||o(function f(){u.on.ready.unsubscribe(a),u.on.ready.unsubscribe(f)})}})}}),this.Collection=B9(this),this.Table=M9(this),this.Transaction=W9(this),this.Version=sV(this),this.WhereClause=U9(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=Fl(n.IDBKeyRange),this._createTransaction=function(o,a,c,d){return new r.Transaction(o,a,c,r._options.chromeTransactionDurability,d)},this._fireOnBlocked=function(o){r.on("blocked").fire(o),nl.filter(function(a){return a.name===r.name&&a!==r&&!a._state.vcFired}).map(function(a){return a.on("versionchange").fire(o)})},this.use(mV),this.use(vV),this.use(wV),this.use(bV),this.vip=Object.create(this,{_vip:{value:!0}}),l.forEach(function(o){return o(r)})}return e.prototype.version=function(t){if(isNaN(t)||t<.1)throw new qe.Type("Given version is not a positive number");if(t=Math.round(t*10)/10,this.idbdb||this._state.isBeingOpened)throw new qe.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(J9),r.stores({}),this._state.autoSchema=!1,r)},e.prototype._whenReady=function(t){var n=this;return this.idbdb&&(this._state.openComplete||Ye.letThrough||this._vip)?t():new Fe(function(r,i){if(n._state.openComplete)return i(new qe.DatabaseClosed(n._state.dbOpenError));if(!n._state.isBeingOpened){if(!n._options.autoOpen){i(new qe.DatabaseClosed);return}n.open().catch(Pt)}n._state.dbReadyPromise.then(r,i)}).then(t)},e.prototype.use=function(t){var n=t.stack,r=t.create,i=t.level,l=t.name;l&&this.unuse({stack:n,name:l});var m=this._middlewares[n]||(this._middlewares[n]=[]);return m.push({stack:n,create:r,level:i==null?10:i,name:l}),m.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(l){return i?l.create!==i:r?l.name!==r:!1})),this},e.prototype.open=function(){return dV(this)},e.prototype._close=function(){var t=this._state,n=nl.indexOf(this);if(n>=0&&nl.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 qe.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,l){var m=function(){t.close();var o=t._deps.indexedDB.deleteDatabase(t.name);o.onsuccess=Vt(function(){cV(t._deps,t.name),i()}),o.onerror=zr(l),o.onblocked=t._fireOnBlocked};if(n)throw new qe.InvalidArgument("Arguments not allowed in db.delete()");r.isBeingOpened?r.dbReadyPromise.then(m):m()})},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 Zt(this._allTables).map(function(n){return t._allTables[n]})},enumerable:!1,configurable:!0}),e.prototype.transaction=function(){var t=hV.apply(this,arguments);return this._transaction.apply(this,t)},e.prototype._transaction=function(t,n,r){var i=this,l=Ye.trans;(!l||l.db!==this||t.indexOf("!")!==-1)&&(l=null);var m=t.indexOf("?")!==-1;t=t.replace("!","").replace("?","");var o,a;try{if(a=n.map(function(d){var u=d instanceof i.Table?d.name:d;if(typeof u!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return u}),t=="r"||t===Td)o=Td;else if(t=="rw"||t==kd)o=kd;else throw new qe.InvalidArgument("Invalid transaction mode: "+t);if(l){if(l.mode===Td&&o===kd)if(m)l=null;else throw new qe.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");l&&a.forEach(function(d){if(l&&l.storeNames.indexOf(d)===-1)if(m)l=null;else throw new qe.SubTransaction("Table "+d+" not included in parent transaction.")}),m&&l&&!l.active&&(l=null)}}catch(d){return l?l._promise(null,function(u,f){f(d)}):rn(d)}var c=bS.bind(null,this,o,a,l,r);return l?l._promise(o,c,"lock"):Ye.trans?vs(Ye.transless,function(){return i._whenReady(c)}):this._whenReady(c)},e.prototype.table=function(t){if(!ir(this._allTables,t))throw new qe.InvalidTable("Table "+t+" does not exist");return this._allTables[t]},e}(),CV=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",xV=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[CV]=function(){return this},e}();function wS(e,t){return Zt(t).forEach(function(n){var r=e[n]||(e[n]=new ui);Jc(r,t[n])}),e}function Zm(e){var t=!1,n=void 0,r=new xV(function(i){var l=Dm(e);function m(p){l&&gs();var v=function(){return la(e,{subscr:p,trans:null})},y=Ye.trans?vs(Ye.transless,v):v();return l&&y.then(Ti,Ti),y}var o=!1,a={},c={},d={get closed(){return o},unsubscribe:function(){o=!0,ca.storagemutated.unsubscribe(h)}};i.start&&i.start(d);var u=!1,f=!1;function s(){return Zt(c).some(function(p){return a[p]&&_V(a[p],c[p])})}var h=function(p){wS(a,p),s()&&g()},g=function(){if(!(u||o)){a={};var p={},v=m(p);f||(ca(Dl,h),f=!0),u=!0,Promise.resolve(v).then(function(y){t=!0,n=y,u=!1,!o&&(s()?g():(a={},c=p,i.next&&i.next(y)))},function(y){u=!1,t=!1,i.error&&i.error(y),d.unsubscribe()})}};return g(),d});return r.hasValue=function(){return t},r.getValue=function(){return n},r}var ap;try{ap={indexedDB:Nt.indexedDB||Nt.mozIndexedDB||Nt.webkitIndexedDB||Nt.msIndexedDB,IDBKeyRange:Nt.IDBKeyRange||Nt.webkitIDBKeyRange}}catch{ap={indexedDB:null,IDBKeyRange:null}}var Pa=qm;ns(Pa,ft(ft({},If),{delete:function(e){var t=new Pa(e,{addons:[]});return t.delete()},exists:function(e){return new Pa(e,{addons:[]}).open().then(function(t){return t.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(e){try{return lV(Pa.dependencies).then(e)}catch{return rn(new qe.MissingAPI)}},defineClass:function(){function e(t){Rn(this,t)}return e},ignoreTransaction:function(e){return Ye.trans?vs(Ye.transless,e):e()},vip:np,async:function(e){return function(){try{var t=rp(e.apply(this,arguments));return!t||typeof t.then!="function"?Fe.resolve(t):t}catch(n){return rn(n)}}},spawn:function(e,t,n){try{var r=rp(e.apply(n,t||[]));return!r||typeof r.then!="function"?Fe.resolve(r):r}catch(i){return rn(i)}},currentTransaction:{get:function(){return Ye.trans||null}},waitFor:function(e,t){var n=Fe.resolve(typeof e=="function"?Pa.ignoreTransaction(e):e).timeout(t||6e4);return Ye.trans?Ye.trans.waitFor(n):n},Promise:Fe,debug:{get:function(){return Qr},set:function(e){J2(e,e==="dexie"?function(){return!0}:dS)}},derive:ps,extend:Rn,props:ns,override:G2,Events:cu,on:ca,liveQuery:Zm,extendObservabilitySet:wS,getByKeyPath:vi,setByKeyPath:Er,delByKeyPath:r9,shallowClone:X2,deepClone:ou,getObjectDiff:Km,cmp:In,asap:Y2,minKey:qh,addons:[],connections:nl,errnames:Bm,dependencies:ap,semVer:Py,version:Py.split(".").map(function(e){return parseInt(e)}).reduce(function(e,t,n){return e+t/Math.pow(10,n*2)})}));Pa.maxKey=Fl(Pa.dependencies.IDBKeyRange);typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(ca(Dl,function(e){if(!mi){var t;Mf?(t=document.createEvent("CustomEvent"),t.initCustomEvent(Xi,!0,!0,e)):t=new CustomEvent(Xi,{detail:e}),mi=!0,dispatchEvent(t),mi=!1}}),addEventListener(Xi,function(e){var t=e.detail;mi||Qc(t)}));function Qc(e){var t=mi;try{mi=!0,ca.storagemutated.fire(e)}finally{mi=t}}var mi=!1;if(typeof BroadcastChannel<"u"){var Nu=new BroadcastChannel(Xi);typeof Nu.unref=="function"&&Nu.unref(),ca(Dl,function(e){mi||Nu.postMessage(e)}),Nu.onmessage=function(e){e.data&&Qc(e.data)}}else if(typeof self<"u"&&typeof navigator<"u"){ca(Dl,function(e){try{mi||(typeof localStorage<"u"&&localStorage.setItem(Xi,JSON.stringify({trig:Math.random(),changedParts:e})),typeof self.clients=="object"&&Fh([],self.clients.matchAll({includeUncontrolled:!0}),!0).forEach(function(t){return t.postMessage({type:Xi,changedParts:e})}))}catch{}}),typeof addEventListener<"u"&&addEventListener("storage",function(e){if(e.key===Xi){var t=JSON.parse(e.newValue);t&&Qc(t.changedParts)}});var $y=self.document&&navigator.serviceWorker;$y&&$y.addEventListener("message",TV)}function TV(e){var t=e.data;t&&t.type===Xi&&Qc(t.changedParts)}Fe.rejectionMapper=d9;J2(Qr,dS);class kV extends qm{constructor(){super("stableui");Sg(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 Wt=new kV;Wt.open().catch(()=>{Yt().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 zu(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 SS={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,l){function m(c,d){if(!i[c]){if(!r[c]){var u=typeof zu=="function"&&zu;if(!d&&u)return u(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(h){var g=r[c][1][h];return m(g||h)},s,s.exports,n,r,i,l)}return i[c].exports}for(var o=typeof zu=="function"&&zu,a=0;a<l.length;a++)m(l[a]);return m}({1:[function(n,r,i){var l=n("./utils"),m=n("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(a){for(var c,d,u,f,s,h,g,p=[],v=0,y=a.length,b=y,w=l.getTypeOf(a)!=="string";v<a.length;)b=y-v,u=w?(c=a[v++],d=v<y?a[v++]:0,v<y?a[v++]:0):(c=a.charCodeAt(v++),d=v<y?a.charCodeAt(v++):0,v<y?a.charCodeAt(v++):0),f=c>>2,s=(3&c)<<4|d>>4,h=1<b?(15&d)<<2|u>>6:64,g=2<b?63&u:64,p.push(o.charAt(f)+o.charAt(s)+o.charAt(h)+o.charAt(g));return p.join("")},i.decode=function(a){var c,d,u,f,s,h,g=0,p=0,v="data:";if(a.substr(0,v.length)===v)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=m.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,d=(15&f)<<4|(s=o.indexOf(a.charAt(g++)))>>2,u=(3&s)<<6|(h=o.indexOf(a.charAt(g++))),y[p++]=c,s!==64&&(y[p++]=d),h!==64&&(y[p++]=u);return y}},{"./support":30,"./utils":32}],2:[function(n,r,i){var l=n("./external"),m=n("./stream/DataWorker"),o=n("./stream/Crc32Probe"),a=n("./stream/DataLengthProbe");function c(d,u,f,s,h){this.compressedSize=d,this.uncompressedSize=u,this.crc32=f,this.compression=s,this.compressedContent=h}c.prototype={getContentWorker:function(){var d=new m(l.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),u=this;return d.on("end",function(){if(this.streamInfo.data_length!==u.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),d},getCompressedWorker:function(){return new m(l.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(d,u,f){return d.pipe(new o).pipe(new a("uncompressedSize")).pipe(u.compressWorker(f)).pipe(new a("compressedSize")).withStreamInfo("compression",u)},r.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,i){var l=n("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new l("STORE compression")},uncompressWorker:function(){return new l("STORE decompression")}},i.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,i){var l=n("./utils"),m=function(){for(var o,a=[],c=0;c<256;c++){o=c;for(var d=0;d<8;d++)o=1&o?3988292384^o>>>1:o>>>1;a[c]=o}return a}();r.exports=function(o,a){return o!==void 0&&o.length?l.getTypeOf(o)!=="string"?function(c,d,u,f){var s=m,h=f+u;c^=-1;for(var g=f;g<h;g++)c=c>>>8^s[255&(c^d[g])];return-1^c}(0|a,o,o.length,0):function(c,d,u,f){var s=m,h=f+u;c^=-1;for(var g=f;g<h;g++)c=c>>>8^s[255&(c^d.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 l=null;l=typeof Promise<"u"?Promise:n("lie"),r.exports={Promise:l}},{lie:37}],7:[function(n,r,i){var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",m=n("pako"),o=n("./utils"),a=n("./stream/GenericWorker"),c=l?"uint8array":"array";function d(u,f){a.call(this,"FlateWorker/"+u),this._pako=null,this._pakoAction=u,this._pakoOptions=f,this.meta={}}i.magic="\b\0",o.inherits(d,a),d.prototype.processChunk=function(u){this.meta=u.meta,this._pako===null&&this._createPako(),this._pako.push(o.transformTo(c,u.data),!1)},d.prototype.flush=function(){a.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},d.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},d.prototype._createPako=function(){this._pako=new m[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var u=this;this._pako.onData=function(f){u.push({data:f,meta:u.meta})}},i.compressWorker=function(u){return new d("Deflate",u)},i.uncompressWorker=function(){return new d("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,i){function l(s,h){var g,p="";for(g=0;g<h;g++)p+=String.fromCharCode(255&s),s>>>=8;return p}function m(s,h,g,p,v,y){var b,w,S=s.file,C=s.compression,T=y!==c.utf8encode,k=o.transformTo("string",y(S.name)),A=o.transformTo("string",c.utf8encode(S.name)),P=S.comment,z=o.transformTo("string",y(P)),I=o.transformTo("string",c.utf8encode(P)),$=A.length!==S.name.length,O=I.length!==P.length,Y="",ae="",q="",J=S.dir,E=S.date,V={crc32:0,compressedSize:0,uncompressedSize:0};h&&!g||(V.crc32=s.crc32,V.compressedSize=s.compressedSize,V.uncompressedSize=s.uncompressedSize);var M=0;h&&(M|=8),T||!$&&!O||(M|=2048);var R=0,W=0;J&&(R|=16),v==="UNIX"?(W=798,R|=function(B,Z){var H=B;return B||(H=Z?16893:33204),(65535&H)<<16}(S.unixPermissions,J)):(W=20,R|=function(B){return 63&(B||0)}(S.dosPermissions)),b=E.getUTCHours(),b<<=6,b|=E.getUTCMinutes(),b<<=5,b|=E.getUTCSeconds()/2,w=E.getUTCFullYear()-1980,w<<=4,w|=E.getUTCMonth()+1,w<<=5,w|=E.getUTCDate(),$&&(ae=l(1,1)+l(d(k),4)+A,Y+="up"+l(ae.length,2)+ae),O&&(q=l(1,1)+l(d(z),4)+I,Y+="uc"+l(q.length,2)+q);var D="";return D+=`
\0`,D+=l(M,2),D+=C.magic,D+=l(b,2),D+=l(w,2),D+=l(V.crc32,4),D+=l(V.compressedSize,4),D+=l(V.uncompressedSize,4),D+=l(k.length,2),D+=l(Y.length,2),{fileRecord:u.LOCAL_FILE_HEADER+D+k+Y,dirRecord:u.CENTRAL_FILE_HEADER+l(W,2)+D+l(z.length,2)+"\0\0\0\0"+l(R,4)+l(p,4)+k+Y+z}}var o=n("../utils"),a=n("../stream/GenericWorker"),c=n("../utf8"),d=n("../crc32"),u=n("../signature");function f(s,h,g,p){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=h,this.zipPlatform=g,this.encodeFileName=p,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 h=s.meta.percent||0,g=this.entriesCount,p=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?(h+100*(g-p-1))/g:100}}))},f.prototype.openedSource=function(s){this.currentSourceOffset=this.bytesWritten,this.currentFile=s.file.name;var h=this.streamFiles&&!s.file.dir;if(h){var g=m(s,h,!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 h=this.streamFiles&&!s.file.dir,g=m(s,h,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),h)this.push({data:function(p){return u.DATA_DESCRIPTOR+l(p.crc32,4)+l(p.compressedSize,4)+l(p.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,h=0;h<this.dirRecords.length;h++)this.push({data:this.dirRecords[h],meta:{percent:100}});var g=this.bytesWritten-s,p=function(v,y,b,w,S){var C=o.transformTo("string",S(w));return u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+l(v,2)+l(v,2)+l(y,4)+l(b,4)+l(C.length,2)+C}(this.dirRecords.length,g,s,this.zipComment,this.encodeFileName);this.push({data:p,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 h=this;return s.on("data",function(g){h.processChunk(g)}),s.on("end",function(){h.closedSource(h.previous.streamInfo),h._sources.length?h.prepareNextSource():h.end()}),s.on("error",function(g){h.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 h=this._sources;if(!a.prototype.error.call(this,s))return!1;for(var g=0;g<h.length;g++)try{h[g].error(s)}catch{}return!0},f.prototype.lock=function(){a.prototype.lock.call(this);for(var s=this._sources,h=0;h<s.length;h++)s[h].lock()},r.exports=f},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,i){var l=n("../compressions"),m=n("./ZipFileWorker");i.generateWorker=function(o,a,c){var d=new m(a.streamFiles,c,a.platform,a.encodeFileName),u=0;try{o.forEach(function(f,s){u++;var h=function(y,b){var w=y||b,S=l[w];if(!S)throw new Error(w+" is not a valid compression method !");return S}(s.options.compression,a.compression),g=s.options.compressionOptions||a.compressionOptions||{},p=s.dir,v=s.date;s._compressWorker(h,g).withStreamInfo("file",{name:f,dir:p,date:v,comment:s.comment||"",unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions}).pipe(d)}),d.entriesCount=u}catch(f){d.error(f)}return d}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,i){function l(){if(!(this instanceof l))return new l;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 m=new l;for(var o in this)typeof this[o]!="function"&&(m[o]=this[o]);return m}}(l.prototype=n("./object")).loadAsync=n("./load"),l.support=n("./support"),l.defaults=n("./defaults"),l.version="3.10.1",l.loadAsync=function(m,o){return new l().loadAsync(m,o)},l.external=n("./external"),r.exports=l},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,i){var l=n("./utils"),m=n("./external"),o=n("./utf8"),a=n("./zipEntries"),c=n("./stream/Crc32Probe"),d=n("./nodejsUtils");function u(f){return new m.Promise(function(s,h){var g=f.decompressed.getContentWorker().pipe(new c);g.on("error",function(p){h(p)}).on("end",function(){g.streamInfo.crc32!==f.decompressed.crc32?h(new Error("Corrupted zip : CRC32 mismatch")):s()}).resume()})}r.exports=function(f,s){var h=this;return s=l.extend(s||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),d.isNode&&d.isStream(f)?m.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):l.prepareContent("the loaded zip file",f,!0,s.optimizedBinaryString,s.base64).then(function(g){var p=new a(s);return p.load(g),p}).then(function(g){var p=[m.Promise.resolve(g)],v=g.files;if(s.checkCRC32)for(var y=0;y<v.length;y++)p.push(u(v[y]));return m.Promise.all(p)}).then(function(g){for(var p=g.shift(),v=p.files,y=0;y<v.length;y++){var b=v[y],w=b.fileNameStr,S=l.resolve(b.fileNameStr);h.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||(h.file(S).unsafeOriginalName=w)}return p.zipComment.length&&(h.comment=p.zipComment),h})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,i){var l=n("../utils"),m=n("../stream/GenericWorker");function o(a,c){m.call(this,"Nodejs stream input adapter for "+a),this._upstreamEnded=!1,this._bindStream(c)}l.inherits(o,m),o.prototype._bindStream=function(a){var c=this;(this._stream=a).pause(),a.on("data",function(d){c.push({data:d,meta:{percent:0}})}).on("error",function(d){c.isPaused?this.generatedError=d:c.error(d)}).on("end",function(){c.isPaused?c._upstreamEnded=!0:c.end()})},o.prototype.pause=function(){return!!m.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!m.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 l=n("readable-stream").Readable;function m(o,a,c){l.call(this,a),this._helper=o;var d=this;o.on("data",function(u,f){d.push(u)||d._helper.pause(),c&&c(f)}).on("error",function(u){d.emit("error",u)}).on("end",function(){d.push(null)})}n("../utils").inherits(m,l),m.prototype._read=function(){this._helper.resume()},r.exports=m},{"../utils":32,"readable-stream":16}],14:[function(n,r,i){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(l,m){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(l,m);if(typeof l=="number")throw new Error('The "data" argument must not be a number');return new Buffer(l,m)},allocBuffer:function(l){if(Buffer.alloc)return Buffer.alloc(l);var m=new Buffer(l);return m.fill(0),m},isBuffer:function(l){return Buffer.isBuffer(l)},isStream:function(l){return l&&typeof l.on=="function"&&typeof l.pause=="function"&&typeof l.resume=="function"}}},{}],15:[function(n,r,i){function l(S,C,T){var k,A=o.getTypeOf(C),P=o.extend(T||{},d);P.date=P.date||new Date,P.compression!==null&&(P.compression=P.compression.toUpperCase()),typeof P.unixPermissions=="string"&&(P.unixPermissions=parseInt(P.unixPermissions,8)),P.unixPermissions&&16384&P.unixPermissions&&(P.dir=!0),P.dosPermissions&&16&P.dosPermissions&&(P.dir=!0),P.dir&&(S=v(S)),P.createFolders&&(k=p(S))&&y.call(this,k,!0);var z=A==="string"&&P.binary===!1&&P.base64===!1;T&&T.binary!==void 0||(P.binary=!z),(C instanceof u&&C.uncompressedSize===0||P.dir||!C||C.length===0)&&(P.base64=!1,P.binary=!0,C="",P.compression="STORE",A="string");var I=null;I=C instanceof u||C instanceof a?C:h.isNode&&h.isStream(C)?new g(S,C):o.prepareContent(S,C,P.binary,P.optimizedBinaryString,P.base64);var $=new f(S,I,P);this.files[S]=$}var m=n("./utf8"),o=n("./utils"),a=n("./stream/GenericWorker"),c=n("./stream/StreamHelper"),d=n("./defaults"),u=n("./compressedObject"),f=n("./zipObject"),s=n("./generate"),h=n("./nodejsUtils"),g=n("./nodejs/NodejsStreamInputAdapter"),p=function(S){S.slice(-1)==="/"&&(S=S.substring(0,S.length-1));var C=S.lastIndexOf("/");return 0<C?S.substring(0,C):""},v=function(S){return S.slice(-1)!=="/"&&(S+="/"),S},y=function(S,C){return C=C!==void 0?C:d.createFolders,S=v(S),this.files[S]||l.call(this,S,null,{dir:!0,createFolders:C}),this.files[S]};function b(S){return Object.prototype.toString.call(S)==="[object RegExp]"}var w={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,k;for(C in this.files)k=this.files[C],(T=C.slice(this.root.length,C.length))&&C.slice(0,this.root.length)===this.root&&S(T,k)},filter:function(S){var C=[];return this.forEach(function(T,k){S(T,k)&&C.push(k)}),C},file:function(S,C,T){if(arguments.length!==1)return S=this.root+S,l.call(this,S,C,T),this;if(b(S)){var k=S;return this.filter(function(P,z){return!z.dir&&k.test(P)})}var A=this.files[this.root+S];return A&&!A.dir?A:null},folder:function(S){if(!S)return this;if(b(S))return this.filter(function(A,P){return P.dir&&S.test(A)});var C=this.root+S,T=y.call(this,C),k=this.clone();return k.root=T.name,k},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(A,P){return P.name.slice(0,S.length)===S}),k=0;k<T.length;k++)delete this.files[T[k].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:m.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 k=T.comment||this.comment||"";C=s.generateWorker(this,T,k)}catch(A){(C=new a("error")).error(A)}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=w},{"./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 l=n("./DataReader");function m(o){l.call(this,o);for(var a=0;a<this.data.length;a++)o[a]=255&o[a]}n("../utils").inherits(m,l),m.prototype.byteAt=function(o){return this.data[this.zero+o]},m.prototype.lastIndexOfSignature=function(o){for(var a=o.charCodeAt(0),c=o.charCodeAt(1),d=o.charCodeAt(2),u=o.charCodeAt(3),f=this.length-4;0<=f;--f)if(this.data[f]===a&&this.data[f+1]===c&&this.data[f+2]===d&&this.data[f+3]===u)return f-this.zero;return-1},m.prototype.readAndCheckSignature=function(o){var a=o.charCodeAt(0),c=o.charCodeAt(1),d=o.charCodeAt(2),u=o.charCodeAt(3),f=this.readData(4);return a===f[0]&&c===f[1]&&d===f[2]&&u===f[3]},m.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=m},{"../utils":32,"./DataReader":18}],18:[function(n,r,i){var l=n("../utils");function m(o){this.data=o,this.length=o.length,this.index=0,this.zero=0}m.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 l.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=m},{"../utils":32}],19:[function(n,r,i){var l=n("./Uint8ArrayReader");function m(o){l.call(this,o)}n("../utils").inherits(m,l),m.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=m},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,i){var l=n("./DataReader");function m(o){l.call(this,o)}n("../utils").inherits(m,l),m.prototype.byteAt=function(o){return this.data.charCodeAt(this.zero+o)},m.prototype.lastIndexOfSignature=function(o){return this.data.lastIndexOf(o)-this.zero},m.prototype.readAndCheckSignature=function(o){return o===this.readData(4)},m.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=m},{"../utils":32,"./DataReader":18}],21:[function(n,r,i){var l=n("./ArrayReader");function m(o){l.call(this,o)}n("../utils").inherits(m,l),m.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=m},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,i){var l=n("../utils"),m=n("../support"),o=n("./ArrayReader"),a=n("./StringReader"),c=n("./NodeBufferReader"),d=n("./Uint8ArrayReader");r.exports=function(u){var f=l.getTypeOf(u);return l.checkSupport(f),f!=="string"||m.uint8array?f==="nodebuffer"?new c(u):m.uint8array?new d(l.transformTo("uint8array",u)):new o(l.transformTo("array",u)):new a(u)}},{"../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 l=n("./GenericWorker"),m=n("../utils");function o(a){l.call(this,"ConvertWorker to "+a),this.destType=a}m.inherits(o,l),o.prototype.processChunk=function(a){this.push({data:m.transformTo(this.destType,a.data),meta:a.meta})},r.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,i){var l=n("./GenericWorker"),m=n("../crc32");function o(){l.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(o,l),o.prototype.processChunk=function(a){this.streamInfo.crc32=m(a.data,this.streamInfo.crc32||0),this.push(a)},r.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,i){var l=n("../utils"),m=n("./GenericWorker");function o(a){m.call(this,"DataLengthProbe for "+a),this.propName=a,this.withStreamInfo(a,0)}l.inherits(o,m),o.prototype.processChunk=function(a){if(a){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+a.data.length}m.prototype.processChunk.call(this,a)},r.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,i){var l=n("../utils"),m=n("./GenericWorker");function o(a){m.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(d){c.dataIsReady=!0,c.data=d,c.max=d&&d.length||0,c.type=l.getTypeOf(d),c.isPaused||c._tickAndRepeat()},function(d){c.error(d)})}l.inherits(o,m),o.prototype.cleanUp=function(){m.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,l.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(l.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 l(m){this.name=m||"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}l.prototype={push:function(m){this.emit("data",m)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(m){this.emit("error",m)}return!0},error:function(m){return!this.isFinished&&(this.isPaused?this.generatedError=m:(this.isFinished=!0,this.emit("error",m),this.previous&&this.previous.error(m),this.cleanUp()),!0)},on:function(m,o){return this._listeners[m].push(o),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(m,o){if(this._listeners[m])for(var a=0;a<this._listeners[m].length;a++)this._listeners[m][a].call(this,o)},pipe:function(m){return m.registerPrevious(this)},registerPrevious:function(m){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=m.streamInfo,this.mergeStreamInfo(),this.previous=m;var o=this;return m.on("data",function(a){o.processChunk(a)}),m.on("end",function(){o.end()}),m.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 m=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),m=!0),this.previous&&this.previous.resume(),!m},flush:function(){},processChunk:function(m){this.push(m)},withStreamInfo:function(m,o){return this.extraStreamInfo[m]=o,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var m in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,m)&&(this.streamInfo[m]=this.extraStreamInfo[m])},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 m="Worker "+this.name;return this.previous?this.previous+" -> "+m:m}},r.exports=l},{}],29:[function(n,r,i){var l=n("../utils"),m=n("./ConvertWorker"),o=n("./GenericWorker"),a=n("../base64"),c=n("../support"),d=n("../external"),u=null;if(c.nodestream)try{u=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function f(h,g){return new d.Promise(function(p,v){var y=[],b=h._internalType,w=h._outputType,S=h._mimeType;h.on("data",function(C,T){y.push(C),g&&g(T)}).on("error",function(C){y=[],v(C)}).on("end",function(){try{var C=function(T,k,A){switch(T){case"blob":return l.newBlob(l.transformTo("arraybuffer",k),A);case"base64":return a.encode(k);default:return l.transformTo(T,k)}}(w,function(T,k){var A,P=0,z=null,I=0;for(A=0;A<k.length;A++)I+=k[A].length;switch(T){case"string":return k.join("");case"array":return Array.prototype.concat.apply([],k);case"uint8array":for(z=new Uint8Array(I),A=0;A<k.length;A++)z.set(k[A],P),P+=k[A].length;return z;case"nodebuffer":return Buffer.concat(k);default:throw new Error("concat : unsupported type '"+T+"'")}}(b,y),S);p(C)}catch(T){v(T)}y=[]}).resume()})}function s(h,g,p){var v=g;switch(g){case"blob":case"arraybuffer":v="uint8array";break;case"base64":v="string"}try{this._internalType=v,this._outputType=g,this._mimeType=p,l.checkSupport(v),this._worker=h.pipe(new m(v)),h.lock()}catch(y){this._worker=new o("error"),this._worker.error(y)}}s.prototype={accumulate:function(h){return f(this,h)},on:function(h,g){var p=this;return h==="data"?this._worker.on(h,function(v){g.call(p,v.data,v.meta)}):this._worker.on(h,function(){l.delay(g,arguments,p)}),this},resume:function(){return l.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(h){if(l.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:this._outputType!=="nodebuffer"},h)}},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 l=new ArrayBuffer(0);try{i.blob=new Blob([l],{type:"application/zip"}).size===0}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);m.append(l),i.blob=m.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 l=n("./utils"),m=n("./support"),o=n("./nodejsUtils"),a=n("./stream/GenericWorker"),c=new Array(256),d=0;d<256;d++)c[d]=252<=d?6:248<=d?5:240<=d?4:224<=d?3:192<=d?2:1;c[254]=c[254]=1;function u(){a.call(this,"utf-8 decode"),this.leftOver=null}function f(){a.call(this,"utf-8 encode")}i.utf8encode=function(s){return m.nodebuffer?o.newBufferFrom(s,"utf-8"):function(h){var g,p,v,y,b,w=h.length,S=0;for(y=0;y<w;y++)(64512&(p=h.charCodeAt(y)))==55296&&y+1<w&&(64512&(v=h.charCodeAt(y+1)))==56320&&(p=65536+(p-55296<<10)+(v-56320),y++),S+=p<128?1:p<2048?2:p<65536?3:4;for(g=m.uint8array?new Uint8Array(S):new Array(S),y=b=0;b<S;y++)(64512&(p=h.charCodeAt(y)))==55296&&y+1<w&&(64512&(v=h.charCodeAt(y+1)))==56320&&(p=65536+(p-55296<<10)+(v-56320),y++),p<128?g[b++]=p:(p<2048?g[b++]=192|p>>>6:(p<65536?g[b++]=224|p>>>12:(g[b++]=240|p>>>18,g[b++]=128|p>>>12&63),g[b++]=128|p>>>6&63),g[b++]=128|63&p);return g}(s)},i.utf8decode=function(s){return m.nodebuffer?l.transformTo("nodebuffer",s).toString("utf-8"):function(h){var g,p,v,y,b=h.length,w=new Array(2*b);for(g=p=0;g<b;)if((v=h[g++])<128)w[p++]=v;else if(4<(y=c[v]))w[p++]=65533,g+=y-1;else{for(v&=y===2?31:y===3?15:7;1<y&&g<b;)v=v<<6|63&h[g++],y--;1<y?w[p++]=65533:v<65536?w[p++]=v:(v-=65536,w[p++]=55296|v>>10&1023,w[p++]=56320|1023&v)}return w.length!==p&&(w.subarray?w=w.subarray(0,p):w.length=p),l.applyFromCharCode(w)}(s=l.transformTo(m.uint8array?"uint8array":"array",s))},l.inherits(u,a),u.prototype.processChunk=function(s){var h=l.transformTo(m.uint8array?"uint8array":"array",s.data);if(this.leftOver&&this.leftOver.length){if(m.uint8array){var g=h;(h=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),h.set(g,this.leftOver.length)}else h=this.leftOver.concat(h);this.leftOver=null}var p=function(y,b){var w;for((b=b||y.length)>y.length&&(b=y.length),w=b-1;0<=w&&(192&y[w])==128;)w--;return w<0||w===0?b:w+c[y[w]]>b?w:b}(h),v=h;p!==h.length&&(m.uint8array?(v=h.subarray(0,p),this.leftOver=h.subarray(p,h.length)):(v=h.slice(0,p),this.leftOver=h.slice(p,h.length))),this.push({data:i.utf8decode(v),meta:s.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=u,l.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 l=n("./support"),m=n("./base64"),o=n("./nodejsUtils"),a=n("./external");function c(g){return g}function d(g,p){for(var v=0;v<g.length;++v)p[v]=255&g.charCodeAt(v);return p}n("setimmediate"),i.newBlob=function(g,p){i.checkSupport("blob");try{return new Blob([g],{type:p})}catch{try{var v=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return v.append(g),v.getBlob(p)}catch{throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(g,p,v){var y=[],b=0,w=g.length;if(w<=v)return String.fromCharCode.apply(null,g);for(;b<w;)p==="array"||p==="nodebuffer"?y.push(String.fromCharCode.apply(null,g.slice(b,Math.min(b+v,w)))):y.push(String.fromCharCode.apply(null,g.subarray(b,Math.min(b+v,w)))),b+=v;return y.join("")},stringifyByChar:function(g){for(var p="",v=0;v<g.length;v++)p+=String.fromCharCode(g[v]);return p},applyCanBeUsed:{uint8array:function(){try{return l.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return l.nodebuffer&&String.fromCharCode.apply(null,o.allocBuffer(1)).length===1}catch{return!1}}()}};function f(g){var p=65536,v=i.getTypeOf(g),y=!0;if(v==="uint8array"?y=u.applyCanBeUsed.uint8array:v==="nodebuffer"&&(y=u.applyCanBeUsed.nodebuffer),y)for(;1<p;)try{return u.stringifyByChunk(g,v,p)}catch{p=Math.floor(p/2)}return u.stringifyByChar(g)}function s(g,p){for(var v=0;v<g.length;v++)p[v]=g[v];return p}i.applyFromCharCode=f;var h={};h.string={string:c,array:function(g){return d(g,new Array(g.length))},arraybuffer:function(g){return h.string.uint8array(g).buffer},uint8array:function(g){return d(g,new Uint8Array(g.length))},nodebuffer:function(g){return d(g,o.allocBuffer(g.length))}},h.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)}},h.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))}},h.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)}},h.nodebuffer={string:f,array:function(g){return s(g,new Array(g.length))},arraybuffer:function(g){return h.nodebuffer.uint8array(g).buffer},uint8array:function(g){return s(g,new Uint8Array(g.length))},nodebuffer:c},i.transformTo=function(g,p){if(p=p||"",!g)return p;i.checkSupport(g);var v=i.getTypeOf(p);return h[v][g](p)},i.resolve=function(g){for(var p=g.split("/"),v=[],y=0;y<p.length;y++){var b=p[y];b==="."||b===""&&y!==0&&y!==p.length-1||(b===".."?v.pop():v.push(b))}return v.join("/")},i.getTypeOf=function(g){return typeof g=="string"?"string":Object.prototype.toString.call(g)==="[object Array]"?"array":l.nodebuffer&&o.isBuffer(g)?"nodebuffer":l.uint8array&&g instanceof Uint8Array?"uint8array":l.arraybuffer&&g instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(g){if(!l[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 p,v,y="";for(v=0;v<(g||"").length;v++)y+="\\x"+((p=g.charCodeAt(v))<16?"0":"")+p.toString(16).toUpperCase();return y},i.delay=function(g,p,v){setImmediate(function(){g.apply(v||null,p||[])})},i.inherits=function(g,p){function v(){}v.prototype=p.prototype,g.prototype=new v},i.extend=function(){var g,p,v={};for(g=0;g<arguments.length;g++)for(p in arguments[g])Object.prototype.hasOwnProperty.call(arguments[g],p)&&v[p]===void 0&&(v[p]=arguments[g][p]);return v},i.prepareContent=function(g,p,v,y,b){return a.Promise.resolve(p).then(function(w){return l.blob&&(w instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(w))!==-1)&&typeof FileReader<"u"?new a.Promise(function(S,C){var T=new FileReader;T.onload=function(k){S(k.target.result)},T.onerror=function(k){C(k.target.error)},T.readAsArrayBuffer(w)}):w}).then(function(w){var S=i.getTypeOf(w);return S?(S==="arraybuffer"?w=i.transformTo("uint8array",w):S==="string"&&(b?w=m.decode(w):v&&y!==!0&&(w=function(C){return d(C,l.uint8array?new Uint8Array(C.length):new Array(C.length))}(w))),w):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 l=n("./reader/readerFor"),m=n("./utils"),o=n("./signature"),a=n("./zipEntry"),c=n("./support");function d(u){this.files=[],this.loadOptions=u}d.prototype={checkSignature:function(u){if(!this.reader.readAndCheckSignature(u)){this.reader.index-=4;var f=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+m.pretty(f)+", expected "+m.pretty(u)+")")}},isSignature:function(u,f){var s=this.reader.index;this.reader.setIndex(u);var h=this.reader.readString(4)===f;return this.reader.setIndex(s),h},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 u=this.reader.readData(this.zipCommentLength),f=c.uint8array?"uint8array":"array",s=m.transformTo(f,u);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 u,f,s,h=this.zip64EndOfCentralSize-44;0<h;)u=this.reader.readInt(2),f=this.reader.readInt(4),s=this.reader.readData(f),this.zip64ExtensibleData[u]={id:u,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 u,f;for(u=0;u<this.files.length;u++)f=this.files[u],this.reader.setIndex(f.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),f.readLocalPart(this.reader),f.handleUTF8(),f.processAttributes()},readCentralDir:function(){var u;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(u=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(u);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 u=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(u<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(u);var f=u;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===m.MAX_VALUE_16BITS||this.diskWithCentralDirStart===m.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===m.MAX_VALUE_16BITS||this.centralDirRecords===m.MAX_VALUE_16BITS||this.centralDirSize===m.MAX_VALUE_32BITS||this.centralDirOffset===m.MAX_VALUE_32BITS){if(this.zip64=!0,(u=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(u),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 h=f-s;if(0<h)this.isSignature(f,o.CENTRAL_FILE_HEADER)||(this.reader.zero=h);else if(h<0)throw new Error("Corrupted zip: missing "+Math.abs(h)+" bytes.")},prepareReader:function(u){this.reader=l(u)},load:function(u){this.prepareReader(u),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=d},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,i){var l=n("./reader/readerFor"),m=n("./utils"),o=n("./compressedObject"),a=n("./crc32"),c=n("./utf8"),d=n("./compressions"),u=n("./support");function f(s,h){this.options=s,this.loadOptions=h}f.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(s){var h,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((h=function(p){for(var v in d)if(Object.prototype.hasOwnProperty.call(d,v)&&d[v].magic===p)return d[v];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+m.pretty(this.compressionMethod)+" unknown (inner file : "+m.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,h,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 h=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(h),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=l(this.extraFields[1].value);this.uncompressedSize===m.MAX_VALUE_32BITS&&(this.uncompressedSize=s.readInt(8)),this.compressedSize===m.MAX_VALUE_32BITS&&(this.compressedSize=s.readInt(8)),this.localHeaderOffset===m.MAX_VALUE_32BITS&&(this.localHeaderOffset=s.readInt(8)),this.diskNumberStart===m.MAX_VALUE_32BITS&&(this.diskNumberStart=s.readInt(4))}},readExtraFields:function(s){var h,g,p,v=s.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});s.index+4<v;)h=s.readInt(2),g=s.readInt(2),p=s.readData(g),this.extraFields[h]={id:h,length:g,value:p};s.setIndex(v)},handleUTF8:function(){var s=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=c.utf8decode(this.fileName),this.fileCommentStr=c.utf8decode(this.fileComment);else{var h=this.findExtraFieldUnicodePath();if(h!==null)this.fileNameStr=h;else{var g=m.transformTo(s,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var p=this.findExtraFieldUnicodeComment();if(p!==null)this.fileCommentStr=p;else{var v=m.transformTo(s,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(v)}}},findExtraFieldUnicodePath:function(){var s=this.extraFields[28789];if(s){var h=l(s.value);return h.readInt(1)!==1||a(this.fileName)!==h.readInt(4)?null:c.utf8decode(h.readData(s.length-5))}return null},findExtraFieldUnicodeComment:function(){var s=this.extraFields[25461];if(s){var h=l(s.value);return h.readInt(1)!==1||a(this.fileComment)!==h.readInt(4)?null:c.utf8decode(h.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 l(h,g,p){this.name=h,this.dir=p.dir,this.date=p.date,this.comment=p.comment,this.unixPermissions=p.unixPermissions,this.dosPermissions=p.dosPermissions,this._data=g,this._dataBinary=p.binary,this.options={compression:p.compression,compressionOptions:p.compressionOptions}}var m=n("./stream/StreamHelper"),o=n("./stream/DataWorker"),a=n("./utf8"),c=n("./compressedObject"),d=n("./stream/GenericWorker");l.prototype={internalStream:function(h){var g=null,p="string";try{if(!h)throw new Error("No output type specified.");var v=(p=h.toLowerCase())==="string"||p==="text";p!=="binarystring"&&p!=="text"||(p="string"),g=this._decompressWorker();var y=!this._dataBinary;y&&!v&&(g=g.pipe(new a.Utf8EncodeWorker)),!y&&v&&(g=g.pipe(new a.Utf8DecodeWorker))}catch(b){(g=new d("error")).error(b)}return new m(g,p,"")},async:function(h,g){return this.internalStream(h).accumulate(g)},nodeStream:function(h,g){return this.internalStream(h||"nodebuffer").toNodejsStream(g)},_compressWorker:function(h,g){if(this._data instanceof c&&this._data.compression.magic===h.magic)return this._data.getCompressedWorker();var p=this._decompressWorker();return this._dataBinary||(p=p.pipe(new a.Utf8EncodeWorker)),c.createWorkerFrom(p,h,g)},_decompressWorker:function(){return this._data instanceof c?this._data.getContentWorker():this._data instanceof d?this._data:new o(this._data)}};for(var u=["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<u.length;s++)l.prototype[u[s]]=f;r.exports=l},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,i){(function(l){var m,o,a=l.MutationObserver||l.WebKitMutationObserver;if(a){var c=0,d=new a(h),u=l.document.createTextNode("");d.observe(u,{characterData:!0}),m=function(){u.data=c=++c%2}}else if(l.setImmediate||l.MessageChannel===void 0)m="document"in l&&"onreadystatechange"in l.document.createElement("script")?function(){var g=l.document.createElement("script");g.onreadystatechange=function(){h(),g.onreadystatechange=null,g.parentNode.removeChild(g),g=null},l.document.documentElement.appendChild(g)}:function(){setTimeout(h,0)};else{var f=new l.MessageChannel;f.port1.onmessage=h,m=function(){f.port2.postMessage(0)}}var s=[];function h(){var g,p;o=!0;for(var v=s.length;v;){for(p=s,s=[],g=-1;++g<v;)p[g]();v=s.length}o=!1}r.exports=function(g){s.push(g)!==1||o||m()}}).call(this,typeof Pu<"u"?Pu:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,r,i){var l=n("immediate");function m(){}var o={},a=["REJECTED"],c=["FULFILLED"],d=["PENDING"];function u(v){if(typeof v!="function")throw new TypeError("resolver must be a function");this.state=d,this.queue=[],this.outcome=void 0,v!==m&&g(this,v)}function f(v,y,b){this.promise=v,typeof y=="function"&&(this.onFulfilled=y,this.callFulfilled=this.otherCallFulfilled),typeof b=="function"&&(this.onRejected=b,this.callRejected=this.otherCallRejected)}function s(v,y,b){l(function(){var w;try{w=y(b)}catch(S){return o.reject(v,S)}w===v?o.reject(v,new TypeError("Cannot resolve promise with itself")):o.resolve(v,w)})}function h(v){var y=v&&v.then;if(v&&(typeof v=="object"||typeof v=="function")&&typeof y=="function")return function(){y.apply(v,arguments)}}function g(v,y){var b=!1;function w(T){b||(b=!0,o.reject(v,T))}function S(T){b||(b=!0,o.resolve(v,T))}var C=p(function(){y(S,w)});C.status==="error"&&w(C.value)}function p(v,y){var b={};try{b.value=v(y),b.status="success"}catch(w){b.status="error",b.value=w}return b}(r.exports=u).prototype.finally=function(v){if(typeof v!="function")return this;var y=this.constructor;return this.then(function(b){return y.resolve(v()).then(function(){return b})},function(b){return y.resolve(v()).then(function(){throw b})})},u.prototype.catch=function(v){return this.then(null,v)},u.prototype.then=function(v,y){if(typeof v!="function"&&this.state===c||typeof y!="function"&&this.state===a)return this;var b=new this.constructor(m);return this.state!==d?s(b,this.state===c?v:y,this.outcome):this.queue.push(new f(b,v,y)),b},f.prototype.callFulfilled=function(v){o.resolve(this.promise,v)},f.prototype.otherCallFulfilled=function(v){s(this.promise,this.onFulfilled,v)},f.prototype.callRejected=function(v){o.reject(this.promise,v)},f.prototype.otherCallRejected=function(v){s(this.promise,this.onRejected,v)},o.resolve=function(v,y){var b=p(h,y);if(b.status==="error")return o.reject(v,b.value);var w=b.value;if(w)g(v,w);else{v.state=c,v.outcome=y;for(var S=-1,C=v.queue.length;++S<C;)v.queue[S].callFulfilled(y)}return v},o.reject=function(v,y){v.state=a,v.outcome=y;for(var b=-1,w=v.queue.length;++b<w;)v.queue[b].callRejected(y);return v},u.resolve=function(v){return v instanceof this?v:o.resolve(new this(m),v)},u.reject=function(v){var y=new this(m);return o.reject(y,v)},u.all=function(v){var y=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=v.length,w=!1;if(!b)return this.resolve([]);for(var S=new Array(b),C=0,T=-1,k=new this(m);++T<b;)A(v[T],T);return k;function A(P,z){y.resolve(P).then(function(I){S[z]=I,++C!==b||w||(w=!0,o.resolve(k,S))},function(I){w||(w=!0,o.reject(k,I))})}},u.race=function(v){var y=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=v.length,w=!1;if(!b)return this.resolve([]);for(var S=-1,C=new this(m);++S<b;)T=v[S],y.resolve(T).then(function(k){w||(w=!0,o.resolve(C,k))},function(k){w||(w=!0,o.reject(C,k))});var T;return C}},{immediate:36}],38:[function(n,r,i){var l={};(0,n("./lib/utils/common").assign)(l,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=l},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,i){var l=n("./zlib/deflate"),m=n("./utils/common"),o=n("./utils/strings"),a=n("./zlib/messages"),c=n("./zlib/zstream"),d=Object.prototype.toString,u=0,f=-1,s=0,h=8;function g(v){if(!(this instanceof g))return new g(v);this.options=m.assign({level:f,method:h,chunkSize:16384,windowBits:15,memLevel:8,strategy:s,to:""},v||{});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=l.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(b!==u)throw new Error(a[b]);if(y.header&&l.deflateSetHeader(this.strm,y.header),y.dictionary){var w;if(w=typeof y.dictionary=="string"?o.string2buf(y.dictionary):d.call(y.dictionary)==="[object ArrayBuffer]"?new Uint8Array(y.dictionary):y.dictionary,(b=l.deflateSetDictionary(this.strm,w))!==u)throw new Error(a[b]);this._dict_set=!0}}function p(v,y){var b=new g(y);if(b.push(v,!0),b.err)throw b.msg||a[b.err];return b.result}g.prototype.push=function(v,y){var b,w,S=this.strm,C=this.options.chunkSize;if(this.ended)return!1;w=y===~~y?y:y===!0?4:0,typeof v=="string"?S.input=o.string2buf(v):d.call(v)==="[object ArrayBuffer]"?S.input=new Uint8Array(v):S.input=v,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new m.Buf8(C),S.next_out=0,S.avail_out=C),(b=l.deflate(S,w))!==1&&b!==u)return this.onEnd(b),!(this.ended=!0);S.avail_out!==0&&(S.avail_in!==0||w!==4&&w!==2)||(this.options.to==="string"?this.onData(o.buf2binstring(m.shrinkBuf(S.output,S.next_out))):this.onData(m.shrinkBuf(S.output,S.next_out)))}while((0<S.avail_in||S.avail_out===0)&&b!==1);return w===4?(b=l.deflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===u):w!==2||(this.onEnd(u),!(S.avail_out=0))},g.prototype.onData=function(v){this.chunks.push(v)},g.prototype.onEnd=function(v){v===u&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},i.Deflate=g,i.deflate=p,i.deflateRaw=function(v,y){return(y=y||{}).raw=!0,p(v,y)},i.gzip=function(v,y){return(y=y||{}).gzip=!0,p(v,y)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,r,i){var l=n("./zlib/inflate"),m=n("./utils/common"),o=n("./utils/strings"),a=n("./zlib/constants"),c=n("./zlib/messages"),d=n("./zlib/zstream"),u=n("./zlib/gzheader"),f=Object.prototype.toString;function s(g){if(!(this instanceof s))return new s(g);this.options=m.assign({chunkSize:16384,windowBits:0,to:""},g||{});var p=this.options;p.raw&&0<=p.windowBits&&p.windowBits<16&&(p.windowBits=-p.windowBits,p.windowBits===0&&(p.windowBits=-15)),!(0<=p.windowBits&&p.windowBits<16)||g&&g.windowBits||(p.windowBits+=32),15<p.windowBits&&p.windowBits<48&&(15&p.windowBits)==0&&(p.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var v=l.inflateInit2(this.strm,p.windowBits);if(v!==a.Z_OK)throw new Error(c[v]);this.header=new u,l.inflateGetHeader(this.strm,this.header)}function h(g,p){var v=new s(p);if(v.push(g,!0),v.err)throw v.msg||c[v.err];return v.result}s.prototype.push=function(g,p){var v,y,b,w,S,C,T=this.strm,k=this.options.chunkSize,A=this.options.dictionary,P=!1;if(this.ended)return!1;y=p===~~p?p:p===!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 m.Buf8(k),T.next_out=0,T.avail_out=k),(v=l.inflate(T,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&A&&(C=typeof A=="string"?o.string2buf(A):f.call(A)==="[object ArrayBuffer]"?new Uint8Array(A):A,v=l.inflateSetDictionary(this.strm,C)),v===a.Z_BUF_ERROR&&P===!0&&(v=a.Z_OK,P=!1),v!==a.Z_STREAM_END&&v!==a.Z_OK)return this.onEnd(v),!(this.ended=!0);T.next_out&&(T.avail_out!==0&&v!==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),w=T.next_out-b,S=o.buf2string(T.output,b),T.next_out=w,T.avail_out=k-w,w&&m.arraySet(T.output,T.output,b,w,0),this.onData(S)):this.onData(m.shrinkBuf(T.output,T.next_out)))),T.avail_in===0&&T.avail_out===0&&(P=!0)}while((0<T.avail_in||T.avail_out===0)&&v!==a.Z_STREAM_END);return v===a.Z_STREAM_END&&(y=a.Z_FINISH),y===a.Z_FINISH?(v=l.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===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=m.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},i.Inflate=s,i.inflate=h,i.inflateRaw=function(g,p){return(p=p||{}).raw=!0,h(g,p)},i.ungzip=h},{"./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 l=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 d=c.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var u in d)d.hasOwnProperty(u)&&(a[u]=d[u])}}return a},i.shrinkBuf=function(a,c){return a.length===c?a:a.subarray?a.subarray(0,c):(a.length=c,a)};var m={arraySet:function(a,c,d,u,f){if(c.subarray&&a.subarray)a.set(c.subarray(d,d+u),f);else for(var s=0;s<u;s++)a[f+s]=c[d+s]},flattenChunks:function(a){var c,d,u,f,s,h;for(c=u=0,d=a.length;c<d;c++)u+=a[c].length;for(h=new Uint8Array(u),c=f=0,d=a.length;c<d;c++)s=a[c],h.set(s,f),f+=s.length;return h}},o={arraySet:function(a,c,d,u,f){for(var s=0;s<u;s++)a[f+s]=c[d+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,m)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,o))},i.setTyped(l)},{}],42:[function(n,r,i){var l=n("./common"),m=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch{m=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{o=!1}for(var a=new l.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 d(u,f){if(f<65537&&(u.subarray&&o||!u.subarray&&m))return String.fromCharCode.apply(null,l.shrinkBuf(u,f));for(var s="",h=0;h<f;h++)s+=String.fromCharCode(u[h]);return s}a[254]=a[254]=1,i.string2buf=function(u){var f,s,h,g,p,v=u.length,y=0;for(g=0;g<v;g++)(64512&(s=u.charCodeAt(g)))==55296&&g+1<v&&(64512&(h=u.charCodeAt(g+1)))==56320&&(s=65536+(s-55296<<10)+(h-56320),g++),y+=s<128?1:s<2048?2:s<65536?3:4;for(f=new l.Buf8(y),g=p=0;p<y;g++)(64512&(s=u.charCodeAt(g)))==55296&&g+1<v&&(64512&(h=u.charCodeAt(g+1)))==56320&&(s=65536+(s-55296<<10)+(h-56320),g++),s<128?f[p++]=s:(s<2048?f[p++]=192|s>>>6:(s<65536?f[p++]=224|s>>>12:(f[p++]=240|s>>>18,f[p++]=128|s>>>12&63),f[p++]=128|s>>>6&63),f[p++]=128|63&s);return f},i.buf2binstring=function(u){return d(u,u.length)},i.binstring2buf=function(u){for(var f=new l.Buf8(u.length),s=0,h=f.length;s<h;s++)f[s]=u.charCodeAt(s);return f},i.buf2string=function(u,f){var s,h,g,p,v=f||u.length,y=new Array(2*v);for(s=h=0;s<v;)if((g=u[s++])<128)y[h++]=g;else if(4<(p=a[g]))y[h++]=65533,s+=p-1;else{for(g&=p===2?31:p===3?15:7;1<p&&s<v;)g=g<<6|63&u[s++],p--;1<p?y[h++]=65533:g<65536?y[h++]=g:(g-=65536,y[h++]=55296|g>>10&1023,y[h++]=56320|1023&g)}return d(y,h)},i.utf8border=function(u,f){var s;for((f=f||u.length)>u.length&&(f=u.length),s=f-1;0<=s&&(192&u[s])==128;)s--;return s<0||s===0?f:s+a[u[s]]>f?s:f}},{"./common":41}],43:[function(n,r,i){r.exports=function(l,m,o,a){for(var c=65535&l|0,d=l>>>16&65535|0,u=0;o!==0;){for(o-=u=2e3<o?2e3:o;d=d+(c=c+m[a++]|0)|0,--u;);c%=65521,d%=65521}return c|d<<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 l=function(){for(var m,o=[],a=0;a<256;a++){m=a;for(var c=0;c<8;c++)m=1&m?3988292384^m>>>1:m>>>1;o[a]=m}return o}();r.exports=function(m,o,a,c){var d=l,u=c+a;m^=-1;for(var f=c;f<u;f++)m=m>>>8^d[255&(m^o[f])];return-1^m}},{}],46:[function(n,r,i){var l,m=n("../utils/common"),o=n("./trees"),a=n("./adler32"),c=n("./crc32"),d=n("./messages"),u=0,f=4,s=0,h=-2,g=-1,p=4,v=2,y=8,b=9,w=286,S=30,C=19,T=2*w+1,k=15,A=3,P=258,z=P+A+1,I=42,$=113,O=1,Y=2,ae=3,q=4;function J(x,U){return x.msg=d[U],U}function E(x){return(x<<1)-(4<x?9:0)}function V(x){for(var U=x.length;0<=--U;)x[U]=0}function M(x){var U=x.state,K=U.pending;K>x.avail_out&&(K=x.avail_out),K!==0&&(m.arraySet(x.output,U.pending_buf,U.pending_out,K,x.next_out),x.next_out+=K,U.pending_out+=K,x.total_out+=K,x.avail_out-=K,U.pending-=K,U.pending===0&&(U.pending_out=0))}function R(x,U){o._tr_flush_block(x,0<=x.block_start?x.block_start:-1,x.strstart-x.block_start,U),x.block_start=x.strstart,M(x.strm)}function W(x,U){x.pending_buf[x.pending++]=U}function D(x,U){x.pending_buf[x.pending++]=U>>>8&255,x.pending_buf[x.pending++]=255&U}function B(x,U){var K,L,F=x.max_chain_length,X=x.strstart,de=x.prev_length,le=x.nice_match,G=x.strstart>x.w_size-z?x.strstart-(x.w_size-z):0,pe=x.window,re=x.w_mask,he=x.prev,Se=x.strstart+P,xe=pe[X+de-1],Oe=pe[X+de];x.prev_length>=x.good_match&&(F>>=2),le>x.lookahead&&(le=x.lookahead);do if(pe[(K=U)+de]===Oe&&pe[K+de-1]===xe&&pe[K]===pe[X]&&pe[++K]===pe[X+1]){X+=2,K++;do;while(pe[++X]===pe[++K]&&pe[++X]===pe[++K]&&pe[++X]===pe[++K]&&pe[++X]===pe[++K]&&pe[++X]===pe[++K]&&pe[++X]===pe[++K]&&pe[++X]===pe[++K]&&pe[++X]===pe[++K]&&X<Se);if(L=P-(Se-X),X=Se-P,de<L){if(x.match_start=U,le<=(de=L))break;xe=pe[X+de-1],Oe=pe[X+de]}}while((U=he[U&re])>G&&--F!=0);return de<=x.lookahead?de:x.lookahead}function Z(x){var U,K,L,F,X,de,le,G,pe,re,he=x.w_size;do{if(F=x.window_size-x.lookahead-x.strstart,x.strstart>=he+(he-z)){for(m.arraySet(x.window,x.window,he,he,0),x.match_start-=he,x.strstart-=he,x.block_start-=he,U=K=x.hash_size;L=x.head[--U],x.head[U]=he<=L?L-he:0,--K;);for(U=K=he;L=x.prev[--U],x.prev[U]=he<=L?L-he:0,--K;);F+=he}if(x.strm.avail_in===0)break;if(de=x.strm,le=x.window,G=x.strstart+x.lookahead,pe=F,re=void 0,re=de.avail_in,pe<re&&(re=pe),K=re===0?0:(de.avail_in-=re,m.arraySet(le,de.input,de.next_in,re,G),de.state.wrap===1?de.adler=a(de.adler,le,re,G):de.state.wrap===2&&(de.adler=c(de.adler,le,re,G)),de.next_in+=re,de.total_in+=re,re),x.lookahead+=K,x.lookahead+x.insert>=A)for(X=x.strstart-x.insert,x.ins_h=x.window[X],x.ins_h=(x.ins_h<<x.hash_shift^x.window[X+1])&x.hash_mask;x.insert&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[X+A-1])&x.hash_mask,x.prev[X&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=X,X++,x.insert--,!(x.lookahead+x.insert<A)););}while(x.lookahead<z&&x.strm.avail_in!==0)}function H(x,U){for(var K,L;;){if(x.lookahead<z){if(Z(x),x.lookahead<z&&U===u)return O;if(x.lookahead===0)break}if(K=0,x.lookahead>=A&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+A-1])&x.hash_mask,K=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart),K!==0&&x.strstart-K<=x.w_size-z&&(x.match_length=B(x,K)),x.match_length>=A)if(L=o._tr_tally(x,x.strstart-x.match_start,x.match_length-A),x.lookahead-=x.match_length,x.match_length<=x.max_lazy_match&&x.lookahead>=A){for(x.match_length--;x.strstart++,x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+A-1])&x.hash_mask,K=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 L=o._tr_tally(x,0,x.window[x.strstart]),x.lookahead--,x.strstart++;if(L&&(R(x,!1),x.strm.avail_out===0))return O}return x.insert=x.strstart<A-1?x.strstart:A-1,U===f?(R(x,!0),x.strm.avail_out===0?ae:q):x.last_lit&&(R(x,!1),x.strm.avail_out===0)?O:Y}function Q(x,U){for(var K,L,F;;){if(x.lookahead<z){if(Z(x),x.lookahead<z&&U===u)return O;if(x.lookahead===0)break}if(K=0,x.lookahead>=A&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+A-1])&x.hash_mask,K=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=A-1,K!==0&&x.prev_length<x.max_lazy_match&&x.strstart-K<=x.w_size-z&&(x.match_length=B(x,K),x.match_length<=5&&(x.strategy===1||x.match_length===A&&4096<x.strstart-x.match_start)&&(x.match_length=A-1)),x.prev_length>=A&&x.match_length<=x.prev_length){for(F=x.strstart+x.lookahead-A,L=o._tr_tally(x,x.strstart-1-x.prev_match,x.prev_length-A),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+A-1])&x.hash_mask,K=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=A-1,x.strstart++,L&&(R(x,!1),x.strm.avail_out===0))return O}else if(x.match_available){if((L=o._tr_tally(x,0,x.window[x.strstart-1]))&&R(x,!1),x.strstart++,x.lookahead--,x.strm.avail_out===0)return O}else x.match_available=1,x.strstart++,x.lookahead--}return x.match_available&&(L=o._tr_tally(x,0,x.window[x.strstart-1]),x.match_available=0),x.insert=x.strstart<A-1?x.strstart:A-1,U===f?(R(x,!0),x.strm.avail_out===0?ae:q):x.last_lit&&(R(x,!1),x.strm.avail_out===0)?O:Y}function te(x,U,K,L,F){this.good_length=x,this.max_lazy=U,this.nice_length=K,this.max_chain=L,this.func=F}function fe(){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 m.Buf16(2*T),this.dyn_dtree=new m.Buf16(2*(2*S+1)),this.bl_tree=new m.Buf16(2*(2*C+1)),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new m.Buf16(k+1),this.heap=new m.Buf16(2*w+1),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new m.Buf16(2*w+1),V(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 me(x){var U;return x&&x.state?(x.total_in=x.total_out=0,x.data_type=v,(U=x.state).pending=0,U.pending_out=0,U.wrap<0&&(U.wrap=-U.wrap),U.status=U.wrap?I:$,x.adler=U.wrap===2?0:1,U.last_flush=u,o._tr_init(U),s):J(x,h)}function _e(x){var U=me(x);return U===s&&function(K){K.window_size=2*K.w_size,V(K.head),K.max_lazy_match=l[K.level].max_lazy,K.good_match=l[K.level].good_length,K.nice_match=l[K.level].nice_length,K.max_chain_length=l[K.level].max_chain,K.strstart=0,K.block_start=0,K.lookahead=0,K.insert=0,K.match_length=K.prev_length=A-1,K.match_available=0,K.ins_h=0}(x.state),U}function j(x,U,K,L,F,X){if(!x)return h;var de=1;if(U===g&&(U=6),L<0?(de=0,L=-L):15<L&&(de=2,L-=16),F<1||b<F||K!==y||L<8||15<L||U<0||9<U||X<0||p<X)return J(x,h);L===8&&(L=9);var le=new fe;return(x.state=le).strm=x,le.wrap=de,le.gzhead=null,le.w_bits=L,le.w_size=1<<le.w_bits,le.w_mask=le.w_size-1,le.hash_bits=F+7,le.hash_size=1<<le.hash_bits,le.hash_mask=le.hash_size-1,le.hash_shift=~~((le.hash_bits+A-1)/A),le.window=new m.Buf8(2*le.w_size),le.head=new m.Buf16(le.hash_size),le.prev=new m.Buf16(le.w_size),le.lit_bufsize=1<<F+6,le.pending_buf_size=4*le.lit_bufsize,le.pending_buf=new m.Buf8(le.pending_buf_size),le.d_buf=1*le.lit_bufsize,le.l_buf=3*le.lit_bufsize,le.level=U,le.strategy=X,le.method=K,_e(x)}l=[new te(0,0,0,0,function(x,U){var K=65535;for(K>x.pending_buf_size-5&&(K=x.pending_buf_size-5);;){if(x.lookahead<=1){if(Z(x),x.lookahead===0&&U===u)return O;if(x.lookahead===0)break}x.strstart+=x.lookahead,x.lookahead=0;var L=x.block_start+K;if((x.strstart===0||x.strstart>=L)&&(x.lookahead=x.strstart-L,x.strstart=L,R(x,!1),x.strm.avail_out===0)||x.strstart-x.block_start>=x.w_size-z&&(R(x,!1),x.strm.avail_out===0))return O}return x.insert=0,U===f?(R(x,!0),x.strm.avail_out===0?ae:q):(x.strstart>x.block_start&&(R(x,!1),x.strm.avail_out),O)}),new te(4,4,8,4,H),new te(4,5,16,8,H),new te(4,6,32,32,H),new te(4,4,16,16,Q),new te(8,16,32,32,Q),new te(8,16,128,128,Q),new te(8,32,128,256,Q),new te(32,128,258,1024,Q),new te(32,258,258,4096,Q)],i.deflateInit=function(x,U){return j(x,U,y,15,8,0)},i.deflateInit2=j,i.deflateReset=_e,i.deflateResetKeep=me,i.deflateSetHeader=function(x,U){return x&&x.state?x.state.wrap!==2?h:(x.state.gzhead=U,s):h},i.deflate=function(x,U){var K,L,F,X;if(!x||!x.state||5<U||U<0)return x?J(x,h):h;if(L=x.state,!x.output||!x.input&&x.avail_in!==0||L.status===666&&U!==f)return J(x,x.avail_out===0?-5:h);if(L.strm=x,K=L.last_flush,L.last_flush=U,L.status===I)if(L.wrap===2)x.adler=0,W(L,31),W(L,139),W(L,8),L.gzhead?(W(L,(L.gzhead.text?1:0)+(L.gzhead.hcrc?2:0)+(L.gzhead.extra?4:0)+(L.gzhead.name?8:0)+(L.gzhead.comment?16:0)),W(L,255&L.gzhead.time),W(L,L.gzhead.time>>8&255),W(L,L.gzhead.time>>16&255),W(L,L.gzhead.time>>24&255),W(L,L.level===9?2:2<=L.strategy||L.level<2?4:0),W(L,255&L.gzhead.os),L.gzhead.extra&&L.gzhead.extra.length&&(W(L,255&L.gzhead.extra.length),W(L,L.gzhead.extra.length>>8&255)),L.gzhead.hcrc&&(x.adler=c(x.adler,L.pending_buf,L.pending,0)),L.gzindex=0,L.status=69):(W(L,0),W(L,0),W(L,0),W(L,0),W(L,0),W(L,L.level===9?2:2<=L.strategy||L.level<2?4:0),W(L,3),L.status=$);else{var de=y+(L.w_bits-8<<4)<<8;de|=(2<=L.strategy||L.level<2?0:L.level<6?1:L.level===6?2:3)<<6,L.strstart!==0&&(de|=32),de+=31-de%31,L.status=$,D(L,de),L.strstart!==0&&(D(L,x.adler>>>16),D(L,65535&x.adler)),x.adler=1}if(L.status===69)if(L.gzhead.extra){for(F=L.pending;L.gzindex<(65535&L.gzhead.extra.length)&&(L.pending!==L.pending_buf_size||(L.gzhead.hcrc&&L.pending>F&&(x.adler=c(x.adler,L.pending_buf,L.pending-F,F)),M(x),F=L.pending,L.pending!==L.pending_buf_size));)W(L,255&L.gzhead.extra[L.gzindex]),L.gzindex++;L.gzhead.hcrc&&L.pending>F&&(x.adler=c(x.adler,L.pending_buf,L.pending-F,F)),L.gzindex===L.gzhead.extra.length&&(L.gzindex=0,L.status=73)}else L.status=73;if(L.status===73)if(L.gzhead.name){F=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>F&&(x.adler=c(x.adler,L.pending_buf,L.pending-F,F)),M(x),F=L.pending,L.pending===L.pending_buf_size)){X=1;break}X=L.gzindex<L.gzhead.name.length?255&L.gzhead.name.charCodeAt(L.gzindex++):0,W(L,X)}while(X!==0);L.gzhead.hcrc&&L.pending>F&&(x.adler=c(x.adler,L.pending_buf,L.pending-F,F)),X===0&&(L.gzindex=0,L.status=91)}else L.status=91;if(L.status===91)if(L.gzhead.comment){F=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>F&&(x.adler=c(x.adler,L.pending_buf,L.pending-F,F)),M(x),F=L.pending,L.pending===L.pending_buf_size)){X=1;break}X=L.gzindex<L.gzhead.comment.length?255&L.gzhead.comment.charCodeAt(L.gzindex++):0,W(L,X)}while(X!==0);L.gzhead.hcrc&&L.pending>F&&(x.adler=c(x.adler,L.pending_buf,L.pending-F,F)),X===0&&(L.status=103)}else L.status=103;if(L.status===103&&(L.gzhead.hcrc?(L.pending+2>L.pending_buf_size&&M(x),L.pending+2<=L.pending_buf_size&&(W(L,255&x.adler),W(L,x.adler>>8&255),x.adler=0,L.status=$)):L.status=$),L.pending!==0){if(M(x),x.avail_out===0)return L.last_flush=-1,s}else if(x.avail_in===0&&E(U)<=E(K)&&U!==f)return J(x,-5);if(L.status===666&&x.avail_in!==0)return J(x,-5);if(x.avail_in!==0||L.lookahead!==0||U!==u&&L.status!==666){var le=L.strategy===2?function(G,pe){for(var re;;){if(G.lookahead===0&&(Z(G),G.lookahead===0)){if(pe===u)return O;break}if(G.match_length=0,re=o._tr_tally(G,0,G.window[G.strstart]),G.lookahead--,G.strstart++,re&&(R(G,!1),G.strm.avail_out===0))return O}return G.insert=0,pe===f?(R(G,!0),G.strm.avail_out===0?ae:q):G.last_lit&&(R(G,!1),G.strm.avail_out===0)?O:Y}(L,U):L.strategy===3?function(G,pe){for(var re,he,Se,xe,Oe=G.window;;){if(G.lookahead<=P){if(Z(G),G.lookahead<=P&&pe===u)return O;if(G.lookahead===0)break}if(G.match_length=0,G.lookahead>=A&&0<G.strstart&&(he=Oe[Se=G.strstart-1])===Oe[++Se]&&he===Oe[++Se]&&he===Oe[++Se]){xe=G.strstart+P;do;while(he===Oe[++Se]&&he===Oe[++Se]&&he===Oe[++Se]&&he===Oe[++Se]&&he===Oe[++Se]&&he===Oe[++Se]&&he===Oe[++Se]&&he===Oe[++Se]&&Se<xe);G.match_length=P-(xe-Se),G.match_length>G.lookahead&&(G.match_length=G.lookahead)}if(G.match_length>=A?(re=o._tr_tally(G,1,G.match_length-A),G.lookahead-=G.match_length,G.strstart+=G.match_length,G.match_length=0):(re=o._tr_tally(G,0,G.window[G.strstart]),G.lookahead--,G.strstart++),re&&(R(G,!1),G.strm.avail_out===0))return O}return G.insert=0,pe===f?(R(G,!0),G.strm.avail_out===0?ae:q):G.last_lit&&(R(G,!1),G.strm.avail_out===0)?O:Y}(L,U):l[L.level].func(L,U);if(le!==ae&&le!==q||(L.status=666),le===O||le===ae)return x.avail_out===0&&(L.last_flush=-1),s;if(le===Y&&(U===1?o._tr_align(L):U!==5&&(o._tr_stored_block(L,0,0,!1),U===3&&(V(L.head),L.lookahead===0&&(L.strstart=0,L.block_start=0,L.insert=0))),M(x),x.avail_out===0))return L.last_flush=-1,s}return U!==f?s:L.wrap<=0?1:(L.wrap===2?(W(L,255&x.adler),W(L,x.adler>>8&255),W(L,x.adler>>16&255),W(L,x.adler>>24&255),W(L,255&x.total_in),W(L,x.total_in>>8&255),W(L,x.total_in>>16&255),W(L,x.total_in>>24&255)):(D(L,x.adler>>>16),D(L,65535&x.adler)),M(x),0<L.wrap&&(L.wrap=-L.wrap),L.pending!==0?s:1)},i.deflateEnd=function(x){var U;return x&&x.state?(U=x.state.status)!==I&&U!==69&&U!==73&&U!==91&&U!==103&&U!==$&&U!==666?J(x,h):(x.state=null,U===$?J(x,-3):s):h},i.deflateSetDictionary=function(x,U){var K,L,F,X,de,le,G,pe,re=U.length;if(!x||!x.state||(X=(K=x.state).wrap)===2||X===1&&K.status!==I||K.lookahead)return h;for(X===1&&(x.adler=a(x.adler,U,re,0)),K.wrap=0,re>=K.w_size&&(X===0&&(V(K.head),K.strstart=0,K.block_start=0,K.insert=0),pe=new m.Buf8(K.w_size),m.arraySet(pe,U,re-K.w_size,K.w_size,0),U=pe,re=K.w_size),de=x.avail_in,le=x.next_in,G=x.input,x.avail_in=re,x.next_in=0,x.input=U,Z(K);K.lookahead>=A;){for(L=K.strstart,F=K.lookahead-(A-1);K.ins_h=(K.ins_h<<K.hash_shift^K.window[L+A-1])&K.hash_mask,K.prev[L&K.w_mask]=K.head[K.ins_h],K.head[K.ins_h]=L,L++,--F;);K.strstart=L,K.lookahead=A-1,Z(K)}return K.strstart+=K.lookahead,K.block_start=K.strstart,K.insert=K.lookahead,K.lookahead=0,K.match_length=K.prev_length=A-1,K.match_available=0,x.next_in=le,x.input=G,x.avail_in=de,K.wrap=X,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(l,m){var o,a,c,d,u,f,s,h,g,p,v,y,b,w,S,C,T,k,A,P,z,I,$,O,Y;o=l.state,a=l.next_in,O=l.input,c=a+(l.avail_in-5),d=l.next_out,Y=l.output,u=d-(m-l.avail_out),f=d+(l.avail_out-257),s=o.dmax,h=o.wsize,g=o.whave,p=o.wnext,v=o.window,y=o.hold,b=o.bits,w=o.lencode,S=o.distcode,C=(1<<o.lenbits)-1,T=(1<<o.distbits)-1;e:do{b<15&&(y+=O[a++]<<b,b+=8,y+=O[a++]<<b,b+=8),k=w[y&C];t:for(;;){if(y>>>=A=k>>>24,b-=A,(A=k>>>16&255)===0)Y[d++]=65535&k;else{if(!(16&A)){if((64&A)==0){k=w[(65535&k)+(y&(1<<A)-1)];continue t}if(32&A){o.mode=12;break e}l.msg="invalid literal/length code",o.mode=30;break e}P=65535&k,(A&=15)&&(b<A&&(y+=O[a++]<<b,b+=8),P+=y&(1<<A)-1,y>>>=A,b-=A),b<15&&(y+=O[a++]<<b,b+=8,y+=O[a++]<<b,b+=8),k=S[y&T];n:for(;;){if(y>>>=A=k>>>24,b-=A,!(16&(A=k>>>16&255))){if((64&A)==0){k=S[(65535&k)+(y&(1<<A)-1)];continue n}l.msg="invalid distance code",o.mode=30;break e}if(z=65535&k,b<(A&=15)&&(y+=O[a++]<<b,(b+=8)<A&&(y+=O[a++]<<b,b+=8)),s<(z+=y&(1<<A)-1)){l.msg="invalid distance too far back",o.mode=30;break e}if(y>>>=A,b-=A,(A=d-u)<z){if(g<(A=z-A)&&o.sane){l.msg="invalid distance too far back",o.mode=30;break e}if($=v,(I=0)===p){if(I+=h-A,A<P){for(P-=A;Y[d++]=v[I++],--A;);I=d-z,$=Y}}else if(p<A){if(I+=h+p-A,(A-=p)<P){for(P-=A;Y[d++]=v[I++],--A;);if(I=0,p<P){for(P-=A=p;Y[d++]=v[I++],--A;);I=d-z,$=Y}}}else if(I+=p-A,A<P){for(P-=A;Y[d++]=v[I++],--A;);I=d-z,$=Y}for(;2<P;)Y[d++]=$[I++],Y[d++]=$[I++],Y[d++]=$[I++],P-=3;P&&(Y[d++]=$[I++],1<P&&(Y[d++]=$[I++]))}else{for(I=d-z;Y[d++]=Y[I++],Y[d++]=Y[I++],Y[d++]=Y[I++],2<(P-=3););P&&(Y[d++]=Y[I++],1<P&&(Y[d++]=Y[I++]))}break}}break}}while(a<c&&d<f);a-=P=b>>3,y&=(1<<(b-=P<<3))-1,l.next_in=a,l.next_out=d,l.avail_in=a<c?c-a+5:5-(a-c),l.avail_out=d<f?f-d+257:257-(d-f),o.hold=y,o.bits=b}},{}],49:[function(n,r,i){var l=n("../utils/common"),m=n("./adler32"),o=n("./crc32"),a=n("./inffast"),c=n("./inftrees"),d=1,u=2,f=0,s=-2,h=1,g=852,p=592;function v(I){return(I>>>24&255)+(I>>>8&65280)+((65280&I)<<8)+((255&I)<<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 l.Buf16(320),this.work=new l.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(I){var $;return I&&I.state?($=I.state,I.total_in=I.total_out=$.total=0,I.msg="",$.wrap&&(I.adler=1&$.wrap),$.mode=h,$.last=0,$.havedict=0,$.dmax=32768,$.head=null,$.hold=0,$.bits=0,$.lencode=$.lendyn=new l.Buf32(g),$.distcode=$.distdyn=new l.Buf32(p),$.sane=1,$.back=-1,f):s}function w(I){var $;return I&&I.state?(($=I.state).wsize=0,$.whave=0,$.wnext=0,b(I)):s}function S(I,$){var O,Y;return I&&I.state?(Y=I.state,$<0?(O=0,$=-$):(O=1+($>>4),$<48&&($&=15)),$&&($<8||15<$)?s:(Y.window!==null&&Y.wbits!==$&&(Y.window=null),Y.wrap=O,Y.wbits=$,w(I))):s}function C(I,$){var O,Y;return I?(Y=new y,(I.state=Y).window=null,(O=S(I,$))!==f&&(I.state=null),O):s}var T,k,A=!0;function P(I){if(A){var $;for(T=new l.Buf32(512),k=new l.Buf32(32),$=0;$<144;)I.lens[$++]=8;for(;$<256;)I.lens[$++]=9;for(;$<280;)I.lens[$++]=7;for(;$<288;)I.lens[$++]=8;for(c(d,I.lens,0,288,T,0,I.work,{bits:9}),$=0;$<32;)I.lens[$++]=5;c(u,I.lens,0,32,k,0,I.work,{bits:5}),A=!1}I.lencode=T,I.lenbits=9,I.distcode=k,I.distbits=5}function z(I,$,O,Y){var ae,q=I.state;return q.window===null&&(q.wsize=1<<q.wbits,q.wnext=0,q.whave=0,q.window=new l.Buf8(q.wsize)),Y>=q.wsize?(l.arraySet(q.window,$,O-q.wsize,q.wsize,0),q.wnext=0,q.whave=q.wsize):(Y<(ae=q.wsize-q.wnext)&&(ae=Y),l.arraySet(q.window,$,O-Y,ae,q.wnext),(Y-=ae)?(l.arraySet(q.window,$,O-Y,Y,0),q.wnext=Y,q.whave=q.wsize):(q.wnext+=ae,q.wnext===q.wsize&&(q.wnext=0),q.whave<q.wsize&&(q.whave+=ae))),0}i.inflateReset=w,i.inflateReset2=S,i.inflateResetKeep=b,i.inflateInit=function(I){return C(I,15)},i.inflateInit2=C,i.inflate=function(I,$){var O,Y,ae,q,J,E,V,M,R,W,D,B,Z,H,Q,te,fe,me,_e,j,x,U,K,L,F=0,X=new l.Buf8(4),de=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!I||!I.state||!I.output||!I.input&&I.avail_in!==0)return s;(O=I.state).mode===12&&(O.mode=13),J=I.next_out,ae=I.output,V=I.avail_out,q=I.next_in,Y=I.input,E=I.avail_in,M=O.hold,R=O.bits,W=E,D=V,U=f;e:for(;;)switch(O.mode){case h:if(O.wrap===0){O.mode=13;break}for(;R<16;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}if(2&O.wrap&&M===35615){X[O.check=0]=255&M,X[1]=M>>>8&255,O.check=o(O.check,X,2,0),R=M=0,O.mode=2;break}if(O.flags=0,O.head&&(O.head.done=!1),!(1&O.wrap)||(((255&M)<<8)+(M>>8))%31){I.msg="incorrect header check",O.mode=30;break}if((15&M)!=8){I.msg="unknown compression method",O.mode=30;break}if(R-=4,x=8+(15&(M>>>=4)),O.wbits===0)O.wbits=x;else if(x>O.wbits){I.msg="invalid window size",O.mode=30;break}O.dmax=1<<x,I.adler=O.check=1,O.mode=512&M?10:12,R=M=0;break;case 2:for(;R<16;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}if(O.flags=M,(255&O.flags)!=8){I.msg="unknown compression method",O.mode=30;break}if(57344&O.flags){I.msg="unknown header flags set",O.mode=30;break}O.head&&(O.head.text=M>>8&1),512&O.flags&&(X[0]=255&M,X[1]=M>>>8&255,O.check=o(O.check,X,2,0)),R=M=0,O.mode=3;case 3:for(;R<32;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}O.head&&(O.head.time=M),512&O.flags&&(X[0]=255&M,X[1]=M>>>8&255,X[2]=M>>>16&255,X[3]=M>>>24&255,O.check=o(O.check,X,4,0)),R=M=0,O.mode=4;case 4:for(;R<16;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}O.head&&(O.head.xflags=255&M,O.head.os=M>>8),512&O.flags&&(X[0]=255&M,X[1]=M>>>8&255,O.check=o(O.check,X,2,0)),R=M=0,O.mode=5;case 5:if(1024&O.flags){for(;R<16;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}O.length=M,O.head&&(O.head.extra_len=M),512&O.flags&&(X[0]=255&M,X[1]=M>>>8&255,O.check=o(O.check,X,2,0)),R=M=0}else O.head&&(O.head.extra=null);O.mode=6;case 6:if(1024&O.flags&&(E<(B=O.length)&&(B=E),B&&(O.head&&(x=O.head.extra_len-O.length,O.head.extra||(O.head.extra=new Array(O.head.extra_len)),l.arraySet(O.head.extra,Y,q,B,x)),512&O.flags&&(O.check=o(O.check,Y,B,q)),E-=B,q+=B,O.length-=B),O.length))break e;O.length=0,O.mode=7;case 7:if(2048&O.flags){if(E===0)break e;for(B=0;x=Y[q+B++],O.head&&x&&O.length<65536&&(O.head.name+=String.fromCharCode(x)),x&&B<E;);if(512&O.flags&&(O.check=o(O.check,Y,B,q)),E-=B,q+=B,x)break e}else O.head&&(O.head.name=null);O.length=0,O.mode=8;case 8:if(4096&O.flags){if(E===0)break e;for(B=0;x=Y[q+B++],O.head&&x&&O.length<65536&&(O.head.comment+=String.fromCharCode(x)),x&&B<E;);if(512&O.flags&&(O.check=o(O.check,Y,B,q)),E-=B,q+=B,x)break e}else O.head&&(O.head.comment=null);O.mode=9;case 9:if(512&O.flags){for(;R<16;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}if(M!==(65535&O.check)){I.msg="header crc mismatch",O.mode=30;break}R=M=0}O.head&&(O.head.hcrc=O.flags>>9&1,O.head.done=!0),I.adler=O.check=0,O.mode=12;break;case 10:for(;R<32;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}I.adler=O.check=v(M),R=M=0,O.mode=11;case 11:if(O.havedict===0)return I.next_out=J,I.avail_out=V,I.next_in=q,I.avail_in=E,O.hold=M,O.bits=R,2;I.adler=O.check=1,O.mode=12;case 12:if($===5||$===6)break e;case 13:if(O.last){M>>>=7&R,R-=7&R,O.mode=27;break}for(;R<3;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}switch(O.last=1&M,R-=1,3&(M>>>=1)){case 0:O.mode=14;break;case 1:if(P(O),O.mode=20,$!==6)break;M>>>=2,R-=2;break e;case 2:O.mode=17;break;case 3:I.msg="invalid block type",O.mode=30}M>>>=2,R-=2;break;case 14:for(M>>>=7&R,R-=7&R;R<32;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}if((65535&M)!=(M>>>16^65535)){I.msg="invalid stored block lengths",O.mode=30;break}if(O.length=65535&M,R=M=0,O.mode=15,$===6)break e;case 15:O.mode=16;case 16:if(B=O.length){if(E<B&&(B=E),V<B&&(B=V),B===0)break e;l.arraySet(ae,Y,q,B,J),E-=B,q+=B,V-=B,J+=B,O.length-=B;break}O.mode=12;break;case 17:for(;R<14;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}if(O.nlen=257+(31&M),M>>>=5,R-=5,O.ndist=1+(31&M),M>>>=5,R-=5,O.ncode=4+(15&M),M>>>=4,R-=4,286<O.nlen||30<O.ndist){I.msg="too many length or distance symbols",O.mode=30;break}O.have=0,O.mode=18;case 18:for(;O.have<O.ncode;){for(;R<3;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}O.lens[de[O.have++]]=7&M,M>>>=3,R-=3}for(;O.have<19;)O.lens[de[O.have++]]=0;if(O.lencode=O.lendyn,O.lenbits=7,K={bits:O.lenbits},U=c(0,O.lens,0,19,O.lencode,0,O.work,K),O.lenbits=K.bits,U){I.msg="invalid code lengths set",O.mode=30;break}O.have=0,O.mode=19;case 19:for(;O.have<O.nlen+O.ndist;){for(;te=(F=O.lencode[M&(1<<O.lenbits)-1])>>>16&255,fe=65535&F,!((Q=F>>>24)<=R);){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}if(fe<16)M>>>=Q,R-=Q,O.lens[O.have++]=fe;else{if(fe===16){for(L=Q+2;R<L;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}if(M>>>=Q,R-=Q,O.have===0){I.msg="invalid bit length repeat",O.mode=30;break}x=O.lens[O.have-1],B=3+(3&M),M>>>=2,R-=2}else if(fe===17){for(L=Q+3;R<L;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}R-=Q,x=0,B=3+(7&(M>>>=Q)),M>>>=3,R-=3}else{for(L=Q+7;R<L;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}R-=Q,x=0,B=11+(127&(M>>>=Q)),M>>>=7,R-=7}if(O.have+B>O.nlen+O.ndist){I.msg="invalid bit length repeat",O.mode=30;break}for(;B--;)O.lens[O.have++]=x}}if(O.mode===30)break;if(O.lens[256]===0){I.msg="invalid code -- missing end-of-block",O.mode=30;break}if(O.lenbits=9,K={bits:O.lenbits},U=c(d,O.lens,0,O.nlen,O.lencode,0,O.work,K),O.lenbits=K.bits,U){I.msg="invalid literal/lengths set",O.mode=30;break}if(O.distbits=6,O.distcode=O.distdyn,K={bits:O.distbits},U=c(u,O.lens,O.nlen,O.ndist,O.distcode,0,O.work,K),O.distbits=K.bits,U){I.msg="invalid distances set",O.mode=30;break}if(O.mode=20,$===6)break e;case 20:O.mode=21;case 21:if(6<=E&&258<=V){I.next_out=J,I.avail_out=V,I.next_in=q,I.avail_in=E,O.hold=M,O.bits=R,a(I,D),J=I.next_out,ae=I.output,V=I.avail_out,q=I.next_in,Y=I.input,E=I.avail_in,M=O.hold,R=O.bits,O.mode===12&&(O.back=-1);break}for(O.back=0;te=(F=O.lencode[M&(1<<O.lenbits)-1])>>>16&255,fe=65535&F,!((Q=F>>>24)<=R);){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}if(te&&(240&te)==0){for(me=Q,_e=te,j=fe;te=(F=O.lencode[j+((M&(1<<me+_e)-1)>>me)])>>>16&255,fe=65535&F,!(me+(Q=F>>>24)<=R);){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}M>>>=me,R-=me,O.back+=me}if(M>>>=Q,R-=Q,O.back+=Q,O.length=fe,te===0){O.mode=26;break}if(32&te){O.back=-1,O.mode=12;break}if(64&te){I.msg="invalid literal/length code",O.mode=30;break}O.extra=15&te,O.mode=22;case 22:if(O.extra){for(L=O.extra;R<L;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}O.length+=M&(1<<O.extra)-1,M>>>=O.extra,R-=O.extra,O.back+=O.extra}O.was=O.length,O.mode=23;case 23:for(;te=(F=O.distcode[M&(1<<O.distbits)-1])>>>16&255,fe=65535&F,!((Q=F>>>24)<=R);){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}if((240&te)==0){for(me=Q,_e=te,j=fe;te=(F=O.distcode[j+((M&(1<<me+_e)-1)>>me)])>>>16&255,fe=65535&F,!(me+(Q=F>>>24)<=R);){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}M>>>=me,R-=me,O.back+=me}if(M>>>=Q,R-=Q,O.back+=Q,64&te){I.msg="invalid distance code",O.mode=30;break}O.offset=fe,O.extra=15&te,O.mode=24;case 24:if(O.extra){for(L=O.extra;R<L;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}O.offset+=M&(1<<O.extra)-1,M>>>=O.extra,R-=O.extra,O.back+=O.extra}if(O.offset>O.dmax){I.msg="invalid distance too far back",O.mode=30;break}O.mode=25;case 25:if(V===0)break e;if(B=D-V,O.offset>B){if((B=O.offset-B)>O.whave&&O.sane){I.msg="invalid distance too far back",O.mode=30;break}Z=B>O.wnext?(B-=O.wnext,O.wsize-B):O.wnext-B,B>O.length&&(B=O.length),H=O.window}else H=ae,Z=J-O.offset,B=O.length;for(V<B&&(B=V),V-=B,O.length-=B;ae[J++]=H[Z++],--B;);O.length===0&&(O.mode=21);break;case 26:if(V===0)break e;ae[J++]=O.length,V--,O.mode=21;break;case 27:if(O.wrap){for(;R<32;){if(E===0)break e;E--,M|=Y[q++]<<R,R+=8}if(D-=V,I.total_out+=D,O.total+=D,D&&(I.adler=O.check=O.flags?o(O.check,ae,D,J-D):m(O.check,ae,D,J-D)),D=V,(O.flags?M:v(M))!==O.check){I.msg="incorrect data check",O.mode=30;break}R=M=0}O.mode=28;case 28:if(O.wrap&&O.flags){for(;R<32;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}if(M!==(4294967295&O.total)){I.msg="incorrect length check",O.mode=30;break}R=M=0}O.mode=29;case 29:U=1;break e;case 30:U=-3;break e;case 31:return-4;case 32:default:return s}return I.next_out=J,I.avail_out=V,I.next_in=q,I.avail_in=E,O.hold=M,O.bits=R,(O.wsize||D!==I.avail_out&&O.mode<30&&(O.mode<27||$!==4))&&z(I,I.output,I.next_out,D-I.avail_out)?(O.mode=31,-4):(W-=I.avail_in,D-=I.avail_out,I.total_in+=W,I.total_out+=D,O.total+=D,O.wrap&&D&&(I.adler=O.check=O.flags?o(O.check,ae,D,I.next_out-D):m(O.check,ae,D,I.next_out-D)),I.data_type=O.bits+(O.last?64:0)+(O.mode===12?128:0)+(O.mode===20||O.mode===15?256:0),(W==0&&D===0||$===4)&&U===f&&(U=-5),U)},i.inflateEnd=function(I){if(!I||!I.state)return s;var $=I.state;return $.window&&($.window=null),I.state=null,f},i.inflateGetHeader=function(I,$){var O;return I&&I.state?(2&(O=I.state).wrap)==0?s:((O.head=$).done=!1,f):s},i.inflateSetDictionary=function(I,$){var O,Y=$.length;return I&&I.state?(O=I.state).wrap!==0&&O.mode!==11?s:O.mode===11&&m(1,$,Y,0)!==O.check?-3:z(I,$,Y,Y)?(O.mode=31,-4):(O.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 l=n("../utils/common"),m=[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(d,u,f,s,h,g,p,v){var y,b,w,S,C,T,k,A,P,z=v.bits,I=0,$=0,O=0,Y=0,ae=0,q=0,J=0,E=0,V=0,M=0,R=null,W=0,D=new l.Buf16(16),B=new l.Buf16(16),Z=null,H=0;for(I=0;I<=15;I++)D[I]=0;for($=0;$<s;$++)D[u[f+$]]++;for(ae=z,Y=15;1<=Y&&D[Y]===0;Y--);if(Y<ae&&(ae=Y),Y===0)return h[g++]=20971520,h[g++]=20971520,v.bits=1,0;for(O=1;O<Y&&D[O]===0;O++);for(ae<O&&(ae=O),I=E=1;I<=15;I++)if(E<<=1,(E-=D[I])<0)return-1;if(0<E&&(d===0||Y!==1))return-1;for(B[1]=0,I=1;I<15;I++)B[I+1]=B[I]+D[I];for($=0;$<s;$++)u[f+$]!==0&&(p[B[u[f+$]]++]=$);if(T=d===0?(R=Z=p,19):d===1?(R=m,W-=257,Z=o,H-=257,256):(R=a,Z=c,-1),I=O,C=g,J=$=M=0,w=-1,S=(V=1<<(q=ae))-1,d===1&&852<V||d===2&&592<V)return 1;for(;;){for(k=I-J,P=p[$]<T?(A=0,p[$]):p[$]>T?(A=Z[H+p[$]],R[W+p[$]]):(A=96,0),y=1<<I-J,O=b=1<<q;h[C+(M>>J)+(b-=y)]=k<<24|A<<16|P|0,b!==0;);for(y=1<<I-1;M&y;)y>>=1;if(y!==0?(M&=y-1,M+=y):M=0,$++,--D[I]==0){if(I===Y)break;I=u[f+p[$]]}if(ae<I&&(M&S)!==w){for(J===0&&(J=ae),C+=O,E=1<<(q=I-J);q+J<Y&&!((E-=D[q+J])<=0);)q++,E<<=1;if(V+=1<<q,d===1&&852<V||d===2&&592<V)return 1;h[w=M&S]=ae<<24|q<<16|C-g|0}}return M!==0&&(h[C+M]=I-J<<24|64<<16|0),v.bits=ae,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 l=n("../utils/common"),m=0,o=1;function a(F){for(var X=F.length;0<=--X;)F[X]=0}var c=0,d=29,u=256,f=u+1+d,s=30,h=19,g=2*f+1,p=15,v=16,y=7,b=256,w=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],k=[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],A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],z=new Array(2*(f+2));a(z);var I=new Array(2*s);a(I);var $=new Array(512);a($);var O=new Array(256);a(O);var Y=new Array(d);a(Y);var ae,q,J,E=new Array(s);function V(F,X,de,le,G){this.static_tree=F,this.extra_bits=X,this.extra_base=de,this.elems=le,this.max_length=G,this.has_stree=F&&F.length}function M(F,X){this.dyn_tree=F,this.max_code=0,this.stat_desc=X}function R(F){return F<256?$[F]:$[256+(F>>>7)]}function W(F,X){F.pending_buf[F.pending++]=255&X,F.pending_buf[F.pending++]=X>>>8&255}function D(F,X,de){F.bi_valid>v-de?(F.bi_buf|=X<<F.bi_valid&65535,W(F,F.bi_buf),F.bi_buf=X>>v-F.bi_valid,F.bi_valid+=de-v):(F.bi_buf|=X<<F.bi_valid&65535,F.bi_valid+=de)}function B(F,X,de){D(F,de[2*X],de[2*X+1])}function Z(F,X){for(var de=0;de|=1&F,F>>>=1,de<<=1,0<--X;);return de>>>1}function H(F,X,de){var le,G,pe=new Array(p+1),re=0;for(le=1;le<=p;le++)pe[le]=re=re+de[le-1]<<1;for(G=0;G<=X;G++){var he=F[2*G+1];he!==0&&(F[2*G]=Z(pe[he]++,he))}}function Q(F){var X;for(X=0;X<f;X++)F.dyn_ltree[2*X]=0;for(X=0;X<s;X++)F.dyn_dtree[2*X]=0;for(X=0;X<h;X++)F.bl_tree[2*X]=0;F.dyn_ltree[2*b]=1,F.opt_len=F.static_len=0,F.last_lit=F.matches=0}function te(F){8<F.bi_valid?W(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 fe(F,X,de,le){var G=2*X,pe=2*de;return F[G]<F[pe]||F[G]===F[pe]&&le[X]<=le[de]}function me(F,X,de){for(var le=F.heap[de],G=de<<1;G<=F.heap_len&&(G<F.heap_len&&fe(X,F.heap[G+1],F.heap[G],F.depth)&&G++,!fe(X,le,F.heap[G],F.depth));)F.heap[de]=F.heap[G],de=G,G<<=1;F.heap[de]=le}function _e(F,X,de){var le,G,pe,re,he=0;if(F.last_lit!==0)for(;le=F.pending_buf[F.d_buf+2*he]<<8|F.pending_buf[F.d_buf+2*he+1],G=F.pending_buf[F.l_buf+he],he++,le===0?B(F,G,X):(B(F,(pe=O[G])+u+1,X),(re=T[pe])!==0&&D(F,G-=Y[pe],re),B(F,pe=R(--le),de),(re=k[pe])!==0&&D(F,le-=E[pe],re)),he<F.last_lit;);B(F,b,X)}function j(F,X){var de,le,G,pe=X.dyn_tree,re=X.stat_desc.static_tree,he=X.stat_desc.has_stree,Se=X.stat_desc.elems,xe=-1;for(F.heap_len=0,F.heap_max=g,de=0;de<Se;de++)pe[2*de]!==0?(F.heap[++F.heap_len]=xe=de,F.depth[de]=0):pe[2*de+1]=0;for(;F.heap_len<2;)pe[2*(G=F.heap[++F.heap_len]=xe<2?++xe:0)]=1,F.depth[G]=0,F.opt_len--,he&&(F.static_len-=re[2*G+1]);for(X.max_code=xe,de=F.heap_len>>1;1<=de;de--)me(F,pe,de);for(G=Se;de=F.heap[1],F.heap[1]=F.heap[F.heap_len--],me(F,pe,1),le=F.heap[1],F.heap[--F.heap_max]=de,F.heap[--F.heap_max]=le,pe[2*G]=pe[2*de]+pe[2*le],F.depth[G]=(F.depth[de]>=F.depth[le]?F.depth[de]:F.depth[le])+1,pe[2*de+1]=pe[2*le+1]=G,F.heap[1]=G++,me(F,pe,1),2<=F.heap_len;);F.heap[--F.heap_max]=F.heap[1],function(Oe,Le){var ye,Ce,Me,Ie,ht,Ut,it=Le.dyn_tree,Ft=Le.max_code,Qt=Le.stat_desc.static_tree,_r=Le.stat_desc.has_stree,yn=Le.stat_desc.extra_bits,ar=Le.stat_desc.extra_base,ma=Le.stat_desc.max_length,kn=0;for(Ie=0;Ie<=p;Ie++)Oe.bl_count[Ie]=0;for(it[2*Oe.heap[Oe.heap_max]+1]=0,ye=Oe.heap_max+1;ye<g;ye++)ma<(Ie=it[2*it[2*(Ce=Oe.heap[ye])+1]+1]+1)&&(Ie=ma,kn++),it[2*Ce+1]=Ie,Ft<Ce||(Oe.bl_count[Ie]++,ht=0,ar<=Ce&&(ht=yn[Ce-ar]),Ut=it[2*Ce],Oe.opt_len+=Ut*(Ie+ht),_r&&(Oe.static_len+=Ut*(Qt[2*Ce+1]+ht)));if(kn!==0){do{for(Ie=ma-1;Oe.bl_count[Ie]===0;)Ie--;Oe.bl_count[Ie]--,Oe.bl_count[Ie+1]+=2,Oe.bl_count[ma]--,kn-=2}while(0<kn);for(Ie=ma;Ie!==0;Ie--)for(Ce=Oe.bl_count[Ie];Ce!==0;)Ft<(Me=Oe.heap[--ye])||(it[2*Me+1]!==Ie&&(Oe.opt_len+=(Ie-it[2*Me+1])*it[2*Me],it[2*Me+1]=Ie),Ce--)}}(F,X),H(pe,xe,F.bl_count)}function x(F,X,de){var le,G,pe=-1,re=X[1],he=0,Se=7,xe=4;for(re===0&&(Se=138,xe=3),X[2*(de+1)+1]=65535,le=0;le<=de;le++)G=re,re=X[2*(le+1)+1],++he<Se&&G===re||(he<xe?F.bl_tree[2*G]+=he:G!==0?(G!==pe&&F.bl_tree[2*G]++,F.bl_tree[2*w]++):he<=10?F.bl_tree[2*S]++:F.bl_tree[2*C]++,pe=G,xe=(he=0)===re?(Se=138,3):G===re?(Se=6,3):(Se=7,4))}function U(F,X,de){var le,G,pe=-1,re=X[1],he=0,Se=7,xe=4;for(re===0&&(Se=138,xe=3),le=0;le<=de;le++)if(G=re,re=X[2*(le+1)+1],!(++he<Se&&G===re)){if(he<xe)for(;B(F,G,F.bl_tree),--he!=0;);else G!==0?(G!==pe&&(B(F,G,F.bl_tree),he--),B(F,w,F.bl_tree),D(F,he-3,2)):he<=10?(B(F,S,F.bl_tree),D(F,he-3,3)):(B(F,C,F.bl_tree),D(F,he-11,7));pe=G,xe=(he=0)===re?(Se=138,3):G===re?(Se=6,3):(Se=7,4)}}a(E);var K=!1;function L(F,X,de,le){D(F,(c<<1)+(le?1:0),3),function(G,pe,re,he){te(G),he&&(W(G,re),W(G,~re)),l.arraySet(G.pending_buf,G.window,pe,re,G.pending),G.pending+=re}(F,X,de,!0)}i._tr_init=function(F){K||(function(){var X,de,le,G,pe,re=new Array(p+1);for(G=le=0;G<d-1;G++)for(Y[G]=le,X=0;X<1<<T[G];X++)O[le++]=G;for(O[le-1]=G,G=pe=0;G<16;G++)for(E[G]=pe,X=0;X<1<<k[G];X++)$[pe++]=G;for(pe>>=7;G<s;G++)for(E[G]=pe<<7,X=0;X<1<<k[G]-7;X++)$[256+pe++]=G;for(de=0;de<=p;de++)re[de]=0;for(X=0;X<=143;)z[2*X+1]=8,X++,re[8]++;for(;X<=255;)z[2*X+1]=9,X++,re[9]++;for(;X<=279;)z[2*X+1]=7,X++,re[7]++;for(;X<=287;)z[2*X+1]=8,X++,re[8]++;for(H(z,f+1,re),X=0;X<s;X++)I[2*X+1]=5,I[2*X]=Z(X,5);ae=new V(z,T,u+1,f,p),q=new V(I,k,0,s,p),J=new V(new Array(0),A,0,h,y)}(),K=!0),F.l_desc=new M(F.dyn_ltree,ae),F.d_desc=new M(F.dyn_dtree,q),F.bl_desc=new M(F.bl_tree,J),F.bi_buf=0,F.bi_valid=0,Q(F)},i._tr_stored_block=L,i._tr_flush_block=function(F,X,de,le){var G,pe,re=0;0<F.level?(F.strm.data_type===2&&(F.strm.data_type=function(he){var Se,xe=4093624447;for(Se=0;Se<=31;Se++,xe>>>=1)if(1&xe&&he.dyn_ltree[2*Se]!==0)return m;if(he.dyn_ltree[18]!==0||he.dyn_ltree[20]!==0||he.dyn_ltree[26]!==0)return o;for(Se=32;Se<u;Se++)if(he.dyn_ltree[2*Se]!==0)return o;return m}(F)),j(F,F.l_desc),j(F,F.d_desc),re=function(he){var Se;for(x(he,he.dyn_ltree,he.l_desc.max_code),x(he,he.dyn_dtree,he.d_desc.max_code),j(he,he.bl_desc),Se=h-1;3<=Se&&he.bl_tree[2*P[Se]+1]===0;Se--);return he.opt_len+=3*(Se+1)+5+5+4,Se}(F),G=F.opt_len+3+7>>>3,(pe=F.static_len+3+7>>>3)<=G&&(G=pe)):G=pe=de+5,de+4<=G&&X!==-1?L(F,X,de,le):F.strategy===4||pe===G?(D(F,2+(le?1:0),3),_e(F,z,I)):(D(F,4+(le?1:0),3),function(he,Se,xe,Oe){var Le;for(D(he,Se-257,5),D(he,xe-1,5),D(he,Oe-4,4),Le=0;Le<Oe;Le++)D(he,he.bl_tree[2*P[Le]+1],3);U(he,he.dyn_ltree,Se-1),U(he,he.dyn_dtree,xe-1)}(F,F.l_desc.max_code+1,F.d_desc.max_code+1,re+1),_e(F,F.dyn_ltree,F.dyn_dtree)),Q(F),le&&te(F)},i._tr_tally=function(F,X,de){return F.pending_buf[F.d_buf+2*F.last_lit]=X>>>8&255,F.pending_buf[F.d_buf+2*F.last_lit+1]=255&X,F.pending_buf[F.l_buf+F.last_lit]=255&de,F.last_lit++,X===0?F.dyn_ltree[2*de]++:(F.matches++,X--,F.dyn_ltree[2*(O[de]+u+1)]++,F.dyn_dtree[2*R(X)]++),F.last_lit===F.lit_bufsize-1},i._tr_align=function(F){D(F,2,3),B(F,b,z),function(X){X.bi_valid===16?(W(X,X.bi_buf),X.bi_buf=0,X.bi_valid=0):8<=X.bi_valid&&(X.pending_buf[X.pending++]=255&X.bi_buf,X.bi_buf>>=8,X.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(l){(function(m,o){if(!m.setImmediate){var a,c,d,u,f=1,s={},h=!1,g=m.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(m);p=p&&p.setTimeout?p:m,a={}.toString.call(m.process)==="[object process]"?function(w){process.nextTick(function(){y(w)})}:function(){if(m.postMessage&&!m.importScripts){var w=!0,S=m.onmessage;return m.onmessage=function(){w=!1},m.postMessage("","*"),m.onmessage=S,w}}()?(u="setImmediate$"+Math.random()+"$",m.addEventListener?m.addEventListener("message",b,!1):m.attachEvent("onmessage",b),function(w){m.postMessage(u+w,"*")}):m.MessageChannel?((d=new MessageChannel).port1.onmessage=function(w){y(w.data)},function(w){d.port2.postMessage(w)}):g&&"onreadystatechange"in g.createElement("script")?(c=g.documentElement,function(w){var S=g.createElement("script");S.onreadystatechange=function(){y(w),S.onreadystatechange=null,c.removeChild(S),S=null},c.appendChild(S)}):function(w){setTimeout(y,0,w)},p.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var S=new Array(arguments.length-1),C=0;C<S.length;C++)S[C]=arguments[C+1];var T={callback:w,args:S};return s[f]=T,a(f),f++},p.clearImmediate=v}function v(w){delete s[w]}function y(w){if(h)setTimeout(y,0,w);else{var S=s[w];if(S){h=!0;try{(function(C){var T=C.callback,k=C.args;switch(k.length){case 0:T();break;case 1:T(k[0]);break;case 2:T(k[0],k[1]);break;case 3:T(k[0],k[1],k[2]);break;default:T.apply(o,k)}})(S)}finally{v(w),h=!1}}}}function b(w){w.source===m&&typeof w.data=="string"&&w.data.indexOf(u)===0&&y(+w.data.slice(u.length))}})(typeof self>"u"?l===void 0?this:l:self)}).call(this,typeof Pu<"u"?Pu:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(SS);var op=function(e,t){return op=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])},op(e,t)};function Jm(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");op(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function EV(e,t,n,r){function i(l){return l instanceof n?l:new n(function(m){m(l)})}return new(n||(n=Promise))(function(l,m){function o(d){try{c(r.next(d))}catch(u){m(u)}}function a(d){try{c(r.throw(d))}catch(u){m(u)}}function c(d){d.done?l(d.value):i(d.value).then(o,a)}c((r=r.apply(e,t||[])).next())})}function CS(e,t){var n={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},r,i,l,m=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return m.next=o(0),m.throw=o(1),m.return=o(2),typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function o(c){return function(d){return a([c,d])}}function a(c){if(r)throw new TypeError("Generator is already executing.");for(;m&&(m=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(l=c[0]&2?i.return:c[0]?i.throw||((l=i.return)&&l.call(i),0):i.next)&&!(l=l.call(i,c[1])).done)return l;switch(i=0,l&&(c=[c[0]&2,l.value]),c[0]){case 0:case 1:l=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(l=n.trys,!(l=l.length>0&&l[l.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!l||c[1]>l[0]&&c[1]<l[3])){n.label=c[1];break}if(c[0]===6&&n.label<l[1]){n.label=l[1],l=c;break}if(l&&n.label<l[2]){n.label=l[2],n.ops.push(c);break}l[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(d){c=[6,d],i=0}finally{r=l=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function $l(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 ef(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,l=[],m;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)l.push(i.value)}catch(o){m={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(m)throw m.error}}return l}function tf(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,l;r<i;r++)(l||!(r in t))&&(l||(l=Array.prototype.slice.call(t,0,r)),l[r]=t[r]);return e.concat(l||Array.prototype.slice.call(t))}function Vo(e){return this instanceof Vo?(this.v=e,this):new Vo(e)}function OV(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,l=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",m),i[Symbol.asyncIterator]=function(){return this},i;function m(s){return function(h){return Promise.resolve(h).then(s,u)}}function o(s,h){r[s]&&(i[s]=function(g){return new Promise(function(p,v){l.push([s,g,p,v])>1||a(s,g)})},h&&(i[s]=h(i[s])))}function a(s,h){try{c(r[s](h))}catch(g){f(l[0][3],g)}}function c(s){s.value instanceof Vo?Promise.resolve(s.value.v).then(d,u):f(l[0][2],s)}function d(s){a("next",s)}function u(s){a("throw",s)}function f(s,h){s(h),l.shift(),l.length&&a(l[0][0],l[0][1])}}function AV(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 $l=="function"?$l(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(l){n[l]=e[l]&&function(m){return new Promise(function(o,a){m=e[l](m),i(o,a,m.done,m.value)})}}function i(l,m,o,a){Promise.resolve(a).then(function(c){l({value:c,done:o})},m)}}function vn(e){return typeof e=="function"}function PV(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 Id=PV(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 Qm=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,l;if(!this.closed){this.closed=!0;var m=this._parentage;if(m)if(this._parentage=null,Array.isArray(m))try{for(var o=$l(m),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 m.remove(this);var d=this.initialTeardown;if(vn(d))try{d()}catch(g){l=g instanceof Id?g.errors:[g]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var f=$l(u),s=f.next();!s.done;s=f.next()){var h=s.value;try{zy(h)}catch(g){l=l!=null?l:[],g instanceof Id?l=tf(tf([],ef(l)),ef(g.errors)):l.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(l)throw new Id(l)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)zy(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}();Qm.EMPTY;function xS(e){return e instanceof Qm||e&&"closed"in e&&vn(e.remove)&&vn(e.add)&&vn(e.unsubscribe)}function zy(e){vn(e)?e():e.unsubscribe()}var Rf={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},sp={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=sp.delegate;return i!=null&&i.setTimeout?i.setTimeout.apply(i,tf([e,t],ef(n))):setTimeout.apply(void 0,tf([e,t],ef(n)))},clearTimeout:function(e){var t=sp.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function TS(e){sp.setTimeout(function(){var t=Rf.onUnhandledError;if(t)t(e);else throw e})}function jy(){}var ju=null;function IV(e){if(Rf.useDeprecatedSynchronousErrorHandling){var t=!ju;if(t&&(ju={errorThrown:!1,error:null}),e(),t){var n=ju,r=n.errorThrown,i=n.error;if(ju=null,r)throw i}}else e()}var eg=function(e){Jm(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,xS(n)&&n.add(r)):r.destination=DV,r}return t.create=function(n,r,i){return new lp(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}(Qm),MV=Function.prototype.bind;function Md(e,t){return MV.call(e,t)}var LV=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){Vu(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Vu(r)}else Vu(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Vu(n)}},e}(),lp=function(e){Jm(t,e);function t(n,r,i){var l=e.call(this)||this,m;if(vn(n)||!n)m={next:n!=null?n:void 0,error:r!=null?r:void 0,complete:i!=null?i:void 0};else{var o;l&&Rf.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=function(){return l.unsubscribe()},m={next:n.next&&Md(n.next,o),error:n.error&&Md(n.error,o),complete:n.complete&&Md(n.complete,o)}):m=n}return l.destination=new LV(m),l}return t}(eg);function Vu(e){TS(e)}function RV(e){throw e}var DV={closed:!0,next:jy,error:RV,complete:jy},tg=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function FV(e){return e}function BV(e){return e.length===0?FV:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}var Pi=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,l=NV(t)?t:new lp(t,n,r);return IV(function(){var m=i,o=m.operator,a=m.source;l.add(o?o.call(l,a):a?i._subscribe(l):i._trySubscribe(l))}),l},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=Vy(n),new n(function(i,l){var m=new lp({next:function(o){try{t(o)}catch(a){l(a),m.unsubscribe()}},error:l,complete:i});r.subscribe(m)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[tg]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return BV(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=Vy(t),new t(function(r,i){var l;n.subscribe(function(m){return l=m},function(m){return i(m)},function(){return r(l)})})},e.create=function(t){return new e(t)},e}();function Vy(e){var t;return(t=e!=null?e:Rf.Promise)!==null&&t!==void 0?t:Promise}function $V(e){return e&&vn(e.next)&&vn(e.error)&&vn(e.complete)}function NV(e){return e&&e instanceof eg||$V(e)&&xS(e)}function zV(e){return vn(e==null?void 0:e.lift)}function kS(e){return function(t){if(zV(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 jV(e,t,n,r,i){return new VV(e,t,n,r,i)}var VV=function(e){Jm(t,e);function t(n,r,i,l,m,o){var a=e.call(this,n)||this;return a.onFinalize=m,a.shouldUnsubscribe=o,a._next=r?function(c){try{r(c)}catch(d){n.error(d)}}:e.prototype._next,a._error=l?function(c){try{l(c)}catch(d){n.error(d)}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}(eg),ES=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function OS(e){return vn(e==null?void 0:e.then)}function AS(e){return vn(e[tg])}function PS(e){return Symbol.asyncIterator&&vn(e==null?void 0:e[Symbol.asyncIterator])}function IS(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 UV(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var MS=UV();function LS(e){return vn(e==null?void 0:e[MS])}function RS(e){return OV(this,arguments,function(){var n,r,i,l;return CS(this,function(m){switch(m.label){case 0:n=e.getReader(),m.label=1;case 1:m.trys.push([1,,9,10]),m.label=2;case 2:return[4,Vo(n.read())];case 3:return r=m.sent(),i=r.value,l=r.done,l?[4,Vo(void 0)]:[3,5];case 4:return[2,m.sent()];case 5:return[4,Vo(i)];case 6:return[4,m.sent()];case 7:return m.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function DS(e){return vn(e==null?void 0:e.getReader)}function ng(e){if(e instanceof Pi)return e;if(e!=null){if(AS(e))return HV(e);if(ES(e))return WV(e);if(OS(e))return GV(e);if(PS(e))return FS(e);if(LS(e))return YV(e);if(DS(e))return KV(e)}throw IS(e)}function HV(e){return new Pi(function(t){var n=e[tg]();if(vn(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function WV(e){return new Pi(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function GV(e){return new Pi(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,TS)})}function YV(e){return new Pi(function(t){var n,r;try{for(var i=$l(e),l=i.next();!l.done;l=i.next()){var m=l.value;if(t.next(m),t.closed)return}}catch(o){n={error:o}}finally{try{l&&!l.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()})}function FS(e){return new Pi(function(t){XV(e,t).catch(function(n){return t.error(n)})})}function KV(e){return FS(RS(e))}function XV(e,t){var n,r,i,l;return EV(this,void 0,void 0,function(){var m,o;return CS(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),n=AV(e),a.label=1;case 1:return[4,n.next()];case 2:if(r=a.sent(),!!r.done)return[3,4];if(m=r.value,t.next(m),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&&(l=n.return)?[4,l.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 Ha(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var l=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(l),!i)return l}function BS(e,t){return t===void 0&&(t=0),kS(function(n,r){n.subscribe(jV(r,function(i){return Ha(r,e,function(){return r.next(i)},t)},function(){return Ha(r,e,function(){return r.complete()},t)},function(i){return Ha(r,e,function(){return r.error(i)},t)}))})}function $S(e,t){return t===void 0&&(t=0),kS(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function qV(e,t){return ng(e).pipe($S(t),BS(t))}function ZV(e,t){return ng(e).pipe($S(t),BS(t))}function JV(e,t){return new Pi(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function QV(e,t){return new Pi(function(n){var r;return Ha(n,t,function(){r=e[MS](),Ha(n,t,function(){var i,l,m;try{i=r.next(),l=i.value,m=i.done}catch(o){n.error(o);return}m?n.complete():n.next(l)},0,!0)}),function(){return vn(r==null?void 0:r.return)&&r.return()}})}function NS(e,t){if(!e)throw new Error("Iterable cannot be null");return new Pi(function(n){Ha(n,t,function(){var r=e[Symbol.asyncIterator]();Ha(n,t,function(){r.next().then(function(i){i.done?n.complete():n.next(i.value)})},0,!0)})})}function e7(e,t){return NS(RS(e),t)}function t7(e,t){if(e!=null){if(AS(e))return qV(e,t);if(ES(e))return JV(e,t);if(OS(e))return ZV(e,t);if(PS(e))return NS(e,t);if(LS(e))return QV(e,t);if(DS(e))return e7(e,t)}throw IS(e)}function n7(e,t){return t?t7(e,t):ng(e)}function r7(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 oo(()=>{r.unsubscribe()}),n}function i7(e,t,n){const r=ie(n==null?void 0:n.initialValue),i=Zm(e);let l=i.subscribe({next:m=>r.value=m,error:n==null?void 0:n.onError});return Te(t,()=>{l.unsubscribe(),l=i.subscribe({next:m=>r.value=m,error:n==null?void 0:n.onError})}),da(()=>{l.unsubscribe()}),r}const Ja=ls("outputs",()=>{const e=r7(n7(Zm(()=>Wt.outputs.count())),{initialValue:0}),t=ie(1),n=un("sortOutputsBy","Oldest"),r=un("currentImagesLayout","dynamic"),i=ie("all"),l=i7(()=>{const s=Rt();let h;return i.value==="all"?h=Wt.outputs:i.value==="favourited"?h=Wt.outputs.where("starred").equals(1):i.value==="unfavourited"?h=Wt.outputs.where("starred").equals(0):h=Wt.outputs.where("rated").equals(0),n.value==="Newest"&&(h=h.reverse()),s.pageless==="Enabled"?h.toArray():h.offset((t.value-1)*s.pageSize).limit(s.pageSize).toArray()},[rr(Rt(),"pageless"),rr(Rt(),"pageSize"),t,n,i],{initialValue:[]});async function m(){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"))}m(),o();async function a(s){const h=s.map(v=>{const{id:y,...b}=v;return b}),g=50,p=[];for(let v=0;v<h.length;v+=g){const y=h.slice(v,v+g),b=JSON.parse(JSON.stringify(y));console.log(`Inserting outputs into database. Chunk ${v} - ${v+g}:`,b);const w=await Wt.outputs.bulkAdd(b,void 0,{allKeys:!0});p.push(...w)}return Wt.outputs.bulkGet(p)}async function c(s){const h=Yt();if(!s.raw)return;if(!s.raw.type.includes("zip")){h.raiseError("Uploaded file needs to be a ZIP!",!1);return}const{files:g}=await SS.exports.loadAsync(s.raw);let p=0,v=0;sa({message:"Loading images...",type:"info"});const y=[];for(const[w,S]of Object.entries(g)){const C=w.split("."),T=C.slice(-1).join("."),k=C.slice(0,-1).join(".");(T==="webp"||T==="png"||T==="gif"||T==="jpg"||T==="jpeg")&&y.push(new Promise(A=>{S.async("base64").then(async P=>{if(!g[k+".json"])return v++,A(null);const z=JSON.parse(await g[k+".json"].async("text"));p++,A({id:-1,image:`data:image/webp;base64,${P}`,...z,rated:z.rated?1:0,starred:z.starred?1:0})}).catch(P=>(h.raiseError(`Error while importing image: ${P}`,!1),v++,A(null)))}))}const b=await Promise.all(y);a(b.filter(w=>w!==null)),sa({message:`Successfully imported ${p}/${p+v} images!`,type:"success"})}async function d(s){const h=await Wt.outputs.get(s);return Wt.outputs.update(s,{starred:h!=null&&h.starred?0:1})}function u(s){return Wt.outputs.delete(s)}async function f(s){const h=Yt();return h.selected=[],h.multiSelect=!1,s===await Wt.outputs.toCollection().primaryKeys()?Wt.outputs.clear():Wt.outputs.bulkDelete(s)}return{outputsLength:e,sortBy:n,filterBy:i,currentPage:t,currentOutputs:l,currentLayout:r,deleteOutput:u,deleteMultipleOutputs:f,toggleStarred:d,pushOutputs:a,importFromZip:c}}),Yt=ls("ui",()=>{const e=ie(!1),t=ie([]),n=ie(["1"]),r=ie(-1),i=ie(!1),l=ie(!1);function m(f,s){console.error(f),sa({type:"error",message:f,duration:s?0:void 0,showClose:s})}function o(f,s){console.warn(f),sa({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 d(){const f=Ja(),s=Rt(),h=f.currentOutputs.findIndex(p=>p.id===r.value),g=f.currentOutputs[h+1];if(g){r.value=g.id;return}if(f.currentPage<=Math.floor(f.outputsLength/s.pageSize)){const p=f.sortBy==="Newest"?await Wt.outputs.where(":id").below(r.value).last():await Wt.outputs.where(":id").above(r.value).first();f.currentPage++,r.value=(p==null?void 0:p.id)||r.value;return}}async function u(){const f=Ja(),s=f.currentOutputs.findIndex(g=>g.id===r.value),h=f.currentOutputs[s-1];if(f.currentPage>1&&!h){const g=f.sortBy==="Oldest"?await Wt.outputs.where(":id").below(r.value).last():await Wt.outputs.where(":id").above(r.value).first();f.currentPage--,r.value=(g==null?void 0:g.id)||r.value;return}if(h){r.value=h.id;return}}return{multiSelect:e,selected:t,activeCollapse:n,activeModal:r,showGeneratorBadge:i,showGeneratedImages:l,raiseError:m,raiseWarning:o,toggleMultiSelect:a,toggleSelection:c,openModalToRight:d,openModalToLeft:u}}),on=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},a7={},o7={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};function s7(e,t){return N(),se("svg",o7,[...t[0]||(t[0]=[ne("circle",{cy:"12",cx:"12",r:"12",stroke:"currentColor"},null,-1)])])}const l7=on(a7,[["render",s7]]),Ps=be({__name:"MainMenuItem",props:{index:{},isMobile:{type:Boolean}},setup(e){return(t,n)=>(N(),ve(_(Am),{index:t.index},{default:ue(()=>[ke(t.$slots,"icon"),t.isMobile?ge("",!0):ke(t.$slots,"title",{key:0})]),_:3},8,["index"]))}}),u7="modulepreload",c7=function(e){return"/"+e},Uy={},Ld=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(l=>{if(l=c7(l),l in Uy)return;Uy[l]=!0;const m=l.endsWith(".css"),o=m?'[rel="stylesheet"]':"";if(!!r)for(let d=i.length-1;d>=0;d--){const u=i[d];if(u.href===l&&(!m||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${o}`))return;const c=document.createElement("link");if(c.rel=m?"stylesheet":u7,m||(c.as="script",c.crossOrigin=""),c.href=l,document.head.appendChild(c),m)return new Promise((d,u)=>{c.addEventListener("load",d),c.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>t())},f7={},d7={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"};function h7(e,t){return N(),se("svg",d7,[...t[0]||(t[0]=[ne("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 zS=on(f7,[["render",h7]]),p7={},m7={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"};function g7(e,t){return N(),se("svg",m7,[...t[0]||(t[0]=[ne("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),ne("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),ne("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 v7=on(p7,[["render",g7]]);function jS(){const e=ie("..."),t=setInterval(()=>{e.value=e.value.length>=3?"":".".repeat(e.value.length+1)},1e3);return da(()=>{clearInterval(t)}),{ellipsis:e}}const y7={style:{"text-align":"center"}},b7={key:0,class:"batch-text"},_7={key:0,class:"step-text"},w7={key:1},S7={class:"gen-text"},C7={key:0},x7={key:1},T7={key:2},k7={key:2,class:"preview-container"},E7=["src"],O7=be({__name:"ImageProgress",props:{generated:{},total:{},elapsed:{},progressPercentage:{},textInfo:{},currentStep:{},totalSteps:{},previewImage:{},generating:{type:Boolean}},emits:["showGenerated"],setup(e){const{ellipsis:t}=jS(),n=(r,i)=>r?r.length>i?r.slice(0,i)+"\u2026":r:"";return(r,i)=>{var l,m,o,a,c;return N(),se("div",y7,[r.generating&&r.total&&r.total>1?(N(),se("div",b7," Image "+Ee(((l=r.generated)!=null?l:0)+1)+" of "+Ee(r.total),1)):ge("",!0),oe(_(B2),{type:"circle",percentage:(a=r.progressPercentage)!=null?a:100*((m=r.generated)!=null?m:0)/((o=r.total)!=null?o:1),width:200},{default:ue(()=>{var d,u,f,s;return[r.progressPercentage!==void 0&&r.progressPercentage>0?(N(),se("span",_7,Ee((d=r.currentStep)!=null?d:0)+" / "+Ee((u=r.totalSteps)!=null?u:0),1)):(N(),se("span",w7,Ee((f=r.generated)!=null?f:0)+" / "+Ee((s=r.total)!=null?s:1),1))]}),_:1},8,["percentage"]),r.generated?(N(),se("div",{key:1,onClick:i[0]||(i[0]=d=>r.$emit("showGenerated")),class:"view-images"},[ne("span",null,"View image"+Ee(((c=r.total)!=null?c:1)===1?"":"s"),1),oe(_(De),null,{default:ue(()=>[oe(_(RO))]),_:1})])):ge("",!0),ne("div",S7,[r.generated!==void 0&&r.total!==void 0&&r.generated===r.total&&r.generated>0?(N(),se("span",C7,"All done!")):r.textInfo?(N(),se("span",x7,Ee(n(r.textInfo,60)),1)):(N(),se("span",T7,[Ne("Generating"+Ee(_(t))+Ee("\xA0".repeat(3-_(t).length)),1),i[1]||(i[1]=ne("br",null,null,-1)),ne("sup",null,Ee(r.elapsed),1)]))]),r.previewImage?(N(),se("div",k7,[ne("img",{src:`data:image/png;base64,${r.previewImage}`,class:"preview-img",alt:"Generation Preview"},null,8,E7)])):ge("",!0)])}}}),A7=on(O7,[["__scopeId","data-v-636f1d71"]]),P7={style:{width:"200px"}},I7=be({__name:"InfoTooltip",props:{info:{},size:{},trigger:{}},setup(e){return(t,n)=>(N(),ve(_(fn),{trigger:t.trigger},{content:ue(()=>[ne("div",P7,[ke(t.$slots,"default",{},()=>[Ne(Ee(t.info),1)])])]),default:ue(()=>[oe(_(De),{size:t.size},{default:ue(()=>[oe(_(Xp))]),_:1},8,["size"])]),_:3},8,["trigger"]))}}),M7={key:0,class:"align-vertical",style:{"margin-left":"5px"}},L7=be({__name:"FormLabel",props:{label:{},info:{},labelStyle:{}},setup(e){return(t,n)=>(N(),se("span",{class:"align-vertical",style:ze(t.labelStyle||"height: 100%;")},[ke(t.$slots,"default",{},()=>[Ne(Ee(t.label),1)],!0),t.info?(N(),se("div",M7,[oe(I7,{info:t.info,size:15},null,8,["info"])])):ge("",!0)],4))}}),du=on(L7,[["__scopeId","data-v-ec7e7ec1"]]),R7={key:0,style:{width:"100%"}},D7={key:1,style:{display:"flex","flex-direction":"column",gap:"8px",width:"100%"}},bn=be({__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=dm(fm).smallerOrEqual("md"),i=e,l=t;function m(u,f){var h;if(i.multiple&&Array.isArray(i.modelValue)){f=f||0;const g=(h=Array.isArray(u)?u[0]:u)!=null?h:i.min;let p=i.modelValue;p[f]=g,l("update:modelValue",p),l("change",p);return}const s=u!=null?u:i.min;l("update:modelValue",s),l("change",s)}function o(){if(!i.multiple||!Array.isArray(i.modelValue))return;const u=i.min;l("update:modelValue",[...i.modelValue,u]),l("onAdd",u)}function a(){if(!i.multiple||!Array.isArray(i.modelValue))return;const u=i.modelValue,f=u.pop();l("update:modelValue",u),l("onRemove",f)}const c=ee(()=>i.multiple&&Array.isArray(i.modelValue)?Array.from(Array(i.modelValue.length).keys()):[]),d=ee(()=>Array.isArray(i.modelValue)?i.modelValue[0]:i.modelValue);return(u,f)=>(N(),ve(_(Qi),{prop:u.prop},{label:ue(()=>[oe(du,{info:u.info,"label-style":u.labelStyle},{default:ue(()=>[ke(u.$slots,"label",{},()=>[Ne(Ee(u.label),1)])]),_:3},8,["info","label-style"])]),default:ue(()=>[!u.multiple||!Array.isArray(u.modelValue)?(N(),se("div",R7,[_(r)?ge("",!0):(N(),ve(_(by),{key:0,"model-value":d.value,min:u.min,max:u.max,step:u.step,onInput:m,disabled:u.disabled,"show-input":""},null,8,["model-value","min","max","step","disabled"])),_(r)?(N(),ve(_(Uc),{key:1,"model-value":d.value,min:u.min,max:u.max,step:u.step,onChange:m,disabled:u.disabled},null,8,["model-value","min","max","step","disabled"])):ge("",!0)])):(N(),se("div",D7,[(N(!0),se($e,null,$t(c.value,s=>(N(),se("div",{key:s},[_(r)?ge("",!0):(N(),ve(_(by),{key:0,"model-value":u.modelValue[s],min:u.min,max:u.max,step:u.step,onInput:h=>m(h,s),disabled:u.disabled,"show-input":""},null,8,["model-value","min","max","step","onInput","disabled"])),_(r)?(N(),ve(_(Uc),{key:1,"model-value":u.modelValue[s],min:u.min,max:u.max,step:u.step,onChange:h=>m(h,s),disabled:u.disabled},null,8,["model-value","min","max","step","onChange","disabled"])):ge("",!0)]))),128)),ne("div",null,[oe(_(Ze),{icon:_(bf),onClick:f[0]||(f[0]=()=>o())},null,8,["icon"]),oe(_(Ze),{icon:_(L1),onClick:f[1]||(f[1]=()=>a()),disabled:c.value.length<=1},null,8,["icon","disabled"])])])),ke(u.$slots,"inline")]),_:3},8,["prop"]))}}),Mo=be({__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,l)=>(N(),ve(_(Qi),{prop:i.prop},{label:ue(()=>[oe(du,{info:i.info,"label-style":i.labelStyle},{default:ue(()=>[ke(i.$slots,"label",{},()=>[Ne(Ee(i.label),1)])]),_:3},8,["info","label-style"])]),default:ue(()=>[oe(_(Im),{"model-value":i.modelValue,filterable:i.filterable,multiple:i.multiple,placement:i.placement,onChange:r,placeholder:"Select"},{default:ue(()=>[(N(!0),se($e,null,$t(i.options,m=>(N(),ve(_(Hc),{key:m,label:m.label!==void 0?m.label:m,value:m.value!==void 0?m.value:m,disabled:m.disabled!==void 0?m.disabled:!1},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","filterable","multiple","placement"]),ke(i.$slots,"inline")]),_:3},8,["prop"]))}}),up=be({__name:"FormInput",props:{label:{},modelValue:{},prop:{},type:{},resize:{},placeholder:{},autosize:{type:[Boolean,Object]},info:{},labelStyle:{},change:{type:Function},clearable:{type:Boolean},clearIcon:{}},emits:["update:modelValue","focus","blur"],setup(e,{emit:t}){const n=e,r=t;function i(l){r("update:modelValue",l),n.change&&n.change(l)}return(l,m)=>(N(),ve(_(Qi),{prop:l.prop},{label:ue(()=>[oe(du,{info:l.info,"label-style":l.labelStyle},{default:ue(()=>[ke(l.$slots,"label",{},()=>[Ne(Ee(l.label),1)])]),_:3},8,["info","label-style"])]),default:ue(()=>[oe(_(lo),{"model-value":l.modelValue,autosize:l.autosize,resize:l.resize,onInput:i,type:l.type,placeholder:l.placeholder,clearable:l.clearable,"clear-icon":l.clearIcon,onFocus:m[0]||(m[0]=o=>l.$emit("focus")),onBlur:m[1]||(m[1]=o=>l.$emit("blur"))},{append:ue(()=>[ke(l.$slots,"append")]),_:3},8,["model-value","autosize","resize","type","placeholder","clearable","clear-icon"]),ke(l.$slots,"inline")]),_:3},8,["prop"]))}}),Hy=be({__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(l){const m=!!l;r("update:modelValue",m),n.change&&n.change(m)}return ST(()=>{n.disabled&&n.defaultValue!==void 0&&r("update:modelValue",n.defaultValue)}),(l,m)=>(N(),ve(_(Qi),{prop:l.prop},{label:ue(()=>[oe(du,{info:l.info,"label-style":l.labelStyle},{default:ue(()=>[ke(l.$slots,"label",{},()=>[Ne(Ee(l.label),1)])]),_:3},8,["info","label-style"])]),default:ue(()=>[l.disabledText&&l.disabled?(N(),ve(_(fn),{key:0,content:l.disabledText,placement:"top",enterable:!1,"hide-after":100},{default:ue(()=>[oe(_(_y),{disabled:l.disabled,"model-value":l.modelValue,onChange:i},null,8,["disabled","model-value"])]),_:1},8,["content"])):(N(),ve(_(_y),{key:1,disabled:l.disabled,"model-value":l.modelValue,onChange:i},null,8,["disabled","model-value"])),ke(l.$slots,"inline")]),_:3},8,["prop"]))}}),F7=be({__name:"FormPromptInput",setup(e){const t=nn();return(n,r)=>(N(),ve(up,{prop:"prompt",modelValue:_(t).prompt,"onUpdate:modelValue":r[0]||(r[0]=i=>_(t).prompt=i),autosize:{minRows:2,maxRows:15},resize:"vertical",type:"textarea",placeholder:"Enter prompt here","label-position":"top","label-style":"justify-content: space-between; width: 100%;"},{label:ue(()=>[...r[1]||(r[1]=[ne("div",null,"Prompt",-1)])]),_:1},8,["modelValue"]))}}),B7=on(F7,[["__scopeId","data-v-cf07eac2"]]),$7={style:{position:"relative",height:"100%",width:"100%"}},N7={class:"carousel-container"},z7=["src"],j7={class:"carousel-footer"},V7={style:{display:"flex","justify-content":"center"}},U7={style:{"white-space":"nowrap"}},H7=be({__name:"GeneratedCarousel",setup(e){const t=nn(),n=Yt(),r=Rt(),i=ie(0);function l(o){i.value=o,console.log(t.outputs[i.value])}function m(o){t.outputs.splice(t.outputs.findIndex(a=>a.output.id===o),1)}return(o,a)=>(N(),se("div",$7,[_(t).generating?(N(),se("div",{key:0,class:"back-to-generation",onClick:a[0]||(a[0]=c=>_(n).showGeneratedImages=!1)},[oe(_(De),null,{default:ue(()=>[oe(_(O1))]),_:1}),a[1]||(a[1]=ne("span",null,"Back to generation status",-1))])):ge("",!0),ne("div",N7,[oe(_(_R),{class:"carousel",autoplay:_(r).autoCarousel==="Enabled",trigger:"click","indicator-position":"outside",onChange:l},{default:ue(()=>[(N(!0),se($e,null,$t(_(t).outputs,(c,d)=>(N(),ve(_(wR),{key:d,style:{display:"flex","justify-content":"center"}},{default:ue(()=>[c.type==="video"?(N(),se("video",{key:0,src:c.output.image,controls:"",style:{"max-width":"100%",height:"100%"}},null,8,z7)):ge("",!0),c.type==="image"?(N(),ve(_(zo),{key:1,src:c.output.image,style:{width:"100%",height:"100%"},fit:"scale-down",onClick:()=>_(n).activeModal=c.output.id},null,8,["src","onClick"])):ge("",!0)]),_:2},1024))),128))]),_:1},8,["autoplay"])]),ne("div",j7,[oe(_(eF)),ne("div",V7,[oe(_(Yw),null,{default:ue(()=>[ne("div",U7,[oe(IC,{imageData:_(t).outputs[i.value].output,"on-delete":m,"show-dismiss":!0},null,8,["imageData"])])]),_:1})])])]))}}),W7=on(H7,[["__scopeId","data-v-a260b725"]]);var cr={};const G7={},Y7=Object.freeze(Object.defineProperty({__proto__:null,default:G7},Symbol.toStringTag,{value:"Module"})),Rd=eR(Y7);(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=Rd,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=Rd.implForWrapper,t.nodeCanvas=Rd.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,h){if(!!this.__eventListeners[s]){var g=this.__eventListeners[s];h?g[g.indexOf(h)]=!1:t.util.array.fill(g,!1)}}function a(s,h){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(h);return this}function c(s,h){var g=function(){h.apply(this,arguments),this.off(s,g)}.bind(this);this.on(s,g)}function d(s,h){if(arguments.length===1)for(var g in s)c.call(this,g,s[g]);else c.call(this,s,h);return this}function u(s,h){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,h);return this}function f(s,h){if(!this.__eventListeners)return this;var g=this.__eventListeners[s];if(!g)return this;for(var p=0,v=g.length;p<v;p++)g[p]&&g[p].call(this,h||{});return this.__eventListeners[s]=g.filter(function(y){return y!==!1}),this}t.Observable={fire:f,on:a,once:d,off:u}}(),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 d=this._objects;return c?d[a]=o:d.splice(a,0,o),this._onObjectAdded&&this._onObjectAdded(o),this.renderOnAddRemove&&this.requestRenderAll(),this},remove:function(){for(var o=this._objects,a,c=!1,d=0,u=arguments.length;d<u;d++)a=o.indexOf(arguments[d]),a!==-1&&(c=!0,o.splice(a,1),this._onObjectRemoved&&this._onObjectRemoved(arguments[d]));return this.renderOnAddRemove&&c&&this.requestRenderAll(),this},forEachObject:function(o,a){for(var c=this.getObjects(),d=0,u=c.length;d<u;d++)o.call(a,c[d],d,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,d=Math.pow,u=Math.PI/180,f=Math.PI/2;t.util={cos:function(s){if(s===0)return 1;s<0&&(s=-s);var h=s/f;switch(h){case 1:case 3:return 0;case 2:return-1}return Math.cos(s)},sin:function(s){if(s===0)return 0;var h=s/f,g=1;switch(s<0&&(g=-1),h){case 1:return g;case 2:return 0;case 3:return-g}return Math.sin(s)},removeFromArray:function(s,h){var g=s.indexOf(h);return g!==-1&&s.splice(g,1),s},getRandomInt:function(s,h){return Math.floor(Math.random()*(h-s+1))+s},degreesToRadians:function(s){return s*u},radiansToDegrees:function(s){return s/u},rotatePoint:function(s,h,g){var p=new t.Point(s.x-h.x,s.y-h.y),v=t.util.rotateVector(p,g);return new t.Point(v.x,v.y).addEquals(h)},rotateVector:function(s,h){var g=t.util.sin(h),p=t.util.cos(h),v=s.x*p-s.y*g,y=s.x*g+s.y*p;return{x:v,y}},createVector:function(s,h){return new t.Point(h.x-s.x,h.y-s.y)},calcAngleBetweenVectors:function(s,h){return Math.acos((s.x*h.x+s.y*h.y)/(Math.hypot(s.x,s.y)*Math.hypot(h.x,h.y)))},getHatVector:function(s){return new t.Point(s.x,s.y).multiply(1/Math.hypot(s.x,s.y))},getBisector:function(s,h,g){var p=t.util.createVector(s,h),v=t.util.createVector(s,g),y=t.util.calcAngleBetweenVectors(p,v),b=t.util.calcAngleBetweenVectors(t.util.rotateVector(p,y),v),w=y*(b===0?1:-1)/2;return{vector:t.util.getHatVector(t.util.rotateVector(p,w)),angle:y}},projectStrokeOnPoints:function(s,h,g){var p=[],v=h.strokeWidth/2,y=h.strokeUniform?new t.Point(1/h.scaleX,1/h.scaleY):new t.Point(1,1),b=function(w){var S=v/Math.hypot(w.x,w.y);return new t.Point(w.x*S*y.x,w.y*S*y.y)};return s.length<=1||s.forEach(function(w,S){var C=new t.Point(w.x,w.y),T,k;S===0?(k=s[S+1],T=g?b(t.util.createVector(k,C)).addEquals(C):s[s.length-1]):S===s.length-1?(T=s[S-1],k=g?b(t.util.createVector(T,C)).addEquals(C):s[0]):(T=s[S-1],k=s[S+1]);var A=t.util.getBisector(C,T,k),P=A.vector,z=A.angle,I,$;if(h.strokeLineJoin==="miter"&&(I=-v/Math.sin(z/2),$=new t.Point(P.x*I*y.x,P.y*I*y.y),Math.hypot($.x,$.y)/v<=h.strokeMiterLimit)){p.push(C.add($)),p.push(C.subtract($));return}I=-v*Math.SQRT2,$=new t.Point(P.x*I*y.x,P.y*I*y.y),p.push(C.add($)),p.push(C.subtract($))}),p},transformPoint:function(s,h,g){return g?new t.Point(h[0]*s.x+h[2]*s.y,h[1]*s.x+h[3]*s.y):new t.Point(h[0]*s.x+h[2]*s.y+h[4],h[1]*s.x+h[3]*s.y+h[5])},makeBoundingBoxFromPoints:function(s,h){if(h)for(var g=0;g<s.length;g++)s[g]=t.util.transformPoint(s[g],h);var p=[s[0].x,s[1].x,s[2].x,s[3].x],v=t.util.array.min(p),y=t.util.array.max(p),b=y-v,w=[s[0].y,s[1].y,s[2].y,s[3].y],S=t.util.array.min(w),C=t.util.array.max(w),T=C-S;return{left:v,top:S,width:b,height:T}},invertTransform:function(s){var h=1/(s[0]*s[3]-s[1]*s[2]),g=[h*s[3],-h*s[1],-h*s[2],h*s[0]],p=t.util.transformPoint({x:s[4],y:s[5]},g,!0);return g[4]=-p.x,g[5]=-p.y,g},toFixed:function(s,h){return parseFloat(Number(s).toFixed(h))},parseUnit:function(s,h){var g=/\D{0,2}$/.exec(s),p=parseFloat(s);switch(h||(h=t.Text.DEFAULT_SVG_FONT_SIZE),g[0]){case"mm":return p*t.DPI/25.4;case"cm":return p*t.DPI/2.54;case"in":return p*t.DPI;case"pt":return p*t.DPI/72;case"pc":return p*t.DPI/72*12;case"em":return p*h;default:return p}},falseFunction:function(){return!1},getKlass:function(s,h){return s=t.util.string.camelize(s.charAt(0).toUpperCase()+s.slice(1)),t.util.resolveNamespace(h)[s]},getSvgAttributes:function(s){var h=["instantiated_by_use","style","id","class"];switch(s){case"linearGradient":h=h.concat(["x1","y1","x2","y2","gradientUnits","gradientTransform"]);break;case"radialGradient":h=h.concat(["gradientUnits","gradientTransform","cx","cy","r","fx","fy","fr"]);break;case"stop":h=h.concat(["offset","stop-color","stop-opacity"]);break}return h},resolveNamespace:function(s){if(!s)return t;var h=s.split("."),g=h.length,p,v=o||t.window;for(p=0;p<g;++p)v=v[h[p]];return v},loadImage:function(s,h,g,p){if(!s){h&&h.call(g,s);return}var v=t.util.createImage(),y=function(){h&&h.call(g,v,!1),v=v.onload=v.onerror=null};v.onload=y,v.onerror=function(){t.log("Error loading "+v.src),h&&h.call(g,null,!0),v=v.onload=v.onerror=null},s.indexOf("data")!==0&&p!==void 0&&p!==null&&(v.crossOrigin=p),s.substring(0,14)==="data:image/svg"&&(v.onload=null,t.util.loadImageInDom(v,y)),v.src=s},loadImageInDom:function(s,h){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(){h(),g.parentNode.removeChild(g),g=null}},enlivenObjects:function(s,h,g,p){s=s||[];var v=[],y=0,b=s.length;function w(){++y===b&&h&&h(v.filter(function(S){return S}))}if(!b){h&&h(v);return}s.forEach(function(S,C){if(!S||!S.type){w();return}var T=t.util.getKlass(S.type,g);T.fromObject(S,function(k,A){A||(v[C]=k),p&&p(S,k,A),w()})})},enlivenObjectEnlivables:function(s,h,g){var p=t.Object.ENLIVEN_PROPS.filter(function(v){return!!s[v]});t.util.enlivenObjects(p.map(function(v){return s[v]}),function(v){var y={};p.forEach(function(b,w){y[b]=v[w],h&&(h[b]=v[w])}),g&&g(y)})},enlivenPatterns:function(s,h){s=s||[];function g(){++v===y&&h&&h(p)}var p=[],v=0,y=s.length;if(!y){h&&h(p);return}s.forEach(function(b,w){b&&b.source?new t.Pattern(b,function(S){p[w]=S,g()}):(p[w]=b,g())})},groupSVGElements:function(s,h,g){var p;return s&&s.length===1?(typeof g<"u"&&(s[0].sourcePath=g),s[0]):(h&&(h.width&&h.height?h.centerPoint={x:h.width/2,y:h.height/2}:(delete h.width,delete h.height)),p=new t.Group(s,h),typeof g<"u"&&(p.sourcePath=g),p)},populateWithProperties:function(s,h,g){if(g&&Array.isArray(g))for(var p=0,v=g.length;p<v;p++)g[p]in s&&(h[g[p]]=s[g[p]])},createCanvasElement:function(){return t.document.createElement("canvas")},copyCanvasElement:function(s){var h=t.util.createCanvasElement();return h.width=s.width,h.height=s.height,h.getContext("2d").drawImage(s,0,0),h},toDataURL:function(s,h,g){return s.toDataURL("image/"+h,g)},createImage:function(){return t.document.createElement("img")},multiplyTransformMatrices:function(s,h,g){return[s[0]*h[0]+s[2]*h[1],s[1]*h[0]+s[3]*h[1],s[0]*h[2]+s[2]*h[3],s[1]*h[2]+s[3]*h[3],g?0:s[0]*h[4]+s[2]*h[5]+s[4],g?0:s[1]*h[4]+s[3]*h[5]+s[5]]},qrDecompose:function(s){var h=c(s[1],s[0]),g=d(s[0],2)+d(s[1],2),p=a(g),v=(s[0]*s[3]-s[2]*s[1])/p,y=c(s[0]*s[2]+s[1]*s[3],g);return{angle:h/u,scaleX:p,scaleY:v,skewX:y/u,skewY:0,translateX:s[4],translateY:s[5]}},calcRotateMatrix:function(s){if(!s.angle)return t.iMatrix.concat();var h=t.util.degreesToRadians(s.angle),g=t.util.cos(h),p=t.util.sin(h);return[g,p,-p,g,0,0]},calcDimensionsMatrix:function(s){var h=typeof s.scaleX>"u"?1:s.scaleX,g=typeof s.scaleY>"u"?1:s.scaleY,p=[s.flipX?-h:h,0,0,s.flipY?-g:g,0,0],v=t.util.multiplyTransformMatrices,y=t.util.degreesToRadians;return s.skewX&&(p=v(p,[1,0,Math.tan(y(s.skewX)),1],!0)),s.skewY&&(p=v(p,[1,Math.tan(y(s.skewY)),0,1],!0)),p},composeMatrix:function(s){var h=[1,0,0,1,s.translateX||0,s.translateY||0],g=t.util.multiplyTransformMatrices;return s.angle&&(h=g(h,t.util.calcRotateMatrix(s))),(s.scaleX!==1||s.scaleY!==1||s.skewX||s.skewY||s.flipX||s.flipY)&&(h=g(h,t.util.calcDimensionsMatrix(s))),h},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,h,g,p){p>0&&(h>p?h-=p:h=0,g>p?g-=p:g=0);var v=!0,y,b,w=s.getImageData(h,g,p*2||1,p*2||1),S=w.data.length;for(y=3;y<S&&(b=w.data[y],v=b<=0,v!==!1);y+=4);return w=null,v},parsePreserveAspectRatioAttribute:function(s){var h="meet",g="Mid",p="Mid",v=s.split(" "),y;return v&&v.length&&(h=v.pop(),h!=="meet"&&h!=="slice"?(y=h,h="meet"):v.length&&(y=v.pop())),g=y!=="none"?y.slice(1,4):"none",p=y!=="none"?y.slice(5,8):"none",{meetOrSlice:h,alignX:g,alignY:p}},clearFabricFontCache:function(s){s=(s||"").toLowerCase(),s?t.charWidthsCache[s]&&delete t.charWidthsCache[s]:t.charWidthsCache={}},limitDimsByArea:function(s,h){var g=Math.sqrt(h*s),p=Math.floor(h/g);return{x:Math.floor(g),y:p}},capValue:function(s,h,g){return Math.max(s,Math.min(h,g))},findScaleToFit:function(s,h){return Math.min(h.width/s.width,h.height/s.height)},findScaleToCover:function(s,h){return Math.max(h.width/s.width,h.height/s.height)},matrixToSVG:function(s){return"matrix("+s.map(function(h){return t.util.toFixed(h,t.Object.NUM_FRACTION_DIGITS)}).join(" ")+")"},removeTransformFromObject:function(s,h){var g=t.util.invertTransform(h),p=t.util.multiplyTransformMatrices(g,s.calcOwnMatrix());t.util.applyTransformToObject(s,p)},addTransformToObject:function(s,h){t.util.applyTransformToObject(s,t.util.multiplyTransformMatrices(h,s.calcOwnMatrix()))},applyTransformToObject:function(s,h){var g=t.util.qrDecompose(h),p=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(p,"center","center")},sizeAfterTransform:function(s,h,g){var p=s/2,v=h/2,y=[{x:-p,y:-v},{x:p,y:-v},{x:-p,y:v},{x:p,y:v}],b=t.util.calcDimensionsMatrix(g),w=t.util.makeBoundingBoxFromPoints(y,b);return{x:w.width,y:w.height}},mergeClipPaths:function(s,h){var g=s,p=h;g.inverted&&!p.inverted&&(g=h,p=s),t.util.applyTransformToObject(p,t.util.multiplyTransformMatrices(t.util.invertTransform(g.calcTransformMatrix()),p.calcTransformMatrix()));var v=g.inverted&&p.inverted;return v&&(g.inverted=p.inverted=!1),new t.Group([g],{clipPath:p,inverted:v})},hasStyleChanged:function(s,h,g){return g=g||!1,s.fill!==h.fill||s.stroke!==h.stroke||s.strokeWidth!==h.strokeWidth||s.fontSize!==h.fontSize||s.fontFamily!==h.fontFamily||s.fontWeight!==h.fontWeight||s.fontStyle!==h.fontStyle||s.textBackgroundColor!==h.textBackgroundColor||s.deltaY!==h.deltaY||g&&(s.overline!==h.overline||s.underline!==h.underline||s.linethrough!==h.linethrough)},stylesToArray:function(g,h){for(var g=t.util.object.clone(g,!0),p=h.split(`
`),v=-1,y={},b=[],w=0;w<p.length;w++){if(!g[w]){v+=p[w].length;continue}for(var S=0;S<p[w].length;S++){v++;var C=g[w][S];if(C&&Object.keys(C).length>0){var T=t.util.hasStyleChanged(y,C,!0);T?b.push({start:v,end:v+1,style:C}):b[b.length-1].end++}y=C||{}}}return b},stylesFromArray:function(s,h){if(!Array.isArray(s))return s;for(var g=h.split(`
`),p=-1,v=0,y={},b=0;b<g.length;b++)for(var w=0;w<g[b].length;w++)p++,s[v]&&s[v].start<=p&&p<s[v].end&&(y[b]=y[b]||{},y[b][w]=Object.assign({},s[v].style),p===s[v].end-1&&v++);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 d(E,V,M,R,W,D,B,Z,H,Q,te){var fe=t.util.cos(E),me=t.util.sin(E),_e=t.util.cos(V),j=t.util.sin(V),x=M*W*_e-R*D*j+B,U=R*W*_e+M*D*j+Z,K=Q+H*(-M*W*me-R*D*fe),L=te+H*(-R*W*me+M*D*fe),F=x+H*(M*W*j+R*D*_e),X=U+H*(R*W*j-M*D*_e);return["C",K,L,F,X,x,U]}function u(E,V,M,R,W,D,B){var Z=Math.PI,H=B*Z/180,Q=t.util.sin(H),te=t.util.cos(H),fe=0,me=0;M=Math.abs(M),R=Math.abs(R);var _e=-te*E*.5-Q*V*.5,j=-te*V*.5+Q*E*.5,x=M*M,U=R*R,K=j*j,L=_e*_e,F=x*U-x*K-U*L,X=0;if(F<0){var de=Math.sqrt(1-F/(x*U));M*=de,R*=de}else X=(W===D?-1:1)*Math.sqrt(F/(x*K+U*L));var le=X*M*j/R,G=-X*R*_e/M,pe=te*le-Q*G+E*.5,re=Q*le+te*G+V*.5,he=f(1,0,(_e-le)/M,(j-G)/R),Se=f((_e-le)/M,(j-G)/R,(-_e-le)/M,(-j-G)/R);D===0&&Se>0?Se-=2*Z:D===1&&Se<0&&(Se+=2*Z);for(var xe=Math.ceil(Math.abs(Se/Z*2)),Oe=[],Le=Se/xe,ye=8/3*Math.sin(Le/4)*Math.sin(Le/4)/Math.sin(Le/2),Ce=he+Le,Me=0;Me<xe;Me++)Oe[Me]=d(he,Ce,te,Q,M,R,pe,re,ye,fe,me),fe=Oe[Me][5],me=Oe[Me][6],he=Ce,Ce+=Le;return Oe}function f(E,V,M,R){var W=Math.atan2(V,E),D=Math.atan2(R,M);return D>=W?D-W:2*Math.PI-(W-D)}function s(E,V,M,R,W,D,B,Z){var H;if(t.cachesBoundsOfCurve&&(H=o.call(arguments),t.boundsOfCurveCache[H]))return t.boundsOfCurveCache[H];var Q=Math.sqrt,te=Math.min,fe=Math.max,me=Math.abs,_e=[],j=[[],[]],x,U,K,L,F,X,de,le;U=6*E-12*M+6*W,x=-3*E+9*M-9*W+3*B,K=3*M-3*E;for(var G=0;G<2;++G){if(G>0&&(U=6*V-12*R+6*D,x=-3*V+9*R-9*D+3*Z,K=3*R-3*V),me(x)<1e-12){if(me(U)<1e-12)continue;L=-K/U,0<L&&L<1&&_e.push(L);continue}de=U*U-4*K*x,!(de<0)&&(le=Q(de),F=(-U+le)/(2*x),0<F&&F<1&&_e.push(F),X=(-U-le)/(2*x),0<X&&X<1&&_e.push(X))}for(var pe,re,he=_e.length,Se=he,xe;he--;)L=_e[he],xe=1-L,pe=xe*xe*xe*E+3*xe*xe*L*M+3*xe*L*L*W+L*L*L*B,j[0][he]=pe,re=xe*xe*xe*V+3*xe*xe*L*R+3*xe*L*L*D+L*L*L*Z,j[1][he]=re;j[0][Se]=E,j[1][Se]=V,j[0][Se+1]=B,j[1][Se+1]=Z;var Oe=[{x:te.apply(null,j[0]),y:te.apply(null,j[1])},{x:fe.apply(null,j[0]),y:fe.apply(null,j[1])}];return t.cachesBoundsOfCurve&&(t.boundsOfCurveCache[H]=Oe),Oe}function h(E,V,M){for(var R=M[1],W=M[2],D=M[3],B=M[4],Z=M[5],H=M[6],Q=M[7],te=u(H-E,Q-V,R,W,B,Z,D),fe=0,me=te.length;fe<me;fe++)te[fe][1]+=E,te[fe][2]+=V,te[fe][3]+=E,te[fe][4]+=V,te[fe][5]+=E,te[fe][6]+=V;return te}function g(E){var V=0,M=0,R=E.length,W=0,D=0,B,Z,H,Q=[],te,fe,me;for(Z=0;Z<R;++Z){switch(H=!1,B=E[Z].slice(0),B[0]){case"l":B[0]="L",B[1]+=V,B[2]+=M;case"L":V=B[1],M=B[2];break;case"h":B[1]+=V;case"H":B[0]="L",B[2]=M,V=B[1];break;case"v":B[1]+=M;case"V":B[0]="L",M=B[1],B[1]=V,B[2]=M;break;case"m":B[0]="M",B[1]+=V,B[2]+=M;case"M":V=B[1],M=B[2],W=B[1],D=B[2];break;case"c":B[0]="C",B[1]+=V,B[2]+=M,B[3]+=V,B[4]+=M,B[5]+=V,B[6]+=M;case"C":fe=B[3],me=B[4],V=B[5],M=B[6];break;case"s":B[0]="S",B[1]+=V,B[2]+=M,B[3]+=V,B[4]+=M;case"S":te==="C"?(fe=2*V-fe,me=2*M-me):(fe=V,me=M),V=B[3],M=B[4],B[0]="C",B[5]=B[3],B[6]=B[4],B[3]=B[1],B[4]=B[2],B[1]=fe,B[2]=me,fe=B[3],me=B[4];break;case"q":B[0]="Q",B[1]+=V,B[2]+=M,B[3]+=V,B[4]+=M;case"Q":fe=B[1],me=B[2],V=B[3],M=B[4];break;case"t":B[0]="T",B[1]+=V,B[2]+=M;case"T":te==="Q"?(fe=2*V-fe,me=2*M-me):(fe=V,me=M),B[0]="Q",V=B[1],M=B[2],B[1]=fe,B[2]=me,B[3]=V,B[4]=M;break;case"a":B[0]="A",B[6]+=V,B[7]+=M;case"A":H=!0,Q=Q.concat(h(V,M,B)),V=B[6],M=B[7];break;case"z":case"Z":V=W,M=D;break}H||Q.push(B),te=B[0]}return Q}function p(E,V,M,R){return Math.sqrt((M-E)*(M-E)+(R-V)*(R-V))}function v(E){return E*E*E}function y(E){return 3*E*E*(1-E)}function b(E){return 3*E*(1-E)*(1-E)}function w(E){return(1-E)*(1-E)*(1-E)}function S(E,V,M,R,W,D,B,Z){return function(H){var Q=v(H),te=y(H),fe=b(H),me=w(H);return{x:B*Q+W*te+M*fe+E*me,y:Z*Q+D*te+R*fe+V*me}}}function C(E,V,M,R,W,D,B,Z){return function(H){var Q=1-H,te=3*Q*Q*(M-E)+6*Q*H*(W-M)+3*H*H*(B-W),fe=3*Q*Q*(R-V)+6*Q*H*(D-R)+3*H*H*(Z-D);return Math.atan2(fe,te)}}function T(E){return E*E}function k(E){return 2*E*(1-E)}function A(E){return(1-E)*(1-E)}function P(E,V,M,R,W,D){return function(B){var Z=T(B),H=k(B),Q=A(B);return{x:W*Z+M*H+E*Q,y:D*Z+R*H+V*Q}}}function z(E,V,M,R,W,D){return function(B){var Z=1-B,H=2*Z*(M-E)+2*B*(W-M),Q=2*Z*(R-V)+2*B*(D-R);return Math.atan2(Q,H)}}function I(E,V,M){var R={x:V,y:M},W,D=0,B;for(B=1;B<=100;B+=1)W=E(B/100),D+=p(R.x,R.y,W.x,W.y),R=W;return D}function $(E,V){for(var M=0,R=0,W=E.iterator,D={x:E.x,y:E.y},B,Z,H=.01,Q=E.angleFinder,te;R<V&&H>1e-4;)B=W(M),te=M,Z=p(D.x,D.y,B.x,B.y),Z+R>V?(M-=H,H/=2):(D=B,M+=H,R+=Z);return B.angle=Q(te),B}function O(E){for(var V=0,M=E.length,R,W=0,D=0,B=0,Z=0,H=[],Q,te,fe,me=0;me<M;me++){switch(R=E[me],te={x:W,y:D,command:R[0]},R[0]){case"M":te.length=0,B=W=R[1],Z=D=R[2];break;case"L":te.length=p(W,D,R[1],R[2]),W=R[1],D=R[2];break;case"C":Q=S(W,D,R[1],R[2],R[3],R[4],R[5],R[6]),fe=C(W,D,R[1],R[2],R[3],R[4],R[5],R[6]),te.iterator=Q,te.angleFinder=fe,te.length=I(Q,W,D),W=R[5],D=R[6];break;case"Q":Q=P(W,D,R[1],R[2],R[3],R[4]),fe=z(W,D,R[1],R[2],R[3],R[4]),te.iterator=Q,te.angleFinder=fe,te.length=I(Q,W,D),W=R[3],D=R[4];break;case"Z":case"z":te.destX=B,te.destY=Z,te.length=p(W,D,B,Z),W=B,D=Z;break}V+=te.length,H.push(te)}return H.push({length:V,x:W,y:D}),H}function Y(E,V,M){M||(M=O(E));for(var R=0;V-M[R].length>0&&R<M.length-2;)V-=M[R].length,R++;var W=M[R],D=V/W.length,B=W.command,Z=E[R],H;switch(B){case"M":return{x:W.x,y:W.y,angle:0};case"Z":case"z":return H=new t.Point(W.x,W.y).lerp(new t.Point(W.destX,W.destY),D),H.angle=Math.atan2(W.destY-W.y,W.destX-W.x),H;case"L":return H=new t.Point(W.x,W.y).lerp(new t.Point(Z[1],Z[2]),D),H.angle=Math.atan2(Z[2]-W.y,Z[1]-W.x),H;case"C":return $(W,V);case"Q":return $(W,V)}}function ae(E){var V=[],M=[],R,W,D=t.rePathCommand,B="[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?\\s*",Z="("+B+")"+t.commaWsp,H="([01])"+t.commaWsp+"?",Q=Z+"?"+Z+"?"+Z+H+H+Z+"?("+B+")",te=new RegExp(Q,"g"),fe,me,_e;if(!E||!E.match)return V;_e=E.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi);for(var j=0,x,U=_e.length;j<U;j++){R=_e[j],me=R.slice(1).trim(),M.length=0;var K=R.charAt(0);if(x=[K],K.toLowerCase()==="a")for(var L;L=te.exec(me);)for(var F=1;F<L.length;F++)M.push(L[F]);else for(;fe=D.exec(me);)M.push(fe[0]);for(var F=0,X=M.length;F<X;F++)W=parseFloat(M[F]),isNaN(W)||x.push(W);var de=a[K.toLowerCase()],le=c[K]||K;if(x.length-1>de)for(var G=1,pe=x.length;G<pe;G+=de)V.push([K].concat(x.slice(G,G+de))),K=le;else V.push(x)}return V}function q(E,V){var M=[],R,W=new t.Point(E[0].x,E[0].y),D=new t.Point(E[1].x,E[1].y),B=E.length,Z=1,H=0,Q=B>2;for(V=V||0,Q&&(Z=E[2].x<D.x?-1:E[2].x===D.x?0:1,H=E[2].y<D.y?-1:E[2].y===D.y?0:1),M.push(["M",W.x-Z*V,W.y-H*V]),R=1;R<B;R++){if(!W.eq(D)){var te=W.midPointFrom(D);M.push(["Q",W.x,W.y,te.x,te.y])}W=E[R],R+1<E.length&&(D=E[R+1])}return Q&&(Z=W.x>E[R-2].x?1:W.x===E[R-2].x?0:-1,H=W.y>E[R-2].y?1:W.y===E[R-2].y?0:-1),M.push(["L",W.x+Z*V,W.y+H*V]),M}function J(E,V,M){return M&&(V=t.util.multiplyTransformMatrices(V,[1,0,0,1,-M.x,-M.y])),E.map(function(R){for(var W=R.slice(0),D={},B=1;B<R.length-1;B+=2)D.x=R[B],D.y=R[B+1],D=t.util.transformPoint(D,V),W[B]=D.x,W[B+1]=D.y;return W})}t.util.joinPath=function(E){return E.map(function(V){return V.join(" ")}).join(" ")},t.util.parsePath=ae,t.util.makePathSimpler=g,t.util.getSmoothPathFromPoints=q,t.util.getPathSegmentsInfo=O,t.util.getBoundsOfCurve=s,t.util.getPointOnPath=Y,t.util.transformPath=J}(),function(){var o=Array.prototype.slice;function a(s,h){for(var g=o.call(arguments,2),p=[],v=0,y=s.length;v<y;v++)p[v]=g.length?s[v][h].apply(s[v],g):s[v][h].call(s[v]);return p}function c(s,h){return f(s,h,function(g,p){return g>=p})}function d(s,h){return f(s,h,function(g,p){return g<p})}function u(s,h){for(var g=s.length;g--;)s[g]=h;return s}function f(s,h,g){if(!(!s||s.length===0)){var p=s.length-1,v=h?s[p][h]:s[p];if(h)for(;p--;)g(s[p][h],v)&&(v=s[p][h]);else for(;p--;)g(s[p],v)&&(v=s[p]);return v}}t.util.array={fill:u,invoke:a,min:d,max:c}}(),function(){function o(c,d,u){if(u)if(!t.isLikelyNode&&d instanceof Element)c=d;else if(d instanceof Array){c=[];for(var f=0,s=d.length;f<s;f++)c[f]=o({},d[f],u)}else if(d&&typeof d=="object")for(var h in d)h==="canvas"||h==="group"?c[h]=null:d.hasOwnProperty(h)&&(c[h]=o({},d[h],u));else c=d;else for(var h in d)c[h]=d[h];return c}function a(c,d){return o({},c,d)}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,h){return h?h.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 d(f){var s=0,h,g=[];for(s=0,h;s<f.length;s++)(h=u(f,s))!==!1&&g.push(h);return g}function u(f,s){var h=f.charCodeAt(s);if(isNaN(h))return"";if(h<55296||h>57343)return f.charAt(s);if(55296<=h&&h<=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 p=f.charCodeAt(s-1);if(55296>p||p>56319)throw"Low surrogate without preceding high surrogate";return!1}t.util.string={camelize:o,capitalize:a,escapeXml:c,graphemeSplit:d}}(),function(){var o=Array.prototype.slice,a=function(){},c=function(){for(var h in{toString:1})if(h==="toString")return!1;return!0}(),d=function(h,g,p){for(var v in g)v in h.prototype&&typeof h.prototype[v]=="function"&&(g[v]+"").indexOf("callSuper")>-1?h.prototype[v]=function(y){return function(){var b=this.constructor.superclass;this.constructor.superclass=p;var w=g[y].apply(this,arguments);if(this.constructor.superclass=b,y!=="initialize")return w}}(v):h.prototype[v]=g[v],c&&(g.toString!==Object.prototype.toString&&(h.prototype.toString=g.toString),g.valueOf!==Object.prototype.valueOf&&(h.prototype.valueOf=g.valueOf))};function u(){}function f(h){for(var g=null,p=this;p.constructor.superclass;){var v=p.constructor.superclass.prototype[h];if(p[h]!==v){g=v;break}p=p.constructor.superclass.prototype}return g?arguments.length>1?g.apply(this,o.call(arguments,1)):g.call(this):console.log("tried to callSuper "+h+", method not found in prototype chain",this)}function s(){var h=null,g=o.call(arguments,0);typeof g[0]=="function"&&(h=g.shift());function p(){this.initialize.apply(this,arguments)}p.superclass=h,p.subclasses=[],h&&(u.prototype=h.prototype,p.prototype=new u,h.subclasses.push(p));for(var v=0,y=g.length;v<y;v++)d(p,g[v],h);return p.prototype.initialize||(p.prototype.initialize=a),p.prototype.constructor=p,p.prototype.callSuper=f,p}t.util.createClass=s}(),function(){var o=!!t.document.createElement("div").attachEvent,a=["touchstart","touchmove","touchend"];t.util.addListener=function(d,u,f,s){d&&d.addEventListener(u,f,o?!1:s)},t.util.removeListener=function(d,u,f,s){d&&d.removeEventListener(u,f,o?!1:s)};function c(d){var u=d.changedTouches;return u&&u[0]?u[0]:d}t.util.getPointer=function(d){var u=d.target,f=t.util.getScrollLeftTop(u),s=c(d);return{x:s.clientX+f.left,y:s.clientY+f.top}},t.util.isTouchEvent=function(d){return a.indexOf(d.type)>-1||d.pointerType==="touch"}}(),function(){function o(s,h){var g=s.style;if(!g)return s;if(typeof h=="string")return s.style.cssText+=";"+h,h.indexOf("opacity")>-1?f(s,h.match(/opacity:\s*(\d?\.?\d*)/)[1]):s;for(var p in h)if(p==="opacity")f(s,h[p]);else{var v=p==="float"||p==="cssFloat"?typeof g.styleFloat>"u"?"cssFloat":"styleFloat":p;g.setProperty(v,h[p])}return s}var a=t.document.createElement("div"),c=typeof a.style.opacity=="string",d=typeof a.style.filter=="string",u=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,f=function(s){return s};c?f=function(s,h){return s.style.opacity=h,s}:d&&(f=function(s,h){var g=s.style;return s.currentStyle&&!s.currentStyle.hasLayout&&(g.zoom=1),u.test(g.filter)?(h=h>=.9999?"":"alpha(opacity="+h*100+")",g.filter=g.filter.replace(u,h)):g.filter+=" alpha(opacity="+h*100+")",s}),t.util.setStyle=o}(),function(){var o=Array.prototype.slice;function a(w){return typeof w=="string"?t.document.getElementById(w):w}var c,d=function(w){return o.call(w,0)};try{c=d(t.document.childNodes)instanceof Array}catch{}c||(d=function(w){for(var S=new Array(w.length),C=w.length;C--;)S[C]=w[C];return S});function u(w,S){var C=t.document.createElement(w);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(w,S){w&&(" "+w.className+" ").indexOf(" "+S+" ")===-1&&(w.className+=(w.className?" ":"")+S)}function s(w,S,C){return typeof S=="string"&&(S=u(S,C)),w.parentNode&&w.parentNode.replaceChild(S,w),S.appendChild(w),S}function h(w){for(var S=0,C=0,T=t.document.documentElement,k=t.document.body||{scrollLeft:0,scrollTop:0};w&&(w.parentNode||w.host)&&(w=w.parentNode||w.host,w===t.document?(S=k.scrollLeft||T.scrollLeft||0,C=k.scrollTop||T.scrollTop||0):(S+=w.scrollLeft||0,C+=w.scrollTop||0),!(w.nodeType===1&&w.style.position==="fixed")););return{left:S,top:C}}function g(w){var S,C=w&&w.ownerDocument,T={left:0,top:0},k={left:0,top:0},A,P={borderLeftWidth:"left",borderTopWidth:"top",paddingLeft:"left",paddingTop:"top"};if(!C)return k;for(var z in P)k[P[z]]+=parseInt(p(w,z),10)||0;return S=C.documentElement,typeof w.getBoundingClientRect<"u"&&(T=w.getBoundingClientRect()),A=h(w),{left:T.left+A.left-(S.clientLeft||0)+k.left,top:T.top+A.top-(S.clientTop||0)+k.top}}var p;t.document.defaultView&&t.document.defaultView.getComputedStyle?p=function(w,S){var C=t.document.defaultView.getComputedStyle(w,null);return C?C[S]:void 0}:p=function(w,S){var C=w.style[S];return!C&&w.currentStyle&&(C=w.currentStyle[S]),C},function(){var w=t.document.documentElement.style,S="userSelect"in w?"userSelect":"MozUserSelect"in w?"MozUserSelect":"WebkitUserSelect"in w?"WebkitUserSelect":"KhtmlUserSelect"in w?"KhtmlUserSelect":"";function C(k){return typeof k.onselectstart<"u"&&(k.onselectstart=t.util.falseFunction),S?k.style[S]="none":typeof k.unselectable=="string"&&(k.unselectable="on"),k}function T(k){return typeof k.onselectstart<"u"&&(k.onselectstart=null),S?k.style[S]="":typeof k.unselectable=="string"&&(k.unselectable=""),k}t.util.makeElementUnselectable=C,t.util.makeElementSelectable=T}();function v(w){var S=t.jsdomImplForWrapper(w);return S._canvas||S._image}function y(w){if(!!t.isLikelyNode){var S=t.jsdomImplForWrapper(w);S&&(S._image=null,S._canvas=null,S._currentSrc=null,S._attributes=null,S._classList=null)}}function b(w,S){w.imageSmoothingEnabled=w.imageSmoothingEnabled||w.webkitImageSmoothingEnabled||w.mozImageSmoothingEnabled||w.msImageSmoothingEnabled||w.oImageSmoothingEnabled,w.imageSmoothingEnabled=S}t.util.setImageSmoothing=b,t.util.getById=a,t.util.toArray=d,t.util.addClass=f,t.util.makeElement=u,t.util.wrapElement=s,t.util.getScrollLeftTop=h,t.util.getElementOffset=g,t.util.getNodeCanvas=v,t.util.cleanUpJsdomNode=y}(),function(){function o(d,u){return d+(/\?/.test(d)?"&":"?")+u}function a(){}function c(d,u){u||(u={});var f=u.method?u.method.toUpperCase():"GET",s=u.onComplete||function(){},h=new t.window.XMLHttpRequest,g=u.body||u.parameters;return h.onreadystatechange=function(){h.readyState===4&&(s(h),h.onreadystatechange=a)},f==="GET"&&(g=null,typeof u.parameters=="string"&&(d=o(d,u.parameters))),h.open(f,d,!0),(f==="POST"||f==="PUT")&&h.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),h.send(g),h}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 v=this.splice(0);return v.forEach(function(y){y.cancel()}),v},cancelByCanvas:function(v){if(!v)return[];var y=this.filter(function(b){return typeof b.target=="object"&&b.target.canvas===v});return y.forEach(function(b){b.cancel()}),y},cancelByTarget:function(v){var y=this.findAnimationsByTarget(v);return y.forEach(function(b){b.cancel()}),y},findAnimationIndex:function(v){return this.indexOf(this.findAnimation(v))},findAnimation:function(v){return this.find(function(y){return y.cancel===v})},findAnimationsByTarget:function(v){return v?this.filter(function(y){return y.target===v}):[]}});function d(){return!1}function u(v,y,b,w){return-b*Math.cos(v/w*(Math.PI/2))+b+y}function f(v){v||(v={});var y=!1,b,w=function(){var S=t.runningAnimations.indexOf(b);return S>-1&&t.runningAnimations.splice(S,1)[0]};return b=o(a(v),{cancel:function(){return y=!0,w()},currentValue:"startValue"in v?v.startValue:0,completionRate:0,durationRate:0}),t.runningAnimations.push(b),g(function(S){var C=S||+new Date,T=v.duration||500,k=C+T,A,P=v.onChange||d,z=v.abort||d,I=v.onComplete||d,$=v.easing||u,O="startValue"in v?v.startValue.length>0:!1,Y="startValue"in v?v.startValue:0,ae="endValue"in v?v.endValue:100,q=v.byValue||(O?Y.map(function(J,E){return ae[E]-Y[E]}):ae-Y);v.onStart&&v.onStart(),function J(E){A=E||+new Date;var V=A>k?T:A-C,M=V/T,R=O?Y.map(function(D,B){return $(V,Y[B],q[B],T)}):$(V,Y,q,T),W=Math.abs(O?(R[0]-Y[0])/q[0]:(R-Y)/q);if(b.currentValue=O?R.slice():R,b.completionRate=W,b.durationRate=M,!y){if(z(R,W,M)){w();return}if(A>k){b.currentValue=O?ae.slice():ae,b.completionRate=1,b.durationRate=1,P(O?ae.slice():ae,1,1),I(ae,1,1),w();return}else P(R,W,M),g(J)}}(C)}),b.cancel}var s=t.window.requestAnimationFrame||t.window.webkitRequestAnimationFrame||t.window.mozRequestAnimationFrame||t.window.oRequestAnimationFrame||t.window.msRequestAnimationFrame||function(v){return t.window.setTimeout(v,1e3/60)},h=t.window.cancelAnimationFrame||t.window.clearTimeout;function g(){return s.apply(t.window,arguments)}function p(){return h.apply(t.window,arguments)}t.util.animate=f,t.util.requestAnimFrame=g,t.util.cancelAnimFrame=p,t.runningAnimations=c}(),function(){function o(c,d,u){var f="rgba("+parseInt(c[0]+u*(d[0]-c[0]),10)+","+parseInt(c[1]+u*(d[1]-c[1]),10)+","+parseInt(c[2]+u*(d[2]-c[2]),10);return f+=","+(c&&d?parseFloat(c[3]+u*(d[3]-c[3])):1),f+=")",f}function a(c,d,u,f){var s=new t.Color(c).getSource(),h=new t.Color(d).getSource(),g=f.onComplete,p=f.onChange;return f=f||{},t.util.animate(t.util.object.extend(f,{duration:u||500,startValue:s,endValue:h,byValue:h,easing:function(v,y,b,w){var S=f.colorEasing?f.colorEasing(v,w):1-Math.cos(v/w*(Math.PI/2));return o(y,b,S)},onComplete:function(v,y,b){if(g)return g(o(h,h,0),y,b)},onChange:function(v,y,b){if(p){if(Array.isArray(v))return p(o(v,v,0),y,b);p(v,y,b)}}}))}t.util.animateColor=a}(),function(){function o(E,V,M,R){return E<Math.abs(V)?(E=V,R=M/4):V===0&&E===0?R=M/(2*Math.PI)*Math.asin(1):R=M/(2*Math.PI)*Math.asin(V/E),{a:E,c:V,p:M,s:R}}function a(E,V,M){return E.a*Math.pow(2,10*(V-=1))*Math.sin((V*M-E.s)*(2*Math.PI)/E.p)}function c(E,V,M,R){return M*((E=E/R-1)*E*E+1)+V}function d(E,V,M,R){return E/=R/2,E<1?M/2*E*E*E+V:M/2*((E-=2)*E*E+2)+V}function u(E,V,M,R){return M*(E/=R)*E*E*E+V}function f(E,V,M,R){return-M*((E=E/R-1)*E*E*E-1)+V}function s(E,V,M,R){return E/=R/2,E<1?M/2*E*E*E*E+V:-M/2*((E-=2)*E*E*E-2)+V}function h(E,V,M,R){return M*(E/=R)*E*E*E*E+V}function g(E,V,M,R){return M*((E=E/R-1)*E*E*E*E+1)+V}function p(E,V,M,R){return E/=R/2,E<1?M/2*E*E*E*E*E+V:M/2*((E-=2)*E*E*E*E+2)+V}function v(E,V,M,R){return-M*Math.cos(E/R*(Math.PI/2))+M+V}function y(E,V,M,R){return M*Math.sin(E/R*(Math.PI/2))+V}function b(E,V,M,R){return-M/2*(Math.cos(Math.PI*E/R)-1)+V}function w(E,V,M,R){return E===0?V:M*Math.pow(2,10*(E/R-1))+V}function S(E,V,M,R){return E===R?V+M:M*(-Math.pow(2,-10*E/R)+1)+V}function C(E,V,M,R){return E===0?V:E===R?V+M:(E/=R/2,E<1?M/2*Math.pow(2,10*(E-1))+V:M/2*(-Math.pow(2,-10*--E)+2)+V)}function T(E,V,M,R){return-M*(Math.sqrt(1-(E/=R)*E)-1)+V}function k(E,V,M,R){return M*Math.sqrt(1-(E=E/R-1)*E)+V}function A(E,V,M,R){return E/=R/2,E<1?-M/2*(Math.sqrt(1-E*E)-1)+V:M/2*(Math.sqrt(1-(E-=2)*E)+1)+V}function P(E,V,M,R){var W=1.70158,D=0,B=M;if(E===0)return V;if(E/=R,E===1)return V+M;D||(D=R*.3);var Z=o(B,M,D,W);return-a(Z,E,R)+V}function z(E,V,M,R){var W=1.70158,D=0,B=M;if(E===0)return V;if(E/=R,E===1)return V+M;D||(D=R*.3);var Z=o(B,M,D,W);return Z.a*Math.pow(2,-10*E)*Math.sin((E*R-Z.s)*(2*Math.PI)/Z.p)+Z.c+V}function I(E,V,M,R){var W=1.70158,D=0,B=M;if(E===0)return V;if(E/=R/2,E===2)return V+M;D||(D=R*(.3*1.5));var Z=o(B,M,D,W);return E<1?-.5*a(Z,E,R)+V:Z.a*Math.pow(2,-10*(E-=1))*Math.sin((E*R-Z.s)*(2*Math.PI)/Z.p)*.5+Z.c+V}function $(E,V,M,R,W){return W===void 0&&(W=1.70158),M*(E/=R)*E*((W+1)*E-W)+V}function O(E,V,M,R,W){return W===void 0&&(W=1.70158),M*((E=E/R-1)*E*((W+1)*E+W)+1)+V}function Y(E,V,M,R,W){return W===void 0&&(W=1.70158),E/=R/2,E<1?M/2*(E*E*(((W*=1.525)+1)*E-W))+V:M/2*((E-=2)*E*(((W*=1.525)+1)*E+W)+2)+V}function ae(E,V,M,R){return M-q(R-E,0,M,R)+V}function q(E,V,M,R){return(E/=R)<1/2.75?M*(7.5625*E*E)+V:E<2/2.75?M*(7.5625*(E-=1.5/2.75)*E+.75)+V:E<2.5/2.75?M*(7.5625*(E-=2.25/2.75)*E+.9375)+V:M*(7.5625*(E-=2.625/2.75)*E+.984375)+V}function J(E,V,M,R){return E<R/2?ae(E*2,0,M,R)*.5+V:q(E*2-R,0,M,R)*.5+M*.5+V}t.util.ease={easeInQuad:function(E,V,M,R){return M*(E/=R)*E+V},easeOutQuad:function(E,V,M,R){return-M*(E/=R)*(E-2)+V},easeInOutQuad:function(E,V,M,R){return E/=R/2,E<1?M/2*E*E+V:-M/2*(--E*(E-2)-1)+V},easeInCubic:function(E,V,M,R){return M*(E/=R)*E*E+V},easeOutCubic:c,easeInOutCubic:d,easeInQuart:u,easeOutQuart:f,easeInOutQuart:s,easeInQuint:h,easeOutQuint:g,easeInOutQuint:p,easeInSine:v,easeOutSine:y,easeInOutSine:b,easeInExpo:w,easeOutExpo:S,easeInOutExpo:C,easeInCirc:T,easeOutCirc:k,easeInOutCirc:A,easeInElastic:P,easeOutElastic:z,easeInOutElastic:I,easeInBack:$,easeOutBack:O,easeInOutBack:Y,easeInBounce:ae,easeOutBounce:q,easeInOutBounce:J}}(),function(o){var a=o.fabric||(o.fabric={}),c=a.util.object.extend,d=a.util.object.clone,u=a.util.toFixed,f=a.util.parseUnit,s=a.util.multiplyTransformMatrices,h=["path","circle","polygon","polyline","ellipse","rect","line","image","text"],g=["symbol","image","marker","pattern","view","svg"],p=["pattern","defs","symbol","metadata","clipPath","mask","desc"],v=["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"},w="font-size",S="clip-path";a.svgValidTagNamesRegEx=k(h),a.svgViewBoxElementsRegEx=k(g),a.svgInvalidAncestorsRegEx=k(p),a.svgValidParentsRegEx=k(v),a.cssRules={},a.gradientDefs={},a.clipPaths={};function C(D){return D in y?y[D]:D}function T(D,B,Z,H){var Q=Array.isArray(B),te;if((D==="fill"||D==="stroke")&&B==="none")B="";else{if(D==="strokeUniform")return B==="non-scaling-stroke";if(D==="strokeDashArray")B==="none"?B=null:B=B.replace(/,/g," ").split(/\s+/).map(parseFloat);else if(D==="transformMatrix")Z&&Z.transformMatrix?B=s(Z.transformMatrix,a.parseTransformAttribute(B)):B=a.parseTransformAttribute(B);else if(D==="visible")B=B!=="none"&&B!=="hidden",Z&&Z.visible===!1&&(B=!1);else if(D==="opacity")B=parseFloat(B),Z&&typeof Z.opacity<"u"&&(B*=Z.opacity);else if(D==="textAnchor")B=B==="start"?"left":B==="end"?"right":"center";else if(D==="charSpacing")te=f(B,H)/H*1e3;else if(D==="paintFirst"){var fe=B.indexOf("fill"),me=B.indexOf("stroke"),B="fill";(fe>-1&&me>-1&&me<fe||fe===-1&&me>-1)&&(B="stroke")}else{if(D==="href"||D==="xlink:href"||D==="font")return B;if(D==="imageSmoothing")return B==="optimizeQuality";te=Q?B.map(f):f(B,H)}}return!Q&&isNaN(te)?B:te}function k(D){return new RegExp("^("+D.join("|")+")\\b","i")}function A(D){for(var B in b)if(!(typeof D[b[B]]>"u"||D[B]==="")){if(typeof D[B]>"u"){if(!a.Object.prototype[B])continue;D[B]=a.Object.prototype[B]}if(D[B].indexOf("url(")!==0){var Z=new a.Color(D[B]);D[B]=Z.setAlpha(u(Z.getAlpha()*D[b[B]],2)).toRgba()}}return D}function P(D,B){var Z,H=[],Q,te,fe;for(te=0,fe=B.length;te<fe;te++)Z=B[te],Q=D.getElementsByTagName(Z),H=H.concat(Array.prototype.slice.call(Q));return H}a.parseTransformAttribute=function(){function D(G,pe){var re=a.util.cos(pe[0]),he=a.util.sin(pe[0]),Se=0,xe=0;pe.length===3&&(Se=pe[1],xe=pe[2]),G[0]=re,G[1]=he,G[2]=-he,G[3]=re,G[4]=Se-(re*Se-he*xe),G[5]=xe-(he*Se+re*xe)}function B(G,pe){var re=pe[0],he=pe.length===2?pe[1]:pe[0];G[0]=re,G[3]=he}function Z(G,pe,re){G[re]=Math.tan(a.util.degreesToRadians(pe[0]))}function H(G,pe){G[4]=pe[0],pe.length===2&&(G[5]=pe[1])}var Q=a.iMatrix,te=a.reNum,fe=a.commaWsp,me="(?:(skewX)\\s*\\(\\s*("+te+")\\s*\\))",_e="(?:(skewY)\\s*\\(\\s*("+te+")\\s*\\))",j="(?:(rotate)\\s*\\(\\s*("+te+")(?:"+fe+"("+te+")"+fe+"("+te+"))?\\s*\\))",x="(?:(scale)\\s*\\(\\s*("+te+")(?:"+fe+"("+te+"))?\\s*\\))",U="(?:(translate)\\s*\\(\\s*("+te+")(?:"+fe+"("+te+"))?\\s*\\))",K="(?:(matrix)\\s*\\(\\s*("+te+")"+fe+"("+te+")"+fe+"("+te+")"+fe+"("+te+")"+fe+"("+te+")"+fe+"("+te+")\\s*\\))",L="(?:"+K+"|"+U+"|"+x+"|"+j+"|"+me+"|"+_e+")",F="(?:"+L+"(?:"+fe+"*"+L+")*)",X="^\\s*(?:"+F+"?)\\s*$",de=new RegExp(X),le=new RegExp(L,"g");return function(G){var pe=Q.concat(),re=[];if(!G||G&&!de.test(G))return pe;G.replace(le,function(Se){var xe=new RegExp(L).exec(Se).filter(function(ye){return!!ye}),Oe=xe[1],Le=xe.slice(2).map(parseFloat);switch(Oe){case"translate":H(pe,Le);break;case"rotate":Le[0]=a.util.degreesToRadians(Le[0]),D(pe,Le);break;case"scale":B(pe,Le);break;case"skewX":Z(pe,Le,2);break;case"skewY":Z(pe,Le,1);break;case"matrix":pe=Le;break}re.push(pe.concat()),pe=Q.concat()});for(var he=re[0];re.length>1;)re.shift(),he=a.util.multiplyTransformMatrices(he,re[0]);return he}}();function z(D,B){var Z,H;D.replace(/;\s*$/,"").split(";").forEach(function(Q){var te=Q.split(":");Z=te[0].trim().toLowerCase(),H=te[1].trim(),B[Z]=H})}function I(D,B){var Z,H;for(var Q in D)typeof D[Q]>"u"||(Z=Q.toLowerCase(),H=D[Q],B[Z]=H)}function $(D,B){var Z={};for(var H in a.cssRules[B])if(O(D,H.split(" ")))for(var Q in a.cssRules[B][H])Z[Q]=a.cssRules[B][H][Q];return Z}function O(D,B){var Z,H=!0;return Z=ae(D,B.pop()),Z&&B.length&&(H=Y(D,B)),Z&&H&&B.length===0}function Y(D,B){for(var Z,H=!0;D.parentNode&&D.parentNode.nodeType===1&&B.length;)H&&(Z=B.pop()),D=D.parentNode,H=ae(D,Z);return B.length===0}function ae(D,B){var Z=D.nodeName,H=D.getAttribute("class"),Q=D.getAttribute("id"),te,fe;if(te=new RegExp("^"+Z,"i"),B=B.replace(te,""),Q&&B.length&&(te=new RegExp("#"+Q+"(?![a-zA-Z\\-]+)","i"),B=B.replace(te,"")),H&&B.length)for(H=H.split(" "),fe=H.length;fe--;)te=new RegExp("\\."+H[fe]+"(?![a-zA-Z\\-]+)","i"),B=B.replace(te,"");return B.length===0}function q(D,B){var Z;if(D.getElementById&&(Z=D.getElementById(B)),Z)return Z;var H,Q,te,fe=D.getElementsByTagName("*");for(Q=0,te=fe.length;Q<te;Q++)if(H=fe[Q],B===H.getAttribute("id"))return H}function J(D){for(var B=P(D,["use","svg:use"]),Z=0;B.length&&Z<B.length;){var H=B[Z],Q=H.getAttribute("xlink:href")||H.getAttribute("href");if(Q===null)return;var te=Q.slice(1),fe=H.getAttribute("x")||0,me=H.getAttribute("y")||0,_e=q(D,te).cloneNode(!0),j=(_e.getAttribute("transform")||"")+" translate("+fe+", "+me+")",x,U=B.length,K,L,F,X,de=a.svgNS;if(V(_e),/^svg$/i.test(_e.nodeName)){var le=_e.ownerDocument.createElementNS(de,"g");for(L=0,F=_e.attributes,X=F.length;L<X;L++)K=F.item(L),le.setAttributeNS(de,K.nodeName,K.nodeValue);for(;_e.firstChild;)le.appendChild(_e.firstChild);_e=le}for(L=0,F=H.attributes,X=F.length;L<X;L++)K=F.item(L),!(K.nodeName==="x"||K.nodeName==="y"||K.nodeName==="xlink:href"||K.nodeName==="href")&&(K.nodeName==="transform"?j=K.nodeValue+" "+j:_e.setAttribute(K.nodeName,K.nodeValue));_e.setAttribute("transform",j),_e.setAttribute("instantiated_by_use","1"),_e.removeAttribute("id"),x=H.parentNode,x.replaceChild(_e,H),B.length===U&&Z++}}var E=new RegExp("^\\s*("+a.reNum+"+)\\s*,?\\s*("+a.reNum+"+)\\s*,?\\s*("+a.reNum+"+)\\s*,?\\s*("+a.reNum+"+)\\s*$");function V(D){if(!a.svgViewBoxElementsRegEx.test(D.nodeName))return{};var B=D.getAttribute("viewBox"),Z=1,H=1,Q=0,te=0,fe,me,_e,j,x=D.getAttribute("width"),U=D.getAttribute("height"),K=D.getAttribute("x")||0,L=D.getAttribute("y")||0,F=D.getAttribute("preserveAspectRatio")||"",X=!B||!(B=B.match(E)),de=!x||!U||x==="100%"||U==="100%",le=X&&de,G={},pe="",re=0,he=0;if(G.width=0,G.height=0,G.toBeParsed=le,X&&(K||L)&&D.parentNode&&D.parentNode.nodeName!=="#document"&&(pe=" translate("+f(K)+" "+f(L)+") ",_e=(D.getAttribute("transform")||"")+pe,D.setAttribute("transform",_e),D.removeAttribute("x"),D.removeAttribute("y")),le)return G;if(X)return G.width=f(x),G.height=f(U),G;if(Q=-parseFloat(B[1]),te=-parseFloat(B[2]),fe=parseFloat(B[3]),me=parseFloat(B[4]),G.minX=Q,G.minY=te,G.viewBoxWidth=fe,G.viewBoxHeight=me,de?(G.width=fe,G.height=me):(G.width=f(x),G.height=f(U),Z=G.width/fe,H=G.height/me),F=a.util.parsePreserveAspectRatioAttribute(F),F.alignX!=="none"&&(F.meetOrSlice==="meet"&&(H=Z=Z>H?H:Z),F.meetOrSlice==="slice"&&(H=Z=Z>H?Z:H),re=G.width-fe*Z,he=G.height-me*Z,F.alignX==="Mid"&&(re/=2),F.alignY==="Mid"&&(he/=2),F.alignX==="Min"&&(re=0),F.alignY==="Min"&&(he=0)),Z===1&&H===1&&Q===0&&te===0&&K===0&&L===0)return G;if((K||L)&&D.parentNode.nodeName!=="#document"&&(pe=" translate("+f(K)+" "+f(L)+") "),_e=pe+" matrix("+Z+" 0 0 "+H+" "+(Q*Z+re)+" "+(te*H+he)+") ",D.nodeName==="svg"){for(j=D.ownerDocument.createElementNS(a.svgNS,"g");D.firstChild;)j.appendChild(D.firstChild);D.appendChild(j)}else j=D,j.removeAttribute("x"),j.removeAttribute("y"),_e=j.getAttribute("transform")+_e;return j.setAttribute("transform",_e),G}function M(D,B){for(;D&&(D=D.parentNode);)if(D.nodeName&&B.test(D.nodeName.replace("svg:",""))&&!D.getAttribute("instantiated_by_use"))return!0;return!1}a.parseSVGDocument=function(D,B,Z,H){if(!!D){J(D);var Q=a.Object.__uid++,te,fe,me=V(D),_e=a.util.toArray(D.getElementsByTagName("*"));if(me.crossOrigin=H&&H.crossOrigin,me.svgUid=Q,_e.length===0&&a.isLikelyNode){_e=D.selectNodes('//*[name(.)!="svg"]');var j=[];for(te=0,fe=_e.length;te<fe;te++)j[te]=_e[te];_e=j}var x=_e.filter(function(K){return V(K),a.svgValidTagNamesRegEx.test(K.nodeName.replace("svg:",""))&&!M(K,a.svgInvalidAncestorsRegEx)});if(!x||x&&!x.length){B&&B([],{});return}var U={};_e.filter(function(K){return K.nodeName.replace("svg:","")==="clipPath"}).forEach(function(K){var L=K.getAttribute("id");U[L]=a.util.toArray(K.getElementsByTagName("*")).filter(function(F){return a.svgValidTagNamesRegEx.test(F.nodeName.replace("svg:",""))})}),a.gradientDefs[Q]=a.getGradientDefs(D),a.cssRules[Q]=a.getCSSRules(D),a.clipPaths[Q]=U,a.parseElements(x,function(K,L){B&&(B(K,me,L,_e),delete a.gradientDefs[Q],delete a.cssRules[Q],delete a.clipPaths[Q])},d(me),Z,H)}};function R(D,B){var Z=["gradientTransform","x1","x2","y1","y2","gradientUnits","cx","cy","r","fx","fy"],H="xlink:href",Q=B.getAttribute(H).slice(1),te=q(D,Q);if(te&&te.getAttribute(H)&&R(D,te),Z.forEach(function(me){te&&!B.hasAttribute(me)&&te.hasAttribute(me)&&B.setAttribute(me,te.getAttribute(me))}),!B.children.length)for(var fe=te.cloneNode(!0);fe.firstChild;)B.appendChild(fe.firstChild);B.removeAttribute(H)}var W=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(D,B){var Z=D.match(W);if(!!Z){var H=Z[1],Q=Z[3],te=Z[4],fe=Z[5],me=Z[6];H&&(B.fontStyle=H),Q&&(B.fontWeight=isNaN(parseFloat(Q))?Q:parseFloat(Q)),te&&(B.fontSize=f(te)),me&&(B.fontFamily=me),fe&&(B.lineHeight=fe==="normal"?1:fe)}},getGradientDefs:function(D){var B=["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"],Z=P(D,B),H,Q=0,te={};for(Q=Z.length;Q--;)H=Z[Q],H.getAttribute("xlink:href")&&R(D,H),te[H.getAttribute("id")]=H;return te},parseAttributes:function(D,B,Z){if(!!D){var H,Q={},te,fe;typeof Z>"u"&&(Z=D.getAttribute("svgUid")),D.parentNode&&a.svgValidParentsRegEx.test(D.parentNode.nodeName)&&(Q=a.parseAttributes(D.parentNode,B,Z));var me=B.reduce(function(F,X){return H=D.getAttribute(X),H&&(F[X]=H),F},{}),_e=c($(D,Z),a.parseStyleAttribute(D));me=c(me,_e),_e[S]&&D.setAttribute(S,_e[S]),te=fe=Q.fontSize||a.Text.DEFAULT_SVG_FONT_SIZE,me[w]&&(me[w]=te=f(me[w],fe));var j,x,U={};for(var K in me)j=C(K),x=T(j,me[K],Q,te),U[j]=x;U&&U.font&&a.parseFontDeclaration(U.font,U);var L=c(Q,U);return a.svgValidParentsRegEx.test(D.nodeName)?L:A(L)}},parseElements:function(D,B,Z,H,Q){new a.ElementsParser(D,B,Z,H,Q).parse()},parseStyleAttribute:function(D){var B={},Z=D.getAttribute("style");return Z&&(typeof Z=="string"?z(Z,B):I(Z,B)),B},parsePointsAttribute:function(D){if(!D)return null;D=D.replace(/,/g," ").trim(),D=D.split(/\s+/);var B=[],Z,H;for(Z=0,H=D.length;Z<H;Z+=2)B.push({x:parseFloat(D[Z]),y:parseFloat(D[Z+1])});return B},getCSSRules:function(D){var B=D.getElementsByTagName("style"),Z,H,Q={},te;for(Z=0,H=B.length;Z<H;Z++){var fe=B[Z].textContent;fe=fe.replace(/\/\*[\s\S]*?\*\//g,""),fe.trim()!==""&&(te=fe.split("}"),te=te.filter(function(me){return me.trim()}),te.forEach(function(me){var _e=me.split("{"),j={},x=_e[1].trim(),U=x.split(";").filter(function(X){return X.trim()});for(Z=0,H=U.length;Z<H;Z++){var K=U[Z].split(":"),L=K[0].trim(),F=K[1].trim();j[L]=F}me=_e[0].trim(),me.split(",").forEach(function(X){X=X.replace(/^svg/i,"").trim(),X!==""&&(Q[X]?a.util.object.extend(Q[X],j):Q[X]=a.util.object.clone(j))})}))}return Q},loadSVGFromURL:function(D,B,Z,H){D=D.replace(/^\n\s*/,"").trim(),new a.util.request(D,{method:"get",onComplete:Q});function Q(te){var fe=te.responseXML;if(!fe||!fe.documentElement)return B&&B(null),!1;a.parseSVGDocument(fe.documentElement,function(me,_e,j,x){B&&B(me,_e,j,x)},Z,H)}},loadSVGFromString:function(D,B,Z,H){var Q=new a.window.DOMParser,te=Q.parseFromString(D.trim(),"text/xml");a.parseSVGDocument(te.documentElement,function(fe,me,_e,j){B(fe,me,_e,j)},Z,H)}})}(e),t.ElementsParser=function(o,a,c,d,u,f){this.elements=o,this.callback=a,this.options=c,this.reviver=d,this.svgUid=c&&c.svgUid||0,this.parsingOptions=u,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,d){c.setAttribute("svgUid",a.svgUid),a.createObject(c,d)})},o.findTag=function(a){return t[t.util.string.capitalize(a.tagName.replace("svg:",""))]},o.createObject=function(a,c){var d=this.findTag(a);if(d&&d.fromElement)try{d.fromElement(a,this.createCallback(c,a),this.options)}catch(u){t.log(u)}else this.checkIfDone()},o.createCallback=function(a,c){var d=this;return function(u){var f;d.resolveGradient(u,c,"fill"),d.resolveGradient(u,c,"stroke"),u instanceof t.Image&&u._originalElement&&(f=u.parsePreserveAspectRatioAttribute(c)),u._removeTransformMatrix(f),d.resolveClipPath(u,c),d.reviver&&d.reviver(c,u),d.instances[a]=u,d.checkIfDone()}},o.extractPropertyDefinition=function(a,c,d){var u=a[c],f=this.regexUrl;if(!!f.test(u)){f.lastIndex=0;var s=f.exec(u)[1];return f.lastIndex=0,t[d][this.svgUid][s]}},o.resolveGradient=function(a,c,d){var u=this.extractPropertyDefinition(a,d,"gradientDefs");if(u){var f=c.getAttribute(d+"-opacity"),s=t.Gradient.fromElement(u,a,f,this.options);a.set(d,s)}},o.createClipPathCallback=function(a,c){return function(d){d._removeTransformMatrix(),d.fillRule=d.clipRule,c.push(d)}},o.resolveClipPath=function(a,c){var d=this.extractPropertyDefinition(a,"clipPath","clipPaths"),u,f,s,h,g,p;if(d){h=[],s=t.util.invertTransform(a.calcTransformMatrix());for(var v=d[0].parentNode,y=c;y.parentNode&&y.getAttribute("clip-path")!==a.clipPath;)y=y.parentNode;y.parentNode.appendChild(v);for(var b=0;b<d.length;b++)u=d[b],f=this.findTag(u),f.fromElement(u,this.createClipPathCallback(a,h),this.options);h.length===1?d=h[0]:d=new t.Group(h),g=t.util.multiplyTransformMatrices(s,d.calcTransformMatrix()),d.clipPath&&this.resolveClipPath(d,y);var p=t.util.qrDecompose(g);d.flipX=!1,d.flipY=!1,d.set("scaleX",p.scaleX),d.set("scaleY",p.scaleY),d.angle=p.angle,d.skewX=p.skewX,d.skewY=0,d.setPositionByOrigin({x:p.translateX,y:p.translateY},"center","center"),a.clipPath=d}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(d,u){this.x=d,this.y=u}c.prototype={type:"point",constructor:c,add:function(d){return new c(this.x+d.x,this.y+d.y)},addEquals:function(d){return this.x+=d.x,this.y+=d.y,this},scalarAdd:function(d){return new c(this.x+d,this.y+d)},scalarAddEquals:function(d){return this.x+=d,this.y+=d,this},subtract:function(d){return new c(this.x-d.x,this.y-d.y)},subtractEquals:function(d){return this.x-=d.x,this.y-=d.y,this},scalarSubtract:function(d){return new c(this.x-d,this.y-d)},scalarSubtractEquals:function(d){return this.x-=d,this.y-=d,this},multiply:function(d){return new c(this.x*d,this.y*d)},multiplyEquals:function(d){return this.x*=d,this.y*=d,this},divide:function(d){return new c(this.x/d,this.y/d)},divideEquals:function(d){return this.x/=d,this.y/=d,this},eq:function(d){return this.x===d.x&&this.y===d.y},lt:function(d){return this.x<d.x&&this.y<d.y},lte:function(d){return this.x<=d.x&&this.y<=d.y},gt:function(d){return this.x>d.x&&this.y>d.y},gte:function(d){return this.x>=d.x&&this.y>=d.y},lerp:function(d,u){return typeof u>"u"&&(u=.5),u=Math.max(Math.min(1,u),0),new c(this.x+(d.x-this.x)*u,this.y+(d.y-this.y)*u)},distanceFrom:function(d){var u=this.x-d.x,f=this.y-d.y;return Math.sqrt(u*u+f*f)},midPointFrom:function(d){return this.lerp(d)},min:function(d){return new c(Math.min(this.x,d.x),Math.min(this.y,d.y))},max:function(d){return new c(Math.max(this.x,d.x),Math.max(this.y,d.y))},toString:function(){return this.x+","+this.y},setXY:function(d,u){return this.x=d,this.y=u,this},setX:function(d){return this.x=d,this},setY:function(d){return this.y=d,this},setFromPoint:function(d){return this.x=d.x,this.y=d.y,this},swap:function(d){var u=this.x,f=this.y;this.x=d.x,this.y=d.y,d.x=u,d.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(d){this.status=d,this.points=[]}a.Intersection=c,a.Intersection.prototype={constructor:c,appendPoint:function(d){return this.points.push(d),this},appendPoints:function(d){return this.points=this.points.concat(d),this}},a.Intersection.intersectLineLine=function(d,u,f,s){var h,g=(s.x-f.x)*(d.y-f.y)-(s.y-f.y)*(d.x-f.x),p=(u.x-d.x)*(d.y-f.y)-(u.y-d.y)*(d.x-f.x),v=(s.y-f.y)*(u.x-d.x)-(s.x-f.x)*(u.y-d.y);if(v!==0){var y=g/v,b=p/v;0<=y&&y<=1&&0<=b&&b<=1?(h=new c("Intersection"),h.appendPoint(new a.Point(d.x+y*(u.x-d.x),d.y+y*(u.y-d.y)))):h=new c}else g===0||p===0?h=new c("Coincident"):h=new c("Parallel");return h},a.Intersection.intersectLinePolygon=function(d,u,f){var s=new c,h=f.length,g,p,v,y;for(y=0;y<h;y++)g=f[y],p=f[(y+1)%h],v=c.intersectLineLine(d,u,g,p),s.appendPoints(v.points);return s.points.length>0&&(s.status="Intersection"),s},a.Intersection.intersectPolygonPolygon=function(d,u){var f=new c,s=d.length,h;for(h=0;h<s;h++){var g=d[h],p=d[(h+1)%s],v=c.intersectLinePolygon(g,p,u);f.appendPoints(v.points)}return f.points.length>0&&(f.status="Intersection"),f},a.Intersection.intersectPolygonRectangle=function(d,u,f){var s=u.min(f),h=u.max(f),g=new a.Point(h.x,s.y),p=new a.Point(s.x,h.y),v=c.intersectLinePolygon(s,g,d),y=c.intersectLinePolygon(g,h,d),b=c.intersectLinePolygon(h,p,d),w=c.intersectLinePolygon(p,s,d),S=new c;return S.appendPoints(v.points),S.appendPoints(y.points),S.appendPoints(b.points),S.appendPoints(w.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(u){u?this._tryParsingColor(u):this.setSource([0,0,0,1])}a.Color=c,a.Color.prototype={_tryParsingColor:function(u){var f;u in c.colorNameMap&&(u=c.colorNameMap[u]),u==="transparent"&&(f=[255,255,255,0]),f||(f=c.sourceFromHex(u)),f||(f=c.sourceFromRgb(u)),f||(f=c.sourceFromHsl(u)),f||(f=[0,0,0,1]),f&&this.setSource(f)},_rgbToHsl:function(u,f,s){u/=255,f/=255,s/=255;var h,g,p,v=a.util.array.max([u,f,s]),y=a.util.array.min([u,f,s]);if(p=(v+y)/2,v===y)h=g=0;else{var b=v-y;switch(g=p>.5?b/(2-v-y):b/(v+y),v){case u:h=(f-s)/b+(f<s?6:0);break;case f:h=(s-u)/b+2;break;case s:h=(u-f)/b+4;break}h/=6}return[Math.round(h*360),Math.round(g*100),Math.round(p*100)]},getSource:function(){return this._source},setSource:function(u){this._source=u},toRgb:function(){var u=this.getSource();return"rgb("+u[0]+","+u[1]+","+u[2]+")"},toRgba:function(){var u=this.getSource();return"rgba("+u[0]+","+u[1]+","+u[2]+","+u[3]+")"},toHsl:function(){var u=this.getSource(),f=this._rgbToHsl(u[0],u[1],u[2]);return"hsl("+f[0]+","+f[1]+"%,"+f[2]+"%)"},toHsla:function(){var u=this.getSource(),f=this._rgbToHsl(u[0],u[1],u[2]);return"hsla("+f[0]+","+f[1]+"%,"+f[2]+"%,"+u[3]+")"},toHex:function(){var u=this.getSource(),f,s,h;return f=u[0].toString(16),f=f.length===1?"0"+f:f,s=u[1].toString(16),s=s.length===1?"0"+s:s,h=u[2].toString(16),h=h.length===1?"0"+h:h,f.toUpperCase()+s.toUpperCase()+h.toUpperCase()},toHexa:function(){var u=this.getSource(),f;return f=Math.round(u[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(u){var f=this.getSource();return f[3]=u,this.setSource(f),this},toGrayscale:function(){var u=this.getSource(),f=parseInt((u[0]*.3+u[1]*.59+u[2]*.11).toFixed(0),10),s=u[3];return this.setSource([f,f,f,s]),this},toBlackWhite:function(u){var f=this.getSource(),s=(f[0]*.3+f[1]*.59+f[2]*.11).toFixed(0),h=f[3];return u=u||127,s=Number(s)<Number(u)?0:255,this.setSource([s,s,s,h]),this},overlayWith:function(u){u instanceof c||(u=new c(u));var f=[],s=this.getAlpha(),h=.5,g=this.getSource(),p=u.getSource(),v;for(v=0;v<3;v++)f.push(Math.round(g[v]*(1-h)+p[v]*h));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 d(u,f,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?u+(f-u)*6*s:s<1/2?f:s<2/3?u+(f-u)*(2/3-s)*6:u}a.Color.fromRgb=function(u){return c.fromSource(c.sourceFromRgb(u))},a.Color.sourceFromRgb=function(u){var f=u.match(c.reRGBa);if(f){var s=parseInt(f[1],10)/(/%$/.test(f[1])?100:1)*(/%$/.test(f[1])?255:1),h=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(h,10),parseInt(g,10),f[4]?parseFloat(f[4]):1]}},a.Color.fromRgba=c.fromRgb,a.Color.fromHsl=function(u){return c.fromSource(c.sourceFromHsl(u))},a.Color.sourceFromHsl=function(u){var f=u.match(c.reHSLa);if(!!f){var s=(parseFloat(f[1])%360+360)%360/360,h=parseFloat(f[2])/(/%$/.test(f[2])?100:1),g=parseFloat(f[3])/(/%$/.test(f[3])?100:1),p,v,y;if(h===0)p=v=y=g;else{var b=g<=.5?g*(h+1):g+h-g*h,w=g*2-b;p=d(w,b,s+1/3),v=d(w,b,s),y=d(w,b,s-1/3)}return[Math.round(p*255),Math.round(v*255),Math.round(y*255),f[4]?parseFloat(f[4]):1]}},a.Color.fromHsla=c.fromHsl,a.Color.fromHex=function(u){return c.fromSource(c.sourceFromHex(u))},a.Color.sourceFromHex=function(u){if(u.match(c.reHex)){var f=u.slice(u.indexOf("#")+1),s=f.length===3||f.length===4,h=f.length===8||f.length===4,g=s?f.charAt(0)+f.charAt(0):f.substring(0,2),p=s?f.charAt(1)+f.charAt(1):f.substring(2,4),v=s?f.charAt(2)+f.charAt(2):f.substring(4,6),y=h?s?f.charAt(3)+f.charAt(3):f.substring(6,8):"FF";return[parseInt(g,16),parseInt(p,16),parseInt(v,16),parseFloat((parseInt(y,16)/255).toFixed(2))]}},a.Color.fromSource=function(u){var f=new c;return f.setSource(u),f}}(e),function(o){var a=o.fabric||(o.fabric={}),c=["e","se","s","sw","w","nw","n","ne","e"],d=["ns","nesw","ew","nwse"],u={},f="left",s="top",h="right",g="bottom",p="center",v={top:g,bottom:s,left:h,right:f,center:p},y=a.util.radiansToDegrees,b=Math.sign||function(j){return(j>0)-(j<0)||+j};function w(j,x){var U=j.angle+y(Math.atan2(x.y,x.x))+360;return Math.round(U%360/45)}function S(j,x){var U=x.transform.target,K=U.canvas,L=a.util.object.clone(x);L.target=U,K&&K.fire("object:"+j,L),U.fire(j,x)}function C(j,x){var U=x.canvas,K=U.uniScaleKey,L=j[K];return U.uniformScaling&&!L||!U.uniformScaling&&L}function T(j){return j.originX===p&&j.originY===p}function k(j,x,U){var K=j.lockScalingX,L=j.lockScalingY;return!!(K&&L||!x&&(K||L)&&U||K&&x==="x"||L&&x==="y")}function A(j,x,U){var K="not-allowed",L=C(j,U),F="";if(x.x!==0&&x.y===0?F="x":x.x===0&&x.y!==0&&(F="y"),k(U,F,L))return K;var X=w(U,x);return c[X]+"-resize"}function P(j,x,U){var K="not-allowed";if(x.x!==0&&U.lockSkewingY||x.y!==0&&U.lockSkewingX)return K;var L=w(U,x)%4;return d[L]+"-resize"}function z(j,x,U){return j[U.canvas.altActionKey]?u.skewCursorStyleHandler(j,x,U):u.scaleCursorStyleHandler(j,x,U)}function I(j,x,U){var K=j[U.canvas.altActionKey];if(x.x===0)return K?"skewX":"scaleY";if(x.y===0)return K?"skewY":"scaleX"}function $(j,x,U){return U.lockRotation?"not-allowed":x.cursorStyle}function O(j,x,U,K){return{e:j,transform:x,pointer:{x:U,y:K}}}function Y(j){return function(x,U,K,L){var F=U.target,X=F.getCenterPoint(),de=F.translateToOriginPoint(X,U.originX,U.originY),le=j(x,U,K,L);return F.setPositionByOrigin(de,U.originX,U.originY),le}}function ae(j,x){return function(U,K,L,F){var X=x(U,K,L,F);return X&&S(j,O(U,K,L,F)),X}}function q(j,x,U,K,L){var F=j.target,X=F.controls[j.corner],de=F.canvas.getZoom(),le=F.padding/de,G=F.toLocalPoint(new a.Point(K,L),x,U);return G.x>=le&&(G.x-=le),G.x<=-le&&(G.x+=le),G.y>=le&&(G.y-=le),G.y<=le&&(G.y+=le),G.x-=X.offsetX,G.y-=X.offsetY,G}function J(j){return j.flipX!==j.flipY}function E(j,x,U,K,L){if(j[x]!==0){var F=j._getTransformedDimensions()[K],X=L/F*j[U];j.set(U,X)}}function V(j,x,U,K){var L=x.target,F=L._getTransformedDimensions(0,L.skewY),X=q(x,x.originX,x.originY,U,K),de=Math.abs(X.x*2)-F.x,le=L.skewX,G;de<2?G=0:(G=y(Math.atan2(de/L.scaleX,F.y/L.scaleY)),x.originX===f&&x.originY===g&&(G=-G),x.originX===h&&x.originY===s&&(G=-G),J(L)&&(G=-G));var pe=le!==G;if(pe){var re=L._getTransformedDimensions().y;L.set("skewX",G),E(L,"skewY","scaleY","y",re)}return pe}function M(j,x,U,K){var L=x.target,F=L._getTransformedDimensions(L.skewX,0),X=q(x,x.originX,x.originY,U,K),de=Math.abs(X.y*2)-F.y,le=L.skewY,G;de<2?G=0:(G=y(Math.atan2(de/L.scaleY,F.x/L.scaleX)),x.originX===f&&x.originY===g&&(G=-G),x.originX===h&&x.originY===s&&(G=-G),J(L)&&(G=-G));var pe=le!==G;if(pe){var re=L._getTransformedDimensions().x;L.set("skewY",G),E(L,"skewX","scaleX","x",re)}return pe}function R(j,x,U,K){var L=x.target,F=L.skewX,X,de=x.originY;if(L.lockSkewingX)return!1;if(F===0){var le=q(x,p,p,U,K);le.x>0?X=f:X=h}else F>0&&(X=de===s?f:h),F<0&&(X=de===s?h:f),J(L)&&(X=X===f?h:f);x.originX=X;var G=ae("skewing",Y(V));return G(j,x,U,K)}function W(j,x,U,K){var L=x.target,F=L.skewY,X,de=x.originX;if(L.lockSkewingY)return!1;if(F===0){var le=q(x,p,p,U,K);le.y>0?X=s:X=g}else F>0&&(X=de===f?s:g),F<0&&(X=de===f?g:s),J(L)&&(X=X===s?g:s);x.originY=X;var G=ae("skewing",Y(M));return G(j,x,U,K)}function D(j,x,U,K){var L=x,F=L.target,X=F.translateToOriginPoint(F.getCenterPoint(),L.originX,L.originY);if(F.lockRotation)return!1;var de=Math.atan2(L.ey-X.y,L.ex-X.x),le=Math.atan2(K-X.y,U-X.x),G=y(le-de+L.theta),pe=!0;if(F.snapAngle>0){var re=F.snapAngle,he=F.snapThreshold||re,Se=Math.ceil(G/re)*re,xe=Math.floor(G/re)*re;Math.abs(G-xe)<he?G=xe:Math.abs(G-Se)<he&&(G=Se)}return G<0&&(G=360+G),G%=360,pe=F.angle!==G,F.angle=G,pe}function B(j,x,U,K,L){L=L||{};var F=x.target,X=F.lockScalingX,de=F.lockScalingY,le=L.by,G,pe,re,he,Se=C(j,F),xe=k(F,le,Se),Oe,Le,ye=x.gestureScale;if(xe)return!1;if(ye)pe=x.scaleX*ye,re=x.scaleY*ye;else{if(G=q(x,x.originX,x.originY,U,K),Oe=le!=="y"?b(G.x):1,Le=le!=="x"?b(G.y):1,x.signX||(x.signX=Oe),x.signY||(x.signY=Le),F.lockScalingFlip&&(x.signX!==Oe||x.signY!==Le))return!1;if(he=F._getTransformedDimensions(),Se&&!le){var Ce=Math.abs(G.x)+Math.abs(G.y),Me=x.original,Ie=Math.abs(he.x*Me.scaleX/F.scaleX)+Math.abs(he.y*Me.scaleY/F.scaleY),ht=Ce/Ie;pe=Me.scaleX*ht,re=Me.scaleY*ht}else pe=Math.abs(G.x*F.scaleX/he.x),re=Math.abs(G.y*F.scaleY/he.y);T(x)&&(pe*=2,re*=2),x.signX!==Oe&&le!=="y"&&(x.originX=v[x.originX],pe*=-1,x.signX=Oe),x.signY!==Le&&le!=="x"&&(x.originY=v[x.originY],re*=-1,x.signY=Le)}var Ut=F.scaleX,it=F.scaleY;return le?(le==="x"&&F.set("scaleX",pe),le==="y"&&F.set("scaleY",re)):(!X&&F.set("scaleX",pe),!de&&F.set("scaleY",re)),Ut!==F.scaleX||it!==F.scaleY}function Z(j,x,U,K){return B(j,x,U,K)}function H(j,x,U,K){return B(j,x,U,K,{by:"x"})}function Q(j,x,U,K){return B(j,x,U,K,{by:"y"})}function te(j,x,U,K){return j[x.target.canvas.altActionKey]?u.skewHandlerX(j,x,U,K):u.scalingY(j,x,U,K)}function fe(j,x,U,K){return j[x.target.canvas.altActionKey]?u.skewHandlerY(j,x,U,K):u.scalingX(j,x,U,K)}function me(j,x,U,K){var L=x.target,F=q(x,x.originX,x.originY,U,K),X=L.strokeWidth/(L.strokeUniform?L.scaleX:1),de=T(x)?2:1,le=L.width,G=Math.abs(F.x*de/L.scaleX)-X;return L.set("width",Math.max(G,0)),le!==G}function _e(j,x,U,K){var L=x.target,F=U-x.offsetX,X=K-x.offsetY,de=!L.get("lockMovementX")&&L.left!==F,le=!L.get("lockMovementY")&&L.top!==X;return de&&L.set("left",F),le&&L.set("top",X),(de||le)&&S("moving",O(j,x,U,K)),de||le}u.scaleCursorStyleHandler=A,u.skewCursorStyleHandler=P,u.scaleSkewCursorStyleHandler=z,u.rotationWithSnapping=ae("rotating",Y(D)),u.scalingEqually=ae("scaling",Y(Z)),u.scalingX=ae("scaling",Y(H)),u.scalingY=ae("scaling",Y(Q)),u.scalingYOrSkewingX=te,u.scalingXOrSkewingY=fe,u.changeWidth=ae("resizing",Y(me)),u.skewHandlerX=R,u.skewHandlerY=W,u.dragHandler=_e,u.scaleOrSkewActionName=I,u.rotationStyleHandler=$,u.fireEvent=S,u.wrapWithFixedAnchor=Y,u.wrapWithFireEvent=ae,u.getLocalPoint=q,a.controlsUtils=u}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.degreesToRadians,d=a.controlsUtils;function u(s,h,g,p,v){p=p||{};var y=this.sizeX||p.cornerSize||v.cornerSize,b=this.sizeY||p.cornerSize||v.cornerSize,w=typeof p.transparentCorners<"u"?p.transparentCorners:v.transparentCorners,S=w?"stroke":"fill",C=!w&&(p.cornerStrokeColor||v.cornerStrokeColor),T=h,k=g,A;s.save(),s.fillStyle=p.cornerColor||v.cornerColor,s.strokeStyle=p.cornerStrokeColor||v.cornerStrokeColor,y>b?(A=y,s.scale(1,b/y),k=g*y/b):b>y?(A=b,s.scale(y/b,1),T=h*b/y):A=y,s.lineWidth=1,s.beginPath(),s.arc(T,k,A/2,0,2*Math.PI,!1),s[S](),C&&s.stroke(),s.restore()}function f(s,h,g,p,v){p=p||{};var y=this.sizeX||p.cornerSize||v.cornerSize,b=this.sizeY||p.cornerSize||v.cornerSize,w=typeof p.transparentCorners<"u"?p.transparentCorners:v.transparentCorners,S=w?"stroke":"fill",C=!w&&(p.cornerStrokeColor||v.cornerStrokeColor),T=y/2,k=b/2;s.save(),s.fillStyle=p.cornerColor||v.cornerColor,s.strokeStyle=p.cornerStrokeColor||v.cornerStrokeColor,s.lineWidth=1,s.translate(h,g),s.rotate(c(v.angle)),s[S+"Rect"](-T,-k,y,b),C&&s.strokeRect(-T,-k,y,b),s.restore()}d.renderCircleControl=u,d.renderSquareControl=f}(e),function(o){var a=o.fabric||(o.fabric={});function c(d){for(var u in d)this[u]=d[u]}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(d,u){return u.cursorStyle},getActionName:function(d,u){return u.actionName},getVisibility:function(d,u){var f=d._controlsVisibility;return f&&typeof f[u]<"u"?f[u]:this.visible},setVisibility:function(d){this.visible=d},positionHandler:function(d,u){var f=a.util.transformPoint({x:this.x*d.x+this.offsetX,y:this.y*d.y+this.offsetY},u);return f},calcCornerCoords:function(d,u,f,s,h){var g,p,v,y,b=h?this.touchSizeX:this.sizeX,w=h?this.touchSizeY:this.sizeY;if(b&&w&&b!==w){var S=Math.atan2(w,b),C=Math.sqrt(b*b+w*w)/2,T=S-a.util.degreesToRadians(d),k=Math.PI/2-S-a.util.degreesToRadians(d);g=C*a.util.cos(T),p=C*a.util.sin(T),v=C*a.util.cos(k),y=C*a.util.sin(k)}else{var A=b&&w?b:u;C=A*.7071067812;var T=a.util.degreesToRadians(45-d);g=v=C*a.util.cos(T),p=y=C*a.util.sin(T)}return{tl:{x:f-y,y:s-v},tr:{x:f+g,y:s-p},bl:{x:f-g,y:s+p},br:{x:f+y,y:s+v}}},render:function(d,u,f,s,h){switch(s=s||{},s.cornerStyle||h.cornerStyle){case"circle":a.controlsUtils.renderCircleControl.call(this,d,u,f,s,h);break;default:a.controlsUtils.renderSquareControl.call(this,d,u,f,s,h)}}}}(e),function(){function o(f,s){var h=f.getAttribute("style"),g=f.getAttribute("offset")||0,p,v,y,b;if(g=parseFloat(g)/(/%$/.test(g)?100:1),g=g<0?0:g>1?1:g,h){var w=h.split(/\s*;\s*/);for(w[w.length-1]===""&&w.pop(),b=w.length;b--;){var S=w[b].split(/\s*:\s*/),C=S[0].trim(),T=S[1].trim();C==="stop-color"?p=T:C==="stop-opacity"&&(y=T)}}return p||(p=f.getAttribute("stop-color")||"rgb(0,0,0)"),y||(y=f.getAttribute("stop-opacity")),p=new t.Color(p),v=p.getAlpha(),y=isNaN(parseFloat(y))?1:parseFloat(y),y*=v*s,{offset:g,color:p.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 d=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,h=this;Object.keys(f).forEach(function(g){h[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 h=new t.Color(f[s]);this.colorStops.push({offset:parseFloat(s),color:h.toRgb(),opacity:h.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,v){var h=d(this.coords,!0),g,p,v=v||{},y,b,w=d(this.colorStops,!0),S=h.r1>h.r2,C=this.gradientTransform?this.gradientTransform.concat():t.iMatrix.concat(),T=-this.offsetX,k=-this.offsetY,A=!!v.additionalTransform,P=this.gradientUnits==="pixels"?"userSpaceOnUse":"objectBoundingBox";if(w.sort(function(Y,ae){return Y.offset-ae.offset}),P==="objectBoundingBox"?(T/=f.width,k/=f.height):(T+=f.width/2,k+=f.height/2),f.type==="path"&&this.gradientUnits!=="percentage"&&(T-=f.pathOffset.x,k-=f.pathOffset.y),C[4]-=T,C[5]-=k,b='id="SVGID_'+this.id+'" gradientUnits="'+P+'"',b+=' gradientTransform="'+(A?v.additionalTransform+" ":"")+t.util.matrixToSVG(C)+'" ',this.type==="linear"?y=["<linearGradient ",b,' x1="',h.x1,'" y1="',h.y1,'" x2="',h.x2,'" y2="',h.y2,`">
`]:this.type==="radial"&&(y=["<radialGradient ",b,' cx="',S?h.x1:h.x2,'" cy="',S?h.y1:h.y2,'" r="',S?h.r1:h.r2,'" fx="',S?h.x2:h.x1,'" fy="',S?h.y2:h.y1,`">
`]),this.type==="radial"){if(S)for(w=w.concat(),w.reverse(),g=0,p=w.length;g<p;g++)w[g].offset=1-w[g].offset;var z=Math.min(h.r1,h.r2);if(z>0){var I=Math.max(h.r1,h.r2),$=z/I;for(g=0,p=w.length;g<p;g++)w[g].offset+=$*(1-w[g].offset)}}for(g=0,p=w.length;g<p;g++){var O=w[g];y.push("<stop ",'offset="',O.offset*100+"%",'" style="stop-color:',O.color,typeof O.opacity<"u"?";stop-opacity: "+O.opacity:";",`"/>
`)}return y.push(this.type==="linear"?`</linearGradient>
`:`</radialGradient>
`),y.join("")},toLive:function(f){var s,h=t.util.object.clone(this.coords),g,p;if(!!this.type){for(this.type==="linear"?s=f.createLinearGradient(h.x1,h.y1,h.x2,h.y2):this.type==="radial"&&(s=f.createRadialGradient(h.x1,h.y1,h.r1,h.x2,h.y2,h.r2)),g=0,p=this.colorStops.length;g<p;g++){var v=this.colorStops[g].color,y=this.colorStops[g].opacity,b=this.colorStops[g].offset;typeof y<"u"&&(v=new t.Color(v).setAlpha(y).toRgba()),s.addColorStop(b,v)}return s}}}),t.util.object.extend(t.Gradient,{fromElement:function(f,s,h,g){var p=parseFloat(h)/(/%$/.test(h)?100:1);p=p<0?0:p>1?1:p,isNaN(p)&&(p=1);var v=f.getElementsByTagName("stop"),y,b=f.getAttribute("gradientUnits")==="userSpaceOnUse"?"pixels":"percentage",w=f.getAttribute("gradientTransform")||"",S=[],C,T,k=0,A=0,P;for(f.nodeName==="linearGradient"||f.nodeName==="LINEARGRADIENT"?(y="linear",C=a(f)):(y="radial",C=c(f)),T=v.length;T--;)S.push(o(v[T],p));P=t.parseTransformAttribute(w),u(s,C,g,b),b==="pixels"&&(k=-s.left,A=-s.top);var z=new t.Gradient({id:f.getAttribute("id"),type:y,coords:C,colorStops:S,gradientUnits:b,gradientTransform:P,offsetX:k,offsetY:A});return z}});function u(f,s,h,g){var p,v;Object.keys(s).forEach(function(y){p=s[y],p==="Infinity"?v=1:p==="-Infinity"?v=0:(v=parseFloat(s[y],10),typeof p=="string"&&/^(\d+\.\d+)%|(\d+)%$/.test(p)&&(v*=.01,g==="pixels"&&((y==="x1"||y==="x2"||y==="r2")&&(v*=h.viewBoxWidth||h.width),(y==="y1"||y==="y2")&&(v*=h.viewBoxHeight||h.height)))),s[y]=v})}}(),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 d=this;this.source=t.util.createImage(),t.util.loadImage(a.source,function(u,f){d.source=u,c&&c(d,f)},null,this.crossOrigin)}},toObject:function(a){var c=t.Object.NUM_FRACTION_DIGITS,d,u;return typeof this.source.src=="string"?d=this.source.src:typeof this.source=="object"&&this.source.toDataURL&&(d=this.source.toDataURL()),u={type:"pattern",source:d,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,u,a),u},toSVG:function(a){var c=typeof this.source=="function"?this.source():this.source,d=c.width/a.width,u=c.height/a.height,f=this.offsetX/a.width,s=this.offsetY/a.height,h="";return(this.repeat==="repeat-x"||this.repeat==="no-repeat")&&(u=1,s&&(u+=Math.abs(s))),(this.repeat==="repeat-y"||this.repeat==="no-repeat")&&(d=1,f&&(d+=Math.abs(f))),c.src?h=c.src:c.toDataURL&&(h=c.toDataURL()),'<pattern id="SVGID_'+this.id+'" x="'+f+'" y="'+s+'" width="'+d+'" height="'+u+`">
<image x="0" y="0" width="`+c.width+'" height="'+c.height+'" xlink:href="'+h+`"></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(d){typeof d=="string"&&(d=this._parseShadow(d));for(var u in d)this[u]=d[u];this.id=a.Object.__uid++},_parseShadow:function(d){var u=d.trim(),f=a.Shadow.reOffsetsAndBlur.exec(u)||[],s=u.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(d){var u=40,f=40,s=a.Object.NUM_FRACTION_DIGITS,h=a.util.rotateVector({x:this.offsetX,y:this.offsetY},a.util.degreesToRadians(-d.angle)),g=20,p=new a.Color(this.color);return d.width&&d.height&&(u=c((Math.abs(h.x)+this.blur)/d.width,s)*100+g,f=c((Math.abs(h.y)+this.blur)/d.height,s)*100+g),d.flipX&&(h.x*=-1),d.flipY&&(h.y*=-1),'<filter id="SVGID_'+this.id+'" y="-'+f+'%" height="'+(100+2*f)+'%" x="-'+u+'%" width="'+(100+2*u)+`%" >
<feGaussianBlur in="SourceAlpha" stdDeviation="`+c(this.blur?this.blur/2:0,s)+`"></feGaussianBlur>
<feOffset dx="`+c(h.x,s)+'" dy="'+c(h.y,s)+`" result="oBlur" ></feOffset>
<feFlood flood-color="`+p.toRgb()+'" flood-opacity="'+p.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 d={},u=a.Shadow.prototype;return["color","blur","offsetX","offsetY","affectStroke","nonScaling"].forEach(function(f){this[f]!==u[f]&&(d[f]=this[f])},this),d}}),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,d=t.util.toFixed,u=t.util.transformPoint,f=t.util.invertTransform,s=t.util.getNodeCanvas,h=t.util.createCanvasElement,g=new Error("Could not initialize `canvas` element");t.StaticCanvas=t.util.createClass(t.CommonMethods,{initialize:function(p,v){v||(v={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(p,v)},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(p,v){var y=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(p),this._initOptions(v),this.interactive||this._initRetinaScaling(),v.overlayImage&&this.setOverlayImage(v.overlayImage,y),v.backgroundImage&&this.setBackgroundImage(v.backgroundImage,y),v.backgroundColor&&this.setBackgroundColor(v.backgroundColor,y),v.overlayColor&&this.setOverlayColor(v.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 p=t.devicePixelRatio;this.__initRetinaScaling(p,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl&&this.__initRetinaScaling(p,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(p,v,y){v.setAttribute("width",this.width*p),v.setAttribute("height",this.height*p),y.scale(p,p)},calcOffset:function(){return this._offset=a(this.lowerCanvasEl),this},setOverlayImage:function(p,v,y){return this.__setBgOverlayImage("overlayImage",p,v,y)},setBackgroundImage:function(p,v,y){return this.__setBgOverlayImage("backgroundImage",p,v,y)},setOverlayColor:function(p,v){return this.__setBgOverlayColor("overlayColor",p,v)},setBackgroundColor:function(p,v){return this.__setBgOverlayColor("backgroundColor",p,v)},__setBgOverlayImage:function(p,v,y,b){return typeof v=="string"?t.util.loadImage(v,function(w,S){if(w){var C=new t.Image(w,b);this[p]=C,C.canvas=this}y&&y(w,S)},this,b&&b.crossOrigin):(b&&v.setOptions(b),this[p]=v,v&&(v.canvas=this),y&&y(v,!1)),this},__setBgOverlayColor:function(p,v,y){return this[p]=v,this._initGradient(v,p),this._initPattern(v,p,y),this},_createCanvasElement:function(){var p=h();if(!p||(p.style||(p.style={}),typeof p.getContext>"u"))throw g;return p},_initOptions:function(p){var v=this.lowerCanvasEl;this._setOptions(p),this.width=this.width||parseInt(v.width,10)||0,this.height=this.height||parseInt(v.height,10)||0,this.lowerCanvasEl.style&&(v.width=this.width,v.height=this.height,v.style.width=this.width+"px",v.style.height=this.height+"px",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(p){p&&p.getContext?this.lowerCanvasEl=p:this.lowerCanvasEl=t.util.getById(p)||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(p,v){return this.setDimensions({width:p},v)},setHeight:function(p,v){return this.setDimensions({height:p},v)},setDimensions:function(p,v){var y;v=v||{};for(var b in p)y=p[b],v.cssOnly||(this._setBackstoreDimension(b,p[b]),y+="px",this.hasLostContext=!0),v.backstoreOnly||this._setCssDimension(b,y);return this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(this.contextTop),this._initRetinaScaling(),this.calcOffset(),v.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(p,v){return this.lowerCanvasEl[p]=v,this.upperCanvasEl&&(this.upperCanvasEl[p]=v),this.cacheCanvasEl&&(this.cacheCanvasEl[p]=v),this[p]=v,this},_setCssDimension:function(p,v){return this.lowerCanvasEl.style[p]=v,this.upperCanvasEl&&(this.upperCanvasEl.style[p]=v),this.wrapperEl&&(this.wrapperEl.style[p]=v),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(p){var v=this._activeObject,y=this.backgroundImage,b=this.overlayImage,w,S,C;for(this.viewportTransform=p,S=0,C=this._objects.length;S<C;S++)w=this._objects[S],w.group||w.setCoords(!0);return v&&v.setCoords(),y&&y.setCoords(!0),b&&b.setCoords(!0),this.calcViewportBoundaries(),this.renderOnAddRemove&&this.requestRenderAll(),this},zoomToPoint:function(p,v){var y=p,b=this.viewportTransform.slice(0);p=u(p,f(this.viewportTransform)),b[0]=v,b[3]=v;var w=u(p,b);return b[4]+=y.x-w.x,b[5]+=y.y-w.y,this.setViewportTransform(b)},setZoom:function(p){return this.zoomToPoint(new t.Point(0,0),p),this},absolutePan:function(p){var v=this.viewportTransform.slice(0);return v[4]=-p.x,v[5]=-p.y,this.setViewportTransform(v)},relativePan:function(p){return this.absolutePan(new t.Point(-p.x-this.viewportTransform[4],-p.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(p){this.stateful&&p.setupState(),p._set("canvas",this),p.setCoords(),this.fire("object:added",{target:p}),p.fire("added")},_onObjectRemoved:function(p){this.fire("object:removed",{target:p}),p.fire("removed"),delete p.canvas},clearContext:function(p){return p.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 p=this.contextContainer;return this.renderCanvas(p,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 p={},v=this.width,y=this.height,b=f(this.viewportTransform);return p.tl=u({x:0,y:0},b),p.br=u({x:v,y},b),p.tr=new t.Point(p.br.x,p.tl.y),p.bl=new t.Point(p.tl.x,p.br.y),this.vptCoords=p,p},cancelRequestedRender:function(){this.isRendering&&(t.util.cancelAnimFrame(this.isRendering),this.isRendering=0)},renderCanvas:function(p,v){var y=this.viewportTransform,b=this.clipPath;this.cancelRequestedRender(),this.calcViewportBoundaries(),this.clearContext(p),t.util.setImageSmoothing(p,this.imageSmoothingEnabled),this.fire("before:render",{ctx:p}),this._renderBackground(p),p.save(),p.transform(y[0],y[1],y[2],y[3],y[4],y[5]),this._renderObjects(p,v),p.restore(),!this.controlsAboveOverlay&&this.interactive&&this.drawControls(p),b&&(b.canvas=this,b.shouldCache(),b._transformDone=!0,b.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(p)),this._renderOverlay(p),this.controlsAboveOverlay&&this.interactive&&this.drawControls(p),this.fire("after:render",{ctx:p})},drawClipPathOnCanvas:function(p){var v=this.viewportTransform,y=this.clipPath;p.save(),p.transform(v[0],v[1],v[2],v[3],v[4],v[5]),p.globalCompositeOperation="destination-in",y.transform(p),p.scale(1/y.zoomX,1/y.zoomY),p.drawImage(y._cacheCanvas,-y.cacheTranslationX,-y.cacheTranslationY),p.restore()},_renderObjects:function(p,v){var y,b;for(y=0,b=v.length;y<b;++y)v[y]&&v[y].render(p)},_renderBackgroundOrOverlay:function(p,v){var y=this[v+"Color"],b=this[v+"Image"],w=this.viewportTransform,S=this[v+"Vpt"];if(!(!y&&!b)){if(y){p.save(),p.beginPath(),p.moveTo(0,0),p.lineTo(this.width,0),p.lineTo(this.width,this.height),p.lineTo(0,this.height),p.closePath(),p.fillStyle=y.toLive?y.toLive(p,this):y,S&&p.transform(w[0],w[1],w[2],w[3],w[4],w[5]),p.transform(1,0,0,1,y.offsetX||0,y.offsetY||0);var C=y.gradientTransform||y.patternTransform;C&&p.transform(C[0],C[1],C[2],C[3],C[4],C[5]),p.fill(),p.restore()}if(b){p.save();var T=this.skipOffscreen;this.skipOffscreen=S,S&&p.transform(w[0],w[1],w[2],w[3],w[4],w[5]),b.render(p),this.skipOffscreen=T,p.restore()}}},_renderBackground:function(p){this._renderBackgroundOrOverlay(p,"background")},_renderOverlay:function(p){this._renderBackgroundOrOverlay(p,"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(p){return this._centerObject(p,new t.Point(this.getCenterPoint().x,p.getCenterPoint().y))},centerObjectV:function(p){return this._centerObject(p,new t.Point(p.getCenterPoint().x,this.getCenterPoint().y))},centerObject:function(p){var v=this.getCenterPoint();return this._centerObject(p,v)},viewportCenterObject:function(p){var v=this.getVpCenter();return this._centerObject(p,v)},viewportCenterObjectH:function(p){var v=this.getVpCenter();return this._centerObject(p,new t.Point(v.x,p.getCenterPoint().y)),this},viewportCenterObjectV:function(p){var v=this.getVpCenter();return this._centerObject(p,new t.Point(p.getCenterPoint().x,v.y))},getVpCenter:function(){var p=this.getCenterPoint(),v=f(this.viewportTransform);return u(p,v)},_centerObject:function(p,v){return p.setPositionByOrigin(v,"center","center"),p.setCoords(),this.renderOnAddRemove&&this.requestRenderAll(),this},toDatalessJSON:function(p){return this.toDatalessObject(p)},toObject:function(p){return this._toObjectMethod("toObject",p)},toDatalessObject:function(p){return this._toObjectMethod("toDatalessObject",p)},_toObjectMethod:function(p,v){var y=this.clipPath,b={version:t.version,objects:this._toObjects(p,v)};return y&&!y.excludeFromExport&&(b.clipPath=this._toObject(this.clipPath,p,v)),o(b,this.__serializeBgOverlay(p,v)),t.util.populateWithProperties(this,b,v),b},_toObjects:function(p,v){return this._objects.filter(function(y){return!y.excludeFromExport}).map(function(y){return this._toObject(y,p,v)},this)},_toObject:function(p,v,y){var b;this.includeDefaultValues||(b=p.includeDefaultValues,p.includeDefaultValues=!1);var w=p[v](y);return this.includeDefaultValues||(p.includeDefaultValues=b),w},__serializeBgOverlay:function(p,v){var y={},b=this.backgroundImage,w=this.overlayImage,S=this.backgroundColor,C=this.overlayColor;return S&&S.toObject?S.excludeFromExport||(y.background=S.toObject(v)):S&&(y.background=S),C&&C.toObject?C.excludeFromExport||(y.overlay=C.toObject(v)):C&&(y.overlay=C),b&&!b.excludeFromExport&&(y.backgroundImage=this._toObject(b,p,v)),w&&!w.excludeFromExport&&(y.overlayImage=this._toObject(w,p,v)),y},svgViewportTransformation:!0,toSVG:function(p,v){p||(p={}),p.reviver=v;var y=[];return this._setSVGPreamble(y,p),this._setSVGHeader(y,p),this.clipPath&&y.push('<g clip-path="url(#'+this.clipPath.clipPathId+`)" >
`),this._setSVGBgOverlayColor(y,"background"),this._setSVGBgOverlayImage(y,"backgroundImage",v),this._setSVGObjects(y,v),this.clipPath&&y.push(`</g>
`),this._setSVGBgOverlayColor(y,"overlay"),this._setSVGBgOverlayImage(y,"overlayImage",v),y.push("</svg>"),y.join("")},_setSVGPreamble:function(p,v){v.suppressPreamble||p.push('<?xml version="1.0" encoding="',v.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(p,v){var y=v.width||this.width,b=v.height||this.height,w,S='viewBox="0 0 '+this.width+" "+this.height+'" ',C=t.Object.NUM_FRACTION_DIGITS;v.viewBox?S='viewBox="'+v.viewBox.x+" "+v.viewBox.y+" "+v.viewBox.width+" "+v.viewBox.height+'" ':this.svgViewportTransformation&&(w=this.viewportTransform,S='viewBox="'+d(-w[4]/w[0],C)+" "+d(-w[5]/w[3],C)+" "+d(this.width/w[0],C)+" "+d(this.height/w[3],C)+'" '),p.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(v),`</defs>
`)},createSVGClipPathMarkup:function(p){var v=this.clipPath;return v?(v.clipPathId="CLIPPATH_"+t.Object.__uid++,'<clipPath id="'+v.clipPathId+`" >
`+this.clipPath.toClipPathSVG(p.reviver)+`</clipPath>
`):""},createSVGRefElementsMarkup:function(){var p=this,v=["background","overlay"].map(function(y){var b=p[y+"Color"];if(b&&b.toLive){var w=p[y+"Vpt"],S=p.viewportTransform,C={width:p.width/(w?S[0]:1),height:p.height/(w?S[3]:1)};return b.toSVG(C,{additionalTransform:w?t.util.matrixToSVG(S):""})}});return v.join("")},createSVGFontFacesMarkup:function(){var p="",v={},y,b,w,S,C,T,k,A,P,z=t.fontPaths,I=[];for(this._objects.forEach(function O(Y){I.push(Y),Y._objects&&Y._objects.forEach(O)}),A=0,P=I.length;A<P;A++)if(y=I[A],b=y.fontFamily,!(y.type.indexOf("text")===-1||v[b]||!z[b])&&(v[b]=!0,!!y.styles)){w=y.styles;for(C in w){S=w[C];for(k in S)T=S[k],b=T.fontFamily,!v[b]&&z[b]&&(v[b]=!0)}}for(var $ in v)p+=[` @font-face {
`," font-family: '",$,`';
`," src: url('",z[$],`');
`,` }
`].join("");return p&&(p=[' <style type="text/css">',`<![CDATA[
`,p,"]]>",`</style>
`].join("")),p},_setSVGObjects:function(p,v){var y,b,w,S=this._objects;for(b=0,w=S.length;b<w;b++)y=S[b],!y.excludeFromExport&&this._setSVGObject(p,y,v)},_setSVGObject:function(p,v,y){p.push(v.toSVG(y))},_setSVGBgOverlayImage:function(p,v,y){this[v]&&!this[v].excludeFromExport&&this[v].toSVG&&p.push(this[v].toSVG(y))},_setSVGBgOverlayColor:function(p,v){var y=this[v+"Color"],b=this.viewportTransform,w=this.width,S=this.height;if(!!y)if(y.toLive){var C=y.repeat,T=t.util.invertTransform(b),k=this[v+"Vpt"],A=k?t.util.matrixToSVG(T):"";p.push('<rect transform="'+A+" translate(",w/2,",",S/2,')"',' x="',y.offsetX-w/2,'" y="',y.offsetY-S/2,'" ','width="',C==="repeat-y"||C==="no-repeat"?y.source.width:w,'" height="',C==="repeat-x"||C==="no-repeat"?y.source.height:S,'" fill="url(#SVGID_'+y.id+')"',`></rect>
`)}else p.push('<rect x="0" y="0" width="100%" height="100%" ','fill="',y,'"',`></rect>
`)},sendToBack:function(p){if(!p)return this;var v=this._activeObject,y,b,w;if(p===v&&p.type==="activeSelection")for(w=v._objects,y=w.length;y--;)b=w[y],c(this._objects,b),this._objects.unshift(b);else c(this._objects,p),this._objects.unshift(p);return this.renderOnAddRemove&&this.requestRenderAll(),this},bringToFront:function(p){if(!p)return this;var v=this._activeObject,y,b,w;if(p===v&&p.type==="activeSelection")for(w=v._objects,y=0;y<w.length;y++)b=w[y],c(this._objects,b),this._objects.push(b);else c(this._objects,p),this._objects.push(p);return this.renderOnAddRemove&&this.requestRenderAll(),this},sendBackwards:function(p,v){if(!p)return this;var y=this._activeObject,b,w,S,C,T,k=0;if(p===y&&p.type==="activeSelection")for(T=y._objects,b=0;b<T.length;b++)w=T[b],S=this._objects.indexOf(w),S>0+k&&(C=S-1,c(this._objects,w),this._objects.splice(C,0,w)),k++;else S=this._objects.indexOf(p),S!==0&&(C=this._findNewLowerIndex(p,S,v),c(this._objects,p),this._objects.splice(C,0,p));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewLowerIndex:function(p,v,y){var b,w;if(y)for(b=v,w=v-1;w>=0;--w){var S=p.intersectsWithObject(this._objects[w])||p.isContainedWithinObject(this._objects[w])||this._objects[w].isContainedWithinObject(p);if(S){b=w;break}}else b=v-1;return b},bringForward:function(p,v){if(!p)return this;var y=this._activeObject,b,w,S,C,T,k=0;if(p===y&&p.type==="activeSelection")for(T=y._objects,b=T.length;b--;)w=T[b],S=this._objects.indexOf(w),S<this._objects.length-1-k&&(C=S+1,c(this._objects,w),this._objects.splice(C,0,w)),k++;else S=this._objects.indexOf(p),S!==this._objects.length-1&&(C=this._findNewUpperIndex(p,S,v),c(this._objects,p),this._objects.splice(C,0,p));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewUpperIndex:function(p,v,y){var b,w,S;if(y)for(b=v,w=v+1,S=this._objects.length;w<S;++w){var C=p.intersectsWithObject(this._objects[w])||p.isContainedWithinObject(this._objects[w])||this._objects[w].isContainedWithinObject(p);if(C){b=w;break}}else b=v+1;return b},moveTo:function(p,v){return c(this._objects,p),this._objects.splice(v,0,p),this.renderOnAddRemove&&this.requestRenderAll()},dispose:function(){return this.isRendering&&(t.util.cancelAnimFrame(this.isRendering),this.isRendering=0),this.forEachObject(function(p){p.dispose&&p.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(p){var v=h();if(!v||!v.getContext)return null;var y=v.getContext("2d");if(!y)return null;switch(p){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 p=s(this.lowerCanvasEl);return p&&p.createPNGStream()},t.StaticCanvas.prototype.createJPEGStream=function(p){var v=s(this.lowerCanvasEl);return v&&v.createJPEGStream(p)})}(),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,d=o.getZoom();o&&o._isRetinaScaling()&&(d*=t.devicePixelRatio),c.shadowColor=a.color,c.shadowBlur=a.blur*d,c.shadowOffsetX=a.offsetX*d,c.shadowOffsetY=a.offsetY*d}},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 d=a.midPointFrom(c);return o.quadraticCurveTo(a.x,a.y,d.x,d.y),d},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,d=c.length,u=this.canvas.contextTop;this._saveAndTransform(u),this.oldEnd&&(u.beginPath(),u.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(u,c[d-2],c[d-1],!0),u.stroke(),u.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,d=this._points[0],u=this._points[1];if(o=o||this.canvas.contextTop,this._saveAndTransform(o),o.beginPath(),this._points.length===2&&d.x===u.x&&d.y===u.y){var f=this.width/1e3;d=new t.Point(d.x,d.y),u=new t.Point(u.x,u.y),d.x-=f,u.x+=f}for(o.moveTo(d.x,d.y),a=1,c=this._points.length;a<c;a++)this._drawSegment(o,d,u),d=this._points[a],u=this._points[a+1];o.lineTo(d.x,d.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(),d=Math.pow(a/c,2),u,f=o.length-1,s=o[0],h=[s],g;for(u=1;u<f-1;u++)g=Math.pow(s.x-o[u].x,2)+Math.pow(s.y-o[u].y,2),g>=d&&(s=o[u],h.push(s));return h.push(o[f]),h},_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,d=this.points;for(this._saveAndTransform(o),a=0,c=d.length;a<c;a++)this.dot(o,d[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 d=[];for(a=0,c=this.points.length;a<c;a++){var u=this.points[a],f=new t.Circle({radius:u.radius,left:u.x,top:u.y,originX:"center",originY:"center",fill:u.fill});this.shadow&&(f.shadow=new t.Shadow(this.shadow)),d.push(f)}var s=new t.Group(d);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,d=new t.Color(this.color).setAlpha(t.util.getRandomInt(0,100)/100).toRgba();return a.radius=c,a.fill=d,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,d=this.sprayChunks.length;c<d;c++)for(var u=this.sprayChunks[c],f=0,s=u.length;f<s;f++){var h=new t.Rect({width:u[f].width,height:u[f].width,left:u[f].x+1,top:u[f].y+1,originX:"center",originY:"center",fill:this.color});a.push(h)}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,d,u;for(d=0,u=o.length;d<u;d++)c=o[d].left+""+o[d].top,a[c]||(a[c]=o[d]);var f=[];for(c in a)f.push(a[c]);return f},render:function(o){var a=this.canvas.contextTop,c,d;for(a.fillStyle=this.color,this._saveAndTransform(a),c=0,d=o.length;c<d;c++){var u=o[c];typeof u.opacity<"u"&&(a.globalAlpha=u.opacity),a.fillRect(u.x,u.y,u.width,u.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,d,u=this.width/2,f;for(f=0;f<this.density;f++){a=t.util.getRandomInt(o.x-u,o.x+u),c=t.util.getRandomInt(o.y-u,o.y+u),this.dotWidthVariance?d=t.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):d=this.dotWidth;var s=new t.Point(a,c);s.width=d,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(),d=c.getContext("2d");return c.width=c.height=o+a,d.fillStyle=this.color,d.beginPath(),d.arc(o/2,o/2,o/2,0,Math.PI*2,!1),d.closePath(),d.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(u,f){f||(f={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(u,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 u=this.getActiveObjects(),f,s,h;if(u.length>0&&!this.preserveObjectStacking){s=[],h=[];for(var g=0,p=this._objects.length;g<p;g++)f=this._objects[g],u.indexOf(f)===-1?s.push(f):h.push(f);u.length>1&&(this._activeObject._objects=h),s.push.apply(s,h)}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 u=this.contextContainer;return this.renderCanvas(u,this._chooseObjectsToRender()),this},renderTopLayer:function(u){u.save(),this.isDrawingMode&&this._isCurrentlyDrawing&&(this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection&&this._groupSelector&&(this._drawSelection(u),this.contextTopDirty=!0),u.restore()},renderTop:function(){var u=this.contextTop;return this.clearContext(u),this.renderTopLayer(u),this.fire("after:render"),this},_normalizePointer:function(u,f){var s=u.calcTransformMatrix(),h=t.util.invertTransform(s),g=this.restorePointerVpt(f);return t.util.transformPoint(g,h)},isTargetTransparent:function(u,f,s){if(u.shouldCache()&&u._cacheCanvas&&u!==this._activeObject){var h=this._normalizePointer(u,{x:f,y:s}),g=Math.max(u.cacheTranslationX+h.x*u.zoomX,0),p=Math.max(u.cacheTranslationY+h.y*u.zoomY,0),w=t.util.isTransparent(u._cacheContext,Math.round(g),Math.round(p),this.targetFindTolerance);return w}var v=this.contextCache,y=u.selectionBackgroundColor,b=this.viewportTransform;u.selectionBackgroundColor="",this.clearContext(v),v.save(),v.transform(b[0],b[1],b[2],b[3],b[4],b[5]),u.render(v),v.restore(),u.selectionBackgroundColor=y;var w=t.util.isTransparent(v,f,s,this.targetFindTolerance);return w},_isSelectionKeyPressed:function(u){var f=!1;return Array.isArray(this.selectionKey)?f=!!this.selectionKey.find(function(s){return u[s]===!0}):f=u[this.selectionKey],f},_shouldClearSelection:function(u,f){var s=this.getActiveObjects(),h=this._activeObject;return!f||f&&h&&s.length>1&&s.indexOf(f)===-1&&h!==f&&!this._isSelectionKeyPressed(u)||f&&!f.evented||f&&!f.selectable&&h&&h!==f},_shouldCenterTransform:function(u,f,s){if(!!u){var h;return f==="scale"||f==="scaleX"||f==="scaleY"||f==="resizing"?h=this.centeredScaling||u.centeredScaling:f==="rotate"&&(h=this.centeredRotation||u.centeredRotation),h?!s:s}},_getOriginFromCorner:function(u,f){var s={x:u.originX,y:u.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(u,f,s,h){if(!f||!u)return"drag";var g=h.controls[f];return g.getActionName(s,g,h)},_setupCurrentTransform:function(u,f,s){if(!!f){var h=this.getPointer(u),g=f.__corner,p=f.controls[g],v=s&&g?p.getActionHandler(u,f,p):t.controlsUtils.dragHandler,y=this._getActionFromCorner(s,g,u,f),b=this._getOriginFromCorner(f,g),w=u[this.centeredKey],S={target:f,action:y,actionHandler:v,corner:g,scaleX:f.scaleX,scaleY:f.scaleY,skewX:f.skewX,skewY:f.skewY,offsetX:h.x-f.left,offsetY:h.y-f.top,originX:b.x,originY:b.y,ex:h.x,ey:h.y,lastX:h.x,lastY:h.y,theta:a(f.angle),width:f.width*f.scaleX,shiftKey:u.shiftKey,altKey:w,original:t.util.saveObjectTransform(f)};this._shouldCenterTransform(f,y,w)&&(S.originX="center",S.originY="center"),S.original.originX=b.x,S.original.originY=b.y,this._currentTransform=S,this._beforeTransform(u)}},setCursor:function(u){this.upperCanvasEl.style.cursor=u},_drawSelection:function(u){var f=this._groupSelector,s=new t.Point(f.ex,f.ey),h=t.util.transformPoint(s,this.viewportTransform),g=new t.Point(f.ex+f.left,f.ey+f.top),p=t.util.transformPoint(g,this.viewportTransform),v=Math.min(h.x,p.x),y=Math.min(h.y,p.y),b=Math.max(h.x,p.x),w=Math.max(h.y,p.y),S=this.selectionLineWidth/2;this.selectionColor&&(u.fillStyle=this.selectionColor,u.fillRect(v,y,b-v,w-y)),!(!this.selectionLineWidth||!this.selectionBorderColor)&&(u.lineWidth=this.selectionLineWidth,u.strokeStyle=this.selectionBorderColor,v+=S,y+=S,b-=S,w-=S,t.Object.prototype._setLineDash.call(this,u,this.selectionDashArray),u.strokeRect(v,y,b-v,w-y))},findTarget:function(u,f){if(!this.skipTargetFind){var s=!0,h=this.getPointer(u,s),g=this._activeObject,p=this.getActiveObjects(),v,y,b=c(u),w=p.length>1&&!f||p.length===1;if(this.targets=[],w&&g._findTargetCorner(h,b)||p.length>1&&!f&&g===this._searchPossibleTargets([g],h))return g;if(p.length===1&&g===this._searchPossibleTargets([g],h))if(this.preserveObjectStacking)v=g,y=this.targets,this.targets=[];else return g;var S=this._searchPossibleTargets(this._objects,h);return u[this.altSelectionKey]&&S&&v&&S!==v&&(S=v,this.targets=y),S}},_checkTarget:function(u,f,s){if(f&&f.visible&&f.evented&&f.containsPoint(u))if((this.perPixelTargetFind||f.perPixelTargetFind)&&!f.isEditing){var h=this.isTargetTransparent(f,s.x,s.y);if(!h)return!0}else return!0},_searchPossibleTargets:function(u,f){for(var s,h=u.length,g;h--;){var p=u[h],v=p.group?this._normalizePointer(p.group,f):f;if(this._checkTarget(v,p,f)){s=u[h],s.subTargetCheck&&s instanceof t.Group&&(g=this._searchPossibleTargets(s._objects,f),g&&this.targets.push(g));break}}return s},restorePointerVpt:function(u){return t.util.transformPoint(u,t.util.invertTransform(this.viewportTransform))},getPointer:function(u,f){if(this._absolutePointer&&!f)return this._absolutePointer;if(this._pointer&&f)return this._pointer;var s=o(u),h=this.upperCanvasEl,g=h.getBoundingClientRect(),p=g.width||0,v=g.height||0,y;(!p||!v)&&("top"in g&&"bottom"in g&&(v=Math.abs(g.top-g.bottom)),"right"in g&&"left"in g&&(p=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),p===0||v===0?y={width:1,height:1}:y={width:h.width/p,height:h.height/v},{x:s.x*y.width,y:s.y*y.height}},_createUpperCanvas:function(){var u=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 "+u),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(u){var f=this.width||u.width,s=this.height||u.height;t.util.setStyle(u,{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"}),u.width=f,u.height=s,t.util.makeElementUnselectable(u)},_copyCanvasStyle:function(u,f){f.style.cssText=u.style.cssText},getSelectionContext:function(){return this.contextTop},getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var u=this._activeObject;return u?u.type==="activeSelection"&&u._objects?u._objects.slice(0):[u]:[]},_onObjectRemoved:function(u){u===this._activeObject&&(this.fire("before:selection:cleared",{target:u}),this._discardActiveObject(),this.fire("selection:cleared",{target:u}),u.fire("deselected")),u===this._hoveredTarget&&(this._hoveredTarget=null,this._hoveredTargets=[]),this.callSuper("_onObjectRemoved",u)},_fireSelectionEvents:function(u,f){var s=!1,h=this.getActiveObjects(),g=[],p=[];u.forEach(function(v){h.indexOf(v)===-1&&(s=!0,v.fire("deselected",{e:f,target:v}),p.push(v))}),h.forEach(function(v){u.indexOf(v)===-1&&(s=!0,v.fire("selected",{e:f,target:v}),g.push(v))}),u.length>0&&h.length>0?s&&this.fire("selection:updated",{e:f,selected:g,deselected:p}):h.length>0?this.fire("selection:created",{e:f,selected:g}):u.length>0&&this.fire("selection:cleared",{e:f,deselected:p})},setActiveObject:function(u,f){var s=this.getActiveObjects();return this._setActiveObject(u,f),this._fireSelectionEvents(s,f),this},_setActiveObject:function(u,f){return this._activeObject===u||!this._discardActiveObject(f,u)||u.onSelect({e:f})?!1:(this._activeObject=u,!0)},_discardActiveObject:function(u,f){var s=this._activeObject;if(s){if(s.onDeselect({e:u,object:f}))return!1;this._activeObject=null}return!0},discardActiveObject:function(u){var f=this.getActiveObjects(),s=this.getActiveObject();return f.length&&this.fire("before:selection:cleared",{target:s,e:u}),this._discardActiveObject(u),this._fireSelectionEvents(f,u),this},dispose:function(){var u=this.wrapperEl;return this.removeListeners(),u.removeChild(this.upperCanvasEl),u.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)),u.parentNode&&u.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(u){var f=this._activeObject;f&&f._renderControls(u)},_toObject:function(u,f,s){var h=this._realizeGroupTransformOnObject(u),g=this.callSuper("_toObject",u,f,s);return this._unwindGroupTransformOnObject(u,h),g},_realizeGroupTransformOnObject:function(u){if(u.group&&u.group.type==="activeSelection"&&this._activeObject===u.group){var f=["angle","flipX","flipY","left","scaleX","scaleY","skewX","skewY","top"],s={};return f.forEach(function(h){s[h]=u[h]}),t.util.addTransformToObject(u,this._activeObject.calcOwnMatrix()),s}else return null},_unwindGroupTransformOnObject:function(u,f){f&&u.set(f)},_setSVGObject:function(u,f,s){var h=this._realizeGroupTransformOnObject(f);this.callSuper("_setSVGObject",u,f,s),this._unwindGroupTransformOnObject(f,h)},setViewportTransform:function(u){this.renderOnAddRemove&&this._activeObject&&this._activeObject.isEditing&&this._activeObject.clearContextTop(),t.StaticCanvas.prototype.setViewportTransform.call(this,u)}});for(var d in t.StaticCanvas)d!=="prototype"&&(t.Canvas[d]=t.StaticCanvas[d])}(),function(){var o=t.util.addListener,a=t.util.removeListener,c=3,d=2,u=1,f={passive:!1};function s(h,g){return h.button&&h.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(h,g){var p=this.upperCanvasEl,v=this._getEventPrefix();h(t.window,"resize",this._onResize),h(p,v+"down",this._onMouseDown),h(p,v+"move",this._onMouseMove,f),h(p,v+"out",this._onMouseOut),h(p,v+"enter",this._onMouseEnter),h(p,"wheel",this._onMouseWheel),h(p,"contextmenu",this._onContextMenu),h(p,"dblclick",this._onDoubleClick),h(p,"dragover",this._onDragOver),h(p,"dragenter",this._onDragEnter),h(p,"dragleave",this._onDragLeave),h(p,"drop",this._onDrop),this.enablePointerEvents||h(p,"touchstart",this._onTouchStart,f),typeof eventjs<"u"&&g in eventjs&&(eventjs[g](p,"gesture",this._onGesture),eventjs[g](p,"drag",this._onDrag),eventjs[g](p,"orientation",this._onOrientationChange),eventjs[g](p,"shake",this._onShake),eventjs[g](p,"longpress",this._onLongPress))},removeListeners:function(){this.addOrRemove(a,"remove");var h=this._getEventPrefix();a(t.document,h+"up",this._onMouseUp),a(t.document,"touchend",this._onTouchEnd,f),a(t.document,h+"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(h,g){this.__onTransformGesture&&this.__onTransformGesture(h,g)},_onDrag:function(h,g){this.__onDrag&&this.__onDrag(h,g)},_onMouseWheel:function(h){this.__onMouseWheel(h)},_onMouseOut:function(h){var g=this._hoveredTarget;this.fire("mouse:out",{target:g,e:h}),this._hoveredTarget=null,g&&g.fire("mouseout",{e:h});var p=this;this._hoveredTargets.forEach(function(v){p.fire("mouse:out",{target:v,e:h}),v&&v.fire("mouseout",{e:h})}),this._hoveredTargets=[]},_onMouseEnter:function(h){!this._currentTransform&&!this.findTarget(h)&&(this.fire("mouse:over",{target:null,e:h}),this._hoveredTarget=null,this._hoveredTargets=[])},_onOrientationChange:function(h,g){this.__onOrientationChange&&this.__onOrientationChange(h,g)},_onShake:function(h,g){this.__onShake&&this.__onShake(h,g)},_onLongPress:function(h,g){this.__onLongPress&&this.__onLongPress(h,g)},_onDragOver:function(h){h.preventDefault();var g=this._simpleEventHandler("dragover",h);this._fireEnterLeaveEvents(g,h)},_onDrop:function(h){return this._simpleEventHandler("drop:before",h),this._simpleEventHandler("drop",h)},_onContextMenu:function(h){return this.stopContextMenu&&(h.stopPropagation(),h.preventDefault()),!1},_onDoubleClick:function(h){this._cacheTransformEventData(h),this._handleEvent(h,"dblclick"),this._resetTransformEventData(h)},getPointerId:function(h){var g=h.changedTouches;return g?g[0]&&g[0].identifier:this.enablePointerEvents?h.pointerId:-1},_isMainEvent:function(h){return h.isPrimary===!0?!0:h.isPrimary===!1?!1:h.type==="touchend"&&h.touches.length===0?!0:h.changedTouches?h.changedTouches[0].identifier===this.mainTouchId:!0},_onTouchStart:function(h){h.preventDefault(),this.mainTouchId===null&&(this.mainTouchId=this.getPointerId(h)),this.__onMouseDown(h),this._resetTransformEventData();var g=this.upperCanvasEl,p=this._getEventPrefix();o(t.document,"touchend",this._onTouchEnd,f),o(t.document,"touchmove",this._onMouseMove,f),a(g,p+"down",this._onMouseDown)},_onMouseDown:function(h){this.__onMouseDown(h),this._resetTransformEventData();var g=this.upperCanvasEl,p=this._getEventPrefix();a(g,p+"move",this._onMouseMove,f),o(t.document,p+"up",this._onMouseUp),o(t.document,p+"move",this._onMouseMove,f)},_onTouchEnd:function(h){if(!(h.touches.length>0)){this.__onMouseUp(h),this._resetTransformEventData(),this.mainTouchId=null;var g=this._getEventPrefix();a(t.document,"touchend",this._onTouchEnd,f),a(t.document,"touchmove",this._onMouseMove,f);var p=this;this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout(function(){o(p.upperCanvasEl,g+"down",p._onMouseDown),p._willAddMouseDown=0},400)}},_onMouseUp:function(h){this.__onMouseUp(h),this._resetTransformEventData();var g=this.upperCanvasEl,p=this._getEventPrefix();this._isMainEvent(h)&&(a(t.document,p+"up",this._onMouseUp),a(t.document,p+"move",this._onMouseMove,f),o(g,p+"move",this._onMouseMove,f))},_onMouseMove:function(h){!this.allowTouchScrolling&&h.preventDefault&&h.preventDefault(),this.__onMouseMove(h)},_onResize:function(){this.calcOffset()},_shouldRender:function(h){var g=this._activeObject;return!!g!=!!h||g&&h&&g!==h?!0:(g&&g.isEditing,!1)},__onMouseUp:function(h){var g,p=this._currentTransform,v=this._groupSelector,y=!1,b=!v||v.left===0&&v.top===0;if(this._cacheTransformEventData(h),g=this._target,this._handleEvent(h,"up:before"),s(h,c)){this.fireRightClick&&this._handleEvent(h,"up",c,b);return}if(s(h,d)){this.fireMiddleClick&&this._handleEvent(h,"up",d,b),this._resetTransformEventData();return}if(this.isDrawingMode&&this._isCurrentlyDrawing){this._onMouseUpInDrawingMode(h);return}if(!!this._isMainEvent(h)){if(p&&(this._finalizeCurrentTransform(h),y=p.actionPerformed),!b){var w=g===this._activeObject;this._maybeGroupObjects(h),y||(y=this._shouldRender(g)||!w&&g===this._activeObject)}var S,C;if(g){if(S=g._findTargetCorner(this.getPointer(h,!0),t.util.isTouchEvent(h)),g.selectable&&g!==this._activeObject&&g.activeOn==="up")this.setActiveObject(g,h),y=!0;else{var T=g.controls[S],k=T&&T.getMouseUpHandler(h,g,T);k&&(C=this.getPointer(h),k(h,p,C.x,C.y))}g.isMoving=!1}if(p&&(p.target!==g||p.corner!==S)){var A=p.target&&p.target.controls[p.corner],P=A&&A.getMouseUpHandler(h,g,T);C=C||this.getPointer(h),P&&P(h,p,C.x,C.y)}this._setCursorFromEvent(h,g),this._handleEvent(h,"up",u,b),this._groupSelector=null,this._currentTransform=null,g&&(g.__corner=0),y?this.requestRenderAll():b||this.renderTop()}},_simpleEventHandler:function(h,g){var p=this.findTarget(g),v=this.targets,y={e:g,target:p,subTargets:v};if(this.fire(h,y),p&&p.fire(h,y),!v)return p;for(var b=0;b<v.length;b++)v[b].fire(h,y);return p},_handleEvent:function(h,g,p,v){var y=this._target,b=this.targets||[],w={e:h,target:y,subTargets:b,button:p||u,isClick:v||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};g==="up"&&(w.currentTarget=this.findTarget(h),w.currentSubTargets=this.targets),this.fire("mouse:"+g,w),y&&y.fire("mouse"+g,w);for(var S=0;S<b.length;S++)b[S].fire("mouse"+g,w)},_finalizeCurrentTransform:function(h){var g=this._currentTransform,p=g.target,v={e:h,target:p,transform:g,action:g.action};p._scaling&&(p._scaling=!1),p.setCoords(),(g.actionPerformed||this.stateful&&p.hasStateChanged())&&this._fire("modified",v)},_onMouseDownInDrawingMode:function(h){this._isCurrentlyDrawing=!0,this.getActiveObject()&&this.discardActiveObject(h).requestRenderAll();var g=this.getPointer(h);this.freeDrawingBrush.onMouseDown(g,{e:h,pointer:g}),this._handleEvent(h,"down")},_onMouseMoveInDrawingMode:function(h){if(this._isCurrentlyDrawing){var g=this.getPointer(h);this.freeDrawingBrush.onMouseMove(g,{e:h,pointer:g})}this.setCursor(this.freeDrawingCursor),this._handleEvent(h,"move")},_onMouseUpInDrawingMode:function(h){var g=this.getPointer(h);this._isCurrentlyDrawing=this.freeDrawingBrush.onMouseUp({e:h,pointer:g}),this._handleEvent(h,"up")},__onMouseDown:function(h){this._cacheTransformEventData(h),this._handleEvent(h,"down:before");var g=this._target;if(s(h,c)){this.fireRightClick&&this._handleEvent(h,"down",c);return}if(s(h,d)){this.fireMiddleClick&&this._handleEvent(h,"down",d);return}if(this.isDrawingMode){this._onMouseDownInDrawingMode(h);return}if(!!this._isMainEvent(h)&&!this._currentTransform){var p=this._pointer;this._previousPointer=p;var v=this._shouldRender(g),y=this._shouldGroup(h,g);if(this._shouldClearSelection(h,g)?this.discardActiveObject(h):y&&(this._handleGrouping(h,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,h);var w=g._findTargetCorner(this.getPointer(h,!0),t.util.isTouchEvent(h));if(g.__corner=w,g===this._activeObject&&(w||!y)){this._setupCurrentTransform(h,g,b);var S=g.controls[w],p=this.getPointer(h),C=S&&S.getMouseDownHandler(h,g,S);C&&C(h,this._currentTransform,p.x,p.y)}}this._handleEvent(h,"down"),(v||y)&&this.requestRenderAll()}},_resetTransformEventData:function(){this._target=null,this._pointer=null,this._absolutePointer=null},_cacheTransformEventData:function(h){this._resetTransformEventData(),this._pointer=this.getPointer(h,!0),this._absolutePointer=this.restorePointerVpt(this._pointer),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(h)||null},_beforeTransform:function(h){var g=this._currentTransform;this.stateful&&g.target.saveState(),this.fire("before:transform",{e:h,transform:g})},__onMouseMove:function(h){this._handleEvent(h,"move:before"),this._cacheTransformEventData(h);var g,p;if(this.isDrawingMode){this._onMouseMoveInDrawingMode(h);return}if(!!this._isMainEvent(h)){var v=this._groupSelector;v?(p=this._absolutePointer,v.left=p.x-v.ex,v.top=p.y-v.ey,this.renderTop()):this._currentTransform?this._transformObject(h):(g=this.findTarget(h)||null,this._setCursorFromEvent(h,g),this._fireOverOutEvents(g,h)),this._handleEvent(h,"move"),this._resetTransformEventData()}},_fireOverOutEvents:function(h,g){var p=this._hoveredTarget,v=this._hoveredTargets,y=this.targets,b=Math.max(v.length,y.length);this.fireSyntheticInOutEvents(h,g,{oldTarget:p,evtOut:"mouseout",canvasEvtOut:"mouse:out",evtIn:"mouseover",canvasEvtIn:"mouse:over"});for(var w=0;w<b;w++)this.fireSyntheticInOutEvents(y[w],g,{oldTarget:v[w],evtOut:"mouseout",evtIn:"mouseover"});this._hoveredTarget=h,this._hoveredTargets=this.targets.concat()},_fireEnterLeaveEvents:function(h,g){var p=this._draggedoverTarget,v=this._hoveredTargets,y=this.targets,b=Math.max(v.length,y.length);this.fireSyntheticInOutEvents(h,g,{oldTarget:p,evtOut:"dragleave",evtIn:"dragenter"});for(var w=0;w<b;w++)this.fireSyntheticInOutEvents(y[w],g,{oldTarget:v[w],evtOut:"dragleave",evtIn:"dragenter"});this._draggedoverTarget=h},fireSyntheticInOutEvents:function(h,g,p){var v,y,b=p.oldTarget,w,S,C=b!==h,T=p.canvasEvtIn,k=p.canvasEvtOut;C&&(v={e:g,target:h,previousTarget:b},y={e:g,target:b,nextTarget:h}),S=h&&C,w=b&&C,w&&(k&&this.fire(k,y),b.fire(p.evtOut,y)),S&&(T&&this.fire(T,v),h.fire(p.evtIn,v))},__onMouseWheel:function(h){this._cacheTransformEventData(h),this._handleEvent(h,"wheel"),this._resetTransformEventData()},_transformObject:function(h){var g=this.getPointer(h),p=this._currentTransform;p.reset=!1,p.shiftKey=h.shiftKey,p.altKey=h[this.centeredKey],this._performTransformAction(h,p,g),p.actionPerformed&&this.requestRenderAll()},_performTransformAction:function(h,g,p){var v=p.x,y=p.y,b=g.action,w=!1,S=g.actionHandler;S&&(w=S(h,g,v,y)),b==="drag"&&w&&(g.target.isMoving=!0,this.setCursor(g.target.moveCursor||this.moveCursor)),g.actionPerformed=g.actionPerformed||w},_fire:t.controlsUtils.fireEvent,_setCursorFromEvent:function(h,g){if(!g)return this.setCursor(this.defaultCursor),!1;var p=g.hoverCursor||this.hoverCursor,v=this._activeObject&&this._activeObject.type==="activeSelection"?this._activeObject:null,y=(!v||!v.contains(g))&&g._findTargetCorner(this.getPointer(h,!0));y?this.setCursor(this.getCornerCursor(y,g,h)):(g.subTargetCheck&&this.targets.concat().reverse().map(function(b){p=b.hoverCursor||p}),this.setCursor(p))},getCornerCursor:function(h,g,p){var v=g.controls[h];return v.cursorStyleHandler(p,v,g)}})}(),function(){var o=Math.min,a=Math.max;t.util.object.extend(t.Canvas.prototype,{_shouldGroup:function(c,d){var u=this._activeObject;return u&&this._isSelectionKeyPressed(c)&&d&&d.selectable&&this.selection&&(u!==d||u.type==="activeSelection")&&!d.onSelect({e:c})},_handleGrouping:function(c,d){var u=this._activeObject;u.__corner||d===u&&(d=this.findTarget(c,!0),!d||!d.selectable)||(u&&u.type==="activeSelection"?this._updateActiveSelection(d,c):this._createActiveSelection(d,c))},_updateActiveSelection:function(c,d){var u=this._activeObject,f=u._objects.slice(0);u.contains(c)?(u.removeWithUpdate(c),this._hoveredTarget=c,this._hoveredTargets=this.targets.concat(),u.size()===1&&this._setActiveObject(u.item(0),d)):(u.addWithUpdate(c),this._hoveredTarget=u,this._hoveredTargets=this.targets.concat()),this._fireSelectionEvents(f,d)},_createActiveSelection:function(c,d){var u=this.getActiveObjects(),f=this._createGroup(c);this._hoveredTarget=f,this._setActiveObject(f,d),this._fireSelectionEvents(u,d)},_createGroup:function(c){var d=this._objects,u=d.indexOf(this._activeObject)<d.indexOf(c),f=u?[this._activeObject,c]:[c,this._activeObject];return this._activeObject.isEditing&&this._activeObject.exitEditing(),new t.ActiveSelection(f,{canvas:this})},_groupSelectedObjects:function(c){var d=this._collectObjects(c),u;d.length===1?this.setActiveObject(d[0],c):d.length>1&&(u=new t.ActiveSelection(d.reverse(),{canvas:this}),this.setActiveObject(u,c))},_collectObjects:function(c){for(var d=[],u,f=this._groupSelector.ex,s=this._groupSelector.ey,h=f+this._groupSelector.left,g=s+this._groupSelector.top,p=new t.Point(o(f,h),o(s,g)),v=new t.Point(a(f,h),a(s,g)),y=!this.selectionFullyContained,b=f===h&&s===g,w=this._objects.length;w--&&(u=this._objects[w],!(!(!u||!u.selectable||!u.visible)&&(y&&u.intersectsWithRect(p,v,!0)||u.isContainedWithinRect(p,v,!0)||y&&u.containsPoint(p,null,!0)||y&&u.containsPoint(v,null,!0))&&(d.push(u),b))););return d.length>1&&(d=d.filter(function(S){return!S.onSelect({e:c})})),d},_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,d=(o.multiplier||1)*(o.enableRetinaScaling?this.getRetinaScaling():1),u=this.toCanvasElement(d,o);return t.util.toDataURL(u,a,c)},toCanvasElement:function(o,a){o=o||1,a=a||{};var c=(a.width||this.width)*o,d=(a.height||this.height)*o,u=this.getZoom(),f=this.width,s=this.height,h=u*o,g=this.viewportTransform,p=(g[4]-(a.left||0))*o,v=(g[5]-(a.top||0))*o,y=this.interactive,b=[h,0,0,h,p,v],w=this.enableRetinaScaling,S=t.util.createCanvasElement(),C=this.contextTop;return S.width=c,S.height=d,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=b,this.width=c,this.height=d,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=w,this.contextTop=C,S}})}(),t.util.object.extend(t.StaticCanvas.prototype,{loadFromJSON:function(o,a,c){if(!!o){var d=typeof o=="string"?JSON.parse(o):t.util.object.clone(o),u=this,f=d.clipPath,s=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete d.clipPath,this._enlivenObjects(d.objects,function(h){u.clear(),u._setBgOverlay(d,function(){f?u._enlivenObjects([f],function(g){u.clipPath=g[0],u.__setupCanvas.call(u,d,h,s,a)}):u.__setupCanvas.call(u,d,h,s,a)})},c),this}},__setupCanvas:function(o,a,c,d){var u=this;a.forEach(function(f,s){u.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(),d&&d()},_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 d=function(){c.backgroundImage&&c.overlayImage&&c.backgroundColor&&c.overlayColor&&a&&a()};this.__setBgOverlay("backgroundImage",o.backgroundImage,c,d),this.__setBgOverlay("overlayImage",o.overlayImage,c,d),this.__setBgOverlay("backgroundColor",o.background,c,d),this.__setBgOverlay("overlayColor",o.overlay,c,d)},__setBgOverlay:function(o,a,c,d){var u=this;if(!a){c[o]=!0,d&&d();return}o==="backgroundImage"||o==="overlayImage"?t.util.enlivenObjects([a],function(f){u[o]=f[0],c[o]=!0,d&&d()}):this["set"+t.util.string.capitalize(o,!0)](a,function(){c[o]=!0,d&&d()})},_enlivenObjects:function(o,a,c){if(!o||o.length===0){a&&a([]);return}t.util.enlivenObjects(o,function(d){a&&a(d)},null,c)},_toDataURL:function(o,a){this.clone(function(c){a(c.toDataURL(o))})},_toDataURLWithMultiplier:function(o,a,c){this.clone(function(d){c(d.toDataURLWithMultiplier(o,a))})},clone:function(o,a){var c=JSON.stringify(this.toJSON(a));this.cloneWithoutData(function(d){d.loadFromJSON(c,function(){o&&o(d)})})},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,d=a.util.object.clone,u=a.util.toFixed,f=a.util.string.capitalize,s=a.util.degreesToRadians,h=!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:h,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(p){p&&this.setOptions(p)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=a.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(p){var v=a.perfLimitSizeTotal,y=p.width,b=p.height,w=a.maxCacheSideLimit,S=a.minCacheSideLimit;if(y<=w&&b<=w&&y*b<=v)return y<S&&(p.width=S),b<S&&(p.height=S),p;var C=y/b,T=a.util.limitDimsByArea(C,v),k=a.util.capValue,A=k(S,T.x,w),P=k(S,T.y,w);return y>A&&(p.zoomX/=y/A,p.width=A,p.capped=!0),b>P&&(p.zoomY/=b/P,p.height=P,p.capped=!0),p},_getCacheCanvasDimensions:function(){var p=this.getTotalObjectScaling(),v=this._getTransformedDimensions(0,0),y=v.x*p.scaleX/this.scaleX,b=v.y*p.scaleY/this.scaleY;return{width:Math.ceil(y+g),height:Math.ceil(b+g),zoomX:p.scaleX,zoomY:p.scaleY,x:y,y:b}},_updateCacheCanvas:function(){var p=this.canvas;if(this.noScaleCache&&p&&p._currentTransform){var v=p._currentTransform.target,y=p._currentTransform.action;if(this===v&&y.slice&&y.slice(0,5)==="scale")return!1}var b=this._cacheCanvas,w=this._limitCacheSize(this._getCacheCanvasDimensions()),S=w.width,C=w.height,T,k,A=w.zoomX,P=w.zoomY,z=S!==this.cacheWidth||C!==this.cacheHeight,I=this.zoomX!==A||this.zoomY!==P,$=z||I;return $?(z?(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=w.x/2,k=w.y/2,this.cacheTranslationX=Math.round(b.width/2-T)+T,this.cacheTranslationY=Math.round(b.height/2-k)+k,this.cacheWidth=S,this.cacheHeight=C,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(A,P),this.zoomX=A,this.zoomY=P,!0):!1},setOptions:function(p){this._setOptions(p),this._initGradient(p.fill,"fill"),this._initGradient(p.stroke,"stroke"),this._initPattern(p.fill,"fill"),this._initPattern(p.stroke,"stroke")},transform:function(p){var v=this.group&&!this.group._transformDone||this.group&&this.canvas&&p===this.canvas.contextTop,y=this.calcTransformMatrix(!v);p.transform(y[0],y[1],y[2],y[3],y[4],y[5])},toObject:function(p){var v=a.Object.NUM_FRACTION_DIGITS,y={type:this.type,version:a.version,originX:this.originX,originY:this.originY,left:u(this.left,v),top:u(this.top,v),width:u(this.width,v),height:u(this.height,v),fill:this.fill&&this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke&&this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:u(this.strokeWidth,v),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:u(this.strokeMiterLimit,v),scaleX:u(this.scaleX,v),scaleY:u(this.scaleY,v),angle:u(this.angle,v),flipX:this.flipX,flipY:this.flipY,opacity:u(this.opacity,v),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:u(this.skewX,v),skewY:u(this.skewY,v)};return this.clipPath&&!this.clipPath.excludeFromExport&&(y.clipPath=this.clipPath.toObject(p),y.clipPath.inverted=this.clipPath.inverted,y.clipPath.absolutePositioned=this.clipPath.absolutePositioned),a.util.populateWithProperties(this,y,p),this.includeDefaultValues||(y=this._removeDefaultValues(y)),y},toDatalessObject:function(p){return this.toObject(p)},_removeDefaultValues:function(p){var v=a.util.getKlass(p.type).prototype,y=v.stateProperties;return y.forEach(function(b){b==="left"||b==="top"||(p[b]===v[b]&&delete p[b],Array.isArray(p[b])&&Array.isArray(v[b])&&p[b].length===0&&v[b].length===0&&delete p[b])}),p},toString:function(){return"#<fabric."+f(this.type)+">"},getObjectScaling:function(){if(!this.group)return{scaleX:this.scaleX,scaleY:this.scaleY};var p=a.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(p.scaleX),scaleY:Math.abs(p.scaleY)}},getTotalObjectScaling:function(){var p=this.getObjectScaling(),v=p.scaleX,y=p.scaleY;if(this.canvas){var b=this.canvas.getZoom(),w=this.canvas.getRetinaScaling();v*=b*w,y*=b*w}return{scaleX:v,scaleY:y}},getObjectOpacity:function(){var p=this.opacity;return this.group&&(p*=this.group.getObjectOpacity()),p},_set:function(p,v){var y=p==="scaleX"||p==="scaleY",b=this[p]!==v,w=!1;return y&&(v=this._constrainScale(v)),p==="scaleX"&&v<0?(this.flipX=!this.flipX,v*=-1):p==="scaleY"&&v<0?(this.flipY=!this.flipY,v*=-1):p==="shadow"&&v&&!(v instanceof a.Shadow)?v=new a.Shadow(v):p==="dirty"&&this.group&&this.group.set("dirty",v),this[p]=v,b&&(w=this.group&&this.group.isOnACache(),this.cacheProperties.indexOf(p)>-1?(this.dirty=!0,w&&this.group.set("dirty",!0)):w&&this.stateProperties.indexOf(p)>-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(p){this.isNotVisible()||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(p.save(),this._setupCompositeOperation(p),this.drawSelectionBackground(p),this.transform(p),this._setOpacity(p),this._setShadow(p,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(p)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(p),this.objectCaching&&this.statefullCache&&this.saveState({propertySet:"cacheProperties"})),p.restore())},renderCache:function(p){p=p||{},(!this._cacheCanvas||!this._cacheContext)&&this._createCacheCanvas(),this.isCacheDirty()&&(this.statefullCache&&this.saveState({propertySet:"cacheProperties"}),this.drawObject(this._cacheContext,p.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(p,v){if(p.save(),v.inverted?p.globalCompositeOperation="destination-out":p.globalCompositeOperation="destination-in",v.absolutePositioned){var y=a.util.invertTransform(this.calcTransformMatrix());p.transform(y[0],y[1],y[2],y[3],y[4],y[5])}v.transform(p),p.scale(1/v.zoomX,1/v.zoomY),p.drawImage(v._cacheCanvas,-v.cacheTranslationX,-v.cacheTranslationY),p.restore()},drawObject:function(p,v){var y=this.fill,b=this.stroke;v?(this.fill="black",this.stroke="",this._setClippingProperties(p)):this._renderBackground(p),this._render(p),this._drawClipPath(p,this.clipPath),this.fill=y,this.stroke=b},_drawClipPath:function(p,v){!v||(v.canvas=this.canvas,v.shouldCache(),v._transformDone=!0,v.renderCache({forClipping:!0}),this.drawClipPathOnCache(p,v))},drawCacheOnCanvas:function(p){p.scale(1/this.zoomX,1/this.zoomY),p.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(p){if(this.isNotVisible())return!1;if(this._cacheCanvas&&this._cacheContext&&!p&&this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath&&this.clipPath.absolutePositioned||this.statefullCache&&this.hasStateChanged("cacheProperties")){if(this._cacheCanvas&&this._cacheContext&&!p){var v=this.cacheWidth/this.zoomX,y=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-v/2,-y/2,v,y)}return!0}return!1},_renderBackground:function(p){if(!!this.backgroundColor){var v=this._getNonTransformedDimensions();p.fillStyle=this.backgroundColor,p.fillRect(-v.x/2,-v.y/2,v.x,v.y),this._removeShadow(p)}},_setOpacity:function(p){this.group&&!this.group._transformDone?p.globalAlpha=this.getObjectOpacity():p.globalAlpha*=this.opacity},_setStrokeStyles:function(p,v){var y=v.stroke;y&&(p.lineWidth=v.strokeWidth,p.lineCap=v.strokeLineCap,p.lineDashOffset=v.strokeDashOffset,p.lineJoin=v.strokeLineJoin,p.miterLimit=v.strokeMiterLimit,y.toLive?y.gradientUnits==="percentage"||y.gradientTransform||y.patternTransform?this._applyPatternForTransformedGradient(p,y):(p.strokeStyle=y.toLive(p,this),this._applyPatternGradientTransform(p,y)):p.strokeStyle=v.stroke)},_setFillStyles:function(p,v){var y=v.fill;y&&(y.toLive?(p.fillStyle=y.toLive(p,this),this._applyPatternGradientTransform(p,v.fill)):p.fillStyle=y)},_setClippingProperties:function(p){p.globalAlpha=1,p.strokeStyle="transparent",p.fillStyle="#000000"},_setLineDash:function(p,v){!v||v.length===0||(1&v.length&&v.push.apply(v,v),p.setLineDash(v))},_renderControls:function(p,v){var y=this.getViewportTransform(),b=this.calcTransformMatrix(),w,S,C;v=v||{},S=typeof v.hasBorders<"u"?v.hasBorders:this.hasBorders,C=typeof v.hasControls<"u"?v.hasControls:this.hasControls,b=a.util.multiplyTransformMatrices(y,b),w=a.util.qrDecompose(b),p.save(),p.translate(w.translateX,w.translateY),p.lineWidth=1*this.borderScaleFactor,this.group||(p.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),this.flipX&&(w.angle-=180),p.rotate(s(this.group?w.angle:this.angle)),v.forActiveSelection||this.group?S&&this.drawBordersInGroup(p,w,v):S&&this.drawBorders(p,v),C&&this.drawControls(p,v),p.restore()},_setShadow:function(p){if(!!this.shadow){var v=this.shadow,y=this.canvas,b,w=y&&y.viewportTransform[0]||1,S=y&&y.viewportTransform[3]||1;v.nonScaling?b={scaleX:1,scaleY:1}:b=this.getObjectScaling(),y&&y._isRetinaScaling()&&(w*=a.devicePixelRatio,S*=a.devicePixelRatio),p.shadowColor=v.color,p.shadowBlur=v.blur*a.browserShadowBlurConstant*(w+S)*(b.scaleX+b.scaleY)/4,p.shadowOffsetX=v.offsetX*w*b.scaleX,p.shadowOffsetY=v.offsetY*S*b.scaleY}},_removeShadow:function(p){!this.shadow||(p.shadowColor="",p.shadowBlur=p.shadowOffsetX=p.shadowOffsetY=0)},_applyPatternGradientTransform:function(p,v){if(!v||!v.toLive)return{offsetX:0,offsetY:0};var y=v.gradientTransform||v.patternTransform,b=-this.width/2+v.offsetX||0,w=-this.height/2+v.offsetY||0;return v.gradientUnits==="percentage"?p.transform(this.width,0,0,this.height,b,w):p.transform(1,0,0,1,b,w),y&&p.transform(y[0],y[1],y[2],y[3],y[4],y[5]),{offsetX:b,offsetY:w}},_renderPaintInOrder:function(p){this.paintFirst==="stroke"?(this._renderStroke(p),this._renderFill(p)):(this._renderFill(p),this._renderStroke(p))},_render:function(){},_renderFill:function(p){!this.fill||(p.save(),this._setFillStyles(p,this),this.fillRule==="evenodd"?p.fill("evenodd"):p.fill(),p.restore())},_renderStroke:function(p){if(!(!this.stroke||this.strokeWidth===0)){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(p),p.save(),this.strokeUniform&&this.group){var v=this.getObjectScaling();p.scale(1/v.scaleX,1/v.scaleY)}else this.strokeUniform&&p.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(p,this.strokeDashArray),this._setStrokeStyles(p,this),p.stroke(),p.restore()}},_applyPatternForTransformedGradient:function(p,v){var y=this._limitCacheSize(this._getCacheCanvasDimensions()),b=a.util.createCanvasElement(),w,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),w=b.getContext("2d"),w.beginPath(),w.moveTo(0,0),w.lineTo(C,0),w.lineTo(C,T),w.lineTo(0,T),w.closePath(),w.translate(C/2,T/2),w.scale(y.zoomX/this.scaleX/S,y.zoomY/this.scaleY/S),this._applyPatternGradientTransform(w,v),w.fillStyle=v.toLive(p),w.fill(),p.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),p.scale(S*this.scaleX/y.zoomX,S*this.scaleY/y.zoomY),p.strokeStyle=w.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 p=a.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set("scaleX",p.scaleX),this.set("scaleY",p.scaleY),this.angle=p.angle,this.skewX=p.skewX,this.skewY=0}},_removeTransformMatrix:function(p){var v=this._findCenterFromElement();this.transformMatrix&&(this._assignTransformMatrixProps(),v=a.util.transformPoint(v,this.transformMatrix)),this.transformMatrix=null,p&&(this.scaleX*=p.scaleX,this.scaleY*=p.scaleY,this.cropX=p.cropX,this.cropY=p.cropY,v.x+=p.offsetLeft,v.y+=p.offsetTop,this.width=p.width,this.height=p.height),this.setPositionByOrigin(v,"center","center")},clone:function(p,v){var y=this.toObject(v);this.constructor.fromObject?this.constructor.fromObject(y,p):a.Object._fromObject("Object",y,p)},cloneAsImage:function(p,v){var y=this.toCanvasElement(v);return p&&p(new a.Image(y)),this},toCanvasElement:function(p){p||(p={});var v=a.util,y=v.saveObjectTransform(this),b=this.group,w=this.shadow,S=Math.abs,C=(p.multiplier||1)*(p.enableRetinaScaling?a.devicePixelRatio:1);delete this.group,p.withoutTransform&&v.resetObjectTransform(this),p.withoutShadow&&(this.shadow=null);var T=a.util.createCanvasElement(),k=this.getBoundingRect(!0,!0),A=this.shadow,P,z={x:0,y:0},I,$,O;A&&(I=A.blur,A.nonScaling?P={scaleX:1,scaleY:1}:P=this.getObjectScaling(),z.x=2*Math.round(S(A.offsetX)+I)*S(P.scaleX),z.y=2*Math.round(S(A.offsetY)+I)*S(P.scaleY)),$=k.width+z.x,O=k.height+z.y,T.width=Math.ceil($),T.height=Math.ceil(O);var Y=new a.StaticCanvas(T,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});p.format==="jpeg"&&(Y.backgroundColor="#fff"),this.setPositionByOrigin(new a.Point(Y.width/2,Y.height/2),"center","center");var ae=this.canvas;Y.add(this);var q=Y.toCanvasElement(C||1,p);return this.shadow=w,this.set("canvas",ae),b&&(this.group=b),this.set(y).setCoords(),Y._objects=[],Y.dispose(),Y=null,q},toDataURL:function(p){return p||(p={}),a.util.toDataURL(this.toCanvasElement(p),p.format||"png",p.quality||1)},isType:function(p){return arguments.length>1?Array.from(arguments).includes(this.type):this.type===p},complexity:function(){return 1},toJSON:function(p){return this.toObject(p)},rotate:function(p){var v=(this.originX!=="center"||this.originY!=="center")&&this.centeredRotation;return v&&this._setOriginToCenter(),this.set("angle",p),v&&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(p,v){v=v||this.canvas.getPointer(p);var y=new a.Point(v.x,v.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(p){this.globalCompositeOperation&&(p.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(p,v,y,b){var w=a[p];v=d(v,!0),a.util.enlivenPatterns([v.fill,v.stroke],function(S){typeof S[0]<"u"&&(v.fill=S[0]),typeof S[1]<"u"&&(v.stroke=S[1]),a.util.enlivenObjectEnlivables(v,v,function(){var C=b?new w(v[b],v):new w(v);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(d,u,f,s,h){var g=d.x,p=d.y,v,y,b;return typeof u=="string"?u=a[u]:u-=.5,typeof s=="string"?s=a[s]:s-=.5,v=s-u,typeof f=="string"?f=c[f]:f-=.5,typeof h=="string"?h=c[h]:h-=.5,y=h-f,(v||y)&&(b=this._getTransformedDimensions(),g=d.x+v*b.x,p=d.y+y*b.y),new t.Point(g,p)},translateToCenterPoint:function(d,u,f){var s=this.translateToGivenOrigin(d,u,f,"center","center");return this.angle?t.util.rotatePoint(s,d,o(this.angle)):s},translateToOriginPoint:function(d,u,f){var s=this.translateToGivenOrigin(d,"center","center",u,f);return this.angle?t.util.rotatePoint(s,d,o(this.angle)):s},getCenterPoint:function(){var d=new t.Point(this.left,this.top);return this.translateToCenterPoint(d,this.originX,this.originY)},getPointByOrigin:function(d,u){var f=this.getCenterPoint();return this.translateToOriginPoint(f,d,u)},toLocalPoint:function(d,u,f){var s=this.getCenterPoint(),h,g;return typeof u<"u"&&typeof f<"u"?h=this.translateToGivenOrigin(s,"center","center",u,f):h=new t.Point(this.left,this.top),g=new t.Point(d.x,d.y),this.angle&&(g=t.util.rotatePoint(g,s,-o(this.angle))),g.subtractEquals(h)},setPositionByOrigin:function(d,u,f){var s=this.translateToCenterPoint(d,u,f),h=this.translateToOriginPoint(s,this.originX,this.originY);this.set("left",h.x),this.set("top",h.y)},adjustPosition:function(d){var u=o(this.angle),f=this.getScaledWidth(),s=t.util.cos(u)*f,h=t.util.sin(u)*f,g,p;typeof this.originX=="string"?g=a[this.originX]:g=this.originX-.5,typeof d=="string"?p=a[d]:p=d-.5,this.left+=s*(p-g),this.top+=h*(p-g),this.setCoords(),this.originX=d},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var d=this.getCenterPoint();this.originX="center",this.originY="center",this.left=d.x,this.top=d.y},_resetOrigin:function(){var d=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=d.x,this.top=d.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,d=a.multiplyTransformMatrices,u=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,h,g){var p=this.getCoords(h,g),v=t.Intersection.intersectPolygonRectangle(p,f,s);return v.status==="Intersection"},intersectsWithObject:function(f,s,h){var g=t.Intersection.intersectPolygonPolygon(this.getCoords(s,h),f.getCoords(s,h));return g.status==="Intersection"||f.isContainedWithinObject(this,s,h)||this.isContainedWithinObject(f,s,h)},isContainedWithinObject:function(f,s,h){for(var g=this.getCoords(s,h),p=s?f.aCoords:f.lineCoords,v=0,y=f._getImageLines(p);v<4;v++)if(!f.containsPoint(g[v],y))return!1;return!0},isContainedWithinRect:function(f,s,h,g){var p=this.getBoundingRect(h,g);return p.left>=f.x&&p.left+p.width<=s.x&&p.top>=f.y&&p.top+p.height<=s.y},containsPoint:function(f,v,h,g){var p=this._getCoords(h,g),v=v||this._getImageLines(p),y=this._findCrossPoints(f,v);return y!==0&&y%2===1},isOnScreen:function(f){if(!this.canvas)return!1;var s=this.canvas.vptCoords.tl,h=this.canvas.vptCoords.br,g=this.getCoords(!0,f);return g.some(function(p){return p.x<=h.x&&p.x>=s.x&&p.y<=h.y&&p.y>=s.y})||this.intersectsWithRect(s,h,!0,f)?!0:this._containsCenterOfCanvas(s,h,f)},_containsCenterOfCanvas:function(f,s,h){var g={x:(f.x+s.x)/2,y:(f.y+s.y)/2};return!!this.containsPoint(g,null,!0,h)},isPartiallyOnScreen:function(f){if(!this.canvas)return!1;var s=this.canvas.vptCoords.tl,h=this.canvas.vptCoords.br;if(this.intersectsWithRect(s,h,!0,f))return!0;var g=this.getCoords(!0,f).every(function(p){return(p.x>=h.x||p.x<=s.x)&&(p.y>=h.y||p.y<=s.y)});return g&&this._containsCenterOfCanvas(s,h,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 h,g,p,v,y,b=0,w;for(var S in s)if(w=s[S],!(w.o.y<f.y&&w.d.y<f.y)&&!(w.o.y>=f.y&&w.d.y>=f.y)&&(w.o.x===w.d.x&&w.o.x>=f.x?y=w.o.x:(h=0,g=(w.d.y-w.o.y)/(w.d.x-w.o.x),p=f.y-h*f.x,v=w.o.y-g*w.o.x,y=-(p-v)/(h-g)),y>=f.x&&(b+=1),b===2))break;return b},getBoundingRect:function(f,s){var h=this.getCoords(f,s);return a.makeBoundingBoxFromPoints(h)},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 h=this.getBoundingRect(s).width/this.getScaledWidth();return this.scale(f/this.width/h)},scaleToHeight:function(f,s){var h=this.getBoundingRect(s).height/this.getScaledHeight();return this.scale(f/this.height/h)},calcLineCoords:function(){var f=this.getViewportTransform(),s=this.padding,h=c(this.angle),g=a.cos(h),p=a.sin(h),v=g*s,y=p*s,b=v+y,w=v-y,S=this.calcACoords(),C={tl:u(S.tl,f),tr:u(S.tr,f),bl:u(S.bl,f),br:u(S.br,f)};return s&&(C.tl.x-=w,C.tl.y-=b,C.tr.x+=b,C.tr.y-=w,C.bl.x-=b,C.bl.y+=w,C.br.x+=w,C.br.y+=b),C},calcOCoords:function(){var f=this._calcRotateMatrix(),s=this._calcTranslateMatrix(),h=this.getViewportTransform(),g=d(h,s),p=d(g,f),p=d(p,[1/h[0],0,0,1/h[3],0,0]),v=this._calculateCurrentDimensions(),y={};return this.forEachControl(function(b,w,S){y[w]=b.positionHandler(v,p,S)}),y},calcACoords:function(){var f=this._calcRotateMatrix(),s=this._calcTranslateMatrix(),h=d(s,f),g=this._getTransformedDimensions(),p=g.x/2,v=g.y/2;return{tl:u({x:-p,y:-v},h),tr:u({x:p,y:-v},h),bl:u({x:-p,y:v},h),br:u({x:p,y:v},h)}},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="_",h="";return!f&&this.group&&(h=this.group.transformMatrixKey(f)+s),h+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 h=this.transformMatrixKey(f),g=this.matrixCache||(this.matrixCache={});return g.key===h?g.value:(this.group&&(s=d(this.group.calcTransformMatrix(!1),s)),g.key=h,g.value=s,s)},calcOwnMatrix:function(){var f=this.transformMatrixKey(!0),s=this.ownMatrixCache||(this.ownMatrixCache={});if(s.key===f)return s.value;var h=this._calcTranslateMatrix(),g={angle:this.angle,translateX:h[4],translateY:h[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,h=this.height+f;return{x:s,y:h}},_getTransformedDimensions:function(f,s){typeof f>"u"&&(f=this.skewX),typeof s>"u"&&(s=this.skewY);var h,g,p,v=f===0&&s===0;if(this.strokeUniform?(g=this.width,p=this.height):(h=this._getNonTransformedDimensions(),g=h.x,p=h.y),v)return this._finalizeDimensions(g*this.scaleX,p*this.scaleY);var y=a.sizeAfterTransform(g,p,{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(),h=u(s,f,!0);return h.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,d){if(d){if(d.toLive)return c+": url(#SVGID_"+d.id+"); ";var u=new t.Color(d),f=c+": "+u.toRgb()+"; ",s=u.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 d=this.fillRule?this.fillRule:"nonzero",u=this.strokeWidth?this.strokeWidth:"0",f=this.strokeDashArray?this.strokeDashArray.join(" "):"none",s=this.strokeDashOffset?this.strokeDashOffset:"0",h=this.strokeLineCap?this.strokeLineCap:"butt",g=this.strokeLineJoin?this.strokeLineJoin:"miter",p=this.strokeMiterLimit?this.strokeMiterLimit:"4",v=typeof this.opacity<"u"?this.opacity:"1",y=this.visible?"":" visibility: hidden;",b=c?"":this.getSvgFilter(),w=o("fill",this.fill),S=o("stroke",this.stroke);return[S,"stroke-width: ",u,"; ","stroke-dasharray: ",f,"; ","stroke-linecap: ",h,"; ","stroke-dashoffset: ",s,"; ","stroke-linejoin: ",g,"; ","stroke-miterlimit: ",p,"; ",w,"fill-rule: ",d,"; ","opacity: ",v,";",b,y].join("")},getSvgSpanStyles:function(c,d){var u="; ",s=c.fontFamily?"font-family: "+(c.fontFamily.indexOf("'")===-1&&c.fontFamily.indexOf('"')===-1?"'"+c.fontFamily+"'":c.fontFamily)+u:"",f=c.strokeWidth?"stroke-width: "+c.strokeWidth+u:"",s=s,h=c.fontSize?"font-size: "+c.fontSize+"px"+u:"",g=c.fontStyle?"font-style: "+c.fontStyle+u:"",p=c.fontWeight?"font-weight: "+c.fontWeight+u:"",v=c.fill?o("fill",c.fill):"",y=c.stroke?o("stroke",c.stroke):"",b=this.getSvgTextDecoration(c),w=c.deltaY?"baseline-shift: "+-c.deltaY+"; ":"";return b&&(b="text-decoration: "+b+u),[y,f,s,h,g,p,b,v,w,d?"white-space: pre; ":""].join("")},getSvgTextDecoration:function(c){return["overline","underline","line-through"].filter(function(d){return c[d.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,d){var u=c?this.calcTransformMatrix():this.calcOwnMatrix(),f='transform="'+t.util.matrixToSVG(u);return f+(d||"")+'" '},_setSVGBg:function(c){if(this.backgroundColor){var d=t.Object.NUM_FRACTION_DIGITS;c.push(" <rect ",this._getFillAttributes(this.backgroundColor),' x="',a(-this.width/2,d),'" y="',a(-this.height/2,d),'" width="',a(this.width,d),'" height="',a(this.height,d),`"></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,d){d=d||{};var u=d.reviver,f=d.additionalTransform||"",s=[this.getSvgTransform(!0,f),this.getSvgCommons()].join(""),h=c.indexOf("COMMON_PARTS");return c[h]=s,u?u(c.join("")):c.join("")},_createBaseSVGMarkup:function(c,d){d=d||{};var u=d.noStyle,f=d.reviver,s=u?"":'style="'+this.getSvgStyles()+'" ',h=d.withShadow?'style="'+this.getSvgFilter()+'" ':"",g=this.clipPath,p=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",v=g&&g.absolutePositioned,y=this.stroke,b=this.fill,w=this.shadow,S,C=[],T,k=c.indexOf("COMMON_PARTS"),A=d.additionalTransform;return g&&(g.clipPathId="CLIPPATH_"+t.Object.__uid++,T='<clipPath id="'+g.clipPathId+`" >
`+g.toClipPathSVG(f)+`</clipPath>
`),v&&C.push("<g ",h,this.getSvgCommons(),` >
`),C.push("<g ",this.getSvgTransform(!1),v?"":h+this.getSvgCommons(),` >
`),S=[s,p,u?"":this.addPaintOrder()," ",A?'transform="'+A+'" ':""].join(""),c[k]=S,b&&b.toLive&&C.push(b.toSVG(this)),y&&y.toLive&&C.push(y.toSVG(this)),w&&C.push(w.toSVG(this)),g&&C.push(T),C.push(c.join("")),C.push(`</g>
`),v&&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(u,f,s){var h={},g=!0;s.forEach(function(p){h[p]=u[p]}),o(u[f],h,g)}function d(u,f,s){if(u===f)return!0;if(Array.isArray(u)){if(!Array.isArray(f)||u.length!==f.length)return!1;for(var h=0,g=u.length;h<g;h++)if(!d(u[h],f[h]))return!1;return!0}else if(u&&typeof u=="object"){var p=Object.keys(u),v;if(!f||typeof f!="object"||!s&&p.length!==Object.keys(f).length)return!1;for(var h=0,g=p.length;h<g;h++)if(v=p[h],!(v==="canvas"||v==="group")&&!d(u[v],f[v]))return!1;return!0}}t.util.object.extend(t.Object.prototype,{hasStateChanged:function(u){u=u||a;var f="_"+u;return Object.keys(this[f]).length<this[u].length?!0:!d(this[f],this,!0)},saveState:function(u){var f=u&&u.propertySet||a,s="_"+f;return this[s]?(c(this,s,this[f]),u&&u.stateProperties&&c(this,s,u.stateProperties),this):this.setupState(u)},setupState:function(u){u=u||{};var f=u.propertySet||a;return u.propertySet=f,this["_"+f]={},this.saveState(u),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 d=a.x,u=a.y,f,s,h=Object.keys(this.oCoords),g=h.length-1,p;for(this.__corner=0;g>=0;g--)if(p=h[g],!!this.isControlVisible(p)&&(s=this._getImageLines(c?this.oCoords[p].touchCorner:this.oCoords[p].corner),f=this._findCrossPoints({x:d,y:u},s),f!==0&&f%2===1))return this.__corner=p,p;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 d=this.controls[c];a[c].corner=d.calcCornerCoords(this.angle,this.cornerSize,a[c].x,a[c].y,!1),a[c].touchCorner=d.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(),d=this._calculateCurrentDimensions(),u=this.canvas.viewportTransform;return a.translate(c.x,c.y),a.scale(1/u[0],1/u[3]),a.rotate(o(this.angle)),a.fillStyle=this.selectionBackgroundColor,a.fillRect(-d.x/2,-d.y/2,d.x,d.y),a.restore(),this},drawBorders:function(a,c){c=c||{};var d=this._calculateCurrentDimensions(),u=this.borderScaleFactor,f=d.x+u,s=d.y+u,h=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),h&&(a.beginPath(),this.forEachControl(function(p,v,y){p.withConnection&&p.getVisibility(y,v)&&(g=!0,a.moveTo(p.x*f,p.y*s),a.lineTo(p.x*f+p.offsetX,p.y*s+p.offsetY))}),g&&a.stroke()),a.restore(),this},drawBordersInGroup:function(a,c,d){d=d||{};var u=t.util.sizeAfterTransform(this.width,this.height,c),f=this.strokeWidth,s=this.strokeUniform,h=this.borderScaleFactor,g=u.x+f*(s?this.canvas.getZoom():c.scaleX)+h,p=u.y+f*(s?this.canvas.getZoom():c.scaleY)+h;return a.save(),this._setLineDash(a,d.borderDashArray||this.borderDashArray),a.strokeStyle=d.borderColor||this.borderColor,a.strokeRect(-g/2,-p/2,g,p),a.restore(),this},drawControls:function(a,c){c=c||{},a.save();var d=1,u,f;return this.canvas&&(d=this.canvas.getRetinaScaling()),a.setTransform(d,0,0,d,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&&(u=this.group.calcTransformMatrix()),this.forEachControl(function(s,h,g){f=g.oCoords[h],s.getVisibility(g,h)&&(u&&(f=t.util.transformPoint(f,u)),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(){},d=a.onComplete||c,u=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(),u()},onComplete:function(){o.setCoords(),d()}})},fxCenterObjectV:function(o,a){a=a||{};var c=function(){},d=a.onComplete||c,u=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(),u()},onComplete:function(){o.setCoords(),d()}})},fxRemove:function(o,a){a=a||{};var c=function(){},d=a.onComplete||c,u=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(),u()},onComplete:function(){f.remove(o),d()}})}}),t.util.object.extend(t.Object.prototype,{animate:function(){if(arguments[0]&&typeof arguments[0]=="object"){var o=[],a,c,d=[];for(a in arguments[0])o.push(a);for(var u=0,f=o.length;u<f;u++)a=o[u],c=u!==f-1,d.push(this._animate(a,arguments[0][a],arguments[1],c));return d}else return this._animate.apply(this,arguments)},_animate:function(o,a,c,d){var u=this,f;a=a.toString(),c?c=t.util.object.clone(c):c={},~o.indexOf(".")&&(f=o.split("."));var s=u.colorProperties.indexOf(o)>-1||f&&u.colorProperties.indexOf(f[1])>-1,h=f?this.get(f[0])[f[1]]:this.get(o);"from"in c||(c.from=h),s||(~a.indexOf("=")?a=h+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(p,v,y){return c.abort.call(u,p,v,y)},onChange:function(p,v,y){f?u[f[0]][f[1]]=p:u.set(o,p),!d&&c.onChange&&c.onChange(p,v,y)},onComplete:function(p,v,y){d||(u.setCoords(),c.onComplete&&c.onComplete(p,v,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,d=a.util.object.clone,u={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,h){s||(s=[0,0,0,0]),this.callSuper("initialize",h),this.set("x1",s[0]),this.set("y1",s[1]),this.set("x2",s[2]),this.set("y2",s[3]),this._setWidthHeight(h)},_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,h){return this.callSuper("_set",s,h),typeof u[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 h=this.calcLinePoints();s.moveTo(h.x1,h.y1),s.lineTo(h.x2,h.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,h=this.y1<=this.y2?-1:1,g=s*this.width*.5,p=h*this.height*.5,v=s*this.width*-.5,y=h*this.height*-.5;return{x1:g,x2:v,y1:p,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,h,g){g=g||{};var p=a.parseAttributes(s,a.Line.ATTRIBUTE_NAMES),v=[p.x1||0,p.y1||0,p.x2||0,p.y2||0];h(new a.Line(v,c(p,g)))},a.Line.fromObject=function(s,h){function g(v){delete v.points,h&&h(v)}var p=d(s,!0);p.points=[s.x1,s.y1,s.x2,s.y2],a.Object._fromObject("Line",p,g,"points")};function f(s,h){var g=s.origin,p=s.axis1,v=s.axis2,y=s.dimension,b=h.nearest,w=h.center,S=h.farthest;return function(){switch(this.get(g)){case b:return Math.min(this.get(p),this.get(v));case w:return Math.min(this.get(p),this.get(v))+.5*this.get(y);case S:return Math.max(this.get(p),this.get(v))}}}}(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(u,f){return this.callSuper("_set",u,f),u==="radius"&&this.setRadius(f),this},toObject:function(u){return this.callSuper("toObject",["radius","startAngle","endAngle"].concat(u))},_toSVG:function(){var u,f=0,s=0,h=(this.endAngle-this.startAngle)%360;if(h===0)u=["<circle ","COMMON_PARTS",'cx="'+f+'" cy="'+s+'" ','r="',this.radius,`" />
`];else{var g=c(this.startAngle),p=c(this.endAngle),v=this.radius,y=a.util.cos(g)*v,b=a.util.sin(g)*v,w=a.util.cos(p)*v,S=a.util.sin(p)*v,C=h>180?"1":"0";u=['<path d="M '+y+" "+b," A "+v+" "+v," 0 ",+C+" 1"," "+w+" "+S,'" ',"COMMON_PARTS",` />
`]}return u},_render:function(u){u.beginPath(),u.arc(0,0,this.radius,c(this.startAngle),c(this.endAngle),!1),this._renderPaintInOrder(u)},getRadiusX:function(){return this.get("radius")*this.get("scaleX")},getRadiusY:function(){return this.get("radius")*this.get("scaleY")},setRadius:function(u){return this.radius=u,this.set("width",u*2).set("height",u*2)}}),a.Circle.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat("cx cy r".split(" ")),a.Circle.fromElement=function(u,f){var s=a.parseAttributes(u,a.Circle.ATTRIBUTE_NAMES);if(!d(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 d(u){return"radius"in u&&u.radius>=0}a.Circle.fromObject=function(u,f){a.Object._fromObject("Circle",u,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 d=this.width/2,u=this.height/2;c.beginPath(),c.moveTo(-d,u),c.lineTo(0,-u),c.lineTo(d,u),c.closePath(),this._renderPaintInOrder(c)},_toSVG:function(){var c=this.width/2,d=this.height/2,u=[-c+" "+d,"0 "+-d,c+" "+d].join(",");return["<polygon ","COMMON_PARTS",'points="',u,'" />']}}),a.Triangle.fromObject=function(c,d){return a.Object._fromObject("Triangle",c,d)}}(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(d){this.callSuper("initialize",d),this.set("rx",d&&d.rx||0),this.set("ry",d&&d.ry||0)},_set:function(d,u){switch(this.callSuper("_set",d,u),d){case"rx":this.rx=u,this.set("width",u*2);break;case"ry":this.ry=u,this.set("height",u*2);break}return this},getRx:function(){return this.get("rx")*this.get("scaleX")},getRy:function(){return this.get("ry")*this.get("scaleY")},toObject:function(d){return this.callSuper("toObject",["rx","ry"].concat(d))},_toSVG:function(){return["<ellipse ","COMMON_PARTS",'cx="0" cy="0" ','rx="',this.rx,'" ry="',this.ry,`" />
`]},_render:function(d){d.beginPath(),d.save(),d.transform(1,0,0,this.ry/this.rx,0,0),d.arc(0,0,this.rx,0,c,!1),d.restore(),this._renderPaintInOrder(d)}}),a.Ellipse.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat("cx cy rx ry".split(" ")),a.Ellipse.fromElement=function(d,u){var f=a.parseAttributes(d,a.Ellipse.ATTRIBUTE_NAMES);f.left=(f.left||0)-f.rx,f.top=(f.top||0)-f.ry,u(new a.Ellipse(f))},a.Ellipse.fromObject=function(d,u){a.Object._fromObject("Ellipse",d,u)}}(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(d){this.callSuper("initialize",d),this._initRxRy()},_initRxRy:function(){this.rx&&!this.ry?this.ry=this.rx:this.ry&&!this.rx&&(this.rx=this.ry)},_render:function(d){var u=this.rx?Math.min(this.rx,this.width/2):0,f=this.ry?Math.min(this.ry,this.height/2):0,s=this.width,h=this.height,g=-this.width/2,p=-this.height/2,v=u!==0||f!==0,y=1-.5522847498;d.beginPath(),d.moveTo(g+u,p),d.lineTo(g+s-u,p),v&&d.bezierCurveTo(g+s-y*u,p,g+s,p+y*f,g+s,p+f),d.lineTo(g+s,p+h-f),v&&d.bezierCurveTo(g+s,p+h-y*f,g+s-y*u,p+h,g+s-u,p+h),d.lineTo(g+u,p+h),v&&d.bezierCurveTo(g+y*u,p+h,g,p+h-y*f,g,p+h-f),d.lineTo(g,p+f),v&&d.bezierCurveTo(g,p+y*f,g+y*u,p,g+u,p),d.closePath(),this._renderPaintInOrder(d)},toObject:function(d){return this.callSuper("toObject",["rx","ry"].concat(d))},_toSVG:function(){var d=-this.width/2,u=-this.height/2;return["<rect ","COMMON_PARTS",'x="',d,'" y="',u,'" 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(d,u,f){if(!d)return u(null);f=f||{};var s=a.parseAttributes(d,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 h=new a.Rect(c(f?a.util.object.clone(f):{},s));h.visible=h.visible&&h.width>0&&h.height>0,u(h)},a.Rect.fromObject=function(d,u){return a.Object._fromObject("Rect",d,u)}}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.object.extend,d=a.util.array.min,u=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(h,g){g=g||{},this.points=h||[],this.callSuper("initialize",g),this._setPositionDimensions(g)},_projectStrokeOnPoints:function(){return s(this.points,this,!0)},_setPositionDimensions:function(h){var g=this._calcDimensions(h),p,v=this.exactBoundingBox?this.strokeWidth:0;this.width=g.width-v,this.height=g.height-v,h.fromSVG||(p=this.translateToGivenOrigin({x:g.left-this.strokeWidth/2+v/2,y:g.top-this.strokeWidth/2+v/2},"left","top",this.originX,this.originY)),typeof h.left>"u"&&(this.left=h.fromSVG?g.left:p.x),typeof h.top>"u"&&(this.top=h.fromSVG?g.top:p.y),this.pathOffset={x:g.left+this.width/2+v/2,y:g.top+this.height/2+v/2}},_calcDimensions:function(){var h=this.exactBoundingBox?this._projectStrokeOnPoints():this.points,g=d(h,"x")||0,p=d(h,"y")||0,v=u(h,"x")||0,y=u(h,"y")||0,b=v-g,w=y-p;return{left:g,top:p,width:b,height:w}},toObject:function(h){return c(this.callSuper("toObject",h),{points:this.points.concat()})},_toSVG:function(){for(var h=[],g=this.pathOffset.x,p=this.pathOffset.y,v=a.Object.NUM_FRACTION_DIGITS,y=0,b=this.points.length;y<b;y++)h.push(f(this.points[y].x-g,v),",",f(this.points[y].y-p,v)," ");return["<"+this.type+" ","COMMON_PARTS",'points="',h.join(""),`" />
`]},commonRender:function(h){var g,p=this.points.length,v=this.pathOffset.x,y=this.pathOffset.y;if(!p||isNaN(this.points[p-1].y))return!1;h.beginPath(),h.moveTo(this.points[0].x-v,this.points[0].y-y);for(var b=0;b<p;b++)g=this.points[b],h.lineTo(g.x-v,g.y-y);return!0},_render:function(h){!this.commonRender(h)||this._renderPaintInOrder(h)},complexity:function(){return this.get("points").length}}),a.Polyline.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat(),a.Polyline.fromElementGenerator=function(h){return function(g,p,v){if(!g)return p(null);v||(v={});var y=a.parsePointsAttribute(g.getAttribute("points")),b=a.parseAttributes(g,a[h].ATTRIBUTE_NAMES);b.fromSVG=!0,p(new a[h](y,c(b,v)))}},a.Polyline.fromElement=a.Polyline.fromElementGenerator("Polyline"),a.Polyline.fromObject=function(h,g){return a.Object._fromObject("Polyline",h,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(d){!this.commonRender(d)||(d.closePath(),this._renderPaintInOrder(d))}}),a.Polygon.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat(),a.Polygon.fromElement=a.Polyline.fromElementGenerator("Polygon"),a.Polygon.fromObject=function(d,u){a.Object._fromObject("Polygon",d,u,"points")}}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.array.min,d=a.util.array.max,u=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(h,g){g=f(g||{}),delete g.path,this.callSuper("initialize",g),this._setPath(h||[],g)},_setPath:function(h,g){this.path=a.util.makePathSimpler(Array.isArray(h)?h:a.util.parsePath(h)),a.Polyline.prototype._setPositionDimensions.call(this,g||{})},_renderPathCommands:function(h){var g,p=0,v=0,y=0,b=0,w=0,S=0,C=-this.pathOffset.x,T=-this.pathOffset.y;h.beginPath();for(var k=0,A=this.path.length;k<A;++k)switch(g=this.path[k],g[0]){case"L":y=g[1],b=g[2],h.lineTo(y+C,b+T);break;case"M":y=g[1],b=g[2],p=y,v=b,h.moveTo(y+C,b+T);break;case"C":y=g[5],b=g[6],w=g[3],S=g[4],h.bezierCurveTo(g[1]+C,g[2]+T,w+C,S+T,y+C,b+T);break;case"Q":h.quadraticCurveTo(g[1]+C,g[2]+T,g[3]+C,g[4]+T),y=g[3],b=g[4],w=g[1],S=g[2];break;case"z":case"Z":y=p,b=v,h.closePath();break}},_render:function(h){this._renderPathCommands(h),this._renderPaintInOrder(h)},toString:function(){return"#<fabric.Path ("+this.complexity()+'): { "top": '+this.top+', "left": '+this.left+" }>"},toObject:function(h){return u(this.callSuper("toObject",h),{path:this.path.map(function(g){return g.slice()})})},toDatalessObject:function(h){var g=this.toObject(["sourcePath"].concat(h));return g.sourcePath&&delete g.path,g},_toSVG:function(){var h=a.util.joinPath(this.path);return["<path ","COMMON_PARTS",'d="',h,'" stroke-linecap="round" ',`/>
`]},_getOffsetTransform:function(){var h=a.Object.NUM_FRACTION_DIGITS;return" translate("+s(-this.pathOffset.x,h)+", "+s(-this.pathOffset.y,h)+")"},toClipPathSVG:function(h){var g=this._getOffsetTransform();return" "+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:h,additionalTransform:g})},toSVG:function(h){var g=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:h,additionalTransform:g})},complexity:function(){return this.path.length},_calcDimensions:function(){for(var h=[],g=[],p,v=0,y=0,b=0,w=0,S,C=0,T=this.path.length;C<T;++C){switch(p=this.path[C],p[0]){case"L":b=p[1],w=p[2],S=[];break;case"M":b=p[1],w=p[2],v=b,y=w,S=[];break;case"C":S=a.util.getBoundsOfCurve(b,w,p[1],p[2],p[3],p[4],p[5],p[6]),b=p[5],w=p[6];break;case"Q":S=a.util.getBoundsOfCurve(b,w,p[1],p[2],p[1],p[2],p[3],p[4]),b=p[3],w=p[4];break;case"z":case"Z":b=v,w=y;break}S.forEach(function(O){h.push(O.x),g.push(O.y)}),h.push(b),g.push(w)}var k=c(h)||0,A=c(g)||0,P=d(h)||0,z=d(g)||0,I=P-k,$=z-A;return{left:k,top:A,width:I,height:$}}}),a.Path.fromObject=function(h,g){if(typeof h.sourcePath=="string"){var p=h.sourcePath;a.loadSVGFromURL(p,function(v){var y=v[0];y.setOptions(h),h.clipPath?a.util.enlivenObjects([h.clipPath],function(b){y.clipPath=b[0],g&&g(y)}):g&&g(y)})}else a.Object._fromObject("Path",h,g,"path")},a.Path.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat(["d"]),a.Path.fromElement=function(h,g,p){var v=a.parseAttributes(h,a.Path.ATTRIBUTE_NAMES);v.fromSVG=!0,g(new a.Path(v.d,u(v,p)))}}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.array.min,d=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(u,f,s){f=f||{},this._objects=[],s&&this.callSuper("initialize",f),this._objects=u||[];for(var h=this._objects.length;h--;)this._objects[h].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 u=!0,f=this._objects.length;f--;)this._objects[f].setCoords(u)},_updateObjectsCoords:function(f){for(var f=f||this.getCenterPoint(),s=this._objects.length;s--;)this._updateObjectCoords(this._objects[s],f)},_updateObjectCoords:function(u,f){var s=u.left,h=u.top,g=!0;u.set({left:s-f.x,top:h-f.y}),u.group=this,u.setCoords(g)},toString:function(){return"#<fabric.Group: ("+this.complexity()+")>"},addWithUpdate:function(u){var f=!!this.group;return this._restoreObjectsState(),a.util.resetObjectTransform(this),u&&(f&&a.util.removeTransformFromObject(u,this.group.calcTransformMatrix()),this._objects.push(u),u.group=this,u._set("canvas",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.dirty=!0,f?this.group.addWithUpdate():this.setCoords(),this},removeWithUpdate:function(u){return this._restoreObjectsState(),a.util.resetObjectTransform(this),this.remove(u),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(u){this.dirty=!0,u.group=this,u._set("canvas",this.canvas)},_onObjectRemoved:function(u){this.dirty=!0,delete u.group},_set:function(u,f){var s=this._objects.length;if(this.useSetOnGroup)for(;s--;)this._objects[s].setOnGroup(u,f);if(u==="canvas")for(;s--;)this._objects[s]._set(u,f);a.Object.prototype._set.call(this,u,f)},toObject:function(u){var f=this.includeDefaultValues,s=this._objects.filter(function(g){return!g.excludeFromExport}).map(function(g){var p=g.includeDefaultValues;g.includeDefaultValues=f;var v=g.toObject(u);return g.includeDefaultValues=p,v}),h=a.Object.prototype.toObject.call(this,u);return h.objects=s,h},toDatalessObject:function(u){var f,s=this.sourcePath;if(s)f=s;else{var h=this.includeDefaultValues;f=this._objects.map(function(p){var v=p.includeDefaultValues;p.includeDefaultValues=h;var y=p.toDatalessObject(u);return p.includeDefaultValues=v,y})}var g=a.Object.prototype.toDatalessObject.call(this,u);return g.objects=f,g},render:function(u){this._transformDone=!0,this.callSuper("render",u),this._transformDone=!1},shouldCache:function(){var u=a.Object.prototype.shouldCache.call(this);if(u){for(var f=0,s=this._objects.length;f<s;f++)if(this._objects[f].willDrawShadow())return this.ownCaching=!1,!1}return u},willDrawShadow:function(){if(a.Object.prototype.willDrawShadow.call(this))return!0;for(var u=0,f=this._objects.length;u<f;u++)if(this._objects[u].willDrawShadow())return!0;return!1},isOnACache:function(){return this.ownCaching||this.group&&this.group.isOnACache()},drawObject:function(u){for(var f=0,s=this._objects.length;f<s;f++)this._objects[f].render(u);this._drawClipPath(u,this.clipPath)},isCacheDirty:function(u){if(this.callSuper("isCacheDirty",u))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 h=this.cacheWidth/this.zoomX,g=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-h/2,-g/2,h,g)}return!0}return!1},_restoreObjectsState:function(){var u=this.calcOwnMatrix();return this._objects.forEach(function(f){a.util.addTransformToObject(f,u),delete f.group,f.setCoords()}),this},destroy:function(){return this._objects.forEach(function(u){u.set("dirty",!0)}),this._restoreObjectsState()},dispose:function(){this.callSuper("dispose"),this.forEachObject(function(u){u.dispose&&u.dispose()}),this._objects=[]},toActiveSelection:function(){if(!!this.canvas){var u=this._objects,f=this.canvas;this._objects=[];var s=this.toObject();delete s.objects;var h=new a.ActiveSelection([]);return h.set(s),h.type="activeSelection",f.remove(this),u.forEach(function(g){g.group=h,g.dirty=!0,f.add(g)}),h.canvas=f,h._objects=u,f._activeObject=h,h.setCoords(),h}},ungroupOnCanvas:function(){return this._restoreObjectsState()},setObjectsCoords:function(){var u=!0;return this.forEachObject(function(f){f.setCoords(u)}),this},_calcBounds:function(u){for(var f=[],s=[],h,g,p,v=["tr","br","bl","tl"],y=0,b=this._objects.length,w,S=v.length;y<b;++y){for(h=this._objects[y],p=h.calcACoords(),w=0;w<S;w++)g=v[w],f.push(p[g].x),s.push(p[g].y);h.aCoords=p}this._getBounds(f,s,u)},_getBounds:function(u,f,s){var h=new a.Point(c(u),c(f)),g=new a.Point(d(u),d(f)),p=h.y||0,v=h.x||0,y=g.x-h.x||0,b=g.y-h.y||0;this.width=y,this.height=b,s||this.setPositionByOrigin({x:v,y:p},"left","top")},_toSVG:function(u){for(var f=["<g ","COMMON_PARTS",` >
`],s=0,h=this._objects.length;s<h;s++)f.push(" ",this._objects[s].toSVG(u));return f.push(`</g>
`),f},getSvgStyles:function(){var u=typeof this.opacity<"u"&&this.opacity!==1?"opacity: "+this.opacity+";":"",f=this.visible?"":" visibility: hidden;";return[u,this.getSvgFilter(),f].join("")},toClipPathSVG:function(u){for(var f=[],s=0,h=this._objects.length;s<h;s++)f.push(" ",this._objects[s].toClipPathSVG(u));return this._createBaseClipPathSVGMarkup(f,{reviver:u})}}),a.Group.fromObject=function(u,f){var s=u.objects,h=a.util.object.clone(u,!0);if(delete h.objects,typeof s=="string"){a.loadSVGFromURL(s,function(g){var p=a.util.groupSVGElements(g,u,s),v=h.clipPath;delete h.clipPath,p.set(h),v?a.util.enlivenObjects([v],function(y){p.clipPath=y[0],f&&f(p)}):f&&f(p)});return}a.util.enlivenObjects(s,function(g){a.util.enlivenObjectEnlivables(u,h,function(){f&&f(new a.Group(g,h,!0))})})})}(e),function(o){var a=o.fabric||(o.fabric={});a.ActiveSelection||(a.ActiveSelection=a.util.createClass(a.Group,{type:"activeSelection",initialize:function(c,d){d=d||{},this._objects=c||[];for(var u=this._objects.length;u--;)this._objects[u].group=this;d.originX&&(this.originX=d.originX),d.originY&&(this.originY=d.originY),this._calcBounds(),this._updateObjectsCoords(),a.Object.prototype.initialize.call(this,d),this.setCoords()},toGroup:function(){var c=this._objects.concat();this._objects=[];var d=a.Object.prototype.toObject.call(this),u=new a.Group([]);if(delete d.type,u.set(d),c.forEach(function(s){s.canvas.remove(s),s.group=u}),u._objects=c,!this.canvas)return u;var f=this.canvas;return f.add(u),f._activeObject=u,u.setCoords(),u},onDeselect:function(){return this.destroy(),!1},toString:function(){return"#<fabric.ActiveSelection: ("+this.complexity()+")>"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(c,d,u){c.save(),c.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,u=u||{},typeof u.hasControls>"u"&&(u.hasControls=!1),u.forActiveSelection=!0;for(var f=0,s=this._objects.length;f<s;f++)this._objects[f]._renderControls(c,u);this.callSuper("_renderControls",c,d),c.restore()}}),a.ActiveSelection.fromObject=function(c,d){a.util.enlivenObjects(c.objects,function(u){delete c.objects,d&&d(new a.ActiveSelection(u,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,d){d||(d={}),this.filters=[],this.cacheKey="texture"+t.Object.__uid++,this.callSuper("initialize",d),this._initElement(c,d)},getElement:function(){return this._element||{}},setElement:function(c,d){return this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._element=c,this._originalElement=c,this._initConfig(d),this.filters.length!==0&&this.applyFilters(),this.resizeFilter&&this.applyResizeFilters(),this},removeTexture:function(c){var d=t.filterBackend;d&&d.evictCachesForKey&&d.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 d=this.width/2,u=this.height/2;c.beginPath(),c.moveTo(-d,-u),c.lineTo(d,-u),c.lineTo(d,u),c.lineTo(-d,u),c.lineTo(-d,-u),c.closePath()}},toObject:function(c){var d=[];this.filters.forEach(function(f){f&&d.push(f.toObject())});var u=a(this.callSuper("toObject",["cropX","cropY"].concat(c)),{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:d});return this.resizeFilter&&(u.resizeFilter=this.resizeFilter.toObject()),u},hasCrop:function(){return this.cropX||this.cropY||this.width<this._element.width||this.height<this._element.height},_toSVG:function(){var c=[],d=[],u,f=this._element,s=-this.width/2,h=-this.height/2,g="",p="";if(!f)return[];if(this.hasCrop()){var v=t.Object.__uid++;c.push('<clipPath id="imageCrop_'+v+`">
`,' <rect x="'+s+'" y="'+h+'" width="'+this.width+'" height="'+this.height+`" />
`,`</clipPath>
`),g=' clip-path="url(#imageCrop_'+v+')" '}if(this.imageSmoothing||(p='" image-rendering="optimizeSpeed'),d.push(" <image ","COMMON_PARTS",'xlink:href="',this.getSvgSrc(!0),'" x="',s-this.cropX,'" y="',h-this.cropY,'" width="',f.width||f.naturalWidth,'" height="',f.height||f.height,p,'"',g,`></image>
`),this.stroke||this.strokeDashArray){var y=this.fill;this.fill=null,u=[" <rect ",'x="',s,'" y="',h,'" width="',this.width,'" height="',this.height,'" style="',this.getSvgStyles(),`"/>
`],this.fill=y}return this.paintFirst!=="fill"?c=c.concat(u,d):c=c.concat(d,u),c},getSrc:function(c){var d=c?this._element:this._originalElement;return d?d.toDataURL?d.toDataURL():this.srcFromAttribute?d.getAttribute("src"):d.src:this.src||""},setSrc:function(c,d,u){return t.util.loadImage(c,function(f,s){this.setElement(f,u),this._setWidthHeight(),d&&d(this,s)},this,u&&u.crossOrigin),this},toString:function(){return'#<fabric.Image: { src: "'+this.getSrc()+'" }>'},applyResizeFilters:function(){var c=this.resizeFilter,d=this.minimumScaleTrigger,u=this.getTotalObjectScaling(),f=u.scaleX,s=u.scaleY,h=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!c||f>d&&s>d){this._element=h,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=f,this._lastScaleY=s;return}t.filterBackend||(t.filterBackend=t.initFilterBackend());var g=t.util.createCanvasElement(),p=this._filteredEl?this.cacheKey+"_filtered":this.cacheKey,v=h.width,y=h.height;g.width=v,g.height=y,this._element=g,this._lastScaleX=c.scaleX=f,this._lastScaleY=c.scaleY=s,t.filterBackend.applyFilters([c],h,v,y,this._element,p),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(h){return h&&!h.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 d=this._originalElement,u=d.naturalWidth||d.width,f=d.naturalHeight||d.height;if(this._element===this._originalElement){var s=t.util.createCanvasElement();s.width=u,s.height=f,this._element=s,this._filteredEl=s}else this._element=this._filteredEl,this._filteredEl.getContext("2d").clearRect(0,0,u,f),this._lastScaleX=1,this._lastScaleY=1;return t.filterBackend||(t.filterBackend=t.initFilterBackend()),t.filterBackend.applyFilters(c,this._originalElement,u,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 d=this._element;if(!!d){var u=this._filterScalingX,f=this._filterScalingY,s=this.width,h=this.height,g=Math.min,p=Math.max,v=p(this.cropX,0),y=p(this.cropY,0),b=d.naturalWidth||d.width,w=d.naturalHeight||d.height,S=v*u,C=y*f,T=g(s*u,b-S),k=g(h*f,w-C),A=-s/2,P=-h/2,z=g(s,b/u-v),I=g(h,w/f-y);d&&c.drawImage(d,S,C,T,k,A,P,z,I)}},_needsResize:function(){var c=this.getTotalObjectScaling();return c.scaleX!==this._lastScaleX||c.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(c,d){this.setElement(t.util.getById(c),d),t.util.addClass(this.getElement(),t.Image.CSS_CANVAS)},_initConfig:function(c){c||(c={}),this.setOptions(c),this._setWidthHeight(c)},_initFilters:function(c,d){c&&c.length?t.util.enlivenObjects(c,function(u){d&&d(u)},"fabric.Image.filters"):d&&d()},_setWidthHeight:function(c){c||(c={});var d=this.getElement();this.width=c.width||d.naturalWidth||d.width||0,this.height=c.height||d.naturalHeight||d.height||0},parsePreserveAspectRatioAttribute:function(){var c=t.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||""),d=this._element.width,u=this._element.height,f=1,s=1,h=0,g=0,p=0,v=0,y,b=this.width,w=this.height,S={width:b,height:w};return c&&(c.alignX!=="none"||c.alignY!=="none")?(c.meetOrSlice==="meet"&&(f=s=t.util.findScaleToFit(this._element,S),y=(b-d*f)/2,c.alignX==="Min"&&(h=-y),c.alignX==="Max"&&(h=y),y=(w-u*s)/2,c.alignY==="Min"&&(g=-y),c.alignY==="Max"&&(g=y)),c.meetOrSlice==="slice"&&(f=s=t.util.findScaleToCover(this._element,S),y=d-b/f,c.alignX==="Mid"&&(p=y/2),c.alignX==="Max"&&(p=y),y=u-w/s,c.alignY==="Mid"&&(v=y/2),c.alignY==="Max"&&(v=y),d=b/f,u=w/s)):(f=b/d,s=w/u),{width:d,height:u,scaleX:f,scaleY:s,offsetLeft:h,offsetTop:g,cropX:p,cropY:v}}}),t.Image.CSS_CANVAS="canvas-img",t.Image.prototype.getSvgSrc=t.Image.prototype.getSrc,t.Image.fromObject=function(c,d){var u=t.util.object.clone(c);t.util.loadImage(u.src,function(f,s){if(s){d&&d(null,!0);return}t.Image.prototype._initFilters.call(u,u.filters,function(h){u.filters=h||[],t.Image.prototype._initFilters.call(u,[u.resizeFilter],function(g){u.resizeFilter=g[0],t.util.enlivenObjectEnlivables(u,u,function(){var p=new t.Image(f,u);d(p,!1)})})})},null,u.crossOrigin)},t.Image.fromURL=function(c,d,u){t.util.loadImage(c,function(f,s){d&&d(new t.Image(f,u),s)},null,u&&u.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,d,u){var f=t.parseAttributes(c,t.Image.ATTRIBUTE_NAMES);t.Image.fromURL(f["xlink:href"],d,a(u?t.util.object.clone(u):{},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,d=o.onChange||a,u=this;return t.util.animate({target:this,startValue:this.get("angle"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(f){u.rotate(f),d()},onComplete:function(){u.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,d){var u="precision "+d+` float;
void main(){}`,f=c.createShader(c.FRAGMENT_SHADER);return c.shaderSource(f,u),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 d=document.createElement("canvas"),u=d.getContext("webgl")||d.getContext("experimental-webgl"),f=!1;if(u){t.maxTextureSize=u.getParameter(u.MAX_TEXTURE_SIZE),f=t.maxTextureSize>=c;for(var s=["highp","mediump","lowp"],h=0;h<3;h++)if(o(u,s[h])){t.webGlPrecision=s[h];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,d){this.dispose(),this.createWebGLCanvas(c,d),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(c,d)},chooseFastestCopyGLTo2DMethod:function(c,d){var u=typeof window.performance<"u",f;try{new ImageData(1,1),f=!0}catch{f=!1}var s=typeof ArrayBuffer<"u",h=typeof Uint8ClampedArray<"u";if(!!(u&&f&&s&&h)){var g=t.util.createCanvasElement(),p=new ArrayBuffer(c*d*4);if(t.forceGLPutImageData){this.imageBuffer=p,this.copyGLTo2D=m;return}var v={imageBuffer:p,destinationWidth:c,destinationHeight:d,targetCanvas:g},y,b,w;g.width=c,g.height=d,y=window.performance.now(),l.call(v,this.gl,v),b=window.performance.now()-y,y=window.performance.now(),m.call(v,this.gl,v),w=window.performance.now()-y,b>w?(this.imageBuffer=p,this.copyGLTo2D=m):this.copyGLTo2D=l}},createWebGLCanvas:function(c,d){var u=t.util.createCanvasElement();u.width=c,u.height=d;var f={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},s=u.getContext("webgl",f);s||(s=u.getContext("experimental-webgl",f)),s&&(s.clearColor(0,0,0,0),this.canvas=u,this.gl=s)},applyFilters:function(c,d,u,f,s,h){var g=this.gl,p;h&&(p=this.getCachedTexture(h,d));var v={originalWidth:d.width||d.originalWidth,originalHeight:d.height||d.originalHeight,sourceWidth:u,sourceHeight:f,destinationWidth:u,destinationHeight:f,context:g,sourceTexture:this.createTexture(g,u,f,!p&&d),targetTexture:this.createTexture(g,u,f),originalTexture:p||this.createTexture(g,u,f,!p&&d),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(v)}),i(v),this.copyGLTo2D(g,v),g.bindTexture(g.TEXTURE_2D,null),g.deleteTexture(v.sourceTexture),g.deleteTexture(v.targetTexture),g.deleteFramebuffer(y),s.getContext("2d").setTransform(1,0,0,1,0,0),v},dispose:function(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(c,d,u,f,s){var h=c.createTexture();return c.bindTexture(c.TEXTURE_2D,h),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,d,u,0,c.RGBA,c.UNSIGNED_BYTE,null),h},getCachedTexture:function(c,d){if(this.textureCache[c])return this.textureCache[c];var u=this.createTexture(this.gl,d.width,d.height,d);return this.textureCache[c]=u,u},evictCachesForKey:function(c){this.textureCache[c]&&(this.gl.deleteTexture(this.textureCache[c]),delete this.textureCache[c])},copyGLTo2D:l,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var c=this.gl,d={renderer:"",vendor:""};if(!c)return d;var u=c.getExtension("WEBGL_debug_renderer_info");if(u){var f=c.getParameter(u.UNMASKED_RENDERER_WEBGL),s=c.getParameter(u.UNMASKED_VENDOR_WEBGL);f&&(d.renderer=f.toLowerCase()),s&&(d.vendor=s.toLowerCase())}return this.gpuInfo=d,d}}}();function i(o){var a=o.targetCanvas,c=a.width,d=a.height,u=o.destinationWidth,f=o.destinationHeight;(c!==u||d!==f)&&(a.width=u,a.height=f)}function l(o,a){var c=o.canvas,d=a.targetCanvas,u=d.getContext("2d");u.translate(0,d.height),u.scale(1,-1);var f=c.height-d.height;u.drawImage(c,0,f,d.width,d.height,0,0,d.width,d.height)}function m(o,a){var c=a.targetCanvas,d=c.getContext("2d"),u=a.destinationWidth,f=a.destinationHeight,s=u*f*4,h=new Uint8Array(this.imageBuffer,0,s),g=new Uint8ClampedArray(this.imageBuffer,0,s);o.readPixels(0,0,u,f,o.RGBA,o.UNSIGNED_BYTE,h);var p=new ImageData(g,u,f);d.putImageData(p,0,0)}(function(){var o=function(){};t.Canvas2dFilterBackend=a;function a(){}a.prototype={evictCachesForKey:o,dispose:o,clearWebGLCaches:o,resources:{},applyFilters:function(c,d,u,f,s){var h=s.getContext("2d");h.drawImage(d,0,0,u,f);var g=h.getImageData(0,0,u,f),p=h.getImageData(0,0,u,f),v={sourceWidth:u,sourceHeight:f,imageData:g,originalEl:d,originalImageData:p,canvasEl:s,ctx:h,filterBackend:this};return c.forEach(function(y){y.applyTo(v)}),(v.imageData.width!==u||v.imageData.height!==f)&&(s.width=v.imageData.width,s.height=v.imageData.height),h.putImageData(v.imageData,0,0),v}}})(),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 d=o.createShader(o.VERTEX_SHADER);if(o.shaderSource(d,c),o.compileShader(d),!o.getShaderParameter(d,o.COMPILE_STATUS))throw new Error("Vertex shader compile error for "+this.type+": "+o.getShaderInfoLog(d));var u=o.createShader(o.FRAGMENT_SHADER);if(o.shaderSource(u,a),o.compileShader(u),!o.getShaderParameter(u,o.COMPILE_STATUS))throw new Error("Fragment shader compile error for "+this.type+": "+o.getShaderInfoLog(u));var f=o.createProgram();if(o.attachShader(f,d),o.attachShader(f,u),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),h=this.getUniformLocations(o,f)||{};return h.uStepW=o.getUniformLocation(f,"uStepW"),h.uStepH=o.getUniformLocation(f,"uStepH"),{program:f,attributeLocations:s,uniformLocations:h}},getAttributeLocations:function(o,a){return{aPosition:o.getAttribLocation(a,"aPosition")}},getUniformLocations:function(){return{}},sendAttributeData:function(o,a,c){var d=a.aPosition,u=o.createBuffer();o.bindBuffer(o.ARRAY_BUFFER,u),o.enableVertexAttribArray(d),o.vertexAttribPointer(d,2,o.FLOAT,!1,0,0),o.bufferData(o.ARRAY_BUFFER,c,o.STATIC_DRAW)},_setupFrameBuffer:function(o){var a=o.context,c,d;o.passes>1?(c=o.destinationWidth,d=o.destinationHeight,(o.sourceWidth!==c||o.sourceHeight!==d)&&(a.deleteTexture(o.targetTexture),o.targetTexture=o.filterBackend.createTexture(a,c,d)),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,d=a.util.createClass;c.ColorMatrix=d(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(u){this.callSuper("initialize",u),this.matrix=this.matrix.slice(0)},applyTo2d:function(u){var f=u.imageData,s=f.data,h=s.length,g=this.matrix,p,v,y,b,w,S=this.colorsOnly;for(w=0;w<h;w+=4)p=s[w],v=s[w+1],y=s[w+2],S?(s[w]=p*g[0]+v*g[1]+y*g[2]+g[4]*255,s[w+1]=p*g[5]+v*g[6]+y*g[7]+g[9]*255,s[w+2]=p*g[10]+v*g[11]+y*g[12]+g[14]*255):(b=s[w+3],s[w]=p*g[0]+v*g[1]+y*g[2]+b*g[3]+g[4]*255,s[w+1]=p*g[5]+v*g[6]+y*g[7]+b*g[8]+g[9]*255,s[w+2]=p*g[10]+v*g[11]+y*g[12]+b*g[13]+g[14]*255,s[w+3]=p*g[15]+v*g[16]+y*g[17]+b*g[18]+g[19]*255)},getUniformLocations:function(u,f){return{uColorMatrix:u.getUniformLocation(f,"uColorMatrix"),uConstants:u.getUniformLocation(f,"uConstants")}},sendUniformData:function(u,f){var s=this.matrix,h=[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]];u.uniformMatrix4fv(f.uColorMatrix,!1,h),u.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,d=a.util.createClass;c.Brightness=d(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(u){if(this.brightness!==0){var f=u.imageData,s=f.data,h,g=s.length,p=Math.round(this.brightness*255);for(h=0;h<g;h+=4)s[h]=s[h]+p,s[h+1]=s[h+1]+p,s[h+2]=s[h+2]+p}},getUniformLocations:function(u,f){return{uBrightness:u.getUniformLocation(f,"uBrightness")}},sendUniformData:function(u,f){u.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,d=a.Image.filters,u=a.util.createClass;d.Convolute=u(d.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),h=this.type+"_"+s+"_"+(this.opaque?1:0),g=this.fragmentSource[h];return f.programCache.hasOwnProperty(h)||(f.programCache[h]=this.createProgram(f.context,g)),f.programCache[h]},applyTo2d:function(f){var s=f.imageData,h=s.data,g=this.matrix,p=Math.round(Math.sqrt(g.length)),v=Math.floor(p/2),y=s.width,b=s.height,w=f.ctx.createImageData(y,b),S=w.data,C=this.opaque?1:0,T,k,A,P,z,I,$,O,Y,ae,q,J,E;for(q=0;q<b;q++)for(ae=0;ae<y;ae++){for(z=(q*y+ae)*4,T=0,k=0,A=0,P=0,E=0;E<p;E++)for(J=0;J<p;J++)$=q+E-v,I=ae+J-v,!($<0||$>=b||I<0||I>=y)&&(O=($*y+I)*4,Y=g[E*p+J],T+=h[O]*Y,k+=h[O+1]*Y,A+=h[O+2]*Y,C||(P+=h[O+3]*Y));S[z]=T,S[z+1]=k,S[z+2]=A,C?S[z+3]=h[z+3]:S[z+3]=P}f.imageData=w},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,d=a.util.createClass;c.Grayscale=d(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(u){var f=u.imageData,s=f.data,h,g=s.length,p,v=this.mode;for(h=0;h<g;h+=4)v==="average"?p=(s[h]+s[h+1]+s[h+2])/3:v==="lightness"?p=(Math.min(s[h],s[h+1],s[h+2])+Math.max(s[h],s[h+1],s[h+2]))/2:v==="luminosity"&&(p=.21*s[h]+.72*s[h+1]+.07*s[h+2]),s[h]=p,s[h+1]=p,s[h+2]=p},retrieveShader:function(u){var f=this.type+"_"+this.mode;if(!u.programCache.hasOwnProperty(f)){var s=this.fragmentSource[this.mode];u.programCache[f]=this.createProgram(u.context,s)}return u.programCache[f]},getUniformLocations:function(u,f){return{uMode:u.getUniformLocation(f,"uMode")}},sendUniformData:function(u,f){var s=1;u.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,d=a.util.createClass;c.Invert=d(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(u){var f=u.imageData,s=f.data,h,g=s.length;for(h=0;h<g;h+=4)s[h]=255-s[h],s[h+1]=255-s[h+1],s[h+2]=255-s[h+2]},isNeutralState:function(){return!this.invert},getUniformLocations:function(u,f){return{uInvert:u.getUniformLocation(f,"uInvert")}},sendUniformData:function(u,f){u.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,d=a.Image.filters,u=a.util.createClass;d.Noise=u(d.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,h=s.data,g,p=h.length,v=this.noise,y;for(g=0,p=h.length;g<p;g+=4)y=(.5-Math.random())*v,h[g]+=y,h[g+1]+=y,h[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,d=a.util.createClass;c.Pixelate=d(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(u){var f=u.imageData,s=f.data,h=f.height,g=f.width,p,v,y,b,w,S,C,T,k,A,P;for(v=0;v<h;v+=this.blocksize)for(y=0;y<g;y+=this.blocksize)for(p=v*4*g+y*4,b=s[p],w=s[p+1],S=s[p+2],C=s[p+3],A=Math.min(v+this.blocksize,h),P=Math.min(y+this.blocksize,g),T=v;T<A;T++)for(k=y;k<P;k++)p=T*4*g+k*4,s[p]=b,s[p+1]=w,s[p+2]=S,s[p+3]=C},isNeutralState:function(){return this.blocksize===1},getUniformLocations:function(u,f){return{uBlocksize:u.getUniformLocation(f,"uBlocksize"),uStepW:u.getUniformLocation(f,"uStepW"),uStepH:u.getUniformLocation(f,"uStepH")}},sendUniformData:function(u,f){u.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,d=a.Image.filters,u=a.util.createClass;d.RemoveColor=u(d.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,h=s.data,g,p=this.distance*255,v,y,b,w=new a.Color(this.color).getSource(),S=[w[0]-p,w[1]-p,w[2]-p],C=[w[0]+p,w[1]+p,w[2]+p];for(g=0;g<h.length;g+=4)v=h[g],y=h[g+1],b=h[g+2],v>S[0]&&y>S[1]&&b>S[2]&&v<C[0]&&y<C[1]&&b<C[2]&&(h[g+3]=0)},getUniformLocations:function(f,s){return{uLow:f.getUniformLocation(s,"uLow"),uHigh:f.getUniformLocation(s,"uHigh")}},sendUniformData:function(f,s){var h=new a.Color(this.color).getSource(),g=parseFloat(this.distance),p=[0+h[0]/255-g,0+h[1]/255-g,0+h[2]/255-g,1],v=[h[0]/255+g,h[1]/255+g,h[2]/255+g,1];f.uniform4fv(s.uLow,p),f.uniform4fv(s.uHigh,v)},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,d=a.util.createClass,u={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 u)c[f]=d(c.ColorMatrix,{type:f,matrix:u[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,d=a.util.createClass;c.BlendColor=d(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(u){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[u]+`}
}`},retrieveShader:function(u){var f=this.type+"_"+this.mode,s;return u.programCache.hasOwnProperty(f)||(s=this.buildSource(this.mode),u.programCache[f]=this.createProgram(u.context,s)),u.programCache[f]},applyTo2d:function(u){var f=u.imageData,s=f.data,h=s.length,g,p,v,y,b,w,S,C=1-this.alpha;S=new a.Color(this.color).getSource(),g=S[0]*this.alpha,p=S[1]*this.alpha,v=S[2]*this.alpha;for(var T=0;T<h;T+=4)switch(y=s[T],b=s[T+1],w=s[T+2],this.mode){case"multiply":s[T]=y*g/255,s[T+1]=b*p/255,s[T+2]=w*v/255;break;case"screen":s[T]=255-(255-y)*(255-g)/255,s[T+1]=255-(255-b)*(255-p)/255,s[T+2]=255-(255-w)*(255-v)/255;break;case"add":s[T]=y+g,s[T+1]=b+p,s[T+2]=w+v;break;case"diff":case"difference":s[T]=Math.abs(y-g),s[T+1]=Math.abs(b-p),s[T+2]=Math.abs(w-v);break;case"subtract":s[T]=y-g,s[T+1]=b-p,s[T+2]=w-v;break;case"darken":s[T]=Math.min(y,g),s[T+1]=Math.min(b,p),s[T+2]=Math.min(w,v);break;case"lighten":s[T]=Math.max(y,g),s[T+1]=Math.max(b,p),s[T+2]=Math.max(w,v);break;case"overlay":s[T]=g<128?2*y*g/255:255-2*(255-y)*(255-g)/255,s[T+1]=p<128?2*b*p/255:255-2*(255-b)*(255-p)/255,s[T+2]=v<128?2*w*v/255:255-2*(255-w)*(255-v)/255;break;case"exclusion":s[T]=g+y-2*g*y/255,s[T+1]=p+b-2*p*b/255,s[T+2]=v+w-2*v*w/255;break;case"tint":s[T]=g+y*C,s[T+1]=p+b*C,s[T+2]=v+w*C}},getUniformLocations:function(u,f){return{uColor:u.getUniformLocation(f,"uColor")}},sendUniformData:function(u,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,u.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,d=a.util.createClass;c.BlendImage=d(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(u){var f=this.type+"_"+this.mode,s=this.fragmentSource[this.mode];return u.programCache.hasOwnProperty(f)||(u.programCache[f]=this.createProgram(u.context,s)),u.programCache[f]},applyToWebGL:function(u){var f=u.context,s=this.createTexture(u.filterBackend,this.image);this.bindAdditionalTexture(f,s,f.TEXTURE1),this.callSuper("applyToWebGL",u),this.unbindAdditionalTexture(f,f.TEXTURE1)},createTexture:function(u,f){return u.getCachedTexture(f.cacheKey,f._element)},calculateMatrix:function(){var u=this.image,f=u._element.width,s=u._element.height;return[1/u.scaleX,0,0,0,1/u.scaleY,0,-u.left/f,-u.top/s,1]},applyTo2d:function(u){var f=u.imageData,s=u.filterBackend.resources,h=f.data,g=h.length,p=f.width,v=f.height,y,b,w,S,C,T,k,A,P,z,I=this.image,$;s.blendImage||(s.blendImage=a.util.createCanvasElement()),P=s.blendImage,z=P.getContext("2d"),P.width!==p||P.height!==v?(P.width=p,P.height=v):z.clearRect(0,0,p,v),z.setTransform(I.scaleX,0,0,I.scaleY,I.left,I.top),z.drawImage(I._element,0,0,p,v),$=z.getImageData(0,0,p,v).data;for(var O=0;O<g;O+=4)switch(C=h[O],T=h[O+1],k=h[O+2],A=h[O+3],y=$[O],b=$[O+1],w=$[O+2],S=$[O+3],this.mode){case"multiply":h[O]=C*y/255,h[O+1]=T*b/255,h[O+2]=k*w/255,h[O+3]=A*S/255;break;case"mask":h[O+3]=S;break}},getUniformLocations:function(u,f){return{uTransformMatrix:u.getUniformLocation(f,"uTransformMatrix"),uImage:u.getUniformLocation(f,"uImage")}},sendUniformData:function(u,f){var s=this.calculateMatrix();u.uniform1i(f.uImage,1),u.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(u,f){a.Image.fromObject(u.image,function(s){var h=a.util.object.clone(u);h.image=s,f(new a.Image.filters.BlendImage(h))})}}(e),function(o){var a=o.fabric||(o.fabric={}),c=Math.pow,d=Math.floor,u=Math.sqrt,f=Math.abs,s=Math.round,h=Math.sin,g=Math.ceil,p=a.Image.filters,v=a.util.createClass;p.Resize=v(p.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(),w=this.type+"_"+b;if(!y.programCache.hasOwnProperty(w)){var S=this.generateShader(b);y.programCache[w]=this.createProgram(y.context,S)}return y.programCache[w]},getFilterWindow:function(){var y=this.tempScale;return Math.ceil(this.lanczosLobes/y)},getTaps:function(){for(var y=this.lanczosCreate(this.lanczosLobes),b=this.tempScale,w=this.getFilterWindow(),S=new Array(w),C=1;C<=w;C++)S[C-1]=y(C*b);return S},generateShader:function(S){for(var b=new Array(S),w=this.fragmentSourceTOP,S,C=1;C<=S;C++)b[C-1]=C+".0 * uDelta";return w+="uniform float uTaps["+S+`];
`,w+=`void main() {
`,w+=` vec4 color = texture2D(uTexture, vTexCoord);
`,w+=` float sum = 1.0;
`,b.forEach(function(T,k){w+=" color += texture2D(uTexture, vTexCoord + "+T+") * uTaps["+k+`];
`,w+=" color += texture2D(uTexture, vTexCoord - "+T+") * uTaps["+k+`];
`,w+=" sum += 2.0 * uTaps["+k+`];
`}),w+=` gl_FragColor = color / sum;
`,w+="}",w},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 w=b/y;return h(b)/b*h(w)/w}},applyTo2d:function(y){var b=y.imageData,w=this.scaleX,S=this.scaleY;this.rcpScaleX=1/w,this.rcpScaleY=1/S;var C=b.width,T=b.height,k=s(C*w),A=s(T*S),P;this.resizeType==="sliceHack"?P=this.sliceByTwo(y,C,T,k,A):this.resizeType==="hermite"?P=this.hermiteFastResize(y,C,T,k,A):this.resizeType==="bilinear"?P=this.bilinearFiltering(y,C,T,k,A):this.resizeType==="lanczos"&&(P=this.lanczosResize(y,C,T,k,A)),y.imageData=P},sliceByTwo:function(y,b,w,S,C){var T=y.imageData,k=.5,A=!1,P=!1,z=b*k,I=w*k,$=a.filterBackend.resources,O,Y,ae=0,q=0,J=b,E=0;for($.sliceByTwo||($.sliceByTwo=document.createElement("canvas")),O=$.sliceByTwo,(O.width<b*1.5||O.height<w)&&(O.width=b*1.5,O.height=w),Y=O.getContext("2d"),Y.clearRect(0,0,b*1.5,w),Y.putImageData(T,0,0),S=d(S),C=d(C);!A||!P;)b=z,w=I,S<d(z*k)?z=d(z*k):(z=S,A=!0),C<d(I*k)?I=d(I*k):(I=C,P=!0),Y.drawImage(O,ae,q,b,w,J,E,z,I),ae=J,q=E,E+=I;return Y.getImageData(ae,q,S,C)},lanczosResize:function(y,b,w,S,C){function T(M){var R,W,D,B,Z,H,Q,te,fe,me,_e;for(E.x=(M+.5)*I,V.x=d(E.x),R=0;R<C;R++){for(E.y=(R+.5)*$,V.y=d(E.y),Z=0,H=0,Q=0,te=0,fe=0,W=V.x-ae;W<=V.x+ae;W++)if(!(W<0||W>=b)){me=d(1e3*f(W-E.x)),J[me]||(J[me]={});for(var j=V.y-q;j<=V.y+q;j++)j<0||j>=w||(_e=d(1e3*f(j-E.y)),J[me][_e]||(J[me][_e]=z(u(c(me*O,2)+c(_e*Y,2))/1e3)),D=J[me][_e],D>0&&(B=(j*b+W)*4,Z+=D,H+=D*k[B],Q+=D*k[B+1],te+=D*k[B+2],fe+=D*k[B+3]))}B=(R*S+M)*4,P[B]=H/Z,P[B+1]=Q/Z,P[B+2]=te/Z,P[B+3]=fe/Z}return++M<S?T(M):A}var k=y.imageData.data,A=y.ctx.createImageData(S,C),P=A.data,z=this.lanczosCreate(this.lanczosLobes),I=this.rcpScaleX,$=this.rcpScaleY,O=2/this.rcpScaleX,Y=2/this.rcpScaleY,ae=g(I*this.lanczosLobes/2),q=g($*this.lanczosLobes/2),J={},E={},V={};return T(0)},bilinearFiltering:function(y,b,w,S,C){var T,k,A,P,z,I,$,O,Y,ae,q,J,E=0,V,M=this.rcpScaleX,R=this.rcpScaleY,W=4*(b-1),D=y.imageData,B=D.data,Z=y.ctx.createImageData(S,C),H=Z.data;for($=0;$<C;$++)for(O=0;O<S;O++)for(z=d(M*O),I=d(R*$),Y=M*O-z,ae=R*$-I,V=4*(I*b+z),q=0;q<4;q++)T=B[V+q],k=B[V+4+q],A=B[V+W+q],P=B[V+W+4+q],J=T*(1-Y)*(1-ae)+k*Y*(1-ae)+A*ae*(1-Y)+P*Y*ae,H[E++]=J;return Z},hermiteFastResize:function(y,b,w,S,C){for(var T=this.rcpScaleX,k=this.rcpScaleY,A=g(T/2),P=g(k/2),z=y.imageData,I=z.data,$=y.ctx.createImageData(S,C),O=$.data,Y=0;Y<C;Y++)for(var ae=0;ae<S;ae++){for(var q=(ae+Y*S)*4,J=0,E=0,V=0,M=0,R=0,W=0,D=0,B=(Y+.5)*k,Z=d(Y*k);Z<(Y+1)*k;Z++)for(var H=f(B-(Z+.5))/P,Q=(ae+.5)*T,te=H*H,fe=d(ae*T);fe<(ae+1)*T;fe++){var me=f(Q-(fe+.5))/A,_e=u(te+me*me);_e>1&&_e<-1||(J=2*_e*_e*_e-3*_e*_e+1,J>0&&(me=4*(fe+Z*b),D+=J*I[me+3],V+=J,I[me+3]<255&&(J=J*I[me+3]/250),M+=J*I[me],R+=J*I[me+1],W+=J*I[me+2],E+=J))}O[q]=M/E,O[q+1]=R/E,O[q+2]=W/E,O[q+3]=D/V}return $},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,d=a.util.createClass;c.Contrast=d(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(u){if(this.contrast!==0){var f=u.imageData,s,g,h=f.data,g=h.length,p=Math.floor(this.contrast*255),v=259*(p+255)/(255*(259-p));for(s=0;s<g;s+=4)h[s]=v*(h[s]-128)+128,h[s+1]=v*(h[s+1]-128)+128,h[s+2]=v*(h[s+2]-128)+128}},getUniformLocations:function(u,f){return{uContrast:u.getUniformLocation(f,"uContrast")}},sendUniformData:function(u,f){u.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,d=a.util.createClass;c.Saturation=d(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(u){if(this.saturation!==0){var f=u.imageData,s=f.data,h=s.length,g=-this.saturation,p,v;for(p=0;p<h;p+=4)v=Math.max(s[p],s[p+1],s[p+2]),s[p]+=v!==s[p]?(v-s[p])*g:0,s[p+1]+=v!==s[p+1]?(v-s[p+1])*g:0,s[p+2]+=v!==s[p+2]?(v-s[p+2])*g:0}},getUniformLocations:function(u,f){return{uSaturation:u.getUniformLocation(f,"uSaturation")}},sendUniformData:function(u,f){u.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,d=a.util.createClass;c.Vibrance=d(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(u){if(this.vibrance!==0){var f=u.imageData,s=f.data,h=s.length,g=-this.vibrance,p,v,y,b;for(p=0;p<h;p+=4)v=Math.max(s[p],s[p+1],s[p+2]),y=(s[p]+s[p+1]+s[p+2])/3,b=Math.abs(v-y)*2/255*g,s[p]+=v!==s[p]?(v-s[p])*b:0,s[p+1]+=v!==s[p+1]?(v-s[p+1])*b:0,s[p+2]+=v!==s[p+2]?(v-s[p+2])*b:0}},getUniformLocations:function(u,f){return{uVibrance:u.getUniformLocation(f,"uVibrance")}},sendUniformData:function(u,f){u.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,d=a.util.createClass;c.Blur=d(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(u){u.webgl?(this.aspectRatio=u.sourceWidth/u.sourceHeight,u.passes++,this._setupFrameBuffer(u),this.horizontal=!0,this.applyToWebGL(u),this._swapTextures(u),this._setupFrameBuffer(u),this.horizontal=!1,this.applyToWebGL(u),this._swapTextures(u)):this.applyTo2d(u)},applyTo2d:function(u){u.imageData=this.simpleBlur(u)},simpleBlur:function(u){var f=u.filterBackend.resources,s,h,g=u.imageData.width,p=u.imageData.height;f.blurLayer1||(f.blurLayer1=a.util.createCanvasElement(),f.blurLayer2=a.util.createCanvasElement()),s=f.blurLayer1,h=f.blurLayer2,(s.width!==g||s.height!==p)&&(h.width=s.width=g,h.height=s.height=p);var v=s.getContext("2d"),y=h.getContext("2d"),b=15,w,S,C,T,k=this.blur*.06*.5;for(v.putImageData(u.imageData,0,0),y.clearRect(0,0,g,p),T=-b;T<=b;T++)w=(Math.random()-.5)/4,S=T/b,C=k*S*g+w,y.globalAlpha=1-Math.abs(S),y.drawImage(s,C,w),v.drawImage(h,0,0),y.globalAlpha=1,y.clearRect(0,0,h.width,h.height);for(T=-b;T<=b;T++)w=(Math.random()-.5)/4,S=T/b,C=k*S*p+w,y.globalAlpha=1-Math.abs(S),y.drawImage(s,w,C),v.drawImage(h,0,0),y.globalAlpha=1,y.clearRect(0,0,h.width,h.height);u.ctx.drawImage(s,0,0);var A=u.ctx.getImageData(0,0,s.width,s.height);return v.globalAlpha=1,v.clearRect(0,0,s.width,s.height),A},getUniformLocations:function(u,f){return{delta:u.getUniformLocation(f,"uDelta")}},sendUniformData:function(u,f){var s=this.chooseRightDelta();u.uniform2fv(f.delta,s)},chooseRightDelta:function(){var u=1,f=[0,0],s;return this.horizontal?this.aspectRatio>1&&(u=1/this.aspectRatio):this.aspectRatio<1&&(u=this.aspectRatio),s=u*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,d=a.util.createClass;c.Gamma=d(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(u){this.gamma=[1,1,1],c.BaseFilter.prototype.initialize.call(this,u)},applyTo2d:function(u){var f=u.imageData,s=f.data,h=this.gamma,g=s.length,p=1/h[0],v=1/h[1],y=1/h[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,p)*255,this.gVals[b]=Math.pow(b/255,v)*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(u,f){return{uGamma:u.getUniformLocation(f,"uGamma")}},sendUniformData:function(u,f){u.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,d=a.util.createClass;c.Composed=d(c.BaseFilter,{type:"Composed",subFilters:[],initialize:function(u){this.callSuper("initialize",u),this.subFilters=this.subFilters.slice(0)},applyTo:function(u){u.passes+=this.subFilters.length-1,this.subFilters.forEach(function(f){f.applyTo(u)})},toObject:function(){return a.util.object.extend(this.callSuper("toObject"),{subFilters:this.subFilters.map(function(u){return u.toObject()})})},isNeutralState:function(){return!this.subFilters.some(function(u){return!u.isNeutralState()})}}),a.Image.filters.Composed.fromObject=function(u,f){var s=u.subFilters||[],h=s.map(function(p){return new a.Image.filters[p.type](p)}),g=new a.Image.filters.Composed({subFilters:h});return f&&f(g),g}}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,d=a.util.createClass;c.HueRotation=d(c.ColorMatrix,{type:"HueRotation",rotation:0,mainParameter:"rotation",calculateMatrix:function(){var u=this.rotation*Math.PI,f=a.util.cos(u),s=a.util.sin(u),h=1/3,g=Math.sqrt(h)*s,p=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+p/3,this.matrix[1]=h*p-g,this.matrix[2]=h*p+g,this.matrix[5]=h*p+g,this.matrix[6]=f+h*p,this.matrix[7]=h*p-g,this.matrix[10]=h*p-g,this.matrix[11]=h*p+g,this.matrix[12]=f+h*p},isNeutralState:function(u){return this.calculateMatrix(),c.BaseFilter.prototype.isNeutralState.call(this,u)},applyTo:function(u){this.calculateMatrix(),c.BaseFilter.prototype.applyTo.call(this,u)}}),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 d="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(d),cacheProperties:a.Object.prototype.cacheProperties.concat(d),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(u,f){this.styles=f?f.styles||{}:{},this.text=u,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 u=this.path;u&&(u.segmentsInfo=a.util.getPathSegmentsInfo(u.path))},getMeasuringContext:function(){return a._measuringContext||(a._measuringContext=this.canvas&&this.canvas.contextCache||a.util.createCanvasElement().getContext("2d")),a._measuringContext},_splitText:function(){var u=this._splitTextIntoLines(this.text);return this.textLines=u.lines,this._textLines=u.graphemeLines,this._unwrappedTextLines=u._unwrappedLines,this._text=u.graphemeText,u},initDimensions:function(){if(!this.__skipDimension){if(this._splitText(),this._clearCache(),this.path){var u=this.getHeightOfLine(0)*1.1;this.width=this.path.width+u,this.height=this.path.height+u}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 u,f,s,h,g,p,v,y=0,b=this._textLines.length;y<b;y++)if(!(this.textAlign!=="justify"&&(y===b-1||this.isEndOfWrapping(y)))&&(h=0,g=this._textLines[y],f=this.getLineWidth(y),f<this.width&&(v=this.textLines[y].match(this._reSpacesAndTabs)))){s=v.length,u=(this.width-f)/s;for(var w=0,S=g.length;w<=S;w++)p=this.__charBounds[y][w],this._reSpaceAndTab.test(g[w])?(p.width+=u,p.kernedWidth+=u,p.left+=h,h+=u):p.left+=h}},isEndOfWrapping:function(u){return u===this._textLines.length-1},missingNewlineOffset:function(){return 1},toString:function(){return"#<fabric.Text ("+this.complexity()+'): { "text": "'+this.text+'", "fontFamily": "'+this.fontFamily+'" }>'},_getCacheCanvasDimensions:function(){var u=this.callSuper("_getCacheCanvasDimensions"),f=this.fontSize;return u.width+=f*u.zoomX,u.height+=f*u.zoomY,u},_render:function(u){var f=this.path;f&&!f.isNotVisible()&&f._render(u),this._setTextStyles(u),this._renderTextLinesBackground(u),this._renderTextDecoration(u,"underline"),this._renderText(u),this._renderTextDecoration(u,"overline"),this._renderTextDecoration(u,"linethrough")},_renderText:function(u){this.paintFirst==="stroke"?(this._renderTextStroke(u),this._renderTextFill(u)):(this._renderTextFill(u),this._renderTextStroke(u))},_setTextStyles:function(u,f,s){if(u.textBaseline="alphabetic",this.path)switch(this.pathAlign){case"center":u.textBaseline="middle";break;case"ascender":u.textBaseline="top";break;case"descender":u.textBaseline="bottom";break}u.font=this._getFontDeclaration(f,s)},calcTextWidth:function(){for(var u=this.getLineWidth(0),f=1,s=this._textLines.length;f<s;f++){var h=this.getLineWidth(f);h>u&&(u=h)}return u},_renderTextLine:function(u,f,s,h,g,p){this._renderChars(u,f,s,h,g,p)},_renderTextLinesBackground:function(u){if(!(!this.textBackgroundColor&&!this.styleHas("textBackgroundColor"))){for(var f,s,h=u.fillStyle,g,p,v=this._getLeftOffset(),y=this._getTopOffset(),b=0,w=0,S,C,T=this.path,k,A=0,P=this._textLines.length;A<P;A++){if(f=this.getHeightOfLine(A),!this.textBackgroundColor&&!this.styleHas("textBackgroundColor",A)){y+=f;continue}g=this._textLines[A],s=this._getLineLeftOffset(A),w=0,b=0,p=this.getValueOfPropertyAt(A,0,"textBackgroundColor");for(var z=0,I=g.length;z<I;z++)S=this.__charBounds[A][z],C=this.getValueOfPropertyAt(A,z,"textBackgroundColor"),T?(u.save(),u.translate(S.renderLeft,S.renderTop),u.rotate(S.angle),u.fillStyle=C,C&&u.fillRect(-S.width/2,-f/this.lineHeight*(1-this._fontSizeFraction),S.width,f/this.lineHeight),u.restore()):C!==p?(k=v+s+b,this.direction==="rtl"&&(k=this.width-k-w),u.fillStyle=p,p&&u.fillRect(k,y,w,f/this.lineHeight),b=S.left,w=S.width,p=C):w+=S.kernedWidth;C&&!T&&(k=v+s+b,this.direction==="rtl"&&(k=this.width-k-w),u.fillStyle=C,u.fillRect(k,y,w,f/this.lineHeight)),y+=f}u.fillStyle=h,this._removeShadow(u)}},getFontCache:function(u){var f=u.fontFamily.toLowerCase();a.charWidthsCache[f]||(a.charWidthsCache[f]={});var s=a.charWidthsCache[f],h=u.fontStyle.toLowerCase()+"_"+(u.fontWeight+"").toLowerCase();return s[h]||(s[h]={}),s[h]},_measureChar:function(u,f,s,h){var g=this.getFontCache(f),p=this._getFontDeclaration(f),v=this._getFontDeclaration(h),y=s+u,b=p===v,w,S,C,T=f.fontSize/this.CACHE_FONT_SIZE,k;if(s&&g[s]!==void 0&&(C=g[s]),g[u]!==void 0&&(k=w=g[u]),b&&g[y]!==void 0&&(S=g[y],k=S-C),w===void 0||C===void 0||S===void 0){var A=this.getMeasuringContext();this._setTextStyles(A,f,!0)}return w===void 0&&(k=w=A.measureText(u).width,g[u]=w),C===void 0&&b&&s&&(C=A.measureText(s).width,g[s]=C),b&&S===void 0&&(S=A.measureText(y).width,g[y]=S,k=S-C),{width:w*T,kernedWidth:k*T}},getHeightOfChar:function(u,f){return this.getValueOfPropertyAt(u,f,"fontSize")},measureLine:function(u){var f=this._measureLine(u);return this.charSpacing!==0&&(f.width-=this._getWidthOfCharSpacing()),f.width<0&&(f.width=0),f},_measureLine:function(u){var f=0,s,h,g=this._textLines[u],p,v,y=0,b=new Array(g.length),w=0,S,C,T=this.path,k=this.pathSide==="right";for(this.__charBounds[u]=b,s=0;s<g.length;s++)h=g[s],v=this._getGraphemeBox(h,u,s,p),b[s]=v,f+=v.kernedWidth,p=h;if(b[s]={left:v?v.left+v.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":w=k?C-f:0;break;case"center":w=(C-f)/2;break;case"right":w=k?0:C-f;break}for(w+=this.pathStartOffset*(k?-1:1),s=k?g.length-1:0;k?s>=0:s<g.length;k?s--:s++)v=b[s],w>C?w%=C:w<0&&(w+=C),this._setGraphemeOnPath(w,v,S),w+=v.kernedWidth}return{width:f,numOfSpaces:y}},_setGraphemeOnPath:function(u,f,s){var h=u+f.kernedWidth/2,g=this.path,p=a.util.getPointOnPath(g.path,h,g.segmentsInfo);f.renderLeft=p.x-s.x,f.renderTop=p.y-s.y,f.angle=p.angle+(this.pathSide==="right"?Math.PI:0)},_getGraphemeBox:function(u,f,s,h,g){var p=this.getCompleteStyleDeclaration(f,s),v=h?this.getCompleteStyleDeclaration(f,s-1):{},y=this._measureChar(u,p,h,v),b=y.kernedWidth,w=y.width,S;this.charSpacing!==0&&(S=this._getWidthOfCharSpacing(),w+=S,b+=S);var C={width:w,left:0,height:p.fontSize,kernedWidth:b,deltaY:p.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(u){if(this.__lineHeights[u])return this.__lineHeights[u];for(var f=this._textLines[u],s=this.getHeightOfChar(u,0),h=1,g=f.length;h<g;h++)s=Math.max(this.getHeightOfChar(u,h),s);return this.__lineHeights[u]=s*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var u,f=0,s=0,h=this._textLines.length;s<h;s++)u=this.getHeightOfLine(s),f+=s===h-1?u/this.lineHeight:u;return f},_getLeftOffset:function(){return this.direction==="ltr"?-this.width/2:this.width/2},_getTopOffset:function(){return-this.height/2},_renderTextCommon:function(u,f){u.save();for(var s=0,h=this._getLeftOffset(),g=this._getTopOffset(),p=0,v=this._textLines.length;p<v;p++){var y=this.getHeightOfLine(p),b=y/this.lineHeight,w=this._getLineLeftOffset(p);this._renderTextLine(f,u,this._textLines[p],h+w,g+s+b,p),s+=y}u.restore()},_renderTextFill:function(u){!this.fill&&!this.styleHas("fill")||this._renderTextCommon(u,"fillText")},_renderTextStroke:function(u){(!this.stroke||this.strokeWidth===0)&&this.isEmptyStyles()||(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(u),u.save(),this._setLineDash(u,this.strokeDashArray),u.beginPath(),this._renderTextCommon(u,"strokeText"),u.closePath(),u.restore())},_renderChars:function(u,f,s,h,g,p){var v=this.getHeightOfLine(p),y=this.textAlign.indexOf("justify")!==-1,b,w,S="",C,T=0,k,A=this.path,P=!y&&this.charSpacing===0&&this.isEmptyStyles(p)&&!A,z=this.direction==="ltr",I=this.direction==="ltr"?1:-1,$,O=f.canvas.getAttribute("dir");if(f.save(),O!==this.direction&&(f.canvas.setAttribute("dir",z?"ltr":"rtl"),f.direction=z?"ltr":"rtl",f.textAlign=z?"left":"right"),g-=v*this._fontSizeFraction/this.lineHeight,P){this._renderChar(u,f,p,0,s.join(""),h,g,v),f.restore();return}for(var Y=0,ae=s.length-1;Y<=ae;Y++)k=Y===ae||this.charSpacing||A,S+=s[Y],C=this.__charBounds[p][Y],T===0?(h+=I*(C.kernedWidth-C.width),T+=C.width):T+=C.kernedWidth,y&&!k&&this._reSpaceAndTab.test(s[Y])&&(k=!0),k||(b=b||this.getCompleteStyleDeclaration(p,Y),w=this.getCompleteStyleDeclaration(p,Y+1),k=a.util.hasStyleChanged(b,w,!1)),k&&(A?(f.save(),f.translate(C.renderLeft,C.renderTop),f.rotate(C.angle),this._renderChar(u,f,p,Y,S,-T/2,0,v),f.restore()):($=h,this._renderChar(u,f,p,Y,S,$,g,v)),S="",b=w,h+=I*T,T=0);f.restore()},_applyPatternGradientTransformText:function(u){var f=a.util.createCanvasElement(),s,h=this.width+this.strokeWidth,g=this.height+this.strokeWidth;return f.width=h,f.height=g,s=f.getContext("2d"),s.beginPath(),s.moveTo(0,0),s.lineTo(h,0),s.lineTo(h,g),s.lineTo(0,g),s.closePath(),s.translate(h/2,g/2),s.fillStyle=u.toLive(s),this._applyPatternGradientTransform(s,u),s.fill(),s.createPattern(f,"no-repeat")},handleFiller:function(u,f,s){var h,g;return s.toLive?s.gradientUnits==="percentage"||s.gradientTransform||s.patternTransform?(h=-this.width/2,g=-this.height/2,u.translate(h,g),u[f]=this._applyPatternGradientTransformText(s),{offsetX:h,offsetY:g}):(u[f]=s.toLive(u,this),this._applyPatternGradientTransform(u,s)):(u[f]=s,{offsetX:0,offsetY:0})},_setStrokeStyles:function(u,f){return u.lineWidth=f.strokeWidth,u.lineCap=this.strokeLineCap,u.lineDashOffset=this.strokeDashOffset,u.lineJoin=this.strokeLineJoin,u.miterLimit=this.strokeMiterLimit,this.handleFiller(u,"strokeStyle",f.stroke)},_setFillStyles:function(u,f){return this.handleFiller(u,"fillStyle",f.fill)},_renderChar:function(u,f,s,h,g,p,v){var y=this._getStyleDeclaration(s,h),b=this.getCompleteStyleDeclaration(s,h),w=u==="fillText"&&b.fill,S=u==="strokeText"&&b.stroke&&b.strokeWidth,C,T;!S&&!w||(f.save(),w&&(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&&(v+=y.deltaY),w&&f.fillText(g,p-C.offsetX,v-C.offsetY),S&&f.strokeText(g,p-T.offsetX,v-T.offsetY),f.restore())},setSuperscript:function(u,f){return this._setScript(u,f,this.superscript)},setSubscript:function(u,f){return this._setScript(u,f,this.subscript)},_setScript:function(u,f,s){var h=this.get2DCursorLocation(u,!0),g=this.getValueOfPropertyAt(h.lineIndex,h.charIndex,"fontSize"),p=this.getValueOfPropertyAt(h.lineIndex,h.charIndex,"deltaY"),v={fontSize:g*s.size,deltaY:p+g*s.baseline};return this.setSelectionStyles(v,u,f),this},_getLineLeftOffset:function(u){var f=this.getLineWidth(u),s=this.width-f,h=this.textAlign,g=this.direction,v,p=0,v=this.isEndOfWrapping(u);return h==="justify"||h==="justify-center"&&!v||h==="justify-right"&&!v||h==="justify-left"&&!v?0:(h==="center"&&(p=s/2),h==="right"&&(p=s),h==="justify-center"&&(p=s/2),h==="justify-right"&&(p=s),g==="rtl"&&(p-=s),p)},_clearCache:function(){this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]},_shouldClearDimensionCache:function(){var u=this._forceClearCache;return u||(u=this.hasStateChanged("_dimensionAffectingProps")),u&&(this.dirty=!0,this._forceClearCache=!1),u},getLineWidth:function(u){if(this.__lineWidths[u]!==void 0)return this.__lineWidths[u];var f=this.measureLine(u),s=f.width;return this.__lineWidths[u]=s,s},_getWidthOfCharSpacing:function(){return this.charSpacing!==0?this.fontSize*this.charSpacing/1e3:0},getValueOfPropertyAt:function(u,f,s){var h=this._getStyleDeclaration(u,f);return h&&typeof h[s]<"u"?h[s]:this[s]},_renderTextDecoration:function(u,f){if(!(!this[f]&&!this.styleHas(f))){u.save(),(f==="overline"||f==="linethrough")&&this._removeShadow(u);for(var s,h,g,p,v,y,b,w,S=this._getLeftOffset(),C=this._getTopOffset(),T,k,A,P,z,I,$,O,Y=this.path,ae=this._getWidthOfCharSpacing(),q=this.offsets[f],J=0,E=this._textLines.length;J<E;J++){if(s=this.getHeightOfLine(J),!this[f]&&!this.styleHas(f,J)){C+=s;continue}b=this._textLines[J],I=s/this.lineHeight,p=this._getLineLeftOffset(J),k=0,A=0,w=this.getValueOfPropertyAt(J,0,f),O=this.getValueOfPropertyAt(J,0,"fill"),T=C+I*(1-this._fontSizeFraction),h=this.getHeightOfChar(J,0),v=this.getValueOfPropertyAt(J,0,"deltaY");for(var V=0,M=b.length;V<M;V++)if(P=this.__charBounds[J][V],z=this.getValueOfPropertyAt(J,V,f),$=this.getValueOfPropertyAt(J,V,"fill"),g=this.getHeightOfChar(J,V),y=this.getValueOfPropertyAt(J,V,"deltaY"),Y&&z&&$)u.save(),u.fillStyle=O,u.translate(P.renderLeft,P.renderTop),u.rotate(P.angle),u.fillRect(-P.kernedWidth/2,q*g+y,P.kernedWidth,this.fontSize/15),u.restore();else if((z!==w||$!==O||g!==h||y!==v)&&A>0){var R=S+p+k;this.direction==="rtl"&&(R=this.width-R-A),w&&O&&(u.fillStyle=O,u.fillRect(R,T+q*h+v,A,this.fontSize/15)),k=P.left,A=P.width,w=z,O=$,h=g,v=y}else A+=P.kernedWidth;var R=S+p+k;this.direction==="rtl"&&(R=this.width-R-A),u.fillStyle=$,z&&$&&u.fillRect(R,T+q*h+v,A-ae,this.fontSize/15),C+=s}u.restore()}},_getFontDeclaration:function(u,f){var s=u||this,h=this.fontFamily,g=a.Text.genericFonts.indexOf(h.toLowerCase())>-1,p=h===void 0||h.indexOf("'")>-1||h.indexOf(",")>-1||h.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",p].join(" ")},render:function(u){!this.visible||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._shouldClearDimensionCache()&&this.initDimensions(),this.callSuper("render",u))},_splitTextIntoLines:function(u){for(var f=u.split(this._reNewline),s=new Array(f.length),h=[`
`],g=[],p=0;p<f.length;p++)s[p]=a.util.string.graphemeSplit(f[p]),g=g.concat(s[p],h);return g.pop(),{_unwrappedLines:s,lines:f,graphemeText:g,graphemeLines:s}},toObject:function(u){var f=d.concat(u),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(u,f){this.callSuper("set",u,f);var s=!1,h=!1;if(typeof u=="object")for(var g in u)g==="path"&&this.setPathInfo(),s=s||this._dimensionAffectingProps.indexOf(g)!==-1,h=h||g==="path";else s=this._dimensionAffectingProps.indexOf(u)!==-1,h=u==="path";return h&&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(u,f,s){if(!u)return f(null);var h=a.parseAttributes(u,a.Text.ATTRIBUTE_NAMES),g=h.textAnchor||"left";if(s=a.util.object.extend(s?c(s):{},h),s.top=s.top||0,s.left=s.left||0,h.textDecoration){var p=h.textDecoration;p.indexOf("underline")!==-1&&(s.underline=!0),p.indexOf("overline")!==-1&&(s.overline=!0),p.indexOf("line-through")!==-1&&(s.linethrough=!0),delete s.textDecoration}"dx"in h&&(s.left+=h.dx),"dy"in h&&(s.top+=h.dy),"fontSize"in s||(s.fontSize=a.Text.DEFAULT_SVG_FONT_SIZE);var v="";"textContent"in u?v=u.textContent:"firstChild"in u&&u.firstChild!==null&&"data"in u.firstChild&&u.firstChild.data!==null&&(v=u.firstChild.data),v=v.replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," ");var y=s.strokeWidth;s.strokeWidth=0;var b=new a.Text(v,s),w=b.getScaledHeight()/b.height,S=(b.height+b.strokeWidth)*b.lineHeight-b.height,C=S*w,T=b.getScaledHeight()+C,k=0;g==="center"&&(k=b.getScaledWidth()/2),g==="right"&&(k=b.getScaledWidth()),b.set({left:b.left-k,top:b.top-(T-b.fontSize*(.07+b._fontSizeFraction))/b.lineHeight,strokeWidth:typeof y<"u"?y:1}),f(b)},a.Text.fromObject=function(u,f){var s=c(u),h=u.path;return delete s.path,a.Object._fromObject("Text",s,function(g){g.styles=a.util.stylesFromArray(u.styles,u.text),h?a.Object._fromObject("Path",h,function(p){g.set("path",p),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 d in a[c])for(var u in a[c][d])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 d in c)for(var u in c[d])if(typeof c[d][u][o]<"u")return!0;return!1},cleanStyle:function(o){if(!this.styles||!o||o==="")return!1;var a=this.styles,c=0,d,u,f=!0,s=0,h;for(var g in a){d=0;for(var p in a[g]){var h=a[g][p],v=h.hasOwnProperty(o);c++,v?(u?h[o]!==u&&(f=!1):u=h[o],h[o]===this[o]&&delete h[o]):f=!1,Object.keys(h).length!==0?d++:delete a[g][p]}d===0&&delete a[g]}for(var y=0;y<this._textLines.length;y++)s+=this._textLines[y].length;f&&c===s&&(this[o]=u,this.removeStyle(o))},removeStyle:function(o){if(!(!this.styles||!o||o==="")){var a=this.styles,c,d,u;for(d in a){c=a[d];for(u in c)delete c[u][o],Object.keys(c[u]).length===0&&delete c[u];Object.keys(c).length===0&&delete a[d]}}},_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,d=c.length,u=0;u<d;u++){if(o<=c[u].length)return{lineIndex:u,charIndex:o};o-=c[u].length+this.missingNewlineOffset(u,a)}return{lineIndex:u-1,charIndex:c[u-1].length<o?c[u-1].length:o}},getSelectionStyles:function(o,a,c){typeof o>"u"&&(o=this.selectionStart||0),typeof a>"u"&&(a=this.selectionEnd||o);for(var d=[],u=o;u<a;u++)d.push(this.getStyleAtPosition(u,c));return d},getStyleAtPosition:function(o,a){var c=this.get2DCursorLocation(o),d=a?this.getCompleteStyleDeclaration(c.lineIndex,c.charIndex):this._getStyleDeclaration(c.lineIndex,c.charIndex);return d||{}},setSelectionStyles:function(o,a,c){typeof a>"u"&&(a=this.selectionStart||0),typeof c>"u"&&(c=this.selectionEnd||a);for(var d=a;d<c;d++)this._extendStyles(d,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)||{},d={},u,f=0;f<this._styleProperties.length;f++)u=this._styleProperties[f],d[u]=typeof c[u]>"u"?this[u]:c[u];return d},_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,d=this.canvas.viewportTransform;c.save(),c.transform(d[0],d[1],d[2],d[3],d[4],d[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,d=this.height+4;a.clearRect(-c/2,-d/2,c,d)},_getCursorBoundaries:function(a){typeof a>"u"&&(a=this.selectionStart);var c=this._getLeftOffset(),d=this._getTopOffset(),u=this._getCursorBoundariesOffsets(a);return{left:c,top:d,leftOffset:u.left,topOffset:u.top}},_getCursorBoundariesOffsets:function(a){if(this.cursorOffsetCache&&"top"in this.cursorOffsetCache)return this.cursorOffsetCache;var c,d,u,f=0,s=0,h,g=this.get2DCursorLocation(a);u=g.charIndex,d=g.lineIndex;for(var p=0;p<d;p++)f+=this.getHeightOfLine(p);c=this._getLineLeftOffset(d);var v=this.__charBounds[d][u];return v&&(s=v.left),this.charSpacing!==0&&u===this._textLines[d].length&&(s-=this._getWidthOfCharSpacing()),h={top:f,left:c+(s>0?s:0)},this.direction==="rtl"&&(h.left*=-1),this.cursorOffsetCache=h,this.cursorOffsetCache},renderCursor:function(a,c){var d=this.get2DCursorLocation(),u=d.lineIndex,f=d.charIndex>0?d.charIndex-1:0,s=this.getValueOfPropertyAt(u,f,"fontSize"),h=this.scaleX*this.canvas.getZoom(),g=this.cursorWidth/h,p=a.topOffset,v=this.getValueOfPropertyAt(u,f,"deltaY");p+=(1-this._fontSizeFraction)*this.getHeightOfLine(u)/this.lineHeight-s*(1-this._fontSizeFraction),this.inCompositionMode&&this.renderSelection(a,c),c.fillStyle=this.cursorColor||this.getValueOfPropertyAt(u,f,"fill"),c.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,c.fillRect(a.left+a.leftOffset-g/2,p+a.top+v,g,s)},renderSelection:function(a,c){for(var d=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,u=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,f=this.textAlign.indexOf("justify")!==-1,s=this.get2DCursorLocation(d),h=this.get2DCursorLocation(u),g=s.lineIndex,p=h.lineIndex,v=s.charIndex<0?0:s.charIndex,y=h.charIndex<0?0:h.charIndex,b=g;b<=p;b++){var w=this._getLineLeftOffset(b)||0,S=this.getHeightOfLine(b),C=0,T=0,k=0;if(b===g&&(T=this.__charBounds[g][v].left),b>=g&&b<p)k=f&&!this.isEndOfWrapping(b)?this.width:this.getLineWidth(b)||5;else if(b===p)if(y===0)k=this.__charBounds[p][y].left;else{var A=this._getWidthOfCharSpacing();k=this.__charBounds[p][y-1].left+this.__charBounds[p][y-1].width-A}C=S,(this.lineHeight<1||b===p&&this.lineHeight>1)&&(S/=this.lineHeight);var P=a.left+w+T,z=k-T,I=S,$=0;this.inCompositionMode?(c.fillStyle=this.compositionColor||"black",I=1,$=S):c.fillStyle=this.selectionColor,this.direction==="rtl"&&(P=this.width-P-z),c.fillRect(P,a.top+a.topOffset+$,z,I),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 d=t.util.stylesFromArray(a.styles,a.text),u=Object.assign({},a,{styles:d});if(delete u.path,o(u),u.styles)for(var f in u.styles)for(var s in u.styles[f])o(u.styles[f][s]);t.Object._fromObject("IText",u,function(h){a.path?t.Object._fromObject("Path",a.path,function(g){h.set("path",g),c(h)},"path"):c(h)},"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,d,u){var f;return f={isAborted:!1,abort:function(){this.isAborted=!0}},a.animate("_currentCursorOpacity",c,{duration:d,onComplete:function(){f.isAborted||a[u]()},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,d=a?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout(function(){c._tick()},d)},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,d=a-1;if(this._reSpace.test(this._text[d]))for(;this._reSpace.test(this._text[d]);)c++,d--;for(;/\S/.test(this._text[d])&&d>-1;)c++,d--;return a-c},findWordBoundaryRight:function(a){var c=0,d=a;if(this._reSpace.test(this._text[d]))for(;this._reSpace.test(this._text[d]);)c++,d++;for(;/\S/.test(this._text[d])&&d<this._text.length;)c++,d++;return a+c},findLineBoundaryLeft:function(a){for(var c=0,d=a-1;!/\n/.test(this._text[d])&&d>-1;)c++,d--;return a-c},findLineBoundaryRight:function(a){for(var c=0,d=a;!/\n/.test(this._text[d])&&d<this._text.length;)c++,d++;return a+c},searchWordBoundary:function(a,c){for(var d=this._text,u=this._reSpace.test(d[a])?a-1:a,f=d[u],s=t.reNonWord;!s.test(f)&&u>0&&u<d.length;)u+=c,f=d[u];return s.test(f)&&(u+=c===1?0:1),u},selectWord:function(a){a=a||this.selectionStart;var c=this.searchWordBoundary(a,-1),d=this.searchWordBoundary(a,1);this.selectionStart=c,this.selectionEnd=d,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(a){a=a||this.selectionStart;var c=this.findLineBoundaryLeft(a),d=this.findLineBoundaryRight(a);return this.selectionStart=c,this.selectionEnd=d,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),d=this.selectionStart,u=this.selectionEnd;(c!==this.__selectionStartOnMouseDown||d===u)&&(d===c||u===c)||(c>this.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=c):(this.selectionStart=c,this.selectionEnd=this.__selectionStartOnMouseDown),(this.selectionStart!==d||this.selectionEnd!==u)&&(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,d){var u=d.slice(0,a),f=t.util.string.graphemeSplit(u).length;if(a===c)return{selectionStart:f,selectionEnd:f};var s=d.slice(a,c),h=t.util.string.graphemeSplit(s).length;return{selectionStart:f,selectionEnd:f+h}},fromGraphemeToStringSelection:function(a,c,d){var u=d.slice(0,a),f=u.join("").length;if(a===c)return{selectionStart:f,selectionEnd:f};var s=d.slice(a,c),h=s.join("").length;return{selectionStart:f,selectionEnd:f+h}},_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),d=this.get2DCursorLocation(a),u=d.lineIndex,f=d.charIndex,s=this.getValueOfPropertyAt(u,f,"fontSize")*this.lineHeight,h=c.leftOffset,g=this.calcTransformMatrix(),p={x:c.left+h,y:c.top+c.topOffset+s},v=this.canvas.getRetinaScaling(),y=this.canvas.upperCanvasEl,b=y.width/v,w=y.height/v,S=b-s,C=w-s,T=y.clientWidth/b,k=y.clientHeight/w;return p=t.util.transformPoint(p,g),p=t.util.transformPoint(p,this.canvas.viewportTransform),p.x*=T,p.y*=k,p.x<0&&(p.x=0),p.x>S&&(p.x=S),p.y<0&&(p.y=0),p.y>C&&(p.y=C),p.x+=this.canvas._offset.left,p.y+=this.canvas._offset.top,{left:p.x+"px",top:p.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 d=this.get2DCursorLocation(a,!0),u=this.get2DCursorLocation(c,!0),f=d.lineIndex,s=d.charIndex,h=u.lineIndex,g=u.charIndex,p,v;if(f!==h){if(this.styles[f])for(p=s;p<this._unwrappedTextLines[f].length;p++)delete this.styles[f][p];if(this.styles[h])for(p=g;p<this._unwrappedTextLines[h].length;p++)v=this.styles[h][p],v&&(this.styles[f]||(this.styles[f]={}),this.styles[f][s+p-g]=v);for(p=f+1;p<=h;p++)delete this.styles[p];this.shiftLineStyles(h,f-h)}else if(this.styles[f]){v=this.styles[f];var y=g-s,b,w;for(p=s;p<g;p++)delete v[p];for(w in this.styles[f])b=parseInt(w,10),b>=g&&(v[b-y]=v[w],delete v[w])}},shiftLineStyles:function(a,c){var d=o(this.styles);for(var u in this.styles){var f=parseInt(u,10);f>a&&(this.styles[f+c]=d[f],d[f-c]||delete this.styles[f])}},restartCursorIfNeeded:function(){(!this._currentTickState||this._currentTickState.isAborted||!this._currentTickCompleteState||this._currentTickCompleteState.isAborted)&&this.initDelayedCursor()},insertNewlineStyleObject:function(a,c,d,u){var f,s={},h=!1,g=this._unwrappedTextLines[a].length,p=g===c;d||(d=1),this.shiftLineStyles(a,d),this.styles[a]&&(f=this.styles[a][c===0?c:c-1]);for(var v in this.styles[a]){var y=parseInt(v,10);y>=c&&(h=!0,s[y-c]=this.styles[a][v],p&&c===0||delete this.styles[a][v])}var b=!1;for(h&&!p&&(this.styles[a+d]=s,b=!0),(b||g>c)&&d--;d>0;)u&&u[d-1]?this.styles[a+d]={0:o(u[d-1])}:f?this.styles[a+d]={0:o(f)}:delete this.styles[a+d],d--;this._forceClearCache=!0},insertCharStyleObject:function(a,c,d,u){this.styles||(this.styles={});var f=this.styles[a],s=f?o(f):{};d||(d=1);for(var h in s){var g=parseInt(h,10);g>=c&&(f[g+d]=s[g],s[g-d]||delete f[g])}if(this._forceClearCache=!0,u){for(;d--;)!Object.keys(u[d]).length||(this.styles[a]||(this.styles[a]={}),this.styles[a][c+d]=o(u[d]));return}if(!!f)for(var p=f[c?c-1:1];p&&d--;)this.styles[a][c+d]=o(p)},insertNewStyleBlock:function(a,c,d){for(var u=this.get2DCursorLocation(c,!0),f=[0],s=0,h=0;h<a.length;h++)a[h]===`
`?(s++,f[s]=0):f[s]++;f[0]>0&&(this.insertCharStyleObject(u.lineIndex,u.charIndex,f[0],d),d=d&&d.slice(f[0]+1)),s&&this.insertNewlineStyleObject(u.lineIndex,u.charIndex+f[0],s);for(var h=1;h<s;h++)f[h]>0?this.insertCharStyleObject(u.lineIndex+h,0,f[h],d):d&&this.styles[u.lineIndex+h]&&d[0]&&(this.styles[u.lineIndex+h][0]=d[0]),d=d&&d.slice(f[h]+1);f[h]>0&&this.insertCharStyleObject(u.lineIndex+h,0,f[h],d)},setSelectionStartEndWithShift:function(a,c,d){d<=a?(c===a?this._selectionDirection="left":this._selectionDirection==="right"&&(this._selectionDirection="left",this.selectionEnd=a),this.selectionStart=d):d>a&&d<c?this._selectionDirection==="right"?this.selectionEnd=d:this.selectionStart=d:(c===a?this._selectionDirection="right":this._selectionDirection==="left"&&(this._selectionDirection="right",this.selectionStart=c),this.selectionEnd=d)},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,d=this.selectionEnd;o.shiftKey?this.setSelectionStartEndWithShift(c,d,a):(this.selectionStart=a,this.selectionEnd=a),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(o){for(var a=this.getLocalPointer(o),c=0,d=0,u=0,f=0,s=0,h,g,p=0,v=this._textLines.length;p<v&&u<=a.y;p++)u+=this.getHeightOfLine(p)*this.scaleY,s=p,p>0&&(f+=this._textLines[p-1].length+this.missingNewlineOffset(p-1));h=this._getLineLeftOffset(s),d=h*this.scaleX,g=this._textLines[s],this.direction==="rtl"&&(a.x=this.width*this.scaleX-a.x+d);for(var y=0,b=g.length;y<b&&(c=d,d+=this.__charBounds[s][y].kernedWidth*this.scaleX,d<=a.x);y++)f++;return this._getNewSelectionStartFromOffset(a,c,d,f,b)},_getNewSelectionStartFromOffset:function(o,a,c,d,u){var f=o.x-a,s=c-o.x,h=s>f||s<0?0:1,g=d+h;return this.flipX&&(g=u-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,d=this._text.length,u=c.length,f,s,h=u-d,g=this.selectionStart,p=this.selectionEnd,v=g!==p,y,b,w;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;v?(f=this._text.slice(g,p),h+=p-g):u<d&&(C?f=this._text.slice(p+h,p):f=this._text.slice(g,g-h)),s=c.slice(S.selectionEnd-h,S.selectionEnd),f&&f.length&&(s.length&&(y=this.getSelectionStyles(g,g+1,!1),y=s.map(function(){return y[0]})),v?(b=g,w=p):C?(b=p-f.length,w=p):(b=p,w=p+f.length),this.removeStyleFromTo(b,w)),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),d;return a>0&&(d=this.__charBounds[o][a-1],c+=d.left+d.width),c},getDownCursorOffset:function(o,a){var c=this._getSelectionForOffset(o,a),d=this.get2DCursorLocation(c),u=d.lineIndex;if(u===this._textLines.length-1||o.metaKey||o.keyCode===34)return this._text.length-c;var f=d.charIndex,s=this._getWidthBeforeCursor(u,f),h=this._getIndexOnLine(u+1,s),g=this._textLines[u].slice(f);return g.length+h+1+this.missingNewlineOffset(u)},_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),d=this.get2DCursorLocation(c),u=d.lineIndex;if(u===0||o.metaKey||o.keyCode===33)return-c;var f=d.charIndex,s=this._getWidthBeforeCursor(u,f),h=this._getIndexOnLine(u-1,s),g=this._textLines[u].slice(0,f),p=this.missingNewlineOffset(u-1);return-this._textLines[u-1].length+h-g.length+(1-p)},_getIndexOnLine:function(o,a){for(var c=this._textLines[o],d=this._getLineLeftOffset(o),u=d,f=0,s,h,g=0,p=c.length;g<p;g++)if(s=this.__charBounds[o][g].width,u+=s,u>a){h=!0;var v=u-s,y=u,b=Math.abs(v-a),w=Math.abs(y-a);f=w<b?g:g-1;break}return h||(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",d=this[c](a,this._selectionDirection==="right");a.shiftKey?this.moveCursorWithShift(d):this.moveCursorWithoutShift(d),d!==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 d;if(o.altKey)d=this["findWordBoundary"+c](this[a]);else if(o.metaKey||o.keyCode===35||o.keyCode===36)d=this["findLineBoundary"+c](this[a]);else return this[a]+=c==="Left"?-1:1,!0;if(typeof d<"u"&&this[a]!==d)return this[a]=d,!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,d){typeof d>"u"&&(d=c),d>c&&this.removeStyleFromTo(c,d);var u=t.util.string.graphemeSplit(o);this.insertNewStyleBlock(u,c,a),this._text=[].concat(this._text.slice(0,c),u,this._text.slice(d)),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,d=t.util.transformPoint,u=/ +/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}),h=this.path;return h?s+h._createBaseSVGMarkup(h._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,h=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+'" ':"",h?'text-decoration="'+h+'" ':"",'style="',this.getSvgStyles(s),'"',this.addPaintOrder()," >",f.textSpans.join(""),`</text>
`]},_getSVGTextAndBg:function(f,s){var h=[],g=[],p=f,v;this._setSVGBg(g);for(var y=0,b=this._textLines.length;y<b;y++)v=this._getLineLeftOffset(y),(this.textBackgroundColor||this.styleHas("textBackgroundColor",y))&&this._setSVGTextLineBg(g,y,s+v,p),this._setSVGTextLineText(h,y,s+v,p),p+=this.getHeightOfLine(y);return{textSpans:h,textBgRects:g}},_createTextCharSpan:function(f,s,h,g,p){var v=f!==f.trim()||f.match(u),y=this.getSvgSpanStyles(s,v),b=y?'style="'+y+'"':"",w=s.deltaY,S="",C=t.Object.NUM_FRACTION_DIGITS,T="";if(w&&(S=' dy="'+o(w,C)+'" '),p.renderLeft!==void 0){var k=p.angle;T=' rotate="'+o(a(k),t.Object.NUM_FRACTION_DIGITS)+'" ';var A=p.width/2,P=c({angle:a(k)});P[4]=p.renderLeft,P[5]=p.renderTop;var z=d({x:-A,y:0},P);h=z.x,g=z.y}return['<tspan x="',o(h,C),'" y="',o(g,C),'" ',S,b,T,">",t.util.string.escapeXml(f),"</tspan>"].join("")},_setSVGTextLineText:function(f,s,h,g){var p=this.getHeightOfLine(s),v=this.textAlign.indexOf("justify")!==-1,y,b,w="",S,C,T=0,k=this._textLines[s],A;g+=p*(1-this._fontSizeFraction)/this.lineHeight;for(var P=0,z=k.length-1;P<=z;P++)A=P===z||this.charSpacing||this.path,w+=k[P],S=this.__charBounds[s][P],T===0?(h+=S.kernedWidth-S.width,T+=S.width):T+=S.kernedWidth,v&&!A&&this._reSpaceAndTab.test(k[P])&&(A=!0),A||(y=y||this.getCompleteStyleDeclaration(s,P),b=this.getCompleteStyleDeclaration(s,P+1),A=t.util.hasStyleChanged(y,b,!0)),A&&(C=this._getStyleDeclaration(s,P)||{},f.push(this._createTextCharSpan(w,C,h,g,S)),w="",y=b,h+=T,T=0)},_pushTextBgRect:function(f,s,h,g,p,v){var y=t.Object.NUM_FRACTION_DIGITS;f.push(" <rect ",this._getFillAttributes(s),' x="',o(h,y),'" y="',o(g,y),'" width="',o(p,y),'" height="',o(v,y),`"></rect>
`)},_setSVGTextLineBg:function(f,s,h,g){for(var p=this._textLines[s],v=this.getHeightOfLine(s)/this.lineHeight,y=0,b=0,w,S,C=this.getValueOfPropertyAt(s,0,"textBackgroundColor"),T=0,k=p.length;T<k;T++)w=this.__charBounds[s][T],S=this.getValueOfPropertyAt(s,T,"textBackgroundColor"),S!==C?(C&&this._pushTextBgRect(f,C,h+b,g,y,v),b=w.left,y=w.width,C=S):y+=w.kernedWidth;S&&this._pushTextBgRect(f,S,h+b,g,y,v)},_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,h=0,g=0;g<f;g++)s+=this.getHeightOfLine(g);return h=this.getHeightOfLine(g),{lineTop:s,offset:(this._fontSizeMult-this._fontSizeFraction)*h/(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 d=0,u=0,f=0,s={},h=0;h<c.graphemeLines.length;h++)c.graphemeText[f]===`
`&&h>0?(u=0,f++,d++):!this.splitByGrapheme&&this._reSpaceAndTab.test(c.graphemeText[f])&&h>0&&(u++,f++),s[h]={line:d,offset:u},f+=c.graphemeLines[h].length,u+=c.graphemeLines[h].length;return s},styleHas:function(c,d){if(this._styleMap&&!this.isWrapping){var u=this._styleMap[d];u&&(d=u.line)}return a.Text.prototype.styleHas.call(this,c,d)},isEmptyStyles:function(c){if(!this.styles)return!0;var d=0,u=c+1,f,s,h=!1,g=this._styleMap[c],p=this._styleMap[c+1];g&&(c=g.line,d=g.offset),p&&(u=p.line,h=u===c,f=p.offset),s=typeof c>"u"?this.styles:{line:this.styles[c]};for(var v in s)for(var y in s[v])if(y>=d&&(!h||y<f))for(var b in s[v][y])return!1;return!0},_getStyleDeclaration:function(c,d){if(this._styleMap&&!this.isWrapping){var u=this._styleMap[c];if(!u)return null;c=u.line,d=u.offset+d}return this.callSuper("_getStyleDeclaration",c,d)},_setStyleDeclaration:function(c,d,u){var f=this._styleMap[c];c=f.line,d=f.offset+d,this.styles[c][d]=u},_deleteStyleDeclaration:function(c,d){var u=this._styleMap[c];c=u.line,d=u.offset+d,delete this.styles[c][d]},_getLineStyle:function(c){var d=this._styleMap[c];return!!this.styles[d.line]},_setLineStyle:function(c){var d=this._styleMap[c];this.styles[d.line]={}},_wrapText:function(c,d){var u=[],f;for(this.isWrapping=!0,f=0;f<c.length;f++)u=u.concat(this._wrapLine(c[f],f,d));return this.isWrapping=!1,u},_measureWord:function(c,d,u){var f=0,s,h=!0;u=u||0;for(var g=0,p=c.length;g<p;g++){var v=this._getGraphemeBox(c[g],d,g+u,s,h);f+=v.kernedWidth,s=c[g]}return f},_wrapLine:function(c,d,u,P){var s=0,h=this.splitByGrapheme,g=[],p=[],v=h?a.util.string.graphemeSplit(c):c.split(this._wordJoiners),y="",b=0,w=h?"":" ",S=0,C=0,T=0,k=!0,A=this._getWidthOfCharSpacing(),P=P||0;v.length===0&&v.push([]),u-=P;for(var z=0;z<v.length;z++)y=h?v[z]:a.util.string.graphemeSplit(v[z]),S=this._measureWord(y,d,b),b+=y.length,s+=C+S-A,s>u&&!k?(g.push(p),p=[],s=S,k=!0):s+=A,!k&&!h&&p.push(w),p=p.concat(y),C=h?0:this._measureWord([w],d,b),b++,k=!1,S>T&&(T=S);return z&&g.push(p),T+P>this.dynamicMinWidth&&(this.dynamicMinWidth=T-A+P),g},isEndOfWrapping:function(c){return!this._styleMap[c+1]||this._styleMap[c+1].line!==this._styleMap[c].line},missingNewlineOffset:function(c,d){return this.splitByGrapheme&&!d?this.isEndOfWrapping(c)?1:0:1},_splitTextIntoLines:function(c){for(var d=a.Text.prototype._splitTextIntoLines.call(this,c),u=this._wrapText(d.lines,this.width),f=new Array(u.length),s=0;s<u.length;s++)f[s]=u[s].join("");return d.lines=f,d.graphemeLines=u,d},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var c={};for(var d in this._styleMap)this._textLines[d]&&(c[this._styleMap[d].line]=1);for(var d in this.styles)c[d]||delete this.styles[d]},toObject:function(c){return this.callSuper("toObject",["minWidth","splitByGrapheme"].concat(c))}}),a.Textbox.fromObject=function(c,d){var u=a.util.stylesFromArray(c.styles,c.text),f=Object.assign({},c,{styles:u});return delete f.path,a.Object._fromObject("Textbox",f,function(s){c.path?a.Object._fromObject("Path",c.path,function(h){s.set("path",h),d(s)},"path"):d(s)},"text")}}(e),function(){var o=t.controlsUtils,a=o.scaleSkewCursorStyleHandler,c=o.scaleCursorStyleHandler,d=o.scalingEqually,u=o.scalingYOrSkewingX,f=o.scalingXOrSkewingY,s=o.scaleOrSkewActionName,h=t.Object.prototype.controls;if(h.ml=new t.Control({x:-.5,y:0,cursorStyleHandler:a,actionHandler:f,getActionName:s}),h.mr=new t.Control({x:.5,y:0,cursorStyleHandler:a,actionHandler:f,getActionName:s}),h.mb=new t.Control({x:0,y:.5,cursorStyleHandler:a,actionHandler:u,getActionName:s}),h.mt=new t.Control({x:0,y:-.5,cursorStyleHandler:a,actionHandler:u,getActionName:s}),h.tl=new t.Control({x:-.5,y:-.5,cursorStyleHandler:c,actionHandler:d}),h.tr=new t.Control({x:.5,y:-.5,cursorStyleHandler:c,actionHandler:d}),h.bl=new t.Control({x:-.5,y:.5,cursorStyleHandler:c,actionHandler:d}),h.br=new t.Control({x:.5,y:.5,cursorStyleHandler:c,actionHandler:d}),h.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=h.mtr,g.tr=h.tr,g.br=h.br,g.tl=h.tl,g.bl=h.bl,g.mt=h.mt,g.mb=h.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"})}}()})(cr);async function K7(e,t){const n=document.createElement("canvas"),r=n.getContext("2d"),i=new Image;return i.src=e,await new Promise(m=>i.onload=m),n.width=i.width,n.height=i.height,r==null||r.drawImage(i,0,0),n.toDataURL(t)}async function X7(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 K7(e,r)).split(",")[1]),l=new Uint8Array(i.length);for(let m=0;m<i.length;++m)l[m]=i.charCodeAt(m);return l}async function Da(e,t){const n=t!=null?t:e.split(";base64,")[0].split(":")[1],r=await X7(e,t);return new Blob([r],{type:n})}function Nl(e){return new Promise((t,n)=>{const r=new FileReader;r.onload=()=>t(r.result),r.onerror=i=>n(i),r.readAsDataURL(e)})}"stream"in Blob.prototype||Object.defineProperty(Blob.prototype,"stream",{value(){return new Response(this).body}});var Df=e=>new DataView(new ArrayBuffer(e)),co=e=>new Uint8Array(e.buffer||e),Lo=e=>new TextEncoder().encode(String(e));function q7(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:Lo(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:co(e),mode:n};if(Symbol.asyncIterator in e)return{t,bytes:VS(e[Symbol.asyncIterator]()),mode:n};throw new TypeError("Unsupported input format.")}function VS(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 l=Z7(i.value);n.enqueue(l),r+=l.byteLength}}},cancel(n){var r;(r=t.throw)==null||r.call(t,n)}})}function Z7(e){return typeof e=="string"?Lo(e):e instanceof Uint8Array?e:co(e)}function US(e,t,n){let[r,i]=function(l){return l?l instanceof Uint8Array?[l,1]:ArrayBuffer.isView(l)||l instanceof ArrayBuffer?[co(l),1]:[Lo(l),0]:[void 0,0]}(t);if(e instanceof File)return{o:Dd(r||Lo(e.name)),i:e.size,u:i};if(e instanceof Response){const l=e.headers.get("content-disposition"),m=l&&l.match(/;\s*filename\*?\s*=\s*(?:UTF-\d+''|)["']?([^;"'\r\n]*)["']?(?:;|$)/i),o=m&&m[1]||e.url&&new URL(e.url).pathname.split("/").findLast(Boolean),a=o&&decodeURIComponent(o),c=n||+e.headers.get("content-length");return{o:Dd(r||Lo(a)),i:c,u:i}}return r=Dd(r),typeof e=="string"?{o:r,i:Lo(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:J7(e,n),u:i}}function J7(e,t){return t>-1?t:e?void 0:0}function Dd(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 HS=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);HS[e]=t}function Wy(e,t=0){t=~t;for(var n=0,r=e.length;n<r;n++)t=t>>>8^HS[255&t^e[n]];return~t>>>0}function WS(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 Q7({o:e,u:t},n){return 8*(!t||(n!=null?n:function(r){try{eU.decode(r)}catch{return 0}return 1}(e)))}var eU=new TextDecoder("utf8",{fatal:1});function tU(e,t=0){const n=Df(30);return n.setUint32(0,1347093252),n.setUint32(4,335546368|t),WS(e.t,n,10),n.setUint16(26,e.o.length,1),co(n)}async function*nU(e){let{bytes:t}=e;if("then"in t&&(t=await t),t instanceof Uint8Array)yield t,e.l=Wy(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=Wy(r,e.l),e.i+=r.length,yield r}}}function rU(e){const t=Df(16);return t.setUint32(0,1347094280),t.setUint32(4,e.l,1),t.setUint32(8,e.i,1),t.setUint32(12,e.i,1),co(t)}function iU(e,t,n=0){const r=Df(46);return r.setUint32(0,1347092738),r.setUint32(4,352523264),r.setUint16(8,2048|n),WS(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),co(r)}function GS(e){return e instanceof File||e instanceof Response?[[e],[e]]:[[e.input,e.name,e.size],[e.input,e.lastModified,e.mode]]}var aU=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 US(...GS(n)[0])}(e));function oU(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"]=aU(t.metadata));const r=function(i){var l;const m=i[Symbol.iterator in i?Symbol.iterator:Symbol.asyncIterator]();return{async next(){const o=await m.next();if(o.done)return o;const[a,c]=GS(o.value);return{done:0,value:Object.assign(q7(...c),US(...a))}},throw:(l=m.throw)==null?void 0:l.bind(m),[Symbol.asyncIterator](){return this}}}(e);return new Response(VS(async function*(i,l){const m=[];let o=0,a=0;for await(const u of i){const f=Q7(u,l.buffersAreUTF8);yield tU(u,f),yield new Uint8Array(u.o),yield*nU(u),yield rU(u),m.push(iU(u,o,f)),m.push(u.o),a++,o+=46+u.o.length+u.i}let c=0;for(const u of m)yield u,c+=u.length;const d=Df(22);d.setUint32(0,1347093766),d.setUint16(8,a,1),d.setUint16(10,a,1),d.setUint32(12,c,1),d.setUint32(16,o,1),yield co(d)}(r,t),r),{headers:n})}async function YS(e,t=!0,n){const r=Rt();t&&sa({message:`Downloading ${e.length} image(s)...`,type:"info"});const i=[];for(let o=0;o<e.length;o++){const a=await Wt.outputs.get(e[o]);if(!a)continue;const{image:c,id:d,...u}=a,f=`${o}-${a.seed}-${a.prompt}`.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd();let s=r.imageDownloadType;c.startsWith("data:image/gif")&&(s="GIF"),s==="PNG"?i.push({name:f+".png",input:await Da(c,"image/png")}):s==="JPG"?i.push({name:f+".jpg",input:await Da(c,"image/jpeg")}):s==="GIF"?i.push({name:f+".gif",input:await Da(c,"image/gif")}):i.push({name:f+".webp",input:await Da(c,"image/webp")}),i.push({name:f+".json",input:JSON.stringify(u,void 0,4)}),n&&n()}const l=await oU(i).blob(),m=document.createElement("a");m.href=URL.createObjectURL(l),m.download="sdui_images.zip",m.click()}async function rg(e,t){const n=Rt(),r=document.createElement("a");let i,l=n.imageDownloadType;e.startsWith("data:image/gif")&&(l="GIF"),l==="PNG"?(i=await Da(e,"image/png"),r.href=URL.createObjectURL(i),r.download=t.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd()+".png"):l==="JPG"?(i=await Da(e,"image/jpeg"),r.href=URL.createObjectURL(i),r.download=t.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd()+".jpg"):l==="GIF"?(i=await Da(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)}function KS(e,t){const n=e;if(!n)return;const r=atob(n),i=r.length,l=new Uint8Array(i);for(let c=0;c<i;c++)l[c]=r.charCodeAt(c);const m=new Blob([l],{type:"video/avi"}),o=URL.createObjectURL(m),a=document.createElement("a");a.href=o,a.download=t,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(o)}const il=ls("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=ee(()=>nn().generatorType==="Inpainting"),i=ee(()=>r.value?t.value:n.value),l=ee(()=>nn().currentImageProps),m=ee({get:()=>i.value.drawing&&!r.value,set:W=>i.value.drawing=W}),o=ie(512),a=ie(512),c=ie(!1),d=ie(30),u=ie(!1),f=new cr.fabric.Circle({radius:d.value,left:0,originX:"center",originY:"center",angle:0,fill:"",stroke:"red",strokeWidth:3,opacity:0}),s=ie("Erase"),h=ie("rgb(0, 0, 0, 1)");function g(){!i.value.canvas||i.value.canvas.renderAll()}function p(){c.value=!c.value,s.value=c.value?"Draw":"Erase"}function v(W=null){!i.value.canvas||(i.value.brush=i.value.canvas.freeDrawingBrush,i.value.brush.color=W||i.value.brush.color,i.value.brush.width=d.value)}async function y({history:W,erase:D=!1,draw:B=!1}={}){if(!W||!i.value.drawLayer||!i.value.visibleDrawLayer||!i.value.imageLayer||!i.value.visibleImageLayer||!i.value.canvas)return;W.path.selectable=!1,W.path.opacity=1,W.drawPath=await V(W.path),W.visibleDrawPath=await V(W.path),D?(W.visibleDrawPath.globalCompositeOperation="destination-out",W.drawPath.stroke=i.value.maskBackgroundColor):(W.visibleDrawPath.globalCompositeOperation="source-over",W.drawPath.stroke=B?h.value:i.value.maskPathColor);let Z=await V(W.drawPath);Z=Z.scale(i.value.imageScale),Z.left=Z.left+W.drawPath.left*(i.value.imageScale-1),Z.top=Z.top+W.drawPath.top*(i.value.imageScale-1),B?(i.value.imageLayer.add(Z),i.value.visibleImageLayer.addWithUpdate(W.visibleDrawPath)):(i.value.drawLayer.add(Z),i.value.visibleDrawLayer.addWithUpdate(W.visibleDrawPath)),i.value.canvas.remove(W.path),g()}function b(){if(i.value.undoHistory.length===0)return;const W=i.value.undoHistory.pop();y({history:W,erase:!1,draw:m.value}),i.value.redoHistory.push(W)}function w(){if(i.value.redoHistory.length===0||!i.value.drawLayer||!i.value.visibleDrawLayer||!i.value.imageLayer||!i.value.visibleImageLayer||!i.value.canvas)return;const W=i.value.redoHistory.pop();i.value.undoHistory.push(W),m.value?(i.value.imageLayer.remove(W.drawPath),i.value.visibleImageLayer.remove(W.visibleDrawPath)):(i.value.drawLayer.remove(W.drawPath),i.value.visibleDrawLayer.remove(W.visibleDrawPath)),delete W.drawPath,delete W.visibleDrawPath,g()}function S(W){i.value.canvas=new cr.fabric.Canvas(W,{isDrawingMode:!1,width:o.value,height:a.value,backgroundColor:"white"}),i.value.canvas.selection=!1,i.value.canvas.freeDrawingCursor="crosshair",v(i.value.maskPathColor),i.value.canvas.on("mouse:move",R),i.value.canvas.on("path:created",M),g()}function C(W,D,B,Z){let H=Z,Q=Z;return D>B?(W.scaleToWidth(Z),H=Z*(a.value/o.value)):(W.scaleToHeight(Z),Q=Z*(o.value/a.value)),{newHeight:H,newWidth:Q}}function T(W){const D=nn();if(ae(),W.selectable=!1,o.value=W.width,a.value=W.height,o.value>D.maxDimensions||a.value>D.maxDimensions){const{newHeight:Q,newWidth:te}=C(W,o.value,a.value,D.maxDimensions);o.value=te,a.value=Q}if(o.value<D.minDimensions||a.value<D.minDimensions){const{newHeight:Q,newWidth:te}=C(W,o.value,a.value,D.minDimensions);o.value=te,a.value=Q}const B=512,Z=o.value,H=a.value;i.value.imageScale=Math.max(Z,H)/B,W.cloneAsImage(Q=>{i.value.imageLayer=$({image:Q,layerHeight:H,layerWidth:Z})}),W.cloneAsImage(Q=>{if(!i.value.canvas)return;if(o.value!==B||a.value!==B){const{newHeight:me,newWidth:_e}=C(Q,o.value,a.value,B);o.value=_e,a.value=me}i.value.canvas.setWidth(o.value),i.value.canvas.setHeight(a.value),i.value.canvas.isDrawingMode=!0,i.value.visibleDrawLayer=Y(),i.value.visibleImageLayer=Y({image:Q}),i.value.drawLayer=$({layerHeight:H,layerWidth:Z});const te=o.value*i.value.imageScale,fe=a.value*i.value.imageScale;D.params.width=te-te%64,D.params.height=fe-fe%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),u.value=!0,z(),A()})}function k(W,D,B,Z,H,Q){const te=Q?Q.width:W.width,fe=Q?Q.height:W.height;if(H==="Original")return W;const me=document.createElement("canvas");me.width=D,me.height=B;const _e=me.getContext("2d");_e.fillStyle=Z,_e.fillRect(0,0,me.width,me.height);let j=0,x=0,U=W.width,K=W.height,L=0,F=0,X=me.width,de=me.height;switch(H){case"Stretch":break;case"ScaleAndCrop":{const le=me.width/te,G=me.height/fe;le>G?(K=me.height/le,x=(W.height-K)/2):(U=me.width/G,j=(W.width-U)/2);break}case"ScaleAndPad":{const le=me.width/te,G=me.height/fe;le<G?(de=fe*le,F=(me.height-de)/2):(X=te*G,L=(me.width-X)/2);break}case"NoScale":default:{const le=te/2,G=fe/2;te>D?(U=D,j=le-D/2):(X=te,L=D/2-le),fe>B?(K=B,x=G-B/2):(de=fe,F=B/2-G);break}}return _e.drawImage(W,j,x,U,K,L,F,X,de),me}function A(){const W=nn(),D=Rt();if(!i.value.imageLayer||!i.value.drawLayer)return;const B=W.params.width,Z=W.params.height,H=i.value.imageLayer.backgroundColor||"#FFFFFF",Q=D.imageResizeMode,te=i.value.imageLayer.toCanvasElement(),fe=k(te,B,Z,H,Q,te);if(l.value.sourceImage=fe.toDataURL("image/jpeg",1),l.value.maskImage=void 0,i.value.redoHistory.length>0&&!m.value){const _e=i.value.drawLayer.toCanvasElement(),j=k(_e,B,Z,H,Q,te);l.value.maskImage=j.toDataURL("image/jpeg",1).split(",")[1]}}let P;function z(){if(!i.value.canvas)return;const W=nn();i.value.cropPreviewLayer&&(i.value.canvas.remove(i.value.cropPreviewLayer),i.value.cropPreviewLayer=void 0),u.value&&(i.value.cropPreviewLayer=Y({layerWidth:W.params.width/i.value.imageScale,layerHeight:W.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),P&&clearTimeout(P),P=setTimeout(()=>{u.value=!1,z(),P=void 0},5e3))}function I(W,D){const B="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdj+P///38ACfsD/QVDRcoAAAAASUVORK5CYII=";cr.fabric.Image.fromURL(B,Z=>{Z.set({height:W,width:D});const H=Z.toDataURL({format:"png"});l.value.sourceImage=H,m.value=!0,T(Z)})}function $({image:W,layerWidth:D,layerHeight:B}={}){const Z=new cr.fabric.Canvas(null);return Z.selection=!1,Z.backgroundColor=i.value.maskBackgroundColor,Z.setHeight(B||a.value),Z.setWidth(D||o.value),W&&Z.add(W),Z}function O(){return i.value.imageLayer?{layerHeight:i.value.imageLayer.getHeight(),layerWidth:i.value.imageLayer.getWidth()}:{}}function Y({image:W,layerWidth:D,layerHeight:B,fill:Z,abosolute:H}={}){const Q=W||new cr.fabric.Rect({width:D||o.value,height:B||a.value,left:0,top:0,fill:Z||"transparent",absolutePositioned:H||!0,selectable:!1});return new cr.fabric.Group([Q],{selectable:!1,absolutePositioned:H||!0})}function ae(){!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 q(){if(!!i.value.canvas){if(i.value.visibleDrawLayer&&(i.value.canvas.remove(i.value.visibleDrawLayer),i.value.visibleDrawLayer=void 0),m.value){const W=nn();I(W.params.height||512,W.params.width||512)}i.value.drawLayer=void 0,i.value.redoHistory=[],i.value.undoHistory=[],i.value.visibleDrawLayer=Y(),i.value.drawLayer=$(O()),i.value.visibleDrawLayer.set("opacity",.8),i.value.canvas.add(i.value.visibleDrawLayer)}}function J(){var D;A();const W=document.createElement("a");if(m.value){W.href="data:image/png;base64,"+((D=l.value.sourceImage)==null?void 0:D.split(",")[1]),W.download="image_drawing.png",W.click();return}W.href="data:image/png;base64,"+l.value.maskImage,W.download="image_mask.png",W.click()}function E(){A();const W=nn(),D=l.value.sourceImage;!D||rg(D,`${W.generatorType.toLowerCase()}-reference`)}async function V(W){return new Promise((D,B)=>{try{W.clone(D)}catch(Z){B(Z)}})}async function M(W){const D={path:W.path};y({history:D,erase:c.value,draw:m.value}),i.value.redoHistory.push(D)}function R(W){if(!i.value.canvas)return;const D=i.value.canvas.getPointer(W.e);f.left=D.x,f.top=D.y,f.opacity=.8,c.value?(f.set("strokeWidth",3),f.set("fill",""),v("red")):(f.set("strokeWidth",0),m.value?(f.set("fill",h.value),v(h.value)):(f.set("fill","white"),v("white"))),f.set("radius",d.value/2),g()}return{showCropPreview:u,erasing:c,switchToolText:s,brushSize:d,drawColor:h,drawing:m,imageProps:i,updateCropPreview:z,createNewCanvas:S,downloadMask:J,downloadSourceImage:E,resetCanvas:ae,resetDrawing:q,flipErase:p,undoAction:w,redoAction:b,newImage:T,newBlankImage:I,setBrush:v,saveImages:A}}),sU={},lU={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 20 20"};function uU(e,t){return N(),se("svg",lU,[...t[0]||(t[0]=[ne("g",{fill:"none"},[ne("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 cU=on(sU,[["render",uU]]),fU={key:0},dU={class:"canvas-container"},hU={class:"action-buttons",style:{left:"10px",right:"unset"}},pU={class:"action-buttons"},mU=be({__name:"CustomCanvas",setup(e){const t=nn(),n=Yt(),r=il(),i=ie();async function l(a){if(!a.raw.type.includes("image")){n.raiseError("Uploaded file needs to be a image!",!1),i.value.clearFiles();return}const c=await Nl(a.raw);t.currentImageProps.sourceImage=c,r.drawing=!1,cr.fabric.Image.fromURL(c,r.newImage)}function m(){t.currentImageProps.sourceImage="",r.resetCanvas()}tt(()=>{r.createNewCanvas("canvas"),t.currentImageProps.sourceImage&&cr.fabric.Image.fromURL(t.currentImageProps.sourceImage,r.newImage),window.addEventListener("paste",o)}),Jt(()=>{window.removeEventListener("paste",o)});async function o(a){var d;const c=(d=a.clipboardData)==null?void 0:d.items;if(!!c)for(let u=0;u<c.length;u++){const f=c[u];if(f.type.startsWith("image/")){a.preventDefault();const s=f.getAsFile();if(!s)return;try{const h=await Nl(s);typeof h=="string"&&(t.currentImageProps.sourceImage=h,r.drawing=!1,cr.fabric.Image.fromURL(h,r.newImage))}catch(h){console.error("Failed to process pasted image:",h)}return}}}return(a,c)=>(N(),se($e,null,[_(t).currentImageProps.sourceImage?ge("",!0):(N(),ve(_(Lm),{key:0,drag:"",ref_key:"upload",ref:i,"auto-upload":!1,onChange:l,limit:1,multiple:""},{tip:ue(()=>[_(t).generatorType==="Img2Img"?(N(),se("div",fU,[c[9]||(c[9]=ne("div",{class:"center-horizontal",style:{"margin-top":"5px"}},"OR",-1)),ne("div",{class:"center-both",style:{cursor:"pointer","text-decoration":"underline","font-size":"1rem"},onClick:c[0]||(c[0]=d=>_(r).newBlankImage(_(t).params.height||512,_(t).params.width||512))},[oe(_(De),{size:20,style:{"margin-right":"2px"}},{default:ue(()=>[oe(zS)]),_:1}),c[8]||(c[8]=Ne("draw something",-1))])])):ge("",!0)]),default:ue(()=>[oe(_(De),{size:100},{default:ue(()=>[oe(_(Zp))]),_:1}),c[10]||(c[10]=ne("div",null,[Ne("Drop file here, paste an image OR "),ne("em",null,"click to upload")],-1))]),_:1},512)),xt(ne("div",null,[ne("div",dU,[c[11]||(c[11]=ne("canvas",{id:"canvas"},null,-1)),ne("div",hU,[oe(_(Ze),{onClick:c[1]||(c[1]=d=>_(r).undoAction()),icon:_(R1),plain:"",disabled:_(r).imageProps.redoHistory.length===0},null,8,["icon","disabled"]),oe(_(Ze),{onClick:c[2]||(c[2]=d=>_(r).redoAction()),icon:_(D1),plain:"",disabled:_(r).imageProps.undoHistory.length===0},null,8,["icon","disabled"])]),ne("div",pU,[oe(_(Ze),{onClick:c[3]||(c[3]=d=>_(r).resetDrawing()),icon:_(Kr),plain:""},null,8,["icon"]),oe(_(Ze),{onClick:m,icon:_(Yi),plain:""},null,8,["icon"]),oe(_(Ze),{onClick:c[4]||(c[4]=d=>_(r).downloadSourceImage()),icon:_(yl),plain:""},null,8,["icon"]),oe(_(Ze),{onClick:c[5]||(c[5]=d=>_(r).flipErase()),icon:_(r).erasing?_(sO):cU,plain:""},null,8,["icon"]),_(r).drawing?(N(),ve(_(ID),{key:0,modelValue:_(r).drawColor,"onUpdate:modelValue":c[6]||(c[6]=d=>_(r).drawColor=d),"show-alpha":""},null,8,["modelValue"])):ge("",!0)]),oe(_(Em),{"label-width":"110px",style:{"margin-top":"10px"}},{default:ue(()=>[oe(bn,{style:{"margin-bottom":"5px"},label:"Brush Size",prop:"brushSize",modelValue:_(r).brushSize,"onUpdate:modelValue":c[7]||(c[7]=d=>_(r).brushSize=d),min:10,max:100,step:10,change:_(r).setBrush},null,8,["modelValue","change"])]),_:1})])],512),[[Gt,_(t).currentImageProps.sourceImage]])],64))}}),Gy=on(mU,[["__scopeId","data-v-0cdc2bf8"]]),gU={class:"centerIcons"},vU={class:"stackedIcons"},yU=be({__name:"StackedIcon",props:{iconOne:{type:[Object,Function]},iconTwo:{type:[Object,Function]},size:{}},setup(e){JT(n=>({"2ad037ca":n.size+"px"}));const t=e;return(n,r)=>(N(),se("div",gU,[ne("div",vU,[oe(_(De),{class:"firstIcon",size:n.size},{default:ue(()=>[(N(),ve(Ct(t.iconOne)))]),_:1},8,["size"]),oe(_(De),{class:"secondIcon",size:n.size},{default:ue(()=>[(N(),ve(Ct(t.iconTwo)))]),_:1},8,["size"])])]))}}),bU=on(yU,[["__scopeId","data-v-74586a39"]]),_U={key:1,style:{width:"40px"}},Uu=be({__name:"GeneratorMenuItem",props:{index:{},iconOne:{type:[Object,Function]},iconTwo:{type:[Object,Function]},isMobile:{type:Boolean}},setup(e){const t=e;return(n,r)=>(N(),ve(_(fn),{content:n.index,placement:n.isMobile?"bottom":"right",enterable:!1,"hide-after":100},{default:ue(()=>[oe(_(Am),{index:n.index,style:{height:"60px",display:"flex","justify-content":"center"}},{default:ue(()=>[n.iconTwo?(N(),ve(bU,{key:0,iconOne:n.iconOne,iconTwo:n.iconTwo,size:40},null,8,["iconOne","iconTwo"])):(N(),se("div",_U,[oe(_(De),{style:{width:"35px"},size:40},{default:ue(()=>[(N(),ve(Ct(t.iconOne)))]),_:1})]))]),_:1},8,["index"])]),_:1},8,["content","placement"]))}});/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const wU=4,Yy=0,Ky=1,SU=2;function ys(e){let t=e.length;for(;--t>=0;)e[t]=0}const CU=0,XS=1,xU=2,TU=3,kU=258,ig=29,hu=256,zl=hu+1+ig,Uo=30,ag=19,qS=2*zl+1,Fa=15,Fd=16,EU=7,og=256,ZS=16,JS=17,QS=18,cp=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]),yc=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]),OU=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),eC=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),AU=512,ci=new Array((zl+2)*2);ys(ci);const al=new Array(Uo*2);ys(al);const jl=new Array(AU);ys(jl);const Vl=new Array(kU-TU+1);ys(Vl);const sg=new Array(ig);ys(sg);const nf=new Array(Uo);ys(nf);function Bd(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 tC,nC,rC;function $d(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const iC=e=>e<256?jl[e]:jl[256+(e>>>7)],Ul=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Nn=(e,t,n)=>{e.bi_valid>Fd-n?(e.bi_buf|=t<<e.bi_valid&65535,Ul(e,e.bi_buf),e.bi_buf=t>>Fd-e.bi_valid,e.bi_valid+=n-Fd):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},Vr=(e,t,n)=>{Nn(e,n[t*2],n[t*2+1])},aC=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},PU=e=>{e.bi_valid===16?(Ul(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)},IU=(e,t)=>{const n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,l=t.stat_desc.has_stree,m=t.stat_desc.extra_bits,o=t.stat_desc.extra_base,a=t.stat_desc.max_length;let c,d,u,f,s,h,g=0;for(f=0;f<=Fa;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,c=e.heap_max+1;c<qS;c++)d=e.heap[c],f=n[n[d*2+1]*2+1]+1,f>a&&(f=a,g++),n[d*2+1]=f,!(d>r)&&(e.bl_count[f]++,s=0,d>=o&&(s=m[d-o]),h=n[d*2],e.opt_len+=h*(f+s),l&&(e.static_len+=h*(i[d*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(d=e.bl_count[f];d!==0;)u=e.heap[--c],!(u>r)&&(n[u*2+1]!==f&&(e.opt_len+=(f-n[u*2+1])*n[u*2],n[u*2+1]=f),d--)}},oC=(e,t,n)=>{const r=new Array(Fa+1);let i=0,l,m;for(l=1;l<=Fa;l++)i=i+n[l-1]<<1,r[l]=i;for(m=0;m<=t;m++){let o=e[m*2+1];o!==0&&(e[m*2]=aC(r[o]++,o))}},MU=()=>{let e,t,n,r,i;const l=new Array(Fa+1);for(n=0,r=0;r<ig-1;r++)for(sg[r]=n,e=0;e<1<<cp[r];e++)Vl[n++]=r;for(Vl[n-1]=r,i=0,r=0;r<16;r++)for(nf[r]=i,e=0;e<1<<yc[r];e++)jl[i++]=r;for(i>>=7;r<Uo;r++)for(nf[r]=i<<7,e=0;e<1<<yc[r]-7;e++)jl[256+i++]=r;for(t=0;t<=Fa;t++)l[t]=0;for(e=0;e<=143;)ci[e*2+1]=8,e++,l[8]++;for(;e<=255;)ci[e*2+1]=9,e++,l[9]++;for(;e<=279;)ci[e*2+1]=7,e++,l[7]++;for(;e<=287;)ci[e*2+1]=8,e++,l[8]++;for(oC(ci,zl+1,l),e=0;e<Uo;e++)al[e*2+1]=5,al[e*2]=aC(e,5);tC=new Bd(ci,cp,hu+1,zl,Fa),nC=new Bd(al,yc,0,Uo,Fa),rC=new Bd(new Array(0),OU,0,ag,EU)},sC=e=>{let t;for(t=0;t<zl;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Uo;t++)e.dyn_dtree[t*2]=0;for(t=0;t<ag;t++)e.bl_tree[t*2]=0;e.dyn_ltree[og*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},lC=e=>{e.bi_valid>8?Ul(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Xy=(e,t,n,r)=>{const i=t*2,l=n*2;return e[i]<e[l]||e[i]===e[l]&&r[t]<=r[n]},Nd=(e,t,n)=>{const r=e.heap[n];let i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&Xy(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!Xy(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},qy=(e,t,n)=>{let r,i,l=0,m,o;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+l++]&255,r+=(e.pending_buf[e.sym_buf+l++]&255)<<8,i=e.pending_buf[e.sym_buf+l++],r===0?Vr(e,i,t):(m=Vl[i],Vr(e,m+hu+1,t),o=cp[m],o!==0&&(i-=sg[m],Nn(e,i,o)),r--,m=iC(r),Vr(e,m,n),o=yc[m],o!==0&&(r-=nf[m],Nn(e,r,o)));while(l<e.sym_next);Vr(e,og,t)},fp=(e,t)=>{const n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,l=t.stat_desc.elems;let m,o,a=-1,c;for(e.heap_len=0,e.heap_max=qS,m=0;m<l;m++)n[m*2]!==0?(e.heap[++e.heap_len]=a=m,e.depth[m]=0):n[m*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,m=e.heap_len>>1;m>=1;m--)Nd(e,n,m);c=l;do m=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Nd(e,n,1),o=e.heap[1],e.heap[--e.heap_max]=m,e.heap[--e.heap_max]=o,n[c*2]=n[m*2]+n[o*2],e.depth[c]=(e.depth[m]>=e.depth[o]?e.depth[m]:e.depth[o])+1,n[m*2+1]=n[o*2+1]=c,e.heap[1]=c++,Nd(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],IU(e,t),oC(n,a,e.bl_count)},Zy=(e,t,n)=>{let r,i=-1,l,m=t[0*2+1],o=0,a=7,c=4;for(m===0&&(a=138,c=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)l=m,m=t[(r+1)*2+1],!(++o<a&&l===m)&&(o<c?e.bl_tree[l*2]+=o:l!==0?(l!==i&&e.bl_tree[l*2]++,e.bl_tree[ZS*2]++):o<=10?e.bl_tree[JS*2]++:e.bl_tree[QS*2]++,o=0,i=l,m===0?(a=138,c=3):l===m?(a=6,c=3):(a=7,c=4))},Jy=(e,t,n)=>{let r,i=-1,l,m=t[0*2+1],o=0,a=7,c=4;for(m===0&&(a=138,c=3),r=0;r<=n;r++)if(l=m,m=t[(r+1)*2+1],!(++o<a&&l===m)){if(o<c)do Vr(e,l,e.bl_tree);while(--o!==0);else l!==0?(l!==i&&(Vr(e,l,e.bl_tree),o--),Vr(e,ZS,e.bl_tree),Nn(e,o-3,2)):o<=10?(Vr(e,JS,e.bl_tree),Nn(e,o-3,3)):(Vr(e,QS,e.bl_tree),Nn(e,o-11,7));o=0,i=l,m===0?(a=138,c=3):l===m?(a=6,c=3):(a=7,c=4)}},LU=e=>{let t;for(Zy(e,e.dyn_ltree,e.l_desc.max_code),Zy(e,e.dyn_dtree,e.d_desc.max_code),fp(e,e.bl_desc),t=ag-1;t>=3&&e.bl_tree[eC[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},RU=(e,t,n,r)=>{let i;for(Nn(e,t-257,5),Nn(e,n-1,5),Nn(e,r-4,4),i=0;i<r;i++)Nn(e,e.bl_tree[eC[i]*2+1],3);Jy(e,e.dyn_ltree,t-1),Jy(e,e.dyn_dtree,n-1)},DU=e=>{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return Yy;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<hu;n++)if(e.dyn_ltree[n*2]!==0)return Ky;return Yy};let Qy=!1;const FU=e=>{Qy||(MU(),Qy=!0),e.l_desc=new $d(e.dyn_ltree,tC),e.d_desc=new $d(e.dyn_dtree,nC),e.bl_desc=new $d(e.bl_tree,rC),e.bi_buf=0,e.bi_valid=0,sC(e)},uC=(e,t,n,r)=>{Nn(e,(CU<<1)+(r?1:0),3),lC(e),Ul(e,n),Ul(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},BU=e=>{Nn(e,XS<<1,3),Vr(e,og,ci),PU(e)},$U=(e,t,n,r)=>{let i,l,m=0;e.level>0?(e.strm.data_type===SU&&(e.strm.data_type=DU(e)),fp(e,e.l_desc),fp(e,e.d_desc),m=LU(e),i=e.opt_len+3+7>>>3,l=e.static_len+3+7>>>3,l<=i&&(i=l)):i=l=n+5,n+4<=i&&t!==-1?uC(e,t,n,r):e.strategy===wU||l===i?(Nn(e,(XS<<1)+(r?1:0),3),qy(e,ci,al)):(Nn(e,(xU<<1)+(r?1:0),3),RU(e,e.l_desc.max_code+1,e.d_desc.max_code+1,m+1),qy(e,e.dyn_ltree,e.dyn_dtree)),sC(e),r&&lC(e)},NU=(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[(Vl[n]+hu+1)*2]++,e.dyn_dtree[iC(t)*2]++),e.sym_next===e.sym_end);var zU=FU,jU=uC,VU=$U,UU=NU,HU=BU,WU={_tr_init:zU,_tr_stored_block:jU,_tr_flush_block:VU,_tr_tally:UU,_tr_align:HU};const GU=(e,t,n,r)=>{let i=e&65535|0,l=e>>>16&65535|0,m=0;for(;n!==0;){m=n>2e3?2e3:n,n-=m;do i=i+t[r++]|0,l=l+i|0;while(--m);i%=65521,l%=65521}return i|l<<16|0};var Hl=GU;const YU=()=>{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},KU=new Uint32Array(YU()),XU=(e,t,n,r)=>{const i=KU,l=r+n;e^=-1;for(let m=r;m<l;m++)e=e>>>8^i[(e^t[m])&255];return e^-1};var sn=XU,Qa={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"},bs={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:qU,_tr_stored_block:dp,_tr_flush_block:ZU,_tr_tally:ea,_tr_align:JU}=WU,{Z_NO_FLUSH:ta,Z_PARTIAL_FLUSH:QU,Z_FULL_FLUSH:eH,Z_FINISH:fr,Z_BLOCK:eb,Z_OK:cn,Z_STREAM_END:tb,Z_STREAM_ERROR:Gr,Z_DATA_ERROR:tH,Z_BUF_ERROR:zd,Z_DEFAULT_COMPRESSION:nH,Z_FILTERED:rH,Z_HUFFMAN_ONLY:Hu,Z_RLE:iH,Z_FIXED:aH,Z_DEFAULT_STRATEGY:oH,Z_UNKNOWN:sH,Z_DEFLATED:Ff}=bs,lH=9,uH=15,cH=8,fH=29,dH=256,hp=dH+1+fH,hH=30,pH=19,mH=2*hp+1,gH=15,ct=3,qi=258,Yr=qi+ct+1,vH=32,rs=42,lg=57,pp=69,mp=73,gp=91,vp=103,Ba=113,Bs=666,Mn=1,_s=2,eo=3,ws=4,yH=3,$a=(e,t)=>(e.msg=Qa[t],t),nb=e=>e*2-(e>4?9:0),Gi=e=>{let t=e.length;for(;--t>=0;)e[t]=0},bH=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 _H=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask,na=_H;const Kn=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))},Jn=(e,t)=>{ZU(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Kn(e.strm)},vt=(e,t)=>{e.pending_buf[e.pending++]=t},Is=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},yp=(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=Hl(e.adler,t,i,n):e.state.wrap===2&&(e.adler=sn(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},cC=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,l,m=e.prev_length,o=e.nice_match;const a=e.strstart>e.w_size-Yr?e.strstart-(e.w_size-Yr):0,c=e.window,d=e.w_mask,u=e.prev,f=e.strstart+qi;let s=c[r+m-1],h=c[r+m];e.prev_length>=e.good_match&&(n>>=2),o>e.lookahead&&(o=e.lookahead);do if(i=t,!(c[i+m]!==h||c[i+m-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(l=qi-(f-r),r=f-qi,l>m){if(e.match_start=t,m=l,l>=o)break;s=c[r+m-1],h=c[r+m]}}while((t=u[t&d])>a&&--n!==0);return m<=e.lookahead?m:e.lookahead},is=e=>{const t=e.w_size;let n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Yr)&&(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),bH(e),r+=t),e.strm.avail_in===0)break;if(n=yp(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=ct)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=na(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=na(e,e.ins_h,e.window[i+ct-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<ct)););}while(e.lookahead<Yr&&e.strm.avail_in!==0)},fC=(e,t)=>{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,l,m=0,o=e.strm.avail_in;do{if(r=65535,l=e.bi_valid+42>>3,e.strm.avail_out<l||(l=e.strm.avail_out-l,i=e.strstart-e.block_start,r>i+e.strm.avail_in&&(r=i+e.strm.avail_in),r>l&&(r=l),r<n&&(r===0&&t!==fr||t===ta||r!==i+e.strm.avail_in)))break;m=t===fr&&r===i+e.strm.avail_in?1:0,dp(e,0,0,m),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,Kn(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&&(yp(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(m===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),m?ws:t!==ta&&t!==fr&&e.strm.avail_in===0&&e.strstart===e.block_start?_s:(l=e.window_size-e.strstart,e.strm.avail_in>l&&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++,l+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),l>e.strm.avail_in&&(l=e.strm.avail_in),l&&(yp(e.strm,e.window,e.strstart,l),e.strstart+=l,e.insert+=l>e.w_size-e.insert?e.w_size-e.insert:l),e.high_water<e.strstart&&(e.high_water=e.strstart),l=e.bi_valid+42>>3,l=e.pending_buf_size-l>65535?65535:e.pending_buf_size-l,n=l>e.w_size?e.w_size:l,i=e.strstart-e.block_start,(i>=n||(i||t===fr)&&t!==ta&&e.strm.avail_in===0&&i<=l)&&(r=i>l?l:i,m=t===fr&&e.strm.avail_in===0&&r===i?1:0,dp(e,e.block_start,r,m),e.block_start+=r,Kn(e.strm)),m?eo:Mn)},jd=(e,t)=>{let n,r;for(;;){if(e.lookahead<Yr){if(is(e),e.lookahead<Yr&&t===ta)return Mn;if(e.lookahead===0)break}if(n=0,e.lookahead>=ct&&(e.ins_h=na(e,e.ins_h,e.window[e.strstart+ct-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-Yr&&(e.match_length=cC(e,n)),e.match_length>=ct)if(r=ea(e,e.strstart-e.match_start,e.match_length-ct),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ct){e.match_length--;do e.strstart++,e.ins_h=na(e,e.ins_h,e.window[e.strstart+ct-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=na(e,e.ins_h,e.window[e.strstart+1]);else r=ea(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Jn(e,!1),e.strm.avail_out===0))return Mn}return e.insert=e.strstart<ct-1?e.strstart:ct-1,t===fr?(Jn(e,!0),e.strm.avail_out===0?eo:ws):e.sym_next&&(Jn(e,!1),e.strm.avail_out===0)?Mn:_s},xo=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<Yr){if(is(e),e.lookahead<Yr&&t===ta)return Mn;if(e.lookahead===0)break}if(n=0,e.lookahead>=ct&&(e.ins_h=na(e,e.ins_h,e.window[e.strstart+ct-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=ct-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-Yr&&(e.match_length=cC(e,n),e.match_length<=5&&(e.strategy===rH||e.match_length===ct&&e.strstart-e.match_start>4096)&&(e.match_length=ct-1)),e.prev_length>=ct&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-ct,r=ea(e,e.strstart-1-e.prev_match,e.prev_length-ct),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=na(e,e.ins_h,e.window[e.strstart+ct-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=ct-1,e.strstart++,r&&(Jn(e,!1),e.strm.avail_out===0))return Mn}else if(e.match_available){if(r=ea(e,0,e.window[e.strstart-1]),r&&Jn(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Mn}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=ea(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<ct-1?e.strstart:ct-1,t===fr?(Jn(e,!0),e.strm.avail_out===0?eo:ws):e.sym_next&&(Jn(e,!1),e.strm.avail_out===0)?Mn:_s},wH=(e,t)=>{let n,r,i,l;const m=e.window;for(;;){if(e.lookahead<=qi){if(is(e),e.lookahead<=qi&&t===ta)return Mn;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=ct&&e.strstart>0&&(i=e.strstart-1,r=m[i],r===m[++i]&&r===m[++i]&&r===m[++i])){l=e.strstart+qi;do;while(r===m[++i]&&r===m[++i]&&r===m[++i]&&r===m[++i]&&r===m[++i]&&r===m[++i]&&r===m[++i]&&r===m[++i]&&i<l);e.match_length=qi-(l-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ct?(n=ea(e,1,e.match_length-ct),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=ea(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Jn(e,!1),e.strm.avail_out===0))return Mn}return e.insert=0,t===fr?(Jn(e,!0),e.strm.avail_out===0?eo:ws):e.sym_next&&(Jn(e,!1),e.strm.avail_out===0)?Mn:_s},SH=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(is(e),e.lookahead===0)){if(t===ta)return Mn;break}if(e.match_length=0,n=ea(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Jn(e,!1),e.strm.avail_out===0))return Mn}return e.insert=0,t===fr?(Jn(e,!0),e.strm.avail_out===0?eo:ws):e.sym_next&&(Jn(e,!1),e.strm.avail_out===0)?Mn:_s};function Br(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 $s=[new Br(0,0,0,0,fC),new Br(4,4,8,4,jd),new Br(4,5,16,8,jd),new Br(4,6,32,32,jd),new Br(4,4,16,16,xo),new Br(8,16,32,32,xo),new Br(8,16,128,128,xo),new Br(8,32,128,256,xo),new Br(32,128,258,1024,xo),new Br(32,258,258,4096,xo)],CH=e=>{e.window_size=2*e.w_size,Gi(e.head),e.max_lazy_match=$s[e.level].max_lazy,e.good_match=$s[e.level].good_length,e.nice_match=$s[e.level].nice_length,e.max_chain_length=$s[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ct-1,e.match_available=0,e.ins_h=0};function xH(){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=Ff,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(mH*2),this.dyn_dtree=new Uint16Array((2*hH+1)*2),this.bl_tree=new Uint16Array((2*pH+1)*2),Gi(this.dyn_ltree),Gi(this.dyn_dtree),Gi(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(gH+1),this.heap=new Uint16Array(2*hp+1),Gi(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*hp+1),Gi(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 pu=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==rs&&t.status!==lg&&t.status!==pp&&t.status!==mp&&t.status!==gp&&t.status!==vp&&t.status!==Ba&&t.status!==Bs?1:0},dC=e=>{if(pu(e))return $a(e,Gr);e.total_in=e.total_out=0,e.data_type=sH;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?lg:t.wrap?rs:Ba,e.adler=t.wrap===2?0:1,t.last_flush=-2,qU(t),cn},hC=e=>{const t=dC(e);return t===cn&&CH(e.state),t},TH=(e,t)=>pu(e)||e.state.wrap!==2?Gr:(e.state.gzhead=t,cn),pC=(e,t,n,r,i,l)=>{if(!e)return Gr;let m=1;if(t===nH&&(t=6),r<0?(m=0,r=-r):r>15&&(m=2,r-=16),i<1||i>lH||n!==Ff||r<8||r>15||t<0||t>9||l<0||l>aH||r===8&&m!==1)return $a(e,Gr);r===8&&(r=9);const o=new xH;return e.state=o,o.strm=e,o.status=rs,o.wrap=m,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+ct-1)/ct),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=l,o.method=n,hC(e)},kH=(e,t)=>pC(e,t,Ff,uH,cH,oH),EH=(e,t)=>{if(pu(e)||t>eb||t<0)return e?$a(e,Gr):Gr;const n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===Bs&&t!==fr)return $a(e,e.avail_out===0?zd:Gr);const r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(Kn(e),e.avail_out===0)return n.last_flush=-1,cn}else if(e.avail_in===0&&nb(t)<=nb(r)&&t!==fr)return $a(e,zd);if(n.status===Bs&&e.avail_in!==0)return $a(e,zd);if(n.status===rs&&n.wrap===0&&(n.status=Ba),n.status===rs){let i=Ff+(n.w_bits-8<<4)<<8,l=-1;if(n.strategy>=Hu||n.level<2?l=0:n.level<6?l=1:n.level===6?l=2:l=3,i|=l<<6,n.strstart!==0&&(i|=vH),i+=31-i%31,Is(n,i),n.strstart!==0&&(Is(n,e.adler>>>16),Is(n,e.adler&65535)),e.adler=1,n.status=Ba,Kn(e),n.pending!==0)return n.last_flush=-1,cn}if(n.status===lg){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>=Hu||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=sn(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=pp;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>=Hu||n.level<2?4:0),vt(n,yH),n.status=Ba,Kn(e),n.pending!==0)return n.last_flush=-1,cn}if(n.status===pp){if(n.gzhead.extra){let i=n.pending,l=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+l>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=sn(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=o,Kn(e),n.pending!==0)return n.last_flush=-1,cn;i=0,l-=o}let m=new Uint8Array(n.gzhead.extra);n.pending_buf.set(m.subarray(n.gzindex,n.gzindex+l),n.pending),n.pending+=l,n.gzhead.hcrc&&n.pending>i&&(e.adler=sn(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=mp}if(n.status===mp){if(n.gzhead.name){let i=n.pending,l;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=sn(e.adler,n.pending_buf,n.pending-i,i)),Kn(e),n.pending!==0)return n.last_flush=-1,cn;i=0}n.gzindex<n.gzhead.name.length?l=n.gzhead.name.charCodeAt(n.gzindex++)&255:l=0,vt(n,l)}while(l!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=sn(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=gp}if(n.status===gp){if(n.gzhead.comment){let i=n.pending,l;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=sn(e.adler,n.pending_buf,n.pending-i,i)),Kn(e),n.pending!==0)return n.last_flush=-1,cn;i=0}n.gzindex<n.gzhead.comment.length?l=n.gzhead.comment.charCodeAt(n.gzindex++)&255:l=0,vt(n,l)}while(l!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=sn(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&&(Kn(e),n.pending!==0))return n.last_flush=-1,cn;vt(n,e.adler&255),vt(n,e.adler>>8&255),e.adler=0}if(n.status=Ba,Kn(e),n.pending!==0)return n.last_flush=-1,cn}if(e.avail_in!==0||n.lookahead!==0||t!==ta&&n.status!==Bs){let i=n.level===0?fC(n,t):n.strategy===Hu?SH(n,t):n.strategy===iH?wH(n,t):$s[n.level].func(n,t);if((i===eo||i===ws)&&(n.status=Bs),i===Mn||i===eo)return e.avail_out===0&&(n.last_flush=-1),cn;if(i===_s&&(t===QU?JU(n):t!==eb&&(dp(n,0,0,!1),t===eH&&(Gi(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Kn(e),e.avail_out===0))return n.last_flush=-1,cn}return t!==fr?cn:n.wrap<=0?tb:(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)):(Is(n,e.adler>>>16),Is(n,e.adler&65535)),Kn(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?cn:tb)},OH=e=>{if(pu(e))return Gr;const t=e.state.status;return e.state=null,t===Ba?$a(e,tH):cn},AH=(e,t)=>{let n=t.length;if(pu(e))return Gr;const r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==rs||r.lookahead)return Gr;if(i===1&&(e.adler=Hl(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(Gi(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 l=e.avail_in,m=e.next_in,o=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,is(r);r.lookahead>=ct;){let a=r.strstart,c=r.lookahead-(ct-1);do r.ins_h=na(r,r.ins_h,r.window[a+ct-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=ct-1,is(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=ct-1,r.match_available=0,e.next_in=m,e.input=o,e.avail_in=l,r.wrap=i,cn};var PH=kH,IH=pC,MH=hC,LH=dC,RH=TH,DH=EH,FH=OH,BH=AH,$H="pako deflate (from Nodeca project)",ol={deflateInit:PH,deflateInit2:IH,deflateReset:MH,deflateResetKeep:LH,deflateSetHeader:RH,deflate:DH,deflateEnd:FH,deflateSetDictionary:BH,deflateInfo:$H};const NH=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var zH=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)NH(n,r)&&(e[r]=n[r])}}return e},jH=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,l=e.length;r<l;r++){let m=e[r];n.set(m,i),i+=m.length}return n},Bf={assign:zH,flattenChunks:jH};let mC=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{mC=!1}const Wl=new Uint8Array(256);for(let e=0;e<256;e++)Wl[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Wl[254]=Wl[254]=1;var VH=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,l,m=e.length,o=0;for(i=0;i<m;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<m&&(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),l=0,i=0;l<o;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<m&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[l++]=n:n<2048?(t[l++]=192|n>>>6,t[l++]=128|n&63):n<65536?(t[l++]=224|n>>>12,t[l++]=128|n>>>6&63,t[l++]=128|n&63):(t[l++]=240|n>>>18,t[l++]=128|n>>>12&63,t[l++]=128|n>>>6&63,t[l++]=128|n&63);return t};const UH=(e,t)=>{if(t<65534&&e.subarray&&mC)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 HH=(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 l=new Array(n*2);for(i=0,r=0;r<n;){let m=e[r++];if(m<128){l[i++]=m;continue}let o=Wl[m];if(o>4){l[i++]=65533,r+=o-1;continue}for(m&=o===2?31:o===3?15:7;o>1&&r<n;)m=m<<6|e[r++]&63,o--;if(o>1){l[i++]=65533;continue}m<65536?l[i++]=m:(m-=65536,l[i++]=55296|m>>10&1023,l[i++]=56320|m&1023)}return UH(l,i)},WH=(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+Wl[e[n]]>t?n:t},Gl={string2buf:VH,buf2string:HH,utf8border:WH};function GH(){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 gC=GH;const vC=Object.prototype.toString,{Z_NO_FLUSH:YH,Z_SYNC_FLUSH:KH,Z_FULL_FLUSH:XH,Z_FINISH:qH,Z_OK:rf,Z_STREAM_END:ZH,Z_DEFAULT_COMPRESSION:JH,Z_DEFAULT_STRATEGY:QH,Z_DEFLATED:eW}=bs;function mu(e){this.options=Bf.assign({level:JH,method:eW,chunkSize:16384,windowBits:15,memLevel:8,strategy:QH},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 gC,this.strm.avail_out=0;let n=ol.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==rf)throw new Error(Qa[n]);if(t.header&&ol.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=Gl.string2buf(t.dictionary):vC.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=ol.deflateSetDictionary(this.strm,r),n!==rf)throw new Error(Qa[n]);this._dict_set=!0}}mu.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let i,l;if(this.ended)return!1;for(t===~~t?l=t:l=t===!0?qH:YH,typeof e=="string"?n.input=Gl.string2buf(e):vC.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),(l===KH||l===XH)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=ol.deflate(n,l),i===ZH)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=ol.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===rf;if(n.avail_out===0){this.onData(n.output);continue}if(l>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};mu.prototype.onData=function(e){this.chunks.push(e)};mu.prototype.onEnd=function(e){e===rf&&(this.result=Bf.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function ug(e,t){const n=new mu(t);if(n.push(e,!0),n.err)throw n.msg||Qa[n.err];return n.result}function tW(e,t){return t=t||{},t.raw=!0,ug(e,t)}function nW(e,t){return t=t||{},t.gzip=!0,ug(e,t)}var rW=mu,iW=ug,aW=tW,oW=nW,sW=bs,lW={Deflate:rW,deflate:iW,deflateRaw:aW,gzip:oW,constants:sW};const Wu=16209,uW=16191;var cW=function(t,n){let r,i,l,m,o,a,c,d,u,f,s,h,g,p,v,y,b,w,S,C,T,k,A,P;const z=t.state;r=t.next_in,A=t.input,i=r+(t.avail_in-5),l=t.next_out,P=t.output,m=l-(n-t.avail_out),o=l+(t.avail_out-257),a=z.dmax,c=z.wsize,d=z.whave,u=z.wnext,f=z.window,s=z.hold,h=z.bits,g=z.lencode,p=z.distcode,v=(1<<z.lenbits)-1,y=(1<<z.distbits)-1;e:do{h<15&&(s+=A[r++]<<h,h+=8,s+=A[r++]<<h,h+=8),b=g[s&v];t:for(;;){if(w=b>>>24,s>>>=w,h-=w,w=b>>>16&255,w===0)P[l++]=b&65535;else if(w&16){S=b&65535,w&=15,w&&(h<w&&(s+=A[r++]<<h,h+=8),S+=s&(1<<w)-1,s>>>=w,h-=w),h<15&&(s+=A[r++]<<h,h+=8,s+=A[r++]<<h,h+=8),b=p[s&y];n:for(;;){if(w=b>>>24,s>>>=w,h-=w,w=b>>>16&255,w&16){if(C=b&65535,w&=15,h<w&&(s+=A[r++]<<h,h+=8,h<w&&(s+=A[r++]<<h,h+=8)),C+=s&(1<<w)-1,C>a){t.msg="invalid distance too far back",z.mode=Wu;break e}if(s>>>=w,h-=w,w=l-m,C>w){if(w=C-w,w>d&&z.sane){t.msg="invalid distance too far back",z.mode=Wu;break e}if(T=0,k=f,u===0){if(T+=c-w,w<S){S-=w;do P[l++]=f[T++];while(--w);T=l-C,k=P}}else if(u<w){if(T+=c+u-w,w-=u,w<S){S-=w;do P[l++]=f[T++];while(--w);if(T=0,u<S){w=u,S-=w;do P[l++]=f[T++];while(--w);T=l-C,k=P}}}else if(T+=u-w,w<S){S-=w;do P[l++]=f[T++];while(--w);T=l-C,k=P}for(;S>2;)P[l++]=k[T++],P[l++]=k[T++],P[l++]=k[T++],S-=3;S&&(P[l++]=k[T++],S>1&&(P[l++]=k[T++]))}else{T=l-C;do P[l++]=P[T++],P[l++]=P[T++],P[l++]=P[T++],S-=3;while(S>2);S&&(P[l++]=P[T++],S>1&&(P[l++]=P[T++]))}}else if((w&64)===0){b=p[(b&65535)+(s&(1<<w)-1)];continue n}else{t.msg="invalid distance code",z.mode=Wu;break e}break}}else if((w&64)===0){b=g[(b&65535)+(s&(1<<w)-1)];continue t}else if(w&32){z.mode=uW;break e}else{t.msg="invalid literal/length code",z.mode=Wu;break e}break}}while(r<i&&l<o);S=h>>3,r-=S,h-=S<<3,s&=(1<<h)-1,t.next_in=r,t.next_out=l,t.avail_in=r<i?5+(i-r):5-(r-i),t.avail_out=l<o?257+(o-l):257-(l-o),z.hold=s,z.bits=h};const To=15,rb=852,ib=592,ab=0,Vd=1,ob=2,fW=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]),dW=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]),hW=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]),pW=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]),mW=(e,t,n,r,i,l,m,o)=>{const a=o.bits;let c=0,d=0,u=0,f=0,s=0,h=0,g=0,p=0,v=0,y=0,b,w,S,C,T,k=null,A;const P=new Uint16Array(To+1),z=new Uint16Array(To+1);let I=null,$,O,Y;for(c=0;c<=To;c++)P[c]=0;for(d=0;d<r;d++)P[t[n+d]]++;for(s=a,f=To;f>=1&&P[f]===0;f--);if(s>f&&(s=f),f===0)return i[l++]=1<<24|64<<16|0,i[l++]=1<<24|64<<16|0,o.bits=1,0;for(u=1;u<f&&P[u]===0;u++);for(s<u&&(s=u),p=1,c=1;c<=To;c++)if(p<<=1,p-=P[c],p<0)return-1;if(p>0&&(e===ab||f!==1))return-1;for(z[1]=0,c=1;c<To;c++)z[c+1]=z[c]+P[c];for(d=0;d<r;d++)t[n+d]!==0&&(m[z[t[n+d]]++]=d);if(e===ab?(k=I=m,A=20):e===Vd?(k=fW,I=dW,A=257):(k=hW,I=pW,A=0),y=0,d=0,c=u,T=l,h=s,g=0,S=-1,v=1<<s,C=v-1,e===Vd&&v>rb||e===ob&&v>ib)return 1;for(;;){$=c-g,m[d]+1<A?(O=0,Y=m[d]):m[d]>=A?(O=I[m[d]-A],Y=k[m[d]-A]):(O=32+64,Y=0),b=1<<c-g,w=1<<h,u=w;do w-=b,i[T+(y>>g)+w]=$<<24|O<<16|Y|0;while(w!==0);for(b=1<<c-1;y&b;)b>>=1;if(b!==0?(y&=b-1,y+=b):y=0,d++,--P[c]===0){if(c===f)break;c=t[n+m[d]]}if(c>s&&(y&C)!==S){for(g===0&&(g=s),T+=u,h=c-g,p=1<<h;h+g<f&&(p-=P[h+g],!(p<=0));)h++,p<<=1;if(v+=1<<h,e===Vd&&v>rb||e===ob&&v>ib)return 1;S=y&C,i[S]=s<<24|h<<16|T-l|0}}return y!==0&&(i[T+y]=c-g<<24|64<<16|0),o.bits=s,0};var sl=mW;const gW=0,yC=1,bC=2,{Z_FINISH:sb,Z_BLOCK:vW,Z_TREES:Gu,Z_OK:to,Z_STREAM_END:yW,Z_NEED_DICT:bW,Z_STREAM_ERROR:vr,Z_DATA_ERROR:_C,Z_MEM_ERROR:wC,Z_BUF_ERROR:_W,Z_DEFLATED:lb}=bs,$f=16180,ub=16181,cb=16182,fb=16183,db=16184,hb=16185,pb=16186,mb=16187,gb=16188,vb=16189,af=16190,ai=16191,Ud=16192,yb=16193,Hd=16194,bb=16195,_b=16196,wb=16197,Sb=16198,Yu=16199,Ku=16200,Cb=16201,xb=16202,Tb=16203,kb=16204,Eb=16205,Wd=16206,Ob=16207,Ab=16208,jt=16209,SC=16210,CC=16211,wW=852,SW=592,CW=15,xW=CW,Pb=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function TW(){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 fo=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<$f||t.mode>CC?1:0},xC=e=>{if(fo(e))return vr;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=$f,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(wW),t.distcode=t.distdyn=new Int32Array(SW),t.sane=1,t.back=-1,to},TC=e=>{if(fo(e))return vr;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,xC(e)},kC=(e,t)=>{let n;if(fo(e))return vr;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?vr:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,TC(e))},EC=(e,t)=>{if(!e)return vr;const n=new TW;e.state=n,n.strm=e,n.window=null,n.mode=$f;const r=kC(e,t);return r!==to&&(e.state=null),r},kW=e=>EC(e,xW);let Ib=!0,Gd,Yd;const EW=e=>{if(Ib){Gd=new Int32Array(512),Yd=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(sl(yC,e.lens,0,288,Gd,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;sl(bC,e.lens,0,32,Yd,0,e.work,{bits:5}),Ib=!1}e.lencode=Gd,e.lenbits=9,e.distcode=Yd,e.distbits=5},OC=(e,t,n,r)=>{let i;const l=e.state;return l.window===null&&(l.wsize=1<<l.wbits,l.wnext=0,l.whave=0,l.window=new Uint8Array(l.wsize)),r>=l.wsize?(l.window.set(t.subarray(n-l.wsize,n),0),l.wnext=0,l.whave=l.wsize):(i=l.wsize-l.wnext,i>r&&(i=r),l.window.set(t.subarray(n-r,n-r+i),l.wnext),r-=i,r?(l.window.set(t.subarray(n-r,n),0),l.wnext=r,l.whave=l.wsize):(l.wnext+=i,l.wnext===l.wsize&&(l.wnext=0),l.whave<l.wsize&&(l.whave+=i))),0},OW=(e,t)=>{let n,r,i,l,m,o,a,c,d,u,f,s,h,g,p=0,v,y,b,w,S,C,T,k;const A=new Uint8Array(4);let P,z;const I=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(fo(e)||!e.output||!e.input&&e.avail_in!==0)return vr;n=e.state,n.mode===ai&&(n.mode=Ud),m=e.next_out,i=e.output,a=e.avail_out,l=e.next_in,r=e.input,o=e.avail_in,c=n.hold,d=n.bits,u=o,f=a,k=to;e:for(;;)switch(n.mode){case $f:if(n.wrap===0){n.mode=Ud;break}for(;d<16;){if(o===0)break e;o--,c+=r[l++]<<d,d+=8}if(n.wrap&2&&c===35615){n.wbits===0&&(n.wbits=15),n.check=0,A[0]=c&255,A[1]=c>>>8&255,n.check=sn(n.check,A,2,0),c=0,d=0,n.mode=ub;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((c&255)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=jt;break}if((c&15)!==lb){e.msg="unknown compression method",n.mode=jt;break}if(c>>>=4,d-=4,T=(c&15)+8,n.wbits===0&&(n.wbits=T),T>15||T>n.wbits){e.msg="invalid window size",n.mode=jt;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=c&512?vb:ai,c=0,d=0;break;case ub:for(;d<16;){if(o===0)break e;o--,c+=r[l++]<<d,d+=8}if(n.flags=c,(n.flags&255)!==lb){e.msg="unknown compression method",n.mode=jt;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=jt;break}n.head&&(n.head.text=c>>8&1),n.flags&512&&n.wrap&4&&(A[0]=c&255,A[1]=c>>>8&255,n.check=sn(n.check,A,2,0)),c=0,d=0,n.mode=cb;case cb:for(;d<32;){if(o===0)break e;o--,c+=r[l++]<<d,d+=8}n.head&&(n.head.time=c),n.flags&512&&n.wrap&4&&(A[0]=c&255,A[1]=c>>>8&255,A[2]=c>>>16&255,A[3]=c>>>24&255,n.check=sn(n.check,A,4,0)),c=0,d=0,n.mode=fb;case fb:for(;d<16;){if(o===0)break e;o--,c+=r[l++]<<d,d+=8}n.head&&(n.head.xflags=c&255,n.head.os=c>>8),n.flags&512&&n.wrap&4&&(A[0]=c&255,A[1]=c>>>8&255,n.check=sn(n.check,A,2,0)),c=0,d=0,n.mode=db;case db:if(n.flags&1024){for(;d<16;){if(o===0)break e;o--,c+=r[l++]<<d,d+=8}n.length=c,n.head&&(n.head.extra_len=c),n.flags&512&&n.wrap&4&&(A[0]=c&255,A[1]=c>>>8&255,n.check=sn(n.check,A,2,0)),c=0,d=0}else n.head&&(n.head.extra=null);n.mode=hb;case hb: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(l,l+s),T)),n.flags&512&&n.wrap&4&&(n.check=sn(n.check,r,s,l)),o-=s,l+=s,n.length-=s),n.length))break e;n.length=0,n.mode=pb;case pb:if(n.flags&2048){if(o===0)break e;s=0;do T=r[l+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=sn(n.check,r,s,l)),o-=s,l+=s,T)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=mb;case mb:if(n.flags&4096){if(o===0)break e;s=0;do T=r[l+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=sn(n.check,r,s,l)),o-=s,l+=s,T)break e}else n.head&&(n.head.comment=null);n.mode=gb;case gb:if(n.flags&512){for(;d<16;){if(o===0)break e;o--,c+=r[l++]<<d,d+=8}if(n.wrap&4&&c!==(n.check&65535)){e.msg="header crc mismatch",n.mode=jt;break}c=0,d=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=ai;break;case vb:for(;d<32;){if(o===0)break e;o--,c+=r[l++]<<d,d+=8}e.adler=n.check=Pb(c),c=0,d=0,n.mode=af;case af:if(n.havedict===0)return e.next_out=m,e.avail_out=a,e.next_in=l,e.avail_in=o,n.hold=c,n.bits=d,bW;e.adler=n.check=1,n.mode=ai;case ai:if(t===vW||t===Gu)break e;case Ud:if(n.last){c>>>=d&7,d-=d&7,n.mode=Wd;break}for(;d<3;){if(o===0)break e;o--,c+=r[l++]<<d,d+=8}switch(n.last=c&1,c>>>=1,d-=1,c&3){case 0:n.mode=yb;break;case 1:if(EW(n),n.mode=Yu,t===Gu){c>>>=2,d-=2;break e}break;case 2:n.mode=_b;break;case 3:e.msg="invalid block type",n.mode=jt}c>>>=2,d-=2;break;case yb:for(c>>>=d&7,d-=d&7;d<32;){if(o===0)break e;o--,c+=r[l++]<<d,d+=8}if((c&65535)!==(c>>>16^65535)){e.msg="invalid stored block lengths",n.mode=jt;break}if(n.length=c&65535,c=0,d=0,n.mode=Hd,t===Gu)break e;case Hd:n.mode=bb;case bb:if(s=n.length,s){if(s>o&&(s=o),s>a&&(s=a),s===0)break e;i.set(r.subarray(l,l+s),m),o-=s,l+=s,a-=s,m+=s,n.length-=s;break}n.mode=ai;break;case _b:for(;d<14;){if(o===0)break e;o--,c+=r[l++]<<d,d+=8}if(n.nlen=(c&31)+257,c>>>=5,d-=5,n.ndist=(c&31)+1,c>>>=5,d-=5,n.ncode=(c&15)+4,c>>>=4,d-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=jt;break}n.have=0,n.mode=wb;case wb:for(;n.have<n.ncode;){for(;d<3;){if(o===0)break e;o--,c+=r[l++]<<d,d+=8}n.lens[I[n.have++]]=c&7,c>>>=3,d-=3}for(;n.have<19;)n.lens[I[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,P={bits:n.lenbits},k=sl(gW,n.lens,0,19,n.lencode,0,n.work,P),n.lenbits=P.bits,k){e.msg="invalid code lengths set",n.mode=jt;break}n.have=0,n.mode=Sb;case Sb:for(;n.have<n.nlen+n.ndist;){for(;p=n.lencode[c&(1<<n.lenbits)-1],v=p>>>24,y=p>>>16&255,b=p&65535,!(v<=d);){if(o===0)break e;o--,c+=r[l++]<<d,d+=8}if(b<16)c>>>=v,d-=v,n.lens[n.have++]=b;else{if(b===16){for(z=v+2;d<z;){if(o===0)break e;o--,c+=r[l++]<<d,d+=8}if(c>>>=v,d-=v,n.have===0){e.msg="invalid bit length repeat",n.mode=jt;break}T=n.lens[n.have-1],s=3+(c&3),c>>>=2,d-=2}else if(b===17){for(z=v+3;d<z;){if(o===0)break e;o--,c+=r[l++]<<d,d+=8}c>>>=v,d-=v,T=0,s=3+(c&7),c>>>=3,d-=3}else{for(z=v+7;d<z;){if(o===0)break e;o--,c+=r[l++]<<d,d+=8}c>>>=v,d-=v,T=0,s=11+(c&127),c>>>=7,d-=7}if(n.have+s>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=jt;break}for(;s--;)n.lens[n.have++]=T}}if(n.mode===jt)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=jt;break}if(n.lenbits=9,P={bits:n.lenbits},k=sl(yC,n.lens,0,n.nlen,n.lencode,0,n.work,P),n.lenbits=P.bits,k){e.msg="invalid literal/lengths set",n.mode=jt;break}if(n.distbits=6,n.distcode=n.distdyn,P={bits:n.distbits},k=sl(bC,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,P),n.distbits=P.bits,k){e.msg="invalid distances set",n.mode=jt;break}if(n.mode=Yu,t===Gu)break e;case Yu:n.mode=Ku;case Ku:if(o>=6&&a>=258){e.next_out=m,e.avail_out=a,e.next_in=l,e.avail_in=o,n.hold=c,n.bits=d,cW(e,f),m=e.next_out,i=e.output,a=e.avail_out,l=e.next_in,r=e.input,o=e.avail_in,c=n.hold,d=n.bits,n.mode===ai&&(n.back=-1);break}for(n.back=0;p=n.lencode[c&(1<<n.lenbits)-1],v=p>>>24,y=p>>>16&255,b=p&65535,!(v<=d);){if(o===0)break e;o--,c+=r[l++]<<d,d+=8}if(y&&(y&240)===0){for(w=v,S=y,C=b;p=n.lencode[C+((c&(1<<w+S)-1)>>w)],v=p>>>24,y=p>>>16&255,b=p&65535,!(w+v<=d);){if(o===0)break e;o--,c+=r[l++]<<d,d+=8}c>>>=w,d-=w,n.back+=w}if(c>>>=v,d-=v,n.back+=v,n.length=b,y===0){n.mode=Eb;break}if(y&32){n.back=-1,n.mode=ai;break}if(y&64){e.msg="invalid literal/length code",n.mode=jt;break}n.extra=y&15,n.mode=Cb;case Cb:if(n.extra){for(z=n.extra;d<z;){if(o===0)break e;o--,c+=r[l++]<<d,d+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,d-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=xb;case xb:for(;p=n.distcode[c&(1<<n.distbits)-1],v=p>>>24,y=p>>>16&255,b=p&65535,!(v<=d);){if(o===0)break e;o--,c+=r[l++]<<d,d+=8}if((y&240)===0){for(w=v,S=y,C=b;p=n.distcode[C+((c&(1<<w+S)-1)>>w)],v=p>>>24,y=p>>>16&255,b=p&65535,!(w+v<=d);){if(o===0)break e;o--,c+=r[l++]<<d,d+=8}c>>>=w,d-=w,n.back+=w}if(c>>>=v,d-=v,n.back+=v,y&64){e.msg="invalid distance code",n.mode=jt;break}n.offset=b,n.extra=y&15,n.mode=Tb;case Tb:if(n.extra){for(z=n.extra;d<z;){if(o===0)break e;o--,c+=r[l++]<<d,d+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,d-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=jt;break}n.mode=kb;case kb: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=jt;break}s>n.wnext?(s-=n.wnext,h=n.wsize-s):h=n.wnext-s,s>n.length&&(s=n.length),g=n.window}else g=i,h=m-n.offset,s=n.length;s>a&&(s=a),a-=s,n.length-=s;do i[m++]=g[h++];while(--s);n.length===0&&(n.mode=Ku);break;case Eb:if(a===0)break e;i[m++]=n.length,a--,n.mode=Ku;break;case Wd:if(n.wrap){for(;d<32;){if(o===0)break e;o--,c|=r[l++]<<d,d+=8}if(f-=a,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?sn(n.check,i,f,m-f):Hl(n.check,i,f,m-f)),f=a,n.wrap&4&&(n.flags?c:Pb(c))!==n.check){e.msg="incorrect data check",n.mode=jt;break}c=0,d=0}n.mode=Ob;case Ob:if(n.wrap&&n.flags){for(;d<32;){if(o===0)break e;o--,c+=r[l++]<<d,d+=8}if(n.wrap&4&&c!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=jt;break}c=0,d=0}n.mode=Ab;case Ab:k=yW;break e;case jt:k=_C;break e;case SC:return wC;case CC:default:return vr}return e.next_out=m,e.avail_out=a,e.next_in=l,e.avail_in=o,n.hold=c,n.bits=d,(n.wsize||f!==e.avail_out&&n.mode<jt&&(n.mode<Wd||t!==sb))&&OC(e,e.output,e.next_out,f-e.avail_out),u-=e.avail_in,f-=e.avail_out,e.total_in+=u,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?sn(n.check,i,f,e.next_out-f):Hl(n.check,i,f,e.next_out-f)),e.data_type=n.bits+(n.last?64:0)+(n.mode===ai?128:0)+(n.mode===Yu||n.mode===Hd?256:0),(u===0&&f===0||t===sb)&&k===to&&(k=_W),k},AW=e=>{if(fo(e))return vr;let t=e.state;return t.window&&(t.window=null),e.state=null,to},PW=(e,t)=>{if(fo(e))return vr;const n=e.state;return(n.wrap&2)===0?vr:(n.head=t,t.done=!1,to)},IW=(e,t)=>{const n=t.length;let r,i,l;return fo(e)||(r=e.state,r.wrap!==0&&r.mode!==af)?vr:r.mode===af&&(i=1,i=Hl(i,t,n,0),i!==r.check)?_C:(l=OC(e,t,n,n),l?(r.mode=SC,wC):(r.havedict=1,to))};var MW=TC,LW=kC,RW=xC,DW=kW,FW=EC,BW=OW,$W=AW,NW=PW,zW=IW,jW="pako inflate (from Nodeca project)",fi={inflateReset:MW,inflateReset2:LW,inflateResetKeep:RW,inflateInit:DW,inflateInit2:FW,inflate:BW,inflateEnd:$W,inflateGetHeader:NW,inflateSetDictionary:zW,inflateInfo:jW};function VW(){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 UW=VW;const AC=Object.prototype.toString,{Z_NO_FLUSH:HW,Z_FINISH:WW,Z_OK:Yl,Z_STREAM_END:Kd,Z_NEED_DICT:Xd,Z_STREAM_ERROR:GW,Z_DATA_ERROR:Mb,Z_MEM_ERROR:YW}=bs;function gu(e){this.options=Bf.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 gC,this.strm.avail_out=0;let n=fi.inflateInit2(this.strm,t.windowBits);if(n!==Yl)throw new Error(Qa[n]);if(this.header=new UW,fi.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Gl.string2buf(t.dictionary):AC.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=fi.inflateSetDictionary(this.strm,t.dictionary),n!==Yl)))throw new Error(Qa[n])}gu.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let l,m,o;if(this.ended)return!1;for(t===~~t?m=t:m=t===!0?WW:HW,AC.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),l=fi.inflate(n,m),l===Xd&&i&&(l=fi.inflateSetDictionary(n,i),l===Yl?l=fi.inflate(n,m):l===Mb&&(l=Xd));n.avail_in>0&&l===Kd&&n.state.wrap>0&&e[n.next_in]!==0;)fi.inflateReset(n),l=fi.inflate(n,m);switch(l){case GW:case Mb:case Xd:case YW:return this.onEnd(l),this.ended=!0,!1}if(o=n.avail_out,n.next_out&&(n.avail_out===0||l===Kd))if(this.options.to==="string"){let a=Gl.utf8border(n.output,n.next_out),c=n.next_out-a,d=Gl.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(d)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(l===Yl&&o===0)){if(l===Kd)return l=fi.inflateEnd(this.strm),this.onEnd(l),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};gu.prototype.onData=function(e){this.chunks.push(e)};gu.prototype.onEnd=function(e){e===Yl&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Bf.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function cg(e,t){const n=new gu(t);if(n.push(e),n.err)throw n.msg||Qa[n.err];return n.result}function KW(e,t){return t=t||{},t.raw=!0,cg(e,t)}var XW=gu,qW=cg,ZW=KW,JW=cg,QW=bs,eG={Inflate:XW,inflate:qW,inflateRaw:ZW,ungzip:JW,constants:QW};const{Deflate:UY,deflate:HY,deflateRaw:tG,gzip:WY}=lW,{Inflate:GY,inflate:YY,inflateRaw:nG,ungzip:KY}=eG;var rG=tG,iG=nG;function Lb(e){const t=new Map;for(const n of e){const[r,i]=n.split("="),l=decodeURIComponent(i);t.set(r,l)}return t}const aG=function(){if(!window.location.search.includes("?"))return;const t=window.location.search.replace("?","").split("&");let n=Lb(t);if(console.log("URL params:",n),n.get("share")){const l=iG(new Uint8Array(atob(n.get("share")).split("").map(m=>m.charCodeAt(0))),{to:"string"});if(!l){Yt().raiseError("Error when trying to decode share parameter!",!1);return}n=Lb(l.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),fps:Number(n.get("fps")||16),scheduler:n.get("scheduler")||"default"};nn().generateText2Img(r,!1)},oG=10,sG=!1;function bp(e,t,n,r,i=l=>Yt().raiseError(l,!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 l=Object.entries(t.errors).map(m=>`${m[0]} - ${m[1]}`).join(" | ");return i(`${r}: ${t.message} (${l})`)}function Ta(e,t){const n=e.trim().replace(/\/+$/,""),r=t.startsWith("/")?t:`/${t}`;return n.length===0?r:`${n}${r}`}const lG=ls("interrogate",()=>{const e=ie({}),t=ie(!1);async function n(m){Yt().raiseError(m,!1),t.value=!1,e.value={}}async function r(){const m=Rt(),{source_image:o}=e.value;if(!o)return n("Failed to get interrogation ID: No image supplied.");t.value=!0;const a=await fetch(Ta(m.baseURL,"/sdapi/v1/interrogate"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({image:o.split(",")[1],model:"clip"})}),c=await a.json();!bp(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 l(){return e.value.status||!1}return{currentInterrogation:e,interrogating:t,interrogateImage:r,getFormStatus:l,resetInterrogation:i}}),uG={key:0,style:{"margin-top":"16px"}},cG={key:1,style:{"margin-top":"16px"}},fG={key:2},dG={style:{"margin-top":"8px"}},hG={key:0},pG={key:0},mG={key:1},gG=be({__name:"InterrogationView",setup(e){const t=lG(),n=nn(),r=Yt(),i=ie();async function l(c){if(i.value.clearFiles(),!c.raw.type.includes("image")){r.raiseError("Uploaded file needs to be a image!",!1);return}const d=await Nl(c.raw);t.currentInterrogation.source_image=d,t.interrogateImage()}function m(){n.generateText2Img({prompt:o.value})}const o=ee(()=>t.getFormStatus()),{ellipsis:a}=jS();return(c,d)=>_(t).currentInterrogation.source_image?_(t).currentInterrogation.status?(N(),se("div",fG,[ne("div",dG,[oe(_(Ze),{icon:_(mh),onClick:_(t).resetInterrogation},{default:ue(()=>[...d[1]||(d[1]=[Ne("New Interrogation",-1)])]),_:1},8,["icon","onClick"]),o.value?(N(),ve(_(Ze),{key:0,icon:_(mh),onClick:m,disabled:!o.value},{default:ue(()=>[...d[2]||(d[2]=[Ne("Text2Img (Caption)",-1)])]),_:1},8,["icon","disabled"])):ge("",!0)]),d[4]||(d[4]=ne("h2",{style:{margin:"16px 0 8px 0"}},"Interrogation Results",-1)),oe(_(zo),{src:_(t).currentInterrogation.source_image,alt:"Uploaded Image"},null,8,["src"]),o.value?(N(),se("div",hG,[d[3]||(d[3]=ne("h3",null,"Caption",-1)),o.value?(N(),se("div",mG,[ne("strong",null,Ee(o.value),1)])):(N(),se("div",pG,"Processing"+Ee(_(a)),1))])):ge("",!0)])):(N(),se("div",cG,[ne("strong",null,"Uploading image"+Ee(_(a)),1)])):(N(),se("div",uG,[ne("div",null,[oe(_(Lm),{onChange:l,"auto-upload":!1,limit:1,class:"interrogation-upload",ref_key:"upload",ref:i,multiple:"",drag:""},{default:ue(()=>[oe(_(De),{size:100},{default:ue(()=>[oe(_(Zp))]),_:1}),d[0]||(d[0]=ne("div",null,[Ne("Drop file here OR "),ne("em",null,"click to upload")],-1))]),_:1},512)])]))}}),vG=on(gG,[["__scopeId","data-v-db184ac6"]]);function yG(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),l=Math.floor(e%86400%3600/60),m=Math.floor(e%86400%3600%60),o=r>0?r+(t?"d":"days"):"",a=i>0?i+(t?"h":"hours"):"",c=l>0?l+(t?"m":"minutes"):"",d=m>0?m+(t?"s":"seconds"):"",u=[];return n!=null&&n.days&&u.push(o),n!=null&&n.hours&&u.push(a),n!=null&&n.minutes&&u.push(c),n!=null&&n.seconds&&u.push(d),u.join(" ")}function _p(e){const t=[];let n=0;for(let r=0;r<e.length;r++){if(e[r]!=="{")continue;r>n&&t.push({type:"literal",text:e.slice(n,r),start:n,end:r});const i=e.indexOf("}",r+1);if(i===-1){t.push({type:"literal",text:e.slice(r),start:r,end:e.length}),n=e.length;break}t.push({type:"expansion",options:e.slice(r+1,i).split("|"),start:r,end:i+1}),n=i+1,r=i}return n<e.length&&t.push({type:"literal",text:e.slice(n),start:n,end:e.length}),t}function bG(e){return e.reduce((t,n)=>{const r=n.type==="literal"?[n.text]:n.options;return t.flatMap(i=>r.map(l=>[...i,l]))},[[]]).map(t=>t.join(""))}function Rb(e){const t=[],n=/<lora:([^:>]+):([^>]+)>/g;return[e.replace(n,(i,l,m)=>{if(m.trim()==="")return"";const o=Number(m);if(isNaN(o))return"";let a=l,c=!1;const d="|high_noise|";return a.startsWith(d)&&(a=a.substring(d.length),c=!0),t.push({name:a,multiplier:o,...c?{is_high_noise:!0}:{}}),""}),t]}function Db(e,t){const n=e.indexOf(" ### "),r=n===-1?e:e.slice(0,n),i=n===-1?"":e.slice(n),l=/<lora:([^:>]+):([^>]+)>/g,m="|high_noise|",o=[];for(const c of t)if(c.type==="literal"){if(c.start>=r.length)break;for(const d of c.text.matchAll(l)){const u=d.index;if(u===void 0)continue;const f=c.start+u;if(f>=r.length||d[2].trim()==="")continue;const s=Number(d[2]);if(isNaN(s))continue;const h=d[1];h.startsWith(m)||h.trim()!==""&&o.push({name:h,multiplier:s,start:f,end:Math.min(f+d[0].length,r.length)})}}if(o.length===0)return[e,[]];let a=r;for(let c=o.length-1;c>=0;c--)a=a.slice(0,o[c].start)+a.slice(o[c].end);return[a.replace(/ +/g," ").trim()+i,o.map(c=>({name:c.name,multiplier:c.multiplier}))]}function _G(e,t){const n=e.map(i=>({...i}));let r=n.length;for(;r>0&&n[r-1].lora===""&&n[r-1].multiplier===0;)r--;return t.forEach((i,l)=>{const m=r+l;m<n.length?n[m]={lora:i.lora,multiplier:i.multiplier}:n.push({lora:i.lora,multiplier:i.multiplier})}),n}const wG={class:"form"},SG={key:0,style:{"padding-bottom":"50px"}},CG={class:"sidebar"},xG={class:"reference-images-header"},TG={class:"reference-images-actions"},kG={key:0,class:"reference-image-list"},EG={class:"reference-image-index"},OG=["title"],AG={class:"reference-image-controls"},PG={key:1,class:"reference-image-empty"},IG={key:12,class:"video-frame-selectors"},MG={class:"video-frame-selector"},LG={key:1,class:"reference-image-thumb video-frame-thumb-empty"},RG=["title"],DG={class:"video-frame-actions"},FG={class:"video-frame-selector"},BG={key:1,class:"reference-image-thumb video-frame-thumb-empty"},$G=["title"],NG={class:"video-frame-actions"},zG={class:"lora-list-summary"},jG={key:0,class:"lora-list-hint"},VG={class:"lora-list-add"},UG={class:"main"},HG={class:"image center-horizontal"},WG={key:0},GG=be({__name:"GenerateView",setup(e){const n=dm(fm).smallerOrEqual("md"),r=nn(),i=Yt(),l=il(),m=f0(async()=>{const J=r.cacheVersion,V=(await r.getAvailableSamplers()).map(M=>M.name);return V.length===0?[]:C(V)},[]),o=f0(async()=>{const J=r.cacheVersion,V=(await r.getAvailableSchedulers()).map(M=>M.name);return V.length===0?[]:T(V)},[]),a=ie(""),c=ie([]),d=ie(!1),u=ie(!1);function f(){d.value||u.value||(u.value=!0,r.fetchLoras().then(J=>{J!==null&&(c.value=J,d.value=!0)}).finally(()=>{u.value=!1}))}function s(){c.value=[],d.value=!1}const h=ee(()=>r.loraList.filter(J=>{const E=Number(J.multiplier);return J.lora&&J.lora.trim()!==""&&!isNaN(E)&&E!==0}).length);Te(()=>a.value!==""||h.value>0,J=>{J&&f()},{immediate:!0}),Te(()=>r.cacheVersion,()=>{s(),(a.value!==""||h.value>0)&&f()});const g=ee(()=>{const J=h.value,E=c.value.length;return J===0?d.value?`${E} available`:"":d.value?`${J} enabled, ${E} available`:`${J} enabled`}),p=J=>!!J.lora&&J.lora.trim()!=="",v=ee(()=>r.loraList.filter(p).length);function y(){const J=r.loraList.filter(p);if(J.length===0)return;const E=J.map(V=>{const M=c.value.find(D=>D.path===V.lora||D.name===V.lora),R=Number(V.multiplier),W=isNaN(R)?0:Math.round(R*1e4)/1e4;return`<lora:${M?M.name:V.lora}:${W}>`});r.loraList=r.loraList.filter(V=>!p(V)),r.prompt=r.prompt===""?E.join(" "):`${r.prompt} ${E.join(" ")}`}const b=ee(()=>Db(r.prompt,_p(r.prompt))[1].length);function w(){const[J,E]=Db(r.prompt,_p(r.prompt));if(E.length===0)return;const V=E.map(M=>{const R=c.value.find(W=>W.path===M.name||W.name===M.name);return{lora:R?R.path:M.name,multiplier:M.multiplier}});r.loraList=_G(r.loraList,V),r.prompt=J}const S=Tt({prompt:[{required:!0,message:"Please input prompt",trigger:"change"}]});function C(J){return!r.params||!r.params.sampler_name||J.indexOf(r.params.sampler_name)===-1&&(r.params.sampler_name=J[0]),J}function T(J){return!r.params||!r.params.scheduler||J.indexOf(r.params.scheduler)===-1&&(r.params.scheduler=J[0]),J}function k(J){return"Elapsed: "+yG(J,!0,{days:!0,hours:!0,minutes:!0,seconds:!0})}function A(){r.validGeneratorTypes.includes(r.generatorType)||(i.showGeneratorBadge=!1)}function P(J){r.generatorType=J,A(),console.log(J)}function z(){l.showCropPreview=!0,l.updateCropPreview()}function I(){var J;(J=document.getElementById("extra_image_input"))==null||J.click()}function $(){var J;(J=document.getElementById("video_start_frame_input"))==null||J.click()}function O(){var J;(J=document.getElementById("video_end_frame_input"))==null||J.click()}function Y(J){var E;return(E=J.dataUrl)==null?void 0:E.startsWith("data:image")}function ae(){return r.referenceImages.filter(Y).map(J=>J.dataUrl)}function q(J){return r.referenceImages.slice(0,J).filter(Y).length}return A(),aG(),(J,E)=>(N(),se($e,null,[oe(_(R2),{"default-active":_(r).generatorType,collapse:!0,onSelect:P,mode:_(n)?"horizontal":"vertical",class:ce(_(n)?"mobile-generator-types":"generator-types"),style:ze(_(n)?"overflow-x: auto":"")},{default:ue(()=>[oe(Uu,{index:"Text2Img","icon-one":_(JE),"icon-two":_(xu),isMobile:_(n)},null,8,["icon-one","icon-two","isMobile"]),oe(Uu,{index:"Img2Img","icon-one":_(xu),"icon-two":_(xu),isMobile:_(n)},null,8,["icon-one","icon-two","isMobile"]),oe(Uu,{index:"Inpainting","icon-one":zS,"icon-two":_(xu),isMobile:_(n)},null,8,["icon-two","isMobile"]),oe(Uu,{index:"Interrogation","icon-one":v7,isMobile:_(n)},null,8,["isMobile"])]),_:1},8,["default-active","mode","class","style"]),ne("div",wG,[_(r).generatorType==="Interrogation"?(N(),se("div",SG,[E[39]||(E[39]=ne("h1",{style:{margin:"0"}},"Interrogation",-1)),E[40]||(E[40]=ne("div",null,"Interrogate images to get their predicted descriptions.",-1)),oe(vG)])):(N(),ve(_(Em),{key:1,"label-position":"left","label-width":"140px",model:_(r),class:"container",rules:S,onSubmit:E[38]||(E[38]=Qe(()=>{},["prevent"]))},{default:ue(()=>{var V,M,R,W;return[ne("div",CG,[oe(B7),oe(up,{label:"Negative Prompt",prop:"negativePrompt",modelValue:_(r).negativePrompt,"onUpdate:modelValue":E[0]||(E[0]=D=>_(r).negativePrompt=D),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.","label-position":"top"},null,8,["modelValue"]),oe(up,{label:"Seed",prop:"seed",modelValue:_(r).params.seed,"onUpdate:modelValue":E[2]||(E[2]=D=>_(r).params.seed=D),placeholder:"Enter seed here",clearable:"","clear-icon":_(XE)},{append:ue(()=>[oe(_(fn),{content:"Randomize!",placement:"top"},{default:ue(()=>[oe(_(Ze),{icon:_(bO),onClick:E[1]||(E[1]=()=>_(r).params.seed=_(PC)())},null,8,["icon"])]),_:1})]),_:1},8,["modelValue","clear-icon"]),(N(),ve(_(vy),{key:0,gutter:10},{default:ue(()=>[_(r).multiSelect.sampler.state==="Multiple"?(N(),ve(_(_o),{key:0,span:_(n)?24:12},{default:ue(()=>[oe(Mo,{label:"Sampler(s)",prop:"samplers",modelValue:_(r).multiSelect.sampler.selected,"onUpdate:modelValue":E[3]||(E[3]=D=>_(r).multiSelect.sampler.selected=D),options:_(m),info:"Multi-select enabled. Heun and DPM2 double generation time per step, but converge twice as fast.",multiple:""},null,8,["modelValue","options"])]),_:1},8,["span"])):ge("",!0),_(r).multiSelect.sampler.state==="Enabled"?(N(),ve(_(_o),{key:1,span:_(n)?24:12},{default:ue(()=>[oe(Mo,{label:"Sampler",prop:"sampler",modelValue:_(r).params.sampler_name,"onUpdate:modelValue":E[4]||(E[4]=D=>_(r).params.sampler_name=D),options:_(m),info:"Heun and DPM2 double generation time per step, but converge twice as fast."},null,8,["modelValue","options"])]),_:1},8,["span"])):ge("",!0),_(r).multiSelect.scheduler.state==="Multiple"?(N(),ve(_(_o),{key:2,span:_(n)?24:12},{default:ue(()=>[oe(Mo,{label:"Scheduler(s)",prop:"schedulers",modelValue:_(r).multiSelect.scheduler.selected,"onUpdate:modelValue":E[5]||(E[5]=D=>_(r).multiSelect.scheduler.selected=D),options:_(o),info:"Multi-select enabled. Experimental! KoboldCpp only, allows you to use a different scheduler. Leave as default otherwise.",multiple:""},null,8,["modelValue","options"])]),_:1},8,["span"])):ge("",!0),_(r).multiSelect.scheduler.state==="Enabled"?(N(),ve(_(_o),{key:3,span:_(n)?24:12},{default:ue(()=>[oe(Mo,{label:"Scheduler",prop:"scheduler",modelValue:_(r).params.scheduler,"onUpdate:modelValue":E[6]||(E[6]=D=>_(r).params.scheduler=D),options:_(o),info:"Experimental! KoboldCpp only, allows you to use a different scheduler. Leave as default otherwise."},null,8,["modelValue","options"])]),_:1},8,["span"])):ge("",!0)]),_:1})),oe(bn,{label:"Batch Size",prop:"batchSize",modelValue:_(r).params.n,"onUpdate:modelValue":E[7]||(E[7]=D=>_(r).params.n=D),min:_(r).minImages,max:_(r).maxImages},null,8,["modelValue","min","max"]),_(r).multiSelect.steps.state==="Multiple"?(N(),ve(bn,{key:1,label:"Steps(s)",prop:"multiSteps",modelValue:_(r).multiSelect.steps.selected,"onUpdate:modelValue":E[8]||(E[8]=D=>_(r).multiSelect.steps.selected=D),min:_(r).minSteps,max:_(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"])):_(r).multiSelect.steps.state==="Enabled"?(N(),ve(bn,{key:2,label:"Steps",prop:"steps",modelValue:_(r).params.steps,"onUpdate:modelValue":E[9]||(E[9]=D=>_(r).params.steps=D),min:_(r).minSteps,max:_(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"])):ge("",!0),oe(bn,{label:"Width",prop:"width",modelValue:_(r).params.width,"onUpdate:modelValue":E[10]||(E[10]=D=>_(r).params.width=D),min:_(r).minDimensions,max:_(r).maxDimensions,step:64,change:z},null,8,["modelValue","min","max"]),oe(bn,{label:"Height",prop:"height",modelValue:_(r).params.height,"onUpdate:modelValue":E[11]||(E[11]=D=>_(r).params.height=D),min:_(r).minDimensions,max:_(r).maxDimensions,step:64,change:z},null,8,["modelValue","min","max"]),_(r).multiSelect.guidance.state==="Multiple"?(N(),ve(bn,{key:3,label:"Guidance(s)",prop:"cfgScales",modelValue:_(r).multiSelect.guidance.selected,"onUpdate:modelValue":E[12]||(E[12]=D=>_(r).multiSelect.guidance.selected=D),min:_(r).minCfgScale,max:_(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"])):_(r).multiSelect.guidance.state==="Enabled"?(N(),ve(bn,{key:4,label:"Guidance (CFG)",prop:"cfgScale",modelValue:_(r).params.cfg_scale,"onUpdate:modelValue":E[13]||(E[13]=D=>_(r).params.cfg_scale=D),min:_(r).minCfgScale,max:_(r).maxCfgScale,step:.5,info:"Classifier Free Guidance (CFG Scale). Higher values will make the AI respect your prompt more. Lower values allow the AI to be more creative."},null,8,["modelValue","min","max"])):ge("",!0),_(r).multiSelect.eta.state==="Enabled"?(N(),ve(bn,{key:5,label:"Eta",prop:"eta",modelValue:_(r).params.eta,"onUpdate:modelValue":E[14]||(E[14]=D=>_(r).params.eta=D),min:_(r).minEta,max:_(r).maxEta,step:.1,info:"Noise multiplier for ancestral samplers. 0 disables noise injection."},null,8,["modelValue","min","max"])):ge("",!0),_(r).multiSelect.flowShift.state==="Enabled"?(N(),ve(bn,{key:6,label:"Flow Shift",prop:"flowShift",modelValue:_(r).params.flow_shift,"onUpdate:modelValue":E[15]||(E[15]=D=>_(r).params.flow_shift=D),min:_(r).minFlowShift,max:_(r).maxFlowShift,step:.5,info:"Override shift value for flow models."},null,8,["modelValue","min","max"])):ge("",!0),_(r).multiSelect.clipSkip.state==="Multiple"?(N(),ve(bn,{key:7,label:"CLIP Skip(s)",prop:"clipSkips",modelValue:_(r).multiSelect.clipSkip.selected,"onUpdate:modelValue":E[16]||(E[16]=D=>_(r).multiSelect.clipSkip.selected=D),min:_(r).minClipSkip,max:_(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"])):_(r).multiSelect.clipSkip.state==="Enabled"?(N(),ve(bn,{key:8,label:"CLIP Skip",prop:"clipSkip",modelValue:_(r).params.clip_skip,"onUpdate:modelValue":E[17]||(E[17]=D=>_(r).params.clip_skip=D),min:_(r).minClipSkip,max:_(r).maxClipSkip,info:"Last layers of CLIP to ignore. For most situations this can be left alone."},null,8,["modelValue","min","max"])):ge("",!0),_(r).sourceGeneratorTypes.includes(_(r).generatorType)?(N(),ve(bn,{key:9,label:"Init Strength",prop:"denoise",modelValue:_(r).params.denoising_strength,"onUpdate:modelValue":E[18]||(E[18]=D=>_(r).params.denoising_strength=D),min:_(r).minDenoise,max:_(r).maxDenoise,step:.01,info:"The final image will diverge from the starting image at higher values. 0=unchanged, 1=fullychanged"},null,8,["modelValue","min","max"])):ge("",!0),oe(bn,{label:"Video Frames",prop:"frames",modelValue:_(r).params.frames,"onUpdate:modelValue":E[19]||(E[19]=D=>_(r).params.frames=D),min:_(r).minFrames,max:_(r).maxFrames,info:"Number of consecutive video frames to generate (Video models only). More frames increases memory usage."},null,8,["modelValue","min","max"]),_(r).params.frames>1?(N(),ve(bn,{key:10,label:"FPS",prop:"fps",modelValue:_(r).params.fps,"onUpdate:modelValue":E[20]||(E[20]=D=>_(r).params.fps=D),min:_(r).minFps,max:_(r).maxFps,disabled:_(r).params.frames<=1,info:"Frames per second for video generation."},null,8,["modelValue","min","max","disabled"])):ge("",!0),_(r).generatorType==="Text2Img"?(N(),se("div",{key:11,class:"reference-images",onDragover:E[23]||(E[23]=Qe(()=>{},["prevent"])),onDrop:E[24]||(E[24]=Qe(D=>_(r).setExtraImage(D),["prevent"]))},[ne("div",xG,[E[43]||(E[43]=ne("span",{class:"reference-images-label"},"Reference Media",-1)),ne("div",TG,[ne("input",{class:"reference-images-input",type:"file",id:"extra_image_input",onChange:E[21]||(E[21]=D=>_(r).setExtraImage(D)),accept:"image/*,audio/*",multiple:""},null,32),oe(_(Ze),{onClick:I},{default:ue(()=>[...E[41]||(E[41]=[Ne(" Select or Drag Files ",-1)])]),_:1}),oe(_(Ze),{onClick:E[22]||(E[22]=D=>_(r).clearExtraImage()),disabled:_(r).referenceImages.length===0},{default:ue(()=>[...E[42]||(E[42]=[Ne(" Clear Files ",-1)])]),_:1},8,["disabled"])])]),_(r).referenceImages.length>0?(N(),se("div",kG,[(N(!0),se($e,null,$t(_(r).referenceImages,(D,B)=>(N(),se("div",{class:ce(["reference-image-item",{"reference-file-item":!Y(D)}]),key:D.id},[ne("span",EG,Ee(B+1),1),Y(D)?(N(),ve(_(zo),{key:0,class:"reference-image-thumb",src:D.dataUrl,fit:"cover","preview-src-list":ae(),"initial-index":q(B),"preview-teleported":""},null,8,["src","preview-src-list","initial-index"])):ge("",!0),ne("span",{class:"reference-image-name",title:D.name},Ee(D.name),9,OG),ne("div",AG,[oe(_(fn),{content:"Move up",placement:"top"},{default:ue(()=>[oe(_(Ze),{class:"small-btn",icon:_(ph),disabled:B===0,onClick:Z=>_(r).moveExtraImage(B,-1)},null,8,["icon","disabled","onClick"])]),_:2},1024),oe(_(fn),{content:"Move down",placement:"top"},{default:ue(()=>[oe(_(Ze),{class:"small-btn",icon:_(Yo),disabled:B===_(r).referenceImages.length-1,onClick:Z=>_(r).moveExtraImage(B,1)},null,8,["icon","disabled","onClick"])]),_:2},1024),oe(_(fn),{content:"Remove",placement:"top"},{default:ue(()=>[oe(_(Ze),{class:"small-btn",type:"danger",icon:_(Yi),plain:"",onClick:Z=>_(r).removeExtraImage(B)},null,8,["icon","onClick"])]),_:2},1024)])],2))),128))])):(N(),se("div",PG," No reference images selected. "))],32)):ge("",!0),_(r).generatorType==="Text2Img"&&_(r).params.frames>1?(N(),se("div",IG,[ne("div",MG,[ne("input",{class:"reference-images-input",type:"file",id:"video_start_frame_input",onChange:E[25]||(E[25]=D=>_(r).setVideoStartFrame(D)),accept:"image/*"},null,32),E[45]||(E[45]=ne("span",{class:"video-frame-label"},"Video Start Frame",-1)),_(r).videoStartFrame?(N(),ve(_(zo),{key:0,class:"reference-image-thumb",src:_(r).videoStartFrame.dataUrl,fit:"cover","preview-teleported":""},null,8,["src"])):(N(),se("div",LG)),ne("span",{class:"video-frame-name",title:((V=_(r).videoStartFrame)==null?void 0:V.name)||"No image selected"},Ee(((M=_(r).videoStartFrame)==null?void 0:M.name)||"No image selected"),9,RG),ne("div",DG,[oe(_(Ze),{onClick:$},{default:ue(()=>[...E[44]||(E[44]=[Ne(" Select Image ",-1)])]),_:1}),oe(_(fn),{content:"Remove",placement:"top"},{default:ue(()=>[oe(_(Ze),{class:"small-btn",type:"danger",icon:_(Yi),plain:"",disabled:!_(r).videoStartFrame,onClick:E[26]||(E[26]=D=>_(r).clearVideoStartFrame())},null,8,["icon","disabled"])]),_:1})])]),ne("div",FG,[ne("input",{class:"reference-images-input",type:"file",id:"video_end_frame_input",onChange:E[27]||(E[27]=D=>_(r).setVideoEndFrame(D)),accept:"image/*"},null,32),E[47]||(E[47]=ne("span",{class:"video-frame-label"},"Video End Frame",-1)),_(r).videoEndFrame?(N(),ve(_(zo),{key:0,class:"reference-image-thumb",src:_(r).videoEndFrame.dataUrl,fit:"cover","preview-teleported":""},null,8,["src"])):(N(),se("div",BG)),ne("span",{class:"video-frame-name",title:((R=_(r).videoEndFrame)==null?void 0:R.name)||"No image selected"},Ee(((W=_(r).videoEndFrame)==null?void 0:W.name)||"No image selected"),9,$G),ne("div",NG,[oe(_(Ze),{onClick:O},{default:ue(()=>[...E[46]||(E[46]=[Ne(" Select Image ",-1)])]),_:1}),oe(_(fn),{content:"Remove",placement:"top"},{default:ue(()=>[oe(_(Ze),{class:"small-btn",type:"danger",icon:_(Yi),plain:"",disabled:!_(r).videoEndFrame,onClick:E[28]||(E[28]=D=>_(r).clearVideoEndFrame())},null,8,["icon","disabled"])]),_:1})])])])):ge("",!0),oe(_(vy),null,{default:ue(()=>[oe(_(_o),{span:_(n)?24:12},{default:ue(()=>[oe(Hy,{label:"ESRGAN Upscale",prop:"enable_hr",modelValue:_(r).params.enable_hr,"onUpdate:modelValue":E[29]||(E[29]=D=>_(r).params.enable_hr=D),info:"Enable upscale with ESRGAN."},null,8,["modelValue"])]),_:1},8,["span"]),oe(_(_o),{span:_(n)?24:12},{default:ue(()=>[_(r).generatorType==="Img2Img"?(N(),ve(Hy,{key:0,label:"Send as RefImg",prop:"send_as_refimg",modelValue:_(r).params.send_as_refimg,"onUpdate:modelValue":E[30]||(E[30]=D=>_(r).params.send_as_refimg=D),info:"Instead of regular Img2Img, send the image as a reference image for edit models."},null,8,["modelValue"])):ge("",!0)]),_:1},8,["span"])]),_:1}),oe(_(oD),{modelValue:a.value,"onUpdate:modelValue":E[32]||(E[32]=D=>a.value=D),class:"lora-list-collapse"},{default:ue(()=>[oe(_(sD),{name:"lora-list"},{title:ue(()=>[E[48]||(E[48]=ne("span",{class:"lora-list-title"},"LoRAs",-1)),ne("span",zG,Ee(g.value),1)]),default:ue(()=>[d.value&&c.value.length===0?(N(),se("div",jG," No LoRAs were returned by the server. ")):ge("",!0),(N(!0),se($e,null,$t(_(r).loraList,(D,B)=>(N(),se("div",{key:B,class:"lora-list-row"},[oe(_(Im),{modelValue:D.lora,"onUpdate:modelValue":Z=>D.lora=Z,class:"lora-list-select",filterable:"",placeholder:"Select a LoRA"},{default:ue(()=>[oe(_(Hc),{value:""}),(N(!0),se($e,null,$t(c.value,Z=>(N(),ve(_(Hc),{key:Z.path,label:Z.name,value:Z.path},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue"]),oe(_(Uc),{modelValue:D.multiplier,"onUpdate:modelValue":Z=>D.multiplier=Z,step:.05,precision:2,"controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"]),oe(_(fn),{content:"Remove",placement:"top"},{default:ue(()=>[oe(_(Ze),{icon:_(Yi),plain:"",onClick:Z=>_(r).removeLoraRow(B)},null,8,["icon","onClick"])]),_:2},1024)]))),128)),ne("div",VG,[oe(_(Ze),{icon:_(bf),onClick:E[31]||(E[31]=D=>_(r).addLoraRow()),disabled:c.value.length===0},{default:ue(()=>[...E[49]||(E[49]=[Ne(" Add LoRA ",-1)])]),_:1},8,["icon","disabled"]),oe(_(Ze),{icon:_(ph),onClick:y,disabled:v.value===0},{default:ue(()=>[...E[50]||(E[50]=[Ne(" To Prompt ",-1)])]),_:1},8,["icon","disabled"]),oe(_(Ze),{icon:_(Yo),onClick:w,disabled:b.value===0},{default:ue(()=>[...E[51]||(E[51]=[Ne(" From Prompt ",-1)])]),_:1},8,["icon","disabled"])])]),_:1})]),_:1},8,["modelValue"])]),ne("div",UG,[oe(_(Ze),{onClick:E[33]||(E[33]=()=>{_(r).cancelled=!0,_(r).generating=!1,_(r).resetStore()}),class:"reset-btn"},{default:ue(()=>[...E[52]||(E[52]=[Ne("Reset",-1)])]),_:1}),oe(_(Ze),{type:"primary",class:"generate-cancel-btn",style:ze(_(r).generating?"width: 55%;":""),onClick:E[34]||(E[34]=()=>_(r).generateImage(_(r).generatorType))},{default:ue(()=>[ne("span",null," Generate "+Ee(_(r).totalImageCount)+" image"+Ee(_(r).totalImageCount===1?"":"s"),1)]),_:1},8,["style"]),_(r).generating?(N(),ve(_(Ze),{key:0,type:"danger",class:"generate-cancel-btn",style:{width:"25%"},disabled:_(r).cancelled,onClick:E[35]||(E[35]=()=>{var D;(D=_(r).abortController)==null||D.abort(),_(r).cancelled=!0,_(r).generating=!1,_(r).clearQueue(),_(r).clearLastImageGenkey(),_(r).stopProgressPolling()})},{default:ue(()=>[...E[53]||(E[53]=[Ne("Cancel all",-1)])]),_:1},8,["disabled"])):ge("",!0)]),ne("div",HG,[oe(_(lR),{class:"center-both generated-image"},{default:ue(()=>{var D,B,Z,H,Q;return[!_(r).generating&&_(r).outputs.length==0?(N(),se("div",WG,[/Inpainting/.test(_(r).generatorType)?(N(),ve(Gy,{key:0})):ge("",!0),/Img2Img/.test(_(r).generatorType)?(N(),ve(Gy,{key:1})):ge("",!0)])):ge("",!0),!_(i).showGeneratedImages&&_(r).generating?(N(),ve(A7,{key:1,generated:_(r).outputs.length,total:_(r).queue.length,elapsed:k(_(r).timer.seconds),"progress-percentage":(D=_(r).progressInfo)==null?void 0:D.percentage,"text-info":(B=_(r).progressInfo)==null?void 0:B.textInfo,"current-step":(Z=_(r).progressInfo)==null?void 0:Z.currentStep,"total-steps":(H=_(r).progressInfo)==null?void 0:H.totalSteps,"preview-image":(Q=_(r).progressInfo)==null?void 0:Q.previewImage,generating:_(r).generating,onShowGenerated:E[36]||(E[36]=te=>_(i).showGeneratedImages=!0)},null,8,["generated","total","elapsed","progress-percentage","text-info","current-step","total-steps","preview-image","generating"])):ge("",!0),_(i).showGeneratedImages&&_(r).outputs.length!==0?(N(),ve(W7,{key:2})):ge("",!0)]}),_:1}),_(r).lastImageRecoveryAvailable?(N(),ve(_(o$),{key:0,class:"last-image-recovery",href:_(r).lastImageRecoveryUrl,target:"_blank",type:"primary",onClick:E[37]||(E[37]=Qe(D=>_(r).openLastImageRecovery(),["prevent"]))},{default:ue(()=>[...E[54]||(E[54]=[Ne(" Recover last generated image ",-1)])]),_:1},8,["href"])):ge("",!0)])]}),_:1},8,["model","rules"]))])],64))}}),ll=DE({history:fE("/"),routes:[{path:"/",name:"generate",component:GG},{path:"/images",name:"images",component:()=>Ld(()=>Promise.resolve().then(()=>EY),void 0)},{path:"/about",name:"about",component:()=>Ld(()=>Promise.resolve().then(()=>DY),void 0)},{path:"/options",name:"options",component:()=>Ld(()=>Promise.resolve().then(()=>$Y),void 0)},{path:"/return",name:"return",redirect:e=>(window.location.href=window.location.pathname.endsWith("/")?"..":".","/")}]});function Xu(){return{steps:20,n:1,sampler_name:"Euler",width:512,height:512,cfg_scale:5,eta:1,flow_shift:0,clip_skip:0,seed:-1,denoising_strength:.6,frames:1,fps:16,enable_hr:!1,send_as_refimg:!0,scheduler:"default"}}function PC(){return Math.floor(Math.random()*9999999)+1}function YG(){return Math.floor(Math.random()*9e5+1e5).toString()}const nn=ls("generator",()=>{const e=["Text2Img","Img2Img","Inpainting"],t=["Img2Img","Inpainting"],n=ie("Text2Img"),r=ie(""),i=un("promptHistory",[]),l=ie(""),m=un("negativeLibrary",[]),o=ie(Xu()),a=ie({interval:0,seconds:0}),c=ie(null),d=ie(0),u=ie({sampler:{name:"Sampler",state:"Enabled",allowedStates:["Disabled","Enabled","Multiple"],selected:[o.value.sampler_name],mapToParam:we=>we.sampler_name},scheduler:{name:"Scheduler",state:"Enabled",allowedStates:["Disabled","Enabled","Multiple"],selected:[o.value.scheduler],mapToParam:we=>we.scheduler},steps:{name:"Steps",state:"Enabled",allowedStates:["Disabled","Enabled","Multiple"],selected:[o.value.steps],mapToParam:we=>we.steps},guidance:{name:"CFG Scale",state:"Enabled",allowedStates:["Disabled","Enabled","Multiple"],selected:[o.value.cfg_scale],mapToParam:we=>we.cfg_scale},clipSkip:{name:"Clip Skip",state:"Disabled",allowedStates:["Disabled","Enabled","Multiple"],selected:[o.value.clip_skip],mapToParam:we=>we.clip_skip},eta:{name:"Eta",state:"Disabled",allowedStates:["Disabled","Enabled"],selected:[o.value.eta],mapToParam:we=>we.eta},flowShift:{name:"Flow Shift",state:"Disabled",allowedStates:["Disabled","Enabled"],selected:[o.value.flow_shift],mapToParam:we=>we.flow_shift}}),f=()=>({sourceProcessing:void 0,sourceImage:void 0,maskImage:void 0}),s=ie({...f(),sourceProcessing:"inpainting"}),h=ie({...f(),sourceProcessing:"img2img"}),g=we=>we==="Inpainting"?s.value:we==="Img2Img"?h.value:f(),p=ee(()=>g(n.value)),v=ie(""),y=ie(!1),b=ie(!1),w=ie([]),S=ie(null),C=ie([]),T=un("lastImageGenkey",""),k=ee(()=>T.value?Ta(Rt().baseURL,`/sdapi/v1/get_last.png?genkey=${encodeURIComponent(T.value)}`):""),A=ee(()=>k.value!==""&&!y.value);function P(){T.value=""}function z(){!k.value||(window.open(k.value,"_blank","noopener"),P())}const I=ie(64),$=ee(()=>Rt().allowLargerParams==="Enabled"?3072:1024),O=ie(1),Y=ie(20),ae=ie(1),q=ee(()=>Rt().allowLargerParams==="Enabled"?150:50),J=ie(1),E=ie(24),V=ie(0),M=ie(1),R=ie(0),W=ie(20),D=ie(0),B=ie(1),Z=ie(0),H=ie(10),Q=ie(1),te=ee(()=>Rt().allowLargerParams==="Enabled"?400:200),fe=ie(16),me=ee(()=>Rt().allowLargerParams==="Enabled"?32:24),_e=(we,je,He)=>Array.from({length:(je-we+1)/He},(et,ot)=>(ot+we)*He),j=ie(_e(Z.value,H.value,1)),x=ie(_e(J.value,E.value,.5)),U=ee(()=>{const we=(Dn,tn,Ii=1)=>Dn*(tn.state==="Multiple"&&tn.selected.length>0?tn.selected.length:Ii),He=o.value.n*Oe().length,et=we(He,u.value.sampler),ot=we(et,u.value.scheduler),Je=we(ot,u.value.steps),It=we(Je,u.value.guidance);return we(It,u.value.clipSkip)});function K(){return o.value=Xu(),s.value=f(),h.value=f(),ho.value=null,po.value=null,w.value=[],kn.value=[],Yt().showGeneratedImages=!1,L(),P(),!0}function L(){C.value=[]}function F(){w.value=[]}async function X(){const we=await Ut("/sdapi/v1/loras");return Array.isArray(we)?we:null}async function de(we){var yg,bg;if(!e.includes(we))return[];if(r.value==="")return G("Failed to generate: No prompt submitted.");const je=il(),He=Yt();je.saveImages();const{sourceImage:et,maskImage:ot,sourceProcessing:Je}=g(we);yn(r.value);const It=[],Dn=Oe().map(We=>{const pt=We.split(" ### ");return{prompt:pt[0],negative_prompt:pt[1]||""}}).map(We=>{const[pt,Xt]=Rb(We.prompt);return{...We,prompt:pt,extractedLoras:Xt}}),tn=Dn.some(We=>We.extractedLoras.length>0)||kn.value.some(We=>We.lora&&We.lora.trim()!=="")?(yg=await X())!=null?yg:[]:[],Ii=kn.value.filter(We=>We.lora&&We.lora.trim()!=="").flatMap(We=>{const pt=tn.find(Bn=>Bn.name===We.lora||Bn.path===We.lora),Xt=Number(We.multiplier);return[{name:pt?pt.name:We.lora,multiplier:isNaN(Xt)?0:Xt,allowUnresolved:!1}]}),Fn=We=>{const pt=new Map;for(const Xt of We){if(!Xt.name||Xt.name.trim()==="")continue;const Bn=`${Xt.name}\0${Xt.is_high_noise?1:0}`,sr=pt.get(Bn);sr?(sr.multiplier=Math.round((sr.multiplier+Xt.multiplier)*1e4)/1e4,sr.allowUnresolved=sr.allowUnresolved||Xt.allowUnresolved):pt.set(Bn,{...Xt})}return[...pt.values()]},ga=Dn.map(({extractedLoras:We,...pt})=>{const Xt=Fn([...We.map(Ht=>({name:Ht.name,multiplier:Ht.multiplier,...Ht.is_high_noise?{is_high_noise:!0}:{},allowUnresolved:!0})),...Ii]),Bn=Xt.flatMap(Ht=>{if(Ht.multiplier===0)return[];const yu=tn.find(wg=>wg.name===Ht.name||wg.path===Ht.name),_g=yu?yu.path:Ht.allowUnresolved?Ht.name:"";return _g?[{path:_g,multiplier:Ht.multiplier,...Ht.is_high_noise?{is_high_noise:!0}:{}}]:[]}),sr=Xt.map(Ht=>`<lora:${Ht.is_high_noise?"|high_noise|":""}${Ht.name}:${String(Math.round(Ht.multiplier*1e4)/1e4)}>`),va=[sr.length>0?pt.prompt.replace(/ +/g," ").trim():pt.prompt,sr.join(" ")].filter(Ht=>Ht!=="").join(" "),go=pt.negative_prompt!==""?`${va} ### ${pt.negative_prompt}`:va;return{...pt,full_prompt:go,...Bn.length>0?{lora:Bn}:{}}}),{seed:vu,cfg_scale:or,eta:hg,steps:ei,clip_skip:WC,flow_shift:pg,sampler_name:GC,scheduler:YC,n:KC,...mg}=o.value,Vf=parseInt(vu.toString()),XC=isNaN(Vf)||Vf<0?PC():Vf,qC=Array.from({length:KC},(We,pt)=>XC+pt),mo=(We,pt)=>We.state==="Disabled"?[]:We.state==="Enabled"?[pt]:We.state==="Multiple"&&We.selected.length===0?[]:We.selected,ZC={promptVariant:ga,seed:qC,cfg_scale:mo(u.value.guidance,or),eta:mo(u.value.eta,hg),steps:mo(u.value.steps,ei),clip_skip:mo(u.value.clipSkip,WC),sampler_name:mo(u.value.sampler,GC),scheduler:mo(u.value.scheduler,YC)},JC=(We=>Object.entries(We).filter(([Xt,Bn])=>Bn.length>0).reduce((Xt,[Bn,sr])=>{const zt=[];for(const va of Xt)for(const go of sr)zt.push({...va,[Bn]:go});return zt},[{}]))(ZC),QC=[await Ce()];for(const We of JC){const{promptVariant:{full_prompt:pt,...Xt},...Bn}=We,sr=we==="Img2Img"?mg.send_as_refimg:!1,zt={prompt:pt,params:{...mg,send_as_refimg:sr,...Bn,...Xt,init_images:et?[et.split(",")[1]]:[],mask:ot,inpainting_mask_invert:ot?0:null,inpainting_fill:ot?1:null},source_image:et==null?void 0:et.split(",")[1],source_mask:ot,source_processing:Je,models:QC};zt.params.sampler_name=="default"&&delete zt.params.sampler_name,zt.params.scheduler=="default"&&delete zt.params.scheduler,!zt.params.frames||zt.params.frames<=1?(delete zt.params.frames,delete zt.params.fps):zt.params.fps=Math.min(me.value,Math.max(fe.value,Math.round(Number(zt.params.fps)||Xu().fps)));const va=we==="Text2Img",go=va?Dr.value.map(yu=>yu.base64):[];go.length>0&&(zt.params.extra_images=go),va&&zt.params.frames&&zt.params.frames>1&&(ho.value&&(zt.params.video_start_frame=ho.value.base64),po.value&&(zt.params.video_end_frame=po.value.base64)),Rt().alsoRequestAvi==="Enabled"&&zt.params.frames&&zt.params.frames>1&&(zt.params.video_output_type=2);const Ht={};u.value.flowShift.state==="Enabled"&&pg>0&&(Ht.params={flow_shift:pg}),Rt().keepImageGenOnDisconnect==="Enabled"&&(Ht.keep_image_gen_on_disconnect=!0),Object.keys(Ht).length>0&&(zt.params.kcpp_extra_args=Ht),It.push(zt)}let gg=!1;y.value||(gg=!0,w.value=[]),y.value=!0,He.showGeneratedImages=!1;let vg=C.value.filter(We=>!We.gathered&&!We.failed).length;for(let We=0;We<It.length;We++)vg<oG&&(C.value.push({...It[We],jobId:"",index:We,gathered:!1,failed:!1}),++vg);if(!!gg){for(S.value=new AbortController,b.value=!1,a.value.interval&&(clearInterval(a.value.interval),a.value.interval=0,a.value.seconds=0),a.value.interval=setInterval(()=>{a.value.seconds++},1e3),HC();!C.value.every(We=>We.gathered||We.failed)&&!b.value;){const We=C.value.find(pt=>!pt.gathered&&!pt.failed);if(!We)break;We.gathered=!0;try{const pt=await Le(We.params,(bg=S.value)==null?void 0:bg.signal);if(!pt){We.failed=!0;continue}le([{...pt,...We}])}catch(pt){We.failed=!0,console.error("Error fetching image:",pt)}}C.value.some(We=>We.failed)&&C.value.every(We=>We.gathered||We.failed)&&(y.value=!1,clearInterval(a.value.interval),a.value.interval=0,a.value.seconds=0,jf(),C.value=[])}}async function le(we){const je=Ja();console.log(we);const He=await Promise.all(we.map(async Je=>{var ga,vu;const It=Je.images[0],Dn=!!Je.animated?"gif":"png",tn=Je.extra_data?`data:video/avi;base64,${Je.extra_data}`:"",Ii=Je.final_frame?`data:image/jpeg;base64,${Je.final_frame}`:"",Fn={id:-1,image:`data:image/${Dn};base64,${It}`,prompt:Je.prompt,modelName:Je.models[0],frames:Je.params.frames,fps:Je.params.fps,extra_avi:tn,final_frame:Ii,enable_hr:Je.params.enable_hr,send_as_refimg:Je.params.send_as_refimg,flow_shift:(vu=(ga=Je.params.kcpp_extra_args)==null?void 0:ga.params)==null?void 0:vu.flow_shift,lora_meta:""};if(Je.info&&typeof Je.info=="string"&&Je.info.trim()!=="")try{const or=JSON.parse(Je.info);["seed","steps","sampler_name","cfg_scale","eta","width","height","clip_skip","fps"].forEach(ei=>{or[ei]!=null&&or[ei]!=null?Fn[ei]=or[ei]:Je.params[ei]!=null&&(Fn[ei]=Je.params[ei])}),or.extra_generation_params&&or.extra_generation_params["Schedule type"]?Fn.scheduler=or.extra_generation_params["Schedule type"]:Fn.scheduler=Je.params.scheduler,or.lora_meta&&(Fn.lora_meta=or.lora_meta)}catch(or){console.warn("Failed to parse info JSON:",or)}return Fn})),et=await je.pushOutputs(He),ot=0;return w.value=[...et.map(Je=>({type:"image",index:ot,output:Je})),...w.value].sort((Je,It)=>Je.index-It.index),w.value.length===C.value.length&&(C.value=[],y.value=!1,Yt().showGeneratedImages=!0,P(),clearInterval(a.value.interval),a.value.interval=0,a.value.seconds=0,jf()),He}async function G(we){const je=Yt();return we&&je.raiseError(we,!1),[]}function pe(we,je,He,et){return je<=He?je:(Yt().raiseWarning(`This image was generated using the 'Larger Values' option. Setting '${we}' to its default value instead of ${je}.`,!0),et)}async function re(we,je=!0){var et;const He=Xu();if(n.value="Text2Img",u.value.guidance.state="Enabled",u.value.sampler.state="Enabled",u.value.steps.state="Enabled",u.value.clipSkip.state="Disabled",u.value.scheduler.state="Enabled",ll.push("/"),je&&(we.width=we.width||He.width,we.height=we.height||He.height),we.prompt){const ot=we.prompt.split(" ### ");r.value=ot[0],l.value=ot[1]||"";const[,Je]=Rb(r.value);if(Je.length>0){const It=(et=await X())!=null?et:[];kn.value=kn.value.filter(en=>!en.lora||en.lora.trim()===""?!0:!Je.some(Dn=>Dn.name===en.lora||It.some(tn=>tn.name===Dn.name&&tn.path===en.lora)))}}if(we.sampler_name){o.value.sampler_name=we.sampler_name;const Je=(await it()).find(It=>It.aliases&&It.aliases.includes(we.sampler_name));Je&&(o.value.sampler_name=Je.name)}we.steps&&(o.value.steps=pe("steps",we.steps,q.value,He.steps)),we.cfg_scale&&(o.value.cfg_scale=we.cfg_scale),(we.eta||we.eta===0)&&(o.value.eta=we.eta),(we.flow_shift||we.flow_shift===0)&&(o.value.flow_shift=we.flow_shift,u.value.flowShift.state=we.flow_shift>0?"Enabled":"Disabled"),we.width&&(o.value.width=pe("width",we.width,$.value,He.width)),we.height&&(o.value.height=pe("height",we.height,$.value,He.height)),we.seed&&(o.value.seed=we.seed),we.clip_skip&&(o.value.clip_skip=pe("clip_skip",we.clip_skip,H.value,He.clip_skip)),we.scheduler&&(o.value.scheduler=we.scheduler),we.frames&&(o.value.frames=pe("frames",we.frames,te.value,He.frames)),we.fps&&(o.value.fps=Math.min(me.value,Math.max(fe.value,Math.round(pe("fps",we.fps,me.value,He.fps)))))}function he(we){const je=il();n.value="Img2Img",h.value.sourceImage=we,je.drawing=!1,w.value=[],ll.push("/"),cr.fabric.Image.fromURL(we,je.newImage)}function Se(we){const je=il();w.value=[],s.value.sourceImage=we,n.value="Inpainting",ll.push("/"),cr.fabric.Image.fromURL(we,je.newImage)}function xe(){return l.value===""?r.value:`${r.value} ### ${l.value}`}function Oe(){const we=xe();return bG(_p(we))}async function Le(we,je){const He=Rt();try{const et=YG();T.value=et;const ot={...we,genkey:et},Je=await fetch(Ta(He.baseURL,`/sdapi/v1/${we.init_images.length>0?"img":"txt"}2img`),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(ot),signal:je}),It=await Je.json();return bp(Je,It,200,"Failed to fetch",ye)?It:!1}catch{return!1}}function ye(we){return Yt().raiseError(we,!1),b.value=!1,w.value=[],!1}async function Ce(){const we=Rt(),je=await fetch(Ta(we.baseURL,"/sdapi/v1/sd-models")),He=await je.json();if(!!bp(je,He,200,"Failed to get available models"))return He.length===0?"(No model loaded)":He[0].model_name}const Me=ie(0),Ie=new Map;function ht(){Ie.clear(),Me.value++}Te(()=>Rt().baseURL,()=>{ht()});async function Ut(we){const je=Rt(),He=Ta(je.baseURL,we);if(Ie.has(He))return Ie.get(He);const et=(async()=>{try{const ot=await fetch(He);if(ot.ok)return await ot.json();console.error(`API Error: ${ot.status} ${ot.statusText} at ${He}`)}catch(ot){console.error(`Fetch error for ${He}:`,ot)}return Ie.delete(He),null})();return Ie.set(He,et),et}async function it(){const we=await Ut("/sdapi/v1/samplers");return Array.isArray(we)?we:[]}async function Ft(){const we=await Ut("/sdapi/v1/schedulers");return Array.isArray(we)?we:[]}function Qt(we){m.value.indexOf(we)===-1&&(m.value=[...m.value,we])}function _r(we){m.value=m.value.filter(je=>je!=we)}function yn(we){if(i.value.findIndex(je=>je.prompt===we)===-1){if(i.value.length>=10+i.value.filter(je=>je.starred).length){const je=i.value.filter(et=>!et.starred),He=i.value.findIndex(et=>et===je[je.length-1]);i.value.splice(He,1)}i.value=[...i.value,{starred:!1,timestamp:Date.now(),prompt:we}]}}function ar(we){i.value=i.value.filter(je=>je.prompt!=we&&je!=we)}function ma(){return!1}const kn=ie([]);function MC(){kn.value=[...kn.value,{lora:"",multiplier:0}]}function LC(we){kn.value=kn.value.filter((je,He)=>He!==we)}const Dr=ie([]),ho=ie(null),po=ie(null);async function dg(we){var Je,It;const He=(It=we.target.files)!=null?It:(Je=we.dataTransfer)==null?void 0:Je.files,et=Array.from(He!=null?He:[])[0];if(!et)return null;const ot=await Nl(et);return{id:`${Date.now()}-${et.name}`,name:et.name,size:et.size,dataUrl:ot,base64:ot.includes("data:image")?ot.split(",")[1]:ot}}async function RC(we){ho.value=await dg(we);const je=we.target;je.value!==void 0&&(je.value="")}async function DC(we){po.value=await dg(we);const je=we.target;je.value!==void 0&&(je.value="")}function FC(){ho.value=null;const we=document.getElementById("video_start_frame_input");we&&(we.value="")}function BC(){po.value=null;const we=document.getElementById("video_end_frame_input");we&&(we.value="")}async function $C(we){var Je,It;const je=we.target,He=(It=je.files)!=null?It:(Je=we.dataTransfer)==null?void 0:Je.files,et=Array.from(He!=null?He:[]);if(et.length===0)return;const ot=await Promise.all(et.map(async(en,Dn)=>{const tn=await Nl(en);return{id:`${Date.now()}-${Dn}-${en.name}`,name:en.name,size:en.size,dataUrl:tn,base64:tn.includes("data:image")?tn.split(",")[1]:tn}}));Dr.value||(Dr.value=[]);for(let en=0;en<ot.length;++en)Dr.value.push(ot[en]);je.value!==void 0&&(je.value="")}function NC(we){Dr.value.splice(we,1)}function zC(we,je){const He=we+je;if(He<0||He>=Dr.value.length)return;const et=[...Dr.value],[ot]=et.splice(we,1);et.splice(He,0,ot),Dr.value=et}function jC(){Dr.value=[];const we=document.getElementById("extra_image_input");we&&(we.value="")}const Nf=ie(""),zf=ie(-1);async function VC(){var je,He,et,ot,Je,It,en,Dn,tn;const we=Rt();try{const Ii=await fetch(Ta(we.baseURL,`/sdapi/v1/progress?skip_current_image=true&genkey=${encodeURIComponent(T.value)}`));if(!Ii.ok)return;const Fn=await Ii.json();c.value={percentage:Math.round(((je=Fn.progress)!=null?je:0)*100),textInfo:Fn.textinfo||null,currentStep:(et=(He=Fn.state)==null?void 0:He.sampling_step)!=null?et:0,totalSteps:(Je=(ot=Fn.state)==null?void 0:ot.sampling_steps)!=null?Je:0,previewImage:(en=(It=c.value)==null?void 0:It.previewImage)!=null?en:null},Nf.value!=T.value&&(Nf.value=T.value,zf.value=-1);const ga=(tn=(Dn=Fn.state)==null?void 0:Dn.sampling_step)!=null?tn:0;zf.value!=ga&&(zf.value=ga,we.fetchGenerationProgress==="Image"&&UC())}catch{}}async function UC(){const we=Rt();try{const je=await fetch(Ta(we.baseURL,`/sdapi/v1/progress?genkey=${encodeURIComponent(T.value)}`));if(!je.ok)return;const He=await je.json();He.current_image&&c.value&&(c.value.previewImage=He.current_image)}catch{}}function HC(){Nf.value="",!d.value&&Rt().fetchGenerationProgress!=="Off"&&(c.value={percentage:0,textInfo:null,currentStep:0,totalSteps:0,previewImage:null},d.value=setInterval(VC,2e3))}function jf(){d.value&&(clearInterval(d.value),d.value=0),c.value=null}return{generatorType:n,prompt:r,params:o,outputs:w,inpainting:s,img2img:h,uploadDimensions:v,cancelled:b,abortController:S,multiSelect:u,referenceImages:Dr,videoStartFrame:ho,videoEndFrame:po,loraList:kn,addLoraRow:MC,removeLoraRow:LC,negativePrompt:l,generating:y,negativePromptLibrary:m,minDimensions:I,maxDimensions:$,minImages:O,maxImages:Y,minSteps:ae,maxSteps:q,minCfgScale:J,maxCfgScale:E,minDenoise:D,maxDenoise:B,minClipSkip:Z,maxClipSkip:H,minFrames:Q,maxFrames:te,minFps:fe,maxFps:me,minEta:V,maxEta:M,minFlowShift:R,maxFlowShift:W,clipSkipList:j,cfgList:x,queue:C,promptHistory:i,timer:a,progressInfo:c,progressInterval:d,lastImageGenkey:T,lastImageRecoveryUrl:k,lastImageRecoveryAvailable:A,clearLastImageGenkey:P,openLastImageRecovery:z,validGeneratorTypes:e,sourceGeneratorTypes:t,currentImageProps:p,totalImageCount:U,generateImage:de,generateText2Img:re,generateImg2Img:he,generateInpainting:Se,getPrompt:ma,resetStore:K,clearQueue:L,clearOutputs:F,stopProgressPolling:jf,pushToNegativeLibrary:Qt,removeFromNegativeLibrary:_r,pushToPromptHistory:yn,removeFromPromptHistory:ar,setExtraImage:$C,removeExtraImage:NC,moveExtraImage:zC,clearExtraImage:jC,setVideoStartFrame:RC,setVideoEndFrame:DC,clearVideoStartFrame:FC,clearVideoEndFrame:BC,getAvailableSamplers:it,getAvailableSchedulers:Ft,fetchLoras:X,cacheVersion:Me,invalidateApiCaches:ht,getCachedEndpoint:Ut}}),KG=be({__name:"ImageActions",props:{imageData:{},onDelete:{type:Function},showDismiss:{type:Boolean}},setup(e){const t=nn(),n=Ja(),r=e,i=()=>{H2.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),sa({type:"success",message:"Deleted Image"})})},l=a=>{if(a.extra_avi){const c=a.extra_avi.split(",")[1];if(!c)return;const d=`${a.seed}-${a.prompt}.avi`;KS(c,d);return}else rg(a.image,`${a.seed}-${a.prompt}`)},m=()=>{nn().clearOutputs(),Yt().showGeneratedImages=!1,nn().clearQueue()};async function o(a){const c=window.location.origin,d={prompt:a.prompt,width:a.width?a.width:void 0,height:a.height?a.height:void 0,steps:a.steps,cfg_scale:a.cfg_scale,sampler_name:a.sampler_name,model_name:a.modelName,seed:a.seed,clip_skip:a.clip_skip,frames:a.frames,fps:a.fps,scheduler:a.scheduler,extra_avi:a.extra_avi,final_frame:a.final_frame,enable_hr:a.enable_hr,send_as_refimg:a.send_as_refimg,lora_meta:a.lora_meta},u=window.location.pathname.replace("images","");let f=`${c}${u}?share=`,s="",h="";for(const[p,v]of Object.entries(d)){if(!v)continue;let y=v;typeof v=="string"?y=encodeURIComponent(v):Array.isArray(v)&&(y=JSON.stringify(v)),s+=`${h}${p}=${y}`,h="&"}const g=btoa(String.fromCharCode.apply(null,Array.from(rG(s))));f+=g,await navigator.clipboard.writeText(f),sa({type:"success",message:"Copied shareable link to clipboard"})}return(a,c)=>(N(),se($e,null,[oe(_(Ze),{class:"compact-button",onClick:i,type:"danger",size:"small",icon:_(Yi),plain:""},{default:ue(()=>[...c[8]||(c[8]=[Ne("Delete",-1)])]),_:1},8,["icon"]),oe(_(Ze),{class:"compact-button",onClick:c[0]||(c[0]=d=>l(a.imageData)),type:"success",size:"small",icon:_(yl),plain:""},{default:ue(()=>[...c[9]||(c[9]=[Ne("Download",-1)])]),_:1},8,["icon"]),a.imageData.starred?ge("",!0):(N(),ve(_(Ze),{key:0,class:"compact-button",onClick:c[1]||(c[1]=d=>_(n).toggleStarred(a.imageData.id)),type:"warning",size:"small",icon:_(jO),plain:""},{default:ue(()=>[...c[10]||(c[10]=[Ne("Star",-1)])]),_:1},8,["icon"])),a.imageData.starred?(N(),ve(_(Ze),{key:1,class:"compact-button",onClick:c[2]||(c[2]=d=>_(n).toggleStarred(a.imageData.id)),type:"warning",size:"small",icon:_(F1),plain:""},{default:ue(()=>[...c[11]||(c[11]=[Ne("Unstar",-1)])]),_:1},8,["icon"])):ge("",!0),oe(_(Ze),{class:"compact-button",onClick:c[3]||(c[3]=d=>_(t).generateText2Img(a.imageData)),type:"success",size:"small",plain:""},{default:ue(()=>[...c[12]||(c[12]=[Ne("Txt2img",-1)])]),_:1}),oe(_(Ze),{class:"compact-button",onClick:c[4]||(c[4]=d=>_(t).generateImg2Img(a.imageData.image)),type:"success",size:"small",plain:""},{default:ue(()=>[...c[13]||(c[13]=[Ne("Img2img",-1)])]),_:1}),oe(_(Ze),{class:"compact-button",onClick:c[5]||(c[5]=d=>_(t).generateInpainting(a.imageData.image)),type:"success",size:"small",plain:""},{default:ue(()=>[...c[14]||(c[14]=[Ne("Inpaint",-1)])]),_:1}),a.showDismiss?(N(),ve(_(Ze),{key:2,class:"compact-button",onClick:c[6]||(c[6]=d=>m()),type:"success",size:"small",plain:""},{default:ue(()=>[...c[15]||(c[15]=[Ne("Dismiss",-1)])]),_:1})):ge("",!0),oe(_(Ze),{class:"compact-button",onClick:c[7]||(c[7]=d=>o(a.imageData)),type:"success",icon:_(gO),size:"small",plain:""},{default:ue(()=>[...c[16]||(c[16]=[Ne("Share",-1)])]),_:1},8,["icon"])],64))}}),IC=on(KG,[["__scopeId","data-v-24447e4b"]]),XG={class:"main-output",style:{position:"relative",display:"flex","align-items":"center","justify-content":"center"}},qG=["src"],ZG={style:{"font-size":"16px","font-weight":"500"}},JG={style:{"font-family":"'Segoe UI', Tahoma, Geneva, Verdana, sans-serif","letter-spacing":"0.025em"}},QG={key:0},eY={key:1},tY={key:0},nY={key:1},rY={key:2},iY=be({__name:"ImageDialog",setup(e){const t=Ja(),n=Yt(),r=ie();i6(r,{onSwipeEnd(d,u){u==="RIGHT"&&n.openModalToLeft(),u==="LEFT"&&n.openModalToRight()}});const i=ee({get(){return n.activeModal!==-1},set(){n.activeModal=-1}}),l=ie(t.currentOutputs[0]);Te(()=>n.activeModal,async()=>{const d=t.currentOutputs.find(u=>u.id===n.activeModal);if(d)return l.value=d;l.value=await Wt.outputs.get(n.activeModal)||t.currentOutputs[0]});function m(){i.value=!1}function o(){var f;if(!((f=l.value)!=null&&f.final_frame))return;const d=l.value.final_frame;nn().generateImg2Img(d)}function a(){var d;!((d=l.value)!=null&&d.image)||rg(l.value.image,`${l.value.seed}-${l.value.prompt}`)}function c(){var f,s;if(!((f=l.value)!=null&&f.extra_avi))return;const d=l.value.extra_avi.split(",")[1];if(!d)return;const u=`output-${(s=l.value.id)!=null?s:"video"}.avi`;KS(d,u)}return(d,u)=>{var f;return N(),ve(_(XD),{"model-value":i.value,width:(f=l.value)==null?void 0:f.width,class:"image-viewer",onClosed:m,"align-center":""},{footer:ue(()=>[oe(IC,{"image-data":l.value,"on-delete":m},null,8,["image-data"])]),default:ue(()=>{var s,h,g,p;return[ne("div",{class:"main-output-container",ref_key:"target",ref:r},[ne("div",XG,[(s=l.value)!=null&&s.image?(N(),se("img",{key:0,src:l.value.image,alt:"Output image",style:{"max-width":"100%","max-height":"100%","object-fit":"contain"}},null,8,qG)):ge("",!0)])],512),ne("div",ZG,Ee(((h=l.value.prompt)==null?void 0:h.split("###")[0])||"Unknown Creation"),1),ne("div",JG,[ne("div",null,"Negative Prompt: "+Ee(((g=l.value.prompt)==null?void 0:g.split("###")[1])||"None"),1),ne("span",null,"Model: "+Ee(l.value.modelName||"Unknown")+" - ",1),ne("span",null,"Sampler: "+Ee(l.value.sampler_name||"Unknown")+" - ",1),ne("span",null,"Scheduler: "+Ee(l.value.scheduler||"Unknown")+" - ",1),ne("span",null,"Seed: "+Ee(l.value.seed||"Unknown")+" - ",1),ne("span",null,"Steps: "+Ee(l.value.steps||"Unknown")+" - ",1),ne("span",null,"CFG Scale: "+Ee(l.value.cfg_scale||"Unknown")+" - ",1),ne("span",null,"Clip Skip: "+Ee((p=l.value.clip_skip)!=null?p:"Unknown")+" - ",1),ne("span",null,"Dimensions: "+Ee(l.value.width||"???")+"x"+Ee(l.value.height||"???")+" - ",1),ne("span",null,"Frames: "+Ee(l.value.frames||"1"),1),l.value.frames&&l.value.frames>1?(N(),se("span",QG," - FPS: "+Ee(l.value.fps||"Unknown"),1)):ge("",!0),l.value.lora_meta?(N(),se("span",eY," - LoRA: "+Ee(l.value.lora_meta),1)):ge("",!0),u[2]||(u[2]=ne("br",null,null,-1)),ne("b",null,[l.value.frames&&l.value.frames>1?(N(),se("span",tY,[ne("a",{href:"#",onClick:Qe(a,["prevent"]),style:{cursor:"pointer",color:"var(--el-color-primary)"}},"[Download GIF]")])):ge("",!0),l.value.extra_avi?(N(),se("span",nY,[u[0]||(u[0]=Ne(" - ",-1)),ne("a",{href:"#",onClick:Qe(c,["prevent"]),style:{cursor:"pointer",color:"var(--el-color-primary)"}},"[Download AVI]")])):ge("",!0),l.value.final_frame?(N(),se("span",rY,[u[1]||(u[1]=Ne(" - ",-1)),ne("a",{href:"#",onClick:Qe(o,["prevent"]),style:{cursor:"pointer",color:"var(--el-color-primary)"}},"[Extend Video]")])):ge("",!0)])])]}),_:1},8,["model-value","width"])}}}),aY={class:"generator-icons"},oY=be({__name:"App",setup(e){const n=dm(fm).smallerOrEqual("md"),r=Yt();Rt();const i=BE(),l=ie();return Te(()=>i.path,m=>{l.value&&l.value.open(m)}),(m,o)=>(N(),se($e,null,[ne("div",{class:ce({"menu-container":!_(n)})},[oe(_(R2),{"default-active":_(i).path,mode:"horizontal",router:!0,ellipsis:!_(n),class:ce(_(n)?"mobile-menu":"menu"),ref_key:"menuRef",ref:l},{default:ue(()=>[_(n)?ge("",!0):(N(),ve(_(Am),{key:0,class:"remove-item-styling center-vertical"},{title:ue(()=>[...o[0]||(o[0]=[ne("div",{style:{"font-size":"20px"}},"Stable UI",-1)])]),_:1})),oe(Ps,{isMobile:_(n),index:"/"},{icon:ue(()=>[ne("div",aY,[oe(_(De),null,{default:ue(()=>[oe(_(EO))]),_:1}),_(r).showGeneratorBadge?(N(),ve(_(De),{key:0,class:"generator-badge",size:10},{default:ue(()=>[oe(l7)]),_:1})):ge("",!0)])]),title:ue(()=>[...o[1]||(o[1]=[Ne("Generate",-1)])]),_:1},8,["isMobile"]),oe(Ps,{isMobile:_(n),index:"/images"},{icon:ue(()=>[oe(_(De),null,{default:ue(()=>[oe(_(wO))]),_:1})]),title:ue(()=>[...o[2]||(o[2]=[Ne("Images",-1)])]),_:1},8,["isMobile"]),oe(Ps,{isMobile:_(n),index:"/about"},{icon:ue(()=>[oe(_(De),null,{default:ue(()=>[oe(_(M1))]),_:1})]),title:ue(()=>[...o[3]||(o[3]=[Ne("About",-1)])]),_:1},8,["isMobile"]),oe(Ps,{isMobile:_(n),index:"/options"},{icon:ue(()=>[oe(_(De),null,{default:ue(()=>[oe(_(HO))]),_:1})]),title:ue(()=>[...o[4]||(o[4]=[Ne("Options",-1)])]),_:1},8,["isMobile"]),oe(Ps,{isMobile:_(n),index:"/return"},{icon:ue(()=>[oe(_(De),null,{default:ue(()=>[oe(_(O1))]),_:1})]),title:ue(()=>[...o[5]||(o[5]=[Ne("Return to Lite",-1)])]),_:1},8,["isMobile"])]),_:1},8,["default-active","ellipsis","class"])],2),ne("div",{class:ce({view:!_(n)})},[oe(_(E1))],2),oe(iY)],64))}}),sY=on(oY,[["__scopeId","data-v-8f4d2380"]]),fg=Tk(sY);fg.use(Ak());fg.use(ll);fg.mount("#app");ll.replace("/");window.addEventListener("beforeunload",e=>{nn().generating&&(e.preventDefault(),e.returnValue="")});const lY={key:1,class:"image-action"},uY=be({__name:"CustomImage",props:{imageData:{}},setup(e){const t=e,n=Yt(),r=ie(null);D5(r,n.toggleMultiSelect,{modifiers:{prevent:!0}});const i=ie(!1);r6(r,([{isIntersecting:m}])=>{m&&(i.value=m)},{rootMargin:"500px"});const l=ee(()=>n.selected.includes(t.imageData.id));return(m,o)=>(N(),se("div",{class:"relative",ref_key:"containerRef",ref:r},[i.value?(N(),ve(_(zo),{key:0,class:"thumbnail",src:m.imageData.image,onClick:o[0]||(o[0]=a=>_(n).activeModal=m.imageData.id),fit:"cover",loading:"lazy",style:ze(`${l.value&&"opacity: 0.5"}`)},null,8,["src","style"])):ge("",!0),i.value?(N(),se("div",lY,[m.imageData.starred?(N(),ve(_(De),{key:0,class:"starred-icon",size:35,color:"var(--el-color-warning)"},{default:ue(()=>[oe(_(F1))]),_:1})):ge("",!0),_(n).multiSelect?(N(),se("div",{key:1,class:"select-container",onClick:o[1]||(o[1]=a=>_(n).toggleSelection(m.imageData.id))},[oe(_(De),{class:"select-icon",size:35,color:`rgba(255, 255, 255, ${l.value?"1":"0.5"})`},{default:ue(()=>[l.value?ge("",!0):(N(),ve(_(Ql),{key:0})),l.value?(N(),ve(_(P1),{key:1})):ge("",!0)]),_:1},8,["color"])])):ge("",!0)])):ge("",!0)],512))}}),Fb=on(uY,[["__scopeId","data-v-b9569bbd"]]);function cY({mobileWidth:e=768,hideAfterDistanceFromTop:t=100,hideAfterScroll:n=100}={}){const{width:r}=ww(),i=ee(()=>r.value<=e),l=ie(!0),{y:m}=n6(window);let o=m.value,a=0;return Te(m,c=>{if(!i.value)return;const d=c-o;if(o=c,d>0&&c>t){a+=d,a>=n&&(l.value=!1,a=0);return}d<0&&(a=0,l.value=!0)}),{isVisible:l,isMobile:i}}const fY={},dY={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"};function hY(e,t){return N(),se("svg",dY,[...t[0]||(t[0]=[ne("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 pY=on(fY,[["render",hY]]),mY={class:"options"},gY=["onClick"],vY=["onClick"],yY=["onClick"],bY={key:1,class:"center-both",style:{gap:"12px"}},_Y={key:2},wY={key:0},SY={key:0,style:{display:"flex",gap:"8px"}},CY={key:1,class:"images"},xY={key:1},TY=be({__name:"ImagesView",setup(e){const{width:t}=ww(),{isVisible:n,isMobile:r}=cY(),i=Ja(),l=Rt(),m=Yt();function o(){m.selected=m.selected.filter(h=>!i.currentOutputs.map(g=>g.id).includes(h)),m.selected=[...m.selected,...i.currentOutputs.map(h=>h.id)],m.multiSelect=!0}async function a(){const h=await Wt.outputs.toCollection().primaryKeys();m.selected=h,m.multiSelect=!0}function c(){m.selected=m.selected.filter(h=>!i.currentOutputs.map(g=>g.id).includes(h)),m.selected.length===0&&(m.multiSelect=!1)}function d(){m.selected=[],m.multiSelect=!1}const u=()=>{H2.confirm(`This action will permanently delete ${m.selected.length} images. Continue?`,"Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{i.deleteMultipleOutputs(m.selected)})};h0(["a","A","ArrowLeft"],m.openModalToLeft),h0(["d","D","ArrowRight"],m.openModalToRight);async function f(){YS(m.selected)}const s=ee(()=>{let h=2;t.value>1440?h=6:t.value>1280?h=5:t.value>768?h=4:t.value>480&&(h=3);const g=[];for(let p=0;p<h;p++){const v=[];for(let y=p;y<i.currentOutputs.length;y+=h)v.push(i.currentOutputs[y]);g.push(v)}return g});return(h,g)=>(N(),se($e,null,[ne("div",{class:ce(["images-top-bar",{"mobile-hidden":_(r)&&!_(n)}])},[ne("div",mY,[oe(_(Lu),{placement:"bottom",title:"Sort By",trigger:"click",width:200,transition:"none","hide-after":0},{reference:ue(()=>[oe(_(Ze),{class:"btn-select"},{default:ue(()=>[oe(_(De),{size:16},{default:ue(()=>[oe(_($O))]),_:1})]),_:1})]),default:ue(()=>[(N(),se($e,null,$t(["Newest","Oldest"],p=>ne("div",{key:p,onClick:()=>_(i).sortBy=p,class:ce(`el-select-dropdown__item ${_(i).sortBy===p?"selected":""}`)},Ee(p),11,gY)),64))]),_:1}),oe(_(Lu),{placement:"bottom",title:"Filter By",trigger:"click",width:240,transition:"none","hide-after":0},{reference:ue(()=>[oe(_(Ze),{class:"btn-select"},{default:ue(()=>[oe(_(De),{size:16},{default:ue(()=>[oe(_(uO))]),_:1})]),_:1})]),default:ue(()=>[(N(),se($e,null,$t(["all","favourited","unfavourited","unrated"],p=>ne("div",{key:p,onClick:()=>_(i).filterBy=p,class:ce(`el-select-dropdown__item ${_(i).filterBy===p?"selected":""}`)},Ee(_(i).filterBy===p?"Showing":"Show")+" "+Ee(p),11,vY)),64))]),_:1}),oe(_(Lu),{placement:"bottom",title:"Image Layout",trigger:"click",width:240,transition:"none","hide-after":0},{reference:ue(()=>[oe(_(Ze),{class:"btn-select"},{default:ue(()=>[oe(_(De),{size:16},{default:ue(()=>[oe(pY)]),_:1})]),_:1})]),default:ue(()=>[(N(),se($e,null,$t([{label:"Square Grid",value:"grid"},{label:"Dynamic Layout",value:"dynamic"}],p=>ne("div",{key:p.value,onClick:()=>_(i).currentLayout=p.value,class:ce(`el-select-dropdown__item ${_(i).currentLayout===p.value?"selected":""}`)},Ee(p.label),11,yY)),64))]),_:1}),oe(_(Lu),{placement:"bottom",title:"Selection",trigger:"click",width:240,transition:"none","hide-after":0},{reference:ue(()=>[oe(_(Ze),{class:"btn-select"},{default:ue(()=>[oe(_(De),{size:16},{default:ue(()=>[_(m).multiSelect?(N(),ve(_(P1),{key:0})):(N(),ve(_(Ql),{key:1}))]),_:1})]),_:1})]),default:ue(()=>[_(m).multiSelect?(N(),se("div",{key:0,class:"el-select-dropdown__item selected",onClick:g[0]||(g[0]=(...p)=>_(m).toggleMultiSelect&&_(m).toggleMultiSelect(...p))},"Disable multi-select")):(N(),se("div",{key:1,class:"el-select-dropdown__item",onClick:g[1]||(g[1]=(...p)=>_(m).toggleMultiSelect&&_(m).toggleMultiSelect(...p))},"Enable multi-select")),_(m).selected.length>0?(N(),se("div",{key:2,class:"el-select-dropdown__item selected",onClick:d},"Deselect All")):(N(),se("div",{key:3,class:"el-select-dropdown__item",onClick:a},"Select All")),_(m).selected.every(p=>!_(i).currentOutputs.map(v=>v.id).includes(p))?(N(),se("div",{key:5,class:"el-select-dropdown__item",onClick:o},"Select Page")):(N(),se("div",{key:4,class:"el-select-dropdown__item selected",onClick:c},"Deselect Page"))]),_:1})]),_(l).pageless==="Disabled"?(N(),ve(_(kN),{key:0,layout:"prev, pager, next",total:_(i).outputsLength,"page-size":_(l).pageSize,"current-page":_(i).currentPage,"onUpdate:currentPage":g[2]||(g[2]=p=>_(i).currentPage=p),"hide-on-single-page":""},null,8,["total","page-size","current-page"])):ge("",!0),_(m).multiSelect?(N(),se("div",bY,[ne("div",null,Ee(_(m).selected.length)+" selected",1),oe(_(Ze),{type:"danger",onClick:u,icon:_(Yi),plain:""},{default:ue(()=>[...g[3]||(g[3]=[Ne("Delete",-1)])]),_:1},8,["icon"]),oe(_(Ze),{type:"success",onClick:f,icon:_(yl),plain:"",style:{margin:"0"}},{default:ue(()=>[...g[4]||(g[4]=[Ne("Download",-1)])]),_:1},8,["icon"])])):(N(),se("div",_Y,[...g[5]||(g[5]=[ne("em",{style:{"font-size":"14px"}},"(long press to select multiple images)",-1)])]))],2),_(i).outputsLength!=0?(N(),se("div",wY,[_(i).currentLayout==="dynamic"?(N(),se("div",SY,[(N(!0),se($e,null,$t(s.value,(p,v)=>(N(),se("div",{key:v,style:{flex:"1 1 0%"}},[(N(!0),se($e,null,$t(p,y=>(N(),ve(Fb,{key:y.id,"image-data":y,style:{"margin-bottom":"8px"}},null,8,["image-data"]))),128))]))),128))])):ge("",!0),_(i).currentLayout==="grid"?(N(),se("div",CY,[(N(!0),se($e,null,$t(_(i).currentOutputs,p=>(N(),ve(Fb,{key:p.id,"image-data":p,style:{width:"200px",height:"200px"}},null,8,["image-data"]))),128))])):ge("",!0)])):ge("",!0),_(i).outputsLength==0?(N(),se("div",xY,[oe(_(VF),{description:"No Images Found"})])):ge("",!0)],64))}}),kY=on(TY,[["__scopeId","data-v-b39b47c5"]]),EY=Object.freeze(Object.defineProperty({__proto__:null,default:kY},Symbol.toStringTag,{value:"Module"})),OY=["href"],AY=be({__name:"BaseLink",props:{href:{},router:{type:Boolean}},setup(e){return(t,n)=>{const r=yt("router-link");return N(),se($e,null,[t.router?ge("",!0):(N(),se("a",{key:0,target:"_blank",rel:"noreferrer noopener",href:t.href},[ke(t.$slots,"default",{},void 0,!0)],8,OY)),t.router?(N(),ve(r,{key:1,to:t.href},{default:ue(()=>[ke(t.$slots,"default",{},void 0,!0)]),_:3},8,["to"])):ge("",!0)],64)}}}),PY=on(AY,[["__scopeId","data-v-17b53b7d"]]),IY={class:"about"},MY={class:"about-content"},LY=be({__name:"AboutView",setup(e){return(t,n)=>(N(),se("div",IY,[ne("div",MY,[n[2]||(n[2]=ne("h1",{style:{"margin-top":"0"}},"Stable UI",-1)),n[3]||(n[3]=ne("div",null,[Ne("This tool was originally a front-end for the AI Horde and has since been converted for local generations with the A1111 API, such as in "),ne("a",{href:"https://github.com/LostRuins/koboldcpp"},"KoboldCpp"),Ne(".")],-1)),n[4]||(n[4]=ne("br",null,null,-1)),n[5]||(n[5]=ne("div",null,"If you want to help improve this tool, you can find the currently maintained source code from this modified version on https://github.com/LostRuins/stable-ui and https://github.com/henk717/stable-ui, which is based off https://github.com/ayunami2000/stable-ui, which derives from the original AI Horde version on https://github.com/aqualxx/stable-ui (Original author aqualxx#5004). Feel free to contribute!",-1)),n[6]||(n[6]=ne("br",null,null,-1)),ne("div",null,[n[1]||(n[1]=Ne("You can find the KoboldAI community and authors of this fork on the ",-1)),oe(PY,{href:"https://koboldai.org/discord"},{default:ue(()=>[...n[0]||(n[0]=[Ne("KoboldAI Discord",-1)])]),_:1})])])]))}}),RY=on(LY,[["__scopeId","data-v-ecc278c5"]]),DY=Object.freeze(Object.defineProperty({__proto__:null,default:RY},Symbol.toStringTag,{value:"Module"})),Di=be({__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(m){if(n.useBoolean&&m==="Enabled"?r("update:modelValue",!0):n.useBoolean&&m==="Disabled"?r("update:modelValue",!1):r("update:modelValue",m),!!n.change)return n.useBoolean&&m==="Enabled"?n.change(!0):n.useBoolean&&m==="Disabled"?n.change(!1):n.change(m)}const l=ee(()=>n.useBoolean?n.modelValue===!0?"Enabled":n.modelValue===!1?"Disabled":n.modelValue:n.modelValue);return(m,o)=>(N(),ve(_(Qi),{prop:m.prop},{label:ue(()=>[oe(du,{info:m.info,"label-style":m.labelStyle},{default:ue(()=>[ke(m.$slots,"label",{},()=>[Ne(Ee(m.label),1)])]),_:3},8,["info","label-style"])]),default:ue(()=>[oe(_(FR),{disabled:m.disabled,"model-value":l.value,onChange:i},{default:ue(()=>[(N(!0),se($e,null,$t(m.options,a=>(N(),ve(_(BR),{key:a,label:a},null,8,["label"]))),128))]),_:1},8,["disabled","model-value"]),ke(m.$slots,"inline")]),_:3},8,["prop"]))}}),FY=be({__name:"OptionsView",setup(e){const t=Rt(),n=Ja(),r=nn(),i=[{value:"dark",label:"Dark"},{value:"light",label:"Light"},{value:"auto",label:"Auto"}],l=ie([]),m=ie(),o=ie(!1),a=ie(0);async function c(u){n.importFromZip(u),m.value.clearFiles()}async function d(){sa({message:`Downloading ${n.outputsLength} image(s)... (this may take a while)`,type:"info"}),o.value=!0,a.value=0;const u=await Wt.outputs.toCollection().primaryKeys();await YS(u,!1,()=>{a.value++}),o.value=!1,a.value=0}return(u,f)=>(N(),se($e,null,[f[19]||(f[19]=ne("h1",null,"Options",-1)),oe(_(Em),{"label-position":"top",model:_(t).options,onSubmit:f[13]||(f[13]=Qe(()=>{},["prevent"]))},{default:ue(()=>[oe(_(qz),{type:"border-card",style:{"min-height":"50vh"}},{default:ue(()=>[oe(_(Cd),{label:"\u{1F5A8}\uFE0F Generation"},{default:ue(()=>[f[14]||(f[14]=ne("h2",null,"Generation Options",-1)),oe(_(Qi),{label:"Base URL"},{default:ue(()=>[oe(_(lo),{class:"apikey",prop:"baseURL",modelValue:_(t).baseURL,"onUpdate:modelValue":f[1]||(f[1]=s=>_(t).baseURL=s)},{append:ue(()=>[oe(_(fn),{content:"Invalidate all cached information for this server (LoRAs, samplers, schedulers, ...)",placement:"top"},{default:ue(()=>[oe(_(Ze),{icon:_(mh),onClick:f[0]||(f[0]=s=>_(r).invalidateApiCaches())},null,8,["icon"])]),_:1})]),_:1},8,["modelValue"])]),_:1}),f[15]||(f[15]=ne("h3",null,"Parameter Controls",-1)),(N(!0),se($e,null,$t(_(r).multiSelect,(s,h)=>{var g;return N(),se("div",{key:h},[oe(Di,{label:s.name,prop:"pageless",modelValue:s.state,"onUpdate:modelValue":p=>s.state=p,options:(g=s.allowedStates)!=null?g:[]},null,8,["label","modelValue","onUpdate:modelValue","options"])])}),128)),oe(Di,{label:"Allow Larger Params",prop:"pageless",modelValue:_(t).allowLargerParams,"onUpdate:modelValue":f[2]||(f[2]=s=>_(t).allowLargerParams=s),options:["Enabled","Disabled"]},null,8,["modelValue"]),oe(Di,{label:"Keep generation on disconnect",prop:"keepImageGenOnDisconnect",modelValue:_(t).keepImageGenOnDisconnect,"onUpdate:modelValue":f[3]||(f[3]=s=>_(t).keepImageGenOnDisconnect=s),options:["Enabled","Disabled"],info:"By default, a client disconnect or an abort action causes the ongoing generation to be interrupted as soon as possible and discarded. Enabling this option overrides that behavior, allowing the generation to finish, and making the image available to be downloaded by the UI when ready."},null,8,["modelValue"]),oe(Di,{label:"Fetch generation progres",prop:"fetchGenerationProgress",modelValue:_(t).fetchGenerationProgress,"onUpdate:modelValue":f[4]||(f[4]=s=>_(t).fetchGenerationProgress=s),options:["Off","Text","Image"],info:"Off: no progress polling. Text: fetch textual progress info only. Image: fetch textual info and live image preview."},null,8,["modelValue"]),oe(Mo,{label:"Image Resize Mode",prop:"imageResizeMode",modelValue:_(t).imageResizeMode,"onUpdate:modelValue":f[5]||(f[5]=s=>_(t).imageResizeMode=s),options:[{label:"No Scale",value:"NoScale"},{label:"Scale and Crop",value:"ScaleAndCrop"},{label:"Scale and Pad",value:"ScaleAndPad"},{label:"Stretch",value:"Stretch"},{label:"Original",value:"Original"}],info:"How to adapt input image dimensions to the requested image size. No Scale: do not scale, just crop or pad each dimension to fit (default behavior). Scale and Crop: scale to match the smaller dimension, preserving aspect ratio, then crop to fit. Scale and Pad: scale to match the larger dimension, preserving aspect ratio, then pad to fit. Stretch: stretch both dimensions to fit, possibly not preserving aspect ratio. Original: send the input image as-is to the server, with no scaling, cropping or padding."},null,8,["modelValue"]),oe(Di,{label:"Video Gen: Request AVI download",prop:"pageless",modelValue:_(t).alsoRequestAvi,"onUpdate:modelValue":f[6]||(f[6]=s=>_(t).alsoRequestAvi=s),options:["Enabled","Disabled"]},null,8,["modelValue"])]),_:1}),oe(_(Cd),{label:"\u{1F4F7} Images"},{default:ue(()=>[f[17]||(f[17]=ne("h2",null,"Image Options",-1)),oe(bn,{label:"Images Per Page",prop:"pageSize",modelValue:_(t).pageSize,"onUpdate:modelValue":f[7]||(f[7]=s=>_(t).pageSize=s),min:10,max:50,step:5,disabled:_(t).pageless==="Enabled"},null,8,["modelValue","disabled"]),oe(Di,{label:"Pageless Format",prop:"pageless",modelValue:_(t).pageless,"onUpdate:modelValue":f[8]||(f[8]=s=>_(t).pageless=s),options:["Enabled","Disabled"]},null,8,["modelValue"]),oe(Di,{label:"Carousel Auto Cycle",prop:"autoCarousel",modelValue:_(t).autoCarousel,"onUpdate:modelValue":f[9]||(f[9]=s=>_(t).autoCarousel=s),options:["Enabled","Disabled"]},null,8,["modelValue"]),oe(Di,{label:"Image Download Format",prop:"downloadType",modelValue:_(t).imageDownloadType,"onUpdate:modelValue":f[10]||(f[10]=s=>_(t).imageDownloadType=s),options:["PNG","JPG","WEBP","GIF"]},null,8,["modelValue"]),oe(_(Qi),{label:"Export Images (ZIP File)"},{default:ue(()=>[o.value?(N(),ve(_(Ze),{key:1,icon:_(yl),disabled:""},{default:ue(()=>[Ne("Downloading... ("+Ee(a.value)+" / "+Ee(_(n).outputsLength)+" image(s))",1)]),_:1},8,["icon"])):(N(),ve(_(Ze),{key:0,icon:_(yl),onClick:f[11]||(f[11]=s=>d())},{default:ue(()=>[Ne("Download "+Ee(_(n).outputsLength)+" image(s)",1)]),_:1},8,["icon"]))]),_:1}),oe(_(Qi),{label:"Import Images (ZIP File)"},{default:ue(()=>[oe(_(Lm),{drag:"",ref_key:"upload",ref:m,"auto-upload":!1,onChange:c,"file-list":l.value,limit:1,multiple:""},{default:ue(()=>[oe(_(De),{size:100},{default:ue(()=>[oe(_(Zp))]),_:1}),f[16]||(f[16]=ne("div",null,[Ne("Drop file here OR "),ne("em",null,"click to upload")],-1))]),_:1},8,["file-list"])]),_:1})]),_:1}),oe(_(Cd),{label:"\u2699\uFE0F General"},{default:ue(()=>[f[18]||(f[18]=ne("h2",null,"General Options",-1)),oe(Mo,{label:"Color Scheme",prop:"colorScheme",modelValue:_(t).options.colorMode,"onUpdate:modelValue":f[12]||(f[12]=s=>_(t).options.colorMode=s),options:i},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])],64))}}),BY=on(FY,[["__scopeId","data-v-679e7af1"]]),$Y=Object.freeze(Object.defineProperty({__proto__:null,default:BY},Symbol.toStringTag,{value:"Module"}))});export default NY();
</script>
<style>
@charset "UTF-8";: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}:root{color-scheme:light;--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary:#409eff;--el-color-primary-light-3:#79bbff;--el-color-primary-light-5:#a0cfff;--el-color-primary-light-7:#c6e2ff;--el-color-primary-light-8:#d9ecff;--el-color-primary-light-9:#ecf5ff;--el-color-primary-dark-2:#337ecc;--el-color-success:#67c23a;--el-color-success-light-3:#95d475;--el-color-success-light-5:#b3e19d;--el-color-success-light-7:#d1edc4;--el-color-success-light-8:#e1f3d8;--el-color-success-light-9:#f0f9eb;--el-color-success-dark-2:#529b2e;--el-color-warning:#e6a23c;--el-color-warning-light-3:#eebe77;--el-color-warning-light-5:#f3d19e;--el-color-warning-light-7:#f8e3c5;--el-color-warning-light-8:#faecd8;--el-color-warning-light-9:#fdf6ec;--el-color-warning-dark-2:#b88230;--el-color-danger:#f56c6c;--el-color-danger-light-3:#f89898;--el-color-danger-light-5:#fab6b6;--el-color-danger-light-7:#fcd3d3;--el-color-danger-light-8:#fde2e2;--el-color-danger-light-9:#fef0f0;--el-color-danger-dark-2:#c45656;--el-color-error:#f56c6c;--el-color-error-light-3:#f89898;--el-color-error-light-5:#fab6b6;--el-color-error-light-7:#fcd3d3;--el-color-error-light-8:#fde2e2;--el-color-error-light-9:#fef0f0;--el-color-error-dark-2:#c45656;--el-color-info:#909399;--el-color-info-light-3:#b1b3b8;--el-color-info-light-5:#c8c9cc;--el-color-info-light-7:#dedfe0;--el-color-info-light-8:#e9e9eb;--el-color-info-light-9:#f4f4f5;--el-color-info-dark-2:#73767a;--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)}: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-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{border-right:solid 1px var(--el-menu-border-color);list-style:none;position:relative;margin:0;padding-left:0;background-color:var(--el-menu-bg-color);box-sizing:border-box}.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{white-space:nowrap;padding-left:calc(var(--el-menu-base-level-padding) + var(--el-menu-level) * var(--el-menu-level-padding))}.el-menu--horizontal{display:flex;flex-wrap:nowrap;border-bottom:solid 1px var(--el-menu-border-color);border-right:none}.el-menu--horizontal>.el-menu-item{display:inline-flex;justify-content:center;align-items:center;height:100%;margin:0;border-bottom:2px solid transparent;color:var(--el-menu-text-color)}.el-menu--horizontal>.el-menu-item a,.el-menu--horizontal>.el-menu-item a:hover{color:inherit}.el-menu--horizontal>.el-menu-item:not(.is-disabled):focus,.el-menu--horizontal>.el-menu-item:not(.is-disabled):hover{background-color:#fff}.el-menu--horizontal>.el-sub-menu:focus,.el-menu--horizontal>.el-sub-menu:hover{outline:0}.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{height:100%;border-bottom:2px solid transparent;color:var(--el-menu-text-color)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title:hover{background-color:var(--el-bg-color-overlay)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__icon-arrow{position:static;vertical-align:middle;margin-left:8px;margin-top:-3px}.el-menu--horizontal .el-menu .el-menu-item,.el-menu--horizontal .el-menu .el-sub-menu__title{background-color:var(--el-menu-bg-color);display:flex;align-items:center;height:var(--el-menu-horizontal-sub-item-height);padding:0 10px;color:var(--el-menu-text-color)}.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-sub-menu.is-active>.el-sub-menu__title{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{outline:0;color:var(--el-menu-hover-text-color);background-color:var(--el-menu-hover-bg-color)}.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-sub-menu>.el-sub-menu__title [class^=el-icon]{margin:0;vertical-align:middle;width:var(--el-menu-icon-width);text-align:center}.el-menu--collapse>.el-menu-item .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>span,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title>span{height:0;width:0;overflow:hidden;visibility:hidden;display:inline-block}.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{position:relative}.el-menu--collapse .el-sub-menu .el-menu{position:absolute;margin-left:5px;top:0;left:100%;z-index:10;border:1px solid var(--el-border-color-light);border-radius:var(--el-border-radius-small);box-shadow:var(--el-box-shadow-light)}.el-menu--collapse .el-sub-menu.is-active .el-sub-menu__title{color:var(--el-menu-active-color)}.el-menu--popup{z-index:100;min-width:200px;border:none;padding:5px 0;border-radius:var(--el-border-radius-small);box-shadow:var(--el-box-shadow-light)}.el-menu .el-icon{flex-shrink:0}.el-menu-item{display:flex;align-items:center;height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);font-size:var(--el-menu-item-font-size);color:var(--el-menu-text-color);padding:0 var(--el-menu-base-level-padding);list-style:none;cursor:pointer;position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);box-sizing:border-box;white-space:nowrap}.el-menu-item *{vertical-align:bottom}.el-menu-item i{color:inherit}.el-menu-item:focus,.el-menu-item:hover{outline:0}.el-menu-item:hover{background-color:var(--el-menu-hover-bg-color)}.el-menu-item.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.el-menu-item [class^=el-icon]{margin-right:5px;width:var(--el-menu-icon-width);text-align:center;font-size:18px;vertical-align:middle}.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{position:absolute;left:0;top:0;height:100%;width:100%;display:inline-flex;align-items:center;box-sizing:border-box;padding:0 var(--el-menu-base-level-padding)}.el-sub-menu{list-style:none;margin:0;padding-left:0}.el-sub-menu__title{display:flex;align-items:center;height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);font-size:var(--el-menu-item-font-size);color:var(--el-menu-text-color);padding:0 var(--el-menu-base-level-padding);list-style:none;cursor:pointer;position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);box-sizing:border-box;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:0}.el-sub-menu__title.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.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);min-width:200px}.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{opacity:.25;cursor:not-allowed;background:0 0!important}.el-sub-menu .el-icon{vertical-align:middle;margin-right:5px;width:var(--el-menu-icon-width);text-align:center;font-size:18px}.el-sub-menu .el-icon.el-sub-menu__icon-more{margin-right:0!important}.el-sub-menu .el-sub-menu__icon-arrow{position:absolute;top:50%;right:var(--el-menu-base-level-padding);margin-top:-7px;transition:transform var(--el-transition-duration);font-size:12px;margin-right:0;width:inherit}.el-menu-item-group>ul{padding:0}.el-menu-item-group__title{padding:7px 0 7px var(--el-menu-base-level-padding);line-height:normal;font-size:12px;color:var(--el-text-color-secondary)}.horizontal-collapse-transition .el-sub-menu__title .el-sub-menu__icon-arrow{transition:var(--el-transition-duration-fast);opacity:0}.el-popper{--el-popper-border-radius:var(--el-popover-border-radius, 4px)}.el-popper{position:absolute;border-radius:var(--el-popper-border-radius);padding:5px 11px;z-index:2000;font-size:12px;line-height:20px;min-width:10px;word-wrap:break-word;visibility:visible}.el-popper.is-dark{color:var(--el-bg-color);background:var(--el-text-color-primary);border:1px solid var(--el-text-color-primary)}.el-popper.is-dark .el-popper__arrow:before{border:1px solid var(--el-text-color-primary);background:var(--el-text-color-primary);right:0}.el-popper.is-light{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light)}.el-popper.is-light .el-popper__arrow:before{border:1px solid var(--el-border-color-light);background:var(--el-bg-color-overlay);right:0}.el-popper.is-pure{padding:0}.el-popper__arrow{position:absolute;width:10px;height:10px;z-index:-1}.el-popper__arrow:before{position:absolute;width:10px;height:10px;z-index:-1;content:" ";transform:rotate(45deg);background:var(--el-text-color-primary);box-sizing:border-box}.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-top-color:transparent!important;border-left-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-left-color:transparent!important;border-bottom-color:transparent!important}.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent!important;border-top-color:transparent!important}.el-icon-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@-webkit-keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.el-icon{--color:inherit;height:1em;width:1em;line-height:1em;display:inline-flex;justify-content:center;align-items:center;position:relative;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}.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;position:relative;vertical-align:middle;display:inline-block}.el-badge__content{background-color:var(--el-badge-bg-color);border-radius:var(--el-badge-radius);color:var(--el-color-white);display:inline-flex;justify-content:center;align-items:center;font-size:var(--el-badge-font-size);height:var(--el-badge-size);padding:0 var(--el-badge-padding);white-space:nowrap;border:1px solid var(--el-bg-color)}.el-badge__content.is-fixed{position:absolute;top:0;right:calc(1px + var(--el-badge-size)/ 2);transform:translateY(-50%) translate(100%)}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{height:8px;width:8px;padding:0;right:0;border-radius:50%}.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:15px 19px;--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)}.el-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;max-width:calc(100% - 32px);box-sizing:border-box;border-radius:var(--el-border-radius-base);border-width:var(--el-border-width);border-style:var(--el-border-style);border-color:var(--el-message-border-color);position:fixed;left:50%;top:20px;transform:translate(-50%);background-color:var(--el-message-bg-color);transition:opacity var(--el-transition-duration),transform .4s,top .4s;padding:var(--el-message-padding);display:flex;align-items:center}.el-message.is-center{justify-content:center}.el-message.is-closable .el-message__content{padding-right:31px}.el-message p{margin:0}.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:anywhere}.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:anywhere}.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:anywhere}.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:anywhere}.el-message .el-message-icon--error{color:var(--el-message-text-color)}.el-message__icon{margin-right:10px}.el-message .el-message__badge{position:absolute;top:-8px;right:-8px}.el-message__content{padding:0;font-size:14px;line-height:1}.el-message__content:focus{outline-width:0}.el-message .el-message__closeBtn{position:absolute;top:50%;right:19px;transform:translateY(-50%);cursor:pointer;color:var(--el-message-close-icon-color);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;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:20px;--el-dialog-border-radius:var(--el-border-radius-small);position:relative;margin:var(--el-dialog-margin-top,15vh) auto 50px;background:var(--el-dialog-bg-color);border-radius:var(--el-dialog-border-radius);box-shadow:var(--el-dialog-box-shadow);box-sizing:border-box;width:var(--el-dialog-width,50%)}.el-dialog:focus{outline:0!important}.el-dialog.is-align-center{margin:auto}.el-dialog.is-fullscreen{--el-dialog-width:100%;--el-dialog-margin-top:0;margin-bottom:0;height:100%;overflow:auto}.el-dialog__wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;margin:0}.el-dialog.is-draggable .el-dialog__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-dialog__header{padding:var(--el-dialog-padding-primary);padding-bottom:10px;margin-right:16px;word-break:break-all}.el-dialog__headerbtn{position:absolute;top:6px;right:0;padding:0;width:54px;height:54px;background:0 0;border:none;outline:0;cursor:pointer;font-size:var(--el-message-close-size,16px)}.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{line-height:var(--el-dialog-font-line-height);font-size:var(--el-dialog-title-font-size);color:var(--el-text-color-primary)}.el-dialog__body{padding:calc(var(--el-dialog-padding-primary) + 10px) var(--el-dialog-padding-primary);color:var(--el-text-color-regular);font-size:var(--el-dialog-content-font-size);word-break:break-all}.el-dialog__footer{padding:var(--el-dialog-padding-primary);padding-top:10px;text-align:right;box-sizing:border-box}.el-dialog--center{text-align:center}.el-dialog--center .el-dialog__body{text-align:initial;padding:25px calc(var(--el-dialog-padding-primary) + 5px) 30px}.el-dialog--center .el-dialog__footer{text-align:inherit}.el-overlay-dialog{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto}.dialog-fade-enter-active{-webkit-animation:modal-fade-in var(--el-transition-duration);animation:modal-fade-in var(--el-transition-duration)}.dialog-fade-enter-active .el-overlay-dialog{-webkit-animation:dialog-fade-in var(--el-transition-duration);animation:dialog-fade-in var(--el-transition-duration)}.dialog-fade-leave-active{-webkit-animation:modal-fade-out var(--el-transition-duration);animation:modal-fade-out var(--el-transition-duration)}.dialog-fade-leave-active .el-overlay-dialog{-webkit-animation:dialog-fade-out var(--el-transition-duration);animation:dialog-fade-out var(--el-transition-duration)}@-webkit-keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@-webkit-keyframes dialog-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes dialog-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@-webkit-keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@-webkit-keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}.el-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;height:100%;background-color:var(--el-overlay-color-lighter);overflow:auto}.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);transition:var(--el-transition-md-fade);transform-origin:center top}.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);transition:var(--el-transition-md-fade);transform-origin:center bottom}.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);transition:var(--el-transition-md-fade);transform-origin:top left}.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-top:1px solid var(--el-collapse-border-color);border-bottom: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{display:flex;align-items:center;height:var(--el-collapse-header-height);line-height:var(--el-collapse-header-height);background-color:var(--el-collapse-header-bg-color);color:var(--el-collapse-header-text-color);cursor:pointer;border-bottom:1px solid var(--el-collapse-border-color);font-size:var(--el-collapse-header-font-size);font-weight:500;transition:border-bottom-color var(--el-transition-duration);outline:0}.el-collapse-item__arrow{margin:0 8px 0 auto;transition:transform var(--el-transition-duration);font-weight:300}.el-collapse-item__arrow.is-active{transform:rotate(90deg)}.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{will-change:height;background-color:var(--el-collapse-content-bg-color);overflow:hidden;box-sizing:border-box;border-bottom:1px solid var(--el-collapse-border-color)}.el-collapse-item__content{padding-bottom:25px;font-size:var(--el-collapse-content-font-size);color:var(--el-collapse-content-text-color);line-height:1.7692307692}.el-collapse-item:last-child{margin-bottom:-1px}.el-form{--el-form-label-font-size:var(--el-font-size-base)}.el-form--label-left .el-form-item__label{justify-content:flex-start}.el-form--label-top .el-form-item{display:block}.el-form--label-top .el-form-item .el-form-item__label{display:block;height:auto;text-align:left;margin-bottom:8px;line-height:22px}.el-form--inline .el-form-item{display:inline-flex;vertical-align:middle;margin-right:32px}.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--large.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:12px;line-height:22px}.el-form--default.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:8px;line-height:22px}.el-form--small.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:4px;line-height:20px}.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-wrap{display:flex}.el-form-item__label{display:inline-flex;justify-content:flex-end;align-items:flex-start;flex:0 0 auto;font-size:var(--el-form-label-font-size);color:var(--el-text-color-regular);height:32px;line-height:32px;padding:0 12px 0 0;box-sizing:border-box}.el-form-item__content{display:flex;flex-wrap:wrap;align-items:center;flex:1;line-height:32px;position:relative;font-size:var(--font-size);min-width:0}.el-form-item__content .el-input-group{vertical-align:top}.el-form-item__error{color:var(--el-color-danger);font-size:12px;line-height:1;padding-top:2px;position:absolute;top:100%;left:0}.el-form-item__error--inline{position:relative;top:auto;left:auto;display:inline-block;margin-left:10px}.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{content:"*";color:var(--el-color-danger);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{content:"*";color:var(--el-color-danger);margin-left:4px}.el-form-item.is-error .el-select-v2__wrapper,.el-form-item.is-error .el-select-v2__wrapper:focus,.el-form-item.is-error .el-textarea__inner,.el-form-item.is-error .el-textarea__inner:focus{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-input-group__append .el-input__wrapper,.el-form-item.is-error .el-input-group__prepend .el-input__wrapper{box-shadow:0 0 0 1px transparent inset}.el-form-item.is-error .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-color-info);--el-button-active-color:var(--el-text-color-primary)}.el-button{display:inline-flex;justify-content:center;align-items:center;line-height:1;height:32px;white-space:nowrap;cursor:pointer;color:var(--el-button-text-color);text-align:center;box-sizing:border-box;outline:0;transition:.1s;font-weight:var(--el-button-font-weight);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-webkit-appearance:none;background-color:var(--el-button-bg-color);border:var(--el-border);border-color:var(--el-button-border-color);padding:8px 15px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button:focus,.el-button:hover{color:var(--el-button-hover-text-color);border-color:var(--el-button-hover-border-color);background-color:var(--el-button-hover-bg-color);outline:0}.el-button:active{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:0}.el-button:focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px}.el-button>span{display:inline-flex;align-items:center}.el-button+.el-button{margin-left:12px}.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{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:0}.el-button.is-disabled,.el-button.is-disabled:focus,.el-button.is-disabled:hover{color:var(--el-button-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color);border-color:var(--el-button-disabled-border-color)}.el-button.is-loading{position:relative;pointer-events:none}.el-button.is-loading:before{z-index:1;pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:var(--el-mask-color-extra-light)}.el-button.is-round{border-radius:var(--el-border-radius-round)}.el-button.is-circle{border-radius:50%;padding:8px}.el-button.is-text{color:var(--el-button-text-color);border:0 solid transparent;background-color:transparent}.el-button.is-text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important}.el-button.is-text:not(.is-disabled):focus,.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}.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:focus,.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{border-color:transparent;color:var(--el-button-text-color);background:0 0;padding:2px;height:auto}.el-button.is-link:focus,.el-button.is-link:hover{color:var(--el-button-hover-link-text-color)}.el-button.is-link.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button.is-link:not(.is-disabled):focus,.el-button.is-link:not(.is-disabled):hover{border-color:transparent;background-color:transparent}.el-button.is-link:not(.is-disabled):active{color:var(--el-button-active-color);border-color:transparent;background-color:transparent}.el-button--text{border-color:transparent;background:0 0;color:var(--el-color-primary);padding-left:0;padding-right:0}.el-button--text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button--text:not(.is-disabled):focus,.el-button--text:not(.is-disabled):hover{color:var(--el-color-primary-light-3);border-color:transparent;background-color:transparent}.el-button--text:not(.is-disabled):active{color:var(--el-color-primary-dark-2);border-color:transparent;background-color:transparent}.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{color:var(--el-color-primary-light-5);background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary-light-8)}.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{color:var(--el-color-success-light-5);background-color:var(--el-color-success-light-9);border-color:var(--el-color-success-light-8)}.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{color:var(--el-color-warning-light-5);background-color:var(--el-color-warning-light-9);border-color:var(--el-color-warning-light-8)}.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{color:var(--el-color-danger-light-5);background-color:var(--el-color-danger-light-9);border-color:var(--el-color-danger-light-8)}.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{color:var(--el-color-info-light-5);background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8)}.el-button--large{--el-button-size:40px;height:var(--el-button-size);padding:12px 19px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button--large [class*=el-icon]+span{margin-left:8px}.el-button--large.is-round{padding:12px 19px}.el-button--large.is-circle{width:var(--el-button-size);padding:12px}.el-button--small{--el-button-size:24px;height:var(--el-button-size);padding:5px 11px;font-size:12px;border-radius:calc(var(--el-border-radius-base) - 1px)}.el-button--small [class*=el-icon]+span{margin-left:4px}.el-button--small.is-round{padding:5px 11px}.el-button--small.is-circle{width:var(--el-button-size);padding:5px}.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)}.el-card{border-radius:var(--el-card-border-radius);border:1px solid var(--el-card-border-color);background-color:var(--el-card-bg-color);overflow:hidden;color:var(--el-text-color-primary);transition:var(--el-transition-duration)}.el-card.is-always-shadow{box-shadow:var(--el-box-shadow-light)}.el-card.is-hover-shadow:focus,.el-card.is-hover-shadow:hover{box-shadow:var(--el-box-shadow-light)}.el-card__header{padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding);border-bottom:1px solid var(--el-card-border-color);box-sizing:border-box}.el-card__body{padding:var(--el-card-padding)}.el-link{--el-link-font-size:var(--el-font-size-base);--el-link-font-weight:var(--el-font-weight-primary);--el-link-text-color:var(--el-text-color-regular);--el-link-hover-text-color:var(--el-color-primary);--el-link-disabled-text-color:var(--el-text-color-placeholder)}.el-link{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;vertical-align:middle;position:relative;text-decoration:none;outline:0;cursor:pointer;padding:0;font-size:var(--el-link-font-size);font-weight:var(--el-link-font-weight);color:var(--el-link-text-color)}.el-link:hover{color:var(--el-link-hover-text-color)}.el-link.is-underline:hover:after{content:"";position:absolute;left:0;right:0;height:0;bottom:0;border-bottom:1px solid var(--el-link-hover-text-color)}.el-link.is-disabled{color:var(--el-link-disabled-text-color);cursor:not-allowed}.el-link [class*=el-icon-]+span{margin-left:5px}.el-link.el-link--default:after{border-color:var(--el-link-hover-text-color)}.el-link__inner{display:inline-flex;justify-content:center;align-items:center}.el-link.el-link--primary{--el-link-text-color:var(--el-color-primary);--el-link-hover-text-color:var(--el-color-primary-light-3);--el-link-disabled-text-color:var(--el-color-primary-light-5)}.el-link.el-link--primary:after{border-color:var(--el-link-text-color)}.el-link.el-link--primary.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--success{--el-link-text-color:var(--el-color-success);--el-link-hover-text-color:var(--el-color-success-light-3);--el-link-disabled-text-color:var(--el-color-success-light-5)}.el-link.el-link--success:after{border-color:var(--el-link-text-color)}.el-link.el-link--success.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--warning{--el-link-text-color:var(--el-color-warning);--el-link-hover-text-color:var(--el-color-warning-light-3);--el-link-disabled-text-color:var(--el-color-warning-light-5)}.el-link.el-link--warning:after{border-color:var(--el-link-text-color)}.el-link.el-link--warning.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--danger{--el-link-text-color:var(--el-color-danger);--el-link-hover-text-color:var(--el-color-danger-light-3);--el-link-disabled-text-color:var(--el-color-danger-light-5)}.el-link.el-link--danger:after{border-color:var(--el-link-text-color)}.el-link.el-link--danger.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--error{--el-link-text-color:var(--el-color-error);--el-link-hover-text-color:var(--el-color-error-light-3);--el-link-disabled-text-color:var(--el-color-error-light-5)}.el-link.el-link--error:after{border-color:var(--el-link-text-color)}.el-link.el-link--error.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--info{--el-link-text-color:var(--el-color-info);--el-link-hover-text-color:var(--el-color-info-light-3);--el-link-disabled-text-color:var(--el-color-info-light-5)}.el-link.el-link--info:after{border-color:var(--el-link-text-color)}.el-link.el-link--info.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-row{display:flex;flex-wrap:wrap;position:relative;box-sizing:border-box}.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-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,.el-col-0.is-guttered{display:none}.el-col-0{max-width:0%;flex:0 0 0%}.el-col-offset-0{margin-left:0}.el-col-pull-0{position:relative;right:0}.el-col-push-0{position:relative;left:0}.el-col-1{max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-offset-1{margin-left:4.1666666667%}.el-col-pull-1{position:relative;right:4.1666666667%}.el-col-push-1{position:relative;left:4.1666666667%}.el-col-2{max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-offset-2{margin-left:8.3333333333%}.el-col-pull-2{position:relative;right:8.3333333333%}.el-col-push-2{position:relative;left:8.3333333333%}.el-col-3{max-width:12.5%;flex:0 0 12.5%}.el-col-offset-3{margin-left:12.5%}.el-col-pull-3{position:relative;right:12.5%}.el-col-push-3{position:relative;left:12.5%}.el-col-4{max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-offset-4{margin-left:16.6666666667%}.el-col-pull-4{position:relative;right:16.6666666667%}.el-col-push-4{position:relative;left:16.6666666667%}.el-col-5{max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-offset-5{margin-left:20.8333333333%}.el-col-pull-5{position:relative;right:20.8333333333%}.el-col-push-5{position:relative;left:20.8333333333%}.el-col-6{max-width:25%;flex:0 0 25%}.el-col-offset-6{margin-left:25%}.el-col-pull-6{position:relative;right:25%}.el-col-push-6{position:relative;left:25%}.el-col-7{max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-offset-7{margin-left:29.1666666667%}.el-col-pull-7{position:relative;right:29.1666666667%}.el-col-push-7{position:relative;left:29.1666666667%}.el-col-8{max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-offset-8{margin-left:33.3333333333%}.el-col-pull-8{position:relative;right:33.3333333333%}.el-col-push-8{position:relative;left:33.3333333333%}.el-col-9{max-width:37.5%;flex:0 0 37.5%}.el-col-offset-9{margin-left:37.5%}.el-col-pull-9{position:relative;right:37.5%}.el-col-push-9{position:relative;left:37.5%}.el-col-10{max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-offset-10{margin-left:41.6666666667%}.el-col-pull-10{position:relative;right:41.6666666667%}.el-col-push-10{position:relative;left:41.6666666667%}.el-col-11{max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-offset-11{margin-left:45.8333333333%}.el-col-pull-11{position:relative;right:45.8333333333%}.el-col-push-11{position:relative;left:45.8333333333%}.el-col-12{max-width:50%;flex:0 0 50%}.el-col-offset-12{margin-left:50%}.el-col-pull-12{position:relative;right:50%}.el-col-push-12{position:relative;left:50%}.el-col-13{max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-offset-13{margin-left:54.1666666667%}.el-col-pull-13{position:relative;right:54.1666666667%}.el-col-push-13{position:relative;left:54.1666666667%}.el-col-14{max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-offset-14{margin-left:58.3333333333%}.el-col-pull-14{position:relative;right:58.3333333333%}.el-col-push-14{position:relative;left:58.3333333333%}.el-col-15{max-width:62.5%;flex:0 0 62.5%}.el-col-offset-15{margin-left:62.5%}.el-col-pull-15{position:relative;right:62.5%}.el-col-push-15{position:relative;left:62.5%}.el-col-16{max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-offset-16{margin-left:66.6666666667%}.el-col-pull-16{position:relative;right:66.6666666667%}.el-col-push-16{position:relative;left:66.6666666667%}.el-col-17{max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-offset-17{margin-left:70.8333333333%}.el-col-pull-17{position:relative;right:70.8333333333%}.el-col-push-17{position:relative;left:70.8333333333%}.el-col-18{max-width:75%;flex:0 0 75%}.el-col-offset-18{margin-left:75%}.el-col-pull-18{position:relative;right:75%}.el-col-push-18{position:relative;left:75%}.el-col-19{max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-offset-19{margin-left:79.1666666667%}.el-col-pull-19{position:relative;right:79.1666666667%}.el-col-push-19{position:relative;left:79.1666666667%}.el-col-20{max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-offset-20{margin-left:83.3333333333%}.el-col-pull-20{position:relative;right:83.3333333333%}.el-col-push-20{position:relative;left:83.3333333333%}.el-col-21{max-width:87.5%;flex:0 0 87.5%}.el-col-offset-21{margin-left:87.5%}.el-col-pull-21{position:relative;right:87.5%}.el-col-push-21{position:relative;left:87.5%}.el-col-22{max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-offset-22{margin-left:91.6666666667%}.el-col-pull-22{position:relative;right:91.6666666667%}.el-col-push-22{position:relative;left:91.6666666667%}.el-col-23{max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-offset-23{margin-left:95.8333333333%}.el-col-pull-23{position:relative;right:95.8333333333%}.el-col-push-23{position:relative;left:95.8333333333%}.el-col-24{max-width:100%;flex:0 0 100%}.el-col-offset-24{margin-left:100%}.el-col-pull-24{position:relative;right:100%}.el-col-push-24{position:relative;left:100%}@media only screen and (max-width:768px){.el-col-xs-0,.el-col-xs-0.is-guttered{display:none}.el-col-xs-0{max-width:0%;flex:0 0 0%}.el-col-xs-offset-0{margin-left:0}.el-col-xs-pull-0{position:relative;right:0}.el-col-xs-push-0{position:relative;left:0}.el-col-xs-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-xs-offset-1{margin-left:4.1666666667%}.el-col-xs-pull-1{position:relative;right:4.1666666667%}.el-col-xs-push-1{position:relative;left:4.1666666667%}.el-col-xs-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-xs-offset-2{margin-left:8.3333333333%}.el-col-xs-pull-2{position:relative;right:8.3333333333%}.el-col-xs-push-2{position:relative;left:8.3333333333%}.el-col-xs-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-xs-offset-3{margin-left:12.5%}.el-col-xs-pull-3{position:relative;right:12.5%}.el-col-xs-push-3{position:relative;left:12.5%}.el-col-xs-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-xs-offset-4{margin-left:16.6666666667%}.el-col-xs-pull-4{position:relative;right:16.6666666667%}.el-col-xs-push-4{position:relative;left:16.6666666667%}.el-col-xs-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-xs-offset-5{margin-left:20.8333333333%}.el-col-xs-pull-5{position:relative;right:20.8333333333%}.el-col-xs-push-5{position:relative;left:20.8333333333%}.el-col-xs-6{display:block;max-width:25%;flex:0 0 25%}.el-col-xs-offset-6{margin-left:25%}.el-col-xs-pull-6{position:relative;right:25%}.el-col-xs-push-6{position:relative;left:25%}.el-col-xs-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-xs-offset-7{margin-left:29.1666666667%}.el-col-xs-pull-7{position:relative;right:29.1666666667%}.el-col-xs-push-7{position:relative;left:29.1666666667%}.el-col-xs-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-xs-offset-8{margin-left:33.3333333333%}.el-col-xs-pull-8{position:relative;right:33.3333333333%}.el-col-xs-push-8{position:relative;left:33.3333333333%}.el-col-xs-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-xs-offset-9{margin-left:37.5%}.el-col-xs-pull-9{position:relative;right:37.5%}.el-col-xs-push-9{position:relative;left:37.5%}.el-col-xs-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-xs-offset-10{margin-left:41.6666666667%}.el-col-xs-pull-10{position:relative;right:41.6666666667%}.el-col-xs-push-10{position:relative;left:41.6666666667%}.el-col-xs-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-xs-offset-11{margin-left:45.8333333333%}.el-col-xs-pull-11{position:relative;right:45.8333333333%}.el-col-xs-push-11{position:relative;left:45.8333333333%}.el-col-xs-12{display:block;max-width:50%;flex:0 0 50%}.el-col-xs-offset-12{margin-left:50%}.el-col-xs-pull-12{position:relative;right:50%}.el-col-xs-push-12{position:relative;left:50%}.el-col-xs-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-xs-offset-13{margin-left:54.1666666667%}.el-col-xs-pull-13{position:relative;right:54.1666666667%}.el-col-xs-push-13{position:relative;left:54.1666666667%}.el-col-xs-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-xs-offset-14{margin-left:58.3333333333%}.el-col-xs-pull-14{position:relative;right:58.3333333333%}.el-col-xs-push-14{position:relative;left:58.3333333333%}.el-col-xs-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-xs-offset-15{margin-left:62.5%}.el-col-xs-pull-15{position:relative;right:62.5%}.el-col-xs-push-15{position:relative;left:62.5%}.el-col-xs-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-xs-offset-16{margin-left:66.6666666667%}.el-col-xs-pull-16{position:relative;right:66.6666666667%}.el-col-xs-push-16{position:relative;left:66.6666666667%}.el-col-xs-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-xs-offset-17{margin-left:70.8333333333%}.el-col-xs-pull-17{position:relative;right:70.8333333333%}.el-col-xs-push-17{position:relative;left:70.8333333333%}.el-col-xs-18{display:block;max-width:75%;flex:0 0 75%}.el-col-xs-offset-18{margin-left:75%}.el-col-xs-pull-18{position:relative;right:75%}.el-col-xs-push-18{position:relative;left:75%}.el-col-xs-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-xs-offset-19{margin-left:79.1666666667%}.el-col-xs-pull-19{position:relative;right:79.1666666667%}.el-col-xs-push-19{position:relative;left:79.1666666667%}.el-col-xs-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-xs-offset-20{margin-left:83.3333333333%}.el-col-xs-pull-20{position:relative;right:83.3333333333%}.el-col-xs-push-20{position:relative;left:83.3333333333%}.el-col-xs-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-xs-offset-21{margin-left:87.5%}.el-col-xs-pull-21{position:relative;right:87.5%}.el-col-xs-push-21{position:relative;left:87.5%}.el-col-xs-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-xs-offset-22{margin-left:91.6666666667%}.el-col-xs-pull-22{position:relative;right:91.6666666667%}.el-col-xs-push-22{position:relative;left:91.6666666667%}.el-col-xs-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-xs-offset-23{margin-left:95.8333333333%}.el-col-xs-pull-23{position:relative;right:95.8333333333%}.el-col-xs-push-23{position:relative;left:95.8333333333%}.el-col-xs-24{display:block;max-width:100%;flex:0 0 100%}.el-col-xs-offset-24{margin-left:100%}.el-col-xs-pull-24{position:relative;right:100%}.el-col-xs-push-24{position:relative;left:100%}}@media only screen and (min-width:768px){.el-col-sm-0,.el-col-sm-0.is-guttered{display:none}.el-col-sm-0{max-width:0%;flex:0 0 0%}.el-col-sm-offset-0{margin-left:0}.el-col-sm-pull-0{position:relative;right:0}.el-col-sm-push-0{position:relative;left:0}.el-col-sm-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-sm-offset-1{margin-left:4.1666666667%}.el-col-sm-pull-1{position:relative;right:4.1666666667%}.el-col-sm-push-1{position:relative;left:4.1666666667%}.el-col-sm-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-sm-offset-2{margin-left:8.3333333333%}.el-col-sm-pull-2{position:relative;right:8.3333333333%}.el-col-sm-push-2{position:relative;left:8.3333333333%}.el-col-sm-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-sm-offset-3{margin-left:12.5%}.el-col-sm-pull-3{position:relative;right:12.5%}.el-col-sm-push-3{position:relative;left:12.5%}.el-col-sm-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-sm-offset-4{margin-left:16.6666666667%}.el-col-sm-pull-4{position:relative;right:16.6666666667%}.el-col-sm-push-4{position:relative;left:16.6666666667%}.el-col-sm-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-sm-offset-5{margin-left:20.8333333333%}.el-col-sm-pull-5{position:relative;right:20.8333333333%}.el-col-sm-push-5{position:relative;left:20.8333333333%}.el-col-sm-6{display:block;max-width:25%;flex:0 0 25%}.el-col-sm-offset-6{margin-left:25%}.el-col-sm-pull-6{position:relative;right:25%}.el-col-sm-push-6{position:relative;left:25%}.el-col-sm-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-sm-offset-7{margin-left:29.1666666667%}.el-col-sm-pull-7{position:relative;right:29.1666666667%}.el-col-sm-push-7{position:relative;left:29.1666666667%}.el-col-sm-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-sm-offset-8{margin-left:33.3333333333%}.el-col-sm-pull-8{position:relative;right:33.3333333333%}.el-col-sm-push-8{position:relative;left:33.3333333333%}.el-col-sm-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-sm-offset-9{margin-left:37.5%}.el-col-sm-pull-9{position:relative;right:37.5%}.el-col-sm-push-9{position:relative;left:37.5%}.el-col-sm-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-sm-offset-10{margin-left:41.6666666667%}.el-col-sm-pull-10{position:relative;right:41.6666666667%}.el-col-sm-push-10{position:relative;left:41.6666666667%}.el-col-sm-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-sm-offset-11{margin-left:45.8333333333%}.el-col-sm-pull-11{position:relative;right:45.8333333333%}.el-col-sm-push-11{position:relative;left:45.8333333333%}.el-col-sm-12{display:block;max-width:50%;flex:0 0 50%}.el-col-sm-offset-12{margin-left:50%}.el-col-sm-pull-12{position:relative;right:50%}.el-col-sm-push-12{position:relative;left:50%}.el-col-sm-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-sm-offset-13{margin-left:54.1666666667%}.el-col-sm-pull-13{position:relative;right:54.1666666667%}.el-col-sm-push-13{position:relative;left:54.1666666667%}.el-col-sm-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-sm-offset-14{margin-left:58.3333333333%}.el-col-sm-pull-14{position:relative;right:58.3333333333%}.el-col-sm-push-14{position:relative;left:58.3333333333%}.el-col-sm-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-sm-offset-15{margin-left:62.5%}.el-col-sm-pull-15{position:relative;right:62.5%}.el-col-sm-push-15{position:relative;left:62.5%}.el-col-sm-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-sm-offset-16{margin-left:66.6666666667%}.el-col-sm-pull-16{position:relative;right:66.6666666667%}.el-col-sm-push-16{position:relative;left:66.6666666667%}.el-col-sm-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-sm-offset-17{margin-left:70.8333333333%}.el-col-sm-pull-17{position:relative;right:70.8333333333%}.el-col-sm-push-17{position:relative;left:70.8333333333%}.el-col-sm-18{display:block;max-width:75%;flex:0 0 75%}.el-col-sm-offset-18{margin-left:75%}.el-col-sm-pull-18{position:relative;right:75%}.el-col-sm-push-18{position:relative;left:75%}.el-col-sm-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-sm-offset-19{margin-left:79.1666666667%}.el-col-sm-pull-19{position:relative;right:79.1666666667%}.el-col-sm-push-19{position:relative;left:79.1666666667%}.el-col-sm-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-sm-offset-20{margin-left:83.3333333333%}.el-col-sm-pull-20{position:relative;right:83.3333333333%}.el-col-sm-push-20{position:relative;left:83.3333333333%}.el-col-sm-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-sm-offset-21{margin-left:87.5%}.el-col-sm-pull-21{position:relative;right:87.5%}.el-col-sm-push-21{position:relative;left:87.5%}.el-col-sm-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-sm-offset-22{margin-left:91.6666666667%}.el-col-sm-pull-22{position:relative;right:91.6666666667%}.el-col-sm-push-22{position:relative;left:91.6666666667%}.el-col-sm-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-sm-offset-23{margin-left:95.8333333333%}.el-col-sm-pull-23{position:relative;right:95.8333333333%}.el-col-sm-push-23{position:relative;left:95.8333333333%}.el-col-sm-24{display:block;max-width:100%;flex:0 0 100%}.el-col-sm-offset-24{margin-left:100%}.el-col-sm-pull-24{position:relative;right:100%}.el-col-sm-push-24{position:relative;left:100%}}@media only screen and (min-width:992px){.el-col-md-0,.el-col-md-0.is-guttered{display:none}.el-col-md-0{max-width:0%;flex:0 0 0%}.el-col-md-offset-0{margin-left:0}.el-col-md-pull-0{position:relative;right:0}.el-col-md-push-0{position:relative;left:0}.el-col-md-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-md-offset-1{margin-left:4.1666666667%}.el-col-md-pull-1{position:relative;right:4.1666666667%}.el-col-md-push-1{position:relative;left:4.1666666667%}.el-col-md-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-md-offset-2{margin-left:8.3333333333%}.el-col-md-pull-2{position:relative;right:8.3333333333%}.el-col-md-push-2{position:relative;left:8.3333333333%}.el-col-md-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-md-offset-3{margin-left:12.5%}.el-col-md-pull-3{position:relative;right:12.5%}.el-col-md-push-3{position:relative;left:12.5%}.el-col-md-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-md-offset-4{margin-left:16.6666666667%}.el-col-md-pull-4{position:relative;right:16.6666666667%}.el-col-md-push-4{position:relative;left:16.6666666667%}.el-col-md-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-md-offset-5{margin-left:20.8333333333%}.el-col-md-pull-5{position:relative;right:20.8333333333%}.el-col-md-push-5{position:relative;left:20.8333333333%}.el-col-md-6{display:block;max-width:25%;flex:0 0 25%}.el-col-md-offset-6{margin-left:25%}.el-col-md-pull-6{position:relative;right:25%}.el-col-md-push-6{position:relative;left:25%}.el-col-md-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-md-offset-7{margin-left:29.1666666667%}.el-col-md-pull-7{position:relative;right:29.1666666667%}.el-col-md-push-7{position:relative;left:29.1666666667%}.el-col-md-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-md-offset-8{margin-left:33.3333333333%}.el-col-md-pull-8{position:relative;right:33.3333333333%}.el-col-md-push-8{position:relative;left:33.3333333333%}.el-col-md-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-md-offset-9{margin-left:37.5%}.el-col-md-pull-9{position:relative;right:37.5%}.el-col-md-push-9{position:relative;left:37.5%}.el-col-md-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-md-offset-10{margin-left:41.6666666667%}.el-col-md-pull-10{position:relative;right:41.6666666667%}.el-col-md-push-10{position:relative;left:41.6666666667%}.el-col-md-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-md-offset-11{margin-left:45.8333333333%}.el-col-md-pull-11{position:relative;right:45.8333333333%}.el-col-md-push-11{position:relative;left:45.8333333333%}.el-col-md-12{display:block;max-width:50%;flex:0 0 50%}.el-col-md-offset-12{margin-left:50%}.el-col-md-pull-12{position:relative;right:50%}.el-col-md-push-12{position:relative;left:50%}.el-col-md-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-md-offset-13{margin-left:54.1666666667%}.el-col-md-pull-13{position:relative;right:54.1666666667%}.el-col-md-push-13{position:relative;left:54.1666666667%}.el-col-md-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-md-offset-14{margin-left:58.3333333333%}.el-col-md-pull-14{position:relative;right:58.3333333333%}.el-col-md-push-14{position:relative;left:58.3333333333%}.el-col-md-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-md-offset-15{margin-left:62.5%}.el-col-md-pull-15{position:relative;right:62.5%}.el-col-md-push-15{position:relative;left:62.5%}.el-col-md-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-md-offset-16{margin-left:66.6666666667%}.el-col-md-pull-16{position:relative;right:66.6666666667%}.el-col-md-push-16{position:relative;left:66.6666666667%}.el-col-md-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-md-offset-17{margin-left:70.8333333333%}.el-col-md-pull-17{position:relative;right:70.8333333333%}.el-col-md-push-17{position:relative;left:70.8333333333%}.el-col-md-18{display:block;max-width:75%;flex:0 0 75%}.el-col-md-offset-18{margin-left:75%}.el-col-md-pull-18{position:relative;right:75%}.el-col-md-push-18{position:relative;left:75%}.el-col-md-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-md-offset-19{margin-left:79.1666666667%}.el-col-md-pull-19{position:relative;right:79.1666666667%}.el-col-md-push-19{position:relative;left:79.1666666667%}.el-col-md-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-md-offset-20{margin-left:83.3333333333%}.el-col-md-pull-20{position:relative;right:83.3333333333%}.el-col-md-push-20{position:relative;left:83.3333333333%}.el-col-md-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-md-offset-21{margin-left:87.5%}.el-col-md-pull-21{position:relative;right:87.5%}.el-col-md-push-21{position:relative;left:87.5%}.el-col-md-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-md-offset-22{margin-left:91.6666666667%}.el-col-md-pull-22{position:relative;right:91.6666666667%}.el-col-md-push-22{position:relative;left:91.6666666667%}.el-col-md-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-md-offset-23{margin-left:95.8333333333%}.el-col-md-pull-23{position:relative;right:95.8333333333%}.el-col-md-push-23{position:relative;left:95.8333333333%}.el-col-md-24{display:block;max-width:100%;flex:0 0 100%}.el-col-md-offset-24{margin-left:100%}.el-col-md-pull-24{position:relative;right:100%}.el-col-md-push-24{position:relative;left:100%}}@media only screen and (min-width:1200px){.el-col-lg-0,.el-col-lg-0.is-guttered{display:none}.el-col-lg-0{max-width:0%;flex:0 0 0%}.el-col-lg-offset-0{margin-left:0}.el-col-lg-pull-0{position:relative;right:0}.el-col-lg-push-0{position:relative;left:0}.el-col-lg-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-lg-offset-1{margin-left:4.1666666667%}.el-col-lg-pull-1{position:relative;right:4.1666666667%}.el-col-lg-push-1{position:relative;left:4.1666666667%}.el-col-lg-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-lg-offset-2{margin-left:8.3333333333%}.el-col-lg-pull-2{position:relative;right:8.3333333333%}.el-col-lg-push-2{position:relative;left:8.3333333333%}.el-col-lg-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-lg-offset-3{margin-left:12.5%}.el-col-lg-pull-3{position:relative;right:12.5%}.el-col-lg-push-3{position:relative;left:12.5%}.el-col-lg-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-lg-offset-4{margin-left:16.6666666667%}.el-col-lg-pull-4{position:relative;right:16.6666666667%}.el-col-lg-push-4{position:relative;left:16.6666666667%}.el-col-lg-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-lg-offset-5{margin-left:20.8333333333%}.el-col-lg-pull-5{position:relative;right:20.8333333333%}.el-col-lg-push-5{position:relative;left:20.8333333333%}.el-col-lg-6{display:block;max-width:25%;flex:0 0 25%}.el-col-lg-offset-6{margin-left:25%}.el-col-lg-pull-6{position:relative;right:25%}.el-col-lg-push-6{position:relative;left:25%}.el-col-lg-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-lg-offset-7{margin-left:29.1666666667%}.el-col-lg-pull-7{position:relative;right:29.1666666667%}.el-col-lg-push-7{position:relative;left:29.1666666667%}.el-col-lg-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-lg-offset-8{margin-left:33.3333333333%}.el-col-lg-pull-8{position:relative;right:33.3333333333%}.el-col-lg-push-8{position:relative;left:33.3333333333%}.el-col-lg-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-lg-offset-9{margin-left:37.5%}.el-col-lg-pull-9{position:relative;right:37.5%}.el-col-lg-push-9{position:relative;left:37.5%}.el-col-lg-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-lg-offset-10{margin-left:41.6666666667%}.el-col-lg-pull-10{position:relative;right:41.6666666667%}.el-col-lg-push-10{position:relative;left:41.6666666667%}.el-col-lg-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-lg-offset-11{margin-left:45.8333333333%}.el-col-lg-pull-11{position:relative;right:45.8333333333%}.el-col-lg-push-11{position:relative;left:45.8333333333%}.el-col-lg-12{display:block;max-width:50%;flex:0 0 50%}.el-col-lg-offset-12{margin-left:50%}.el-col-lg-pull-12{position:relative;right:50%}.el-col-lg-push-12{position:relative;left:50%}.el-col-lg-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-lg-offset-13{margin-left:54.1666666667%}.el-col-lg-pull-13{position:relative;right:54.1666666667%}.el-col-lg-push-13{position:relative;left:54.1666666667%}.el-col-lg-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-lg-offset-14{margin-left:58.3333333333%}.el-col-lg-pull-14{position:relative;right:58.3333333333%}.el-col-lg-push-14{position:relative;left:58.3333333333%}.el-col-lg-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-lg-offset-15{margin-left:62.5%}.el-col-lg-pull-15{position:relative;right:62.5%}.el-col-lg-push-15{position:relative;left:62.5%}.el-col-lg-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-lg-offset-16{margin-left:66.6666666667%}.el-col-lg-pull-16{position:relative;right:66.6666666667%}.el-col-lg-push-16{position:relative;left:66.6666666667%}.el-col-lg-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-lg-offset-17{margin-left:70.8333333333%}.el-col-lg-pull-17{position:relative;right:70.8333333333%}.el-col-lg-push-17{position:relative;left:70.8333333333%}.el-col-lg-18{display:block;max-width:75%;flex:0 0 75%}.el-col-lg-offset-18{margin-left:75%}.el-col-lg-pull-18{position:relative;right:75%}.el-col-lg-push-18{position:relative;left:75%}.el-col-lg-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-lg-offset-19{margin-left:79.1666666667%}.el-col-lg-pull-19{position:relative;right:79.1666666667%}.el-col-lg-push-19{position:relative;left:79.1666666667%}.el-col-lg-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-lg-offset-20{margin-left:83.3333333333%}.el-col-lg-pull-20{position:relative;right:83.3333333333%}.el-col-lg-push-20{position:relative;left:83.3333333333%}.el-col-lg-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-lg-offset-21{margin-left:87.5%}.el-col-lg-pull-21{position:relative;right:87.5%}.el-col-lg-push-21{position:relative;left:87.5%}.el-col-lg-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-lg-offset-22{margin-left:91.6666666667%}.el-col-lg-pull-22{position:relative;right:91.6666666667%}.el-col-lg-push-22{position:relative;left:91.6666666667%}.el-col-lg-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-lg-offset-23{margin-left:95.8333333333%}.el-col-lg-pull-23{position:relative;right:95.8333333333%}.el-col-lg-push-23{position:relative;left:95.8333333333%}.el-col-lg-24{display:block;max-width:100%;flex:0 0 100%}.el-col-lg-offset-24{margin-left:100%}.el-col-lg-pull-24{position:relative;right:100%}.el-col-lg-push-24{position:relative;left:100%}}@media only screen and (min-width:1920px){.el-col-xl-0,.el-col-xl-0.is-guttered{display:none}.el-col-xl-0{max-width:0%;flex:0 0 0%}.el-col-xl-offset-0{margin-left:0}.el-col-xl-pull-0{position:relative;right:0}.el-col-xl-push-0{position:relative;left:0}.el-col-xl-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-xl-offset-1{margin-left:4.1666666667%}.el-col-xl-pull-1{position:relative;right:4.1666666667%}.el-col-xl-push-1{position:relative;left:4.1666666667%}.el-col-xl-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-xl-offset-2{margin-left:8.3333333333%}.el-col-xl-pull-2{position:relative;right:8.3333333333%}.el-col-xl-push-2{position:relative;left:8.3333333333%}.el-col-xl-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-xl-offset-3{margin-left:12.5%}.el-col-xl-pull-3{position:relative;right:12.5%}.el-col-xl-push-3{position:relative;left:12.5%}.el-col-xl-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-xl-offset-4{margin-left:16.6666666667%}.el-col-xl-pull-4{position:relative;right:16.6666666667%}.el-col-xl-push-4{position:relative;left:16.6666666667%}.el-col-xl-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-xl-offset-5{margin-left:20.8333333333%}.el-col-xl-pull-5{position:relative;right:20.8333333333%}.el-col-xl-push-5{position:relative;left:20.8333333333%}.el-col-xl-6{display:block;max-width:25%;flex:0 0 25%}.el-col-xl-offset-6{margin-left:25%}.el-col-xl-pull-6{position:relative;right:25%}.el-col-xl-push-6{position:relative;left:25%}.el-col-xl-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-xl-offset-7{margin-left:29.1666666667%}.el-col-xl-pull-7{position:relative;right:29.1666666667%}.el-col-xl-push-7{position:relative;left:29.1666666667%}.el-col-xl-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-xl-offset-8{margin-left:33.3333333333%}.el-col-xl-pull-8{position:relative;right:33.3333333333%}.el-col-xl-push-8{position:relative;left:33.3333333333%}.el-col-xl-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-xl-offset-9{margin-left:37.5%}.el-col-xl-pull-9{position:relative;right:37.5%}.el-col-xl-push-9{position:relative;left:37.5%}.el-col-xl-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-xl-offset-10{margin-left:41.6666666667%}.el-col-xl-pull-10{position:relative;right:41.6666666667%}.el-col-xl-push-10{position:relative;left:41.6666666667%}.el-col-xl-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-xl-offset-11{margin-left:45.8333333333%}.el-col-xl-pull-11{position:relative;right:45.8333333333%}.el-col-xl-push-11{position:relative;left:45.8333333333%}.el-col-xl-12{display:block;max-width:50%;flex:0 0 50%}.el-col-xl-offset-12{margin-left:50%}.el-col-xl-pull-12{position:relative;right:50%}.el-col-xl-push-12{position:relative;left:50%}.el-col-xl-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-xl-offset-13{margin-left:54.1666666667%}.el-col-xl-pull-13{position:relative;right:54.1666666667%}.el-col-xl-push-13{position:relative;left:54.1666666667%}.el-col-xl-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-xl-offset-14{margin-left:58.3333333333%}.el-col-xl-pull-14{position:relative;right:58.3333333333%}.el-col-xl-push-14{position:relative;left:58.3333333333%}.el-col-xl-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-xl-offset-15{margin-left:62.5%}.el-col-xl-pull-15{position:relative;right:62.5%}.el-col-xl-push-15{position:relative;left:62.5%}.el-col-xl-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-xl-offset-16{margin-left:66.6666666667%}.el-col-xl-pull-16{position:relative;right:66.6666666667%}.el-col-xl-push-16{position:relative;left:66.6666666667%}.el-col-xl-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-xl-offset-17{margin-left:70.8333333333%}.el-col-xl-pull-17{position:relative;right:70.8333333333%}.el-col-xl-push-17{position:relative;left:70.8333333333%}.el-col-xl-18{display:block;max-width:75%;flex:0 0 75%}.el-col-xl-offset-18{margin-left:75%}.el-col-xl-pull-18{position:relative;right:75%}.el-col-xl-push-18{position:relative;left:75%}.el-col-xl-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-xl-offset-19{margin-left:79.1666666667%}.el-col-xl-pull-19{position:relative;right:79.1666666667%}.el-col-xl-push-19{position:relative;left:79.1666666667%}.el-col-xl-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-xl-offset-20{margin-left:83.3333333333%}.el-col-xl-pull-20{position:relative;right:83.3333333333%}.el-col-xl-push-20{position:relative;left:83.3333333333%}.el-col-xl-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-xl-offset-21{margin-left:87.5%}.el-col-xl-pull-21{position:relative;right:87.5%}.el-col-xl-push-21{position:relative;left:87.5%}.el-col-xl-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-xl-offset-22{margin-left:91.6666666667%}.el-col-xl-pull-22{position:relative;right:91.6666666667%}.el-col-xl-push-22{position:relative;left:91.6666666667%}.el-col-xl-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-xl-offset-23{margin-left:95.8333333333%}.el-col-xl-pull-23{position:relative;right:95.8333333333%}.el-col-xl-push-23{position:relative;left:95.8333333333%}.el-col-xl-24{display:block;max-width:100%;flex:0 0 100%}.el-col-xl-offset-24{margin-left:100%}.el-col-xl-pull-24{position:relative;right:100%}.el-col-xl-push-24{position:relative;left:100%}}.el-image__error,.el-image__inner,.el-image__placeholder,.el-image__wrapper{width:100%;height:100%}.el-image{position:relative;display:inline-block;overflow:hidden}.el-image__inner{vertical-align:top;opacity:1}.el-image__inner.is-loading{opacity:0}.el-image__wrapper{position:absolute;top:0;left:0}.el-image__placeholder{background:var(--el-fill-color-light)}.el-image__error{display:flex;justify-content:center;align-items:center;font-size:14px;background:var(--el-fill-color-light);color:var(--el-text-color-placeholder);vertical-align:middle}.el-image__preview{cursor:pointer}.el-image-viewer__wrapper{position:fixed;top:0;right:0;bottom:0;left:0}.el-image-viewer__btn{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;border-radius:50%;opacity:.8;cursor:pointer;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-image-viewer__btn .el-icon{font-size:inherit;cursor:pointer}.el-image-viewer__close{top:40px;right:40px;width:40px;height:40px;font-size:40px}.el-image-viewer__canvas{width:100%;height:100%;display:flex;justify-content:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-image-viewer__actions{left:50%;bottom:30px;transform:translate(-50%);width:282px;height:44px;padding:0 23px;background-color:var(--el-text-color-regular);border-color:#fff;border-radius:22px}.el-image-viewer__actions__inner{width:100%;height:100%;text-align:justify;cursor:default;font-size:23px;color:#fff;display:flex;align-items:center;justify-content:space-around}.el-image-viewer__prev{top:50%;transform:translateY(-50%);left:40px;width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__next{top:50%;transform:translateY(-50%);right:40px;text-indent:2px;width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__close{width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__mask{position:absolute;width:100%;height:100%;top:0;left:0;opacity:.5;background:#000}.viewer-fade-enter-active{-webkit-animation:viewer-fade-in var(--el-transition-duration);animation:viewer-fade-in var(--el-transition-duration)}.viewer-fade-leave-active{-webkit-animation:viewer-fade-out var(--el-transition-duration);animation:viewer-fade-out var(--el-transition-duration)}@-webkit-keyframes viewer-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes viewer-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@-webkit-keyframes viewer-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes viewer-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}.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-textarea{position:relative;display:inline-block;width:100%;vertical-align:bottom;font-size:var(--el-font-size-base)}.el-textarea__inner{position:relative;display:block;resize:vertical;padding:5px 11px;line-height:1.5;box-sizing:border-box;width:100%;font-size:inherit;font-family:inherit;color:var(--el-input-text-color,var(--el-text-color-regular));background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;-webkit-appearance:none;box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));transition:var(--el-transition-box-shadow);border:none}.el-textarea__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:-ms-input-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{outline:0;box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-textarea .el-input__count{color:var(--el-color-info);background:var(--el-fill-color-blank);position:absolute;font-size:12px;line-height:14px;bottom:5px;right:10px}.el-textarea.is-disabled .el-textarea__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color);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:-ms-input-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{border-color:var(--el-color-danger)}.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{--el-input-height:var(--el-component-size);position:relative;font-size:var(--el-font-size-base);display:inline-flex;width:100%;line-height:var(--el-input-height);box-sizing:border-box;vertical-align:middle}.el-input::-webkit-scrollbar{z-index:11;width:6px}.el-input::-webkit-scrollbar:horizontal{height:6px}.el-input::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:var(--el-text-color-disabled)}.el-input::-webkit-scrollbar-corner{background:var(--el-fill-color-blank)}.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);font-size:14px;cursor:pointer}.el-input .el-input__clear:hover,.el-input .el-input__password:hover{color:var(--el-input-clear-hover-color)}.el-input .el-input__count{height:100%;display:inline-flex;align-items:center;color:var(--el-color-info);font-size:12px}.el-input .el-input__count .el-input__count-inner{background:var(--el-fill-color-blank);line-height:initial;display:inline-block;padding-left:8px}.el-input__wrapper{display:inline-flex;flex-grow:1;align-items:center;justify-content:center;padding:1px 11px;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));transition:var(--el-transition-box-shadow);box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset}.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__inner{--el-input-inner-height:calc(var(--el-input-height, 32px) - 2px);width:100%;flex-grow:1;-webkit-appearance:none;color:var(--el-input-text-color,var(--el-text-color-regular));font-size:inherit;height:var(--el-input-inner-height);line-height:var(--el-input-inner-height);padding:0;outline:0;border:none;background:0 0;box-sizing:border-box}.el-input__inner:focus{outline:0}.el-input__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner:-ms-input-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__prefix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));transition:all var(--el-transition-duration);pointer-events:none}.el-input__prefix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.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{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));transition:all var(--el-transition-duration);pointer-events:none}.el-input__suffix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.el-input__suffix-inner>:first-child{margin-left:8px}.el-input .el-input__icon{height:inherit;line-height:inherit;display:flex;justify-content:center;align-items:center;transition:all var(--el-transition-duration);margin-left:8px}.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}.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:-ms-input-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-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{--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{--el-input-inner-height:calc(var(--el-input-height, 24px) - 2px)}.el-input-group{display:inline-flex;width:100%;align-items:stretch}.el-input-group__append,.el-input-group__prepend{background-color:var(--el-fill-color-light);color:var(--el-color-info);position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:100%;border-radius:var(--el-input-border-radius);padding:0 20px;white-space:nowrap}.el-input-group__append:focus,.el-input-group__prepend:focus{outline:0}.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;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-input__wrapper,.el-input-group__append div.el-select:hover .el-input__wrapper,.el-input-group__prepend button.el-button,.el-input-group__prepend button.el-button:hover,.el-input-group__prepend div.el-select .el-input__wrapper,.el-input-group__prepend div.el-select:hover .el-input__wrapper{border-color:transparent;background-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-right:0;border-top-right-radius:0;border-bottom-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;border-top-left-radius:0;border-bottom-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-group--prepend>.el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__wrapper{border-top-right-radius:0;border-bottom-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--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__wrapper{box-shadow:1px 0 0 0 var(--el-input-focus-border-color) inset,1px 0 0 0 var(--el-input-focus-border-color),0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important;z-index:2}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__wrapper:focus{outline:0;z-index:2;box-shadow:1px 0 0 0 var(--el-input-focus-border-color) inset,1px 0 0 0 var(--el-input-focus-border-color),0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important}.el-input-group--prepend .el-input-group__prepend .el-select:hover .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select:hover .el-input__wrapper{z-index:1;box-shadow:1px 0 0 0 var(--el-input-hover-border-color) inset,1px 0 0 0 var(--el-input-hover-border-color),0 1px 0 0 var(--el-input-hover-border-color) inset,0 -1px 0 0 var(--el-input-hover-border-color) inset!important}.el-input-group--append>.el-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.el-input-group--append .el-input-group__append .el-select .el-input .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select .el-input .el-input__wrapper{border-top-left-radius:0;border-bottom-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-group--append .el-input-group__append .el-select .el-input.is-focus .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select .el-input.is-focus .el-input__wrapper{z-index:2;box-shadow:-1px 0 0 0 var(--el-input-focus-border-color),-1px 0 0 0 var(--el-input-focus-border-color) inset,0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important}.el-input-group--append .el-input-group__append .el-select:hover .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select:hover .el-input__wrapper{z-index:1;box-shadow:-1px 0 0 0 var(--el-input-hover-border-color),-1px 0 0 0 var(--el-input-hover-border-color) inset,0 1px 0 0 var(--el-input-hover-border-color) inset,0 -1px 0 0 var(--el-input-hover-border-color) inset!important}.el-tag{--el-tag-font-size:12px;--el-tag-border-radius:4px;--el-tag-border-radius-rounded:9999px}.el-tag{--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-text-color:var(--el-color-primary);background-color:var(--el-tag-bg-color);border-color:var(--el-tag-border-color);color:var(--el-tag-text-color);display:inline-flex;justify-content:center;align-items:center;height:24px;padding:0 9px;font-size:var(--el-tag-font-size);line-height:1;border-width:1px;border-style:solid;border-radius:var(--el-tag-border-radius);box-sizing:border-box;white-space:nowrap;--el-icon-size:14px}.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.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.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)}.el-tag .el-tag__close:hover{color:var(--el-color-white);background-color:var(--el-tag-hover-color)}.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-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-text-color:var(--el-color-white)}.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--primary,.el-tag--dark.el-tag--success,.el-tag--dark.el-tag--warning,.el-tag--dark.el-tag--danger,.el-tag--dark.el-tag--error,.el-tag--dark.el-tag--info{--el-tag-text-color:var(--el-color-white)}.el-tag--plain{--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary);--el-tag-bg-color:var(--el-fill-color-blank)}.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{padding:0 11px;height:32px;--el-icon-size:16px}.el-tag--large .el-tag__close{margin-left:8px}.el-tag--large.is-closable{padding-right:7px}.el-tag--small{padding:0 7px;height:20px;--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__item{font-size:var(--el-font-size-base);padding:0 32px 0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--el-text-color-regular);height:34px;line-height:34px;box-sizing:border-box;cursor:pointer}.el-select-dropdown__item.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select-dropdown__item.hover,.el-select-dropdown__item:hover{background-color:var(--el-fill-color-light)}.el-select-dropdown__item.selected{color:var(--el-color-primary);font-weight:700}.el-select-group{margin:0;padding:0}.el-select-group__wrap{position:relative;list-style:none;margin:0;padding:0}.el-select-group__wrap:not(:last-of-type){padding-bottom:24px}.el-select-group__wrap:not(:last-of-type):after{content:"";position:absolute;display:block;left:20px;right:20px;bottom:12px;height:1px;background:var(--el-border-color-light)}.el-select-group__split-dash{position:absolute;left:20px;right:20px;height:1px;background:var(--el-border-color-light)}.el-select-group__title{padding-left:20px;font-size:12px;color:var(--el-color-info);line-height:30px}.el-select-group .el-select-dropdown__item{padding-left:20px}.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)}.el-scrollbar{overflow:hidden;position:relative;height:100%}.el-scrollbar__wrap{overflow:auto;height:100%}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{display:none}.el-scrollbar__thumb{position:relative;display:block;width:0;height:0;cursor:pointer;border-radius:inherit;background-color:var(--el-scrollbar-bg-color,var(--el-text-color-secondary));transition:var(--el-transition-duration) background-color;opacity:var(--el-scrollbar-opacity,.3)}.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{position:absolute;right:2px;bottom:2px;z-index:1;border-radius:4px}.el-scrollbar__bar.is-vertical{width:6px;top:2px}.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{z-index:calc(var(--el-index-top) + 1);border-radius:var(--el-border-radius-base);box-sizing:border-box}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected{color:var(--el-color-primary);background-color:var(--el-bg-color-overlay)}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected.hover{background-color:var(--el-fill-color-light)}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected:after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--el-color-primary);-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;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%;transform:translateY(-50%);width:12px;height:12px}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected.is-disabled:after{background-color:var(--el-text-color-disabled)}.el-select-dropdown .el-select-dropdown__option-item.is-selected:after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--el-color-primary);-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;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%;transform:translateY(-50%);width:12px;height:12px}.el-select-dropdown .el-scrollbar.is-empty .el-select-dropdown__list{padding:0}.el-select-dropdown .el-select-dropdown__item.is-disabled:hover{background-color:unset}.el-select-dropdown .el-select-dropdown__item.is-disabled.selected{color:var(--el-text-color-disabled)}.el-select-dropdown__empty{padding:10px 0;margin:0;text-align:center;color:var(--el-text-color-secondary);font-size:var(--el-select-font-size)}.el-select-dropdown__wrap{max-height:274px}.el-select-dropdown__list{list-style:none;padding:6px 0;margin:0;box-sizing:border-box}.el-select{--el-select-border-color-hover:var(--el-border-color-hover);--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{display:inline-block;position:relative;vertical-align:middle;line-height:32px}.el-select__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-box-shadow-light)}.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-top-color:transparent;border-left-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-left-color:transparent;border-bottom-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 .el-select-tags-wrapper.has-prefix{margin-left:6px}.el-select--large{line-height:40px}.el-select--large .el-select-tags-wrapper.has-prefix{margin-left:8px}.el-select--small{line-height:24px}.el-select--small .el-select-tags-wrapper.has-prefix{margin-left:4px}.el-select .el-select__tags>span{display:inline-block}.el-select:hover:not(.el-select--disabled) .el-input__wrapper{box-shadow:0 0 0 1px var(--el-select-border-color-hover) inset}.el-select .el-select__tags-text{display:inline-block;line-height:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-select .el-input__wrapper{cursor:pointer}.el-select .el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-select-input-focus-border-color) inset!important}.el-select .el-input__inner{cursor:pointer}.el-select .el-input{display:flex}.el-select .el-input .el-select__caret{color:var(--el-select-input-color);font-size:var(--el-select-input-font-size);transition:transform var(--el-transition-duration);transform:rotate(0);cursor:pointer}.el-select .el-input .el-select__caret.is-reverse{transform:rotate(-180deg)}.el-select .el-input .el-select__caret.is-show-close{font-size:var(--el-select-font-size);text-align:center;transform:rotate(0);border-radius:var(--el-border-radius-circle);color:var(--el-select-input-color);transition:var(--el-transition-color)}.el-select .el-input .el-select__caret.is-show-close:hover{color:var(--el-select-close-hover-color)}.el-select .el-input .el-select__caret.el-icon{position:relative;height:inherit;z-index:2}.el-select .el-input.is-disabled .el-input__wrapper{cursor:not-allowed}.el-select .el-input.is-disabled .el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-select-disabled-border) inset}.el-select .el-input.is-disabled .el-input__inner,.el-select .el-input.is-disabled .el-select__caret{cursor:not-allowed}.el-select .el-input.is-focus .el-input__wrapper{box-shadow:0 0 0 1px var(--el-select-input-focus-border-color) inset!important}.el-select__input{border:none;outline:0;padding:0;margin-left:15px;color:var(--el-select-multiple-input-color);font-size:var(--el-select-font-size);-webkit-appearance:none;-moz-appearance:none;appearance:none;height:28px;background-color:transparent}.el-select__input.is-small{height:14px}.el-select__close{cursor:pointer;position:absolute;top:8px;z-index:var(--el-index-top);right:25px;color:var(--el-select-input-color);line-height:18px;font-size:var(--el-select-input-font-size)}.el-select__close:hover{color:var(--el-select-close-hover-color)}.el-select__tags{position:absolute;line-height:normal;top:50%;transform:translateY(-50%);white-space:normal;z-index:var(--el-index-normal);display:flex;align-items:center;flex-wrap:wrap}.el-select__collapse-tags{white-space:normal;z-index:var(--el-index-normal);display:flex;align-items:center;flex-wrap:wrap}.el-select__collapse-tag{line-height:inherit;height:inherit;display:flex}.el-select .el-select__tags .el-tag{box-sizing:border-box;border-color:transparent;margin:2px 6px 2px 0}.el-select .el-select__tags .el-tag:last-child{margin-right:0}.el-select .el-select__tags .el-tag .el-icon-close{background-color:var(--el-text-color-placeholder);right:-7px;top:0;color:#fff}.el-select .el-select__tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-select .el-select__tags .el-tag .el-icon-close:before{display:block;transform:translateY(.5px)}.el-select .el-select__tags .el-tag--info{background-color:var(--el-fill-color)}.el-input-number{position:relative;display:inline-block;width:150px;line-height:30px}.el-input-number .el-input__wrapper{padding-left:42px;padding-right:42px}.el-input-number .el-input__inner{-webkit-appearance:none;-moz-appearance:textfield;text-align:center;line-height:1}.el-input-number .el-input__inner::-webkit-inner-spin-button,.el-input-number .el-input__inner::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.el-input-number__decrease,.el-input-number__increase{display:flex;justify-content:center;align-items:center;height:auto;position:absolute;z-index:1;top:1px;bottom:1px;width:32px;background:var(--el-fill-color-light);color:var(--el-text-color-regular);cursor:pointer;font-size:13px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.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{right:1px;border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0;border-left:var(--el-border)}.el-input-number__decrease{left:1px;border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);border-right:var(--el-border)}.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{width:180px;line-height:38px}.el-input-number--large .el-input-number__decrease,.el-input-number--large .el-input-number__increase{width:40px;font-size:14px}.el-input-number--large .el-input__wrapper{padding-left:47px;padding-right:47px}.el-input-number--small{width:120px;line-height:22px}.el-input-number--small .el-input-number__decrease,.el-input-number--small .el-input-number__increase{width:24px;font-size:12px}.el-input-number--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{bottom:auto;left:auto;border-radius:0 var(--el-border-radius-base) 0 0;border-bottom:var(--el-border)}.el-input-number.is-controls-right .el-input-number__decrease{right:1px;top:auto;left:auto;border-right:none;border-left:var(--el-border);border-radius:0 0 var(--el-border-radius-base) 0}.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}.el-progress{position:relative;line-height:1;display:flex;align-items:center}.el-progress__text{font-size:14px;color:var(--el-text-color-regular);margin-left:5px;min-width:50px;line-height:1}.el-progress__text i{vertical-align:middle;display:block}.el-progress--circle,.el-progress--dashboard{display:inline-block}.el-progress--circle .el-progress__text,.el-progress--dashboard .el-progress__text{position:absolute;top:50%;left:0;width:100%;text-align:center;margin:0;transform:translateY(-50%)}.el-progress--circle .el-progress__text i,.el-progress--dashboard .el-progress__text i{vertical-align:middle;display:inline-block}.el-progress--without-text .el-progress__text{display:none}.el-progress--without-text .el-progress-bar{padding-right:0;margin-right:0;display:block}.el-progress--text-inside .el-progress-bar{padding-right:0;margin-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{flex-grow:1;box-sizing:border-box}.el-progress-bar__outer{height:6px;border-radius:100px;background-color:var(--el-border-color-lighter);overflow:hidden;position:relative;vertical-align:middle}.el-progress-bar__inner{position:absolute;left:0;top:0;height:100%;background-color:var(--el-color-primary);text-align:right;border-radius:100px;line-height:1;white-space:nowrap;transition:width .6s ease}.el-progress-bar__inner:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-progress-bar__inner--indeterminate{transform:translateZ(0);-webkit-animation:indeterminate 3s infinite;animation:indeterminate 3s infinite}.el-progress-bar__innerText{display:inline-block;vertical-align:middle;color:#fff;font-size:12px;margin:0 5px}@-webkit-keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@-webkit-keyframes indeterminate{0%{left:-100%}to{left:100%}}@keyframes indeterminate{0%{left:-100%}to{left:100%}}.batch-text[data-v-636f1d71]{font-size:14px;color:var(--el-color-info);margin-bottom:8px;font-weight:500}.step-text[data-v-636f1d71]{font-weight:500}.preview-container[data-v-636f1d71]{margin-top:12px;display:flex;justify-content:center}.preview-img[data-v-636f1d71]{max-width:200px;max-height:200px;min-width:64px;min-height:64px;width:auto;height:auto;border-radius:8px;box-shadow:0 4px 12px #00000026;border:1px solid var(--el-border-color-lighter);animation:fadeIn-636f1d71 .2s ease-in-out}@keyframes fadeIn-636f1d71{0%{opacity:.6}to{opacity:1}}.view-images[data-v-636f1d71],.gen-text[data-v-636f1d71]{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-636f1d71]{font-weight:400;min-height:40px}.view-images[data-v-636f1d71]: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}.el-slider{width:100%;height:32px;display:flex;align-items:center}.el-slider__runway{flex:1;height:var(--el-slider-height);background-color:var(--el-slider-runway-bg-color);border-radius:var(--el-slider-border-radius);position:relative;cursor:pointer}.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.hover,.el-slider__runway.is-disabled .el-slider__button-wrapper:hover,.el-slider__runway.is-disabled .el-slider__button-wrapper.dragging{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.hover,.el-slider__runway.is-disabled .el-slider__button:hover,.el-slider__runway.is-disabled .el-slider__button.dragging{cursor:not-allowed}.el-slider__input{flex-shrink:0;width:130px}.el-slider__bar{height:var(--el-slider-height);background-color:var(--el-slider-main-bg-color);border-top-left-radius:var(--el-slider-border-radius);border-bottom-left-radius:var(--el-slider-border-radius);position:absolute}.el-slider__button-wrapper{height:var(--el-slider-button-wrapper-size);width:var(--el-slider-button-wrapper-size);position:absolute;z-index:1;top:var(--el-slider-button-wrapper-offset);transform:translate(-50%);background-color:transparent;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;line-height:normal;outline:0}.el-slider__button-wrapper:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-slider__button-wrapper.hover,.el-slider__button-wrapper:hover{cursor:-webkit-grab;cursor:grab}.el-slider__button-wrapper.dragging{cursor:-webkit-grabbing;cursor:grabbing}.el-slider__button{display:inline-block;width:var(--el-slider-button-size);height:var(--el-slider-button-size);vertical-align:middle;border:solid 2px var(--el-slider-main-bg-color);background-color:var(--el-color-white);border-radius:50%;box-sizing:border-box;transition:var(--el-transition-duration-fast);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.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:-webkit-grab;cursor:grab}.el-slider__button.dragging{cursor:-webkit-grabbing;cursor:grabbing}.el-slider__stop{position:absolute;height:var(--el-slider-height);width:var(--el-slider-height);border-radius:var(--el-border-radius-circle);background-color:var(--el-slider-stop-bg-color);transform:translate(-50%)}.el-slider__marks{top:0;left:12px;width:18px;height:100%}.el-slider__marks-text{position:absolute;transform:translate(-50%);font-size:14px;color:var(--el-color-info);margin-top:15px}.el-slider.is-vertical{position:relative;display:inline-flex;width:auto;height:100%;flex:0}.el-slider.is-vertical .el-slider__runway{width:var(--el-slider-height);height:100%;margin:0 16px}.el-slider.is-vertical .el-slider__bar{width:var(--el-slider-height);height:auto;border-radius:0 0 3px 3px}.el-slider.is-vertical .el-slider__button-wrapper{top:auto;left:var(--el-slider-button-wrapper-offset);transform:translateY(50%)}.el-slider.is-vertical .el-slider__stop{transform:translateY(50%)}.el-slider.is-vertical .el-slider__marks-text{margin-top:0;left:15px;transform:translateY(50%)}.el-slider--large{height:40px}.el-slider--small{height:24px}.align-vertical[data-v-ec7e7ec1]{display:flex;align-items:center;height:100%}.el-switch{--el-switch-on-color:var(--el-color-primary);--el-switch-off-color:var(--el-border-color)}.el-switch{display:inline-flex;align-items:center;position:relative;font-size:14px;line-height:20px;height:32px;vertical-align:middle}.el-switch.is-disabled .el-switch__core,.el-switch.is-disabled .el-switch__label{cursor:not-allowed}.el-switch__label{transition:var(--el-transition-duration-fast);height:20px;display:inline-block;font-size:14px;font-weight:500;cursor:pointer;vertical-align:middle;color:var(--el-text-color-primary)}.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 *{line-height:1;font-size:14px;display:inline-block}.el-switch__label .el-icon{height:inherit}.el-switch__label .el-icon svg{vertical-align:middle}.el-switch__input{position:absolute;width:0;height:0;opacity:0;margin:0}.el-switch__input:focus-visible~.el-switch__core{outline:2px solid var(--el-switch-on-color);outline-offset:1px}.el-switch__core{margin:0;display:inline-block;position:relative;width:40px;height:20px;border:1px solid var(--el-switch-border-color,var(--el-switch-off-color));outline:0;border-radius:10px;box-sizing:border-box;background:var(--el-switch-off-color);cursor:pointer;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration);vertical-align:middle}.el-switch__core .el-switch__inner{position:absolute;top:1px;left:1px;transition:all var(--el-transition-duration);width:16px;height:16px;display:flex;justify-content:center;align-items:center;left:50%;white-space:nowrap}.el-switch__core .el-switch__inner .is-icon,.el-switch__core .el-switch__inner .is-text{color:var(--el-color-white);transition:opacity var(--el-transition-duration);position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-switch__core .el-switch__action{position:absolute;top:1px;left:1px;border-radius:var(--el-border-radius-circle);transition:all var(--el-transition-duration);width:16px;height:16px;background-color:var(--el-color-white);display:flex;justify-content:center;align-items:center;color:var(--el-switch-off-color)}.el-switch__core .el-switch__action .is-icon,.el-switch__core .el-switch__action .is-text{transition:opacity var(--el-transition-duration);position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-switch__core .is-text{font-size:12px}.el-switch__core .is-show{opacity:1}.el-switch__core .is-hide{opacity:0}.el-switch.is-checked .el-switch__core{border-color:var(--el-switch-border-color,var(--el-switch-on-color));background-color:var(--el-switch-on-color)}.el-switch.is-checked .el-switch__core .el-switch__action{left:100%;margin-left:-17px;color:var(--el-switch-on-color)}.el-switch.is-checked .el-switch__core .el-switch__inner{left:50%;white-space:nowrap;margin-left:-17px}.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;line-height:24px;height:40px}.el-switch--large .el-switch__label{height:24px;font-size:14px}.el-switch--large .el-switch__label *{font-size:14px}.el-switch--large .el-switch__core{width:50px;height:24px;border-radius:12px}.el-switch--large .el-switch__core .el-switch__inner,.el-switch--large .el-switch__core .el-switch__action{width:20px;height:20px}.el-switch--large.is-checked .el-switch__core .el-switch__action,.el-switch--large.is-checked .el-switch__core .el-switch__inner{margin-left:-21px}.el-switch--small{font-size:12px;line-height:16px;height:24px}.el-switch--small .el-switch__label{height:16px;font-size:12px}.el-switch--small .el-switch__label *{font-size:12px}.el-switch--small .el-switch__core{width:30px;height:16px;border-radius:8px}.el-switch--small .el-switch__core .el-switch__inner,.el-switch--small .el-switch__core .el-switch__action{width:12px;height:12px}.el-switch--small.is-checked .el-switch__core .el-switch__action,.el-switch--small.is-checked .el-switch__core .el-switch__inner{margin-left:-13px}h3[data-v-cf07eac2]{margin:0}h4[data-v-cf07eac2],h5[data-v-cf07eac2]{margin-bottom:0}.tag-select[data-v-cf07eac2]{display:flex;justify-content:space-between;gap:32px;padding:0 8px;width:240px}.tag-select[data-v-cf07eac2]:hover{background-color:#646464!important}.trigger-select[data-v-cf07eac2]{width:30px;height:30px}[data-v-cf07eac2] .trigger-select .el-input__wrapper{padding:0}[data-v-cf07eac2] .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{overflow-x:hidden}.el-carousel--vertical{overflow-y:hidden}.el-carousel__container{position:relative;height:300px}.el-carousel__arrow{border:none;outline:0;padding:0;margin:0;height:var(--el-carousel-arrow-size);width:var(--el-carousel-arrow-size);cursor:pointer;transition:var(--el-transition-duration);border-radius:50%;background-color:var(--el-carousel-arrow-background);color:#fff;position:absolute;top:50%;z-index:10;transform:translateY(-50%);text-align:center;font-size:var(--el-carousel-arrow-font-size);display:inline-flex;justify-content:center;align-items:center}.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{position:absolute;list-style:none;margin:0;padding:0;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);text-align:center;position:static;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--labels{left:0;right:0;transform:none;text-align:center}.el-carousel__indicators--labels .el-carousel__button{height:auto;width:auto;padding:2px 18px;font-size:12px}.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{width:var(--el-carousel-indicator-height);height:calc(var(--el-carousel-indicator-width)/ 2)}.el-carousel__indicator.is-active button{opacity:1}.el-carousel__button{display:block;opacity:.48;width:var(--el-carousel-indicator-width);height:var(--el-carousel-indicator-height);background-color:#fff;border:none;outline:0;padding:0;margin:0;cursor:pointer;transition:var(--el-transition-duration)}.carousel-arrow-left-enter-from,.carousel-arrow-left-leave-active{transform:translateY(-50%) translate(-10px);opacity:0}.carousel-arrow-right-enter-from,.carousel-arrow-right-leave-active{transform:translateY(-50%) translate(10px);opacity:0}.el-carousel__item{position:absolute;top:0;left:0;width:100%;height:100%;display:inline-block;overflow:hidden;z-index:calc(var(--el-index-normal) - 1)}.el-carousel__item.is-active{z-index:calc(var(--el-index-normal) - 1)}.el-carousel__item.is-animating{transition:transform .4s ease-in-out}.el-carousel__item--card{width:50%;transition:transform .4s ease-in-out}.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__mask{position:absolute;width:100%;height:100%;top:0;left:0;background-color:var(--el-color-white);opacity:.24;transition:var(--el-transition-duration-fast)}.el-divider{position:relative}.el-divider--horizontal{display:block;height:1px;width:100%;margin:24px 0;border-top:1px var(--el-border-color) var(--el-border-style)}.el-divider--vertical{display:inline-block;width:1px;height:1em;margin:0 8px;vertical-align:middle;position:relative;border-left:1px var(--el-border-color) var(--el-border-style)}.el-divider__text{position:absolute;background-color:var(--el-bg-color);padding:0 20px;font-weight:500;color:var(--el-text-color-primary);font-size:14px}.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-a260b725]{position:absolute;bottom:24px;width:100%}.carousel[data-v-a260b725]{--el-carousel-indicator-padding-vertical: 4px;width:100%;margin:auto}.carousel-container[data-v-a260b725]{display:flex;width:100%;height:100%;overflow-y:auto}.back-to-generation[data-v-a260b725]{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-a260b725]:hover{cursor:pointer;text-decoration:underline}@media only screen and (max-width: 1280px){.carousel-footer[data-v-a260b725]{bottom:5px}.carousel-footer>.el-divider[data-v-a260b725]{margin:5px 0}}.el-upload{--el-upload-dragger-padding-horizontal:40px;--el-upload-dragger-padding-vertical:10px}.el-upload{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;outline:0}.el-upload__input{display:none}.el-upload__tip{font-size:12px;color:var(--el-text-color-regular);margin-top:7px}.el-upload iframe{position:absolute;z-index:-1;top:0;left:0;opacity:0}.el-upload--picture-card{--el-upload-picture-card-size:148px;background-color:var(--el-fill-color-lighter);border:1px dashed var(--el-border-color-darker);border-radius:6px;box-sizing:border-box;width:var(--el-upload-picture-card-size);height:var(--el-upload-picture-card-size);cursor:pointer;vertical-align:top;display:inline-flex;justify-content:center;align-items:center}.el-upload--picture-card i{font-size:28px;color:var(--el-text-color-secondary)}.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{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload:focus .el-upload-dragger{border-color:var(--el-color-primary)}.el-upload-dragger{padding:var(--el-upload-dragger-padding-horizontal) var(--el-upload-dragger-padding-vertical);background-color:var(--el-fill-color-blank);border:1px dashed var(--el-border-color);border-radius:6px;box-sizing:border-box;text-align:center;cursor:pointer;position:relative;overflow:hidden}.el-upload-dragger .el-icon--upload{font-size:67px;color:var(--el-text-color-placeholder);margin-bottom:16px;line-height:50px}.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{padding:calc(var(--el-upload-dragger-padding-horizontal) - 1px) calc(var(--el-upload-dragger-padding-vertical) - 1px);background-color:var(--el-color-primary-light-9);border:2px dashed var(--el-color-primary)}.el-upload-list{margin:10px 0 0;padding:0;list-style:none;position:relative}.el-upload-list__item{transition:all .5s cubic-bezier(.55,0,.1,1);font-size:14px;color:var(--el-text-color-regular);margin-bottom:5px;position:relative;box-sizing:border-box;border-radius:4px;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{display:none;position:absolute;right:5px;top:50%;cursor:pointer;opacity:.75;color:var(--el-text-color-regular);transition:opacity var(--el-transition-duration);transform:translateY(-50%)}.el-upload-list__item .el-icon--close:hover{opacity:1;color:var(--el-color-primary)}.el-upload-list__item .el-icon--close-tip{display:none;position:absolute;top:1px;right:5px;font-size:12px;cursor:pointer;opacity:1;color:var(--el-color-primary);font-style:normal}.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;justify-content:center;flex-direction:column;width:calc(100% - 30px);margin-left:4px}.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.is-disabled .el-upload-list__item-status-label,.el-upload-list.is-disabled .el-upload-list__item:hover{display:block}.el-upload-list__item-name{color:var(--el-text-color-regular);display:inline-flex;text-align:center;align-items:center;padding:0 4px;transition:color var(--el-transition-duration);font-size:var(--el-font-size-base)}.el-upload-list__item-name .el-icon{margin-right:6px;color:var(--el-text-color-secondary)}.el-upload-list__item-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-upload-list__item-status-label{position:absolute;right:5px;top:0;line-height:inherit;display:none;height:100%;justify-content:center;align-items:center;transition:opacity var(--el-transition-duration)}.el-upload-list__item-delete{position:absolute;right:10px;top:0;font-size:12px;color:var(--el-text-color-regular);display:none}.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{overflow:hidden;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;width:var(--el-upload-list-picture-card-size);height:var(--el-upload-list-picture-card-size);margin:0 8px 8px 0;padding:0;display:inline-flex}.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{opacity:0;display:block}.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{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.el-upload-list--picture-card .el-upload-list__item-status-label{right:-15px;top:-6px;width:40px;height:24px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.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{position:absolute;width:100%;height:100%;left:0;top:0;cursor:default;display:inline-flex;justify-content:center;align-items:center;color:#fff;opacity:0;font-size:20px;background-color:var(--el-overlay-color-lighter);transition:opacity var(--el-transition-duration)}.el-upload-list--picture-card .el-upload-list__item-actions span{display:none;cursor:pointer}.el-upload-list--picture-card .el-upload-list__item-actions span+span{margin-left:1rem}.el-upload-list--picture-card .el-upload-list__item-actions .el-upload-list__item-delete{position:static;font-size:inherit;color:inherit}.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{top:50%;left:50%;transform:translate(-50%,-50%);bottom:auto;width:126px}.el-upload-list--picture-card .el-progress .el-progress__text{top:50%}.el-upload-list--picture .el-upload-list__item{overflow:hidden;z-index:0;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;margin-top:10px;padding:10px;display:flex;align-items:center}.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{opacity:0;display:block}.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{display:inline-flex;justify-content:center;align-items:center;width:70px;height:70px;-o-object-fit:contain;object-fit:contain;position:relative;z-index:1;background-color:var(--el-color-white)}.el-upload-list--picture .el-upload-list__item-status-label{position:absolute;right:-17px;top:-7px;width:46px;height:26px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.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{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;z-index:10;cursor:default}.el-upload-cover:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-upload-cover img{display:block;width:100%;height:100%}.el-upload-cover__label{right:-15px;top:-6px;width:40px;height:24px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-cover__label i{font-size:12px;margin-top:11px;transform:rotate(-45deg);color:#fff}.el-upload-cover__progress{display:inline-block;vertical-align:middle;position:static;width:243px}.el-upload-cover__progress+.el-upload__inner{opacity:0}.el-upload-cover__content{position:absolute;top:0;left:0;width:100%;height:100%}.el-upload-cover__interact{position:absolute;bottom:0;left:0;width:100%;height:100%;background-color:var(--el-overlay-color-light);text-align:center}.el-upload-cover__interact .btn{display:inline-block;color:#fff;font-size:14px;cursor:pointer;vertical-align:middle;transition:var(--el-transition-md-fade);margin-top:60px}.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{position:absolute;bottom:0;left:0;background-color:#fff;height:36px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;text-align:left;padding:0 10px;margin:0;line-height:36px;font-size:14px;color:var(--el-text-color-primary)}.el-upload-cover+.el-upload__inner{opacity:0;position:relative;z-index:1}.el-color-predefine{display:flex;font-size:12px;margin-top:8px;width:280px}.el-color-predefine__colors{display:flex;flex:1;flex-wrap:wrap}.el-color-predefine__color-selector{margin:0 0 8px 8px;width:20px;height:20px;border-radius:4px;cursor:pointer}.el-color-predefine__color-selector:nth-child(10n+1){margin-left:0}.el-color-predefine__color-selector.selected{box-shadow:0 0 3px 2px var(--el-color-primary)}.el-color-predefine__color-selector>div{display:flex;height:100%;border-radius:3px}.el-color-predefine__color-selector.is-alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.el-color-hue-slider{position:relative;box-sizing:border-box;width:280px;height:12px;background-color:red;padding:0 2px;float:right}.el-color-hue-slider__bar{position:relative;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);height:100%}.el-color-hue-slider__thumb{position:absolute;cursor:pointer;box-sizing:border-box;left:0;top:0;width:4px;height:100%;border-radius:1px;background:#fff;border:1px solid var(--el-border-color-lighter);box-shadow:0 0 2px #0009;z-index:1}.el-color-hue-slider.is-vertical{width:12px;height:180px;padding:2px 0}.el-color-hue-slider.is-vertical .el-color-hue-slider__bar{background:linear-gradient(to bottom,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.el-color-hue-slider.is-vertical .el-color-hue-slider__thumb{left:0;top:0;width:100%;height:4px}.el-color-svpanel{position:relative;width:280px;height:180px}.el-color-svpanel__black,.el-color-svpanel__white{position:absolute;top:0;left:0;right:0;bottom:0}.el-color-svpanel__white{background:linear-gradient(to right,#fff,rgba(255,255,255,0))}.el-color-svpanel__black{background:linear-gradient(to top,#000,rgba(0,0,0,0))}.el-color-svpanel__cursor{position:absolute}.el-color-svpanel__cursor>div{cursor:head;width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px #0000004d,0 0 1px 2px #0006;border-radius:50%;transform:translate(-2px,-2px)}.el-color-alpha-slider{position:relative;box-sizing:border-box;width:280px;height:12px;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-size:12px 12px;background-position:0 0,6px 0,6px -6px,0 6px}.el-color-alpha-slider__bar{position:relative;background:linear-gradient(to right,rgba(255,255,255,0) 0,var(--el-bg-color) 100%);height:100%}.el-color-alpha-slider__thumb{position:absolute;cursor:pointer;box-sizing:border-box;left:0;top:0;width:4px;height:100%;border-radius:1px;background:#fff;border:1px solid var(--el-border-color-lighter);box-shadow:0 0 2px #0009;z-index:1}.el-color-alpha-slider.is-vertical{width:20px;height:180px}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__bar{background:linear-gradient(to bottom,rgba(255,255,255,0) 0,#fff 100%)}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__thumb{left:0;top:0;width:100%;height:4px}.el-color-dropdown{width:300px}.el-color-dropdown__main-wrapper{margin-bottom:6px}.el-color-dropdown__main-wrapper:after{content:"";display:table;clear:both}.el-color-dropdown__btns{margin-top:12px;text-align:right}.el-color-dropdown__value{float:left;line-height:26px;font-size:12px;color:#000;width:160px}.el-color-picker{display:inline-block;position:relative;line-height:normal}.el-color-picker.is-disabled .el-color-picker__trigger{cursor:not-allowed}.el-color-picker--large{height:40px}.el-color-picker--large .el-color-picker__trigger{height:40px;width:40px}.el-color-picker--large .el-color-picker__mask{height:38px;width:38px}.el-color-picker--small{height:24px}.el-color-picker--small .el-color-picker__trigger{height:24px;width:24px}.el-color-picker--small .el-color-picker__mask{height:22px;width:22px}.el-color-picker--small .el-color-picker__empty,.el-color-picker--small .el-color-picker__icon{transform:scale(.8)}.el-color-picker__mask{height:38px;width:38px;border-radius:4px;position:absolute;top:1px;left:1px;z-index:1;cursor:not-allowed;background-color:#ffffffb3}.el-color-picker__trigger{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;height:32px;width:32px;padding:4px;border:1px solid var(--el-border-color);border-radius:4px;font-size:0;position:relative;cursor:pointer}.el-color-picker__color{position:relative;display:block;box-sizing:border-box;border:1px solid var(--el-text-color-secondary);border-radius:var(--el-border-radius-small);width:100%;height:100%;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-size:12px 12px;background-position:0 0,6px 0,6px -6px,0 6px}.el-color-picker__color-inner{display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.el-color-picker .el-color-picker__empty{font-size:12px;color:var(--el-text-color-secondary)}.el-color-picker .el-color-picker__icon{display:inline-flex;justify-content:center;align-items:center;color:#fff;font-size:12px}.el-color-picker__panel{position:absolute;z-index:10;padding:6px;box-sizing:content-box;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}.action-buttons[data-v-0cdc2bf8]{display:flex;flex-direction:column;position:absolute;gap:8px;top:10px;right:10px}.action-buttons[data-v-0cdc2bf8]>*{width:30px;height:30px;margin:0}.canvas-container[data-v-0cdc2bf8]{position:relative}@media only screen and (max-width: 1280px){.canvas-container[data-v-0cdc2bf8]{transform:scale(.7)}}.firstIcon[data-v-74586a39]{position:absolute;right:15%;bottom:12%;opacity:.8;z-index:0}.secondIcon[data-v-74586a39]{position:absolute;left:15%;top:12%;z-index:1}.centerIcons[data-v-74586a39]{width:var(--2ad037ca);height:var(--2ad037ca);display:flex;align-items:center;justify-content:center}.stackedIcons[data-v-74586a39]{position:relative;width:100%;height:100%}@media only screen and (max-width: 768px){.firstIcon[data-v-74586a39]{right:30%}.secondIcon[data-v-74586a39]{left:30%}}h3[data-v-db184ac6]{margin-bottom:0}.interrogation-upload[data-v-db184ac6]{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%}.reference-images{margin:14px 0}.reference-images-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.reference-images-label{flex:0 0 120px;font-size:14px;color:var(--el-text-color-regular)}.reference-images-actions{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.reference-images-input{display:none}.reference-image-list{display:flex;flex-direction:column;gap:8px}.reference-image-item{display:grid;grid-template-columns:28px 48px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:58px;padding:6px 8px;border:1px solid var(--el-border-color);border-radius:6px;background:var(--el-fill-color-blank)}.reference-file-item{grid-template-columns:28px minmax(0,1fr) auto}.reference-image-index{font-size:13px;color:var(--el-text-color-secondary);text-align:center}.reference-image-thumb{width:48px;height:48px;border-radius:4px;border:1px solid var(--el-border-color-lighter);overflow:hidden}.reference-image-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.reference-image-controls{display:flex;align-items:center;gap:4px}.reference-image-controls .el-button+.el-button{margin-left:0}.reference-image-empty{padding:10px 8px;border:1px dashed var(--el-border-color);border-radius:6px;color:var(--el-text-color-secondary);font-size:13px}.lora-list-collapse{width:100%;margin:14px 0}.lora-list-title{font-size:14px;font-weight:600}.lora-list-summary{margin-left:8px;font-size:13px;color:var(--el-text-color-secondary)}.lora-list-hint{padding:4px 0;color:var(--el-text-color-secondary);font-size:13px}.lora-list-row{display:flex;align-items:center;gap:8px;padding:6px 0}.lora-list-select{flex:1;min-width:140px}.lora-list-add{padding:6px 0}.video-frame-selectors{display:flex;flex-direction:column;gap:8px;margin:14px 0}.video-frame-selector{display:grid;grid-template-columns:140px 48px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:58px;padding:6px 8px;border:1px solid var(--el-border-color);border-radius:6px;background:var(--el-fill-color-blank)}.video-frame-label{font-size:14px;color:var(--el-text-color-regular)}.video-frame-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--el-text-color-secondary)}.video-frame-thumb-empty{background:var(--el-fill-color-light)}.video-frame-actions{display:flex;align-items:center;gap:4px}.video-frame-actions .el-button+.el-button{margin-left:0}.image{grid-area:image;flex-direction:column}.last-image-recovery{margin-top:10px;font-size:13px}.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:90%;height:100%;padding-top:0;padding-bottom:0}.container{display:grid;height:auto;min-height:110vh;grid-template-rows:minmax(400px,45vh) max-content auto;grid-template-columns:100%;gap:8px;grid-template-areas:"image" "main" "sidebar"}.sidebar{max-width:100%}.reference-images-header{align-items:flex-start;flex-direction:column}.reference-images-label{flex-basis:auto}.reference-images-actions{width:100%;flex-wrap:wrap}.video-frame-selector{grid-template-columns:130px 44px minmax(0,1fr) auto}.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) max-content auto}.form{padding-top:20px;padding-left:0;margin-left:0}.reference-image-item{grid-template-columns:24px 44px minmax(0,1fr)}.reference-file-item{grid-template-columns:24px minmax(0,1fr)}.reference-image-controls{grid-column:3;justify-content:flex-end;width:100%}.reference-file-item .reference-image-controls{grid-column:2}.reference-image-thumb{width:44px;height:44px}.video-frame-selector{grid-template-columns:1fr 44px}.video-frame-label{grid-column:1 / -1}.video-frame-name{min-width:0}.video-frame-actions{grid-column:1 / -1;justify-content:flex-end;width:100%}}:root{--el-popup-modal-bg-color:var(--el-color-black);--el-popup-modal-opacity:.5}.v-modal-enter{-webkit-animation:v-modal-in var(--el-transition-duration-fast) ease;animation:v-modal-in var(--el-transition-duration-fast) ease}.v-modal-leave{-webkit-animation:v-modal-out var(--el-transition-duration-fast) ease forwards;animation:v-modal-out var(--el-transition-duration-fast) ease forwards}@-webkit-keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-in{0%{opacity:0}}@-webkit-keyframes v-modal-out{to{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{position:fixed;left:0;top:0;width:100%;height:100%;opacity:var(--el-popup-modal-opacity);background:var(--el-popup-modal-bg-color)}.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-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:15px}.el-message-box{display:inline-block;max-width:var(--el-messagebox-width);width:100%;padding-bottom:10px;vertical-align:middle;background-color:var(--el-bg-color);border-radius:var(--el-messagebox-border-radius);border:1px solid var(--el-border-color-lighter);font-size:var(--el-messagebox-font-size);box-shadow:var(--el-box-shadow-light);text-align:left;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden}.el-message-box:focus{outline:0!important}.el-overlay.is-message-box .el-overlay-message-box{text-align:center;position:fixed;top:0;right:0;bottom:0;left:0;padding:16px;overflow:auto}.el-overlay.is-message-box .el-overlay-message-box:after{content:"";display:inline-block;height:100%;width:0;vertical-align:middle}.el-message-box.is-draggable .el-message-box__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-message-box__header{position:relative;padding:var(--el-messagebox-padding-primary);padding-bottom:10px}.el-message-box__title{padding-left:0;margin-bottom:0;font-size:var(--el-messagebox-font-size);line-height:1;color:var(--el-messagebox-title-color)}.el-message-box__headerbtn{position:absolute;top:var(--el-messagebox-padding-primary);right:var(--el-messagebox-padding-primary);padding:0;border:none;outline:0;background:0 0;font-size:var(--el-message-close-size,16px);cursor:pointer}.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{padding:10px var(--el-messagebox-padding-primary);color:var(--el-messagebox-content-color);font-size:var(--el-messagebox-content-font-size)}.el-message-box__container{position:relative}.el-message-box__input{padding-top:15px}.el-message-box__input div.invalid>input{border-color:var(--el-color-error)}.el-message-box__input div.invalid>input:focus{border-color:var(--el-color-error)}.el-message-box__status{position:absolute;top:50%;transform:translateY(-50%);font-size:24px!important}.el-message-box__status:before{padding-left:1px}.el-message-box__status.el-icon{position:absolute}.el-message-box__status+.el-message-box__message{padding-left:36px;padding-right:12px;word-break:break-word}.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}.el-message-box__message p{margin:0;line-height:24px}.el-message-box__errormsg{color:var(--el-color-error);font-size:var(--el-messagebox-error-font-size);min-height:18px;margin-top:2px}.el-message-box__btns{padding:5px 15px 0;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center}.el-message-box__btns button:nth-child(2){margin-left:10px}.el-message-box__btns-reverse{flex-direction:row-reverse}.el-message-box--center .el-message-box__title{position:relative;display:flex;align-items:center;justify-content:center}.el-message-box--center .el-message-box__status{position:relative;top:auto;padding-right:5px;text-align:center;transform:translateY(-1px)}.el-message-box--center .el-message-box__message{margin-left:0}.el-message-box--center .el-message-box__btns{justify-content:center}.el-message-box--center .el-message-box__content{padding-left:calc(var(--el-messagebox-padding-primary) + 12px);padding-right:calc(var(--el-messagebox-padding-primary) + 12px);text-align:center}.fade-in-linear-enter-active .el-overlay-message-box{-webkit-animation:msgbox-fade-in var(--el-transition-duration);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}@-webkit-keyframes msgbox-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes msgbox-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@-webkit-keyframes msgbox-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes msgbox-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}.compact-button[data-v-24447e4b]{padding-left:6px;padding-right:6px;margin-left:6px}.main-output-container{display:flex;justify-content:center;background-color:var(--el-fill-color-light)}.main-output{max-height:54vh}.image-viewer{width:100%;max-width:1024px;height:82vh;display:flex;flex-direction:column}.image-viewer>.el-dialog__header{padding:12px 26px}.image-viewer>.el-dialog__body{display:flex;flex-direction:column;justify-content:space-between;gap:8px;text-align:center;word-break:keep-all;overflow-y:scroll;padding-top:0;height:100%}.image-viewer>.el-dialog__footer{border-top:1px solid var(--el-border-color);display:flex;flex-wrap:wrap;justify-content:center;row-gap:8px}@media only screen and (max-width: 1280px){.image-viewer{width:720px}}@media only screen and (max-width: 768px){.image-viewer{width:100%;height:82vh}}.el-menu--horizontal .el-menu-item[data-v-8f4d2380]:not(.is-disabled):focus,.el-menu--horizontal .el-menu-item[data-v-8f4d2380]:not(.is-disabled):hover{background-color:transparent!important}.remove-item-styling[data-v-8f4d2380]{cursor:default;color:var(--el-menu-text-color)!important;background-color:transparent!important}.remove-item-styling[data-v-8f4d2380]:hover{cursor:default;color:var(--el-menu-text-color)!important}.view[data-v-8f4d2380]{margin-top:80px}.generator-icons[data-v-8f4d2380]{position:relative;display:inline-flex;justify-content:center;align-items:center}.generator-badge[data-v-8f4d2380]{position:absolute;bottom:9px;right:-7px;color:var(--el-color-danger)!important}.mobile-menu[data-v-8f4d2380]{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-8f4d2380]>*{width:60px}html.dark{color-scheme:dark;--el-color-primary:#409eff;--el-color-primary-light-3:#3375b9;--el-color-primary-light-5:#2a598a;--el-color-primary-light-7:#213d5b;--el-color-primary-light-8:#1d3043;--el-color-primary-light-9:#18222c;--el-color-primary-dark-2:#66b1ff;--el-color-success:#67c23a;--el-color-success-light-3:#4e8e2f;--el-color-success-light-5:#3e6b27;--el-color-success-light-7:#2d481f;--el-color-success-light-8:#25371c;--el-color-success-light-9:#1c2518;--el-color-success-dark-2:#85ce61;--el-color-warning:#e6a23c;--el-color-warning-light-3:#a77730;--el-color-warning-light-5:#7d5b28;--el-color-warning-light-7:#533f20;--el-color-warning-light-8:#3e301c;--el-color-warning-light-9:#292218;--el-color-warning-dark-2:#ebb563;--el-color-danger:#f56c6c;--el-color-danger-light-3:#b25252;--el-color-danger-light-5:#854040;--el-color-danger-light-7:#582e2e;--el-color-danger-light-8:#412626;--el-color-danger-light-9:#2b1d1d;--el-color-danger-dark-2:#f78989;--el-color-error:#f56c6c;--el-color-error-light-3:#b25252;--el-color-error-light-5:#854040;--el-color-error-light-7:#582e2e;--el-color-error-light-8:#412626;--el-color-error-light-9:#2b1d1d;--el-color-error-dark-2:#f78989;--el-color-info:#909399;--el-color-info-light-3:#6b6d71;--el-color-info-light-5:#525457;--el-color-info-light-7:#393a3c;--el-color-info-light-8:#2d2d2f;--el-color-info-light-9:#202121;--el-color-info-dark-2:#a6a9ad;--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-b9569bbd]{display:block;width:100%;height:100%;border-radius:4px}.thumbnail[data-v-b9569bbd]:hover{cursor:pointer}.relative[data-v-b9569bbd]{position:relative}.image-action[data-v-b9569bbd]{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.starred-icon[data-v-b9569bbd]{position:absolute;left:5px;top:5px}.select-container[data-v-b9569bbd]{position:absolute;width:100%;height:100%;pointer-events:all}.select-icon[data-v-b9569bbd]{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;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;box-sizing:border-box;padding:var(--el-empty-padding)}.el-empty__image{width:var(--el-empty-image-width)}.el-empty__image img{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%;height:100%;vertical-align:top;-o-object-fit:contain;object-fit:contain}.el-empty__image svg{color:var(--el-svg-monochrome-grey);fill:currentColor;width:100%;height:100%;vertical-align:top}.el-empty__description{margin-top:var(--el-empty-description-margin-top)}.el-empty__description p{margin:0;font-size:var(--el-font-size-base);color:var(--el-text-color-secondary)}.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:3px;--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-height-extra-small:24px;--el-pagination-line-height-extra-small:var(--el-pagination-height-extra-small);white-space:nowrap;padding:2px 5px;color:var(--el-pagination-text-color);font-weight:400;display:flex;align-items:center}.el-pagination:after,.el-pagination:before{display:table;content:""}.el-pagination:after{clear:both}.el-pagination button,.el-pagination span:not([class*=suffix]){display:flex;justify-content:center;align-items:center;font-size:var(--el-pagination-font-size);min-width:var(--el-pagination-button-width);height:var(--el-pagination-button-height);line-height:var(--el-pagination-button-height);box-sizing:border-box}.el-pagination .el-input__inner{text-align:center;-moz-appearance:textfield;line-height:normal}.el-pagination .el-select .el-input{width:128px}.el-pagination button{border:none;padding:0 6px;background:0 0}.el-pagination button:focus{outline:0}.el-pagination button:hover{color:var(--el-pagination-hover-color)}.el-pagination button:disabled{color:var(--el-pagination-button-disabled-color);background-color:var(--el-pagination-button-disabled-bg-color);cursor:not-allowed}.el-pagination .btn-next,.el-pagination .btn-prev{background:center center no-repeat;background-size:16px;background-color:var(--el-pagination-bg-color);cursor:pointer;margin:0;color:var(--el-pagination-button-color)}.el-pagination .btn-next .el-icon,.el-pagination .btn-prev .el-icon{display:block;font-size:12px;font-weight:700;width:inherit}.el-pagination .btn-next:focus-visible,.el-pagination .btn-prev:focus-visible{outline:1px solid var(--el-pagination-hover-color);color:var(--el-pagination-hover-color)}.el-pagination .el-pager li.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-pagination--small .btn-next,.el-pagination--small .btn-prev,.el-pagination--small .el-pager li,.el-pagination--small .el-pager li.btn-quicknext,.el-pagination--small .el-pager li.btn-quickprev,.el-pagination--small .el-pager li:last-child{border-color:transparent;font-size:var(--el-font-size-extra-small);line-height:var(--el-pagination-line-height-extra-small);height:var(--el-pagination-height-extra-small);min-width:24px}.el-pagination--small .arrow.is-disabled{visibility:hidden}.el-pagination--small .more:before,.el-pagination--small li.more:before{line-height:var(--el-pagination-line-height-extra-small)}.el-pagination--small button,.el-pagination--small span:not([class*=suffix]){height:var(--el-pagination-height-extra-small);line-height:var(--el-pagination-line-height-extra-small);font-size:var(--el-font-size-extra-small)}.el-pagination--small .el-pagination__editor{height:var(--el-pagination-line-height-extra-small)}.el-pagination--small .el-pagination__editor.el-input .el-input__inner{height:var(--el-pagination-height-extra-small)}.el-pagination--small .el-input--small,.el-pagination--small .el-input__inner{height:var(--el-pagination-height-extra-small)!important;line-height:var(--el-pagination-line-height-extra-small)}.el-pagination--small .el-input__suffix,.el-pagination--small .el-input__suffix .el-input__suffix-inner,.el-pagination--small .el-input__suffix .el-input__suffix-inner i.el-select__caret{line-height:var(--el-pagination-line-height-extra-small)}.el-pagination--small .el-select .el-input{width:100px}.el-pagination__sizes{margin:0 16px 0 0;font-weight:400;color:var(--el-text-color-regular)}.el-pagination__sizes+button.btn-prev[type=button]{margin-left:0}.el-pagination__sizes+.el-pager .number:first-child{margin-left:0}.el-pagination__sizes+.el-pager .number:last-child{margin-right:0}.el-pagination__total{margin-right:16px;font-weight:400;color:var(--el-text-color-regular)}.el-pagination__total+button.btn-prev[type=button]{margin-left:0}.el-pagination__total+.el-pager .number:first-child{margin-left:0}.el-pagination__total+.el-pager .number:last-child{margin-right:0}.el-pagination__total[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__jump{margin-left:16px;font-weight:400;color:var(--el-text-color-regular)}.el-pagination__jump .el-input__inner{padding:0 3px}.el-pagination__jump[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__rightwrapper{flex:1;display:flex;align-items:center;justify-content:flex-end}.el-pagination__editor{line-height:18px;margin:0 8px;height:var(--el-pagination-button-height);min-width:56px;text-align:center;box-sizing:border-box;border-radius:var(--el-pagination-border-radius)}.el-pagination__editor.el-input{width:50px}.el-pagination__editor.el-input .el-input__inner{height:var(--el-pagination-button-height)}.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.is-background .btn-next,.el-pagination.is-background .btn-prev,.el-pagination.is-background .el-pager li{margin:0 4px;background-color:var(--el-pagination-button-bg-color);color:var(--el-text-color-regular);min-width:32px;border-radius:2px}.el-pagination.is-background .btn-next.is-disabled,.el-pagination.is-background .btn-prev.is-disabled,.el-pagination.is-background .el-pager li.is-disabled{color:var(--el-text-color-placeholder);background-color:var(--el-disabled-bg-color)}.el-pagination.is-background .btn-next.is-disabled.is-active,.el-pagination.is-background .btn-prev.is-disabled.is-active,.el-pagination.is-background .el-pager li.is-disabled.is-active{color:var(--el-text-color-secondary);background-color:var(--el-fill-color-dark)}.el-pagination.is-background .btn-next.is-first,.el-pagination.is-background .btn-prev.is-first,.el-pagination.is-background .el-pager li.is-first{margin-left:0}.el-pagination.is-background .btn-next.is-last,.el-pagination.is-background .btn-prev.is-last,.el-pagination.is-background .el-pager li.is-last{margin-right:0}.el-pagination.is-background .btn-next,.el-pagination.is-background .btn-prev{padding:0}.el-pagination.is-background .btn-next:disabled,.el-pagination.is-background .btn-prev:disabled{color:var(--el-text-color-placeholder);background-color:var(--el-disabled-bg-color)}.el-pagination.is-background .btn-next:hover:not([disabled]),.el-pagination.is-background .btn-prev:hover:not([disabled]){color:var(--el-pagination-hover-color)}.el-pagination.is-background .el-pager li:not(.is-disabled):hover{color:var(--el-pagination-hover-color)}.el-pagination.is-background .el-pager li:not(.is-disabled).is-active{background-color:var(--el-color-primary);color:var(--el-color-white);font-weight:700}.el-pagination.is-background.el-pagination--small .btn-next,.el-pagination.is-background.el-pagination--small .btn-prev,.el-pagination.is-background.el-pagination--small .el-pager li{min-width:24px}.el-pagination.is-background .el-pagination__sizes.is-last{margin-left:16px}.el-pager{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;list-style:none;font-size:0;padding:0;margin:0;display:flex;align-items:center}.el-pager li{padding:0 4px;background:var(--el-pagination-bg-color);display:flex;justify-content:center;align-items:center;font-size:var(--el-pagination-font-size);min-width:var(--el-pagination-button-width);height:var(--el-pagination-button-height);line-height:var(--el-pagination-button-height);box-sizing:border-box;cursor:pointer;text-align:center;margin:0 1px}.el-pager li.btn-quickprev:hover,.el-pager li.btn-quicknext:hover{cursor:pointer}.el-pager li.btn-quicknext,.el-pager li.btn-quickprev{line-height:32px;color:var(--el-pagination-button-color)}.el-pager li.btn-quicknext.is-disabled,.el-pager li.btn-quickprev.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-pager li.btn-quicknext svg,.el-pager li.btn-quickprev svg{pointer-events:none}.el-pager li.btn-quicknext:focus-visible,.el-pager li.btn-quickprev:focus-visible{outline:1px solid var(--el-pagination-hover-color);color:var(--el-pagination-hover-color)}.el-pager li.is-active+li{border-left:0}.el-pager li:focus-visible{outline:1px solid var(--el-pagination-hover-color)}.el-pager li:hover{color:var(--el-pagination-hover-color)}.el-pager li.is-active{color:var(--el-pagination-hover-color);cursor:default}.el-pager li.is-active.is-disabled{font-weight:700;color:var(--el-text-color-secondary)}.el-pager+button.btn-next[type=button]{margin-right:0}.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);min-width:150px;border-radius:var(--el-popover-border-radius);border:1px solid var(--el-popover-border-color);padding:var(--el-popover-padding);z-index:var(--el-index-popper);color:var(--el-text-color-regular);line-height:1.4;text-align:justify;font-size:var(--el-popover-font-size);box-shadow:var(--el-box-shadow-light);word-break:break-all;box-sizing:border-box}.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-title-text-color:var(--el-bg-color)}.el-popover.el-popper:focus,.el-popover.el-popper:focus:active{outline-width:0}.images[data-v-b39b47c5]{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;width:100%}.selected[data-v-b39b47c5]{color:var(--el-color-primary);text-decoration:underline;background-color:#262626}.btn-select[data-v-b39b47c5]{width:48px;height:32px}.options[data-v-b39b47c5]{display:flex;align-items:center;gap:8px}.options[data-v-b39b47c5]>*{margin:0}.images-top-bar[data-v-b39b47c5]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:8px;position:sticky;top:60px;z-index:99;padding:8px;background-color:color-mix(in srgb,var(--el-bg-color-overlay) 60%,transparent);border-bottom:1px solid var(--el-border-color);transition:transform .3s ease-in-out}.images-top-bar.mobile-hidden[data-v-b39b47c5]{transform:translateY(-100%)}.images-top-bar[data-v-b39b47c5]>*{width:100%;display:flex;justify-content:center;text-align:center;white-space:nowrap;flex-grow:0}.bottom-pagination[data-v-b39b47c5]{display:none}@media only screen and (max-width: 768px){.images-top-bar[data-v-b39b47c5]{top:0;flex-wrap:wrap}.bottom-pagination[data-v-b39b47c5]{margin-bottom:50px;display:flex}}a[data-v-17b53b7d]{color:var(--el-color-primary);text-decoration:none}a[data-v-17b53b7d]:hover{text-decoration:underline}h3[data-v-ecc278c5],h1[data-v-ecc278c5]{margin-bottom:0}.about[data-v-ecc278c5]{width:100%;font-size:1.1rem;display:flex;justify-content:center}.about-content[data-v-ecc278c5]{width:60%}.faq[data-v-ecc278c5]{font-size:1.05rem}@media only screen and (max-width: 1000px){.about-content[data-v-ecc278c5]{width:80%}}@media only screen and (max-width: 700px){.about-content[data-v-ecc278c5]{width:100%}}.el-tabs{--el-tabs-header-height:40px}.el-tabs__header{padding:0;position:relative;margin:0 0 15px}.el-tabs__active-bar{position:absolute;bottom:0;left:0;height:2px;background-color:var(--el-color-primary);z-index:1;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);list-style:none}.el-tabs__new-tab{display:flex;align-items:center;justify-content:center;float:right;border:1px solid var(--el-border-color);height:20px;width:20px;line-height:20px;margin:10px 0 10px 10px;border-radius:3px;text-align:center;font-size:12px;color:var(--el-text-color-primary);cursor:pointer;transition:all .15s}.el-tabs__new-tab .is-icon-plus{height:inherit;width:inherit;transform:scale(.8)}.el-tabs__new-tab .is-icon-plus svg{vertical-align:middle}.el-tabs__new-tab:hover{color:var(--el-color-primary)}.el-tabs__nav-wrap{overflow:hidden;margin-bottom:-1px;position:relative}.el-tabs__nav-wrap:after{content:"";position:absolute;left:0;bottom:0;width:100%;height:2px;background-color:var(--el-border-color-light);z-index:var(--el-index-normal)}.el-tabs__nav-wrap.is-scrollable{padding:0 20px;box-sizing:border-box}.el-tabs__nav-scroll{overflow:hidden}.el-tabs__nav-next,.el-tabs__nav-prev{position:absolute;cursor:pointer;line-height:44px;font-size:12px;color:var(--el-text-color-secondary)}.el-tabs__nav-next{right:0}.el-tabs__nav-prev{left:0}.el-tabs__nav{white-space:nowrap;position:relative;transition:transform var(--el-transition-duration);float:left;z-index:calc(var(--el-index-normal) + 1)}.el-tabs__nav.is-stretch{min-width:100%;display:flex}.el-tabs__nav.is-stretch>*{flex:1;text-align:center}.el-tabs__item{padding:0 20px;height:var(--el-tabs-header-height);box-sizing:border-box;line-height:var(--el-tabs-header-height);display:inline-block;list-style:none;font-size:var(--el-font-size-base);font-weight:500;color:var(--el-text-color-primary);position:relative}.el-tabs__item:focus,.el-tabs__item:focus:active{outline:0}.el-tabs__item:focus-visible{box-shadow:0 0 2px 2px var(--el-color-primary) inset;border-radius:3px}.el-tabs__item .is-icon-close{border-radius:50%;text-align:center;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);margin-left:5px}.el-tabs__item .is-icon-close:before{transform:scale(.9);display:inline-block}.el-tabs__item .is-icon-close:hover{background-color:var(--el-text-color-placeholder);color:#fff}.el-tabs__item .is-icon-close svg{margin-top:1px}.el-tabs__item.is-active{color:var(--el-color-primary)}.el-tabs__item:hover{color:var(--el-color-primary);cursor:pointer}.el-tabs__item.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-tabs__content{overflow:hidden;position:relative}.el-tabs--card>.el-tabs__header{border-bottom:1px solid var(--el-border-color-light);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{position:relative;font-size:12px;width:0;height:14px;vertical-align:middle;line-height:15px;overflow:hidden;top:-1px;right:-2px;transform-origin:100% 50%}.el-tabs--card>.el-tabs__header .el-tabs__item{border-bottom:1px solid transparent;border-left:1px solid var(--el-border-color-light);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{transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);border:1px solid transparent;margin-top:-1px;color:var(--el-text-color-secondary)}.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+.el-tabs__item{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{color:var(--el-color-primary);background-color:var(--el-bg-color-overlay);border-right-color:var(--el-border-color);border-left-color:var(--el-border-color)}.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 .el-tabs__item.is-bottom:nth-child(2),.el-tabs--bottom .el-tabs__item.is-top:nth-child(2),.el-tabs--top .el-tabs__item.is-bottom:nth-child(2),.el-tabs--top .el-tabs__item.is-top:nth-child(2){padding-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:last-child,.el-tabs--bottom .el-tabs__item.is-top:last-child,.el-tabs--top .el-tabs__item.is-bottom:last-child,.el-tabs--top .el-tabs__item.is-top:last-child{padding-right:0}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.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--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--right>.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--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.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--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--right>.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--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-top:-1px;margin-bottom:0}.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{top:0;bottom:auto;width:2px;height:auto}.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{height:30px;line-height:30px;width:100%;text-align:center;cursor:pointer}.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{right:auto;bottom:0}.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{height:100%;width:2px;bottom:auto;top:0}.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{float:none}.el-tabs--left .el-tabs__item.is-left,.el-tabs--left .el-tabs__item.is-right,.el-tabs--right .el-tabs__item.is-left,.el-tabs--right .el-tabs__item.is-right{display:block}.el-tabs--left .el-tabs__header.is-left{float:left;margin-bottom:0;margin-right:10px}.el-tabs--left .el-tabs__nav-wrap.is-left{margin-right:-1px}.el-tabs--left .el-tabs__nav-wrap.is-left:after{left:auto;right:0}.el-tabs--left .el-tabs__active-bar.is-left{right:0;left:auto}.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-left:none;border-right:1px solid var(--el-border-color-light);border-bottom:none;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-right-color:#fff;border-left:none;border-bottom:none}.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-radius:4px 0 0 4px;border-bottom:1px solid var(--el-border-color-light);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:transparent;border-top-color:#d1dbe5;border-bottom-color:#d1dbe5}.el-tabs--right .el-tabs__header.is-right{float: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-left-color:#fff;border-right:none;border-bottom: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-radius:0 4px 4px 0;border-bottom:1px solid var(--el-border-color-light);border-left:none}.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:transparent;border-top-color:#d1dbe5;border-bottom-color:#d1dbe5}.slideInLeft-transition,.slideInRight-transition{display:inline-block}.slideInRight-enter{-webkit-animation:slideInRight-enter var(--el-transition-duration);animation:slideInRight-enter var(--el-transition-duration)}.slideInRight-leave{position:absolute;left:0;right:0;-webkit-animation:slideInRight-leave var(--el-transition-duration);animation:slideInRight-leave var(--el-transition-duration)}.slideInLeft-enter{-webkit-animation:slideInLeft-enter var(--el-transition-duration);animation:slideInLeft-enter var(--el-transition-duration)}.slideInLeft-leave{position:absolute;left:0;right:0;-webkit-animation:slideInLeft-leave var(--el-transition-duration);animation:slideInLeft-leave var(--el-transition-duration)}@-webkit-keyframes slideInRight-enter{0%{opacity:0;transform-origin:0 0;transform:translate(100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@keyframes slideInRight-enter{0%{opacity:0;transform-origin:0 0;transform:translate(100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@-webkit-keyframes slideInRight-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(100%);opacity:0}}@keyframes slideInRight-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(100%);opacity:0}}@-webkit-keyframes slideInLeft-enter{0%{opacity:0;transform-origin:0 0;transform:translate(-100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@keyframes slideInLeft-enter{0%{opacity:0;transform-origin:0 0;transform:translate(-100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@-webkit-keyframes slideInLeft-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(-100%);opacity:0}}@keyframes slideInLeft-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(-100%);opacity:0}}.el-radio-group{display:inline-flex;align-items:center;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{position:relative;display:inline-block;outline:0}.el-radio-button__inner{display:inline-block;line-height:1;white-space:nowrap;vertical-align:middle;background:var(--el-button-bg-color,var(--el-fill-color-blank));border:var(--el-border);font-weight:var(--el-button-font-weight,var(--el-font-weight-primary));border-left:0;color:var(--el-button-text-color,var(--el-text-color-regular));-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:0;margin:0;position:relative;cursor:pointer;transition:var(--el-transition-all);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:8px 15px;font-size:var(--el-font-size-base);border-radius:0}.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__original-radio{opacity:0;outline:0;position:absolute;z-index:-1}.el-radio-button__original-radio:checked+.el-radio-button__inner{color:var(--el-radio-button-checked-text-color,var(--el-color-white));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))}.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));outline:2px solid var(--el-radio-button-checked-border-color);outline-offset:1px;z-index:2;border-radius:var(--el-border-radius-base);box-shadow:none}.el-radio-button__original-radio:disabled+.el-radio-button__inner{color:var(--el-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color,var(--el-fill-color-blank));border-color:var(--el-button-disabled-border-color,var(--el-border-color-light));box-shadow:none}.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{padding:12px 19px;font-size:var(--el-font-size-base);border-radius:0}.el-radio-button--large .el-radio-button__inner.is-round{padding:12px 19px}.el-radio-button--small .el-radio-button__inner{padding:5px 11px;font-size:12px;border-radius:0}.el-radio-button--small .el-radio-button__inner.is-round{padding:5px 11px}.anon[data-v-679e7af1]{width:80px}.el-tab-pane[data-v-679e7af1]{max-width:600px}h2[data-v-679e7af1]{margin-top:0}.apikey[data-v-679e7af1]{width:calc(100% - 80px)}@media only screen and (max-width: 1000px){.anon[data-v-679e7af1]{width:80px}.apikey[data-v-679e7af1]{width:100%}}
</style>
</head>
<body>
<div id="app"></div>
<script>window.history.pushState=window.history.replaceState=function(){};</script>
</body>
</html>