index.822181e6.js 364 KB

123456789101112
  1. const uu=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const s of n)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function i(n){const s={};return n.integrity&&(s.integrity=n.integrity),n.referrerpolicy&&(s.referrerPolicy=n.referrerpolicy),n.crossorigin==="use-credentials"?s.credentials="include":n.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(n){if(n.ep)return;n.ep=!0;const s=i(n);fetch(n.href,s)}};uu();function is(e,t){const i=Object.create(null),r=e.split(",");for(let n=0;n<r.length;n++)i[r[n]]=!0;return t?n=>!!i[n.toLowerCase()]:n=>!!i[n]}const fu="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",cu=is(fu);function ra(e){return!!e||e===""}function rr(e){if(Se(e)){const t={};for(let i=0;i<e.length;i++){const r=e[i],n=st(r)?pu(r):rr(r);if(n)for(const s in n)t[s]=n[s]}return t}else{if(st(e))return e;if(tt(e))return e}}const hu=/;(?![^(]*\))/g,du=/:(.+)/;function pu(e){const t={};return e.split(hu).forEach(i=>{if(i){const r=i.split(du);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function _t(e){let t="";if(st(e))t=e;else if(Se(e))for(let i=0;i<e.length;i++){const r=_t(e[i]);r&&(t+=r+" ")}else if(tt(e))for(const i in e)e[i]&&(t+=i+" ");return t.trim()}function mu(e){if(!e)return null;let{class:t,style:i}=e;return t&&!st(t)&&(e.class=_t(t)),i&&(e.style=rr(i)),e}function gu(e,t){if(e.length!==t.length)return!1;let i=!0;for(let r=0;i&&r<e.length;r++)i=Si(e[r],t[r]);return i}function Si(e,t){if(e===t)return!0;let i=to(e),r=to(t);if(i||r)return i&&r?e.getTime()===t.getTime():!1;if(i=hi(e),r=hi(t),i||r)return e===t;if(i=Se(e),r=Se(t),i||r)return i&&r?gu(e,t):!1;if(i=tt(e),r=tt(t),i||r){if(!i||!r)return!1;const n=Object.keys(e).length,s=Object.keys(t).length;if(n!==s)return!1;for(const a in e){const u=e.hasOwnProperty(a),c=t.hasOwnProperty(a);if(u&&!c||!u&&c||!Si(e[a],t[a]))return!1}}return String(e)===String(t)}function rs(e,t){return e.findIndex(i=>Si(i,t))}const Ke=e=>st(e)?e:e==null?"":Se(e)||tt(e)&&(e.toString===aa||!Pe(e.toString))?JSON.stringify(e,sa,2):String(e),sa=(e,t)=>t&&t.__v_isRef?sa(e,t.value):Dn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((i,[r,n])=>(i[`${r} =>`]=n,i),{})}:$n(t)?{[`Set(${t.size})`]:[...t.values()]}:tt(t)&&!Se(t)&&!la(t)?String(t):t,Qe={},Bn=[],Ft=()=>{},vu=()=>!1,_u=/^on[^a-z]/,sr=e=>_u.test(e),ss=e=>e.startsWith("onUpdate:"),ht=Object.assign,os=(e,t)=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)},xu=Object.prototype.hasOwnProperty,Re=(e,t)=>xu.call(e,t),Se=Array.isArray,Dn=e=>ji(e)==="[object Map]",$n=e=>ji(e)==="[object Set]",to=e=>ji(e)==="[object Date]",Pe=e=>typeof e=="function",st=e=>typeof e=="string",hi=e=>typeof e=="symbol",tt=e=>e!==null&&typeof e=="object",oa=e=>tt(e)&&Pe(e.then)&&Pe(e.catch),aa=Object.prototype.toString,ji=e=>aa.call(e),yu=e=>ji(e).slice(8,-1),la=e=>ji(e)==="[object Object]",as=e=>st(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$i=is(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),or=e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))},wu=/-(\w)/g,Xt=or(e=>e.replace(wu,(t,i)=>i?i.toUpperCase():"")),bu=/\B([A-Z])/g,Un=or(e=>e.replace(bu,"-$1").toLowerCase()),ar=or(e=>e.charAt(0).toUpperCase()+e.slice(1)),Or=or(e=>e?`on${ar(e)}`:""),di=(e,t)=>!Object.is(e,t),Ui=(e,t)=>{for(let i=0;i<e.length;i++)e[i](t)},Yi=(e,t,i)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:i})},pi=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let no;const Su=()=>no||(no=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Vt;class ju{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Vt&&(this.parent=Vt,this.index=(Vt.scopes||(Vt.scopes=[])).push(this)-1)}run(t){if(this.active){const i=Vt;try{return Vt=this,t()}finally{Vt=i}}}on(){Vt=this}off(){Vt=this.parent}stop(t){if(this.active){let i,r;for(i=0,r=this.effects.length;i<r;i++)this.effects[i].stop();for(i=0,r=this.cleanups.length;i<r;i++)this.cleanups[i]();if(this.scopes)for(i=0,r=this.scopes.length;i<r;i++)this.scopes[i].stop(!0);if(this.parent&&!t){const n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.active=!1}}}function ku(e,t=Vt){t&&t.active&&t.effects.push(e)}const ls=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ua=e=>(e.w&cn)>0,fa=e=>(e.n&cn)>0,qu=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=cn},Mu=e=>{const{deps:t}=e;if(t.length){let i=0;for(let r=0;r<t.length;r++){const n=t[r];ua(n)&&!fa(n)?n.delete(e):t[i++]=n,n.w&=~cn,n.n&=~cn}t.length=i}},Fr=new WeakMap;let ni=0,cn=1;const Br=30;let It;const qn=Symbol(""),Dr=Symbol("");class us{constructor(t,i=null,r){this.fn=t,this.scheduler=i,this.active=!0,this.deps=[],this.parent=void 0,ku(this,r)}run(){if(!this.active)return this.fn();let t=It,i=ln;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=It,It=this,ln=!0,cn=1<<++ni,ni<=Br?qu(this):io(this),this.fn()}finally{ni<=Br&&Mu(this),cn=1<<--ni,It=this.parent,ln=i,this.parent=void 0,this.deferStop&&this.stop()}}stop(){It===this?this.deferStop=!0:this.active&&(io(this),this.onStop&&this.onStop(),this.active=!1)}}function io(e){const{deps:t}=e;if(t.length){for(let i=0;i<t.length;i++)t[i].delete(e);t.length=0}}let ln=!0;const ca=[];function Gn(){ca.push(ln),ln=!1}function Jn(){const e=ca.pop();ln=e===void 0?!0:e}function Ct(e,t,i){if(ln&&It){let r=Fr.get(e);r||Fr.set(e,r=new Map);let n=r.get(i);n||r.set(i,n=ls()),ha(n)}}function ha(e,t){let i=!1;ni<=Br?fa(e)||(e.n|=cn,i=!ua(e)):i=!e.has(It),i&&(e.add(It),It.deps.push(e))}function Ut(e,t,i,r,n,s){const a=Fr.get(e);if(!a)return;let u=[];if(t==="clear")u=[...a.values()];else if(i==="length"&&Se(e))a.forEach((c,d)=>{(d==="length"||d>=r)&&u.push(c)});else switch(i!==void 0&&u.push(a.get(i)),t){case"add":Se(e)?as(i)&&u.push(a.get("length")):(u.push(a.get(qn)),Dn(e)&&u.push(a.get(Dr)));break;case"delete":Se(e)||(u.push(a.get(qn)),Dn(e)&&u.push(a.get(Dr)));break;case"set":Dn(e)&&u.push(a.get(qn));break}if(u.length===1)u[0]&&zr(u[0]);else{const c=[];for(const d of u)d&&c.push(...d);zr(ls(c))}}function zr(e,t){const i=Se(e)?e:[...e];for(const r of i)r.computed&&ro(r);for(const r of i)r.computed||ro(r)}function ro(e,t){(e!==It||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Cu=is("__proto__,__v_isRef,__isVue"),da=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(hi)),Tu=fs(),Ou=fs(!1,!0),Eu=fs(!0),so=Pu();function Pu(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...i){const r=Ve(this);for(let s=0,a=this.length;s<a;s++)Ct(r,"get",s+"");const n=r[t](...i);return n===-1||n===!1?r[t](...i.map(Ve)):n}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...i){Gn();const r=Ve(this)[t].apply(this,i);return Jn(),r}}),e}function fs(e=!1,t=!1){return function(r,n,s){if(n==="__v_isReactive")return!e;if(n==="__v_isReadonly")return e;if(n==="__v_isShallow")return t;if(n==="__v_raw"&&s===(e?t?Gu:_a:t?va:ga).get(r))return r;const a=Se(r);if(!e&&a&&Re(so,n))return Reflect.get(so,n,s);const u=Reflect.get(r,n,s);return(hi(n)?da.has(n):Cu(n))||(e||Ct(r,"get",n),t)?u:pt(u)?a&&as(n)?u:u.value:tt(u)?e?xa(u):ki(u):u}}const Lu=pa(),Au=pa(!0);function pa(e=!1){return function(i,r,n,s){let a=i[r];if(mi(a)&&pt(a)&&!pt(n))return!1;if(!e&&!mi(n)&&(Vr(n)||(n=Ve(n),a=Ve(a)),!Se(i)&&pt(a)&&!pt(n)))return a.value=n,!0;const u=Se(i)&&as(r)?Number(r)<i.length:Re(i,r),c=Reflect.set(i,r,n,s);return i===Ve(s)&&(u?di(n,a)&&Ut(i,"set",r,n):Ut(i,"add",r,n)),c}}function Nu(e,t){const i=Re(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&i&&Ut(e,"delete",t,void 0),r}function Iu(e,t){const i=Reflect.has(e,t);return(!hi(t)||!da.has(t))&&Ct(e,"has",t),i}function Ru(e){return Ct(e,"iterate",Se(e)?"length":qn),Reflect.ownKeys(e)}const ma={get:Tu,set:Lu,deleteProperty:Nu,has:Iu,ownKeys:Ru},Fu={get:Eu,set(e,t){return!0},deleteProperty(e,t){return!0}},Bu=ht({},ma,{get:Ou,set:Au}),cs=e=>e,lr=e=>Reflect.getPrototypeOf(e);function zi(e,t,i=!1,r=!1){e=e.__v_raw;const n=Ve(e),s=Ve(t);i||(t!==s&&Ct(n,"get",t),Ct(n,"get",s));const{has:a}=lr(n),u=r?cs:i?ps:gi;if(a.call(n,t))return u(e.get(t));if(a.call(n,s))return u(e.get(s));e!==n&&e.get(t)}function Vi(e,t=!1){const i=this.__v_raw,r=Ve(i),n=Ve(e);return t||(e!==n&&Ct(r,"has",e),Ct(r,"has",n)),e===n?i.has(e):i.has(e)||i.has(n)}function Hi(e,t=!1){return e=e.__v_raw,!t&&Ct(Ve(e),"iterate",qn),Reflect.get(e,"size",e)}function oo(e){e=Ve(e);const t=Ve(this);return lr(t).has.call(t,e)||(t.add(e),Ut(t,"add",e,e)),this}function ao(e,t){t=Ve(t);const i=Ve(this),{has:r,get:n}=lr(i);let s=r.call(i,e);s||(e=Ve(e),s=r.call(i,e));const a=n.call(i,e);return i.set(e,t),s?di(t,a)&&Ut(i,"set",e,t):Ut(i,"add",e,t),this}function lo(e){const t=Ve(this),{has:i,get:r}=lr(t);let n=i.call(t,e);n||(e=Ve(e),n=i.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return n&&Ut(t,"delete",e,void 0),s}function uo(){const e=Ve(this),t=e.size!==0,i=e.clear();return t&&Ut(e,"clear",void 0,void 0),i}function Wi(e,t){return function(r,n){const s=this,a=s.__v_raw,u=Ve(a),c=t?cs:e?ps:gi;return!e&&Ct(u,"iterate",qn),a.forEach((d,m)=>r.call(n,c(d),c(m),s))}}function Xi(e,t,i){return function(...r){const n=this.__v_raw,s=Ve(n),a=Dn(s),u=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,d=n[e](...r),m=i?cs:t?ps:gi;return!t&&Ct(s,"iterate",c?Dr:qn),{next(){const{value:v,done:_}=d.next();return _?{value:v,done:_}:{value:u?[m(v[0]),m(v[1])]:m(v),done:_}},[Symbol.iterator](){return this}}}}function Kt(e){return function(...t){return e==="delete"?!1:this}}function Du(){const e={get(s){return zi(this,s)},get size(){return Hi(this)},has:Vi,add:oo,set:ao,delete:lo,clear:uo,forEach:Wi(!1,!1)},t={get(s){return zi(this,s,!1,!0)},get size(){return Hi(this)},has:Vi,add:oo,set:ao,delete:lo,clear:uo,forEach:Wi(!1,!0)},i={get(s){return zi(this,s,!0)},get size(){return Hi(this,!0)},has(s){return Vi.call(this,s,!0)},add:Kt("add"),set:Kt("set"),delete:Kt("delete"),clear:Kt("clear"),forEach:Wi(!0,!1)},r={get(s){return zi(this,s,!0,!0)},get size(){return Hi(this,!0)},has(s){return Vi.call(this,s,!0)},add:Kt("add"),set:Kt("set"),delete:Kt("delete"),clear:Kt("clear"),forEach:Wi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Xi(s,!1,!1),i[s]=Xi(s,!0,!1),t[s]=Xi(s,!1,!0),r[s]=Xi(s,!0,!0)}),[e,i,t,r]}const[zu,Vu,Hu,Wu]=Du();function hs(e,t){const i=t?e?Wu:Hu:e?Vu:zu;return(r,n,s)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?r:Reflect.get(Re(i,n)&&n in r?i:r,n,s)}const Xu={get:hs(!1,!1)},$u={get:hs(!1,!0)},Uu={get:hs(!0,!1)},ga=new WeakMap,va=new WeakMap,_a=new WeakMap,Gu=new WeakMap;function Ju(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Qu(e){return e.__v_skip||!Object.isExtensible(e)?0:Ju(yu(e))}function ki(e){return mi(e)?e:ds(e,!1,ma,Xu,ga)}function Yu(e){return ds(e,!1,Bu,$u,va)}function xa(e){return ds(e,!0,Fu,Uu,_a)}function ds(e,t,i,r,n){if(!tt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=n.get(e);if(s)return s;const a=Qu(e);if(a===0)return e;const u=new Proxy(e,a===2?r:i);return n.set(e,u),u}function zn(e){return mi(e)?zn(e.__v_raw):!!(e&&e.__v_isReactive)}function mi(e){return!!(e&&e.__v_isReadonly)}function Vr(e){return!!(e&&e.__v_isShallow)}function ya(e){return zn(e)||mi(e)}function Ve(e){const t=e&&e.__v_raw;return t?Ve(t):e}function wa(e){return Yi(e,"__v_skip",!0),e}const gi=e=>tt(e)?ki(e):e,ps=e=>tt(e)?xa(e):e;function ba(e){ln&&It&&(e=Ve(e),ha(e.dep||(e.dep=ls())))}function Sa(e,t){e=Ve(e),e.dep&&zr(e.dep)}function pt(e){return!!(e&&e.__v_isRef===!0)}function ja(e){return qa(e,!1)}function ka(e){return qa(e,!0)}function qa(e,t){return pt(e)?e:new Ku(e,t)}class Ku{constructor(t,i){this.__v_isShallow=i,this.dep=void 0,this.__v_isRef=!0,this._rawValue=i?t:Ve(t),this._value=i?t:gi(t)}get value(){return ba(this),this._value}set value(t){t=this.__v_isShallow?t:Ve(t),di(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:gi(t),Sa(this))}}function ri(e){return pt(e)?e.value:e}const Zu={get:(e,t,i)=>ri(Reflect.get(e,t,i)),set:(e,t,i,r)=>{const n=e[t];return pt(n)&&!pt(i)?(n.value=i,!0):Reflect.set(e,t,i,r)}};function Ma(e){return zn(e)?e:new Proxy(e,Zu)}class ef{constructor(t,i,r,n){this._setter=i,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new us(t,()=>{this._dirty||(this._dirty=!0,Sa(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!n,this.__v_isReadonly=r}get value(){const t=Ve(this);return ba(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function tf(e,t,i=!1){let r,n;const s=Pe(e);return s?(r=e,n=Ft):(r=e.get,n=e.set),new ef(r,n,s||!n,i)}function un(e,t,i,r){let n;try{n=r?e(...r):e()}catch(s){ur(s,t,i)}return n}function Et(e,t,i,r){if(Pe(e)){const s=un(e,t,i,r);return s&&oa(s)&&s.catch(a=>{ur(a,t,i)}),s}const n=[];for(let s=0;s<e.length;s++)n.push(Et(e[s],t,i,r));return n}function ur(e,t,i,r=!0){const n=t?t.vnode:null;if(t){let s=t.parent;const a=t.proxy,u=i;for(;s;){const d=s.ec;if(d){for(let m=0;m<d.length;m++)if(d[m](e,a,u)===!1)return}s=s.parent}const c=t.appContext.config.errorHandler;if(c){un(c,null,10,[e,a,u]);return}}nf(e,i,n,r)}function nf(e,t,i,r=!0){console.error(e)}let Ki=!1,Hr=!1;const Mt=[];let $t=0;const si=[];let ii=null,In=0;const oi=[];let rn=null,Rn=0;const Ca=Promise.resolve();let ms=null,Wr=null;function Ta(e){const t=ms||Ca;return e?t.then(this?e.bind(this):e):t}function rf(e){let t=$t+1,i=Mt.length;for(;t<i;){const r=t+i>>>1;vi(Mt[r])<e?t=r+1:i=r}return t}function Oa(e){(!Mt.length||!Mt.includes(e,Ki&&e.allowRecurse?$t+1:$t))&&e!==Wr&&(e.id==null?Mt.push(e):Mt.splice(rf(e.id),0,e),Ea())}function Ea(){!Ki&&!Hr&&(Hr=!0,ms=Ca.then(Aa))}function sf(e){const t=Mt.indexOf(e);t>$t&&Mt.splice(t,1)}function Pa(e,t,i,r){Se(e)?i.push(...e):(!t||!t.includes(e,e.allowRecurse?r+1:r))&&i.push(e),Ea()}function of(e){Pa(e,ii,si,In)}function af(e){Pa(e,rn,oi,Rn)}function fr(e,t=null){if(si.length){for(Wr=t,ii=[...new Set(si)],si.length=0,In=0;In<ii.length;In++)ii[In]();ii=null,In=0,Wr=null,fr(e,t)}}function La(e){if(fr(),oi.length){const t=[...new Set(oi)];if(oi.length=0,rn){rn.push(...t);return}for(rn=t,rn.sort((i,r)=>vi(i)-vi(r)),Rn=0;Rn<rn.length;Rn++)rn[Rn]();rn=null,Rn=0}}const vi=e=>e.id==null?1/0:e.id;function Aa(e){Hr=!1,Ki=!0,fr(e),Mt.sort((i,r)=>vi(i)-vi(r));const t=Ft;try{for($t=0;$t<Mt.length;$t++){const i=Mt[$t];i&&i.active!==!1&&un(i,null,14)}}finally{$t=0,Mt.length=0,La(),Ki=!1,ms=null,(Mt.length||si.length||oi.length)&&Aa(e)}}function lf(e,t,...i){if(e.isUnmounted)return;const r=e.vnode.props||Qe;let n=i;const s=t.startsWith("update:"),a=s&&t.slice(7);if(a&&a in r){const m=`${a==="modelValue"?"model":a}Modifiers`,{number:v,trim:_}=r[m]||Qe;_&&(n=i.map(S=>S.trim())),v&&(n=i.map(pi))}let u,c=r[u=Or(t)]||r[u=Or(Xt(t))];!c&&s&&(c=r[u=Or(Un(t))]),c&&Et(c,e,6,n);const d=r[u+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[u])return;e.emitted[u]=!0,Et(d,e,6,n)}}function Na(e,t,i=!1){const r=t.emitsCache,n=r.get(e);if(n!==void 0)return n;const s=e.emits;let a={},u=!1;if(!Pe(e)){const c=d=>{const m=Na(d,t,!0);m&&(u=!0,ht(a,m))};!i&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!s&&!u?(r.set(e,null),null):(Se(s)?s.forEach(c=>a[c]=null):ht(a,s),r.set(e,a),a)}function cr(e,t){return!e||!sr(t)?!1:(t=t.slice(2).replace(/Once$/,""),Re(e,t[0].toLowerCase()+t.slice(1))||Re(e,Un(t))||Re(e,t))}let mt=null,Ia=null;function Zi(e){const t=mt;return mt=e,Ia=e&&e.type.__scopeId||null,t}function gs(e,t=mt,i){if(!t||e._n)return e;const r=(...n)=>{r._d&&wo(-1);const s=Zi(t),a=e(...n);return Zi(s),r._d&&wo(1),a};return r._n=!0,r._c=!0,r._d=!0,r}function Er(e){const{type:t,vnode:i,proxy:r,withProxy:n,props:s,propsOptions:[a],slots:u,attrs:c,emit:d,render:m,renderCache:v,data:_,setupState:S,ctx:l,inheritAttrs:w}=e;let C,L;const A=Zi(e);try{if(i.shapeFlag&4){const E=n||r;C=Ht(m.call(E,E,v,s,S,_,l)),L=c}else{const E=t;C=Ht(E.length>1?E(s,{attrs:c,slots:u,emit:d}):E(s,null)),L=t.props?c:uf(c)}}catch(E){ui.length=0,ur(E,e,1),C=Je(Pt)}let O=C;if(L&&w!==!1){const E=Object.keys(L),{shapeFlag:Q}=O;E.length&&Q&7&&(a&&E.some(ss)&&(L=ff(L,a)),O=hn(O,L))}return i.dirs&&(O=hn(O),O.dirs=O.dirs?O.dirs.concat(i.dirs):i.dirs),i.transition&&(O.transition=i.transition),C=O,Zi(A),C}const uf=e=>{let t;for(const i in e)(i==="class"||i==="style"||sr(i))&&((t||(t={}))[i]=e[i]);return t},ff=(e,t)=>{const i={};for(const r in e)(!ss(r)||!(r.slice(9)in t))&&(i[r]=e[r]);return i};function cf(e,t,i){const{props:r,children:n,component:s}=e,{props:a,children:u,patchFlag:c}=t,d=s.emitsOptions;if(t.dirs||t.transition)return!0;if(i&&c>=0){if(c&1024)return!0;if(c&16)return r?fo(r,a,d):!!a;if(c&8){const m=t.dynamicProps;for(let v=0;v<m.length;v++){const _=m[v];if(a[_]!==r[_]&&!cr(d,_))return!0}}}else return(n||u)&&(!u||!u.$stable)?!0:r===a?!1:r?a?fo(r,a,d):!0:!!a;return!1}function fo(e,t,i){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let n=0;n<r.length;n++){const s=r[n];if(t[s]!==e[s]&&!cr(i,s))return!0}return!1}function hf({vnode:e,parent:t},i){for(;t&&t.subTree===e;)(e=t.vnode).el=i,t=t.parent}const df=e=>e.__isSuspense;function pf(e,t){t&&t.pendingBranch?Se(e)?t.effects.push(...e):t.effects.push(e):af(e)}function Gi(e,t){if(ft){let i=ft.provides;const r=ft.parent&&ft.parent.provides;r===i&&(i=ft.provides=Object.create(r)),i[e]=t}}function fn(e,t,i=!1){const r=ft||mt;if(r){const n=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(n&&e in n)return n[e];if(arguments.length>1)return i&&Pe(t)?t.call(r.proxy):t}}const co={};function ai(e,t,i){return Ra(e,t,i)}function Ra(e,t,{immediate:i,deep:r,flush:n,onTrack:s,onTrigger:a}=Qe){const u=ft;let c,d=!1,m=!1;if(pt(e)?(c=()=>e.value,d=Vr(e)):zn(e)?(c=()=>e,r=!0):Se(e)?(m=!0,d=e.some(L=>zn(L)||Vr(L)),c=()=>e.map(L=>{if(pt(L))return L.value;if(zn(L))return kn(L);if(Pe(L))return un(L,u,2)})):Pe(e)?t?c=()=>un(e,u,2):c=()=>{if(!(u&&u.isUnmounted))return v&&v(),Et(e,u,3,[_])}:c=Ft,t&&r){const L=c;c=()=>kn(L())}let v,_=L=>{v=C.onStop=()=>{un(L,u,4)}};if(yi)return _=Ft,t?i&&Et(t,u,3,[c(),m?[]:void 0,_]):c(),Ft;let S=m?[]:co;const l=()=>{if(!!C.active)if(t){const L=C.run();(r||d||(m?L.some((A,O)=>di(A,S[O])):di(L,S)))&&(v&&v(),Et(t,u,3,[L,S===co?void 0:S,_]),S=L)}else C.run()};l.allowRecurse=!!t;let w;n==="sync"?w=l:n==="post"?w=()=>yt(l,u&&u.suspense):w=()=>of(l);const C=new us(c,w);return t?i?l():S=C.run():n==="post"?yt(C.run.bind(C),u&&u.suspense):C.run(),()=>{C.stop(),u&&u.scope&&os(u.scope.effects,C)}}function mf(e,t,i){const r=this.proxy,n=st(e)?e.includes(".")?Fa(r,e):()=>r[e]:e.bind(r,r);let s;Pe(t)?s=t:(s=t.handler,i=t);const a=ft;Vn(this);const u=Ra(n,s.bind(r),i);return a?Vn(a):Mn(),u}function Fa(e,t){const i=t.split(".");return()=>{let r=e;for(let n=0;n<i.length&&r;n++)r=r[i[n]];return r}}function kn(e,t){if(!tt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),pt(e))kn(e.value,t);else if(Se(e))for(let i=0;i<e.length;i++)kn(e[i],t);else if($n(e)||Dn(e))e.forEach(i=>{kn(i,t)});else if(la(e))for(const i in e)kn(e[i],t);return e}function gf(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ha(()=>{e.isMounted=!0}),Wa(()=>{e.isUnmounting=!0}),e}const Ot=[Function,Array],vf={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ot,onEnter:Ot,onAfterEnter:Ot,onEnterCancelled:Ot,onBeforeLeave:Ot,onLeave:Ot,onAfterLeave:Ot,onLeaveCancelled:Ot,onBeforeAppear:Ot,onAppear:Ot,onAfterAppear:Ot,onAppearCancelled:Ot},setup(e,{slots:t}){const i=Yf(),r=gf();let n;return()=>{const s=t.default&&za(t.default(),!0);if(!s||!s.length)return;let a=s[0];if(s.length>1){for(const w of s)if(w.type!==Pt){a=w;break}}const u=Ve(e),{mode:c}=u;if(r.isLeaving)return Pr(a);const d=ho(a);if(!d)return Pr(a);const m=Xr(d,u,r,i);$r(d,m);const v=i.subTree,_=v&&ho(v);let S=!1;const{getTransitionKey:l}=d.type;if(l){const w=l();n===void 0?n=w:w!==n&&(n=w,S=!0)}if(_&&_.type!==Pt&&(!Sn(d,_)||S)){const w=Xr(_,u,r,i);if($r(_,w),c==="out-in")return r.isLeaving=!0,w.afterLeave=()=>{r.isLeaving=!1,i.update()},Pr(a);c==="in-out"&&d.type!==Pt&&(w.delayLeave=(C,L,A)=>{const O=Da(r,_);O[String(_.key)]=_,C._leaveCb=()=>{L(),C._leaveCb=void 0,delete m.delayedLeave},m.delayedLeave=A})}return a}}},Ba=vf;function Da(e,t){const{leavingVNodes:i}=e;let r=i.get(t.type);return r||(r=Object.create(null),i.set(t.type,r)),r}function Xr(e,t,i,r){const{appear:n,mode:s,persisted:a=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:d,onEnterCancelled:m,onBeforeLeave:v,onLeave:_,onAfterLeave:S,onLeaveCancelled:l,onBeforeAppear:w,onAppear:C,onAfterAppear:L,onAppearCancelled:A}=t,O=String(e.key),E=Da(i,e),Q=(D,le)=>{D&&Et(D,r,9,le)},H=(D,le)=>{const U=le[1];Q(D,le),Se(D)?D.every(pe=>pe.length<=1)&&U():D.length<=1&&U()},de={mode:s,persisted:a,beforeEnter(D){let le=u;if(!i.isMounted)if(n)le=w||u;else return;D._leaveCb&&D._leaveCb(!0);const U=E[O];U&&Sn(e,U)&&U.el._leaveCb&&U.el._leaveCb(),Q(le,[D])},enter(D){let le=c,U=d,pe=m;if(!i.isMounted)if(n)le=C||c,U=L||d,pe=A||m;else return;let Y=!1;const xe=D._enterCb=Te=>{Y||(Y=!0,Te?Q(pe,[D]):Q(U,[D]),de.delayedLeave&&de.delayedLeave(),D._enterCb=void 0)};le?H(le,[D,xe]):xe()},leave(D,le){const U=String(e.key);if(D._enterCb&&D._enterCb(!0),i.isUnmounting)return le();Q(v,[D]);let pe=!1;const Y=D._leaveCb=xe=>{pe||(pe=!0,le(),xe?Q(l,[D]):Q(S,[D]),D._leaveCb=void 0,E[U]===e&&delete E[U])};E[U]=e,_?H(_,[D,Y]):Y()},clone(D){return Xr(D,t,i,r)}};return de}function Pr(e){if(hr(e))return e=hn(e),e.children=null,e}function ho(e){return hr(e)?e.children?e.children[0]:void 0:e}function $r(e,t){e.shapeFlag&6&&e.component?$r(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 za(e,t=!1,i){let r=[],n=0;for(let s=0;s<e.length;s++){let a=e[s];const u=i==null?a.key:String(i)+String(a.key!=null?a.key:s);a.type===Ze?(a.patchFlag&128&&n++,r=r.concat(za(a.children,t,u))):(t||a.type!==Pt)&&r.push(u!=null?hn(a,{key:u}):a)}if(n>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}function qi(e){return Pe(e)?{setup:e,name:e.name}:e}const li=e=>!!e.type.__asyncLoader,hr=e=>e.type.__isKeepAlive;function _f(e,t){Va(e,"a",t)}function xf(e,t){Va(e,"da",t)}function Va(e,t,i=ft){const r=e.__wdc||(e.__wdc=()=>{let n=i;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(dr(t,r,i),i){let n=i.parent;for(;n&&n.parent;)hr(n.parent.vnode)&&yf(r,t,i,n),n=n.parent}}function yf(e,t,i,r){const n=dr(t,e,r,!0);Xa(()=>{os(r[t],n)},i)}function dr(e,t,i=ft,r=!1){if(i){const n=i[e]||(i[e]=[]),s=t.__weh||(t.__weh=(...a)=>{if(i.isUnmounted)return;Gn(),Vn(i);const u=Et(t,i,e,a);return Mn(),Jn(),u});return r?n.unshift(s):n.push(s),s}}const Gt=e=>(t,i=ft)=>(!yi||e==="sp")&&dr(e,t,i),wf=Gt("bm"),Ha=Gt("m"),bf=Gt("bu"),Sf=Gt("u"),Wa=Gt("bum"),Xa=Gt("um"),jf=Gt("sp"),kf=Gt("rtg"),qf=Gt("rtc");function Mf(e,t=ft){dr("ec",e,t)}function Xe(e,t){const i=mt;if(i===null)return e;const r=mr(i)||i.proxy,n=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[a,u,c,d=Qe]=t[s];Pe(a)&&(a={mounted:a,updated:a}),a.deep&&kn(u),n.push({dir:a,instance:r,value:u,oldValue:void 0,arg:c,modifiers:d})}return e}function _n(e,t,i,r){const n=e.dirs,s=t&&t.dirs;for(let a=0;a<n.length;a++){const u=n[a];s&&(u.oldValue=s[a].value);let c=u.dir[r];c&&(Gn(),Et(c,i,8,[e.el,u,e,t]),Jn())}}const vs="components";function At(e,t){return Ua(vs,e,!0,t)||e}const $a=Symbol();function Cf(e){return st(e)?Ua(vs,e,!1)||e:e||$a}function Ua(e,t,i=!0,r=!1){const n=mt||ft;if(n){const s=n.type;if(e===vs){const u=nc(s,!1);if(u&&(u===t||u===Xt(t)||u===ar(Xt(t))))return s}const a=po(n[e]||s[e],t)||po(n.appContext[e],t);return!a&&r?s:a}}function po(e,t){return e&&(e[t]||e[Xt(t)]||e[ar(Xt(t))])}function qt(e,t,i,r){let n;const s=i&&i[r];if(Se(e)||st(e)){n=new Array(e.length);for(let a=0,u=e.length;a<u;a++)n[a]=t(e[a],a,void 0,s&&s[a])}else if(typeof e=="number"){n=new Array(e);for(let a=0;a<e;a++)n[a]=t(a+1,a,void 0,s&&s[a])}else if(tt(e))if(e[Symbol.iterator])n=Array.from(e,(a,u)=>t(a,u,void 0,s&&s[u]));else{const a=Object.keys(e);n=new Array(a.length);for(let u=0,c=a.length;u<c;u++){const d=a[u];n[u]=t(e[d],d,u,s&&s[u])}}else n=[];return i&&(i[r]=n),n}function _s(e,t,i={},r,n){if(mt.isCE||mt.parent&&li(mt.parent)&&mt.parent.isCE)return Je("slot",t==="default"?null:{name:t},r&&r());let s=e[t];s&&s._c&&(s._d=!1),_e();const a=s&&Ga(s(i)),u=xi(Ze,{key:i.key||`_${t}`},a||(r?r():[]),a&&e._===1?64:-2);return!n&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),s&&s._c&&(s._d=!0),u}function Ga(e){return e.some(t=>nr(t)?!(t.type===Pt||t.type===Ze&&!Ga(t.children)):!0)?e:null}const Ur=e=>e?ll(e)?mr(e)||e.proxy:Ur(e.parent):null,er=ht(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=>Ur(e.parent),$root:e=>Ur(e.root),$emit:e=>e.emit,$options:e=>Qa(e),$forceUpdate:e=>e.f||(e.f=()=>Oa(e.update)),$nextTick:e=>e.n||(e.n=Ta.bind(e.proxy)),$watch:e=>mf.bind(e)}),Tf={get({_:e},t){const{ctx:i,setupState:r,data:n,props:s,accessCache:a,type:u,appContext:c}=e;let d;if(t[0]!=="$"){const S=a[t];if(S!==void 0)switch(S){case 1:return r[t];case 2:return n[t];case 4:return i[t];case 3:return s[t]}else{if(r!==Qe&&Re(r,t))return a[t]=1,r[t];if(n!==Qe&&Re(n,t))return a[t]=2,n[t];if((d=e.propsOptions[0])&&Re(d,t))return a[t]=3,s[t];if(i!==Qe&&Re(i,t))return a[t]=4,i[t];Gr&&(a[t]=0)}}const m=er[t];let v,_;if(m)return t==="$attrs"&&Ct(e,"get",t),m(e);if((v=u.__cssModules)&&(v=v[t]))return v;if(i!==Qe&&Re(i,t))return a[t]=4,i[t];if(_=c.config.globalProperties,Re(_,t))return _[t]},set({_:e},t,i){const{data:r,setupState:n,ctx:s}=e;return n!==Qe&&Re(n,t)?(n[t]=i,!0):r!==Qe&&Re(r,t)?(r[t]=i,!0):Re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=i,!0)},has({_:{data:e,setupState:t,accessCache:i,ctx:r,appContext:n,propsOptions:s}},a){let u;return!!i[a]||e!==Qe&&Re(e,a)||t!==Qe&&Re(t,a)||(u=s[0])&&Re(u,a)||Re(r,a)||Re(er,a)||Re(n.config.globalProperties,a)},defineProperty(e,t,i){return i.get!=null?e._.accessCache[t]=0:Re(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}};let Gr=!0;function Of(e){const t=Qa(e),i=e.proxy,r=e.ctx;Gr=!1,t.beforeCreate&&mo(t.beforeCreate,e,"bc");const{data:n,computed:s,methods:a,watch:u,provide:c,inject:d,created:m,beforeMount:v,mounted:_,beforeUpdate:S,updated:l,activated:w,deactivated:C,beforeDestroy:L,beforeUnmount:A,destroyed:O,unmounted:E,render:Q,renderTracked:H,renderTriggered:de,errorCaptured:D,serverPrefetch:le,expose:U,inheritAttrs:pe,components:Y,directives:xe,filters:Te}=t;if(d&&Ef(d,r,null,e.appContext.config.unwrapInjectedRef),a)for(const Ae in a){const Ce=a[Ae];Pe(Ce)&&(r[Ae]=Ce.bind(i))}if(n){const Ae=n.call(i,i);tt(Ae)&&(e.data=ki(Ae))}if(Gr=!0,s)for(const Ae in s){const Ce=s[Ae],Ie=Pe(Ce)?Ce.bind(i,i):Pe(Ce.get)?Ce.get.bind(i,i):Ft,lt=!Pe(Ce)&&Pe(Ce.set)?Ce.set.bind(i):Ft,rt=Wt({get:Ie,set:lt});Object.defineProperty(r,Ae,{enumerable:!0,configurable:!0,get:()=>rt.value,set:nt=>rt.value=nt})}if(u)for(const Ae in u)Ja(u[Ae],r,i,Ae);if(c){const Ae=Pe(c)?c.call(i):c;Reflect.ownKeys(Ae).forEach(Ce=>{Gi(Ce,Ae[Ce])})}m&&mo(m,e,"c");function we(Ae,Ce){Se(Ce)?Ce.forEach(Ie=>Ae(Ie.bind(i))):Ce&&Ae(Ce.bind(i))}if(we(wf,v),we(Ha,_),we(bf,S),we(Sf,l),we(_f,w),we(xf,C),we(Mf,D),we(qf,H),we(kf,de),we(Wa,A),we(Xa,E),we(jf,le),Se(U))if(U.length){const Ae=e.exposed||(e.exposed={});U.forEach(Ce=>{Object.defineProperty(Ae,Ce,{get:()=>i[Ce],set:Ie=>i[Ce]=Ie})})}else e.exposed||(e.exposed={});Q&&e.render===Ft&&(e.render=Q),pe!=null&&(e.inheritAttrs=pe),Y&&(e.components=Y),xe&&(e.directives=xe)}function Ef(e,t,i=Ft,r=!1){Se(e)&&(e=Jr(e));for(const n in e){const s=e[n];let a;tt(s)?"default"in s?a=fn(s.from||n,s.default,!0):a=fn(s.from||n):a=fn(s),pt(a)&&r?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:u=>a.value=u}):t[n]=a}}function mo(e,t,i){Et(Se(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,i)}function Ja(e,t,i,r){const n=r.includes(".")?Fa(i,r):()=>i[r];if(st(e)){const s=t[e];Pe(s)&&ai(n,s)}else if(Pe(e))ai(n,e.bind(i));else if(tt(e))if(Se(e))e.forEach(s=>Ja(s,t,i,r));else{const s=Pe(e.handler)?e.handler.bind(i):t[e.handler];Pe(s)&&ai(n,s,e)}}function Qa(e){const t=e.type,{mixins:i,extends:r}=t,{mixins:n,optionsCache:s,config:{optionMergeStrategies:a}}=e.appContext,u=s.get(t);let c;return u?c=u:!n.length&&!i&&!r?c=t:(c={},n.length&&n.forEach(d=>tr(c,d,a,!0)),tr(c,t,a)),s.set(t,c),c}function tr(e,t,i,r=!1){const{mixins:n,extends:s}=t;s&&tr(e,s,i,!0),n&&n.forEach(a=>tr(e,a,i,!0));for(const a in t)if(!(r&&a==="expose")){const u=Pf[a]||i&&i[a];e[a]=u?u(e[a],t[a]):t[a]}return e}const Pf={data:go,props:bn,emits:bn,methods:bn,computed:bn,beforeCreate:vt,created:vt,beforeMount:vt,mounted:vt,beforeUpdate:vt,updated:vt,beforeDestroy:vt,beforeUnmount:vt,destroyed:vt,unmounted:vt,activated:vt,deactivated:vt,errorCaptured:vt,serverPrefetch:vt,components:bn,directives:bn,watch:Af,provide:go,inject:Lf};function go(e,t){return t?e?function(){return ht(Pe(e)?e.call(this,this):e,Pe(t)?t.call(this,this):t)}:t:e}function Lf(e,t){return bn(Jr(e),Jr(t))}function Jr(e){if(Se(e)){const t={};for(let i=0;i<e.length;i++)t[e[i]]=e[i];return t}return e}function vt(e,t){return e?[...new Set([].concat(e,t))]:t}function bn(e,t){return e?ht(ht(Object.create(null),e),t):t}function Af(e,t){if(!e)return t;if(!t)return e;const i=ht(Object.create(null),e);for(const r in t)i[r]=vt(e[r],t[r]);return i}function Nf(e,t,i,r=!1){const n={},s={};Yi(s,pr,1),e.propsDefaults=Object.create(null),Ya(e,t,n,s);for(const a in e.propsOptions[0])a in n||(n[a]=void 0);i?e.props=r?n:Yu(n):e.type.props?e.props=n:e.props=s,e.attrs=s}function If(e,t,i,r){const{props:n,attrs:s,vnode:{patchFlag:a}}=e,u=Ve(n),[c]=e.propsOptions;let d=!1;if((r||a>0)&&!(a&16)){if(a&8){const m=e.vnode.dynamicProps;for(let v=0;v<m.length;v++){let _=m[v];if(cr(e.emitsOptions,_))continue;const S=t[_];if(c)if(Re(s,_))S!==s[_]&&(s[_]=S,d=!0);else{const l=Xt(_);n[l]=Qr(c,u,l,S,e,!1)}else S!==s[_]&&(s[_]=S,d=!0)}}}else{Ya(e,t,n,s)&&(d=!0);let m;for(const v in u)(!t||!Re(t,v)&&((m=Un(v))===v||!Re(t,m)))&&(c?i&&(i[v]!==void 0||i[m]!==void 0)&&(n[v]=Qr(c,u,v,void 0,e,!0)):delete n[v]);if(s!==u)for(const v in s)(!t||!Re(t,v)&&!0)&&(delete s[v],d=!0)}d&&Ut(e,"set","$attrs")}function Ya(e,t,i,r){const[n,s]=e.propsOptions;let a=!1,u;if(t)for(let c in t){if($i(c))continue;const d=t[c];let m;n&&Re(n,m=Xt(c))?!s||!s.includes(m)?i[m]=d:(u||(u={}))[m]=d:cr(e.emitsOptions,c)||(!(c in r)||d!==r[c])&&(r[c]=d,a=!0)}if(s){const c=Ve(i),d=u||Qe;for(let m=0;m<s.length;m++){const v=s[m];i[v]=Qr(n,c,v,d[v],e,!Re(d,v))}}return a}function Qr(e,t,i,r,n,s){const a=e[i];if(a!=null){const u=Re(a,"default");if(u&&r===void 0){const c=a.default;if(a.type!==Function&&Pe(c)){const{propsDefaults:d}=n;i in d?r=d[i]:(Vn(n),r=d[i]=c.call(null,t),Mn())}else r=c}a[0]&&(s&&!u?r=!1:a[1]&&(r===""||r===Un(i))&&(r=!0))}return r}function Ka(e,t,i=!1){const r=t.propsCache,n=r.get(e);if(n)return n;const s=e.props,a={},u=[];let c=!1;if(!Pe(e)){const m=v=>{c=!0;const[_,S]=Ka(v,t,!0);ht(a,_),S&&u.push(...S)};!i&&t.mixins.length&&t.mixins.forEach(m),e.extends&&m(e.extends),e.mixins&&e.mixins.forEach(m)}if(!s&&!c)return r.set(e,Bn),Bn;if(Se(s))for(let m=0;m<s.length;m++){const v=Xt(s[m]);vo(v)&&(a[v]=Qe)}else if(s)for(const m in s){const v=Xt(m);if(vo(v)){const _=s[m],S=a[v]=Se(_)||Pe(_)?{type:_}:_;if(S){const l=yo(Boolean,S.type),w=yo(String,S.type);S[0]=l>-1,S[1]=w<0||l<w,(l>-1||Re(S,"default"))&&u.push(v)}}}const d=[a,u];return r.set(e,d),d}function vo(e){return e[0]!=="$"}function _o(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function xo(e,t){return _o(e)===_o(t)}function yo(e,t){return Se(t)?t.findIndex(i=>xo(i,e)):Pe(t)&&xo(t,e)?0:-1}const Za=e=>e[0]==="_"||e==="$stable",xs=e=>Se(e)?e.map(Ht):[Ht(e)],Rf=(e,t,i)=>{if(t._n)return t;const r=gs((...n)=>xs(t(...n)),i);return r._c=!1,r},el=(e,t,i)=>{const r=e._ctx;for(const n in e){if(Za(n))continue;const s=e[n];if(Pe(s))t[n]=Rf(n,s,r);else if(s!=null){const a=xs(s);t[n]=()=>a}}},tl=(e,t)=>{const i=xs(t);e.slots.default=()=>i},Ff=(e,t)=>{if(e.vnode.shapeFlag&32){const i=t._;i?(e.slots=Ve(t),Yi(t,"_",i)):el(t,e.slots={})}else e.slots={},t&&tl(e,t);Yi(e.slots,pr,1)},Bf=(e,t,i)=>{const{vnode:r,slots:n}=e;let s=!0,a=Qe;if(r.shapeFlag&32){const u=t._;u?i&&u===1?s=!1:(ht(n,t),!i&&u===1&&delete n._):(s=!t.$stable,el(t,n)),a=t}else t&&(tl(e,t),a={default:1});if(s)for(const u in n)!Za(u)&&!(u in a)&&delete n[u]};function nl(){return{app:null,config:{isNativeTag:vu,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 Df=0;function zf(e,t){return function(r,n=null){Pe(r)||(r=Object.assign({},r)),n!=null&&!tt(n)&&(n=null);const s=nl(),a=new Set;let u=!1;const c=s.app={_uid:Df++,_component:r,_props:n,_container:null,_context:s,_instance:null,version:rc,get config(){return s.config},set config(d){},use(d,...m){return a.has(d)||(d&&Pe(d.install)?(a.add(d),d.install(c,...m)):Pe(d)&&(a.add(d),d(c,...m))),c},mixin(d){return s.mixins.includes(d)||s.mixins.push(d),c},component(d,m){return m?(s.components[d]=m,c):s.components[d]},directive(d,m){return m?(s.directives[d]=m,c):s.directives[d]},mount(d,m,v){if(!u){const _=Je(r,n);return _.appContext=s,m&&t?t(_,d):e(_,d,v),u=!0,c._container=d,d.__vue_app__=c,mr(_.component)||_.component.proxy}},unmount(){u&&(e(null,c._container),delete c._container.__vue_app__)},provide(d,m){return s.provides[d]=m,c}};return c}}function Yr(e,t,i,r,n=!1){if(Se(e)){e.forEach((_,S)=>Yr(_,t&&(Se(t)?t[S]:t),i,r,n));return}if(li(r)&&!n)return;const s=r.shapeFlag&4?mr(r.component)||r.component.proxy:r.el,a=n?null:s,{i:u,r:c}=e,d=t&&t.r,m=u.refs===Qe?u.refs={}:u.refs,v=u.setupState;if(d!=null&&d!==c&&(st(d)?(m[d]=null,Re(v,d)&&(v[d]=null)):pt(d)&&(d.value=null)),Pe(c))un(c,u,12,[a,m]);else{const _=st(c),S=pt(c);if(_||S){const l=()=>{if(e.f){const w=_?m[c]:c.value;n?Se(w)&&os(w,s):Se(w)?w.includes(s)||w.push(s):_?(m[c]=[s],Re(v,c)&&(v[c]=m[c])):(c.value=[s],e.k&&(m[e.k]=c.value))}else _?(m[c]=a,Re(v,c)&&(v[c]=a)):S&&(c.value=a,e.k&&(m[e.k]=a))};a?(l.id=-1,yt(l,i)):l()}}}const yt=pf;function Vf(e){return Hf(e)}function Hf(e,t){const i=Su();i.__VUE__=!0;const{insert:r,remove:n,patchProp:s,createElement:a,createText:u,createComment:c,setText:d,setElementText:m,parentNode:v,nextSibling:_,setScopeId:S=Ft,cloneNode:l,insertStaticContent:w}=e,C=(j,P,T,R=null,V=null,ne=null,ue=!1,K=null,ae=!!P.dynamicChildren)=>{if(j===P)return;j&&!Sn(j,P)&&(R=me(j),ut(j,V,ne,!0),j=null),P.patchFlag===-2&&(ae=!1,P.dynamicChildren=null);const{type:G,ref:ge,shapeFlag:fe}=P;switch(G){case ys:L(j,P,T,R);break;case Pt:A(j,P,T,R);break;case Ji:j==null&&O(P,T,R,ue);break;case Ze:xe(j,P,T,R,V,ne,ue,K,ae);break;default:fe&1?H(j,P,T,R,V,ne,ue,K,ae):fe&6?Te(j,P,T,R,V,ne,ue,K,ae):(fe&64||fe&128)&&G.process(j,P,T,R,V,ne,ue,K,ae,De)}ge!=null&&V&&Yr(ge,j&&j.ref,ne,P||j,!P)},L=(j,P,T,R)=>{if(j==null)r(P.el=u(P.children),T,R);else{const V=P.el=j.el;P.children!==j.children&&d(V,P.children)}},A=(j,P,T,R)=>{j==null?r(P.el=c(P.children||""),T,R):P.el=j.el},O=(j,P,T,R)=>{[j.el,j.anchor]=w(j.children,P,T,R,j.el,j.anchor)},E=({el:j,anchor:P},T,R)=>{let V;for(;j&&j!==P;)V=_(j),r(j,T,R),j=V;r(P,T,R)},Q=({el:j,anchor:P})=>{let T;for(;j&&j!==P;)T=_(j),n(j),j=T;n(P)},H=(j,P,T,R,V,ne,ue,K,ae)=>{ue=ue||P.type==="svg",j==null?de(P,T,R,V,ne,ue,K,ae):U(j,P,V,ne,ue,K,ae)},de=(j,P,T,R,V,ne,ue,K)=>{let ae,G;const{type:ge,props:fe,shapeFlag:ye,transition:ke,patchFlag:Ne,dirs:ze}=j;if(j.el&&l!==void 0&&Ne===-1)ae=j.el=l(j.el);else{if(ae=j.el=a(j.type,ne,fe&&fe.is,fe),ye&8?m(ae,j.children):ye&16&&le(j.children,ae,null,R,V,ne&&ge!=="foreignObject",ue,K),ze&&_n(j,null,R,"created"),fe){for(const Ue in fe)Ue!=="value"&&!$i(Ue)&&s(ae,Ue,null,fe[Ue],ne,j.children,R,V,oe);"value"in fe&&s(ae,"value",null,fe.value),(G=fe.onVnodeBeforeMount)&&zt(G,R,j)}D(ae,j,j.scopeId,ue,R)}ze&&_n(j,null,R,"beforeMount");const He=(!V||V&&!V.pendingBranch)&&ke&&!ke.persisted;He&&ke.beforeEnter(ae),r(ae,P,T),((G=fe&&fe.onVnodeMounted)||He||ze)&&yt(()=>{G&&zt(G,R,j),He&&ke.enter(ae),ze&&_n(j,null,R,"mounted")},V)},D=(j,P,T,R,V)=>{if(T&&S(j,T),R)for(let ne=0;ne<R.length;ne++)S(j,R[ne]);if(V){let ne=V.subTree;if(P===ne){const ue=V.vnode;D(j,ue,ue.scopeId,ue.slotScopeIds,V.parent)}}},le=(j,P,T,R,V,ne,ue,K,ae=0)=>{for(let G=ae;G<j.length;G++){const ge=j[G]=K?sn(j[G]):Ht(j[G]);C(null,ge,P,T,R,V,ne,ue,K)}},U=(j,P,T,R,V,ne,ue)=>{const K=P.el=j.el;let{patchFlag:ae,dynamicChildren:G,dirs:ge}=P;ae|=j.patchFlag&16;const fe=j.props||Qe,ye=P.props||Qe;let ke;T&&xn(T,!1),(ke=ye.onVnodeBeforeUpdate)&&zt(ke,T,P,j),ge&&_n(P,j,T,"beforeUpdate"),T&&xn(T,!0);const Ne=V&&P.type!=="foreignObject";if(G?pe(j.dynamicChildren,G,K,T,R,Ne,ne):ue||Ie(j,P,K,null,T,R,Ne,ne,!1),ae>0){if(ae&16)Y(K,P,fe,ye,T,R,V);else if(ae&2&&fe.class!==ye.class&&s(K,"class",null,ye.class,V),ae&4&&s(K,"style",fe.style,ye.style,V),ae&8){const ze=P.dynamicProps;for(let He=0;He<ze.length;He++){const Ue=ze[He],wt=fe[Ue],Qt=ye[Ue];(Qt!==wt||Ue==="value")&&s(K,Ue,wt,Qt,V,j.children,T,R,oe)}}ae&1&&j.children!==P.children&&m(K,P.children)}else!ue&&G==null&&Y(K,P,fe,ye,T,R,V);((ke=ye.onVnodeUpdated)||ge)&&yt(()=>{ke&&zt(ke,T,P,j),ge&&_n(P,j,T,"updated")},R)},pe=(j,P,T,R,V,ne,ue)=>{for(let K=0;K<P.length;K++){const ae=j[K],G=P[K],ge=ae.el&&(ae.type===Ze||!Sn(ae,G)||ae.shapeFlag&70)?v(ae.el):T;C(ae,G,ge,null,R,V,ne,ue,!0)}},Y=(j,P,T,R,V,ne,ue)=>{if(T!==R){for(const K in R){if($i(K))continue;const ae=R[K],G=T[K];ae!==G&&K!=="value"&&s(j,K,G,ae,ue,P.children,V,ne,oe)}if(T!==Qe)for(const K in T)!$i(K)&&!(K in R)&&s(j,K,T[K],null,ue,P.children,V,ne,oe);"value"in R&&s(j,"value",T.value,R.value)}},xe=(j,P,T,R,V,ne,ue,K,ae)=>{const G=P.el=j?j.el:u(""),ge=P.anchor=j?j.anchor:u("");let{patchFlag:fe,dynamicChildren:ye,slotScopeIds:ke}=P;ke&&(K=K?K.concat(ke):ke),j==null?(r(G,T,R),r(ge,T,R),le(P.children,T,ge,V,ne,ue,K,ae)):fe>0&&fe&64&&ye&&j.dynamicChildren?(pe(j.dynamicChildren,ye,T,V,ne,ue,K),(P.key!=null||V&&P===V.subTree)&&il(j,P,!0)):Ie(j,P,T,ge,V,ne,ue,K,ae)},Te=(j,P,T,R,V,ne,ue,K,ae)=>{P.slotScopeIds=K,j==null?P.shapeFlag&512?V.ctx.activate(P,T,R,ue,ae):je(P,T,R,V,ne,ue,ae):we(j,P,ae)},je=(j,P,T,R,V,ne,ue)=>{const K=j.component=Qf(j,R,V);if(hr(j)&&(K.ctx.renderer=De),Kf(K),K.asyncDep){if(V&&V.registerDep(K,Ae),!j.el){const ae=K.subTree=Je(Pt);A(null,ae,P,T)}return}Ae(K,j,P,T,V,ne,ue)},we=(j,P,T)=>{const R=P.component=j.component;if(cf(j,P,T))if(R.asyncDep&&!R.asyncResolved){Ce(R,P,T);return}else R.next=P,sf(R.update),R.update();else P.el=j.el,R.vnode=P},Ae=(j,P,T,R,V,ne,ue)=>{const K=()=>{if(j.isMounted){let{next:ge,bu:fe,u:ye,parent:ke,vnode:Ne}=j,ze=ge,He;xn(j,!1),ge?(ge.el=Ne.el,Ce(j,ge,ue)):ge=Ne,fe&&Ui(fe),(He=ge.props&&ge.props.onVnodeBeforeUpdate)&&zt(He,ke,ge,Ne),xn(j,!0);const Ue=Er(j),wt=j.subTree;j.subTree=Ue,C(wt,Ue,v(wt.el),me(wt),j,V,ne),ge.el=Ue.el,ze===null&&hf(j,Ue.el),ye&&yt(ye,V),(He=ge.props&&ge.props.onVnodeUpdated)&&yt(()=>zt(He,ke,ge,Ne),V)}else{let ge;const{el:fe,props:ye}=P,{bm:ke,m:Ne,parent:ze}=j,He=li(P);if(xn(j,!1),ke&&Ui(ke),!He&&(ge=ye&&ye.onVnodeBeforeMount)&&zt(ge,ze,P),xn(j,!0),fe&&qe){const Ue=()=>{j.subTree=Er(j),qe(fe,j.subTree,j,V,null)};He?P.type.__asyncLoader().then(()=>!j.isUnmounted&&Ue()):Ue()}else{const Ue=j.subTree=Er(j);C(null,Ue,T,R,j,V,ne),P.el=Ue.el}if(Ne&&yt(Ne,V),!He&&(ge=ye&&ye.onVnodeMounted)){const Ue=P;yt(()=>zt(ge,ze,Ue),V)}(P.shapeFlag&256||ze&&li(ze.vnode)&&ze.vnode.shapeFlag&256)&&j.a&&yt(j.a,V),j.isMounted=!0,P=T=R=null}},ae=j.effect=new us(K,()=>Oa(G),j.scope),G=j.update=()=>ae.run();G.id=j.uid,xn(j,!0),G()},Ce=(j,P,T)=>{P.component=j;const R=j.vnode.props;j.vnode=P,j.next=null,If(j,P.props,R,T),Bf(j,P.children,T),Gn(),fr(void 0,j.update),Jn()},Ie=(j,P,T,R,V,ne,ue,K,ae=!1)=>{const G=j&&j.children,ge=j?j.shapeFlag:0,fe=P.children,{patchFlag:ye,shapeFlag:ke}=P;if(ye>0){if(ye&128){rt(G,fe,T,R,V,ne,ue,K,ae);return}else if(ye&256){lt(G,fe,T,R,V,ne,ue,K,ae);return}}ke&8?(ge&16&&oe(G,V,ne),fe!==G&&m(T,fe)):ge&16?ke&16?rt(G,fe,T,R,V,ne,ue,K,ae):oe(G,V,ne,!0):(ge&8&&m(T,""),ke&16&&le(fe,T,R,V,ne,ue,K,ae))},lt=(j,P,T,R,V,ne,ue,K,ae)=>{j=j||Bn,P=P||Bn;const G=j.length,ge=P.length,fe=Math.min(G,ge);let ye;for(ye=0;ye<fe;ye++){const ke=P[ye]=ae?sn(P[ye]):Ht(P[ye]);C(j[ye],ke,T,null,V,ne,ue,K,ae)}G>ge?oe(j,V,ne,!0,!1,fe):le(P,T,R,V,ne,ue,K,ae,fe)},rt=(j,P,T,R,V,ne,ue,K,ae)=>{let G=0;const ge=P.length;let fe=j.length-1,ye=ge-1;for(;G<=fe&&G<=ye;){const ke=j[G],Ne=P[G]=ae?sn(P[G]):Ht(P[G]);if(Sn(ke,Ne))C(ke,Ne,T,null,V,ne,ue,K,ae);else break;G++}for(;G<=fe&&G<=ye;){const ke=j[fe],Ne=P[ye]=ae?sn(P[ye]):Ht(P[ye]);if(Sn(ke,Ne))C(ke,Ne,T,null,V,ne,ue,K,ae);else break;fe--,ye--}if(G>fe){if(G<=ye){const ke=ye+1,Ne=ke<ge?P[ke].el:R;for(;G<=ye;)C(null,P[G]=ae?sn(P[G]):Ht(P[G]),T,Ne,V,ne,ue,K,ae),G++}}else if(G>ye)for(;G<=fe;)ut(j[G],V,ne,!0),G++;else{const ke=G,Ne=G,ze=new Map;for(G=Ne;G<=ye;G++){const dt=P[G]=ae?sn(P[G]):Ht(P[G]);dt.key!=null&&ze.set(dt.key,G)}let He,Ue=0;const wt=ye-Ne+1;let Qt=!1,Mi=0;const dn=new Array(wt);for(G=0;G<wt;G++)dn[G]=0;for(G=ke;G<=fe;G++){const dt=j[G];if(Ue>=wt){ut(dt,V,ne,!0);continue}let bt;if(dt.key!=null)bt=ze.get(dt.key);else for(He=Ne;He<=ye;He++)if(dn[He-Ne]===0&&Sn(dt,P[He])){bt=He;break}bt===void 0?ut(dt,V,ne,!0):(dn[bt-Ne]=G+1,bt>=Mi?Mi=bt:Qt=!0,C(dt,P[bt],T,null,V,ne,ue,K,ae),Ue++)}const Tn=Qt?Wf(dn):Bn;for(He=Tn.length-1,G=wt-1;G>=0;G--){const dt=Ne+G,bt=P[dt],Ci=dt+1<ge?P[dt+1].el:R;dn[G]===0?C(null,bt,T,Ci,V,ne,ue,K,ae):Qt&&(He<0||G!==Tn[He]?nt(bt,T,Ci,2):He--)}}},nt=(j,P,T,R,V=null)=>{const{el:ne,type:ue,transition:K,children:ae,shapeFlag:G}=j;if(G&6){nt(j.component.subTree,P,T,R);return}if(G&128){j.suspense.move(P,T,R);return}if(G&64){ue.move(j,P,T,De);return}if(ue===Ze){r(ne,P,T);for(let fe=0;fe<ae.length;fe++)nt(ae[fe],P,T,R);r(j.anchor,P,T);return}if(ue===Ji){E(j,P,T);return}if(R!==2&&G&1&&K)if(R===0)K.beforeEnter(ne),r(ne,P,T),yt(()=>K.enter(ne),V);else{const{leave:fe,delayLeave:ye,afterLeave:ke}=K,Ne=()=>r(ne,P,T),ze=()=>{fe(ne,()=>{Ne(),ke&&ke()})};ye?ye(ne,Ne,ze):ze()}else r(ne,P,T)},ut=(j,P,T,R=!1,V=!1)=>{const{type:ne,props:ue,ref:K,children:ae,dynamicChildren:G,shapeFlag:ge,patchFlag:fe,dirs:ye}=j;if(K!=null&&Yr(K,null,T,j,!0),ge&256){P.ctx.deactivate(j);return}const ke=ge&1&&ye,Ne=!li(j);let ze;if(Ne&&(ze=ue&&ue.onVnodeBeforeUnmount)&&zt(ze,P,j),ge&6)he(j.component,T,R);else{if(ge&128){j.suspense.unmount(T,R);return}ke&&_n(j,null,P,"beforeUnmount"),ge&64?j.type.remove(j,P,T,V,De,R):G&&(ne!==Ze||fe>0&&fe&64)?oe(G,P,T,!1,!0):(ne===Ze&&fe&384||!V&&ge&16)&&oe(ae,P,T),R&&Bt(j)}(Ne&&(ze=ue&&ue.onVnodeUnmounted)||ke)&&yt(()=>{ze&&zt(ze,P,j),ke&&_n(j,null,P,"unmounted")},T)},Bt=j=>{const{type:P,el:T,anchor:R,transition:V}=j;if(P===Ze){X(T,R);return}if(P===Ji){Q(j);return}const ne=()=>{n(T),V&&!V.persisted&&V.afterLeave&&V.afterLeave()};if(j.shapeFlag&1&&V&&!V.persisted){const{leave:ue,delayLeave:K}=V,ae=()=>ue(T,ne);K?K(j.el,ne,ae):ae()}else ne()},X=(j,P)=>{let T;for(;j!==P;)T=_(j),n(j),j=T;n(P)},he=(j,P,T)=>{const{bum:R,scope:V,update:ne,subTree:ue,um:K}=j;R&&Ui(R),V.stop(),ne&&(ne.active=!1,ut(ue,j,P,T)),K&&yt(K,P),yt(()=>{j.isUnmounted=!0},P),P&&P.pendingBranch&&!P.isUnmounted&&j.asyncDep&&!j.asyncResolved&&j.suspenseId===P.pendingId&&(P.deps--,P.deps===0&&P.resolve())},oe=(j,P,T,R=!1,V=!1,ne=0)=>{for(let ue=ne;ue<j.length;ue++)ut(j[ue],P,T,R,V)},me=j=>j.shapeFlag&6?me(j.component.subTree):j.shapeFlag&128?j.suspense.next():_(j.anchor||j.el),Fe=(j,P,T)=>{j==null?P._vnode&&ut(P._vnode,null,null,!0):C(P._vnode||null,j,P,null,null,null,T),La(),P._vnode=j},De={p:C,um:ut,m:nt,r:Bt,mt:je,mc:le,pc:Ie,pbc:pe,n:me,o:e};let Me,qe;return t&&([Me,qe]=t(De)),{render:Fe,hydrate:Me,createApp:zf(Fe,Me)}}function xn({effect:e,update:t},i){e.allowRecurse=t.allowRecurse=i}function il(e,t,i=!1){const r=e.children,n=t.children;if(Se(r)&&Se(n))for(let s=0;s<r.length;s++){const a=r[s];let u=n[s];u.shapeFlag&1&&!u.dynamicChildren&&((u.patchFlag<=0||u.patchFlag===32)&&(u=n[s]=sn(n[s]),u.el=a.el),i||il(a,u))}}function Wf(e){const t=e.slice(),i=[0];let r,n,s,a,u;const c=e.length;for(r=0;r<c;r++){const d=e[r];if(d!==0){if(n=i[i.length-1],e[n]<d){t[r]=n,i.push(r);continue}for(s=0,a=i.length-1;s<a;)u=s+a>>1,e[i[u]]<d?s=u+1:a=u;d<e[i[s]]&&(s>0&&(t[r]=i[s-1]),i[s]=r)}}for(s=i.length,a=i[s-1];s-- >0;)i[s]=a,a=t[a];return i}const Xf=e=>e.__isTeleport,Ze=Symbol(void 0),ys=Symbol(void 0),Pt=Symbol(void 0),Ji=Symbol(void 0),ui=[];let Rt=null;function _e(e=!1){ui.push(Rt=e?null:[])}function $f(){ui.pop(),Rt=ui[ui.length-1]||null}let _i=1;function wo(e){_i+=e}function rl(e){return e.dynamicChildren=_i>0?Rt||Bn:null,$f(),_i>0&&Rt&&Rt.push(e),e}function be(e,t,i,r,n,s){return rl(q(e,t,i,r,n,s,!0))}function xi(e,t,i,r,n){return rl(Je(e,t,i,r,n,!0))}function nr(e){return e?e.__v_isVNode===!0:!1}function Sn(e,t){return e.type===t.type&&e.key===t.key}const pr="__vInternal",sl=({key:e})=>e!=null?e:null,Qi=({ref:e,ref_key:t,ref_for:i})=>e!=null?st(e)||pt(e)||Pe(e)?{i:mt,r:e,k:t,f:!!i}:e:null;function q(e,t=null,i=null,r=0,n=null,s=e===Ze?0:1,a=!1,u=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&sl(t),ref:t&&Qi(t),scopeId:Ia,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:n,dynamicChildren:null,appContext:null};return u?(ws(c,i),s&128&&e.normalize(c)):i&&(c.shapeFlag|=st(i)?8:16),_i>0&&!a&&Rt&&(c.patchFlag>0||s&6)&&c.patchFlag!==32&&Rt.push(c),c}const Je=Uf;function Uf(e,t=null,i=null,r=0,n=null,s=!1){if((!e||e===$a)&&(e=Pt),nr(e)){const u=hn(e,t,!0);return i&&ws(u,i),_i>0&&!s&&Rt&&(u.shapeFlag&6?Rt[Rt.indexOf(e)]=u:Rt.push(u)),u.patchFlag|=-2,u}if(ic(e)&&(e=e.__vccOpts),t){t=ol(t);let{class:u,style:c}=t;u&&!st(u)&&(t.class=_t(u)),tt(c)&&(ya(c)&&!Se(c)&&(c=ht({},c)),t.style=rr(c))}const a=st(e)?1:df(e)?128:Xf(e)?64:tt(e)?4:Pe(e)?2:0;return q(e,t,i,r,n,a,s,!0)}function ol(e){return e?ya(e)||pr in e?ht({},e):e:null}function hn(e,t,i=!1){const{props:r,ref:n,patchFlag:s,children:a}=e,u=t?al(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&sl(u),ref:t&&t.ref?i&&n?Se(n)?n.concat(Qi(t)):[n,Qi(t)]:Qi(t):n,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ze?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&hn(e.ssContent),ssFallback:e.ssFallback&&hn(e.ssFallback),el:e.el,anchor:e.anchor}}function Jt(e=" ",t=0){return Je(ys,null,e,t)}function yv(e,t){const i=Je(Ji,null,e);return i.staticCount=t,i}function Nt(e="",t=!1){return t?(_e(),xi(Pt,null,e)):Je(Pt,null,e)}function Ht(e){return e==null||typeof e=="boolean"?Je(Pt):Se(e)?Je(Ze,null,e.slice()):typeof e=="object"?sn(e):Je(ys,null,String(e))}function sn(e){return e.el===null||e.memo?e:hn(e)}function ws(e,t){let i=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Se(t))i=16;else if(typeof t=="object")if(r&65){const n=t.default;n&&(n._c&&(n._d=!1),ws(e,n()),n._c&&(n._d=!0));return}else{i=32;const n=t._;!n&&!(pr in t)?t._ctx=mt:n===3&&mt&&(mt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Pe(t)?(t={default:t,_ctx:mt},i=32):(t=String(t),r&64?(i=16,t=[Jt(t)]):i=8);e.children=t,e.shapeFlag|=i}function al(...e){const t={};for(let i=0;i<e.length;i++){const r=e[i];for(const n in r)if(n==="class")t.class!==r.class&&(t.class=_t([t.class,r.class]));else if(n==="style")t.style=rr([t.style,r.style]);else if(sr(n)){const s=t[n],a=r[n];a&&s!==a&&!(Se(s)&&s.includes(a))&&(t[n]=s?[].concat(s,a):a)}else n!==""&&(t[n]=r[n])}return t}function zt(e,t,i,r=null){Et(e,t,7,[i,r])}const Gf=nl();let Jf=0;function Qf(e,t,i){const r=e.type,n=(t?t.appContext:e.appContext)||Gf,s={uid:Jf++,vnode:e,type:r,parent:t,appContext:n,root:null,next:null,subTree:null,effect:null,update:null,scope:new ju(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(n.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ka(r,n),emitsOptions:Na(r,n),emit:null,emitted:null,propsDefaults:Qe,inheritAttrs:r.inheritAttrs,ctx:Qe,data:Qe,props:Qe,attrs:Qe,slots:Qe,refs:Qe,setupState:Qe,setupContext:null,suspense:i,suspenseId:i?i.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 s.ctx={_:s},s.root=t?t.root:s,s.emit=lf.bind(null,s),e.ce&&e.ce(s),s}let ft=null;const Yf=()=>ft||mt,Vn=e=>{ft=e,e.scope.on()},Mn=()=>{ft&&ft.scope.off(),ft=null};function ll(e){return e.vnode.shapeFlag&4}let yi=!1;function Kf(e,t=!1){yi=t;const{props:i,children:r}=e.vnode,n=ll(e);Nf(e,i,n,t),Ff(e,r);const s=n?Zf(e,t):void 0;return yi=!1,s}function Zf(e,t){const i=e.type;e.accessCache=Object.create(null),e.proxy=wa(new Proxy(e.ctx,Tf));const{setup:r}=i;if(r){const n=e.setupContext=r.length>1?tc(e):null;Vn(e),Gn();const s=un(r,e,0,[e.props,n]);if(Jn(),Mn(),oa(s)){if(s.then(Mn,Mn),t)return s.then(a=>{bo(e,a,t)}).catch(a=>{ur(a,e,0)});e.asyncDep=s}else bo(e,s,t)}else ul(e,t)}function bo(e,t,i){Pe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:tt(t)&&(e.setupState=Ma(t)),ul(e,i)}let So;function ul(e,t,i){const r=e.type;if(!e.render){if(!t&&So&&!r.render){const n=r.template;if(n){const{isCustomElement:s,compilerOptions:a}=e.appContext.config,{delimiters:u,compilerOptions:c}=r,d=ht(ht({isCustomElement:s,delimiters:u},a),c);r.render=So(n,d)}}e.render=r.render||Ft}Vn(e),Gn(),Of(e),Jn(),Mn()}function ec(e){return new Proxy(e.attrs,{get(t,i){return Ct(e,"get","$attrs"),t[i]}})}function tc(e){const t=r=>{e.exposed=r||{}};let i;return{get attrs(){return i||(i=ec(e))},slots:e.slots,emit:e.emit,expose:t}}function mr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Ma(wa(e.exposed)),{get(t,i){if(i in t)return t[i];if(i in er)return er[i](e)}}))}function nc(e,t=!0){return Pe(e)?e.displayName||e.name:e.name||t&&e.__name}function ic(e){return Pe(e)&&"__vccOpts"in e}const Wt=(e,t)=>tf(e,t,yi);function bs(e,t,i){const r=arguments.length;return r===2?tt(t)&&!Se(t)?nr(t)?Je(e,null,[t]):Je(e,t):Je(e,null,t):(r>3?i=Array.prototype.slice.call(arguments,2):r===3&&nr(i)&&(i=[i]),Je(e,t,i))}const rc="3.2.37",sc="http://www.w3.org/2000/svg",jn=typeof document!="undefined"?document:null,jo=jn&&jn.createElement("template"),oc={insert:(e,t,i)=>{t.insertBefore(e,i||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,i,r)=>{const n=t?jn.createElementNS(sc,e):jn.createElement(e,i?{is:i}:void 0);return e==="select"&&r&&r.multiple!=null&&n.setAttribute("multiple",r.multiple),n},createText:e=>jn.createTextNode(e),createComment:e=>jn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>jn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,i,r,n,s){const a=i?i.previousSibling:t.lastChild;if(n&&(n===s||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),i),!(n===s||!(n=n.nextSibling)););else{jo.innerHTML=r?`<svg>${e}</svg>`:e;const u=jo.content;if(r){const c=u.firstChild;for(;c.firstChild;)u.appendChild(c.firstChild);u.removeChild(c)}t.insertBefore(u,i)}return[a?a.nextSibling:t.firstChild,i?i.previousSibling:t.lastChild]}};function ac(e,t,i){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):i?e.setAttribute("class",t):e.className=t}function lc(e,t,i){const r=e.style,n=st(i);if(i&&!n){for(const s in i)Kr(r,s,i[s]);if(t&&!st(t))for(const s in t)i[s]==null&&Kr(r,s,"")}else{const s=r.display;n?t!==i&&(r.cssText=i):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=s)}}const ko=/\s*!important$/;function Kr(e,t,i){if(Se(i))i.forEach(r=>Kr(e,t,r));else if(i==null&&(i=""),t.startsWith("--"))e.setProperty(t,i);else{const r=uc(e,t);ko.test(i)?e.setProperty(Un(r),i.replace(ko,""),"important"):e[r]=i}}const qo=["Webkit","Moz","ms"],Lr={};function uc(e,t){const i=Lr[t];if(i)return i;let r=Xt(t);if(r!=="filter"&&r in e)return Lr[t]=r;r=ar(r);for(let n=0;n<qo.length;n++){const s=qo[n]+r;if(s in e)return Lr[t]=s}return t}const Mo="http://www.w3.org/1999/xlink";function fc(e,t,i,r,n){if(r&&t.startsWith("xlink:"))i==null?e.removeAttributeNS(Mo,t.slice(6,t.length)):e.setAttributeNS(Mo,t,i);else{const s=cu(t);i==null||s&&!ra(i)?e.removeAttribute(t):e.setAttribute(t,s?"":i)}}function cc(e,t,i,r,n,s,a){if(t==="innerHTML"||t==="textContent"){r&&a(r,n,s),e[t]=i==null?"":i;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=i;const c=i==null?"":i;(e.value!==c||e.tagName==="OPTION")&&(e.value=c),i==null&&e.removeAttribute(t);return}let u=!1;if(i===""||i==null){const c=typeof e[t];c==="boolean"?i=ra(i):i==null&&c==="string"?(i="",u=!0):c==="number"&&(i=0,u=!0)}try{e[t]=i}catch{}u&&e.removeAttribute(t)}const[fl,hc]=(()=>{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const i=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(i&&Number(i[1])<=53)}return[e,t]})();let Zr=0;const dc=Promise.resolve(),pc=()=>{Zr=0},mc=()=>Zr||(dc.then(pc),Zr=fl());function an(e,t,i,r){e.addEventListener(t,i,r)}function gc(e,t,i,r){e.removeEventListener(t,i,r)}function vc(e,t,i,r,n=null){const s=e._vei||(e._vei={}),a=s[t];if(r&&a)a.value=r;else{const[u,c]=_c(t);if(r){const d=s[t]=xc(r,n);an(e,u,d,c)}else a&&(gc(e,u,a,c),s[t]=void 0)}}const Co=/(?:Once|Passive|Capture)$/;function _c(e){let t;if(Co.test(e)){t={};let i;for(;i=e.match(Co);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[Un(e.slice(2)),t]}function xc(e,t){const i=r=>{const n=r.timeStamp||fl();(hc||n>=i.attached-1)&&Et(yc(r,i.value),t,5,[r])};return i.value=e,i.attached=mc(),i}function yc(e,t){if(Se(t)){const i=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{i.call(e),e._stopped=!0},t.map(r=>n=>!n._stopped&&r&&r(n))}else return t}const To=/^on[a-z]/,wc=(e,t,i,r,n=!1,s,a,u,c)=>{t==="class"?ac(e,r,n):t==="style"?lc(e,i,r):sr(t)?ss(t)||vc(e,t,i,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):bc(e,t,r,n))?cc(e,t,r,s,a,u,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),fc(e,t,r,n))};function bc(e,t,i,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&To.test(t)&&Pe(i)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||To.test(t)&&st(i)?!1:t in e}const Zt="transition",Zn="animation",Ss=(e,{slots:t})=>bs(Ba,Sc(e),t);Ss.displayName="Transition";const cl={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};Ss.props=ht({},Ba.props,cl);const yn=(e,t=[])=>{Se(e)?e.forEach(i=>i(...t)):e&&e(...t)},Oo=e=>e?Se(e)?e.some(t=>t.length>1):e.length>1:!1;function Sc(e){const t={};for(const Y in e)Y in cl||(t[Y]=e[Y]);if(e.css===!1)return t;const{name:i="v",type:r,duration:n,enterFromClass:s=`${i}-enter-from`,enterActiveClass:a=`${i}-enter-active`,enterToClass:u=`${i}-enter-to`,appearFromClass:c=s,appearActiveClass:d=a,appearToClass:m=u,leaveFromClass:v=`${i}-leave-from`,leaveActiveClass:_=`${i}-leave-active`,leaveToClass:S=`${i}-leave-to`}=e,l=jc(n),w=l&&l[0],C=l&&l[1],{onBeforeEnter:L,onEnter:A,onEnterCancelled:O,onLeave:E,onLeaveCancelled:Q,onBeforeAppear:H=L,onAppear:de=A,onAppearCancelled:D=O}=t,le=(Y,xe,Te)=>{wn(Y,xe?m:u),wn(Y,xe?d:a),Te&&Te()},U=(Y,xe)=>{Y._isLeaving=!1,wn(Y,v),wn(Y,S),wn(Y,_),xe&&xe()},pe=Y=>(xe,Te)=>{const je=Y?de:A,we=()=>le(xe,Y,Te);yn(je,[xe,we]),Eo(()=>{wn(xe,Y?c:s),en(xe,Y?m:u),Oo(je)||Po(xe,r,w,we)})};return ht(t,{onBeforeEnter(Y){yn(L,[Y]),en(Y,s),en(Y,a)},onBeforeAppear(Y){yn(H,[Y]),en(Y,c),en(Y,d)},onEnter:pe(!1),onAppear:pe(!0),onLeave(Y,xe){Y._isLeaving=!0;const Te=()=>U(Y,xe);en(Y,v),Mc(),en(Y,_),Eo(()=>{!Y._isLeaving||(wn(Y,v),en(Y,S),Oo(E)||Po(Y,r,C,Te))}),yn(E,[Y,Te])},onEnterCancelled(Y){le(Y,!1),yn(O,[Y])},onAppearCancelled(Y){le(Y,!0),yn(D,[Y])},onLeaveCancelled(Y){U(Y),yn(Q,[Y])}})}function jc(e){if(e==null)return null;if(tt(e))return[Ar(e.enter),Ar(e.leave)];{const t=Ar(e);return[t,t]}}function Ar(e){return pi(e)}function en(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.add(i)),(e._vtc||(e._vtc=new Set)).add(t)}function wn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:i}=e;i&&(i.delete(t),i.size||(e._vtc=void 0))}function Eo(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let kc=0;function Po(e,t,i,r){const n=e._endId=++kc,s=()=>{n===e._endId&&r()};if(i)return setTimeout(s,i);const{type:a,timeout:u,propCount:c}=qc(e,t);if(!a)return r();const d=a+"end";let m=0;const v=()=>{e.removeEventListener(d,_),s()},_=S=>{S.target===e&&++m>=c&&v()};setTimeout(()=>{m<c&&v()},u+1),e.addEventListener(d,_)}function qc(e,t){const i=window.getComputedStyle(e),r=l=>(i[l]||"").split(", "),n=r(Zt+"Delay"),s=r(Zt+"Duration"),a=Lo(n,s),u=r(Zn+"Delay"),c=r(Zn+"Duration"),d=Lo(u,c);let m=null,v=0,_=0;t===Zt?a>0&&(m=Zt,v=a,_=s.length):t===Zn?d>0&&(m=Zn,v=d,_=c.length):(v=Math.max(a,d),m=v>0?a>d?Zt:Zn:null,_=m?m===Zt?s.length:c.length:0);const S=m===Zt&&/\b(transform|all)(,|$)/.test(i[Zt+"Property"]);return{type:m,timeout:v,propCount:_,hasTransform:S}}function Lo(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((i,r)=>Ao(i)+Ao(e[r])))}function Ao(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Mc(){return document.body.offsetHeight}const Hn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Se(t)?i=>Ui(t,i):t};function Cc(e){e.target.composing=!0}function No(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ye={created(e,{modifiers:{lazy:t,trim:i,number:r}},n){e._assign=Hn(n);const s=r||n.props&&n.props.type==="number";an(e,t?"change":"input",a=>{if(a.target.composing)return;let u=e.value;i&&(u=u.trim()),s&&(u=pi(u)),e._assign(u)}),i&&an(e,"change",()=>{e.value=e.value.trim()}),t||(an(e,"compositionstart",Cc),an(e,"compositionend",No),an(e,"change",No))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:i,trim:r,number:n}},s){if(e._assign=Hn(s),e.composing||document.activeElement===e&&e.type!=="range"&&(i||r&&e.value.trim()===t||(n||e.type==="number")&&pi(e.value)===t))return;const a=t==null?"":t;e.value!==a&&(e.value=a)}},Tc={deep:!0,created(e,t,i){e._assign=Hn(i),an(e,"change",()=>{const r=e._modelValue,n=wi(e),s=e.checked,a=e._assign;if(Se(r)){const u=rs(r,n),c=u!==-1;if(s&&!c)a(r.concat(n));else if(!s&&c){const d=[...r];d.splice(u,1),a(d)}}else if($n(r)){const u=new Set(r);s?u.add(n):u.delete(n),a(u)}else a(hl(e,s))})},mounted:Io,beforeUpdate(e,t,i){e._assign=Hn(i),Io(e,t,i)}};function Io(e,{value:t,oldValue:i},r){e._modelValue=t,Se(t)?e.checked=rs(t,r.props.value)>-1:$n(t)?e.checked=t.has(r.props.value):t!==i&&(e.checked=Si(t,hl(e,!0)))}const Oc={deep:!0,created(e,{value:t,modifiers:{number:i}},r){const n=$n(t);an(e,"change",()=>{const s=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>i?pi(wi(a)):wi(a));e._assign(e.multiple?n?new Set(s):s:s[0])}),e._assign=Hn(r)},mounted(e,{value:t}){Ro(e,t)},beforeUpdate(e,t,i){e._assign=Hn(i)},updated(e,{value:t}){Ro(e,t)}};function Ro(e,t){const i=e.multiple;if(!(i&&!Se(t)&&!$n(t))){for(let r=0,n=e.options.length;r<n;r++){const s=e.options[r],a=wi(s);if(i)Se(t)?s.selected=rs(t,a)>-1:s.selected=t.has(a);else if(Si(wi(s),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!i&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function wi(e){return"_value"in e?e._value:e.value}function hl(e,t){const i=t?"_trueValue":"_falseValue";return i in e?e[i]:t}const Fo={beforeMount(e,{value:t},{transition:i}){e._vod=e.style.display==="none"?"":e.style.display,i&&t?i.beforeEnter(e):ei(e,t)},mounted(e,{value:t},{transition:i}){i&&t&&i.enter(e)},updated(e,{value:t,oldValue:i},{transition:r}){!t!=!i&&(r?t?(r.beforeEnter(e),ei(e,!0),r.enter(e)):r.leave(e,()=>{ei(e,!1)}):ei(e,t))},beforeUnmount(e,{value:t}){ei(e,t)}};function ei(e,t){e.style.display=t?e._vod:"none"}const Ec=ht({patchProp:wc},oc);let Bo;function Pc(){return Bo||(Bo=Vf(Ec))}const Lc=(...e)=>{const t=Pc().createApp(...e),{mount:i}=t;return t.mount=r=>{const n=Ac(r);if(!n)return;const s=t._component;!Pe(s)&&!s.render&&!s.template&&(s.template=n.innerHTML),n.innerHTML="";const a=i(n,!1,n instanceof SVGElement);return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),a},t};function Ac(e){return st(e)?document.querySelector(e):e}/*!
  2. * vue-router v4.0.16
  3. * (c) 2022 Eduardo San Martin Morote
  4. * @license MIT
  5. */const dl=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Qn=e=>dl?Symbol(e):"_vr_"+e,Nc=Qn("rvlm"),Do=Qn("rvd"),js=Qn("r"),pl=Qn("rl"),es=Qn("rvl"),Fn=typeof window!="undefined";function Ic(e){return e.__esModule||dl&&e[Symbol.toStringTag]==="Module"}const Ge=Object.assign;function Nr(e,t){const i={};for(const r in t){const n=t[r];i[r]=Array.isArray(n)?n.map(e):e(n)}return i}const fi=()=>{},Rc=/\/$/,Fc=e=>e.replace(Rc,"");function Ir(e,t,i="/"){let r,n={},s="",a="";const u=t.indexOf("?"),c=t.indexOf("#",u>-1?u:0);return u>-1&&(r=t.slice(0,u),s=t.slice(u+1,c>-1?c:t.length),n=e(s)),c>-1&&(r=r||t.slice(0,c),a=t.slice(c,t.length)),r=Vc(r!=null?r:t,i),{fullPath:r+(s&&"?")+s+a,path:r,query:n,hash:a}}function Bc(e,t){const i=t.query?e(t.query):"";return t.path+(i&&"?")+i+(t.hash||"")}function zo(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Dc(e,t,i){const r=t.matched.length-1,n=i.matched.length-1;return r>-1&&r===n&&Wn(t.matched[r],i.matched[n])&&ml(t.params,i.params)&&e(t.query)===e(i.query)&&t.hash===i.hash}function Wn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ml(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!zc(e[i],t[i]))return!1;return!0}function zc(e,t){return Array.isArray(e)?Vo(e,t):Array.isArray(t)?Vo(t,e):e===t}function Vo(e,t){return Array.isArray(t)?e.length===t.length&&e.every((i,r)=>i===t[r]):e.length===1&&e[0]===t}function Vc(e,t){if(e.startsWith("/"))return e;if(!e)return t;const i=t.split("/"),r=e.split("/");let n=i.length-1,s,a;for(s=0;s<r.length;s++)if(a=r[s],!(n===1||a==="."))if(a==="..")n--;else break;return i.slice(0,n).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var bi;(function(e){e.pop="pop",e.push="push"})(bi||(bi={}));var ci;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ci||(ci={}));function Hc(e){if(!e)if(Fn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Fc(e)}const Wc=/^[^#]+#/;function Xc(e,t){return e.replace(Wc,"#")+t}function $c(e,t){const i=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-i.left-(t.left||0),top:r.top-i.top-(t.top||0)}}const gr=()=>({left:window.pageXOffset,top:window.pageYOffset});function Uc(e){let t;if("el"in e){const i=e.el,r=typeof i=="string"&&i.startsWith("#"),n=typeof i=="string"?r?document.getElementById(i.slice(1)):document.querySelector(i):i;if(!n)return;t=$c(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Ho(e,t){return(history.state?history.state.position-t:-1)+e}const ts=new Map;function Gc(e,t){ts.set(e,t)}function Jc(e){const t=ts.get(e);return ts.delete(e),t}let Qc=()=>location.protocol+"//"+location.host;function gl(e,t){const{pathname:i,search:r,hash:n}=t,s=e.indexOf("#");if(s>-1){let u=n.includes(e.slice(s))?e.slice(s).length:1,c=n.slice(u);return c[0]!=="/"&&(c="/"+c),zo(c,"")}return zo(i,e)+r+n}function Yc(e,t,i,r){let n=[],s=[],a=null;const u=({state:_})=>{const S=gl(e,location),l=i.value,w=t.value;let C=0;if(_){if(i.value=S,t.value=_,a&&a===l){a=null;return}C=w?_.position-w.position:0}else r(S);n.forEach(L=>{L(i.value,l,{delta:C,type:bi.pop,direction:C?C>0?ci.forward:ci.back:ci.unknown})})};function c(){a=i.value}function d(_){n.push(_);const S=()=>{const l=n.indexOf(_);l>-1&&n.splice(l,1)};return s.push(S),S}function m(){const{history:_}=window;!_.state||_.replaceState(Ge({},_.state,{scroll:gr()}),"")}function v(){for(const _ of s)_();s=[],window.removeEventListener("popstate",u),window.removeEventListener("beforeunload",m)}return window.addEventListener("popstate",u),window.addEventListener("beforeunload",m),{pauseListeners:c,listen:d,destroy:v}}function Wo(e,t,i,r=!1,n=!1){return{back:e,current:t,forward:i,replaced:r,position:window.history.length,scroll:n?gr():null}}function Kc(e){const{history:t,location:i}=window,r={value:gl(e,i)},n={value:t.state};n.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(c,d,m){const v=e.indexOf("#"),_=v>-1?(i.host&&document.querySelector("base")?e:e.slice(v))+c:Qc()+e+c;try{t[m?"replaceState":"pushState"](d,"",_),n.value=d}catch(S){console.error(S),i[m?"replace":"assign"](_)}}function a(c,d){const m=Ge({},t.state,Wo(n.value.back,c,n.value.forward,!0),d,{position:n.value.position});s(c,m,!0),r.value=c}function u(c,d){const m=Ge({},n.value,t.state,{forward:c,scroll:gr()});s(m.current,m,!0);const v=Ge({},Wo(r.value,c,null),{position:m.position+1},d);s(c,v,!1),r.value=c}return{location:r,state:n,push:u,replace:a}}function Zc(e){e=Hc(e);const t=Kc(e),i=Yc(e,t.state,t.location,t.replace);function r(s,a=!0){a||i.pauseListeners(),history.go(s)}const n=Ge({location:"",base:e,go:r,createHref:Xc.bind(null,e)},t,i);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function eh(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Zc(e)}function th(e){return typeof e=="string"||e&&typeof e=="object"}function vl(e){return typeof e=="string"||typeof e=="symbol"}const tn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},_l=Qn("nf");var Xo;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Xo||(Xo={}));function Xn(e,t){return Ge(new Error,{type:e,[_l]:!0},t)}function nn(e,t){return e instanceof Error&&_l in e&&(t==null||!!(e.type&t))}const $o="[^/]+?",nh={sensitive:!1,strict:!1,start:!0,end:!0},ih=/[.+*?^${}()[\]/\\]/g;function rh(e,t){const i=Ge({},nh,t),r=[];let n=i.start?"^":"";const s=[];for(const d of e){const m=d.length?[]:[90];i.strict&&!d.length&&(n+="/");for(let v=0;v<d.length;v++){const _=d[v];let S=40+(i.sensitive?.25:0);if(_.type===0)v||(n+="/"),n+=_.value.replace(ih,"\\$&"),S+=40;else if(_.type===1){const{value:l,repeatable:w,optional:C,regexp:L}=_;s.push({name:l,repeatable:w,optional:C});const A=L||$o;if(A!==$o){S+=10;try{new RegExp(`(${A})`)}catch(E){throw new Error(`Invalid custom RegExp for param "${l}" (${A}): `+E.message)}}let O=w?`((?:${A})(?:/(?:${A}))*)`:`(${A})`;v||(O=C&&d.length<2?`(?:/${O})`:"/"+O),C&&(O+="?"),n+=O,S+=20,C&&(S+=-8),w&&(S+=-20),A===".*"&&(S+=-50)}m.push(S)}r.push(m)}if(i.strict&&i.end){const d=r.length-1;r[d][r[d].length-1]+=.7000000000000001}i.strict||(n+="/?"),i.end?n+="$":i.strict&&(n+="(?:/|$)");const a=new RegExp(n,i.sensitive?"":"i");function u(d){const m=d.match(a),v={};if(!m)return null;for(let _=1;_<m.length;_++){const S=m[_]||"",l=s[_-1];v[l.name]=S&&l.repeatable?S.split("/"):S}return v}function c(d){let m="",v=!1;for(const _ of e){(!v||!m.endsWith("/"))&&(m+="/"),v=!1;for(const S of _)if(S.type===0)m+=S.value;else if(S.type===1){const{value:l,repeatable:w,optional:C}=S,L=l in d?d[l]:"";if(Array.isArray(L)&&!w)throw new Error(`Provided param "${l}" is an array but it is not repeatable (* or + modifiers)`);const A=Array.isArray(L)?L.join("/"):L;if(!A)if(C)_.length<2&&e.length>1&&(m.endsWith("/")?m=m.slice(0,-1):v=!0);else throw new Error(`Missing required param "${l}"`);m+=A}}return m}return{re:a,score:r,keys:s,parse:u,stringify:c}}function sh(e,t){let i=0;for(;i<e.length&&i<t.length;){const r=t[i]-e[i];if(r)return r;i++}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 oh(e,t){let i=0;const r=e.score,n=t.score;for(;i<r.length&&i<n.length;){const s=sh(r[i],n[i]);if(s)return s;i++}if(Math.abs(n.length-r.length)===1){if(Uo(r))return 1;if(Uo(n))return-1}return n.length-r.length}function Uo(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const ah={type:0,value:""},lh=/[a-zA-Z0-9_]/;function uh(e){if(!e)return[[]];if(e==="/")return[[ah]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(S){throw new Error(`ERR (${i})/"${d}": ${S}`)}let i=0,r=i;const n=[];let s;function a(){s&&n.push(s),s=[]}let u=0,c,d="",m="";function v(){!d||(i===0?s.push({type:0,value:d}):i===1||i===2||i===3?(s.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:d,regexp:m,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),d="")}function _(){d+=c}for(;u<e.length;){if(c=e[u++],c==="\\"&&i!==2){r=i,i=4;continue}switch(i){case 0:c==="/"?(d&&v(),a()):c===":"?(v(),i=1):_();break;case 4:_(),i=r;break;case 1:c==="("?i=2:lh.test(c)?_():(v(),i=0,c!=="*"&&c!=="?"&&c!=="+"&&u--);break;case 2:c===")"?m[m.length-1]=="\\"?m=m.slice(0,-1)+c:i=3:m+=c;break;case 3:v(),i=0,c!=="*"&&c!=="?"&&c!=="+"&&u--,m="";break;default:t("Unknown state");break}}return i===2&&t(`Unfinished custom RegExp for param "${d}"`),v(),a(),n}function fh(e,t,i){const r=rh(uh(e.path),i),n=Ge(r,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function ch(e,t){const i=[],r=new Map;t=Jo({strict:!1,end:!0,sensitive:!1},t);function n(m){return r.get(m)}function s(m,v,_){const S=!_,l=dh(m);l.aliasOf=_&&_.record;const w=Jo(t,m),C=[l];if("alias"in m){const O=typeof m.alias=="string"?[m.alias]:m.alias;for(const E of O)C.push(Ge({},l,{components:_?_.record.components:l.components,path:E,aliasOf:_?_.record:l}))}let L,A;for(const O of C){const{path:E}=O;if(v&&E[0]!=="/"){const Q=v.record.path,H=Q[Q.length-1]==="/"?"":"/";O.path=v.record.path+(E&&H+E)}if(L=fh(O,v,w),_?_.alias.push(L):(A=A||L,A!==L&&A.alias.push(L),S&&m.name&&!Go(L)&&a(m.name)),"children"in l){const Q=l.children;for(let H=0;H<Q.length;H++)s(Q[H],L,_&&_.children[H])}_=_||L,c(L)}return A?()=>{a(A)}:fi}function a(m){if(vl(m)){const v=r.get(m);v&&(r.delete(m),i.splice(i.indexOf(v),1),v.children.forEach(a),v.alias.forEach(a))}else{const v=i.indexOf(m);v>-1&&(i.splice(v,1),m.record.name&&r.delete(m.record.name),m.children.forEach(a),m.alias.forEach(a))}}function u(){return i}function c(m){let v=0;for(;v<i.length&&oh(m,i[v])>=0&&(m.record.path!==i[v].record.path||!xl(m,i[v]));)v++;i.splice(v,0,m),m.record.name&&!Go(m)&&r.set(m.record.name,m)}function d(m,v){let _,S={},l,w;if("name"in m&&m.name){if(_=r.get(m.name),!_)throw Xn(1,{location:m});w=_.record.name,S=Ge(hh(v.params,_.keys.filter(A=>!A.optional).map(A=>A.name)),m.params),l=_.stringify(S)}else if("path"in m)l=m.path,_=i.find(A=>A.re.test(l)),_&&(S=_.parse(l),w=_.record.name);else{if(_=v.name?r.get(v.name):i.find(A=>A.re.test(v.path)),!_)throw Xn(1,{location:m,currentLocation:v});w=_.record.name,S=Ge({},v.params,m.params),l=_.stringify(S)}const C=[];let L=_;for(;L;)C.unshift(L.record),L=L.parent;return{name:w,path:l,params:S,matched:C,meta:mh(C)}}return e.forEach(m=>s(m)),{addRoute:s,resolve:d,removeRoute:a,getRoutes:u,getRecordMatcher:n}}function hh(e,t){const i={};for(const r of t)r in e&&(i[r]=e[r]);return i}function dh(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:ph(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function ph(e){const t={},i=e.props||!1;if("component"in e)t.default=i;else for(const r in e.components)t[r]=typeof i=="boolean"?i:i[r];return t}function Go(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function mh(e){return e.reduce((t,i)=>Ge(t,i.meta),{})}function Jo(e,t){const i={};for(const r in e)i[r]=r in t?t[r]:e[r];return i}function xl(e,t){return t.children.some(i=>i===e||xl(e,i))}const yl=/#/g,gh=/&/g,vh=/\//g,_h=/=/g,xh=/\?/g,wl=/\+/g,yh=/%5B/g,wh=/%5D/g,bl=/%5E/g,bh=/%60/g,Sl=/%7B/g,Sh=/%7C/g,jl=/%7D/g,jh=/%20/g;function ks(e){return encodeURI(""+e).replace(Sh,"|").replace(yh,"[").replace(wh,"]")}function kh(e){return ks(e).replace(Sl,"{").replace(jl,"}").replace(bl,"^")}function ns(e){return ks(e).replace(wl,"%2B").replace(jh,"+").replace(yl,"%23").replace(gh,"%26").replace(bh,"`").replace(Sl,"{").replace(jl,"}").replace(bl,"^")}function qh(e){return ns(e).replace(_h,"%3D")}function Mh(e){return ks(e).replace(yl,"%23").replace(xh,"%3F")}function Ch(e){return e==null?"":Mh(e).replace(vh,"%2F")}function ir(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Th(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;n<r.length;++n){const s=r[n].replace(wl," "),a=s.indexOf("="),u=ir(a<0?s:s.slice(0,a)),c=a<0?null:ir(s.slice(a+1));if(u in t){let d=t[u];Array.isArray(d)||(d=t[u]=[d]),d.push(c)}else t[u]=c}return t}function Qo(e){let t="";for(let i in e){const r=e[i];if(i=qh(i),r==null){r!==void 0&&(t+=(t.length?"&":"")+i);continue}(Array.isArray(r)?r.map(s=>s&&ns(s)):[r&&ns(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+i,s!=null&&(t+="="+s))})}return t}function Oh(e){const t={};for(const i in e){const r=e[i];r!==void 0&&(t[i]=Array.isArray(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return t}function ti(){let e=[];function t(r){return e.push(r),()=>{const n=e.indexOf(r);n>-1&&e.splice(n,1)}}function i(){e=[]}return{add:t,list:()=>e,reset:i}}function on(e,t,i,r,n){const s=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((a,u)=>{const c=v=>{v===!1?u(Xn(4,{from:i,to:t})):v instanceof Error?u(v):th(v)?u(Xn(2,{from:t,to:v})):(s&&r.enterCallbacks[n]===s&&typeof v=="function"&&s.push(v),a())},d=e.call(r&&r.instances[n],t,i,c);let m=Promise.resolve(d);e.length<3&&(m=m.then(c)),m.catch(v=>u(v))})}function Rr(e,t,i,r){const n=[];for(const s of e)for(const a in s.components){let u=s.components[a];if(!(t!=="beforeRouteEnter"&&!s.instances[a]))if(Eh(u)){const d=(u.__vccOpts||u)[t];d&&n.push(on(d,i,r,s,a))}else{let c=u();n.push(()=>c.then(d=>{if(!d)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${s.path}"`));const m=Ic(d)?d.default:d;s.components[a]=m;const _=(m.__vccOpts||m)[t];return _&&on(_,i,r,s,a)()}))}}return n}function Eh(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Yo(e){const t=fn(js),i=fn(pl),r=Wt(()=>t.resolve(ri(e.to))),n=Wt(()=>{const{matched:c}=r.value,{length:d}=c,m=c[d-1],v=i.matched;if(!m||!v.length)return-1;const _=v.findIndex(Wn.bind(null,m));if(_>-1)return _;const S=Ko(c[d-2]);return d>1&&Ko(m)===S&&v[v.length-1].path!==S?v.findIndex(Wn.bind(null,c[d-2])):_}),s=Wt(()=>n.value>-1&&Nh(i.params,r.value.params)),a=Wt(()=>n.value>-1&&n.value===i.matched.length-1&&ml(i.params,r.value.params));function u(c={}){return Ah(c)?t[ri(e.replace)?"replace":"push"](ri(e.to)).catch(fi):Promise.resolve()}return{route:r,href:Wt(()=>r.value.href),isActive:s,isExactActive:a,navigate:u}}const Ph=qi({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Yo,setup(e,{slots:t}){const i=ki(Yo(e)),{options:r}=fn(js),n=Wt(()=>({[Zo(e.activeClass,r.linkActiveClass,"router-link-active")]:i.isActive,[Zo(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:i.isExactActive}));return()=>{const s=t.default&&t.default(i);return e.custom?s:bs("a",{"aria-current":i.isExactActive?e.ariaCurrentValue:null,href:i.href,onClick:i.navigate,class:n.value},s)}}}),Lh=Ph;function Ah(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 Nh(e,t){for(const i in t){const r=t[i],n=e[i];if(typeof r=="string"){if(r!==n)return!1}else if(!Array.isArray(n)||n.length!==r.length||r.some((s,a)=>s!==n[a]))return!1}return!0}function Ko(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Zo=(e,t,i)=>e!=null?e:t!=null?t:i,Ih=qi({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:i}){const r=fn(es),n=Wt(()=>e.route||r.value),s=fn(Do,0),a=Wt(()=>n.value.matched[s]);Gi(Do,s+1),Gi(Nc,a),Gi(es,n);const u=ja();return ai(()=>[u.value,a.value,e.name],([c,d,m],[v,_,S])=>{d&&(d.instances[m]=c,_&&_!==d&&c&&c===v&&(d.leaveGuards.size||(d.leaveGuards=_.leaveGuards),d.updateGuards.size||(d.updateGuards=_.updateGuards))),c&&d&&(!_||!Wn(d,_)||!v)&&(d.enterCallbacks[m]||[]).forEach(l=>l(c))},{flush:"post"}),()=>{const c=n.value,d=a.value,m=d&&d.components[e.name],v=e.name;if(!m)return ea(i.default,{Component:m,route:c});const _=d.props[e.name],S=_?_===!0?c.params:typeof _=="function"?_(c):_:null,w=bs(m,Ge({},S,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(d.instances[v]=null)},ref:u}));return ea(i.default,{Component:w,route:c})||w}}});function ea(e,t){if(!e)return null;const i=e(t);return i.length===1?i[0]:i}const Rh=Ih;function Fh(e){const t=ch(e.routes,e),i=e.parseQuery||Th,r=e.stringifyQuery||Qo,n=e.history,s=ti(),a=ti(),u=ti(),c=ka(tn);let d=tn;Fn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const m=Nr.bind(null,X=>""+X),v=Nr.bind(null,Ch),_=Nr.bind(null,ir);function S(X,he){let oe,me;return vl(X)?(oe=t.getRecordMatcher(X),me=he):me=X,t.addRoute(me,oe)}function l(X){const he=t.getRecordMatcher(X);he&&t.removeRoute(he)}function w(){return t.getRoutes().map(X=>X.record)}function C(X){return!!t.getRecordMatcher(X)}function L(X,he){if(he=Ge({},he||c.value),typeof X=="string"){const qe=Ir(i,X,he.path),j=t.resolve({path:qe.path},he),P=n.createHref(qe.fullPath);return Ge(qe,j,{params:_(j.params),hash:ir(qe.hash),redirectedFrom:void 0,href:P})}let oe;if("path"in X)oe=Ge({},X,{path:Ir(i,X.path,he.path).path});else{const qe=Ge({},X.params);for(const j in qe)qe[j]==null&&delete qe[j];oe=Ge({},X,{params:v(X.params)}),he.params=v(he.params)}const me=t.resolve(oe,he),Fe=X.hash||"";me.params=m(_(me.params));const De=Bc(r,Ge({},X,{hash:kh(Fe),path:me.path})),Me=n.createHref(De);return Ge({fullPath:De,hash:Fe,query:r===Qo?Oh(X.query):X.query||{}},me,{redirectedFrom:void 0,href:Me})}function A(X){return typeof X=="string"?Ir(i,X,c.value.path):Ge({},X)}function O(X,he){if(d!==X)return Xn(8,{from:he,to:X})}function E(X){return de(X)}function Q(X){return E(Ge(A(X),{replace:!0}))}function H(X){const he=X.matched[X.matched.length-1];if(he&&he.redirect){const{redirect:oe}=he;let me=typeof oe=="function"?oe(X):oe;return typeof me=="string"&&(me=me.includes("?")||me.includes("#")?me=A(me):{path:me},me.params={}),Ge({query:X.query,hash:X.hash,params:X.params},me)}}function de(X,he){const oe=d=L(X),me=c.value,Fe=X.state,De=X.force,Me=X.replace===!0,qe=H(oe);if(qe)return de(Ge(A(qe),{state:Fe,force:De,replace:Me}),he||oe);const j=oe;j.redirectedFrom=he;let P;return!De&&Dc(r,me,oe)&&(P=Xn(16,{to:j,from:me}),lt(me,me,!0,!1)),(P?Promise.resolve(P):le(j,me)).catch(T=>nn(T)?nn(T,2)?T:Ie(T):Ae(T,j,me)).then(T=>{if(T){if(nn(T,2))return de(Ge(A(T.to),{state:Fe,force:De,replace:Me}),he||j)}else T=pe(j,me,!0,Me,Fe);return U(j,me,T),T})}function D(X,he){const oe=O(X,he);return oe?Promise.reject(oe):Promise.resolve()}function le(X,he){let oe;const[me,Fe,De]=Bh(X,he);oe=Rr(me.reverse(),"beforeRouteLeave",X,he);for(const qe of me)qe.leaveGuards.forEach(j=>{oe.push(on(j,X,he))});const Me=D.bind(null,X,he);return oe.push(Me),Nn(oe).then(()=>{oe=[];for(const qe of s.list())oe.push(on(qe,X,he));return oe.push(Me),Nn(oe)}).then(()=>{oe=Rr(Fe,"beforeRouteUpdate",X,he);for(const qe of Fe)qe.updateGuards.forEach(j=>{oe.push(on(j,X,he))});return oe.push(Me),Nn(oe)}).then(()=>{oe=[];for(const qe of X.matched)if(qe.beforeEnter&&!he.matched.includes(qe))if(Array.isArray(qe.beforeEnter))for(const j of qe.beforeEnter)oe.push(on(j,X,he));else oe.push(on(qe.beforeEnter,X,he));return oe.push(Me),Nn(oe)}).then(()=>(X.matched.forEach(qe=>qe.enterCallbacks={}),oe=Rr(De,"beforeRouteEnter",X,he),oe.push(Me),Nn(oe))).then(()=>{oe=[];for(const qe of a.list())oe.push(on(qe,X,he));return oe.push(Me),Nn(oe)}).catch(qe=>nn(qe,8)?qe:Promise.reject(qe))}function U(X,he,oe){for(const me of u.list())me(X,he,oe)}function pe(X,he,oe,me,Fe){const De=O(X,he);if(De)return De;const Me=he===tn,qe=Fn?history.state:{};oe&&(me||Me?n.replace(X.fullPath,Ge({scroll:Me&&qe&&qe.scroll},Fe)):n.push(X.fullPath,Fe)),c.value=X,lt(X,he,oe,Me),Ie()}let Y;function xe(){Y||(Y=n.listen((X,he,oe)=>{const me=L(X),Fe=H(me);if(Fe){de(Ge(Fe,{replace:!0}),me).catch(fi);return}d=me;const De=c.value;Fn&&Gc(Ho(De.fullPath,oe.delta),gr()),le(me,De).catch(Me=>nn(Me,12)?Me:nn(Me,2)?(de(Me.to,me).then(qe=>{nn(qe,20)&&!oe.delta&&oe.type===bi.pop&&n.go(-1,!1)}).catch(fi),Promise.reject()):(oe.delta&&n.go(-oe.delta,!1),Ae(Me,me,De))).then(Me=>{Me=Me||pe(me,De,!1),Me&&(oe.delta?n.go(-oe.delta,!1):oe.type===bi.pop&&nn(Me,20)&&n.go(-1,!1)),U(me,De,Me)}).catch(fi)}))}let Te=ti(),je=ti(),we;function Ae(X,he,oe){Ie(X);const me=je.list();return me.length?me.forEach(Fe=>Fe(X,he,oe)):console.error(X),Promise.reject(X)}function Ce(){return we&&c.value!==tn?Promise.resolve():new Promise((X,he)=>{Te.add([X,he])})}function Ie(X){return we||(we=!X,xe(),Te.list().forEach(([he,oe])=>X?oe(X):he()),Te.reset()),X}function lt(X,he,oe,me){const{scrollBehavior:Fe}=e;if(!Fn||!Fe)return Promise.resolve();const De=!oe&&Jc(Ho(X.fullPath,0))||(me||!oe)&&history.state&&history.state.scroll||null;return Ta().then(()=>Fe(X,he,De)).then(Me=>Me&&Uc(Me)).catch(Me=>Ae(Me,X,he))}const rt=X=>n.go(X);let nt;const ut=new Set;return{currentRoute:c,addRoute:S,removeRoute:l,hasRoute:C,getRoutes:w,resolve:L,options:e,push:E,replace:Q,go:rt,back:()=>rt(-1),forward:()=>rt(1),beforeEach:s.add,beforeResolve:a.add,afterEach:u.add,onError:je.add,isReady:Ce,install(X){const he=this;X.component("RouterLink",Lh),X.component("RouterView",Rh),X.config.globalProperties.$router=he,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>ri(c)}),Fn&&!nt&&c.value===tn&&(nt=!0,E(n.location).catch(Fe=>{}));const oe={};for(const Fe in tn)oe[Fe]=Wt(()=>c.value[Fe]);X.provide(js,he),X.provide(pl,ki(oe)),X.provide(es,c);const me=X.unmount;ut.add(X),X.unmount=function(){ut.delete(X),ut.size<1&&(d=tn,Y&&Y(),Y=null,c.value=tn,nt=!1,we=!1),me()}}}}function Nn(e){return e.reduce((t,i)=>t.then(()=>i()),Promise.resolve())}function Bh(e,t){const i=[],r=[],n=[],s=Math.max(t.matched.length,e.matched.length);for(let a=0;a<s;a++){const u=t.matched[a];u&&(e.matched.find(d=>Wn(d,u))?r.push(u):i.push(u));const c=e.matched[a];c&&(t.matched.find(d=>Wn(d,c))||n.push(c))}return[i,r,n]}var Tt=(e,t)=>{const i=e.__vccOpts||e;for(const[r,n]of t)i[r]=n;return i};const Dh={props:["portList","disabled"],data(){return{showMenu:!1}},mounted(){document.addEventListener("click",this.clickListener)},unmounted(){document.removeEventListener("click",this.clickListener)},methods:{clickListener(e){e.target.id!="dropdown-btn"&&(this.showMenu=!1)},onclick(e){this.$emit("select",e),this.showMenu=!1},toggle(){this.showMenu=!this.showMenu}}},zh={class:"dropdown"},Vh=["disabled"],Hh=["onClick"];function Wh(e,t,i,r,n,s){return _e(),be("div",null,[q("div",zh,[q("button",{id:"dropdown-btn",class:"btn btn-sm btn-dark dropdown-toggle",disabled:i.disabled,type:"button",onClick:t[0]||(t[0]=a=>s.toggle())},null,8,Vh),q("div",{class:_t("dropdown-menu"+(n.showMenu==!0?" show":"")),"aria-labelledby":"dropdownMenuButton"},[(_e(!0),be(Ze,null,qt(i.portList,a=>(_e(),be("a",{class:"dropdown-item",onClick:u=>s.onclick(a)},Ke(a),9,Hh))),256))],2)])])}var Xh=Tt(Dh,[["render",Wh]]);const $h={components:{PortList:Xh},data(){return{connection:{connect:!1,port:""},port:"/dev/ttyUSB0",lastMessage:"",portList:[]}},computed:{host(){return location.hostname},path(){return this.$route.path}},methods:{fetch_execute:async function(e,t,i,r){try{let s=await(await fetch(e,t)).json();i&&i(s)}catch(n){r&&r(n)}finally{}},loadURL(e){this.fetch_execute(e,{method:"GET",credentials:"same-origin",cache:"no-cache"},t=>{this.connection=t},t=>{console.log(t)})},connect(){this.fetch_execute("http://"+this.host+":5000/connection/connect/"+encodeURIComponent(this.port),{method:"GET",credentials:"same-origin",cache:"no-cache"},e=>{this.connection=e,e.connect==!1?e.message&&(this.lastMessage=e.message):(this.lastMessage="",localStorage.setItem("port",this.port))},e=>{console.log(e)})},disconnect(){this.loadURL("http://"+this.host+":5000/connection/disconnect/")},loadConnectionStatus(){this.loadURL("http://"+this.host+":5000/connection/status/")},loadPortList(){this.fetch_execute("http://"+this.host+":5000/connection/list/",{method:"GET",credentials:"same-origin",cache:"no-cache"},e=>{this.portList=e.ports})}},mounted(){this.port=localStorage.port,this.timerId=setInterval(()=>this.loadConnectionStatus(),1e3),this.timerPortsId=setInterval(()=>this.loadPortList(),3e3)},unmounted(){clearInterval(this.timerId),clearInterval(this.timerPortsId)}},Uh={class:"container"},Gh={class:"navbar navbar-expand-lg navbar-light bg-light"},Jh={class:"container-fluid"},Qh=q("div",null,null,-1),Yh={class:"text-danger p-1 m-0",role:"alert"},Kh={key:0},Zh={class:"row"},ed=q("div",{class:"col"},null,-1),td={class:"col-auto text-center"},nd={class:"col-auto"},id=["disabled"],rd={class:"col-auto p-0"},sd={class:"col-auto"};function od(e,t,i,r,n,s){const a=At("PortList"),u=At("RouterView");return _e(),be("div",Uh,[q("header",null,[q("nav",Gh,[q("div",Jh,[Qh,q("div",Yh,[n.lastMessage!=""?(_e(),be("span",Kh,"\u26A0 "+Ke(n.lastMessage),1)):Nt("",!0)]),q("div",null,[q("form",null,[q("div",Zh,[ed,q("div",td,[q("span",{class:_t(n.connection.connect==!0?"fs-4 text-success":"fs-4 text-secondary")},"\u2699",2)]),q("div",nd,[Xe(q("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=c=>n.port=c),disabled:n.connection.connect==!0,size:"10",class:"form-control form-control-sm"},null,8,id),[[Ye,n.port]])]),q("div",rd,[Je(a,{portList:n.portList,disabled:n.connection.connect==!0,onSelect:t[1]||(t[1]=c=>n.port=c)},null,8,["portList","disabled"])]),q("div",sd,[n.connection.connect==!1?(_e(),be("button",{key:0,type:"button",onClick:t[2]||(t[2]=c=>s.connect()),class:"btn btn-dark btn-sm"},"Connect")):Nt("",!0),n.connection.connect==!0?(_e(),be("button",{key:1,type:"button",onClick:t[3]||(t[3]=c=>s.disconnect()),class:"btn btn-dark btn-sm"},"Disconnect")):Nt("",!0)])])])])])])]),Je(u)])}var ad=Tt($h,[["render",od]]);const ld="modulepreload",ta={},ud="/",na=function(t,i){return!i||i.length===0?t():Promise.all(i.map(r=>{if(r=`${ud}${r}`,r in ta)return;ta[r]=!0;const n=r.endsWith(".css"),s=n?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${s}`))return;const a=document.createElement("link");if(a.rel=n?"stylesheet":ld,n||(a.as="script",a.crossOrigin=""),a.href=r,document.head.appendChild(a),n)return new Promise((u,c)=>{a.addEventListener("load",u),a.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())};var fd=document.all&&!document.addEventListener;fd||function(e,t){var i,r,n=e.document;e.location;var s=e.navigator,a=e.JQXLite,u=e.$,c=Array.prototype.push,d=Array.prototype.slice,m=Array.prototype.indexOf,v=Object.prototype.toString,_=Object.prototype.hasOwnProperty,S=String.prototype.trim,l=function(o,f){return new l.fn.init(o,f,i)},w=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,C=/\S/,L=/\s+/,A=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,O=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,E=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Q=/^[\],:{}\s]*$/,H=/(?:^|:|,)(?:\s*\[)+/g,de=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,D=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,le=/^-ms-/,U=/-([\da-z])/gi,pe=function(o,f){return(f+"").toUpperCase()},Y=function(){n.addEventListener?(n.removeEventListener("DOMContentLoaded",Y,!1),l.ready()):n.readyState==="complete"&&(n.detachEvent("onreadystatechange",Y),l.ready())},xe={};l.fn=l.prototype={constructor:l,init:function(o,f,h){var p,g,x;if(!o)return this;if(o.nodeType)return this.context=this[0]=o,this.length=1,this;if(typeof o=="string")if(o.charAt(0)==="<"&&o.charAt(o.length-1)===">"&&o.length>=3?p=[null,o,null]:p=O.exec(o),p&&(p[1]||!f)){if(p[1])return f=f instanceof l?f[0]:f,x=f&&f.nodeType?f.ownerDocument||f:n,o=l.parseHTML(p[1],x,!0),E.test(p[1])&&l.isPlainObject(f)&&this.attr.call(o,f,!0),l.merge(this,o);if(g=n.getElementById(p[2]),g&&g.parentNode){if(g.id!==p[2])return h.find(o);this.length=1,this[0]=g}return this.context=n,this.selector=o,this}else return!f||f.jqx?(f||h).find(o):this.constructor(f).find(o);else if(l.isFunction(o))return h.ready(o);return o.selector!==t&&(this.selector=o.selector,this.context=o.context),l.makeArray(o,this)},selector:"",jqx:"4.5.0",length:0,size:function(){return this.length},toArray:function(){return d.call(this)},get:function(o){return o==null?this.toArray():o<0?this[this.length+o]:this[o]},pushStack:function(o,f,h){var p=l.merge(this.constructor(),o);return p.prevObject=this,p.context=this.context,f==="find"?p.selector=this.selector+(this.selector?" ":"")+h:f&&(p.selector=this.selector+"."+f+"("+h+")"),p},each:function(o,f){return l.each(this,o,f)},ready:function(o){return l.ready.promise().done(o),this},eq:function(o){return o=+o,o===-1?this.slice(o):this.slice(o,o+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(d.apply(this,arguments),"slice",d.call(arguments).join(","))},map:function(o){return this.pushStack(l.map(this,function(f,h){return o.call(f,h,f)}))},end:function(){return this.prevObject||this.constructor(null)},push:c,sort:[].sort,splice:[].splice},l.fn.init.prototype=l.fn,l.extend=l.fn.extend=function(){var o,f,h,p,g,x,y=arguments[0]||{},k=1,N=arguments.length,B=!1;for(typeof y=="boolean"&&(B=y,y=arguments[1]||{},k=2),typeof y!="object"&&!l.isFunction(y)&&(y={}),N===k&&(y=this,--k);k<N;k++)if((o=arguments[k])!=null)for(f in o)h=y[f],p=o[f],y!==p&&(B&&p&&(l.isPlainObject(p)||(g=l.isArray(p)))?(g?(g=!1,x=h&&l.isArray(h)?h:[]):x=h&&l.isPlainObject(h)?h:{},y[f]=l.extend(B,x,p)):p!==t&&(y[f]=p));return y},l.extend({noConflict:function(o){return e.$===l&&(e.$=u),o&&e.JQXLite===l&&(e.JQXLite=a),l},isReady:!1,readyWait:1,holdReady:function(o){o?l.readyWait++:l.ready(!0)},ready:function(o){if(!(o===!0?--l.readyWait:l.isReady)){if(!n.body)return setTimeout(l.ready,1);l.isReady=!0,!(o!==!0&&--l.readyWait>0)&&(r.resolveWith(n,[l]),l.fn.trigger&&l(n).trigger("ready").off("ready"))}},isFunction:function(o){return l.type(o)==="function"},isArray:Array.isArray||function(o){return l.type(o)==="array"},isWindow:function(o){return o!=null&&o==o.window},isNumeric:function(o){return!isNaN(parseFloat(o))&&isFinite(o)},type:function(o){return o==null?String(o):xe[v.call(o)]||"object"},isPlainObject:function(o){if(!o||l.type(o)!=="object"||o.nodeType||l.isWindow(o))return!1;try{if(o.constructor&&!_.call(o,"constructor")&&!_.call(o.constructor.prototype,"isPrototypeOf"))return!1}catch{return!1}var f;for(f in o);return f===t||_.call(o,f)},isEmptyObject:function(o){var f;for(f in o)return!1;return!0},error:function(o){throw new Error(o)},parseHTML:function(o,f,h){var p;return!o||typeof o!="string"?null:(typeof f=="boolean"&&(h=f,f=0),f=f||n,(p=E.exec(o))?[f.createElement(p[1])]:(p=l.buildFragment([o],f,h?null:[]),l.merge([],(p.cacheable?l.clone(p.fragment):p.fragment).childNodes)))},parseJSON:function(o){if(!o||typeof o!="string")return null;if(o=l.trim(o),e.JSON&&e.JSON.parse)return e.JSON.parse(o);if(Q.test(o.replace(de,"@").replace(D,"]").replace(H,"")))return new Function("return "+o)();l.error("Invalid JSON: "+o)},parseXML:function(o){var f,h;if(!o||typeof o!="string")return null;try{e.DOMParser?(h=new DOMParser,f=h.parseFromString(o,"text/xml")):(f=new ActiveXObject("Microsoft.XMLDOM"),f.async="false",f.loadXML(o))}catch{f=t}return(!f||!f.documentElement||f.getElementsByTagName("parsererror").length)&&l.error("Invalid XML: "+o),f},noop:function(){},globalEval:function(o){o&&C.test(o)&&(e.execScript||function(f){e.eval.call(e,f)})(o)},camelCase:function(o){return o.replace(le,"ms-").replace(U,pe)},nodeName:function(o,f){return o.nodeName&&o.nodeName.toLowerCase()===f.toLowerCase()},each:function(o,f,h){var p,g=0,x=o.length,y=x===t||l.isFunction(o);if(h)if(y){for(p in o)if(f.apply(o[p],h)===!1)break}else for(;g<x&&f.apply(o[g++],h)!==!1;);else if(y){for(p in o)if(f.call(o[p],p,o[p])===!1)break}else for(;g<x&&f.call(o[g],g,o[g++])!==!1;);return o},trim:S&&!S.call("\uFEFF\xA0")?function(o){return o==null?"":S.call(o)}:function(o){return o==null?"":(o+"").replace(A,"")},makeArray:function(o,f){var h,p=f||[];return o!=null&&(h=l.type(o),o.length==null||h==="string"||h==="function"||h==="regexp"||l.isWindow(o)?c.call(p,o):l.merge(p,o)),p},inArray:function(o,f,h){var p;if(f){if(m)return m.call(f,o,h);for(p=f.length,h=h?h<0?Math.max(0,p+h):h:0;h<p;h++)if(h in f&&f[h]===o)return h}return-1},merge:function(o,f){var h=f.length,p=o.length,g=0;if(typeof h=="number")for(;g<h;g++)o[p++]=f[g];else for(;f[g]!==t;)o[p++]=f[g++];return o.length=p,o},grep:function(o,f,h){var p,g=[],x=0,y=o.length;for(h=!!h;x<y;x++)p=!!f(o[x],x),h!==p&&g.push(o[x]);return g},map:function(o,f,h){var p,g,x=[],y=0,k=o.length,N=o instanceof l||k!==t&&typeof k=="number"&&(k>0&&o[0]&&o[k-1]||k===0||l.isArray(o));if(N)for(;y<k;y++)p=f(o[y],y,h),p!=null&&(x[x.length]=p);else for(g in o)p=f(o[g],g,h),p!=null&&(x[x.length]=p);return x.concat.apply([],x)},guid:1,proxy:function(o,f){var h,p,g;return typeof f=="string"&&(h=o[f],f=o,o=h),l.isFunction(o)?(p=d.call(arguments,2),g=function(){return o.apply(f,p.concat(d.call(arguments)))},g.guid=o.guid=o.guid||l.guid++,g):t},access:function(o,f,h,p,g,x,y){var k,N=h==null,B=0,F=o.length;if(h&&typeof h=="object"){for(B in h)l.access(o,f,B,h[B],1,x,p);g=1}else if(p!==t){if(k=y===t&&l.isFunction(p),N&&(k?(k=f,f=function(W,te,re){return k.call(l(W),re)}):(f.call(o,p),f=null)),f)for(;B<F;B++)f(o[B],h,k?p.call(o[B],B,f(o[B],h)):p,y);g=1}return g?o:N?f.call(o):F?f(o[0],h):x},now:function(){return new Date().getTime()}}),l.ready.promise=function(o){if(!r)if(r=l.Deferred(),n.readyState==="complete")setTimeout(l.ready,1);else if(n.addEventListener)n.addEventListener("DOMContentLoaded",Y,!1),e.addEventListener("load",l.ready,!1);else{n.attachEvent("onreadystatechange",Y),e.attachEvent("onload",l.ready);var f=!1;try{f=e.frameElement==null&&n.documentElement}catch{}f&&f.doScroll&&function h(){if(!l.isReady){try{f.doScroll("left")}catch{return setTimeout(h,50)}l.ready()}}()}return r.promise(o)},l.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(o,f){xe["[object "+f+"]"]=f.toLowerCase()}),i=l(n);var Te={};function je(o){var f=Te[o]={};return l.each(o.split(L),function(h,p){f[p]=!0}),f}l.Callbacks=function(o){o=typeof o=="string"?Te[o]||je(o):l.extend({},o);var f,h,p,g,x,y,k=[],N=!o.once&&[],B=function(W){for(f=o.memory&&W,h=!0,y=g||0,g=0,x=k.length,p=!0;k&&y<x;y++)if(k[y].apply(W[0],W[1])===!1&&o.stopOnFalse){f=!1;break}p=!1,k&&(N?N.length&&B(N.shift()):f?k=[]:F.disable())},F={add:function(){if(k){var W=k.length;(function te(re){l.each(re,function(ie,ve){var Le=l.type(ve);Le==="function"?(!o.unique||!F.has(ve))&&k.push(ve):ve&&ve.length&&Le!=="string"&&te(ve)})})(arguments),p?x=k.length:f&&(g=W,B(f))}return this},remove:function(){return k&&l.each(arguments,function(W,te){for(var re;(re=l.inArray(te,k,re))>-1;)k.splice(re,1),p&&(re<=x&&x--,re<=y&&y--)}),this},has:function(W){return l.inArray(W,k)>-1},empty:function(){return k=[],this},disable:function(){return k=N=f=t,this},disabled:function(){return!k},lock:function(){return N=t,f||F.disable(),this},locked:function(){return!N},fireWith:function(W,te){return te=te||[],te=[W,te.slice?te.slice():te],k&&(!h||N)&&(p?N.push(te):B(te)),this},fire:function(){return F.fireWith(this,arguments),this},fired:function(){return!!h}};return F},l.extend({Deferred:function(o){var f=[["resolve","done",l.Callbacks("once memory"),"resolved"],["reject","fail",l.Callbacks("once memory"),"rejected"],["notify","progress",l.Callbacks("memory")]],h="pending",p={state:function(){return h},always:function(){return g.done(arguments).fail(arguments),this},then:function(){var x=arguments;return l.Deferred(function(y){l.each(f,function(k,N){var B=N[0],F=x[k];g[N[1]](l.isFunction(F)?function(){var W=F.apply(this,arguments);W&&l.isFunction(W.promise)?W.promise().done(y.resolve).fail(y.reject).progress(y.notify):y[B+"With"](this===g?y:this,[W])}:y[B])}),x=null}).promise()},promise:function(x){return x!=null?l.extend(x,p):p}},g={};return p.pipe=p.then,l.each(f,function(x,y){var k=y[2],N=y[3];p[y[1]]=k.add,N&&k.add(function(){h=N},f[x^1][2].disable,f[2][2].lock),g[y[0]]=k.fire,g[y[0]+"With"]=k.fireWith}),p.promise(g),o&&o.call(g,g),g},when:function(o){var f=0,h=d.call(arguments),p=h.length,g=p!==1||o&&l.isFunction(o.promise)?p:0,x=g===1?o:l.Deferred(),y=function(F,W,te){return function(re){W[F]=this,te[F]=arguments.length>1?d.call(arguments):re,te===k?x.notifyWith(W,te):--g||x.resolveWith(W,te)}},k,N,B;if(p>1)for(k=new Array(p),N=new Array(p),B=new Array(p);f<p;f++)h[f]&&l.isFunction(h[f].promise)?h[f].promise().done(y(f,B,h)).fail(x.reject).progress(y(f,N,k)):--g;return g||x.resolveWith(B,h),x.promise()}}),l.support=function(){var o,f,h,p,g,x,y,k,N,B,F,W=n.createElement("div");if(W.setAttribute("className","t"),W.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",f=W.getElementsByTagName("*"),h=W.getElementsByTagName("a")[0],!f||!h||!f.length)return{};p=n.createElement("select"),g=p.appendChild(n.createElement("option")),x=W.getElementsByTagName("input")[0],h.style.cssText="top:1px;float:left;opacity:.5",o={leadingWhitespace:W.firstChild.nodeType===3,tbody:!W.getElementsByTagName("tbody").length,htmlSerialize:!!W.getElementsByTagName("link").length,style:/top/.test(h.getAttribute("style")),hrefNormalized:h.getAttribute("href")==="/a",opacity:/^0.5/.test(h.style.opacity),cssFloat:!!h.style.cssFloat,checkOn:x.value==="on",optSelected:g.selected,getSetAttribute:W.className!=="t",enctype:!!n.createElement("form").enctype,html5Clone:n.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",boxModel:n.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},x.checked=!0,o.noCloneChecked=x.cloneNode(!0).checked,p.disabled=!0,o.optDisabled=!g.disabled;try{delete W.test}catch{o.deleteExpando=!1}if(!W.addEventListener&&W.attachEvent&&W.fireEvent&&(W.attachEvent("onclick",F=function(){o.noCloneEvent=!1}),W.cloneNode(!0).fireEvent("onclick"),W.detachEvent("onclick",F)),x=n.createElement("input"),x.value="t",x.setAttribute("type","radio"),o.radioValue=x.value==="t",x.setAttribute("checked","checked"),x.setAttribute("name","t"),W.appendChild(x),y=n.createDocumentFragment(),y.appendChild(W.lastChild),o.checkClone=y.cloneNode(!0).cloneNode(!0).lastChild.checked,o.appendChecked=x.checked,y.removeChild(x),y.appendChild(W),W.attachEvent)for(N in{submit:!0,change:!0,focusin:!0})k="on"+N,B=k in W,B||(W.setAttribute(k,"return;"),B=typeof W[k]=="function"),o[N+"Bubbles"]=B;return l(function(){var te,re,ie,ve,Le="padding:0;margin:0;border:0;display:block;overflow:hidden;",We=n.getElementsByTagName("body")[0];!We||(te=n.createElement("div"),te.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",We.insertBefore(te,We.firstChild),re=n.createElement("div"),te.appendChild(re),re.innerHTML="<table><tr><td></td><td>t</td></tr></table>",ie=re.getElementsByTagName("td"),ie[0].style.cssText="padding:0;margin:0;border:0;display:none",B=ie[0].offsetHeight===0,ie[0].style.display="",ie[1].style.display="none",o.reliableHiddenOffsets=B&&ie[0].offsetHeight===0,re.innerHTML="",re.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",o.boxSizing=re.offsetWidth===4,o.doesNotIncludeMarginInBodyOffset=We.offsetTop!==1,e.getComputedStyle&&(o.pixelPosition=(e.getComputedStyle(re,null)||{}).top!=="1%",o.boxSizingReliable=(e.getComputedStyle(re,null)||{width:"4px"}).width==="4px",ve=n.createElement("div"),ve.style.cssText=re.style.cssText=Le,ve.style.marginRight=ve.style.width="0",re.style.width="1px",re.appendChild(ve),o.reliableMarginRight=!parseFloat((e.getComputedStyle(ve,null)||{}).marginRight)),typeof re.style.zoom!="undefined"&&(re.innerHTML="",re.style.cssText=Le+"width:1px;padding:1px;display:inline;zoom:1",o.inlineBlockNeedsLayout=re.offsetWidth===3,re.style.display="block",re.style.overflow="visible",re.innerHTML="<div></div>",re.firstChild.style.width="5px",o.shrinkWrapBlocks=re.offsetWidth!==3,te.style.zoom=1),We.removeChild(te),te=re=ie=ve=null)}),y.removeChild(W),f=h=p=g=x=y=W=null,o}();var we=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,Ae=/([A-Z])/g;l.extend({cache:{},deletedIds:[],uuid:0,expando:"JQXLite"+(l.fn.jqx+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(o){return o=o.nodeType?l.cache[o[l.expando]]:o[l.expando],!!o&&!Ie(o)},data:function(o,f,h,p){if(!!l.acceptData(o)){var g,x,y=l.expando,k=typeof f=="string",N=o.nodeType,B=N?l.cache:o,F=N?o[y]:o[y]&&y;if(!((!F||!B[F]||!p&&!B[F].data)&&k&&h===t))return F||(N?o[y]=F=l.deletedIds.pop()||l.guid++:F=y),B[F]||(B[F]={},N||(B[F].toJSON=l.noop)),(typeof f=="object"||typeof f=="function")&&(p?B[F]=l.extend(B[F],f):B[F].data=l.extend(B[F].data,f)),g=B[F],p||(g.data||(g.data={}),g=g.data),h!==t&&(g[l.camelCase(f)]=h),k?(x=g[f],x==null&&(x=g[l.camelCase(f)])):x=g,x}},removeData:function(o,f,h){if(!!l.acceptData(o)){var p,g,x,y=o.nodeType,k=y?l.cache:o,N=y?o[l.expando]:l.expando;if(!!k[N]){if(f&&(p=h?k[N]:k[N].data,p)){for(l.isArray(f)||(f in p?f=[f]:(f=l.camelCase(f),f in p?f=[f]:f=f.split(" "))),g=0,x=f.length;g<x;g++)delete p[f[g]];if(!(h?Ie:l.isEmptyObject)(p))return}!h&&(delete k[N].data,!Ie(k[N]))||(y?l.cleanData([o],!0):l.support.deleteExpando||k!=k.window?delete k[N]:k[N]=null)}}},_data:function(o,f,h){return l.data(o,f,h,!0)},acceptData:function(o){var f=o.nodeName&&l.noData[o.nodeName.toLowerCase()];return!f||f!==!0&&o.getAttribute("classid")===f}}),l.fn.extend({data:function(o,f){var h,p,g,x,y,k=this[0],N=0,B=null;if(o===t){if(this.length&&(B=l.data(k),k.nodeType===1&&!l._data(k,"parsedAttrs"))){for(g=k.attributes,y=g.length;N<y;N++)x=g[N].name,x.indexOf("data-")||(x=l.camelCase(x.substring(5)),Ce(k,x,B[x]));l._data(k,"parsedAttrs",!0)}return B}return typeof o=="object"?this.each(function(){l.data(this,o)}):(h=o.split(".",2),h[1]=h[1]?"."+h[1]:"",p=h[1]+"!",l.access(this,function(F){if(F===t)return B=this.triggerHandler("getData"+p,[h[0]]),B===t&&k&&(B=l.data(k,o),B=Ce(k,o,B)),B===t&&h[1]?this.data(h[0]):B;h[1]=F,this.each(function(){var W=l(this);W.triggerHandler("setData"+p,h),l.data(this,o,F),W.triggerHandler("changeData"+p,h)})},null,f,arguments.length>1,null,!1))},removeData:function(o){return this.each(function(){l.removeData(this,o)})}});function Ce(o,f,h){if(h===t&&o.nodeType===1){var p="data-"+f.replace(Ae,"-$1").toLowerCase();if(h=o.getAttribute(p),typeof h=="string"){try{h=h==="true"?!0:h==="false"?!1:h==="null"?null:+h+""===h?+h:we.test(h)?l.parseJSON(h):h}catch{}l.data(o,f,h)}else h=t}return h}function Ie(o){var f;for(f in o)if(!(f==="data"&&l.isEmptyObject(o[f]))&&f!=="toJSON")return!1;return!0}l.extend({queue:function(o,f,h){var p;if(o)return f=(f||"fx")+"queue",p=l._data(o,f),h&&(!p||l.isArray(h)?p=l._data(o,f,l.makeArray(h)):p.push(h)),p||[]},dequeue:function(o,f){f=f||"fx";var h=l.queue(o,f),p=h.length,g=h.shift(),x=l._queueHooks(o,f),y=function(){l.dequeue(o,f)};g==="inprogress"&&(g=h.shift(),p--),g&&(f==="fx"&&h.unshift("inprogress"),delete x.stop,g.call(o,y,x)),!p&&x&&x.empty.fire()},_queueHooks:function(o,f){var h=f+"queueHooks";return l._data(o,h)||l._data(o,h,{empty:l.Callbacks("once memory").add(function(){l.removeData(o,f+"queue",!0),l.removeData(o,h,!0)})})}}),l.fn.extend({queue:function(o,f){var h=2;return typeof o!="string"&&(f=o,o="fx",h--),arguments.length<h?l.queue(this[0],o):f===t?this:this.each(function(){var p=l.queue(this,o,f);l._queueHooks(this,o),o==="fx"&&p[0]!=="inprogress"&&l.dequeue(this,o)})},dequeue:function(o){return this.each(function(){l.dequeue(this,o)})},delay:function(o,f){return o=l.fx&&l.fx.speeds[o]||o,f=f||"fx",this.queue(f,function(h,p){var g=setTimeout(h,o);p.stop=function(){clearTimeout(g)}})},clearQueue:function(o){return this.queue(o||"fx",[])},promise:function(o,f){var h,p=1,g=l.Deferred(),x=this,y=this.length,k=function(){--p||g.resolveWith(x,[x])};for(typeof o!="string"&&(f=o,o=t),o=o||"fx";y--;)h=l._data(x[y],o+"queueHooks"),h&&h.empty&&(p++,h.empty.add(k));return k(),g.promise(f)}});var lt,rt,nt=/[\t\r\n]/g,ut=/\r/g,Bt=/^(?:button|input)$/i,X=/^(?:button|input|object|select|textarea)$/i,he=/^a(?:rea|)$/i,oe=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,me=l.support.getSetAttribute;l.fn.extend({attr:function(o,f){return l.access(this,l.attr,o,f,arguments.length>1)},removeAttr:function(o){return this.each(function(){l.removeAttr(this,o)})},prop:function(o,f){return l.access(this,l.prop,o,f,arguments.length>1)},removeProp:function(o){return o=l.propFix[o]||o,this.each(function(){try{this[o]=t,delete this[o]}catch{}})},addClass:function(o){var f,h,p,g,x,y,k;if(l.isFunction(o))return this.each(function(N){l(this).addClass(o.call(this,N,this.className))});if(o&&typeof o=="string"){for(f=o.split(L),h=0,p=this.length;h<p;h++)if(g=this[h],g.nodeType===1)if(!g.className&&f.length===1)g.className=o;else{for(x=" "+g.className+" ",y=0,k=f.length;y<k;y++)x.indexOf(" "+f[y]+" ")<0&&(x+=f[y]+" ");g.className=l.trim(x)}}return this},removeClass:function(o){var f,h,p,g,x,y,k;if(l.isFunction(o))return this.each(function(N){l(this).removeClass(o.call(this,N,this.className))});if(o&&typeof o=="string"||o===t){for(f=(o||"").split(L),y=0,k=this.length;y<k;y++)if(p=this[y],p.nodeType===1&&p.className){for(h=(" "+p.className+" ").replace(nt," "),g=0,x=f.length;g<x;g++)for(;h.indexOf(" "+f[g]+" ")>=0;)h=h.replace(" "+f[g]+" "," ");p.className=o?l.trim(h):""}}return this},toggleClass:function(o,f){var h=typeof o,p=typeof f=="boolean";return l.isFunction(o)?this.each(function(g){l(this).toggleClass(o.call(this,g,this.className,f),f)}):this.each(function(){if(h==="string")for(var g,x=0,y=l(this),k=f,N=o.split(L);g=N[x++];)k=p?k:!y.hasClass(g),y[k?"addClass":"removeClass"](g);else(h==="undefined"||h==="boolean")&&(this.className&&l._data(this,"__className__",this.className),this.className=this.className||o===!1?"":l._data(this,"__className__")||"")})},hasClass:function(o){for(var f=" "+o+" ",h=0,p=this.length;h<p;h++)if(this[h].nodeType===1&&(" "+this[h].className+" ").replace(nt," ").indexOf(f)>=0)return!0;return!1},val:function(o){var f,h,p,g=this[0];return arguments.length?(p=l.isFunction(o),this.each(function(x){var y,k=l(this);this.nodeType===1&&(p?y=o.call(this,x,k.val()):y=o,y==null?y="":typeof y=="number"?y+="":l.isArray(y)&&(y=l.map(y,function(N){return N==null?"":N+""})),f=l.valHooks[this.type]||l.valHooks[this.nodeName.toLowerCase()],(!f||!("set"in f)||f.set(this,y,"value")===t)&&(this.value=y))})):g?(f=l.valHooks[g.type]||l.valHooks[g.nodeName.toLowerCase()],f&&"get"in f&&(h=f.get(g,"value"))!==t?h:(h=g.value,typeof h=="string"?h.replace(ut,""):h==null?"":h)):void 0}}),l.extend({valHooks:{option:{get:function(o){var f=o.attributes.value;return!f||f.specified?o.value:o.text}},select:{get:function(o){for(var f,h,p=o.options,g=o.selectedIndex,x=o.type==="select-one"||g<0,y=x?null:[],k=x?g+1:p.length,N=g<0?k:x?g:0;N<k;N++)if(h=p[N],(h.selected||N===g)&&(l.support.optDisabled?!h.disabled:h.getAttribute("disabled")===null)&&(!h.parentNode.disabled||!l.nodeName(h.parentNode,"optgroup"))){if(f=l(h).val(),x)return f;y.push(f)}return y},set:function(o,f){var h=l.makeArray(f);return l(o).find("option").each(function(){this.selected=l.inArray(l(this).val(),h)>=0}),h.length||(o.selectedIndex=-1),h}}},attrFn:{},attr:function(o,f,h,p){var g,x,y,k=o.nodeType;if(!(!o||k===3||k===8||k===2)){if(p&&l.isFunction(l.fn[f]))return l(o)[f](h);if(typeof o.getAttribute=="undefined")return l.prop(o,f,h);if(y=k!==1||!l.isXMLDoc(o),y&&(f=f.toLowerCase(),x=l.attrHooks[f]||(oe.test(f)?rt:lt)),h!==t)if(h===null){l.removeAttr(o,f);return}else return x&&"set"in x&&y&&(g=x.set(o,h,f))!==t?g:(o.setAttribute(f,h+""),h);else return x&&"get"in x&&y&&(g=x.get(o,f))!==null?g:(g=o.getAttribute(f),g===null?t:g)}},removeAttr:function(o,f){var h,p,g,x,y=0;if(f&&o.nodeType===1)for(p=f.split(L);y<p.length;y++)g=p[y],g&&(h=l.propFix[g]||g,x=oe.test(g),x||l.attr(o,g,""),o.removeAttribute(me?g:h),x&&h in o&&(o[h]=!1))},attrHooks:{type:{set:function(o,f){if(Bt.test(o.nodeName)&&o.parentNode)l.error("type property can't be changed");else if(!l.support.radioValue&&f==="radio"&&l.nodeName(o,"input")){var h=o.value;return o.setAttribute("type",f),h&&(o.value=h),f}}},value:{get:function(o,f){return f in o?o.value:null},set:function(o,f,h){o.value=f}}},propFix:{tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(o,f,h){var p,g,x,y=o.nodeType;if(!(!o||y===3||y===8||y===2))return x=y!==1||!l.isXMLDoc(o),x&&(f=l.propFix[f]||f,g=l.propHooks[f]),h!==t?g&&"set"in g&&(p=g.set(o,h,f))!==t?p:o[f]=h:g&&"get"in g&&(p=g.get(o,f))!==null?p:o[f]},propHooks:{tabIndex:{get:function(o){var f=o.getAttributeNode("tabindex");return f&&f.specified?parseInt(f.value,10):X.test(o.nodeName)||he.test(o.nodeName)&&o.href?0:t}}}}),rt={get:function(o,f){var h,p=l.prop(o,f);return p===!0||typeof p!="boolean"&&(h=o.getAttributeNode(f))&&h.nodeValue!==!1?f.toLowerCase():t},set:function(o,f,h){var p;return f===!1?l.removeAttr(o,h):(p=l.propFix[h]||h,p in o&&(o[p]=!0),o.setAttribute(h,h.toLowerCase())),h}},l.support.enctype||(l.propFix.enctype="encoding");var Fe=/^([^\.]*|)(?:\.(.+)|)$/,De=/(?:^|\s)hover(\.\S+|)\b/,Me=/^key/,qe=/^(?:mouse|contextmenu)|click/,j=/^(?:focusinfocus|focusoutblur)$/,P=function(o){return l.event.special.hover?o:o.replace(De,"mouseenter$1 mouseleave$1")};l.event={add:function(o,f,h,p,g){var x,y,k,N,B,F,W,te,re,ie,ve;if(!(o.nodeType===3||o.nodeType===8||!f||!h||!(x=l._data(o)))){for(h.handler&&(re=h,h=re.handler,g=re.selector),h.guid||(h.guid=l.guid++),k=x.events,k||(x.events=k={}),y=x.handle,y||(x.handle=y=function(Le){return typeof l!="undefined"&&(!Le||l.event.triggered!==Le.type)?l.event.dispatch.apply(y.elem,arguments):t},y.elem=o),f=l.trim(P(f)).split(" "),N=0;N<f.length;N++)B=Fe.exec(f[N])||[],F=B[1],W=(B[2]||"").split(".").sort(),ve=l.event.special[F]||{},F=(g?ve.delegateType:ve.bindType)||F,ve=l.event.special[F]||{},te=l.extend({type:F,origType:B[1],data:p,handler:h,guid:h.guid,selector:g,needsContext:g&&l.expr.match.needsContext.test(g),namespace:W.join(".")},re),ie=k[F],ie||(ie=k[F]=[],ie.delegateCount=0,(!ve.setup||ve.setup.call(o,p,W,y)===!1)&&(o.addEventListener?p&&p.passive!==t?o.addEventListener(F,y,p):o.addEventListener(F,y,!1):o.attachEvent&&o.attachEvent("on"+F,y))),ve.add&&(ve.add.call(o,te),te.handler.guid||(te.handler.guid=h.guid)),g?ie.splice(ie.delegateCount++,0,te):ie.push(te),l.event.global[F]=!0;o=null}},global:{},remove:function(o,f,h,p,g){var x,y,k,N,B,F,W,te,re,ie,ve,Le=l.hasData(o)&&l._data(o);if(!(!Le||!(te=Le.events))){for(f=l.trim(P(f||"")).split(" "),x=0;x<f.length;x++){if(y=Fe.exec(f[x])||[],k=N=y[1],B=y[2],!k){for(k in te)l.event.remove(o,k+f[x],h,p,!0);continue}for(re=l.event.special[k]||{},k=(p?re.delegateType:re.bindType)||k,ie=te[k]||[],F=ie.length,B=B?new RegExp("(^|\\.)"+B.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null,W=0;W<ie.length;W++)ve=ie[W],(g||N===ve.origType)&&(!h||h.guid===ve.guid)&&(!B||B.test(ve.namespace))&&(!p||p===ve.selector||p==="**"&&ve.selector)&&(ie.splice(W--,1),ve.selector&&ie.delegateCount--,re.remove&&re.remove.call(o,ve));ie.length===0&&F!==ie.length&&((!re.teardown||re.teardown.call(o,B,Le.handle)===!1)&&l.removeEvent(o,k,Le.handle),delete te[k])}l.isEmptyObject(te)&&(delete Le.handle,l.removeData(o,"events",!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(o,f,h,p){if(!(h&&(h.nodeType===3||h.nodeType===8))){var g,x,y,k,N,B,F,W,te,re,ie=o.type||o,ve=[];if(!j.test(ie+l.event.triggered)&&(ie.indexOf("!")>=0&&(ie=ie.slice(0,-1),x=!0),ie.indexOf(".")>=0&&(ve=ie.split("."),ie=ve.shift(),ve.sort()),!((!h||l.event.customEvent[ie])&&!l.event.global[ie]))){if(o=typeof o=="object"?o[l.expando]?o:new l.Event(ie,o):new l.Event(ie),o.type=ie,o.isTrigger=!0,o.exclusive=x,o.namespace=ve.join("."),o.namespace_re=o.namespace?new RegExp("(^|\\.)"+ve.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,B=ie.indexOf(":")<0?"on"+ie:"",!h){g=l.cache;for(y in g)g[y].events&&g[y].events[ie]&&l.event.trigger(o,f,g[y].handle.elem,!0);return}if(o.result=t,o.target||(o.target=h),f=f!=null?l.makeArray(f):[],f.unshift(o),F=l.event.special[ie]||{},!(F.trigger&&F.trigger.apply(h,f)===!1)){if(te=[[h,F.bindType||ie]],!p&&!F.noBubble&&!l.isWindow(h)){for(re=F.delegateType||ie,k=j.test(re+ie)?h:h.parentNode,N=h;k;k=k.parentNode)te.push([k,re]),N=k;N===(h.ownerDocument||n)&&te.push([N.defaultView||N.parentWindow||e,re])}for(y=0;y<te.length&&!o.isPropagationStopped();y++)k=te[y][0],o.type=te[y][1],W=(l._data(k,"events")||{})[o.type]&&l._data(k,"handle"),W&&W.apply(k,f),W=B&&k[B],W&&l.acceptData(k)&&W.apply&&W.apply(k,f)===!1&&o.preventDefault();return o.type=ie,!p&&!o.isDefaultPrevented()&&(!F._default||F._default.apply(h.ownerDocument,f)===!1)&&!(ie==="click"&&l.nodeName(h,"a"))&&l.acceptData(h)&&B&&h[ie]&&(ie!=="focus"&&ie!=="blur"||o.target.offsetWidth!==0)&&!l.isWindow(h)&&(N=h[B],N&&(h[B]=null),l.event.triggered=ie,h[ie](),l.event.triggered=t,N&&(h[B]=N)),o.result}}}},dispatch:function(o){o=l.event.fix(o||e.event);var f,h,p,g,x,y,k,N,B,F=(l._data(this,"events")||{})[o.type]||[],W=F.delegateCount,te=d.call(arguments),re=!o.exclusive&&!o.namespace,ie=l.event.special[o.type]||{},ve=[];if(te[0]=o,o.delegateTarget=this,!(ie.preDispatch&&ie.preDispatch.call(this,o)===!1)){if(W&&!(o.button&&o.type==="click")){for(p=o.target;p!=this;p=p.parentNode||this)if(p.disabled!==!0||o.type!=="click"){for(x={},k=[],f=0;f<W;f++)N=F[f],B=N.selector,x[B]===t&&(x[B]=N.needsContext?l(B,this).index(p)>=0:l.find(B,this,null,[p]).length),x[B]&&k.push(N);k.length&&ve.push({elem:p,matches:k})}}for(F.length>W&&ve.push({elem:this,matches:F.slice(W)}),f=0;f<ve.length&&!o.isPropagationStopped();f++)for(y=ve[f],o.currentTarget=y.elem,h=0;h<y.matches.length&&!o.isImmediatePropagationStopped();h++)N=y.matches[h],(re||!o.namespace&&!N.namespace||o.namespace_re&&o.namespace_re.test(N.namespace))&&(o.data=N.data,o.handleObj=N,g=((l.event.special[N.origType]||{}).handle||N.handler).apply(y.elem,te),g!==t&&(o.result=g,g===!1&&(o.preventDefault(),o.stopPropagation())));return ie.postDispatch&&ie.postDispatch.call(this,o),o.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(o,f){return o.which==null&&(o.which=f.charCode!=null?f.charCode:f.keyCode),o}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(o,f){var h,p,g,x=f.button,y=f.fromElement;return o.pageX==null&&f.clientX!=null&&(h=o.target.ownerDocument||n,p=h.documentElement,g=h.body,o.pageX=f.clientX+(p&&p.scrollLeft||g&&g.scrollLeft||0)-(p&&p.clientLeft||g&&g.clientLeft||0),o.pageY=f.clientY+(p&&p.scrollTop||g&&g.scrollTop||0)-(p&&p.clientTop||g&&g.clientTop||0)),!o.relatedTarget&&y&&(o.relatedTarget=y===o.target?f.toElement:y),!o.which&&x!==t&&(o.which=x&1?1:x&2?3:x&4?2:0),o}},fix:function(o){if(o[l.expando])return o;var f,h,p=o,g=l.event.fixHooks[o.type]||{},x=g.props?this.props.concat(g.props):this.props;for(o=l.Event(p),f=x.length;f;)h=x[--f],o[h]=p[h];return o.target||(o.target=p.srcElement||n),o.target.nodeType===3&&(o.target=o.target.parentNode),o.metaKey=!!o.metaKey,g.filter?g.filter(o,p):o},special:{load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(o,f,h){l.isWindow(this)&&(this.onbeforeunload=h)},teardown:function(o,f){this.onbeforeunload===f&&(this.onbeforeunload=null)}}},simulate:function(o,f,h,p){var g=l.extend(new l.Event,h,{type:o,isSimulated:!0,originalEvent:{}});p?l.event.trigger(g,null,f):l.event.dispatch.call(f,g),g.isDefaultPrevented()&&h.preventDefault()}},l.event.handle=l.event.dispatch,l.removeEvent=n.removeEventListener?function(o,f,h){o.removeEventListener&&o.removeEventListener(f,h,!1)}:function(o,f,h){var p="on"+f;o.detachEvent&&(typeof o[p]=="undefined"&&(o[p]=null),o.detachEvent(p,h))},l.Event=function(o,f){if(!(this instanceof l.Event))return new l.Event(o,f);o&&o.type?(this.originalEvent=o,this.type=o.type,this.isDefaultPrevented=o.defaultPrevented||o.returnValue===!1||o.getPreventDefault&&o.getPreventDefault()?R:T):this.type=o,f&&l.extend(this,f),this.timeStamp=o&&o.timeStamp||l.now(),this[l.expando]=!0};function T(){return!1}function R(){return!0}l.Event.prototype={preventDefault:function(){this.isDefaultPrevented=R;var o=this.originalEvent;!o||(o.preventDefault?o.preventDefault():o.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=R;var o=this.originalEvent;!o||(o.stopPropagation&&o.stopPropagation(),o.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=R,this.stopPropagation()},isDefaultPrevented:T,isPropagationStopped:T,isImmediatePropagationStopped:T},l.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(o,f){l.event.special[o]={delegateType:f,bindType:f,handle:function(h){var p,g=this,x=h.relatedTarget,y=h.handleObj;return y.selector,(!x||x!==g&&!l.contains(g,x))&&(h.type=y.origType,p=y.handler.apply(this,arguments),h.type=f),p}}}),l.fn.extend({on:function(o,f,h,p,g){var x,y;if(typeof o=="object"){typeof f!="string"&&(h=h||f,f=t);for(y in o)this.on(y,f,h,o[y],g);return this}if(h==null&&p==null?(p=f,h=f=t):p==null&&(typeof f=="string"?(p=h,h=t):(p=h,h=f,f=t)),p===!1)p=T;else if(!p)return this;return g===1&&(x=p,p=function(k){return l().off(k),x.apply(this,arguments)},p.guid=x.guid||(x.guid=l.guid++)),this.each(function(){l.event.add(this,o,p,h,f)})},off:function(o,f,h){var p,g;if(o&&o.preventDefault&&o.handleObj)return p=o.handleObj,l(o.delegateTarget).off(p.namespace?p.origType+"."+p.namespace:p.origType,p.selector,p.handler),this;if(typeof o=="object"){for(g in o)this.off(g,f,o[g]);return this}return(f===!1||typeof f=="function")&&(h=f,f=t),h===!1&&(h=T),this.each(function(){l.event.remove(this,o,h,f)})},delegate:function(o,f,h,p){return this.on(f,o,h,p)},undelegate:function(o,f,h){return arguments.length===1?this.off(o,"**"):this.off(f,o||"**",h)},trigger:function(o,f){return this.each(function(){l.event.trigger(o,f,this)})},triggerHandler:function(o,f){if(this[0])return l.event.trigger(o,f,this[0],!0)},toggle:function(o){var f=arguments,h=o.guid||l.guid++,p=0,g=function(x){var y=(l._data(this,"lastToggle"+o.guid)||0)%p;return l._data(this,"lastToggle"+o.guid,y+1),x.preventDefault(),f[y].apply(this,arguments)||!1};for(g.guid=h;p<f.length;)f[p++].guid=h;return this.click(g)},hover:function(o,f){return this.mouseenter(o).mouseleave(f||o)}}),l.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(o,f){l.fn[f]=function(h,p){return p==null&&(p=h,h=null),arguments.length>0?this.on(f,null,h,p):this.trigger(f)},Me.test(f)&&(l.event.fixHooks[f]=l.event.keyHooks),qe.test(f)&&(l.event.fixHooks[f]=l.event.mouseHooks)});/*!
  6. * Sizzle CSS Selector Engine
  7. * Copyright 2012 JQXLite Foundation and other contributors
  8. * Released under the MIT license
  9. * http://sizzlejs.com/
  10. */(function(o,f){var h,p,g,x,y,k,N,B,F,W,te=!0,re="undefined",ie=("sizcache"+Math.random()).replace(".",""),ve=String,Le=o.document,We=Le.documentElement,Ni=0,$l=0,Ul=[].pop,Ln=[].push,An=[].slice,wr=[].indexOf||function(b){for(var M=0,I=this.length;M<I;M++)if(this[M]===b)return M;return-1},Lt=function(b,M){return b[ie]=M==null||M,b},br=function(){var b={},M=[];return Lt(function(I,z){return M.push(I)>g.cacheLength&&delete b[M.shift()],b[I+" "]=z},b)},$s=br(),Us=br(),Gs=br(),it="[\\x20\\t\\r\\n\\f]",mn="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",Gl=mn.replace("w","w#"),Jl="([*^$|!~]?=)",Js="\\["+it+"*("+mn+")"+it+"*(?:"+Jl+it+`*(?:(['"])((?:\\\\.|[^\\\\])*?)\\3|(`+Gl+")|)|)"+it+"*\\]",Sr=":("+mn+`)(?:\\((?:(['"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:`+Js+")|[^:]|\\\\.)*|.*))\\)|)",Qs=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)",Ii=new RegExp("^"+it+"+|((?:^|[^\\\\])(?:\\\\.)*)"+it+"+$","g"),Ql=new RegExp("^"+it+"*,"+it+"*"),Yl=new RegExp("^"+it+"*([\\x20\\t\\r\\n\\f>+~])"+it+"*"),Kl=new RegExp(Sr),Zl=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,jr=/[\x20\t\r\n\f]*[+~]/,eu=/h\d/i,tu=/input|select|textarea|button/i,gn=/\\(?!\\)/g,Ri={ID:new RegExp("^#("+mn+")"),CLASS:new RegExp("^\\.("+mn+")"),NAME:new RegExp(`^\\[name=['"]?(`+mn+`)['"]?\\]`),TAG:new RegExp("^("+mn.replace("w","w*")+")"),ATTR:new RegExp("^"+Js),PSEUDO:new RegExp("^"+Sr),POS:new RegExp(Qs,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),needsContext:new RegExp("^"+it+"*[>+~]|"+Qs,"i")},Yt=function(b){var M=Le.createElement("div");try{return b(M)}catch{return!1}finally{M=null}},nu=Yt(function(b){return b.appendChild(Le.createComment("")),!b.getElementsByTagName("*").length}),iu=Yt(function(b){return b.innerHTML="<a href='#'></a>",b.firstChild&&typeof b.firstChild.getAttribute!==re&&b.firstChild.getAttribute("href")==="#"}),ru=Yt(function(b){b.innerHTML="<select></select>";var M=typeof b.lastChild.getAttribute("multiple");return M!=="boolean"&&M!=="string"}),Ys=Yt(function(b){return b.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",!b.getElementsByClassName||!b.getElementsByClassName("e").length?!1:(b.lastChild.className="e",b.getElementsByClassName("e").length===2)}),su=Yt(function(b){b.id=ie+0,b.innerHTML="<a name='"+ie+"'></a><div name='"+ie+"'></div>",We.insertBefore(b,We.firstChild);var M=Le.getElementsByName&&Le.getElementsByName(ie).length===2+Le.getElementsByName(ie+0).length;return p=!Le.getElementById(ie),We.removeChild(b),M});try{An.call(We.childNodes,0)[0].nodeType}catch{An=function(M){for(var I,z=[];I=this[M];M++)z.push(I);return z}}function $e(b,M,I,z){I=I||[],M=M||Le;var J,ee,Z,se,ce=M.nodeType;if(!b||typeof b!="string")return I;if(ce!==1&&ce!==9)return[];if(Z=y(M),!Z&&!z&&(J=Zl.exec(b)))if(se=J[1]){if(ce===9)if(ee=M.getElementById(se),ee&&ee.parentNode){if(ee.id===se)return I.push(ee),I}else return I;else if(M.ownerDocument&&(ee=M.ownerDocument.getElementById(se))&&k(M,ee)&&ee.id===se)return I.push(ee),I}else{if(J[2])return Ln.apply(I,An.call(M.getElementsByTagName(b),0)),I;if((se=J[3])&&Ys&&M.getElementsByClassName)return Ln.apply(I,An.call(M.getElementsByClassName(se),0)),I}return Tr(b.replace(Ii,"$1"),M,I,z,Z)}$e.matches=function(b,M){return $e(b,null,null,M)},$e.matchesSelector=function(b,M){return $e(M,null,null,[b]).length>0};function Kn(b){return function(M){var I=M.nodeName.toLowerCase();return I==="input"&&M.type===b}}function Ks(b){return function(M){var I=M.nodeName.toLowerCase();return(I==="input"||I==="button")&&M.type===b}}function vn(b){return Lt(function(M){return M=+M,Lt(function(I,z){for(var J,ee=b([],I.length,M),Z=ee.length;Z--;)I[J=ee[Z]]&&(I[J]=!(z[J]=I[J]))})})}x=$e.getText=function(b){var M,I="",z=0,J=b.nodeType;if(J){if(J===1||J===9||J===11){if(typeof b.textContent=="string")return b.textContent;for(b=b.firstChild;b;b=b.nextSibling)I+=x(b)}else if(J===3||J===4)return b.nodeValue}else for(;M=b[z];z++)I+=x(M);return I},y=$e.isXML=function(b){var M=b&&(b.ownerDocument||b).documentElement;return M?M.nodeName!=="HTML":!1},k=$e.contains=We.contains?function(b,M){var I=b.nodeType===9?b.documentElement:b,z=M&&M.parentNode;return b===z||!!(z&&z.nodeType===1&&I.contains&&I.contains(z))}:We.compareDocumentPosition?function(b,M){return M&&!!(b.compareDocumentPosition(M)&16)}:function(b,M){for(;M=M.parentNode;)if(M===b)return!0;return!1},$e.attr=function(b,M){var I,z=y(b);return z||(M=M.toLowerCase()),(I=g.attrHandle[M])?I(b):z||ru?b.getAttribute(M):(I=b.getAttributeNode(M),I?typeof b[M]=="boolean"?b[M]?M:null:I.specified?I.value:null:null)},g=$e.selectors={cacheLength:50,createPseudo:Lt,match:Ri,attrHandle:iu?{}:{href:function(b){return b.getAttribute("href",2)},type:function(b){return b.getAttribute("type")}},find:{ID:p?function(b,M,I){if(typeof M.getElementById!==re&&!I){var z=M.getElementById(b);return z&&z.parentNode?[z]:[]}}:function(b,M,I){if(typeof M.getElementById!==re&&!I){var z=M.getElementById(b);return z?z.id===b||typeof z.getAttributeNode!==re&&z.getAttributeNode("id").value===b?[z]:f:[]}},TAG:nu?function(b,M){if(typeof M.getElementsByTagName!==re)return M.getElementsByTagName(b)}:function(b,M){var I=M.getElementsByTagName(b);if(b==="*"){for(var z,J=[],ee=0;z=I[ee];ee++)z.nodeType===1&&J.push(z);return J}return I},NAME:su&&function(b,M){if(typeof M.getElementsByName!==re)return M.getElementsByName(name)},CLASS:Ys&&function(b,M,I){if(typeof M.getElementsByClassName!==re&&!I)return M.getElementsByClassName(b)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(b){return b[1]=b[1].replace(gn,""),b[3]=(b[4]||b[5]||"").replace(gn,""),b[2]==="~="&&(b[3]=" "+b[3]+" "),b.slice(0,4)},CHILD:function(b){return b[1]=b[1].toLowerCase(),b[1]==="nth"?(b[2]||$e.error(b[0]),b[3]=+(b[3]?b[4]+(b[5]||1):2*(b[2]==="even"||b[2]==="odd")),b[4]=+(b[6]+b[7]||b[2]==="odd")):b[2]&&$e.error(b[0]),b},PSEUDO:function(b){var M,I;return Ri.CHILD.test(b[0])?null:(b[3]?b[2]=b[3]:(M=b[4])&&(Kl.test(M)&&(I=Bi(M,!0))&&(I=M.indexOf(")",M.length-I)-M.length)&&(M=M.slice(0,I),b[0]=b[0].slice(0,I)),b[2]=M),b.slice(0,3))}},filter:{ID:p?function(b){return b=b.replace(gn,""),function(M){return M.getAttribute("id")===b}}:function(b){return b=b.replace(gn,""),function(M){var I=typeof M.getAttributeNode!==re&&M.getAttributeNode("id");return I&&I.value===b}},TAG:function(b){return b==="*"?function(){return!0}:(b=b.replace(gn,"").toLowerCase(),function(M){return M.nodeName&&M.nodeName.toLowerCase()===b})},CLASS:function(b){var M=$s[ie][b+" "];return M||(M=new RegExp("(^|"+it+")"+b+"("+it+"|$)"))&&$s(b,function(I){return M.test(I.className||typeof I.getAttribute!==re&&I.getAttribute("class")||"")})},ATTR:function(b,M,I){return function(z,J){var ee=$e.attr(z,b);return ee==null?M==="!=":M?(ee+="",M==="="?ee===I:M==="!="?ee!==I:M==="^="?I&&ee.indexOf(I)===0:M==="*="?I&&ee.indexOf(I)>-1:M==="$="?I&&ee.substr(ee.length-I.length)===I:M==="~="?(" "+ee+" ").indexOf(I)>-1:M==="|="?ee===I||ee.substr(0,I.length+1)===I+"-":!1):!0}},CHILD:function(b,M,I,z){return b==="nth"?function(J){var ee,Z,se=J.parentNode;if(I===1&&z===0)return!0;if(se)for(Z=0,ee=se.firstChild;ee&&!(ee.nodeType===1&&(Z++,J===ee));ee=ee.nextSibling);return Z-=z,Z===I||Z%I===0&&Z/I>=0}:function(J){var ee=J;switch(b){case"only":case"first":for(;ee=ee.previousSibling;)if(ee.nodeType===1)return!1;if(b==="first")return!0;ee=J;case"last":for(;ee=ee.nextSibling;)if(ee.nodeType===1)return!1;return!0}}},PSEUDO:function(b,M){var I,z=g.pseudos[b]||g.setFilters[b.toLowerCase()]||$e.error("unsupported pseudo: "+b);return z[ie]?z(M):z.length>1?(I=[b,b,"",M],g.setFilters.hasOwnProperty(b.toLowerCase())?Lt(function(J,ee){for(var Z,se=z(J,M),ce=se.length;ce--;)Z=wr.call(J,se[ce]),J[Z]=!(ee[Z]=se[ce])}):function(J){return z(J,0,I)}):z}},pseudos:{not:Lt(function(b){var M=[],I=[],z=N(b.replace(Ii,"$1"));return z[ie]?Lt(function(J,ee,Z,se){for(var ce,Oe=z(J,null,se,[]),Ee=J.length;Ee--;)(ce=Oe[Ee])&&(J[Ee]=!(ee[Ee]=ce))}):function(J,ee,Z){return M[0]=J,z(M,null,Z,I),!I.pop()}}),has:Lt(function(b){return function(M){return $e(b,M).length>0}}),contains:Lt(function(b){return function(M){return(M.textContent||M.innerText||x(M)).indexOf(b)>-1}}),enabled:function(b){return b.disabled===!1},disabled:function(b){return b.disabled===!0},checked:function(b){var M=b.nodeName.toLowerCase();return M==="input"&&!!b.checked||M==="option"&&!!b.selected},selected:function(b){return b.parentNode&&b.parentNode.selectedIndex,b.selected===!0},parent:function(b){return!g.pseudos.empty(b)},empty:function(b){var M;for(b=b.firstChild;b;){if(b.nodeName>"@"||(M=b.nodeType)===3||M===4)return!1;b=b.nextSibling}return!0},header:function(b){return eu.test(b.nodeName)},text:function(b){var M,I;return b.nodeName.toLowerCase()==="input"&&(M=b.type)==="text"&&((I=b.getAttribute("type"))==null||I.toLowerCase()===M)},radio:Kn("radio"),checkbox:Kn("checkbox"),file:Kn("file"),password:Kn("password"),image:Kn("image"),submit:Ks("submit"),reset:Ks("reset"),button:function(b){var M=b.nodeName.toLowerCase();return M==="input"&&b.type==="button"||M==="button"},input:function(b){return tu.test(b.nodeName)},focus:function(b){var M=b.ownerDocument;return b===M.activeElement&&(!M.hasFocus||M.hasFocus())&&!!(b.type||b.href||~b.tabIndex)},active:function(b){return b===b.ownerDocument.activeElement},first:vn(function(){return[0]}),last:vn(function(b,M){return[M-1]}),eq:vn(function(b,M,I){return[I<0?I+M:I]}),even:vn(function(b,M){for(var I=0;I<M;I+=2)b.push(I);return b}),odd:vn(function(b,M){for(var I=1;I<M;I+=2)b.push(I);return b}),lt:vn(function(b,M,I){for(var z=I<0?I+M:I;--z>=0;)b.push(z);return b}),gt:vn(function(b,M,I){for(var z=I<0?I+M:I;++z<M;)b.push(z);return b})}};function Fi(b,M,I){if(b===M)return I;for(var z=b.nextSibling;z;){if(z===M)return-1;z=z.nextSibling}return 1}B=We.compareDocumentPosition?function(b,M){return b===M?(F=!0,0):(!b.compareDocumentPosition||!M.compareDocumentPosition?b.compareDocumentPosition:b.compareDocumentPosition(M)&4)?-1:1}:function(b,M){if(b===M)return F=!0,0;if(b.sourceIndex&&M.sourceIndex)return b.sourceIndex-M.sourceIndex;var I,z,J=[],ee=[],Z=b.parentNode,se=M.parentNode,ce=Z;if(Z===se)return Fi(b,M);if(Z){if(!se)return 1}else return-1;for(;ce;)J.unshift(ce),ce=ce.parentNode;for(ce=se;ce;)ee.unshift(ce),ce=ce.parentNode;I=J.length,z=ee.length;for(var Oe=0;Oe<I&&Oe<z;Oe++)if(J[Oe]!==ee[Oe])return Fi(J[Oe],ee[Oe]);return Oe===I?Fi(b,ee[Oe],-1):Fi(J[Oe],M,1)},[0,0].sort(B),te=!F,$e.uniqueSort=function(b){var M,I=[],z=1,J=0;if(F=te,b.sort(B),F){for(;M=b[z];z++)M===b[z-1]&&(J=I.push(z));for(;J--;)b.splice(I[J],1)}return b},$e.error=function(b){throw new Error("Syntax error, unrecognized expression: "+b)};function Bi(b,M){var I,z,J,ee,Z,se,ce,Oe=Us[ie][b+" "];if(Oe)return M?0:Oe.slice(0);for(Z=b,se=[],ce=g.preFilter;Z;){(!I||(z=Ql.exec(Z)))&&(z&&(Z=Z.slice(z[0].length)||Z),se.push(J=[])),I=!1,(z=Yl.exec(Z))&&(J.push(I=new ve(z.shift())),Z=Z.slice(I.length),I.type=z[0].replace(Ii," "));for(ee in g.filter)(z=Ri[ee].exec(Z))&&(!ce[ee]||(z=ce[ee](z)))&&(J.push(I=new ve(z.shift())),Z=Z.slice(I.length),I.type=ee,I.matches=z);if(!I)break}return M?Z.length:Z?$e.error(b):Us(b,se).slice(0)}function kr(b,M,I){var z=M.dir,J=I&&M.dir==="parentNode",ee=$l++;return M.first?function(Z,se,ce){for(;Z=Z[z];)if(J||Z.nodeType===1)return b(Z,se,ce)}:function(Z,se,ce){if(ce){for(;Z=Z[z];)if((J||Z.nodeType===1)&&b(Z,se,ce))return Z}else for(var Oe,Ee=Ni+" "+ee+" ",Be=Ee+h;Z=Z[z];)if(J||Z.nodeType===1){if((Oe=Z[ie])===Be)return Z.sizset;if(typeof Oe=="string"&&Oe.indexOf(Ee)===0){if(Z.sizset)return Z}else{if(Z[ie]=Be,b(Z,se,ce))return Z.sizset=!0,Z;Z.sizset=!1}}}}function qr(b){return b.length>1?function(M,I,z){for(var J=b.length;J--;)if(!b[J](M,I,z))return!1;return!0}:b[0]}function Di(b,M,I,z,J){for(var ee,Z=[],se=0,ce=b.length,Oe=M!=null;se<ce;se++)(ee=b[se])&&(!I||I(ee,z,J))&&(Z.push(ee),Oe&&M.push(se));return Z}function Mr(b,M,I,z,J,ee){return z&&!z[ie]&&(z=Mr(z)),J&&!J[ie]&&(J=Mr(J,ee)),Lt(function(Z,se,ce,Oe){var Ee,Be,et,ot=[],jt=[],ct=se.length,Dt=Z||au(M||"*",ce.nodeType?[ce]:ce,[]),kt=b&&(Z||!M)?Di(Dt,ot,b,ce,Oe):Dt,at=I?J||(Z?b:ct||z)?[]:se:kt;if(I&&I(kt,at,ce,Oe),z)for(Ee=Di(at,jt),z(Ee,[],ce,Oe),Be=Ee.length;Be--;)(et=Ee[Be])&&(at[jt[Be]]=!(kt[jt[Be]]=et));if(Z){if(J||b){if(J){for(Ee=[],Be=at.length;Be--;)(et=at[Be])&&Ee.push(kt[Be]=et);J(null,at=[],Ee,Oe)}for(Be=at.length;Be--;)(et=at[Be])&&(Ee=J?wr.call(Z,et):ot[Be])>-1&&(Z[Ee]=!(se[Ee]=et))}}else at=Di(at===se?at.splice(ct,at.length):at),J?J(null,se,at,Oe):Ln.apply(se,at)})}function Cr(b){for(var M,I,z,J=b.length,ee=g.relative[b[0].type],Z=ee||g.relative[" "],se=ee?1:0,ce=kr(function(Be){return Be===M},Z,!0),Oe=kr(function(Be){return wr.call(M,Be)>-1},Z,!0),Ee=[function(Be,et,ot){return!ee&&(ot||et!==W)||((M=et).nodeType?ce(Be,et,ot):Oe(Be,et,ot))}];se<J;se++)if(I=g.relative[b[se].type])Ee=[kr(qr(Ee),I)];else{if(I=g.filter[b[se].type].apply(null,b[se].matches),I[ie]){for(z=++se;z<J&&!g.relative[b[z].type];z++);return Mr(se>1&&qr(Ee),se>1&&b.slice(0,se-1).join("").replace(Ii,"$1"),I,se<z&&Cr(b.slice(se,z)),z<J&&Cr(b=b.slice(z)),z<J&&b.join(""))}Ee.push(I)}return qr(Ee)}function ou(b,M){var I=M.length>0,z=b.length>0,J=function(ee,Z,se,ce,Oe){var Ee,Be,et,ot=[],jt=0,ct="0",Dt=ee&&[],kt=Oe!=null,at=W,lu=ee||z&&g.find.TAG("*",Oe&&Z.parentNode||Z),eo=Ni+=at==null?1:Math.E;for(kt&&(W=Z!==Le&&Z,h=J.el);(Ee=lu[ct])!=null;ct++){if(z&&Ee){for(Be=0;et=b[Be];Be++)if(et(Ee,Z,se)){ce.push(Ee);break}kt&&(Ni=eo,h=++J.el)}I&&((Ee=!et&&Ee)&&jt--,ee&&Dt.push(Ee))}if(jt+=ct,I&&ct!==jt){for(Be=0;et=M[Be];Be++)et(Dt,ot,Z,se);if(ee){if(jt>0)for(;ct--;)Dt[ct]||ot[ct]||(ot[ct]=Ul.call(ce));ot=Di(ot)}Ln.apply(ce,ot),kt&&!ee&&ot.length>0&&jt+M.length>1&&$e.uniqueSort(ce)}return kt&&(Ni=eo,W=at),Dt};return J.el=0,I?Lt(J):J}N=$e.compile=function(b,M){var I,z=[],J=[],ee=Gs[ie][b+" "];if(!ee){for(M||(M=Bi(b)),I=M.length;I--;)ee=Cr(M[I]),ee[ie]?z.push(ee):J.push(ee);ee=Gs(b,ou(J,z))}return ee};function au(b,M,I){for(var z=0,J=M.length;z<J;z++)$e(b,M[z],I);return I}function Tr(b,M,I,z,J){var ee,Z,se,ce,Oe,Ee=Bi(b);if(Ee.length,!z&&Ee.length===1){if(Z=Ee[0]=Ee[0].slice(0),Z.length>2&&(se=Z[0]).type==="ID"&&M.nodeType===9&&!J&&g.relative[Z[1].type]){if(M=g.find.ID(se.matches[0].replace(gn,""),M,J)[0],!M)return I;b=b.slice(Z.shift().length)}for(ee=Ri.POS.test(b)?-1:Z.length-1;ee>=0&&(se=Z[ee],!g.relative[ce=se.type]);ee--)if((Oe=g.find[ce])&&(z=Oe(se.matches[0].replace(gn,""),jr.test(Z[0].type)&&M.parentNode||M,J))){if(Z.splice(ee,1),b=z.length&&Z.join(""),!b)return Ln.apply(I,An.call(z,0)),I;break}}return N(b,Ee)(z,M,J,I,jr.test(b)),I}Le.querySelectorAll&&function(){var b,M=Tr,I=/'|\\/g,z=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,J=[":focus"],ee=[":active"],Z=We.matchesSelector||We.mozMatchesSelector||We.webkitMatchesSelector||We.oMatchesSelector||We.msMatchesSelector;Yt(function(se){se.innerHTML="<select><option selected=''></option></select>",se.querySelectorAll("[selected]").length||J.push("\\["+it+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),se.querySelectorAll(":checked").length||J.push(":checked")}),Yt(function(se){se.innerHTML="<p test=''></p>",se.querySelectorAll("[test^='']").length&&J.push("[*^$]="+it+`*(?:""|'')`),se.innerHTML="<input type='hidden'/>",se.querySelectorAll(":enabled").length||J.push(":enabled",":disabled")}),J=new RegExp(J.join("|")),Tr=function(se,ce,Oe,Ee,Be){if(!Ee&&!Be&&!J.test(se)){var et,ot,jt=!0,ct=ie,Dt=ce,kt=ce.nodeType===9&&se;if(ce.nodeType===1&&ce.nodeName.toLowerCase()!=="object"){for(et=Bi(se),(jt=ce.getAttribute("id"))?ct=jt.replace(I,"\\$&"):ce.setAttribute("id",ct),ct="[id='"+ct+"'] ",ot=et.length;ot--;)et[ot]=ct+et[ot].join("");Dt=jr.test(se)&&ce.parentNode||ce,kt=et.join(",")}if(kt)try{return Ln.apply(Oe,An.call(Dt.querySelectorAll(kt),0)),Oe}catch{}finally{jt||ce.removeAttribute("id")}}return M(se,ce,Oe,Ee,Be)},Z&&(Yt(function(se){b=Z.call(se,"div");try{Z.call(se,"[test!='']:sizzle"),ee.push("!=",Sr)}catch{}}),ee=new RegExp(ee.join("|")),$e.matchesSelector=function(se,ce){if(ce=ce.replace(z,"='$1']"),!y(se)&&!ee.test(ce)&&!J.test(ce))try{var Oe=Z.call(se,ce);if(Oe||b||se.document&&se.document.nodeType!==11)return Oe}catch{}return $e(ce,null,null,[se]).length>0})}(),g.pseudos.nth=g.pseudos.eq;function Zs(){}g.filters=Zs.prototype=g.pseudos,g.setFilters=new Zs,$e.attr=l.attr,l.find=$e,l.expr=$e.selectors,l.expr[":"]=l.expr.pseudos,l.unique=$e.uniqueSort,l.text=$e.getText,l.isXMLDoc=$e.isXML,l.contains=$e.contains})(e);var V=/Until$/,ne=/^(?:parents|prev(?:Until|All))/,ue=/^.[^:#\[\.,]*$/,K=l.expr.match.needsContext,ae={children:!0,contents:!0,next:!0,prev:!0};l.fn.extend({find:function(o){var f,h,p,g,x,y,k=this;if(typeof o!="string")return l(o).filter(function(){for(f=0,h=k.length;f<h;f++)if(l.contains(k[f],this))return!0});for(y=this.pushStack("","find",o),f=0,h=this.length;f<h;f++)if(p=y.length,l.find(o,this[f],y),f>0){for(g=p;g<y.length;g++)for(x=0;x<p;x++)if(y[x]===y[g]){y.splice(g--,1);break}}return y},has:function(o){var f,h=l(o,this),p=h.length;return this.filter(function(){for(f=0;f<p;f++)if(l.contains(this,h[f]))return!0})},not:function(o){return this.pushStack(fe(this,o,!1),"not",o)},filter:function(o){return this.pushStack(fe(this,o,!0),"filter",o)},is:function(o){return!!o&&(typeof o=="string"?K.test(o)?l(o,this.context).index(this[0])>=0:l.filter(o,this).length>0:this.filter(o).length>0)},closest:function(o,f){for(var h,p=0,g=this.length,x=[],y=K.test(o)||typeof o!="string"?l(o,f||this.context):0;p<g;p++)for(h=this[p];h&&h.ownerDocument&&h!==f&&h.nodeType!==11;){if(y?y.index(h)>-1:l.find.matchesSelector(h,o)){x.push(h);break}h=h.parentNode}return x=x.length>1?l.unique(x):x,this.pushStack(x,"closest",o)},index:function(o){return o?typeof o=="string"?l.inArray(this[0],l(o)):l.inArray(o.jqx?o[0]:o,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(o,f){var h=typeof o=="string"?l(o,f):l.makeArray(o&&o.nodeType?[o]:o),p=l.merge(this.get(),h);return this.pushStack(G(h[0])||G(p[0])?p:l.unique(p))},addBack:function(o){return this.add(o==null?this.prevObject:this.prevObject.filter(o))}}),l.fn.andSelf=l.fn.addBack;function G(o){return!o||!o.parentNode||o.parentNode.nodeType===11}function ge(o,f){do o=o[f];while(o&&o.nodeType!==1);return o}l.each({parent:function(o){var f=o.parentNode;return f&&f.nodeType!==11?f:null},parents:function(o){return l.dir(o,"parentNode")},parentsUntil:function(o,f,h){return l.dir(o,"parentNode",h)},next:function(o){return ge(o,"nextSibling")},prev:function(o){return ge(o,"previousSibling")},nextAll:function(o){return l.dir(o,"nextSibling")},prevAll:function(o){return l.dir(o,"previousSibling")},nextUntil:function(o,f,h){return l.dir(o,"nextSibling",h)},prevUntil:function(o,f,h){return l.dir(o,"previousSibling",h)},siblings:function(o){return l.sibling((o.parentNode||{}).firstChild,o)},children:function(o){return l.sibling(o.firstChild)},contents:function(o){return l.nodeName(o,"iframe")?o.contentDocument||o.contentWindow.document:l.merge([],o.childNodes)}},function(o,f){l.fn[o]=function(h,p){var g=l.map(this,f,h);return V.test(o)||(p=h),p&&typeof p=="string"&&(g=l.filter(p,g)),g=this.length>1&&!ae[o]?l.unique(g):g,this.length>1&&ne.test(o)&&(g=g.reverse()),this.pushStack(g,o,d.call(arguments).join(","))}}),l.extend({filter:function(o,f,h){return h&&(o=":not("+o+")"),f.length===1?l.find.matchesSelector(f[0],o)?[f[0]]:[]:l.find.matches(o,f)},dir:function(o,f,h){for(var p=[],g=o[f];g&&g.nodeType!==9&&(h===t||g.nodeType!==1||!l(g).is(h));)g.nodeType===1&&p.push(g),g=g[f];return p},sibling:function(o,f){for(var h=[];o;o=o.nextSibling)o.nodeType===1&&o!==f&&h.push(o);return h}});function fe(o,f,h){if(f=f||0,l.isFunction(f))return l.grep(o,function(g,x){var y=!!f.call(g,x,g);return y===h});if(f.nodeType)return l.grep(o,function(g,x){return g===f===h});if(typeof f=="string"){var p=l.grep(o,function(g){return g.nodeType===1});if(ue.test(f))return l.filter(f,p,!h);f=l.filter(f,p)}return l.grep(o,function(g,x){return l.inArray(g,f)>=0===h})}function ye(o){var f=ke.split("|"),h=o.createDocumentFragment();if(h.createElement)for(;f.length;)h.createElement(f.pop());return h}var ke="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Ne=/ JQXLite\d+="(?:null|\d+)"/g,ze=/^\s+/,He=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Ue=/<([\w:]+)/,wt=/<tbody/i,Qt=/<|&#?\w+;/,Mi=/<(?:script|style|link)/i,dn=/<(?:script|object|embed|option|style)/i,Tn=new RegExp("<(?:"+ke+")[\\s/>]","i"),dt=/^(?:checkbox|radio)$/,bt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ci=/\/(java|ecma)script/i,Ml=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,St={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},Cs=ye(n),vr=Cs.appendChild(n.createElement("div"));St.optgroup=St.option,St.tbody=St.tfoot=St.colgroup=St.caption=St.thead,St.th=St.td,l.support.htmlSerialize||(St._default=[1,"X<div>","</div>"]),l.fn.extend({text:function(o){return l.access(this,function(f){return f===t?l.text(this):this.empty().append((this[0]&&this[0].ownerDocument||n).createTextNode(f))},null,o,arguments.length)},wrapAll:function(o){if(l.isFunction(o))return this.each(function(h){l(this).wrapAll(o.call(this,h))});if(this[0]){var f=l(o,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&f.insertBefore(this[0]),f.map(function(){for(var h=this;h.firstChild&&h.firstChild.nodeType===1;)h=h.firstChild;return h}).append(this)}return this},wrapInner:function(o){return l.isFunction(o)?this.each(function(f){l(this).wrapInner(o.call(this,f))}):this.each(function(){var f=l(this),h=f.contents();h.length?h.wrapAll(o):f.append(o)})},wrap:function(o){var f=l.isFunction(o);return this.each(function(h){l(this).wrapAll(f?o.call(this,h):o)})},unwrap:function(){return this.parent().each(function(){l.nodeName(this,"body")||l(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(o){(this.nodeType===1||this.nodeType===11)&&this.appendChild(o)})},prepend:function(){return this.domManip(arguments,!0,function(o){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(o,this.firstChild)})},before:function(){if(!G(this[0]))return this.domManip(arguments,!1,function(f){this.parentNode.insertBefore(f,this)});if(arguments.length){var o=l.clean(arguments);return this.pushStack(l.merge(o,this),"before",this.selector)}},after:function(){if(!G(this[0]))return this.domManip(arguments,!1,function(f){this.parentNode.insertBefore(f,this.nextSibling)});if(arguments.length){var o=l.clean(arguments);return this.pushStack(l.merge(this,o),"after",this.selector)}},remove:function(o,f){for(var h,p=0;(h=this[p])!=null;p++)(!o||l.filter(o,[h]).length)&&(!f&&h.nodeType===1&&(l.cleanData(h.getElementsByTagName("*")),l.cleanData([h])),h.parentNode&&h.parentNode.removeChild(h));return this},empty:function(){for(var o,f=0;(o=this[f])!=null;f++)for(o.nodeType===1&&l.cleanData(o.getElementsByTagName("*"));o.firstChild;)o.removeChild(o.firstChild);return this},clone:function(o,f){return o=o==null?!1:o,f=f==null?o:f,this.map(function(){return l.clone(this,o,f)})},html:function(o){return l.access(this,function(f){var h=this[0]||{},p=0,g=this.length;if(f===t)return h.nodeType===1?h.innerHTML.replace(Ne,""):t;if(typeof f=="string"&&!Mi.test(f)&&(l.support.htmlSerialize||!Tn.test(f))&&(l.support.leadingWhitespace||!ze.test(f))&&!St[(Ue.exec(f)||["",""])[1].toLowerCase()]){f=f.replace(He,"<$1></$2>");try{for(;p<g;p++)h=this[p]||{},h.nodeType===1&&(l.cleanData(h.getElementsByTagName("*")),h.innerHTML=f);h=0}catch{}}h&&this.empty().append(f)},null,o,arguments.length)},replaceWith:function(o){return G(this[0])?this.length?this.pushStack(l(l.isFunction(o)?o():o),"replaceWith",o):this:l.isFunction(o)?this.each(function(f){var h=l(this),p=h.html();h.replaceWith(o.call(this,f,p))}):(typeof o!="string"&&(o=l(o).detach()),this.each(function(){var f=this.nextSibling,h=this.parentNode;l(this).remove(),f?l(f).before(o):l(h).append(o)}))},detach:function(o){return this.remove(o,!0)},domManip:function(o,f,h){o=[].concat.apply([],o);var p,g,x,y,k=0,N=o[0],B=[],F=this.length;if(!l.support.checkClone&&F>1&&typeof N=="string"&&bt.test(N))return this.each(function(){l(this).domManip(o,f,h)});if(l.isFunction(N))return this.each(function(W){var te=l(this);o[0]=N.call(this,W,f?te.html():t),te.domManip(o,f,h)});if(this[0]){if(p=l.buildFragment(o,this,B),x=p.fragment,g=x.firstChild,x.childNodes.length===1&&(x=g),g)for(f=f&&l.nodeName(g,"tr"),y=p.cacheable||F-1;k<F;k++)h.call(f&&l.nodeName(this[k],"table")?Cl(this[k],"tbody"):this[k],k===y?x:l.clone(x,!0,!0));x=g=null,B.length&&l.each(B,function(W,te){te.src?l.ajax?l.ajax({url:te.src,type:"GET",dataType:"script",async:!1,global:!1,throws:!0}):l.error("no ajax"):l.globalEval((te.text||te.textContent||te.innerHTML||"").replace(Ml,"")),te.parentNode&&te.parentNode.removeChild(te)})}return this}});function Cl(o,f){return o.getElementsByTagName(f)[0]||o.appendChild(o.ownerDocument.createElement(f))}function Ts(o,f){if(!(f.nodeType!==1||!l.hasData(o))){var h,p,g,x=l._data(o),y=l._data(f,x),k=x.events;if(k){delete y.handle,y.events={};for(h in k)for(p=0,g=k[h].length;p<g;p++)l.event.add(f,h,k[h][p])}y.data&&(y.data=l.extend({},y.data))}}function Os(o,f){var h;f.nodeType===1&&(f.clearAttributes&&f.clearAttributes(),f.mergeAttributes&&f.mergeAttributes(o),h=f.nodeName.toLowerCase(),h==="object"?(f.parentNode&&(f.outerHTML=o.outerHTML),l.support.html5Clone&&o.innerHTML&&!l.trim(f.innerHTML)&&(f.innerHTML=o.innerHTML)):h==="input"&&dt.test(o.type)?(f.defaultChecked=f.checked=o.checked,f.value!==o.value&&(f.value=o.value)):h==="option"?f.selected=o.defaultSelected:h==="input"||h==="textarea"?f.defaultValue=o.defaultValue:h==="script"&&f.text!==o.text&&(f.text=o.text),f.removeAttribute(l.expando))}l.buildFragment=function(o,f,h){var p,g,x,y=o[0];return f=f||n,f=!f.nodeType&&f[0]||f,f=f.ownerDocument||f,o.length===1&&typeof y=="string"&&y.length<512&&f===n&&y.charAt(0)==="<"&&!dn.test(y)&&(l.support.checkClone||!bt.test(y))&&(l.support.html5Clone||!Tn.test(y))&&(g=!0,p=l.fragments[y],x=p!==t),p||(p=f.createDocumentFragment(),l.clean(o,f,p,h),g&&(l.fragments[y]=x&&p)),{fragment:p,cacheable:g}},l.fragments={},l.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(o,f){l.fn[o]=function(h){var p,g=0,x=[],y=l(h),k=y.length,N=this.length===1&&this[0].parentNode;if((N==null||N&&N.nodeType===11&&N.childNodes.length===1)&&k===1)return y[f](this[0]),this;for(;g<k;g++)p=(g>0?this.clone(!0):this).get(),l(y[g])[f](p),x=x.concat(p);return this.pushStack(x,o,y.selector)}});function Ti(o){return typeof o.getElementsByTagName!="undefined"?o.getElementsByTagName("*"):typeof o.querySelectorAll!="undefined"?o.querySelectorAll("*"):[]}function Es(o){dt.test(o.type)&&(o.defaultChecked=o.checked)}l.extend({clone:function(o,f,h){var p,g,x,y;if(l.support.html5Clone||l.isXMLDoc(o)||!Tn.test("<"+o.nodeName+">")?y=o.cloneNode(!0):(vr.innerHTML=o.outerHTML,vr.removeChild(y=vr.firstChild)),(!l.support.noCloneEvent||!l.support.noCloneChecked)&&(o.nodeType===1||o.nodeType===11)&&!l.isXMLDoc(o))for(Os(o,y),p=Ti(o),g=Ti(y),x=0;p[x];++x)g[x]&&Os(p[x],g[x]);if(f&&(Ts(o,y),h))for(p=Ti(o),g=Ti(y),x=0;p[x];++x)Ts(p[x],g[x]);return p=g=null,y},clean:function(o,f,h,p){var g,x,y,k,N,B,F,W,te,re,ie,ve=f===n&&Cs,Le=[];for((!f||typeof f.createDocumentFragment=="undefined")&&(f=n),g=0;(y=o[g])!=null;g++)if(typeof y=="number"&&(y+=""),!!y){if(typeof y=="string")if(!Qt.test(y))y=f.createTextNode(y);else{for(ve=ve||ye(f),F=f.createElement("div"),ve.appendChild(F),y=y.replace(He,"<$1></$2>"),k=(Ue.exec(y)||["",""])[1].toLowerCase(),N=St[k]||St._default,B=N[0],F.innerHTML=N[1]+y+N[2];B--;)F=F.lastChild;if(!l.support.tbody)for(W=wt.test(y),te=k==="table"&&!W?F.firstChild&&F.firstChild.childNodes:N[1]==="<table>"&&!W?F.childNodes:[],x=te.length-1;x>=0;--x)l.nodeName(te[x],"tbody")&&!te[x].childNodes.length&&te[x].parentNode.removeChild(te[x]);!l.support.leadingWhitespace&&ze.test(y)&&F.insertBefore(f.createTextNode(ze.exec(y)[0]),F.firstChild),y=F.childNodes,F.parentNode.removeChild(F)}y.nodeType?Le.push(y):l.merge(Le,y)}if(F&&(y=F=ve=null),!l.support.appendChecked)for(g=0;(y=Le[g])!=null;g++)l.nodeName(y,"input")?Es(y):typeof y.getElementsByTagName!="undefined"&&l.grep(y.getElementsByTagName("input"),Es);if(h)for(re=function(We){if(!We.type||Ci.test(We.type))return p?p.push(We.parentNode?We.parentNode.removeChild(We):We):h.appendChild(We)},g=0;(y=Le[g])!=null;g++)l.nodeName(y,"script")&&re(y)||(h.appendChild(y),typeof y.getElementsByTagName!="undefined"&&(ie=l.grep(l.merge([],y.getElementsByTagName("script")),re),Le.splice.apply(Le,[g+1,0].concat(ie)),g+=ie.length));return Le},cleanData:function(o,f){for(var h,p,g,x,y=0,k=l.expando,N=l.cache,B=l.support.deleteExpando,F=l.event.special;(g=o[y])!=null;y++)if((f||l.acceptData(g))&&(p=g[k],h=p&&N[p],h)){if(h.events)for(x in h.events)F[x]?l.event.remove(g,x):l.removeEvent(g,x,h.handle);N[p]&&(delete N[p],B?delete g[k]:g.removeAttribute?g.removeAttribute(k):g[k]=null,l.deletedIds.push(p))}}}),function(){var o,f;l.uaMatch=function(h){h=h.toLowerCase();var p=/(chrome)[ \/]([\w.]+)/.exec(h)||/(webkit)[ \/]([\w.]+)/.exec(h)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(h)||/(msie) ([\w.]+)/.exec(h)||h.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(h)||[];return{browser:p[1]||"",version:p[2]||"0"}},o=l.uaMatch(s.userAgent),f={},o.browser&&(f[o.browser]=!0,f.version=o.version),f.chrome?f.webkit=!0:f.webkit&&(f.safari=!0),l.browser=f,l.sub=function(){function h(g,x){return new h.fn.init(g,x)}l.extend(!0,h,this),h.superclass=this,h.fn=h.prototype=this(),h.fn.constructor=h,h.sub=this.sub,h.fn.init=function(x,y){return y&&y instanceof l&&!(y instanceof h)&&(y=h(y)),l.fn.init.call(this,x,y,p)},h.fn.init.prototype=h.fn;var p=h(n);return h}}();var gt,On,En,_r=/alpha\([^)]*\)/i,Tl=/opacity=([^)]*)/,Ol=/^(top|right|bottom|left)$/,El=/^(none|table(?!-c[ea]).+)/,Ps=/^margin/,Pl=new RegExp("^("+w+")(.*)$","i"),Oi=new RegExp("^("+w+")(?!px)[a-z%]+$","i"),Ll=new RegExp("^([-+])=("+w+")","i"),xr={BODY:"block"},Al={position:"absolute",visibility:"hidden",display:"block"},Ls={letterSpacing:0,fontWeight:400},pn=["Top","Right","Bottom","Left"],As=["Webkit","O","Moz","ms"],Nl=l.fn.toggle;function Ns(o,f){if(f in o)return f;for(var h=f.charAt(0).toUpperCase()+f.slice(1),p=f,g=As.length;g--;)if(f=As[g]+h,f in o)return f;return p}function Ei(o,f){return o=f||o,l.css(o,"display")==="none"||!l.contains(o.ownerDocument,o)}function Is(o,f){for(var h,p,g=[],x=0,y=o.length;x<y;x++)h=o[x],h.style&&(g[x]=l._data(h,"olddisplay"),f?(!g[x]&&h.style.display==="none"&&(h.style.display=""),h.style.display===""&&Ei(h)&&(g[x]=l._data(h,"olddisplay",Ds(h.nodeName)))):(p=gt(h,"display"),!g[x]&&p!=="none"&&l._data(h,"olddisplay",p)));for(x=0;x<y;x++)h=o[x],!!h.style&&(!f||h.style.display==="none"||h.style.display==="")&&(h.style.display=f?g[x]||"":"none");return o}l.fn.extend({css:function(o,f){return l.access(this,function(h,p,g){return g!==t?l.style(h,p,g):l.css(h,p)},o,f,arguments.length>1)},show:function(){return Is(this,!0)},hide:function(){return Is(this)},toggle:function(o,f){var h=typeof o=="boolean";return l.isFunction(o)&&l.isFunction(f)?Nl.apply(this,arguments):this.each(function(){(h?o:Ei(this))?l(this).show():l(this).hide()})}}),l.extend({cssHooks:{opacity:{get:function(o,f){if(f){var h=gt(o,"opacity");return h===""?"1":h}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:l.support.cssFloat?"cssFloat":"styleFloat"},style:function(o,f,h,p){if(!(!o||o.nodeType===3||o.nodeType===8||!o.style)){var g,x,y,k=l.camelCase(f),N=o.style;if(f=l.cssProps[k]||(l.cssProps[k]=Ns(N,k)),y=l.cssHooks[f]||l.cssHooks[k],h!==t){if(x=typeof h,x==="string"&&(g=Ll.exec(h))&&(h=(g[1]+1)*g[2]+parseFloat(l.css(o,f)),x="number"),h==null||x==="number"&&isNaN(h))return;if(x==="number"&&!l.cssNumber[k]&&(h+="px"),!y||!("set"in y)||(h=y.set(o,h,p))!==t)try{N[f]=h}catch{}}else return y&&"get"in y&&(g=y.get(o,!1,p))!==t?g:N[f]}},css:function(o,f,h,p){var g,x,y,k=l.camelCase(f);return f=l.cssProps[k]||(l.cssProps[k]=Ns(o.style,k)),y=l.cssHooks[f]||l.cssHooks[k],y&&"get"in y&&(g=y.get(o,!0,p)),g===t&&(g=gt(o,f)),g==="normal"&&f in Ls&&(g=Ls[f]),h||p!==t?(x=parseFloat(g),h||l.isNumeric(x)?x||0:g):g},swap:function(o,f,h){var p,g,x={};for(g in f)x[g]=o.style[g],o.style[g]=f[g];p=h.call(o);for(g in f)o.style[g]=x[g];return p}}),e.getComputedStyle?gt=function(o,f){var h,p,g,x,y=e.getComputedStyle(o,null),k=o.style;return y&&(h=y.getPropertyValue(f)||y[f],h===""&&!l.contains(o.ownerDocument,o)&&(h=l.style(o,f)),Oi.test(h)&&Ps.test(f)&&(p=k.width,g=k.minWidth,x=k.maxWidth,k.minWidth=k.maxWidth=k.width=h,h=y.width,k.width=p,k.minWidth=g,k.maxWidth=x)),h}:n.documentElement.currentStyle&&(gt=function(o,f){var h,p,g=o.currentStyle&&o.currentStyle[f],x=o.style;return g==null&&x&&x[f]&&(g=x[f]),Oi.test(g)&&!Ol.test(f)&&(h=x.left,p=o.runtimeStyle&&o.runtimeStyle.left,p&&(o.runtimeStyle.left=o.currentStyle.left),x.left=f==="fontSize"?"1em":g,g=x.pixelLeft+"px",x.left=h,p&&(o.runtimeStyle.left=p)),g===""?"auto":g});function Rs(o,f,h){var p=Pl.exec(f);return p?Math.max(0,p[1]-(h||0))+(p[2]||"px"):f}function Fs(o,f,h,p){for(var g=h===(p?"border":"content")?4:f==="width"?1:0,x=0;g<4;g+=2)h==="margin"&&(x+=l.css(o,h+pn[g],!0)),p?(h==="content"&&(x-=parseFloat(gt(o,"padding"+pn[g]))||0),h!=="margin"&&(x-=parseFloat(gt(o,"border"+pn[g]+"Width"))||0)):(x+=parseFloat(gt(o,"padding"+pn[g]))||0,h!=="padding"&&(x+=parseFloat(gt(o,"border"+pn[g]+"Width"))||0));return x}function Bs(o,f,h){var p=f==="width"?o.offsetWidth:o.offsetHeight,g=!0,x=l.support.boxSizing&&l.css(o,"boxSizing")==="border-box";if(p<=0||p==null){if(p=gt(o,f),(p<0||p==null)&&(p=o.style[f]),Oi.test(p))return p;g=x&&(l.support.boxSizingReliable||p===o.style[f]),p=parseFloat(p)||0}return p+Fs(o,f,h||(x?"border":"content"),g)+"px"}function Ds(o){if(xr[o])return xr[o];var f=l("<"+o+">").appendTo(n.body),h=f.css("display");return f.remove(),(h==="none"||h==="")&&(On=n.body.appendChild(On||l.extend(n.createElement("iframe"),{frameBorder:0,width:0,height:0})),(!En||!On.createElement)&&(En=(On.contentWindow||On.contentDocument).document,En.write("<!doctype html><html><body>"),En.close()),f=En.body.appendChild(En.createElement(o)),h=gt(f,"display"),n.body.removeChild(On)),xr[o]=h,h}l.each(["height","width"],function(o,f){l.cssHooks[f]={get:function(h,p,g){if(p)return h.offsetWidth===0&&El.test(gt(h,"display"))?l.swap(h,Al,function(){return Bs(h,f,g)}):Bs(h,f,g)},set:function(h,p,g){return Rs(h,p,g?Fs(h,f,g,l.support.boxSizing&&l.css(h,"boxSizing")==="border-box"):0)}}}),l.support.opacity||(l.cssHooks.opacity={get:function(o,f){return Tl.test((f&&o.currentStyle?o.currentStyle.filter:o.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":f?"1":""},set:function(o,f){var h=o.style,p=o.currentStyle,g=l.isNumeric(f)?"alpha(opacity="+f*100+")":"",x=p&&p.filter||h.filter||"";h.zoom=1,!(f>=1&&l.trim(x.replace(_r,""))===""&&h.removeAttribute&&(h.removeAttribute("filter"),p&&!p.filter))&&(h.filter=_r.test(x)?x.replace(_r,g):x+" "+g)}}),l(function(){l.support.reliableMarginRight||(l.cssHooks.marginRight={get:function(o,f){return l.swap(o,{display:"inline-block"},function(){if(f)return gt(o,"marginRight")})}}),!l.support.pixelPosition&&l.fn.position&&l.each(["top","left"],function(o,f){l.cssHooks[f]={get:function(h,p){if(p){var g=gt(h,f);return Oi.test(g)?l(h).position()[f]+"px":g}}}})}),l.expr&&l.expr.filters&&(l.expr.filters.hidden=function(o){return o.offsetWidth===0&&o.offsetHeight===0||!l.support.reliableHiddenOffsets&&(o.style&&o.style.display||gt(o,"display"))==="none"},l.expr.filters.visible=function(o){return!l.expr.filters.hidden(o)}),l.each({margin:"",padding:"",border:"Width"},function(o,f){l.cssHooks[o+f]={expand:function(h){var p,g=typeof h=="string"?h.split(" "):[h],x={};for(p=0;p<4;p++)x[o+pn[p]+f]=g[p]||g[p-2]||g[0];return x}},Ps.test(o)||(l.cssHooks[o+f].set=Rs)});var Il=/%20/g,Rl=/\[\]$/,zs=/\r?\n/g,Fl=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Bl=/^(?:select|textarea)/i;l.fn.extend({serialize:function(){return l.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?l.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Bl.test(this.nodeName)||Fl.test(this.type))}).map(function(o,f){var h=l(this).val();return h==null?null:l.isArray(h)?l.map(h,function(p,g){return{name:f.name,value:p.replace(zs,`\r
  11. `)}}):{name:f.name,value:h.replace(zs,`\r
  12. `)}}).get()}}),l.param=function(o,f){var h,p=[],g=function(x,y){y=l.isFunction(y)?y():y==null?"":y,p[p.length]=encodeURIComponent(x)+"="+encodeURIComponent(y)};if(f===t&&(f=l.ajaxSettings&&l.ajaxSettings.traditional),l.isArray(o)||o.jqx&&!l.isPlainObject(o))l.each(o,function(){g(this.name,this.value)});else for(h in o)yr(h,o[h],f,g);return p.join("&").replace(Il,"+")};function yr(o,f,h,p){var g;if(l.isArray(f))l.each(f,function(x,y){h||Rl.test(o)?p(o,y):yr(o+"["+(typeof y=="object"?x:"")+"]",y,h,p)});else if(!h&&l.type(f)==="object")for(g in f)yr(o+"["+g+"]",f[g],h,p);else p(o,f)}l.support.ajax&&l.ajaxTransport(function(o){if(!o.crossDomain||l.support.cors){var f;return{send:function(h,p){var g,x,y=o.xhr();if(o.username?y.open(o.type,o.url,o.async,o.username,o.password):y.open(o.type,o.url,o.async),o.xhrFields)for(x in o.xhrFields)y[x]=o.xhrFields[x];o.mimeType&&y.overrideMimeType&&y.overrideMimeType(o.mimeType),!o.crossDomain&&!h["X-Requested-With"]&&(h["X-Requested-With"]="XMLHttpRequest");try{for(x in h)y.setRequestHeader(x,h[x])}catch{}y.send(o.hasContent&&o.data||null),f=function(k,N){var B,F,W,te,re;try{if(f&&(N||y.readyState===4))if(f=t,g&&(y.onreadystatechange=l.noop,xhrOnUnloadAbort&&delete xhrCallbacks[g]),N)y.readyState!==4&&y.abort();else{B=y.status,W=y.getAllResponseHeaders(),te={},re=y.responseXML,re&&re.documentElement&&(te.xml=re);try{te.text=y.responseText}catch{}try{F=y.statusText}catch{F=""}!B&&o.isLocal&&!o.crossDomain?B=te.text?200:404:B===1223&&(B=204)}}catch(ie){N||p(-1,ie)}te&&p(B,F,te,W)},o.async?y.readyState===4?setTimeout(f,0):(g=++xhrId,xhrOnUnloadAbort&&(xhrCallbacks||(xhrCallbacks={},l(e).unload(xhrOnUnloadAbort)),xhrCallbacks[g]=f),y.onreadystatechange=f):f()},abort:function(){f&&f(0,1)}}}});var Pn,Pi,Dl=/^(?:toggle|show|hide)$/,zl=new RegExp("^(?:([-+])=|)("+w+")([a-z%]*)$","i"),Vl=/queueHooks$/,Li=[Xl],Yn={"*":[function(o,f){var h,p,g=this.createTween(o,f),x=zl.exec(f),y=g.cur(),k=+y||0,N=1,B=20;if(x){if(h=+x[2],p=x[3]||(l.cssNumber[o]?"":"px"),p!=="px"&&k){k=l.css(g.elem,o,!0)||h||1;do N=N||".5",k=k/N,l.style(g.elem,o,k+p);while(N!==(N=g.cur()/y)&&N!==1&&--B)}g.unit=p,g.start=k,g.end=x[1]?k+(x[1]+1)*h:h}return g}]};function Vs(){return setTimeout(function(){Pn=t},0),Pn=l.now()}function Hl(o,f){l.each(f,function(h,p){for(var g=(Yn[h]||[]).concat(Yn["*"]),x=0,y=g.length;x<y;x++)if(g[x].call(o,h,p))return})}function Hs(o,f,h){var p,g=0,x=Li.length,y=l.Deferred().always(function(){delete k.elem}),k=function(){for(var F=Pn||Vs(),W=Math.max(0,N.startTime+N.duration-F),te=W/N.duration||0,re=1-te,ie=0,ve=N.tweens.length;ie<ve;ie++)N.tweens[ie].run(re);return y.notifyWith(o,[N,re,W]),re<1&&ve?W:(y.resolveWith(o,[N]),!1)},N=y.promise({elem:o,props:l.extend({},f),opts:l.extend(!0,{specialEasing:{}},h),originalProperties:f,originalOptions:h,startTime:Pn||Vs(),duration:h.duration,tweens:[],createTween:function(F,W,te){var re=l.Tween(o,N.opts,F,W,N.opts.specialEasing[F]||N.opts.easing);return N.tweens.push(re),re},stop:function(F){for(var W=0,te=F?N.tweens.length:0;W<te;W++)N.tweens[W].run(1);return F?y.resolveWith(o,[N,F]):y.rejectWith(o,[N,F]),this}}),B=N.props;for(Wl(B,N.opts.specialEasing);g<x;g++)if(p=Li[g].call(N,o,B,N.opts),p)return p;return Hl(N,B),l.isFunction(N.opts.start)&&N.opts.start.call(o,N),l.fx.timer(l.extend(k,{anim:N,queue:N.opts.queue,elem:o})),N.progress(N.opts.progress).done(N.opts.done,N.opts.complete).fail(N.opts.fail).always(N.opts.always)}function Wl(o,f){var h,p,g,x,y;for(h in o)if(p=l.camelCase(h),g=f[p],x=o[h],l.isArray(x)&&(g=x[1],x=o[h]=x[0]),h!==p&&(o[p]=x,delete o[h]),y=l.cssHooks[p],y&&"expand"in y){x=y.expand(x),delete o[p];for(h in x)h in o||(o[h]=x[h],f[h]=g)}else f[p]=g}l.Animation=l.extend(Hs,{tweener:function(o,f){l.isFunction(o)?(f=o,o=["*"]):o=o.split(" ");for(var h,p=0,g=o.length;p<g;p++)h=o[p],Yn[h]=Yn[h]||[],Yn[h].unshift(f)},prefilter:function(o,f){f?Li.unshift(o):Li.push(o)}});function Xl(o,f,h){var p,g,x,y,k,N,B,F,W,te=this,re=o.style,ie={},ve=[],Le=o.nodeType&&Ei(o);h.queue||(F=l._queueHooks(o,"fx"),F.unqueued==null&&(F.unqueued=0,W=F.empty.fire,F.empty.fire=function(){F.unqueued||W()}),F.unqueued++,te.always(function(){te.always(function(){F.unqueued--,l.queue(o,"fx").length||F.empty.fire()})})),o.nodeType===1&&("height"in f||"width"in f)&&(h.overflow=[re.overflow,re.overflowX,re.overflowY],l.css(o,"display")==="inline"&&l.css(o,"float")==="none"&&(!l.support.inlineBlockNeedsLayout||Ds(o.nodeName)==="inline"?re.display="inline-block":re.zoom=1)),h.overflow&&(re.overflow="hidden",l.support.shrinkWrapBlocks||te.done(function(){re.overflow=h.overflow[0],re.overflowX=h.overflow[1],re.overflowY=h.overflow[2]}));for(p in f)if(x=f[p],Dl.exec(x)){if(delete f[p],N=N||x==="toggle",x===(Le?"hide":"show"))continue;ve.push(p)}if(y=ve.length,y)for(k=l._data(o,"fxshow")||l._data(o,"fxshow",{}),("hidden"in k)&&(Le=k.hidden),N&&(k.hidden=!Le),Le?l(o).show():te.done(function(){l(o).hide()}),te.done(function(){var We;l.removeData(o,"fxshow",!0);for(We in ie)l.style(o,We,ie[We])}),p=0;p<y;p++)g=ve[p],B=te.createTween(g,Le?k[g]:0),ie[g]=k[g]||l.style(o,g),g in k||(k[g]=B.start,Le&&(B.end=B.start,B.start=g==="width"||g==="height"?1:0))}function xt(o,f,h,p,g){return new xt.prototype.init(o,f,h,p,g)}l.Tween=xt,xt.prototype={constructor:xt,init:function(o,f,h,p,g,x){this.elem=o,this.prop=h,this.easing=g||"swing",this.options=f,this.start=this.now=this.cur(),this.end=p,this.unit=x||(l.cssNumber[h]?"":"px")},cur:function(){var o=xt.propHooks[this.prop];return o&&o.get?o.get(this):xt.propHooks._default.get(this)},run:function(o){var f,h=xt.propHooks[this.prop];return this.options.duration?this.pos=f=l.easing[this.easing](o,this.options.duration*o,0,1,this.options.duration):this.pos=f=o,this.now=(this.end-this.start)*f+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),h&&h.set?h.set(this):xt.propHooks._default.set(this),this}},xt.prototype.init.prototype=xt.prototype,xt.propHooks={_default:{get:function(o){var f;return o.elem[o.prop]!=null&&(!o.elem.style||o.elem.style[o.prop]==null)?o.elem[o.prop]:(f=l.css(o.elem,o.prop,!1,""),!f||f==="auto"?0:f)},set:function(o){l.fx.step[o.prop]?l.fx.step[o.prop](o):o.elem.style&&(o.elem.style[l.cssProps[o.prop]]!=null||l.cssHooks[o.prop])?l.style(o.elem,o.prop,o.now+o.unit):o.elem[o.prop]=o.now}}},xt.propHooks.scrollTop=xt.propHooks.scrollLeft={set:function(o){o.elem.nodeType&&o.elem.parentNode&&(o.elem[o.prop]=o.now)}},l.each(["toggle","show","hide"],function(o,f){var h=l.fn[f];l.fn[f]=function(p,g,x){return p==null||typeof p=="boolean"||!o&&l.isFunction(p)&&l.isFunction(g)?h.apply(this,arguments):this.animate(Ai(f,!0),p,g,x)}}),l.fn.extend({fadeTo:function(o,f,h,p){return this.filter(Ei).css("opacity",0).show().end().animate({opacity:f},o,h,p)},animate:function(o,f,h,p){var g=l.isEmptyObject(o),x=l.speed(f,h,p),y=function(){var k=Hs(this,l.extend({},o),x);g&&k.stop(!0)};return g||x.queue===!1?this.each(y):this.queue(x.queue,y)},stop:function(o,f,h){var p=function(g){var x=g.stop;delete g.stop,x(h)};return typeof o!="string"&&(h=f,f=o,o=t),f&&o!==!1&&this.queue(o||"fx",[]),this.each(function(){var g=!0,x=o!=null&&o+"queueHooks",y=l.timers,k=l._data(this);if(x)k[x]&&k[x].stop&&p(k[x]);else for(x in k)k[x]&&k[x].stop&&Vl.test(x)&&p(k[x]);for(x=y.length;x--;)y[x].elem===this&&(o==null||y[x].queue===o)&&(y[x].anim.stop(h),g=!1,y.splice(x,1));(g||!h)&&l.dequeue(this,o)})}});function Ai(o,f){var h,p={height:o},g=0;for(f=f?1:0;g<4;g+=2-f)h=pn[g],p["margin"+h]=p["padding"+h]=o;return f&&(p.opacity=p.width=o),p}l.each({slideDown:Ai("show"),slideUp:Ai("hide"),slideToggle:Ai("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(o,f){l.fn[o]=function(h,p,g){return this.animate(f,h,p,g)}}),l.speed=function(o,f,h){var p=o&&typeof o=="object"?l.extend({},o):{complete:h||!h&&f||l.isFunction(o)&&o,duration:o,easing:h&&f||f&&!l.isFunction(f)&&f};return p.duration=l.fx.off?0:typeof p.duration=="number"?p.duration:p.duration in l.fx.speeds?l.fx.speeds[p.duration]:l.fx.speeds._default,(p.queue==null||p.queue===!0)&&(p.queue="fx"),p.old=p.complete,p.complete=function(){l.isFunction(p.old)&&p.old.call(this),p.queue&&l.dequeue(this,p.queue)},p},l.easing={linear:function(o){return o},swing:function(o){return .5-Math.cos(o*Math.PI)/2}},l.timers=[],l.fx=xt.prototype.init,l.fx.tick=function(){var o,f=l.timers,h=0;for(Pn=l.now();h<f.length;h++)o=f[h],!o()&&f[h]===o&&f.splice(h--,1);f.length||l.fx.stop(),Pn=t},l.fx.timer=function(o){o()&&l.timers.push(o)&&!Pi&&(Pi=setInterval(l.fx.tick,l.fx.interval))},l.fx.interval=13,l.fx.stop=function(){clearInterval(Pi),Pi=null},l.fx.speeds={slow:600,fast:200,_default:400},l.fx.step={},l.expr&&l.expr.filters&&(l.expr.filters.animated=function(o){return l.grep(l.timers,function(f){return o===f.elem}).length});var Ws=/^(?:body|html)$/i;l.fn.offset=function(o){if(arguments.length)return o===t?this:this.each(function(W){l.offset.setOffset(this,o,W)});var f,h,p,g,x,y,k,N={top:0,left:0},B=this[0],F=B&&B.ownerDocument;if(!!F)return(h=F.body)===B?l.offset.bodyOffset(B):(f=F.documentElement,l.contains(f,B)?(typeof B.getBoundingClientRect!="undefined"&&(N=B.getBoundingClientRect()),p=Xs(F),g=f.clientTop||h.clientTop||0,x=f.clientLeft||h.clientLeft||0,y=p.pageYOffset||f.scrollTop,k=p.pageXOffset||f.scrollLeft,{top:N.top+y-g,left:N.left+k-x}):N)},l.offset={bodyOffset:function(o){var f=o.offsetTop,h=o.offsetLeft;return l.support.doesNotIncludeMarginInBodyOffset&&(f+=parseFloat(l.css(o,"marginTop"))||0,h+=parseFloat(l.css(o,"marginLeft"))||0),{top:f,left:h}},setOffset:function(o,f,h){var p=l.css(o,"position");p==="static"&&(o.style.position="relative");var g=l(o),x=g.offset(),y=l.css(o,"top"),k=l.css(o,"left"),N=(p==="absolute"||p==="fixed")&&l.inArray("auto",[y,k])>-1,B={},F={},W,te;N?(F=g.position(),W=F.top,te=F.left):(W=parseFloat(y)||0,te=parseFloat(k)||0),l.isFunction(f)&&(f=f.call(o,h,x)),f.top!=null&&(B.top=f.top-x.top+W),f.left!=null&&(B.left=f.left-x.left+te),"using"in f?f.using.call(o,B):g.css(B)}},l.fn.extend({isRendered:function(){var o=this[0];return!(o.parentNode==null||o.offsetWidth===0||o.offsetHeight===0)},getSizeFromStyle:function(){var o=null,f=null,h=this[0],p;return h.style.width&&(o=h.style.width),h.style.height&&(f=h.style.height),e.getComputedStyle?p=getComputedStyle(h,null):p=h.currentStyle,p&&(p.width&&(o=p.width),p.height&&(f=p.height)),o==="0px"&&(o=0),f==="0px"&&(f=0),o===null&&(o=0),f===null&&(f=0),{width:o,height:f}},initAnimate:function(){},sizeStyleChanged:function(o){var f=this,h,p=function(g){var x=h;g&&g[0]&&g[0].attributeName==="style"&&g[0].type==="attributes"&&(x.element.offsetWidth!==x.offsetWidth||x.element.offsetHeight!==x.offsetHeight)&&(x.offsetWidth=x.element.offsetWidth,x.offsetHeight=x.element.offsetHeight,f.isRendered()&&x.callback())};h={element:f[0],offsetWidth:f[0].offsetWidth,offsetHeight:f[0].offsetHeight,callback:o};try{f.elementStyleObserver||(f.elementStyleObserver=new MutationObserver(p),f.elementStyleObserver.observe(f[0],{attributes:!0,childList:!1,characterData:!1}))}catch{}},position:function(){if(!!this[0]){var o=this[0],f=this.offsetParent(),h=this.offset(),p=Ws.test(f[0].nodeName)?{top:0,left:0}:f.offset();return h.top-=parseFloat(l.css(o,"marginTop"))||0,h.left-=parseFloat(l.css(o,"marginLeft"))||0,p.top+=parseFloat(l.css(f[0],"borderTopWidth"))||0,p.left+=parseFloat(l.css(f[0],"borderLeftWidth"))||0,{top:h.top-p.top,left:h.left-p.left}}},offsetParent:function(){return this.map(function(){for(var o=this.offsetParent||n.body;o&&!Ws.test(o.nodeName)&&l.css(o,"position")==="static";)o=o.offsetParent;return o||n.body})}}),l.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(o,f){var h=/Y/.test(f);l.fn[o]=function(p){return l.access(this,function(g,x,y){var k=Xs(g);if(y===t)return k?f in k?k[f]:k.document.documentElement[x]:g[x];k?k.scrollTo(h?l(k).scrollLeft():y,h?y:l(k).scrollTop()):g[x]=y},o,p,arguments.length,null)}});function Xs(o){return l.isWindow(o)?o:o.nodeType===9?o.defaultView||o.parentWindow:!1}l.each({Height:"height",Width:"width"},function(o,f){l.each({padding:"inner"+o,content:f,"":"outer"+o},function(h,p){l.fn[p]=function(g,x){var y=arguments.length&&(h||typeof g!="boolean"),k=h||(g===!0||x===!0?"margin":"border");return l.access(this,function(N,B,F){var W;return l.isWindow(N)?N.document.documentElement["client"+o]:N.nodeType===9?(W=N.documentElement,Math.max(N.body["scroll"+o],W["scroll"+o],N.body["offset"+o],W["offset"+o],W["client"+o])):F===t?l.css(N,B,F,k):l.style(N,B,F,k)},f,y?g:t,y,null)}})}),e.JQXLite=e.jqxHelper=l,typeof define=="function"&&define.amd&&define.amd.JQXLite&&define("jqx",[],function(){return l})}(window);(function(e){if(e.jqxCore){e.$$=e.minQuery=e.JQXLite,e.$||(e.$=e.minQuery);return}if(e.jQuery){e.minQuery=e.JQXLite=e.jQuery;return}e.$?e.minQuery=e.JQXLite=e.$:e.$=e.minQuery=e.JQXLite})(window);JQXLite.generateID=function(){var e=function(){return((1+Math.random())*65536|0).toString(16).substring(1)},t="";do t="jqx"+e()+e()+e();while($("#"+t).length>0);return t};var kl=window.jqxBaseFramework=window.minQuery||window.jQuery;(function(e){e.jqx=e.jqx||{},window.jqx=e.jqx;var t={createInstance:function(i,r,n){if(r=="jqxDataAdapter"){var s=n[0],a=n[1]||{};return new e.jqx.dataAdapter(s,a)}return e(i)[r](n||{}),e(i)[r]("getInstance")}};window.jqwidgets=t,e.jqx.define=function(i,r,n){i[r]=function(){this.baseType&&(this.base=new i[this.baseType],this.base.defineInstance()),this.defineInstance(),this.metaInfo()},i[r].prototype.defineInstance=function(){},i[r].prototype.metaInfo=function(){},i[r].prototype.base=null,i[r].prototype.baseType=void 0,n&&i[n]&&(i[r].prototype.baseType=n)},e.jqx.invoke=function(i,r){if(r.length!=0){for(var n=typeof r==Array||r.length>0?r[0]:r,s=typeof r==Array||r.length>1?Array.prototype.slice.call(r,1):e({}).toArray();i[n]==null&&i.base!=null;){if(i[n]!=null&&e.isFunction(i[n]))return i[n].apply(i,s);if(typeof n=="string"){var a=n.toLowerCase();if(i[a]!=null&&e.isFunction(i[a]))return i[a].apply(i,s)}i=i.base}if(i[n]!=null&&e.isFunction(i[n]))return i[n].apply(i,s);if(typeof n=="string"){var a=n.toLowerCase();if(i[a]!=null&&e.isFunction(i[a]))return i[a].apply(i,s)}}},e.jqx.getByPriority=function(i){for(var r=void 0,n=0;n<i.length&&r==null;n++)r==null&&i[n]!=null&&(r=i[n]);return r},e.jqx.hasProperty=function(i,r){if(typeof r=="object")for(var n in r){for(var s=i;s;){if(s.hasOwnProperty(n)||s.hasOwnProperty(n.toLowerCase()))return!0;s=s.base}return!1}else for(;i;){if(i.hasOwnProperty(r)||i.hasOwnProperty(r.toLowerCase()))return!0;i=i.base}return!1},e.jqx.hasFunction=function(i,r){if(r.length==0||i==null)return!1;var n=typeof r==Array||r.length>0?r[0]:r;for((typeof r==Array||r.length>1)&&Array.prototype.slice.call(r,1);i[n]==null&&i.base!=null;){if(i[n]&&e.isFunction(i[n]))return!0;if(typeof n=="string"){var s=n.toLowerCase();if(i[s]&&e.isFunction(i[s]))return!0}i=i.base}if(i[n]&&e.isFunction(i[n]))return!0;if(typeof n=="string"){var s=n.toLowerCase();if(i[s]&&e.isFunction(i[s]))return!0}return!1},e.jqx.isPropertySetter=function(i,r){return r.length==1&&typeof r[0]=="object"||r.length==2&&typeof r[0]=="string"&&!e.jqx.hasFunction(i,r)},e.jqx.validatePropertySetter=function(i,r,n){if(!e.jqx.propertySetterValidation)return!0;if(r.length==1&&typeof r[0]=="object"){for(var s in r[0]){for(var a=i;!a.hasOwnProperty(s)&&a.base;)a=a.base;if(!a||!a.hasOwnProperty(s)){if(!n){var u=a.hasOwnProperty(s.toString().toLowerCase());if(u)return!0;throw"Invalid property: "+s}return!1}}return!0}if(r.length!=2){if(!n)throw"Invalid property: "+r.length>=0?r[0]:"";return!1}for(;!i.hasOwnProperty(r[0])&&i.base;)i=i.base;if(!i||!i.hasOwnProperty(r[0])){if(!n)throw"Invalid property: "+r[0];return!1}return!0},Object.keys||(Object.keys=function(){var i=Object.prototype.hasOwnProperty,r=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=n.length;return function(a){if(typeof a!="object"&&(typeof a!="function"||a===null))throw new TypeError("Object.keys called on non-object");var u=[],c,d;for(c in a)i.call(a,c)&&u.push(c);if(r)for(d=0;d<s;d++)i.call(a,n[d])&&u.push(n[d]);return u}}()),e.jqx.set=function(i,r){var n=0;if(r.length==1&&typeof r[0]=="object"){if(i.isInitialized&&Object.keys&&Object.keys(r[0]).length>1){var s=i.base?i.base.element:i.element,a=e.data(s,i.widgetName).initArgs;if(a&&JSON&&JSON.stringify&&r[0]&&a[0])try{if(JSON.stringify(r[0])==JSON.stringify(a[0])){var u=!0;if(e.each(r[0],function(m,v){if(i[m]!=v)return u=!1,!1}),u)return}}catch{}i.batchUpdate=r[0];var c={},d={};e.each(r[0],function(m,v){for(var _=i;!_.hasOwnProperty(m)&&_.base!=null;)_=_.base;_.hasOwnProperty(m)?i[m]!=v&&(c[m]=i[m],d[m]=v,n++):_.hasOwnProperty(m.toLowerCase())&&i[m.toLowerCase()]!=v&&(c[m.toLowerCase()]=i[m.toLowerCase()],d[m.toLowerCase()]=v,n++)}),n<2&&(i.batchUpdate=null)}e.each(r[0],function(m,v){for(var _=i;!_.hasOwnProperty(m)&&_.base!=null;)_=_.base;if(_.hasOwnProperty(m))e.jqx.setvalueraiseevent(_,m,v);else if(_.hasOwnProperty(m.toLowerCase()))e.jqx.setvalueraiseevent(_,m.toLowerCase(),v);else if(e.jqx.propertySetterValidation)throw"jqxCore: invalid property '"+m+"'"}),i.batchUpdate!=null&&(i.batchUpdate=null,i.propertiesChangedHandler&&n>1&&i.propertiesChangedHandler(i,c,d))}else if(r.length==2){for(;!i.hasOwnProperty(r[0])&&i.base;)i=i.base;if(i.hasOwnProperty(r[0]))e.jqx.setvalueraiseevent(i,r[0],r[1]);else if(i.hasOwnProperty(r[0].toLowerCase()))e.jqx.setvalueraiseevent(i,r[0].toLowerCase(),r[1]);else if(e.jqx.propertySetterValidation)throw"jqxCore: invalid property '"+r[0]+"'"}},e.jqx.setvalueraiseevent=function(i,r,n){var s=i[r];i[r]=n,i.isInitialized&&(i.propertyChangedHandler!=null&&i.propertyChangedHandler(i,r,s,n),i.propertyChangeMap!=null&&i.propertyChangeMap[r]!=null&&i.propertyChangeMap[r](i,r,s,n))},e.jqx.get=function(i,r){if(!(r==null||r==null)){if(i.propertyMap){var n=i.propertyMap(r);if(n!=null)return n}if(i.hasOwnProperty(r))return i[r];if(i.hasOwnProperty(r.toLowerCase()))return i[r.toLowerCase()];var s=void 0;if(typeof r==Array){if(r.length!=1)return;s=r[0]}else typeof r=="string"&&(s=r);for(;!i.hasOwnProperty(s)&&i.base;)i=i.base;if(i)return i[s]}},e.jqx.serialize=function(i){var r="";if(e.isArray(i)){r="[";for(var n=0;n<i.length;n++)n>0&&(r+=", "),r+=e.jqx.serialize(i[n]);r+="]"}else if(typeof i=="object"){r="{";var s=0;for(var n in i)s++>0&&(r+=", "),r+=n+": "+e.jqx.serialize(i[n]);r+="}"}else r=i.toString();return r},e.jqx.propertySetterValidation=!0,e.jqx.jqxWidgetProxy=function(i,r,n){e(r);var s=e.data(r,i);if(s!=null){var a=s.instance;if(e.jqx.hasFunction(a,n))return e.jqx.invoke(a,n);if(e.jqx.isPropertySetter(a,n)){if(e.jqx.validatePropertySetter(a,n)){e.jqx.set(a,n);return}}else{if(typeof n=="object"&&n.length==0)return;if(typeof n=="object"&&n.length==1&&e.jqx.hasProperty(a,n[0]))return e.jqx.get(a,n[0]);if(typeof n=="string"&&e.jqx.hasProperty(a,n[0]))return e.jqx.get(a,n)}throw"jqxCore: Invalid parameter '"+e.jqx.serialize(n)+"' does not exist."}},e.jqx.applyWidget=function(i,r,n,m){var a=!1;try{a=window.MSApp!=null}catch{}var u=e(i);m?(m.host=u,m.element=i):m=new e.jqx["_"+r],i.id==""&&(i.id=e.jqx.utilities.createId());var c={host:u,element:i,instance:m,initArgs:n};m.widgetName=r,e.data(i,r,c),e.data(i,"jqxWidget",c.instance);for(var d=new Array,m=c.instance;m;)m.isInitialized=!1,d.push(m),m=m.base;d.reverse(),d[0].theme=e.jqx.theme||"",e.jqx.jqxWidgetProxy(r,i,n);for(var v in d)m=d[v],v==0&&(m.host=u,m.element=i,m.WinJS=a),m!=null&&(m.definedInstance&&m.definedInstance(),m.createInstance!=null&&(a?MSApp.execUnsafeLocalFunction(function(){m.createInstance(n)}):m.createInstance(n)));for(var v in d)d[v]!=null&&(d[v].isInitialized=!0);a?MSApp.execUnsafeLocalFunction(function(){c.instance.refresh(!0)}):c.instance.refresh(!0)},e.jqx.jqxWidget=function(i,r,n){var s=!1;try{var a=Array.prototype.slice.call(n,0)}catch{var a=""}try{s=window.MSApp!=null}catch{}var u=i,c="";r&&(c="_"+r),e.jqx.define(e.jqx,"_"+u,c);var d=new Array;if(!window[u]){var m=function(v){if(v==null)return"";var _=e.type(v);switch(_){case"string":case"number":case"date":case"boolean":case"bool":return v===null?"":v.toString()}var S="";return e.each(v,function(l,w){var C=w;l>0&&(S+=", "),S+="[";var L=0;if(e.type(C)=="object")for(var A in C)L>0&&(S+=", "),S+="{"+A+":"+C[A]+"}",L++;else L>0&&(S+=", "),S+="{"+l+":"+C+"}",L++;S+="]"}),S};t[u]=window[u]=function(v,_){var S=[];_||(_={}),S.push(_);var l=v;if(e.type(l)==="object"&&v[0]?(l=v[0].id,l===""&&(l=v[0].id=e.jqx.utilities.createId())):e.type(v)==="object"&&v&&v.nodeName&&(l=v.id,l===""&&(l=v.id=e.jqx.utilities.createId())),window.jqxWidgets&&window.jqxWidgets[l]){if(_&&e.each(window.jqxWidgets[l],function(A){var O=e(this.element).data();O&&O.jqxWidget&&e(this.element)[u](_)}),window.jqxWidgets[l].length==1){var w=e(window.jqxWidgets[l][0].widgetInstance.element).data();if(w&&w.jqxWidget)return window.jqxWidgets[l][0]}var w=e(window.jqxWidgets[l][0].widgetInstance.element).data();if(w&&w.jqxWidget)return window.jqxWidgets[l]}var C=e(v);C.length===0&&(C=e("<div></div>"),(u==="jqxInput"||u==="jqxPasswordInput"||u==="jqxMaskedInput")&&(C=e("<input/>")),u==="jqxTextArea"&&(C=e("<textarea></textarea>")),(u==="jqxButton"||u==="jqxRepeatButton"||u==="jqxToggleButton")&&(C=e("<button/>")),u==="jqxSplitter"&&(C=e("<div><div>Panel 1</div><div>Panel 2</div></div>")),u==="jqxTabs"&&(C=e("<div><ul><li>Tab 1</li><li>Tab 2</li></ul><div>Content 1</div><div>Content 2</div></div>")),u==="jqxRibbon"&&(C=e("<div><ul><li>Tab 1</li><li>Tab 2</li></ul><div><div>Content 1</div><div>Content 2</div></div></div>")),u==="jqxDocking"&&(C=e("<div><div><div><div>Title 1</div><div>Content 1</div></div></div></div>")),u==="jqxWindow"&&(C=e("<div><div>Title 1</div><div>Content 1</div></div>")));var L=[];return e.each(C,function(A){var O=C[A];if(e.jqx.applyWidget(O,u,S,void 0),!d[u]){var H=e.data(O,"jqxWidget"),E=e.jqx["_"+u].prototype.defineInstance();e.jqx["_"+u].prototype.metaInfo&&e.jqx["_"+u].prototype.metaInfo(),u=="jqxDockingLayout"&&(E=e.extend(E,e.jqx._jqxLayout.prototype.defineInstance())),(u=="jqxToggleButton"||u=="jqxRepeatButton")&&(E=e.extend(E,e.jqx._jqxButton.prototype.defineInstance())),u=="jqxTreeGrid"&&(E=e.extend(E,e.jqx._jqxDataTable.prototype.defineInstance()));var Q=function(D){var le=e.data(D,"jqxWidget");this.widgetInstance=le;var U=e.extend(this,le);U.on=U.addEventListener=function(Y,xe){U.addHandler(U.base?U.base.host:U.host,Y,xe)},U.off=U.removeEventListener=function(Y){U.removeHandler(U.base?U.base.host:U.host,Y)};for(var pe in le)e.type(le[pe])=="function"&&(U[pe]=e.proxy(le[pe],le));return U};d[u]=Q,e.each(E,function(D,le){Object.defineProperty(Q.prototype,D,{get:function(){return this.widgetInstance?this.widgetInstance[D]:le},set:function(U){if(this.widgetInstance&&(this.widgetInstance[D]!=U||D==="width"||D==="height")){var pe=this.widgetInstance[D],Y=U,xe=e.type(pe),Te=e.type(Y),je=!1;if((xe!=Te||D==="source"||D==="width"||D==="height")&&(je=!0),je||m(pe)!=m(Y)){var we={};we[D]=U,this.widgetInstance.host?this.widgetInstance.host[u](we):this.widgetInstance.base.host[u](we),this.widgetInstance[D]=U,this.widgetInstance.propertyUpdated&&this.widgetInstance.propertyUpdated(D,pe,U)}}}})})}var H=new d[u](O);L.push(H),window.jqxWidgets||(window.jqxWidgets=new Array),window.jqxWidgets[l]||(window.jqxWidgets[l]=new Array),window.jqxWidgets[l].push(H)}),L.length===1?L[0]:L}}e.fn[u]=function(){var v=Array.prototype.slice.call(arguments,0);if(v.length==0||v.length==1&&typeof v[0]=="object"){if(this.length==0)throw this.selector?new Error("Invalid Selector - "+this.selector+"! Please, check whether the used ID or CSS Class name is correct."):new Error("Invalid Selector! Please, check whether the used ID or CSS Class name is correct.");return this.each(function(){e(this);var l=this,w=e.data(l,u);w==null?e.jqx.applyWidget(l,u,v,void 0):e.jqx.jqxWidgetProxy(u,this,v)})}else{if(this.length==0)throw this.selector?new Error("Invalid Selector - "+this.selector+"! Please, check whether the used ID or CSS Class name is correct."):new Error("Invalid Selector! Please, check whether the used ID or CSS Class name is correct.");var _=null,S=0;this.each(function(){var l=e.jqx.jqxWidgetProxy(u,this,v);if(S==0)_=l,S++;else{if(S==1){var w=[];w.push(_),_=w}_.push(l)}})}return _};try{e.extend(e.jqx["_"+u].prototype,Array.prototype.slice.call(n,0)[0])}catch{}e.extend(e.jqx["_"+u].prototype,{toThemeProperty:function(v,_){return e.jqx.toThemeProperty(this,v,_)},isMaterialized:function(){if(!this.theme)return!1;if(this.theme==="light"||this.theme==="dark"||this.theme==="deepblue"||this.theme.indexOf("material")>=0)return!0},isModern:function(){if(!this.theme)return!1;if(this.theme.indexOf("light")>=0||this.theme==="dark")return!0},_addBarAndLabel:function(v){var _=this,S=e("<label></label");S[0].innerHTML=this.placeHolder,S.addClass(_.toThemeProperty("jqx-input-label")),v.after(S),_.label=S;var l=e("<span></span>");v.after(l),l.addClass(_.toThemeProperty("jqx-input-bar")),_.bar=l,_.bar.css("top",this.host.height())}}),e.jqx["_"+u].prototype.refresh=function(){this.base&&this.base.refresh(!0)},e.jqx["_"+u].prototype.createInstance=function(){},e.jqx.isPassiveSupported=function(){var v=this;if(v.supportsPassive!==void 0)return v.supportsPassive;v.supportsPassive=!1;try{var _=Object.defineProperty({},"passive",{get:function(){v.supportsPassive=!0}});window.addEventListener("testPassive",null,_),window.removeEventListener("testPassive",null,_)}catch{}return v.supportsPassive},e.jqx["_"+u].prototype.addEventHandler=function(v,_){this.base?this.base.host.on(v,_):this.host.on(v,_)},e.jqx["_"+u].prototype.removeEventHandler=function(v,_){this.base?this.base.host.off(v):this.host.off(v)},e.jqx["_"+u].prototype.applyTo=function(v,_){if(!(_ instanceof Array)){var S=[];S.push(_),_=S}e.jqx.applyWidget(v,u,_,this)},e.jqx["_"+u].prototype.getInstance=function(){return this},e.jqx["_"+u].prototype.propertyChangeMap={},e.jqx["_"+u].prototype.addHandler=function(v,_,S,l){e.jqx.addHandler(e(v),_,S,l)},e.jqx["_"+u].prototype.removeHandler=function(v,_,S){e.jqx.removeHandler(e(v),_,S)},e.jqx["_"+u].prototype.setOptions=function(){if(!(!this.host||!this.host.length||this.host.length!=1))return e.jqx.jqxWidgetProxy(u,this.host[0],arguments)}},e.jqx.toThemeProperty=function(i,r,n){if(i.theme=="")return r;for(var s=r.split(" "),a="",u=0;u<s.length;u++){u>0&&(a+=" ");var c=s[u];n!=null&&n?a+=c+"-"+i.theme:a+=c+" "+c+"-"+i.theme}return a},e.jqx.addHandler=function(i,r,n,s){for(var a=r.split(" "),u=0;u<a.length;u++){var c=a[u];if(window.addEventListener&&i[0])switch(c){case"mousewheel":e.jqx.browser.mozilla?i[0].addEventListener("DOMMouseScroll",n,e.jqx.isPassiveSupported()?{passive:!1}:!1):i[0].addEventListener("mousewheel",n,e.jqx.isPassiveSupported()?{passive:!1}:!1);continue;case"mousemove":if(!s){i[0].addEventListener("mousemove",n,!1);continue}break;case"touchmove":if(s){if(s&&s.passive){i[0].addEventListener("touchmove",n,s);continue}}else{i[0].addEventListener("touchmove",n,!1);continue}break}s==null||s==null?i.on?i.on(c,n):i.bind(c,n):i.on?i.on(c,s,n):i.bind(c,s,n)}},e.jqx.removeHandler=function(i,r,n){if(!r){i.off?i.off():i.unbind();return}for(var s=r.split(" "),a=0;a<s.length;a++){var u=s[a];if(window.removeEventListener)switch(u){case"mousewheel":e.jqx.browser.mozilla?i[0].removeEventListener("DOMMouseScroll",n,!1):i[0].removeEventListener("mousewheel",n,!1);continue;case"mousemove":if(n){i[0].removeEventListener("mousemove",n,!1);continue}break;case"touchmove":if(n){i[0].removeEventListener("touchmove",n,!1);continue}break}if(u==null){i.off?i.off():i.unbind();continue}n==null?i.off?i.off(u):i.unbind(u):i.off?i.off(u,n):i.unbind(u,n)}},e.jqx.credits=e.jqx.credits||"",e.jqx.theme=e.jqx.theme||"",e.jqx.scrollAnimation=e.jqx.scrollAnimation||!1,e.jqx.resizeDelay=e.jqx.resizeDelay||10,e.jqx.ready=function(){e(window).trigger("jqxReady")},e.jqx.init=function(){e.each(arguments[0],function(i,r){i=="theme"&&(e.jqx.theme=r),i=="scrollBarSize"&&(e.jqx.utilities.scrollBarSize=r),i=="touchScrollBarSize"&&(e.jqx.utilities.touchScrollBarSize=r),i=="scrollBarButtonsVisibility"&&(e.jqx.utilities.scrollBarButtonsVisibility=r)})},e.jqx.utilities=e.jqx.utilities||{},e.extend(e.jqx.utilities,{scrollBarSize:13,touchScrollBarSize:8,scrollBarButtonsVisibility:"visible",createId:function(){var i=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return"jqxWidget"+i()+i()+i()},setTheme:function(i,r,n){if(typeof n!="undefined"&&!!n[0].className.split){i===void 0&&(i=""),r===void 0&&(r="");for(var s=n[0].className.split(" "),a=[],u=[],c=n.children(),d=0;d<s.length;d+=1)s[d].indexOf(i)>=0&&(i.length>0?(a.push(s[d]),u.push(s[d].replace(i,r))):u.push(s[d].replace("-"+r,"")+"-"+r));this._removeOldClasses(a,n),this._addNewClasses(u,n);for(var d=0;d<c.length;d+=1)this.setTheme(i,r,e(c[d]))}},_removeOldClasses:function(i,r){for(var n=0;n<i.length;n+=1)r.removeClass(i[n])},_addNewClasses:function(i,r){for(var n=0;n<i.length;n+=1)r.addClass(i[n])},getOffset:function(i){var r=e.jqx.mobile.getLeftPos(i[0]),n=e.jqx.mobile.getTopPos(i[0]);return{top:n,left:r}},resize:function(i,r,n,s){s===void 0&&(s=!0);var a=-1,v=this,u=function(A){if(!v.hiddenWidgets)return-1;for(var O=-1,E=0;E<v.hiddenWidgets.length;E++)if(A.id){if(v.hiddenWidgets[E].id==A.id){O=E;break}}else if(v.hiddenWidgets[E].id==A[0].id){O=E;break}return O};if(this.resizeHandlers){for(var c=0;c<this.resizeHandlers.length;c++)if(i.id){if(this.resizeHandlers[c].id==i.id){a=c;break}}else if(this.resizeHandlers[c].id==i[0].id){a=c;break}if(n===!0){if(a!=-1&&(this.resizeHandlers.splice(a,1),this.watchedElementData&&this.watchedElementData.length>0&&this.watchedElementData.splice(a,1)),this.resizeHandlers.length==0){var d=e(window);d.off?(d.off("resize.jqx"),d.off("orientationchange.jqx"),d.off("orientationchanged.jqx")):(d.unbind("resize.jqx"),d.unbind("orientationchange.jqx"),d.unbind("orientationchanged.jqx")),this.resizeHandlers=null}var m=u(i);m!=-1&&this.hiddenWidgets&&this.hiddenWidgets.splice(m,1);return}}else if(n===!0){var m=u(i);m!=-1&&this.hiddenWidgets&&this.hiddenWidgets.splice(m,1);return}var v=this,_=function(A,O){if(!!v.resizeHandlers){var E=function(Ae){for(var Ce=-1,Ie=Ae.parentNode;Ie;)Ce++,Ie=Ie.parentNode;return Ce},Q=function(Ae,Ce){if(!Ae.widget||!Ce.widget)return 0;var Ie=E(Ae.widget[0]),lt=E(Ce.widget[0]);try{if(Ie<lt)return-1;if(Ie>lt)return 1}catch{}return 0},H=function(Ae){if(v.hiddenWidgets.length>0){v.hiddenWidgets.sort(Q);var Ce=function(){for(var Ie=!1,lt=new Array,rt=0;rt<v.hiddenWidgets.length;rt++){var nt=v.hiddenWidgets[rt];e.jqx.isHidden(nt.widget)?(Ie=!0,lt.push(nt)):nt.callback&&nt.callback(O)}v.hiddenWidgets=lt,Ie||clearInterval(v.__resizeInterval)};if(Ae==!1){Ce(),v.__resizeInterval&&clearInterval(v.__resizeInterval);return}v.__resizeInterval&&clearInterval(v.__resizeInterval),v.__resizeInterval=setInterval(function(){Ce()},100)}};v.hiddenWidgets&&v.hiddenWidgets.length>0&&H(!1),v.hiddenWidgets=new Array,v.resizeHandlers.sort(Q);for(var de=0;de<v.resizeHandlers.length;de++){var D=v.resizeHandlers[de],le=D.widget,U=D.data;if(!!U&&!!U.jqxWidget){var pe=U.jqxWidget.width,Y=U.jqxWidget.height;U.jqxWidget.base&&(pe==null&&(pe=U.jqxWidget.base.width),Y==null&&(Y=U.jqxWidget.base.height)),pe===void 0&&Y===void 0&&(pe=U.jqxWidget.element.style.width,Y=U.jqxWidget.element.style.height);var xe=!1;if(pe!=null&&pe.toString().indexOf("%")!=-1&&(xe=!0),Y!=null&&Y.toString().indexOf("%")!=-1&&(xe=!0),e.jqx.isHidden(le))u(le)===-1&&(xe||A===!0)&&D.data.nestedWidget!==!0&&v.hiddenWidgets.push(D);else if(A===void 0||A!==!0){if(xe){if(D.callback(O),v.watchedElementData){for(var Te=0;Te<v.watchedElementData.length;Te++)if(v.watchedElementData[Te].element==U.jqxWidget.element){v.watchedElementData[Te].offsetWidth=U.jqxWidget.element.offsetWidth,v.watchedElementData[Te].offsetHeight=U.jqxWidget.element.offsetHeight;break}}v.hiddenWidgets.indexOf(D)>=0&&v.hiddenWidgets.splice(v.hiddenWidgets.indexOf(D),1)}if(U.jqxWidget.element){var je=U.jqxWidget.element.className;if((je.indexOf("dropdownlist")>=0||je.indexOf("datetimeinput")>=0||je.indexOf("combobox")>=0||je.indexOf("menu")>=0)&&U.jqxWidget.isOpened){var we=U.jqxWidget.isOpened();if(we){if(O&&O=="resize"&&e.jqx.mobile.isTouchDevice())continue;U.jqxWidget.close()}}}}}}H()}};if(!this.resizeHandlers){this.resizeHandlers=new Array;var d=e(window);d.on?(this._resizeTimer=null,this._initResize=null,d.on("resize.jqx",function(O){v._resizeTimer!=null&&clearTimeout(v._resizeTimer),v._initResize?v._resizeTimer=setTimeout(function(){_(null,"resize")},e.jqx.resizeDelay):(v._initResize=!0,_(null,"resize"))}),d.on("orientationchange.jqx",function(O){_(null,"orientationchange")}),d.on("orientationchanged.jqx",function(O){_(null,"orientationchange")})):(d.bind("resize.jqx",function(O){_(null,"orientationchange")}),d.bind("orientationchange.jqx",function(O){_(null,"orientationchange")}),d.bind("orientationchanged.jqx",function(O){_(null,"orientationchange")}))}var S=i.data();s&&a===-1&&this.resizeHandlers.push({id:i[0].id,widget:i,callback:r,data:S});try{var l=S.jqxWidget.width,w=S.jqxWidget.height;S.jqxWidget.base&&(l==null&&(l=S.jqxWidget.base.width),w==null&&(w=S.jqxWidget.base.height)),l===void 0&&w===void 0&&(l=S.jqxWidget.element.style.width,w=S.jqxWidget.element.style.height);var C=!1;if(l!=null&&l.toString().indexOf("%")!=-1&&(C=!0),w!=null&&w.toString().indexOf("%")!=-1&&(C=!0),C){this.watchedElementData||(this.watchedElementData=[]);var v=this,L=function(O){v.watchedElementData.forEach&&v.watchedElementData.forEach(function(E){(E.element.offsetWidth!==E.offsetWidth||E.element.offsetHeight!==E.offsetHeight)&&(E.offsetWidth=E.element.offsetWidth,E.offsetHeight=E.element.offsetHeight,E.timer&&clearTimeout(E.timer),E.timer=setTimeout(function(){e.jqx.isHidden(e(E.element))?E.timer=setInterval(function(){e.jqx.isHidden(e(E.element))||(clearInterval(E.timer),E.callback())},100):E.callback()}))})};v.watchedElementData.push({element:i[0],offsetWidth:i[0].offsetWidth,offsetHeight:i[0].offsetHeight,callback:r}),v.observer||(v.observer=new MutationObserver(L),v.observer.observe(document.body,{attributes:!0,childList:!0,characterData:!0}))}}catch{}e.jqx.isHidden(i)&&s===!0&&_(!0),e.jqx.resize=function(){_(null,"resize")}},parseJSON:function(i){if(!i||typeof i!="string")return null;var r=/^[\],:{}\s]*$/,n=/(?:^|:|,)(?:\s*\[)+/g,s=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,a=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g;if(i=e.trim(i),window.JSON&&window.JSON.parse)return window.JSON.parse(i);if(r.test(i.replace(s,"@").replace(a,"]").replace(n,"")))return new Function("return "+i)();throw new Error("Invalid JSON: "+i)},html:function(i,r){if(!e(i).on)return e(i).html(r);try{return e.access(i,function(n){var s=i[0]||{},a=0,u=i.length;if(n===void 0)return s.nodeType===1?s.innerHTML.replace(rinlinejQuery,""):void 0;var c=/<(?:script|style|link)/i,d="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",m=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,v=/<([\w:]+)/,_=/<(?:script|object|embed|option|style)/i,S=new RegExp("<(?:"+d+")[\\s/>]","i"),l=/^\s+/,w={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};if(typeof n=="string"&&!c.test(n)&&(e.support.htmlSerialize||!S.test(n))&&(e.support.leadingWhitespace||!l.test(n))&&!w[(v.exec(n)||["",""])[1].toLowerCase()]){n=n.replace(m,"<$1></$2>");try{for(;a<u;a++)s=this[a]||{},s.nodeType===1&&(e.cleanData(s.getElementsByTagName("*")),s.innerHTML=n);s=0}catch{}}s&&i.empty().append(n)},null,r,arguments.length)}catch{return e(i).html(r)}},hasTransform:function(i){var r="";if(r=i.css("transform"),r==""||r=="none")if(r=i.parents().css("transform"),r==""||r=="none"){var n=e.jqx.utilities.getBrowser();n.browser=="msie"?(r=i.css("-ms-transform"),(r==""||r=="none")&&(r=i.parents().css("-ms-transform"))):n.browser=="chrome"?(r=i.css("-webkit-transform"),(r==""||r=="none")&&(r=i.parents().css("-webkit-transform"))):n.browser=="opera"?(r=i.css("-o-transform"),(r==""||r=="none")&&(r=i.parents().css("-o-transform"))):n.browser=="mozilla"&&(r=i.css("-moz-transform"),(r==""||r=="none")&&(r=i.parents().css("-moz-transform")))}else return r!=""&&r!="none";return(r==""||r=="none")&&(r=e(document.body).css("transform")),r!=""&&r!="none"&&r!=null},getBrowser:function(){var i=navigator.userAgent.toLowerCase(),r=/(chrome)[ \/]([\w.]+)/.exec(i)||/(webkit)[ \/]([\w.]+)/.exec(i)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(i)||/(msie) ([\w.]+)/.exec(i)||i.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(i)||[],n={browser:r[1]||"",version:r[2]||"0"};return i.indexOf("rv:11.0")>=0&&i.indexOf(".net4.0c")>=0&&(n.browser="msie",n.version="11",r[1]="msie"),i.indexOf("edge")>=0&&(n.browser="msie",n.version="12",r[1]="msie"),n[r[1]]=r[1],n}}),e.jqx.browser=e.jqx.utilities.getBrowser(),e.jqx.isHidden=function(i){if(!i||!i[0])return!1;var r=i[0].offsetWidth,n=i[0].offsetHeight;return r===0||n===0},e.jqx.ariaEnabled=!0,e.jqx.aria=function(i,r,n){if(!!e.jqx.ariaEnabled)if(r==null)e.each(i.aria,function(s,a){var u=i.base?i.base.host.attr(s):i.host.attr(s);if(u!=null&&!e.isFunction(u)){var c=u;switch(a.type){case"number":c=new Number(u),isNaN(c)&&(c=u);break;case"boolean":c=u=="true";break;case"date":c=new Date(u),(c=="Invalid Date"||isNaN(c))&&(c=u);break}i[a.name]=c}else{var u=i[a.name];e.isFunction(u)&&(u=i[a.name]()),u==null&&(u="");try{i.base?i.base.host.attr(s,u.toString()):i.host.attr(s,u.toString())}catch{}}});else try{i.host?i.base?i.base.host?i.base.host.attr(r,n.toString()):i.attr(r,n.toString()):i.host?i.element.setAttribute?i.element.setAttribute(r,n.toString()):i.host.attr(r,n.toString()):i.attr(r,n.toString()):i.setAttribute&&i.setAttribute(r,n.toString())}catch{}},Array.prototype.indexOf||(Array.prototype.indexOf=function(i){var r=this.length,n=Number(arguments[1])||0;for(n=n<0?Math.ceil(n):Math.floor(n),n<0&&(n+=r);n<r;n++)if(n in this&&this[n]===i)return n;return-1}),e.jqx.mobile=e.jqx.mobile||{},e.jqx.position=function(i){var r=parseInt(i.pageX),n=parseInt(i.pageY);if(e.jqx.mobile.isTouchDevice()){var s=e.jqx.mobile.getTouches(i),a=s[0];r=parseInt(a.pageX),n=parseInt(a.pageY)}return{left:r,top:n}},e.extend(e.jqx.mobile,{_touchListener:function(i,r){var n=function(c,d){var m=document.createEvent("MouseEvents");return m.initMouseEvent(c,d.bubbles,d.cancelable,d.view,d.detail,d.screenX,d.screenY,d.clientX,d.clientY,d.ctrlKey,d.altKey,d.shiftKey,d.metaKey,d.button,d.relatedTarget),m._pageX=d.pageX,m._pageY=d.pageY,m},s={mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove"},a=n(s[i.type],i);i.target.dispatchEvent(a);var u=i.target["on"+s[i.type]];typeof u=="function"&&u(i)},setMobileSimulator:function(i,r){if(!this.isTouchDevice()){this.simulatetouches=!0,r==!1&&(this.simulatetouches=!1);var n={mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove"},s=this;if(window.addEventListener){var a=function(){for(var u in n)i.addEventListener&&(i.removeEventListener(u,s._touchListener),i.addEventListener(u,s._touchListener,!1))};e.jqx.browser.msie,a()}}},isTouchDevice:function(){if(this.touchDevice!=null)return this.touchDevice;var i="Browser CodeName: "+navigator.appCodeName;if(i+="Browser Name: "+navigator.appName,i+="Browser Version: "+navigator.appVersion,i+="Platform: "+navigator.platform,i+="User-agent header: "+navigator.userAgent,i.indexOf("Android")!=-1||i.indexOf("IEMobile")!=-1||i.indexOf("Windows Phone")!=-1||i.indexOf("WPDesktop")!=-1||i.indexOf("ZuneWP7")!=-1||i.indexOf("BlackBerry")!=-1&&i.indexOf("Mobile Safari")!=-1||i.indexOf("ipod")!=-1||i.indexOf("nokia")!=-1||i.indexOf("Nokia")!=-1)return!0;if(i.indexOf("Chrome/17")!=-1||i.indexOf("CrOS")!=-1||i.indexOf("Opera")!=-1&&i.indexOf("Mobi")==-1&&i.indexOf("Mini")==-1&&i.indexOf("Platform: Win")!=-1)return!1;if(i.indexOf("HybridDeviceTouch")!=-1)return!0;if(i.indexOf("HybridDeviceMouse")!=-1)return!1;if(i.indexOf("Opera")!=-1&&i.indexOf("Mobi")!=-1&&i.indexOf("Opera Mobi")!=-1)return!0;if(i.indexOf("Mozilla/5.0 (X11; Linux x86_64)")!=-1)return!1;var r={ios:"i(?:Pad|Phone|Pod)(?:.*)CPU(?: iPhone)? OS ",android:"(Android |HTC_|Silk/)",blackberry:"BlackBerry(?:.*)Version/",rimTablet:"RIM Tablet OS ",webos:"(?:webOS|hpwOS)/",bada:"Bada/"};try{if(this.touchDevice!=null)return this.touchDevice;this.touchDevice=!1;for(var n in r)if(r.hasOwnProperty(n)){var s=r[n],a=i.match(new RegExp("(?:"+s+")([^\\s;]+)"));if(a)return n.toString()=="blackberry"?(this.touchDevice=!1,!1):(this.touchDevice=!0,!0)}var u=navigator.userAgent;if(navigator.platform.toLowerCase().indexOf("win")!=-1){if(u.indexOf("Windows Phone")>=0||u.indexOf("WPDesktop")>=0||u.indexOf("IEMobile")>=0||u.indexOf("ZuneWP7")>=0)return this.touchDevice=!0,!0;if(u.indexOf("Touch")>=0){var c="MSPointerDown"in window||"pointerdown"in window;return c?(this.touchDevice=!0,!0):u.indexOf("ARM")>=0?(this.touchDevice=!0,!0):(this.touchDevice=!1,!1)}}return navigator.platform.toLowerCase().indexOf("win")!=-1?(this.touchDevice=!1,!1):(("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)&&(this.touchDevice=!0),this.touchDevice)}catch{return this.touchDevice=!1,!1}},getLeftPos:function(i){for(var r=i.offsetLeft;(i=i.offsetParent)!=null;)i.tagName!="HTML"&&(r+=i.offsetLeft,document.all&&(r+=i.clientLeft));return r},getTopPos:function(i){for(var r=i.offsetTop,n=e(i).coord();(i=i.offsetParent)!=null;)i.tagName!="HTML"&&(r+=i.offsetTop-i.scrollTop,document.all&&(r+=i.clientTop));var s=navigator.userAgent.toLowerCase(),a=(s.indexOf("windows phone")!=-1||s.indexOf("WPDesktop")!=-1||s.indexOf("ZuneWP7")!=-1||s.indexOf("msie 9")!=-1||s.indexOf("msie 11")!=-1||s.indexOf("msie 10")!=-1)&&s.indexOf("touch")!=-1;return a?n.top:this.isSafariMobileBrowser()?this.isSafari4MobileBrowser()&&this.isIPadSafariMobileBrowser()?r:s.indexOf("version/7")!=-1?n.top:((s.indexOf("version/6")!=-1||s.indexOf("version/5")!=-1)&&(r=r+e(window).scrollTop()),/(Android.*Chrome\/[.0-9]* (!?Mobile))/.exec(navigator.userAgent)||/(Android.*Chrome\/[.0-9]* Mobile)/.exec(navigator.userAgent)?r+e(window).scrollTop():n.top):r},isChromeMobileBrowser:function(){var i=navigator.userAgent.toLowerCase(),r=i.indexOf("android")!=-1;return r},isOperaMiniMobileBrowser:function(){var i=navigator.userAgent.toLowerCase(),r=i.indexOf("opera mini")!=-1||i.indexOf("opera mobi")!=-1;return r},isOperaMiniBrowser:function(){var i=navigator.userAgent.toLowerCase(),r=i.indexOf("opera mini")!=-1;return r},isNewSafariMobileBrowser:function(){var i=navigator.userAgent.toLowerCase(),r=i.indexOf("ipad")!=-1||i.indexOf("iphone")!=-1||i.indexOf("ipod")!=-1;return r=r&&i.indexOf("version/5")!=-1,r},isSafari4MobileBrowser:function(){var i=navigator.userAgent.toLowerCase(),r=i.indexOf("ipad")!=-1||i.indexOf("iphone")!=-1||i.indexOf("ipod")!=-1;return r=r&&i.indexOf("version/4")!=-1,r},isWindowsPhone:function(){var i=navigator.userAgent.toLowerCase(),r=i.indexOf("windows phone")!=-1||i.indexOf("WPDesktop")!=-1||i.indexOf("ZuneWP7")!=-1||i.indexOf("msie 9")!=-1||i.indexOf("msie 11")!=-1||i.indexOf("msie 10")!=-1&&i.indexOf("touch")!=-1;return r},isSafariMobileBrowser:function(){var i=navigator.userAgent.toLowerCase();if(/(Android.*Chrome\/[.0-9]* (!?Mobile))/.exec(navigator.userAgent)||/(Android.*Chrome\/[.0-9]* Mobile)/.exec(navigator.userAgent))return!0;var r=i.indexOf("ipad")!=-1||i.indexOf("iphone")!=-1||i.indexOf("ipod")!=-1||i.indexOf("mobile safari")!=-1;return r},isIPadSafariMobileBrowser:function(){var i=navigator.userAgent.toLowerCase(),r=i.indexOf("ipad")!=-1;return r},isMobileBrowser:function(){var i=navigator.userAgent.toLowerCase(),r=i.indexOf("ipad")!=-1||i.indexOf("iphone")!=-1||i.indexOf("android")!=-1;return r},getTouches:function(i){if(i.originalEvent){if(i.originalEvent.touches&&i.originalEvent.touches.length)return i.originalEvent.touches;if(i.originalEvent.changedTouches&&i.originalEvent.changedTouches.length)return i.originalEvent.changedTouches}return i.touches||(i.touches=new Array,i.touches[0]=i.originalEvent!=null?i.originalEvent:i,i.originalEvent!=null&&i.pageX&&(i.touches[0]=i),i.type=="mousemove"&&(i.touches[0]=i)),i.touches},getTouchEventName:function(i){if(this.isWindowsPhone()){var r=navigator.userAgent.toLowerCase();if(r.indexOf("windows phone 7")!=-1){if(i.toLowerCase().indexOf("start")!=-1)return"MSPointerDown";if(i.toLowerCase().indexOf("move")!=-1)return"MSPointerMove";if(i.toLowerCase().indexOf("end")!=-1)return"MSPointerUp"}if(i.toLowerCase().indexOf("start")!=-1)return"pointerdown";if(i.toLowerCase().indexOf("move")!=-1)return"pointermove";if(i.toLowerCase().indexOf("end")!=-1)return"pointerup"}else return i},dispatchMouseEvent:function(i,r,n){if(!this.simulatetouches){var s=document.createEvent("MouseEvent");s.initMouseEvent(i,!0,!0,r.view,1,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),n!=null&&n.dispatchEvent(s)}},getRootNode:function(i){for(;i.nodeType!==1;)i=i.parentNode;return i},setTouchScroll:function(i,r){this.enableScrolling||(this.enableScrolling=[]),this.enableScrolling[r]=i},touchScroll:function(i,r,n,_,a,u){if(i==null)return;var c=this;this.scrolling||(this.scrolling=[]),this.scrolling[_]=!1;var d=!1,m=e(i),v=["select","input","textarea"],X=0;this.enableScrolling||(this.enableScrolling=[]),this.enableScrolling[_]=!0;var _=_,S=this.getTouchEventName("touchstart")+".touchScroll",l=this.getTouchEventName("touchend")+".touchScroll",w=this.getTouchEventName("touchmove")+".touchScroll",C,L,Ie,Te,A,je,O,E,Q,H,de,D,le,U,pe,Y,xe,lt;A=r;var Te=0,je=0,we=0,Ae=0,Ce=0,Ie=a.jqxScrollBar("max"),lt=325;function rt(T){if(T.targetTouches&&T.targetTouches.length>=1)return T.targetTouches[0].clientY;if(T.originalEvent&&T.originalEvent.clientY!==void 0)return T.originalEvent.clientY;var R=c.getTouches(T);return R[0].clientY}function nt(T){if(T.targetTouches&&T.targetTouches.length>=1)return T.targetTouches[0].clientX;if(T.originalEvent&&T.originalEvent.clientX!==void 0)return T.originalEvent.clientX;var R=c.getTouches(T);return R[0].clientX}var ut=function(){var T,R,V,ne;T=Date.now(),R=T-D,D=T,V=je-de;var ue=we-C;de=je,C=we,E=!0,ne=1e3*V/(1+R);var K=1e3*ue/(1+R);Q=.8*ne+.2*Q,H=.8*K+.2*H},Bt=!1,X=function(T){if(!c.enableScrolling[_])return!0;if(e.inArray(T.target.tagName.toLowerCase(),v)!==-1)return;je=u.jqxScrollBar("value"),we=a.jqxScrollBar("value");var R=c.getTouches(T),V=R[0];R.length==1&&c.dispatchMouseEvent("mousedown",V,c.getRootNode(V.target)),Ie=a.jqxScrollBar("max"),A=u.jqxScrollBar("max");function ne(ue){Bt=!1,E=!0,O=rt(ue),xe=nt(ue),Q=U=H=0,de=je,C=we,D=Date.now(),clearInterval(le),le=setInterval(ut,100),Ae=je,Ce=we,je>0&&je<A&&u[0].style.visibility!="hidden"}return ne(T),d=!1,V.pageY,V.pageX,c.simulatetouches&&V._pageY!=null&&(V._pageY,V._pageX),c.scrolling[_]=!0,!0};m.on?m.on(S,X):m.bind(S,X);var he=function(T,R){return je=T>A?A:T<Te?Te:T,n(null,T,0,0,R),T>A?"max":T<Te?"min":"value"},oe=function(T,R){return we=T>Ie?Ie:T<Te?Te:T,n(T,null,0,0,R),T>Ie?"max":T<Te?"min":"value"};function me(){var T,R;U&&(T=Date.now()-D,R=-U*Math.exp(-T/lt),R>.5||R<-.5?(he(pe+R),requestAnimationFrame(me)):he(pe))}function Fe(){var T,R;U&&(T=Date.now()-D,R=-U*Math.exp(-T/lt),R>.5||R<-.5?(oe(Y+R),requestAnimationFrame(Fe)):oe(Y))}var De=function(T){if(!c.enableScrolling[_]||!c.scrolling[_])return!0;Bt&&(T.preventDefault(),T.stopPropagation());var R=c.getTouches(T);if(R.length>1)return!0;R[0].pageY,R[0].pageX,c.simulatetouches&&R[0]._pageY!=null&&(R[0]._pageY,R[0]._pageX),d=!0;var V=a!=null?a[0].style.visibility!="hidden":!0,ne=u!=null?u[0].style.visibility!="hidden":!0;function ue(K){var ae,G,ge;if(E){ae=rt(K),ge=nt(K),G=O-ae,L=xe-ge;var fe="value";if(G>2||G<-2)return O=ae,fe=he(je+G,K),ut(),fe=="min"&&Ae===0||fe=="max"&&Ae===A||!ne?!0:(K.preventDefault(),K.stopPropagation(),Bt=!0,!1);if(L>2||L<-2)return xe=ge,fe=oe(we+L,K),ut(),fe=="min"&&Ce===0||fe=="max"&&Ce===Ie||!V?!0:(Bt=!0,K.preventDefault(),K.stopPropagation(),!1);K.preventDefault()}}(V||ne)&&(V||ne)&&ue(T)};m.on?m.on(w,De):m.bind(w,De);var Me=function(T){if(!c.enableScrolling[_])return!0;var R=c.getTouches(T)[0];if(!c.scrolling[_])return!0;if(E=!1,clearInterval(le),Q>10||Q<-10?(U=.8*Q,pe=Math.round(je+U),D=Date.now(),requestAnimationFrame(me)):(H>10||H<-10)&&(U=.8*H,Y=Math.round(we+U),D=Date.now(),requestAnimationFrame(Fe)),c.scrolling[_]=!1,d)c.dispatchMouseEvent("mouseup",R,T.target);else{var R=c.getTouches(T)[0],V=c.getRootNode(R.target);return c.dispatchMouseEvent("mouseup",R,V),c.dispatchMouseEvent("click",R,V),!0}};if(this.simulatetouches){e(window).on!=null||e(window).bind;var qe=function(T){try{Me(T)}catch{}c.scrolling[_]=!1};if(e(window).on!=null?e(document).on("mouseup.touchScroll",qe):e(document).bind("mouseup.touchScroll",qe),window.frameElement&&window.top!=null){var j=function(T){try{Me(T)}catch{}c.scrolling[_]=!1};window.top.document&&(e(window.top.document).on?e(window.top.document).on("mouseup",j):e(window.top.document).bind("mouseup",j))}e(document).on!=null||e(document).bind;var P=function(T){if(!c.scrolling[_])return!0;c.scrolling[_]=!1;var R=c.getTouches(T)[0],V=c.getRootNode(R.target);c.dispatchMouseEvent("mouseup",R,V),c.dispatchMouseEvent("click",R,V)};e(document).on!=null?e(document).on("touchend",P):e(document).bind("touchend",P)}m.on&&(m.on("dragstart",function(T){T.preventDefault()}),m.on("selectstart",function(T){T.preventDefault()})),m.on?m.on(l+" touchcancel.touchScroll",Me):m.bind(l+" touchcancel.touchScroll",Me)}}),e.jqx.cookie=e.jqx.cookie||{},e.extend(e.jqx.cookie,{cookie:function(i,r,n){if(arguments.length>1&&String(r)!=="[object Object]"){if(n=e.extend({},n),r==null&&(n.expires=-1),typeof n.expires=="number"){var s=n.expires,a=n.expires=new Date;a.setDate(a.getDate()+s)}return r=String(r),document.cookie=[encodeURIComponent(i),"=",n.raw?r:encodeURIComponent(r),n.expires?"; expires="+n.expires.toUTCString():"",n.path?"; path="+n.path:"",n.domain?"; domain="+n.domain:"",n.secure?"; secure":""].join("")}n=r||{};var u,c=n.raw?function(d){return d}:decodeURIComponent;return(u=new RegExp("(?:^|; )"+encodeURIComponent(i)+"=([^;]*)").exec(document.cookie))?c(u[1]):null}}),e.jqx.string=e.jqx.string||{},e.extend(e.jqx.string,{replace:function(i,r,n){if(r===n)return this;for(var s=i,a=s.indexOf(r);a!=-1;)s=s.replace(r,n),a=s.indexOf(r);return s},contains:function(i,r){return i==null||r==null?!1:i.indexOf(r)!=-1},containsIgnoreCase:function(i,r){return i==null||r==null?!1:i.toString().toUpperCase().indexOf(r.toString().toUpperCase())!=-1},equals:function(i,r){return i==null||r==null?!1:(i=this.normalize(i),r.length==i.length?i.slice(0,r.length)==r:!1)},equalsIgnoreCase:function(i,r){return i==null||r==null?!1:(i=this.normalize(i),r.length==i.length?i.toUpperCase().slice(0,r.length)==r.toUpperCase():!1)},startsWith:function(i,r){return i==null||r==null?!1:i.slice(0,r.length)==r},startsWithIgnoreCase:function(i,r){return i==null||r==null?!1:i.toUpperCase().slice(0,r.length)==r.toUpperCase()},normalize:function(i){return i.charCodeAt(i.length-1)==65279&&(i=i.substring(0,i.length-1)),i},endsWith:function(i,r){return i==null||r==null?!1:(i=this.normalize(i),i.slice(-r.length)==r)},endsWithIgnoreCase:function(i,r){return i==null||r==null?!1:(i=this.normalize(i),i.toUpperCase().slice(-r.length)==r.toUpperCase())}}),e.extend(e.easing,{easeOutBack:function(i,r,n,s,a,u){return u==null&&(u=1.70158),s*((r=r/a-1)*r*((u+1)*r+u)+1)+n},easeInQuad:function(i,r,n,s,a){return s*(r/=a)*r+n},easeInOutCirc:function(i,r,n,s,a){return(r/=a/2)<1?-s/2*(Math.sqrt(1-r*r)-1)+n:s/2*(Math.sqrt(1-(r-=2)*r)+1)+n},easeInOutSine:function(i,r,n,s,a){return-s/2*(Math.cos(Math.PI*r/a)-1)+n},easeInCubic:function(i,r,n,s,a){return s*(r/=a)*r*r+n},easeOutCubic:function(i,r,n,s,a){return s*((r=r/a-1)*r*r+1)+n},easeInOutCubic:function(i,r,n,s,a){return(r/=a/2)<1?s/2*r*r*r+n:s/2*((r-=2)*r*r+2)+n},easeInSine:function(i,r,n,s,a){return-s*Math.cos(r/a*(Math.PI/2))+s+n},easeOutSine:function(i,r,n,s,a){return s*Math.sin(r/a*(Math.PI/2))+n},easeInOutSine:function(i,r,n,s,a){return-s/2*(Math.cos(Math.PI*r/a)-1)+n}})})(kl);(function(e){e.event&&e.event.special&&e.extend(e.event.special,{close:{noBubble:!0},open:{noBubble:!0},cellclick:{noBubble:!0},rowclick:{noBubble:!0},tabclick:{noBubble:!0},selected:{noBubble:!0},expanded:{noBubble:!0},collapsed:{noBubble:!0},valuechanged:{noBubble:!0},expandedItem:{noBubble:!0},collapsedItem:{noBubble:!0},expandingItem:{noBubble:!0},collapsingItem:{noBubble:!0}}),e.fn.extend&&e.fn.extend({ischildof:function(i){if(!e(this).parents){var r=i.element.contains(this.element);return r}for(var n=e(this).parents().get(),s=0;s<n.length;s++)if(typeof i!="string"){var a=n[s];if(i!==void 0&&a==i[0])return!0}else if(i!==void 0&&e(n[s]).is(i))return!0;return!1}}),e.fn.jqxProxy=function(){var i=e(this).data().jqxWidget,r=Array.prototype.slice.call(arguments,0),n=i.element;return n||(n=i.base.element),e.jqx.jqxWidgetProxy(i.widgetName,n,r)};var t=e.originalVal=e.fn.val;e.fn.val=function(i){if(typeof i=="undefined"){if(e(this).hasClass("jqx-widget")||e(this).hasClass("jqx-input-group")){var r=e(this).data().jqxWidget;if(r&&r.val)return r.val()}if(this[0]&&this[0].tagName.toLowerCase().indexOf("angular")>=0){var r=e(this).find(".jqx-widget").data().jqxWidget;if(r&&r.val)return r.val()}return t.call(this)}else{if(e(this).hasClass("jqx-widget")||e(this).hasClass("jqx-input-group")){var r=e(this).data().jqxWidget;if(r&&r.val)return arguments.length!=2?r.val(i):r.val(i,arguments[1])}if(this[0]&&this[0].tagName.toLowerCase().indexOf("angular")>=0){var r=e(this).find(".jqx-widget").data().jqxWidget;if(r&&r.val)return arguments.length!=2?r.val(i):r.val(i,arguments[1])}return t.call(this,i)}},e.fn.modal&&e.fn.modal.Constructor&&(e.fn.modal.Constructor.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(i){if(this.$element[0]!==i.target&&!this.$element.has(i.target).length){if(e(i.target).parents().hasClass("jqx-popup"))return!0;this.$element.trigger("focus")}},this))}),e.fn.coord=function(i){var r,n,s={top:0,left:0},a=this[0],u=a&&a.ownerDocument;if(!!u){if(r=u.documentElement,!e.contains(r,a))return s;typeof a.getBoundingClientRect!==void 0&&(s=a.getBoundingClientRect());var c=function(l){return e.isWindow(l)?l:l.nodeType===9?l.defaultView||l.parentWindow:!1};n=c(u);var d=0,m=0,v=navigator.userAgent.toLowerCase(),_=v.indexOf("ipad")!=-1||v.indexOf("iphone")!=-1;if(_&&(d=2),i==!0&&document.body.style.position!="static"&&document.body.style.position!=""){var S=e(document.body).coord();d=-S.left,m=-S.top}return{top:m+s.top+(n.pageYOffset||r.scrollTop)-(r.clientTop||0),left:d+s.left+(n.pageXOffset||r.scrollLeft)-(r.clientLeft||0)}}},e.jqx.ripplers=[],e.jqx.ripple=function(i,r,n){r||(r=i);var s=e(i);s.append("<span class='ink'></span>");for(var a=s.find(".ink"),u=!1,c=0;c<e.jqx.ripplers.length;c++){var d=e.jqx.ripplers[c];if(d.element[0]===i[0]){u=!0;break}}if(u||e.jqx.ripplers.push({ink:a,element:i,hostElement:r,hostElementType:n}),n==="checkbox"||n==="radiobutton"){var m=Math.max(s.outerWidth(),s.outerHeight());a.css({height:m,width:m});var v=s.width()/2-a.width()/2,_=s.height()/2-a.height()/2;a.css({top:_+"px",left:v+"px"})}e.jqx.ripplers.length===1&&e(document).on("mouseup",function(S){e.jqx.ripple.mouseCaptured=!1;for(var l=0;l<e.jqx.ripplers.length;l++){var w=e.jqx.ripplers[l];w.ink.removeClass("active"),w.element.removeClass("active"),n!=="checkbox"&&n!=="radiobutton"&&w.ink.hasClass("animate")&&w.ink.removeClass("animate")}}),r.off("mousedown.ripple"),r.on("mousedown.ripple",function(S){var l=e(i);e.jqx.ripple.mouseCaptured=!0,setTimeout(function(){l.find(".ink").length==0&&l.append("<span class='ink'></span>");var w=l.find(".ink");if(w.removeClass("animate"),!w.height()&&!w.width()){var C=Math.max(l.outerWidth(),l.outerHeight());w.css({height:C,width:C})}if(n==="checkbox"||n==="radiobutton"){if(n==="checkbox"&&r.jqxCheckBox("disabled")||n==="radiobutton"&&r.jqxRadioButton("disabled"))return;var L=l.width()/2-w.width()/2,A=l.height()/2-w.height()/2;w.css({top:A+"px",left:L+"px"}).addClass("animate"),w.on("animationend",function(){e.jqx.ripple.mouseCaptured&&(w.removeClass("animate"),w.addClass("active"),i.addClass("active"))});return}var L=S.pageX-l.offset().left-w.width()/2,A=S.pageY-l.offset().top-w.height()/2;w.css({top:A+"px",left:L+"px"}).addClass("animate")})})}})(kl);(function(e){e.jqx.jqxWidget("jqxDraw","",{}),e.extend(e.jqx._jqxDraw.prototype,{defineInstance:function(){var t={renderEngine:""};e.extend(!0,this,t);var i=["clear","on","off","removeElement","attr","getAttr","line","circle","rect","path","pieslice","text","measureText"];for(var r in i)this._addFn(e.jqx._jqxDraw.prototype,i[r]);return this===e.jqx._jqxDraw.prototype,t},_addFn:function(t,i){t[i]||(t[i]=function(){return this.renderer[i].apply(this.renderer,arguments)})},createInstance:function(t){},_initRenderer:function(t){return e.jqx.createRenderer(this,t)},_internalRefresh:function(){var t=this;if(!e.jqx.isHidden(t.host)){t.renderer||(t.host.empty(),t._initRenderer(t.host));var i=t.renderer;if(!!i){var r=i.getRect();t._render({x:1,y:1,width:r.width,height:r.height}),i instanceof e.jqx.HTML5Renderer&&i.refresh()}}},_saveAsImage:function(t,i,r,n){return e.jqx._widgetToImage(this,t,i,r,n)},_render:function(t){var i=this;i.renderer,i._plotRect=t},refresh:function(){this._internalRefresh()},getSize:function(){var t=this._plotRect;return{width:t.width,height:t.height}},saveAsPNG:function(t,i,r){return this._saveAsImage("png",t,i,r)},saveAsJPEG:function(t,i,r){return this._saveAsImage("jpeg",t,i,r)}})})(jqxBaseFramework);(function(e){e.jqx.toGreyScale=function(t){if(t.indexOf("#")==-1)return t;var i=e.jqx.cssToRgb(t);i[0]=i[1]=i[2]=Math.round(.3*i[0]+.59*i[1]+.11*i[2]);var r=e.jqx.rgbToHex(i[0],i[1],i[2]);return"#"+r[0]+r[1]+r[2]},e.jqx.adjustColor=function(s,i){if(typeof s!="string")return"#000000";if(s.indexOf("#")==-1)return s;var r=e.jqx.cssToRgb(s),n=e.jqx.rgbToHsl(r);n[2]=Math.min(1,n[2]*i),n[1]=Math.min(1,n[1]*i*1.1),r=e.jqx.hslToRgb(n);for(var s="#",a=0;a<3;a++){var u=Math.round(r[a]);u=e.jqx.decToHex(u),u.toString().length==1&&(s+="0"),s+=u}return s.toUpperCase()},e.jqx.decToHex=function(t){return t.toString(16)},e.jqx.hexToDec=function(t){return parseInt(t,16)},e.jqx.rgbToHex=function(t,i,r){return[e.jqx.decToHex(t),e.jqx.decToHex(i),e.jqx.decToHex(r)]},e.jqx.hexToRgb=function(t,i,r){return[e.jqx.hexToDec(t),e.jqx.hexToDec(i),e.jqx.hexToDec(r)]},e.jqx.cssToRgb=function(t){return t.indexOf("rgb")<=-1?e.jqx.hexToRgb(t.substring(1,3),t.substring(3,5),t.substring(5,7)):t.substring(4,t.length-1).split(",")},e.jqx.hslToRgb=function(t){var i=parseFloat(t[0]),r=parseFloat(t[1]),n=parseFloat(t[2]);if(r==0){var s,a,u;s=a=u=n}else var c=n<.5?n*(1+r):n+r-n*r,d=2*n-c,s=e.jqx.hueToRgb(d,c,i+1/3),a=e.jqx.hueToRgb(d,c,i),u=e.jqx.hueToRgb(d,c,i-1/3);return[s*255,a*255,u*255]},e.jqx.hueToRgb=function(t,i,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(i-t)*6*r:r<1/2?i:r<2/3?t+(i-t)*(2/3-r)*6:t},e.jqx.rgbToHsl=function(t){var i=parseFloat(t[0])/255,r=parseFloat(t[1])/255,n=parseFloat(t[2])/255,s=Math.max(i,r,n),a=Math.min(i,r,n),u,c,d=(s+a)/2;if(s==a)u=c=0;else{var m=s-a;switch(c=d>.5?m/(2-s-a):m/(s+a),s){case i:u=(r-n)/m+(r<n?6:0);break;case r:u=(n-i)/m+2;break;case n:u=(i-r)/m+4;break}u/=6}return[u,c,d]},e.jqx.swap=function(t,i){},e.jqx.getNum=function(t){if(e.isArray(t)){for(var i=0;i<t.length;i++)if(!isNaN(t[i]))return t[i]}else if(isNaN(t))return 0;return 0},e.jqx._ptdist=function(t,i,r,n){return Math.sqrt((r-t)*(r-t)+(n-i)*(n-i))},e.jqx._ptrnd=function(t){if(!document.createElementNS)return Math.round(t)==t?t:e.jqx._rnd(t,1,!1,!0);var i=e.jqx._rnd(t,.5,!1,!0);return Math.abs(i-Math.round(i))!=.5?i>t?i-.5:i+.5:i},e.jqx._ptRotate=function(t,i,r,n,s){var a=Math.sqrt(Math.pow(Math.abs(t-r),2)+Math.pow(Math.abs(i-n),2)),u=Math.asin((t-r)/a),c=u+s;return t=r+Math.cos(c)*a,i=n+Math.sin(c)*a,{x:t,y:i}},e.jqx._rup=function(t){var i=Math.round(t);return t>i&&i++,i},e.jqx.log=function(t,i){return Math.log(t)/(i?Math.log(i):1)},e.jqx._mod=function(t,i){var r=Math.abs(t>i?i:t),n=1;if(r!=0)for(;r*n<100;)n*=10;return t=t*n,i=i*n,t%i/n},e.jqx._rnd=function(t,i,r,n){if(isNaN(t))return t;n===void 0&&(n=!0);var s=t-(n==!0?t%i:e.jqx._mod(t,i));return t==s?s:(r?t>s&&(s+=i):s>t&&(s-=i),i==1?Math.round(s):s)},e.jqx.commonRenderer={pieSlicePath:function(t,i,r,n,s,a,u){n||(n=1);var c=Math.abs(s-a),d=c>180?1:0;c>=360&&(a=s+359.99);var m=s*Math.PI*2/360,v=a*Math.PI*2/360,_=t,S=t,l=i,w=i,C=!isNaN(r)&&r>0;if(C&&(u=0),u+r>0){if(u>0){var L=c/2+s,A=L*Math.PI*2/360;t+=u*Math.cos(A),i-=u*Math.sin(A)}if(C){var O=r;_=t+O*Math.cos(m),l=i-O*Math.sin(m),S=t+O*Math.cos(v),w=i-O*Math.sin(v)}}var E=t+n*Math.cos(m),Q=t+n*Math.cos(v),H=i-n*Math.sin(m),de=i-n*Math.sin(v),D="",le=Math.abs(Math.abs(a-s)-360)>.02;return C?(D="M "+S+","+w,D+=" a"+r+","+r,D+=" 0 "+d+",1 "+(_-S)+","+(l-w),le?D+=" L"+E+","+H:D+=" M"+E+","+H,D+=" a"+n+","+n,D+=" 0 "+d+",0 "+(Q-E)+","+(de-H),le&&(D+=" Z")):(D="M "+Q+","+de,D+=" a"+n+","+n,D+=" 0 "+d+",1 "+(E-Q)+","+(H-de),le&&(D+=" L"+t+","+i,D+=" Z")),D},measureText:function(t,i,r,n,s){var a=s._getTextParts(t,i,r),u=a.width,c=a.height;n==!1&&(c/=.6);var d={};if(isNaN(i)&&(i=0),i==0)d={width:e.jqx._rup(u),height:e.jqx._rup(c)};else{var m=i*Math.PI*2/360,v=Math.abs(Math.sin(m)),_=Math.abs(Math.cos(m)),S=Math.abs(u*v+c*_),l=Math.abs(u*_+c*v);d={width:e.jqx._rup(l),height:e.jqx._rup(S)}}return n&&(d.textPartsInfo=a),d},alignTextInRect:function(t,i,r,n,s,a,u,c,d,m){var v=d*Math.PI*2/360,_=Math.sin(v),S=Math.cos(v),l=s*_,w=s*S;u=="center"||u==""||u=="undefined"?t=t+r/2:u=="right"&&(t=t+r),c=="center"||c=="middle"||c==""||c=="undefined"?i=i+n/2:c=="bottom"?i+=n-a/2:c=="top"&&(i+=a/2),m=m||"";var C="middle";m.indexOf("top")!=-1?C="top":m.indexOf("bottom")!=-1&&(C="bottom");var L="center";return m.indexOf("left")!=-1?L="left":m.indexOf("right")!=-1&&(L="right"),L=="center"?(t-=w/2,i-=l/2):L=="right"&&(t-=w,i-=l),C=="top"?(t-=a*_,i+=a*S):C=="middle"&&(t-=a*_/2,i+=a*S/2),t=e.jqx._rup(t),i=e.jqx._rup(i),{x:t,y:i}}},e.jqx.svgRenderer=function(){},e.jqx.svgRenderer.prototype={_svgns:"http://www.w3.org/2000/svg",init:function(t){var i="<table class=tblChart cellspacing='0' cellpadding='0' border='0' align='left' valign='top'><tr><td colspan=2 class=tdTop></td></tr><tr><td class=tdLeft></td><td><div class='chartContainer' style='position:relative' onselectstart='return false;'></div></td></tr></table>";t.append(i),this.host=t;var r=t.find(".chartContainer");r[0].style.width=t.width()+"px",r[0].style.height=t.height()+"px";try{var n=document.createElementNS(this._svgns,"svg");n.setAttribute("id","svgChart"),n.setAttribute("version","1.1"),n.setAttribute("width","100%"),n.setAttribute("height","100%"),n.setAttribute("overflow","hidden"),r[0].appendChild(n),this.canvas=n}catch{return!1}return this._id=new Date().getTime(),this.clear(),this._layout(),this._runLayoutFix(),!0},getType:function(){return"SVG"},refresh:function(){},_runLayoutFix:function(){this._fixLayout()},_fixLayout:function(){var t=this.canvas.getBoundingClientRect(),i=parseFloat(t.left)==parseInt(t.left),r=parseFloat(t.top)==parseInt(t.top);if(e.jqx.browser.msie){for(var i=!0,r=!0,n=this.host,s=0,a=0;n&&n.position&&n[0].parentNode;){var u=n.position();s+=parseFloat(u.left)-parseInt(u.left),a+=parseFloat(u.top)-parseInt(u.top),n=n.parent()}i=parseFloat(s)==parseInt(s),r=parseFloat(a)==parseInt(a)}i||(this.host.find(".tdLeft")[0].style.width="0.5px"),r||(this.host.find(".tdTop")[0].style.height="0.5px")},_layout:function(){var t=this.host.find(".chartContainer");this._width=Math.max(e.jqx._rup(this.host.width())-1,0),this._height=Math.max(e.jqx._rup(this.host.height())-1,0),t[0].style.width=this._width,t[0].style.height=this._height,this._fixLayout()},getRect:function(){return{x:0,y:0,width:this._width,height:this._height}},getContainer:function(){var t=this.host.find(".chartContainer");return t},clear:function(){for(;this.canvas.childElementCount>0;)this.removeElement(this.canvas.firstElementChild);this._defaultParent=void 0,this._defs=document.createElementNS(this._svgns,"defs"),this._gradients={},this.canvas.appendChild(this._defs)},removeElement:function(t){if(t!=null){this.removeHandler(t);try{for(;t.firstChild;)this.removeElement(t.firstChild);t.parentNode?t.parentNode.removeChild(t):this.canvas.removeChild(t)}catch{}}},_openGroups:[],beginGroup:function(){var t=this._activeParent(),i=document.createElementNS(this._svgns,"g");return t.appendChild(i),this._openGroups.push(i),i},endGroup:function(){this._openGroups.length!=0&&this._openGroups.pop()},_activeParent:function(){return this._openGroups.length==0?this.canvas:this._openGroups[this._openGroups.length-1]},createClipRect:function(t){var i=document.createElementNS(this._svgns,"clipPath"),r=document.createElementNS(this._svgns,"rect");return this.attr(r,{x:t.x,y:t.y,width:t.width,height:t.height,fill:"none"}),this._clipId=this._clipId||0,i.id="cl"+this._id+"_"+(++this._clipId).toString(),i.appendChild(r),this._defs.appendChild(i),i},getWindowHref:function(){var t=e.jqx.browser;if(t&&t.browser=="msie"&&t.version<10)return"";var i=window.location.href;return i&&(i=i.replace(/([\('\)])/g,"\\$1"),i=i.replace(/#.*$/,""),i)},setClip:function(t,i){var r="url("+this.getWindowHref()+"#"+i.id+")";return this.attr(t,{"clip-path":r})},_clipId:0,addHandler:function(t,i,r){e(t).on?e(t).on(i,r):e(t).bind(i,r)},removeHandler:function(t,i,r){e(t).off?e(t).off(i,r):e(t).unbind(i,r)},on:function(t,i,r){this.addHandler(t,i,r)},off:function(t,i,r){this.removeHandler(t,i,r)},shape:function(t,i){var r=document.createElementNS(this._svgns,t);if(!!r){for(var n in i)i[n]!==void 0&&i[n].toString()==="NaN"?r.setAttribute(n,0):r.setAttribute(n,i[n]);return this._activeParent().appendChild(r),r}},_getTextParts:function(t,i,r){var n={width:0,height:0,parts:[]};if(t===void 0)return n;var s=.6,a=t.toString().split("<br>"),u=this._activeParent(),c=document.createElementNS(this._svgns,"text");this.attr(c,r);for(var d=0;d<a.length;d++){var m=a[d],v=c.ownerDocument.createTextNode(m);c.appendChild(v),u.appendChild(c);var _;try{_=c.getBBox()}catch{}var S=e.jqx._rup(_.width),l=e.jqx._rup(_.height*s);c.removeChild(v),n.width=Math.max(n.width,S),n.height+=l+(d>0?4:0),n.parts.push({width:S,height:l,text:m})}return u.removeChild(c),n},_measureText:function(t,i,r,n){return e.jqx.commonRenderer.measureText(t,i,r,n,this)},measureText:function(t,i,r){return this._measureText(t,i,r,!1)},text:function(t,i,r,n,s,a,u,c,d,m,v){var _=this._measureText(t,a,u,!0),S=_.textPartsInfo,l=S.parts,w;if(d||(d="center"),m||(m="center"),(l.length>1||c)&&(w=this.beginGroup()),c){var C=this.createClipRect({x:e.jqx._rup(i)-1,y:e.jqx._rup(r)-1,width:e.jqx._rup(n)+2,height:e.jqx._rup(s)+2});this.setClip(w,C)}var L=this._activeParent(),A=0,O=0;A=S.width,O=S.height,(isNaN(n)||n<=0)&&(n=A),(isNaN(s)||s<=0)&&(s=O);var E=n||0,Q=s||0;if(!a||a==0){r+=O,m=="center"||m=="middle"?r+=(Q-O)/2:m=="bottom"&&(r+=Q-O),n||(n=A),s||(s=O);for(var L=this._activeParent(),je=0,H=l.length-1;H>=0;H--){var de=document.createElementNS(this._svgns,"text");this.attr(de,u),this.attr(de,{cursor:"default"});var D=de.ownerDocument.createTextNode(l[H].text);de.appendChild(D);var le=i,U=l[H].width,pe=l[H].height;d=="center"?le+=(E-U)/2:d=="right"&&(le+=E-U),this.attr(de,{x:e.jqx._rup(le),y:e.jqx._rup(r+je),width:e.jqx._rup(U),height:e.jqx._rup(pe)}),L.appendChild(de),je-=l[H].height+4}return w?(this.endGroup(),w):de}var Y=e.jqx.commonRenderer.alignTextInRect(i,r,n,s,A,O,d,m,a,v);i=Y.x,r=Y.y;var xe=this.shape("g",{transform:"translate("+i+","+r+")"}),Te=this.shape("g",{transform:"rotate("+a+")"});xe.appendChild(Te);for(var je=0,H=l.length-1;H>=0;H--){var we=document.createElementNS(this._svgns,"text");this.attr(we,u),this.attr(we,{cursor:"default"});var D=we.ownerDocument.createTextNode(l[H].text);we.appendChild(D);var le=0,U=l[H].width,pe=l[H].height;d=="center"?le+=(S.width-U)/2:d=="right"&&(le+=S.width-U),this.attr(we,{x:e.jqx._rup(le),y:e.jqx._rup(je),width:e.jqx._rup(U),height:e.jqx._rup(pe)}),Te.appendChild(we),je-=pe+4}return L.appendChild(xe),w&&this.endGroup(),xe},line:function(t,i,r,n,s){var a=this.shape("line",{x1:t,y1:i,x2:r,y2:n});return this.attr(a,s),a},path:function(t,i){var r=this.shape("path");return r.setAttribute("d",t),i&&this.attr(r,i),r},rect:function(t,i,r,n,s){t=e.jqx._ptrnd(t),i=e.jqx._ptrnd(i),r=Math.max(1,e.jqx._rnd(r,1,!1)),n=Math.max(1,e.jqx._rnd(n,1,!1));var a=this.shape("rect",{x:t,y:i,width:r,height:n});return s&&this.attr(a,s),a},circle:function(t,i,r,n){var s=this.shape("circle",{cx:t,cy:i,r});return n&&this.attr(s,n),s},pieSlicePath:function(t,i,r,n,s,a,u){return e.jqx.commonRenderer.pieSlicePath(t,i,r,n,s,a,u)},pieslice:function(t,i,r,n,s,a,u,c){var d=this.pieSlicePath(t,i,r,n,s,a,u),m=this.shape("path");return m.setAttribute("d",d),c&&this.attr(m,c),m},attr:function(t,i){if(!(!t||!i))for(var r in i)r=="textContent"?t.textContent=i[r]:t.setAttribute(r,i[r])},removeAttr:function(t,i){if(!(!t||!i))for(var r in i)r=="textContent"?t.textContent="":t.removeAttribute(i[r])},getAttr:function(t,i){return t.getAttribute(i)},_gradients:{},_toLinearGradient:function(t,i,r){var n="grd"+this._id+t.replace("#","")+(i?"v":"h"),s="url("+this.getWindowHref()+"#"+n+")";if(this._gradients[s])return s;var a=document.createElementNS(this._svgns,"linearGradient");this.attr(a,{x1:"0%",y1:"0%",x2:i?"0%":"100%",y2:i?"100%":"0%",id:n});for(var u=0;u<r.length;u++){var c=r[u],d=document.createElementNS(this._svgns,"stop"),m="stop-color:"+e.jqx.adjustColor(t,c[1]);this.attr(d,{offset:c[0]+"%",style:m}),a.appendChild(d)}return this._defs.appendChild(a),this._gradients[s]=!0,s},_toRadialGradient:function(t,i,r){var n="grd"+this._id+t.replace("#","")+"r"+(r!=null?r.key:""),s="url("+this.getWindowHref()+"#"+n+")";if(this._gradients[s])return s;var a=document.createElementNS(this._svgns,"radialGradient");r==null?this.attr(a,{cx:"50%",cy:"50%",r:"100%",fx:"50%",fy:"50%",id:n}):this.attr(a,{cx:r.x,cy:r.y,r:r.outerRadius,id:n,gradientUnits:"userSpaceOnUse"});for(var u=0;u<i.length;u++){var c=i[u],d=document.createElementNS(this._svgns,"stop"),m="stop-color:"+e.jqx.adjustColor(t,c[1]);this.attr(d,{offset:c[0]+"%",style:m}),a.appendChild(d)}return this._defs.appendChild(a),this._gradients[s]=!0,s}},e.jqx.vmlRenderer=function(){},e.jqx.vmlRenderer.prototype={init:function(t){var i=`<div class='chartContainer' style="position:relative;overflow:hidden;"><div>`;t.append(i),this.host=t;var r=t.find(".chartContainer");r[0].style.width=t.width()+"px",r[0].style.height=t.height()+"px";var n=!0;try{for(var s=0;s<document.namespaces.length;s++)if(document.namespaces[s].name=="v"&&document.namespaces[s].urn=="urn:schemas-microsoft-com:vml"){n=!1;break}}catch{return!1}return e.jqx.browser.msie&&parseInt(e.jqx.browser.version)<9&&document.childNodes&&document.childNodes.length>0&&document.childNodes[0].data&&document.childNodes[0].data.indexOf("DOCTYPE")!=-1?(n&&document.namespaces.add("v","urn:schemas-microsoft-com:vml"),this._ie8mode=!0):n&&(document.namespaces.add("v","urn:schemas-microsoft-com:vml"),document.createStyleSheet().cssText="v\\:* { behavior: url(#default#VML); display: inline-block; }"),this.canvas=r[0],this._width=Math.max(e.jqx._rup(r.width()),0),this._height=Math.max(e.jqx._rup(r.height()),0),r[0].style.width=this._width+2,r[0].style.height=this._height+2,this._id=new Date().getTime(),this.clear(),!0},getType:function(){return"VML"},refresh:function(){},getRect:function(){return{x:0,y:0,width:this._width,height:this._height}},getContainer:function(){var t=this.host.find(".chartContainer");return t},clear:function(){for(;this.canvas.childElementCount>0;)this.removeHandler(this.canvas.firstElementChild),this.canvas.removeChild(this.canvas.firstElementChild);this._gradients={},this._defaultParent=void 0},removeElement:function(t){t!=null&&(this.removeHandler(t),t.parentNode.removeChild(t))},_openGroups:[],beginGroup:function(){var t=this._activeParent(),i=document.createElement("v:group");return i.style.position="absolute",i.coordorigin="0,0",i.coordsize=this._width+","+this._height,i.style.left=0,i.style.top=0,i.style.width=this._width,i.style.height=this._height,t.appendChild(i),this._openGroups.push(i),i},endGroup:function(){this._openGroups.length!=0&&this._openGroups.pop()},_activeParent:function(){return this._openGroups.length==0?this.canvas:this._openGroups[this._openGroups.length-1]},createClipRect:function(t){var i=document.createElement("div");return i.style.height=t.height+1+"px",i.style.width=t.width+1+"px",i.style.position="absolute",i.style.left=t.x+"px",i.style.top=t.y+"px",i.style.overflow="hidden",this._clipId=this._clipId||0,i.id="cl"+this._id+"_"+(++this._clipId).toString(),this._activeParent().appendChild(i),i},setClip:function(t,i){},_clipId:0,addHandler:function(t,i,r){e(t).on?e(t).on(i,r):e(t).bind(i,r)},removeHandler:function(t,i,r){e(t).off?e(t).off(i,r):e(t).unbind(i,r)},on:function(t,i,r){this.addHandler(t,i,r)},off:function(t,i,r){this.removeHandler(t,i,r)},_getTextParts:function(t,i,r){var n={width:0,height:0,parts:[]},s=.6,a=t.toString().split("<br>"),u=this._activeParent(),c=document.createElement("v:textbox");this.attr(c,r),u.appendChild(c);for(var d=0;d<a.length;d++){var m=a[d],v=document.createElement("span");v.appendChild(document.createTextNode(m)),c.appendChild(v),r&&r.class&&(v.className=r.class);var _=e(c),S=e.jqx._rup(_.width()),l=e.jqx._rup(_.height()*s);if(l==0&&e.jqx.browser.msie&&parseInt(e.jqx.browser.version)<9){var w=_.css("font-size");w&&(l=parseInt(w),isNaN(l)&&(l=0))}c.removeChild(v),n.width=Math.max(n.width,S),n.height+=l+(d>0?2:0),n.parts.push({width:S,height:l,text:m})}return u.removeChild(c),n},_measureText:function(t,i,r,n){return Math.abs(i)>45?i=90:i=0,e.jqx.commonRenderer.measureText(t,i,r,n,this)},measureText:function(t,i,r){return this._measureText(t,i,r,!1)},text:function(t,i,r,n,s,a,u,c,d,m){u&&u.stroke&&u.stroke;var v=this._measureText(t,a,u,!0),_=v.textPartsInfo,S=_.parts,l=v.width,w=v.height;(isNaN(n)||n==0)&&(n=l),(isNaN(s)||s==0)&&(s=w);var C;if(d||(d="center"),m||(m="center"),(S.length>0||c)&&(C=this.beginGroup()),c){var L=this.createClipRect({x:e.jqx._rup(i),y:e.jqx._rup(r),width:e.jqx._rup(n),height:e.jqx._rup(s)});this.setClip(C,L)}var A=this._activeParent(),O=n||0,E=s||0;Math.abs(a)>45?a=90:a=0;var Q=0,H=0;d=="center"?Q+=(O-l)/2:d=="right"&&(Q+=O-l),m=="center"?H=(E-w)/2:m=="bottom"&&(H=E-w),a==0?(r+=w+H,i+=Q):(i+=l+Q,r+=H);for(var de=0,D,le=S.length-1;le>=0;le--){var U=S[le],pe=(l-U.width)/2;a==0&&d=="left"?pe=0:a==0&&d=="right"?pe=l-U.width:a==90&&(pe=(w-U.width)/2);var Y=de-U.height;H=a==90?pe:Y,Q=a==90?Y:pe,D=document.createElement("v:textbox"),D.style.position="absolute",D.style.left=e.jqx._rup(i+Q),D.style.top=e.jqx._rup(r+H),D.style.width=e.jqx._rup(U.width),D.style.height=e.jqx._rup(U.height),a==90&&(D.style.filter="progid:DXImageTransform.Microsoft.BasicImage(rotation=3)",D.style.height=e.jqx._rup(U.height)+5);var xe=document.createElement("span");xe.appendChild(document.createTextNode(U.text)),u&&u.class&&(xe.className=u.class),D.appendChild(xe),A.appendChild(D),de-=U.height+(le>0?2:0)}return C?(this.endGroup(),A):D},shape:function(t,i){var r=document.createElement(this._createElementMarkup(t));if(!!r){for(var n in i)r.setAttribute(n,i[n]);return this._activeParent().appendChild(r),r}},line:function(t,i,r,n,s){var a="M "+t+","+i+" L "+r+","+n+" X E",u=this.path(a);return this.attr(u,s),u},_createElementMarkup:function(t){var i="<v:"+t+' style=""></v:'+t+">";return this._ie8mode&&(i=i.replace('style=""','style="behavior: url(#default#VML);"')),i},path:function(t,i){var r=document.createElement(this._createElementMarkup("shape"));return r.style.position="absolute",r.coordsize=this._width+" "+this._height,r.coordorigin="0 0",r.style.width=parseInt(this._width),r.style.height=parseInt(this._height),r.style.left=0+"px",r.style.top=0+"px",r.setAttribute("path",t),this._activeParent().appendChild(r),i&&this.attr(r,i),r},rect:function(t,i,r,n,s){t=e.jqx._ptrnd(t),i=e.jqx._ptrnd(i),r=e.jqx._rup(r),n=e.jqx._rup(n);var a=this.shape("rect",s);return a.style.position="absolute",a.style.left=t,a.style.top=i,a.style.width=r,a.style.height=n,a.strokeweight=0,s&&this.attr(a,s),a},circle:function(t,i,r,n){var s=this.shape("oval");return t=e.jqx._ptrnd(t-r),i=e.jqx._ptrnd(i-r),r=e.jqx._rup(r),s.style.position="absolute",s.style.left=t,s.style.top=i,s.style.width=r*2,s.style.height=r*2,n&&this.attr(s,n),s},updateCircle:function(t,i,r,n){i==null&&(i=parseFloat(t.style.left)+parseFloat(t.style.width)/2),r==null&&(r=parseFloat(t.style.top)+parseFloat(t.style.height)/2),n==null&&(n=parseFloat(t.width)/2),i=e.jqx._ptrnd(i-n),r=e.jqx._ptrnd(r-n),n=e.jqx._rup(n),t.style.left=i,t.style.top=r,t.style.width=n*2,t.style.height=n*2},pieSlicePath:function(t,i,r,n,s,a,u){n||(n=1);var c=Math.abs(s-a);c>360&&(s=0,a=360);var d=s*Math.PI*2/360,m=a*Math.PI*2/360,v=t,_=i,S=!isNaN(r)&&r>0;if(S&&(u=0),u>0){var l=c/2+s,w=l*Math.PI*2/360;t+=u*Math.cos(w),i-=u*Math.sin(w)}if(S){var C=r;v=e.jqx._ptrnd(t+C*Math.cos(d)),_=e.jqx._ptrnd(i-C*Math.sin(d)),e.jqx._ptrnd(t+C*Math.cos(m)),e.jqx._ptrnd(i-C*Math.sin(m))}e.jqx._ptrnd(t+n*Math.cos(d));var L=e.jqx._ptrnd(t+n*Math.cos(m));e.jqx._ptrnd(i-n*Math.sin(d));var A=e.jqx._ptrnd(i-n*Math.sin(m));n=e.jqx._ptrnd(n),r=e.jqx._ptrnd(r),t=e.jqx._ptrnd(t),i=e.jqx._ptrnd(i);var O=Math.round(s*65535),E=Math.round((a-s)*65536);r<0&&(r=1);var Q="";return S?(Q="M"+v+" "+_,Q+=" AE "+t+" "+i+" "+r+" "+r+" "+O+" "+E,Q+=" L "+L+" "+A,O=Math.round((s-a)*65535),E=Math.round(a*65536),Q+=" AE "+t+" "+i+" "+n+" "+n+" "+E+" "+O,Q+=" L "+v+" "+_):(Q="M"+t+" "+i,Q+=" AE "+t+" "+i+" "+n+" "+n+" "+O+" "+E),Q+=" X E",Q},pieslice:function(t,i,r,n,s,a,u,c){var d=this.pieSlicePath(t,i,r,n,s,a,u),m=this.path(d,c);return c&&this.attr(m,c),m},_keymap:[{svg:"fill",vml:"fillcolor"},{svg:"stroke",vml:"strokecolor"},{svg:"stroke-width",vml:"strokeweight"},{svg:"stroke-dasharray",vml:"dashstyle"},{svg:"fill-opacity",vml:"fillopacity"},{svg:"stroke-opacity",vml:"strokeopacity"},{svg:"opacity",vml:"opacity"},{svg:"cx",vml:"style.left"},{svg:"cy",vml:"style.top"},{svg:"height",vml:"style.height"},{svg:"width",vml:"style.width"},{svg:"x",vml:"style.left"},{svg:"y",vml:"style.top"},{svg:"d",vml:"v"},{svg:"display",vml:"style.display"}],_translateParam:function(t){for(var i in this._keymap)if(this._keymap[i].svg==t)return this._keymap[i].vml;return t},attr:function(t,i){if(!(!t||!i))for(var r in i){var n=this._translateParam(r);i[r]!=null&&(n=="fillcolor"&&i[r].indexOf("grd")!=-1?t.type=i[r]:n=="fillcolor"&&i[r]=="transparent"?(t.style.filter="alpha(opacity=0)",t["-ms-filter"]="progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"):n=="opacity"||n=="fillopacity"?t.fill&&(t.fill.opacity=i[r]):n=="textContent"?t.children[0].innerText=i[r]:n=="dashstyle"?t.dashstyle=i[r].replace(","," "):n.indexOf("style.")==-1?t[n]=i[r]:t.style[n.replace("style.","")]=i[r])}},removeAttr:function(t,i){if(!(!t||!i))for(var r in i)t.removeAttribute(i[r])},getAttr:function(t,i){var r=this._translateParam(i);return r=="opacity"||r=="fillopacity"?t.fill?t.fill.opacity:1:r.indexOf("style.")==-1?t[r]:t.style[r.replace("style.","")]},_gradients:{},_toRadialGradient:function(t,i,r){return t},_toLinearGradient:function(t,i,r){if(this._ie8mode)return t;var n="grd"+t.replace("#","")+(i?"v":"h"),s="#"+n;if(this._gradients[s])return s;var a=document.createElement(this._createElementMarkup("fill"));a.type="gradient",a.method="linear",a.angle=i?0:90;for(var u="",c=0;c<r.length;c++){var d=r[c];d>0&&(u+=", "),u+=d[0]+"% "+e.jqx.adjustColor(t,d[1])}a.colors=u;var m=document.createElement(this._createElementMarkup("shapetype"));return m.appendChild(a),m.id=n,this.canvas.appendChild(m),s}},e.jqx.HTML5Renderer=function(){},e.jqx.ptrnd=function(t){if(Math.abs(Math.round(t)-t)==.5)return t;var i=Math.round(t);return i<t&&(i=i-1),i+.5},e.jqx.HTML5Renderer.prototype={init:function(t){try{this.host=t,this.host.append("<div class='chartContainer' style='position:relative' onselectstart='return false;'><canvas id='__jqxCanvasWrap' style='width:100%; height: 100%;'/></div>"),this.canvas=t.find("#__jqxCanvasWrap"),this.canvas[0].width=t.width(),this.canvas[0].height=t.height(),this.ctx=this.canvas[0].getContext("2d"),this._elements={},this._maxId=0,this._gradientId=0,this._gradients={},this._currentPoint={x:0,y:0},this._lastCmd="",this._pos=0}catch{return!1}return!0},getType:function(){return"HTML5"},getContainer:function(){var t=this.host.find(".chartContainer");return t},getRect:function(){return{x:0,y:0,width:this.canvas[0].width-1,height:this.canvas[0].height-1}},beginGroup:function(){},endGroup:function(){},setClip:function(){},createClipRect:function(t){},addHandler:function(t,i,r){},removeHandler:function(t,i,r){},on:function(t,i,r){this.addHandler(t,i,r)},off:function(t,i,r){this.removeHandler(t,i,r)},clear:function(){this._elements={},this._maxId=0,this._renderers._gradients={},this._gradientId=0},removeElement:function(t){t!=null&&this._elements[t.id]&&delete this._elements[t.id]},shape:function(t,i){var r={type:t,id:this._maxId++};for(var n in i)r[n]=i[n];return this._elements[r.id]=r,r},attr:function(t,i){for(var r in i)t[r]=i[r]},removeAttr:function(t,i){for(var r in i)delete t[i[r]]},rect:function(t,i,r,n,s){if(isNaN(t))throw'Invalid value for "x"';if(isNaN(i))throw'Invalid value for "y"';if(isNaN(r))throw'Invalid value for "width"';if(isNaN(n))throw'Invalid value for "height"';var a=this.shape("rect",{x:t,y:i,width:r,height:n});return s&&this.attr(a,s),a},path:function(t,i){var r=this.shape("path",i);return this.attr(r,{d:t}),r},line:function(t,i,r,n,s){return this.path("M "+t+","+i+" L "+r+","+n,s)},circle:function(t,i,r,n){var s=this.shape("circle",{x:t,y:i,r});return n&&this.attr(s,n),s},pieSlicePath:function(t,i,r,n,s,a,u){return e.jqx.commonRenderer.pieSlicePath(t,i,r,n,s,a,u)},pieslice:function(t,i,r,n,s,a,u,c){var d=this.path(this.pieSlicePath(t,i,r,n,s,a,u),c);return this.attr(d,{x:t,y:i,innerRadius:r,outerRadius:n,angleFrom:s,angleTo:a}),d},_getCSSStyle:function(t){var i=document.styleSheets;try{for(var r=0;r<i.length;r++)for(var n=0;i[r].cssRules&&n<i[r].cssRules.length;n++)if(i[r].cssRules[n].selectorText.indexOf(t)!=-1)return i[r].cssRules[n].style}catch{}return{}},_getTextParts:function(t,i,r){var n="Arial",s="10pt",a="";if(r&&r.class){var u=this._getCSSStyle(r.class);u.fontSize&&(s=u.fontSize),u.fontFamily&&(n=u.fontFamily),u.fontWeight&&(a=u.fontWeight)}this.ctx.font=a+" "+s+" "+n;for(var c={width:0,height:0,parts:[]},d=.6,m=t.toString().split("<br>"),v=0;v<m.length;v++){var _=m[v],S=this.ctx.measureText(_).width,l=document.createElement("span.jqxchart");l.font=this.ctx.font,l.textContent=_,document.body.appendChild(l);var w=l.offsetHeight*d;document.body.removeChild(l),c.width=Math.max(c.width,e.jqx._rup(S)),c.height+=w+(v>0?4:0),c.parts.push({width:S,height:w,text:_})}return c},_measureText:function(t,i,r,n){return e.jqx.commonRenderer.measureText(t,i,r,n,this)},measureText:function(t,i,r){return this._measureText(t,i,r,!1)},text:function(t,i,r,n,s,a,u,c,d,m,v){var _=this.shape("text",{text:t,x:i,y:r,width:n,height:s,angle:a,clip:c,halign:d,valign:m,rotateAround:v});if(u&&this.attr(_,u),_.fontFamily="Arial",_.fontSize="10pt",_.fontWeight="",_.color="#000000",u&&u.class){var S=this._getCSSStyle(u.class);_.fontFamily=S.fontFamily||_.fontFamily,_.fontSize=S.fontSize||_.fontSize,_.fontWeight=S.fontWeight||_.fontWeight,_.color=S.color||_.color}var l=this._measureText(t,0,u,!0);return this.attr(_,{textPartsInfo:l.textPartsInfo,textWidth:l.width,textHeight:l.height}),(n<=0||isNaN(n))&&this.attr(_,{width:l.width}),(s<=0||isNaN(s))&&this.attr(_,{height:l.height}),_},_toLinearGradient:function(t,i,r){if(this._renderers._gradients[t])return t;for(var n=[],s=0;s<r.length;s++)n.push({percent:r[s][0]/100,color:e.jqx.adjustColor(t,r[s][1])});var a="gr"+this._gradientId++;return this.createGradient(a,i?"vertical":"horizontal",n),a},_toRadialGradient:function(t,i){if(this._renderers._gradients[t])return t;for(var r=[],n=0;n<i.length;n++)r.push({percent:i[n][0]/100,color:e.jqx.adjustColor(t,i[n][1])});var s="gr"+this._gradientId++;return this.createGradient(s,"radial",r),s},createGradient:function(t,i,r){this._renderers.createGradient(this,t,i,r)},_renderers:{createGradient:function(t,i,r,n){t._gradients[i]={orientation:r,colorStops:n}},setStroke:function(t,i){var r=t.ctx;r.strokeStyle=i.stroke||"transparent",r.lineWidth=i["stroke-width"]||1,i["fill-opacity"]!=null?r.globalAlpha=i["fill-opacity"]:i.opacity!=null?r.globalAlpha=i.opacity:r.globalAlpha=1,r.setLineDash&&(i["stroke-dasharray"]?r.setLineDash(i["stroke-dasharray"].split(",")):r.setLineDash([]))},setFillStyle:function(t,i){var r=t.ctx;if(r.fillStyle="transparent",i["fill-opacity"]!=null?r.globalAlpha=i["fill-opacity"]:i.opacity!=null?r.globalAlpha=i.opacity:r.globalAlpha=1,i.fill&&i.fill.indexOf("#")==-1&&t._gradients[i.fill]){var n=t._gradients[i.fill].orientation!="horizontal",s=t._gradients[i.fill].orientation=="radial",a=e.jqx.ptrnd(i.x),u=e.jqx.ptrnd(i.y),c=e.jqx.ptrnd(i.x+(n?0:i.width)),d=e.jqx.ptrnd(i.y+(n?i.height:0)),m;if((i.type=="circle"||i.type=="path"||i.type=="rect")&&s){var v=e.jqx.ptrnd(i.x),_=e.jqx.ptrnd(i.y),S=i.innerRadius||0,l=i.outerRadius||i.r||0;i.type=="rect"&&(v+=i.width/2,_+=i.height/2),m=r.createRadialGradient(v,_,S,v,_,l)}s||((isNaN(a)||isNaN(c)||isNaN(u)||isNaN(d))&&(a=0,u=0,c=n?0:r.canvas.width,d=n?r.canvas.height:0),m=r.createLinearGradient(a,u,c,d));for(var w=t._gradients[i.fill].colorStops,C=0;C<w.length;C++)m.addColorStop(w[C].percent,w[C].color);r.fillStyle=m}else i.fill&&(r.fillStyle=i.fill)},rect:function(t,i){i.width==0||i.height==0||(t.fillRect(e.jqx.ptrnd(i.x),e.jqx.ptrnd(i.y),i.width,i.height),t.strokeRect(e.jqx.ptrnd(i.x),e.jqx.ptrnd(i.y),i.width,i.height))},circle:function(t,i){i.r!=0&&(t.beginPath(),t.arc(e.jqx.ptrnd(i.x),e.jqx.ptrnd(i.y),i.r,0,Math.PI*2,!1),t.closePath(),t.fill(),t.stroke())},_parsePoint:function(t){var i=this._parseNumber(t),r=this._parseNumber(t);return{x:i,y:r}},_parseNumber:function(t){for(var i=!1,r=this._pos;r<t.length;r++){if(t[r]>="0"&&t[r]<="9"||t[r]=="."||t[r]=="e"||t[r]=="-"&&!i||t[r]=="-"&&r>=1&&t[r-1]=="e"){i=!0;continue}if(!i&&(t[r]==" "||t[r]==",")){this._pos++;continue}break}var n=parseFloat(t.substring(this._pos,r));if(!isNaN(n))return this._pos=r,n},_cmds:"mlcazq",_isRelativeCmd:function(t){return e.jqx.string.contains(this._cmds,t)},_parseCmd:function(t){for(var i=this._pos;i<t.length;i++){if(e.jqx.string.containsIgnoreCase(this._cmds,t[i]))return this._pos=i+1,this._lastCmd=t[i],this._lastCmd;if(t[i]==" "){this._pos++;continue}if(t[i]>="0"&&t[i]<="9"){if(this._pos=i,this._lastCmd=="")break;return this._lastCmd}}},_toAbsolutePoint:function(t){return{x:this._currentPoint.x+t.x,y:this._currentPoint.y+t.y}},path:function(t,i){var r=i.d;this._pos=0,this._lastCmd="";var n=void 0;for(this._currentPoint={x:0,y:0},t.beginPath();this._pos<r.length;){var s=this._parseCmd(r);if(s==null)break;if(s=="M"||s=="m"){var a=this._parsePoint(r);if(a==null)break;t.moveTo(a.x,a.y),this._currentPoint=a,n==null&&(n=a);continue}if(s=="L"||s=="l"){var a=this._parsePoint(r);if(a==null)break;t.lineTo(a.x,a.y),this._currentPoint=a;continue}if(s=="A"||s=="a"){var u=this._parseNumber(r),c=this._parseNumber(r),d=this._parseNumber(r)*(Math.PI/180),m=this._parseNumber(r),v=this._parseNumber(r),_=this._parsePoint(r);if(this._isRelativeCmd(s)&&(_=this._toAbsolutePoint(_)),u==0||c==0)continue;var S=this._currentPoint,l={x:Math.cos(d)*(S.x-_.x)/2+Math.sin(d)*(S.y-_.y)/2,y:-Math.sin(d)*(S.x-_.x)/2+Math.cos(d)*(S.y-_.y)/2},w=Math.pow(l.x,2)/Math.pow(u,2)+Math.pow(l.y,2)/Math.pow(c,2);w>1&&(u*=Math.sqrt(w),c*=Math.sqrt(w));var C=(m==v?-1:1)*Math.sqrt((Math.pow(u,2)*Math.pow(c,2)-Math.pow(u,2)*Math.pow(l.y,2)-Math.pow(c,2)*Math.pow(l.x,2))/(Math.pow(u,2)*Math.pow(l.y,2)+Math.pow(c,2)*Math.pow(l.x,2)));isNaN(C)&&(C=0);var L={x:C*u*l.y/c,y:C*-c*l.x/u},A={x:(S.x+_.x)/2+Math.cos(d)*L.x-Math.sin(d)*L.y,y:(S.y+_.y)/2+Math.sin(d)*L.x+Math.cos(d)*L.y},O=function(je){return Math.sqrt(Math.pow(je[0],2)+Math.pow(je[1],2))},le=function(je,we){return(je[0]*we[0]+je[1]*we[1])/(O(je)*O(we))},E=function(je,we){return(je[0]*we[1]<je[1]*we[0]?-1:1)*Math.acos(le(je,we))},Q=E([1,0],[(l.x-L.x)/u,(l.y-L.y)/c]),H=[(l.x-L.x)/u,(l.y-L.y)/c],de=[(-l.x-L.x)/u,(-l.y-L.y)/c],D=E(H,de);le(H,de)<=-1&&(D=Math.PI),le(H,de)>=1&&(D=0),v==0&&D>0&&(D=D-2*Math.PI),v==1&&D<0&&(D=D+2*Math.PI);var le=u>c?u:c,U=u>c?1:u/c,pe=u>c?c/u:1;t.translate(A.x,A.y),t.rotate(d),t.scale(U,pe),t.arc(0,0,le,Q,Q+D,1-v),t.scale(1/U,1/pe),t.rotate(-d),t.translate(-A.x,-A.y);continue}if((s=="Z"||s=="z")&&n!=null){t.lineTo(n.x,n.y),this._currentPoint=n;continue}if(s=="C"||s=="c"){var Y=this._parsePoint(r),xe=this._parsePoint(r),Te=this._parsePoint(r);t.bezierCurveTo(Y.x,Y.y,xe.x,xe.y,Te.x,Te.y),this._currentPoint=Te;continue}if(s=="Q"||s=="q"){var Y=this._parsePoint(r),xe=this._parsePoint(r);t.quadraticCurveTo(Y.x,Y.y,xe.x,xe.y),this._currentPoint=xe;continue}}t.fill(),t.stroke(),t.closePath()},text:function(t,i){var r=e.jqx.ptrnd(i.x),n=e.jqx.ptrnd(i.y),s=e.jqx.ptrnd(i.width),a=e.jqx.ptrnd(i.height),u=i.halign,c=i.valign,d=i.angle,m=i.rotateAround,v=i.textPartsInfo,_=v.parts,S=i.clip;S==null&&(S=!0),t.save(),u||(u="center"),c||(c="center"),S&&(t.rect(r,n,s,a),t.clip());var l=i.textWidth,w=i.textHeight,C=s||0,L=a||0;if(t.fillStyle=i.color,t.font=i.fontWeight+" "+i.fontSize+" "+i.fontFamily,!d||d==0){n+=w,c=="center"||c=="middle"?n+=(L-w)/2:c=="bottom"&&(n+=L-w),s||(s=l),a||(a=w);for(var D=0,A=_.length-1;A>=0;A--){var O=_[A],E=r,Q=_[A].width;_[A].height,u=="center"?E+=(C-Q)/2:u=="right"&&(E+=C-Q),t.fillText(O.text,E,n+D),D-=O.height+(A>0?4:0)}t.restore();return}var H=e.jqx.commonRenderer.alignTextInRect(r,n,s,a,l,w,u,c,d,m);r=H.x,n=H.y;var de=d*Math.PI*2/360;t.translate(r,n),t.rotate(de);for(var D=0,le=v.width,A=_.length-1;A>=0;A--){var E=0;u=="center"?E+=(le-_[A].width)/2:u=="right"&&(E+=le-_[A].width),t.fillText(_[A].text,E,D),D-=_[A].height+4}t.restore()}},refresh:function(){this.ctx.clearRect(0,0,this.canvas[0].width,this.canvas[0].height);for(var t in this._elements){var i=this._elements[t];this._renderers.setFillStyle(this,i),this._renderers.setStroke(this,i),this._renderers[this._elements[t].type](this.ctx,i)}}},e.jqx.createRenderer=function(t,i){var r=t,n=r.renderer=null;if(document.createElementNS&&r.renderEngine!="HTML5"&&r.renderEngine!="VML"&&(n=new e.jqx.svgRenderer,!n.init(i))){if(r.renderEngine=="SVG")throw"Your browser does not support SVG";return null}if(n==null&&r.renderEngine!="HTML5"){if(n=new e.jqx.vmlRenderer,!n.init(i)){if(r.renderEngine=="VML")throw"Your browser does not support VML";return null}r._isVML=!0}if(n==null&&(r.renderEngine=="HTML5"||r.renderEngine==null)&&(n=new e.jqx.HTML5Renderer,!n.init(i)))throw"Your browser does not support HTML5 Canvas";return r.renderer=n,n},e.jqx._widgetToImage=function(t,i,r,n,s,a){var u=t;if(!u)return!1;(r==null||r=="")&&(r="image."+i);var c=u.renderEngine,d=u.enableAnimations;if(u.enableAnimations=!1,u.renderEngine="HTML5",u.renderEngine!=c)try{u.refresh()}catch{return u.renderEngine=c,u.refresh(),u.enableAnimations=d,!1}var m=u.renderer.getContainer().find("canvas")[0],v=!0;e.isFunction(a)&&(v=a(t,m));var _=!0;return v&&(_=e.jqx.exportImage(m,i,r,n,s)),u.renderEngine!=c&&(u.renderEngine=c,u.refresh(),u.enableAnimations=d),_},e.jqx.getByPriority=function(t){for(var i=void 0,r=0;r<t.length&&i==null;r++)i==null&&t[r]!=null&&(i=t[r]);return i},e.jqx.exportImage=function(t,i,r,n,s){if(!t)return!1;var a=i.toLowerCase()==="pdf";if(a&&(i="jpeg"),(r==null||r=="")&&(r="image."+i),n==null||n=="")throw"Please specifiy export server";var u=!0;try{if(t){var c=t.toDataURL("image/"+i);if(a){e.jqx.pdfExport||(e.jqx.pdfExport={orientation:"portrait",paperSize:"a4"});var d=595;switch(e.jqx.pdfExport.paperSize){case"legal":var d=612;e.jqx.pdfExport.orientation!=="portrait"&&(d=1008);break;case"letter":var d=612;e.jqx.pdfExport.orientation!=="portrait"&&(d=792);break;case"a3":var d=841;e.jqx.pdfExport.orientation!=="portrait"&&(d=1190);break;case"a4":var d=595;e.jqx.pdfExport.orientation!=="portrait"&&(d=842);break;case"a5":var d=420;e.jqx.pdfExport.orientation!=="portrait"&&(d=595);break}var m=e(t).width(),v=m*72/96;v>=d-20&&(v=d-20);var _;try{var _=new window.pdfDataExport(e.jqx.pdfExport.orientation,"pt",e.jqx.pdfExport.paperSize)}catch{var _=new window.jqxPdfDataExport(e.jqx.pdfExport.orientation,"pt",e.jqx.pdfExport.paperSize)}_.addImage(c,"JPEG",10,10,v,0),_.save(r);return}if(c=c.replace("data:image/"+i+";base64,",""),s)e.ajax({dataType:"string",url:n,type:"POST",data:{content:c,fname:r},async:!1,success:function(C,L,A){u=!0},error:function(C,L,A){u=!1}});else{var S=document.createElement("form");S.method="POST",S.action=n,S.style.display="none",document.body.appendChild(S);var l=document.createElement("input");l.name="fname",l.value=r,l.style.display="none";var w=document.createElement("input");w.name="content",w.value=c,w.style.display="none",S.appendChild(l),S.appendChild(w),S.submit(),document.body.removeChild(S),u=!0}}}catch{u=!1}return u}})(jqxBaseFramework);(function(e){window.jqxPlot=function(){},window.jqxPlot.prototype={get:function(t,i,r){return r!==void 0?t[i][r]:t[i]},min:function(t,i){for(var r=NaN,n=0;n<t.length;n++){var s=this.get(t,n,i);(isNaN(r)||s<r)&&(r=s)}return r},max:function(t,i){for(var r=NaN,n=0;n<t.length;n++){var s=this.get(t,n,i);(isNaN(r)||s>r)&&(r=s)}return r},sum:function(t,i){for(var r=0,n=0;n<t.length;n++){var s=this.get(t,n,i);isNaN(s)||(r+=s)}return r},count:function(t,i){for(var r=0,n=0;n<t.length;n++){var s=this.get(t,n,i);isNaN(s)||r++}return r},avg:function(t,i){return this.sum(t,i)/Math.max(1,this.count(t,i))},filter:function(t,i){if(!i)return t;for(var r=[],n=0;n<t.length;n++)i(t[n])&&r.push(t[n]);return r},scale:function(t,i,r,n){if(isNaN(t))return NaN;if((t<Math.min(i.min,i.max)||t>Math.max(i.min,i.max))&&(!n||n.ignore_range!==!0))return NaN;var s=NaN,a=1;if(i.type===void 0||i.type!="logarithmic"){var u=Math.abs(i.max-i.min);u||(u=1),a=Math.abs(t-Math.min(i.min,i.max))/u}else if(i.type==="logarithmic"){var c=i.base;isNaN(c)&&(c=10);var d=Math.min(i.min,i.max);d<=0&&(d=1);var m=Math.max(i.min,i.max);m<=0&&(m=1);var v=e.jqx.log(m,c);m=Math.pow(c,v);var _=e.jqx.log(d,c);d=Math.pow(c,_);var S=e.jqx.log(t,c);a=Math.abs(S-_)/(v-_)}if(r.type==="logarithmic"){var c=r.base;isNaN(c)&&(c=10);var v=e.jqx.log(r.max,c),_=e.jqx.log(r.min,c);r.flip&&(a=1-a);var S=Math.min(_,v)+a*Math.abs(v-_);s=Math.pow(c,S)}else s=Math.min(r.min,r.max)+a*Math.abs(r.max-r.min),r.flip&&(s=Math.max(r.min,r.max)-s+r.min);return s},axis:function(t,i,r){if(r<=1)return[i,t];(isNaN(r)||r<2)&&(r=2);for(var n=0;Math.round(t)!=t&&Math.round(i)!=i&&n<10;)t*=10,i*=10,n++;for(var s=(i-t)/r;n<10&&Math.round(s)!=s;)t*=10,i*=10,s*=10,n++;for(var a=[1,2,5],u=0;;){var c=u%a.length,d=Math.floor(u/a.length),m=Math.pow(10,d)*a[c];c=(u+1)%a.length,d=Math.floor((u+1)/a.length);var v=Math.pow(10,d)*a[c];if(s>=m&&s<v)break;u++}for(var _=v,S=[],l=e.jqx._rnd(t,_,!1),w=n<=0?1:Math.pow(10,n);l<i+_;)S.push(l/w),l+=_;return S}}})(jqxBaseFramework);(function(e){var t={defineInstance:function(){var n={width:350,height:350,radius:"50%",endAngle:270,startAngle:30,int64:!1,editableLabels:!1,value:0,min:0,max:220,disabled:!1,ticksDistance:"20%",colorScheme:"scheme01",animationDuration:400,showRanges:!0,easing:"easeOutCubic",labels:null,pointer:null,cap:null,caption:null,border:null,ticksMinor:null,ticksMajor:null,tickMode:"default",niceInterval:!1,style:null,ranges:[],_radius:100,_border:null,_radiusDifference:2,_pointer:null,_labels:[],_cap:null,_ticks:[],_ranges:[],_gauge:null,_caption:null,_animationTimeout:10,renderer:null,_animations:[],aria:{"aria-valuenow":{name:"value",type:"number"},"aria-valuemin":{name:"min",type:"number"},"aria-valuemax":{name:"max",type:"number"},"aria-disabled":{name:"disabled",type:"boolean"}}};return this===e.jqx._jqxGauge.prototype||e.extend(!0,this,n),n},createInstance:function(n){var s=this;if(s.that=this,e.jqx.aria(s),s._radius=s.radius,s.endAngle=s.endAngle*Math.PI/180+Math.PI/2,s.startAngle=s.startAngle*Math.PI/180+Math.PI/2,s.int64==="s"){if(!e.jqx.longInt)throw new Error("jqxGauge: Missing reference to jqxmath.js");e.jqx.longInt(s),s._value64=new e.jqx.math().fromString(s.value.toString(),10),s._min64=new e.jqx.math().fromString(s.min.toString(),10),s._max64=new e.jqx.math().fromString(s.max.toString(),10)}else if(s.int64==="u"){try{BigNumber}catch{throw new Error("jqxGauge: Missing reference to jqxmath.js")}s._value64=new BigNumber(s.value),s._min64=new BigNumber(s.min),s._max64=new BigNumber(s.max)}else s.value=new Number(s.value);s._refresh(),s.renderer.getContainer().css("overflow","hidden"),s.int64!==!1?s.setValue(s._value64,0):s.setValue(s.value,0),e.jqx.utilities.resize(s.host,function(){s._refresh(!0)}),s.host.addClass(s.toThemeProperty("jqx-widget"))},_validateEasing:function(){return!!e.easing[this.easing]},_validateProperties:function(){if(this.startAngle===this.endAngle)throw new Error("The end angle can not be equal to the start angle!");this._validateEasing()||(this.easing="linear"),this.ticksDistance=this._validatePercentage(this.ticksDistance,"20%"),this.border=this._borderConstructor(this.border,this),this.style=this.style||{fill:"#ffffff",stroke:"#E0E0E0"},this.ticksMinor=new this._tickConstructor(this.ticksMinor,this),this.ticksMajor=new this._tickConstructor(this.ticksMajor,this),this.cap=new this._capConstructor(this.cap,this),this.pointer=new this._pointerConstructor(this.pointer,this),this.labels=new this._labelsConstructor(this.labels,this),this.caption=new this._captionConstructor(this.caption,this);for(var n=0;n<this.ranges.length;n+=1)this.ranges[n]=new this._rangeConstructor(this.ranges[n],this)},_hostInit:function(n){var s=this._getScale(this.width,"width",this.host.parent()),a=this._getScale(this.height,"height",this.host.parent()),u=this._outerBorderOffset(),c=this.host;c.width(s),c.height(a),this.radius=0;var d=(this._getScale(this._radius,"width",this.host)||s/2)-u,m=(this._getScale(this._radius,"height",this.host)||a/2)-u;if(this.radius=Math.min(d,m),this._originalRadius=parseInt(this.radius,10)-this._radiusDifference,this._innerRadius=this._originalRadius,this.border&&(this._innerRadius-=this._getSize(this.border.size)),n||(c[0].innerHTML="<div />"),this._gaugeParent=c.children(),this._gaugeParent.width(s),this._gaugeParent.height(a),!n)this.renderer.init(this._gaugeParent);else{var v=this.renderer.getContainer();v[0].style.width=s+"px",v[0].style.height=a+"px"}},_initRenderer:function(n){if(!e.jqx.createRenderer)throw"Please include a reference to jqxdraw.js";return e.jqx.createRenderer(this,n)},_refresh:function(n){var s=this;if(n){s._ticksIterator=0,s._labelsIterator=0,s._ranges&&e(s._ranges).remove(),s._pointer&&e(s._pointer).remove(),s._pointer=null,s._ranges=[],s.niceInterval&&(s._labels&&e(s._labels).remove(),s._labels=[],s._ticks&&(e(s._ticks).remove(),s._ticks=[])),s._hostInit(n),s._render(n);return}s.renderer||(s._isVML=!1,s.host.empty(),s._initRenderer(s.host));var a=s.renderer;!a||(s._ranges&&e(s._ranges).remove(),s._pointer&&e(s._pointer).remove(),s._labels&&e(s._labels).remove(),s._cap&&e(s._cap).remove(),s._ticks&&e(s._ticks).remove(),s._border&&e(s._border).remove(),s._caption&&e(s._caption).remove(),s._caption=null,s._labels=[],s._cap=null,s._ticks=[],s._ranges=[],s._border=null,s._pointer=null,s._validateProperties(),s._removeElements(),s._hostInit(),s._render(),s.setValue(this.value,0),s._editableLabels())},val:function(n){if(arguments.length==0||typeof n=="object")return this.value;this.setValue(n,0)},refresh:function(n){n!==!0&&this._refresh.apply(this,Array.prototype.slice(arguments))},_outerBorderOffset:function(){var n=parseInt(this.border.style["stroke-width"],10)||1;return n/2},_removeCollection:function(n){for(var s=0;s<n.length;s+=1)e(n[s]).remove();n=[]},_render:function(n){this._addBorder(n),this._addGauge(n),this._addRanges(n),this.niceInterval?this._addTicks():(this._addTicks(n),this._addLabels(n)),this._styleLabels(),this._addCaption(n),this._addPointer(n),this._addCap(n)},_addBorder:function(n){if(!!this.border.visible){if(n){var a=this._outerBorderOffset();this._border.setAttribute("cx",this._originalRadius+a),this._border.setAttribute("cy",this._originalRadius+a),this._border.setAttribute("r",this._originalRadius);return}var s=this.border.style.fill,a=this._outerBorderOffset();s||(s="#BABABA"),this.border.showGradient&&(s.indexOf("url")<0&&s.indexOf("#grd")<0?this._originalColor=s:s=this._originalColor,s=this.renderer._toLinearGradient(s,!0,[[0,1],[25,1.1],[50,1.5],[100,1]])),this._border=this.renderer.circle(this._originalRadius+a,this._originalRadius+a,this._originalRadius),this.border.style.fill=s,this.renderer.attr(this._border,this.border.style)}},_addGauge:function(n){var s=this._originalRadius;this.renderer._toLinearGradient("#ffffff",[[3,2],[100,1]],!0);var a=this._outerBorderOffset();n?(this._gauge.setAttribute("cx",s+a),this._gauge.setAttribute("cy",s+a),this._gauge.setAttribute("r",this._innerRadius)):(this._gauge=this.renderer.circle(s+a,s+a,this._innerRadius),this.renderer.attr(this._gauge,this.style))},_addCap:function(n){var s="visible",a=this._outerBorderOffset();this.cap.visible||(s="hidden");var u=this._originalRadius,c=this._getSize(this.cap.size),d;n?(this._cap.setAttribute("cx",u+a),this._cap.setAttribute("cy",u+a),this._cap.setAttribute("r",c),this._capCenter=[u,u]):(d=this.renderer.circle(u+a,u+a,c),this._capCenter=[u,u],this.renderer.attr(d,this.cap.style),e(d).css("visibility",s),this._cap=d)},_addTicks:function(n){var s=this,a=this.ticksMinor,u=this.ticksMajor,c,d,m,v={};if(u.visible===!1&&a.visible===!1&&this.labels.visible===!1)return;function _(Q){u.visible&&s._drawTick({angle:s._getAngleByValue(Q),distance:s._getDistance(s.ticksDistance),style:u.style,size:s._getSize(u.size),type:"major"},n)}function S(Q){a.visible&&s._drawTick({angle:s._getAngleByValue(Q),distance:s._getDistance(s.ticksDistance),style:a.style,size:s._getSize(a.size),type:"minor"},n)}function l(Q){s.labels.visible&&s._addLabel({angle:s._getAngleByValue(Q),value:d>=1?Q:new Number(Q).toFixed(2),distance:s._getDistance(s._getLabelsDistance()),style:s.labels.className},n)}var w=0;if(s.int64==="s")if(this.tickMode==="default"?this.niceInterval?(d=this._getNiceInterval("radial"),c=this._getNiceInterval("radial",!0)):(d=new e.jqx.math().fromString(u.interval.toString(),10),c=new e.jqx.math().fromString(a.interval.toString(),10)):(m=this._max64.subtract(this._min64),c=m.div(new e.jqx.math().fromString(a.number.toString(),10)),d=m.div(new e.jqx.math().fromString(u.number.toString(),10))),this.niceInterval){_(this._min64),l(this._min64);for(var C=this._min64.subtract(this._min64.modulo(d)).add(d),L,A=C;A.greaterThanOrEqual(this._min64);A=A.subtract(c))L=A;for(var O=L,E=C;(O.lessThan(this._max64)||E.lessThan(this._max64))&&(w+=1,!(w>250||(E.lessThanOrEqual(this._max64)&&(_(E),v[E.toString()]=!0,O.equals(C)?Math.abs(this._getAngleByValue(E)-this._getAngleByValue(this.min))*this._innerRadius>this._getMaxLabelSize().height&&l(E):(E.add(d).lessThan(this._max64)||Math.abs(this._getAngleByValue(E)-this._getAngleByValue(this.max))*this._innerRadius>this._getMaxLabelSize().height)&&l(E)),!v[O.toString()]&&O.lessThanOrEqual(s._max64)&&S(O),s._checkForOverflow(O,c)||s._checkForOverflow(E,d))));O=O.add(c),E=E.add(d));_(this._max64),l(this._max64)}else for(var O=new e.jqx.math().fromString(s.min.toString(),10),E=new e.jqx.math().fromString(s.min.toString(),10);(O.lessThanOrEqual(s._max64)||E.lessThanOrEqual(s._max64))&&(w+=1,!(w>250));O=O.add(c),E=E.add(d))E.lessThanOrEqual(s._max64)&&u.visible&&(_(E),v[E.toString()]=!0),!v[O.toString()]&&a.visible&&O.lessThanOrEqual(s._max64)&&S(O);else if(s.int64==="u")if(this.tickMode==="default"?this.niceInterval?(d=this._getNiceInterval("radial"),c=this._getNiceInterval("radial",!0)):(d=new BigNumber(u.interval),c=new BigNumber(a.interval)):(m=this._max64.subtract(this._min64),c=m.divide(new BigNumber(a.number)),d=m.divide(new BigNumber(u.number))),this.niceInterval){_(this._min64),l(this._min64);for(var C=this._min64.subtract(this._min64.mod(d)).add(d),L,A=C;A.compare(this._min64)!==-1;A=A.subtract(c))L=A;for(var O=L,E=C;(O.compare(this._max64)===-1||E.compare(this._max64)===-1)&&(w+=1,!(w>250));O=O.add(c),E=E.add(d))E.compare(this._max64)!==1&&(_(E),v[E.toString()]=!0,O.compare(C)===0?Math.abs(this._getAngleByValue(E)-this._getAngleByValue(this.min))*this._innerRadius>this._getMaxLabelSize().height&&l(E):(E.add(d).compare(this._max64)===-1||Math.abs(this._getAngleByValue(E)-this._getAngleByValue(this.max))*this._innerRadius>this._getMaxLabelSize().height)&&l(E)),!v[O.toString()]&&O.compare(s._max64)!==1&&S(O);_(this._max64),l(this._max64)}else for(var O=new BigNumber(s.min),E=new BigNumber(s.min);(O.compare(s._max64)!==1||E.compare(s._max64)!==1)&&(w+=1,!(w>250));O=O.add(c),E=E.add(d))E.compare(s._max64)!==1&&u.visible&&(_(E),v[E.toString()]=!0),!v[O.toString()]&&a.visible&&O.compare(s._max64)!==1&&S(O);else if(this.tickMode==="default"?this.niceInterval?(d=this._getNiceInterval("radial"),c=this._getNiceInterval("radial",!0)):(d=u.interval,c=a.interval):(m=this.max-this.min,c=m/a.number,d=m/u.number),this.niceInterval){_(this.min),l(this.min);for(var C=this.min-this.min%d+d,L,A=C;A>=this.min;A=A-c)L=A;for(var O=L,E=C;(O<this.max||E<this.max)&&(w+=1,!(w>250));O+=c,E+=d)E<=this.max&&(_(E),v[E.toFixed(5)]=!0,O===C?Math.abs(this._getAngleByValue(E)-this._getAngleByValue(this.min))*this._innerRadius>this._getMaxLabelSize().height&&l(E):(E+d<this.max||Math.abs(this._getAngleByValue(E)-this._getAngleByValue(this.max))*this._innerRadius>this._getMaxLabelSize().height)&&l(E)),!v[O.toFixed(5)]&&O<=this.max&&S(O);_(this.max),l(this.max)}else for(var O=this.min,E=this.min;(O<=this.max||E<=this.max)&&(w+=1,!(w>250));O+=c,E+=d)E<=this.max&&u.visible&&(_(E),v[E.toFixed(5)]=!0),!v[O.toFixed(5)]&&a.visible&&O<=this.max&&S(O);this._handleTicksVisibility()},_handleTicksVisibility:function(){this.ticksMinor.visible?this.host.children(".jqx-gauge-tick-minor").css("visibility","visible"):this.host.children(".jqx-gauge-tick-minor").css("visibility","hidden"),this.ticksMajor.visible?this.host.children(".jqx-gauge-tick-major").css("visibility","visible"):this.host.children(".jqx-gauge-tick-major").css("visibility","hidden")},_getSize:function(n){return n.toString().indexOf("%")>=0&&(n=parseInt(n,10)/100*this._innerRadius),n=parseInt(n,10),n},_getDistance:function(n){return this._getSize(n)+(this._originalRadius-this._innerRadius)},_drawTick:function(n,s){var a=this.that,u=n.angle,c=n.distance,d=n.size,m=a._outerBorderOffset(),v=a._originalRadius,_=v-c,S=_-d,l=v+m+_*Math.sin(u),w=v+m+_*Math.cos(u),C=v+m+S*Math.sin(u),L=v+m+S*Math.cos(u),A;if(n.style.class=a.toThemeProperty("jqx-gauge-tick-"+n.type),a._isVML&&(l=Math.round(l),C=Math.round(C),w=Math.round(w),L=Math.round(L)),s&&!a.niceInterval){var A=a._ticks[a._ticksIterator];A.setAttribute("x1",l),A.setAttribute("x2",C),A.setAttribute("y1",w),A.setAttribute("y2",L),a._ticksIterator++}else A=a.renderer.line(l,w,C,L,n.style),a._ticks.push(A)},_addRanges:function(n){var s="visible";if(!this.showRanges)s="hidden";else for(var a=this.ranges,u=0;u<a.length;u+=1)this._addRange(a[u],s,n)},_getMaxRangeSize:function(){for(var n=-1,s,a,u=0;u<this.ranges.length;u+=1)s=this.ranges[u].startWidth,a=this.ranges[u].endWidth,s>n&&(n=s),a>n&&(n=a);return n},_getRangeDistance:function(n,s){var a=this._getLabelsDistance(),u=this._getDistance(n),c=this._getMaxRangeSize();if(this.labels.position==="outside"){if(a<u+this._getMaxTickSize())return this._getDistance(this.ticksDistance)+c/2+this._getSize(this.ticksMajor.size)}else if(this.labels.position==="inside"&&a+this._getMaxTickSize()<u)return this._getSize(this.border.size)+this._originalRadius/20;return u},_addRange:function(H,s,a){var u=this.that;if(!(u.int64==="s"&&(H._startValue64.lessThan(u._min64)||H._endValue64.greaterThan(u._max64))||u.int64==="u"&&(H._startValue64.compare(u._min64)===-1||H._endValue64.compare(u._max64)===1)||u.int64===!1&&(H.startValue<u.min||H.endValue>u.max))){var c=u.int64?u._getAngleByValue(H._startValue64):u._getAngleByValue(H.startValue),d=u.int64?u._getAngleByValue(H._endValue64):u._getAngleByValue(H.endValue),m=u._originalRadius,v=m-u._getRangeDistance(H.startDistance,H.startWidth),_=m-u._getRangeDistance(H.endDistance,H.endWidth),S=H.startWidth,l=H.endWidth,w=u._outerBorderOffset(),C={x:m+w+v*Math.sin(c),y:m+w+v*Math.cos(c)},L={x:m+w+_*Math.sin(d),y:m+w+_*Math.cos(d)},A=u._getProjectionPoint(c,m+w,v,S),O=u._getProjectionPoint(d,m+w,_,l),E="default",Q,H;Math.abs(d-c)>Math.PI&&(E="opposite"),u._isVML?Q=u._rangeVMLRender(C,L,m,A,O,l,S,v,_,E):Q=u._rangeSVGRender(C,L,m,A,O,l,S,v,_,E),H.style.visibility=s,H.style.class=u.toThemeProperty("jqx-gauge-range"),H=u.renderer.path(Q,H.style),u._ranges.push(H)}},_rangeSVGRender:function(n,s,a,u,c,d,m,w,_,S){var l="",w=a-w,C=["0,1","0,0"];return S==="opposite"&&(C=["1,1","1,0"]),l="M"+n.x+","+n.y+" ",l+="A"+(a-w)+","+(a-w)+" 100 "+C[0]+" "+s.x+","+s.y+" ",l+="L "+c.x+","+c.y+" ",l+="A"+(a-d-w)+","+(a-d-w)+" 100 "+C[1]+" "+u.x+","+u.y+" ",l+="L "+n.x+","+n.y+" ",l+="z",l},_rangeVMLRender:function(n,s,a,u,c,d,m,C,_,S){a-=a-C+10;var l="",w=Math.floor(a+(m+d)/2),C=Math.floor(a-C),L={x:(u.x+c.x)/2,y:(u.y+c.y)/2},A=Math.sqrt((c.x-u.x)*(c.x-u.x)+(c.y-u.y)*(c.y-u.y)),O=Math.floor(L.x+Math.sqrt(a*a-A/2*(A/2))*(u.y-c.y)/A),E=Math.floor(L.y+Math.sqrt(a*a-A/2*(A/2))*(c.x-u.x)/A),Q={x:(n.x+s.x)/2,y:(n.y+s.y)/2},H=Math.sqrt((s.x-n.x)*(s.x-n.x)+(s.y-n.y)*(s.y-n.y)),de=Math.floor(Q.x+Math.sqrt(Math.abs(w*w-H/2*(H/2)))*(n.y-s.y)/H),D=Math.floor(Q.y+Math.sqrt(Math.abs(w*w-H/2*(H/2)))*(s.x-n.x)/H);return S==="opposite"&&(O=Math.floor(L.x-Math.sqrt(a*a-A/2*(A/2))*(u.y-c.y)/A),E=Math.floor(L.y-Math.sqrt(a*a-A/2*(A/2))*(c.x-u.x)/A),de=Math.floor(Q.x-Math.sqrt(Math.abs(w*w-H/2*(H/2)))*(n.y-s.y)/H),D=Math.floor(Q.y-Math.sqrt(Math.abs(w*w-H/2*(H/2)))*(s.x-n.x)/H)),a=Math.floor(a),s={x:Math.floor(s.x),y:Math.floor(s.y)},n={x:Math.floor(n.x),y:Math.floor(n.y)},u={x:Math.floor(u.x),y:Math.floor(u.y)},c={x:Math.floor(c.x),y:Math.floor(c.y)},l="m "+s.x+","+s.y,l+="at "+(de-w)+" "+(D-w)+" "+(w+de)+" "+(w+D)+" "+s.x+","+s.y+" "+n.x+","+n.y,l+="l "+u.x+","+u.y,l+="m "+s.x+","+s.y,l+="l "+c.x+","+c.y,l+="at "+(O-a)+" "+(E-a)+" "+(a+O)+" "+(a+E)+" "+c.x+","+c.y+" "+u.x+","+u.y,l+="qx "+u.x+" "+u.y,l},_getProjectionPoint:function(n,s,a,u){var c={x:s+(a-u)*Math.sin(n),y:s+(a-u)*Math.cos(n)};return c},_addLabels:function(n){var s=this,a=s._getLabelInterval();if(s.labels.visible&&s.labels.interval.toString()!=="0"){var u=this._getDistance(this._getLabelsDistance()),c=0;if(s.int64==="s")for(var d=new e.jqx.math().fromNumber(s.min.toString(),10);d.lessThanOrEqual(s._max64)&&(c+=1,!(c>250||d.lessThan(s._min64)||d.greaterThan(s._max64)));d=d.add(a))this._addLabel({angle:this._getAngleByValue(d),value:d.toString(),distance:u,style:this.labels.className});else if(s.int64==="u")for(var d=new BigNumber(s.min);d.compare(s._max64)!==1&&(c+=1,!(c>250||d.compare(s._min64)===-1||d.compare(s._max64)===1));d=d.add(a))this._addLabel({angle:this._getAngleByValue(d),value:d.toString(),distance:u,style:this.labels.className});else for(var d=this.min;d<=this.max&&(c+=1,!(c>250));d+=a)this._addLabel({angle:this._getAngleByValue(d),value:a>=1?d:new Number(d).toFixed(2),distance:u,style:this.labels.className},n)}},_getLabelsDistance:function(){var n=this._getMaxLabelSize(),s=this._getDistance(this.labels.distance),a=this._getDistance(this.ticksDistance);return n=n.width,this.labels.position==="inside"?a+n-5:this.labels.position==="outside"?s<a-n*1.5?s:Math.max(a-n*1.5,.6*n):this.labels.distance},_addLabel:function(n,s){var a=this.that,u=n.angle,c=a._originalRadius,d=c-n.distance,m=a.labels.offset,v=a._outerBorderOffset(),_=c+v+d*Math.sin(u)+m[0],S=c+v+d*Math.cos(u)+m[1],l=n.value,w=n.style||"",C,L,A=a.labels.fontSize;l=a._formatLabel(l.toString());var O={class:w};if(A&&(O["font-size"]=A),a.labels.fontFamily&&(O["font-family"]=a.labels.fontFamily),a.labels.fontWeight&&(O["font-weight"]=a.labels.fontWeight),a.labels.fontStyle&&(O["font-style"]=a.labels.fontStyle),s&&!a.niceInterval){var L=a._labels[a._labelsIterator],E=a.renderer._measureText(l,0,O,!0),Q=E.textPartsInfo;Q.parts,Q.width;var H=Q.height;L.setAttribute("x",Math.round(_)-E.width/2+(E.width-Q.width)/2),L.setAttribute("y",Math.round(S)+H+(E.height-H)/2),a._labelsIterator++}else{var C=a.renderer.measureText(l,0,O),de=0;A!==void 0&&Math.PI>u&&(de=-C.width/2*(parseInt(A)/25),parseInt(A)<=10&&(de*=-1)),O.class=this.toThemeProperty("jqx-gauge-label"),L=a.renderer.text(l,Math.round(_)-C.width/2+de,Math.round(S),C.width,C.height,0,O),a._labels.push(L)}},_addCaption:function(n){if(this.caption.visible!==!1){var s=this.that,a=s.caption.value,u=s.toThemeProperty("jqx-gauge-caption"),c=s.caption.offset,d=s.renderer.measureText(a,0,{class:u}),m=s._getPosition(this.caption.position,d,c);s.caption.style;var v=s._outerBorderOffset();if(n)this._caption.setAttribute("x",m.left+v),this._caption.setAttribute("y",m.top+v);else{var _=s.renderer.text(a,m.left+v,m.top+v,d.width,d.height,0,{class:u});this._caption=_}}},_getPosition:function(n,s,a){var u=0,c=0,d=this._originalRadius;switch(n){case"left":u=(d-s.width)/2,c=d-s.height/2;break;case"right":u=d+(d-s.width)/2,c=d-s.height/2;break;case"bottom":u=(2*d-s.width)/2,c=(d+2*d-s.height)/2;break;default:u=(2*d-s.width)/2,c=(d+s.height)/2;break}return{left:u+a[0],top:c+a[1]}},_addPointer:function(n){var s="visible";this.pointer.visible||(s="hidden"),this._originalRadius;var a=this._getSize(this.pointer.length),u=this._getAngleByValue(this.value),c=this.pointer.pointerType,d;d=this._computePointerPoints(this._getSize(this.pointer.width),u,a,c!=="default"),this._pointer=this.renderer.path(d,this.pointer.style),e(this._pointer).css("visibility",s)},_computePointerPoints:function(n,s,a,u){return u?this._computeRectPoints(n,s,a):this._computeArrowPoints(n,s,a)},_computeArrowPoints:function(n,s,a){var u=this._originalRadius-.5,c=Math.sin(s),d=Math.cos(s),m=this._outerBorderOffset(),v=u+m+a*c,_=u+m+a*d,S=u+m+n*d,l=u+m-n*c,w=u+m-n*d,C=u+m+n*c,L;return this._isVML&&(S=Math.round(S),w=Math.round(w),l=Math.round(l),C=Math.round(C),v=Math.round(v),_=Math.round(_)),L="M "+S+","+l+" L "+w+","+C+" L "+v+","+_,L},_computeRectPoints:function(n,s,a){var u=this._originalRadius,c=Math.sin(s),d=Math.cos(s),m=this._outerBorderOffset(),v=u+m-n*d+a*c,_=u+m+n*c+a*d,S=u+m+n*d+a*c,l=u+m-n*c+a*d,w=u+m+n*d,C=u+m-n*c,L=u+m-n*d,A=u+m+n*c,O;return this._isVML&&(w=Math.round(w),L=Math.round(L),C=Math.round(C),A=Math.round(A),v=Math.round(v),_=Math.round(_),S=Math.round(S),l=Math.round(l)),O="M "+w+","+C+" L "+L+","+A+" L "+v+","+_+" "+S+","+l,O},_getAngleByValue:function(n){var s=this,a=s.startAngle,u=a-s.endAngle,c,d,m,v,_;if(s.int64!==!1){s.int64==="s"?n=new e.jqx.math().fromString(n.toString(),10):n=new BigNumber(n),c=s._min64,d=s._max64,m=d.subtract(c),v=n.subtract(c),s.int64==="u"&&(v=v.intPart());var S=m.toString(),l,w=v.toString(),C;if(S.length>15){var L=S.length-15;if(S=S.slice(0,15)+"."+S.slice(15),l=parseFloat(S),w.length>L){var A=w.length-L;w=w.slice(0,A)+"."+w.slice(A)}else if(w.length===L)w="0."+w;else{for(var O="0.",E=0;E<L-w.length;E++)O+="0";w=O+""+w}C=parseFloat(w)}else l=parseFloat(m.toString()),C=parseFloat(v.toString());_=u*C/l+a+Math.PI}else c=s.min,d=s.max,m=d-c,v=n-c,_=u*v/m+a+Math.PI;return _},_setValue:function(n){var s=this;if(s.int64==="s"&&n.lessThanOrEqual(s._max64)&&n.greaterThanOrEqual(s._min64)||s.int64==="u"&&n.compare(s._max64)!==1&&n.compare(s._min64)!==-1||s.int64===!1&&n<=s.max&&n>=s.min){var a=s._getAngleByValue(n),u=s.pointer.pointerType,c=s._computePointerPoints(s._getSize(s.pointer.width),a,s._getSize(s.pointer.length),u!=="default");s._isVML?(s._pointer&&e(s._pointer).remove(),s._pointer=s.renderer.path(c,s.pointer.style)):s.renderer.attr(s._pointer,{d:c}),s.int64!==!1?(s.value=n.toString(),s.int64==="s"?s._value64=new e.jqx.math().fromString(s.value,10):s._value64=new BigNumber(s.value)):s.value=n,e.jqx.aria(s,"aria-valuenow",n.toString())}},resize:function(n,s){this.width=n,this.height=s,this.refresh()},propertiesChangedHandler:function(n,s,a){a.width&&a.height&&Object.keys(a).length==2&&n._refresh(!0)},propertyChangedHandler:function(n,s,a,u){u!=a&&(n.batchUpdate&&n.batchUpdate.width&&n.batchUpdate.height&&Object.keys(n.batchUpdate).length==2||(s=="min"&&(n.int64===!0?n._min64=new e.jqx.math().fromString(u.toString(),10):this.min=parseInt(u),e.jqx.aria(n,"aria-valuemin",u)),s=="max"&&(n.int64===!0?n._max64=new e.jqx.math().fromString(u.toString(),10):this.max=parseInt(u),e.jqx.aria(n,"aria-valuemax",u)),s==="disabled"?(u?this.disable():this.enable(),e.jqx.aria(this,"aria-disabled",u)):s==="value"?(this.value=a,this.setValue(u)):(s==="startAngle"?this.startAngle=this.startAngle*Math.PI/180+Math.PI/2:s==="endAngle"?this.endAngle=this.endAngle*Math.PI/180+Math.PI/2:s==="colorScheme"?(this.pointer.style=null,this.cap.style=null):s==="radius"&&(this._radius=u),s!=="animationDuration"&&s!=="easing"&&this._refresh()),this.renderer instanceof e.jqx.HTML5Renderer&&this.renderer.refresh()))},_tickConstructor:function(n,s){if(this.host)return new this._tickConstructor(n,s);n=n||{},this.size=s._validatePercentage(n.size,"10%");function a(u,c){s.int64===!1?u[c]=parseFloat(n[c]):u[c]=n[c],u[c]||(u[c]=5)}a(this,"interval"),a(this,"number"),this.style=n.style||{stroke:"#898989","stroke-width":1},typeof n.visible=="undefined"?this.visible=!0:this.visible=n.visible},_capConstructor:function(n,s){var a=s._getColorScheme(s.colorScheme)[0];if(this.host)return new this._capConstructor(n,s);n=n||{},typeof n.visible=="undefined"?this.visible=!0:this.visible=n.visible,this.size=s._validatePercentage(n.size,"4%"),this.style=n.style||{fill:a,"stroke-width":"1px",stroke:a,"z-index":30}},_pointerConstructor:function(n,s){var a=s._getColorScheme(s.colorScheme)[0];if(this.host)return new this._pointerConstructor(n,s);n=n||{},typeof n.visible=="undefined"?this.visible=!0:this.visible=n.visible,this.pointerType=n.pointerType,this.pointerType!=="default"&&this.pointerType!=="rectangle"&&(this.pointerType="default"),this.style=n.style||{"z-index":0,stroke:a,fill:a,"stroke-width":1},this.length=s._validatePercentage(n.length,"70%"),this.width=s._validatePercentage(n.width,"2%")},_labelsConstructor:function(n,s){if(this.host)return new this._labelsConstructor(n,s);n=n||{},typeof n.visible=="undefined"?this.visible=!0:this.visible=n.visible,this.offset=n.offset,this.offset instanceof Array||(this.offset=[0,-10]),n.interval||(n.interval=20),s.int64!==!1?(this.interval=n.interval,s.int64==="s"?this._interval64=new e.jqx.math().fromString(n.interval.toString(),10):this._interval64=new BigNumber(n.interval)):this.interval=parseFloat(n.interval),n.number||(n.number=5),this.number=n.number,this.distance=s._validatePercentage(n.distance,"38%"),this.position=n.position,this.position!=="inside"&&this.position!=="outside"&&(this.position="none"),this.formatValue=n.formatValue,this.formatSettings=n.formatSettings,this.fontSize=n.fontSize,this.fontFamily=n.fontFamily,this.fontWeight=n.fontWeight,this.fontStyle=n.fontStyle},_captionConstructor:function(n,s){if(this.host)return new this._captionConstructor(n,s);n=n||{},typeof n.visible=="undefined"?this.visible=!0:this.visible=n.visible,this.value=n.value||"",this.position=n.position,this.position!=="bottom"&&this.position!=="top"&&this.position!=="left"&&this.position!=="right"&&(this.position="bottom"),this.offset=n.offset,this.offset instanceof Array||(this.offset=[0,0])},_rangeConstructor:function(n,s){if(this.host)return new this._rangeConstructor(n,s);n=n||{},this.startDistance=s._validatePercentage(n.startDistance,"5%"),this.endDistance=s._validatePercentage(n.endDistance,"5%"),this.style=n.style||{fill:"#000000",stroke:"#111111"},this.startWidth=parseFloat(n.startWidth,10),this.startWidth||(this.startWidth=10),this.startWidth=Math.max(this.startWidth,2),this.endWidth=parseFloat(n.endWidth,10),this.endWidth||(this.endWidth=10),this.endWidth=Math.max(this.endWidth,2),n.startValue===void 0&&(n.startValue=0),n.endValue===void 0&&(n.endValue=100),s.int64!==!1?(this.startValue=n.startValue,this.endValue=n.endValue,s.int64==="s"?(this._startValue64=new e.jqx.math().fromString(n.startValue.toString(),10),this._endValue64=new e.jqx.math().fromString(n.endValue.toString(),10)):(this._startValue64=new BigNumber(n.startValue),this._endValue64=new BigNumber(n.endValue))):(this.startValue=parseFloat(n.startValue,10),this.endValue=parseFloat(n.endValue,10))},_borderConstructor:function(n,s){if(this.host)return new this._borderConstructor(n,s);n=n||{},this.size=s._validatePercentage(n.size,"10%"),this.style=n.style||{stroke:"#cccccc"},typeof n.showGradient=="undefined"?this.showGradient=!0:this.showGradient=n.showGradient,typeof n.visible=="undefined"?this.visible=!0:this.visible=n.visible}},i={_events:["valueChanging","valueChanged"],_animationTimeout:10,_schemes:[{name:"scheme01",colors:["#307DD7","#AA4643","#89A54E","#71588F","#4198AF"]},{name:"scheme02",colors:["#7FD13B","#EA157A","#FEB80A","#00ADDC","#738AC8"]},{name:"scheme03",colors:["#E8601A","#FF9639","#F5BD6A","#599994","#115D6E"]},{name:"scheme04",colors:["#D02841","#FF7C41","#FFC051","#5B5F4D","#364651"]},{name:"scheme05",colors:["#25A0DA","#309B46","#8EBC00","#FF7515","#FFAE00"]},{name:"scheme06",colors:["#0A3A4A","#196674","#33A6B2","#9AC836","#D0E64B"]},{name:"scheme07",colors:["#CC6B32","#FFAB48","#FFE7AD","#A7C9AE","#888A63"]},{name:"scheme08",colors:["#3F3943","#01A2A6","#29D9C2","#BDF271","#FFFFA6"]},{name:"scheme09",colors:["#1B2B32","#37646F","#A3ABAF","#E1E7E8","#B22E2F"]},{name:"scheme10",colors:["#5A4B53","#9C3C58","#DE2B5B","#D86A41","#D2A825"]},{name:"scheme11",colors:["#993144","#FFA257","#CCA56A","#ADA072","#949681"]},{name:"scheme12",colors:["#105B63","#EEEAC5","#FFD34E","#DB9E36","#BD4932"]},{name:"scheme13",colors:["#BBEBBC","#F0EE94","#F5C465","#FA7642","#FF1E54"]},{name:"scheme14",colors:["#60573E","#F2EEAC","#BFA575","#A63841","#BFB8A3"]},{name:"scheme15",colors:["#444546","#FFBB6E","#F28D00","#D94F00","#7F203B"]},{name:"scheme16",colors:["#583C39","#674E49","#948658","#F0E99A","#564E49"]},{name:"scheme17",colors:["#142D58","#447F6E","#E1B65B","#C8782A","#9E3E17"]},{name:"scheme18",colors:["#4D2B1F","#635D61","#7992A2","#97BFD5","#BFDCF5"]},{name:"scheme19",colors:["#844341","#D5CC92","#BBA146","#897B26","#55591C"]},{name:"scheme20",colors:["#56626B","#6C9380","#C0CA55","#F07C6C","#AD5472"]},{name:"scheme21",colors:["#96003A","#FF7347","#FFBC7B","#FF4154","#642223"]},{name:"scheme22",colors:["#5D7359","#E0D697","#D6AA5C","#8C5430","#661C0E"]},{name:"scheme23",colors:["#16193B","#35478C","#4E7AC7","#7FB2F0","#ADD5F7"]},{name:"scheme24",colors:["#7B1A25","#BF5322","#9DA860","#CEA457","#B67818"]},{name:"scheme25",colors:["#0081DA","#3AAFFF","#99C900","#FFEB3D","#309B46"]},{name:"scheme26",colors:["#0069A5","#0098EE","#7BD2F6","#FFB800","#FF6800"]},{name:"scheme27",colors:["#FF6800","#A0A700","#FF8D00","#678900","#0069A5"]}],_getScale:function(n,s,a){return n&&n.toString().indexOf("%")>=0?(n=parseInt(n,10)/100,a[s]()*n):parseInt(n,10)},_removeElements:function(){this.host.children(".chartContainer").remove(),this.host.children("#tblChart").remove()},_getLabelInterval:function(){var n=this,s=n.labels,a;if(n.tickMode==="default")n.niceInterval?a=n._getNiceInterval(n.widgetName==="jqxGauge"?"radial":"linear"):n.int64===!1?a=s.interval:(s._interval64||(s._interval64=n.int64==="s"?new e.jqx.math().fromNumber(s.interval):new BigNumber(s.interval)),a=s._interval64);else if(n.int64===!1){var u=n.max-n.min;a=u/s.number}else{var u=n._max64.subtract(n._min64);n.int64==="s"?a=u.div(new e.jqx.math().fromNumber(s.number)):a=u.divide(new BigNumber(s.number))}return a},_getMaxLabelSize:function(){var n=this,s=this.max,a=this.min;a=n._formatLabel(a),s=n._formatLabel(s);var u=e('<div style="position: absolute; visibility: hidden;" class="'+n.toThemeProperty("jqx-gauge-label")+'"></div>');u.css({"font-size":n.labels.fontSize,"font-family":n.labels.fontFamily,"font-weight":n.labels.fontWeight,"font-style":n.labels.fontStyle}),e("body").append(u),u.html(a);var c={width:u.width(),height:u.height()};u.html(s);var d={width:u.width(),height:u.height()};return u.remove(),c.width>d.width?c:d},disable:function(){this.disabled=!0,this.host.addClass(this.toThemeProperty("jqx-fill-state-disabled"))},enable:function(){this.disabled=!1,this.host.removeClass(this.toThemeProperty("jqx-fill-state-disabled"))},destroy:function(){var n=this;n._timeout&&clearTimeout(this._timeout),n._timeout=null,e.jqx.utilities.resize(n.host,null,!0),n._removeElements(),n.renderer.clear(),n.renderer=null;var s=e.data(n.element,"jqxGauge");s&&delete s.instance,n.host.children().remove(),n._caption=null,n._caption=null,n._pointer=null,n._labels=[],n._cap=null,n._ticks=[],n._ranges=[],n._border=null,n._gauge=null,n._caption=null,n.renderer=null,n._animations=[],n.host.removeData(),n.host.removeClass(),n.host.remove(),n.that=null,n.element=null,n._gaugeParent=null,delete n._gaugeParent,delete n.element,delete n.host},_validatePercentage:function(n,s){return parseFloat(n)!==0&&(!n||!parseInt(n,10))&&(n=s),n},_getColorScheme:function(n){for(var s,a=0;a<this._schemes.length;a+=1)if(s=this._schemes[a],s.name===n)return s.colors;return null},setValue:function(n,s){var a=this;a.disabled||(s=s||a.animationDuration||0,a.int64==="s"?(typeof n=="number"?n=new e.jqx.math().fromNumber(n,10):typeof n=="string"&&(n=new e.jqx.math().fromString(n,10)),n.greaterThan(a._max64)&&(n=new e.jqx.math().fromString(a._max64.toString(),10)),n.lessThan(a._min64)&&(n=new e.jqx.math().fromString(a._min64.toString(),10)),a._animate(a._value64,n,s)):a.int64==="u"?(n=new BigNumber(n),n.compare(a._max64)===1&&(n=new BigNumber(a._max64)),n.compare(a._min64)===-1&&(n=new BigNumber(a._min64)),a._animate(a._value64,n,s)):(n>a.max&&(n=a.max),n<a.min&&(n=a.min),a._animate(a.value,n,s)),e.jqx.aria(a,"aria-valuenow",n.toString()))},_animate:function(n,s,a){var u=this;if(u._timeout&&u._endAnimation(u.int64?u._value64:u.value,!1),!a){u._endAnimation(s,!0);return}u._animateHandler(n,s,0,a)},_animateHandler:function(n,s,a,u){var c=this;a<=u?this._timeout=setTimeout(function(){if(c.int64!==!1){var d=s.subtract(n);if(c.int64==="s"){var m=new e.jqx.math().fromNumber(e.easing[c.easing](a/u,a,0,1,u)*100,10);c._value64=n.add(d.multiply(m).div(new e.jqx.math().fromNumber(100,10)))}else{var m=new BigNumber(e.easing[c.easing](a/u,a,0,1,u)*100);c._value64=n.add(d.multiply(m).divide(100))}c.value=c._value64.toString(),c._setValue(c._value64)}else c.value=n+(s-n)*e.easing[c.easing](a/u,a,0,1,u),c._setValue(c.value);c._raiseEvent(0,{value:c.value.toString()}),c._animateHandler(n,s,a+c._animationTimeout,u)},this._animationTimeout):this._endAnimation(s,!0)},_endAnimation:function(n,s){clearTimeout(this._timeout),this._timeout=null,this._setValue(n),s&&this._raiseEvent(1,{value:n.toString()})},_getMaxTickSize:function(){return Math.max(this._getSize(this.ticksMajor.size),this._getSize(this.ticksMinor.size))},_raiseEvent:function(n,s){var a=e.Event(this._events[n]),u;return a.args=s||{},u=this.host.trigger(a),u},_getNiceInterval:function(n,s){function a(Y){return Math.log(parseFloat(Y))/Math.LN10}function u(){var Y=Math.abs(c.startAngle-c.endAngle)*c._innerRadius;return Math.round(Y)}var c=this,d="width";n==="linear"&&c.orientation==="vertical"&&(d="height");var m=e.jqx.browser.msie?0:1,C,v=e('<span class="'+c.toThemeProperty("jqx-gauge-label")+'" style="position: absolute; visibility: hidden;"></span>'),_=c._formatLabel(c.min),S=c._formatLabel(c.max);v.css({"font-size":c.labels.fontSize,"font-family":c.labels.fontFamily,"font-weight":c.labels.fontWeight,"font-style":c.labels.fontStyle}),e("body").append(v),v.text(_);var l=v[d]()+m;v.text(S);var w=v[d]()+m;v.remove();var C=Math.max(w,l),L=1;if(n==="radial"){var A;c._innerRadius<50?A=.3:c._innerRadius<150?A=.6:c._innerRadius<250?A=.7:A=1,L=8/Math.max(1,a(c._innerRadius))*A}else{var O=0;C>105&&(O=(C-105)/100),L=1.5+O}C*=L;var E;n==="radial"?E=u():E=c._getScaleLength();var Q=Math.ceil(E/C),H,de,D,le,U,pe;return s===!0&&(n==="radial"?Q*=4:Q*=3),c.int64===!1?(H=c.max-c.min,de=Math.floor(a(H)-a(Q)),D=Math.pow(10,de),le=Q*D,H<2*le?U=1:H<3*le?U=2:H<7*le?U=5:U=10,pe=U*D):(H=new BigNumber(c.max).subtract(new BigNumber(c.min)),de=Math.floor(a(H.toString())-a(Q)),D=new BigNumber(10).pow(new BigNumber(de)),le=new BigNumber(Q).multiply(D),H.compare(new BigNumber(2*le))===-1?U=1:H.compare(new BigNumber(3*le))===-1?U=2:H.compare(new BigNumber(7*le))===-1?U=5:U=10,pe=new BigNumber(U).multiply(D),pe.compare(1)===-1&&(pe=new BigNumber(1)),c.int64==="s"&&(pe=new e.jqx.math().fromString(pe.toString()))),pe},_styleLabels:function(){},_checkForOverflow:function(n,s){var a=new BigNumber("9223372036854775807"),u=new BigNumber(n.toString()),c=new BigNumber(s.toString());return u.add(c).compare(a)===1},_formatLabel:function(n,s){var a=this,u=a.labels.formatValue,c=a.labels.formatSettings,d;return u?d=u(n,s):c?c.radix!==void 0?d=new e.jqx.math().getRadixValue(n,a.int64,c.radix):c.outputNotation!==void 0&&c.outputNotation!=="default"&&c.outputNotation!=="decimal"?d=new e.jqx.math().getDecimalNotation(n,c.outputNotation,c.decimalDigits,c.digits):c.decimalDigits!==void 0?d=Number(n).toFixed(c.decimalDigits):c.digits!==void 0&&(d=Number(n).toPrecision(c.digits)):d=n,d},_editableLabels:function(n){var s=this;function a(S,l){var w=s.renderer.measureText(s._formatLabel(l),0,{class:s.toThemeProperty("jqx-gauge-label")});v.offset(e(S).offset()),m.style.width=w.width+10+"px",m.style.height=w.height+"px",m.style.visibility="visible",m.value=l,v.select()}if(s.editableLabels){let S=function(l,w,C,L){if(l===s[w].toString())return!1;if(s.int64==="s"){var A=new e.jqx.math().fromString(l,10);if(w==="min"&&A.compare(s["_"+L+"64"])!==-1||w==="max"&&A.compare(s["_"+L+"64"])!==1)return!1;s[C]=A,s[w]=l}else if(s.int64==="u"){var O=new BigNumber(l);if(O.compare(0)===-1||w==="min"&&O.compare(s["_"+L+"64"])!==-1||w==="max"&&O.compare(s["_"+L+"64"])!==1)return!1;s[C]=O,s[w]=l}else{if(w==="min"&&l>=s[L]||w==="max"&&l<=s[L])return!1;s[w]=parseFloat(l)}};var u=s._labels;if(u.length===0)return;var c=u[0],d=u[u.length-1],m,v;n!==!0?(m=document.createElement("input"),v=e(m),m.className="jqx-gauge-label-input",s.element.appendChild(m)):(v=s.host.children("input"),m=v[0]),c.style.cursor="text",d.style.cursor="text",s.addHandler(e(c),"dblclick.jqxGauge"+s.element.id,function(l){a(this,s.min),s._editedProperty="min"}),s.addHandler(e(d),"dblclick.jqxGauge"+s.element.id,function(l){a(this,s.max),s._editedProperty="max"});var _=/^-?\d+\.?\d*$/;n!==!0&&s.addHandler(v,"blur.jqxGauge"+s.element.id,function(l){var w=this.value,C;if(m.style.visibility="hidden",!!_.test(w)){if(s._editedProperty==="min"){if(C=S(w,"min","_min64","max"),C===!1)return;e.jqx.aria(s,"aria-valuemin",w)}else{if(C=S(w,"max","_max64","min"),C===!1)return;e.jqx.aria(s,"aria-valuemax",w)}s.refresh(),s.renderer instanceof e.jqx.HTML5Renderer&&s.renderer.refresh()}})}}},r={defineInstance:function(){var n={int64:!1,editableLabels:!1,value:-50,max:40,min:-60,width:100,height:300,pointer:{},labels:{},animationDuration:1e3,showRanges:{},ticksMajor:{size:"15%",interval:5},ticksMinor:{size:"10%",interval:2.5},tickMode:"default",niceInterval:!1,ranges:[],easing:"easeOutCubic",colorScheme:"scheme01",disabled:!1,rangesOffset:0,background:{},ticksPosition:"both",rangeSize:"5%",scaleStyle:null,ticksOffset:null,scaleLength:"90%",orientation:"vertical",aria:{"aria-valuenow":{name:"value",type:"number"},"aria-valuemin":{name:"min",type:"number"},"aria-valuemax":{name:"max",type:"number"},"aria-disabled":{name:"disabled",type:"boolean"}},displayTank:!1,tankStyle:null,_originalColor:"",_width:null,_height:null,renderer:null};return this===e.jqx._jqxLinearGauge.prototype||e.extend(!0,this,n),n},createInstance:function(){e.jqx.aria(this),this.host.css("overflow","hidden"),this.host.addClass(this.toThemeProperty("jqx-widget")),this.host.append('<input class="jqx-gauge-label-input"/>');var n=this;if(n.int64==="s"){if(!e.jqx.longInt)throw new Error("jqxLinearGauge: Missing reference to jqxmath.js");e.jqx.longInt(n),n._value64=new e.jqx.math().fromString(n.value.toString(),10),n._min64=new e.jqx.math().fromString(n.min.toString(),10),n._max64=new e.jqx.math().fromString(n.max.toString(),10)}else if(n.int64==="u"){try{BigNumber}catch{throw new Error("jqxLinearGauge: Missing reference to jqxmath.js")}n._value64=new BigNumber(n.value),n._min64=new BigNumber(n.min),n._max64=new BigNumber(n.max)}e.jqx.utilities.resize(this.host,function(){n.refresh(!1,!1)})},val:function(n){if(arguments.length==0||typeof n=="object")return this.value;this.setValue(n,0)},_initRenderer:function(n){if(!e.jqx.createRenderer)throw"Please include a reference to jqxdraw.js";return e.jqx.createRenderer(this,n)},refresh:function(n,s){var a=this;a._nearLabels=[],a._farLabels=[],a.renderer||(a._isVML=!1,a.host.empty(),a._initRenderer(a.host));var u=a.renderer;if(!!u&&(a._validateProperties(),a._reset(),a._init(),a._performLayout(),a._render(),s!==!1&&a.setValue(a.value,1),!n)){var c=a.labels.position;(c==="both"||c==="near")&&(a._labels=a._nearLabels,a._editableLabels()),(c==="both"||c==="far")&&(a._labels=a._farLabels,a._editableLabels(c==="both"?!0:void 0))}},_getBorderSize:function(){var n=1,s;return this._isVML&&(n=0),this.background?(s=(parseInt(this.background.style["stroke-width"],10)||n)/2,this._isVML?Math.round(s):s):n},_validateProperties:function(){this.background=this._backgroundConstructor(this.background,this),this.ticksOffset=this.ticksOffset||this._getDefaultTicksOffset(),this.rangesOffset=this.rangesOffset||0,this.rangeSize=this._validatePercentage(this.rangeSize,5),this.ticksOffset[0]=this._validatePercentage(this.ticksOffset[0],"5%"),this.ticksOffset[1]=this._validatePercentage(this.ticksOffset[1],"5%"),this.ticksMinor=this._tickConstructor(this.ticksMinor,this),this.ticksMajor=this._tickConstructor(this.ticksMajor,this),this.scaleStyle=this.scaleStyle||this.ticksMajor.style,this.labels=this._labelsConstructor(this.labels,this),this.pointer=this._pointerConstructor(this.pointer,this);for(var n=0;n<this.ranges.length;n+=1)this.ranges[n]=this._rangeConstructor(this.ranges[n],this)},_getDefaultTicksOffset:function(){return this.orientation==="horizontal"?["5%","36%"]:["36%","5%"]},_handleOrientation:function(){this.orientation==="vertical"?e.extend(this,linearVerticalGauge):e.extend(this,linearHorizontalGauge)},_reset:function(){this.host.empty()},_performLayout:function(){var n=parseInt(this.background.style["stroke-width"],10)||1;this._width-=n,this._height-=n,this.host.css("padding",n/2)},_init:function(){this._getBorderSize();var n;this._width=this._getScale(this.width,"width",this.host.parent())-3,this._height=this._getScale(this.height,"height",this.host.parent())-3,this.element.innerHTML="<div/>",this.host.width(this._width),this.host.height(this._height),this.host.children().width(this._width),this.host.children().height(this._height),this.renderer.init(this.host.children()),n=this.renderer.getContainer(),n.width(this._width),n.height(this._height)},_render:function(){this._renderBackground(),this._renderTicks(),this.niceInterval||this._renderLabels(),this._styleLabels(),this._renderRanges(),this._renderPointer()},_renderBackground:function(){if(!!this.background.visible){var n=this.background.style,s=e.jqx._rup(this._getBorderSize()),a="rect",u;n=this._handleShapeOptions(n),this.background.backgroundType==="roundedRectangle"&&this._isVML&&(a="roundrect"),this._Vml||(n.x=s,n.y=s),u=this.renderer.shape(a,n),this._isVML&&this._fixVmlRoundrect(u,n)}},_handleShapeOptions:function(n){var s=this.background.style.fill;return this._getBorderSize(),s||(s="#cccccc"),this.background.showGradient&&(s.indexOf("url")<0&&s.indexOf("#grd")<0?this._originalColor=s:s=this._originalColor,s=this.renderer._toLinearGradient(s,this.orientation==="horizontal",[[1,1.1],[90,1.5]])),this.background.style.fill=s,this.background.backgroundType==="roundedRectangle"&&(this._isVML?n.arcsize=this.background.borderRadius+"%":(n.rx=this.background.borderRadius,n.ry=this.background.borderRadius)),n.width=this._width-1,n.height=this._height-1,n},_fixVmlRoundrect:function(n,s){var a=this._getBorderSize();n.style.position="absolute",n.style.left=a,n.style.top=a,n.style.width=this._width-1,n.style.height=this._height-1,n.strokeweight=0,delete s.width,delete s.height,delete s.arcsize,this.renderer.attr(n,s)},_renderTicks:function(){var n=this.ticksMinor,s=this.ticksMajor,a,u,c,d,m;this.int64==="s"?(a=this._max64.subtract(this._min64),a.isNegative()&&(a=a.negate()),this.tickMode==="default"?this.niceInterval?(u=this._getNiceInterval("linear"),c=this._getNiceInterval("linear",!0)):(u=s._interval64,c=n._interval64):(u=a.div(new e.jqx.math().fromNumber(s.number)),c=a.div(new e.jqx.math().fromNumber(n.number)))):this.int64==="u"?(a=this._max64.subtract(this._min64).abs(),this.tickMode==="default"?this.niceInterval?(u=this._getNiceInterval("linear"),c=this._getNiceInterval("linear",!0)):(u=s._interval64,c=n._interval64):(u=a.divide(new BigNumber(s.number)),c=a.divide(new BigNumber(n.number)))):(a=Math.abs(this.max-this.min),this.tickMode==="default"?this.niceInterval?(u=this._getNiceInterval("linear"),c=this._getNiceInterval("linear",!0)):(u=s.interval,c=n.interval):(u=a/s.number,c=a/n.number)),d={size:this._getSize(s.size),style:s.style,visible:s.visible,interval:u,type:"major"},m={size:this._getSize(n.size),style:n.style,visible:n.visible,interval:c,checkOverlap:!0,type:"minor"},(this.ticksPosition==="near"||this.ticksPosition==="both")&&(this._ticksRenderHandler(d),this._ticksRenderHandler(m)),(this.ticksPosition==="far"||this.ticksPosition==="both")&&(d.isFar=!0,m.isFar=!0,this._ticksRenderHandler(d),this._ticksRenderHandler(m)),this._renderConnectionLine()},_ticksRenderHandler:function(n){if(!(!n.visible&&n.type==="minor")){this._getSize(this.ticksOffset[0],"width"),this._getSize(this.ticksOffset[1],"height");var s=this._getBorderSize(),a=this._calculateTickOffset()+this._getMaxTickSize();n.isFar&&(a+=n.size),this._drawTicks(n,s,a+s)}},_drawTicks:function(n,s,a){var u=this,c=n.interval,d,m=u.orientation==="vertical"?"width":"height",v=u.orientation==="vertical"?"height":"width",_=u._getMaxLabelSize()[m],S=u._getMaxLabelSize()[v],l=u._getInterval("ticksMajor"),w=u._getInterval("ticksMinor");function C(E){if(d=u._valueToCoordinates(E),(!n.checkOverlap||!u._overlapTick(E,l,w))&&(n.visible&&u._renderTick(n.size,d,n.style,a),u.niceInterval&&u.labels.visible)){u.orientation==="vertical"?u._getSize(u.ticksOffset[1],"height"):u._getSize(u.ticksOffset[0],"width");var Q=n.isFar?"far":"near",H;if(Q==="near"?H=u._calculateTickOffset()-_+s+u._getSize(u.labels.offset):H=u._calculateTickOffset()+2*u._getMaxTickSize()+_+s+u._getSize(u.labels.offset),u.int64===!1){if(E!==u.min&&Math.abs(u._valueToCoordinates(u.min)-d)<S||E!==u.max&&Math.abs(u._valueToCoordinates(u.max)-d)<S)return}else if(u.int64==="s"){if(E.equals(u._min64)===!1&&Math.abs(u._valueToCoordinates(u._min64)-d)<S)return!1;if(E.equals(u._max64)===!1&&Math.abs(u._valueToCoordinates(u._max64)-d)<S)return}else if(u.int64==="u"){if(E.compare(u._min64)!==0&&Math.abs(u._valueToCoordinates(u._min64)-d)<S)return!1;if(E.compare(u._max64)!==0&&Math.abs(u._valueToCoordinates(u._max64)-d)<S)return}var de=u.labels.position;n.type==="major"&&(de==="both"||de==="near"&&n.isFar!==!0||de==="far"&&n.isFar)&&u._renderLabel(d,Q,H,_,E)}}if(u.niceInterval){var L;if(u.int64==="s"){if(C(u._min64),L=u._min64.subtract(u._min64.modulo(c)).add(c),n.type==="minor")for(var A=L;A.greaterThanOrEqual(u._min64);A=A.subtract(c))L=A;for(var O=L;O.lessThan(u._max64)&&!u._checkForOverflow(O,c);O=O.add(c))C(O);C(u._max64)}else if(u.int64==="u"){if(C(u._min64),L=u._min64.subtract(u._min64.mod(c)).add(c),n.type==="minor")for(var A=L;A.compare(u._min64)!==-1;A=A.subtract(c))L=A;for(var O=L;O.compare(u._max64)===-1;O=O.add(c))C(O);C(u._max64)}else{if(C(u.min),L=u.min-u.min%c+c,n.type==="minor")for(var A=L;A>=u.min;A=A-c)L=A;for(var O=L;O<=u.max;O+=c)C(O);C(u.max)}}else if(u.int64==="s")for(var O=new e.jqx.math().fromString(u._min64.toString(),10);O.lessThanOrEqual(u._max64);O=O.add(c))C(O);else if(u.int64==="u")for(var O=new BigNumber(u._min64);O.compare(u._max64)!==1;O=O.add(c))C(O);else for(var O=u.min;O<=u.max;O+=c)C(O)},_calculateTickOffset:function(){var n=this._getSize(this.ticksOffset[0],"width"),s=this._getSize(this.ticksOffset[1],"height"),a=s;return this.orientation==="vertical"&&(a=n),a},_getInterval:function(n){var s=this,a;if(s.tickMode==="default")s.niceInterval===!0?a=s._getNiceInterval("linear",n==="ticksMinor"):s.int64!==!1?a=s[n]._interval64:a=s[n].interval;else{var u=s[n].number,c;s.int64!==!1?(c=s._max64.subtract(s._min64),s.int64==="s"?a=c.div(new e.jqx.math().fromNumber(u)):a=c.divide(new BigNumber(u))):(c=s.max-s.min,a=c/s[n].number)}return a},_overlapTick:function(n,s,a){return this.int64==="s"?(n=n.add(this._min64),!!n.modulo(a).equals(n.modulo(s))):this.int64==="u"?(n=n.add(this._min64),n.mod(a).compare(n.mod(s))===0):(n+=this.min,n%a===n%s)},_renderConnectionLine:function(){if(!(!this.ticksMajor.visible&&!this.ticksMinor.visible)){this._getScaleLength();var n=this._getBorderSize(),s,a,u=this._getMaxTickSize(),c=u+n;if(this.int64!==!1?(s=this._valueToCoordinates(this._max64),a=this._valueToCoordinates(this._min64)):(s=this._valueToCoordinates(this.max),a=this._valueToCoordinates(this.min)),this.orientation==="vertical")c+=this._getSize(this.ticksOffset[0],"width"),this.renderer.line(c,s,c,a,this.scaleStyle);else{c+=this._getSize(this.ticksOffset[1],"height");var d=this._getSize(this.ticksOffset[0],"width");this.renderer.line(d+s-a,c,d,c,this.scaleStyle)}}},_getScaleLength:function(){return this._getSize(this.scaleLength,this.orientation==="vertical"?"height":"width")},_renderTick:function(n,s,a,u){var c=this._handleTickCoordinates(n,s,u);this.renderer.line(Math.round(c.x1),Math.round(c.y1),Math.round(c.x2),Math.round(c.y2),a)},_handleTickCoordinates:function(n,s,a){return this.orientation==="vertical"?{x1:a-n,x2:a,y1:s,y2:s}:{x1:s,x2:s,y1:a-n,y2:a}},_getTickCoordinates:function(n,s){var a=this._handleTickCoordinates(n,0,this._calculateTickOffset());return this.orientation==="vertical"?a=a.x1:a=a.y1,a+=n,a},_renderLabels:function(){if(!!this.labels.visible){var n=this._getSize(this.ticksOffset[0],"width"),s=this._getMaxTickSize(),a=this.labels.position,u="height",c=this._getBorderSize(),d=this._calculateTickOffset()+s,m;this.orientation==="vertical"&&(n=this._getSize(this.ticksOffset[1],"height"),u="width"),m=this._getMaxLabelSize()[u],(a==="near"||a==="both")&&this._labelListRender(d-s-m+c,n+c,m,"near"),(a==="far"||a==="both")&&this._labelListRender(d+s+m+c,n+c,m,"far")}},_labelListRender:function(n,s,a,u){var c,d,m,v,_,S=this._getScaleLength();n+=this._getSize(this.labels.offset),this.int64!==!1?(_=this._max64.subtract(this._min64),this.tickMode==="default"?(c=this.labels._interval64,this.int64==="s"?d=_.div(c).toNumber():d=parseFloat(_.divide(c).toString())):(d=this.labels.number,this.int64==="s"?c=_.div(new e.jqx.math().fromNumber(d)):c=_.divide(d)),v=this.orientation==="vertical"?this._max64:this._min64):(_=Math.abs(this.max-this.min),this.tickMode==="default"?(c=this.labels.interval,d=_/c):(d=this.labels.number,c=_/d),v=this.orientation==="vertical"?this.max:this.min),m=S/d;for(var l=0;l<=d;l+=1)this._renderLabel(s,u,n,a,v),this.int64!==!1?v=this.orientation==="vertical"?v.subtract(c):v.add(c):v+=this.orientation==="vertical"?-c:c,s+=m},_renderLabel:function(n,s,a,u,c){var d=this,m=d.labels,v={class:this.toThemeProperty("jqx-gauge-label")};this.labels.interval;var _,S,l,w,C="";m.fontSize&&(C+="font-size: "+m.fontSize+";"),m.fontFamily&&(C+="font-family: "+m.fontFamily),m.fontWeight&&(C+="font-weight: "+m.fontWeight),m.fontStyle&&(C+="font-style: "+m.fontStyle),C!==""&&(v.style=C),l=this._formatLabel(c.toString(),s),S=this.renderer.measureText(l,0,v),this.orientation==="vertical"?(_=s==="near"?u-S.width:0,w=this.renderer.text(l,Math.round(a)+_-u/2,Math.round(n-S.height/2),S.width,S.height,0,v)):(_=s==="near"?u-S.height:0,w=this.renderer.text(l,Math.round(n-S.width/2),Math.round(a)+_-u/2,S.width,S.height,0,v)),s==="near"?this.niceInterval||this.orientation==="horizontal"?this._nearLabels.push(w):this._nearLabels.unshift(w):this.niceInterval||this.orientation==="horizontal"?this._farLabels.push(w):this._farLabels.unshift(w)},_renderRanges:function(){if(!!this.showRanges)for(var n=this.orientation==="vertical"?"width":"height",s=this._getSize(this.rangesOffset,n),a=this._getSize(this.rangeSize,n),u,c=0;c<this.ranges.length;c+=1)u=this.ranges[c],u.size=a,this._renderRange(u,s)},_renderRange:function(n,s){this._getScaleLength();var a=this._getBorderSize(),u=this._getSize(this.ticksOffset[0],"width"),c=this._getSize(this.ticksOffset[1],"height"),d=this._getMaxTickSize(),m=this._getSize(n.size),v,_;this.int64!==!1?(v=this._valueToCoordinates(n._endValue64),_=n._startValue64,this.int64==="s"&&_.lessThan(this._min64)?_=new e.jqx.math().fromString(this._min64.toString(),10):this.int64==="u"&&_.compare(this._min64)===-1&&(_=new BigNumber(this._min64))):(v=this._valueToCoordinates(n.endValue),_=n.startValue,_<this.min&&(_=this.min));var S=Math.abs(this._valueToCoordinates(_)-v),l,w;this.orientation==="vertical"?l=this.renderer.rect(u+d+s-m+a,v,n.size,S,n.style):(w=S,l=this.renderer.rect(this._valueToCoordinates(_),c+d+a,w,n.size,n.style)),this.renderer.attr(l,n.style)},_renderPointer:function(){!this.pointer.visible||(this.pointer.pointerType==="default"?this._renderColumnPointer():this._renderArrowPointer())},_renderColumnPointer:function(){if(this.displayTank){var n={fill:"#FFFFFF"};n["fill-opacity"]=0,this.tankStyle?(n.stroke=this.tankStyle.stroke,n["stroke-width"]=this.tankStyle.strokeWidth):(n.stroke="#A1A1A1",n["stroke-width"]="1px"),this._tank=this.renderer.rect(0,0,0,0,n),this._performTankLayout()}this._pointer=this.renderer.rect(0,0,0,0,this.pointer.style),this.renderer.attr(this._pointer,this.pointer.style),this.int64!==!1?this._setValue(this._value64):this._setValue(this.value)},_performTankLayout:function(){var n,s,a,u=this._valueToCoordinates(),c=this._getBorderSize(),d=this._getSize(this.ticksOffset[0],"width"),m=this._getSize(this.ticksOffset[1],"height"),v=this._getMaxTickSize(),_=this._getSize(this.pointer.size),S=this._getSize(this.pointer.offset),l={};this.int64!==!1?(u=this._valueToCoordinates(this._max64),n=this._valueToCoordinates(this._min64)):(u=this._valueToCoordinates(this.max),n=this._valueToCoordinates(this.min)),a=Math.abs(n-u),this.orientation==="vertical"?(s=d+v,l={left:s+S+1+c,top:u,height:a,width:_}):(s=m+v,l={left:n,top:s+S-_-1+c,height:_,width:a}),this._isVML?(this._tank.style.top=l.top,this._tank.style.left=l.left,this._tank.style.width=l.width,this._tank.style.height=l.height):(this.renderer.attr(this._tank,{x:l.left}),this.renderer.attr(this._tank,{y:l.top}),this.renderer.attr(this._tank,{width:l.width}),this.renderer.attr(this._tank,{height:l.height}))},_renderArrowPointer:function(){var n=this._getArrowPathByValue(0);this._pointer=this.renderer.path(n,this.pointer.style)},_renderArrowPointerByValue:function(n){var s=this._getArrowPathByValue(n);this._pointer=this.renderer.path(s,this.pointer.style)},_getArrowPathByValue:function(n){var s=this._getBorderSize(),a=Math.ceil(this._valueToCoordinates(n))+s,u=s,c=Math.ceil(this._getSize(this.ticksOffset[0],"width"));Math.ceil(this._getSize(this.ticksOffset[1],"height"));var d=Math.ceil(this._getSize(this.pointer.offset)),m=Math.ceil(this._getMaxTickSize()),v=Math.ceil(this._getSize(this.pointer.size)),_=Math.ceil(Math.sqrt(v*v/3)),S,l,w;if(this.orientation==="vertical")u+=c+m+d,l=d>=0?u+v:u-v,S="M "+u+" "+a+" L "+l+" "+(a-_)+" L "+l+" "+(a+_);else{var C=this._getMaxLabelSize().height;u+=c+m+d+C,this._isVML&&(u-=2),w=a,a=u,u=w,l=a-v,S="M "+u+" "+a+" L "+(u-_)+" "+l+" L "+(u+_)+" "+l}return S},_setValue:function(n){this.pointer.pointerType==="default"?this._performColumnPointerLayout(n):this._performArrowPointerLayout(n),this.value=n},_performColumnPointerLayout:function(n){var s,a,u,c=this._valueToCoordinates(n),d=this._getBorderSize(),m=this._getSize(this.ticksOffset[0],"width"),v=this._getSize(this.ticksOffset[1],"height"),_=this._getMaxTickSize(),S=this._getSize(this.pointer.size),l=this._getSize(this.pointer.offset),w={};this.int64!==!1?s=this._valueToCoordinates(this._min64):s=this._valueToCoordinates(this.min),u=Math.abs(s-c),this.orientation==="vertical"?(a=m+_,w={left:a+l+1+d,top:c,height:u,width:S}):(a=v+_,w={left:s,top:a+l-S-1+d,height:S,width:u}),this._setRectAttrs(w)},_performArrowPointerLayout:function(n){var s=this._getArrowPathByValue(n);this._isVML?(this._pointer&&e(this._pointer).remove(),this._renderArrowPointerByValue(n)):this.renderer.attr(this._pointer,{d:s})},_setRectAttrs:function(n){this._isVML?(this._pointer.style.top=n.top,this._pointer.style.left=n.left,this._pointer.style.width=n.width,this._pointer.style.height=n.height):(this.renderer.attr(this._pointer,{x:n.left}),this.renderer.attr(this._pointer,{y:n.top}),this.renderer.attr(this._pointer,{width:n.width}),this.renderer.attr(this._pointer,{height:n.height}))},_valueToCoordinates:function(n){var s=this._getBorderSize(),a=this._getScaleLength(),u=this._getSize(this.ticksOffset[0],"width"),c=this._getSize(this.ticksOffset[1],"height"),d,m,v;if(this.int64!==!1){d=n.subtract(this._min64),m=this._max64.subtract(this._min64),this.int64==="s"?(d.isNegative()&&d.negate(),m.isNegative()&&m.negate()):(d=d.intPart().abs(),m=m.abs());var _=d.toString(),S=m.toString(),l,w;if(S.length>15){var C=S.length-15;if(S=S.slice(0,15)+"."+S.slice(15),w=parseFloat(S),_.length>C){var L=_.length-C;_=_.slice(0,L)+"."+_.slice(L)}else if(_.length===C)_="0."+_;else{for(var A="0.",O=0;O<C-_.length;O++)A+="0";_=A+""+_}l=parseFloat(_)}else this.int64==="s"?(l=d.toNumber(),w=m.toNumber()):(l=parseFloat(d.toString()),w=parseFloat(m.toString()));v=l/w*a}else d=Math.abs(this.min-n),m=Math.abs(this.max-this.min),v=d/m*a;return this.orientation==="vertical"?this._height-v-(this._height-c-a)+s:v+u},_getSize:function(n,s){return s=s||(this.orientation==="vertical"?"width":"height"),n.toString().indexOf("%")>=0&&(n=parseInt(n,10)/100*this["_"+s]),n=parseInt(n,10),n},propertiesChangedHandler:function(n,s,a){a.width&&a.height&&Object.keys(a).length==2&&n.refresh()},propertyChangedHandler:function(n,s,a,u){if(u!=a&&!(n.batchUpdate&&n.batchUpdate.width&&n.batchUpdate.height&&Object.keys(n.batchUpdate).length==2)&&!(s==="tankStyle"&&n.pointer.pointerType==="arrow")){if(s=="min"&&(n.int64==="s"?n._min64=new e.jqx.math().fromString(u.toString(),10):n.int64==="u"?n._min64=new BigNumber(u):this.min=parseFloat(u),e.jqx.aria(this,"aria-valuemin",u)),s=="max"&&(n.int64==="s"?n._max64=new e.jqx.math().fromString(u.toString(),10):n.int64==="u"?n._max64=new BigNumber(u):this.max=parseFloat(u),e.jqx.aria(this,"aria-valuemax",u)),s==="disabled")u?this.disable():this.enable(),e.jqx.aria(this,"aria-disabled",u);else if(s==="value")this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.value=a,this.setValue(u);else{if(s==="colorScheme")this.pointer.style=null;else if(s==="orientation"&&a!==u){var c=this.ticksOffset[0];this.ticksOffset[0]=this.ticksOffset[1],this.ticksOffset[1]=c}s!=="animationDuration"&&s!=="easing"&&this.refresh()}this.renderer instanceof e.jqx.HTML5Renderer&&this.renderer.refresh()}},_backgroundConstructor:function(n,s){if(this.host)return new this._backgroundConstructor(n,s);var a={rectangle:!0,roundedRectangle:!0};n=n||{},this.style=n.style||{stroke:"#cccccc",fill:null},n.visible||typeof n.visible=="undefined"?this.visible=!0:this.visible=!1,a[n.backgroundType]?this.backgroundType=n.backgroundType:this.backgroundType="roundedRectangle",this.backgroundType==="roundedRectangle"&&(typeof n.borderRadius=="number"?this.borderRadius=n.borderRadius:this.borderRadius=15),typeof n.showGradient=="undefined"?this.showGradient=!0:this.showGradient=n.showGradient},resize:function(n,s){this.width=n,this.height=s,this.refresh()},_tickConstructor:function(n,s){if(this.host)return new this._tickConstructor(n,s);this.size=s._validatePercentage(n.size,"10%"),n.interval?this.interval=n.interval:this.interval=5,s.int64==="s"?this._interval64=new e.jqx.math().fromString(this.interval.toString(),10):s.int64==="u"?this._interval64=new BigNumber(this.interval):this.interval=parseFloat(this.interval),n.number?this.number=n.number:this.number=5,this.style=n.style||{stroke:"#A1A1A1","stroke-width":"1px"},typeof n.visible=="undefined"?this.visible=!0:this.visible=n.visible},_labelsConstructor:function(n,s){if(this.host)return new this._labelsConstructor(n,s);this.position=n.position,this.position!=="far"&&this.position!=="near"&&this.position!=="both"&&(this.position="both"),this.formatValue=n.formatValue,this.formatSettings=n.formatSettings,this.visible=n.visible,this.visible!==!1&&this.visible!==!0&&(this.visible=!0),n.interval?this.interval=n.interval:this.interval=10,s.int64==="s"?this._interval64=new e.jqx.math().fromString(this.interval.toString(),10):s.int64==="u"?this._interval64=new BigNumber(this.interval):this.interval=parseFloat(this.interval),n.number?this.number=n.number:this.number=10,this.fontSize=n.fontSize,this.fontFamily=n.fontFamily,this.fontWeight=n.fontWeight,this.fontStyle=n.fontStyle,this.offset=s._validatePercentage(n.offset,0)},_rangeConstructor:function(n,s){if(this.host)return new this._rangeConstructor(n,s);n.startValue?this.startValue=n.startValue:this.startValue=s.min,n.endValue?this.endValue=n.endValue:this.endValue=s.max,s.int64==="s"?(this._startValue64=new e.jqx.math().fromString(this.startValue.toString(),10),this._endValue64=new e.jqx.math().fromString(this.endValue.toString(),10),this._endValue64.lessThanOrEqual(this._startValue64)&&(this._endValue64=this._startValue64.add(new e.jqx.math().fromNumber(1,10)),this.endValue=this._endValue64.toString())):s.int64==="u"?(this._startValue64=new BigNumber(this.startValue),this._endValue64=new BigNumber(this.endValue),this._endValue64.compare(this._startValue64)!==1&&(this._endValue64=this._startValue64.add(1),this.endValue=this._endValue64.toString())):(this.startValue=parseFloat(this.startValue),this.endValue=parseFloat(this.endValue),this.endValue<=this.startValue&&(this.endValue=this.startValue+1)),this.style=n.style||{fill:"#dddddd",stroke:"#dddddd"}},_pointerConstructor:function(n,s){if(this.host)return new this._pointerConstructor(n,s);var a=s._getColorScheme(s.colorScheme)[0];this.pointerType=n.pointerType,this.pointerType!=="default"&&this.pointerType!=="arrow"&&(this.pointerType="default"),this.style=n.style||{fill:a,stroke:a,"stroke-width":1},this.size=s._validatePercentage(n.size,"7%"),this.visible=n.visible,this.visible!==!0&&this.visible!==!1&&(this.visible=!0),this.offset=s._validatePercentage(n.offset,0)}};e.extend(t,i),e.extend(r,i),e.jqx.jqxWidget("jqxLinearGauge","",{}),e.jqx.jqxWidget("jqxGauge","",{}),e.extend(e.jqx._jqxGauge.prototype,t),e.extend(e.jqx._jqxLinearGauge.prototype,r)})(jqxBaseFramework);const cd={props:{animationDuration:Number,border:Object,caption:Object,cap:[String,Object],colorScheme:String,disabled:Boolean,easing:String,endAngle:Number,height:[Number,String],int64:Boolean,labels:Object,min:Number,max:Number,pointer:Object,radius:Number,ranges:Array,startAngle:Number,showRanges:Boolean,styles:Object,ticksMajor:Object,ticksMinor:Object,ticksDistance:String,value:Number,width:[Number,String],autoCreate:{default:!0,type:Boolean}},created:function(){this.id="jqxGauge"+JQXLite.generateID(),this.componentSelector="#"+this.id},mounted:function(){this.autoCreate&&this.__createComponent__()},methods:{createComponent:function(e){this.autoCreate?console.warn('Component is already created! If you want to use createComponent, please set "autoCreate" property to "false".'):this.__createComponent__(e)},setOptions:function(e){JQXLite(this.componentSelector).jqxGauge(e)},getOptions:function(){const e=Object.keys(this.__manageProps__()),t={};for(let i=0;i<e.length;i++)t[e[i]]=JQXLite(this.componentSelector).jqxGauge(e[i]);return t},disable:function(){JQXLite(this.componentSelector).jqxGauge("disable")},enable:function(){JQXLite(this.componentSelector).jqxGauge("enable")},val:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("val",e);else return JQXLite(this.componentSelector).jqxGauge("val")},_animationDuration:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("animationDuration",e);else return JQXLite(this.componentSelector).jqxGauge("animationDuration")},_border:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("border",e);else return JQXLite(this.componentSelector).jqxGauge("border")},_caption:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("caption",e);else return JQXLite(this.componentSelector).jqxGauge("caption")},_cap:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("cap",e);else return JQXLite(this.componentSelector).jqxGauge("cap")},_colorScheme:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("colorScheme",e);else return JQXLite(this.componentSelector).jqxGauge("colorScheme")},_disabled:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("disabled",e);else return JQXLite(this.componentSelector).jqxGauge("disabled")},_easing:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("easing",e);else return JQXLite(this.componentSelector).jqxGauge("easing")},_endAngle:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("endAngle",e);else return JQXLite(this.componentSelector).jqxGauge("endAngle")},_height:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("height",e);else return JQXLite(this.componentSelector).jqxGauge("height")},_int64:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("int64",e);else return JQXLite(this.componentSelector).jqxGauge("int64")},_labels:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("labels",e);else return JQXLite(this.componentSelector).jqxGauge("labels")},_min:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("min",e);else return JQXLite(this.componentSelector).jqxGauge("min")},_max:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("max",e);else return JQXLite(this.componentSelector).jqxGauge("max")},_pointer:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("pointer",e);else return JQXLite(this.componentSelector).jqxGauge("pointer")},_radius:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("radius",e);else return JQXLite(this.componentSelector).jqxGauge("radius")},_ranges:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("ranges",e);else return JQXLite(this.componentSelector).jqxGauge("ranges")},_startAngle:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("startAngle",e);else return JQXLite(this.componentSelector).jqxGauge("startAngle")},_showRanges:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("showRanges",e);else return JQXLite(this.componentSelector).jqxGauge("showRanges")},_styles:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("styles",e);else return JQXLite(this.componentSelector).jqxGauge("styles")},_ticksMajor:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("ticksMajor",e);else return JQXLite(this.componentSelector).jqxGauge("ticksMajor")},_ticksMinor:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("ticksMinor",e);else return JQXLite(this.componentSelector).jqxGauge("ticksMinor")},_ticksDistance:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("ticksDistance",e);else return JQXLite(this.componentSelector).jqxGauge("ticksDistance")},_value:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("value",e);else return JQXLite(this.componentSelector).jqxGauge("value")},_width:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxGauge("width",e);else return JQXLite(this.componentSelector).jqxGauge("width")},__createComponent__:function(e){let t;e?t=e:t=this.__manageProps__(),JQXLite(this.componentSelector).jqxGauge(t),this.__extendProps__(),this.__wireEvents__()},__manageProps__:function(){const e=["animationDuration","border","caption","cap","colorScheme","disabled","easing","endAngle","height","int64","labels","min","max","pointer","radius","ranges","startAngle","showRanges","styles","ticksMajor","ticksMinor","ticksDistance","value","width"],t=this.$options.propsData;let i={};for(let r in t)r==="styleProperty"&&(r="style"),e.indexOf(r)!==-1&&(i[r]=t[r]);return i},__extendProps__:function(){const e=this;Object.defineProperty(e,"animationDuration",{get:function(){return e._animationDuration()},set:function(t){e._animationDuration(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"border",{get:function(){return e._border()},set:function(t){e._border(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"caption",{get:function(){return e._caption()},set:function(t){e._caption(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"cap",{get:function(){return e._cap()},set:function(t){e._cap(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"colorScheme",{get:function(){return e._colorScheme()},set:function(t){e._colorScheme(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"disabled",{get:function(){return e._disabled()},set:function(t){e._disabled(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"easing",{get:function(){return e._easing()},set:function(t){e._easing(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"endAngle",{get:function(){return e._endAngle()},set:function(t){e._endAngle(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"height",{get:function(){return e._height()},set:function(t){e._height(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"int64",{get:function(){return e._int64()},set:function(t){e._int64(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"labels",{get:function(){return e._labels()},set:function(t){e._labels(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"min",{get:function(){return e._min()},set:function(t){e._min(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"max",{get:function(){return e._max()},set:function(t){e._max(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"pointer",{get:function(){return e._pointer()},set:function(t){e._pointer(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"radius",{get:function(){return e._radius()},set:function(t){e._radius(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"ranges",{get:function(){return e._ranges()},set:function(t){e._ranges(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"startAngle",{get:function(){return e._startAngle()},set:function(t){e._startAngle(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"showRanges",{get:function(){return e._showRanges()},set:function(t){e._showRanges(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"styles",{get:function(){return e._styles()},set:function(t){e._styles(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"ticksMajor",{get:function(){return e._ticksMajor()},set:function(t){e._ticksMajor(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"ticksMinor",{get:function(){return e._ticksMinor()},set:function(t){e._ticksMinor(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"ticksDistance",{get:function(){return e._ticksDistance()},set:function(t){e._ticksDistance(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"value",{get:function(){return e._value()},set:function(t){e._value(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"width",{get:function(){return e._width()},set:function(t){e._width(t)},enumerable:!0,configurable:!0})},__wireEvents__:function(){const e=this;JQXLite(this.componentSelector).on("valueChanging",function(t){e.$emit("valueChanging",t)}),JQXLite(this.componentSelector).on("valueChanged",function(t){e.$emit("valueChanged",t)})}}},hd=["id"];function dd(e,t,i,r,n,s){return _e(),be("div",{id:e.id},[_s(e.$slots,"default")],8,hd)}var pd=Tt(cd,[["render",dd]]);const md={props:{animationDuration:Number,background:Object,colorScheme:String,disabled:Boolean,easing:String,height:[Number,String],int64:Boolean,labels:Object,min:Number,max:Number,orientation:String,pointer:Object,rangesOffset:Number,rangeSize:String,ranges:Array,showRanges:Boolean,scaleStyle:Object,scaleLength:[String,Number],ticksOffset:Array,ticksPosition:String,ticksMinor:Object,ticksMajor:Object,value:Number,width:[Number,String],autoCreate:{default:!0,type:Boolean}},created:function(){this.id="jqxLinearGauge"+JQXLite.generateID(),this.componentSelector="#"+this.id},mounted:function(){this.autoCreate&&this.__createComponent__()},methods:{createComponent:function(e){this.autoCreate?console.warn('Component is already created! If you want to use createComponent, please set "autoCreate" property to "false".'):this.__createComponent__(e)},setOptions:function(e){JQXLite(this.componentSelector).jqxLinearGauge(e)},getOptions:function(){const e=Object.keys(this.__manageProps__()),t={};for(let i=0;i<e.length;i++)t[e[i]]=JQXLite(this.componentSelector).jqxLinearGauge(e[i]);return t},disable:function(){JQXLite(this.componentSelector).jqxLinearGauge("disable")},enable:function(){JQXLite(this.componentSelector).jqxLinearGauge("enable")},val:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("val",e);else return JQXLite(this.componentSelector).jqxLinearGauge("val")},_animationDuration:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("animationDuration",e);else return JQXLite(this.componentSelector).jqxLinearGauge("animationDuration")},_background:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("background",e);else return JQXLite(this.componentSelector).jqxLinearGauge("background")},_colorScheme:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("colorScheme",e);else return JQXLite(this.componentSelector).jqxLinearGauge("colorScheme")},_disabled:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("disabled",e);else return JQXLite(this.componentSelector).jqxLinearGauge("disabled")},_easing:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("easing",e);else return JQXLite(this.componentSelector).jqxLinearGauge("easing")},_height:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("height",e);else return JQXLite(this.componentSelector).jqxLinearGauge("height")},_int64:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("int64",e);else return JQXLite(this.componentSelector).jqxLinearGauge("int64")},_labels:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("labels",e);else return JQXLite(this.componentSelector).jqxLinearGauge("labels")},_min:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("min",e);else return JQXLite(this.componentSelector).jqxLinearGauge("min")},_max:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("max",e);else return JQXLite(this.componentSelector).jqxLinearGauge("max")},_orientation:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("orientation",e);else return JQXLite(this.componentSelector).jqxLinearGauge("orientation")},_pointer:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("pointer",e);else return JQXLite(this.componentSelector).jqxLinearGauge("pointer")},_rangesOffset:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("rangesOffset",e);else return JQXLite(this.componentSelector).jqxLinearGauge("rangesOffset")},_rangeSize:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("rangeSize",e);else return JQXLite(this.componentSelector).jqxLinearGauge("rangeSize")},_ranges:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("ranges",e);else return JQXLite(this.componentSelector).jqxLinearGauge("ranges")},_showRanges:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("showRanges",e);else return JQXLite(this.componentSelector).jqxLinearGauge("showRanges")},_scaleStyle:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("scaleStyle",e);else return JQXLite(this.componentSelector).jqxLinearGauge("scaleStyle")},_scaleLength:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("scaleLength",e);else return JQXLite(this.componentSelector).jqxLinearGauge("scaleLength")},_ticksOffset:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("ticksOffset",e);else return JQXLite(this.componentSelector).jqxLinearGauge("ticksOffset")},_ticksPosition:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("ticksPosition",e);else return JQXLite(this.componentSelector).jqxLinearGauge("ticksPosition")},_ticksMinor:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("ticksMinor",e);else return JQXLite(this.componentSelector).jqxLinearGauge("ticksMinor")},_ticksMajor:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("ticksMajor",e);else return JQXLite(this.componentSelector).jqxLinearGauge("ticksMajor")},_value:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("value",e);else return JQXLite(this.componentSelector).jqxLinearGauge("value")},_width:function(e){if(e!==void 0)JQXLite(this.componentSelector).jqxLinearGauge("width",e);else return JQXLite(this.componentSelector).jqxLinearGauge("width")},__createComponent__:function(e){let t;e?t=e:t=this.__manageProps__(),JQXLite(this.componentSelector).jqxLinearGauge(t),this.__extendProps__(),this.__wireEvents__()},__manageProps__:function(){const e=["animationDuration","background","colorScheme","disabled","easing","height","int64","labels","min","max","orientation","pointer","rangesOffset","rangeSize","ranges","showRanges","scaleStyle","scaleLength","ticksOffset","ticksPosition","ticksMinor","ticksMajor","value","width"],t=this.$options.propsData;let i={};for(let r in t)e.indexOf(r)!==-1&&(i[r]=t[r]);return i},__extendProps__:function(){const e=this;Object.defineProperty(e,"animationDuration",{get:function(){return e._animationDuration()},set:function(t){e._animationDuration(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"background",{get:function(){return e._background()},set:function(t){e._background(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"colorScheme",{get:function(){return e._colorScheme()},set:function(t){e._colorScheme(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"disabled",{get:function(){return e._disabled()},set:function(t){e._disabled(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"easing",{get:function(){return e._easing()},set:function(t){e._easing(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"height",{get:function(){return e._height()},set:function(t){e._height(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"int64",{get:function(){return e._int64()},set:function(t){e._int64(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"labels",{get:function(){return e._labels()},set:function(t){e._labels(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"min",{get:function(){return e._min()},set:function(t){e._min(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"max",{get:function(){return e._max()},set:function(t){e._max(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"orientation",{get:function(){return e._orientation()},set:function(t){e._orientation(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"pointer",{get:function(){return e._pointer()},set:function(t){e._pointer(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"rangesOffset",{get:function(){return e._rangesOffset()},set:function(t){e._rangesOffset(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"rangeSize",{get:function(){return e._rangeSize()},set:function(t){e._rangeSize(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"ranges",{get:function(){return e._ranges()},set:function(t){e._ranges(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"showRanges",{get:function(){return e._showRanges()},set:function(t){e._showRanges(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"scaleStyle",{get:function(){return e._scaleStyle()},set:function(t){e._scaleStyle(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"scaleLength",{get:function(){return e._scaleLength()},set:function(t){e._scaleLength(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"ticksOffset",{get:function(){return e._ticksOffset()},set:function(t){e._ticksOffset(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"ticksPosition",{get:function(){return e._ticksPosition()},set:function(t){e._ticksPosition(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"ticksMinor",{get:function(){return e._ticksMinor()},set:function(t){e._ticksMinor(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"ticksMajor",{get:function(){return e._ticksMajor()},set:function(t){e._ticksMajor(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"value",{get:function(){return e._value()},set:function(t){e._value(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"width",{get:function(){return e._width()},set:function(t){e._width(t)},enumerable:!0,configurable:!0})},__wireEvents__:function(){const e=this;JQXLite(this.componentSelector).on("valueChanging",function(t){e.$emit("valueChanging",t)}),JQXLite(this.componentSelector).on("valueChanged",function(t){e.$emit("valueChanged",t)})}}},gd=["id"];function vd(e,t,i,r,n,s){return _e(),be("div",{id:e.id},[_s(e.$slots,"default")],8,gd)}var _d=Tt(md,[["render",vd]]);const xd={props:{state:Number},data:function(){return{states:[{id:0,name:"INIT"},{id:1,name:"IDLE"},{id:2,name:"START"},{id:3,name:"RUN"},{id:4,name:"STOP"},{id:5,name:"FAULT"}]}}},yd={class:"border p-3 mt-1"},wd=q("b",null,"STATE",-1);function bd(e,t,i,r,n,s){return _e(),be("div",yd,[wd,(_e(!0),be(Ze,null,qt(e.states,a=>(_e(),be("div",{class:_t(a.id==i.state?"state active-state":"state")},Ke(a.name),3))),256))])}var Sd=Tt(xd,[["render",bd]]);const jd={props:{fault:Number},data:function(){return{faults:[{id:0,name:"NO FAULTS"},{id:1,name:"FOC DURATION"},{id:2,name:"OVER VOLTAGE"},{id:3,name:"UNDER VOLTAGE"},{id:4,name:"OVER TEMPERATURE"},{id:5,name:"START UP FAULT"},{id:6,name:"SPEED FEEDBACK"},{id:7,name:"BREAK IN"},{id:8,name:"SW ERROR"}]}}},kd={class:"border p-3 mt-1"},qd=q("b",null,"FAULTS",-1);function Md(e,t,i,r,n,s){return _e(),be("div",kd,[qd,(_e(!0),be(Ze,null,qt(e.faults,a=>(_e(),be("div",{class:_t(a.id==i.fault?"state active-state":"state")},Ke(a.name),3))),256))])}var Cd=Tt(jd,[["render",Md]]);const Td={props:{mode:Number},data:function(){return{modes:[{id:0,name:"TORQUE"},{id:1,name:"SPEED"}]}}},Od={class:"border p-3 mt-1"},Ed=q("b",null,"MODE",-1);function Pd(e,t,i,r,n,s){return _e(),be("div",Od,[Ed,(_e(!0),be(Ze,null,qt(e.modes,a=>(_e(),be("div",{class:_t(a.id==i.mode?"state active-state":"state")},Ke(a.name),3))),256))])}var Ld=Tt(Td,[["render",Pd]]);const Ad={props:["value"],data:function(){return{cx:100,cy:100,r:99}},computed:{arrowPath(){return"M "+(this.cx-2)+","+this.cy+" L "+this.cx+","+3+" L "+(this.cx+2)+","+this.cy},linesSmall(){return this.getLinesArray(10,5)},linesBig(){return this.getLinesArray(45,15)},libels(){let e=[];for(let t=0;t<360;t+=45){let i=t*Math.PI/180-Math.PI/2,r=Math.sin(i),n=Math.cos(i),s=""+t,a=s.length*8,u=(this.r-30)*n+this.cx-a/2,c=(this.r-30)*r+this.cy+9/2;e.push({x:u,y:c,width:a,text:s})}return e}},methods:{getLinesArray(e=10,t=5){let i=[];for(let r=0;r<360;r+=e){let n=r*Math.PI/180,s=Math.sin(n),a=Math.cos(n),u=this.r*s+this.cx,c=this.r*a+this.cy,d=(this.r-t)*s+this.cx,m=(this.r-t)*a+this.cy;i.push({x1:u,y1:c,x2:d,y2:m})}return i}}},Nd={width:"200px",height:"200px'",viewBox:"0 0 200 200"},Id=["cx","cy","r"],Rd=["cx","cy"],Fd=["d"],Bd=["from","to"],Dd=["x1","y1","x2","y2"],zd=["x1","y1","x2","y2"],Vd=["x","y","width"];function Hd(e,t,i,r,n,s){return _e(),be("svg",Nd,[q("circle",{"stroke-width":"1",fill:"none",stroke:"#898989",cx:e.cx,cy:e.cy,r:e.r},null,8,Id),q("circle",{"stroke-width":"1",fill:"#25A0DA",stroke:"#25A0DA",cx:e.cx,cy:e.cy,r:"3"},null,8,Rd),q("path",{d:s.arrowPath,"z-index":"0",stroke:"none",fill:"#25A0DA","stroke-width":"1",style:{visibility:"visible"}},[q("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:i.value+" 100 100",to:i.value+" 100 100",dur:"0.5s",additive:"sum",repeatCount:"indefinite"},null,8,Bd)],8,Fd),(_e(!0),be(Ze,null,qt(s.linesSmall,a=>(_e(),be("line",{x1:a.x1,y1:a.y1,x2:a.x2,y2:a.y2,stroke:"#898989","stroke-width":"1"},null,8,Dd))),256)),(_e(!0),be(Ze,null,qt(s.linesBig,a=>(_e(),be("line",{x1:a.x1,y1:a.y1,x2:a.x2,y2:a.y2,stroke:"#898989","stroke-width":"1"},null,8,zd))),256)),(_e(!0),be(Ze,null,qt(s.libels,a=>(_e(),be("text",{cursor:"default",x:a.x,y:a.y,width:a.width,height:"9"},Ke(a.text),9,Vd))),256))])}var Wd=Tt(Ad,[["render",Hd]]);const Xd={props:["title"],data:function(){return{winStateClass:"",drag:!1,dragObject:this.dragObject,shiftX:this.shiftX,shiftY:this.shiftY,downX:this.downX,downY:this.downY}},methods:{toggleMinimize:function(){this.winStateClass==""?this.winStateClass="minimized":this.winStateClass=""},close(){this.$emit("close")},mousedownTitle(e){let t=this.dragObject.getBoundingClientRect();this.shiftX=t.left,this.shiftY=t.top,e.type=="mousedown"?(this.downX=e.pageX,this.downY=e.pageY):e.type=="touchstart"&&(this.downX=e.touches[0].pageX,this.downY=e.touches[0].pageY),this.drag=!0},mouseupTitle(){console.log("mouseup"),this.drag=!1},dblclickTitle(){this.winStateClass=="minimized"&&(this.winStateClass="")},onMouseMove(e){if(this.drag==!0){console.log("onMouseMove");let t=0,i=0;e.type=="mousemove"?(t=e.pageX,i=e.pageY):e.type=="touchmove"&&(t=e.touches[0].pageX,i=e.touches[0].pageY),this.dragObject.style.left=this.shiftX+(t-this.downX)+"px",this.dragObject.style.top=this.shiftY+(i-this.downY)+"px"}}},mounted:function(){this.dragObject=this.$refs.win,document.onmousemove=this.onMouseMove,document.ontouchmove=this.onMouseMove},beforeUnmount:function(){document.onmousemove=null,document.ontouchmove=null}},$d=q("div",{class:"icon"},null,-1),Ud={class:"title"},Gd={class:"content"};function Jd(e,t,i,r,n,s){return _e(),be("div",{class:_t("win "+e.winStateClass),style:{"z-index":"10",right:"10px"},ref:"win"},[q("div",{class:"wintitle",onDblclick:t[2]||(t[2]=a=>s.dblclickTitle()),onMousedown:t[3]||(t[3]=(...a)=>s.mousedownTitle&&s.mousedownTitle(...a)),onMouseup:t[4]||(t[4]=a=>s.mouseupTitle())},[$d,q("div",Ud,Ke(i.title),1),q("div",{class:"btn imgClose",onClick:t[0]||(t[0]=a=>s.close()),title:"Close"}),q("div",{class:"btn imgMin",onClick:t[1]||(t[1]=a=>s.toggleMinimize()),title:"Minimize / Restore"})],32),q("div",Gd,[_s(e.$slots,"default")])],2)}var Qd=Tt(Xd,[["render",Jd]]);const Yd={props:["width","height","data"],data:function(){return{vBoxWidth:600,vBoxHeight:400,leftOffset:30,rightOffset:10,topOffset:10,bottomOffset:20}},computed:{Lines:function(){let e=[];for(let t of this.data.lines)if(t.data){let i=(this.vBoxWidth-this.leftOffset-this.rightOffset)/(t.data.length-1),r=this.leftOffset,n=0,s="";for(let a of t.data)n=this.vBoxHeight-(this.vBoxHeight-this.bottomOffset-this.topOffset)*(a-this.data.yMin)/(this.data.yMax-this.data.yMin)-this.bottomOffset,r==this.leftOffset?s=s+"M "+r+" "+n:s=s+" L "+r+" "+n,e.push({stroke:t.color,d:s}),r=r+i}return e},yAxis:function(){let e=[],t=this.leftOffset*.9;for(let i=this.data.yMax;i>this.data.yMin;i=i-this.data.yAxisStep){let r=this.vBoxHeight-(this.vBoxHeight-this.bottomOffset-this.topOffset)*(i-this.data.yMin)/(this.data.yMax-this.data.yMin)-this.bottomOffset,n="M "+this.leftOffset+" "+r+" L "+(this.vBoxWidth-this.rightOffset)+" "+r,s="yAxis"+i;e.push({x:t,y:r,value:i,d:n,key:s})}return e},xAxis:function(){let e=[],t=this.vBoxHeight-this.bottomOffset/2;for(let i=this.data.xMin;i<=this.data.xMax;i=i+this.data.xAxisStep){let r=this.vBoxWidth-(this.vBoxWidth-this.leftOffset-this.rightOffset)*(i-this.data.xMin)/(this.data.xMax-this.data.xMin)-this.rightOffset,n="M "+r+" "+this.topOffset+" L "+r+" "+(this.vBoxHeight-this.bottomOffset),s=i;e.push({x:r,y:t,value:i,d:n,key:s})}return e},legend:function(){let e=[],t=50,i=50,r=20,n=i;for(let s of this.data.lines)if(s.name!=""){let a="M "+t+" "+n+" L "+(t+20)+" "+n;e.push({name:s.name,y:n,color:s.color,d:a,text_x:t+30,key:n}),n+=r}return e}}},Kd={key:0},Zd=["width","height","viewBox"],ep=q("rect",{width:"100%",height:"100%",fill:"#222"},null,-1),tp=["d"],np=["d"],ip=["x","y"],rp=["d"],sp=["d"],op=["x","y"],ap=["stroke","d"],lp=["x","y"],up=["stroke","d"];function fp(e,t,i,r,n,s){return _e(),be("div",null,[i.data?(_e(),be("div",Kd,[(_e(),be("svg",{width:i.width+"px",height:i.height+"px",viewBox:"0 0 "+e.vBoxWidth+" "+e.vBoxHeight},[ep,q("path",{"stroke-width":"1",fill:"none",stroke:"#fff",d:"M "+e.leftOffset+" 0 L "+e.leftOffset+" "+(e.vBoxHeight-e.bottomOffset)},null,8,tp),(_e(!0),be(Ze,null,qt(s.yAxis,a=>(_e(),be("path",{"stroke-width":"0.1",fill:"none",stroke:"#fff",d:a.d,key:"yAxis"+a.key},null,8,np))),128)),(_e(!0),be(Ze,null,qt(s.yAxis,a=>(_e(),be("text",{"text-anchor":"end","dominant-baseline":"central",x:a.x,y:a.y,"font-size":"12",fill:"#fff",key:"yAxisText"+a.key},Ke(a.value),9,ip))),128)),q("path",{"stroke-width":"1",fill:"none",stroke:"#fff",d:"M "+e.leftOffset+" "+(e.vBoxHeight-e.bottomOffset)+" L "+e.vBoxWidth+" "+(e.vBoxHeight-e.bottomOffset)},null,8,rp),(_e(!0),be(Ze,null,qt(s.xAxis,a=>(_e(),be("path",{"stroke-width":"0.1",fill:"none",stroke:"#fff",d:a.d,key:"xAxis"+a.key},null,8,sp))),128)),(_e(!0),be(Ze,null,qt(s.xAxis,a=>(_e(),be("text",{"text-anchor":"middle","dominant-baseline":"central",x:a.x,y:a.y,"font-size":"12",fill:"#fff",key:"xAxisText"+a.key},"-"+Ke(a.value),9,op))),128)),(_e(!0),be(Ze,null,qt(s.legend,a=>(_e(),be("g",null,[(_e(),be("path",{"stroke-width":"1",fill:"none",stroke:a.color,d:a.d,key:"legend"+a.key},null,8,ap)),q("text",{"text-anchor":"start","dominant-baseline":"central",x:a.text_x,y:a.y,"font-size":"14",fill:"#fff"},Ke(a.name),9,lp)]))),256)),(_e(!0),be(Ze,null,qt(s.Lines,a=>(_e(),be("path",{"stroke-width":"1",fill:"none",stroke:a.stroke,d:a.d,key:a.name},null,8,up))),128))],8,Zd))])):Nt("",!0)])}var cp=Tt(Yd,[["render",fp]]);const Cn=ka();function qs(e){e===void 0&&(e=Cn.value.comp.returnValue()),Cn.value.resolve(e),Cn.value=null}function ql(e,t,i="default"){return new Promise(r=>{Cn.value={dialog:e,props:t,wrapper:i,resolve:r}})}const hp={install:(e,t)=>{e.config.globalProperties.$close=(i,r)=>{qs(r)}}};var dp=(e,t)=>{const i=e.__vccOpts||e;for(const[r,n]of t)i[r]=n;return i};const pp=qi({name:"DialogWrapper",components:{},props:{name:{type:String,default:"default"},transitionAttrs:Object},setup(){const e=ja();return ai(e,()=>{Cn.value&&(Cn.value.comp=e.value)}),{dialogRef:Cn,dialogInstance:e}}});function mp(e,t,i,r,n,s){return _e(),xi(Ss,mu(ol(e.transitionAttrs)),{default:gs(()=>[e.dialogRef&&e.dialogRef.wrapper===e.name?(_e(),xi(Cf(e.dialogRef.dialog),al({key:0},e.dialogRef.props,{ref:"dialogInstance"}),null,16)):Nt("",!0)]),_:1},16)}var gp=dp(pp,[["render",mp]]);const vp=qi({props:{text:String,title:String},setup(){function e(){return!0}return{returnValue:e,closeDialog:qs}}}),_p={class:"dialog"},xp={class:"center"},yp={class:"title"},wp={class:"text"},bp={class:"p-3 text-center"};function Sp(e,t,i,r,n,s){return _e(),be("div",_p,[q("div",xp,[q("div",yp,Ke(e.title),1),q("div",wp,Ke(e.text),1),q("div",bp,[q("button",{onClick:t[0]||(t[0]=a=>e.closeDialog()),class:"btn bt-sm btn-dark mb-1"},"YES"),q("button",{onClick:t[1]||(t[1]=a=>e.closeDialog(!1)),class:"btn bt-sm btn-dark mb-1"},"NO")])])])}var jp=Tt(vp,[["render",Sp],["__scopeId","data-v-19452836"]]);const kp=qi({props:{text:String,title:String},setup(){function e(){return!0}return{returnValue:e,closeDialog:qs}}}),qp={class:"dialog"},Mp={class:"center"},Cp={class:"title"},Tp={class:"text"},Op={class:"p-3 text-center"};function Ep(e,t,i,r,n,s){return _e(),be("div",qp,[q("div",Mp,[q("div",Cp,Ke(e.title),1),q("div",Tp,Ke(e.text),1),q("div",Op,[q("button",{onClick:t[0]||(t[0]=a=>e.closeDialog()),class:"btn bt-sm btn-dark mb-1"},"OK")])])])}var Pp=Tt(kp,[["render",Ep],["__scopeId","data-v-e48aa66c"]]);async function Lp(e,t=""){return await ql(jp,{text:e,title:t})}async function ia(e,t=""){return await ql(Pp,{text:e,title:t})}const Ap={components:{DialogWrapper:gp,JqxGauge:pd,JqxLinearGauge:_d,MState:Sd,MFaults:Cd,MMode:Ld,SVGAngle:Wd,Windows:Qd,SVGChart:cp},data(){return{tab:0,data:{version:0,versioncomment:"",rpm:0,voltage:0,temperature:0,mode:0,state:0,fault:0,pidiap:0,pidiai:0,pidiad:0,pidimp:0,pidimi:0,pidimd:0,pidspeedp:0,pidspeedi:0,pidspeedd:0,maxrpm:0,maxcurrent:0,maxtorque:0,maxpower:0,maxvoltage:0,minvoltage:0,maxtemperature:0,power:0,ia:0,speedtask:0,torquetask:0,RotorPolePairs:0,DevID:0,BrakeVoltageOn:0,BrakeVoltageOff:0,Filter_Ia:0,Filter_Im:0,Filter_Speed:0,HallAngleOffset:0,VoltageAngleOffset:0,Revers:1,SettingsSaved:0,SettingsResets:0},form:{speed:this.speed,torque:this.torque,flagNoChangeSpeed:!1,flagNoChangeTorque:!1,mode:0,pidiap:0,pidiai:0,pidimp:0,pidimi:0,pidspeedp:0,pidspeedi:0,pidspeedd:0,maxrpm:0,maxcurrent:0,maxpower:0,maxvoltage:0,minvoltage:0,maxtemperature:0,RotorPolePairs:0,DevID:0,BrakeVoltageOn:0,BrakeVoltageOff:0,Filter_Ia:0,Filter_Im:0,Filter_Speed:0,HallAngleOffset:0,VoltageAngleOffset:0,Revers:1,adcSave:!1},showWindow:!1,chartSpeed:[],waitingForSettingsSave:!1,waitingForSettingsReset:!1}},computed:{host(){return location.hostname},appConnectionData(){return this.$root.connection},speed(){return this.form.speed},torque(){return this.form.torque},rpm(){return this.data.rpm},temperature(){return this.data.temperature},voltage(){return this.data.voltage},power(){return this.data.power},pidk(){return this.data.pidiap+this.data.pidiai+this.data.pidiad+this.data.pidimp+this.data.pidimi+this.data.pidimd+this.data.pidspeedp+this.data.pidspeedi+this.data.pidspeedd},maxrpm(){return this.data.maxrpm},maxcurrent(){return this.data.maxcurrent},maxtemperature(){return this.data.maxtemperature},maxpower(){return this.data.maxpower},maxvoltage(){return this.data.maxvoltage},minvoltage(){return this.data.minvoltage},speedtask(){return this.data.speedtask},torquetask(){return this.data.torquetask},RotorPolePairs(){return this.data.RotorPolePairs},DevID(){return this.data.DevID},BrakeVoltageOn(){return this.data.BrakeVoltageOn},BrakeVoltageOff(){return this.data.BrakeVoltageOff},Filter_Ia(){return this.data.Filter_Ia},Filter_Im(){return this.data.Filter_Im},Filter_Speed(){return this.data.Filter_Speed},HallAngleOffset(){return this.data.HallAngleOffset},VoltageAngleOffset(){return this.data.VoltageAngleOffset},Revers(){return this.data.Revers},SettingsSaved(){return this.data.SettingsSaved},SettingsResets(){return this.data.SettingsResets},SettingsIsModifyed(){let e=["maxrpm","maxpower","maxvoltage","minvoltage","maxtemperature","RotorPolePairs","DevID","BrakeVoltageOn","BrakeVoltageOff","Filter_Ia","Filter_Im","Filter_Speed","HallAngleOffset","VoltageAngleOffset","Revers"],t=!1;for(let i of e)t=t||this.form[i]!=this.data[i];return t=t||Math.round(this.form.maxcurrent*10)!=this.data.maxcurrent,t},FlashAllow(){return[1,5].indexOf(this.data.state)>-1&this.appConnectionData.connect==!0},chartData:function(){return{yMax:this.maxrpm*1.2,yMin:-this.maxrpm*1.2,len:50,yAxisStep:500,xMin:0,xMax:5e3,xAxisStep:500,lines:[{name:"",color:"#fff",data:[0,0]},{name:"Target",color:"#FF0000",data:[this.form.speed,this.form.speed]},{name:"Speed [1/min]",color:"#f1c40f",data:this.chartSpeed}]}}},methods:{fetch_execute:async function(e,t,i,r){try{let s=await(await fetch(e,t)).json();i&&i(s)}catch(n){r&&r(n)}finally{}},loadData(){let e="http://"+this.host+":5000/data";this.fetch_execute(e,{method:"GET",credentials:"same-origin",cache:"no-cache"},t=>{this.data=t,this.pushChartData()},t=>{console.log(t)})},sendIntegerData(e,t){let i=parseInt(t);if(Number.isInteger(i)&&this.appConnectionData.connect==!0){let r="http://"+this.host+":5000/data/"+e+"/"+i;this.fetch_execute(r,{method:"GET",credentials:"same-origin",cache:"no-cache"},null,null)}},start(){this.data.mode==0?this.changeTorque():this.changeSpeed(),this.sendIntegerData("start",1)},changeSpeed(){this.sendIntegerData("speed",this.form.speed)},changeTorque(){this.sendIntegerData("torque",this.form.torque)},changePID(e){let t=0,i=0,r=0;if(e=="PIDIa"&&(t=this.form.pidiap,i=this.form.pidiai,r=0),e=="PIDIm"&&(t=this.form.pidimp,i=this.form.pidimi,r=0),e=="PIDSpeed"&&(t=this.form.pidspeedp,i=this.form.pidspeedi,r=this.form.pidspeedd),t=Math.round(t),i=Math.round(i),r=Math.round(r),this.appConnectionData.connect==!0){let n="http://"+this.host+":5000/data/"+e+"/"+t+"/"+i+"/"+r;this.fetch_execute(n,{method:"GET",credentials:"same-origin",cache:"no-cache"},null,null)}},applaySettings(){let e;e="http://"+this.host+":5000/data/settings1/"+this.form.maxrpm+"/"+Math.round(this.form.maxcurrent*10)+"/"+this.form.maxpower+"/0",this.fetch_execute(e,{method:"GET",credentials:"same-origin",cache:"no-cache"},null,null),e="http://"+this.host+":5000/data/settings2/"+this.form.maxvoltage+"/"+this.form.minvoltage+"/"+this.form.maxtemperature+"/0",this.fetch_execute(e,{method:"GET",credentials:"same-origin",cache:"no-cache"},null,null),e="http://"+this.host+":5000/data/settings3/"+this.form.RotorPolePairs+"/"+this.form.DevID+"/"+this.form.BrakeVoltageOn+"/"+this.form.BrakeVoltageOff,this.fetch_execute(e,{method:"GET",credentials:"same-origin",cache:"no-cache"},null,null),e="http://"+this.host+":5000/data/settings4/"+this.form.Filter_Ia+"/"+this.form.Filter_Im+"/"+this.form.Filter_Speed+"/0",this.fetch_execute(e,{method:"GET",credentials:"same-origin",cache:"no-cache"},null,null),e="http://"+this.host+":5000/data/settings6/"+this.form.HallAngleOffset+"/"+this.form.VoltageAngleOffset+"/"+this.form.Revers+"/0",this.fetch_execute(e,{method:"GET",credentials:"same-origin",cache:"no-cache"},null,null)},saveSettings(){let e="http://"+this.host+":5000/cmd/settings/save/";this.form.adcSave?e+="1":e+="0",this.fetch_execute(e,{method:"GET",credentials:"same-origin",cache:"no-cache"},()=>{this.waitingForSettingsSave=!0},null)},resetSettings:async function(){if(await Lp("Are You sure? Do You want reset settings to default?","U-FOC PC Monitor")){let e="http://"+this.host+":5000/cmd/settings/reset";this.fetch_execute(e,{method:"GET",credentials:"same-origin",cache:"no-cache"},()=>{this.waitingForSettingsReset=!0},null)}},onSpeedValueChanging:function(e){this.$refs.speedGaugeValue.innerHTML=this.data.rpm+" RPM"},fillPIDForm(){this.form.pidiap=this.data.pidiap,this.form.pidiai=this.data.pidiai,this.form.pidimp=this.data.pidimp,this.form.pidimi=this.data.pidimi,this.form.pidspeedp=this.data.pidspeedp,this.form.pidspeedi=this.data.pidspeedi,this.form.pidspeedd=this.data.pidspeedd},speedGaugeInit(){let e=this.$refs.speedGauge,t=100;this.data.maxrpm>100&&(t=Math.round(this.data.maxrpm/100)*100,t<this.data.maxrpm&&(t+=100));let i=Math.round(t/5),r=i/2,n=r/5;e._min(-t),e._max(t),e._ticksMinor({interval:n,size:"5%"}),e._ticksMajor({interval:r,size:"10%"}),e._labels({interval:i,position:"inside"}),e._animationDuration(200);let s=e.border;s.size="5%",s.visible=!1,s.showGradient=!1,e._border(s),e._colorScheme("scheme05")},temperatureGaugeInit(){let e=130;this.data.maxtemperature>0&&(e=this.data.maxtemperature);let t=e-20,i=this.$refs.temperatureGauge;i._min(-30),i._max(150),i._colorScheme("scheme05"),i._labels({interval:20,offset:12,position:"near",formatValue:(r,n)=>n==="far"?(r=9/5*r+32,r===-76?"\xB0F":r+"\xB0"):r==-30?"\xB0C":r+"\xB0"}),i._ticksMinor({size:"5%",interval:2.5,style:{"stroke-width":1,stroke:"#aaaaaa"}}),i._ticksMajor({size:"10%",interval:10}),i._ranges([{startValue:-30,endValue:t,style:{fill:"#aaf576",stroke:"#aaf576"}},{startValue:t,endValue:e,style:{fill:"#faf26c",stroke:"#faf26c"}},{startValue:e,endValue:150,style:{fill:"#fa6c6c",stroke:"#fa6c6c"}}]),i._pointer({pointerType:"default",style:{fill:"#FFC300",stroke:"#FFC300"},size:"20%",visible:!0,offset:1}),i._background({showGradient:!1,borderRadius:5,style:{stroke:"#cccccc",fill:"#ffffff"},visible:!0,backgroundType:"roundedRectangle"}),i.val(this.data.temperature)},voltageGaugeInit(){let e=36,t=8;this.data.maxvoltage>0&&(e=this.data.maxvoltage),this.data.minvoltage>0&&(t=this.data.minvoltage);let i=Math.round(e*1.1),r=Math.round(i/10)*10;r<i&&(r+=10);let n=Math.round(r/10);n==0&&(n=1);let s=n,a=s/5,u=this.$refs.voltageGauge;u._min(0),u._max(r),u._colorScheme("scheme05"),u._labels({interval:n,offset:0,position:"near"}),u._ticksMinor({size:"5%",interval:a,style:{"stroke-width":1,stroke:"#aaaaaa"}}),u._ticksMajor({size:"10%",interval:s}),u._ranges([{startValue:0,endValue:t,style:{fill:"#faf26c",stroke:"#faf26c"}},{startValue:t,endValue:e,style:{fill:"#aaf576",stroke:"#aaf576"}},{startValue:e,endValue:r,style:{fill:"#fa6c6c",stroke:"#fa6c6c"}}]),u._pointer({pointerType:"default",style:{fill:"#FFC300",stroke:"#FFC300"},size:"20%",visible:!0,offset:1}),u._background({showGradient:!1,borderRadius:5,style:{stroke:"#cccccc",fill:"#ffffff"},visible:!0,backgroundType:"roundedRectangle"}),u.val(this.data.voltage)},powerGaugeInit(){let e=100;this.data.maxpower>0&&(e=this.data.maxpower),e=Math.round(e/50)*50,e<this.data.maxpower&&(e+=50);let t=Math.round(e/5);t==0&&(t=10);let i=t,r=i/5,n=this.$refs.powerGauge;n._min(-e),n._max(e),n._colorScheme("scheme05"),n._labels({interval:t,offset:9,position:"near"}),n._ticksMinor({size:"5%",interval:r,style:{"stroke-width":1,stroke:"#aaaaaa"}}),n._ticksMajor({size:"10%",interval:i}),n._ranges([{startValue:-e,endValue:-1,style:{fill:"#aaf576",stroke:"#aaf576"}},{startValue:1,endValue:e,style:{fill:"#fa6c6c",stroke:"#fa6c6c"}}]),n._pointer({pointerType:"arrow",style:{fill:"#25A0DA",stroke:"#25A0DA"},size:"20%",visible:!0,offset:2}),n._background({showGradient:!1,borderRadius:5,style:{stroke:"#cccccc",fill:"#ffffff"},visible:!0,backgroundType:"roundedRectangle"}),n.val(this.data.power)},pushChartData(){this.chartSpeed.push(this.data.rpm),this.chartSpeed.length>25&&(this.chartSpeed=this.chartSpeed.slice(-25))}},mounted(){this.form.speed=0,this.timerId=setInterval(()=>this.loadData(),200),this.speedGaugeInit(),this.temperatureGaugeInit(),this.voltageGaugeInit(),this.powerGaugeInit()},unmounted(){clearInterval(this.timerId)},watch:{speed(){this.form.flagNoChangeSpeed==!1?this.changeSpeed():this.form.flagNoChangeSpeed=!1},torque(){this.form.flagNoChangeTorque==!1?this.changeTorque():this.form.flagNoChangeTorque=!1},rpm(){this.$refs.speedGauge.val(this.data.rpm)},temperature(){this.$refs.temperatureGauge.val(this.data.temperature)},voltage(){this.$refs.voltageGauge.val(this.data.voltage)},power(){this.$refs.powerGauge.val(this.data.power)},pidk(){this.fillPIDForm()},maxrpm(){this.speedGaugeInit(),this.form.maxrpm=this.maxrpm},maxcurrent(){this.form.maxcurrent=this.maxcurrent/10},maxtemperature(){this.temperatureGaugeInit(),this.form.maxtemperature=this.maxtemperature},maxpower(){this.powerGaugeInit(),this.form.maxpower=this.data.maxpower},maxvoltage(){this.voltageGaugeInit(),this.form.maxvoltage=this.maxvoltage},minvoltage(){this.voltageGaugeInit(),this.form.minvoltage=this.minvoltage},speedtask(){this.form.speed=this.data.speedtask,this.form.flagNoChangeSpeed=!0},torquetask(){this.form.torque=this.data.torquetask,this.form.flagNoChangeTorque=!0},RotorPolePairs(){this.form.RotorPolePairs=this.data.RotorPolePairs},DevID(){this.form.DevID=this.data.DevID},BrakeVoltageOn(){this.form.BrakeVoltageOn=this.data.BrakeVoltageOn},BrakeVoltageOff(){this.form.BrakeVoltageOff=this.data.BrakeVoltageOff},Filter_Ia(){this.form.Filter_Ia=this.data.Filter_Ia},Filter_Im(){this.form.Filter_Im=this.data.Filter_Im},Filter_Speed(){this.form.Filter_Speed=this.data.Filter_Speed},HallAngleOffset(){this.form.HallAngleOffset=this.data.HallAngleOffset},VoltageAngleOffset(){this.form.VoltageAngleOffset=this.data.VoltageAngleOffset},Revers(){this.form.Revers=this.data.Revers},SettingsSaved(){this.waitingForSettingsSave==!0&&(this.waitingForSettingsSave=!1,ia("OK. The settings were successfully Saved.","U-FOC PC Monitor"))},SettingsResets(){this.waitingForSettingsReset==!0&&(this.waitingForSettingsReset=!1,ia("OK. The settings were successfully Reset. Please reset microcontroller.","U-FOC PC Monitor"))}}},Np={class:"nav nav-tabs"},Ip={class:"nav-item"},Rp={class:"nav-item"},Fp={class:"row mt-2"},Bp={class:"col-auto"},Dp={class:"border p-3 mt-1"},zp={class:"col"},Vp={class:"row"},Hp={class:"col-md-6"},Wp={class:"float-end",style:{"z-index":"1000"}},Xp={class:"jqx"},$p={ref:"speedGaugeValue",class:"speedGaugeValue"},Up={class:"col-auto"},Gp={class:"row"},Jp={class:"col-auto"},Qp={class:"jqx"},Yp={class:"text-center"},Kp={class:"col-auto"},Zp={class:"jqx"},em={class:"text-center"},tm={class:"col-auto"},nm={class:"jqx"},im={class:"text-center"},rm=q("div",{class:"col"},null,-1),sm={class:"row"},om={class:"col-md-6"},am={class:"nav nav-tabs mb-1"},lm={class:"nav-item"},um={class:"nav-item"},fm={key:0,class:"text-center"},cm=q("div",null,"|",-1),hm=["min","max"],dm={key:1,class:"text-center"},pm=q("div",null,"0",-1),mm=q("div",null,"|",-1),gm=["min","max"],vm={class:"border p-3 mt-1"},_m={class:"mb-3"},xm=q("div",{class:"mb-1"},[q("strong",null,"PID Ia:")],-1),ym={class:"row"},wm=q("div",{class:"col-auto"},"P:",-1),bm={class:"col"},Sm=q("div",{class:"col-auto"},"I:",-1),jm={class:"col"},km={class:"mb-3"},qm=q("div",{class:"mb-1"},[q("strong",null,"PID Im:")],-1),Mm={class:"row"},Cm=q("div",{class:"col-auto"},"P:",-1),Tm={class:"col"},Om=q("div",{class:"col-auto"},"I:",-1),Em={class:"col"},Pm=q("div",{class:"mb-1"},[q("strong",null,"PID Speed:")],-1),Lm={class:"row"},Am=q("div",{class:"col-auto"},"P:",-1),Nm={class:"col"},Im=q("div",{class:"col-auto"},"I:",-1),Rm={class:"col"},Fm=q("div",{class:"col-auto"},"D:",-1),Bm={class:"col"},Dm={class:"col"},zm={class:"row mt-2"},Vm={class:"col-sm-5"},Hm={class:"form-group row"},Wm=q("label",{for:"inputPassword",class:"col-sm-4 col-form-label"},"Dev. ID (CAN)",-1),Xm={class:"col-sm-8"},$m=q("hr",null,null,-1),Um={class:"form-group row"},Gm=q("label",{for:"inputPassword",class:"col-sm-4 col-form-label"},"Pole pairs",-1),Jm={class:"col-sm-8"},Qm={class:"form-group row"},Ym=q("label",{for:"staticEmail",class:"col-sm-4 col-form-label"},"Max. RPM",-1),Km={class:"col-sm-8"},Zm={class:"form-group row"},eg=q("label",{for:"staticEmail",class:"col-sm-4 col-form-label"},"Max. Current, Apk",-1),tg={class:"col-sm-8"},ng={class:"form-group row"},ig=q("label",{for:"inputPassword",class:"col-sm-4 col-form-label"},"Max. Power, W",-1),rg={class:"col-sm-8"},sg=q("hr",null,null,-1),og={class:"form-group row"},ag=q("label",{for:"inputPassword",class:"col-sm-4 col-form-label"},"Max. Voltage, V",-1),lg={class:"col-sm-8"},ug={class:"form-group row"},fg=q("label",{for:"inputPassword",class:"col-sm-4 col-form-label"},"Min. Voltage, V",-1),cg={class:"col-sm-8"},hg=q("hr",null,null,-1),dg={class:"form-group row"},pg=q("label",{for:"inputPassword",class:"col-sm-4 col-form-label"},"Max. Temperature, \u2103",-1),mg={class:"col-sm-8"},gg=q("hr",null,null,-1),vg={class:"form-group row"},_g=q("label",{for:"inputPassword",class:"col-sm-4 col-form-label"},"Brake Voltage On, V",-1),xg={class:"col-sm-8"},yg={class:"form-group row"},wg=q("label",{for:"inputPassword",class:"col-sm-4 col-form-label"},"Brake Voltage Off, V",-1),bg={class:"col-sm-8"},Sg=q("hr",null,null,-1),jg={class:"form-group row"},kg=q("label",{for:"inputPassword",class:"col-sm-4 col-form-label"},"Filter IA",-1),qg={class:"col-sm-8"},Mg={class:"form-group row"},Cg=q("label",{for:"inputPassword",class:"col-sm-4 col-form-label"},"Filter IM",-1),Tg={class:"col-sm-8"},Og={class:"form-group row"},Eg=q("label",{for:"inputPassword",class:"col-sm-4 col-form-label"},"Filter Speed",-1),Pg={class:"col-sm-8"},Lg=q("hr",null,null,-1),Ag={class:"form-group row"},Ng=q("label",{for:"inputPassword",class:"col-sm-4 col-form-label"},"Hall sensors offsets",-1),Ig={class:"col-sm-8"},Rg={class:"form-group row"},Fg=q("label",{for:"inputPassword",class:"col-sm-4 col-form-label"},"Voltage Angle offsets",-1),Bg={class:"col-sm-8"},Dg=q("hr",null,null,-1),zg={class:"form-group row"},Vg=q("label",{for:"inputPassword",class:"col-sm-4 col-form-label"},"Rotation",-1),Hg={class:"col-sm-8"},Wg=q("option",{value:"1"},"Forward",-1),Xg=q("option",{value:"-1"},"Reverse",-1),$g=[Wg,Xg],Ug=q("hr",null,null,-1),Gg={class:"form-group row"},Jg={class:"col"},Qg=Jt("PID Ia: P:"),Yg=Jt(", I:"),Kg=Jt("PID Im: P:"),Zg=Jt(", I:"),ev=Jt("PID speed: P:"),tv=Jt(", I:"),nv=Jt(", D:"),iv={class:"col-sm-2"},rv={key:0,class:"p-1"},sv=["disabled"],ov={key:1,class:"p-1"},av=["disabled"],lv={class:"mt-2"},uv=Jt(" Save ADC calibration data"),fv={key:2,class:"text-warning"},cv={class:"col-sm-2"},hv={class:"p-1"},dv=["disabled"],pv={key:0,class:"text-warning"},mv=q("hr",null,null,-1),gv={key:1};function vv(e,t,i,r,n,s){const a=At("DialogWrapper"),u=At("SVGChart"),c=At("windows"),d=At("MMode"),m=At("MState"),v=At("MFaults"),_=At("JqxGauge"),S=At("JqxLinearGauge"),l=At("SVGAngle");return _e(),be("div",null,[Je(a),n.showWindow?(_e(),xi(c,{key:0,title:"Chart",onClose:t[0]||(t[0]=w=>n.showWindow=!1)},{default:gs(()=>[Je(u,{width:"600",height:"400",data:s.chartData},null,8,["data"])]),_:1})):Nt("",!0),q("ul",Np,[q("li",Ip,[q("a",{class:_t("nav-link"+(n.tab==0?" active":"")),onClick:t[1]||(t[1]=w=>n.tab=0)},"Main",2)]),q("li",Rp,[q("a",{class:_t("nav-link"+(n.tab==1?" active":"")),onClick:t[2]||(t[2]=w=>n.tab=1)},"Settings",2)])]),Xe(q("div",Fp,[q("div",Bp,[Je(d,{mode:n.data.mode},null,8,["mode"]),Je(m,{state:n.data.state},null,8,["state"]),Je(v,{fault:n.data.fault},null,8,["fault"]),q("div",Dp,[q("div",null,[q("button",{class:"btn bt-sm btn-dark w-100 mb-1",onClick:t[3]||(t[3]=w=>s.start())},"Start")]),q("div",null,[q("button",{class:"btn bt-sm btn-dark w-100 mb-1",onClick:t[4]||(t[4]=w=>s.sendIntegerData("stop",1))},"Stop")]),q("div",null,[q("button",{class:"btn bt-sm btn-dark w-100 mb-1",onClick:t[5]||(t[5]=w=>s.sendIntegerData("faults",0))},"Reset Faults")])])]),q("div",zp,[q("div",Vp,[q("div",Hp,[q("div",Wp,[q("button",{onClick:t[6]||(t[6]=w=>n.showWindow=!n.showWindow),class:_t("btn btn-sm btn-outline-secondary"+(n.showWindow==!0?" active":""))},"Chart",2)]),q("div",Xp,[Je(_,{ref:"speedGauge",onValueChanging:t[7]||(t[7]=w=>s.onSpeedValueChanging(w))},null,512),q("div",$p,null,512)])]),q("div",Up,[q("div",Gp,[q("div",Jp,[q("div",Qp,[Je(S,{ref:"temperatureGauge"},null,512),q("div",Yp,Ke(s.temperature)+" \xB0C",1)])]),q("div",Kp,[q("div",Zp,[Je(S,{ref:"voltageGauge"},null,512),q("div",em,Ke(s.voltage)+" V",1)])]),q("div",tm,[q("div",nm,[Je(S,{ref:"powerGauge"},null,512),q("div",im,Ke(s.power)+" W",1)])]),rm])])]),q("div",sm,[q("div",om,[q("ul",am,[q("li",lm,[q("a",{class:_t("nav-link"+(n.form.mode==0?" active":"")),onClick:t[8]||(t[8]=w=>n.form.mode=0)},"Speed",2)]),q("li",um,[q("a",{class:_t("nav-link"+(n.form.mode==1?" active":"")),onClick:t[9]||(t[9]=w=>n.form.mode=1)},"Torque",2)])]),n.form.mode==0?(_e(),be("div",fm,[Xe(q("input",{type:"number","onUpdate:modelValue":t[10]||(t[10]=w=>n.form.speed=w),class:"form-control",style:{"text-align":"center"},size:"5",step:"10"},null,512),[[Ye,n.form.speed]]),cm,Xe(q("input",{type:"range","onUpdate:modelValue":t[11]||(t[11]=w=>n.form.speed=w),min:-n.data.maxrpm,max:n.data.maxrpm,step:"10",class:"w-100"},null,8,hm),[[Ye,n.form.speed]])])):(_e(),be("div",dm,[pm,mm,Xe(q("input",{type:"range","onUpdate:modelValue":t[12]||(t[12]=w=>n.form.torque=w),min:-n.data.maxtorque,max:n.data.maxtorque,step:"10",class:"w-100"},null,8,gm),[[Ye,n.form.torque]])])),q("div",vm,[q("div",_m,[xm,q("div",ym,[wm,q("div",bm,[Xe(q("input",{"onUpdate:modelValue":t[13]||(t[13]=w=>n.form.pidiap=w),type:"number",class:"form-control form-control-sm",size:"5",min:"0",max:"32000",step:"1",onChange:t[14]||(t[14]=w=>s.changePID("PIDIa"))},null,544),[[Ye,n.form.pidiap]])]),Sm,q("div",jm,[Xe(q("input",{"onUpdate:modelValue":t[15]||(t[15]=w=>n.form.pidiai=w),type:"number",class:"form-control form-control-sm",size:"5",min:"0",max:"32000",step:"1",onChange:t[16]||(t[16]=w=>s.changePID("PIDIa"))},null,544),[[Ye,n.form.pidiai]])])])]),q("div",km,[qm,q("div",Mm,[Cm,q("div",Tm,[Xe(q("input",{"onUpdate:modelValue":t[17]||(t[17]=w=>n.form.pidimp=w),type:"number",class:"form-control form-control-sm",size:"5",min:"0",max:"32000",step:"1",onChange:t[18]||(t[18]=w=>s.changePID("PIDIm"))},null,544),[[Ye,n.form.pidimp]])]),Om,q("div",Em,[Xe(q("input",{"onUpdate:modelValue":t[19]||(t[19]=w=>n.form.pidimi=w),type:"number",class:"form-control form-control-sm",size:"5",min:"0",max:"32000",step:"1",onChange:t[20]||(t[20]=w=>s.changePID("PIDIm"))},null,544),[[Ye,n.form.pidimi]])])])]),q("div",null,[Pm,q("div",Lm,[Am,q("div",Nm,[Xe(q("input",{"onUpdate:modelValue":t[21]||(t[21]=w=>n.form.pidspeedp=w),type:"number",class:"form-control form-control-sm",size:"5",min:"0",max:"32000",step:"1",onChange:t[22]||(t[22]=w=>s.changePID("PIDSpeed"))},null,544),[[Ye,n.form.pidspeedp]])]),Im,q("div",Rm,[Xe(q("input",{"onUpdate:modelValue":t[23]||(t[23]=w=>n.form.pidspeedi=w),type:"number",class:"form-control form-control-sm",size:"5",min:"0",max:"32000",step:"1",onChange:t[24]||(t[24]=w=>s.changePID("PIDSpeed"))},null,544),[[Ye,n.form.pidspeedi]])]),Fm,q("div",Bm,[Xe(q("input",{"onUpdate:modelValue":t[25]||(t[25]=w=>n.form.pidspeedd=w),type:"number",class:"form-control form-control-sm",size:"5",min:"0",max:"32000",step:"1",onChange:t[26]||(t[26]=w=>s.changePID("PIDSpeed")),disabled:""},null,544),[[Ye,n.form.pidspeedd]])])])])])]),q("div",Dm,[q("div",null,[Je(l,{value:n.data.ia},null,8,["value"])])])])])],512),[[Fo,n.tab==0]]),Xe(q("div",zm,[q("div",Vm,[q("form",null,[q("div",Hm,[Wm,q("div",Xm,[Xe(q("input",{"onUpdate:modelValue":t[27]||(t[27]=w=>n.form.DevID=w),type:"number",class:"form-control form-control-sm",size:"5",min:"0",max:"32000",step:"1"},null,512),[[Ye,n.form.DevID]])])]),$m,q("div",Um,[Gm,q("div",Jm,[Xe(q("input",{"onUpdate:modelValue":t[28]||(t[28]=w=>n.form.RotorPolePairs=w),type:"number",class:"form-control form-control-sm",size:"5",min:"0",max:"32000",step:"1"},null,512),[[Ye,n.form.RotorPolePairs]])])]),q("div",Qm,[Ym,q("div",Km,[Xe(q("input",{"onUpdate:modelValue":t[29]||(t[29]=w=>n.form.maxrpm=w),type:"number",class:"form-control form-control-sm",size:"5",min:"0",max:"32000",step:"1"},null,512),[[Ye,n.form.maxrpm]])])]),q("div",Zm,[eg,q("div",tg,[Xe(q("input",{"onUpdate:modelValue":t[30]||(t[30]=w=>n.form.maxcurrent=w),type:"number",class:"form-control form-control-sm",size:"5",min:"0.1",max:"6500.0",step:"0.1"},null,512),[[Ye,n.form.maxcurrent]])])]),q("div",ng,[ig,q("div",rg,[Xe(q("input",{"onUpdate:modelValue":t[31]||(t[31]=w=>n.form.maxpower=w),type:"number",class:"form-control form-control-sm",size:"5",min:"0",max:"32000",step:"1"},null,512),[[Ye,n.form.maxpower]])])]),sg,q("div",og,[ag,q("div",lg,[Xe(q("input",{"onUpdate:modelValue":t[32]||(t[32]=w=>n.form.maxvoltage=w),type:"number",class:"form-control form-control-sm",size:"5",min:"0",max:"32000",step:"1"},null,512),[[Ye,n.form.maxvoltage]])])]),q("div",ug,[fg,q("div",cg,[Xe(q("input",{"onUpdate:modelValue":t[33]||(t[33]=w=>n.form.minvoltage=w),type:"number",class:"form-control form-control-sm",size:"5",min:"0",max:"32000",step:"1"},null,512),[[Ye,n.form.minvoltage]])])]),hg,q("div",dg,[pg,q("div",mg,[Xe(q("input",{"onUpdate:modelValue":t[34]||(t[34]=w=>n.form.maxtemperature=w),type:"number",class:"form-control form-control-sm",size:"5",min:"0",max:"32000",step:"1"},null,512),[[Ye,n.form.maxtemperature]])])]),gg,q("div",vg,[_g,q("div",xg,[Xe(q("input",{"onUpdate:modelValue":t[35]||(t[35]=w=>n.form.BrakeVoltageOn=w),type:"number",class:"form-control form-control-sm",size:"5",min:"0",max:"32000",step:"1"},null,512),[[Ye,n.form.BrakeVoltageOn]])])]),q("div",yg,[wg,q("div",bg,[Xe(q("input",{"onUpdate:modelValue":t[36]||(t[36]=w=>n.form.BrakeVoltageOff=w),type:"number",class:"form-control form-control-sm",size:"5",min:"0",max:"32000",step:"1"},null,512),[[Ye,n.form.BrakeVoltageOff]])])]),Sg,q("div",jg,[kg,q("div",qg,[Xe(q("input",{"onUpdate:modelValue":t[37]||(t[37]=w=>n.form.Filter_Ia=w),type:"number",class:"form-control form-control-sm",size:"5",min:"0",max:"32000",step:"1"},null,512),[[Ye,n.form.Filter_Ia]])])]),q("div",Mg,[Cg,q("div",Tg,[Xe(q("input",{"onUpdate:modelValue":t[38]||(t[38]=w=>n.form.Filter_Im=w),type:"number",class:"form-control form-control-sm",size:"5",min:"0",max:"32000",step:"1"},null,512),[[Ye,n.form.Filter_Im]])])]),q("div",Og,[Eg,q("div",Pg,[Xe(q("input",{"onUpdate:modelValue":t[39]||(t[39]=w=>n.form.Filter_Speed=w),type:"number",class:"form-control form-control-sm",size:"5",min:"0",max:"32000",step:"1"},null,512),[[Ye,n.form.Filter_Speed]])])]),Lg,q("div",Ag,[Ng,q("div",Ig,[Xe(q("input",{"onUpdate:modelValue":t[40]||(t[40]=w=>n.form.HallAngleOffset=w),type:"number",class:"form-control form-control-sm",size:"5",min:"-191",max:"191",step:"1"},null,512),[[Ye,n.form.HallAngleOffset]])])]),q("div",Rg,[Fg,q("div",Bg,[Xe(q("input",{"onUpdate:modelValue":t[41]||(t[41]=w=>n.form.VoltageAngleOffset=w),type:"number",class:"form-control form-control-sm",size:"5",min:"0",max:"191",step:"1"},null,512),[[Ye,n.form.VoltageAngleOffset]])])]),Dg,q("div",zg,[Vg,q("div",Hg,[Xe(q("select",{"onUpdate:modelValue":t[42]||(t[42]=w=>n.form.Revers=w),class:"form-control form-control-sm"},$g,512),[[Oc,n.form.Revers]])])]),Ug,q("div",Gg,[q("div",Jg,[q("div",null,[Qg,q("b",null,Ke(n.data.pidiap),1),Yg,q("b",null,Ke(n.data.pidiai),1)]),q("div",null,[Kg,q("b",null,Ke(n.data.pidimp),1),Zg,q("b",null,Ke(n.data.pidimi),1)]),q("div",null,[ev,q("b",null,Ke(n.data.pidspeedp),1),tv,q("b",null,Ke(n.data.pidspeedi),1),nv,q("b",null,Ke(n.data.pidspeedd),1)])])])])]),q("div",iv,[s.SettingsIsModifyed==!0?(_e(),be("div",rv,[q("button",{type:"button",class:"btn btn-dark w-100",disabled:s.FlashAllow==!1,onClick:t[43]||(t[43]=w=>s.applaySettings())},"Apply",8,sv)])):Nt("",!0),s.SettingsIsModifyed==!1?(_e(),be("div",ov,[q("button",{type:"button",class:"btn btn-dark w-100",disabled:s.FlashAllow==!1,onClick:t[44]||(t[44]=w=>s.saveSettings())},"Save to Flash",8,av),q("label",lv,[Xe(q("input",{type:"checkbox",id:"checkbox","onUpdate:modelValue":t[45]||(t[45]=w=>n.form.adcSave=w)},null,512),[[Tc,n.form.adcSave]]),uv])])):Nt("",!0),s.FlashAllow==!1?(_e(),be("span",fv,"WARNING: Do not save settings to the Flash while engine is running")):Nt("",!0)]),q("div",cv,[q("div",hv,[q("button",{type:"button",class:"btn btn-dark w-100",disabled:s.FlashAllow==!1,onClick:t[46]||(t[46]=w=>s.resetSettings())},"Reset Settings",8,dv)]),s.FlashAllow==!1?(_e(),be("span",pv,"WARNING: Do not reset settings while engine is running")):Nt("",!0)])],512),[[Fo,n.tab==1]]),mv,n.data.version!=0?(_e(),be("div",gv,Ke(n.data.versioncomment)+" Version: "+Ke(n.data.version/10),1)):Nt("",!0)])}var _v=Tt(Ap,[["render",vv]]);const xv=Fh({history:eh(),routes:[{path:"/",name:"home",component:_v},{path:"/position-example",name:"position",component:()=>na(()=>import("./PositionView.68c1d18b.js"),[])},{path:"/about",name:"about",component:()=>na(()=>import("./AboutView.210ace2b.js"),[])}]}),Ms=Lc(ad);Ms.use(xv);Ms.use(hp);Ms.mount("#app");export{Wd as S,Tt as _,q as a,Je as b,be as c,yv as d,_e as o,At as r,Ye as v,Xe as w};