/** 
 * Flexmonster Pivot Table & Charts [https://www.flexmonster.com/]
 * September 2024 (v. 2.9.86)
 * Copyright (c) 2024 Flexmonster. All rights reserved.
 *
 * Flexmonster Pivot Table & Charts commercial licenses may be obtained at
 * https://www.flexmonster.com/pivot-table-editions-and-pricing/
 * If you do not own a commercial license, this file shall be governed by the trial license terms.
 */
(function(a,b){"function"===typeof define&&define.amd&&define("flexmonster",[],b);a.Flexmonster=b()})(window,function(){return function(a){/*
 jsSHA | Copyright (c) 2008-2015 Brian Turek [https://caligatio.github.com/jsSHA/] | BSD License [https://github.com/Caligatio/jsSHA/blob/v2.3.1/LICENSE] */
'use strict';var q;
(function(e){function l(b){return window.flexmonsterTrustedTypesPolicy?window.flexmonsterTrustedTypesPolicy.createHTML(b):b}function h(b){return"undefined"===typeof b||null===b}class f{constructor(){}static GS(b,a){if(b==a)return 0;b=b.split(".");a=a.split(".");if(b.length<a.length)return-1;if(b.length>a.length)return 1;for(var c=0;c<b.length;c++){var d=parseInt(b[c]),g=parseInt(a[c]);if(d<g)return-1;if(d>g)return 1}return 0}static Zc(b){return void 0!==b&&null!==b&&("true"==b.toLowerCase()||"on"==
b.toLowerCase())}static zM(){var b=(new Date).getTime()-(new Date(2012,2,8)).getTime()*Math.round(123456789*Math.random());if(f.IEa==b)return b.toString(35)+(f.sga++).toString();f.IEa=b;f.sga=0;return b.toString(35)}static bind(b,...a){if(h(b))return b;for(var c=0;c<a.length;c++)b=b.replace(new RegExp("\\{"+c+"\\}","gi"),null==a[c]?"":a[c].toString());return b}static ey(b,a=null){return isNaN(b)?e.model.B.j.jo:u.Lh.aAa(b,a)}static $x(b,a,c){void 0===a&&(a="dd/MM/yyyy");if(isNaN(b)||0===b)return e.model.B.j.jo;
b=new Date(b);return isNaN(b.getTime())?"":u.Lh.format(b,a,c)}static HO(b,a,c){void 0===a&&(a="dd/MM/yyyy HH:mm:ss");return f.$x(b,a,c)}static HU(b){return Date.parse(b)&&this.yFa(b)}static yFa(b){return this.AEa.test(b)}static So(b){if(h(b))return 0;if("#"===b.substr(0,1))return parseInt(b.substr(1),16);"transparent"==b&&(b="rgb(255,255,255)");b=b.replace(/[^\d,]/g,"");b=b.split(",");var a=parseInt(b[0]),c=parseInt(b[1]),d=parseInt(b[2]);0===parseInt(b[3])&&(a=c=d=255);return d|c<<8|a<<16}static k6(b){for(var a=
new Uint8Array(b.length),c=0,d=b.length;c<d;++c)a[c]=b.charCodeAt(c);return a}static Ica(b){b=-1!==b.split(",")[0].indexOf("base64")?atob(b.split(",")[1]):decodeURI(b.split(",")[1]);return f.k6(b)}static hya(b){for(var a=b.length,c=Array(a);a--;)c[a]=String.fromCharCode(b[a]);return c.join("")}static contains(b,a){return h(b)?!1:-1<b.toLowerCase().indexOf(a)}static q6(b){if(null==b)return NaN;if("number"===typeof b)return b;"string"!==typeof b&&(b=b.toString());","==e.model.oc.tj.VT().Nf&&(b=b.replace(/,/gi,
""));b=b.replace(",",".");b=b.replace(/[^[,|\.|\-|\d|e]]*/gi,"");return parseFloat(b)}static trim(b,a=null){if(null==b)return"";for(var c=0;f.p3(b.charAt(c),a);)++c;for(var d=b.length-1;f.p3(b.charAt(d),a);)--d;return d>=c?b.slice(c,d+1):""}static trimLeft(b,a=null){if(null==b)return"";for(var c=0;f.p3(b.charAt(c),a);)++c;a=b.length-1;return a>=c?b.slice(c,a+1):""}static p3(b,a=null){if(null!=a&&b==a)return!1;switch(b){case " ":case "\t":case "\r":case "\n":case "\f":return!0}return!1}static NDa(b){for(var a in f.mM)if(f.mM[a]==
b)return!0;return!1}static nH(b){return"string"!==typeof b||"="!=b.charAt(0)&&"@"!=b.charAt(0)?b:"'"+b}static lza(b){return b.replace(/[\s]{2,}/g,function(a){let c="";var d=0;for(a=a.length;d<a;d++)c+="&nbsp;";return c})}static Ro(b,a=!1,c=!1){if(h(b))return"";c&&(b=f.lza(""+b));return a?b.replace(/[<>"'\/]/g,d=>f.mM[d]):b.replace(/[&<>"'\/]/g,d=>f.mM[d])}static mza(b){if(h(b))return"";b=b.replace(/[&<>"']/g,a=>f.mM[a]);b=b.replace(/[\s]{2,}/g,a=>{let c="";var d=0;for(a=a.length;d<a;d++)c+=" ";return c});
return b.replace(/[\u{0001}-\u{001F}]/gui," ")}static VAa(){return new Uint8Array([239,187,191])}static Kca(b){f.Lca.innerHTML=l(b);return f.Lca.value}}f.sga=0;f.AEa=/^(?:[\+-]?\d{4}(?!\d{2}\b))-(?:0[1-9]|1[0-2])(?:(-?)(?:(?:[12]\d|0[1-9]|3[01])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24:?00)(?:[\.,]\d+(?!:))?)?(?:\2[0-5]\d(?:[\.]\d+)?)?(?:[zZ]|(?:[\+-])(?:[01]\d|2[0-3]):?(?:[0-5]\d)?)?)?)?$/;f.mM={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;",
"'":"&#39;","/":"&sol;"};f.Lca=document.createElement("textarea");e.P=f;e.vt=l;e.KMa=function(b){return window.flexmonsterTrustedTypesPolicy?window.flexmonsterTrustedTypesPolicy.createScriptURL(b):b};e.v=h;e.Pg=function(b){return"function"===typeof b};e.ka=function(b){if(h(b))return!0;"string"!==typeof b&&(b=""+b);return 0===b.trim().length};e.QQa=function(b){return b.replace(/\|/g,"{%7C}")};e.PQa=function(b){return b.replace(/{%7C}/g,"|")};e.gL=function(b,a){var c=new Date(b.getTime()),d=a.match(/year|y|quarter|q|month|M|week|w|day|d|hour|h|minute|m|second|s/);
if(!d)return c;d=d[0];if("year"==d||"y"==d)return c.setUTCFullYear(b.getUTCFullYear()+1),c;if("quarter"==d||"q"==d)return c.setUTCMonth(b.getUTCMonth()+3),c;if("month"==d||"M"==d)return c.setUTCMonth(b.getUTCMonth()+1),c;if("week"==d||"w"==d)return c.setUTCDate(b.getUTCDate()+7),c;if("day"==d||"d"==d)return c.setUTCDate(b.getUTCDate()+1),c;a=parseInt(a)||1;if("hour"==d||"h"==d)return c.setUTCHours(b.getUTCHours()+a),c;if("minute"==d||"m"==d)return c.setUTCMinutes(b.getUTCMinutes()+a),c;"second"!=
d&&"s"!=d||c.setUTCSeconds(b.getUTCSeconds()+a);return c};e.KJa=function(b){var a=document.createElement("a");a.href=b;b={protocol:a.protocol,host:a.host,hostname:a.hostname,port:a.port,pathname:a.pathname,search:a.search,hash:a.hash};-1<b.protocol.indexOf(":")&&(b.protocol=b.protocol.substr(0,b.protocol.length-1));return b}})(q||(q={}));
(function(e){class l{constructor(h,f={}){this.bi=0;this.Ii=this.ki=this.fv=!1;const b=void 0===f.Vy?!0:f.Vy;h instanceof Date?h=h.getTime():void 0===h&&b?h=e.v(window.flexmonster_test_now)?Date.now():(new Date(window.flexmonster_test_now)).getTime():e.ka(h)||"null"===h?(b?this.Ii=!0:this.ki=!0,h=NaN):"number"===typeof h?isNaN(h)&&(this.ki=!0):"string"===typeof h?(e.ka(f.format)?this.aEa(h)?10==h.length?h=Date.parse(h+"T00:00:00"):(h=new Date(h),h=h.getTime()+6E4*h.getTimezoneOffset()):h=8>h.length||
/\D+/.test(h.slice(1))?Date.parse(h):parseInt(h):h=this.eJa(h,f.format),isNaN(h)&&(this.ki=!0)):(this.Ii=!0,h=NaN);this.qc=isNaN(h)?new Date(NaN):new Date(h);this.Kf(this.qc.getTimezoneOffset());this.fv=!0}aEa(h){return 4==h.length||7==h.length&&"-"==h.charAt(4)||10==h.length&&"-"==h.charAt(4)&&"-"==h.charAt(7)?!0:!1}round(h){if(!e.ka(h)){var f=h.match(/[s|M|m|w|q|h|d|y]$/);h=parseFloat(h.substring(0,h.length-1));if(!isNaN(h)&&null!==f){switch(f[0]){case "s":var b=h;break;case "m":b=60*h;break;case "h":b=
3600*h;break;case "d":b=86400*h;break;case "w":this.hka();break;case "M":this.VI();break;case "q":this.gka();break;case "y":this.ika()}void 0!==b&&(b*=1E3,this.qc.setTime(Math.floor(this.qc.getTime()/b)*b))}}}getDate(){if(!this.Ii&&!this.ki)return this.qc.getUTCDate()}setDate(h){if(!this.Ii&&!this.ki)return this.qc.setUTCDate(h),this.fv&&this.Kf(this.qc.getTimezoneOffset(),!1),this}getDay(){if(!this.Ii&&!this.ki)return this.qc.getUTCDay()}getFullYear(){if(!this.Ii&&!this.ki)return this.qc.getUTCFullYear()}setFullYear(h,
f=null,b=null){if(!this.Ii&&!this.ki)return e.v(f)?this.qc.setUTCFullYear(h):e.v(b)?this.qc.setUTCFullYear(h,f):this.qc.setUTCFullYear(h,f,b),this}getHours(){if(!this.Ii&&!this.ki)return this.qc.getUTCHours()}setHours(h,f=null,b=null,a=null){if(!this.Ii&&!this.ki)return e.v(f)?this.qc.setUTCHours(h):e.v(b)?this.qc.setUTCHours(h,f):e.v(a)?this.qc.setUTCHours(h,f,b):this.qc.setUTCHours(h,f,b,a),this.fv&&this.Kf(this.qc.getTimezoneOffset(),!1),this}getMilliseconds(){if(!this.Ii&&!this.ki)return this.qc.getUTCMilliseconds()}setMilliseconds(h){if(!this.Ii&&
!this.ki)return this.qc.setUTCMilliseconds(h),this.fv&&this.Kf(this.qc.getTimezoneOffset(),!1),this}getMinutes(){if(!this.Ii&&!this.ki)return this.qc.getUTCMinutes()}setMinutes(h,f=null,b=null){if(!this.Ii&&!this.ki)return e.v(f)?this.qc.setUTCMinutes(h):e.v(b)?this.qc.setUTCMinutes(h,f):this.qc.setUTCMinutes(h,f,b),this.fv&&this.Kf(this.qc.getTimezoneOffset(),!1),this}getMonth(){if(!this.Ii&&!this.ki)return this.qc.getUTCMonth()}setMonth(h,f=null){if(!this.Ii&&!this.ki)return e.v(f)?this.qc.setUTCMonth(h):
this.qc.setUTCMonth(h,f),this.fv&&this.Kf(this.qc.getTimezoneOffset(),!1),this}getSeconds(){if(!this.Ii&&!this.ki)return this.qc.getUTCSeconds()}setSeconds(h,f=null){if(!this.Ii&&!this.ki)return e.v(f)?this.qc.setUTCSeconds(h):this.qc.setUTCSeconds(h,f),this.fv&&this.Kf(this.qc.getTimezoneOffset(),!1),this}getTimezoneOffset(){if(!this.Ii&&!this.ki)return this.bi}Kf(h,f=!0){if(!this.Ii&&!this.ki){if(isNaN(h)||e.v(h))return this;this.fv=!1;0!=h&&60>Math.abs(h)&&(h*=-60);h!==this.bi&&(f&&this.qc.setUTCMinutes(this.qc.getUTCMinutes()+
(this.bi-h)),this.bi=h);return this}}getTime(){return this.Ii||this.ki?NaN:this.qc.getTime()+6E4*this.bi}s_(h){this.setDate(this.getDate()+h);return this}nua(h){this.setMonth(this.getMonth()+h)}ika(){this.setMonth(0,1);this.Ll()}gka(){9<=this.getMonth()?this.setMonth(9,1):6<=this.getMonth()?this.setMonth(6,1):3<=this.getMonth()?this.setMonth(3,1):0<=this.getMonth()&&this.setMonth(0,1);this.Ll()}VI(){this.setDate(1);this.Ll();return this}hka(h=1){this.setDate(this.getDate()-(this.getDay()-h+7)%7);
this.Ll()}Ll(){this.setHours(0,0,0,0);return this}t6(h,f=1){"day"==h?this.Ll():"week"==h?this.hka(f):"month"==h?this.VI():"quarter"==h?this.gka():"year"==h&&this.ika()}AMa(){this.setMonth(11,31);this.ay();return this}yMa(){9<=this.getMonth()?this.setMonth(11,1):6<=this.getMonth()?this.setMonth(8,1):3<=this.getMonth()?this.setMonth(5,1):0<=this.getMonth()&&this.setMonth(2,1);this.setDate(l.F0(this.getMonth(),this.getFullYear()));this.ay();return this}xMa(){this.setDate(l.F0(this.getMonth(),this.getFullYear()));
this.ay();return this}zMa(h=1){this.setDate(this.getDate()+(6-this.getDay()+h)%7);this.ay();return this}FMa(){const h=this.getTimezoneOffset()/60;this.setHours(Math.min(Math.abs(12-h),23),59,59,999);return this}ay(){this.setHours(23,59,59,999);return this}p6(h,f=1){return"day"==h?this.ay():"week"==h?this.zMa(f):"month"==h?this.xMa():"quarter"==h?this.yMa():"year"==h?this.AMa():this}ih(){return this.Ii||this.ki?!1:!isNaN(this.qc.getTime())}format(h){return this.ki?e.model.B.j.jo:this.Ii?"":this.mEa(h)?
u.Lh.format(this.$x(),h):u.Lh.format(this.qc,"UTC:"+h)}mEa(h){return null!==u.Lh.sg(h)}toString(){return this.format("yyyy-MM-dd")+"T"+this.format("HH:mm:ss")}$x(){return new Date(this.getTime())}clone(){var h=new l;this.ki||this.Ii||(h.qc=new Date(this.qc.getTime()));h.bi=this.bi;h.fv=this.fv;return h}eJa(h,f){var b=NaN;const a="UTC"===f.slice(0,3);if("UTC"===f.slice(0,3)||"GMT"===f.slice(0,3))f=f.split(":")[1];"dd/MM/yyyy"===f?(f=h.split("/"),b=a?Date.UTC(parseInt(f[2]),parseInt(f[1])-1,parseInt(f[0])):
(new Date(parseInt(f[2]),parseInt(f[1])-1,parseInt(f[0]))).getTime()):"dd-MM-yyyy"===f?(f=h.split("-"),b=a?Date.UTC(parseInt(f[2]),parseInt(f[1])-1,parseInt(f[0])):(new Date(parseInt(f[2]),parseInt(f[1])-1,parseInt(f[0]))).getTime()):"dd/MM/yyyy HH:mm:ss"===f&&(f=h.split(" "),h=f[0].split("/"),e.ka(f[1])?b=a?Date.UTC(parseInt(h[2]),parseInt(h[1])-1,parseInt(h[0])):(new Date(parseInt(h[2]),parseInt(h[1])-1,parseInt(h[0]))).getTime():(f=e.ka(f[1])?[]:f[1].split(":"),b=a?Date.UTC(parseInt(h[2]),parseInt(h[1])-
1,parseInt(h[0]),parseInt(f[0]),parseInt(f[1]),parseInt(f[2])):(new Date(parseInt(h[2]),parseInt(h[1])-1,parseInt(h[0]),parseInt(f[0]),parseInt(f[1]),parseInt(f[2]))).getTime()));return b}static F0(h,f){return l.Lsa[h]+(1==h&&0==f%4?1:0)}static e1(h,f){return h&&f?h.getTime()==f.getTime():h==f}}l.Lsa={0:31,1:28,2:31,3:30,4:31,5:30,6:31,7:31,8:30,9:31,10:30,11:31};e.Rf=l})(q||(q={}));
(function(e){class l{constructor(){(this.isNative=e.Pg(Set))?this.qC=new Set:this.Iy=[]}add(h){if(this.isNative)return this.qC.add(h),this;0>this.Iy.indexOf(h)&&this.Iy.push(h);return this}clear(){if(this.isNative)return this.qC.clear();this.Iy.length=0}delete(h){if(this.isNative)return this.qC.delete(h);h=this.Iy.indexOf(h);if(0>h)return!1;this.Iy.splice(h,1);return!0}has(h){return this.isNative?this.qC.has(h):0<=this.Iy.indexOf(h)}get size(){return this.isNative?this.qC.size:this.Iy.length}Pc(){if(this.isNative){if(e.Pg(Array.from))return Array.from(this.qC);
const h=[];this.qC.forEach(f=>h.push(f));return h}return this.Iy}}e.BF=l})(q||(q={}));
(function(e){class l{constructor(){this.wl={}}get target(){return null}JG(c,d){return c.type===d.type&&c.lc===d.lc&&c.D6===d.D6}A2(c,d){if(e.v(this.wl[c]))return!1;for(var g=0;g<this.wl[c].length;g++)if(this.JG(this.wl[c][g],d))return!0;return!1}addEventListener(c,d,g){var k={type:c,lc:d,D6:g};this.A2(c,k)||(e.v(this.wl[c])&&(this.wl[c]=[]),this.wl[c].push(k),this.target.addEventListener(c,d,g))}removeEventListener(c,d,g){d={type:c,lc:d,D6:g};for(c in this.wl){for(var k=[],m=0;m<this.wl[c].length;m++)this.JG(this.wl[c][m],
d)?"boolean"===typeof g?this.target.removeEventListener(c,this.wl[c][m].lc,g):this.target.removeEventListener(c,this.wl[c][m].lc):k.push(this.wl[c][m]);this.wl[c]=k}}dispose(){for(var c in this.wl)for(var d=0;d<this.wl[c].length;d++)this.target.removeEventListener(c,this.wl[c][d].lc,!0),this.target.removeEventListener(c,this.wl[c][d].lc,!1);this.wl={}}}class h extends l{static R(){null===h.instance&&(h.instance=new h);return h.instance}get target(){return document.body}}h.instance=null;class f extends l{static R(){null===
f.instance&&(f.instance=new f);return f.instance}get target(){return document}}f.instance=null;class b extends l{static R(){null===b.instance&&(b.instance=new b);return b.instance}get target(){return window}}b.instance=null;class a{static dispose(){for(;0<a.GO.length;)clearTimeout(a.GO.pop());for(;0<a.lN.length;)clearInterval(a.lN.pop())}}a.GO=[];a.lN=[];e.Ora=a;e.ve=function(c,d){c=setTimeout(c,d);a.GO.push(c);return c};e.sr=function(c){clearTimeout(c);a.GO.splice(a.GO.indexOf(c),1)};e.Uda=function(c,
d){c=setInterval(c,d);a.lN.push(c);return c};e.t1=function(c){clearInterval(c);a.lN.splice(a.lN.indexOf(c),1)};e.Tn=h.R();e.Ik=f.R();e.vM=b.R()})(q||(q={}));var u;
(function(e){class l{constructor(){}static ZDa(h){return null!=h&&(0==h.indexOf("http://")||0==h.indexOf("https://"))}static xDa(h){return null!=h&&0==h.indexOf("blob:http")}static RH(h,f=!1){if(!h)return"()";h=h.trim();if(0==h.length)return"()";if(l.xDa(h))return h;f&&(h+=(-1<h.indexOf("?")?"&":"?")+Math.round(Date.now()/3600));if(l.ZDa(h)||0==h.indexOf("file")||"/"==h.substr(0,1)||"./"==h.substr(0,2))return h;if(-1!=h.indexOf("..")){f=l.h0.split("/");""==f[f.length-1]&&f.pop();for(h=h.split("/");".."==
h[0]&&(0<h.length&&h.shift(),0<f.length&&f.pop(),0!=f.length););h=f.join("/")+"/"+h.join("/");"/"==h.substr(0,1)&&(h=h.substring(1));return h}return l.h0+h}static xua(h){return h+=(-1<h.indexOf("?")?"&":"?")+Math.round(Date.now()/3600)}}l.h0="";e.Gy=l})(u||(u={}));
(function(e){class l{constructor(){}static format(h,f,b){var a=!1,c=this.sg(f);"UTC:"==f.slice(0,4)?(f=f.slice(4),a=!0):q.v(c)?q.v(b)||(h=new Date(h.getTime()+36E5*(b+h.getTimezoneOffset()/60))):(f=f.slice(f.indexOf(":")+1),h=new Date(h.getTime()+36E5*(c+h.getTimezoneOffset()/60)));var d=a?"getUTC":"get";b=h[d+"Date"]();c=h[d+"Day"]();var g=h[d+"Month"](),k=h[d+"FullYear"](),m=h[d+"Hours"](),n=h[d+"Minutes"](),p=h[d+"Seconds"]();d=h[d+"Milliseconds"]();var t=a?0:h.getTimezoneOffset(),r={d:b,dd:l.Zn(b),
ddd:l.Yu.aH[c],dddd:l.Yu.aH[c+7],D:b,DD:l.Zn(b),DDD:l.Yu.aH[c],DDDD:l.Yu.aH[c+7],M:g+1,MM:l.Zn(g+1),MMM:l.Yu.wV[g],MMMM:l.Yu.wV[g+12],yy:String(k).slice(2),yyyy:k,YY:String(k).slice(2),YYYY:k,h:m%12||12,hh:l.Zn(m%12||12),H:m,HH:l.Zn(m),k:0==m?24:m,kk:0==m?24:l.Zn(m),m:n,mm:l.Zn(n),s:p,ss:l.Zn(p),l:l.Zn(d,3),L:l.Zn(Math.round(d/10)),t:12>m?"a":"p",tt:12>m?"am":"pm",T:12>m?"A":"P",TT:12>m?"AM":"PM",Z:a?"UTC":(String(h).match(l.tMa)||[""]).pop().replace(l.uMa,""),o:(0<t?"-":"+")+l.Zn(100*Math.floor(Math.abs(t)/
60)+Math.abs(t)%60,4),S:["th","st","nd","rd"][3<b%10?0:(10!=b%100-b%10?1:0)*b%10]};return f.replace(l.nka,function(v){return v in r?r[v]:v.slice(1,v.length-1)})}static aAa(h,f){var b=0>h;0>h&&(h*=-1);var a=Math.floor(h/86400);f=null==f||""==f?0<a&&null==q.model.C.F.np?"d'd' "+this.Sca:this.Sca:f;h=Math.round(h);var c=h%60;h=(h-c)/60;var d=h%60;h=(h-d)/60;var g=h%24;b&&(f="-"+f);var k={d:a,dd:l.Zn(a),H:g,HH:l.Zn(g),HHH:h,m:d,mm:l.Zn(d),s:c,ss:l.Zn(c)};return f.replace(l.nka,function(m){return m in
k?k[m]:m.slice(1,m.length-1)})}static sg(h){h=h.substr(0,h.indexOf(":"));return"UTC"===h.slice(0,3)?0:"GMT"===h.slice(0,3)?4<h.length?parseInt(h.substr(3)):0:this.UI.hasOwnProperty(h.slice(0,2))?this.UI[h.slice(0,2)]:this.UI.hasOwnProperty(h.slice(0,3))?this.UI[h.slice(0,3)]:this.UI.hasOwnProperty(h.slice(0,4))?this.UI[h.slice(0,4)]:null}static Zn(h,f){h=""+h;for(f=f||2;h.length<f;)h="0"+h;return h}static xLa(h,f){l.Yu.aH=f.concat(h)}static JLa(h,f){l.Yu.wV=f.concat(h)}static vBa(){return l.Yu.aH.slice(7,
14)}static $Ba(){return l.Yu.wV.slice(12,24)}}l.Sca="HH:mm:ss";l.UI={CET:1,EET:2,EAT:3,GET:4,CXT:7,CST:8,JST:9,SAKT:11,IDLE:12,WAT:-1,AT:-2,ART:-3,AST:-4,EST:-5,CT:-6,MST:-7,PST:-8,AKST:-9,YST:-9,HST:-10,NT:-11,IDLW:-12};l.nka=/d{1,4}|D{1,4}|m{1,4}|M{1,4}|yy(?:yy)?|YY(?:YY)?|H{1,3}|([HhkMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g;l.tMa=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g;l.uMa=/[^-+\dA-Z]/g;l.Yu={aH:"Sun Mon Tue Wed Thu Fri Sat Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
wV:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec January February March April May June July August September October November December".split(" ")};e.Lh=l})(u||(u={}));
(function(e){class l{constructor(){}static sort(h,f=0,b){var a=1===f%2;f>>=1;var c=1===f%2;f=f>>1>>1;var d=1===(f>>1)%2?(g,k)=>{if(void 0!==b){if(e.v(k))return-1;if(e.v(g))return 1;g=b(g);k=b(k)}return isNaN(k)||null===k?-1:isNaN(g)||null===g?1:g-k}:a?(g,k)=>{if(e.ka(k))return-1;if(e.ka(g))return 1;if(void 0!==b){g=b(g);k=b(k);if(e.ka(k))return-1;if(e.ka(g))return 1}return l.localeCompare(g,k)}:(g,k)=>{if(e.ka(k))return-1;if(e.ka(g))return 1;if(void 0!==b){g=b(g);k=b(k);if(e.ka(k))return-1;if(e.ka(g))return 1}return l.localeCompare(g.toLocaleLowerCase(),
k.toLocaleLowerCase())};if(1===f%2){f=[];for(a=0;a<h.length;a++)f[a]=a;f.sort((g,k)=>d(h[g],h[k]));c&&f.reverse();return f}h.sort(d);c&&h.reverse();return h}static localeCompare(h,f){return h&&h.localeCompare?h.localeCompare(f):h===f?0:h>f?1:-1}static insert(h,f,b){for(var a=0;a<f.length;a++)h.splice(b+a,0,f[a])}static Pr(h,f){if(void 0!==h.push)return h.push(f),h;var b=new h.constructor(h.length+1);b.set(h,0);b.set([f],h.length);return b}static re(h,f,b){if(b>=h.length)return l.Pr(h,f);if(Array.isArray(h))return h.splice(b,
0,f),h;var a=new h.constructor(h.length+1);a.set(h.subarray(0,b));a.set([f],b);a.set(h.subarray(b),b+1);return a}static Qr(h,f){if(Array.isArray(h))return h.splice(f,1),h;if(h instanceof Uint8Array||h instanceof Int8Array||h instanceof Uint16Array||h instanceof Uint32Array){const b=h.length-1;let a=null;h instanceof Uint8Array?a=new Uint8Array(b):h instanceof Int8Array?a=new Int8Array(b):h instanceof Uint16Array?a=new Uint16Array(b):h instanceof Uint32Array&&(a=new Uint32Array(b));if(null==a)return h;
a.set(h.subarray(0,f),0);a.set(h.subarray(f+1,h.length),f);return a}return h}static Q3(h,f,b){h.splice(b,0,h.splice(f,1)[0])}}l.ny=1;l.tp=2;l.Tv=8;l.Ti=16;e.Ja=l})(q||(q={}));void 0===Array.prototype.findIndex&&(Array.prototype.findIndex=function(e,l){if(null==this)throw new TypeError("Array is null or undefined");for(var h=Object(this),f=h.length>>>0,b=0;b<f;b++)if(e.call(l,h[b],b,h))return b;return-1});
void 0===Array.prototype.find&&(Array.prototype.find=function(e,l){if(null==this)throw new TypeError("Array is null or undefined");for(var h=Object(this),f=h.length>>>0,b=0;b<f;b++){var a=h[b];if(e.call(l,a,b,h))return a}});void 0===Uint16Array.prototype.slice&&Object.defineProperty(Uint16Array.prototype,"slice",{value:function(e,l){return new Uint16Array(Array.prototype.slice.call(this,e,l))}});
(function(e){class l{constructor(){this.values=new Map;this.keys=[]}Ta(h,f){this.values.has(h)||this.keys.push(h);this.values.set(h,f)}fua(h){if(null!=h)for(var f in h)h.hasOwnProperty(f)&&this.Ta(f,h[f])}unshift(h,f){this.keys.unshift(h);this.values.set(h,f)}hL(h,f,b){null!=this.getItem(h)&&this.removeItem(h);this.keys.splice(b,0,h);this.values.set(h,f)}removeItem(h){null!=this.getItem(h)&&(this.keys.splice(this.indexOf(h),1),this.values.delete(h))}s5(h){var f=this.keys[h];null!=f&&(this.keys.splice(h,
1),this.values.delete(f))}set length(h){}get length(){return this.keys.length}indexOf(h){return this.keys.indexOf(h)}Bb(h){return this.values.has(h)}getItem(h){return this.values.get(h)}fa(h){return this.values.get(this.keys[h])}Uh(h){return this.keys[h]}aU(){return this.values.get(this.keys[this.keys.length-1])}R3(h,f){this.keys.splice(f,0,this.keys.splice(h,1)[0])}slice(h=0,f=0){0==f&&(f=this.length-h);for(var b=new l,a=0;a<f;a++)this.length>a+h&&(e.v(this.fa(a+h))||b.Ta(this.Uh(a+h),this.fa(a+
h)));return b}concat(h,f=!0){if(!f)return this.Isa(h),null;var b=new l;for(f=0;f<this.length;f++)b.Ta(this.Uh(f),this.fa(f));for(f=0;f<h.length;f++)b.Ta(h.Uh(f),h.fa(f));return b}Isa(h){var f,b=h.length;for(f=0;f<b;f++)this.Ta(h.Uh(f),h.fa(f))}splice(h,f=0){var b=new l;h+f>this.length&&(f=this.length-h);1>f&&(f=this.length);for(var a=0;a<this.length;a++)(a<h||a>=h+f)&&b.Ta(this.Uh(a),this.fa(a));return b}reverse(){var h,f=new l;for(h=this.length-1;-1<h;h--)f.Ta(this.Uh(h),this.fa(h));return f}Pc(h=
!1){if(h)return this.keys.slice(0);h=[];for(var f=0;f<this.length;f++)h.push(this.fa(f));return h}toString(){var h=[],f;for(f in this.keys){var b="{"+f+": "+this.getItem(f)+"}";h.push(b)}return h.join(", ")}Sa(){for(var h={},f=0;f<this.keys.length;f++){var b=this.keys[f];h[b]=this.getItem(b)}return h}clear(){this.values=new Map;this.keys.length=0}}e.ub=l})(q||(q={}));
(function(e){class l{constructor(){this.quotes=[]}parse(h){try{this.quotes=[];for(var f=[],b=!1,a="",c=0;c<h.length;c++){var d=h.charAt(c);'"'==d||"'"==d?(b&&(this.quotes.push(a),f.push(d),a=""),b=!b):b&&(a+=d)}h="  "+h;for(c=0;c<this.quotes.length;c++)if("truestyle"!=this.quotes[c].toLowerCase()){var g=f[c]+this.quotes[c]+f[c],k=h.substring(0,h.indexOf(g)+g.length+2);var m=/(\w\w\w\()['|"][^'|^"]*['|"]/i;if(m.test(k))h=h.replace(g,"@"+c);else{m=/(\W)['|"][^'|^"]*['|"]/i;var n=(-1!=k.indexOf("#value")||
-1!=k.indexOf("#updateDifference")||-1!=k.indexOf("#updatePercent"))&&-1!=k.indexOf("if(");m.test(k)&&!n?h=h.replace(g,"sum(@"+c+")"):(m=/(\W)['|"][^'|^"]*['|"]/i,h=h.replace(g,"@"+c))}}m=/#value/g;h=h.replace(m,"value()");m=/#updateDifference/g;h=h.replace(m,"updateDifference()");m=/#updatePercent/g;h=h.replace(m,"updatePercent()");h=h.toLocaleLowerCase();var p=this.Daa(h);p=p[1][0]}catch(t){return null}return p}Daa(h){for(var f=[],b="",a=h.length,c=0;c<h.length;c++){var d=h.charAt(c);if("("==d)b+=
"$"+f.length+";",d=this.Daa(h.slice(c+1)),f.push(d[1]),c=c+d[0]+1;else if(")"==d){a=c;break}else b+=d}h=[];b=b.split(",");for(c=0;c<b.length;c++)h.push(this.WZ(b[c],f));return[a,h]}WZ(h,f){for(var b=[[" or "," and "],"== != >= <= = > <".split(" "),["-","+"],["/","*"],["^"]],a=0;a<b.length;a++){var c=Number.MIN_VALUE,d=b[a][0];if(3==a){c=h.indexOf(b[a][0]);var g=h.indexOf(b[a][1]);-1!=c&&-1!=g?d=c<g?b[a][1]:b[a][0]:-1!=c?d=b[a][0]:-1!=g&&(d=b[a][1])}else for(g=0;g<b[a].length;g++){var k=h.indexOf(b[a][g]);
-1!=k&&(k>=c||2==a)&&(d=b[a][g],c=k+d.length)}c=h.split(d);2<c.length&&(g=c[c.length-1],c.pop(),c=[c.join(d),g]);if(2==c.length)return h=this.WZ(c[0],f),f=this.WZ(c[1],f),"-"==d&&"string"==typeof h&&0==h.trim().length?[d.trim(),[0,f],!0]:[d.trim(),[h,f],!0]}return this.wta(h,f)}wta(h,f){h=h.trim();if(-1!=h.indexOf("$")){var b=h.split("$");h=b[0];b=parseInt(b[1]);if(0<h.length){var a="string"!=typeof f[b][0];("min"==h||"max"==h)&&1<f[b].length&&(a=!0,"string"==typeof f[b][0]&&(f[b][0]=["sum",[f[b][0]],
!1]),"string"==typeof f[b][1]&&(f[b][1]=["sum",[f[b][1]],!1]));if("value"===h||"updatedifference"===h||"updatepercent"===h)a=!0;if("round"==h||"abs"==h)a=!0,"string"==typeof f[b][0]&&(f[b][0]=["sum",[f[b][0]],!1]);return[h,f[b],a]}return f[b][0]}if(-1!=h.indexOf("@"))return f=parseInt(h.slice(1)),this.quotes[f];if("truestyle"==h.toLowerCase()||"truestyle"==h.substring(1,h.length-1).toLowerCase())return"truestyle";f=parseFloat(h);return isNaN(f)?h:f}}e.VJ=l})(u||(u={}));
(function(e){class l{static get Yo(){return/Mac/i.test(navigator.platform)}static get aE(){return/(iPhone|iPod|iPad)/i.test(navigator.platform)||/(iPhone|iPod|iPad)/i.test(navigator.userAgent)}}e.uj=l})(u||(u={}));
(function(e){class l{constructor(f=!0){this.values=[];this.iS=[];this.root=new h("");this.mS=f}get length(){return this.values.length}add(f,b){if(q.v(f)||0===f.length)return void 0===this.yz&&(this.yz=this.values.length,this.values.push(f)),this.yz;f=""+f;if(this.mS){const a=/[^\u0000-\u007F]+/.test(f)?f.toLocaleLowerCase():f.toLowerCase();return this.root.Zaa(f,a,a===f,this.values,this.iS,b)}return this.root.$aa(f,this.values,b)}get(f){return this.mS?this.iS[f]||this.values[f]:this.values[f]}find(f){if(q.v(f)||
0===f.length)return void 0!==this.yz?this.yz:-1;f=""+f;const b=/[^\u0000-\u007F]+/.test(f);this.mS&&(f=b?f.toLocaleLowerCase():f.toLowerCase());return this.root.find(f,0,this.values,b)}sort(){var f=this.root.sort(l.e0);void 0!==this.yz&&f.unshift(this.yz);return f}clone(){var f=new l(this.mS);f.values=this.values.slice();f.iS=this.iS.slice();f.yz=this.yz;f.root=this.root.clone();return f}static e0(f,b){return f&&f.localeCompare?f.localeCompare(b):f==b?0:f>b?1:-1}}e.HQ=l;class h{constructor(f){this.dh=
[];this.prefix=f}$aa(f,b,a){var c=this.prefix.length;if(void 0!==this.children&&f.length>c)return c=f[c],this.children.has(c)||this.children.set(c,new h(this.prefix+c)),this.children.get(c).$aa(f,b,a);for(var d=0;d<this.dh.length;d++){c=b[this.dh[d]];if(f<c)return this.UQ(f,b,a,d);if(f===c){if(void 0===a)return this.dh[d];b[a]=f;this.dh.splice(d,0,a);return a}}return this.UQ(f,b,a)}Zaa(f,b,a,c,d,g){var k=this.prefix.length;if(void 0!==this.children&&b.length>k)return k=b[k],this.children.has(k)||
this.children.set(k,new h(this.prefix+k)),this.children.get(k).Zaa(f,b,a,c,d,g);for(var m=0;m<this.dh.length;m++){k=c[this.dh[m]];if(b<k)return a?this.UQ(f,c,g,m):this.B$(f,b,c,d,g,m);if(b===k){if(void 0===g)return this.dh[m];c[g]=b;a||(d[g]=f);this.dh.splice(m,0,g);return g}}return a?this.UQ(f,c,g):this.B$(f,b,c,d,g)}B$(f,b,a,c,d,g=-1){void 0===d?(d=a.length,a.push(b),c[d]=f):(a[d]=b,c[d]=f);-1===g?this.dh.push(d):this.dh.splice(g,0,d);this.dh.length>h.e9&&this.Qaa(a);return d}UQ(f,b,a,c=-1){void 0===
a?(a=b.length,b.push(f)):b[a]=f;-1===c?this.dh.push(a):this.dh.splice(c,0,a);this.dh.length>h.e9&&this.Qaa(b);return a}Qaa(f){if(!this.children){this.children=new Map;for(var b,a=this.prefix.length,c=-1,d=0,g=0;g<this.dh.length;g++)b=f[this.dh[g]],b.length===a?c=this.dh[g]:(b=b[a],this.children.has(b)||(this.children.set(b,new h(this.prefix+b)),d++),this.children.get(b).dh.push(this.dh[g]));this.dh=-1===c?[]:[c]}}sort(f){var b=0<this.dh.length?this.dh.slice():[];if(void 0!==this.children){var a=[];
for(var c of this.children.keys())a.push(c);a=a.sort(f);for(c=0;c<a.length;c++){var d=this.children.get(a[c]).sort(f);b=b.concat(d)}}return b}find(f,b,a,c){if(void 0!==this.children&&f.length!==this.prefix.length){var d=f[b];return this.children.has(d)?this.children.get(d).find(f,b+1,a,c):-1}return this.Wsa(f,a,c)}Wsa(f,b,a){for(let d=0;d<this.dh.length;d++){var c=b[this.dh[d]];if(a){if(c=c.localeCompare(f),0===c)return this.dh[d]}else if(f===c)return this.dh[d]}return-1}clone(){var f=new h(this.prefix);
f.dh=this.dh.slice();void 0!==this.children&&(f.children=new Map(this.children));return f}}h.e9=16})(u||(u={}));
(function(e){class l{static Og(h){for(var f in h)if(!q.v(h[f])&&h.hasOwnProperty(f))return!1;return!0}static jz(h){var f={},b;for(b in h)f[b]=h[b];return f}static zj(h,f){if(q.v(h))return null;if(Array.isArray(h))return l.iya(h);var b={},a;for(a in h)b[a]="object"!=typeof h[a]||null==h[a]||null!=f&&-1<f.indexOf(a)?h[a]:l.zj(h[a]);return b}static iya(h){for(var f=[],b=0;b<h.length;b++)f[b]="object"!=typeof h[b]?h[b]:l.zj(h[b]);return f}static resolve(h,f){return q.v(f)?null:f.hasOwnProperty(h)?f[h]:
h.split(".").reduce((b,a)=>b&&b[a],f)}}e.Hc=l})(u||(u={}));var w;
(function(e){class l{static Zfa(f){return-1<"fullscreenchange mozfullscreenchange webkitfullscreenchange MSFullscreenChange focusin focusout touchstart touchmove touchend touchenter touchleave touchcancel".split(" ").indexOf(f)}constructor(f,b=null,a=null){this.paa=!1;this.type=f;this.target=b;this.data=a}stopPropagation(){this.paa=!0}get nEa(){return this.paa}}l.Qc="event_complete";l.ZA="event_connected";l.te="event_progress";l.to="event_select";l.Xd="event_change";l.xa="event_error";l.OPENED="event_opened";
l.CLOSED="event_closed";l.BX="event_cancel";l.OPEN="event_open";l.eP="event_close";l.DY="event_resize";l.sp="event_clear";e.ia=l;class h{constructor(){this.dT=!1;this.Ch=[];this.vn=[];this.Xt=[]}JG(f,b){return f.type==b.type&&f.lc==b.lc}z2(f){return!q.v(this.Ch[f])}A2(f,b){if(q.v(this.Ch[f]))return!1;for(var a=0;a<this.Ch[f].length;a++)if(this.JG(this.Ch[f][a],b))return!0;return!1}N(f,b,a=0){b={type:f,lc:b,priority:a};if(!this.A2(f,b))if(this.dT)q.v(this.vn[f])&&(this.vn[f]=[]),this.vn[f].push(b);
else if(q.v(this.Ch[f])&&(this.Ch[f]=[]),0==this.Ch[f].length)this.Ch[f].push(b);else{this.Ch[f][this.Ch[f].length-1].priority>=a&&this.Ch[f].push(b);for(var c=0;c<this.Ch[f].length;c++)if(this.Ch[f][c].priority<a){this.Ch[f].splice(c,0,b);break}}}rb(f,b){if(!q.v(this.Ch[f])){b={type:f,lc:b};for(var a=this.Ch[f].slice(0),c=[],d=0;d<a.length;d++)this.JG(a[d],b)?this.dT&&(q.v(this.Xt[f])&&(this.Xt[f]=[]),this.Xt[f].push(a[d])):c.push(a[d]);this.Ch[f]=c}}Vd(f){void 0===f?(this.Ch=[],this.vn=[],this.Xt=
[]):(q.v(this.Ch)||(this.Ch[f]=[]),q.v(this.vn)||(this.vn[f]=[]),q.v(this.Xt)||(this.Xt[f]=[]))}Ha(f){if(!q.v(this.Ch[f.type])){this.dT=!0;for(var b=this.Ch[f.type].slice(0),a=0;a<b.length;a++){if(!q.v(this.Xt[f.type])){var c=!1,d;for(d in this.Xt[f.type])this.JG(b[a],this.Xt[f.type][d])&&(c=!0);if(c)continue}f instanceof q.model.jd?b[a].lc.call(this,f.data):f instanceof l&&f.nEa||b[a].lc.call(this,f)}delete this.Xt[f.type];for(var g in this.vn){if(q.v(this.Ch[g]))b=[];else if(Array.isArray(this.Ch[g]))b=
this.Ch[g].slice(0);else continue;if(!q.v(this.vn[g]))for(a=0;a<this.vn[g].length;a++)if(0==b.length)b.push(this.vn[g][a]);else for(b[b.length-1].priority==this.vn[g][a].priority&&b.push(this.vn[g][a]),f=0;f<b.length;f++)if(b[f].priority<this.vn[g][a].priority){b.splice(f,0,this.vn[g][a]);break}this.Ch[g]=b;this.vn[g]=[]}this.dT=!1}}Ya(f,b,a){f=new e.ia(f,null==b?this:b,a);this.Ha(f)}}e.Mh=h})(w||(w={}));
(function(e){e.requestIdleCallback=function(h,f=null,b=!1){if(window.requestIdleCallback&&!b)return window.requestIdleCallback(h,f);var a,c=e.bg(),d;return q.ve(()=>{h({didTimeout:!1,timeRemaining:()=>void 0===a?(a=e.bg(),d=Math.min(350,e.bg()-c+50)):Math.max(0,d-(e.bg()-a))})},1)};e.cancelIdleCallback=function(h){if(window.cancelIdleCallback)return window.cancelIdleCallback(h);q.sr(h)};class l{constructor(){throw Error("Singleton");}static Co(h){l.BI.push(h);l.Ze()}static Ze(){q.v(l.AL)&&0<l.BI.length&&
(3<l.K2&&(l.qfa=!1),l.AL=e.requestIdleCallback(l.TKa,{timeout:100},!l.qfa))}static TKa(h){if(h.didTimeout)l.K2++,l.Eia();else for(l.K2=0;0<h.timeRemaining()&&0<l.BI.length&&!l.Eia(););l.AL=null;l.Ze()}static Eia(){var h=l.BI.shift(),f=h.lp(h.M_);f?h&&h.gf&&q.ve(h.gf,1):l.BI.push(h);return f}static cancel(){null!=l.AL&&(e.cancelIdleCallback(l.AL),l.AL=null);l.BI=[]}}l.BI=[];l.qfa=!0;l.K2=0;e.Ql=l})(u||(u={}));
(function(e){function l(){var h=navigator.userAgent.toLowerCase(),f={};f.OU=/mozilla/.test(h)&&/firefox/.test(h);f.DU=/webkit/.test(h)&&/chrome/.test(h)&&!/edge/.test(h);f.W2=/edge/.test(h);f.tEa=/applewebkit/.test(h)&&/safari/.test(h)&&!/chrome/.test(h);f.bga=/opera/.test(h);f.fj=/msie/.test(h);f.pEa=/ReactNative/i.test(navigator.product);f.im=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i.test(h)||/iPad|iPhone|iPod|BlackBerry/i.test(navigator.platform)||f.pEa;f.version=NaN;f.fj||f.OU||
f.DU||f.tEa||f.bga||!/trident/.test(h)||(f.fj=!0,f.version=11);if(isNaN(f.version))for(var b=["chrome","firefox","msie","safari","opera"],a=0;a<b.length;a++)try{f.version=parseInt(h.match(new RegExp("("+b[a]+")( |/)([0-9]+)"))[3]);break}catch(c){}return f}e.Nd=function(){return l()};e.bT=l;e.PU=function(){return null!=document.fullscreenElement||null!=document.mozFullScreenElement||null!=document.webkitFullscreenElement||null!=document.msFullscreenElement};e.d3=function(){return window!=top};e.Jfa=
function(){try{return!q.v(window.process.versions.electron)}catch(h){return!1}};e.VDa=function(){try{return void 0!==ArrayBuffer&&void 0!==DataView&&void 0!==Uint8Array&&(window.chrome&&navigator.userAgent.match(/chrome.\d*/gi)?12<=parseInt(navigator.userAgent.match(/chrome.\d*/gi)[0].replace(/[^\d]/g,"")):!0)&&(window.opera?15<=window.opera.version():!0)&&(navigator.userAgent.match("Safari/")?!navigator.userAgent.match("Version/5.")&&!navigator.userAgent.match("Version/6.0"):!0)}catch(h){return!1}};
e.GQa=function(h){var f=document.cookie,b=f.indexOf(" "+h+"=");-1==b&&(b=f.indexOf(h+"="));-1==b?f=null:(b=f.indexOf("=",b)+1,h=f.indexOf(";",b),-1==h&&(h=f.length),f=decodeURI(f.substring(b,h)));return f};e.LQa=function(h,f){var b=new Date;b.setDate(b.getDate()+1825);f=encodeURI(f)+"; expires="+b.toUTCString();document.cookie=h+"="+f};e.HQa=function(){return screen.orientation&&-1<screen.orientation.type.indexOf("landscape")};e.IQa=function(){return screen.orientation&&-1<screen.orientation.type.indexOf("portrait")};
e.SQa=function(){return Math.max(document.documentElement.clientWidth)};e.RQa=function(){return Math.max(document.documentElement.clientHeight)}})(u||(u={}));
(function(e){class l extends w.Mh{constructor(f,b=0){super();this.dR=0;this.UK=!1;this.Nsa=f;this.Kaa=b}NIa(){this.dR++;this.Ha(new w.ia(h.Ol));0<this.Kaa&&this.dR>=this.Kaa&&(this.stop(),this.Ha(new w.ia(h.Pl)))}start(){this.UK||(this.laa=q.Uda(()=>this.NIa(),this.Nsa),this.UK=!0)}stop(){this.UK&&!q.v(this.laa)&&(q.t1(this.laa),this.UK=!1)}reset(){this.dR=0;this.stop()}set Kw(f){}get Kw(){return this.dR}set Gl(f){}get Gl(){return this.UK}}e.Pt=l;class h{}h.Ol="timer";h.Pl="complete";e.xf=h;e.bg=
function(){return"undefined"!==typeof performance&&"function"===typeof window.performance.now?performance.now():(new Date).getTime()}})(u||(u={}));
(function(e){class l{static load(f,b,a){if(PivotApi.libsIncluded)return b();f=new h(f,l.O_);this.jI.push(f);f.lc=b;f.Xa=a;f.load()}static z3(f,b,a){null==b&&(b={});f=new h(f,l.O_);this.jI.push(f);f.wL=b.wL;f.Bj=b.Bj;f.lc=a;f.Xa=void 0;f.load()}static RMa(){var f=document.querySelector("link[data-fm-hc-theme]");f&&(f.disabled=!0)}static dispose(){for(let f=0;f<this.jI.length;f++)this.jI[f].dispose();this.jI.length=0;this.jI=null}}l.O_="";l.jI=[];e.uo=l;class h{constructor(f,b){this.wL=null;this.Bj=
!1;this.total=this.loaded=0;this.errors=[];this.y3=this.hO=null;this.url=f;this.baseURI=b;this.total="string"==typeof this.url?1:this.url.length}load(){0==this.total&&this.Jj();if("string"==typeof this.url)this.LK(this.url,this.wL);else for(var f=this.url,b=0;b<f.length;b++)this.LK(f[b],this.wL)}Jj(){this.loaded++;if(this.loaded==this.total||0==this.total)0==this.errors.length?this.lc&&this.lc():this.Xa&&this.Xa(this.errors),this.Xa=this.lc=null}LK(f,b){f=this.baseURI+f;f.lastIndexOf(".js")==f.length-
3?this.bFa(f):f.lastIndexOf(".css")==f.length-4?this.z3(f,b):this.Jj()}bFa(f){if(null==this.Pda(f)){const a=this.hO=document.createElement("script");a.type="text/javascript";a.src=q.KMa(f+"?"+q.Cg.Iq);a.async=!0;var b=()=>{a.readystate="loaded";this.Jj();if(a.onloadedlisteners){for(var c=0;c<a.onloadedlisteners.length;c++)a.onloadedlisteners[c]();delete a.onloadedlisteners}};a.onreadystatechange=b;a.onload=b;a.onerror=()=>{a.readystate="error";this.errors.push(f);this.Jj()};document.head.appendChild(a)}else b=
this.hO=this.Pda(f),"error"==b.readystate?(this.errors.push(f),this.Jj()):!0===b.async&&"loaded"!=b.readystate?(null==b.onloadedlisteners&&(b.onloadedlisteners=[]),b.onloadedlisteners.push(()=>this.Jj())):this.Jj()}z3(f,b=null){const a=this.y3=document.createElement("link");a.href=f+"?"+q.Cg.Iq;a.rel="stylesheet";a.type="text/css";if(null!=b)for(const c in b)b.hasOwnProperty(c)&&a.setAttribute(c,b[c]);a.onerror=()=>this.Rb(f);a.onreadystatechange=()=>this.Jj();a.onload=()=>this.Jj();this.Bj?document.body.appendChild(a):
document.head.appendChild(a)}Pda(f){for(var b=0;b<document.head.children.length;b++){var a=document.head.children.item(b);if(a.src&&-1<a.src.indexOf(f))return a}return null}Rb(f){this.errors.push(f);this.Jj()}dispose(){this.Xa=this.lc=this.y3=this.hO=null}}})(u||(u={}));
(function(e){class l extends w.Mh{constructor(f){super();this.GZ=!1;this.gta=b=>this.tq(b);this.hta=b=>this.v4(b);this.GEa=1E3;this.buffer=[];this.tfa=()=>this.uHa();this.TQ=null;if(null!=l.Be)throw Error("KeyboardListener is singleton");e.Nd().im||(q.Ik.addEventListener("keydown",this.gta),q.Ik.addEventListener("keyup",this.hta),this.kG=new x.Ga("div"),this.kG.V("position","fixed").V("left","0px").V("top","0px").V("opacity","0").V("width","0px").V("height","0px"),this.kG.$a(),this.$q=new x.Zv,this.$q.G.V("width",
"1px").V("height","1px").V("padding","0px"),this.$q.N("focusin",()=>{this.GZ=!0}),this.$q.N("focusout",()=>{this.GZ=!1}),this.kG.append(this.$q.G),f.append(this.kG))}static R(){null==l.Be&&(l.Be=new l(q.K.Sb.Jb.G));return l.Be}get Ofa(){return this.GZ}v4(f){this.hba(f.key,f.type)}tq(f){var b=new h(h.SP);b.keyCode=f.keyCode;b.altKey=f.altKey;b.ctrlKey=f.ctrlKey;b.metaKey=f.metaKey;b.shiftKey=f.shiftKey;b.vq=f;this.Ha(b);this.hba(f.key,f.type)}hba(f,b){f=f.toLowerCase();const a=Date.now();a-this.JEa>
this.GEa&&(this.buffer.length=0);20<this.buffer.length&&this.buffer.splice(0,this.buffer.length-6);this.buffer.push({key:f,type:b});this.JEa=a;this.Ova()&&(this.buffer.length=0,this.Ya(h.k$))}Ova(){if(6>this.buffer.length)return!1;let f=0,b=0;for(const a of this.buffer)"shift"==a.key&&("keydown"==a.type?f++:"keyup"==a.type&&b++);return 3<=f&&3<=b}uHa(){this.kG.$a();this.$q.ik("");this.$q.G.blur();this.$q.rb("keyup",this.tfa);null!=this.TQ&&(this.TQ.focus({preventScroll:!0}),this.TQ=null)}jz(f){this.TQ=
document.activeElement;this.kG.show();this.$q.ik(f);this.$q.G.focus({preventScroll:!0});this.$q.selectAll();this.$q.G.focus({preventScroll:!0});this.$q.N("keyup",this.tfa)}static dispose(){l.Be=null}}e.TP=l;class h extends w.ia{constructor(f){super(f)}}h.SP="event_keydown";h.k$="event_tripple_shift";e.KeyboardEvent=h;(function(f){f[f.yNa=8]="BACKSPACE";f[f.qQa=9]="TAB";f[f.kOa=13]="ENTER";f[f.kQa=16]="SHIFT";f[f.aOa=17]="CTRL";f[f.tNa=18]="ALT";f[f.ZPa=19]="PAUSE";f[f.WNa=20]="CAPS_LOCK";f[f.mOa=
27]="ESCAPE";f[f.nQa=32]="SPACE";f[f.YPa=33]="PAGE_UP";f[f.XPa=34]="PAGE_DOWN";f[f.eB=35]="END";f[f.QOa=36]="HOME";f[f.CPa=37]="LEFT_ARROW";f[f.zQa=38]="UP_ARROW";f[f.cQa=39]="RIGHT_ARROW";f[f.iOa=40]="DOWN_ARROW";f[f.ROa=45]="INSERT";f[f.J7=46]="DELETE";f[f.TOa=48]="KEY_0";f[f.UOa=49]="KEY_1";f[f.VOa=50]="KEY_2";f[f.WOa=51]="KEY_3";f[f.XOa=52]="KEY_4";f[f.YOa=53]="KEY_5";f[f.ZOa=54]="KEY_6";f[f.$Oa=55]="KEY_7";f[f.aPa=56]="KEY_8";f[f.bPa=57]="KEY_9";f[f.cPa=65]="KEY_A";f[f.dPa=66]="KEY_B";f[f.ePa=
67]="KEY_C";f[f.fPa=68]="KEY_D";f[f.gPa=69]="KEY_E";f[f.hPa=70]="KEY_F";f[f.iPa=71]="KEY_G";f[f.jPa=72]="KEY_H";f[f.kPa=73]="KEY_I";f[f.lPa=74]="KEY_J";f[f.mPa=75]="KEY_K";f[f.nPa=76]="KEY_L";f[f.oPa=77]="KEY_M";f[f.pPa=78]="KEY_N";f[f.qPa=79]="KEY_O";f[f.rPa=80]="KEY_P";f[f.sPa=81]="KEY_Q";f[f.tPa=82]="KEY_R";f[f.uPa=83]="KEY_S";f[f.vPa=84]="KEY_T";f[f.wPa=85]="KEY_U";f[f.xPa=86]="KEY_V";f[f.yPa=87]="KEY_W";f[f.zPa=88]="KEY_X";f[f.APa=89]="KEY_Y";f[f.BPa=90]="KEY_Z";f[f.DPa=91]="LEFT_META";f[f.dQa=
92]="RIGHT_META";f[f.to=93]="SELECT";f[f.LPa=96]="NUMPAD_0";f[f.MPa=97]="NUMPAD_1";f[f.NPa=98]="NUMPAD_2";f[f.OPa=99]="NUMPAD_3";f[f.PPa=100]="NUMPAD_4";f[f.QPa=101]="NUMPAD_5";f[f.RPa=102]="NUMPAD_6";f[f.SPa=103]="NUMPAD_7";f[f.TPa=104]="NUMPAD_8";f[f.UPa=105]="NUMPAD_9";f[f.nQ=106]="MULTIPLY";f[f.VO=107]="ADD";f[f.EQ=109]="SUBTRACT";f[f.fOa=110]="DECIMAL";f[f.yJ=111]="DIVIDE";f[f.oOa=112]="F1";f[f.sOa=113]="F2";f[f.tOa=114]="F3";f[f.uOa=115]="F4";f[f.vOa=116]="F5";f[f.wOa=117]="F6";f[f.xOa=118]=
"F7";f[f.yOa=119]="F8";f[f.zOa=120]="F9";f[f.pOa=121]="F10";f[f.qOa=122]="F11";f[f.rOa=123]="F12";f[f.VPa=144]="NUM_LOCK";f[f.fQa=145]="SCROLL_LOCK";f[f.iQa=186]="SEMICOLON";f[f.lOa=187]="EQUALS";f[f.ZNa=188]="COMMA";f[f.eOa=189]="DASH";f[f.$Pa=190]="PERIOD";f[f.LOa=191]="FORWARD_SLASH";f[f.POa=192]="GRAVE_ACCENT";f[f.WPa=219]="OPEN_BRACKET";f[f.zNa=220]="BACK_SLASH";f[f.YNa=221]="CLOSE_BRACKET";f[f.mQa=222]="SINGLE_QUOTE"})(e.Boa||(e.Boa={}))})(u||(u={}));
(function(e){class l extends w.Mh{constructor(f){super();this.c_=()=>this.bLa();this.iR=()=>this.iR();this.tG="__FMResizeTriggersStorage__";this.Vl=f;this.nDa();this.dr=new h(this.Vl.element,this.tG);this.lMa(this.Vl.element)}nDa(){!q.v(this.Vl)&&q.v(this.Vl.element[this.tG])&&(this.Vl.element[this.tG]={})}refresh(){this.u5(this.dr)}u5(f){var b=f.y5;f=b.firstElementChild;b=b.lastElementChild;var a=f.firstElementChild;b.scrollLeft=b.scrollWidth;b.scrollTop=b.scrollHeight;a.style.width=f.offsetWidth+
1+"px";a.style.height=f.offsetHeight+"px";f.scrollLeft=f.scrollWidth;f.scrollTop=f.scrollHeight}Nva(f){return f.offsetWidth!=this.dr.w5.width||f.offsetHeight!=this.dr.w5.height}bLa(){if(this.Vl&&this.Vl.element&&!q.v(this.Vl.element[this.tG])){const f=this.Vl.element,b=this.dr.w5;this.u5(this.dr);this.dr.oW&&this.Vl.cancelAnimationFrame(this.dr.oW);this.dr.oW=this.Vl.requestAnimationFrame(()=>{q.v(b.width)&&(b.width=f.offsetWidth);q.v(b.height)&&(b.height=f.offsetHeight);this.Nva(f)&&(b.width=f.offsetWidth,
b.height=f.offsetHeight,this.xya())})}}xya(){this.Ya(w.ia.DY)}lMa(f){f.attachEvent?f.attachEvent("onresize",this.iR):q.v(f)||("static"==getComputedStyle(f).position&&(f.style.position="relative"),f.appendChild(this.dr.y5),this.u5(this.dr),f.addEventListener("scroll",this.c_,!0))}nMa(f){f.detachEvent?f.detachEvent("onresize",this.iR):f.removeEventListener("scroll",this.c_,!0)}hwa(){const f=this.Vl.element[this.tG],b=Object.keys(f);for(let a=0;a<b.length;a++)if(!q.v(f[b[a]]))return;this.Vl.element[this.tG]=
null}dispose(){this.Vl&&this.Vl.element&&(this.nMa(this.Vl.element),this.dr.dispose(),this.dr=null,this.hwa());this.iR=this.c_=this.Vl=null}}e.Uqa=l;class h{constructor(f,b){this.$Z="__resizeLast__";this.Maa="__resizeListeners__";this.RK="__resizeTriggers__";this.QR="__resizeRAF__";this.Rsa="__resizeTrigger";this.vE=f;this.i6=b;this.kT=this.LAa();q.v(this.vE)||this.lDa(this.i6)}get y5(){return this.UM()[this.RK]}get w5(){return this.UM()[this.$Z]}get oW(){return this.UM()[this.QR]}set oW(f){this.UM()[this.QR]=
f}LAa(){return this.Rsa+q.K.Sb.Jb.rf.id}lDa(f){this.vE[f][this.kT]={};f=this.vE[f][this.kT];f[this.$Z]={};f[this.Maa]=[];f[this.RK]=document.createElement("div");f[this.RK].className="fm-resize-triggers";f[this.RK].innerHTML=q.vt('<div class="fm-expand-trigger"><div></div></div><div class="fm-contract-trigger"></div>');f[this.QR]=null}UM(){return this.vE[this.i6][this.kT]}dispose(){if(!q.v(this.vE)){this.vE.removeChild(this.y5);const f=this.UM();f[this.$Z]=null;f[this.Maa]=null;f[this.QR]=null;f[this.RK]=
null;this.vE[this.i6][this.kT]=null}}}e.eQa=h})(u||(u={}));(function(e){class l{constructor(){this.FO=[]}add(h,...f){this.FO.push({lc:h,M_:f})}pop(){return this.FO.pop()}Ze(h){var f=()=>{if(0==this.FO.length)h();else{var b=this.FO.shift();e.requestIdleCallback(()=>b.lc(f,...b.M_),{timeout:100})}};f()}kb(){return 0===this.FO.length}}e.FB=l})(u||(u={}));
(function(e){function l(D,E,G){var F=0,K=[],I=0,J,L,Q,N=!1,W=[],O=[],V=!1;G=G||{};var ca=G.encoding||"UTF8";var fa=G.JQa||1;if(fa!==parseInt(fa,10)||1>fa)throw Error("numRounds must a integer >= 1");if(0===D.lastIndexOf("SHA-",0))if(J=function(R,P){return H(R,P,D)},L=function(R,P,ba,Z){if("SHA-224"===D||"SHA-256"===D){var X=(P+65>>>9<<4)+15;var ja=16}else throw Error("Unexpected error in SHA-2 implementation");for(;R.length<=X;)R.push(0);R[P>>>5]|=128<<24-P%32;P+=ba;R[X]=P&4294967295;R[X-1]=P/4294967296|
0;ba=R.length;for(P=0;P<ba;P+=ja)Z=H(R.slice(P,P+ja),Z,D);if("SHA-224"===D)R=[Z[0],Z[1],Z[2],Z[3],Z[4],Z[5],Z[6]];else if("SHA-256"===D)R=Z;else throw Error("Unexpected error in SHA-2 implementation");return R},Q=function(R){return R.slice()},"SHA-224"===D){var U=512;var aa=224}else if("SHA-256"===D)U=512,aa=256;else throw Error("Chosen SHA variant is not supported");else throw Error("Chosen SHA variant is not supported");var ka=g(E,ca);var ha=B(D);this.setHMACKey=function(R,P,ba){if(!0===N)throw Error("HMAC key already set");
if(!0===V)throw Error("Cannot set HMAC key after calling update");ca=(ba||{}).encoding||"UTF8";P=g(P,ca)(R);R=P.LG;P=P.value;var Z=U>>>3;ba=Z/4-1;if(Z<R/8){for(P=L(P,R,0,B(D));P.length<=ba;)P.push(0);P[ba]&=4294967040}else if(Z>R/8){for(;P.length<=ba;)P.push(0);P[ba]&=4294967040}for(R=0;R<=ba;R+=1)W[R]=P[R]^909522486,O[R]=P[R]^1549556828;ha=J(W,ha);F=U;N=!0};this.update=function(R){var P,ba=0,Z=U>>>5;var X=ka(R,K,I);R=X.LG;var ja=X.value;X=R>>>5;for(P=0;P<X;P+=Z)ba+U<=R&&(ha=J(ja.slice(P,P+Z),ha),
ba+=U);F+=ba;K=ja.slice(ba>>>5);I=R%U;V=!0};this.getHash=function(R,P){if(!0===N)throw Error("Cannot call getHash after setting HMAC key");var ba=d(P);switch(R){case "HEX":R=function(X){return f(X,aa,ba)};break;case "B64":R=function(X){return b(X,aa,ba)};break;case "BYTES":R=function(X){return a(X,aa)};break;case "ARRAYBUFFER":try{P=new ArrayBuffer(0)}catch(X){throw Error("ARRAYBUFFER not supported by this environment");}R=function(X){return c(X,aa)};break;default:throw Error("format must be HEX, B64, BYTES, or ARRAYBUFFER");
}var Z=L(K.slice(),I,F,Q(ha));for(P=1;P<fa;P+=1)Z=L(Z,aa,0,B(D));return R(Z)};this.getHMAC=function(R,P){if(!1===N)throw Error("Cannot call getHMAC without first setting HMAC key");var ba=d(P);switch(R){case "HEX":R=function(X){return f(X,aa,ba)};break;case "B64":R=function(X){return b(X,aa,ba)};break;case "BYTES":R=function(X){return a(X,aa)};break;case "ARRAYBUFFER":try{R=new ArrayBuffer(0)}catch(X){throw Error("ARRAYBUFFER not supported by this environment");}R=function(X){return c(X,aa)};break;
default:throw Error("outputFormat must be HEX, B64, BYTES, or ARRAYBUFFER");}P=L(K.slice(),I,F,Q(ha));var Z=J(O,B(D));Z=L(P,aa,U,Z);return R(Z)}}function h(){}function f(D,E,G){var F="";E/=8;var K;for(K=0;K<E;K+=1){var I=D[K>>>2]>>>8*(3+K%4*-1);F+="0123456789abcdef".charAt(I>>>4&15)+"0123456789abcdef".charAt(I&15)}return G.TV?F.toUpperCase():F}function b(D,E,G){var F="",K=E/8,I;for(I=0;I<K;I+=3){var J=I+1<K?D[I+1>>>2]:0;var L=I+2<K?D[I+2>>>2]:0;L=(D[I>>>2]>>>8*(3+I%4*-1)&255)<<16|(J>>>8*(3+(I+1)%
4*-1)&255)<<8|L>>>8*(3+(I+2)%4*-1)&255;for(J=0;4>J;J+=1)8*I+6*J<=E?F+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(L>>>6*(3-J)&63):F+=G.lS}return F}function a(D,E){var G="";E/=8;var F;for(F=0;F<E;F+=1){var K=D[F>>>2]>>>8*(3+F%4*-1)&255;G+=String.fromCharCode(K)}return G}function c(D,E){E/=8;var G,F=new ArrayBuffer(E);var K=new Uint8Array(F);for(G=0;G<E;G+=1)K[G]=D[G>>>2]>>>8*(3+G%4*-1)&255;return F}function d(D){var E={TV:!1,lS:"=",MQa:-1};D=D||{};E.TV=D.TV||!1;!0===D.hasOwnProperty("b64Pad")&&
(E.lS=D.lS);if("boolean"!==typeof E.TV)throw Error("Invalid outputUpper formatting option");if("string"!==typeof E.lS)throw Error("Invalid b64Pad formatting option");return E}function g(D,E){switch(E){case "UTF8":case "UTF16BE":case "UTF16LE":break;default:throw Error("encoding must be UTF8, UTF16BE, or UTF16LE");}switch(D){case "HEX":D=function(G,F,K){var I=G.length,J,L;if(0!==I%2)throw Error("String of HEX type must be in byte increments");F=F||[0];K=K||0;var Q=K>>>3;for(J=0;J<I;J+=2){var N=parseInt(G.substr(J,
2),16);if(isNaN(N))throw Error("String of HEX type contains invalid characters");var W=(J>>>1)+Q;for(L=W>>>2;F.length<=L;)F.push(0);F[L]|=N<<8*(3+W%4*-1)}return{value:F,LG:4*I+K}};break;case "TEXT":D=function(G,F,K){var I=0,J,L,Q;F=F||[0];K=K||0;var N=K>>>3;if("UTF8"===E){var W=3;for(J=0;J<G.length;J+=1){var O=G.charCodeAt(J);var V=[];128>O?V.push(O):2048>O?(V.push(192|O>>>6),V.push(128|O&63)):55296>O||57344<=O?V.push(224|O>>>12,128|O>>>6&63,128|O&63):(J+=1,O=65536+((O&1023)<<10|G.charCodeAt(J)&1023),
V.push(240|O>>>18,128|O>>>12&63,128|O>>>6&63,128|O&63));for(L=0;L<V.length;L+=1){var ca=I+N;for(Q=ca>>>2;F.length<=Q;)F.push(0);F[Q]|=V[L]<<8*(W+ca%4*-1);I+=1}}}else if("UTF16BE"===E||"UTF16LE"===E)for(W=2,V="UTF16LE"===E&&!0||"UTF16LE"!==E&&!1,J=0;J<G.length;J+=1){O=G.charCodeAt(J);!0===V&&(L=O&255,O=L<<8|O>>>8);ca=I+N;for(Q=ca>>>2;F.length<=Q;)F.push(0);F[Q]|=O<<8*(W+ca%4*-1);I+=2}return{value:F,LG:8*I+K}};break;case "B64":D=function(G,F,K){var I=0,J,L;if(-1===G.search(/^[a-zA-Z0-9=+\/]+$/))throw Error("Invalid character in base-64 string");
var Q=G.indexOf("=");G=G.replace(/=/g,"");if(-1!==Q&&Q<G.length)throw Error("Invalid '=' found in base-64 string");F=F||[0];K=K||0;var N=K>>>3;for(Q=0;Q<G.length;Q+=4){var W=G.substr(Q,4);for(J=L=0;J<W.length;J+=1){var O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(W[J]);L|=O<<18-6*J}for(J=0;J<W.length-1;J+=1){var V=I+N;for(O=V>>>2;F.length<=O;)F.push(0);F[O]|=(L>>>16-8*J&255)<<8*(3+V%4*-1);I+=1}}return{value:F,LG:8*I+K}};break;case "BYTES":D=function(G,F,K){var I;F=
F||[0];K=K||0;var J=K>>>3;for(I=0;I<G.length;I+=1){var L=G.charCodeAt(I);var Q=I+J;var N=Q>>>2;F.length<=N&&F.push(0);F[N]|=L<<8*(3+Q%4*-1)}return{value:F,LG:8*G.length+K}};break;case "ARRAYBUFFER":try{D=new ArrayBuffer(0)}catch(G){throw Error("ARRAYBUFFER not supported by this environment");}D=function(G,F,K){var I;F=F||[0];K=K||0;var J=K>>>3;var L=new Uint8Array(G);for(I=0;I<G.byteLength;I+=1){var Q=I+J;var N=Q>>>2;F.length<=N&&F.push(0);F[N]|=L[I]<<8*(3+Q%4*-1)}return{value:F,LG:8*G.byteLength+
K}};break;default:throw Error("format must be HEX, TEXT, B64, BYTES, or ARRAYBUFFER");}return D}function k(D,E){return D>>>E|D<<32-E}function m(D,E,G){return D&E^~D&G}function n(D,E,G){return D&E^D&G^E&G}function p(D){return k(D,2)^k(D,13)^k(D,22)}function t(D){return k(D,6)^k(D,11)^k(D,25)}function r(D){return k(D,7)^k(D,18)^D>>>3}function v(D){return k(D,17)^k(D,19)^D>>>10}function y(D,E){var G=(D&65535)+(E&65535);return((D>>>16)+(E>>>16)+(G>>>16)&65535)<<16|G&65535}function A(D,E,G,F){var K=(D&
65535)+(E&65535)+(G&65535)+(F&65535);return((D>>>16)+(E>>>16)+(G>>>16)+(F>>>16)+(K>>>16)&65535)<<16|K&65535}function C(D,E,G,F,K){var I=(D&65535)+(E&65535)+(G&65535)+(F&65535)+(K&65535);return((D>>>16)+(E>>>16)+(G>>>16)+(F>>>16)+(K>>>16)+(I>>>16)&65535)<<16|I&65535}function B(D){var E,G;if(0===D.lastIndexOf("SHA-",0))switch(E=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428],G=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],
D){case "SHA-224":break;case "SHA-256":E=G;break;case "SHA-384":E=[new h,new h,new h,new h,new h,new h,new h,new h];break;case "SHA-512":E=[new h,new h,new h,new h,new h,new h,new h,new h];break;default:throw Error("Unknown SHA variant");}else throw Error("No SHA variants supported");return E}function H(D,E,G){var F,K,I,J=[];if("SHA-224"===G||"SHA-256"===G){var L=64;var Q=1;var N=Number;var W=y;var O=A;var V=C;var ca=r;var fa=v;var U=p;var aa=t;var ka=n;var ha=m;var R=Y}else throw Error("Unexpected error in SHA-2 implementation");
G=E[0];var P=E[1];var ba=E[2];var Z=E[3];var X=E[4];var ja=E[5];var sa=E[6];var va=E[7];for(I=0;I<L;I+=1)16>I?(K=I*Q,F=D.length<=K?0:D[K],K=D.length<=K+1?0:D[K+1],J[I]=new N(F,K)):J[I]=O(fa(J[I-2]),J[I-7],ca(J[I-15]),J[I-16]),F=V(va,aa(X),ha(X,ja,sa),R[I],J[I]),K=W(U(G),ka(G,P,ba)),va=sa,sa=ja,ja=X,X=W(Z,F),Z=ba,ba=P,P=G,G=W(F,K);E[0]=W(G,E[0]);E[1]=W(P,E[1]);E[2]=W(ba,E[2]);E[3]=W(Z,E[3]);E[4]=W(X,E[4]);E[5]=W(ja,E[5]);E[6]=W(sa,E[6]);E[7]=W(va,E[7]);return E}class M{static hash(D){var E=new l("SHA-256",
"TEXT");E.update(D);return E.getHash("HEX")}}e.$qa=M;var Y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,
2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]})(q||(q={}));
(function(e){class l{constructor(h){this.oDa=h;this.aM=new e.ub;this.uJa(this.oDa)}get(h){return this.has(h)?this.aM.getItem(h)[0]:null}has(h){return this.aM.Bb(h)}uJa(h){0===h.indexOf("?")&&(h=h.slice(1));h=h.split("&");for(let f=0;f<h.length;f++){const b=h[f],a=b.indexOf("=");-1<a?this.iia(this.decode(b.slice(0,a)),this.decode(b.slice(a+1))):b&&this.iia(this.decode(b),"")}}iia(h,f){this.aM.Bb(h)?this.aM.getItem(h).push(f):this.aM.Ta(h,[f])}decode(h){return h.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/ig,
function(f){return decodeURIComponent(f)})}}e.Vna=l})(q||(q={}));(function(e){class l{static M1(){return getComputedStyle(document.documentElement).getPropertyValue("--fm-version").trim().replace(/"/g,"")}static Dva(h){return l.M1()===h}}e.FX=l})(u||(u={}));var x;
(function(e){(function(l){class h{get KDa(){return this.AR}constructor(){this.distance=15;this.AR=!1;this.bC=null;this.ZE=!0;q.Ik.addEventListener("mousemove",f=>this.Jx(f));q.Ik.addEventListener("touchmove",f=>this.T4(f),!1);q.Ik.addEventListener("mouseup",f=>this.Cr(f));q.Ik.addEventListener("touchend",f=>this.RV(f));q.Ik.addEventListener("touchcancel",f=>this.RV(f))}static R(){h.instance||(h.instance=new h);return h.instance}static dispose(){h.instance=null}sFa(f,b){f.aa("fm-draggable");var a=
c=>{b.nU&&!c.target.matches(b.nU)||this.Sd==f||(null!=this.Sd&&this.h6(b,c),this.Sd=f,this.Po=b,this.Oja=this.m2(c),this.Pja=this.n2(c),this.I6=!1)};f.N("mousedown",a);f.N("touchstart",a)}m2(f){return f instanceof MouseEvent?f.clientX:f.changedTouches[0].clientX}n2(f){return f instanceof MouseEvent?f.clientY:f.changedTouches[0].clientY}Jx(f){1==f.which&&this.Sd&&(this.Yg&&this.Sd.Sc("fm-dragging")?(this.FW(f.clientX,f.clientY),this.Po.Z3&&this.Po.Z3(this.Sd,f),f.preventDefault(),window.getSelection().removeAllRanges()):
q.v(this.Po.Hx)||this.Po.Hx(this.Sd,f)?(this.AR=!0,this.Yg=this.Po.Mo(this.Sd),this.Yg.V("opacity",0),q.K.Sb.Jb.G.X(this.Yg),this.FW(f.clientX,f.clientY,!0),this.Sd.aa("fm-dragging")):(this.Sd=null,q.v(this.Yg)||(this.Yg.Qg(!0),this.Yg=null)))}Ffa(f,b){return Math.abs(this.Oja-f)>this.distance||Math.abs(this.Pja-b)>this.distance?!0:!1}FW(f,b,a=!1){if(null!=this.Yg){const d=q.K.Sb.Jb.G.sg();this.Yg.V("margin-left");this.Yg.V("margin-top");if(a&&null!=this.Sd){var c=this.Sd.sg();a=Math.max(0,Math.min(this.Sd.height,
b-c.top));c=Math.max(0,Math.min(this.Sd.width,this.Yg.width,f-c.left));this.Yg.V("margin-top",-a+"px");this.Yg.V("margin-left",-c+"px")}this.Yg.position({top:b-d.top,left:f-d.left});this.Ffa(f,b)&&(this.Yg.V("opacity",1),this.Sd.aa("fm-dragging-move"),!this.I6&&q.Pg(this.Po.DV)&&this.Po.DV(this.Sd),this.I6=!0)}}T4(f){if(this.Sd){var b=f.touches[0];if(this.Yg&&this.Sd.Sc("fm-dragging")){this.FW(b.clientX,b.clientY);this.Po.Z3&&this.Po.Z3(this.Sd,f);f.preventDefault();b=f.changedTouches[0];var a=e.Ga.Yb(document.elementFromPoint(b.clientX,
b.clientY));if(a){var c=a.closest(".fm-droppable");c&&!0===c.Hu.scroll&&this.cfa(c,b.clientY);c&&c.Hu&&c.Hu.dn&&(c.Hu.dn(this.Sd,this.Yg,c,f),this.bC=c)}(null==a||null==c)&&null!=this.bC&&this.bC.Hu&&this.bC.Hu.om&&this.bC.Hu.om(this.Sd,this.Yg,this.bC,f)}else q.v(this.Po.Hx)||this.Po.Hx(this.Sd,f)?(this.AR=!0,this.Yg=this.Po.Mo(this.Sd),this.Yg.V("opacity",0),q.K.Sb.Jb.G.X(this.Yg),this.FW(b.clientX,b.clientY,!0),this.Sd.aa("fm-dragging")):(this.Sd=null,this.Yg.Qg(!0),this.Yg=null)}}Cr(f){this.h6(this.Po,
f)}RV(f){for(var b=f.changedTouches[0],a=b=e.Ga.Yb(document.elementFromPoint(b.clientX,b.clientY));b;){if(b.Sc("fm-droppable")){q.ka(b.Hu.$z)||(a=a.closest(b.Hu.$z));b.Hu.en(this.Sd,b,a,f);break}b=b.parent}this.h6(this.Po,f)}h6(f,b){this.AR=!1;null!=this.Yg&&(this.Yg.Qg(!0),this.Yg=null);if(null!=this.Sd){this.Sd.Hd("fm-dragging");this.Sd.Hd("fm-dragging-move");if(this.I6&&this.Sd&&this.Sd.element){var a=this.Sd,c=d=>{q.v(a)||(a.rb("click",c),a=null,d.stopImmediatePropagation())};this.Sd.N("click",
c)}f.rv&&this.Ffa(this.m2(b),this.n2(b))&&f.rv(this.Sd,b);this.Sd=null}this.bC=null;this.Pja=this.Oja=NaN;this.ZE=!0;clearTimeout(this.Jia)}tFa(f,b,a){f.Sc("fm-droppable")||(f.aa("fm-droppable"),f.N("mouseenter",c=>{null!=this.Sd&&1==c.which&&a.b4&&a.b4(this.Sd,this.Yg,b,c)}),f.N("mouseleave",c=>{this.ZE=!0;null!=this.Sd&&1==c.which&&a.om&&a.om(this.Sd,this.Yg,b,c)}),f.N("mouseover",c=>{this.ZE=!0;null!=this.Sd&&1==c.which&&(!0===a.scroll&&this.cfa(f,c.clientY),a.dn&&a.dn(this.Sd,this.Yg,b,c))}),
f.N("mouseup",c=>{this.ZE=!0;if(null!=this.Sd&&1==c.which){var d=e.Ga.Yb(c.target);q.ka(a.$z)||(d=d.closest(a.$z));a.en(this.Sd,f,d,c)}}))}cfa(f,b){const a=f.element.getBoundingClientRect(),c=Math.max(0,a.bottom-b);b=Math.max(0,b-a.top);30>c?(this.ZE=!1,this.C5(f,Math.min(30/c,4))):30>b&&(this.ZE=!1,this.C5(f,Math.min(-30/b,4)))}C5(f,b){clearTimeout(this.Jia);q.v(f)||(f.Sx(f.element.scrollTop+b),0==this.ZE&&(this.Jia=setTimeout(()=>this.C5(f,b),20)))}}l.uP=h})(e.eM||(e.eM={}))})(x||(x={}));
(function(e){class l extends w.Mh{constructor(h="div",f=""){super();this.G=new e.Ga(h);this.G.aa("fm-ui "+f);u.Nd().im&&this.G.aa("fm-ui-mobile");this.validate()}validate(){this.N2={}}je(h="all"){this.N2[h]=!0;this.nb()}dv(...h){if(this.N2.all)return!0;for(var f=0;f<h.length;f++)if(this.N2[h[f]])return!0;return!1}nb(){this.validate()}Sr(){this.je()}show(){this.G.show()}$a(){this.G.$a()}U1(){return this.G.attr("id")}fja(h){this.G.attr("id",h)}nja(){this.fja("fm-"+Math.random().toString(36).substr(2,
9))}BD(){return this.name}af(h=0){this.G.af(h)}Wk(h){this.G.Wk(h)}get an(){return this.G.an}get t2(){return this.G.t2}html(h){if(void 0===h)return this.G.html();this.G.html(h);return this}ni(h){this.G.attr("title",h)}Bq(h){this.fva(!h);this.G.ab("fm-ui-disabled",!h)}KM(){return!this.G.Sc("fm-ui-disabled")}aa(h=""){this.G.aa(h)}Hd(h){this.G.Hd(h)}ab(h,f){this.G.ab(h,f)}Sc(h){return this.G.Sc(h)}get padding(){return this.G.padding}set padding(h){}cg(h){return this.G.cg(h)}Yk(h){this.cg()!==h&&(this.G.Yk(h),
this.je("size"))}zd(h=!1){return this.G.zd(h)}Mr(h){this.zd()!==h&&(this.G.Mr(h),this.je("size"))}isVisible(h){void 0!==h&&(h?this.show():this.$a());return this.G.visible}position(){return this.G.position()}X(h,f=!1){f?this.G.prepend(h.G):this.G.append(h.G)}Qg(h=!1){h?this.G.remove():this.G.detach()}m2(){return this.G.left}n2(){return this.G.top}N(h,f){this.G.N(h,f)}rb(h,f){this.G.rb(h,f)}Ha(h){this.G.Ha(h)}Ya(h,f,b){this.G.Ya(h,f,b)}wC(h=!1){h=h?this.cg(!0):q.K.Sb.Wx;this.G.ab("fm-layout-tablet",
768>h);this.G.ab("fm-layout-mobile",580>h);this.G.ab("fm-layout-mobile-small",460>h)}focus(h=null){this.G.focus(h)}blur(){this.G.blur()}Gg(h,f){return this.G.Gg(h,f)}zc(h){return this.G.Gg("label",h)}Eo(){this.G.Gg("hidden","true")}fva(h){this.G.Gg("disabled",void 0===h?void 0:`${h}`)}Dba(h){this.G.Gg("selected",void 0===h?void 0:`${h}`)}eva(h){this.G.Gg("checked",void 0===h?void 0:`${h}`)}Cba(h){this.G.Gg("expanded",void 0===h?void 0:`${h}`)}gva(h){this.G.Gg("haspopup ",void 0===h?void 0:`${h}`)}}
e.Pa=l})(x||(x={}));
(function(e){class l extends w.Mh{constructor(h="div",f="",b=!0){super();this.display="block";this.frames=[];this.Vq={};this.element="string"==typeof h?document.createElement(h):h;b&&this.aa("fm-ui-element");this.aa(f)}set element(h){(this.eG=h)&&(this.eG.uielement=this)}get element(){return this.eG}get id(){return this.element.id}set id(h){this.element.id=h}get parent(){return l.Yb(this.element.parentElement)}get nodeName(){return this.eG.nodeName.toLowerCase()}X(h){this.element.appendChild(h.element)}children(){for(var h=this.element.firstElementChild,
f=[];h;)f.push(l.Yb(h)),h=h.nextElementSibling;return f}contains(h){return this.element.contains(h.element)}KS(h){let f=this.o0(h.target);!f&&h.path&&(f=this.o0(h.path[0]));!f&&h.composedPath&&(h=h.composedPath())&&(f=this.o0(h[0]));return f}o0(h){if(null==h)return!1;for(;h!=this.element&&(h=h.parentElement,null!=h););return null!=h}append(h){h&&this.X(h);return this}prepend(h){this.element.insertBefore(h.element,this.element.firstChild);return this}before(h){this.element.parentNode&&this.element.parentNode.insertBefore(h.element,
this.element);return this}after(h){this.element.parentNode&&(this.element.nextElementSibling?this.element.parentNode.insertBefore(h.element,this.element.nextElementSibling):this.element.parentNode.appendChild(h.element));return this}uC(h){this.element.appendChild(h.G.element)}Qg(h=!0){h?this.remove():this.detach()}remove(){null!=this.element&&(this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.dispose())}detach(){if(null!=this.element&&this.element.parentNode){var h=this.element.cloneNode(!0);
this.element.parentNode.removeChild(this.element);this.element=h}}Kx(){for(;this.element&&this.element.firstChild;){var h=l.Yb(this.element.firstChild);h&&h.dispose&&h.dispose();this.element.removeChild(this.element.firstChild)}}clone(){return l.Yb(this.element.cloneNode(!0))}static Yb(h){return h&&h.nodeType==Node.ELEMENT_NODE?q.v(h.uielement)?new l(h,"",!1):h.uielement:null}get(h){var f=this.children();return 0<f.length?f[h]:null}find(h,f){if(void 0===f||0==f)return l.Yb(this.element.querySelector(h));
h=this.element.querySelectorAll(h);f=[];for(var b=0;b<h.length;b++)f.push(l.Yb(h[b]));return f}closest(h){if(!this.element)return null;for(var f=this.element;null!=f;){if(f.matches){if(f.matches(h))return f==this.element?this:l.Yb(f)}else if(f.msMatchesSelector&&f.msMatchesSelector(h))return f==this.element?this:l.Yb(f);f=f.parentElement}return null}aa(h){if(!this.element)return this;h=h.trim();for(var f=h.split(" "),b=0;b<f.length;b++)0<f[b].length&&(u.bT().fj?(h=this.element.getAttribute("class"),
q.v(h)?this.element.setAttribute("class",f[b]):-1==h.split(" ").indexOf(f[b])&&this.element.setAttribute("class",h+" "+f[b])):0==this.element.classList.contains(f[b])&&this.element.classList.add(f[b]));return this}Hd(h){if(this.element&&(h=h.trim(),0<h.length))if(u.bT().fj){var f=this.element.getAttribute("class");q.v(f)||(f=f.split(" "),h=f.indexOf(h),-1<h&&(f.splice(h,1),this.element.setAttribute("class",f.join(" "))))}else this.element.classList.contains(h)&&this.element.classList.remove(h)}ab(h,
f){f?this.aa(h):this.Hd(h)}Sc(h){return this.element.classList.contains(h)}cm(){this.aa("fm-noselect")}iza(){this.aa("fm-selectable")}cg(h=!1){if(!this.element)return 0;var f=this.iz;return this.element.clientWidth-(h?0:(parseFloat(f.paddingLeft)||0)+(parseFloat(f.paddingRight)||0))}Yk(h){"number"===typeof h?this.element.style.width=h+"px":"string"===typeof h&&(this.element.style.width=h);return this}get width(){return this.cg()}set width(h){this.Yk(h)}get padding(){var h=this.iz;return{left:parseFloat(h.paddingLeft)||
0,right:parseFloat(h.paddingRight)||0,top:parseFloat(h.paddingTop)||0,bottom:parseFloat(h.paddingBottom)||0}}set padding(h){}get borderWidth(){var h=this.iz;return{left:parseFloat(h.borderLeftWidth||h.borderWidth)||0,right:parseFloat(h.borderRightWidth||h.borderWidth)||0,top:parseFloat(h.borderTopWidth||h.borderWidth)||0,bottom:parseFloat(h.borderBottomWidth||h.borderWidth)||0}}zd(h=!1){if(!this.element)return 0;var f=this.iz;h=h?0:(parseFloat(f.paddingTop)||0)+(parseFloat(f.paddingBottom)||0);return 0>
this.element.clientHeight-h?0:this.element.clientHeight-h}Mr(h){"number"===typeof h?this.element.style.height=h+"px":"string"===typeof h&&(this.element.style.height=h)}get height(){return this.zd()}set height(h){this.Mr(h)}get left(){return this.element.getBoundingClientRect().left}set left(h){this.element.style.left=h+"px"}get top(){return this.element.getBoundingClientRect().top}set top(h){this.element.style.top=h+"px"}get right(){return this.element.getBoundingClientRect().right}set right(h){this.element.style.right=
h+"px"}get bottom(){return this.element.getBoundingClientRect().bottom}set bottom(h){this.element.style.bottom=h+"px"}html(h){if(void 0===h)return this.element.innerHTML;this.element.innerHTML=q.vt(h);return this}empty(){this.html("")}clear(){this.empty()}text(h){if(void 0===h)return this.element.textContent;"input"==this.element.tagName.toLowerCase()?this.element.value=h:this.element.textContent=h;return this}focus(h=null){this.element.focus(h);return this}blur(){this.element.blur();return this}show(){this.element.style.display=
this.display}$a(){this.element.style.display="none"}get x(){return this.element.offsetLeft}get y(){return this.element.offsetTop}offset(h){if(void 0===h)return this.sg();this.V("left",h.left+"px");this.V("top",h.top+"px")}getBoundingClientRect(){return this.element.getBoundingClientRect()}position(h){if(void 0===h)return{top:this.y,left:this.x};this.offset(h)}attr(h,f){if(void 0===f)return this.element.getAttribute(h);try{this.element.setAttribute(h,f)}catch(b){this.element&&this.element.attributes&&
(this.element.attributes[h]=f)}return this}o5(h){this.element.removeAttribute(h)}V(h,f){if(void 0===f)return this.iz[l.aka(h)];this.element.style[l.aka(h)]=f;return this}Gg(h,f){if(void 0===f)return this.attr(`aria-${h}`);this.attr(`aria-${h}`,f)}static aka(h){var f=h.split("-");if(1<f.length){for(h=1;h<f.length;h++)f[h]=f[h].charAt(0).toUpperCase()+f[h].substr(1);return f.join("")}return h}LA(h){if("input"==this.element.tagName.toLowerCase()||"textarea"==this.element.tagName.toLowerCase()){if(void 0===
h)return this.element.value;this.element.value=h}return this.element.textContent}get iz(){q.v(this.hZ)&&(this.hZ=window.getComputedStyle(this.element));return this.hZ}set iz(h){this.hZ=h}requestAnimationFrame(h){var f=0;this.iz=null;window.requestAnimationFrame?f=window.requestAnimationFrame(h):window.msRequestAnimationFrame?f=window.msRequestAnimationFrame(h):window.mozRequestAnimationFrame?f=window.mozRequestAnimationFrame(h):window.webkitRequestAnimationFrame?f=window.webkitRequestAnimationFrame(h):
h.call(null);this.frames.push(f);return f}cancelAnimationFrame(h){this.iz=null;this.frames.splice(this.frames.indexOf(h),1);0!=h&&(null!=window.cancelAnimationFrame?window.cancelAnimationFrame(h):null!=window.msCancelRequestAnimationFrame?window.msCancelRequestAnimationFrame(h):null!=window.mozCancelAnimationFrame?window.mozCancelAnimationFrame(h):null!=window.webkitCancelAnimationFrame&&window.webkitCancelAnimationFrame(h))}set visible(h){h?this.show():this.$a()}get visible(){return this.element&&
"none"!=this.V("display")}sg(h=null){if(null==h)return h=this.element.getBoundingClientRect(),{top:h.top,left:h.left};for(var f=0,b=0,a=this.element;a&&a!=h&&!isNaN(a.offsetLeft)&&!isNaN(a.offsetTop);)f+=a.offsetLeft-a.scrollLeft,b+=a.offsetTop-a.scrollTop,a=a.offsetParent;return{top:b,left:f}}Sx(h){this.element.scrollTop=h}LLa(){this.element.scrollLeft=0}N(h,f,b){"undefined"!==typeof this.element["on"+h]||w.ia.Zfa(h)?(q.v(this.Vq[h])&&(this.Vq[h]=[]),this.Vq[h][f.toString()]=a=>{f(a)},this.element.addEventListener(h,
this.Vq[h][f.toString()],b)):super.N(h,f,b)}rb(h,f){"undefined"!==typeof this.element["on"+h]||w.ia.Zfa(h)?this.Vq[h]&&this.element.removeEventListener(h,this.Vq[h][f.toString()],void 0):super.rb(h,f)}Ha(h){super.Ha(h)}Vd(h){for(var f in this.Vq)if(void 0===h||h==f)for(var b in this.Vq[f])if(this.Vq[f].hasOwnProperty(b))try{this.element.removeEventListener(f,this.Vq[f][b],!0),this.element.removeEventListener(f,this.Vq[f][b],!1)}catch(a){console.error(a)}this.Vq={};super.Vd(f)}dispose(){this.Vd();
this.Kx();this.eG&&(this.eG=this.eG.uielement=null);for(var h=0;h<this.frames.length;h++)this.cancelAnimationFrame(this.frames[h]);this.frames.length=0;this.Laa&&this.Laa.dispose()}refresh(){this.html(this.html())}draggable(h){e.eM.uP.R().sFa(this,h)}Ls(h,f){this.Psa=h;e.eM.uP.R().tFa(this,f?f:this,h)}get Hu(){return this.Psa}index(){for(var h=0,f=this.element;f=f.previousElementSibling;)h++;return h}ij(h){this.Laa=new e.ij.Tqa(this,h)}af(h=0){this.attr("tabindex",h)}Wk(h){this.attr("role",h)}get an(){return document.activeElement==
this.element}get t2(){let h=document.activeElement;for(;null!=h;){if(h==this.element)return!0;h=h.parentElement}return!1}}e.Ga=l})(x||(x={}));
(function(e){class l extends e.Pa{constructor(h="",f="a"){super(f,"fm-ui-btn");this.O3=0;this.xKa=50;this.aa(h);this.G.N("click",b=>this.Pk(b));this.G.N("mousedown",()=>this.Ix());this.G.N("mouseup",()=>this.Cr());this.G.N("mouseout",()=>this.ZHa());this.G.N("keydown",b=>this.tq(b));this.G.display="inline-block";this.Wk("button");this.af(0)}Pk(h){this.KM()&&this.Ya(l.uf,this,h);h instanceof MouseEvent&&h.stopImmediatePropagation()}tq(h){if(13==h.keyCode||32==h.keyCode)this.Pk(h),h.preventDefault()}Ix(){this.G.ab("fm-ui-pressed",
!0);this.O3=q.Uda(()=>this.vya(),this.xKa)}vya(){this.Ha(new w.ia(l.Qpa,this))}Cr(){this.G.ab("fm-ui-pressed",!1);q.t1(this.O3)}ZHa(){this.G.ab("fm-ui-pressed",!1);q.t1(this.O3)}I(){return this.label}fb(h){this.label!=h&&(this.label=h,this.G.text(this.label))}}l.Qpa="buttonmousedown";l.uf="buttonclick";e.Qd=l})(x||(x={}));(function(e){class l extends e.Qd{constructor(h=""){super(h,"button");this.G.attr("type","button")}}e.Vg=l})(x||(x={}));
(function(e){class l extends e.Pa{constructor(h=""){super("span","fm-ui fm-ui-label");this.G.display="inline-block";this.fb(h)}I(){return this.label}fb(h,f=!1){this.label!=h&&(this.label=h,f?this.G.html(this.label):this.G.text(this.label))}LW(h){h?this.G.iza():this.G.cm()}}e.Tc=l})(x||(x={}));
(function(e){class l extends e.Pa{constructor(){super("textarea","fm-ui-text-area");this.G.N("keypress",h=>this.u4(h));this.G.N("keyup",h=>this.v4(h));this.G.N("paste",()=>this.r4());this.G.N("blur",()=>this.PCa())}v4(){this.cM()}r4(){this.cM()}PCa(){this.Ya(l.PX)}cM(){this.Ha(new w.ia(e.Sj.oy,this))}bj(){return this.G.LA()}ik(h){this.bj()!=h&&(this.G.element.value=h,this.cM())}clear(){this.ik("")}Tz(h){var f=this.G.element.selectionStart,b=this.G.element.selectionEnd,a=this.bj();this.ik(a.substr(0,
f)+h+a.substr(f));this.Jf(f+h.length,b+h.length)}Jf(h,f=-1){this.G.element.focus();this.G.element.setSelectionRange(h,0>f?h:f)}selectAll(){this.Jf(0,this.bj().length)}u4(h){h.ctrlKey?(this.Ya(l.OX),h.preventDefault()):13==h.keyCode&&(this.Ya(l.fB),h.preventDefault())}}l.PX="focus_off";l.fB="ntr";l.OX="ntl";e.Zv=l})(x||(x={}));
(function(e){class l extends e.Pa{constructor(){super("input","fm-ui-text-input");this.prompt=this.text="";this.R_=0;this.S_=!0;this.G.display="inline-block";this.G.attr("type","text");this.G.attr("autocomplete","off");this.G.attr("data-placeholder","");this.G.N("change",()=>this.RIa());this.G.N("focusin",()=>this.h4());this.G.N("focusout",()=>this.fHa());this.G.N("input",()=>this.SIa());this.G.N("keypress",h=>this.u4(h));this.G.N("paste",()=>this.r4())}static YAa(h){return null==h.which?32>h.keyCode?
null:String.fromCharCode(h.keyCode):0!=h.which&&0!=h.charCode?32>h.which?null:String.fromCharCode(h.which):null}u4(h){13==h.keyCode&&this.Ya(l.fB);if(!(q.v(this.xia)||h.ctrlKey||h.altKey||h.metaKey)){var f=l.YAa(h);null!=f&&!1===this.xia.test(f)&&h.preventDefault()}}s2(){this.G.LA()!==this.text&&(this.text=this.G.LA(),this.cM())}RIa(){this.s2()}SIa(){this.s2()}r4(){this.s2()}cM(){0<this.R_?this.S_&&(this.S_=!1,q.ve(()=>this.nZ(),this.R_)):this.nZ()}nZ(){this.S_=!0;this.Ha(new w.ia(l.oy,this,this.text))}h4(){0==
this.text.length&&(this.G.text(""),this.Iu(!1))}fHa(){this.Iu(0==this.text.length)}bj(){return this.text=this.G.LA()==this.prompt?this.text:this.G.LA()}ik(h){this.text!=h&&(this.text=h,this.G.text(this.text),this.Iu(0==this.text.length))}clear(h=!0){this.ik("");h&&this.nZ();this.Ya(l.W7)}PE(h){h!=this.prompt&&(this.prompt=h,this.G.attr("data-placeholder",this.prompt),this.Iu(0==this.text.length))}Iu(h){this.G.text(h?this.prompt:this.text);this.G.ab("fm-ui-prompt",h)}QE(h){this.xia=h}yW(h){this.R_=
h}PLa(){this.G.attr("type","number")}}l.oy="_";l.fB="ntr";l.W7="clr";e.Sj=l})(x||(x={}));(function(e){class l extends e.Sj{constructor(){super();this.QE(l.Lqa);this.PLa()}La(){return parseFloat(this.bj())}oi(h){this.ik(h.toString())}}l.Lqa=/^\d+$/;l.TF=/[-\.\d]/;e.Uq=l})(x||(x={}));
(function(e){(function(h){h[h.gQa=1]="SELECTED";h[h.yQa=0]="UNSELECTED";h[h.jQa=-1]="SEMI_SELECTED"})(e.Tra||(e.Tra={}));class l extends e.Qd{constructor(){super();this.G.display="inline-block";this.G.Sc("fm-ui-btn")&&this.G.Hd("fm-ui-btn");this.G.aa("fm-ui-toggle-btn");this.selected=0}Pk(h){this.KM()&&(this.toggle(),this.Ya(w.ia.Xd,this,h));h instanceof MouseEvent&&h.stopImmediatePropagation()}toggle(){this.Jf(1==this.selected?0:1)}Jf(h){!0===h&&(h=1);!1===h&&(h=0);this.selected==h||1<h||-1>h||(this.selected=
h,this.G.ab("fm-selected",1==this.selected),1==this.selected?this.Gg("checked","true"):-1==this.selected?this.Gg("checked","mixed"):this.Gg("checked","false"))}getSelection(){return this.selected}}e.VY=l})(x||(x={}));
(function(e){class l extends e.Vg{constructor(){super();this.Wk("switch");this.G.display="inline-block";this.G.Sc("fm-ui-btn")&&this.G.Hd("fm-ui-btn");this.G.aa("fm-ui-toggle-btn");this.Jf(0)}Pk(h){this.KM()&&(this.toggle(),this.Ya(w.ia.Xd,this,h))}toggle(){this.Jf(1==this.selected?0:1)}Jf(h){!0===h&&(h=1);!1===h&&(h=0);this.selected==h||1<h||-1>h||(this.selected=h,this.G.ab("fm-selected",1==this.selected),this.eva(1==this.selected))}getSelection(){return this.selected}}e.NQ=l})(x||(x={}));
(function(e){class l extends e.VY{constructor(){super();this.G.display="inline-block";this.G.Sc("fm-ui-toggle-btn")&&this.G.Hd("fm-ui-toggle-btn");this.G.aa("fm-ui-checkbox");this.dI=new e.Tc("Label");this.G.append(this.dI.G);this.Wk("checkbox")}toggle(){super.toggle();this.G.ab("fm-ui-semi-selected",-1==this.getSelection())}fb(h,f=!1){null!=this.dI&&this.dI.fb(h,f)}I(){return null!=this.dI?this.dI.I():""}Jf(h){!0===h&&(h=1);!1===h&&(h=0);this.getSelection()==h||1<h||-1>h||(super.Jf(h),this.G.ab("fm-ui-semi-selected",
-1==this.getSelection()))}get checked(){return 1==this.getSelection()}set checked(h){this.Jf(h?1:0)}ni(h){this.dI.ni(h)}}e.pK=l})(x||(x={}));
(function(e){class l extends e.Pa{constructor(){super("div","fm-ui-divider");this.cha=h=>this.Jx(h);this.NFa=h=>this.Ix(h);this.OFa=h=>this.Cr(h);this.direction=l.PJ;this.N("mousedown",this.NFa);q.Ik.addEventListener("mouseup",this.OFa);this.G.cm()}Ix(h){this.au=this.direction==l.PJ?this.zd():this.cg();this.LB=this.G.parent.sg();q.Ik.addEventListener("mousemove",this.cha);h.preventDefault();h.stopImmediatePropagation()}Jx(h){if(this.direction==l.PJ){var f=h.clientY-this.LB.top;if(this.cG&&(f<this.cG[1]||
f>this.cG[3]))return;this.G.V("top",f-this.au/2+"px");this.Ya(l.QX,this,{top:f})}this.direction==l.XY&&(h=h.clientX-this.LB.left,this.cG&&(h<this.cG[0]||h>this.cG[2])||(this.G.V("left",h-this.au/2+"px"),this.Ya(l.QX,this,{left:h})))}Cr(){q.Ik.removeEventListener("mousemove",this.cha)}get direction(){return this.mZ}set direction(h){this.mZ=h;this.G.ab("fm-ui-horizontal",this.mZ==l.PJ);this.G.ab("fm-ui-vertical",this.mZ==l.XY);this.G.V("position","absolute")}set gxa(h){this.cG=h}}l.PJ=0;l.XY=1;l.QX=
"divider_moved_event";e.MQ=l})(x||(x={}));(function(e){class l extends e.Pa{constructor(){super("div","fm-ui-modal-overlay")}KLa(h){this.G.ab("fm-ui-transparent",!1);this.G.ab("fm-ui-opaque",h)}}e.Sra=l})(x||(x={}));
(function(e){(function(l){class h extends e.Pa{constructor(f="fm-ui-container"){super("div",f)}removeChild(f){this.contains(f)&&f.G.detach()}contains(f){return q.v(f)?!1:this.G.contains(f.G)}cg(){return this.G.width}zd(){return this.G.height}Kx(){for(var f=this.G.children(),b=f.length-1;0<=b;b--)f[b].Qg()}}l.sk=h})(e.ce||(e.ce={}))})(x||(x={}));(function(e){(function(l){class h extends l.sk{constructor(){super("fm-ui-border-container")}}l.l$=h})(e.ce||(e.ce={}))})(x||(x={}));
(function(e){(function(l){class h extends l.sk{constructor(){super();this.G.aa("fm-ui-window");this.$a()}setPosition(f,b){this.G.offset({left:Math.floor(f),top:Math.floor(b)});this.G.V("position","absolute")}}l.Vra=h})(e.ce||(e.ce={}))})(x||(x={}));(function(e){(function(l){class h extends l.sk{constructor(){super("fm-ui-hgroup")}}l.tQa=h})(e.ce||(e.ce={}))})(x||(x={}));(function(e){(function(l){class h extends l.sk{constructor(){super("fm-ui-vgroup")}}l.xQa=h})(e.ce||(e.ce={}))})(x||(x={}));
(function(e){(function(l){class h extends l.sk{constructor(){super("fm-ui-panel")}}l.uQa=h})(e.ce||(e.ce={}))})(x||(x={}));
(function(e){(function(l){class h extends l.Vra{constructor(f){super();this.jw=!1;this.Baa=()=>this.F4();this.via=b=>this.U4(b);this.AG=this.g3=!1;this.QZ=f;this.G.aa("fm-ui-popup");this.Wk("dialog");this.$a();this.br=new e.Sra;this.br.Eo();this.br.N("click",this.Baa);this.br.$a();this.QZ&&this.QZ.X(this.br.G);this.Cta=new e.EG.F8;this.zsa=new e.EG.F8}get hv(){return this.jw}U4(f){f.target===window&&(this.G.requestAnimationFrame(()=>this.Pp()),this.wC())}F4(){this.close()}open(){q.vM.addEventListener("resize",
this.via);this.br.G.ab("fm-ui-opaque",this.g3);this.show();this.Pp();this.Ya(w.ia.OPENED);this.wC();this.jw=!0;this.lw=document.activeElement;this.G.prepend(this.Cta);this.G.append(this.zsa)}show(){super.show();this.br&&this.br.show()}$a(){super.$a();this.br&&this.br.$a()}get WI(){return this.AG}set WI(f){this.AG=f;this.G.V("opacity",f?0:null);this.br&&this.br.G.V("opacity",f?0:null)}close(){q.vM.removeEventListener("resize",this.via);this.$a();this.Ya(w.ia.CLOSED);this.jw=!1;this.lw&&(this.lw.focus({preventScroll:!0}),
this.lw=null)}Pp(){var f=this.QZ,b=q.K.Sb.Jb.G.borderWidth,a=b?Math.round(b.left):0;b=b?Math.round(b.top):0;if(f){var c=Math.max(a,(f.cg(!0)-this.G.cg(!0))/2);f=Math.max(b,(f.zd(!0)-this.G.zd(!0))/2);this.setPosition(c==a?-1*c:c,f==b?-1*f:f)}}get tE(){return this.br}}l.Fy=h})(e.ce||(e.ce={}))})(x||(x={}));(function(e){(function(l){class h extends l.sk{constructor(){super("fm-ui-toolbar")}}l.vQa=h})(e.ce||(e.ce={}))})(x||(x={}));
(function(e){(function(l){class h extends l.sk{constructor(){super("fm-ui-toolbar-mobile");this.D2=new e.Tc;this.D2.aa("fm-ui-header-display");this.X(this.D2)}DLa(f){this.cj!=f&&(this.cj=f,this.D2.fb(f))}}l.wQa=h})(e.ce||(e.ce={}))})(x||(x={}));
(function(e){(function(l){class h{constructor(){this.items=[];this.pL=[]}HW(f){this.pL=f}X1(f,b){if(0>f||b>this.pL.length+1)return[];for(this.items.length=0;f<b;f++)this.items.push(this.pL[f]);return this.items}getItem(f){return this.pL[f]}IH(){return this.pL.length}}l.pQa=h})(e.cya||(e.cya={}))})(x||(x={}));
(function(e){(function(l){class h extends e.Pa{constructor(){super("ul","fm-ui-list");this.qW=NaN;this.H0=u.Nd().im?h.uma:h.tma;this.HI=[];this.ME=[];this.yi=0;this.yl=!1;this.useCache=!0;this.ZF=!1;this.J=[];this.qga=[];this.Bh=[];this.pf="label";this.kv=this.lya;this.YR=this.G;this.Wk("list");this.Hl=null;this.selectedIndex=-1;this.K5()}K5(){this.G.N("click",b=>this.KV(b));this.G.N("mousedown",b=>this.LV(b));this.G.N("keydown",b=>this.nE(b))}$d(){isNaN(this.qW)&&0<this.Bh.length&&(this.qW=this.Bh[0].zd(!0)+
parseInt(this.Bh[0].G.V("border-top-width"))+parseInt(this.Bh[0].G.V("border-bottom-width")));return isNaN(this.qW)?this.H0:this.qW}yLa(){this.H0=37}ix(){return 0}Kz(){return this.J.length}nb(){this.dv("data")&&this.Nya();this.validate()}Nya(){this.nKa();for(var b,a=this.Bc(),c=0;c<a.length;c++)b=this.getItem(a[c],c),c==this.yi&&(this.YR.Gg("activedescendant",b.U1()),b.G.aa("fm-ui-active")),this.Ta(b);this.ab("fm-ui-empty",0==a.length);this.Uza&&this.G.prepend(this.Uza);this.Tza&&this.G.append(this.Tza);
this.G.requestAnimationFrame(()=>{0<this.Bh.length&&(this.H0=this.Bh[0].zd())})}getItem(b,a){if(this.useCache&&0<this.qga.length){var c=this.qga.pop();c.setData(b);c.hn(a)}else c=this.kv(b,a),this.pf&&c.xg(this.pf),this.wx&&c.IW(this.wx),this.Np&&c.mO(this.Np);c.nja();return c}Ta(b){this.Bh.push(b);this.X(b)}nKa(){for(;0<this.Bh.length;)this.Iaa(this.Bh.pop())}removeItem(b){for(var a=0;a<this.Bh.length;a++)if(this.Bh[a]===b){this.Bh.splice(a,1);break}this.Iaa(b)}Iaa(b){null!=this.G.find(b.G.element.nodeName)&&
b.G.remove()}nE(b){if(32==b.keyCode||13==b.keyCode)this.MV(this.yi,b),b.preventDefault();40==b.keyCode&&(this.Ni(this.yi+1),b.preventDefault());38==b.keyCode&&(this.Ni(this.yi-1),b.preventDefault())}Ni(b){this.yi=Math.max(0,Math.min(this.Bh.length-1,b));for(var a of this.Bh)a.Hd("fm-ui-active");this.YR.Gg("activedescendant","");if(b=this.Bh[this.yi]){this.YR.Gg("activedescendant",b.U1());b.aa("fm-ui-active");a=this.G.parent.getBoundingClientRect();const c=b.G.getBoundingClientRect().top+this.G.parent.element.scrollTop,
d=c+b.zd();c<a.top?b.G.element.scrollIntoView(!0):d>a.bottom&&b.G.element.scrollIntoView(!1)}}mD(b){if(b=e.Ga.Yb(b).closest("li")){const a=parseInt(b.attr("data-index"));return isNaN(a)?null:{element:b,index:a,data:this.Bc()[a]}}return null}Su(){const b=this.ix()+this.yi;return 0<=b?q.v(this.Bc()[b])||q.v(this.Bh[b])?null:{index:b,data:this.Bc()[b],element:this.Bh[b].G}:null}LV(b){(b=this.mD(b.target))&&this.Ni(b.index)}KV(b){const a=this.mD(b.target);a&&this.MV(a.index,b)}MV(b,a){if(!(0>b)){var c=
this.ix()+b,d=this.Hl,g=this.selectedIndex;this.Xk(b);var k=new f;k.data={Hl:this.Hl,selectedIndex:this.selectedIndex,pLa:this.Bh[b].G,vq:a,fKa:c,XJa:d,WJa:g};this.Ha(k)}}Bc(){return this.J}gg(b,a=!0){this.J=b;this.yi=0;a&&this.je("data")}IW(b){this.wx!=b&&(this.wx=b,this.je("data"))}ur(){return this.pf}xg(b){this.pf!=b&&(this.pf=b,this.je("data"))}uH(){return this.Np}mO(b){this.Np!=b&&(this.Np=b,this.je("data"))}mi(b){this.kv=b;this.je("data")}xt(b){-1<b&&b<this.Bh.length&&this.Bh[b].Sr()}Rr(b){for(var a,
c=0;c<this.Bh.length;c++)if(a=this.Bh[c].getData(),q.Pg(b)){if(b(a)){this.Bh[c].Sr();break}}else if(a===b){this.Bh[c].Sr();break}}PH(){return this.selectedIndex}Xk(b){var a=this.Bc();-1<b&&b<a.length?this.iX(a[b],b):this.iX(null,-1)}Vh(){return this.Hl}qt(b){var a=this.Bc();if(q.Pg(b))for(var c=0;c<a.length;c++){if(!q.v(a[c])&&b(a[c])){this.iX(a[c],c);break}}else a=a.indexOf(b),-1<a&&this.iX(b,a)}iX(b,a){if(this.Do){var c=-1<this.ME.indexOf(a);!(c=!c)&&2>this.ME.length||(c?(this.ME.push(a),this.HI.push(b)):
(this.ME.splice(this.ME.indexOf(a),1),this.HI.splice(this.HI.indexOf(b),1)),this.yl&&(b.isSelected=c,this.xt(a)))}else this.yl&&null!=this.Hl&&(this.Hl.isSelected=!1,this.xt(this.selectedIndex)),this.Hl=b,this.selectedIndex=a,this.yl&&null!=this.Hl&&(this.Hl.isSelected=!0,this.xt(this.selectedIndex))}lya(b,a){var c=new e.Li.GB;c.setData(b);c.hn(a);return c}PM(){return this.$d()*this.Bc().length}set Do(b){this.ZF=b}get Do(){return this.ZF}qO(b){this.ME=b;this.HI.length=0;b=this.Bc();for(var a=0;a<
b.length;a++)-1<this.ME.indexOf(a)?(this.HI.push(b[a]),this.yl&&(b[a].isSelected=!0,this.xt(a))):this.yl&&(b[a].isSelected=!1,this.xt(a))}XM(){return this.HI}Ls(b){this.G.Ls(b,this)}jO(b){var a=this.$d();b*=a;a=b+a;const c=this.G.element.scrollTop,d=this.G.zd();c>b?this.G.Sx(b):c+d<a&&this.G.Sx(a-d)}}h.tma=21;h.uma=31;l.vj=h;class f extends w.ia{constructor(){super(w.ia.Xd)}}l.Rra=f})(e.Bd||(e.Bd={}))})(x||(x={}));
(function(e){(function(l){class h extends e.Pa{constructor(){super("div","fm-ui-dropdown");this.prompt="Choose item";this.ZF=this.KZ=this.jw=!1;this.G.display="inline-block";this.em=new l.Qra;this.em.N("click",()=>this.hv?this.close():this.open());this.em.N("keydown",b=>this.eGa(b));this.em.N("blur",()=>this.close());this.hM=new e.Pa("div","fm-ui-dropdown-list");this.hM.$a();this.jf=new f(this,this.em);this.jf.nja();this.jf.yl=!0;this.jf.mi(this.kv);this.jf.N(w.ia.Xd,b=>this.sv(b));this.hM.X(this.jf);
this.em.Gg("controls",this.jf.U1());this.X(this.em);this.X(this.hM)}get hv(){return this.jw}kv(b,a){var c=new e.Li.RY;c.setData(b);c.hn(a);return c}sv(b){this.Iu(null==b.data.Hl);this.Ya(w.ia.Xd,this,b.data);this.em.focus({preventScroll:!0});this.Do||this.close()}eGa(b){27==b.keyCode&&(this.close(),b.stopImmediatePropagation())}Iu(b){var a=this.jf.Vh();const c=b||this.Do||null==a?this.prompt:a[this.ur()];a=b||this.Do||null==a||q.ka(this.jf.uH())||q.v(a[this.uH()])?"":a[this.uH()];this.em.fb(c);q.ka(a)||
(this.em.xN.zc(a),this.em.xN.ni(a));this.G.ab("fm-ui-prompt",b)}PE(b){this.prompt!==b&&(this.prompt=b,this.Iu(!0))}open(){!this.jw&&this.KM()&&(this.jw=!0,this.hM.show(),this.em.Jf(1))}close(){0!=this.jw&&this.KM()&&(this.jw=!1,this.hM.$a(),this.em.Jf(0))}Bc(){return this.jf.Bc()}gg(b){const a=this.Su();this.jf.gg(b);this.KZ&&a&&this.Ni(a.index)}ur(){return this.jf.ur()}xg(b){this.jf.xg(b)}uH(){return this.jf.uH()}mO(b){this.jf.mO(b)}mi(b){this.jf.mi(b)}Sr(){this.jf.Sr()}xt(b){this.jf.xt(b)}PH(){return this.jf.PH()}Xk(b){this.jf.Xk(b);
this.Iu(null==this.jf.Vh())}qO(b){this.jf.qO(b);this.Iu(!0)}Vh(){return this.jf.Vh()}qt(b){this.jf.qt(b);this.Iu(null==this.jf.Vh())}XM(){return this.jf.XM()}show(){super.show()}$d(){return this.jf.$d()}Kz(){return this.jf.Kz()}Rr(){}PM(){return 0}set Do(b){this.ZF=b;this.jf.Do=b;this.ZF?this.jf.G.aa("fm-ui-dropdown-multiple-selection-list"):this.jf.G.Hd("fm-ui-dropdown-multiple-selection-list")}get Do(){return this.ZF}set yl(b){this.jf.yl=b}get rga(){return this.KZ}set rga(b){this.KZ=b}Su(){return this.jf.Su()}Ni(b){this.jf.Ni(b)}zc(b){return this.em.zc(b)}}
l.es=h;class f extends l.vj{constructor(b,a){super();this.parent=b;this.em=a;this.YR=this.em.G;this.K5();this.Wk("listbox")}K5(){this.em&&(this.N("mousedown",b=>this.KV(b)),this.em.N("keydown",b=>this.nE(b)))}nE(b){if(this.parent.hv)super.nE(b);else if(13==b.keyCode||32==b.keyCode)this.parent.open(),b.preventDefault()}}})(e.Bd||(e.Bd={}))})(x||(x={}));
(function(e){(function(l){class h extends e.Pa{constructor(){super();this.yi=0;this.aa("fm-ui-vlist");this.xi=new f;this.xi.yLa();this.xi.N(w.ia.Xd,b=>this.sv(b));this.X(this.xi);this.du=new e.Pa("div","fm-ui-vlist-placeholder");this.X(this.du);this.N("scroll",()=>this.P4());this.N("mousedown",b=>this.LV(b));this.N("keydown",b=>this.nE(b))}LV(b){(b=this.xi.mD(b.target))&&this.Ni(this.ix()+b.index)}nE(b){if(32==b.keyCode||13==b.keyCode)this.MV(this.yi,b),b.preventDefault();40==b.keyCode&&(this.Ni(this.yi+
1),this.jO(this.yi),b.preventDefault());38==b.keyCode&&(this.Ni(this.yi-1),this.jO(this.yi),b.preventDefault())}jO(b){var a=this.$d();b*=a;a=b+a;const c=this.G.element.scrollTop,d=this.G.zd();c>b?this.G.Sx(b):c+d<a&&this.G.Sx(a-d)}Ni(b){this.yi=Math.max(0,Math.min(this.vh().IH()-1,b));this.yi>=this.ix()&&this.yi<this.Cea()&&this.xi.Ni(this.yi-this.ix())}Su(){return this.xi.Su()}MV(b,a){if(!(0>b)){var c=this.Vh(),d=this.PH();this.Xk(b);var g=new l.Rra;g.data={Hl:this.Vh(),selectedIndex:this.PH(),vq:a,
fKa:b,XJa:c,WJa:d};this.Ha(g)}}sv(b){this.Ha(b)}P4(){this.je("data")}nb(){this.du.Mr(Math.min(this.PM(),h.cQ));if(this.dv("data")){this.xi.gg(this.Bc());const b=this.ix()*this.$d()*this.NH()-this.Tea();this.xi.G.top=Math.min(b,this.du.zd()-this.xi.G.height);this.Ni(this.yi)}this.validate()}NH(){return this.PM()>h.cQ?h.cQ/this.PM():1}ix(){return 1!=this.NH()?Math.floor((this.G.element.scrollTop+this.Tea())/this.NH()/this.$d()):Math.max(0,Math.floor(this.G.element.scrollTop/this.$d())-1)}Cea(){return this.ix()+
this.Kz()}Tea(){return 1!=this.NH()?(this.zd()/this.NH()-this.zd())*(this.G.element.scrollTop/h.cQ)*this.NH():0}get Do(){return this.xi.Do}set Do(b){this.xi.Do=b}ur(){return this.xi.ur()}xg(b){this.xi.xg(b)}mi(b){this.xi.mi(b)}xt(b){this.xi.xt(b)}Rr(b){this.xi.Rr(b)}$d(){return this.xi.$d()}Kz(){return 0<this.$d()?Math.ceil(this.zd()/this.$d())+3:0}PH(){return this.xi.PH()}Xk(b){this.xi.Xk(b)}qO(b){this.xi.qO(b)}Vh(){return this.xi.Vh()}qt(b){this.xi.qt(b)}XM(){return this.xi.XM()}PM(){return this.$d()*
this.vh().IH()}vh(){return this.$La}M5(b){this.$La=b}MLa(){this.G.Sx(0)}gg(b){this.vh()&&(this.vh().HW(b),this.MLa(),this.je("data"))}Bc(){return this.vh()?this.vh().X1(this.ix(),this.Cea()):[]}}h.cQ=1E6;l.Ura=h;class f extends l.vj{constructor(){super();this.yi=-1}LV(){}nE(){}gg(b,a=!0){this.J=b;this.yi=-1;a&&this.je("data")}Ni(b){this.yi=Math.max(0,Math.min(this.Bh.length-1,b));for(const a of this.Bh)a.Hd("fm-ui-active");(b=this.Bh[this.yi])&&b.aa("fm-ui-active")}}})(e.Bd||(e.Bd={}))})(x||(x={}));
(function(e){(function(l){class h extends e.VY{constructor(){super();this.aa("fm-ui-dropdown-btn");this.xN=new e.Tc;this.X(this.xN);this.G.Vd();this.Wk("combobox");this.Gg("haspopup","listbox");this.Cba(!1)}fb(f){this.xN.fb(f,!0);this.xN.ni(f)}}l.Qra=h})(e.Bd||(e.Bd={}))})(x||(x={}));
(function(e){(function(l){class h extends e.Pa{constructor(){super("li");this.pf="label";this.Wk("option")}getData(){return this.data}setData(f){null!=f&&(this.data=f,this.je("data"))}hn(f){this.G.attr("data-index",f)}ur(){return this.pf}xg(f){this.pf!=f&&(this.pf=f,this.je("data"))}uH(){return this.Np}mO(f){this.Np!=f&&(this.Np=f,this.je("data"))}IW(f){this.wx!=f&&(this.wx=f,this.je("data"))}I(){return this.wx?this.wx(this.data):this.data[this.pf]}nb(){this.dv("data")&&(this.G.text(this.data[this.pf]),
q.ka(this.Np)||q.v(this.data[this.Np])||this.zc(this.data[this.Np]));this.validate()}}l.GB=h})(e.Li||(e.Li={}))})(x||(x={}));
(function(e){(function(l){class h extends l.GB{nb(){var f=this.getData();null==this.label&&(this.label=new e.Tc,this.label.aa("fm-text-display"),this.G.append(this.label.G));this.label.fb(f[this.ur()],!0);this.Dba(!0===f.isSelected);this.G.ab("fm-selected",!0===f.isSelected);this.G.ab("fm-not-selected",!0!==f.isSelected);q.ka(this.Np)||q.v(this.data[this.Np])||this.label.zc(this.data[this.Np])}}l.RY=h})(e.Li||(e.Li={}))})(x||(x={}));var da=x||(x={}),ea=da.ij||(da.ij={}),ia=ea.ti||(ea.ti={});
ia.Rj="top";ia.pi="bottom";ia.CF="left";ia.UF="right";
(function(e){(function(l){class h{constructor(f,b){this.NK=a=>this.Ix(a);this.bu=a=>this.Cr(a);this.hC=a=>this.Jx(a);this.target=f;this.options=b;this.Ixa()}Ixa(){for(var f=0;f<this.options.RW.length;f++)this.Bu(this.options.RW[f])}Bu(f){var b=new e.Ga("div","fm-resizable-handle");b.aa("fm-"+f);b.N("mousedown",this.NK);this.target.X(b);return b}Ix(f){f=e.Ga.Yb(f.target);f.Sc("fm-left")?this.My=l.ti.CF:f.Sc("fm-right")?this.My=l.ti.UF:f.Sc("fm-top")?this.My=l.ti.Rj:f.Sc("fm-bottom")&&(this.My=l.ti.pi);
this.CO()}Cr(f){this.yha(f.clientX,f.clientY);this.DO()}Jx(f){this.yha(f.clientX,f.clientY)}yha(f,b){this.yK&&(f=Math.min(Math.max(this.yK.left,f),this.yK.right),b=Math.max(this.yK.top,b),!0!==this.options.H_&&(b=Math.min(this.yK.bottom,b)));var a={left:this.jC.left,top:this.jC.top},c={width:this.TZ.width,height:this.TZ.height};this.My==l.ti.CF&&(a.left=f,c.width+=this.jC.left-a.left);this.My==l.ti.UF&&(c.width=f-this.jC.left);this.My==l.ti.Rj&&(a.top=b,c.height+=this.jC.top-a.top);this.My==l.ti.pi&&
(c.height=b-this.jC.top);this.options.resize&&this.options.resize({WE:this.My,KQa:this.jC,W4:this.TZ,position:a,size:c})}CO(){document.addEventListener("mousemove",this.hC);document.addEventListener("mouseup",this.bu);this.TZ={width:this.target.cg(!0),height:this.target.zd(!0)};this.jC={left:this.target.sg().left,top:this.target.sg().top};this.yK=this.options.LS?this.options.LS.getBoundingClientRect():null}DO(){document.removeEventListener("mousemove",this.hC);document.removeEventListener("mouseup",
this.bu);this.options.complete&&this.options.complete()}dispose(){document.removeEventListener("mousemove",this.hC);document.removeEventListener("mouseup",this.bu)}}l.Tqa=h})(e.ij||(e.ij={}))})(x||(x={}));(function(e){(function(l){class h extends e.Li.RY{nb(){super.nb();const f=this.data.submenu&&0<this.data.submenu.length;this.G.ab("fm-has-submenu",f);this.gva(f)}}l.m$=h})(e.mr||(e.mr={}))})(x||(x={}));
(function(e){(function(l){class h extends e.ce.l${constructor(b){super();this.ZW=a=>this.JIa(a);this.parent=b;this.aa("fm-ui-context-menu");this.list=new e.Bd.vj;this.list.mi((a,c)=>this.kv(a,c));this.list.xg("caption");this.list.af();this.list.N(w.ia.Xd,a=>this.sv(a));this.X(this.list);this.EA=new f(this);this.EA.list.N(w.ia.Xd,a=>this.sv(a));this.EA.$a();this.X(this.EA);this.G.cm();this.G.N("mouseleave",()=>{this.Xba=setTimeout(()=>this.close(),500)});this.G.N("mouseover",()=>{clearTimeout(this.Xba)});
this.G.N("keydown",a=>{27==a.keyCode&&(this.close(),a.stopImmediatePropagation())})}gp(b,a,c,d=null,g=null){0!=a.length&&(this.mL=g,this.setData(a),this.show(),this.lw=document.activeElement,this.list.focus({preventScroll:!0}),b=b.sg(),c.top-=b.top,c.top+=d&&!isNaN(d.top)?d.top:-5,c.left-=b.left,c.left+=d&&!isNaN(d.left)?d.left:-5,this.G.offset(c),d=this.G.getBoundingClientRect(),b=!1,d.right>window.innerWidth&&(c.left-=d.width-10,b=!0),d.bottom>window.innerHeight&&(c.top-=d.height-10,b=!0),b&&(c.top=
Math.max(-this.G.parent.top,c.top),c.left=Math.max(-this.G.parent.left,c.left),this.G.offset(c)),u.Nd().im?q.K.Sb.Jb.N("touchstart",this.ZW):q.K.Sb.Jb.N("mousedown",this.ZW),this.rfa=!0,q.ve(()=>{this.rfa=!1},100))}JIa(b){this.G.KS(b)||this.close()}close(b=null){clearTimeout(this.Xba);if(this.G.visible){this.$a();this.EA.$a();q.K.Sb.Jb.rb("mousedown",this.ZW);q.K.Sb.Jb.rb("touchstart",this.ZW);var a=b&&!0===b.preventFocusRestore?!1:!0;this.mL&&(a=this.mL(b),this.mL=null);this.lw&&!1!==a&&this.lw.focus({preventScroll:!0})}}setData(b){this.list.gg(b.slice())}sv(b){const a=
b.data.Hl;a.submenu&&0<a.submenu.length?(this.EA.gp(b.data.pLa,a),this.EA.list.focus()):(null!=a.handler&&a.handler(a.data),b.data.vq&&b.data.vq.stopImmediatePropagation(),this.close(a))}kv(b,a){var c=new l.m$;c.setData(b);c.hn(a);q.ka(b["class"])||c.aa(b["class"]);c.N("mouseover",()=>this.$Ha(c,b));return c}$Ha(b,a){this.rfa||(a.submenu&&0<a.submenu.length?this.EA.gp(b.G,a):this.EA.$a())}focus(b=null){this.list.focus(b)}}l.XF=h;class f extends e.ce.l${constructor(b){super();this.parent=b;this.aa("fm-ui-context-submenu");
this.N("keydown",a=>this.tq(a));this.list=new e.Bd.vj;this.list.mi((a,c)=>this.pMa(a,c));this.list.xg("caption");this.list.af();this.X(this.list)}tq(b){27==b.keyCode&&(this.parent&&this.parent.focus(),this.$a(),b.stopImmediatePropagation())}pMa(b,a){var c=new l.m$;c.setData(b);c.hn(a);q.ka(b["class"])||c.aa(b["class"]);return c}gp(b,a){if(a!=this.Fha){this.Fha=a;this.list.gg(a.submenu.slice());a=b.sg(this.parent.G.element);this.G.top=a.top-1;this.G.left=b.cg(!0)-5;this.show();var c=this.G.getBoundingClientRect();
c.right>window.innerWidth&&(this.G.left=-c.width,0>this.G.left&&(this.G.left=-this.G.left));c.bottom>window.innerHeight&&(this.G.top=a.top-c.height+b.zd(!0)+1,0>this.G.top&&(this.G.top=-this.G.top))}}$a(){super.$a();this.Fha=null}}})(e.mr||(e.mr={}))})(x||(x={}));
(function(e){(function(l){class h{constructor(f){this.target=f;u.Nd().im?(new e.EG.Noa(this.target)).VEa((b,a)=>this.B4(b,a)):q.Ik.addEventListener("contextmenu",b=>this.sta(b))}B4(){}O4(){}sta(f){this.target.KS(f)&&this.O4(f)}}l.Vqa=h})(e.mr||(e.mr={}))})(x||(x={}));
(function(e){(function(l){class h extends e.Pa{constructor(){super("div","fm-ui-datepicker-input");this.HK="dd/MM/yyyy";this.Bta="HH:mm";this.mta=1900;this.kta=2100;this.iu=!1;this.Bha=b=>this.eIa(b);this.ab("fm-with-time",this.Pj);this.$C=new e.Sj;this.$C.G.N("click",()=>this.open());this.$C.N(e.Sj.oy,b=>this.sHa(b));this.$C.N(e.Sj.fB,()=>this.tHa());this.X(this.$C);const f=new e.Ga("i","fm-ui-datepicker-icon");f.N("click",()=>this.rHa());this.G.X(f);this.nda=new e.Ga("div","fm-ui-datepicker-dropdown");
this.G.X(this.nda);this.On=new l.Pra;this.On.N(w.ia.Xd,()=>this.PGa());this.On.N(w.ia.eP,()=>this.close());this.nda.X(this.On.G);this.je()}nb(){this.dv("all","date","timezone")&&(this.On.Ox?this.$C.ik(this.On.Ox.format(this.aea)):this.$C.PE(this.NBa()));super.nb()}get aea(){return this.HK+(this.Pj?" "+this.Bta:"")}open(){this.G.ab("fm-opened",!0);this.On.reset();document.body.addEventListener("mousedown",this.Bha)}close(){this.G.ab("fm-opened",!1);document.body.removeEventListener("mousedown",this.Bha);
this.je("date")}get qc(){return this.On.Ox}set qc(f){this.On.Ox=f;this.je("date")}get Pj(){return this.iu}set Pj(f){this.iu!=f&&(this.iu=f,this.ab("fm-with-time",f),this.On.Pj=f)}OLa(){this.qc=(new q.Rf).Kf(this.bi)}kJa(f){var b,a,c="MM/dd/yyyy"==this.HK;const d=this.Pj?null===(b=f.split(" ")[0])||void 0===b?void 0:b.split("/"):f.split("/");b=parseInt(d[2]);isNaN(b)||(b=Math.min(this.kta,Math.max(this.mta,b)));let g=parseInt(d[c?0:1])-1;isNaN(g)||(g=Math.min(11,Math.max(0,g)));c=parseInt(d[c?1:0]);
isNaN(c)||(c=Math.min(q.Rf.F0(g,b),Math.max(1,c)));c=(new q.Rf).Kf(this.bi).setFullYear(b,g,c);this.Pj&&(f=null===(a=f.split(" ")[1])||void 0===a?void 0:a.split(":"),a=parseInt(f[0]),isNaN(a)||(a=Math.min(23,Math.max(0,a))),f=parseInt(f[1]),isNaN(f)||(f=Math.min(59,Math.max(0,f))),c.setHours(a,f,0,0));return c.ih()?c:null}rHa(){this.G.Sc("fm-opened")?this.close():this.open()}sHa(f){f=this.kJa(f.data);q.v(f)||(this.On.Ox=f,this.Ya(w.ia.Xd,this,this.qc))}tHa(){this.je("date");this.close()}eIa(f){this.G.KS(f)||
this.close()}PGa(){this.Ya(w.ia.Xd,this,this.qc);this.je("date")}get jy(){return this.On.jy}set jy(f){this.On.jy=f}get bi(){return this.On.bi}set bi(f){this.On.bi=f;this.je("timezone")}get Fu(){return this.HK}set Fu(f){"dd/MM/yyyy"!=f&&"MM/dd/yyyy"!=f||this.HK==f||(this.HK=f,this.Sr())}NBa(){const f=new q.Rf;f.Kf(this.bi);return f.format(this.aea)}ye(){this.$C.zc(q.model.B.j.kB);this.On.ye()}}l.n$=h})(e.ZL||(e.ZL={}))})(x||(x={}));
(function(e){(function(l){class h{}h.Xr=0;h.$J=1;h.uK=2;class f extends e.Pa{constructor(){super();this.kNa=u.Lh.vBa();this.aha=u.Lh.$Ba();this.Ip=this.xn=null;this.cL=0;this.K=h.Xr;this.n_=1;this.l_=null;this.iu=!1;this.aa("fm-ui-datepicker");this.aa("fm-noselect");this.xn=(new q.Rf).Kf(this.bi).VI();var b=new e.Ga("div","fm-ui-dp-header");this.G.X(b);this.Lba=new e.Vg("fm-prev-btn");this.Lba.N(e.Qd.uf,()=>this.hha(-1));b.X(this.Lba.G);this.JN=new e.Tc;this.JN.aa("fm-ui-dp-month");this.JN.N("click",
()=>this.YHa());b.X(this.JN.G);this.fJ=new e.Tc;this.fJ.aa("fm-ui-dp-year");this.fJ.N("click",()=>this.YIa());b.X(this.fJ.G);this.Kba=new e.Vg("fm-next-btn");this.Kba.N(e.Qd.uf,()=>this.hha(1));b.X(this.Kba.G);this.J6=new e.Ga("div","fm-ui-dp-week");this.G.X(this.J6);this.oz=new e.Ga("div","fm-ui-dp-dates");this.oz.N("click",a=>this.MGa(a));this.G.X(this.oz);this.$E=new e.Ga("div","fm-ui-dp-time");this.G.X(this.$E);this.Xja=new e.Tc(q.model.B.j.t8);this.$E.X(this.Xja.G);this.TI=new e.Ga("input","fm-ui-dp-time-input");
this.TI.attr("type","time");this.TI.N("change",()=>this.LIa());this.$E.X(this.TI);b=new e.Ga("div","fm-ui-dp-footer");this.G.X(b);this.Qe=new e.Qd("fm-ui-link-btn");this.Qe.aa("fm-cancel-btn");this.Qe.aa("fm-muted");this.Qe.Hd("fm-ui-btn");this.Qe.fb("Cancel");this.Qe.N(e.Qd.uf,()=>this.at());b.X(this.Qe.G);this.je()}nb(){this.dv("all")&&this.Xya();this.dv("date","view")&&this.Qya();this.dv("date","view")&&this.K==h.Xr&&(this.Fya(),this.Vya());this.dv("view")&&this.K==h.$J&&this.Rya();this.dv("view")&&
this.K==h.uK&&this.Yya();super.nb()}get Ox(){return this.Ip}set Ox(b){q.v(b)?null!=this.Ip&&(this.Ip=null,this.je("date")):(b.Kf(this.bi),0==this.Pj&&b.setHours(0,0,0,0),this.U2(this.Ox,b,this.Pj)||(this.Ip=b,this.xn=b.clone().VI(),this.je("date")))}get view(){return this.K}set view(b){this.K!=b&&(this.K=b,this.G.ab("fm-ui-dp-view-dates",this.view==h.Xr),this.G.ab("fm-ui-dp-view-months",this.view==h.$J),this.G.ab("fm-ui-dp-view-years",this.view==h.uK),this.je("view"))}get Pj(){return this.iu}set Pj(b){this.iu!=
b&&(this.iu=b,this.je("view"))}reset(){this.xn=this.Ip?this.Ip.clone().VI():(new q.Rf).Kf(this.bi).VI();this.cL=0;this.view=h.Xr;this.je("view")}Qya(){if(this.view==h.Xr||this.view==h.$J)this.JN.fb(this.aha[this.xn.getMonth()]),this.fJ.fb(this.xn.getFullYear().toString());if(this.view==h.uK){var b=this.afa();this.fJ.fb(b+" \u2013 "+(b+19))}this.fJ.G.ab("fm-disabled",this.view!=h.Xr);this.JN.G.ab("fm-disabled",this.view!=h.Xr)}afa(){for(var b=this.xn.getFullYear()-10;0!=b%10;)b++;return b+=20*this.cL}Xya(){this.J6.empty();
for(var b=0;7>b;b++){var a=new e.Tc(this.kNa[(b+this.jy)%7].substr(0,2));a.aa("fm-ui-dp-day-title");a.aa("fm-ui-dp-col-7");this.J6.X(a.G)}}Yya(){this.oz.empty();this.$E.$a();for(var b=this.afa(),a=0;20>a;a++){var c=new e.Tc(b.toString());c.aa("fm-ui-dp-date-label");c.aa("fm-ui-dp-col-5");this.Ip?this.Ip.getFullYear()==b&&c.aa("fm-selected"):this.xn.getFullYear()==b&&c.aa("fm-highlighted");c.G.attr("data-year",b);this.oz.X(c.G);b++}}Rya(){this.oz.empty();this.$E.$a();this.aha.forEach((b,a)=>{b=new e.Tc(b);
b.aa("fm-ui-dp-date-label");b.aa("fm-ui-dp-col-3");this.Ip?this.Ip.getMonth()==a&&b.aa("fm-selected"):this.xn.getMonth()==a&&b.aa("fm-highlighted");b.G.attr("data-month",a);this.oz.X(b.G)})}Vya(){0==this.Pj?this.$E.$a():(this.$E.show(),this.Ip&&this.TI.LA(this.Ox.format("HH:mm")))}Fya(){var b=this.xn.getDay()-this.jy;0>b&&(b+=7);b=this.xn.clone().s_(-b);var a=(new q.Rf).Kf(this.bi);this.oz.empty();for(var c=0;42>c;c++){var d=new e.Tc(b.getDate().toString());d.aa("fm-ui-dp-date-label");d.aa("fm-ui-dp-col-7");
b.getMonth()!=this.xn.getMonth()&&d.aa("fm-muted");this.U2(this.Ip,b)&&d.aa("fm-selected");this.U2(a,b)&&d.aa("fm-highlighted");d.G.attr("data-date",b.getTime()/1E3);this.oz.X(d.G);b.s_(1)}}U2(b,a,c=!1){return q.v(b)||q.v(a)?!1:b.getFullYear()==a.getFullYear()&&b.getMonth()==a.getMonth()&&b.getDate()==a.getDate()?c?this.xEa(b,a):!0:!1}xEa(b,a){return q.v(b)||q.v(a)?!1:b.getHours()==a.getHours()&&b.getMinutes()==a.getMinutes()?!0:!1}YHa(){this.view=h.$J}YIa(){this.view!=h.$J&&(this.view=h.uK)}MGa(b){b=
e.Ga.Yb(b.target);var a=b.attr("data-date");q.v(a)||(a=new q.Rf(1E3*parseInt(a)),this.Pj&&(a.Kf(this.bi),this.setTime(a,this.TI.LA())),this.Ox=a,this.Ya(w.ia.Xd),this.Ya(w.ia.eP));a=b.attr("data-month");q.v(a)||(this.xn.setMonth(parseInt(a),1),this.view=h.Xr);b=b.attr("data-year");q.v(b)||(this.xn.setFullYear(parseInt(b),this.xn.getMonth(),1),this.view=h.Xr,this.cL=0)}LIa(){this.setTime(this.Ip,this.TI.LA());this.Ya(w.ia.Xd)}setTime(b,a){var c=a.split(":");a=parseInt(c[0]);c=parseInt(c[1]);isNaN(a)||
isNaN(c)||b.setHours(a,c,0,0)}hha(b){this.view==h.Xr?this.xn.nua(b):this.view==h.uK&&(this.cL+=b);this.je("view")}at(){this.view=h.Xr}get jy(){return this.n_}set jy(b){this.n_!=b&&(this.n_=b,this.je("all"))}get bi(){return this.l_}set bi(b){this.l_!=b&&(this.l_=b,this.je("all"))}ye(){this.Qe.fb(q.model.B.j.xm);this.Xja.fb(q.model.B.j.t8)}}l.Pra=f})(e.ZL||(e.ZL={}))})(x||(x={}));
(function(e){(function(l){class h{constructor(f,b=1E3){this.pka=a=>this.PIa(a);this.oka=a=>this.RV(a);this.target=f;this.delay=b}VEa(f){this.lc=f;this.target.N("touchstart",this.pka);this.target.N("touchend",this.oka)}stop(){this.target.rb("touchstart",this.pka);this.target.rb("touchend",this.oka)}PIa(f){this.timer=q.ve(()=>this.xva(f),this.delay)}RV(){this.timer&&q.sr(this.timer)}xva(f){e.Ga.Yb(f.target).Sc("fm-dragging")||this.lc(f,f&&0<f.changedTouches.length?f.changedTouches[0]:null)}}l.Noa=h})(e.EG||
(e.EG={}))})(x||(x={}));(function(e){(function(l){class h extends e.Ga{constructor(){super();this.af();this.Gg("hidden","true");this.element.addEventListener("focus",f=>this.g4(f))}g4(f){f.relatedTarget&&f.relatedTarget.focus()}}l.F8=h})(e.EG||(e.EG={}))})(x||(x={}));
(function(e){class l{constructor(m,n=0,p=l.Eoa){this.Qsa=!0;this.Jy=0;this.NB=n;this.buffer=m;this.position=0;this.jza=p}get byteOffset(){return this.NB}set byteOffset(m){this.NB=m;this.kZ=new DataView(this.Wq,this.NB);this.Jy=this.Wq.byteLength}get byteLength(){return this.Jy-this.NB}get buffer(){this.Eta();return this.Wq}set buffer(m){this.Wq=m;this.kZ=0==this.NB?new DataView(this.Wq):new DataView(this.Wq,this.NB);this.Jy=this.Wq.byteLength}seek(m){m=Math.max(0,Math.min(this.byteLength,m));this.position=
isNaN(m)||!isFinite(m)?0:m}nNa(m){this.pNa(h.encode(m))}oNa(m){this.YZ(1);this.kZ.setUint8(this.position,m);this.position+=1}pNa(m){this.YZ(1*m.length);if(m instanceof Uint8Array&&0==this.byteOffset+this.position%m.BYTES_PER_ELEMENT)this.FFa(this.Wq,this.byteOffset+this.position,m.buffer,m.byteLength),this.Qga(m.length);else for(var n=0;n<m.length;n++)this.oNa(m[n])}iW(m){return f.decode(this.Qga(m))}lia(){var m=this.kZ.getUint32(this.position,this.jza);this.position+=4;return m}Qga(m){this.YZ(1*
m);var n=new Uint8Array(this.Wq,this.byteOffset+this.position,m);this.position+=1*m;return n}YZ(m){if(this.Qsa){m=this.NB+this.position+m;var n=this.Wq.byteLength;if(m<=n)m>this.Jy&&(this.Jy=m);else{for(1>n&&(n=1);m>n;)n*=2;n=new ArrayBuffer(n);var p=new Uint8Array(this.Wq);(new Uint8Array(n,0,p.length)).set(p);this.buffer=n;this.Jy=m}}}Eta(){if(this.Jy!=this.Wq.byteLength){var m=new ArrayBuffer(this.Jy),n=new Uint8Array(m),p=new Uint8Array(this.Wq,0,n.length);n.set(p);this.buffer=m}}FFa(m,n,p,t){m=
new Uint8Array(m,n,t);p=new Uint8Array(p,0,t);m.set(p)}}l.mJ=!1;l.Eoa=!0;e.Yr=l;class h{static encode(m){m=m?String(m):"";var n=[],p=new d(n);m=new g(m);null==h.d1&&(h.d1=new a);for(;m.get()!==h.rn;)h.d1.encode(p,m);do var t=h.d1.encode(p,m);while(t!==h.Zr);return new Uint8Array(n)}}h.Zr=-1;h.rn=-1;e.TextEncoder=h;class f{static decode(m){m||(m=new Uint8Array(0));m=new Uint8Array(m.buffer,m.byteOffset,m.byteLength);m=new c(m);var n=new k;null==f.G0&&(f.G0=new b);for(;m.get()!==f.Zr;){var p=f.G0.decode(m);
null!==p&&p!==f.rn&&n.lH(p)}do p=f.G0.decode(m),null!==p&&p!==f.rn&&n.lH(p);while(p!==f.rn);return n.nw}}f.Zr=-1;f.rn=-1;e.TextDecoder=f;class b{constructor(){this.rn=this.Zr=-1;this.dJ=this.cJ=this.iy=this.Cv=0}decode(m){var n=m.get();if(n===this.Zr)return this.rn;m.offset(1);if(0===this.iy){if(this.inRange(n,0,127))return n;if(this.inRange(n,194,223))this.iy=1,this.dJ=128,this.Cv=n-192;else if(this.inRange(n,224,239))this.iy=2,this.dJ=2048,this.Cv=n-224;else if(this.inRange(n,240,244))this.iy=3,
this.dJ=65536,this.Cv=n-240;else return this.rn;this.Cv*=Math.pow(64,this.iy);return null}if(!this.inRange(n,128,191))return this.dJ=this.cJ=this.iy=this.Cv=0,m.offset(-1),this.rn;this.cJ+=1;this.Cv+=(n-128)*Math.pow(64,this.iy-this.cJ);if(this.cJ!==this.iy)return null;m=this.Cv;n=this.dJ;this.dJ=this.cJ=this.iy=this.Cv=0;return this.inRange(m,n,1114111)&&!this.inRange(m,55296,57343)?m:this.rn}inRange(m,n,p){return n<=m&&m<=p}}e.AQa=b;class a{constructor(){this.rn=this.Zr=-1}inRange(m,n,p){return n<=
m&&m<=p}cda(m,n){return Math.floor(m/n)}encode(m,n){var p=n.get();if(p===this.rn)return this.Zr;n.offset(1);if(this.inRange(p,55296,57343))return this.rn;if(this.inRange(p,0,127))return m.lH(p);if(this.inRange(p,128,2047)){var t=1;var r=192}else this.inRange(p,2048,65535)?(t=2,r=224):this.inRange(p,65536,1114111)&&(t=3,r=240);for(n=m.lH(this.cda(p,Math.pow(64,t))+r);0<t;)n=m.lH(128+this.cda(p,Math.pow(64,t-1))%64),--t;return n}}e.BQa=a;class c{constructor(m){this.Zr=-1;this.qm=0;this.zC=m}get(){return this.qm>=
this.zC.length?this.Zr:Number(this.zC[this.qm])}offset(m){this.qm+=m;if(0>this.qm)throw Error("Seeking past start of the buffer");if(this.qm>this.zC.length)throw Error("Seeking past EOF");}match(m){if(m.length>this.qm+this.zC.length)return!1;var n;for(n=0;n<m.length;n+=1)if(Number(this.zC[this.qm+n])!==m[n])return!1;return!0}}e.ANa=c;class d{constructor(m){this.Zr=-1;this.qm=0;this.zC=m}lH(m){var n=this.Zr,p;for(p=0;p<arguments.length;++p)n=Number(arguments[p]),this.zC[this.qm++]=n;return n}}e.BNa=
d;class g{constructor(m){this.qm=0;this.rn=-1;this.nw=m;this.t0=this.lBa(this.nw)}lBa(m){for(var n=[],p=0,t=m.length;p<m.length;){var r=m.charCodeAt(p);if(this.inRange(r,55296,57343))if(this.inRange(r,56320,57343))n.push(65533);else if(p===t-1)n.push(65533);else{var v=m.charCodeAt(p+1);this.inRange(v,56320,57343)?(r&=1023,v&=1023,p+=1,n.push(65536+(r<<10)+v)):n.push(65533)}else n.push(r);p+=1}return n}inRange(m,n,p){return n<=m&&m<=p}offset(m){this.qm+=m;if(0>this.qm)throw Error("Seeking past start of the buffer");
if(this.qm>this.t0.length)throw Error("Seeking past EOF");}get(){return this.qm>=this.t0.length?this.rn:this.t0[this.qm]}}e.bOa=g;class k{constructor(){this.nw=""}lH(m){65535>=m?this.nw+=String.fromCharCode(m):(m-=65536,this.nw+=String.fromCharCode(55296+(m>>10&1023)),this.nw+=String.fromCharCode(56320+(m&1023)))}}e.cOa=k})(q||(q={}));var z;
(function(e){class l extends w.Mh{constructor(){super(...arguments);this.responseType="arraybuffer";this.connected=!1;this.tc=[]}load(h){this.url=h;this.connected=!1;this.close();this.xhr=new XMLHttpRequest;this.xhr.open("GET",h,!0);this.xhr.responseType=this.responseType;this.xhr.onprogress=f=>this.bt(f);this.xhr.onerror=f=>this.Rb(f);this.xhr.onreadystatechange=f=>this.tv(f);this.tL();this.xhr.send()}iBa(){if(void 0!==this.xhr){var h=this.xhr.getResponseHeader("Content-Type"),f=/charset=([^()<>@,;:"/[\]?.=\s]*)/i;
return f.test(h)?f.exec(h)[1]:"UTF-8"}}Br(){this.response=this.xhr.response;this.Ya(w.ia.Qc)}bt(h){this.Ya(w.ia.te,this,h)}Rb(){q.v(this.xhr)||(this.response=this.xhr.response||this.xhr.responseText||this.xhr.statusText);this.Ha(new w.ia(w.ia.xa,this))}tv(){null!=this.xhr&&4===this.xhr.readyState&&(200===this.xhr.status?this.Br():this.Ya(w.ia.xa,this,this.xhr.statusText));null!=this.xhr&&3>this.xhr.readyState&&!this.connected&&(this.connected=!0,this.Ya(w.ia.ZA))}tL(){if(!q.v(this.tc))for(var h=0;h<
this.tc.length;h++)try{this.xhr.setRequestHeader(this.tc[h].cj,this.tc[h].value)}catch(f){console.error("Request headers error:",f),q.Va(f.message||f,q.model.B.j.xa,q.ob.xa)}}close(){null!=this.xhr&&this.xhr.abort()}dispose(){this.response=null;null!=this.xhr&&(this.xhr.abort(),this.xhr.onload=null,this.xhr.onprogress=null,this.xhr.onerror=null,this.xhr.onreadystatechange=null);this.tc=this.xhr=null}}e.p$=l})(z||(z={}));
(function(e){class l extends w.Mh{constructor(){super();this.dataType=h.DB;this.contentType=f.zra;this.Ir=b.dY;this.Vaa=this.connected=!1;this.MZ=0;this.cC=null;this.eia=0;this.tc=[];this.data={};this.Xi=0}load(d){q.ka(d)||(this.url=d);this.Xi=0;this.connected=!1;this.close();this.xhr=new XMLHttpRequest;try{this.xhr.open(this.Ir,this.url,!0)}catch(g){this.Rb(g);return}this.xhr.withCredentials=this.Vaa;this.xhr.onerror=g=>this.Rb(g);this.xhr.onreadystatechange=g=>this.tv(g);this.xhr.onprogress=g=>
this.bt(g);this.Ir==b.Rv&&!1!==this.contentType&&this.xhr.setRequestHeader("Content-type",this.contentType);this.tL();this.xhr.send(this.data)}retry(){this.load(this.url)}set withCredentials(d){this.Vaa=d}tL(){if(!q.v(this.tc))for(var d=0;d<this.tc.length;d++)try{this.xhr.setRequestHeader(this.tc[d].cj,this.tc[d].value)}catch(g){console.error("Request headers error:",g),q.Va(g.message||g,q.model.B.j.xa,q.ob.xa)}}$h(d){if(!q.v(d)){this.tc=[];for(let g in d)d.hasOwnProperty(g)&&this.tc.push(new e.q$(g,
d[g]))}}SI(){this.response=this.xhr.response||this.xhr.responseText;this.Xi=this.cC?this.cC.loaded:this.response.length;null!=this.cC&&this.Ya(w.ia.te,this,this.cC);this.Ha(new w.ia(w.ia.Qc,this))}tv(d){null!=this.xhr&&4===this.xhr.readyState&&(200===this.xhr.status?this.SI():this.Rb(d));null!=this.xhr&&3>this.xhr.readyState&&!this.connected&&(this.connected=!0,this.Ha(new w.ia(w.ia.ZA)))}bt(d){u.bg()-this.MZ>this.eia?(this.response=this.xhr.response||this.xhr.responseText,this.Xi=d.loaded,this.Ya(w.ia.te,
this,d),this.MZ=u.bg(),this.cC=null):this.cC=d}Rb(){q.v(this.xhr)||(this.response=this.xhr.response||this.xhr.responseText||this.xhr.statusText);this.Ha(new w.ia(w.ia.xa,this))}close(){null!=this.xhr&&(this.xhr.onprogress=null,this.xhr.onreadystatechange=null,this.xhr.abort())}dispose(){this.data=this.response=null;this.tc=[];null!=this.xhr&&(this.xhr.abort(),this.xhr.onprogress=null,this.xhr.onreadystatechange=null);this.MZ=this.cC=this.xhr=null}}e.tk=l;class h{}h.DB="text";h.ba="xml";h.Ov="html";
h.JSON="json";e.bB=h;class f{}f.zra="text/plain";f.IQ="text/xml";f.qX="application/json";f.rX="application/x-www-form-urlencoded";e.Ft=f;class b{}b.Rv="POST";b.dY="GET";e.Qt=b;class a{constructor(d,g){this.cj=d;this.value=g}}e.q$=a;class c{constructor(){this.data={}}toString(d){const g=[];if(d){for(let k in this.data)this.data.hasOwnProperty(k)&&g.push(k+"="+this.data[k]);d=g.join("&")}else d=JSON.stringify(this.data);return d}}e.Yra=c})(z||(z={}));
(function(e){class l extends w.Mh{constructor(){super();this.cT=!1;this.Ika=()=>this.g4();this.l5=!1}Iba(f=[]){this.input=document.createElement("input");this.input.setAttribute("type","file");this.input.style.display="none";document.body.appendChild(this.input);this.input.setAttribute("accept",f.join(","));this.input.addEventListener("change",()=>this.jGa());this.cT=!0;this.l5=window.location!==window.parent.location;q.vM.addEventListener("focus",this.Ika);this.input.click()}jGa(){this.cT=!1;q.v(this.input.files)||
q.v(this.input.files[0])||(this.file=this.input.files[0],this.Ya(w.ia.to))}g4(){this.l5?this.l5=!1:this.cT&&q.ve(()=>{(q.v(this.input.files)||q.v(this.input.files[0]))&&this.Ya(w.ia.BX);this.cT=!1},500)}load(f=h.DB){null!=this.file&&(this.CE=new FileReader,this.CE.onload=()=>this.CHa(),this.CE.onprogress=b=>this.bt(b),this.CE.onerror=b=>this.Rb(b),f==h.ARRAY_BUFFER?this.CE.readAsArrayBuffer(this.file):this.CE.readAsText(this.file))}CHa(){this.response=this.CE.result;this.Ha(new w.ia(w.ia.Qc,this))}bt(f){this.Ya(w.ia.te,
this,f)}Rb(f){this.Ha(f)}dispose(){this.CE=this.file=this.response=null;q.vM.removeEventListener("focus",this.Ika)}}e.B8=l;class h{}h.DB="TEXT";h.ARRAY_BUFFER="ARRAY_BUFFER";e.Rqa=h;e.Hia=function(f,b){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(f,b);else{var a=document.createElement("a"),c=window.URL.createObjectURL(f);a.href=c;a.download=b;a.target="_blank";document.body.appendChild(a);a.click();q.ve(function(){document.body.removeChild(a);window.URL.revokeObjectURL(c)},
0)}}})(z||(z={}));
(function(e){class l{get item(){return this[0]}find(b){return void 0===this.item?this:this.item.find(b)}text(){return void 0===this.item?"":this.item.text()}attr(b,a){if(void 0!==this.item)return a?this.item.attr(b,a):this.item.attr(b)}children(){for(var b=new l,a=0;void 0!==this[a];)b[a]=h.Yb(this[a]),a++;return b}push(b){this[this.length]=b;return this}get length(){for(var b=0;void 0!==this[b];)b++;return b}}e.CQa=l;class h extends Element{text(b){return b||!1===b?(this.textContent=b.toString(),
this):b=q.v(this.textContent)?"":this.textContent}append(b){if(q.v(b)||"string"==typeof b&&q.ka(b))return this;(b instanceof CDATASection||""!=b.textContent)&&this.appendChild(b);return this}kb(){return""==this.text()}find(b){b=this.querySelectorAll(b);for(var a=new l,c=0;c<b.length;c++)a[c]=h.Yb(b[c]);return a}attr(b,a){if(a||!1===a)return this.setAttribute(b,a),this;a=this.getAttribute(b);null==a&&(a=void 0);return a}$Aa(){for(var b=new l,a=this.firstElementChild;a;)a.nodeType===Node.ELEMENT_NODE&&
b.push(h.Yb(a)),a=a.nextElementSibling;return b}get length(){return this.childNodes.length}static Yb(b){b.find=h.prototype.find;b.append=h.prototype.append;b.text=h.prototype.text;b.attr=h.prototype.attr;b.isEmpty=h.prototype.kb;b.getChildren=h.prototype.$Aa;return b}}e.$Y=h;class f{constructor(){throw Error("Singleton");}static parseFromString(b){b=(new DOMParser).parseFromString(q.vt(b),"text/xml");return f.lEa(b)?null:b}static create(b){if(null==b.firstChild){b=f.parseFromString(b);if(null==b)return null;
b=b.firstElementChild?b.firstElementChild:b.firstChild}else b=b.firstChild;return h.Yb(b)}static lEa(b){return b.getElementsByTagName("parsererror")&&b.getElementsByTagName("parsererror")[0]?0<b.getElementsByTagNameNS(b.getElementsByTagName("parsererror")[0].namespaceURI,"parsererror").length:!1}static fi(b){return f.zya.createCDATASection(b)}static Lc(b,a=!1){null==f.Sia&&(f.Sia=new XMLSerializer);b=f.Sia.serializeToString(b);1==a&&(b=f.format(b));return b.trim()}static format(b){b=b.replace(/>\s{0,}</g,
"><").replace(/</g,"~::~<").replace(/\s*xmlns:/g,"~::~xmlns:").replace(/\s*xmlns=/g,"~::~xmlns=").split("~::~");var a=b.length,c=!1,d=0,g="",k,m=["\n"];for(k=0;20>k;k++)m.push(m[k]+"    ");for(k=0;k<a;k++)if(-1<b[k].search(/<!/)){if(g+=m[d]+b[k],c=!0,-1<b[k].search(/--\x3e/)||-1<b[k].search(/\]>/)||-1<b[k].search(/!DOCTYPE/))c=!1}else-1<b[k].search(/--\x3e/)||-1<b[k].search(/\]>/)?(g+=b[k],c=!1):/^<\w/.exec(b[k-1])&&/^<\/\w/.exec(b[k])&&/^<[\w:\-\.,]+/.exec(b[k-1])[0]==/^<\/[\w:\-\.,]+/.exec(b[k])[0].replace("/",
"")?(g+=b[k],c||d--):g=-1<b[k].search(/<\w/)&&-1==b[k].search(/<\//)&&-1==b[k].search(/\/>/)?c?g+=b[k]:g+=m[d++]+b[k]:-1<b[k].search(/<\w/)&&-1<b[k].search(/<\//)?c?g+=b[k]:g+=m[d]+b[k]:-1<b[k].search(/<\//)?c?g+=b[k]:g+=m[--d]+b[k]:-1<b[k].search(/\/>/)?c?g+=b[k]:g+=m[d]+b[k]:-1<b[k].search(/<\?/)?g+(m[d]+b[k]):-1<b[k].search(/xmlns:/)||-1<b[k].search(/xmlns=/)?g+(m[d]+b[k]):g+b[k];b="\n"==g[0]?g.slice(1):g;b=b.replace(/[\r\n\s]*<!\[CDATA\[/g,"<![CDATA[");return b=b.replace(/]]\x3e\s*/g,"]]\x3e")}}
f.zya=f.parseFromString("<tmp/>");e.ba=f})(z||(z={}));(function(e){class l{static print(h,f="",b=""){var a="printer-"+(new Date).getTime(),c=(new x.Ga("iframe")).attr("name",a);c.V("width","1px").V("height","1px").V("position","absolute").V("left","-9999px");window.document.body.append(c.element);a=window.frames[a];var d=a.document;d.open();d.write(q.vt(`
                <!DOCTYPE html>
                <html>
                <head>
                    <title>${b}</title>
                    <style>${f} body{-webkit-print-color-adjust:exact;}</style>
                </head>
                <body>${h}</body>
                </html>
            `));d.close();a.focus();a.print();q.ve(()=>{c.remove()},2E3)}}e.P9=l})(z||(z={}));
(function(e){class l{constructor(){this.table=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,
2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,
2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,
2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,
3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,
1047427035,2932959818,3654703836,1088359270,936918E3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]}async $wa(f){var b=[],a=0,c=0,d=[];for(var g in f)f.hasOwnProperty(g)&&d.push(g);for(const k of d){d=this.l6(f[k]);g=await this.pya(d);const m=d.length!==g.length;d={QMa:d.length,u0:this.u0(d),gca:g.length,axa:g,cxa:m?"\b\x00":"\x00\x00",
qc:new Date};g=this.MAa(k,d,a);a+=g.Eda.length+d.gca;c+=g.$ca.length;b.push(g)}f=l.sla+"\x00\x00\x00\x00"+this.Um(b.length,2)+this.Um(b.length,2)+this.Um(c,4)+this.Um(a,4)+this.Um(0,2);a=new h(a+c+f.length);for(c=0;c<b.length;c++)a.append(b[c].Eda),a.append(b[c].bxa.axa);for(c=0;c<b.length;c++)a.append(b[c].$ca);a.append(f);return a.getData()}async pya(f){try{if(void 0!==window.CompressionStream){const b=(new Response(f)).body.pipeThrough(new window.CompressionStream("deflate-raw")),a=await (new Response(b)).arrayBuffer();
return new Uint8Array(a)}return f}catch(b){return f}}u0(f){var b=-1;for(var a=0,c=f.length;a<c;a++){var d=f[a];d=(b^d)&255;d=this.table[d];b=b>>>8^d}return b^-1}Um(f,b){for(var a="",c=0;c<b;c++)a+=String.fromCharCode(f&255),f>>>=8;return a}MAa(f,b,a){var c=b.qc,d=c.getHours();d=d<<6|c.getMinutes();d=d<<5|c.getSeconds()/2;var g=c.getFullYear()-1980;g=g<<4|c.getMonth()+1;g=g<<5|c.getDate();c="\n\x00\x00\x00"+b.cxa;c+=this.Um(d,2);c+=this.Um(g,2);c+=this.Um(b.u0,4);c+=this.Um(b.gca,4);c+=this.Um(b.QMa,
4);c+=this.Um(f.length,2);c+=this.Um(0,2);return{Eda:l.Foa+c+f,$ca:l.tla+this.Um(20,2)+c+this.Um(0,2)+"\x00\x00\x00\x00"+this.Um(0,4)+this.Um(a,4)+f,bxa:b}}l6(f){var b=this.uxa(f),a=f.length,c=new Uint8Array(b),d,g=0;for(d=0;g<b;d++){var k=f.charCodeAt(d);if(55296===(k&64512)&&d+1<a){var m=f.charCodeAt(d+1);56320===(m&64512)&&(k=65536+(k-55296<<10)+(m-56320),d++)}128>k?c[g++]=k:(2048>k?c[g++]=192|k>>>6:(65536>k?c[g++]=224|k>>>12:(c[g++]=240|k>>>18,c[g++]=128|k>>>12&63),c[g++]=128|k>>>6&63),c[g++]=
128|k&63)}return c}uxa(f){for(var b=0,a=f.length,c,d,g=0;g<a;g++)c=f.charCodeAt(g),55296===(c&64512)&&g+1<a&&(d=f.charCodeAt(g+1),56320===(d&64512)&&(c=65536+(c-55296<<10)+(d-56320),g++)),b+=128>c?1:2048>c?2:65536>c?3:4;return b}}l.Foa="PK\u0003\u0004";l.tla="PK\u0001\u0002";l.sla="PK\u0005\u0006";e.Yna=l;class h{constructor(f){this.data=new Uint8Array(f);this.index=0}append(f){0!==f.length&&(f=f instanceof Uint8Array?f:this.l6(f),this.data.set(f,this.index),this.index+=f.length)}getData(){return this.data}l6(f){for(var b=
new Uint8Array(f.length),a=0;a<f.length;++a)b[a]=f.charCodeAt(a)&255;return b}}})(z||(z={}));
(function(e){function l(){!1!==e.V2&&(0!==f.length&&f.forEach(c=>{var d=c.values[0];"string"===typeof d&&"[!]"===d.substr(0,3)&&(d=JSON.parse(d.substr(3)));h(d);if(1<c.values.length)for(var g=1;g<c.values.length;g++)d=c.values[g],"string"===typeof d&&"[!]"===d.substr(0,3)&&(d=JSON.parse(d.substr(3))),h(d)}),f=[],a())}function h(c){return"string"===typeof c&&"[Stack trace]"===c.substr(0,13)}e.V2=!1;var f=[],b,a=()=>{!1!==e.V2&&(b&&e.sr(b),b=e.ve(l,1E3))};a();e.debug=function(...c){if(!1!==e.V2){for(var d=
[],g=0;g<c.length;g++)if("object"===typeof c[g])try{d[g]="[!]"+JSON.stringify(c[g])}catch(k){d[g]="[Object]"}else d[g]=c[g];f.push({time:u.bg(),values:d})}};e.FQa=l;e.OQa=function(){var c=Error();return c&&c.stack?"[Stack trace] "+c.stack.substr(79):""}})(q||(q={}));(function(e){e.Va=function(h,f="",b=l.nk,a=null,c=null,d=!1){e.K.aP.R().ap(h,f,b,a,c,d)};class l{}l.nk="alert";l.mn="confirmation";l.xa="error";l.OP="info";e.ob=l})(q||(q={}));
(function(e){e.PMa=function(l=null){e.K.Gqa.R().ap("Please enter group name:",l)}})(q||(q={}));(function(e){e.Ca=function(l=!0,h,f,b,a){e.K.Fqa.R().show(l,h,f,b,a)}})(q||(q={}));
(function(e){(function(l){class h extends w.Mh{constructor(){super();if(null!=h.instance)throw Error("Singleton");this.ja=e.u.Ma.R();this.Fa=new l.Xb.tra;this.eJ=e.u.external.Hb.mj.u$.R();this.vba=e.u.external.jc.O6.R()}static R(){null==this.instance&&(this.instance=new h);return this.instance}RD(f){this.Kb=f;h.id=f.id?f.id:"";l.Za.CLa(f);l.B.pB.R().reset();e.K.Y.W.ne.Lw=f.customizeCell;e.K.Dd.Gv.YC=f.customizeChartElement;e.K.Y.mP.YL=f.customizeContextMenu;e.u.external.jc.SA.XL=f.customizeAPIRequest;
e.K.qd.vp.rT=f.sortFieldsList;const b=new e.Vna(location.search);if(b.has("flexmonsterreport")){const a=this.faa(f);a?this.vba.gFa("string"===typeof a?{url:a.toLowerCase(),hp:!1}:a,b.get("flexmonsterreport"),c=>{void 0!==c&&(f.report=c);this.Fa.RD(f)}):(e.Va(e.P.bind(l.B.j.k9,"The URL to the server hasn't been found."),l.B.j.xa,e.ob.xa),console.error("Can't load the shared file. The URL to the server hasn't been found."),this.Fa.RD(f))}else this.Fa.RD(f)}faa(f){return f.shareReportConnection||f.report&&
(f.report.shareReportConnection||f.report.dataSource&&f.report.dataSource.url||f.report.url)||f.url||void 0}open(){this.Fa.open()}load(f,b){this.Fa.load(f,b)}save(f,b=null,a,c,d=!1){return this.Fa.save(f,b,a,c,d)}Qx(f){this.Fa.Qx(f)}Qs(f={}){return this.Fa.Qs(f)}MW(f){f=l.hb.Yv.xb(l.hb.Yv.um(f));l.size.wd.clear();l.size.wd.L_(f);this.refresh();this.cb()}QH(){return l.size.wd.QH().Sa(this.ja.qa.kka())}clear(f=!1){this.Fa&&this.Fa.clear(f)}Pba(f){var b={};e.v(f.dataSourceType)||(b.dataSourceType=f.dataSourceType);
e.v(f.type)||(b.dataSourceType=f.type);e.v(f.proxyUrl)||(b.proxyUrl=f.proxyUrl);e.v(f.dataSourceInfo)||(b.dataSourceInfo=f.dataSourceInfo);e.v(f.catalog)||(b.catalog=f.catalog);e.v(f.cube)||(b.cube=f.cube);e.v(f.subquery)||(b.subquery=f.subquery);e.v(f.localeIdentifier)||(b.localeIdentifier=f.localeIdentifier);e.v(f.effectiveUserName)||(b.effectiveUserName=f.effectiveUserName);e.v(f.customData)||(b.customData=f.customData);e.v(f.filename)||(b.filename=f.filename);e.v(f.requestHeader)||(b.requestHeaders=
f.requestHeader);e.v(f.requestHeaders)||(b.requestHeaders=f.requestHeaders);e.v(f.fieldSeparator)||(b.fieldSeparator=f.fieldSeparator);e.v(f.thousandSeparator)||(b.thousandsSeparator=f.thousandSeparator);e.v(f.thousandsSeparator)||(b.thousandsSeparator=f.thousandsSeparator);e.v(f.recordsetDelimiter)||(b.recordsetDelimiter=f.recordsetDelimiter);e.v(f.browseForFile)||(b.browseForFile=f.browseForFile);e.v(f.data)||(b.data=f.data);e.v(f.binary)||(b.binary=f.binary);e.v(f.ignoreQuotedLineBreaks)||(b.ignoreQuotedLineBreaks=
f.ignoreQuotedLineBreaks);e.v(f.roles)||(b.roles=f.roles);e.v(f.hash)||(b.hash=f.hash);e.v(f.username)||(b.username=f.username);e.v(f.password)||(b.password=f.password);e.v(f.host)||(b.host=f.host);e.v(f.node)||(b.node=f.node);e.v(f.index)||(b.index=f.index);e.v(f.mapping)||(b.mapping=f.mapping);e.v(f.useStreamLoader)||(b.useStreamLoader=f.useStreamLoader);e.v(f.url)||(b.url=f.url);e.v(f.withCredentials)||(b.withCredentials=f.withCredentials);return b}YG(f){this.Fa.YG(this.Pba(f))}Wd(f,b){b.partial?
this.Fa.VMa(f.data,b):this.Fa.Wd(this.Pba(f),b)}getData(f,b,a){if(l.Ea.xc.Vp||l.Ea.xc.wq||l.Ea.xc.Zy)if(null!=a&&(e.Cg.instance.on("update",function(){e.Cg.instance.getData(f,a)}),this.N(l.oc.H8.A8,function(){e.Cg.instance.getData(f,a)})),null!=f&&null!=f.slice){var c=f.slice instanceof l.hb.vo?f.slice:l.hb.vo.xb(f.slice);l.SD.QP.R().kLa(c,b)}else c=l.SD.QP.R().getData(),l.SD.QP.R().bda(b,c);else e.Va(l.Ea.ca.I(l.Ea.ca.T_),l.Ea.ca.I(l.Ea.ca.gE))}H1(){return l.va.nn.dCa()}L1(f){return(f=l.va.nn.get(f))?
f.Sa():null}$R(f){l.va.nn.add(l.va.W.E7.xb(f))}kW(f){l.va.nn.remove(f)}jW(){l.va.nn.n5()}lu(f){this.ja.lu(f)}qA(f){this.ja.qA(f)}DE(){this.ja.DE()}mT(f=!0,b="all"){this.ja.iD(!0,f,b);e.u.Te.Qi.dispose();this.refresh();this.cb()}CS(){this.ja.iD(!1,!1);this.Ya(e.u.Dy.NY);e.u.Te.Qi.dispose();this.refresh();this.Ya("reset_grid");this.cb()}Cq(f){null!=f.chartActiveMeasure&&delete f.chartActiveMeasure;null!=f.chartActiveTupleIndex&&delete f.chartActiveTupleIndex;null!=f.zoom&&delete f.zoom;f.flatView&&
this.Fa.ga.Ec&&this.Fa.ga.Aa!==e.u.i.ra.API&&delete f.flatView;if(!e.v(f.useOlapFormatting)&&this.Fa.ga.Ec&&l.C.F.co!=f.useOlapFormatting){var b=this.Qs({withDefaults:!0});b.options.jE(f);this.Qx({report:b})}else{b=l.C.F.sc;const a=l.C.F.TE,c=l.C.F.me;l.C.F.Cq(l.C.Oq.xb(f),!1);a!=l.C.F.TE&&this.Fa&&this.Fa.ga&&!this.Fa.ga.Ec&&this.J.load();!e.v(this.Fa)&&this.Fa.ga.Aa==e.u.i.ra.API&&(b!=l.C.F.sc||l.C.F.sc&&c!=l.C.F.me)&&(b=this.Qs({withDefaults:!0}),b.options.jE(f),e.v(this.Fa.ga.tc)||(b.la.tc=this.Fa.ga.tc),
this.clear(!0),this.Qx({report:b}))}}print(f){l.kt.OF.R().print(f)}Gk(f,b=null,a=null){l.Dc.lo.Gk(f,b,a)}ID(f,b){return this.eJ.ID(f,b)}SH(f,b){this.eJ.rea(f,b)}aN(f,b,a){this.eJ.WAa(f,b,a)}bN(f,b,a,c){this.eJ.mBa(f,b,a,c)}yS(f,b,a,c,d){this.eJ.vS(f,b,a,c,d)}async rO(f){return new Promise((b,a)=>{var c=d=>{let g;e.v(d)?this.Fa.ga&&this.Fa.ga.Aa==e.u.i.ra.API&&(g=this.Fa.ga.$w()):g=new e.u.external.jc.SA(d);e.v(g)&&(d=this.faa(this.Kb),e.v(d)||("string"===typeof d&&(d={url:d}),g=new e.u.external.jc.SA(d)));
g?this.vba.rO(g,this.Qs()).then(k=>{b(k)}):(e.Va(e.P.bind(l.B.j.l9,"Can't find the valid connection options"),l.B.j.xa,e.ob.xa),a("Can't find the valid connection options"))};null==this.ja||null==this.ja.O?this.Fa.N(l.Xb.Vc.si,()=>c(f)):c(f)})}Ym(f){return null==this.ja||null==this.ja.O?[]:(f=this.ja.O.vc(!1).getItem(f))&&f.filter.Fh?f.filter.Sa():null}Il(f,b){f=e.u.ze.bh(f);if(f=this.ja.O.vc(!1).getItem(f)){f.xu();f.filter=l.hb.lB.xb(b,f);if(f.filter.ji&&(f.filter.query.va==e.u.i.Wb.Rj||f.filter.query.va==
e.u.i.Wb.pi))if(l.C.F.sc)this.ja.qa.$g=[{sort:f.filter.query.va==e.u.i.Wb.Rj?e.u.i.Ba.Nc:e.u.i.Ba.hc,measure:this.ja.O.fd(f.filter.measure.A)}];else{b=this.ja.qa.td(e.u.i.ha.Ia);var a=this.ja.qa.td(e.u.i.ha.Oa);b=-1!=b.Na.indexOf(f.A)?a:b;b.jn=[];b.ig=f.filter.query.va==e.u.i.Wb.Rj?e.u.i.Ba.Nc:e.u.i.Ba.hc;b.Mf=this.ja.qa.Gi(f.filter.measure)}this.Ya("reset_grid");this.ja.filter();this.cb()}}xu(f){f=e.u.ze.bh(f);if(f=this.ja.O.vc(!1).getItem(f))f.xu(),this.ja.select(),this.cb()}MH(){if(null==this.ja||
null==this.ja.qa)return[];const f=[],b=this.ja.qa.rows;for(let a=0;a<b.length;a++)f.push(b.fa(a).lj());return f}AH(){if(null==this.ja||null==this.ja.qa)return[];const f=[],b=this.ja.qa.Ka;for(let a=0;a<b.length;a++)f.push(b.fa(a).lj());return f}CD(){if(null==this.ja||null==this.ja.qa)return[];const f=[],b=this.ja.qa.qb;for(let a=0;a<b.length;a++)f.push(b.fa(a).lj());return f}gd(){if(null==this.ja||null==this.ja.qa)return[];var f=[];if(l.C.F.sc){for(var b=this.ja.qa.flatten(),a,c=0;c<b.length;c++)a=
b.fa(c),(a=this.ja.O.nf(a.A))&&f.push(a.lj());b=this.ja.qa.gd();for(c=0;c<b.length;c++)b[c].Qa&&f.push(b[c].lj())}else for(b=this.ja.qa.gd(),c=0;c<b.length;c++)f.push(b[c].lj());return f}Os(){if(null==this.ja||null==this.ja.O)return[];for(var f=[],b=this.ja.O.Da,a=0;a<b.length;a++)f.push(b.fa(a).lj());return f}nW(f){this.ja.O.vc(!1).getItem(f.name).label=f.caption}tH(){if(null==this.ja||null==this.ja.O)return[];const f=[],b=this.ja.O.vc(!1);for(let a=0;a<b.length;a++)f.push(b.fa(a).lj());return f}YW(f,
b,a,c){const d="string"===typeof c?new l.hb.oh(e.u.ze.bh(c)):l.hb.oh.xb(c);f=this.ja.qa.axes.getItem(f);if(null!=f){if(b===e.u.i.Ba.ed)f.KC();else{if(null==c||null==d)return;if(c=this.ja.qa.Gi(d))f.ig=b,f.jn=a,f.Mf=c}this.ja.sort();this.cb()}}SE(f,b){f=e.u.ze.bh(f);if(f=this.ja.O.vc(!1).getItem(f)){var a=this.ja.qa.axes.getItem(e.u.i.ha.Oa),c=this.ja.qa.axes.getItem(e.u.i.ha.Ia);-1!=a.Na.indexOf(f.A)?c.KC():-1!=c.Na.indexOf(f.A)&&a.KC();f.hg=b;l.C.F.sc&&(this.ja.qa.$g=[{sort:b,measure:this.ja.O.nf(f.A)}]);
this.cb()}this.ja.select()}EW(f){this.ja.qa.$g=e.u.O.Tq.Rda(f,this.ja.qa.Yc);this.cb();this.ja.select()}cb(){this.Ya(l.Xb.Vc.rk,null,"")}VW(f){e.K.qd.vp.rT=f}AO(f,b){f=e.u.ze.bh(f);if(f=this.ja.O.vc(!1).getItem(f))f.Xs=b;this.Fa.mc&&this.ja.select()}g2(f){if(null==this.ja||null==this.ja.O)return"";f=this.ja.O.vc(!1).getItem(f);return null!=f?f.hg:""}S1(){return null==this.ja||null==this.ja.O?null:this.ja.qa.Sda()}Hi(f,b,a){if(null==this.ja||null==this.ja.O)return[];var c=[],d=this.ja.O.vc(!1).getItem(f);
e.v(b)&&(b="");d&&(this.Fa.ga.Ec?(f=""==b?d.pd:d.Ib(b),null==a||null==f&&""!=b||(f&&f.children&&0<f.children.length&&!f.Cf?(c=this.KT(d,b),a(c)):this.ja.Nk(d,f,()=>{c=this.KT(d,b);a(c)}))):(c=this.G1(d.pd),null!=a&&a(c)));return c}c2(f,b){return new Promise((a,c)=>{var d=(g,k)=>{var m=[],n=this.ja.O.vc(!1).getItem(g);e.v(k)&&(k="");if(n){if(this.Fa.ga.Ec)if(g=""===k?n.pd:n.Ib(k),null!=g)if(g&&g.children&&0<g.children.length&&!g.Cf)m=this.KT(n,k),a(m);else{this.ja.Nk(n,g,()=>{m=this.KT(n,k);a(m)});
return}else c(`Member "${k}" is not found!`);else m=this.G1(n.pd);a(m)}else c(`Hierarchy "${g}" is not found!`)};null==this.ja||null==this.ja.O?this.Fa.N(l.Xb.Vc.si,()=>d(f,b)):d(f,b)})}KT(f,b){var a=[];b=""==b?f.pd.children:f.Ib(b).children;for(var c=0;c<b.length;c++){var d=f.za(b[c]),g=d.Sa();g.isLeaf=d.level.yb==d.hierarchy.ua.length-1;g.parentMember=d.parent.dc?d.hierarchy.pd.Fi:d.parent.Fi;d.A!=f.Lm&&a.push(g)}return a}G1(f){for(var b=[],a=f.hierarchy.jk(f,!1),c=0;c<a.length;c++){var d=f.hierarchy.za(a[c]),
g=d.Sa();g.isLeaf=d.level.yb==d.hierarchy.ua.length-1;g.uniqueName=d.Fi;g.parentMember=d.parent.dc?d.hierarchy.pd.Fi:d.parent.Fi;if(1!=d.children.length||d.hierarchy.za(d.children[0]).caption!=l.B.j.Nl)g.children=this.G1(d);b.push(g)}return b}tW(f){this.Fa.ge(e.u.O.Tq.xb(f,e.u.Ma.R().O))}ge(f){this.Fa.ge(f)}gx(){var f=l.C.F.gx(!0,!0).Sa();null!=f.chartActiveMeasure&&delete f.chartActiveMeasure;null!=f.chartActiveTupleIndex&&delete f.chartActiveTupleIndex;return f}Eh(f,b){const a=this.ja&&this.ja.O?
this.ja.O.fd(f):null;b=a&&void 0===b?a.Mm:b;const c=a&&l.C.F.sc&&e.u.i.Ra.wc==a.type;return(a?a.Eh(f,b,c):l.oc.tj.VT()).Sa(!0)}OE(f,b,a){f.hasOwnProperty("name")||(f.name=e.P.zM());try{l.oc.tj.OE(f)}catch(d){e.Va("Can't add format. Component's configuration requires more parameters.");return}try{let d=this.ja.O.fd(b);d&&void 0===a&&l.oc.tj.GI(f.name,d.A,"");d&&d.$===a&&(d.format=f.name,l.oc.tj.GI(f.name,d.A,a),f.label&&(d.label=f.label));if(""!=f.name&&(""==b||null==b))for(var c=0;c<this.ja.O.Da.length;c++)d=
this.ja.O.Da.fa(c),l.oc.tj.GI(f.name,d.A,""),d.format=f.name;const g=this.ja.qa.gd();for(c=0;c<g.length;c++)if(b===g[c].A&&a===g[c].$||void 0===a&&b===g[c].A)g[c].format=f.name,l.oc.tj.GI(f.name,g[c].A,g[c].$),f.label&&(d.label=f.label)}catch(d){e.Va("List of measures is empty. There is nothing to format.");return}this.Ha(new w.ia(l.oc.H8.A8));this.cb()}refresh(){this.ja.filter()}m5(){var f=e.Cg.instance.Qs();e.Cg.instance.clear();e.Cg.instance.Qx(f)}dispose(){e.u.Te.Qi.dispose();e.K.Y.W.ne.Lw=null;
e.K.Dd.Gv.YC=null;e.K.Y.mP.YL=null;e.u.external.jc.SA.XL=null;e.u.Ma.dispose();this.Fa&&this.Fa.dispose();this.eJ=this.J=this.Fa=this.ja=null;h.instance=null}P1(f,b){e.u.external.Ue.Rma.R().V1(f,(a,c)=>{e.Pg(b)&&b(a,c)})}}h.id="flexmonster";l.Wa=h})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){class h{constructor(b,a=null){this.type=b;this.data=a}}l.jd=h;class f extends w.Mh{constructor(){super();if(null!=f.instance)throw Error("Singleton");}static R(){null==f.instance&&(f.instance=new f);return f.instance}static dispose(){f.instance=null}static jka(b){return f.o3(b)?b:""}static o3(b){return-1<f.types.indexOf(b)}N(b,a,c=0){b=f.jka(b);f.o3(b)&&super.N(b,a,c)}rb(b,a){b=f.jka(b);f.o3(b)&&super.rb(b,a)}static CLa(b){for(var a=0;a<f.types.length;a++){var c=f.types[a];
f.BLa(c,b[c])}}static BLa(b,a){if(a){"string"==typeof a&&(a=f.Hea(a));var c=a;b!=f.tX&&b!=f.ly&&b!=f.qp&&b!=f.pX&&(c=function(...d){e.ve(function(){a.apply(null,d)},1)});f.R().N(b,c)}}static Hea(b){var a=window;b=b.split(".");for(var c=b.pop(),d=0;d<b.length;d++){if(null==a)return null;a=a[b[d]]}return a[c]}}f.MF="openingreportfile";f.vy="loadingreportfile";f.ro="reportfileloaded";f.jK="reportfileerror";f.ds="reportfilecancelled";f.DF="loadingdata";f.uJ="dataloaded";f.sJ="dataerror";f.tJ="datafilecancelled";
f.G7="datachanged";f.Z8="loadingolapstructure";f.J9="olapstructureloaded";f.I9="olapstructureerror";f.qK="unauthorizederror";f.zB="runningquery";f.hl="querycomplete";f.Ot="queryerror";f.EF="loadinglocalization";f.FF="localizationloaded";f.UJ="localizationerror";f.si="reportcomplete";f.uQ="reportchange";f.Z7="exportstart";f.lg="exportcomplete";f.M9="printstart";f.xB="printcomplete";f.S9="ready";f.o$="update";f.ly="beforegriddraw";f.qp="aftergriddraw";f.pX="afterchartdraw";f.k7="chartclick";f.j7="cellclick";
f.dP="celldoubleclick";f.sy="filteropen";f.ZX="filterclose";f.zF="fieldslistopen";f.CJ="fieldslistclose";f.C9="numberformatting";f.p7="conditionalformatting";f.tX="beforetoolbarcreated";f.P7="drillthroughopen";f.N7="drillthroughclose";f.types=[f.S9,f.MF,f.vy,f.ro,f.jK,f.ds,f.DF,f.uJ,f.sJ,f.tJ,f.G7,f.Z8,f.J9,f.I9,f.qK,f.zB,f.hl,f.Ot,f.EF,f.FF,f.UJ,f.si,f.uQ,f.M9,f.xB,f.Z7,f.lg,f.o$,f.ly,f.qp,f.pX,f.k7,f.j7,f.dP,f.sy,f.ZX,f.zF,f.CJ,f.C9,f.p7,f.tX,f.P7,f.N7];l.Za=f})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){class h{static valid(f){if(e.v(f)||"number"===typeof f)return!0;f=f.toLowerCase();return-1===f.indexOf("<script")&&-1===f.indexOf("<svg")&&-1===f.indexOf("javascript:")&&-1===f.indexOf("<iframe")&&-1===f.indexOf("<object")&&-1===f.indexOf("expression(")&&-1===f.indexOf("onmouseover")&&-1===f.indexOf("onload=")&&-1===f.indexOf("onerror")}static validate(f,b=!1){return e.P.Ro(f,b)}}l.Tb=h})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){}static R(){null==f.instance&&(f.instance=new f);return f.instance}static dispose(){f.instance=null}getData(){if(l.Ea.xc.Vp||l.Ea.xc.wq||l.Ea.xc.Zy){var b=e.u.Te.Qi.J1(l.C.F.oS);return this.HS(b)}e.Va(l.Ea.ca.I(l.Ea.ca.T_),l.Ea.ca.I(l.Ea.ca.gE))}kLa(b,a){if(l.Ea.xc.Vp||l.Ea.xc.wq||l.Ea.xc.Zy){var c=e.u.Ma.R();if(void 0!=c.ga&&!c.ga.Ec){b=e.u.O.Tq.xb(b,c.O,!0);var d=e.u.local.ZP.clone(c.ta);d.slice=b;d.select();c=new e.u.Te.cna;c.reset();
c.ta=d;c.slice=b;c.load();b=this.HS(c);this.bda(a,b);c.reset()}}else e.Va(l.Ea.ca.I(l.Ea.ca.T_),l.Ea.ca.I(l.Ea.ca.gE))}bda(b,a){try{a.PDa()?b({},a.mH.Sa()):b(a.Sa())}catch(c){console.error(c)}}HS(b){var a=new h.kqa;if(void 0==b.slice)return a;a.slice=b.slice.Sa();a.Ex={caption:l.C.F.Kn,vAmount:b.slice.gd().length,formats:[]};var c=0,d=0;if(b.$i&&!b.kb){var g="on"==l.C.F.Lf||"rows"==l.C.F.Lf?b.Fd-1:b.Fd;var k="on"==l.C.F.Lf||"columns"==l.C.F.Lf?b.Ed-1:b.Ed;a.data=[];var m=[];var n=[];var p={};for(var t=
0;t<b.Da.length;t++){var r=b.Da[t];a.Ex["v"+t+"Name"]=r.caption;var v=l.Wa.R().Eh(r.A,r.$);a.Ex.formats.push(v);r=b.La(m,n,r);p["v"+t]=r}a.data.push(p);for(v=0;v<k;v++)if(m=b.Vn(v),!e.v(m)&&0!=m.length){p={};c=Math.max(c,m.length);n=[];t=b.wb;for(r=0;r<m.length;r++){var y=r;var A=t.fa(y);var C=m[r];C=A.za(C);a.Ex["r"+y+"Name"]=A.caption;var B=this.JT(C);p["r"+y]=B;p[`r${y}_full`]=C.Fi}for(t=0;t<b.Da.length;t++)r=b.Da[t],r=b.La(m,n,r),p["v"+t]=r;a.data.push(p)}for(var H=0;H<g;H++)if(n=b.ak(H),!e.v(n)&&
0!=n.length){p={};m=[];d=Math.max(d,n.length);t=b.Fb;for(r=0;r<n.length;r++)B=r,A=t.fa(B),C=n[r],C=A.za(C),a.Ex["c"+B+"Name"]=A.caption,A=this.JT(C),p["c"+B]=A,p[`c${B}_full`]=C.Fi;for(t=0;t<b.Da.length;t++)r=b.Da[t],r=b.La(m,n,r),p["v"+t]=r;a.data.push(p)}var M=!1,Y=u.bg();if(0<b.Fb.length&&0<b.wb.length)for(v=0;v<k;v++){m=b.Vn(v);c=Math.max(c,m.length);for(H=0;H<g;H++){if(1E4<u.bg()-Y){M=!0;break}n=b.ak(H);d=Math.max(d,n.length);p={};t=b.wb;for(r=0;r<m.length;r++)y=r,A=t.fa(y),C=m[r],C=A.za(C),
B=this.JT(C),p["r"+y]=B,p[`r${y}_full`]=C.Fi;t=b.Fb;for(r=0;r<n.length;r++)B=r,A=t.fa(B),C=n[r],C=A.za(C),A=this.JT(C),p["c"+B]=A,p[`c${y}_full`]=C.Fi;for(t=0;t<b.Da.length;t++)r=b.Da[t],r=b.La(m,n,r),p["v"+t]=r;a.data.push(p)}if(M)break}}M?(a.data=[],a.Ex={},a.mH=new h.bna,a.mH.Ed=k,a.mH.Fd=g,a.mH.errorMessage=l.B.j.j9+". "+l.B.j.i9):(a.Ex.rAmount=c,a.Ex.cAmount=d);return a}JT(b){return b.level.type==e.u.i.ib.jb||b.level.type==e.u.i.ib.ec?b.nc:b.level.type==e.u.i.ib.Mc?b.nc:b.level.type==e.u.i.ib.pn?
isNaN(parseFloat(b.caption))?b.caption:parseFloat(b.caption):b.caption}}h.QP=f})(l.SD||(l.SD={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.slice={};this.Ex={};this.data=[];this.mH=null}Sa(){var a={};a.meta=this.Ex;a.data=this.data;return a}PDa(){return null!=this.mH}}h.kqa=f;class b{constructor(){this.errorMessage=null}Sa(){var a={};a.errorMessage=this.errorMessage;a.dataH=this.Ed;a.dataW=this.Fd;return a}}h.bna=b})(l.SD||(l.SD={}))})(e.model||(e.model={}))})(q||(q={}));var la=q||(q={}),ma=la.model||(la.model={}),na=ma.B||(ma.B={});class oa{}oa.JX="Flexmonster Pivot Table";
na.j=oa;
(function(e){(function(l){(function(h){class f{load(b,a,c){this.Cb=a;this.Xa=c;this.xhr=new XMLHttpRequest;this.xhr.open("GET",b,!0);this.xhr.onerror=d=>this.Rb(d);this.xhr.onreadystatechange=d=>this.tv(d);this.xhr.send()}tv(){null!=this.xhr&&4===this.xhr.readyState&&(200===this.xhr.status?this.SI():this.Xa())}SI(){this.xhr.response&&null==this.xhr.response.error?null!=this.Cb&&this.Jj(this.xhr.response):this.Xa&&this.Xa()}Rb(){null!=this.Xa&&this.Xa()}Jj(b){try{var a=JSON.parse(b);this.Cb(h.XP.xb(a))}catch(c){console.error(c),this.Xa()}}close(){null!=
this.xhr&&(this.xhr.onprogress=null,this.xhr.onreadystatechange=null,this.xhr.abort())}}h.Hoa=f})(l.B||(l.B={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){if(null!=f.instance)throw Error("Singleton");this.Gu=new h.XP;this.Gu.NE()}static R(){null==f.instance&&(f.instance=new f);return f.instance}static dispose(){null!==this.aA&&(this.aA.close(),this.aA=null);h.j.bs=null;h.j.xy=null;h.j.HB=null;h.j.IB=null;h.j.R9=null;f.instance.Gu=null;f.instance.lU=null;f.instance.kI=null;f.instance=null}updateLabels(){h.j.n8=this.I("fieldsList/flatHierarchyBox");h.j.iB=this.I("fieldsList/values");h.j.hB=
this.I("fieldsList/addCalculatedMeasure");h.j.gna=this.I("fieldsList/expandAll");h.j.m8=this.I("fieldsList/collapseAll");h.j.o8=this.I("fieldsList/formulasGroupName");h.j.Jv=this.I("fieldsList/allFields");h.j.AF=this.I("fieldsList/rows");h.j.yF=this.I("fieldsList/columns");h.j.$r=this.I("fieldsList/filters");h.j.py=this.I("fieldsList/dropField");h.j.qy=this.I("fieldsList/title");h.j.q8=this.I("fieldsList/subtitle");h.j.zP=this.I("fieldsList/search");h.j.p8=this.I("fieldsList/searchClose");h.j.CJ=
this.I("fieldsList/close");h.j.zF=this.I("fieldsList/open");h.j.fna=this.I("fieldsList/actions/select");h.j.WX=this.I("fieldsList/actions/deselect");h.j.ena=this.I("fieldsList/actions/expand");h.j.dna=this.I("fieldsList/actions/collapse");h.j.j8=this.I("fieldsList/actions/move_to_rows");h.j.h8=this.I("fieldsList/actions/move_to_columns");h.j.i8=this.I("fieldsList/actions/move_to_filters");h.j.k8=this.I("fieldsList/actions/move_to_values");h.j.l8=this.I("fieldsList/actions/move_up");h.j.g8=this.I("fieldsList/actions/move_down");
h.j.XX=this.I("fieldsList/actions/edit_calculated_value");h.j.VX=this.I("fieldsList/actions/aggregation");h.j.FJ=this.I("filter/all");h.j.LJ=this.I("filter/multipleItems");h.j.Lv=this.I("filter/selectAll");h.j.Lna=this.I("filter/selectAllResults");h.j.Ena=this.I("filter/top");h.j.vna=this.I("filter/bottom");h.j.r8=this.I("filter/ascSort");h.j.s8=this.I("filter/ascSortTooltip");h.j.v8=this.I("filter/descSort");h.j.w8=this.I("filter/descSortTooltip");h.j.$X=this.I("filter/search");h.j.ina=this.I("filter/amountSelected");
h.j.hna=this.I("filter/amountFound");h.j.Mna=this.I("filter/sort");h.j.jB=this.I("filter/filterBy");h.j.HP=this.I("filter/labelsFilter");h.j.x8=this.I("filter/numbersFilter");h.j.z8=this.I("filter/valuesFilter");h.j.u8=this.I("filter/datesFilter");h.j.y8=this.I("filter/timeFilter");h.j.HJ=this.I("filter/equal");h.j.JJ=this.I("filter/notEqual");h.j.sna=this.I("filter/before");h.j.tna=this.I("filter/beforeEqual");h.j.qna=this.I("filter/after");h.j.rna=this.I("filter/afterEqual");h.j.GJ=this.I("filter/between");
h.j.IJ=this.I("filter/notBetween");h.j.zna=this.I("filter/last");h.j.xna=this.I("filter/current");h.j.Ana=this.I("filter/next");h.j.una=this.I("filter/begin");h.j.Bna=this.I("filter/notBegin");h.j.yna=this.I("filter/end");h.j.Dna=this.I("filter/notEnd");h.j.wna=this.I("filter/contain");h.j.Cna=this.I("filter/notContain");h.j.DP=this.I("filter/greater");h.j.EP=this.I("filter/greaterEqual");h.j.FP=this.I("filter/less");h.j.GP=this.I("filter/lessEqual");h.j.Tna=this.I("filter/seconds");h.j.Rna=this.I("filter/minutes");
h.j.Pna=this.I("filter/hours");h.j.Nna=this.I("filter/days");h.j.Una=this.I("filter/secondsFull");h.j.Sna=this.I("filter/minutesFull");h.j.Qna=this.I("filter/hoursFull");h.j.Ona=this.I("filter/daysFull");h.j.Gna=this.I("filter/day");h.j.Jna=this.I("filter/week");h.j.Hna=this.I("filter/month");h.j.Ina=this.I("filter/quarter");h.j.Kna=this.I("filter/year");h.j.jna=this.I("filter/clearDateFilter");h.j.kna=this.I("filter/clearLabelFilter");h.j.lna=this.I("filter/clearNumberFilter");h.j.mna=this.I("filter/clearTimeFilter");
h.j.nna=this.I("filter/clearValueFilter");h.j.Fna=this.I("filter/noAvailableValues");h.j.CP=this.I("filter/condition");h.j.kB=this.I("filter/conditionValue");h.j.ona=this.I("filter/conditionMeasure");h.j.pna=this.I("filter/conditionTimeInterval");h.j.t8=this.I("filter/datepickerTime");h.j.Gma=this.I("drillThrough/title");h.j.Fma=this.I("drillThrough/row");h.j.Ema=this.I("drillThrough/column");h.j.Hma=this.I("drillThrough/value");h.j.AX=this.I("calculatedView/title");h.j.VNa=this.I("calculatedView/measureBox");
h.j.zX=this.I("calculatedView/measureName");h.j.cP=this.I("calculatedView/formula");h.j.g7=this.I("calculatedView/formulaPrompt");h.j.f7=this.I("calculatedView/calculateIndividualValues");h.j.i7=this.I("calculatedView/removeValue");h.j.rla=this.I("calculatedView/removeValueTitle");h.j.qla=this.I("calculatedView/removeValueMessage");h.j.pla=this.I("calculatedView/allValues");h.j.ola=this.I("calculatedView/actions/add_to_formula");h.j.DNa=this.I("calculatedView/func/add");h.j.UNa=this.I("calculatedView/func/subtract");
h.j.ONa=this.I("calculatedView/func/multiply");h.j.FNa=this.I("calculatedView/func/divide");h.j.RNa=this.I("calculatedView/func/power");h.j.GNa=this.I("calculatedView/func/equal");h.j.KNa=this.I("calculatedView/func/less");h.j.LNa=this.I("calculatedView/func/less_equal");h.j.HNa=this.I("calculatedView/func/greater");h.j.INa=this.I("calculatedView/func/greater_equal");h.j.TNa=this.I("calculatedView/func/strict_equal");h.j.PNa=this.I("calculatedView/func/not_equal");h.j.QNa=this.I("calculatedView/func/or");
h.j.ENa=this.I("calculatedView/func/and");h.j.JNa=this.I("calculatedView/func/if");h.j.CNa=this.I("calculatedView/func/abs");h.j.SNa=this.I("calculatedView/func/round");h.j.NNa=this.I("calculatedView/func/min");h.j.MNa=this.I("calculatedView/func/max");h.j.fY=this.I("grid/total");h.j.ioa=this.I("grid/totals");h.j.eY=this.I("grid/grandTotal");h.j.Nl=this.I("grid/blankMember");h.j.IX=this.I("grid/dateNullCaption");h.j.jo=this.I("grid/dateInvalidCaption");h.j.$ma=this.I("grid/reportInformation");h.j.wla=
this.I("charts/showLegend");h.j.ula=this.I("charts/hideLegend");h.j.vla=this.I("charts/selectMeasures");h.j.l7=this.I("charts/noDataTitle");h.j.xla=this.I("charts/noMeasuresTitle");h.j.yla=this.I("charts/bigDataSetWarning");h.j.LQ=this.I("tooltips/fieldList");h.j.j$=this.I("tooltips/selectAggregation");h.j.h$=this.I("tooltips/editCalculatedMeasure");h.j.Gra=this.I("tooltips/row");h.j.Fra=this.I("tooltips/headerResize");h.j.i$=this.I("tooltips/headerFit");h.j.EB=this.I("tooltips/filterIcon");h.j.UY=
this.I("tooltips/filtered");h.j.KQ=this.I("tooltips/expandIcon");h.j.JQ=this.I("tooltips/collapseIcon");h.j.Dra=this.I("tooltips/drillDown");h.j.Era=this.I("tooltips/drillUp");h.j.Jra=this.I("tooltips/sortIcon");h.j.Ira=this.I("tooltips/sortedDescIcon");h.j.Hra=this.I("tooltips/sortedAscIcon");h.j.Kra=this.I("tooltips/unsortedIcon");h.j.Cra=this.I("tooltips/close");h.j.d$=this.I("aggregations/sum/caption");h.j.oK=this.I("aggregations/sum/totalCaption");h.j.lra=this.I("aggregations/sum/grandTotalCaption");
h.j.w7=this.I("aggregations/count/caption");h.j.fP=this.I("aggregations/count/totalCaption");h.j.bma=this.I("aggregations/count/grandTotalCaption");h.j.Ama=this.I("aggregations/distinctCount/caption");h.j.pP=this.I("aggregations/distinctCount/totalCaption");h.j.Bma=this.I("aggregations/distinctCount/grandTotalCaption");h.j.Mqa=this.I("aggregations/runningTotalsOfColumn/caption");h.j.vQ=this.I("aggregations/runningTotalsOfColumn/totalCaption");h.j.Nqa=this.I("aggregations/runningTotalsOfColumn/grandTotalCaption");
h.j.Oqa=this.I("aggregations/runningTotalsOfRow/caption");h.j.xQ=this.I("aggregations/runningTotalsOfRow/totalCaption");h.j.Pqa=this.I("aggregations/runningTotalsOfRow/grandTotalCaption");h.j.wma=this.I("aggregations/differenceOfColumn/caption");h.j.wJ=this.I("aggregations/differenceOfColumn/totalCaption");h.j.xma=this.I("aggregations/differenceOfColumn/grandTotalCaption");h.j.yma=this.I("aggregations/differenceOfRow/caption");h.j.xJ=this.I("aggregations/differenceOfRow/totalCaption");h.j.zma=this.I("aggregations/differenceOfRow/grandTotalCaption");
h.j.oqa=this.I("aggregations/percentDifferenceOfColumn/caption");h.j.dK=this.I("aggregations/percentDifferenceOfColumn/totalCaption");h.j.pqa=this.I("aggregations/percentDifferenceOfColumn/grandTotalCaption");h.j.qqa=this.I("aggregations/percentDifferenceOfRow/caption");h.j.eK=this.I("aggregations/percentDifferenceOfRow/totalCaption");h.j.rqa=this.I("aggregations/percentDifferenceOfRow/grandTotalCaption");h.j.T6=this.I("aggregations/average/caption");h.j.ZO=this.I("aggregations/average/totalCaption");
h.j.cla=this.I("aggregations/average/grandTotalCaption");h.j.jpa=this.I("aggregations/median/caption");h.j.nY=this.I("aggregations/median/totalCaption");h.j.kpa=this.I("aggregations/median/grandTotalCaption");h.j.gra=this.I("aggregations/stdevp/caption");h.j.CQ=this.I("aggregations/stdevp/totalCaption");h.j.hra=this.I("aggregations/stdevp/grandTotalCaption");h.j.ira=this.I("aggregations/stdevs/caption");h.j.DQ=this.I("aggregations/stdevs/totalCaption");h.j.jra=this.I("aggregations/stdevs/grandTotalCaption");
h.j.zqa=this.I("aggregations/product/caption");h.j.tQ=this.I("aggregations/product/totalCaption");h.j.Aqa=this.I("aggregations/product/grandTotalCaption");h.j.Opa=this.I("aggregations/min/caption");h.j.mQ=this.I("aggregations/min/totalCaption");h.j.Ppa=this.I("aggregations/min/grandTotalCaption");h.j.Poa=this.I("aggregations/max/caption");h.j.dQ=this.I("aggregations/max/totalCaption");h.j.Qoa=this.I("aggregations/max/grandTotalCaption");h.j.lqa=this.I("aggregations/percent/caption");h.j.iK=this.I("aggregations/percent/totalCaption");
h.j.sqa=this.I("aggregations/percent/grandTotalCaption");h.j.mqa=this.I("aggregations/percentOfColumn/caption");h.j.cK=this.I("aggregations/percentOfColumn/totalCaption");h.j.nqa=this.I("aggregations/percentOfColumn/grandTotalCaption");h.j.xqa=this.I("aggregations/percentOfRow/caption");h.j.hK=this.I("aggregations/percentOfRow/totalCaption");h.j.yqa=this.I("aggregations/percentOfRow/grandTotalCaption");h.j.tqa=this.I("aggregations/percentOfParentColumnTotal/caption");h.j.fK=this.I("aggregations/percentOfParentColumnTotal/totalCaption");
h.j.uqa=this.I("aggregations/percentOfParentColumnTotal/grandTotalCaption");h.j.vqa=this.I("aggregations/percentOfParentRowTotal/caption");h.j.gK=this.I("aggregations/percentOfParentRowTotal/totalCaption");h.j.wqa=this.I("aggregations/percentOfParentRowTotal/grandTotalCaption");h.j.ooa=this.I("aggregations/index/caption");h.j.QJ=this.I("aggregations/index/totalCaption");h.j.poa=this.I("aggregations/index/grandTotalCaption");h.j.Zpa=this.I("aggregations/none/caption");h.j.xa=this.I("messages/error");
h.j.s$=this.I("messages/warning");h.j.VP=this.I("messages/limitation");h.j.ila=this.I("messages/browse");h.j.mn=this.I("messages/confirmation");h.j.vpa=this.I("messages/api/incorrectUrl");h.j.upa=this.I("messages/api/errorZeroStatus");h.j.npa=this.I("messages/api/error404Status");h.j.mpa=this.I("messages/api/error400Status");h.j.opa=this.I("messages/api/error500Status");h.j.h9=this.I("messages/api/selectRequestError");h.j.ppa=this.I("messages/api/selectDrillThroughError");h.j.EPa=this.I("messages/api/clientOutdated");
h.j.tpa=this.I("messages/api/serverOutdated");h.j.spa=this.I("messages/api/fieldsRequestError");h.j.oY=this.I("messages/api/membersRequestError");h.j.rpa=this.I("messages/api/expandDataError");h.j.qpa=this.I("messages/api/drillDataError");h.j.pY=this.I("messages/api/noGridChartsMode");h.j.IF=this.I("messages/loading");h.j.mg=this.I("messages/loadingData");h.j.tY=this.I("messages/loadingMapping");h.j.Jt=this.I("messages/waiting");h.j.uY=this.I("messages/progress");h.j.JF=this.I("messages/progressKnown");
h.j.Am=this.I("messages/progressUnknown");h.j.Ipa=this.I("messages/sortingMembers");h.j.fQ=this.I("messages/analyzing");h.j.gQ=this.I("messages/analyzingProgress");h.j.g9=this.I("messages/analyzingRecords");h.j.lpa=this.I("messages/analyzingRecordsWithAmount");h.j.u9=this.I("messages/saving");h.j.YJ=this.I("messages/loadingDimensions");h.j.rY=this.I("messages/loadingHierarchies");h.j.jQ=this.I("messages/loadingMeasures");h.j.r9=this.I("messages/loadingKPIs");h.j.zm=this.I("messages/loadingMembers");
h.j.sY=this.I("messages/loadingLevels");h.j.s9=this.I("messages/loadingProperties");h.j.wy=this.I("messages/exportProgress");h.j.oo=this.I("messages/exportError");h.j.KF=this.I("messages/pleaseWait");h.j.t9=this.I("messages/pagesWereGenerated");h.j.v9=this.I("messages/uploading");h.j.hQ=this.I("messages/cantSaveFile");h.j.xpa=this.I("messages/contentTypeMessageJson");h.j.WJ=this.I("messages/cantSaveFileNoDetails");h.j.Gpa=this.I("messages/saveReportToFile");h.j.Fpa=this.I("messages/saveReportForSharing");
h.j.l9=this.I("messages/cantSaveReportForSharing");h.j.k9=this.I("messages/cantLoadSharedReport");h.j.HF=this.I("messages/invalidDataSource");h.j.ypa=this.I("messages/dataStreamError");h.j.ZJ=this.I("messages/unableToOpenFile");h.j.iQ=this.I("messages/errorTextMessage");h.j.Dpa=this.I("messages/inappropriateFileFormat");h.j.XJ=this.I("messages/invalidJSONdata");h.j.Lpa=this.I("messages/wrongFormulaEmpty");h.j.w9=this.I("messages/wrongFormulaFormat");h.j.Npa=this.I("messages/wrongUniqueName");h.j.Kpa=
this.I("messages/wrongFormulaAggregation");h.j.Mpa=this.I("messages/wrongFormulaRecursive");h.j.Apa=this.I("messages/excelCsvChartsExportError");h.j.zp=this.I("messages/noDataAvailable");h.j.o9=this.I("messages/fileLoadingIncomplete");h.j.qY=this.I("messages/dataWasUpdated");h.j.wpa=this.I("messages/cantConnectToAccelerator");h.j.Epa=this.I("messages/ocsvIncompatible");h.j.kQ=this.I("messages/unknownError");h.j.p9=this.I("messages/invalidReportFormat");h.j.q9=this.I("messages/invalidReportFormat2");
h.j.m9=this.I("messages/csvHeaderParsingError");h.j.Jpa=this.I("messages/tooManyColumnsInClassicMode");h.j.i9=this.I("messages/cantExpand");h.j.j9=this.I("messages/cantExpandTitle");h.j.Hpa=this.I("messages/selectFile");h.j.Cpa=this.I("messages/flatTableIsNotSupported");h.j.Bpa=this.I("messages/exportFontLoadingError");h.j.zpa=this.I("messages/elastic/errorConnection");h.j.n9=this.I("messages/exportImageToPdfTooLargeError");h.j.uy=this.I("kpis/kpis");h.j.U8=this.I("kpis/value");h.j.P8=this.I("kpis/goal");
h.j.T8=this.I("kpis/trend");h.j.S8=this.I("kpis/status");h.j.uX=this.I("buttons/ok");h.j.Z6=this.I("buttons/copy");h.j.my=this.I("buttons/apply");h.j.xm=this.I("buttons/cancel");h.j.b7=this.I("buttons/save");h.j.jla=this.I("buttons/select");h.j.lF=this.I("buttons/yes");h.j.a7=this.I("buttons/no");h.j.r7=this.I("contextMenu/clearSorting");h.j.Dla=this.I("contextMenu/collapse");h.j.s7=this.I("contextMenu/drillThrough");h.j.Jla=this.I("contextMenu/expand");h.j.Gla=this.I("contextMenu/drillUp");h.j.Fla=
this.I("contextMenu/drillDown");h.j.u7=this.I("contextMenu/openFilter");h.j.Kla=this.I("contextMenu/filterBy");h.j.Ila=this.I("contextMenu/exclude");h.j.v7=this.I("contextMenu/removeField");h.j.Tla=this.I("contextMenu/removeMeasure");h.j.Wla=this.I("contextMenu/sortColumnAsc");h.j.Xla=this.I("contextMenu/sortColumnDesc");h.j.Yla=this.I("contextMenu/sortRowAsc");h.j.Zla=this.I("contextMenu/sortRowDesc");h.j.q7=this.I("contextMenu/aggregation");h.j.Sla=this.I("contextMenu/properties");h.j.Hla=this.I("contextMenu/editFormula");
h.j.Qla=this.I("contextMenu/moveToRows");h.j.Ola=this.I("contextMenu/moveToColumns");h.j.Pla=this.I("contextMenu/moveToReportFilters");h.j.Rla=this.I("contextMenu/numberFormatting");h.j.Ela=this.I("contextMenu/conditionalFormatting");h.j.Ula=this.I("contextMenu/showProperty");h.j.Mla=this.I("contextMenu/hideProperty");h.j.Lla=this.I("contextMenu/groupMembers");h.j.$la=this.I("contextMenu/ungroupMembers");h.j.Vla=this.I("contextMenu/showSubtotals");h.j.Nla=this.I("contextMenu/hideSubtotals");h.j.Sl=
this.I("date/year");h.j.Nt=this.I("date/quarter");h.j.nh=this.I("date/month");h.j.pn=this.I("date/day");h.j.R9=[this.I("quarters/q1"),this.I("quarters/q2"),this.I("quarters/q3"),this.I("quarters/q4")];h.j.bs=[this.I("months/january"),this.I("months/february"),this.I("months/march"),this.I("months/april"),this.I("months/may"),this.I("months/june"),this.I("months/july"),this.I("months/august"),this.I("months/september"),this.I("months/october"),this.I("months/november"),this.I("months/december")];h.j.xy=
[this.I("monthsShort/january"),this.I("monthsShort/february"),this.I("monthsShort/march"),this.I("monthsShort/april"),this.I("monthsShort/may"),this.I("monthsShort/june"),this.I("monthsShort/july"),this.I("monthsShort/august"),this.I("monthsShort/september"),this.I("monthsShort/october"),this.I("monthsShort/november"),this.I("monthsShort/december")];h.j.HB=[this.I("weekdays/first"),this.I("weekdays/second"),this.I("weekdays/third"),this.I("weekdays/fourth"),this.I("weekdays/fifth"),this.I("weekdays/sixth"),
this.I("weekdays/seventh")];h.j.IB=[this.I("weekdaysShort/first"),this.I("weekdaysShort/second"),this.I("weekdaysShort/third"),this.I("weekdaysShort/fourth"),this.I("weekdaysShort/fifth"),this.I("weekdaysShort/sixth"),this.I("weekdaysShort/seventh")];u.Lh.xLa(h.j.HB,h.j.IB);u.Lh.JLa(h.j.bs,h.j.xy)}I(b){if(!e.v(this.kI)){var a=this.kI.I(b);if(!e.v(a))return a}return e.v(this.lU)||(a=this.lU.I(b),e.v(a))?this.Gu.I(b):a}reset(){this.kI=null;this.updateLabels()}load(b,a,c=!1){"string"!==typeof b||e.ka(b)?
(b instanceof Object?this.rha(h.XP.xb(b),c):this.reset(),null!=a&&a(!0)):(null!==f.aA&&(f.aA.close(),f.aA=null),f.aA=new h.Hoa,f.aA.load(u.Gy.RH(b,!0),d=>{this.rha(d,c);null!=a&&a(!0)},()=>{null!=a&&a(!1)}))}rha(b,a=!1){a?this.lU=b:this.kI=b;this.updateLabels()}nea(){var b=new h.XP;b.NE();b.merge(this.lU);this.kI&&b.merge(this.kI);return b.Sa().toolbar}}f.aA=null;h.pB=f})(l.B||(l.B={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.labels={}}I(b){var a=this.labels;b=b.split("/");for(var c=0;c<b.length;c++){if(void 0===a[b[c]])return;a=a[b[c]]}return a}fb(b,a){var c=this.labels;b=b.split("/");for(var d=0;d<b.length-1;d++)c=c[b[d]];c[b[b.length-1]]=a}NE(){this.labels.fieldsList={};this.labels.fieldsList.flatHierarchyBox="Select and arrange columns";this.labels.fieldsList.values="Values";this.labels.fieldsList.allFields="All fields";this.labels.fieldsList.rows="Rows";
this.labels.fieldsList.columns="Columns";this.labels.fieldsList.filters="Report filters";this.labels.fieldsList.dropField="Drop field here";this.labels.fieldsList.addCalculatedMeasure="Add calculated value";this.labels.fieldsList.expandAll="Expand all";this.labels.fieldsList.collapseAll="Collapse all";this.labels.fieldsList.formulasGroupName="Calculated values";this.labels.fieldsList.title="Fields";this.labels.fieldsList.subtitle="Drag and drop fields to arrange";this.labels.fieldsList.search="Search";
this.labels.fieldsList.searchClose="Close search";this.labels.fieldsList.open="Open Field List";this.labels.fieldsList.close="Close Field List";this.labels.fieldsList.actions={};this.labels.fieldsList.actions.select="Select";this.labels.fieldsList.actions.deselect="Deselect";this.labels.fieldsList.actions.expand="Expand";this.labels.fieldsList.actions.collapse="Collapse";this.labels.fieldsList.actions.move_to_rows="Move to rows";this.labels.fieldsList.actions.move_to_columns="Move to columns";this.labels.fieldsList.actions.move_to_filters=
"Move to report filters";this.labels.fieldsList.actions.move_to_values="Move to values";this.labels.fieldsList.actions.move_up="Move up";this.labels.fieldsList.actions.move_down="Move down";this.labels.fieldsList.actions.edit_calculated_value="Edit calculated value";this.labels.fieldsList.actions.aggregation="Aggregation";this.labels.filter={};this.labels.filter.ascSort="Az";this.labels.filter.ascSortTooltip="Sort ascending";this.labels.filter.descSort="zA";this.labels.filter.descSortTooltip="Sort descending";
this.labels.filter.top="Top";this.labels.filter.bottom="Bottom";this.labels.filter.search="Search";this.labels.filter.selectAll="Select all";this.labels.filter.selectAllResults="Select all results";this.labels.filter.amountSelected="{0} of {1} selected";this.labels.filter.amountFound="{0} of {1} found are selected";this.labels.filter.multipleItems="Multiple items";this.labels.filter.all="All";this.labels.filter.sort="Sort:";this.labels.filter.filterBy="Filter by:";this.labels.filter.labelsFilter=
"Labels";this.labels.filter.numbersFilter="Labels";this.labels.filter.valuesFilter="Values";this.labels.filter.datesFilter="Dates";this.labels.filter.timeFilter="Time";this.labels.filter.equal="Equal";this.labels.filter.notEqual="Not equal";this.labels.filter.before="Before";this.labels.filter.beforeEqual="Before or equal";this.labels.filter.after="After";this.labels.filter.afterEqual="After or equal";this.labels.filter.between="Between";this.labels.filter.notBetween="Not between";this.labels.filter.last=
"Last...";this.labels.filter.current="Current...";this.labels.filter.next="Next...";this.labels.filter.begin="Begin";this.labels.filter.notBegin="Not begin";this.labels.filter.end="End";this.labels.filter.notEnd="Not end";this.labels.filter.contain="Contain";this.labels.filter.notContain="Not contain";this.labels.filter.greater="Greater";this.labels.filter.greaterEqual="Greater or equal";this.labels.filter.less="Less";this.labels.filter.lessEqual="Less or equal";this.labels.filter.day="Day";this.labels.filter.week=
"Week";this.labels.filter.month="Month";this.labels.filter.quarter="Quarter";this.labels.filter.year="Year";this.labels.filter.seconds="sec.";this.labels.filter.secondsFull="seconds";this.labels.filter.minutes="min.";this.labels.filter.minutesFull="minutes";this.labels.filter.hours="hr.";this.labels.filter.hoursFull="hours";this.labels.filter.days="d.";this.labels.filter.daysFull="days";this.labels.filter.clearDateFilter="Clear date filter";this.labels.filter.clearLabelFilter="Clear label filter";
this.labels.filter.clearNumberFilter="Clear label filter";this.labels.filter.clearTimeFilter="Clear time filter";this.labels.filter.clearValueFilter="Clear value filter";this.labels.filter.noAvailableValues="No available values";this.labels.filter.condition="Condition";this.labels.filter.conditionValue="Condition value";this.labels.filter.conditionMeasure="Measure";this.labels.filter.conditionTimeInterval="Time interval";this.labels.filter.datepickerTime="Time:";this.labels.drillThrough={};this.labels.drillThrough.title=
"Details";this.labels.drillThrough.row="Row: <b>{0}</b>";this.labels.drillThrough.column="Column: <b>{0}</b>";this.labels.drillThrough.value="{0}: <b>{1}</b>";this.labels.calculatedView={};this.labels.calculatedView.title="Calculated value";this.labels.calculatedView.measureBox="Drag values to formula";this.labels.calculatedView.measureName="Value name";this.labels.calculatedView.formula="Formula";this.labels.calculatedView.formulaPrompt="Drop values and edit formula here";this.labels.calculatedView.calculateIndividualValues=
"Calculate individual values";this.labels.calculatedView.removeValue="Remove";this.labels.calculatedView.removeValueTitle="Remove {0}?";this.labels.calculatedView.removeValueMessage="Are you sure you want to remove this calculated value?";this.labels.calculatedView.allValues="All values";this.labels.calculatedView.actions={};this.labels.calculatedView.actions.add_to_formula="Add to formula";this.labels.calculatedView.func={};this.labels.calculatedView.func.add="Add";this.labels.calculatedView.func.subtract=
"Subtract";this.labels.calculatedView.func.multiply="Multiply";this.labels.calculatedView.func.divide="Divide";this.labels.calculatedView.func.power="Power";this.labels.calculatedView.func.equal="Equal";this.labels.calculatedView.func.less="Less";this.labels.calculatedView.func.less_equal="Less or equal";this.labels.calculatedView.func.greater="Greater";this.labels.calculatedView.func.greater_equal="Greater or equal";this.labels.calculatedView.func.strict_equal="Strict equal";this.labels.calculatedView.func.not_equal=
"Not equal";this.labels.calculatedView.func.or="Or";this.labels.calculatedView.func.and="And";this.labels.calculatedView.func["if"]="If";this.labels.calculatedView.func.abs="Absolute";this.labels.calculatedView.func.round="Round";this.labels.calculatedView.func.min="Minimum";this.labels.calculatedView.func.max="Maximum";this.labels.grid={};this.labels.grid.total="Total";this.labels.grid.totals="Totals";this.labels.grid.grandTotal="Grand Total";this.labels.grid.blankMember="(blank)";this.labels.grid.dateNullCaption=
"null";this.labels.grid.dateInvalidCaption="Invalid date";this.labels.grid.reportInformation="Report information";this.labels.charts={};this.labels.charts.showLegend="Show legend";this.labels.charts.hideLegend="Hide legend";this.labels.charts.selectMeasures="Select measures";this.labels.charts.bigDataSetWarning="The dataset is too big to be displayed. Data will be trimmed to fit into the chart.";this.labels.charts.noDataTitle="No data to display.";this.labels.charts.noMeasuresTitle="No measures to display. Add at least one measure in the Field List.";
this.labels.tooltips={};this.labels.tooltips.fieldList="Click to open Fields";this.labels.tooltips.selectAggregation="Select aggregation";this.labels.tooltips.editCalculatedMeasure="Edit calculated value";this.labels.tooltips.row="Row:";this.labels.tooltips.headerResize="Drag to resize";this.labels.tooltips.headerFit="Double click to fit";this.labels.tooltips.filterIcon="Click to filter";this.labels.tooltips.filtered="Filtered";this.labels.tooltips.expandIcon="Click to expand";this.labels.tooltips.collapseIcon=
"Click to collapse";this.labels.tooltips.drillDown="Click to drill down";this.labels.tooltips.drillUp="Click to drill up";this.labels.tooltips.sortIcon="Click to sort";this.labels.tooltips.sortedDescIcon="Click to sort descending";this.labels.tooltips.sortedAscIcon="Click to sort ascending";this.labels.tooltips.unsortedIcon="Click to unsort";this.labels.tooltips.close="Click to close";this.labels.aggregations={};this.labels.aggregations.sum={};this.labels.aggregations.sum.caption="Sum";this.labels.aggregations.sum.totalCaption=
"Sum of {0}";this.labels.aggregations.sum.grandTotalCaption="Total Sum of {0}";this.labels.aggregations.count={};this.labels.aggregations.count.caption="Count";this.labels.aggregations.count.totalCaption="Count of {0}";this.labels.aggregations.count.grandTotalCaption="Total Count of {0}";this.labels.aggregations.distinctCount={};this.labels.aggregations.distinctCount.caption="Distinct Count";this.labels.aggregations.distinctCount.totalCaption="Distinct Count of {0}";this.labels.aggregations.distinctCount.grandTotalCaption=
"Total Distinct Count of {0}";this.labels.aggregations.average={};this.labels.aggregations.average.caption="Average";this.labels.aggregations.average.totalCaption="Average of {0}";this.labels.aggregations.average.grandTotalCaption="Total Average of {0}";this.labels.aggregations.median={};this.labels.aggregations.median.caption="Median";this.labels.aggregations.median.totalCaption="Median of {0}";this.labels.aggregations.median.grandTotalCaption="Total Median of {0}";this.labels.aggregations.stdevp=
{};this.labels.aggregations.stdevp.caption="Population StDev";this.labels.aggregations.stdevp.totalCaption="Population StDev of {0}";this.labels.aggregations.stdevp.grandTotalCaption="Total Population StDev of {0}";this.labels.aggregations.stdevs={};this.labels.aggregations.stdevs.caption="Sample StDev";this.labels.aggregations.stdevs.totalCaption="Sample StDev of {0}";this.labels.aggregations.stdevs.grandTotalCaption="Total Sample StDev of {0}";this.labels.aggregations.product={};this.labels.aggregations.product.caption=
"Product";this.labels.aggregations.product.totalCaption="Product of {0}";this.labels.aggregations.product.grandTotalCaption="Total Product of {0}";this.labels.aggregations.min={};this.labels.aggregations.min.caption="Min";this.labels.aggregations.min.totalCaption="Min of {0}";this.labels.aggregations.min.grandTotalCaption="Total Min of {0}";this.labels.aggregations.max={};this.labels.aggregations.max.caption="Max";this.labels.aggregations.max.totalCaption="Max of {0}";this.labels.aggregations.max.grandTotalCaption=
"Total Max of {0}";this.labels.aggregations.percent={};this.labels.aggregations.percent.caption="% of Grand Total";this.labels.aggregations.percent.totalCaption="% of Grand Total of {0}";this.labels.aggregations.percent.grandTotalCaption="Total % of Grand Total of {0}";this.labels.aggregations.percentOfColumn={};this.labels.aggregations.percentOfColumn.caption="% of Column";this.labels.aggregations.percentOfColumn.totalCaption="% of Column of {0}";this.labels.aggregations.percentOfColumn.grandTotalCaption=
"Total % of Column of {0}";this.labels.aggregations.percentOfRow={};this.labels.aggregations.percentOfRow.caption="% of Row";this.labels.aggregations.percentOfRow.totalCaption="% of Row of {0}";this.labels.aggregations.percentOfRow.grandTotalCaption="Total % of Row of {0}";this.labels.aggregations.percentOfParentColumnTotal={};this.labels.aggregations.percentOfParentColumnTotal.caption="% of Parent Column Total";this.labels.aggregations.percentOfParentColumnTotal.totalCaption="% of Parent Column Total of {0}";
this.labels.aggregations.percentOfParentColumnTotal.grandTotalCaption="% of Parent Column Total of {0}";this.labels.aggregations.percentOfParentRowTotal={};this.labels.aggregations.percentOfParentRowTotal.caption="% of Parent Row Total";this.labels.aggregations.percentOfParentRowTotal.totalCaption="% of Parent Row Total of {0}";this.labels.aggregations.percentOfParentRowTotal.grandTotalCaption="% of Parent Row Total of {0}";this.labels.aggregations.runningTotalsOfColumn={};this.labels.aggregations.runningTotalsOfColumn.caption=
"Running Totals of Column";this.labels.aggregations.runningTotalsOfColumn.totalCaption="Running Totals of Column of {0}";this.labels.aggregations.runningTotalsOfColumn.grandTotalCaption="Running Totals of Column of {0}";this.labels.aggregations.runningTotalsOfRow={};this.labels.aggregations.runningTotalsOfRow.caption="Running Totals of Row";this.labels.aggregations.runningTotalsOfRow.totalCaption="Running Totals of Row of {0}";this.labels.aggregations.runningTotalsOfRow.grandTotalCaption="Running Totals of Row of {0}";
this.labels.aggregations.index={};this.labels.aggregations.index.caption="Index";this.labels.aggregations.index.totalCaption="Index of {0}";this.labels.aggregations.index.grandTotalCaption="Index of {0}";this.labels.aggregations.differenceOfColumn={};this.labels.aggregations.differenceOfColumn.caption="Difference of Column";this.labels.aggregations.differenceOfColumn.totalCaption="Difference of Column of {0}";this.labels.aggregations.differenceOfColumn.grandTotalCaption="Difference of Column of {0}";
this.labels.aggregations.differenceOfRow={};this.labels.aggregations.differenceOfRow.caption="Difference of Row";this.labels.aggregations.differenceOfRow.totalCaption="Difference of Row of {0}";this.labels.aggregations.differenceOfRow.grandTotalCaption="Difference of Row of {0}";this.labels.aggregations.percentDifferenceOfColumn={};this.labels.aggregations.percentDifferenceOfColumn.caption="% Difference of Column";this.labels.aggregations.percentDifferenceOfColumn.totalCaption="% Difference of Column of {0}";
this.labels.aggregations.percentDifferenceOfColumn.grandTotalCaption="% Difference of Column of {0}";this.labels.aggregations.percentDifferenceOfRow={};this.labels.aggregations.percentDifferenceOfRow.caption="% Difference of Row";this.labels.aggregations.percentDifferenceOfRow.totalCaption="% Difference of Row of {0}";this.labels.aggregations.percentDifferenceOfRow.grandTotalCaption="% Difference of Row of {0}";this.labels.aggregations.none={};this.labels.aggregations.none.caption="No calculation";
this.labels.messages={};this.labels.messages.error="Error";this.labels.messages.warning="Warning";this.labels.messages.limitation="Limitation";this.labels.messages.browse="Browse";this.labels.messages.confirmation="Confirmation";this.labels.messages.loading="Loading...";this.labels.messages.loadingData="Loading data...";this.labels.messages.loadingMapping="Loading mapping...";this.labels.messages.uploading="Uploading...";this.labels.messages.waiting="Waiting for the response {0} sec.";this.labels.messages.progress=
"{0} rows";this.labels.messages.progressKnown="{0} KB loaded of {1} KB ({2}%)";this.labels.messages.progressUnknown="{0} KB loaded";this.labels.messages.sortingMembers="Sorting members...";this.labels.messages.analyzing="Analyzing data...";this.labels.messages.analyzingProgress="{0} records of {1} ({2}%)";this.labels.messages.analyzingRecords="{0}% of records";this.labels.messages.analyzingRecordsWithAmount="{0} records ({1}%)";this.labels.messages.saving="Saving...";this.labels.messages.loadingDimensions=
"Loading dimensions...";this.labels.messages.loadingHierarchies="Loading hierarchies...";this.labels.messages.loadingMeasures="Loading measures...";this.labels.messages.loadingKPIs="Loading KPIs...";this.labels.messages.loadingMembers="Loading members...";this.labels.messages.loadingProperties="Loading properties...";this.labels.messages.loadingLevels="Loading levels...";this.labels.messages.pleaseWait="Please wait.";this.labels.messages.pagesWereGenerated="pages were generated.";this.labels.messages.exportProgress=
"Export in progress...";this.labels.messages.exportError="Failed to export. An unexpected error occurred.";this.labels.messages.cantSaveFile="Can't save file. <br/>Details: {0}";this.labels.messages.contentTypeMessageJson="Please use serverContentType: json when saving to server. More details: https://www.flexmonster.com/api/save/";this.labels.messages.cantSaveFileNoDetails="Can't save file.";this.labels.messages.saveReportToFile='The report is ready to be saved to file. <br/>Please click the "Save" button to save the report.';
this.labels.messages.saveReportForSharing="Please copy the following link to share the report:<br/><u><div style='text-overflow: ellipsis; white-space: nowrap; overflow: hidden; font-style: italic;'>{0}</div></u>";this.labels.messages.cantSaveReportForSharing="Can't save the report for sharing. <br/><br/> {0}";this.labels.messages.cantLoadSharedReport="Can't load the shared report. <br/> {0}";this.labels.messages.invalidDataSource="The data source or catalog is invalid. Please check the connection details. <br/><br/><u><a href='https://www.flexmonster.com/doc/typical-errors/#invalid-datasource' target='_blank'>Read more info about this error</a></u>";
this.labels.messages.dataStreamError="A stream error occurred while loading '{0}'<br/><br/><u><a href='https://www.flexmonster.com/doc/typical-errors/#stream-error' target='_blank'>Read more info about this error</a></u>";this.labels.messages.unableToOpenFile="Unable to open the '{0}' file.<br/><br/>Check the following points to resolve the issue:<br/>- make sure the file exists<br/>- make sure the 'Access-Control-Allow-Origin' header is present in the requested resource<br/>- check the browser console for any errors<br/><br/><u><a href='https://www.flexmonster.com/doc/typical-errors/#unable-to-open-file' target='_blank'>Read more info about this error</a></u><br/>";
this.labels.messages.wrongUniqueName="The field with the <b>'{0}'</b> uniqueName is not defined.";this.labels.messages.wrongFormulaEmpty="The formula can't be empty.";this.labels.messages.wrongFormulaFormat="Wrong formula format. Please check formula details.";this.labels.messages.wrongFormulaRecursive="The formula for the <b>'{0}'</b> measure calls itself recursively. Please remove recursion from the formula.";this.labels.messages.wrongFormulaAggregation="The <b>'{0}'</b> aggregation in the <b>'{1}'</b> formula is not valid.";
this.labels.messages.inappropriateFileFormat="The data file is of inappropriate format.";this.labels.messages.invalidJSONdata="The JSON data is invalid.";this.labels.messages.excelCsvChartsExportError="The Microsoft Excel or CSV export is not available for charts.";this.labels.messages.noDataAvailable="The data source is empty.";this.labels.messages.fileLoadingIncomplete="The file is too large and cannot be loaded completely due to the browser limitations.";this.labels.messages.csvHeaderParsingError=
"A CSV header parsing error occurred.";this.labels.messages.dataWasUpdated="The data source has been updated on the server. Refresh the report?";this.labels.messages.cantConnectToAccelerator="Can't connect to the data source. Please check if Flexmonster Accelerator is running.";this.labels.messages.ocsvIncompatible="Unable to read the data source. The OCSV file might have been compressed with a newer version. Please update the component to version {0} or newer.";this.labels.messages.unknownError=
"An unknown error occurred.";this.labels.messages.invalidReportFormat="Invalid report format or access to the file is denied.";this.labels.messages.invalidReportFormat2="Invalid report format. The 'dataSource' property is required.";this.labels.messages.tooManyColumnsInClassicMode="Too many columns for classic form. The layout was switched to compact form.";this.labels.messages.cantExpand="Some fields can't be expanded. Please narrow down the dataset.";this.labels.messages.cantExpandTitle="The dataset is too large";
this.labels.messages.errorTextMessage="</br>Details: '{0}'";this.labels.messages.selectFile="Select a data file to upload.";this.labels.messages.flatTableIsNotSupported="The flat form is not supported for the {0} data source.";this.labels.messages.exportFontLoadingError="Failed to load the font. An unexpected error occurred.";this.labels.messages.exportImageToPdfTooLargeError="The image is too large to be exported to PDF. Please reduce the chart size.";this.labels.messages.api={};this.labels.messages.api.incorrectUrl=
"Custom data source API: incorrect type of the 'url' parameter.<br/><br/>";this.labels.messages.api.errorZeroStatus="Unable to connect to the custom data source API endpoint '<u><a href='{0}'>{0}</a></u>'.<br/><br/>Check the following points to resolve the issue:<br/>- make sure that the URL is correct<br/>- enable CORS<br/>- check the browser console for any errors";this.labels.messages.api.error404Status="Unable to connect to the custom data source API endpoint '<u><a href='{0}'>{0}</a></u>'.<br/><br/>Check the following points to resolve the issue:<br/>- make sure that the URL is correct<br/>- check that the endpoint is processing POST requests";
this.labels.messages.api.error400Status="Custom data source API: request error on '<u><a href='{0}'>{0}</a></u>'.<br/><br/>";this.labels.messages.api.error500Status="Custom data source API: server error on '<u><a href='{0}'>{0}</a></u>'.<br/><br/>";this.labels.messages.api.selectRequestError="Custom data source API: select request.<br/><br/>The format of the '<u><a href='{0}'>{0}</a></u>' endpoint response is incorrect.";this.labels.messages.api.selectDrillThroughError="Custom data source API: select request for drill-through view.<br/><br/>The format of the '<u><a href='{0}'>{0}</a></u>' endpoint response is incorrect.";
this.labels.messages.api.clientOutdated="Custom data source API: the flexmonster.js and server API versions are not compatible.<br/><br/>The flexmonster.js file is outdated. Please update flexmonster.js to the minimum required version: {0}";this.labels.messages.api.serverOutdated="Custom data source API: the flexmonster.js and server API versions are not compatible.<br/><br/>The server API is outdated. Please update the '<u><a href='{0}'>{0}</a></u>' server API to the minimum required version: {1}";
this.labels.messages.api.fieldsRequestError="Custom data source API: fields request.<br/><br/>The format of the '<u><a href='{0}'>{0}</a></u>' endpoint response is incorrect.";this.labels.messages.api.membersRequestError="Custom data source API: members request.<br/><br/>The format of the '<u><a href='{0}'>{0}</a></u>' endpoint response is incorrect.";this.labels.messages.api.noGridChartsMode="The grid and charts mode is not supported in flat form for the custom data source API.";this.labels.messages.api.expandDataError=
"Custom data source API: the issue with expanding data.";this.labels.messages.api.drillDataError="Custom data source API: the issue with drilling data.";this.labels.messages.elastic={};this.labels.messages.elastic.errorConnection="Unable to connect to the Elasticsearch endpoint '<u><a href='{0}'>{0}</a></u>'.<br/><br/>Check the following points to resolve the issue:<br/>- make sure that the URL is correct<br/>- enable CORS<br/>- check the browser console for any errors";this.labels.buttons={};this.labels.buttons.ok=
"OK";this.labels.buttons.apply="Apply";this.labels.buttons.copy="Copy";this.labels.buttons.cancel="Cancel";this.labels.buttons.save="Save";this.labels.buttons.select="Select";this.labels.buttons.yes="Yes";this.labels.buttons.no="No";this.labels.kpis={};this.labels.kpis.kpis="KPIs";this.labels.kpis.value="Value";this.labels.kpis.goal="Goal";this.labels.kpis.trend="Trend";this.labels.kpis.status="Status";this.labels.contextMenu={};this.labels.contextMenu.drillThrough="Drill through";this.labels.contextMenu.openFilter=
"Open filter";this.labels.contextMenu.filterBy="Filter by <b>{0}</b>";this.labels.contextMenu.exclude="Exclude <b>{0}</b>";this.labels.contextMenu.removeField="Remove field";this.labels.contextMenu.removeMeasure="Remove measure";this.labels.contextMenu.collapse="Collapse";this.labels.contextMenu.expand="Expand";this.labels.contextMenu.drillUp="Drill up";this.labels.contextMenu.drillDown="Drill down";this.labels.contextMenu.sortRowDesc="Sort row descending";this.labels.contextMenu.sortRowAsc="Sort row ascending";
this.labels.contextMenu.clearSorting="Clear sorting";this.labels.contextMenu.sortColumnDesc="Sort column descending";this.labels.contextMenu.sortColumnAsc="Sort column ascending";this.labels.contextMenu.aggregation="Aggregation";this.labels.contextMenu.properties="Properties";this.labels.contextMenu.showProperty="Show <b>{0}</b>";this.labels.contextMenu.editFormula="Edit <b>{0}</b>";this.labels.contextMenu.moveToRows="Move to rows";this.labels.contextMenu.moveToColumns="Move to columns";this.labels.contextMenu.moveToReportFilters=
"Move to report filters";this.labels.contextMenu.conditionalFormatting="Conditional formatting";this.labels.contextMenu.numberFormatting="Number formatting";this.labels.contextMenu.hideProperty="Hide <b>{0}</b>";this.labels.contextMenu.groupMembers="Group members";this.labels.contextMenu.ungroupMembers="Ungroup members";this.labels.contextMenu.showSubtotals="Show subtotals";this.labels.contextMenu.hideSubtotals="Hide subtotals";this.labels.date={};this.labels.date.year="Year";this.labels.date.quarter=
"Quarter";this.labels.date.month="Month";this.labels.date.day="Day";this.labels.quarters={};this.labels.quarters.q1="Quarter 1";this.labels.quarters.q2="Quarter 2";this.labels.quarters.q3="Quarter 3";this.labels.quarters.q4="Quarter 4";this.labels.months={};this.labels.months.january="January";this.labels.months.february="February";this.labels.months.march="March";this.labels.months.april="April";this.labels.months.may="May";this.labels.months.june="June";this.labels.months.july="July";this.labels.months.august=
"August";this.labels.months.september="September";this.labels.months.october="October";this.labels.months.november="November";this.labels.months.december="December";this.labels.monthsShort={};this.labels.monthsShort.january="Jan";this.labels.monthsShort.february="Feb";this.labels.monthsShort.march="Mar";this.labels.monthsShort.april="Apr";this.labels.monthsShort.may="May";this.labels.monthsShort.june="Jun";this.labels.monthsShort.july="Jul";this.labels.monthsShort.august="Aug";this.labels.monthsShort.september=
"Sep";this.labels.monthsShort.october="Oct";this.labels.monthsShort.november="Nov";this.labels.monthsShort.december="Dec";this.labels.weekdays={};this.labels.weekdays.first="Sunday";this.labels.weekdays.second="Monday";this.labels.weekdays.third="Tuesday";this.labels.weekdays.fourth="Wednesday";this.labels.weekdays.fifth="Thursday";this.labels.weekdays.sixth="Friday";this.labels.weekdays.seventh="Saturday";this.labels.weekdaysShort={};this.labels.weekdaysShort.first="Sun";this.labels.weekdaysShort.second=
"Mon";this.labels.weekdaysShort.third="Tue";this.labels.weekdaysShort.fourth="Wed";this.labels.weekdaysShort.fifth="Thu";this.labels.weekdaysShort.sixth="Fri";this.labels.weekdaysShort.seventh="Sat";this.labels.toolbar={};this.labels.toolbar.connect="Connect";this.labels.toolbar.connect_local_csv="To local CSV";this.labels.toolbar.connect_local_json="To local JSON";this.labels.toolbar.connect_remote_csv="To remote CSV";this.labels.toolbar.connect_remote_csv_mobile="CSV";this.labels.toolbar.connect_remote_json=
"To remote JSON";this.labels.toolbar.connect_remote_json_mobile="JSON";this.labels.toolbar.connect_olap="To OLAP (XMLA)";this.labels.toolbar.connect_olap_mobile="OLAP";this.labels.toolbar.connect_elastic="To Elasticsearch";this.labels.toolbar.connect_elastic_mobile="Elastic";this.labels.toolbar.open="Open";this.labels.toolbar.local_report="Local report";this.labels.toolbar.remote_report="Remote report";this.labels.toolbar.remote_report_mobile="Report";this.labels.toolbar.save="Save";this.labels.toolbar.share=
"Share";this.labels.toolbar.grid="Grid";this.labels.toolbar.charts="Charts";this.labels.toolbar.charts_column="Column";this.labels.toolbar.charts_bar_horizontal="Bar";this.labels.toolbar.charts_line="Line";this.labels.toolbar.charts_scatter="Scatter";this.labels.toolbar.charts_pie="Pie";this.labels.toolbar.charts_stacked_column="Stacked column";this.labels.toolbar.charts_column_line="Column line";this.labels.toolbar.charts_multiple="Multiple values";this.labels.toolbar.charts_multiple_disabled="Mutltiple values do not apply to ";
this.labels.toolbar.format="Format";this.labels.toolbar.format_cells="Format cells";this.labels.toolbar.format_cells_mobile="Format";this.labels.toolbar.conditional_formatting="Conditional formatting";this.labels.toolbar.conditional_formatting_mobile="Conditional";this.labels.toolbar.options="Options";this.labels.toolbar.fullscreen="Fullscreen";this.labels.toolbar.minimize="Minimize";this.labels.toolbar["export"]="Export";this.labels.toolbar.export_print="Print";this.labels.toolbar.export_html="To HTML";
this.labels.toolbar.export_csv="To CSV";this.labels.toolbar.export_excel="To Excel";this.labels.toolbar.export_image="To Image";this.labels.toolbar.export_pdf="To PDF";this.labels.toolbar.fields="Fields";this.labels.toolbar.ok="OK";this.labels.toolbar.apply="Apply";this.labels.toolbar.cancel="Cancel";this.labels.toolbar.value="Value";this.labels.toolbar.open_remote_csv="Open remote CSV";this.labels.toolbar.open_remote_json="Open remote JSON";this.labels.toolbar.olap_connection_tool="OLAP connection tool";
this.labels.toolbar.select_data_source="Select data source";this.labels.toolbar.select_catalog="Select catalog";this.labels.toolbar.select_cube="Select cube";this.labels.toolbar.proxy_url="Proxy URL";this.labels.toolbar.data_source_info="Data source info";this.labels.toolbar.catalog="Catalog";this.labels.toolbar.cube="Cube";this.labels.toolbar.connect_elastic_title="Connect to Elasticsearch";this.labels.toolbar.host_url="Host URL";this.labels.toolbar.index_name="Index";this.labels.toolbar.select_index=
"Select index";this.labels.toolbar.open_remote_report="Open remote report";this.labels.toolbar.choose_value="Choose value";this.labels.toolbar.text_align="Text align";this.labels.toolbar.align_left="left";this.labels.toolbar.align_right="right";this.labels.toolbar.align_center="center";this.labels.toolbar.none="None";this.labels.toolbar.space="(Space)";this.labels.toolbar.thousands_separator="Thousands separator";this.labels.toolbar.decimal_separator="Decimal separator";this.labels.toolbar.decimal_places=
"Decimal places";this.labels.toolbar.currency_symbol="Currency symbol";this.labels.toolbar.positive_currency_format="Positive currency format";this.labels.toolbar.negative_currency_format="Negative currency format";this.labels.toolbar.negative_number_format="Negative number format";this.labels.toolbar.null_value="Null value";this.labels.toolbar.is_percent="Format as percent";this.labels.toolbar.true_value="true";this.labels.toolbar.false_value="false";this.labels.toolbar.confirm_title="You have unsaved changes";
this.labels.toolbar.confirm_message="The current formatting is not saved yet and won't be applied. </br> Switch the value anyway?";this.labels.toolbar.conditional="Conditional";this.labels.toolbar.less_than="Less than";this.labels.toolbar.less_than_or_equal="Less than or equal to";this.labels.toolbar.greater_than="Greater than";this.labels.toolbar.greater_than_or_equal="Greater than or equal to";this.labels.toolbar.equal_to="Equal to";this.labels.toolbar.not_equal_to="Not equal to";this.labels.toolbar.between=
"Between";this.labels.toolbar.is_empty="Empty";this.labels.toolbar.all_values="All values";this.labels.toolbar.all="All";this.labels.toolbar.default_value="Default value";this.labels.toolbar.and_symbole="&";this.labels.toolbar.no_active_conditions="There are no active conditions.";this.labels.toolbar.add_condition_button="Add condition";this.labels.toolbar.cp_text="Text";this.labels.toolbar.cp_highlight="Highlight";this.labels.toolbar.cp_hex_value="HEX value";this.labels.toolbar.cp_shade="Shade";
this.labels.toolbar.layout_options="Layout options";this.labels.toolbar.layout="Layout";this.labels.toolbar.compact_view="Compact form";this.labels.toolbar.classic_view="Classic form";this.labels.toolbar.flat_view="Flat form";this.labels.toolbar.grand_totals="Grand totals";this.labels.toolbar.grand_totals_off="Do not show grand totals";this.labels.toolbar.grand_totals_on="Show grand totals";this.labels.toolbar.grand_totals_on_rows="Show for rows only";this.labels.toolbar.grand_totals_on_columns="Show for columns only";
this.labels.toolbar.subtotals="Subtotals";this.labels.toolbar.subtotals_off="Do not show subtotals";this.labels.toolbar.subtotals_on="Show subtotals";this.labels.toolbar.subtotals_on_rows="Show for rows only";this.labels.toolbar.subtotals_on_columns="Show for columns only";this.labels.toolbar.choose_page_orientation="Choose page orientation";this.labels.toolbar.landscape="Landscape";this.labels.toolbar.portrait="Portrait";this.labels.toolbar.tooltips={};this.labels.toolbar.tooltips.add_condition=
"Add condition";this.labels.toolbar.tooltips.remove_condition="Remove condition";this.labels.toolbar.tooltips.cp_text_color="Text color";this.labels.toolbar.tooltips.condition="Condition";this.labels.toolbar.tooltips.font="Font";this.labels.toolbar.tooltips.font_size="Font size";this.labels.toolbar.fullscreenErrorTitle="Can't enter fullscreen";this.labels.toolbar.fullscreenErrorMessage="It is not permitted to use the fullscreen feature on this page, either because of Feature Policy configuration or other access control features.<br/><br/><u><a href='https://www.flexmonster.com/doc/typical-errors/#cant-enter-fullscreen' target='_blank'>Read more info about this error</a></u>"}merge(b){e.v(b)||
(this.dha(b.labels,this.labels),this.validate())}Sa(){return this.labels}static xb(b){var a=new f;a.labels=b;return a}dha(b,a){if(!e.v(b)&&!e.v(a)&&b instanceof Object)for(var c in b){var d=b[c];e.v(d)||"function"!==typeof d&&("string"===typeof d?a[c]=d:d instanceof Object&&this.dha(d,a[c]))}}validate(){e.v(this.labels)||(e.v(this.labels.toolbar.charts_bar_stack)||(this.labels.toolbar.charts_stacked_column=this.labels.toolbar.charts_bar_stack,delete this.labels.toolbar.charts_bar_stack),e.v(this.labels.toolbar.charts_bar_line)||
(this.labels.toolbar.charts_column_line=this.labels.toolbar.charts_bar_line,delete this.labels.toolbar.charts_bar_line),e.v(this.labels.toolbar.charts_bar)||(this.labels.toolbar.charts_column=this.labels.toolbar.charts_bar,delete this.labels.toolbar.charts_bar),e.v(this.labels.toolbar.add_condition)||(e.v(this.labels.toolbar.tooltips)&&(this.labels.toolbar.tooltips={}),this.labels.toolbar.tooltips.add_condition=this.labels.toolbar.add_condition,delete this.labels.toolbar.add_condition))}}h.XP=f})(l.B||
(l.B={}))})(e.model||(e.model={}))})(q||(q={}));(function(e){(function(l){(function(h){class f{}f.ro="load";f.kK="loading_report";f.Sv="fail";f.ds="cancel";h.Ph=f;class b extends w.ia{constructor(c){super(f.ro);this.hb=c}}h.W9=b;class a extends w.ia{constructor(c,d=""){super(f.Sv);this.errorMessage="";this.message=c;this.errorMessage=d}}h.zQ=a})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends w.Mh{constructor(){super();this.JSON="json";this.ba="xml";this.kya="report.";this.vW=null}open(){this.yr=new h.Moa;this.yr.N(h.Ph.kK,()=>this.L4());this.yr.N(h.Ph.ro,b=>this.rE(b));this.yr.N(h.Ph.Sv,b=>this.QN(b));this.yr.N(h.Ph.ds,()=>this.PN());this.yr.load()}load(b,a){e.Ca(!0,l.B.j.IF);this.Bv=new h.Zra;this.Bv.N(h.Ph.ro,c=>this.rE(c));this.Bv.N(h.Ph.Sv,c=>this.QN(c));this.Bv.load(u.Gy.xua(b),a)}cancel(){this.yr&&(this.yr.Vd(h.Ph.ro),this.yr.Vd(h.Ph.Sv),
this.yr=null);this.Bv&&(this.Bv.Vd(h.Ph.ro),this.Bv.Vd(h.Ph.Sv),this.Bv=null);this.Vd(h.Ph.ro);this.Vd(h.Ph.Sv);this.Vd(h.Ph.kK);this.Vd(h.Ph.ds)}rE(b){this.Ha(new h.W9(b.hb))}QN(b){e.Va(b.message+b.errorMessage,l.B.j.xa,e.ob.xa);this.Ya(h.Ph.Sv)}L4(){this.Ya(h.Ph.kK)}PN(){this.Ya(h.Ph.ds)}save(b,a=null,c,d,g=!1,k){this.vW=c;c=!1;let m="string"==typeof b?b:null,n=d,p=this.JSON;d=g;let t=null,r=z.Ft.rX;b instanceof Object&&(b.hasOwnProperty("filename")&&(m=b.filename),b.hasOwnProperty("destination")&&
(a=b.destination),b.hasOwnProperty("url")&&(n=b.url),b.hasOwnProperty("reportType")&&(p=b.reportType),b.hasOwnProperty("embedData")&&(d=b.embedData),b.hasOwnProperty("requestHeaders")&&(t=b.requestHeaders),b.hasOwnProperty("serverContentType")&&(r=b.serverContentType));if(null==m||""==m)m=this.kya,m=p==this.ba?m+this.ba:m+this.JSON;k.la.Aa!=e.u.i.ra.ci&&k.la.Aa!=e.u.i.ra.Nq||!(k.la instanceof e.u.local.YP&&k.la.Yd||k.la instanceof e.u.local.csv.LF&&k.la.Fk||d)||k.options.U("gridType")==e.K.Y.wf.rj||
(b=new e.u.local.json.RP,k.la=b,c=!0);a=null==a?h.up.AP:a.toLowerCase();switch(a){case h.up.IY:c?(new e.u.local.json.jY).getData(v=>{k.la.data=v;this.xW(n,m,k,p,t,r)}):this.xW(n,m,k,p,t,r);break;case h.up.wB:c?(new e.u.local.json.jY).getData(v=>{k.la.data=v;this.rz(k.Sa())}):this.rz(k.Sa());break;default:c?(new e.u.local.json.jY).getData(v=>{k.la.data=v;this.gO(m,k,p)}):this.gO(m,k,p)}}rz(b=null,a=null){null!==this.vW&&this.vW(b,a)}Uca(b,a,c=!1){switch(b){case this.JSON:b=JSON.stringify(a.Sa(),null,
4);break;case this.ba:b=z.ba.Lc(a.op(),!0);break;default:b=JSON.stringify(a.Sa(),null,4)}if(c)try{b=encodeURIComponent(b)}catch(d){throw console.warn(l.B.j.WJ,d.message+".",l.B.j.xpa),Error(l.B.j.WJ);}return b}gO(b,a,c){const d=[this.Uca(c,a)];try{const g=this;e.Va(l.B.j.Gpa,l.B.j.mn,e.ob.mn,[l.B.j.b7,l.B.j.xm],[function(){z.Hia(new Blob(d,{type:"text/js;charset=utf-8"}),b);g.rz({report:a.Sa()})},function(){g.rz(null,{message:l.B.j.WJ})}])}catch(g){e.Va(l.B.j.WJ,l.B.j.xa,e.ob.xa),this.rz(null,{message:l.B.j.WJ})}}MDa(b){return z.Ft.rX===
b}xW(b,a,c,d,g,k){e.ka(b)&&e.Va("Report cannot be saved. Save report url is empty.",l.B.j.s$,e.ob.xa);try{const m=new z.Yra,n=this.MDa(k),p=c.Sa();m.data.name=a;m.data.report=n?this.Uca(d,c,n):p;m.data.type=d;const t=new z.tk;t.data=m.toString(n);t.contentType=n?z.Ft.rX:z.Ft.qX;t.Ir=z.Qt.Rv;t.N(w.ia.Qc,r=>this.wIa(r,p));t.N(w.ia.xa,r=>this.Rb(r));t.$h(g);this.s6=t;t.load(b);e.Ca(!0,l.B.j.v9)}catch(m){e.Va(m.message,l.B.j.xa,e.ob.xa),this.rz(null,{message:m.message})}}static aia(b,a=null){const c=
{};null!=b&&null!=b.target&&null!=b.target.response&&""!=b.target.response&&null!=b.target.xhr&&(c.response=b.target.response,c.status=b.target.xhr.status);b.type==w.ia.xa&&(c.message=l.B.j.hQ);b.type!=w.ia.xa&&null!=a&&(c.report=a);return c}wIa(b,a){e.Ca(!1);this.rz(f.aia(b,a))}Rb(b){e.Ca(!1);b=f.aia(b);let a=b.hasOwnProperty("response")?l.Tb.validate(b.response):"";a=700<a.length?a.substr(0,700):a;e.Va(e.P.bind(b.message,a),l.B.j.xa,e.ob.xa);this.rz(null,b)}dispose(){this.vW=null;this.yr&&this.yr.dispose();
this.Bv&&this.Bv.dispose();this.s6&&this.s6.dispose();this.s6=this.Bv=this.yr=null}}h.Sqa=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.PA=!1;this.la=new e.u.O.gB;this.slice=new h.vo;this.options=new l.C.Oq;this.Fe=[];this.Xc=[];this.Sm=[];this.Zx=new h.Yv;this.labels={};this.Je=null;this.WL=this.version=""}static xb(a){if(null==a)return null;a=f.um(a);var c=new f;c.la=e.u.O.Et.xb(a.connectionInfo?a.connectionInfo:a);c.options=l.C.Oq.xb(a.options?a.options:a);c.slice=h.vo.xb(a.slice?a.slice:a,c.la,c.options.U("gridType")==e.K.Y.wf.rj);null!=a.formats&&a.formats.length&&
(c.Fe=a.formats);null!=a.conditions&&a.conditions.length&&(c.Xc=a.conditions);null!=a.customFields&&(c.Sm=a.customFields);c.Zx=h.Yv.xb(a.tableSizes);null!=a.localization&&(c.Je=a.localization);null!=c.Je&&null!=c.Je.toolbar&&(null!=c.Je.toolbar.charts_bar_stack&&(c.Je.toolbar.charts_stacked_column=c.Je.toolbar.charts_bar_stack,delete c.Je.toolbar.charts_bar_stack),null!=c.Je.toolbar.charts_bar_line&&(c.Je.toolbar.charts_column_line=c.Je.toolbar.charts_bar_line,delete c.Je.toolbar.charts_bar_line),
null!=c.Je.toolbar.charts_bar&&(c.Je.toolbar.charts_column=c.Je.toolbar.charts_bar,delete c.Je.toolbar.charts_bar));null!=a.version&&0<a.version.length&&(c.version=a.version);null!=a.creationDate&&0<a.creationDate.length&&(c.WL=a.creationDate);return c}static Jk(a){var c=new f;if(null==a)return c;c.la=e.u.O.Et.Jk(a);c.slice=h.vo.Jk(a);c.options=l.C.Oq.Jk(a);c.Fe=f.bAa(a.find("format"));c.Xc=f.exa(a.find("conditions condition"));c.Zx=h.Yv.Jk(a);c.Sm=f.Wxa(a.find("customFields").children());c.labels=
f.HEa(a.find("labels"));c.Je=f.lFa(a.find("params"));return c}static Wxa(a){for(var c=[],d=0;d<a.length;d++){var g={};g.name=a[d].attr("name");g.value=a[d].attr("value");c.push(g)}return c}static bAa(a){for(var c=[],d=0;d<a.length;d++){var g=f.Zza(a[d]);c.push(g)}return c}static Zza(a){var c={};void 0!==a.attr("name")&&(c.name=a.attr("name"));0!=a.find("param[name=thousandsSeparator]").length&&(c.thousandsSeparator=a.find("param[name=thousandsSeparator]").text());0!=a.find("param[name=decimalSeparator]").length&&
(c.decimalSeparator=a.find("param[name=decimalSeparator]").text());0!=a.find("param[name=decimalPlaces]").length&&(c.decimalPlaces=parseInt(a.find("param[name=decimalPlaces]").text()));0!=a.find("param[name=maxDecimalPlaces]").length&&(c.maxDecimalPlaces=parseInt(a.find("param[name=maxDecimalPlaces]").text()));0!=a.find("param[name=maxSymbols]").length&&(c.maxSymbols=parseInt(a.find("param[name=maxSymbols]").text()));0!=a.find("param[name=currencySymbol]").length&&(c.currencySymbol=a.find("param[name=currencySymbol]").text());
0!=a.find("param[name=currencySymbolAlign]").length&&(c.currencySymbolAlign=a.find("param[name=currencySymbolAlign]").text());0!=a.find("param[name=nullValue]").length&&(c.nullValue=a.find("param[name=nullValue]").text());0!=a.find("param[name=infinityValue]").length&&(c.infinityValue=a.find("param[name=infinityValue]").text());0!=a.find("param[name=divideByZeroValue]").length&&(c.divideByZeroValue=a.find("param[name=divideByZeroValue]").text());0!=a.find("param[name=textAlign]").length&&(c.textAlign=
a.find("param[name=textAlign]").text());0!=a.find("param[name=isPercent]").length&&(c.isPercent=e.P.Zc(a.find("param[name=isPercent]").text()));return c}static HEa(a){var c={};if(0<a.length){for(var d=a.find("hierarchies").children(),g=0;g<d.length;g++){var k=d[g].attr("name");c[k]=d[g].text()}a=a.find("measures").children();for(g=0;g<a.length;g++)k=a[g].attr("name"),c[k]=a[g].text()}return c}static exa(a){for(var c=[],d=0;d<a.length;d++){var g=f.dxa(a[d]);c.push(g)}return c}static dxa(a){var c={};
c.id=e.P.zM();for(var d=0;d<a.childNodes.length;d++)if(a.childNodes[d]instanceof CDATASection){c.formula=a.childNodes[d].textContent.trim();break}void 0!==a.attr("hierarchy")&&(c.hierarchy=a.attr("hierarchy"));void 0!==a.attr("measure")&&(c.measure=a.attr("measure"));void 0!==a.attr("member")&&(c.member=a.attr("member"));void 0!==a.attr("row")&&(c.row=a.attr("row"));void 0!==a.attr("column")&&(c.column=a.attr("column"));void 0!==a.attr("isTotal")&&(c.isTotal=e.P.Zc(a.attr("isTotal")));if(0!=a.find("trueStyle").length)try{c.format=
JSON.parse(a.find("trueStyle").text())}catch(g){c.format=a.find("trueStyle").text()}return c}static lFa(a){if(0!=a.find("param[name=localization]").length)return a.find("param[name=localization]").text()}Owa(){for(var a=z.ba.create("<labels/>"),c=e.u.Ma.R().O,d,g=z.ba.create("<hierarchies/>"),k=c.vc(),m=0;m<k.length;m++){var n=k.fa(m);n.C2&&(d=z.ba.create("<label/>").text(n.label),d.attr("name",n.A),g.append(d))}0==g.kb()&&a.append(g);g=z.ba.create("<measures/>");c=c.Da;for(m=0;m<c.length;m++)k=c.fa(m),
k.C2&&(d=z.ba.create("<label/>").text(k.label),d.attr("name",k.A),g.append(d));0==g.kb()&&a.append(g);return a}vwa(){for(var a=z.ba.create("<conditions/>"),c=0;c<this.Xc.length;c++){var d=this.Xc[c],g=z.ba.create("<condition/>");g.append(z.ba.fi(d.formula));-1<d.row&&g.attr("row",d.row);-1<d.column&&g.attr("column",d.column);-1<d.isTotal&&g.attr("isTotal",1==d.isTotal?"true":"false");d.measure&&0<d.measure.length&&g.attr("measure",d.measure);d.hierarchy&&0<d.hierarchy.length&&g.attr("hierarchy",d.hierarchy);
d.member&&0<d.member.length&&g.attr("member",d.member);if(d.format&&!u.Hc.Og(d.format)){var k=z.ba.create("<trueStyle/>");k.append(z.ba.fi(JSON.stringify(d.format)));g.append(k)}a.append(g)}return a}Iwa(a){var c=z.ba.create("<format/>");c.attr("name",a.name);a.hasOwnProperty("decimalPlaces")&&c.append(z.ba.create("<param/>").attr("name","decimalPlaces").text(a.decimalPlaces));a.hasOwnProperty("maxDecimalPlaces")&&c.append(z.ba.create("<param/>").attr("name","maxDecimalPlaces").text(a.maxDecimalPlaces));
a.hasOwnProperty("maxSymbols")&&c.append(z.ba.create("<param/>").attr("name","maxSymbols").text(a.maxSymbols));a.hasOwnProperty("currencySymbolAlign")&&c.append(z.ba.create("<param/>").attr("name","currencySymbolAlign").text(a.currencySymbolAlign));a.hasOwnProperty("thousandsSeparator")&&c.append(z.ba.create("<param/>").attr("name","thousandsSeparator").append(z.ba.fi(a.thousandsSeparator)));a.hasOwnProperty("decimalSeparator")&&c.append(z.ba.create("<param/>").attr("name","decimalSeparator").append(z.ba.fi(a.decimalSeparator)));
a.hasOwnProperty("currencySymbol")&&c.append(z.ba.create("<param/>").attr("name","currencySymbol").append(z.ba.fi(a.currencySymbol)));a.hasOwnProperty("nullValue")&&c.append(z.ba.create("<param/>").attr("name","nullValue").append(z.ba.fi(a.nullValue)));a.hasOwnProperty("infinityValue")&&c.append(z.ba.create("<param/>").attr("name","infinityValue").append(z.ba.fi(a.infinityValue)));a.hasOwnProperty("divideByZeroValue")&&c.append(z.ba.create("<param/>").attr("name","divideByZeroValue").append(z.ba.fi(a.divideByZeroValue)));
a.hasOwnProperty("textAlign")&&c.append(z.ba.create("<param/>").attr("name","textAlign").text(a.textAlign));a.hasOwnProperty("isPercent")&&c.append(z.ba.create("<param/>").attr("name","isPercent").text(a.isPercent));return c}op(){var a=z.ba.create("<config/>"),c=this.la.op(this.PA);0==c.kb()&&a.append(c);c=this.slice.op(this.PA);0==c.kb()&&a.append(c);c=this.Zx.op();0==c.kb()&&a.append(c);c=this.Owa();0==c.kb()&&a.append(c);c=this.options.op();"string"==typeof this.Je&&c.append(z.ba.create("<param/>").attr("name",
"localization").append(z.ba.fi(this.Je)));a.append(c);c=this.vwa();0==c.kb()&&a.append(c);if(null!=this.Fe){c=!l.C.F.uW&&20<this.Fe.length;for(var d=0;d<this.Fe.length;d++){var g=this.Fe[d];(""==g.name||this.slice.Un.Bb(g.name)&&(!c||this.slice.Un.getItem(g.name)))&&a.append(this.Iwa(g))}}return a}Sa(){const a={};var c=this.la.Sa(this.PA);u.Hc.Og(c)||(a.dataSource=c);c=this.slice.Sa(this.PA,this.la.mapping);u.Hc.Og(c)||(a.slice=c);c=this.options.Sa();u.Hc.Og(c)||(a.options=c);c=this.uwa();0<c.length&&
(a.conditions=c);if(null!=this.Fe&&0!=this.Fe.length){c=[];const d=!l.C.F.uW&&20<this.Fe.length;for(let g=0;g<this.Fe.length;g++){const k=this.Fe[g];(""==k.name||this.slice.Un.Bb(k.name)&&(!d||this.slice.Un.getItem(k.name)))&&c.push(k)}a.formats=c}c=this.Zx.Sa(this.slice);u.Hc.Og(c)||(a.tableSizes=c);null!=this.Sm&&0!=this.Sm.length&&(a.customFields=this.Sm);null!=this.Je&&""!=this.Je&&(a.localization=this.Je);null!=this.version&&0<this.version.length&&(a.version=this.version);null!=this.WL&&0<this.WL.length&&
(a.creationDate=this.WL);return a}uwa(){for(var a=[],c=0;c<this.Xc.length;c++){var d=this.Xc[c],g={};g.formula=d.formula;-1<d.row&&(g.row=d.row);-1<d.column&&(g.column=d.column);-1<d.isTotal&&(g.isTotal=1==d.isTotal?!0:!1);d.measure&&0<d.measure.length&&(g.measure=d.measure);d.aggregation&&0<d.aggregation.length&&"none"!==d.aggregation&&(g.aggregation=d.aggregation);d.hierarchy&&0<d.hierarchy.length&&(g.hierarchy=d.hierarchy);d.member&&0<d.member.length&&(g.member=d.member);d.format&&!u.Hc.Og(d.format)&&
(g.format=d.format);a.push(g)}return a}static um(a){var c={};if(void 0==a)return c;null!=a.customFields&&(c.customFields=a.customFields);null!=a.labels&&(c.labels=a.labels);null!=a.slice&&(a.options||(a.options={}),void 0==a.options.useOlapFormatting&&void 0!=a.slice.useOlapFormatting&&(a.options.useOlapFormatting=a.slice.useOlapFormatting),void 0==a.options.showMemberProperties&&void 0!=a.slice.showMemberProperties&&(a.options.showMemberProperties=a.slice.showMemberProperties));null!=a.dataSource&&
(a.options||(a.options={}),void 0==a.options.useOlapFormatting&&void 0!=a.dataSource.useOlapFormatting&&(a.options.useOlapFormatting=a.dataSource.useOlapFormatting),void 0==a.options.showMemberProperties&&void 0!=a.dataSource.showMemberProperties&&(a.options.showMemberProperties=a.dataSource.showMemberProperties),a.slice&&void 0==a.slice.memberProperties&&void 0!=a.dataSource.memberProperties&&(a.slice.memberProperties=a.dataSource.memberProperties));c.connectionInfo=e.u.O.Et.um(a.connectionInfo?
a.connectionInfo:a);c.slice=h.vo.um(a.slice?a.slice:a);c.options=l.C.Oq.um(a.options?a.options:a);c.tableSizes=h.Yv.um(a.tableSizes?a.tableSizes:a);null!=a.formats&&0<a.formats.length&&(c.formats=a.formats);null!=a.conditions&&0<a.conditions.length&&(c.conditions=a.conditions);null!=a.localization&&(c.localization=a.localization);null!=a.version&&0<a.version.length&&(c.version=a.version);null!=a.creationDate&&0<a.creationDate.length&&(c.creationDate=a.creationDate);return c}merge(a){if(e.v(a))return this;
a=f.um(a);var c=f.um(this),d;for(d in a)a.hasOwnProperty(d)&&("connectionInfo"==d?e.u.O.Et.xb(a.connectionInfo).kb||(c[d]=a[d]):"options"==d?(this.options.jE(a[d]),c[d]=l.C.Oq.um(this.options)):c[d]=a[d]);return f.xb(c)}get kb(){return e.v(this.la)||this.la.kb}}h.By=f;class b{}b.Sm=[];h.rJ=b})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends w.Mh{ada(b){b?this.Ha(new h.W9(b)):this.Ha(new h.zQ(l.B.j.p9))}Nha(b){try{var a=-1;if(-1<(a=b.indexOf("</config>"))){var c=z.ba.create(b.substring(0,a+9));return c?h.By.Jk(c):null}a=b.indexOf("/**----**");return JSON.parse(-1<a?b.substring(0,a):b)}catch(d){return console.error(d),null}}iU(b){var a=new e.Yr(new ArrayBuffer(0),0,e.Yr.mJ);a.nNa(b);return a.byteLength}}h.X9=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b){this.type=e.u.i.tb.NONE;this.Rfa=!1;this.pg=[];this.Uj=[];this.Fm=[];this.OK=[];this.naa=this.fG=this.pG=!1;this.Ac=b}clear(){this.HC();this.bwa()}HC(){this.type=e.u.i.tb.NONE;this.query=this.measure=null;this.Fm=[]}bwa(){this.pg=[];this.Uj=[];this.fG=this.pG=!1;this.kC=[];this.MR=!1}Hi(b=!1){if(b)return this.pG&&(this.Uj=[],0<this.pg.length&&(this.Uj=this.uca(this.pg)),this.pG=!1),this.Uj;this.fG&&(this.pg=[],0<this.Uj.length&&(this.pg=
this.uca(this.Uj)),this.fG=!1);return this.pg}ILa(b,a=!1,c=[]){var d=this.Ac.ua.fa(1);d=this.Ac.nv(d.A);a?(this.i3(b,d)&&(b=[]),this.fG=!0,this.Uj=b,this.pg=[]):(this.i3(b,d)&&(b=[]),this.pG=!0,this.pg=b,this.Uj=[]);this.OK=c}get Z2(){return 0<this.Uj.length}get Fh(){return this.Gh||this.ji||this.Pz||this.mx||this.hN||this.vU}get Gh(){return 0<this.pg.length||0<this.Uj.length||0<this.OK.length}get Wu(){return this.ji||this.Pz||this.mx||this.hN||this.vU}get $Ca(){return this.Wu&&0<this.Fm.length}get ZCa(){return this.Wu&&
0<this.Uj.length}get ji(){return this.type===e.u.i.tb.wo}get Pz(){return this.type===e.u.i.tb.Ua}get mx(){return this.type===e.u.i.tb.fl}get hN(){return this.type===e.u.i.tb.jb}get vU(){return this.type===e.u.i.tb.ec}get T2(){return this.naa}set T2(b){this.naa=b}clone(){var b=new f(this.Ac);b.type=this.type;b.measure=this.measure;b.query=this.query&&this.query.clone?this.query.clone():u.Hc.zj(this.query);e.v(this.pg)||(b.pg=this.pg.slice());e.v(this.Fm)||(b.Fm=this.Fm.slice());b.pG=this.pG;e.v(this.Uj)||
(b.Uj=this.Uj.slice());b.fG=this.fG;e.v(this.kC)||(b.kC=this.kC.slice());b.MR=this.MR;return b}Sa(){var b={};this.Gh&&(this.T2?this.Z2?b.exclude=this.Ac.vr(this.Hi(!0)):b.members=this.Ac.vr(this.Hi()):this.Hi().length<this.Ac.Zi/2?b.members=this.Ac.vr(this.Hi()):b.exclude=this.Ac.vr(this.Hi(!0)),l.C.F.hS&&0<this.OK.length&&(b.members?b.members=b.members.concat(this.OK):b.exclude=b.exclude.concat(this.OK)));!e.v(this.measure)&&this.ji&&(b.measure=this.measure.Sa());!e.v(this.query)&&this.Wu&&(b.query=
this.query.Sa());0<this.Fm.length&&this.Wu&&(b.include=this.Ac.vr(this.Fm));return b}static xb(b,a,c=!1){if(e.v(b))return null;f.mva(b);var d=new f(a);d.T2=c;d.type=f.rya(b,a);d.type==e.u.i.tb.wo?f.LJa(b,d):d.type==e.u.i.tb.Ua?f.jJa(b,d,a.getTimezoneOffset()):d.type==e.u.i.tb.fl?f.wJa(b,d):d.type==e.u.i.tb.jb?f.EJa(b,d):d.type==e.u.i.tb.ec&&f.JJa(b,d);f.DJa(b,d,a);!e.v(b.include)&&d.Wu&&(d.Fm=a.Td?f.YV(b.include,a):b.include);return d}static mva(b){if("top"==b.type||"bottom"==b.type)b.query={[b.type]:b.quantity},
b.type=e.u.i.tb.wo,delete b.quantity;!e.v(b.members)&&b.negation&&(b.exclude=b.members,delete b.members,delete b.negation)}static rya(b,a){return e.v(b.type)?e.v(b.query)?e.u.i.tb.NONE:e.v(b.measure)?f.ZT(a):e.u.i.tb.wo:e.u.i.tb.validate(b.type)}static YV(b,a){if(e.v(b))return null;for(var c=[],d=0;d<b.length;d++)if("number"===typeof b[d]&&-1<b[d])c.push(b[d]);else{var g="string"==typeof b[d]?b[d]:b[d].uniqueName;g=e.u.ze.Ws(g);g=a.ex(g);-1<g&&c.push(g)}return c}static ZT(b){if(e.u.Ma.R().ga.Ec&&
e.u.Ma.R().ga.Aa!==e.u.i.ra.Cc&&e.u.Ma.R().ga.Aa!==e.u.i.ra.API&&e.u.Ma.R().ga.Aa!==e.u.i.ra.kg)return e.u.i.tb.NONE;if(e.u.Ma.R().ga.Aa===e.u.i.ra.API||e.u.Ma.R().ga.Aa===e.u.i.ra.kg)return b.type===e.u.i.Ic.yp?e.u.i.tb.jb:b.type===e.u.i.Ic.Ua?e.u.i.tb.Ua:e.u.i.tb.fl;var a=b.ua.fa(1).type;return b.type===e.u.i.Ic.Ua?2!=b.ua.length||a!==e.u.i.ib.Sl&&a!==e.u.i.ib.nh&&a!==e.u.i.ib.un?e.u.i.tb.Ua:e.u.i.tb.NONE:a===e.u.i.ib.$c||e.u.Ma.R().ga.Ec?e.u.i.tb.fl:a===e.u.i.ib.jb?e.u.i.tb.jb:a===e.u.i.ib.ec?
e.u.i.tb.ec:e.u.i.tb.NONE}static DJa(b,a,c){const d=b.members||b.exclude;if(!e.v(d)){var g=[],k=[],m=[];b=e.v(b.members);for(let n=0;n<d.length;n++){if("number"==typeof d[n]&&-1<d[n]){g.push(d[n]);continue}let p="string"===typeof d[n]?d[n]:d[n].A;p=e.u.ze.Ws(p);k.push(p);const t=c.wia(p);-1<t&&!g.some(r=>r==t)?g.push(t):c.Td&&(c.Td=!1,console.warn("Error in predefined filter or members have not been loaded yet: "+p),m.push(d[n]))}e.u.Ma.R().ga.Ec&&(a.yI=b,a.Dl=k.length>g.length?k:[]);m=l.C.F.hS?m:
[];a.ILa(g,b,m)}}static LJa(b,a){a.query=h.ym.xb(b.query,e.u.i.tb.wo);a.measure="string"==typeof b.measure?new h.oh(e.u.ze.bh(b.measure)):h.oh.xb(b.measure);if(e.v(a.query)||e.v(a.measure))a.type=e.u.i.tb.NONE,a.measure=null}static jJa(b,a,c){a.query=h.ym.xb(b.query,e.u.i.tb.Ua,c);e.v(a.query)&&(a.type=e.u.i.tb.NONE)}static wJa(b,a){a.query=h.ym.xb(b.query,e.u.i.tb.fl);e.v(a.query)&&(a.type=e.u.i.tb.NONE)}static EJa(b,a){a.query=h.ym.xb(b.query,e.u.i.tb.jb);e.v(a.query)&&(a.type=e.u.i.tb.NONE)}static JJa(b,
a){a.query=h.ym.xb(b.query,e.u.i.tb.ec);e.v(a.query)&&(a.type=e.u.i.tb.NONE)}i3(b,a){return 0==a.length?!1:a.reduce((c,d)=>{if(b.some(k=>k==d))return c;const g=this.Ac.za(d).children;return c&&this.i3(b,g)},!0)}uca(b){const a=new e.BF;for(var c=1;c<this.Ac.fn;c++)a.add(c);for(c=0;c<b.length;c++){const d=this.Ac.za(b[c]);a.delete(d.ordinal);this.mW(a,d);this.ria(a,d.parent)}this.Rba(a,this.Ac.pd);this.Ac.Ts&&this.rKa(a);return a.Pc()}rKa(b){for(let a=b.size-1;0<=a;a--){const c=this.Ac.za(b[a]);c.parent||
b.delete(c.ordinal)}}Rba(b,a){for(let c=0;c<a.children.length;c++){const d=this.Ac.za(a.children[c]);0<d.children.length&&(b.has(d.ordinal)?b.has(d.children[0])&&this.mW(b,d):this.Rba(b,d))}}mW(b,a){if(a){a=a.children;for(var c=0;c<a.length;c++)b.delete(a[c]),this.mW(b,this.Ac.za(a[c]))}}ria(b,a){a&&!a.dc&&(b.delete(a.ordinal),a.parent&&this.ria(b,a.parent))}Cza(){var b=null;this.Pz&&(b=this.yza(this.query));this.mx&&(b=this.Fza(this.query));this.hN&&(b=this.Dza(this.query));this.vU&&(b=this.Gza(this.query));
if(!e.v(b)&&0<this.Fm.length)for(var a=0;a<this.Fm.length;a++)b.add(this.Fm[a]);if(!e.v(b)&&0<this.Uj.length)for(a=0;a<this.Uj.length;a++)b.delete(this.Uj[a]),this.mW(b,this.Ac.za(this.Uj[a]));return b.Pc()}yza(b){b=b.MS(this.Ac.getTimezoneOffset());var a=new e.BF,c=0<this.pg.length,d=2<this.Ac.ua.length,g=c?this.pg:null;c&&d&&(g=this.Mea(g));for(var k=c?g.length:this.Ac.Zi,m=0;m<k;m++){var n=c?g[m]:m;if(d){var p=this.Ac.za(n);if(p.level.type===e.u.i.ib.Sl||p.level.type===e.u.i.ib.Nt||p.level.type===
e.u.i.ib.nh)continue}b.va===e.u.i.Eb.ho?this.K3(this.Ac.zD(n).toLowerCase(),b)&&a.add(n):this.EFa(this.Ac.SM(n),b)&&a.add(n)}return a}Fza(b){var a=new e.BF,c=this.Ac.ic?this.Ac.ic.yb:1,d=0<this.pg.length,g=2<this.Ac.ua.length,k=d?this.pg:null;d&&g&&(k=this.Mea(k));for(var m=d?k.length:this.Ac.Zi,n=0;n<m;n++){var p=d?k[n]:n;1<c&&g&&this.Ac.za(d?k[n]:n).level.yb<c||this.K3(this.Ac.zD(p).toLowerCase(),b)&&a.add(p)}return a}Dza(b){for(var a=new e.BF,c=0<this.pg.length,d=c?this.pg:null,g=c?d.length:this.Ac.Zi,
k=0;k<g;k++){var m=c?d[k]:k;this.uV(this.Ac.SM(m),b)&&a.add(m)}return a}Gza(b){b=b.jxa();for(var a=new e.BF,c=0<this.pg.length,d=c?this.pg:null,g=c?d.length:this.Ac.Zi,k=0;k<g;k++){var m=c?d[k]:k;b.va==e.u.i.Eb.ho?this.K3(this.Ac.zD(m).toLowerCase(),b)&&a.add(m):this.uV(this.Ac.SM(m),b)&&a.add(m)}return a}K3(b,a){if(e.v(a.value))return!1;if(a.va===e.u.i.Eb.EQUAL)return b===a.value.toLowerCase();if(a.va===e.u.i.Eb.Tf)return b!==a.value.toLowerCase();if(a.va===e.u.i.Eb.kF)return 0==b.indexOf(a.value.toLowerCase());
if(a.va===e.u.i.Eb.rB)return 0!=b.indexOf(a.value.toLowerCase());if(a.va===e.u.i.Eb.eB){var c=b.lastIndexOf(a.value.toLowerCase());return 0<=c&&c+a.value.length==b.length}if(a.va===e.u.i.Eb.tB)return c=b.lastIndexOf(a.value.toLowerCase()),0>c||c+a.value.length!=b.length;if(a.va===e.u.i.Eb.ho)return c=b.indexOf(a.value.toLowerCase()),0<=c;if(a.va===e.u.i.Eb.sB)return c=b.indexOf(a.value.toLowerCase()),0>c;if(a.va===e.u.i.Eb.GREATER)return b>a.value.toLowerCase();if(a.va===e.u.i.Eb.dl)return b>=a.value.toLowerCase();
if(a.va===e.u.i.Eb.LESS)return b<a.value.toLowerCase();if(a.va===e.u.i.Eb.gl)return b<=a.value.toLowerCase();if(a.va===e.u.i.Eb.mh)return c=a.value[0].toLowerCase(),a=a.value[1].toLowerCase(),c<a?b>=c&&b<=a:b>=a&&b<=c;if(a.va===e.u.i.Eb.Tg)return c=a.value[0].toLowerCase(),a=a.value[1].toLowerCase(),c<a?b<c||b>a:b<a||b>c}uV(b,a){if(e.v(a.value))return!1;if(a.va===e.u.i.Ug.EQUAL)return b===a.value;if(a.va===e.u.i.Ug.Tf)return b!==a.value;if(a.va===e.u.i.Ug.GREATER)return b>a.value;if(a.va===e.u.i.Ug.dl)return b>=
a.value;if(a.va===e.u.i.Ug.LESS)return b<a.value;if(a.va===e.u.i.Ug.gl)return b<=a.value;if(a.va===e.u.i.Ug.mh){var c=Math.min(a.value[0],a.value[1]);a=Math.max(a.value[0],a.value[1]);return b>=c&&b<=a}if(a.va===e.u.i.Ug.Tg)return c=Math.min(a.value[0],a.value[1]),a=Math.max(a.value[0],a.value[1]),b<c||b>a}EFa(b,a){if(e.v(a.value))return!1;if(a.va===e.u.i.cc.iF){var c=a.value.getTime();return b<c}if(a.va===e.u.i.cc.jF)return c=a.value.getTime(),b<c+864E5;if(a.va===e.u.i.cc.fF)return c=a.value.getTime(),
b>=c+864E5;if(a.va===e.u.i.cc.gF)return c=a.value.getTime(),b>=c;if(a.va===e.u.i.cc.mh)return c=Math.min(a.value[0].getTime(),a.value[1].getTime()),a=Math.max(a.value[0].getTime(),a.value[1].getTime()),b>=c&&b<=a;if(a.va===e.u.i.cc.Tg)return c=Math.min(a.value[0].getTime(),a.value[1].getTime()),a=Math.max(a.value[0].getTime(),a.value[1].getTime()),b<c||b>a}set Dl(b){this.kC=b}get Dl(){null==this.kC&&(this.kC=[]);return this.kC}get yI(){return this.MR}set yI(b){this.MR=b}Fw(){if(0<this.Dl.length){let c=
e.u.Ma.R().ga;for(var b=0;b<this.Dl.length;b++){if(c.Ec&&!1===c.Nm||this.Ac.type!==e.u.i.Ic.Ua||this.Ac.ua.fa(1).type!==e.u.i.ib.Ua&&this.Ac.ua.fa(1).type!==e.u.i.ib.Mc)var a=this.Ac.Ib(this.Dl[b]);else{if(l.C.F.qr&&"null"===this.Dl[b])a=null;else if(8>this.Dl[b].length||/\D+/.test(this.Dl[b].slice(1))){a=this.Ac.ua.fa(1).type===e.u.i.ib.Mc?l.C.F.Ek:l.C.F.Up;a=this.Ac.mapping.La(this.Ac.A,"format",a);const d=new e.Rf(this.Dl[b],{Vy:!1,format:a});d.Kf(u.Lh.sg(a));a=d.getTime()}else a=parseInt(this.Dl[b]);
a=isNaN(a)?this.Ac.Ib(this.Dl[b]):this.Ac.Pu(a)}null!=a&&(this.yI?this.Uj.push(a.ordinal):this.pg.push(a.ordinal))}this.Dl=[]}if(this.Fm||0<this.Fm.length)this.Fm=f.YV(this.Fm,this.Ac)}Mea(b){for(var a=[],c=0;c<b.length;c++)a.push(b[c]),this.hia(a,this.Ac.za(b[c]));return a}hia(b,a){if(a&&a.children&&0<a.children.length){a=a.children;for(var c=0;c<a.length;c++)b.push(a[c]),this.hia(b,this.Ac.za(a[c]))}}}h.lB=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b=null,a=null){this.va=b;this.value=a}clone(){return new f(this.va,this.value)}static xb(b,a,c=null){if(e.v(b))return null;let d=null;a==e.u.i.tb.wo?(e.u.i.Wb.ui.some(g=>{if(!e.v(b[g]))return d=new f(g,parseFloat(b[g])),!0}),e.u.i.Wb.Uf.some(g=>{if(!e.v(b[g]))return d=new f(g,[parseFloat(b[g][0]),parseFloat(b[g][1])]),!0})):a==e.u.i.tb.Ua?(e.u.i.cc.ui.some(g=>{if(!e.v(b[g])){const k=new e.Rf(b[g]);k.Kf(c,!1);d=new f(g,k);return!0}}),e.u.i.cc.Uf.some(g=>
{if(!e.v(b[g])){const k=new e.Rf(b[g][0]);k.Kf(c,!1);const m=new e.Rf(b[g][1]);m.Kf(c,!1);if(k&&m)return d=new f(g,k.getTime()<m.getTime()?[k,m]:[m,k]),l.C.F.rM||(d.value[1]=d.value[1].p6("day",l.C.F.Yw)),!0}}),e.u.i.cc.zy.some(g=>{if(e.u.i.cB.ih(b[g]))return d=new f(g,b[g].toLowerCase()),!0}),e.v(b[e.u.i.Eb.ho])||(d=new f(e.u.i.Eb.ho,b[e.u.i.Eb.ho]))):a==e.u.i.tb.fl?(e.u.i.Eb.ui.some(g=>{if(!e.v(b[g]))return d=new f(g,b[g]),!0}),e.u.i.Eb.Uf.some(g=>{if(!e.v(b[g]))return d=new f(g,[b[g][0],b[g][1]]),
!0})):a==e.u.i.tb.jb?(e.u.i.Ug.ui.some(g=>{if(!e.v(b[g]))return d=new f(g,parseFloat(b[g])),!0}),e.u.i.Ug.Uf.some(g=>{if(!e.v(b[g]))return d=new f(g,[parseFloat(b[g][0]),parseFloat(b[g][1])]),!0})):a==e.u.i.tb.ec&&(e.u.i.il.ui.some(g=>{if(!e.v(b[g]))return d=new f(g,b[g]),!0}),e.u.i.il.Uf.some(g=>{if(!e.v(b[g]))return d=new f(g,[b[g][0],b[g][1]]),!0}),e.v(b[e.u.i.Eb.ho])||(d=new f(e.u.i.Eb.ho,b[e.u.i.Eb.ho])));return d}Sa(){let b=this.value;const a=l.C.F.rM;b instanceof e.Rf&&(b=a?b.toString():b.format("yyyy-MM-dd"));
Array.isArray(b)&&b[0]instanceof e.Rf&&(b=[a?b[0].toString():b[0].format("yyyy-MM-dd"),a?b[1].toString():b[1].format("yyyy-MM-dd")]);return{[this.va]:b}}MS(b){if(!l.C.F.rM&&(this.va==e.u.i.cc.EQUAL||this.va==e.u.i.cc.Tf)){b=this.value.clone().Ll();var a=this.value.clone().ay();return new f(this.va==e.u.i.cc.Tf?e.u.i.cc.Tg:e.u.i.cc.mh,[b,a])}if(0<=e.u.i.cc.zy.indexOf(this.va)&&e.u.i.cB.ih(this.value)){a=(new e.Rf).Kf(b);this.va==e.u.i.cc.hP?(a.t6(this.value,l.C.F.Yw),a=(new e.Rf(a.getTime())).Kf(b).Ll()):
this.va==e.u.i.cc.oQ?(a.p6(this.value,l.C.F.Yw),a.setMilliseconds(1E3),a=(new e.Rf(a.getTime())).Kf(b).Ll()):this.va==e.u.i.cc.UP&&(a.t6(this.value,l.C.F.Yw),a.setMilliseconds(-1),a.t6(this.value,l.C.F.Yw),a=(new e.Rf(a.getTime())).Kf(b).Ll());let c=a.clone().p6(this.value,l.C.F.Yw).FMa();c=(new e.Rf(c.getTime())).Kf(b).ay();return new f(e.u.i.cc.mh,[a,c])}return this}jxa(){return 0<=e.u.i.il.ui.indexOf(this.va)?new f(this.va,this.r6(this.value)):0<=e.u.i.il.Uf.indexOf(this.va)?new f(this.va,[this.r6(this.value[0]),
this.r6(this.value[1])]):this}r6(b){const a=b.match(/[s|m|h|d]$/);if(!e.v(a)){const c=parseFloat(b.substr(0,b.length-1));if("s"==a[0])return c;if("m"==a[0])return 60*c;if("h"==a[0])return 3600*c;if("d"==a[0])return 86400*c}return parseInt(b)}}h.ym=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.X9{constructor(){super();this.b1="\x3c!--";this.pda="/**----**"}load(b,a){this.url=b;this.pa=new z.tk;this.pa.dataType=z.bB.DB;this.pa.N(w.ia.te,c=>this.bt(c));this.pa.N(w.ia.Qc,()=>this.Jj());this.pa.N(w.ia.xa,()=>this.Rb());this.pa.$h(a);this.pa.load(b)}bt(){var b=0;null!=this.pa&&-1<(b=this.pa.response.indexOf("</config>"))&&b+this.pda.length+1<this.pa.response.length&&this.Jj()}Jj(){if(null!=this.pa){this.pa.Vd(w.ia.Qc);var b=this.Nha(this.pa.response);
if(b instanceof h.By){if(b.la instanceof e.u.local.csv.LF&&1==b.la.Fk){var a=b.la;a.filename=this.pa.url;a.embeddedDataOffset=this.iU(this.pa.response.substring(0,this.pa.response.indexOf("</config>")+9)+"\n");var c=this.pa.response.indexOf(this.b1);a.isOCSV2Data=this.pa.response.substring(c,c+this.b1.length)==this.b1;b.la=a}}else e.v(b)||e.v(b.dataSource)?l.C.F.H6&&this.Rb(l.B.j.q9):1==b.dataSource.embedded&&(b.dataSource.filename=this.pa.url,b.dataSource.embeddedDataOffset=this.iU(this.pa.response.substring(0,
this.pa.response.indexOf(this.pda))),b.dataSource.isOCSV2Data=!0);this.ada(b);this.dispose()}}Rb(b=""){this.pa.Vd(w.ia.te);this.pa.Vd(w.ia.Qc);this.pa.Vd(w.ia.xa);if(e.ka(b)){var a="";null!=this.pa&&null!=this.pa.response&&""!=this.pa.response&&(a=l.Tb.validate(this.pa.response),a=700<a.length?a.substr(0,700):a,a=e.P.bind(l.B.j.iQ,a).replace(/'/g,""));b=l.Tb.valid(this.url)?this.url:l.Tb.validate(this.url);b=e.P.bind(l.B.j.ZJ,b);this.Ha(new h.zQ(b,a))}else this.Ha(new h.zQ(b));this.dispose()}dispose(){null!=
this.pa&&(this.pa.Vd(),this.pa.dispose(),this.pa=null)}}h.Zra=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.X9{constructor(){super()}load(){this.file=new z.B8;this.file.N(w.ia.to,()=>this.DIa());this.file.N(w.ia.Qc,()=>this.Jj());this.file.N(w.ia.BX,()=>this.AV());this.file.N(w.ia.xa,()=>this.Rb());this.file.Iba([".json",".js"])}DIa(){null!=this.file&&this.file.load(z.Rqa.ARRAY_BUFFER)}Jj(){try{this.wya();var b=new e.Yr(this.file.response,0,e.Yr.mJ),a=b.iW(b.byteLength),c=this.Nha(a);if(c instanceof h.By){if(c.la instanceof e.u.local.csv.LF&&1==c.la.Fk){var d=
c.la;d.qda=this.file.response;d.$0=this.iU(a.substring(0,a.indexOf("</config>")+9)+"\n");c.la=d}}else e.v(c)||e.v(c.dataSource)?l.C.F.H6&&this.Rb(l.B.j.q9):1==c.dataSource.Fk&&(c.dataSource.embeddedDataToLoad=this.file.response,c.dataSource.embeddedDataOffset=this.iU(a.substring(0,a.indexOf("/**----**"))));this.ada(c);this.dispose()}catch(g){console.error(g),this.Rb()}}Rb(b=""){e.ka(b)&&(b=e.P.bind(l.B.j.ZJ,""));this.Ha(new h.zQ(b));this.dispose()}wya(){this.Ya(h.Ph.kK)}AV(){this.Ya(h.Ph.ds);this.dispose()}dispose(){null!=
this.file&&(this.file.Vd(),this.file.dispose(),this.file=null)}}h.Moa=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));(function(e){(function(l){(function(h){class f{static MA(b){return b==f.AP||b==f.IY||b==f.Y6||b==f.wB}}f.AP="file";f.IY="server";f.Y6="binary";f.wB="plain";h.up=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(a,c,d){this.uk=this.A="";this.index=-1;this.label="";void 0!=a&&(this.A=a);void 0!=c&&(this.$=c);void 0!=d&&(this.index=d)}get $(){return this.uk}set $(a){e.u.i.ea.MA(a)&&(this.uk=a)}static xb(a){if(null==a)return null;var c=new f;void 0!=a.uniqueName&&(c.A=a.uniqueName);void 0!=a.aggregation&&(c.$=a.aggregation);void 0!=a.index&&(c.index=a.index);void 0!=a.label&&(c.label=a.label);return c}Sa(){var a={};a.uniqueName=this.A;""!==this.$&&(a.aggregation=
this.$);return a}}h.oh=f;class b{constructor(){this.rows=[];this.Ka=[];this.qb=[];this.Da=[];this.hk={};this.Yj={};this.Ww=[];this.Vw=[];this.Tw=[];this.Sw=[];this.Xf=this.hf=this.kf=this.lf=!1;this.Zg=[];this.$g=null;this.cd=[];this.Ij={};this.Un=new e.ub}static eha(a){if(0<=b.fd(a.rows)){var c=b.fd(a.Ka);0<=c&&(a.Ka[c]=a.Ka[0],a.Ka.shift())}}static fd(a){for(var c=0;c<a.length;c++)if("[Measures]"==a[c].uniqueName)return c;return-1}static hW(a){for(var c=[],d,g=0;g<a.length;g++){d=[];d.push(null!=
a[g].measure?a[g].measure:"");if(null!=a[g].tuple)for(var k=0;k<a[g].tuple.length;k++)d.push(a[g].tuple[k]);c.push(d)}return c}static gW(a){for(var c=[],d,g=0;g<a.length;g++){d=[];d.push(null!=a[g].level?a[g].level:"");d.push(null!=a[g].measure?a[g].measure:-1);if(null!=a[g].tuple){d.push(a[g].tuple[a[g].tuple.length-1]);for(var k=0;k<a[g].tuple.length;k++)d.push(a[g].tuple[k])}c.push(d)}return c}static xS(a,c){if(!e.v(c)&&!c.kb)for(let g=0;g<a.length;g++){var d=a[g].uniqueName;let k=c.La(d,"caption");
e.v(k)||delete a[g].caption;d=c.La(d,"aggregations");e.v(d)||delete a[g].availableAggregations}}static xb(a,c=null){if(null==a)return null;a instanceof b||(a=b.um(a));var d=new b;null!=a.measures&&a.measures.length&&(d.Da=a.measures);null==c&&(c=l.Wa.R().Fa.ga);null!=a.pages&&a.pages.length&&(d.qb=b.F2(a.pages));null!=a.columns&&a.columns.length&&(d.Ka=b.F2(a.columns));null!=a.rows&&a.rows.length&&(d.rows=b.F2(a.rows));null!=a.flatOrder&&a.flatOrder.length&&(d.Zg=a.flatOrder);null!=a.flatSort&&a.flatSort.length&&
(d.$g=a.flatSort);null!=a.drillThrough&&a.drillThrough.length&&(d.cd=a.drillThrough);if(void 0!==a.memberProperties&&Array.isArray(a.memberProperties))for(let g=0;g<a.memberProperties.length;g++){const k=a.memberProperties[g];null!=k&&(e.v(d.Ij)&&(d.Ij={}),d.Ij[k.levelName]=k.properties)}b.eha(d);b.xS(d.Da,c.mapping);b.xS(d.qb,c.mapping);b.xS(d.Ka,c.mapping);b.xS(d.rows,c.mapping);null!=a.rowSorting&&(d.hk=a.rowSorting);null!=a.columnSorting&&(d.Yj=a.columnSorting);null!=a.expandAll&&(d.lf=d.kf=a.expandAll);
null!=a.expandAllRows&&(d.lf=a.expandAllRows);null!=a.expandAllColumns&&(d.kf=a.expandAllColumns);null!=a.expandedRows&&a.expandedRows.length&&(d.Ww=a.expandedRows);null!=a.expandedColumns&&a.expandedColumns.length&&(d.Vw=a.expandedColumns);null!=a.drillAll&&(d.hf=d.Xf=a.drillAll);null!=a.drillAllRows&&(d.hf=a.drillAllRows);null!=a.drillAllColumns&&(d.Xf=a.drillAllColumns);null!=a.drilledRows&&a.drilledRows.length&&(d.Tw=a.drilledRows);null!=a.drilledColumns&&a.drilledColumns.length&&(d.Sw=a.drilledColumns);
return d}static F2(a){for(var c=[],d=0;d<a.length;d++){c[d]={};for(var g in a[d])"sort"==g?c[d].sortName=a[d].sort:c[d][g]=a[d][g]}return c}static Jk(a){var c=new b,d=a.find("defaultSlice axes axis[name=rows]");c.rows=b.G2(d.find("hierarchy"));c.hk=b.Jja(d.find("sort"));c.Ww=b.yda(d.find("expanded tuple"));c.Tw=b.lda(d.find("drilled tuple"));d=a.find("defaultSlice axes axis[name=columns]");c.Ka=b.G2(d.find("hierarchy"));c.Yj=b.Jja(d.find("sort"));c.Vw=b.yda(d.find("expanded tuple"));c.Sw=b.lda(d.find("drilled tuple"));
b.eha(c);d=a.find("defaultSlice axes axis[name=pages]");c.qb=b.G2(d.find("hierarchy"));c.Da=b.DFa(a.find("defaultSlice measures measure"));c.Zg=b.Pza(a.find("defaultSlice flatOrder hierarchyName"));d=a.find("params");0!=d.find("param[name=expandAll]").length&&(c.lf=c.kf=e.P.Zc(d.find("param[name=expandAll]").text()));0!=d.find("param[name=drillAll]").length&&(c.hf=c.Xf=e.P.Zc(d.find("param[name=drillAll]").text()));a=a.find("defaultSlice");0!=a.find("expandAll").length&&(c.lf=c.kf=e.P.Zc(a.find("expandAll").text()));
0!=a.find("drillAll").length&&(c.hf=c.Xf=e.P.Zc(a.find("drillAll").text()));return c}static G2(a){for(var c=[],d=0;d<a.length;d++){var g=b.eDa(a[d]);c.push(g)}return c}static eDa(a){var c={};c.dimensionName=a.find("dimensionName").text().trim();c.uniqueName=a.find("hierarchyName").text().trim();0<a.find("levelName").length&&(c.activeLevelName=a.find("levelName").text().trim());void 0!==a.attr("sort")&&(c.sortName=a.attr("sort"));void 0!==a.attr("sortAs")&&(c.sortAs=a.attr("sortAs"));var d=a.find("filter");
if(0<d.length){for(var g=[],k=d.find("member"),m=0;m<k.length;m++){var n=k[m].text().trim();g.push(n)}m=void 0!==d.attr("negation")?e.P.Zc(d.attr("negation")):!1;k=void 0!==d.attr("type")?d.attr("type"):e.u.i.tb.NONE;n=void 0!==d.attr("quantity")?parseInt(d.attr("quantity")):-1;var p=void 0!==d.attr("measure")?d.attr("measure"):"";if(k!=e.u.i.tb.NONE||0<g.length)c.filter={};0<g.length&&(c.filter.members=g,c.filter.negation=m);k!=e.u.i.tb.NONE&&(c.filter.type=k,c.filter.quantity=n,c.filter.measure=
p)}m=d.find("properties");if(0<m.length)for(d=m.find("property"),c.predefinedProperties=[],m=0;m<d.length;m++)g=d[m].find("propertyName").text(),k=d[m].find("levelName").text(),null==c.predefinedProperties[k]&&(c.predefinedProperties[k]=[]),c.predefinedProperties[k].push(g);d=[];k=a.find("sort member");for(m=0;m<k.length;m++)d.push(k[m].text());c.customSorting=d;void 0!==a.attr("filterEnabled")&&(c.filterEnabled="false"!=a.attr("filterEnabled"));d={};a=a.find("group");for(m=0;m<a.length;m++)for(g=
a[m].attr("name"),d[g]=[],k=a[m].find("member"),n=0;n<k.length;n++)d[g].push(k[m].text());c.groups=d;return c}static Jja(a){var c={};0<a.length&&(c.type=a.text(),c.tuple=void 0!==a.attr("tuple")?a.attr("tuple").split(","):[],c.measure=new f(a.attr("measure")),void 0!==a.attr("measureAggregation")&&(c.measure.$=a.attr("measureAggregation")));return c}static yda(a){var c=[];if(0<a.length)for(var d=0;d<a.length;d++){var g=a[d],k=g.text().split(",");if(isNaN(parseInt(k[0]))){var m=void 0!==g.attr("measure")?
new f(g.attr("measure")):null;void 0!==g.attr("measureAggregation")&&(m.$=g.attr("measureAggregation"));k.unshift(m)}else m=void 0!==g.attr("measure")?parseInt(g.attr("measure")):-1,isNaN(m)&&(m=-1),k.unshift(m);c.push(k)}return c}static lda(a){var c=[];if(0<a.length)for(var d=0;d<a.length;d++){var g=a[d],k=b.DMa(g.text().split(","));var m=-1;void 0!==g.attr("memberName")?m=g.attr("memberName"):void 0!==g.attr("member")&&(m=parseInt(g.attr("member")));k.unshift(m);isNaN(parseInt(k[0]))?(m=void 0!==
g.attr("measure")?new f(g.attr("measure")):null,void 0!==g.attr("measureAggregation")&&(m.$=g.attr("measureAggregation")),k.unshift(m)):(m=void 0!==g.attr("measure")?parseInt(g.attr("measure")):-1,isNaN(m)&&(m=-1),k.unshift(m));void 0!==g.attr("levelName")&&(g=g.attr("levelName"),k.unshift(g));c.push(k)}return c}static DMa(a){for(var c=0;c<a.length;c++)a[c]=parseInt(a[c]);return a}static DFa(a){for(var c=[],d=0;d<a.length;d++){var g=b.zFa(a[d]);c.push(g)}return c}static Pza(a){for(var c=[],d=0;d<
a.length;d++)c.push(a[d].text());return c}static zFa(a){var c={};c.uniqueName=a.text().trim();void 0!==a.attr("calculated")&&0<a.text().length&&(c.uniqueName=a.attr("uniqueName"),c.formula=a.text(),c.individual=void 0!==a.attr("individual")?e.P.Zc(a.attr("individual")):!1);void 0!==a.attr("availableAggregations")&&(c.availableAggregations=a.attr("availableAggregations").split(","));void 0!==a.attr("aggregation")&&(c.aggregation=a.attr("aggregation"));void 0!==a.attr("caption")&&(c.caption=a.attr("caption"));
void 0!==a.attr("grandTotalCaption")&&(c.grandTotalCaption=a.attr("grandTotalCaption"));void 0!==a.attr("format")&&(c.format=a.attr("format"));c.active=void 0!==a.attr("active")?e.P.Zc(a.attr("active")):!0;return c}op(a=!1){var c=z.ba.create("<defaultSlice/>"),d=z.ba.create("<axes/>"),g=z.ba.create("<axis/>");g.attr("name","rows");for(var k=0;k<this.rows.length;k++)g.append(this.J2(this.rows[k],a));null!=this.hk&&null!=this.hk.type&&this.hk.type!=e.u.i.Ba.ed&&(k=z.ba.create("<sort/>").text(this.hk.type),
k.attr("tuple",this.hk.tuple.join(",")),k.attr("measure",this.hk.measure.A),""!=this.hk.measure.$&&k.attr("measureAggregation",this.hk.measure.$),g.append(k));if(0<this.Ww.length){var m=z.ba.create("<expanded/>");for(k=0;k<this.Ww.length;k++){var n=this.Ww[k].slice(0);var p=n.shift();0!=n.length&&(n=z.ba.create("<tuple/>").append(z.ba.fi(n.toString())),p&&(n.attr("measure",p.A),""!=p.$&&n.attr("measureAggregation",p.$)),m.append(n))}g.append(m)}if(0<this.Tw.length){var t=z.ba.create("<drilled/>");
for(k=0;k<this.Tw.length;k++){n=this.Tw[k].slice(0);m="string"==typeof n[0]?n.shift():"";p=n.shift();var r=n.shift();null!=r&&0!=n.length&&(n=z.ba.create("<tuple/>").text(n.toString()),p&&(n.attr("measure",p.A),""!=p.$&&n.attr("measureAggregation",p.$)),0<r.length&&n.attr("memberName",r),0<m.length&&n.attr("levelName",m),t.append(n))}g.append(t)}m=z.ba.create("<axis/>");m.attr("name","columns");for(k=0;k<this.Ka.length;k++)m.append(this.J2(this.Ka[k],a));null!=this.Yj&&this.Yj.type&&this.Yj.type!=
e.u.i.Ba.ed&&(k=z.ba.create("<sort/>").text(this.Yj.type),k.attr("tuple",this.Yj.tuple.join(",")),k.attr("measure",this.Yj.measure.A),""!=this.Yj.measure.$&&k.attr("measureAggregation",this.Yj.measure.$),m.append(k));if(0<this.Vw.length){r=z.ba.create("<expanded/>");for(k=0;k<this.Vw.length;k++)n=this.Vw[k].slice(0),p=n.shift(),0!=n.length&&(n=z.ba.create("<tuple/>").append(z.ba.fi(n.toString())),p&&(n.attr("measure",p.A),""!=p.$&&n.attr("measureAggregation",p.$)),r.append(n));m.append(r)}if(0<this.Sw.length){t=
z.ba.create("<drilled/>");for(k=0;k<this.Sw.length;k++)n=this.Sw[k].slice(0),p=n.shift(),r=n.shift(),null!=r&&0!=n.length&&(n=z.ba.create("<tuple/>").text(n.toString()),p&&(n.attr("measure",p.A),""!=p.$&&n.attr("measureAggregation",p.$)),0<r.length&&n.attr("memberName",r),t.append(n));m.append(t)}p=z.ba.create("<axis/>");p.attr("name","pages");for(k=0;k<this.qb.length;k++)p.append(this.J2(this.qb[k],a));this.Un.clear();n=z.ba.create("<measures/>");for(k=0;k<this.Da.length;k++)r=this.Da[k],t=z.ba.create("<measure/>").text(r.A),
null!=r.Ge&&""!=r.Ge?(t=z.ba.create("<measure/>").append(z.ba.fi(r.Ge)),r.Lk&&t.attr("individual","true"),t.attr("caption",r.caption)):(a||r.$!=e.u.i.ea.NONE)&&t.attr("aggregation",r.$),(a||0==r.active)&&t.attr("active",r.active),null!=r.format&&""!=r.format&&(t.attr("format",r.format),r.active?this.Un.Ta(r.format,!0):this.Un.Bb(r.format)&&!0===this.Un.getItem(r.format)||this.Un.Ta(r.format,!1)),null!=r.Wc&&0<r.Wc.length&&t.attr("availableAggregations",r.Wc.join(",")),n.append(t);0==g.kb()&&d.append(g);
0==m.kb()&&d.append(m);0==p.kb()&&d.append(p);0==d.kb()&&c.append(d);0==n.kb()&&c.append(n);if(0<this.Zg.length){d=z.ba.create("<flatOrder/>");for(k=0;k<this.Zg.length;k++)d.append(z.ba.create("<hierarchyName/>").text(this.Zg[k]));c.append(d)}d=this.lf&&this.kf;(a||d)&&c.append(z.ba.create("<expandAll/>").text(d));d=this.hf&&this.Xf;(a||d)&&c.append(z.ba.create("<drillAll/>").text(d));return c}Sa(a=!1,c=null){var d={},g,k=[];for(g=0;g<this.qb.length;g++)k.push(this.I2(this.qb[g],a,c));0<k.length&&
(d.reportFilters=k);k=[];for(g=0;g<this.rows.length;g++)k.push(this.I2(this.rows[g],a,c));0<k.length&&(d.rows=k);k=[];for(g=0;g<this.Ka.length;g++)k.push(this.I2(this.Ka[g],a,c));0<k.length&&(d.columns=k);k=[];const m=new e.ub,n=l.oc.tj.JBa();this.Un.clear();for(g=0;g<this.Da.length;g++){var p=this.Tga(this.Da[g],a,c);m.Bb(p.uniqueName)||m.Ta(p.uniqueName,new Map);m.getItem(p.uniqueName).set(p.aggregation,!0);k.push(p)}for(g=0;g<n.length;g++){var t=n.fa(g);p=n.Uh(g);t=t.keys();for(var r of t)t=n.getItem(p).get(r),
(!m.Bb(p)||m.Bb(p)&&!m.getItem(p).has(r))&&l.C.F.uW&&(k.push({uniqueName:p,aggregation:r,active:!1,format:t}),this.Un.Ta(t,!1))}0<k.length&&(d.measures=k);if(null!=this.hk&&null!=this.hk.type&&this.hk.type!=e.u.i.Ba.ed||null!=this.Yj&&this.Yj.type&&this.Yj.type!=e.u.i.Ba.ed)d.sorting={},null!=this.hk&&null!=this.hk.type&&this.hk.type!=e.u.i.Ba.ed&&(d.sorting.row=this.hk),null!=this.Yj&&this.Yj.type&&this.Yj.type!=e.u.i.Ba.ed&&(d.sorting.column=this.Yj);r={};k=this.lf&&this.kf;if(a||k)r.expandAll=
k;if(a||this.lf&&!k)r.expandAllRows=this.lf;if(a||this.kf&&!k)r.expandAllColumns=this.kf;if(e.u.Ma.R().qa){var v=e.u.Ma.R().qa.wb;var y=e.u.Ma.R().qa.Fb}0<this.Ww.length&&v&&(r.rows=this.xda(this.Ww,v,a,c));0<this.Vw.length&&y&&(r.columns=this.xda(this.Vw,y,a,c));u.Hc.Og(r)||(d.expands=r);c={};r=this.hf&&this.Xf;if(a||r)c.drillAll=r;if(a||this.hf&&!r)c.drillAllRows=this.hf;if(a||this.Xf&&!r)c.drillAllColumns=this.Xf;0<this.Tw.length&&(c.rows=this.kda(this.Tw,v));0<this.Sw.length&&(c.columns=this.kda(this.Sw,
y));u.Hc.Og(c)||(d.drills=c);0<this.Zg.length&&(d.flatOrder=this.Zg);this.$g&&0<this.$g.length&&(d.flatSort=this.$g);0<this.cd.length&&(d.drillThrough=this.cd);if(this.Ij){a=[];for(let A in this.Ij)this.Ij.hasOwnProperty(A)&&a.push({levelName:A,properties:this.Ij[A]});0<a.length&&(d.memberProperties=a)}return d}xda(a,c,d=!1,g=null){for(var k=[],m,n,p,t=0;t<a.length;t++)if(m={},n=a[t].slice(0),p=n.shift(),0!=n.length){for(var r=[],v=0;v<n.length;v++){var y=c.fa(v).Ib(n[v]);r.push(y.Fi)}m.tuple=r;p&&
(m.measure=this.Tga(p.uniqueName?p:p.Sa(),d,g));k.push(m)}return k}kda(a,c){var d=[],g=0;a:for(;g<a.length;g++){var k={};var m=a[g].slice(0);var n=m.shift();var p=m.shift();m.shift();if(0!=m.length){for(var t=[],r=0;r<m.length;r++){var v=c.fa(r).Ib(m[r]);if(v)t.push(v.Fi);else continue a}k.tuple=t;p&&(k.measure=p.uniqueName?p:p.Sa());""!==n&&(k.level=n);d.push(k)}}return d}eEa(a){return e.u.Ma.R().ga.Aa===e.u.i.ra.Cc||e.u.Ma.R().ga.Aa===e.u.i.ra.Pd?"[Measures].["+a.name+"]"!=a.uniqueName:e.u.Ma.R().O instanceof
e.u.local.O.bQ&&void 0!==e.u.Ma.R().O.nA[a.uniqueName]?!1:a.name!=a.uniqueName}vDa(a){if(e.u.Ma.R().ga.Aa==e.u.i.ra.API)return!1;if(a.lk.length!==a.Wc.length)return!0;for(var c=0;c<a.Wc.length;c++)if(a.Wc[c]!==a.lk[c])return!0;return!1}Tga(a,c,d=null){var g={};g.uniqueName=a.uniqueName;if(e.ka(a.formula)){if(c||a.aggregation!=e.u.i.ea.NONE)g.aggregation=a.aggregation;var k=e.u.Ma.R().O.Dx(a);if(c||this.vDa(k))e.v(d)||d.kb?g.availableAggregations=a.availableAggregations:null==d.La(a.uniqueName,"aggregations")&&
d.oi(a.uniqueName,"aggregations",a.availableAggregations)}else g.formula=a.formula,a.individual&&(g.individual=!0),a.calculateNaN?a.calculateNaN&&c&&(g.calculateNaN=a.calculateNaN):g.calculateNaN=a.calculateNaN,g.caption=a.caption;this.eEa(a)&&(e.v(d)||d.kb?g.caption=a.name:null==d.La(a.uniqueName,"caption")&&void 0===a.formula&&d.oi(a.uniqueName,"caption",a.name));e.u.O.Vr.T1(a.aggregation,a.originalCaption)!=a.grandTotalCaption&&""!=a.grandTotalCaption&&(g.grandTotalCaption=a.grandTotalCaption);
if(c||0==a.active)g.active=a.active;null!=a.format&&""!=a.format&&(g.format=a.format,a.active?this.Un.Ta(a.format,!0):this.Un.Bb(a.format)&&!0===this.Un.getItem(a.format)||this.Un.Ta(a.format,!1));a.filter&&(g.filter=a.filter);return g}XDa(a){if("[Measures]"==a.uniqueName)return!1;if(e.u.Ma.R().ga.Aa==e.u.i.ra.Cc||e.u.Ma.R().ga.Aa==e.u.i.ra.Pd)return a.dimensionName+".["+a.caption+"]"!=a.uniqueName;if(e.u.Ma.R().O instanceof e.u.local.O.bQ){const c=e.u.Ma.R().O.nA,d=a.uniqueName.split(".");if(void 0!==
c[a.uniqueName]||void 0!==c[d[0]])return!1}return a.uniqueName!=a.caption}I2(a,c,d=null){var g={};g.uniqueName=a.uniqueName;this.XDa(a)&&(e.v(d)||d.kb?g.caption=a.caption:null==d.La(a.uniqueName,"caption")&&d.oi(a.uniqueName,"caption",a.caption));null!=a.activeLevelName&&(g.levelName=a.activeLevelName);e.v(a.filter)||(g.filter={},e.v(a.filter.measure)||(g.filter.measure=a.filter.measure),e.v(a.filter.query)||(g.filter.query=a.filter.query),e.v(a.filter.members)||(g.filter.members=a.filter.members),
e.v(a.filter.exclude)||(g.filter.exclude=a.filter.exclude));a.filterEnabled||(g.filterEnabled=!0);u.Hc.Og(a.groups)||(g.groups=a.groups);"[Measures]"!=a.uniqueName&&a.sortName&&(c||a.sortName!=e.u.O.Ct.vJ)&&(g.sort=a.sortName);"[Measures]"!=a.uniqueName&&a.sortAs&&(g.sortAs=a.sortAs);null!=a.customSorting&&0<a.customSorting.length&&(g.sortOrder=a.customSorting);void 0!==a.showTotals&&(g.showTotals=a.showTotals);return g}J2(a,c){var d=z.ba.create("<hierarchy/>");d.append(z.ba.create("<dimensionName/>").text(a.dimensionName));
d.append(z.ba.create("<hierarchyName/>").text(a.uniqueName));null!=a.activeLevelName&&d.append(z.ba.create("<levelName/>").text(a.activeLevelName));if(null!=a.filter&&(null!=a.filter.type&&a.filter.type!=e.u.i.tb.NONE&&d.append(this.Hza(a.filter)),null!=a.filter.members)){var g="string"==typeof a.filter.members?a.filter.members.split(","):a.filter.members;0<g.length&&(0<d.find("filter").length?this.Lda(g,d.find("filter")[0]):d.append(this.Lda(g)),!0===a.filter.negation&&d.find("filter").attr("negation",
a.filter.negation))}a.customSorting&&0<a.customSorting.length&&d.append(this.Zxa(a.customSorting));a.groups&&this.RCa(a.groups,d);a.filterEnabled||d.attr("filterEnabled","true");"[Measures]"!=a.uniqueName&&a.sortName&&(c||a.sortName!=e.u.O.Ct.vJ)&&d.attr("sort",a.sortName);"[Measures]"!=a.uniqueName&&a.sortAs&&d.attr("sortAs",a.sortAs);return d}Hza(a){var c=null;null==c&&(c=z.ba.create("<filter/>"));c.attr("type",a.type);c.attr("quantity",a.quantity);c.attr("measure",a.measure);return c}Lda(a,c=null){null==
c&&(c=z.ba.create("<filter/>"));for(var d=0;d<a.length;d++){var g=a[d];c.append(z.ba.create("<member/>").append(z.ba.fi(g)))}return c}Zxa(a){for(var c=z.ba.create("<sort/>"),d=0;d<a.length;d++){var g=a[d];c.append(z.ba.create("<member/>").append(z.ba.fi(g)))}return c}RCa(a,c){if(null!=a)for(var d in a){var g=z.ba.create("<group/>");g.attr("name",d);for(var k=0;k<a[d].length;k++){var m=a[d][k];g.append(z.ba.create("<member/>").append(z.ba.fi(m)))}c.append(g)}}static um(a){var c={};if(void 0==a)return c;
null!=a.pages&&(c.pages=a.pages);null!=a.reportFilters&&(c.pages=a.reportFilters);null!=a.rows&&(c.rows=a.rows);null!=a.columns&&(c.columns=a.columns);null!=a.measures&&(c.measures=a.measures);null!=a.rowSorting&&(c.rowSorting=a.rowSorting,null!=c.rowSorting.tuple&&"string"==typeof c.rowSorting.tuple&&(c.rowSorting.tuple=c.rowSorting.tuple.split(",")));null!=a.sorting&&null!=a.sorting.row&&(c.rowSorting=a.sorting.row);null!=a.columnSorting&&(c.columnSorting=a.columnSorting,null!=c.columnSorting.tuple&&
"string"==typeof c.columnSorting.tuple&&(c.columnSorting.tuple=c.columnSorting.tuple.split(",")));null!=a.sorting&&null!=a.sorting.column&&(c.columnSorting=a.sorting.column);null!=a.expandAll&&(c.expandAll=a.expandAll);null!=a.expandAllRows&&(c.expandAllRows=a.expandAllRows);null!=a.expandAllColumns&&(c.expandAllColumns=a.expandAllColumns);null!=a.expandedRows&&(c.expandedRows=a.expandedRows);null!=a.expandedColumns&&(c.expandedColumns=a.expandedColumns);null!=a.expands&&(null!=a.expands.expandAll&&
(c.expandAll=a.expands.expandAll),null!=a.expands.expandAllRows&&(c.expandAllRows=a.expands.expandAllRows),null!=a.expands.expandAllColumns&&(c.expandAllColumns=a.expands.expandAllColumns),null!=a.expands.rows&&(c.expandedRows=b.hW(a.expands.rows)),null!=a.expands.columns&&(c.expandedColumns=b.hW(a.expands.columns)));null!=a.drillAll&&(c.drillAll=a.drillAll);null!=a.drillAllRows&&(c.drillAllRows=a.drillAllRows);null!=a.drillAllColumns&&(c.drillAllColumns=a.drillAllColumns);null!=a.drilledRows&&(c.drilledRows=
a.drilledRows);null!=a.drilledColumns&&(c.drilledColumns=a.drilledColumns);null!=a.drills&&(null!=a.drills.drillAll&&(c.drillAll=a.drills.drillAll),null!=a.drills.drillAllRows&&(c.drillAllRows=a.drills.drillAllRows),null!=a.drills.drillAllColumns&&(c.drillAllColumns=a.drills.drillAllColumns),null!=a.drills.rows&&(c.drilledRows=b.gW(a.drills.rows)),null!=a.drills.columns&&(c.drilledColumns=b.gW(a.drills.columns)));null!=a.flatOrder&&(c.flatOrder=a.flatOrder);null!=a.flatSort&&(c.flatSort=a.flatSort);
null!=a.drillThrough&&(c.drillThrough=a.drillThrough);null!=a.memberProperties&&(c.memberProperties=a.memberProperties);null!=a.slice&&(a=a.slice,null!=a.pages&&a.pages.length&&(c.pages=a.pages),null!=a.reportFilters&&a.reportFilters.length&&(c.pages=a.reportFilters),null!=a.rows&&a.rows.length&&(c.rows=a.rows),null!=a.columns&&a.columns.length&&(c.columns=a.columns),null!=a.measures&&a.measures.length&&(c.measures=a.measures),null!=a.sorting&&null!=a.sorting.row&&(c.rowSorting=a.sorting.row),null!=
a.sorting&&null!=a.sorting.column&&(c.columnSorting=a.sorting.column),null!=a.expands&&(null!=a.expands.expandAll&&(c.expandAll=a.expands.expandAll),null!=a.expands.rows&&(c.expandedRows=b.hW(a.expands.rows)),null!=a.expands.columns&&(c.expandedColumns=b.hW(a.expands.columns))),null!=a.drills&&(null!=a.drills.drillAll&&(c.drillAll=a.drills.drillAll),null!=a.drills.rows&&(c.drilledRows=b.gW(a.drills.rows)),null!=a.drills.columns&&(c.drilledColumns=b.gW(a.drills.columns))),null!=a.flatOrder&&a.flatOrder.length&&
(c.flatOrder=a.flatOrder),null!=a.flatSort&&a.flatSort.length&&(c.flatSort=a.flatSort),null!=a.drillThrough&&a.drillThrough.length&&(c.drillThrough=a.drillThrough),null!=a.memberProperties&&(c.memberProperties=a.memberProperties));return c}YDa(a){for(var c=0;c<this.qb.length;c++)if(this.qb[c].uniqueName==a)return!0;for(c=0;c<this.rows.length;c++)if(this.rows[c].uniqueName==a)return!0;for(c=0;c<this.Ka.length;c++)if(this.Ka[c].uniqueName==a)return!0;return!1}}h.vo=b})(l.hb||(l.hb={}))})(e.model||(e.model=
{}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.If={};this.Af={};this.wg=[];this.Ig=[];this.Lj={};this.Dk={};this.zh=[];this.YE=0}static xb(b){const a=new f;if(null==b)return a;null!=b.columnSizes&&"string"!=typeof b.columnSizes&&(a.Af=b.columnSizes);null!=b.rowSizes&&"string"!=typeof b.rowSizes&&(a.If=b.rowSizes);null!=b.columnHeaderSizes&&"string"!=typeof b.columnHeaderSizes&&(a.Ig=b.columnHeaderSizes);null!=b.rowHeaderSizes&&"string"!=typeof b.rowHeaderSizes&&(a.wg=b.rowHeaderSizes);
null!=b.rowFilterSizes&&"string"!=typeof b.rowFilterSizes&&(a.zh=b.rowFilterSizes);null!=b.columnSizesByIdx&&(a.Dk=b.columnSizesByIdx);null!=b.rowSizesByIdx&&(a.Lj=b.rowSizesByIdx);return a}static um(b){var a={};if(void 0==b)return a;var c;if(null!=b.columns){var d=b.columns;for(c=0;c<d.length;c++)if(null!=d[c].idx&&(null==a.columnSizesByIdx&&(a.columnSizesByIdx={}),a.columnSizesByIdx[parseInt(d[c].idx)]=parseInt(d[c].width)),null!=d[c].tuple||null!=d[c].measure){null==a.columnSizes&&(a.columnSizes=
{});var g=null==d[c].tuple?[]:d[c].tuple.slice();null!=d[c].measure&&("string"==typeof d[c].measure?(g.push(d[c].measure),g.push("")):(g.push(d[c].measure.uniqueName?d[c].measure.uniqueName:""),g.push(d[c].measure.aggregation?d[c].measure.aggregation:"")));a.columnSizes[g.join(",")]=parseInt(d[c].width)}}if(null!=b.rows)for(d=b.rows,c=0;c<d.length;c++)if(null!=d[c].idx&&(null==a.rowSizesByIdx&&(a.rowSizesByIdx={}),a.rowSizesByIdx[parseInt(d[c].idx)]=parseInt(d[c].height)),null!=d[c].tuple||null!=
d[c].measure)null==a.rowSizes&&(a.rowSizes={}),g=null==d[c].tuple?[]:d[c].tuple.slice(),null!=d[c].measure&&("string"==typeof d[c].measure?(g.push(d[c].measure),g.push("")):(g.push(d[c].measure.uniqueName?d[c].measure.uniqueName:""),g.push(d[c].measure.aggregation?d[c].measure.aggregation:""))),a.rowSizes[g.join(",")]=parseInt(d[c].height);null!=b.columnSizes&&(a.columnSizes=b.columnSizes);null!=b.rowSizes&&(a.rowSizes=b.rowSizes);null!=b.columnHeaderSizes&&(a.columnHeaderSizes=b.columnHeaderSizes);
null!=b.rowHeaderSizes&&(a.rowHeaderSizes=b.rowHeaderSizes);null!=b.rowFilterSizes&&(a.rowFilterSizes=b.rowFilterSizes);null!=b.rowSizesByIdx&&(a.rowSizesByIdx=b.rowSizesByIdx);null!=b.columnSizesByIdx&&(a.columnSizesByIdx=b.columnSizesByIdx);return a}Sa(b){const a={};if(null!=this.Ig&&!u.Hc.Og(this.Ig)||null!=this.Af&&!u.Hc.Og(this.Af)){a.columns=[];if(null!=this.Ig&&!u.Hc.Og(this.Ig))for(var c=0;c<this.Ig.length;c++)null!=this.Ig[c]&&a.columns.push({idx:c,width:this.Ig[c]});if(null!=this.Dk&&!u.Hc.Og(this.Dk))for(var d in this.Dk)c=
parseInt(d),this.Dk.hasOwnProperty(d)&&!isNaN(c)&&a.columns.push({idx:c,width:this.Dk[d]});d=h.vo.fd(b.Ka);if(null!=this.Af&&!u.Hc.Og(this.Af))for(var g in this.Af)if(c=g.split(","),0<=d&&1<c.length){const m=c.pop(),n=c.pop();a.columns.push({tuple:c,measure:(new h.oh(n,m)).Sa(),width:this.Af[g]})}else a.columns.push({tuple:c,width:this.Af[g]})}if(null!=this.zh&&!u.Hc.Og(this.zh)||null!=this.wg&&!u.Hc.Og(this.wg)||null!=this.If&&!u.Hc.Og(this.If)){a.rows=[];if(null!=this.zh&&!u.Hc.Og(this.zh))for(g=
0;g<this.zh.length;g++)null!=this.zh[g]&&a.rows.push({idx:g,height:this.zh[g]});if(null!=this.wg&&!u.Hc.Og(this.wg))for(g=0;g<this.wg.length;g++)null!=this.wg[g]&&a.rows.push({idx:g,height:this.wg[g]});if(null!=this.Lj&&!u.Hc.Og(this.Lj))for(var k in this.Lj)g=parseInt(k),this.Lj.hasOwnProperty(k)&&!isNaN(g)&&a.rows.push({idx:g,width:this.Lj[k]});b=h.vo.fd(b.rows);if(null!=this.If&&!u.Hc.Og(this.If))for(const m in this.If)k=m.split(","),0<=b&&1<k.length?(g=k.pop(),d=k.pop(),a.rows.push({tuple:k,measure:(new h.oh(d,
g)).Sa(),height:this.If[m]})):a.rows.push({tuple:k,height:this.If[m]})}return a}op(){var b=z.ba.create("<view/>"),a;if(null!=this.Ig)for(a in this.Ig)if(null!=this.Ig[a]){var c=z.ba.create("<column/>").text(this.Ig[a]);c.attr("headerIdx",a);b.append(c)}if(null!=this.Af)for(a in this.Af)null!=this.Af[a]&&(c=z.ba.create("<column/>").append(z.ba.fi(this.Af[a])),b.append(c));if(null!=this.zh)for(a in this.zh)null!=this.zh[a]&&(c=z.ba.create("<row/>").text(this.zh[a]),c.attr("filterIdx",a),b.append(c));
if(null!=this.wg)for(a in this.wg)null!=this.wg[a]&&(c=z.ba.create("<row/>").text(this.wg[a]),c.attr("headerIdx",a),b.append(c));if(null!=this.If)for(a in this.If)null!=this.If[a]&&(c=z.ba.create("<row/>").append(z.ba.fi(this.If[a])),b.append(c));return b}clone(){const b=new f;var a={};for(const n in this.Af)this.Af.hasOwnProperty(n)&&(a[n]=this.Af[n]);b.Af=a;a={};for(var c in this.Dk)this.Dk.hasOwnProperty(c)&&(a[c]=this.Dk[c]);b.Dk=a;c=[];for(var d in this.Ig)this.Ig.hasOwnProperty(d)&&(c[parseInt(d)]=
this.Ig[d]);b.Ig=c;d={};for(var g in this.If)this.If.hasOwnProperty(g)&&(d[g]=this.If[g]);b.If=d;g={};for(var k in this.Lj)this.Lj.hasOwnProperty(k)&&(g[k]=this.Lj[k]);b.Lj=g;k=[];for(var m in this.wg)this.wg.hasOwnProperty(m)&&(k[parseInt(m)+this.YE]=this.wg[m]);b.wg=k;m=[];if(0!=this.YE)for(const n in this.zh)this.wg.hasOwnProperty(n)&&(m[parseInt(n)]=this.zh[n]);b.zh=m;return b}static Jk(b){const a=new f;a.Ig=f.lfa(b.find("view column[headerIdx]"));a.Af=f.Eja(b.find("view column"));a.wg=f.lfa(b.find("view row[headerIdx]"));
a.If=f.Eja(b.find("view row"));a.zh=f.Eza(b.find("view row[filterIdx]"));return a}static lfa(b){for(var a=[],c=0;c<b.length;c++){var d=b[c];a[parseInt(d.attr("headerIdx"))]=parseInt(d.text())}return a}static Eza(b){for(var a=[],c=0;c<b.length;c++){var d=b[c];a[parseInt(d.attr("filterIdx"))]=parseInt(d.text())}return a}static Eja(b){for(var a=[],c=0;c<b.length;c++){var d=b[c];e.v(d.attr("headerIdx"))&&e.v(d.attr("filterIdx"))&&0<d.text().length&&a.push(d.text().split(","))}return a}}h.Yv=f})(l.hb||
(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.Fe=new e.ub;this.Xc=new e.ub;this.Zx=new l.hb.Yv;this.Je=null;this.labels={};this.mNa=this.PA=!1;this.Sm=[]}static HMa(a){if(null===a)return null;var c=new l.hb.By;c.PA=a.PA;c.la=a.Ab.clone();a.Pb&&(c.slice=a.Pb.kka());c.options=a.C;var d=[];for(var g=0;g<a.Fe.length;g++)d[g]=a.Fe.fa(g).Sa();c.Fe=d;d=[];for(g=0;g<a.Xc.length;g++)d[g]=a.Xc.fa(g).Sa();c.Xc=d;c.Sm=a.Sm;c.labels=a.labels;c.Zx=a.Zx.clone();c.Je=a.Je;c.version=
e.Cg.Iq;c.WL=(new Date).toISOString();return c}}f.g$=b})(h.W||(h.W={}))})(l.Xb||(l.Xb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.Ooa=35;this.PR=!1;this.uta="a4";this.bia=()=>this.xha();this.u1=this.E2=0}static R(){null==f.Be&&(f.Be=new f);return f.Be}static dispose(){f.Be=null}print(b=null){this.PR||(this.PR=!0,this.C=b||new l.kt.Q9,l.Wa.R().N(e.ef.xB,this.bia),l.Wa.R().Ya(e.ef.yY))}xha(){l.Wa.R().rb(e.ef.xB,this.bia);this.PR=!1}Ze(b,a=""){this.Y=b;this.na=null!=b?b.na:null;this.Bva=a||"";this.start()}start(){this.Cl=0;var b=l.Dc.Ay.KH(this.uta);this.PK=b.ICa();
this.UZ=b.KBa();this.qb=new x.Ga("div");this.ut=[];this.FI=this.Mn=0;u.Ql.Co({lp:()=>this.PAa(),gf:()=>this.finish()})}clear(){this.PR=!1;this.Mn=this.Cl=this.FI=0;this.qb=this.jt=null;this.u1=this.E2=0}PAa(){return this.Nta()}Nta(){var b;const a=null===(b=this.jt)||void 0===b?void 0:b.cg(!0);if(null==this.jt)if(this.jt=this.vca(),this.cW=this.jt.find("table"),this.ZR(),1==this.shift())this.eS();else return!1;else if(a<=this.PK&&0!=this.Mn)if(this.ZR(),this.jt.cg(!0)<=this.PK)if(!0===this.shift())this.eS();
else return!1;else return this.Mn++,!1;else if(a>this.PK&&(this.Mn--,this.sKa(this.jt)),this.eS(),this.jt=this.vca(),this.cW=this.jt.find("table"),0==this.Y.dj&&(b=this.Mn,0!=this.Mn&&0<this.Y.Fp&&(this.Mn=0,this.ZR(),this.Mn=b,this.Mn+1<=this.na.coords.$l&&(this.Mn+=1))),this.ZR(),1==this.shift())this.eS();else return!1;return!0}sKa(b){b=b.find("td:last-child",!0);for(let a=0;a<b.length;a++)b[a].remove()}vca(){var b=(new x.Ga("div")).aa("page");b.V("position","absolute").V("left","-9999px");if(null!=
this.C.cj){var a=this.TL(this.C.cj);b.append(a)}var c=new x.Ga("table");0==this.Cl&&0<l.C.F.gq.length&&c.append((new x.Ga("caption")).text(l.C.F.gq));b.append(c);if(null!=this.C.Bj){var d=this.TL(this.C.Bj);b.append(d)}this.Y.G.append(b);this.E2=null!=a?a.zd():0;this.u1=null!=d?d.zd():0;return b}TL(b){var a=new x.Ga("div");b=b.replace(/##PAGE-NUMBER##/gi,(this.Cl+1).toString());b=b.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());a.html(b);return a}eS(){this.Cl++;e.Ca(!0,l.B.j.KF,this.Cl+
" "+l.B.j.t9,!0);this.jt.detach();this.jt.V("position","").V("left","").V("padding-top",this.Ooa.toString()+"px");this.qb.append(this.jt)}shift(){++this.Mn;this.Mn>=this.Y.Bg+this.na.coords.$l&&(this.Mn=0,this.FI+=this.Vf-this.Y.vf+1);return 1E3<=this.Cl||this.FI>=this.na.coords.Tp?!0:!1}ZR(){this.rW=0;var b=this.Y.Fp+this.Mn;if(!this.na.coords.Wo(NaN,b)){var a=this.UZ-this.E2-this.u1;for(this.Vf=this.Y.Ui;this.rW<=a&&this.Vf<this.na.coords.Tp+this.Y.vf-this.FI;this.Vf++)if(this.rowIndex=this.Vf<
this.Y.vf?this.Vf:this.Vf+this.FI,!this.na.coords.Wo(this.rowIndex,b)){var c=this.na.ag(this.rowIndex,b,!0);this.rW+=this.Mta(this.Vf,c);if(this.rW>=a)break}}}Mta(b,a){const c=e.K.Y.sheet.Nh.Dt;var d=this.cW.find("tr",!0);for(d=0<d.length?d[b]:null;null==d;)this.cW.append(new x.Ga("tr")),d=this.cW.find("tr",!0)[b];d.height=e.K.Y.sheet.Nh.Ev;b="<td {0}>"+(a?a.I(!0):"")+"</td>";if(null==a)b=e.P.bind(b,"class='cell' style='width:"+c+"'");else{let g="",k="white-space:nowrap;text-overflow:ellipsis;overflow:hidden;";
a.av&&null!=a.style&&(k+=a.style.jU(),g=a.style.ST(),this.K_(a.style.XC));g=a.xh?g+(" rowHeaderCell level"+a.level):a.Ng?g+" columnHeaderCell":a.vl?g+" filterHeaderCell":a.Vz&&a.Mk&&""!=a.I(!0)?g+" grandTotalCell":a.Mk&&""!=a.I(!0)?g+" totalCell":g+" cell";""!=g.trim()&&(g="class='"+g.trim()+"'");k=""!=k.trim()?"style='"+k.trim()+"max-width:200px'":"style='width:"+c+"px;'";b=e.P.bind(b,g+" "+k)}d.element.innerHTML=e.vt(d.element.innerHTML+b);return d.zd(!0)}K_(b){for(var a=0;a<b.length;a++)0>this.ut.indexOf(b[a])&&
this.ut.push(b[a])}finish(){e.Ca(!0,l.B.j.KF,"Sending pages to printer...",!1,!0);z.P9.print(this.Bva+this.qb.html(),this.E1(),l.C.F.gq);e.Ca(!1);l.Wa.R().Ya(e.ef.xB);this.clear()}E1(){var b="",a=x.Ga.Yb(this.na.element),c=a.find(".fm-data-sheet");b+=e.P.bind("table{width:100%;border-collapse:collapse;{0}}\n",e.K.Y.W.ad.Ez(a,["font-family","font-size"]));b+=e.P.bind("caption{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.TY,a));b+=e.P.bind("td{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;{0}}\n",u.Nd().DU?
"":"border: 1px solid #eee;");b+=e.P.bind(".cell{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.Ne,c));b+=e.P.bind(".totalCell{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.Xv,c));b+=e.P.bind(".grandTotalCell{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.Xv+" "+e.K.Y.W.ya.NJ,c));b+=e.P.bind(".rowHeaderCell{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+e.K.Y.W.ya.Nv,a));b+=e.P.bind(".columnHeaderCell{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+e.K.Y.W.ya.mB,a));b+=e.P.bind(".filterHeaderCell{{0}}\n",
e.K.Y.W.ad.tl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+e.K.Y.W.ya.Kq,a));for(c=1;20>=c;c++)b+=e.P.bind(".level{0}{{1}}\n",c,e.K.Y.W.ad.tl(e.K.Y.W.ya.Nv+" "+e.K.Y.W.ya.Sf+c,a,["padding-left"]));for(c=0;c<this.ut.length;c++)b+=e.P.bind(".{0}{{1}}\n",this.ut[c],e.K.Y.W.ad.tl(this.ut[c],a));b=(b+".page:not(:last-child), svg { page-break-after: always; }").replace(/background-color:rgb\(33, 33, 33\)/g,"background-color:rgb(255, 255, 255)");return b=b.replace(/background-color:rgb\(66, 66, 66\)/g,"background-color:rgb(247, 247, 247)")}}
h.OF=f})(l.kt||(l.kt={}))})(e.model||(e.model={}))})(q||(q={}));(function(e){(function(l){(function(h){class f{static xb(b){var a=new f;null!=b&&(null!=b.header&&(a.cj=b.header),null!=b.footer&&(a.Bj=b.footer));return a}}h.Q9=f})(l.kt||(l.kt={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends w.Mh{constructor(){super();f.Rd=new h.Oq;f.Rd.NE();f.C=new h.Oq;if(f.instance)throw Error("Singleton");}static R(){e.v(f.instance)&&(f.instance=new f);return f.instance}static dispose(){f.UB&&(f.UB.Rd=null);f.UB=null;f.C=null;f.Rd=null;f.instance=null}static ALa(b){f.UB=b}static gx(b=!1,a=!1){const c=new h.Oq;b&&c.jE(f.Rd);a&&c.jE(f.UB);c.jE(f.C);!b&&c.Sva();return c}static clear(){this.C=new h.Oq}static Cq(b,a=!0,c=!0){if(e.v(f.C)||a)a=f.Qm,
f.C=new h.Oq,f.C.oa("configuratorOpened",a);b=h.Oq.um(b);a=!1;f.N0=!0;const d=f.gx(!0,!0);for(let g in b)if(void 0!=d[g]&&b[g]!=d[g]&&(a=!0,f.mA(g))){f.uv=!0;break}f.C.jE(b);e.u.O.Ct.vJ=f.Pca;f.N0=!1;a&&c&&f.cb()}static mA(b){return-1<f.tta.indexOf(b)}static U(b){return f.C&&null!=f.C[b]?f.C[b]:f.UB&&null!=f.UB[b]?f.UB[b]:f.Rd?f.Rd[b]:null}static get Qm(){return f.C.U("configuratorOpened")}static set Qm(b){f.C.oa("configuratorOpened",b)}static get UC(){return f.U("configuratorActive")}static set UC(b){if(f.C.U("configuratorActive")!=
b){const a=!e.v(f.C.U("configuratorActive"));f.C.oa("configuratorOpened",b);f.C.oa("configuratorActive",b);a&&f.cb()}}static get JS(){return this.readOnly?this.lC.configuratorButton:f.U("configuratorButton")}static set JS(b){if(f.C.U("configuratorButton")!=b){const a=!e.v(f.C.U("configuratorButton"));f.C.oa("configuratorButton",b);a&&f.cb()}}static get me(){return f.U("viewType")}static set me(b){if(f.C.U("viewType")!=b){b=e.K.Jd.ih(b)?b:f.Rd.U("viewType");const a=!(e.v(f.C.U("viewType"))&&f.Rd.U("viewType")==
b);f.C.oa("viewType",b);a&&f.cb()}}static get Kn(){return f.U("chartTitle")}static set Kn(b){if(f.C.U("chartTitle")!=b){const a=!e.v(f.C.U("chartTitle"));f.C.oa("chartTitle",b);a&&f.cb()}}static get Bk(){return f.U("gridType")==e.K.Y.wf.Fv}static set Bk(b){f.C.U("gridType")!=e.K.Y.wf.Fv&&(b=!e.v(f.C.U("gridType")),f.C.oa("gridType",e.K.Y.wf.Fv),f.uv=f.mA("gridType"),b&&f.cb())}static get sc(){return f.U("gridType")==e.K.Y.wf.rj}static set sc(b){if(1==b&&f.C.U("gridType")!=e.K.Y.wf.rj){const a=!e.v(f.C.U("gridType"));
f.C.oa("gridType",e.K.Y.wf.rj);f.uv=f.mA("gridType");a&&f.cb()}0==b&&f.C.U("gridType")==e.K.Y.wf.rj&&(f.C.oa("gridType",e.K.Y.wf.YA),f.uv=f.mA("gridType"),f.cb())}static get p2(){return f.U("gridType")}static set p2(b){if(f.C.U("gridType")!=b){const a=!e.v(f.C.U("gridType"));f.C.oa("gridType",b);a&&f.cb()}}static get gq(){return f.U("gridTitle")}static set gq(b){if(f.C.U("gridTitle")!=b){const a=!e.v(f.C.U("gridTitle"));f.C.oa("gridTitle",b);a&&f.cb()}}static get CL(){return f.U("chartType")}static set CL(b){b=
e.K.Dd.Oe.validate(b);if(f.C.U("chartType")!==b){const a=!e.v(f.C.U("chartType"))||f.Rd.U("chartType")!==b;f.C.oa("chartType",b);a&&f.cb()}}static get Ho(){return f.U("chartOneLevel")}static set Ho(b){if(f.C.U("chartOneLevel")!=b){const a=!e.v(f.C.U("chartOneLevel"));f.C.oa("chartOneLevel",b);a&&f.cb()}}static get vu(){return f.U("chartOneLevelTuple")}static set vu(b){if(f.C.U("chartOneLevelTuple")!=b){const a=!e.v(f.C.U("chartOneLevelTuple"));f.C.oa("chartOneLevelTuple",b);a&&f.cb()}}static get FC(){return f.U("chartOneLevelColumnTuple")}static set FC(b){if(f.C.U("chartOneLevelColumnTuple")!=
b){const a=!e.v(f.C.U("chartOneLevelColumnTuple"));f.C.oa("chartOneLevelColumnTuple",b);a&&f.cb()}}static get QG(){return f.U("chartMultipleMeasures")}static set QG(b){if(f.C.U("chartMultipleMeasures")!=b){const a=!e.v(f.C.U("chartMultipleMeasures"));f.C.oa("chartMultipleMeasures",b);a&&f.cb()}}static get PG(){return f.U("chartActiveMeasures")}static set PG(b){if(f.C.U("chartActiveMeasures")!=b){const a=!e.v(f.C.U("chartActiveMeasures"));f.C.oa("chartActiveMeasures",b);a&&f.cb()}}static get Fo(){return f.U("chartActiveMeasure")}static set Fo(b){if(f.C.U("chartActiveMeasure")!=
b){const a=!e.v(f.C.U("chartActiveMeasures"));f.C.oa("chartActiveMeasure",b);a&&f.cb()}}static get BL(){return f.U("chartActiveTupleIndex")}static set BL(b){if(f.C.U("chartActiveTupleIndex")!=b){const a=!e.v(f.C.U("chartActiveTupleIndex"));f.C.oa("chartActiveTupleIndex",b);a&&f.cb()}}static get ez(){return f.U("chartPosition")}static set ez(b){if(f.C.U("chartPosition")!=b){const a=!e.v(f.C.U("chartPosition"));f.C.oa("chartPosition",b);a&&f.cb()}}static get oS(){return f.U("chartReversedAxes")}static set oS(b){if(f.C.U("chartReversedAxes")!=
b){const a=!e.v(f.C.U("chartReversedAxes"));f.C.oa("chartReversedAxes",b);a&&f.cb()}}static get uu(){return f.U("chartAutoRange")}static set uu(b){if(f.C.U("chartAutoRange")!=b){const a=!e.v(f.C.U("chartAutoRange"));f.C.oa("chartAutoRange",b);a&&f.cb()}}static get EC(){return f.U("chartAxisShortNumberFormat")}static set EC(b){if(f.C.U("chartAxisShortNumberFormat")!=b){const a=!e.v(f.C.U("chartAxisShortNumberFormat"));f.C.oa("chartAxisShortNumberFormat",b);a&&f.cb()}}static get Vx(){return this.readOnly?
this.lC.showFilter:f.U("showFilter")}static set Vx(b){if(f.C.U("showFilter")!=b){const a=!e.v(f.C.U("showFilter"));f.C.oa("showFilter",b);a&&f.cb()}}static get xja(){return this.readOnly?this.lC.showFilterInCharts:f.U("showFilterInCharts")}static set xja(b){if(f.C.U("showFilterInCharts")!=b){const a=!e.v(f.C.U("showFilterInCharts"));f.C.oa("showFilterInCharts",b);a&&f.cb()}}static get T5(){return f.U("showDefaultSlice")}static set T5(b){if(f.C.U("showDefaultSlice")!=b){const a=!e.v(f.C.U("showDefaultSlice"));
f.C.oa("showDefaultSlice",b);a&&f.cb()}}static get co(){return f.U("useOlapFormatting")}static set co(b){if(f.C.U("useOlapFormatting")!=b){const a=!e.v(f.C.U("useOlapFormatting"));f.C.oa("useOlapFormatting",b);a&&f.cb()}}static get LI(){return f.U("showMemberProperties")}static set LI(b){if(f.C.U("showMemberProperties")!=b){const a=!e.v(f.C.U("showMemberProperties"));f.C.oa("showMemberProperties",b);a&&f.cb()}}static get Ux(){return f.U("showEmptyData")}static set Ux(b){if(f.C.U("showEmptyData")!=
b){const a=!e.v(f.C.U("showEmptyData"));f.C.oa("showEmptyData",b);a&&f.cb()}}static get rja(){return f.U("showChartDataLabels")}static set rja(b){if(f.C.U("showChartDataLabels")!=b){const a=!e.v(f.C.U("showChartDataLabels"));f.C.oa("showChartDataLabels",b);a&&f.cb()}}static get pja(){return f.U("showAllChartLabels")}static set pja(b){if(f.C.U("showAllChartLabels")!=b){const a=!e.v(f.C.U("showAllChartLabels"));f.C.oa("showAllChartLabels",b);a&&f.cb()}}static get Jl(){return f.U("showAggregations")}static set Jl(b){if(f.C.U("showAggregations")!=
b){const a=!e.v(f.C.U("showAggregations"));f.C.oa("showAggregations",b);a&&f.cb()}}static get st(){return f.U("showHierarchyCaptions")}static set st(b){if(f.C.U("showHierarchyCaptions")!=b){const a=!e.v(f.C.U("showHierarchyCaptions"));f.C.oa("showHierarchyCaptions",b);a&&f.cb()}}static get kH(){return f.U("drillThroughMaxRows")}static set kH(b){if(f.C.U("drillThroughMaxRows")!=b){const a=!e.v(f.C.U("drillThroughMaxRows"));f.C.oa("drillThroughMaxRows",b);a&&f.cb()}}static get O5(){return f.U("showAllFieldsDrillThrough")}static set O5(b){if(f.C.U("showAllFieldsDrillThrough")!=
b){const a=!e.v(f.C.U("showAllFieldsDrillThrough"));f.C.oa("showAllFieldsDrillThrough",b);a&&f.cb()}}static get U5(){return f.U("showFieldListSearch")}static set U5(b){if(f.C.U("showFieldListSearch")!=b){const a=!e.v(f.C.U("showFieldListSearch"));f.C.oa("showFieldListSearch",b);a&&f.cb()}}static get KI(){return f.U("showExtraTotalLabels")}static set KI(b){if(f.C.U("showExtraTotalLabels")!=b){const a=!e.v(f.C.U("showExtraTotalLabels"));f.C.oa("showExtraTotalLabels",b);a&&f.cb()}}static get Zk(){return f.U("showHeaders")}static set Zk(b){if(f.C.U("showHeaders")!=
b){const a=!e.v(f.C.U("showHeaders"));f.C.oa("showHeaders",b);a&&f.cb()}}static get Nj(){return this.readOnly?this.lC.sorting:f.U("sorting")}static set Nj(b){if(f.C.U("sorting")!=b){const a=!e.v(f.C.U("sorting"));f.C.oa("sorting",b);a&&f.cb()}}static get mU(){return e.u.Ma.R().ga.Aa===e.u.i.ra.API||e.u.Ma.R().ga.Ec?!1:f.U("grouping")}static set mU(b){if(f.C.U("grouping")!=b){const a=!e.v(f.C.U("grouping"));f.C.oa("grouping",b);a&&f.cb()}}static get gD(){return f.U("editing")}static set gD(b){if(f.C.U("editing")!=
b){const a=!e.v(f.C.U("editing"));f.C.oa("editing",b);a&&f.cb()}}static get cd(){return this.readOnly?this.lC.drillThrough:f.U("drillThrough")}static set cd(b){if(f.C.U("drillThrough")!=b){const a=!e.v(f.C.U("drillThrough"));f.C.oa("drillThrough",b);a&&f.cb()}}static get wja(){return f.U("showDrillThroughConfigurator")}static set wja(b){if(f.C.U("showDrillThroughConfigurator")!=b){const a=!e.v(f.C.U("showDrillThroughConfigurator"));f.C.oa("showDrillThroughConfigurator",b);a&&f.cb()}}static get UE(){return f.U("showHierarchies")}static set UE(b){if(f.C.U("showHierarchies")!=
b){const a=!e.v(f.C.U("showHierarchies"));f.C.oa("showHierarchies",b);a&&f.cb()}}static get uja(){return f.U("showChartsWarning")}static set uja(b){if(f.C.U("showChartsWarning")!=b){const a=!e.v(f.C.U("showChartsWarning"));f.C.oa("showChartsWarning",b);a&&f.cb()}}static get sja(){return f.U("showChartLegend")}static set sja(b){if(f.C.U("showChartLegend")!=b){const a=!e.v(f.C.U("showChartLegend"));f.C.oa("showChartLegend",b);a&&f.cb()}}static get Q5(){return f.U("showChartLegendButton")}static set Q5(b){if(f.C.U("showChartLegendButton")!=
b){const a=!e.v(f.C.U("showChartLegendButton"));f.C.oa("showChartLegendButton",b);a&&f.cb()}}static get uW(){return f.U("saveAllFormats")}static set uW(b){if(f.C.U("saveAllFormats")!=b){const a=!e.v(f.C.U("saveAllFormats"));f.C.oa("saveAllFormats",b);a&&f.cb()}}static get tu(){return f.U("calculatedValuesOLAP")}static set tu(b){if(f.C.U("calculatedValuesOLAP")!=b){const a=!e.v(f.C.U("calculatedValuesOLAP"));f.C.oa("calculatedValuesOLAP",b);a&&f.cb()}}static get L2(){return f.U("includeEmptySubtotalsOLAP")}static set L2(b){if(f.C.U("includeEmptySubtotalsOLAP")!=
b){const a=!e.v(f.C.U("includeEmptySubtotalsOLAP"));f.C.oa("includeEmptySubtotalsOLAP",b);a&&f.cb()}}static get R5(){return f.U("showChartOneMeasureSelection")}static set R5(b){if(f.C.U("showChartOneMeasureSelection")!=b){const a=!e.v(f.C.U("showChartOneMeasureSelection"));f.C.oa("showChartOneMeasureSelection",b);a&&f.cb()}}static get tja(){return this.readOnly?this.lC.showChartMeasures:f.U("showChartMeasures")}static set tja(b){if(f.C.U("showChartMeasures")!=b){const a=!e.v(f.C.U("showChartMeasures"));
f.C.oa("showChartMeasures",b);a&&f.cb()}}static get bf(){return f.U("showTotals")}static set bf(b){if(f.C.U("showTotals")!=b){const a=!e.v(f.C.U("showTotals"));f.C.oa("showTotals",b);f.uv=f.mA("showTotals");a&&f.cb()}}static get qja(){return f.U("showAutoCalculationBar")}static set qja(b){if(f.C.U("showAutoCalculationBar")!=b){const a=!e.v(f.C.U("showAutoCalculationBar"));f.C.oa("showAutoCalculationBar",b);a&&f.cb()}}static get Lf(){return f.U("showGrandTotals")}static set Lf(b){if(f.C.U("showGrandTotals")!=
b){const a=!e.v(f.C.U("showGrandTotals"));f.C.oa("showGrandTotals",b);f.uv=f.mA("showGrandTotals");a&&f.cb()}}static get Le(){return f.U("strictDataTypes")}static set Le(b){if(f.C.U("strictDataTypes")!==b){const a=!e.v(f.C.U("strictDataTypes"));f.C.oa("strictDataTypes",b);a&&f.cb()}}static get $L(){return f.U("defaultDateType")}static set $L(b){if(f.C.U("defaultDateType")!=b&&e.u.i.input.sa.valid(b)){const a=!e.v(f.C.U("defaultDateType"));f.C.oa("defaultDateType",b);a&&f.cb()}}static get Up(){return f.U("datePattern")}static set Up(b){if(f.C.U("datePattern")!=
b){const a=!e.v(f.C.U("datePattern"));f.C.oa("datePattern",b);a&&f.cb()}}static get Ek(){return f.U("dateTimePattern")}static set Ek(b){if(f.C.U("dateTimePattern")!=b){const a=!e.v(f.C.U("dateTimePattern"));f.C.oa("dateTimePattern",b);a&&f.cb()}}static get np(){return f.U("timePattern")}static set np(b){if(f.C.U("timePattern")!=b){const a=!e.v(f.C.U("timePattern"));f.C.oa("timePattern",b);a&&f.cb()}}static get $j(){return f.U("dateTimezoneOffset")}static set $j(b){if(f.C.U("dateTimezoneOffset")!=
b){const a=!e.v(f.C.U("dateTimezoneOffset"));f.C.oa("dateTimezoneOffset",b);a&&f.cb()}}static get P5(){return f.U("showCalculatedValuesButton")}static set P5(b){if(f.C.U("showCalculatedValuesButton")!=b){const a=!e.v(f.C.U("showCalculatedValuesButton"));f.C.oa("showCalculatedValuesButton",b);a&&f.cb()}}static get QW(){return f.U("showOutdatedDataAlert")}static set QW(b){if(f.C.U("showOutdatedDataAlert")!=b){const a=!e.v(f.C.U("showOutdatedDataAlert"));f.C.oa("showOutdatedDataAlert",b);a&&f.cb()}}static get Pca(){return f.U("defaultHierarchySortName")}static set Pca(b){if(f.C.U("defaultHierarchySortName")!=
b){const a=!e.v(f.C.U("defaultHierarchySortName"));f.C.oa("defaultHierarchySortName",b);a&&f.cb()}}static get Tx(){return f.U("showAggregationLabels")}static set Tx(b){if(f.C.U("showAggregationLabels")!=b){const a=!e.v(f.C.U("showAggregationLabels"));f.C.oa("showAggregationLabels",b);a&&f.cb()}}static get TH(){return f.U("grandTotalsPosition")}static set TH(b){if(f.C.U("grandTotalsPosition")!=b){const a=!e.v(f.C.U("grandTotalsPosition"));f.C.oa("grandTotalsPosition",b);f.uv=f.mA("grandTotalsPosition");
a&&f.cb()}}static get IL(){return f.U("columnTotalsPosition")}static set IL(b){if(f.C.U("columnTotalsPosition")!=b){const a=!e.v(f.C.U("columnTotalsPosition"));f.C.oa("columnTotalsPosition",b);f.uv=f.mA("columnTotalsPosition");a&&f.cb()}}static get MI(){return f.U("showReportFiltersArea")}static set MI(b){if(f.C.U("showReportFiltersArea")!=b){const a=!e.v(f.C.U("showReportFiltersArea"));f.C.oa("showReportFiltersArea",b);a&&f.cb()}}static get sz(){return this.readOnly?this.lC.dragging:f.U("dragging")}static set sz(b){if(f.C.U("dragging")!=
b){const a=!e.v(f.C.U("dragging"));f.C.oa("dragging",b);a&&f.cb()}}static get Yw(){return f.U("filterWeekOffset")}static set Yw(b){if(f.C.U("filterWeekOffset")!=b){const a=!e.v(f.C.U("filterWeekOffset"));f.C.oa("filterWeekOffset",b);a&&f.cb()}}static get p1(){return f.U("filterDateFormat")}static set p1(b){if(f.C.U("filterDateFormat")!=b){const a=!e.v(f.C.U("filterDateFormat"));f.C.oa("filterDateFormat",b);a&&f.cb()}}static get wT(){return f.U("filterLiveSearch")}static set wT(b){if(f.C.U("filterLiveSearch")!=
b){const a=!e.v(f.C.U("filterLiveSearch"));f.C.oa("filterLiveSearch",b);a&&f.cb()}}static get cn(){return f.U("liveFiltering")}static set cn(b){if(f.C.U("liveFiltering")!=b){const a=!e.v(f.C.U("liveFiltering"));f.C.oa("liveFiltering",b);a&&f.cb()}}static get jD(){return f.U("fieldListPosition")}static set jD(b){if(f.C.U("fieldListPosition")!=b){const a=!e.v(f.C.U("fieldListPosition"));f.C.oa("fieldListPosition",b);a&&f.cb()}}static get RO(){return f.U("validateFormulas")}static set RO(b){if(f.C.U("validateFormulas")!=
b){const a=!e.v(f.C.U("validateFormulas"));f.C.oa("validateFormulas",b);a&&f.cb()}}static get zw(){return f.U("caseSensitiveMembers")}static set zw(b){if(f.C.U("caseSensitiveMembers")!=b){const a=!e.v(f.C.U("caseSensitiveMembers"));f.C.oa("caseSensitiveMembers",b);a&&f.cb()}}static get Dja(){return f.U("simplifyFieldListFolders")}static set Dja(b){if(f.C.U("simplifyFieldListFolders")!=b){const a=!e.v(f.C.U("simplifyFieldListFolders"));f.C.oa("simplifyFieldListFolders",b);a&&f.cb()}}static get H6(){return f.U("validateReportFiles")}static set H6(b){if(f.C.U("validateReportFiles")!=
b){const a=!e.v(f.C.U("validateReportFiles"));f.C.oa("validateReportFiles",b);a&&f.cb()}}static get gS(){return f.U("allowBrowsersCache")}static set gS(b){if(f.C.U("allowBrowsersCache")!=b){const a=!e.v(f.C.U("allowBrowsersCache"));f.C.oa("allowBrowsersCache",b);a&&f.cb()}}static get TE(){return f.U("showEmptyValues")}static set TE(b){if(f.C.U("showEmptyValues")!=b){const a=!e.v(f.C.U("showEmptyValues"));f.C.oa("showEmptyValues",b);a&&f.cb()}}static get qr(){return f.U("distinguishNullUndefinedEmpty")}static set qr(b){if(f.C.U("distinguishNullUndefinedEmpty")!=
b){const a=!e.v(f.C.U("distinguishNullUndefinedEmpty"));f.C.oa("distinguishNullUndefinedEmpty",b);a&&f.cb()}}static get kX(){return f.U("useCaptionsInCalculatedValueEditor")}static set kX(b){if(f.C.U("useCaptionsInCalculatedValueEditor")!=b){const a=!e.v(f.C.U("useCaptionsInCalculatedValueEditor"));f.C.oa("useCaptionsInCalculatedValueEditor",b);a&&f.cb()}}static get oT(){return f.U("expandExecutionTimeout")}static set oT(b){if(f.C.U("expandExecutionTimeout")!=b){const a=!e.v(f.C.U("expandExecutionTimeout"));
f.C.oa("expandExecutionTimeout",b);a&&f.cb()}}static get readOnly(){return f.U("readOnly")}static set readOnly(b){if(f.C.U("readOnly")!=b){const a=!e.v(f.C.U("readOnly"));f.C.oa("readOnly",b);a&&f.cb()}}static get Fba(){return f.U("autoSwitchToCompact")}static set Fba(b){if(f.C.U("autoSwitchToCompact")!=b){const a=!e.v(f.C.U("autoSwitchToCompact"));f.C.oa("autoSwitchToCompact",b);a&&f.cb()}}static get rM(){return f.U("filterByDateAndTime")}static set rM(b){if(f.C.U("filterByDateAndTime")!=b){const a=
!e.v(f.C.U("filterByDateAndTime"));f.C.oa("filterByDateAndTime",b);a&&f.cb()}}static get hS(){return f.U("allowEmptyMembersFilter")}static set hS(b){if(f.C.U("allowEmptyMembersFilter")!=b){const a=!e.v(f.C.U("allowEmptyMembersFilter"));f.C.oa("allowEmptyMembersFilter",b);a&&f.cb()}}static cb(){f.N0||f.R().Ha(new w.ia(l.Xb.Vc.rk))}}f.uv=!1;f.N0=!1;f.tta=["gridType","showTotals","showGrandTotals","grandTotalsPosition","columnTotalsPosition"];f.lC={showFilter:!1,dragging:!1,showFilterInCharts:!1,showChartMeasures:!1,
configuratorButton:!1,sorting:"off",drillThrough:!1};h.F=f})(l.C||(l.C={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.Rd={configuratorActive:!1,configuratorOpened:!1,configuratorButton:!0,viewType:e.K.Jd.It,chartTitle:"",gridType:e.K.Y.wf.YA,gridTitle:"",chartType:e.K.Dd.Oe.XA,chartOneLevel:!1,chartOneLevelTuple:[],chartOneLevelColumnTuple:[],chartMultipleMeasures:!1,chartActiveMeasure:{},chartActiveMeasures:[],chartActiveTupleIndex:0,chartPosition:"bottom",chartAutoRange:!1,chartReversedAxes:!1,chartAxisShortNumberFormat:null,showFilter:!0,showFilterInCharts:!0,
showDefaultSlice:!0,useOlapFormatting:!1,showMemberProperties:!1,showEmptyData:!0,showAggregations:!0,showHierarchyCaptions:!0,drillThroughMaxRows:1E3,showAllFieldsDrillThrough:!1,showChartDataLabels:!1,showAllChartLabels:!1,showHeaders:!0,showReportFiltersArea:!0,showExtraTotalLabels:!1,showFieldListSearch:!1,drillThrough:!0,showDrillThroughConfigurator:!0,editing:!1,grouping:!1,sorting:"on",dragging:!0,showHierarchies:!0,showChartsWarning:!0,showChartLegend:!0,showChartLegendButton:!1,saveAllFormats:!1,
calculatedValuesOLAP:!1,includeEmptySubtotalsOLAP:!1,showChartOneMeasureSelection:!0,showChartMeasures:!0,showTotals:"on",showGrandTotals:"on",strictDataTypes:!1,defaultDateType:e.u.i.input.sa.Ua,datePattern:"dd/MM/yyyy",dateTimePattern:"dd/MM/yyyy HH:mm:ss",dateTimezoneOffset:null,timePattern:null,showCalculatedValuesButton:!0,showOutdatedDataAlert:!1,defaultHierarchySortName:e.u.i.Ba.hc,showAggregationLabels:!0,grandTotalsPosition:"top",columnTotalsPosition:"before",showAutoCalculationBar:!0,filterWeekOffset:1,
filterDateFormat:"dd/MM/yyyy",filterLiveSearch:!0,liveFiltering:!1,fieldListPosition:null,validateFormulas:!0,caseSensitiveMembers:!1,simplifyFieldListFolders:!1,validateReportFiles:!0,allowBrowsersCache:!1,showEmptyValues:!1,distinguishNullUndefinedEmpty:!1,useCaptionsInCalculatedValueEditor:!1,expandExecutionTimeout:9E3,readOnly:!1,autoSwitchToCompact:!0,filterByDateAndTime:!1,allowEmptyMembersFilter:!1}}oa(b,a){this[b]=a}U(b){return this[b]}NE(){for(var b in this.Rd)this[b]=this.Rd[b]}Sva(){if(!e.v(void 0))for(var b=
0;b<(void 0).length;b++){var a=(void 0)[b];void 0!=this[a]&&(this[a]==this.Rd[a]||"object"==typeof this[a]&&u.Hc.Og(this[a])&&u.Hc.Og(this.Rd[a]))&&(this[a]=void 0)}else for(a in this.Rd)if(this[a]==this.Rd[a]||"object"==typeof this[a]&&u.Hc.Og(this[a])&&u.Hc.Og(this.Rd[a]))this[a]=void 0}static xb(b){var a=new f;if(void 0==b)return a;null!=b.options&&(b=b.options);b instanceof f||(b=f.um(b));null!=b.configuratorActive&&a.oa("configuratorActive",b.configuratorActive);null!=b.configuratorButton&&a.oa("configuratorButton",
b.configuratorButton);null!=b.viewType&&e.K.Jd.ih(b.viewType)&&a.oa("viewType",b.viewType);null!=b.chartTitle&&a.oa("chartTitle",b.chartTitle);null!=b.gridTitle&&a.oa("gridTitle",b.gridTitle);null!=b.chartType&&a.oa("chartType",e.K.Dd.Oe.validate(b.chartType));null!=b.chartOneLevel&&a.oa("chartOneLevel",b.chartOneLevel);null!=b.chartOneLevelTuple&&a.oa("chartOneLevelTuple",b.chartOneLevelTuple);null!=b.chartOneLevelColumnTuple&&a.oa("chartOneLevelColumnTuple",b.chartOneLevelColumnTuple);null!=b.chartActiveMeasure&&
a.oa("chartActiveMeasure",b.chartActiveMeasure);null!=b.chartActiveMeasures&&a.oa("chartActiveMeasures",b.chartActiveMeasures);null!=b.chartActiveTupleIndex&&a.oa("chartActiveTupleIndex",b.chartActiveTupleIndex);null!=b.chartAutoRange&&a.oa("chartAutoRange",b.chartAutoRange);null!=b.chartReversedAxes&&a.oa("chartReversedAxes",b.chartReversedAxes);null!=b.chartPosition&&a.oa("chartPosition",b.chartPosition);null!=b.chartAxisShortNumberFormat&&a.oa("chartAxisShortNumberFormat",b.chartAxisShortNumberFormat);
null!=b.classicView&&1==b.classicView&&a.oa("gridType",e.K.Y.wf.Fv);null!=b.tableType&&b.tableType==e.K.Y.wf.rj&&a.oa("gridType",e.K.Y.wf.rj);null!=b.flatView&&1==b.flatView&&a.oa("gridType",e.K.Y.wf.rj);null!=b.gridType&&a.oa("gridType",b.gridType);null!=b.showAutoCalculationBar&&a.oa("showAutoCalculationBar",b.showAutoCalculationBar);null!=b.autoSwitchToCompact&&a.oa("autoSwitchToCompact",b.autoSwitchToCompact);null!=b.liveFiltering&&a.oa("liveFiltering",b.liveFiltering);null!=b.fieldListPosition&&
a.oa("fieldListPosition",b.fieldListPosition);null!=b.showFilter&&a.oa("showFilter",b.showFilter);null!=b.showDefaultSlice&&a.oa("showDefaultSlice",b.showDefaultSlice);null!=b.useOlapFormatting&&a.oa("useOlapFormatting",b.useOlapFormatting);null!=b.showMemberProperties&&a.oa("showMemberProperties",b.showMemberProperties);null!=b.showEmptyData&&a.oa("showEmptyData",b.showEmptyData);null!=b.showFilterInCharts&&a.oa("showFilterInCharts",b.showFilterInCharts);null!=b.showAggregations&&a.oa("showAggregations",
b.showAggregations);null!=b.showHierarchyCaptions&&a.oa("showHierarchyCaptions",b.showHierarchyCaptions);null!=b.drillthroughMaxRows&&a.oa("drillThroughMaxRows",b.drillthroughMaxRows);null!=b.drillThroughMaxRows&&a.oa("drillThroughMaxRows",b.drillThroughMaxRows);null!=b.showAllFieldsDrillThrough&&a.oa("showAllFieldsDrillThrough",b.showAllFieldsDrillThrough);null!=b.showFieldListSearch&&a.oa("showFieldListSearch",b.showFieldListSearch);null!=b.showChartDataLabels&&a.oa("showChartDataLabels",b.showChartDataLabels);
null!=b.showAllChartLabels&&a.oa("showAllChartLabels",b.showAllChartLabels);null!=b.chartMultipleMeasures&&a.oa("chartMultipleMeasures",b.chartMultipleMeasures);null!=b.showHeaders&&a.oa("showHeaders",b.showHeaders);null!=b.showReportFiltersArea&&a.oa("showReportFiltersArea",b.showReportFiltersArea);null!=b.showExtraTotalLabels&&a.oa("showExtraTotalLabels",b.showExtraTotalLabels);null!=b.grouping&&a.oa("grouping",b.grouping);null!=b.editing&&a.oa("editing",b.editing);null!=b.drillThrough&&a.oa("drillThrough",
b.drillThrough);null!=b.showDrillThroughConfigurator&&a.oa("showDrillThroughConfigurator",b.showDrillThroughConfigurator);null!=b.sorting&&(a.oa("sorting",b.sorting),"true"==a.U("sorting").toString().toLowerCase()&&a.oa("sorting","on"),"false"==a.U("sorting").toString().toLowerCase()&&a.oa("sorting","off"));null!=b.dragging&&a.oa("dragging",b.dragging);null!=b.showHierarchies&&a.oa("showHierarchies",b.showHierarchies);null!=b.showChartsWarning&&a.oa("showChartsWarning",b.showChartsWarning);null!=
b.showChartLegend&&a.oa("showChartLegend",b.showChartLegend);null!=b.showChartLegendButton&&a.oa("showChartLegendButton",b.showChartLegendButton);null!=b.saveAllFormats&&a.oa("saveAllFormats",b.saveAllFormats);null!=b.calculatedValuesOLAP&&a.oa("calculatedValuesOLAP",b.calculatedValuesOLAP);null!=b.includeEmptySubtotalsOLAP&&a.oa("includeEmptySubtotalsOLAP",b.includeEmptySubtotalsOLAP);null!=b.showChartOneMeasureSelection&&a.oa("showChartOneMeasureSelection",b.showChartOneMeasureSelection);null!=
b.showChartMeasures&&a.oa("showChartMeasures",b.showChartMeasures);null!=b.showTotals&&(a.oa("showTotals",b.showTotals),"true"==a.U("showTotals").toString().toLowerCase()&&a.oa("showTotals","on"),"false"==a.U("showTotals").toString().toLowerCase()&&a.oa("showTotals","off"));null!=b.showGrandTotals&&(a.oa("showGrandTotals",b.showGrandTotals),"true"==a.U("showGrandTotals").toString().toLowerCase()&&a.oa("showGrandTotals","on"),"false"==a.U("showGrandTotals").toString().toLowerCase()&&a.oa("showGrandTotals",
"off"));null!=b.defaultDateType&&a.oa("defaultDateType",b.defaultDateType);null!=b.strictDataTypes&&a.oa("strictDataTypes",b.strictDataTypes);null!=b.datePattern&&a.oa("datePattern",b.datePattern);null!=b.dateTimePattern&&a.oa("dateTimePattern",b.dateTimePattern);null!=b.dateTimezoneOffset&&a.oa("dateTimezoneOffset",b.dateTimezoneOffset);null!=b.timePattern&&a.oa("timePattern",b.timePattern);null!=b.showCalculatedValuesButton&&a.oa("showCalculatedValuesButton",b.showCalculatedValuesButton);null!=
b.showOutdatedDataAlert&&a.oa("showOutdatedDataAlert",b.showOutdatedDataAlert);null!=b.defaultHierarchySortName&&a.oa("defaultHierarchySortName",b.defaultHierarchySortName);null!=b.showAggregationLabels&&a.oa("showAggregationLabels",b.showAggregationLabels);null!=b.grandTotalsPosition&&a.oa("grandTotalsPosition",b.grandTotalsPosition);null!=b.columnTotalsPosition&&a.oa("columnTotalsPosition",b.columnTotalsPosition);e.v(b.filterWeekOffset)||a.oa("filterWeekOffset",b.filterWeekOffset);e.v(b.filterDateFormat)||
a.oa("filterDateFormat",b.filterDateFormat);e.v(b.filterLiveSearch)||a.oa("filterLiveSearch",b.filterLiveSearch);e.v(b.filterByDateAndTime)||a.oa("filterByDateAndTime",b.filterByDateAndTime);e.v(b.allowEmptyMembersFilter)||a.oa("allowEmptyMembersFilter",b.allowEmptyMembersFilter);e.v(b.caseSensitiveMembers)||a.oa("caseSensitiveMembers",b.caseSensitiveMembers);e.v(b.validateFormulas)||a.oa("validateFormulas",b.validateFormulas);e.v(b.simplifyFieldListFolders)||a.oa("simplifyFieldListFolders",b.simplifyFieldListFolders);
e.v(b.validateReportFiles)||a.oa("validateReportFiles",b.validateReportFiles);e.v(b.allowBrowsersCache)||a.oa("allowBrowsersCache",b.allowBrowsersCache);e.v(b.showEmptyValues)||a.oa("showEmptyValues",b.showEmptyValues);e.v(b.distinguishNullUndefinedEmpty)||a.oa("distinguishNullUndefinedEmpty",b.distinguishNullUndefinedEmpty);e.v(b.useCaptionsInCalculatedValueEditor)||a.oa("useCaptionsInCalculatedValueEditor",b.useCaptionsInCalculatedValueEditor);!e.v(b.expandExecutionTimeout)&&b.expandExecutionTimeout>
a.Rd.expandExecutionTimeout&&a.oa("expandExecutionTimeout",parseInt(b.expandExecutionTimeout));e.v(b.readOnly)||a.oa("readOnly",b.readOnly);e.v(b.autoSwitchToCompact)||a.oa("autoSwitchToCompact",b.autoSwitchToCompact);return a}static um(b){var a={};if(void 0==b)return a;null!=b.viewType&&(a.viewType=b.viewType);null!=b.configuratorActive&&(a.configuratorActive=b.configuratorActive);null!=b.configuratorButton&&(a.configuratorButton=b.configuratorButton);null!=b.showAggregations&&(a.showAggregations=
b.showAggregations);null!=b.showCalculatedValuesButton&&(a.showCalculatedValuesButton=b.showCalculatedValuesButton);null!=b.grouping&&(a.grouping=b.grouping);null!=b.editing&&(a.editing=b.editing);null!=b.drillThrough&&(a.drillThrough=b.drillThrough);null!=b.showDrillThroughConfigurator&&(a.showDrillThroughConfigurator=b.showDrillThroughConfigurator);null!=b.sorting&&(a.sorting=b.sorting);null!=b.strictDataTypes&&(a.strictDataTypes=b.strictDataTypes);null!=b.defaultDateType&&(a.defaultDateType=b.defaultDateType);
null!=b.datePattern&&(a.datePattern=b.datePattern);null!=b.dateTimePattern&&(a.dateTimePattern=b.dateTimePattern);null!=b.dateTimezoneOffset&&(a.dateTimezoneOffset=b.dateTimezoneOffset);null!=b.timePattern&&(a.timePattern=b.timePattern);null!=b.saveAllFormats&&(a.saveAllFormats=b.saveAllFormats);null!=b.showDefaultSlice&&(a.showDefaultSlice=b.showDefaultSlice);null!=b.useOlapFormatting&&(a.useOlapFormatting=b.useOlapFormatting);null!=b.showMemberProperties&&(a.showMemberProperties=b.showMemberProperties);
null!=b.showEmptyData&&(a.showEmptyData=b.showEmptyData);null!=b.defaultHierarchySortName&&(a.defaultHierarchySortName=b.defaultHierarchySortName);null!=b.calculatedValuesOLAP&&(a.calculatedValuesOLAP=b.calculatedValuesOLAP);null!=b.includeEmptySubtotalsOLAP&&(a.includeEmptySubtotalsOLAP=b.includeEmptySubtotalsOLAP);null!=b.showOutdatedDataAlert&&(a.showOutdatedDataAlert=b.showOutdatedDataAlert);null!=b.showAggregationLabels&&(a.showAggregationLabels=b.showAggregationLabels);null!=b.liveFiltering&&
(a.liveFiltering=b.liveFiltering);null!=b.fieldListPosition&&(a.fieldListPosition=b.fieldListPosition);null!=b.classicView&&(a.classicView=b.classicView);null!=b.flatView&&(a.flatView=b.flatView);null!=b.gridType&&(a.gridType=b.gridType);null!=b.gridTitle&&(a.gridTitle=b.gridTitle);null!=b.showFilter&&(a.showFilter=b.showFilter);null!=b.showHeaders&&(a.showHeaders=b.showHeaders);null!=b.showTotals&&(a.showTotals=b.showTotals);null!=b.showGrandTotals&&(a.showGrandTotals=b.showGrandTotals);null!=b.columnTotalsPosition&&
(a.columnTotalsPosition=b.columnTotalsPosition);null!=b.grandTotalsPosition&&(a.grandTotalsPosition=b.grandTotalsPosition);null!=b.showExtraTotalLabels&&(a.showExtraTotalLabels=b.showExtraTotalLabels);null!=b.showHierarchies&&(a.showHierarchies=b.showHierarchies);null!=b.showHierarchyCaptions&&(a.showHierarchyCaptions=b.showHierarchyCaptions);null!=b.drillthroughMaxRows&&(a.drillThroughMaxRows=b.drillthroughMaxRows);null!=b.drillThroughMaxRows&&(a.drillThroughMaxRows=b.drillThroughMaxRows);null!=
b.showAllFieldsDrillThrough&&(a.showAllFieldsDrillThrough=b.showAllFieldsDrillThrough);null!=b.showReportFiltersArea&&(a.showReportFiltersArea=b.showReportFiltersArea);null!=b.dragging&&(a.dragging=b.dragging);null!=b.showAutoCalculationBar&&(a.showAutoCalculationBar=b.showAutoCalculationBar);null!=b.autoSwitchToCompact&&(a.autoSwitchToCompact=b.autoSwitchToCompact);null!=b.showFieldListSearch&&(a.showFieldListSearch=b.showFieldListSearch);null!=b.chartType&&(a.chartType=b.chartType);null!=b.chartTitle&&
(a.chartTitle=b.chartTitle);null!=b.showFilterInCharts&&(a.showFilterInCharts=b.showFilterInCharts);null!=b.chartMultipleMeasures&&(a.chartMultipleMeasures=b.chartMultipleMeasures);null!=b.chartOneLevel&&(a.chartOneLevel=b.chartOneLevel);null!=b.chartOneLevelTuple&&(a.chartOneLevelTuple=b.chartOneLevelTuple);null!=b.chartOneLevelColumnTuple&&(a.chartOneLevelColumnTuple=b.chartOneLevelColumnTuple);null!=b.chartAutoRange&&(a.chartAutoRange=b.chartAutoRange);null!=b.chartReversedAxes&&(a.chartReversedAxes=
b.chartReversedAxes);null!=b.chartAxisShortNumberFormat&&(a.chartAxisShortNumberFormat=b.chartAxisShortNumberFormat);null!=b.showChartLegend&&(a.showChartLegend=b.showChartLegend);null!=b.showChartLegendButton&&(a.showChartLegendButton=b.showChartLegendButton);null!=b.showChartDataLabels&&(a.showChartDataLabels=b.showChartDataLabels);null!=b.showAllChartLabels&&(a.showAllChartLabels=b.showAllChartLabels);null!=b.showChartMeasures&&(a.showChartMeasures=b.showChartMeasures);null!=b.showChartOneMeasureSelection&&
(a.showChartOneMeasureSelection=b.showChartOneMeasureSelection);null!=b.showChartsWarning&&(a.showChartsWarning=b.showChartsWarning);null!=b.chartPosition&&(a.chartPosition=b.chartPosition);null!=b.chartActiveTupleIndex&&(a.chartActiveTupleIndex=b.chartActiveTupleIndex);null!=b.chartActiveMeasure&&(a.chartActiveMeasure=b.chartActiveMeasure);null!=b.chartActiveMeasures&&(a.chartActiveMeasures=b.chartActiveMeasures);e.v(b.filterWeekOffset)||(a.filterWeekOffset=b.filterWeekOffset);e.v(b.filterDateFormat)||
(a.filterDateFormat=b.filterDateFormat);e.v(b.filterLiveSearch)||(a.filterLiveSearch=b.filterLiveSearch);e.v(b.filterByDateAndTime)||(a.filterByDateAndTime=b.filterByDateAndTime);e.v(b.allowEmptyMembersFilter)||(a.allowEmptyMembersFilter=b.allowEmptyMembersFilter);e.v(b.validateFormulas)||(a.validateFormulas=b.validateFormulas);e.v(b.caseSensitiveMembers)||(a.caseSensitiveMembers=b.caseSensitiveMembers);e.v(b.simplifyFieldListFolders)||(a.simplifyFieldListFolders=b.simplifyFieldListFolders);e.v(b.validateReportFiles)||
(a.validateReportFiles=b.validateReportFiles);e.v(b.allowBrowsersCache)||(a.allowBrowsersCache=b.allowBrowsersCache);e.v(b.showEmptyValues)||(a.showEmptyValues=b.showEmptyValues);e.v(b.distinguishNullUndefinedEmpty)||(a.distinguishNullUndefinedEmpty=b.distinguishNullUndefinedEmpty);e.v(b.useCaptionsInCalculatedValueEditor)||(a.useCaptionsInCalculatedValueEditor=b.useCaptionsInCalculatedValueEditor);e.v(b.expandExecutionTimeout)||(a.expandExecutionTimeout=b.expandExecutionTimeout);e.v(b.readOnly)||
(a.readOnly=b.readOnly);if(null!=b.grid){var c=b.grid;null!=c.type&&(a.gridType=c.type);null!=c.title&&(a.gridTitle=c.title);null!=c.showFilter&&(a.showFilter=c.showFilter);null!=c.showHeaders&&(a.showHeaders=c.showHeaders);null!=c.showAutoCalculationBar&&(a.showAutoCalculationBar=c.showAutoCalculationBar);null!=c.showTotals&&(a.showTotals=c.showTotals,"true"==a.showTotals.toString().toLowerCase()&&(a.showTotals="on"),"false"==a.showTotals.toString().toLowerCase()&&(a.showTotals="off"));null!=c.showGrandTotals&&
(a.showGrandTotals=c.showGrandTotals,"true"==a.showGrandTotals.toString().toLowerCase()&&(a.showGrandTotals="on"),"false"==a.showGrandTotals.toString().toLowerCase()&&(a.showGrandTotals="off"));null!=c.grandTotalsPosition&&(a.grandTotalsPosition=c.grandTotalsPosition);null!=c.columnTotalsPosition&&(a.columnTotalsPosition=c.columnTotalsPosition);null!=c.showExtraTotalLabels&&(a.showExtraTotalLabels=c.showExtraTotalLabels);null!=c.showHierarchies&&(a.showHierarchies=c.showHierarchies);null!=c.showHierarchyCaptions&&
(a.showHierarchyCaptions=c.showHierarchyCaptions);null!=c.drillthroughMaxRows&&(a.drillThroughMaxRows=c.drillthroughMaxRows);null!=c.drillThroughMaxRows&&(a.drillThroughMaxRows=c.drillThroughMaxRows);null!=c.showReportFiltersArea&&(a.showReportFiltersArea=c.showReportFiltersArea);null!=c.dragging&&(a.dragging=c.dragging);null!=c.showEmptyValues&&(a.showEmptyValues=c.showEmptyValues);null!=c.distinguishNullUndefinedEmpty&&(a.distinguishNullUndefinedEmpty=c.distinguishNullUndefinedEmpty);null!=c.autoSwitchToCompact&&
(a.autoSwitchToCompact=c.autoSwitchToCompact)}if(null!=b.chart){c=b.chart;null!=c.type&&(a.chartType=c.type);null!=c.title&&(a.chartTitle=c.title);null!=c.showFilter&&(a.showFilterInCharts=c.showFilter);null!=c.multipleMeasures&&(a.chartMultipleMeasures=c.multipleMeasures);null!=c.oneLevel&&(a.chartOneLevel=c.oneLevel);null!=c.autoRange&&(a.chartAutoRange=c.autoRange);null!=c.reversedAxes&&(a.chartReversedAxes=c.reversedAxes);null!=c.showLegend&&(a.showChartLegend=c.showLegend);null!=c.showLegendButton&&
(a.showChartLegendButton=c.showLegendButton);null!=c.showDataLabels&&(a.showChartDataLabels=c.showDataLabels);null!=c.showAllLabels&&(a.showAllChartLabels=c.showAllLabels);null!=c.showMeasures&&(a.showChartMeasures=c.showMeasures);null!=c.showOneMeasureSelection&&(a.showChartOneMeasureSelection=c.showOneMeasureSelection);null!=c.showWarning&&(a.showChartsWarning=c.showWarning);null!=c.position&&(a.chartPosition=c.position);null!=c.pieDataIndex&&(a.chartActiveTupleIndex=parseInt(c.pieDataIndex));null!=
c.axisShortNumberFormat&&(a.chartAxisShortNumberFormat=c.axisShortNumberFormat);if(null!=c.activeMeasure)if(a.chartMultipleMeasures){a.chartActiveMeasures=[];let k;Array.isArray(c.activeMeasure)?k=c.activeMeasure:"object"===typeof c.activeMeasure?k=[c.activeMeasure]:"string"===typeof c.activeMeasure&&(k=c.activeMeasure.split(","));if(!e.v(k))for(var d=0;d<k.length;d++)if(null!=k[d].uniqueName){var g=new l.hb.oh(k[d].uniqueName);null!=k[d].aggregation&&(g.$=k[d].aggregation);a.chartActiveMeasures.push(g)}else a.chartActiveMeasures.push(new l.hb.oh(k[d]))}else a.chartActiveMeasure=
new l.hb.oh,null!=c.activeMeasure.uniqueName?(a.chartActiveMeasure.A=c.activeMeasure.uniqueName,null!=c.activeMeasure.aggregation&&(a.chartActiveMeasure.$=c.activeMeasure.aggregation)):a.chartActiveMeasure.A=c.activeMeasure;null!=c.oneLevelTuple&&(a.chartOneLevelTuple=0<c.oneLevelTuple.length?c.oneLevelTuple.split(","):void 0);null!=c.oneLevelColumnTuple&&(a.chartOneLevelColumnTuple=0<c.oneLevelColumnTuple.length?c.oneLevelColumnTuple.split(","):void 0)}e.v(b.filter)||(b=b.filter,e.v(b.weekOffset)||
(a.filterWeekOffset=b.weekOffset),e.v(b.dateFormat)||(a.filterDateFormat=b.dateFormat),e.v(b.liveSearch)||(a.filterLiveSearch=b.liveSearch),e.v(b.filterByDateAndTime)||(a.filterByDateAndTime=b.filterByDateAndTime),e.v(b.allowEmptyMembersFilter)||(a.allowEmptyMembersFilter=b.allowEmptyMembersFilter));return a}Sa(){var b={};null!=this.viewType&&(b.viewType=this.viewType);var a={};this.gridType===e.K.Y.wf.YA?a.type=e.K.Y.wf.YA:this.gridType===e.K.Y.wf.Fv?a.type=e.K.Y.wf.Fv:this.gridType===e.K.Y.wf.rj&&
(a.type=e.K.Y.wf.rj);null!=this.gridTitle&&(a.title=this.gridTitle);null!=this.showFilter&&(a.showFilter=this.showFilter);null!=this.showHeaders&&(a.showHeaders=this.showHeaders);null!=this.showTotals&&(a.showTotals=this.showTotals);null!=this.showGrandTotals&&(a.showGrandTotals=this.showGrandTotals);null!=this.columnTotalsPosition&&(a.columnTotalsPosition=this.columnTotalsPosition);null!=this.grandTotalsPosition&&(a.grandTotalsPosition=this.grandTotalsPosition);null!=this.showExtraTotalLabels&&(a.showExtraTotalLabels=
this.showExtraTotalLabels);null!=this.showHierarchies&&(a.showHierarchies=this.showHierarchies);null!=this.showHierarchyCaptions&&(a.showHierarchyCaptions=this.showHierarchyCaptions);null!=this.drillThroughMaxRows&&(a.drillThroughMaxRows=this.drillThroughMaxRows);null!=this.showReportFiltersArea&&(a.showReportFiltersArea=this.showReportFiltersArea);null!=this.dragging&&(a.dragging=this.dragging);null!=this.showAutoCalculationBar&&(a.showAutoCalculationBar=this.showAutoCalculationBar);null!=this.autoSwitchToCompact&&
(a.autoSwitchToCompact=this.autoSwitchToCompact);u.Hc.Og(a)||(b.grid=a);a={};null!=this.chartType&&(a.type=this.chartType);null!=this.chartTitle&&(a.title=this.chartTitle);null!=this.showFilterInCharts&&(a.showFilter=this.showFilterInCharts);null!=this.chartMultipleMeasures&&(a.multipleMeasures=this.chartMultipleMeasures);null!=this.chartOneLevel&&(a.oneLevel=this.chartOneLevel);null!=this.chartAutoRange&&(a.autoRange=this.chartAutoRange);null!=this.chartReversedAxes&&(a.reversedAxes=this.chartReversedAxes);
null!=this.showChartLegend&&(a.showLegend=this.showChartLegend);null!=this.showChartLegendButton&&(a.showLegendButton=this.showChartLegendButton);null!=this.showChartDataLabels&&(a.showDataLabels=this.showChartDataLabels);null!=this.showAllChartLabels&&(a.showAllLabels=this.showAllChartLabels);null!=this.showChartMeasures&&(a.showMeasures=this.showChartMeasures);null!=this.showChartOneMeasureSelection&&(a.showOneMeasureSelection=this.showChartOneMeasureSelection);null!=this.showChartsWarning&&(a.showWarning=
this.showChartsWarning);null!=this.chartAxisShortNumberFormat&&(a.axisShortNumberFormat=this.chartAxisShortNumberFormat);this.viewType==e.K.Jd.mo&&null!=this.chartPosition&&(a.position=this.chartPosition);this.chartType==e.K.Dd.Oe.Qv&&null!=this.chartActiveTupleIndex&&(a.pieDataIndex=this.chartActiveTupleIndex.toString());if(1==this.chartMultipleMeasures){if(null!=this.chartActiveMeasures){for(var c=[],d=0;d<this.chartActiveMeasures.length;d++){var g={};g.uniqueName=this.chartActiveMeasures[d].A;
null!=this.chartActiveMeasures[d].$&&""!==this.chartActiveMeasures[d].$&&(g.aggregation=this.chartActiveMeasures[d].$);c.push(g)}0<c.length&&(a.activeMeasure=c)}}else null!=this.chartActiveMeasure&&(g={},g.uniqueName=this.chartActiveMeasure.A,null!=this.chartActiveMeasure.$&&""!=this.chartActiveMeasure.$&&(g.aggregation=this.chartActiveMeasure.$),a.activeMeasure=g);!0===this.chartOneLevel&&null!=this.chartOneLevelTuple&&0<this.chartOneLevelTuple.length&&(a.oneLevelTuple=this.chartOneLevelTuple.join(","));
!0===this.chartOneLevel&&null!=this.chartOneLevelColumnTuple&&0<this.chartOneLevelColumnTuple.length&&(a.oneLevelColumnTuple=this.chartOneLevelColumnTuple.join(","));u.Hc.Og(a)||(b.chart=a);a={};e.v(this.filterWeekOffset)||(a.weekOffset=this.filterWeekOffset);e.v(this.filterDateFormat)||(a.dateFormat=this.filterDateFormat);e.v(this.filterLiveSearch)||(a.liveSearch=this.filterLiveSearch);e.v(this.filterByDateAndTime)||(a.filterByDateAndTime=this.filterByDateAndTime);e.v(this.allowEmptyMembersFilter)||
(a.allowEmptyMembersFilter=this.allowEmptyMembersFilter);u.Hc.Og(a)||(b.filter=a);null!=this.configuratorActive&&(b.configuratorActive=this.configuratorActive);null!=this.configuratorButton&&(b.configuratorButton=this.configuratorButton);null!=this.showAggregations&&(b.showAggregations=this.showAggregations);null!=this.showCalculatedValuesButton&&(b.showCalculatedValuesButton=this.showCalculatedValuesButton);null!=this.grouping&&(b.grouping=this.grouping);null!=this.editing&&(b.editing=this.editing);
null!=this.drillThrough&&(b.drillThrough=this.drillThrough);null!=this.showDrillThroughConfigurator&&(b.showDrillThroughConfigurator=this.showDrillThroughConfigurator);null!=this.sorting&&(b.sorting=this.sorting);null!=this.defaultDateType&&(b.defaultDateType=this.defaultDateType);null!=this.strictDataTypes&&(b.strictDataTypes=this.strictDataTypes);null!=this.datePattern&&(b.datePattern=this.datePattern);null!=this.dateTimePattern&&(b.dateTimePattern=this.dateTimePattern);null!=this.dateTimezoneOffset&&
(b.dateTimezoneOffset=this.dateTimezoneOffset);null!=this.timePattern&&(b.timePattern=this.timePattern);null!=this.saveAllFormats&&(b.saveAllFormats=this.saveAllFormats);null!=this.showDefaultSlice&&(b.showDefaultSlice=this.showDefaultSlice);null!=this.useOlapFormatting&&(b.useOlapFormatting=this.useOlapFormatting);null!=this.showMemberProperties&&(b.showMemberProperties=this.showMemberProperties);null!=this.showEmptyData&&(b.showEmptyData=this.showEmptyData);null!=this.defaultHierarchySortName&&
(b.defaultHierarchySortName=this.defaultHierarchySortName);!0===this.calculatedValuesOLAP&&(b.calculatedValuesOLAP=this.calculatedValuesOLAP);!0===this.includeEmptySubtotalsOLAP&&(b.includeEmptySubtotalsOLAP=this.includeEmptySubtotalsOLAP);null!=this.showOutdatedDataAlert&&(b.showOutdatedDataAlert=this.showOutdatedDataAlert);null!=this.showAggregationLabels&&(b.showAggregationLabels=this.showAggregationLabels);null!=this.showAllFieldsDrillThrough&&(b.showAllFieldsDrillThrough=this.showAllFieldsDrillThrough);
null!=this.liveFiltering&&(b.liveFiltering=this.liveFiltering);null!=this.fieldListPosition&&(b.fieldListPosition=this.fieldListPosition);null!=this.showFieldListSearch&&(b.showFieldListSearch=this.showFieldListSearch);e.v(this.validateFormulas)||(b.validateFormulas=this.validateFormulas);e.v(this.caseSensitiveMembers)||(b.caseSensitiveMembers=this.caseSensitiveMembers);e.v(this.simplifyFieldListFolders)||(b.simplifyFieldListFolders=this.simplifyFieldListFolders);e.v(this.validateReportFiles)||(b.validateReportFiles=
this.validateReportFiles);e.v(this.allowBrowsersCache)||(b.allowBrowsersCache=this.allowBrowsersCache);e.v(this.showEmptyValues)||(b.showEmptyValues=this.showEmptyValues);e.v(this.distinguishNullUndefinedEmpty)||(b.distinguishNullUndefinedEmpty=this.distinguishNullUndefinedEmpty);e.v(this.useCaptionsInCalculatedValueEditor)||(b.useCaptionsInCalculatedValueEditor=this.useCaptionsInCalculatedValueEditor);!e.v(this.expandExecutionTimeout)&&this.expandExecutionTimeout>this.Rd.expandExecutionTimeout&&
(b.expandExecutionTimeout=this.expandExecutionTimeout);e.v(this.readOnly)||(b.readOnly=this.readOnly);return b}static Jk(b){var a=b.find("params"),c=new f;0!=a.find("param[name=configuratorActive]").length&&c.oa("configuratorActive",e.P.Zc(a.find("param[name=configuratorActive]").text()));0!=a.find("param[name=configuratorButton]").length&&c.oa("configuratorButton",e.P.Zc(a.find("param[name=configuratorButton]").text()));0!=a.find("param[name=viewType]").length&&c.oa("viewType",a.find("param[name=viewType]").text());
0!=a.find("param[name=gridTitle]").length&&c.oa("gridTitle",a.find("param[name=gridTitle]").text());0!=a.find("param[name=showFilter]").length&&c.oa("showFilter",e.P.Zc(a.find("param[name=showFilter]").text()));0!=a.find("param[name=showFilterInCharts]").length&&c.oa("showFilterInCharts",e.P.Zc(a.find("param[name=showFilterInCharts]").text()));0!=a.find("param[name=showAggregations]").length&&c.oa("showAggregations",e.P.Zc(a.find("param[name=showAggregations]").text()));0!=a.find("param[name=showHierarchyCaptions]").length&&
c.oa("showHierarchyCaptions",e.P.Zc(a.find("param[name=showHierarchyCaptions]").text()));0!=a.find("param[name=showHeaders]").length&&c.oa("showHeaders",e.P.Zc(a.find("param[name=showHeaders]").text()));0!=a.find("param[name=showReportFiltersArea]").length&&c.oa("showReportFiltersArea",e.P.Zc(a.find("param[name=showReportFiltersArea]").text()));0!=a.find("param[name=showExtraTotalLabels]").length&&c.oa("showExtraTotalLabels",e.P.Zc(a.find("param[name=showExtraTotalLabels]").text()));0!=a.find("param[name=editing]").length&&
c.oa("editing",e.P.Zc(a.find("param[name=editing]").text()));0!=a.find("param[name=grouping]").length&&c.oa("grouping",e.P.Zc(a.find("param[name=grouping]").text()));0!=a.find("param[name=drillThrough]").length&&c.oa("drillThrough",e.P.Zc(a.find("param[name=drillThrough]").text()));0!=a.find("param[name=showDrillThroughConfigurator]").length&&c.oa("showDrillThroughConfigurator",e.P.Zc(a.find("param[name=showDrillThroughConfigurator]").text()));0!=a.find("param[name=sorting]").length&&c.oa("sorting",
a.find("param[name=sorting]").text());0!=a.find("param[name=showHierarchies]").length&&c.oa("showHierarchies",e.P.Zc(a.find("param[name=showHierarchies]").text()));0!=a.find("param[name=showTotals]").length&&(c.oa("showTotals",a.find("param[name=showTotals]").text()),"true"==c.U("showTotals").toString().toLowerCase()&&c.oa("showTotals","on"),"false"==c.U("showTotals").toString().toLowerCase()&&c.oa("showTotals","off"));0!=a.find("param[name=showGrandTotals]").length&&(c.oa("showGrandTotals",a.find("param[name=showGrandTotals]").text()),
"true"==c.U("showGrandTotals").toString().toLowerCase()&&c.oa("showGrandTotals","on"),"false"==c.U("showGrandTotals").toString().toLowerCase()&&c.oa("showGrandTotals","off"));0!=a.find("param[name=showDefaultSlice]").length&&c.oa("showDefaultSlice",e.P.Zc(a.find("param[name=showDefaultSlice]").text()));0!=a.find("param[name=useOlapFormatting]").length&&c.oa("useOlapFormatting",e.P.Zc(a.find("param[name=useOlapFormatting]").text()));0!=a.find("param[name=showMemberProperties]").length&&c.oa("showMemberProperties",
e.P.Zc(a.find("param[name=showMemberProperties]").text()));0!=a.find("param[name=showEmptyData]").length&&c.oa("showEmptyData",e.P.Zc(a.find("param[name=showEmptyData]").text()));0!=a.find("param[name=showChartDataLabels]").length&&c.oa("showChartDataLabels",e.P.Zc(a.find("param[name=showChartDataLabels]").text()));0!=a.find("param[name=showAllChartLabels]").length&&c.oa("showAllChartLabels",e.P.Zc(a.find("param[name=showAllChartLabels]").text()));0!=a.find("param[name=strictDataTypes]").length&&
c.oa("strictDataTypes",e.P.Zc(a.find("param[name=strictDataTypes]").text()));0!=a.find("param[name=defaultDateType]").length&&c.oa("defaultDateType",a.find("param[name = defaultDateType]").text());0!=a.find("param[name=datePattern]").length&&c.oa("datePattern",a.find("param[name = datePattern]").text());0!=a.find("param[name=dateTimePattern]").length&&c.oa("dateTimePattern",a.find("param[name = dateTimePattern]").text());0!=a.find("param[name=classicView]").length&&1==e.P.Zc(a.find("param[name=classicView]").text())&&
c.oa("gridType",e.K.Y.wf.Fv);b=b.find("dataSource");void 0!==b.attr("tableType")&&b.attr("tableType")==e.K.Y.wf.rj&&c.oa("gridType",e.K.Y.wf.rj);0!=a.find("param[name=flatView]").length&&1==e.P.Zc(a.find("param[name=flatView]").text())&&c.oa("gridType",e.K.Y.wf.rj);0!=a.find("param[name=defaultHierarchySortName]").length?c.oa("defaultHierarchySortName",e.u.i.Ba.ih(a.find("param[name = defaultHierarchySortName]").text())?a.find("param[name=defaultHierarchySortName]").text():e.u.i.Ba.hc):c.oa("defaultHierarchySortName",
c.U("gridType")==e.K.Y.wf.rj?e.u.i.Ba.ed:e.u.i.Ba.hc);0!=a.find("param[name=showCalculatedValuesButton]").length&&c.oa("showCalculatedValuesButton",e.P.Zc(a.find("param[name = showCalculatedValuesButton]").text()));0!=a.find("param[name=showOutdatedDataAlert]").length&&c.oa("showOutdatedDataAlert",e.P.Zc(a.find("param[name = showOutdatedDataAlert]").text()));if(0!=a.find("param[name=chartType]").length){var d=a.find("param[name=chartType]");c.oa("chartType",d.text());if(void 0!==d.attr("activeMeasure")){c.oa("chartActiveMeasure",
new l.hb.oh(d.attr("activeMeasure")));void 0!==d.attr("activeMeasureAggregation")&&c.oa("chartActiveMeasure.aggregation",d.attr("activeMeasureAggregation"));var g=[],k=d.attr("activeMeasure").split(","),m=void 0!==d.attr("activeMeasureAggregation")?d.attr("activeMeasureAggregation").split(","):[];for(b=0;b<k.length;b++){var n=new l.hb.oh(k[b]);m[b]&&(n.$=m[b]);g.push(n)}0<g.length&&c.oa("chartActiveMeasures",g)}void 0!==d.attr("pieDataIndex")&&c.oa("chartActiveTupleIndex",parseInt(d.attr("pieDataIndex")));
void 0!==d.attr("position")&&c.oa("chartPosition",d.attr("position"));if(void 0!==d.attr("chartOneLevelTuple")){d=d.attr("chartOneLevelTuple").split(",");c.oa("chartOneLevelTuple",[]);g=[];for(b=0;b<d.length;b++)g[b]=parseInt(d[b]);c.oa("chartOneLevelTuple",g)}}0!=a.find("param[name=chartOneLevel]").length&&c.oa("chartOneLevel",e.P.Zc(a.find("param[name=chartOneLevel]").text()));0!=a.find("param[name=chartTitle]").length&&c.oa("chartTitle",a.find("param[name=chartTitle]").text());0!=a.find("param[name=chartMultipleMeasures]").length&&
c.oa("chartMultipleMeasures",e.P.Zc(a.find("param[name=chartMultipleMeasures]").text()));0!=a.find("param[name=chartAutoRange]").length&&c.oa("chartAutoRange",e.P.Zc(a.find("param[name=chartAutoRange]").text()));0!=a.find("param[name=chartReversedAxes]").length&&c.oa("chartReversedAxes",e.P.Zc(a.find("param[name=chartReversedAxes]").text()));0!=a.find("param[name=showChartsWarning]").length&&c.oa("showChartsWarning",e.P.Zc(a.find("param[name=showChartsWarning]").text()));0!=a.find("param[name=showChartOneMeasureSelection]").length&&
c.oa("showChartOneMeasureSelection",e.P.Zc(a.find("param[name=showChartOneMeasureSelection]").text()));0!=a.find("param[name=showChartMeasures]").length&&c.oa("showChartMeasures",e.P.Zc(a.find("param[name=showChartMeasures]").text()));0!=a.find("param[name=showChartLegendButton]").length&&c.oa("showChartLegendButton",e.P.Zc(a.find("param[name=showChartLegendButton]").text()));0!=a.find("param[name=saveAllFormats]").length&&c.oa("saveAllFormats",e.P.Zc(a.find("param[name=saveAllFormats]").text()));
0!=a.find("param[name=calculatedValuesOLAP]").length&&c.oa("calculatedValuesOLAP",e.P.Zc(a.find("param[name=calculatedValuesOLAP]").text()));0!=a.find("param[name=includeEmptySubtotalsOLAP]").length&&c.oa("includeEmptySubtotalsOLAP",e.P.Zc(a.find("param[name=includeEmptySubtotalsOLAP]").text()));return c}op(){var b=z.ba.create("<params/>");null!=this.U("configuratorActive")&&b.append(z.ba.create("<param/>").attr("name","configuratorActive").text(this.U("configuratorActive")));null!=this.U("configuratorButton")&&
b.append(z.ba.create("<param/>").attr("name","configuratorButton").text(this.U("configuratorButton")));null!=this.U("viewType")&&b.append(z.ba.create("<param/>").attr("name","viewType").text(this.U("viewType")));null!=this.U("gridTitle")&&b.append(z.ba.create("<param/>").attr("name","gridTitle").text(this.U("gridTitle")));null!=this.U("chartTitle")&&b.append(z.ba.create("<param/>").attr("name","chartTitle").text(this.U("chartTitle")));null!=this.U("showFilter")&&b.append(z.ba.create("<param/>").attr("name",
"showFilter").text(this.U("showFilter")));null!=this.U("showFilterInCharts")&&b.append(z.ba.create("<param/>").attr("name","showFilterInCharts").text(this.U("showFilterInCharts")));null!=this.U("showAggregations")&&b.append(z.ba.create("<param/>").attr("name","showAggregations").text(this.U("showAggregations")));null!=this.U("showHierarchyCaptions")&&b.append(z.ba.create("<param/>").attr("name","showHierarchyCaptions").text(this.U("showHierarchyCaptions")));null!=this.U("chartOneLevel")&&b.append(z.ba.create("<param/>").attr("name",
"chartOneLevel").text(this.U("chartOneLevel")));null!=this.U("chartAutoRange")&&b.append(z.ba.create("<param/>").attr("name","chartAutoRange").text(this.U("chartAutoRange")));null!=this.U("chartReversedAxes")&&b.append(z.ba.create("<param/>").attr("name","chartReversedAxes").text(this.U("chartReversedAxes")));null!=this.U("chartMultipleMeasures")&&b.append(z.ba.create("<param/>").attr("name","chartMultipleMeasures").text(this.U("chartMultipleMeasures")));null!=this.U("showHeaders")&&b.append(z.ba.create("<param/>").attr("name",
"showHeaders").text(this.U("showHeaders")));null!=this.U("showReportFiltersArea")&&b.append(z.ba.create("<param/>").attr("name","showReportFiltersArea").text(this.U("showReportFiltersArea")));null!=this.U("showExtraTotalLabels")&&b.append(z.ba.create("<param/>").attr("name","showExtraTotalLabels").text(this.U("showExtraTotalLabels")));null!=this.U("editing")&&b.append(z.ba.create("<param/>").attr("name","editing").text(this.U("editing")));null!=this.U("grouping")&&b.append(z.ba.create("<param/>").attr("name",
"grouping").text(this.U("grouping")));null!=this.U("drillThrough")&&b.append(z.ba.create("<param/>").attr("name","drillThrough").text(this.U("drillThrough")));null!=this.U("showDrillThroughConfigurator")&&b.append(z.ba.create("<param/>").attr("name","showDrillThroughConfigurator").text(this.U("showDrillThroughConfigurator")));null!=this.U("sorting")&&b.append(z.ba.create("<param/>").attr("name","sorting").text(this.U("sorting")));null!=this.U("showTotals")&&b.append(z.ba.create("<param/>").attr("name",
"showTotals").text(this.U("showTotals")));null!=this.U("showHierarchies")&&b.append(z.ba.create("<param/>").attr("name","showHierarchies").text(this.U("showHierarchies")));null!=this.U("showGrandTotals")&&b.append(z.ba.create("<param/>").attr("name","showGrandTotals").text(this.U("showGrandTotals")));null!=this.U("defaultDateType")&&b.append(z.ba.create("<param/>").attr("name","defaultDateType").text(this.U("defaultDateType")));null!=this.U("strictDataTypes")&&b.append(z.ba.create("<param/>").attr("name",
"strictDataTypes").text(this.U("strictDataTypes")));null!=this.U("datePattern")&&b.append(z.ba.create("<param/>").attr("name","datePattern").text(this.U("datePattern")));null!=this.U("dateTimePattern")&&b.append(z.ba.create("<param/>").attr("name","dateTimePattern").text(this.U("dateTimePattern")));null!=this.U("showChartsWarning")&&b.append(z.ba.create("<param/>").attr("name","showChartsWarning").text(this.U("showChartsWarning")));null!=this.U("showChartOneMeasureSelection")&&b.append(z.ba.create("<param/>").attr("name",
"showChartOneMeasureSelection").text(this.U("showChartOneMeasureSelection")));null!=this.U("showChartMeasures")&&b.append(z.ba.create("<param/>").attr("name","showChartMeasures").text(this.U("showChartMeasures")));null!=this.U("showChartLegendButton")&&b.append(z.ba.create("<param/>").attr("name","showChartLegendButton").text(this.U("showChartLegendButton")));null!=this.U("saveAllFormats")&&b.append(z.ba.create("<param/>").attr("name","saveAllFormats").text(this.U("saveAllFormats")));1==this.U("calculatedValuesOLAP")&&
b.append(z.ba.create("<param/>").attr("name","calculatedValuesOLAP").text(this.U("calculatedValuesOLAP")));1==this.U("includeEmptySubtotalsOLAP")&&b.append(z.ba.create("<param/>").attr("name","includeEmptySubtotalsOLAP").text(this.U("includeEmptySubtotalsOLAP")));null!=this.U("defaultHierarchySortName")&&b.append(z.ba.create("<param/>").attr("name","defaultHierarchySortName").text(this.U("defaultHierarchySortName")));null!=this.U("gridType")&&this.U("gridType")==e.K.Y.wf.Fv&&b.append(z.ba.create("<param/>").attr("name",
"classicView").text(!0));null!=this.U("gridType")&&this.U("gridType")==e.K.Y.wf.rj&&b.append(z.ba.create("<param/>").attr("name","flatView").text(!0));null!=this.U("showDefaultSlice")&&b.append(z.ba.create("<param/>").attr("name","showDefaultSlice").text(this.U("showDefaultSlice")));null!=this.U("showEmptyData")&&b.append(z.ba.create("<param/>").attr("name","showEmptyData").text(this.U("showEmptyData")));null!=this.U("showMemberProperties")&&b.append(z.ba.create("<param/>").attr("name","showMemberProperties").text(this.U("showMemberProperties")));
null!=this.U("useOlapFormatting")&&b.append(z.ba.create("<param/>").attr("name","useOlapFormatting").text(this.U("useOlapFormatting")));null!=this.U("showChartDataLabels")&&b.append(z.ba.create("<param/>").attr("name","showChartDataLabels").text(this.U("showChartDataLabels")));null!=this.U("showAllChartLabels")&&b.append(z.ba.create("<param/>").attr("name","showAllChartLabels").text(this.U("showAllChartLabels")));null!=this.U("showCalculatedValuesButton")&&b.append(z.ba.create("<param/>").attr("name",
"showCalculatedValuesButton").text(this.U("showCalculatedValuesButton")));null!=this.U("showOutdatedDataAlert")&&b.append(z.ba.create("<param/>").attr("name","showOutdatedDataAlert").text(this.U("showOutdatedDataAlert")));var a=z.ba.create("<param/>").attr("name","chartType").text(null!=this.U("chartType")?this.U("chartType"):this.Rd.chartType);null!=this.U("chartActiveTupleIndex")&&a.attr("pieDataIndex",this.U("chartActiveTupleIndex").toString());a.attr("position",this.U("chartPosition"));if(this.U("chartMultipleMeasures")&&
null!=this.U("chartActiveMeasures")){for(var c=[],d=[],g=0;g<this.U("chartActiveMeasures").length;g++)c.push(this.U("chartActiveMeasures")[g].A),d.push(this.U("chartActiveMeasures")[g].$);0<c.length&&a.attr("activeMeasure",c.join(","));0<d.length&&a.attr("activeMeasureAggregation",d.join(","))}else null!=this.U("chartActiveMeasure")&&(a.attr("activeMeasure",this.U("chartActiveMeasure").A),null!=this.U("chartActiveMeasure").$&&""!=this.U("chartActiveMeasure").$&&a.attr("activeMeasureAggregation",this.U("chartActiveMeasure").$));
this.U("chartOneLevel")&&0<this.U("chartOneLevelTuple").length&&a.attr("chartOneLevelTuple",this.U("chartOneLevelTuple").join(","));b.append(a);return b}jE(b){for(var a in b)this.Rd.hasOwnProperty(a)&&void 0!=b[a]&&(this[a]=b[a])}}h.Oq=f})(l.C||(l.C={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends w.Mh{constructor(){super();if(null!=f.instance)throw Error("Singleton");}static R(){null==f.instance&&(f.instance=new f);return f.instance}static dispose(){f.Xc=null;f.instance=null}static add(b){null!=b&&(f.Xc.Ta(b.id,b),this.cb())}static get(b){return f.Xc.getItem(b)}static remove(b){f.Xc.removeItem(b);this.cb()}static n5(){f.Xc=new e.ub;this.cb()}static dCa(){for(var b=[],a=0;a<f.Xc.length;a++){var c=f.Xc.fa(a);c.m3||b.push(c.Sa())}return b}static cb(){f.R().Ya(l.Xb.Vc.rk)}}
f.Xc=new e.ub;h.nn=f})(l.va||(l.va={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.id="";this.Au=this.mt=-1;this.Ge=this.hierarchy=this.Vb=this.$=this.measure="";this.Ud=[];this.qH=null}get m3(){return-1<this.Ge.toLowerCase().indexOf(e.u.i.rc.OQ)||-1<this.Ge.toLowerCase().indexOf(e.u.i.rc.PQ)}Sa(){var c={};c.id=this.id;c.row=this.mt;c.column=this.Au;void 0!==this.Mk&&(c.isTotal=this.Mk);c.measure=this.measure;c.aggregation=this.$;c.member=this.Vb;c.hierarchy=this.hierarchy;c.formula=this.Ge;null!=this.format&&
(c.format=this.format.Sa(),c.formatCSS=this.format.toString());return c}static xb(c){var d=new b;d.id=null!=c.id?c.id:e.P.zM();null!=c.row&&(d.mt=c.row);null!=c.column&&(d.Au=c.column);if(null!=c.isTotal){if(1==c.isTotal||1==c.isTotal)d.Mk=!0;if(0==c.isTotal||0==c.isTotal)d.Mk=!1}null!=c.measure&&(d.measure=c.measure);null!=c.aggregation&&(d.$=c.aggregation);null!=c.member&&(d.Vb=e.u.ze.Ws(c.member));null!=c.hierarchy&&(d.hierarchy=e.u.ze.bh(c.hierarchy));d.Ge=c.formula;null!=c.format&&(d.format=
"string"===typeof c.format?a.FT(c.format):a.xb(c.format));c=new u.VJ;d.Ud=c.parse(d.Ge);return null==d.Ud?null:d}}f.E7=b;class a{static xb(c){var d=new a;if(null==c)return d;null!=c.backgroundColor&&(d.backgroundColor=a.color(c.backgroundColor));null!=c.color&&(d.color=a.color(c.color));null!=c.fontFamily&&(d.fontFamily=c.fontFamily);null!=c.fontSize&&(d.fontSize=a.size(c.fontSize));null!=c.italic&&c.italic&&(d.fontStyle="italic");null!=c.fontStyle&&(d.fontStyle=c.fontStyle);null!=c.bold&&c.bold&&
(d.fontWeight="bold");null!=c.fontWeight&&(d.fontWeight=c.fontWeight);null!=c.padding&&(d.padding=a.size(Math.round(1.5*c.padding)));null!=c.textAlign&&(d.textAlign=c.textAlign);null!=c.textIndent&&(d.textIndent=a.size(c.textIndent));return d}static FT(c){var d={};c=c.split(";");if(null!=c)for(var g=0;g<c.length;g++){var k=c[g].split(":")[0];""!=k&&(d[k]=c[g].split(":")[1])}return a.xb(d)}Sa(){var c={};null!=this.backgroundColor&&(c.backgroundColor=this.backgroundColor);null!=this.color&&(c.color=
this.color);null!=this.fontFamily&&(c.fontFamily=this.fontFamily);null!=this.fontSize&&(c.fontSize=this.fontSize);null!=this.fontStyle&&(c.fontStyle=this.fontStyle);null!=this.fontWeight&&(c.fontWeight=this.fontWeight);null!=this.padding&&(c.padding=this.padding);null!=this.textAlign&&(c.textAlign=this.textAlign);null!=this.textIndent&&(c.textIndent=this.textIndent);return c}$ja(){var c={};null!=this.backgroundColor&&(c["background-color"]=this.backgroundColor);null!=this.color&&(c.color=this.color);
null!=this.fontFamily&&(c["font-family"]=this.fontFamily);null!=this.fontSize&&(c["font-size"]=this.fontSize);null!=this.fontStyle&&(c["font-style"]=this.fontStyle);null!=this.fontWeight&&(c["font-weight"]=this.fontWeight);null!=this.padding&&(c.padding=this.padding);null!=this.textAlign&&(c["text-align"]=this.textAlign);null!=this.textIndent&&(c["text-indent"]=this.textIndent);return c}toString(){var c="",d=this.$ja(),g;for(g in d)c+=g+":"+d[g]+";";return c}static color(c){return c.replace("0x",
"#")}static size(c){return"number"==typeof c?c+"px":"string"==typeof c&&0>c.indexOf("px")?c.trim()+"px":c}}f.$Na=a})(h.W||(h.W={}))})(l.va||(l.va={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){var h;(function(f){class b extends w.Mh{constructor(){super();if(null!=b.instance)throw Error("Singleton");}static R(){null==b.instance&&(b.instance=new b);return b.instance}static dispose(){b.zh=null;b.wg=null;b.If=null;b.Lj=null;b.SR=null;b.wG=null;b.Ig=null;b.Af=null;b.Dk=null;b.aR=null;b.bG=null;b.instance=null}static get zia(){return this.SR=b.Sa(e.u.i.ha.Ia)}static get aca(){return this.aR=b.Sa(e.u.i.ha.Oa)}static clear(){b.If={};b.Af={};b.wG={};b.SR={};b.bG={};b.aR=
{};b.Lj={};b.Dk={};b.wg=[];b.Ig=[];b.zh=[]}static L_(a){if(b.Gba(a.If)||b.Gba(a.Af))b.wG=b.jca(a.If),b.bG=b.jca(a.Af),b.cia();else if(b.Hba(a.If)||b.Hba(a.Af))b.wG=a.If,b.bG=a.Af,b.cia();b.Lj=a.Lj;b.Dk=a.Dk;b.wg=a.wg;b.Ig=a.Ig;b.zh=a.zh}static cia(){l.Wa.R().Fa.GE==l.Xb.Vc.si?this.rq():e.u.Ma.R().N(e.u.Ag.hl,b.rq,1)}static Gba(a){var c=/[A-Za-z]+/,d;for(d in a)if(-1<a[d].toString().search(c))return!0;return!1}static Hba(a){var c=/[A-Za-z]+/,d;for(d in a)if(-1<d.toString().search(c))return!0;return!1}static jca(a){var c=
{};if(null!=a)for(var d in a){var g=a[d];if(Array.isArray(g)&&0<g.length){var k=parseInt(g.pop());c[g.toString()]=k}}return c}static rq(){e.u.Ma.R().rb(e.u.Ag.hl,b.rq);b.If=b.xb(e.u.i.ha.Ia);b.wG={};b.Af=b.xb(e.u.i.ha.Oa);b.bG={}}static xb(a){var c={},d=a==e.u.i.ha.Ia?b.wG:b.bG,g=e.u.Ma.R().qa.gd(),k;for(k in d){var m=k.split(","),n=d[k],p=e.u.Ma.R().qa.axes.getItem(a).bb;if(p&&!l.C.F.sc)if(e.u.i.ea.MA(m[m.length-1])||""==m[m.length-1]&&(""==m[m.length-2]||null!=g.find(B=>B.A===m[m.length-2]))){var t=
new l.hb.oh(m[m.length-2],m[m.length-1]);m.splice(m.length-2,2)}else t=new l.hb.oh(m[m.length-1]),m.splice(m.length-1,1);for(var r=!1,v=[],y=0;y<m.length;y++)if(l.C.F.sc)if(a==e.u.i.ha.Ia)v.push(m[y]);else{var A=m[y];A=e.u.Ma.R().ta.le.indexOf(A);if(-1==A){r=!0;break}v.push(A)}else{A=e.u.ze.Ws(m[y]);var C=a==e.u.i.ha.Ia?e.u.Ma.R().qa.wb.fa(y):e.u.Ma.R().qa.Fb.fa(y);if(void 0==C){r=!0;break}A=C.Ib(A);if(null==A){r=!0;break}A.dc?v.push(""):v.push(A.ordinal.toString())}if(!r){if(p&&!l.C.F.sc){p=(p=e.u.Ma.R().qa.Gi(t))?
p.index:-1;if(-1==p&&""!=t.A)continue;v.push(p)}c[v.toString()]=n}}return c}static Sa(a){var c={},d=a==e.u.i.ha.Ia?b.If:b.Af,g=e.v(e.u.Ma.R().qa)?[]:e.u.Ma.R().qa.gd(),k;for(k in d){var m=k.split(","),n=d[k],p=e.u.Ma.R().qa.axes.getItem(a).bb;if(p&&!l.C.F.sc){var t=parseInt(m[m.length-1]);m.splice(m.length-1,1)}for(var r=!1,v=[],y=0;y<m.length;y++)if(l.C.F.sc)if(a==e.u.i.ha.Ia)v.push(m[y]);else{var A=""===m[y]?0:parseInt(m[y]);A=e.u.Ma.R().ta.le[A];if(null==A){r=!0;break}v.push(A)}else{A=""===m[y]?
0:parseInt(m[y]);var C=a==e.u.i.ha.Ia?e.u.Ma.R().qa.wb.fa(y):e.u.Ma.R().qa.Fb.fa(y);if(null==C){r=!0;break}A=C.za(A);if(null==A){r=!0;break}v.push(A.Fi)}if(!r){if(p&&!l.C.F.sc){if(t>=g.length)continue;-1==t&&1==g.length&&(t=0);m=g[t];v.push(m?m.A:"");v.push(m?m.$:"")}c[v.toString()]=n}}return c}static QH(){const a=new l.hb.Yv;a.If=h.wd.zia;a.Af=h.wd.aca;a.wg=h.wd.wg;a.Ig=h.wd.Ig;a.Lj=h.wd.Lj;a.Dk=h.wd.Dk;a.zh=h.wd.zh;a.YE=h.wd.YE;return a}}b.If={};b.Af={};b.YE=0;b.Lj={};b.Dk={};b.wg=[];b.Ig=[];b.zh=
[];b.wG={};b.SR={};b.bG={};b.aR={};f.wd=b})(h=l.size||(l.size={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static load(b,a){if(!e.v(f.zT[b]))return a(null,f.zT[b]);var c=new z.p$;c.N(w.ia.Qc,()=>{try{var d=e.P.hya(new Uint8Array(c.response)),g=window.btoa(d);f.zT[b]={name:b.substring(b.lastIndexOf("/")+1,b.lastIndexOf(".")),filename:b.substr(b.lastIndexOf("/")+1),content:g};a(null,f.zT[b])}catch(k){a(k)}});c.N(w.ia.xa,()=>{a({message:l.B.j.Bpa,name:null})});c.load(b)}}f.zT={};h.G8=f})(l.Dc||(l.Dc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b,a){this.PK=b;this.UZ=a}get Rk(){return this.PK}get Jh(){return this.UZ}ICa(){return Math.round(this.Rk*f.O$/f.Aaa)}KBa(){return Math.round(this.Jh*f.O$/f.Aaa)}static get mya(){return f.Msa}static Dka(b){return void 0!=b&&f.Caa.hasOwnProperty(b.toLocaleLowerCase())?b.toLocaleLowerCase():f.mya}static KH(b){return this.Caa[b]}}f.Aaa=25.4;f.Msa="a4";f.O$=72;f.Caa={a0:new f(841,1189),a1:new f(594,841),a2:new f(420,594),a3:new f(297,420),a4:new f(210,
297),a5:new f(148,210)};h.Ay=f})(l.Dc||(l.Dc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){throw Error("Singleton");}static Ze(b,a,c=!1,d=null){switch(a.type){case h.qj.Ov:f.pT(b,a,c,d);break;case h.qj.nB:f.Cda(b,a,c,d);break;case h.qj.vB:f.rza(b,a,c,d)}}static s0(b){var a=b.find("line",!0);a=a.concat(b.find("path",!0));a=a.concat(b.find("circle",!0));for(var c=0;c<a.length;c++)if(null!=a[c]){var d=e.K.Y.W.ad.Ez(a[c],["fill","stroke","shape-rendering","stroke-width"]);u.Nd().fj&&(d+="stroke-width: 1px");a[c].attr("style",d);a[c].attr("class",
"")}a=b.find("text",!0);for(c=0;c<a.length;c++)b=parseInt(a[c].V("font-size")),a[c].attr("style",e.K.Y.W.ad.Ez(a[c],"font-family font-weight fill color text-anchor text-rendering".split(" "))+";white-space:pre"),a[c].attr("font-size",b),a[c].attr("class","")}static lca(b){b.element.querySelectorAll("text").forEach(a=>{a.innerHTML=e.vt(a.innerHTML.replace(/\s/g,"<tspan> </tspan>"))})}static xba(b,a){b.V("font-family",a.V("font-family"));b.V("font-size",a.V("font-size"));b.V("color",a.V("color"));b.V("border-top",
a.V("border-top"));b.V("background",a.V("background"));b.V("padding-top",a.V("padding-top"));b.V("padding-left",a.V("padding-left"));b.V("padding-right",a.V("padding-right"));b.V("padding-bottom",a.V("padding-bottom"));b.V("overflow","auto");for(var c=a.find(".fm-icon-display"),d=b.find(".fm-icon-display",!0),g=0;g<d.length;g++)d[g].V("display",c.V("display")),d[g].V("width",c.V("width")),d[g].V("height",c.V("height")),d[g].V("margin-right",c.V("margin-right")),d[g].V("vertical-align",c.V("vertical-align")),
d[g].V("border-radius",c.V("border-radius")),d[g].text("");c=a.find(".fm-text-display");d=b.find(".fm-text-display",!0);for(g=0;g<d.length;g++)d[g].V("color",c.V("color")),d[g].V("font-family",c.V("font-family")),d[g].V("font-size",c.V("font-size")),d[g].V("vertical-align",c.V("vertical-align")),d[g].V("margin-bottom",c.V("margin-bottom")||0);c=a.find("ul");d=b.find("ul",!0);for(g=0;g<d.length;g++)d[g].V("list-style-type",c.V("list-style-type")),d[g].V("padding-top",c.V("padding-top")||0),d[g].V("padding-right",
c.V("padding-right")||0),d[g].V("padding-bottom",c.V("padding-bottom")||0),d[g].V("padding-left",c.V("padding-left")||0),d[g].V("margin-top",c.V("margin-top")||0),d[g].V("margin-right",c.V("margin-right")||0),d[g].V("margin-bottom",c.V("margin-bottom")||0),d[g].V("margin-left",c.V("margin-left")||0);c=a.find("td");d=b.find("td",!0);for(g=0;g<d.length;g++)d[g].V("padding-top",c.V("padding-top")),d[g].V("padding-right",c.V("padding-right")),d[g].V("padding-bottom",c.V("padding-bottom")),d[g].V("padding-left",
c.V("padding-left")),d[g].V("vertical-align",c.V("vertical-align"));a=a.find("li",!0);d=b.find("li",!0);for(g=0;g<d.length;g++)d[g].V("padding-left",a[g].V("padding-left")),d[g].V("padding-top",a[g].V("padding-top")),d[g].V("padding-bottom",a[g].V("padding-bottom")),d[g].V("white-space","nowrap");b.find("table").V("width","initial")}static TL(b){var a="";e.ka(b)||(a=b.replace(/##PAGE-NUMBER##/gi,f.Cl++ +""),a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()));return a}static pT(b,a,c=!1,
d=null){var g=b.Ds.Cs.G.find("svg").clone();try{c||f.xC(l.C.F.Kn,g,b.Ds.Nr.G);c&&(g.attr("viewBox","0 0 "+g.attr("width")+" "+g.attr("height")),g.V("width","100%"));b.G.append(g);f.s0(g);g.o5("class");var k=z.ba.Lc(z.$Y.Yb(g.element));g.remove();if(b.Ds.ug){var m=b.Ds.ug.G.clone();f.xba(m,b.Ds.ug.G);c&&(m.V("max-width",""),m.V("padding-bottom","20px"));k+=m.element.outerHTML}if(c)return null!=d&&d(k),k;b="<!DOCTYPE html><html><head><meta charset='UTF-8'/><title>{0}</title></head><body>{1}{2}{3}</body></html>";
m="";e.ka(a.cj)||(m=a.cj,m=m.replace(/##PAGE-NUMBER##/gi,""),m=m.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()));var n="";e.ka(a.Bj)||(n=a.Bj,n=n.replace(/##PAGE-NUMBER##/gi,""),n=n.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()));b=e.P.bind(b,e.ka(l.C.F.Kn)?l.B.j.JX:l.C.F.Kn,m,k,n);b=z.ba.format(b);0==a.filename.length&&(a.filename="pivotchart.html");h.lo.save(b,a);l.Wa.R().Ha(new w.ia(e.ef.lg))}catch(p){console.error("Export Charts error:",p);g.remove();e.Va(l.B.j.oo,l.B.j.xa,
e.ob.xa);if(c)return null!=d&&d(""),"";l.Wa.R().Ha(new w.ia(e.ef.lg))}}static RS(b){if(null==b)return null;b=b.replace(/##PAGE-NUMBER##/gi,"");b=b.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());return(new x.Ga("div")).V("background","white").V("text-align","left").V("z-index",-1).html(b)}static wza(b){const a=b.find(".fm-charts-layout");b=b.find(".fm-chart-legend-container");const c=a.parent,d=c.parent;d.element.style.border="0px";b&&(b.element.style.backgroundColor="transparent",b.element.style.border=
"0px");d.element.innerHTML=e.vt("");d.append(c);a.find(".fm-header-toolbar")&&a.find(".fm-header-toolbar").remove()}static Cda(b,a,c=!1,d=null){const g=["lib/html2canvas.v1.min.js","lib/canvg.min.js"];u.Nd().fj&&g.unshift("lib/promise.min.js");u.uo.load(g,()=>{const k=document.createElement("canvas"),m=b.Ds.Cs.G.find("svg").clone(),n=e.K.Sb.Jb.G.clone();let p=null;try{m.prepend((new x.Ga("rect")).V("width","100%").V("height","100%").V("fill","white"));f.oia(m);b.G.append(m);f.s0(m);f.lca(m);const t=
z.ba.Lc(z.$Y.Yb(m.element));canvg(k,t);m.remove();const r=(new x.Ga("img")).attr("src",k.toDataURL());c&&r.V("max-width","100%");n.find("svg").before(r);n.find("svg").remove();f.wza(n);p=new x.Ga("div");e.ka(a.cj)||p.append(this.RS(a.cj));p.append(n);p.V("padding-top","10px");p.V("padding-bottom","10px");e.ka(a.Bj)||p.append(this.RS(a.Bj));const v=window.getComputedStyle(b.G.element);if(c)return null!=d&&(p.V("position",b.G.V("position")),p.V("top",b.G.V("top")),p.V("bottom",b.G.V("bottom")),p.V("left",
b.G.V("left")),p.V("right",b.G.V("right")),p.V("width",v.width),p.V("height",v.height),d(p)),p.html();p.V("position","absolute").V("top",0).V("left",0).V("overflow","hidden").V("text-align","center").V("background","white").V("z-index",-1).V("width",v.width).V("height",v.height);e.K.Sb.Jb.G.element.ownerDocument.body.append(p.element);p.V("left",-p.left-p.width+"px");html2canvasV1(p.element).then(y=>{n.remove();p.remove();a.bD==l.hb.up.wB?h.lo.save(y,a):(y=e.P.Ica(y.toDataURL()),0==a.filename.length&&
(a.filename="pivotchart.png"),h.lo.save(y,a));l.Wa.R().Ha(new w.ia(e.ef.lg));f.clear()}).catch(y=>{console.error("Export Charts error:",y);m.remove();n.remove();null!=p&&p.remove();e.Va(l.B.j.oo,l.B.j.xa,e.ob.xa);c&&null!=d?d(""):l.Wa.R().Ha(new w.ia(e.ef.lg));f.clear()})}catch(t){console.error("Export Charts error:",t),n.remove(),m.remove(),null!=p&&p.remove(),e.Va(l.B.j.oo,l.B.j.xa,e.ob.xa),c&&null!=d?d(""):l.Wa.R().Ha(new w.ia(e.ef.lg)),f.clear()}})}static xC(b,a,c){if(0<b.length){var d=e.K.Y.W.ad.Ez(c,
["font-family","font-size","font-weight","color"]);b=(new x.Ga("text")).attr("x","50%").attr("style","text-anchor:middle;"+d).text(b);a.prepend(b);b.attr("y",c.height);b=a.find("g");d=d3v3.transform(b.attr("transform"));d.translate[1]+=c.height;b.attr("transform",d.toString());a.attr("height",parseInt(a.attr("height"))+c.height)}}static get pD(){var b=h.Ay.KH(f.Er);return"portrait"===f.pb.uE?b.Jh:b.Rk}static get qD(){var b=h.Ay.KH(f.Er);return"portrait"===f.pb.uE?b.Rk:b.Jh}static rza(b,a,c=!1,d=null){e.Ca(!0,
l.B.j.KF,"...",!0,!0);const g=["lib/html2canvas.v1.min.js","lib/jspdf.min.js"];u.Nd().fj&&g.unshift("lib/promise.min.js");u.uo.load(g,()=>{f.pb=a;f.Er=h.Ay.Dka(a.Er);f.Gd=new jspdf.jsPDF(a.uE,"mm",f.Er,!u.Nd().fj);f.gf=d;f.Cs=b;f.i5=c;f.Jh=f.pD-2*f.di;f.Rk=f.qD-2*f.di;f.rg=f.di;try{f.E3(()=>{f.TS(this.pb.cj,this.pb.Bj,()=>this.l4())})}catch(k){console.error("Export PDF error:",k),e.Va(l.B.j.oo,l.B.j.xa,e.ob.xa),e.Ca(!1),l.Wa.R().Ha(new w.ia(e.ef.lg)),f.clear()}})}static E3(b){e.v(f.pb.yT)?b():h.G8.load(f.pb.yT,
(a,c)=>{e.v(a)?e.v(c)||(f.font=c,f.Gd.addFileToVFS(c.filename,c.content),f.Gd.addFont(c.filename,c.name,"normal")):e.Va(a.message,l.B.j.xa,e.ob.xa);b()})}static TS(b,a,c){var d=null==b,g=null==a,k=!1;if(d&&g)c();else{if(!d){b=b.replace(/##PAGE-NUMBER##/gi,(f.Cl+1).toString());b=b.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());var m=new x.Ga("div");m.V("position","absolute");m.V("background","white");m.Yk(h.df.fA(f.qD-2*f.Ri));m.html(b);e.K.Sb.Jb.G.element.ownerDocument.body.append(m.element);
html2canvasV1(m.element,{scale:h.df.Oh}).then(p=>{m.remove();f.Zm=p;d=!0;g&&c()}).catch(p=>{console.error("Export Charts error:",p);m.remove();k||(k=!0,e.Va(l.B.j.oo,l.B.j.xa,e.ob.xa),l.Wa.R().Ha(new w.ia(e.ef.lg)),f.clear())})}if(!g){a=a.replace(/##PAGE-NUMBER##/gi,(f.Cl+1).toString());a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());var n=new x.Ga("div");n.V("position","absolute");n.V("background","white");n.Yk(h.df.fA(f.qD-2*f.Ri));n.html(a);e.K.Sb.Jb.G.element.ownerDocument.body.append(n.element);
html2canvasV1(n.element,{scale:h.df.Oh}).then(p=>{n.remove();f.aq=p;g=!0;d&&c()}).catch(p=>{console.error("Export Charts error:",p);m.remove();k||(k=!0,e.Va(l.B.j.oo,l.B.j.xa,e.ob.xa),l.Wa.R().Ha(new w.ia(e.ef.lg)),f.clear())})}}}static w_(b,a){b.addImage(a,"JPEG",f.Ri,f.Ri,h.df.fg(a.width/h.df.Oh),h.df.fg(a.height/h.df.Oh))}static v_(b,a){b.addImage(a,"JPEG",f.Ri,f.pD-h.df.fg(f.aq.height/h.df.Oh)-f.Ri,h.df.fg(a.width/h.df.Oh),h.df.fg(a.height/h.df.Oh))}static cS(){null!=f.Zm&&f.w_(f.Gd,f.Zm);null!=
f.aq&&f.v_(f.Gd,f.aq);f.Jh=f.pD;f.Jh-=e.v(f.Zm)?f.di:h.df.fg(f.Zm.height/h.df.Oh)+2*f.Ri;f.Jh-=e.v(f.aq)?f.di:h.df.fg(f.aq.height/h.df.Oh)+2*f.Ri;f.rg=e.v(f.Zm)?f.di:h.df.fg(f.Zm.height/h.df.Oh)+2*f.Ri}static l4(){f.cS();f.RKa()}static Ava(b){var a=f.Cs.Ds.Cs.G.find("svg").clone(),c=document.createElement("canvas");a.prepend((new x.Ga("rect")).V("width","100%").V("height","100%").V("fill","white"));f.oia(a);a.attr("width",parseInt(a.attr("width"))*h.df.Oh);a.attr("height",parseInt(a.attr("height"))*
h.df.Oh);f.Cs.G.append(a);f.s0(a);f.lca(a);canvg(c,z.ba.Lc(z.$Y.Yb(a.element)),{scaleWidth:a.width*h.df.Oh,scaleHeight:a.height*h.df.Oh});a.detach();b(c)}static NEa(b){if(e.v(f.Cs.Ds.ug))b(null);else{var a=f.Cs.Ds.ug.G.clone();a.width=f.Cs.Ds.width;f.xba(a,f.Cs.Ds.ug.G);a.V("border","none").V("position","absolute").V("top",0).V("left",0).V("overflow","hidden").V("background","white").V("z-index",-1);f.i5&&a.V("width","100%").V("max-width","");e.K.Sb.Jb.G.element.ownerDocument.body.append(a.element);
html2canvasV1(a.element,{scale:h.df.Oh}).then(c=>{a.remove();b(c)}).catch(c=>{console.error("Export Charts error:",c);a.remove();e.Va(l.B.j.oo,l.B.j.xa,e.ob.xa);l.Wa.R().Ha(new w.ia(e.ef.lg));f.clear()})}}static RKa(){const b=["lib/html2canvas.v1.min.js","lib/canvg.min.js"];u.Nd().fj&&b.unshift("lib/promise.min.js");u.uo.load(b,()=>{try{f.Ava(a=>{f.NEa(c=>{var d=document.createElement("canvas");d.width=a.width;d.height=a.height+(c?h.df.fA(f.di)/2+c.height:0);var g=d.getContext("2d");g.fillStyle="#FFFFFF";
g.fillRect(0,0,d.width,d.height);g.drawImage(a,0,0);c&&g.drawImage(c,0,d.height-c.height);if(f.i5&&null!=f.gf)l.C.F.me==e.K.Jd.nj&&0==f.pb.filename.length&&(f.pb.filename="pivotcharts.pdf"),f.gf(d);else{f.rg+=h.df.xC(l.C.F.Kn,f.Gd,f.rg,f.font);c=f.Iia(h.df.fg(d.width),h.df.fg(d.height),f.Rk,f.Jh);if(2>d.toDataURL("image/jpeg",1).split("base64,").length)throw Error(l.B.j.n9);f.Gd.addImage(d,"JPEG",f.di+c.x,f.rg,c.width,c.height);0==f.pb.filename.length&&(f.pb.filename="pivotcharts.pdf");f.pb.bD==l.hb.up.wB?
h.lo.save(f.Gd,f.pb):h.lo.save(e.P.k6(f.Gd.output()),f.pb);f.clear();l.Wa.R().Ha(new w.ia(e.ef.lg))}})})}catch(a){e.Va(a.message===l.B.j.n9?a.message:l.B.j.oo,l.B.j.xa,e.ob.xa),f.i5&&null!=f.gf?f.gf(null):l.Wa.R().Ha(new w.ia(e.ef.lg)),f.clear()}})}static clear(){f.Cs=null;f.pb=null;f.Gd=null;f.rg=0;f.Jh=0;f.Rk=0;f.Cl=0;f.Zm=null;f.aq=null}static oia(b){b=b.find("title",!0);for(var a=0;a<b.length;a++)b[a].remove()}static Iia(b,a,c,d){var g={x:0,y:0,width:0,height:0};if(b>c-0||a>d-0)d=Math.min((c-
0)/b,(d-0)/a),b*=d,a*=d;g.x=(c-0-b)/2;g.y=0;g.width=b;g.height=a;return g}}f.font=null;f.gf=null;f.Ri=5;f.di=15;f.Er="a4";f.Cl=0;h.aB=f})(l.Dc||(l.Dc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){throw Error("Singleton");}static Ze(b,a,c=null){b=["lib/html2canvas.v1.min.js"];u.Nd().fj&&b.unshift("lib/promise.min.js");u.uo.load(b,()=>{f.pb=a;this.Fxa();var d=e.K.Sb.Jb.G;const g=d.clone(),k=this.RS(g,c);d.element.ownerDocument.body.appendChild(k.element);d=window.getComputedStyle(d.element);k.Mr(d.height);k.Yk(d.width);k.V("left",-k.left-k.width+"px");html2canvasV1(k.element).then(m=>{f.gGa(m);k.Qg()}).catch(m=>{console.error("Export Image error:",
m);e.Va(l.B.j.oo,l.B.j.xa,e.ob.xa);k.Qg();l.Wa.R().Ha(new w.ia(e.ef.lg));f.clear()})},()=>{l.Wa.R().Ha(new w.ia(e.ef.lg));f.clear()})}static RS(b,a){a=(new x.Ga("div")).V("position","absolute").V("top","0px").V("left","0px").V("overflow","hidden").V("text-align","center").V("background","white").Yk(e.K.Sb.Wx).V("z-index",-1).append(a);null!=f.Rz&&a.append(f.Rz);b.find(".fm-fields-view-wrap").remove();a.append(b.V("position","relative"));null!=f.Bz&&a.append(f.Bz);return a}static Fxa(){const b=h.Ay.KH("a4");
let a=this.pb.cj,c=this.pb.Bj,d=null==a,g=null==c;d&&g||(d||(a=a.replace(/##PAGE-NUMBER##/gi,""),a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()),this.Rz=new x.Ga("div"),this.Rz.V("background","white"),this.Rz.V("text-align","left"),this.Rz.V("z-index",-1),this.Rz.Yk(h.df.fA(b.Rk-2*this.Ri)),this.Rz.html(a)),g||(c=c.replace(/##PAGE-NUMBER##/gi,""),c=c.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()),this.Bz=new x.Ga("div"),this.Bz.V("background","white"),this.Bz.V("text-align",
"left"),this.Bz.V("z-index",-1),this.Bz.Yk(h.df.fA(b.Rk-2*this.Ri)),this.Bz.html(c)))}static gGa(b){if(f.pb.bD==l.hb.up.wB)h.lo.save(b,f.pb);else try{var a=e.P.Ica(b.toDataURL());0==f.pb.filename.length&&(f.pb.filename="pivotgrid.png");e.v(a)||h.lo.save(a,f.pb)}catch(c){e.Va("Due to security reason export to image cannot be completed when you run the component from the local folder.",l.B.j.xa,e.ob.xa)}l.Wa.R().Ha(new w.ia(e.ef.lg));f.clear()}static clear(){f.pb=null;f.Rz=null;f.Bz=null}}f.Ri=5;h.c8=
f})(l.Dc||(l.Dc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static Ze(b,a,c,d,g=null){e.Ca(!0,l.B.j.KF,"...",!0,!0);const k=["lib/html2canvas.v1.min.js","lib/jspdf.min.js"];u.Nd().fj&&k.unshift("lib/promise.min.js");u.uo.load(k,()=>{f.clear();f.$H=l.C.F.sc;f.LU=b instanceof e.K.Yf.vF;f.Y=b;f.Ed=d;f.Fd=c;f.coords=b.na.coords;f.pb=a;f.Er=h.Ay.Dka(a.Er);f.Gd=new jspdf.jsPDF(a.uE,"mm",f.Er,!u.Nd().fj);f.Bw=g;f.V4=null!=g&&l.C.F.me==e.K.Jd.nj;f.Jh=f.pD-2*f.di;f.Rk=f.qD-2*f.di;f.w6=f.Y.Bg+c;f.x6=f.Y.vf+d;f.OA={};f.rg=
f.di;try{f.Mba(),f.h2(),f.E3(()=>{f.TS(f.pb.cj,f.pb.Bj,()=>this.l4())})}catch(m){console.error("Export PDF error:",m),e.Va(l.B.j.oo,l.B.j.xa,e.ob.xa),e.Ca(!1),l.Wa.R().Ha(new w.ia(e.ef.lg)),f.clear()}})}static E3(b){e.v(f.pb.yT)?b():h.G8.load(f.pb.yT,(a,c)=>{e.v(a)?e.v(c)||(f.font=c,f.Gd.addFileToVFS(c.filename,c.content),f.Gd.addFont(c.filename,c.name,"normal")):e.Va(a.message,l.B.j.xa,e.ob.xa);b()})}static TS(b,a,c){let d=null==b||null!=f.Zm&&-1==b.search(f.qQ),g=null==a||null!=f.aq&&-1==a.search(f.qQ);
if(d&&g)c();else{if(!d){b=b.replace(f.qQ,(f.Cl+1).toString());b=b.replace(f.y7,(new Date).toLocaleString());var k=new x.Ga("div");k.V("position","absolute");k.V("background","white");k.Yk(f.fA(f.qD-2*f.Ri));k.html(b);e.K.Sb.Jb.G.prepend(k);html2canvasV1(k.element,{scale:f.Oh}).then(n=>{k.remove();f.Zm=n;d=!0;g&&c()})}if(!g){a=a.replace(f.qQ,(f.Cl+1).toString());a=a.replace(f.y7,(new Date).toLocaleString());var m=new x.Ga("div");m.V("position","absolute");m.V("background","white");m.Yk(f.fA(f.qD-2*
f.Ri));m.html(a);e.K.Sb.Jb.G.prepend(m);html2canvasV1(m.element,{scale:f.Oh}).then(n=>{m.remove();f.aq=n;g=!0;d&&c()})}}}static w_(b,a){b.addImage(a,"JPEG",f.Ri,f.Ri,f.fg(a.width/f.Oh),f.fg(a.height/f.Oh))}static v_(b,a){b.addImage(a,"JPEG",f.Ri,f.pD-f.fg(a.height/f.Oh)-f.Ri,f.fg(a.width/f.Oh),f.fg(a.height/f.Oh))}static cS(){null!=f.Zm&&f.w_(f.Gd,f.Zm);null!=f.aq&&f.v_(f.Gd,f.aq);f.Jh=f.pD;f.Jh-=e.v(f.Zm)?f.di:f.fg(f.Zm.height/f.Oh)+2*f.Ri;f.Jh-=e.v(f.aq)?f.di:f.fg(f.aq.height/f.Oh)+2*f.Ri;f.rg=
e.v(f.Zm)?f.di:f.fg(f.Zm.height/f.Oh)+2*f.Ri}static get pD(){var b=h.Ay.KH(f.Er);return"portrait"===f.pb.uE?b.Jh:b.Rk}static get qD(){var b=h.Ay.KH(f.Er);return"portrait"===f.pb.uE?b.Rk:b.Jh}static l4(){f.cS();if(null!=f.Bw){f.rg+=f.xC(l.C.F.Kn,f.Gd,f.rg,f.font);var b=h.aB.Iia(f.fg(f.Bw.width),f.fg(f.Bw.height),f.Rk,f.Jh),a=e.ka(l.C.F.Kn)?f.rg:f.rg+5;f.Gd.addImage(f.Bw,"JPEG",f.di,a,b.width,b.height);f.V4||this.jba()}f.V4?f.wha():(f.rg+=f.xC(l.C.F.gq,f.Gd,f.rg,f.font),f.UJa(),l.C.F.MI&&f.yM(),u.Ql.Co({lp:()=>
f.D1(),gf:()=>f.wha()}))}static xC(b,a,c,d){if(e.ka(b))return 0;e.v(d)?(d=a.getFont(),a.setFont(d.Vza,"bold")):a.setFont(d.name,"normal");a.setTextColor(0,0,0);a.setFontSize(12);d=12*a.getStringUnitWidth(b)/a.internal.scaleFactor;d=(a.internal.pageSize.getWidth()-d)/2;a.text(b,d,c);return f.fg(12)}static cca(b,a,c){var d=.8*Math.max(f.fg(30),6),g=.9*f.xI(f.Oca);b=f.Gd.splitTextToSize(b,g,f.Uu(c));a=f.Gd.splitTextToSize(a,g,f.Uu(c));c=1<b.length?f.fg(b.length*(11+2*f.ri)-2*f.ri):f.fg(11*b.length-f.ri);
a=1<a.length?f.fg(a.length*(11+2*f.ri)-2*f.ri):f.fg(11*a.length-f.ri);a=(c>a?c:a)/d;return 1>a?d:(a+1)*d}static yM(){if(!(f.Y instanceof e.K.Yf.vF||0==e.u.Ma.R().qa.qb.length)){var b=l.Wa.R().ja.qa.vc(),a=e.u.Ma.R().qa.qb,c=f.di,d=.9*f.xI(f.Oca);var g=!0;var k=f.Y.na.ag(0,0,!0),m=f.uT.clone();m=f.wA(k,m);for(var n=m.fontSize,p=0;p<b.length;p++){var t=b.fa(p);if(a.Bb(t.A)&&t.filter.Fh){var r=f.Iz(t);g&&(g=f.cca("",l.B.j.$r,m),f.xM(f.Gd.splitTextToSize("",d,f.Uu(m)),k,m,c,d,g),c+=d,m.fontSize=n,f.xM(f.Gd.splitTextToSize(l.B.j.$r,
d,f.Uu(m)),k,m,c,d,g),m.fontSize=n,c=f.di,f.rg+=g,f.nt+=g);g=f.cca(t.caption,r,m);f.xM(f.Gd.splitTextToSize(f.F6(t.caption),d,f.Uu(m)),k,m,c,d,g);c+=d;m.fontSize=n;f.xM(f.Gd.splitTextToSize(f.F6(r),d,f.Uu(m)),k,m,c,d,g);m.fontSize=n;c=f.di;f.rg+=g;f.nt+=g;g=!1}}f.rg=f.rg>f.di?f.rg+2*f.xI(f.Nca):f.rg;f.nt=f.rg>f.di?f.nt+2*f.xI(f.Nca):f.nt}}static F6(b){b=b.replace(/<(?:.|\n)*?>/gi,"");var a=b.match(/&#(\d{3,4});/gi);if(a)for(var c,d=0;d<a.length;d++)c=parseInt(a[d].substring(2,a[d].length-1)),b=b.replace(a[d],
String.fromCharCode(c));return b}static xM(b,a,c,d,g,k){var m=b.length,n=1<m?f.fg(b.length*(c.fontSize+2*f.ri)-2*f.ri):f.fg(b.length*c.fontSize-f.ri);n>f.Jh/2&&(n=(f.Jh-20)/2,m=Math.floor(f.fA(n)/(c.fontSize+2*f.ri)));c.fontSize*=.7;var p=e.K.Y.W.ad.b5(c.backgroundColor);f.Gd.setFillColor(p[0],p[1],p[2],0!=p[3]?void 0:0);p=e.K.Y.W.ad.b5(c.borderColor);f.Gd.setDrawColor(p[0],p[1],p[2],0!=p[3]?void 0:0);p=e.K.Y.W.ad.b5(c.color);f.Gd.setTextColor(p[0],p[1],p[2]);e.v(f.font)?(p=f.Gd.getFont(),f.Gd.setFont(p.Vza,
"bold"===c.fontWeight?"bold":"normal")):f.Gd.setFont(f.font.name,"normal");f.Gd.setFontSize(c.fontSize);f.Gd.rect(d,f.rg,g,k,"FD");k=f.rg+(k-n)/2+f.ri;if("right"==c.textAlign)if(1<b.length)for(c=0;c<m;c++)f.Gd.text(b[c],d+g-f.ri,k,{align:"right"}),k+=2*f.ri;else f.Gd.text(b[0],d+g-f.ri+("("==b[0].charAt(0)&&")"==b[0].charAt(b[0].length-1)?1.5:0),k,{align:"right"});else if("center"==c.textAlign)if(1<b.length)for(a=0;a<m;a++)f.Gd.text(b[a],d+g/2,k,{align:"center"}),k+=2*f.ri;else f.Gd.text(b[0],d+g/
2,k,{align:"center"});else if(1<b.length)for(c=0;c<m;c++)g=!l.C.F.Bk&&null!=a&&0<a.level?(a.level+1)*f.ri:f.ri,f.Gd.text(b[c],d+g,k),k+=2*f.ri;else g=!l.C.F.Bk&&null!=a&&0<a.level?(a.level+1)*f.ri:f.ri,f.Gd.text(b[0],d+g,k)}static Iz(b){var a=l.B.j.FJ;b.filter.Fh&&(a=1==b.eb.length?b.za(b.eb[0]).caption:l.B.j.LJ);return a}static h2(){var b=f.Y.na,a=b.find(".fm-data-sheet");f.nS=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne,a);f.v6=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.Xv,a);f.o2=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne+" "+
e.K.Y.W.ya.Xv+" "+e.K.Y.W.ya.NJ,a);f.z5=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+e.K.Y.W.ya.Nv,x.Ga.Yb(b.element));f.d0=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+e.K.Y.W.ya.mB,x.Ga.Yb(b.element));f.uT=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+e.K.Y.W.ya.Kq,x.Ga.Yb(b.element))}static zH(b){b=f.xI(f.Y.na.coords.Dh(b));b=b<f.Rk?b:f.Rk-1;return.9*b}static wA(b,a){null!=b&&b.av&&null!=b.style&&(b=0<b.style.XC.length?e.K.Y.W.ad.sl(b.style.ST()):e.K.Y.W.ad.FT(b.style.jU()),b.merge(a),
a=b);a.color=a.color||"rgb(0,0,0)";"rgb(33, 33, 33)"==a.backgroundColor&&(a.color="rgb(242, 242, 242)");a.backgroundColor=a.backgroundColor||"rgb(0,0,0,0)";a.borderColor=a.borderColor||"rgb(222,222,222)";a.fontSize=a.fontSize||11;return a}static Uu(b){return{fontSize:.85*b.fontSize,fontName:null==b.fontFamily?f.Wna:b.fontFamily,fontStyle:e.K.Y.W.foa.GBa(parseFloat(b.fontWeight))}}static UJa(){f.wU=Array(f.x6);for(var b,a=0,c,d;a<f.x6;){f.Y.na.coords.Wo(a,NaN)&&(f.wU[a]=0,a++);c=b=0;for(var g=.8*Math.max(f.fg(f.coords.$d(a)),
6);b<f.w6;){f.Y.na.coords.Wo(NaN,b)&&(f.OA[b]=0,b++);d=f.Y.na.ag(a,b,!0);new e.K.Y.W.ad;var k=f.nS.clone();k=f.wA(d,k);if(null!=d){var m=d.I();"number"===typeof m&&(d.value=m,m+="",d.numeric=!0);m=m.replace(/<(?:.|\n)*?>/gi,"");d=f.Gd.splitTextToSize(m,null!=f.OA&&null!=f.OA[b]?f.OA[b]:f.zH(b),f.Uu(k));d=(1<d.length?f.fg(d.length*(11+2*f.ri)-2*f.ri):f.fg(11*d.length-f.ri))/g;d=1>d?g:(d+1)*g;d=d>f.Jh/2?(f.Jh-1)/2:d;c=d>c?d:c}b++}f.wU[a]=c;a++}}static D1(){if(f.VQ)return!1;for(var b=0;b<f.Ur;b++){if(f.VN&&
(f.jba(),f.VQ))return!1;var a,c=f.di,d=f.Hs-f.WS<f.Y.vf&&f.Hs>f.Y.Fp?f.Hs-f.WS:f.Hs;if(f.Y.na.coords.Wo(d,NaN))f.Hs++;else{var g=f.wU[d];for(f.Cu=f.Is;f.Cu<f.lz+f.Is;){var k=(a=f.$H||f.LU?!1:f.Cu==f.Is&&f.Cu>f.Y.Fp)?f.Y.Fp:f.Cu;if(f.Y.na.coords.Wo(NaN,k))f.Cu++;else if(!f.qL()&&f.nt+g<=f.Jh){a=null!=f.OA&&null!=f.OA[k]?f.OA[k]:f.zH(k);if(.9*(c+a)>f.Rk)break;k=f.Y.na.ag(d,k,!0);var m=f.AM(k);"number"===typeof m&&(k.value=m,m+="",k.numeric=!0);m=f.F6(m);var n=[m];new e.K.Y.W.ad;if(null!=k&&k.xh){var p=
f.z5.clone();p=f.wA(k,p);n=f.Gd.splitTextToSize(m,a,f.Uu(p))}else null!=k&&k.Ng?(p=f.d0.clone(),p=f.wA(k,p),n=f.Gd.splitTextToSize(m,a,f.Uu(p))):null!=k&&k.vl?(p=f.uT.clone(),p=f.wA(k,p)):null!=k&&k.Vz&&k.Mk&&""!=k.I()?(p=f.o2.clone(),p=f.wA(k,p)):null!=k&&k.Mk&&""!=k.I()?(p=f.v6.clone(),p=f.wA(k,p)):(p=f.nS.clone(),p=f.wA(k,p),n=f.Gd.splitTextToSize(m,a,f.Uu(p)));f.xM(n,k,p,c,a,g);f.Cu++;c+=a}else{f.VN=!0;break}}f.VN||(f.rg+=g,f.nt+=g,f.Hs++);if(f.fS()&&f.qL())break}}return f.fS()&&f.qL()}static AM(b){return e.v(b)?
"":b.xh||b.Ng?b.I():b.I(!1,f.pb.PO)}static fS(){return f.Is+f.lz>=f.Fd+f.Y.Bg}static qL(){return f.Hs>=f.Ed+f.Y.vf}static jba(){f.Gd.addPage();f.Cl++;f.VN=!1;f.VQ=!0;f.TS(f.pb.cj,f.pb.Bj,()=>{f.VQ=!1;f.cS()});f.nt=0;if(null==f.Bw||1<f.Cl)f.RLa(),f.QLa();e.Ca(!0,l.B.j.KF,f.Cl+1+" "+l.B.j.t9,!0)}static RLa(){f.fS()&&!f.qL()?(f.Hs-=f.Y.vf,f.WS=f.Hs):f.Hs=f.WS}static QLa(){f.fS()?f.qL()||(f.Is=0,f.Cu=0):(f.Is+=f.lz,f.Cu=f.Is);f.Mba()}static Mba(){f.lz=0;var b=f.Is,a=0;if(f.$H||f.LU?0:f.Is>=f.Y.Bg){var c=
f.zH(f.Y.Fp);a+=c;f.lz++;f.Is--;f.Cu--}for(;b<f.w6;)if(c=f.zH(b),c>f.Rk/2-f.di&&(c=(f.Rk+f.di)/2,f.OA[b]=c),a+=c,a<=f.Rk)f.lz++,b++;else{0==f.lz&&(f.lz=1);break}}static wha(){0==f.pb.filename.length&&(f.pb.filename="pivot.pdf");if(f.pb.bD==l.hb.up.wB)h.lo.save(f.Gd,f.pb);else{var b=f.Gd.output();b=e.P.k6(b);h.lo.save(b,f.pb)}f.clear();l.Wa.R().Ha(new w.ia(e.ef.lg))}static clear(){f.Y=null;f.pb=null;f.Gd=null;f.font=null;f.Fd=0;f.Ed=0;f.w6=0;f.x6=0;f.lz=0;f.Cu=0;f.Is=0;f.Hs=0;f.WS=0;f.nt=0;f.rg=0;
f.VN=!1;f.Cl=0;f.Jh=0;f.Rk=0;f.Zm=null;f.aq=null;f.wU=null;f.$H=!1;f.LU=!1}static xI(b){return.264*b}static fA(b){return 3.779*b}static fg(b){return b/3.779}}f.di=15;f.VN=!1;f.Cl=0;f.V4=!1;f.Wna="Helvetica";f.font=null;f.Er="a4";f.Oca=100;f.Nca=30;f.qQ=/##PAGE-NUMBER##/gi;f.y7=/##CURRENT-DATE##/gi;f.$H=!1;f.LU=!1;f.Oh=4;f.Ri=5;f.VQ=!1;f.Ur=5;f.ri=f.xI(8);h.df=f})(l.Dc||(l.Dc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){throw Error("Singleton");}static Ze(b,a,c,d,g=""){f.Y=b;f.Fd=c;f.Ed=d;f.pb=a;f.Bw=g||"";try{f.pT()}catch(k){console.error("Export HTML error:",k),e.Va(l.B.j.oo,l.B.j.xa,e.ob.xa),e.Ca(!1),l.Wa.R().Ha(new w.ia(e.ef.lg)),f.clear()}}static pT(){e.Ca(!0,l.B.j.wy);f.Wm=u.bg();f.Xu="";f.lb=f.Y.Ui;f.ut=[];l.C.F.MI&&f.yM();u.Ql.Co({lp:()=>f.D1(),gf:()=>f.nHa()})}static E1(){var b="",a=f.Y.na,c=a.find(".fm-data-sheet");b+=e.P.bind("body{{0}}\n",e.K.Y.W.ad.Ez(x.Ga.Yb(a.element),
["font-family"]));b+=e.P.bind(".grid{border-collapse:collapse;{0}border-top:1px solid #e9e9e9;border-left:1px solid #e9e9e9;}\n",e.K.Y.W.ad.Ez(x.Ga.Yb(a.element),["font-family","font-size","color"]));b+=e.P.bind(".title{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.TY,x.Ga.Yb(a.element)));b+=e.P.bind(".cell{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.Ne,c));b+=e.P.bind(".totalCell{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.Xv,c));b+=e.P.bind(".grandTotalCell{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.Xv+
" "+e.K.Y.W.ya.NJ,c));b+=e.P.bind(".rowHeaderCell{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+e.K.Y.W.ya.Nv,x.Ga.Yb(a.element)));b+=e.P.bind(".columnHeaderCell{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+e.K.Y.W.ya.mB,x.Ga.Yb(a.element)));b+=e.P.bind(".filterHeaderCell{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+e.K.Y.W.ya.Kq,x.Ga.Yb(a.element)));for(c=1;20>=c;c++)b+=e.P.bind(".level{0}{{1}}\n",c,e.K.Y.W.ad.tl(e.K.Y.W.ya.Nv+" "+e.K.Y.W.ya.Sf+c,x.Ga.Yb(a.element),
["padding-left"]));for(c=0;c<f.ut.length;c++)b+=e.P.bind(".{0}{{1}}\n",f.ut[c],e.K.Y.W.ad.tl(f.ut[c],x.Ga.Yb(a.element)));return b}static K_(b){for(var a=0;a<b.length;a++)0>f.ut.indexOf(b[a])&&f.ut.push(b[a])}static yM(){if(!(f.Y instanceof e.K.Yf.vF||0==e.u.Ma.R().qa.qb.length))for(var b=l.Wa.R().ja.qa.vc(),a=e.u.Ma.R().qa.qb,c,d,g=!0,k,m="style='min-width:"+f.KFa+"px;'",n=0;n<b.length;n++)d=b.fa(n),k="",a.Bb(d.A)&&d.filter.Fh&&(c=f.Iz(d),g&&(k+="<td {0}></td>",k=e.P.bind(k,"class='filterHeaderCell' "+
m),k+="<td {0}>"+l.B.j.$r+"</td>",k=e.P.bind(k,"class='filterHeaderCell' "+m),f.lD+="<tr>"+k+"</tr>",k=""),k+="<td {0}>"+d.caption+"</td>",k=e.P.bind(k,"class='filterHeaderCell' "+m),k+="<td {0}>"+c+"</td>",k=e.P.bind(k,"class='filterHeaderCell' "+m),f.lD+="<tr>"+k+"</tr>",g=!1)}static Iz(b){var a=l.B.j.FJ;b.filter.Fh&&(a=1==b.eb.length?b.za(b.eb[0]).caption:l.B.j.LJ);return a}static D1(){var b="";if(f.Y.na.coords.Wo(f.lb,NaN))return f.lb++>=f.Ed+f.Y.vf;for(var a=f.Y.Fp;a<f.Fd+f.Y.Bg;a++)if(!f.Y.na.coords.Wo(NaN,
a)){var c=f.Y.na.ag(f.lb,a,!0);b+="<td {0}>"+f.AM(c)+"</td>";if(null==c)b=e.P.bind(b,"class='cell'");else{var d="",g="";c.av&&null!=c.style&&(g=c.style.jU(),d=c.style.ST(),f.K_(c.style.XC));d=c.xh?d+(" rowHeaderCell level"+c.level):c.Ng?d+" columnHeaderCell":c.vl?d+" filterHeaderCell":c.Vz&&c.Mk&&""!=c.I(!0)?d+" grandTotalCell":c.Mk&&""!=c.I(!0)?d+" totalCell":d+" cell";null!=c&&c.vl&&(d+=" level"+c.level);""!=d.trim()&&(d="class='"+d.trim()+"'");g+="width:"+f.Y.na.coords.Dh(a)+"px;";""!=g.trim()&&
(g="style='"+g.trim()+"'");b=e.P.bind(b,d+" "+g)}}f.eO+="<tr>"+b+"</tr>";200<u.bg()-f.Wm&&(e.Ca(!0,l.B.j.wy,e.P.bind("{0}%",(f.lb/(f.Ed+f.Y.vf)*100).toFixed(0))),f.Wm=u.bg());return++f.lb>=f.Ed+f.Y.vf}static AM(b){return e.v(b)?"":b.xh||b.Ng?b.I(!0):b.I(!0,f.pb.PO)}static nHa(){e.Ca(!1);f.WKa();f.clear()}static WKa(){0==f.pb.filename.length&&(f.pb.filename="pivotgrid.html");var b="";if(!e.ka(f.pb.cj)){var a=f.pb.cj;a=a.replace(/##PAGE-NUMBER##/gi,"");a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());
b+=a}e.ka(f.Bw)||(e.ka(l.C.F.Kn)||(b+="<div class='title'>"+l.C.F.Kn+"</div>"),b+=f.Bw);b+="<div class='title'>"+l.C.F.gq+"</div>";b+=0<f.lD.length?"<table class='grid'>"+f.lD+"</table><br><br><table class='grid'>"+f.eO+"</table>":"<table class='grid'>"+f.eO+"</table>";e.ka(f.pb.Bj)||(a=f.pb.Bj,a=a.replace(/##PAGE-NUMBER##/gi,""),a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()),b+=a);f.Xu="<!DOCTYPE html><html><head><meta charset='UTF-8'/>";f.Xu+="<title>"+(e.ka(l.C.F.gq)?l.B.j.JX:l.C.F.gq)+
"</title>";f.Xu+="<style>"+f.E1()+"</style></head>";f.Xu+="<body>"+b+"</body></html>";h.lo.save(f.Xu,f.pb);l.Wa.R().Ha(new w.ia(e.ef.lg))}static clear(){f.lb=0;f.Xu="";f.lD="";f.eO="";f.Fd=0;f.Ed=0;f.Y=null;f.pb=null;f.Bw=""}}f.lb=0;f.Wm=0;f.Xu="";f.lD="";f.eO="";f.KFa=100;f.Ur=10;h.b8=f})(l.Dc||(l.Dc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){throw Error("Singleton");}static Ze(b,a,c,d){f.Y=b;f.Fd=c;f.Ed=d;f.pb=a;try{f.sza()}catch(g){console.error("Export XLS error:",g),e.Va(l.B.j.oo,l.B.j.xa,e.ob.xa),e.Ca(!1),l.Wa.R().Ha(new w.ia(e.ef.lg))}}static sza(){e.Ca(!0,l.B.j.wy);f.lb=f.Y.Ui;f.Me=0;f.Wm=u.bg();f.fO=[];f.Qf=new S.jsa;var b=l.B.j.JX;e.ka(f.pb.f1)?e.ka(l.C.F.gq)||(b=l.C.F.gq):b=f.pb.f1;b=new S.ksa(b);f.Qf.lh.push(b);f.h2();this.pb.cj?f.fba(this.pb.cj):f.zua();f.xC();l.C.F.MI&&
f.$ta();u.Ql.Co({lp:()=>f.QAa(),gf:()=>f.XIa()})}static h2(){var b=f.Y.na.element;f.nS=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne,x.Ga.Yb(b),!1);f.v6=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.Xv,x.Ga.Yb(b),!1);f.o2=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.Xv+" "+e.K.Y.W.ya.NJ,x.Ga.Yb(b),!1);f.z5=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+e.K.Y.W.ya.Nv,x.Ga.Yb(b),!1);f.d0=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+e.K.Y.W.ya.mB,x.Ga.Yb(b),!1);f.uT=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+
e.K.Y.W.ya.Kq,x.Ga.Yb(b),!1);for(var a=1;20>=a;a++)f.A5[a]=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+e.K.Y.W.ya.Nv+" "+e.K.Y.W.ya.Sf+a,x.Ga.Yb(b),!1)}static XIa(){f.fba(this.pb.Bj,!0);f.JFa();e.Ca(!1);f.aLa()}static aLa(){f.lb=f.Y.Ui;0==f.pb.filename.length&&(f.pb.filename="pivot.xlsx");f.Qf.LMa().then(b=>{h.lo.save(b,f.pb);f.Qf=null;f.pb=null;l.Wa.R().Ha(new w.ia(e.ef.lg))})}static cNa(b){return e.v(b)||e.v(b.measure)||b.measure.type!=e.u.i.Ra.Ua?!1:e.u.i.ea.dF(b.measure.$)||f.Y.na.type===
e.K.Y.sheet.flat.Mv.TYPE&&!b.Mk?!0:!1}static dF(b){return e.v(b)||e.v(b.measure)||b.measure.type!=e.u.i.Ra.Mc?!1:e.u.i.ea.dF(b.measure.$)||f.Y.na.type===e.K.Y.sheet.flat.Mv.TYPE&&!b.Mk?!0:!1}static pp(b){return e.v(b)||e.v(b.measure)||b.measure.type!=e.u.i.Ra.ec?!1:e.u.i.ea.pp(b.measure.$)||f.Y.na.type===e.K.Y.sheet.flat.Mv.TYPE&&!b.Mk?!0:!1}static QAa(){const b=f.Ed+f.Y.vf;for(let p=f.Y.Fp;p<f.Fd+f.Y.Bg;p++){var a=f.Y.na.ag(f.lb,p,!0);let t=e.v(a)?"":a.I();t=t?t:"";let r;var c=f.cNa(a);const v=f.dF(a),
y=f.pp(a);e.v(a)||isNaN(a.value)||(c?r=f.lxa(a.value,a.hierarchy.getTimezoneOffset()):v?r=f.mxa(a.value,a.hierarchy.getTimezoneOffset()):y&&(r=f.nxa(a.value)));"number"===typeof t&&(a.value=t,t+="",a.numeric=!0);var d=null!=a&&(a.xh||a.Ng);f.pb.uda&&""==t&&null!=a&&null!=a.Vb&&(t=a.Vb.caption);if(""!=t.trim()||d){new e.K.Y.W.ad;d=null!=a&&a.xh?0<a.level&&f.A5[a.level]?f.A5[a.level].clone():f.z5.clone():null!=a&&a.Ng?f.d0.clone():null!=a&&a.vl?f.uT.clone():null!=a&&a.Vz&&a.Mk&&""!=a.I()?f.o2.clone():
null!=a&&a.Mk&&""!=a.I()?f.v6.clone():f.nS.clone();if(null!=a&&a.av&&null!=a.style){var g=0<a.style.XC.length?e.K.Y.W.ad.sl(a.style.ST()):e.K.Y.W.ad.FT(a.style.jU());g.merge(d);d=g}d.color=d.color||"rgb(0,0,0)";"rgb(33, 33, 33)"==d.backgroundColor&&(d.color="rgb(242, 242, 242)");d.backgroundColor=d.backgroundColor||"rgb(255,255,255)";d.fontSize=d.fontSize?f.eKa(d.fontSize):8;var k=new S.vd.fonts.$v(e.v(d.fontFamily)?"Tahoma":d.fontFamily,d.fontSize,e.P.So(d.color));k.bold="bold"==d.fontWeight||700<=
parseInt(d.fontWeight);k.fE=!1;var m=null,n=g=!1;if(a.numeric){if(null!=a.measure){const A=a.measure.Eh(a.measure.A,a.measure.$).clone();n=""!=A.lE?!0:n;g=e.u.i.ea.de(a.measure.$);A.xe=e.u.i.ea.xe(a.measure.$);m=A.lka();if(g||A.de)A.yd="%",m=A.lka();m=new S.vd.format.Rt(""==m?0:-1,m)}}else c||v?m=a.measure.type==e.u.i.Ra.Mc?new S.vd.format.Rt(164,"dd.mm.yyyy h:mm:ss"):new S.vd.format.Rt(14,""):y&&(0<=r?m=new S.vd.format.Rt(165,f.np):(r=Math.abs(r),m=new S.vd.format.Rt(166,"-"+f.np)));m&&f.Qf.styleSheet.aua(m);
k=new S.vd.JB(k,e.P.So(d.backgroundColor),m,a.av&&void 0==d.textAlign&&a.li?"right":d.textAlign);!l.C.F.Bk&&a&&a.xh&&0<a.level&&(k.textIndent=a.level);f.Qf.styleSheet.rw(k);m=null!=a.measure?a.measure.Eh(a.measure.A,a.measure.$):null;t=e.P.nH(t);a.numeric?null==m||a.label!=m.QD&&a.label!=m.cD?a.av&&f.EDa()&&f.pb.PO?(c=a.I(),f.Qf.lh[0].Oi(f.lb-f.Y.Ui+f.Me,p,!isNaN(a.value)&&a.label==c&&a.numeric?f.Wda(a.value,m,g):e.P.nH(c),k)):(r=f.Wda(a.value,m,g),f.Qf.lh[0].Oi(f.lb-f.Y.Ui+f.Me,p,isNaN(a.value)&&
n?a.I():r,k)):f.Qf.lh[0].Oi(f.lb-f.Y.Ui+f.Me,p,a.I(),k):f.pb.KA||!a.li||null==a.measure||a.measure.type!=e.u.i.Ra.Ua&&a.measure.type!=e.u.i.Ra.Mc?!f.pb.KA&&a.li&&null!=a.measure&&a.measure.$==e.u.i.ea.NONE?f.Qf.lh[0].Oi(f.lb-f.Y.Ui+f.Me,p,a.value,k):!f.pb.KA&&a.li&&null!=a.measure&&a.measure.type==e.u.i.Ra.ec?y?f.Qf.lh[0].Oi(f.lb-f.Y.Ui+f.Me,p,r,k):f.Qf.lh[0].Oi(f.lb-f.Y.Ui+f.Me,p,a.value,k):f.Qf.lh[0].Oi(f.lb-f.Y.Ui+f.Me,p,t,k):c||v?f.Qf.lh[0].Oi(f.lb-f.Y.Ui+f.Me,p,r,k):f.Qf.lh[0].Oi(f.lb-f.Y.Ui+
f.Me,p,a.value,k);null!=a&&(0==f.Qf.lh[0].zH(p)&&f.Qf.lh[0].Xia(p,f.kxa(f.Y.na.coords.Dh(p))),p!=f.Y.Fp||f.Y.na.coords.rEa(f.lb)||(a=f.RL(f.Y.na.coords.$d(f.lb)),f.Qf.lh[0].Rx(f.lb+f.Me,a)),t.length>d.width&&f.Qf.lh[0].Xia(p,f.RL(t.length+f.cellPadding)>f.RL(f.H7)?f.RL(f.H7):f.RL(t.length+f.cellPadding)))}}200<u.bg()-f.Wm&&(e.Ca(!0,l.B.j.wy,e.P.bind("{1}% ("+l.B.j.uY+")",f.lb.toString(),(f.lb/b*100).toFixed(0))),f.Wm=u.bg());return f.lb++>=b}static Wda(b,a,c){return null==a||!c&&"%"!=a.yd?b:b/100}static lxa(b,
a){b=-f.gea(b,a)+b;return Math.floor(b/864E5)}static mxa(b,a){return(-f.gea(b,a)+b)/864E5}static gea(b,a){return null!=a?Date.parse("1899-12-30")-36E5*a:Date.parse("1899-12-30")+36E5*((new Date(b)).getTimezoneOffset()/60)}static nxa(b){return 1E3*b/864E5}static eKa(b){return.75*b}static RL(b){return 0>=b?0:f.jya/f.Mca*b*(f.Mca/e.K.Y.sheet.Nh.Ev)}static kxa(b){return 0>=b?0:((b-5)/7*100+.5)/100}static zua(){var b=l.hb.rJ.Sm;if(0<b.length){var a=getComputedStyle(e.K.Sb.Jb.G.find("."+e.K.Y.W.ya.mB).element),
c=new S.vd.fonts.$v(a.fontFamily,parseInt(a.fontSize)-2,e.P.So(a.color));c.bold="bold"===a.fontWeight;c.fE="italic"===a.fontStyle;c=new S.vd.JB(c,e.P.So(a.backgroundColor));c.textAlign=a.textAlign;f.Qf.styleSheet.rw(c);f.Qf.lh[0].Oi(f.Me,0,l.B.j.$ma,c);f.Qf.lh[0].Oi(f.Me,1,"",c);a=getComputedStyle(e.K.Sb.Jb.G.find("."+e.K.Y.W.ya.Ne).element);var d=new S.vd.fonts.$v(a.fontFamily,parseInt(a.fontSize)-2,e.P.So(a.color));d.bold="bold"===a.fontWeight;d.fE="italic"===a.fontStyle;d=new S.vd.JB(d,e.P.So(a.backgroundColor));
d.textAlign=a.textAlign;f.Qf.styleSheet.rw(d);for(a=0;a<b.length;a++)f.Qf.lh[0].Oi(a+1+f.Me,0,e.P.nH(String(b[a].name)),c),f.Qf.lh[0].Oi(a+1+f.Me,1,e.P.nH(String(b[a].value)),c)}f.Me+=0==b.length?0:b.length+2}static fba(b,a=!1){if(null!=b&&0!=b.length){var c=0;a&&(f.Me+=1,c=f.Ed+f.Y.vf);b=b.split("\n");var d=getComputedStyle(e.K.Sb.Jb.G.find("."+e.K.Y.W.ya.mB).element),g=new S.vd.fonts.$v(d.fontFamily,parseInt(d.fontSize)-2,e.P.So(d.color));g.bold="bold"===d.fontWeight;g.fE="italic"===d.fontStyle;
g=new S.vd.JB(g,e.P.So(d.backgroundColor));g.textAlign=d.textAlign;f.Qf.styleSheet.rw(g);d=f.Qf.lh[0];for(var k=0;k<b.length;k++){const m=c+k+f.Me;d.Oi(m,0,e.P.nH(String(b[k])),g);f.fO.push(m)}f.Me+=b.length+(a?0:1)}}static xC(){var b=l.C.F.gq;if(0!=b.length){var a=getComputedStyle(e.K.Sb.Jb.G.find("."+e.K.Y.W.ya.TY).element),c=new S.vd.fonts.$v(a.fontFamily,parseInt(a.fontSize)-2,e.P.So(a.color));c.bold="bold"===a.fontWeight;c.fE="italic"===a.fontStyle;a=new S.vd.JB(c,e.P.So(a.backgroundColor));
a.textAlign="center";f.Qf.styleSheet.rw(a);c=f.Me;f.Qf.lh[0].Oi(c,0,b,a);f.fO.push(c);f.Me+=1}}static JFa(){const b=f.Qf.lh[0];for(var a=0;a<f.fO.length;a++)b.Xga(f.fO[a],0,Math.min(b.pwa,10))}static EDa(){return!e.v(e.K.Y.W.ne.Lw)}static $ta(){if(!(f.Y instanceof e.K.Yf.vF||0==e.u.Ma.R().qa.qb.length)){var b=l.Wa.R().ja.qa.vc(),a=e.u.Ma.R().qa.qb,c=!0,d=getComputedStyle(e.K.Sb.Jb.G.find("."+e.K.Y.W.ya.qk).element),g=new S.vd.fonts.$v(d.fontFamily,parseInt(d.fontSize)-2,e.P.So(d.color));g.bold="bold"===
d.fontWeight;g.fE="italic"===d.fontStyle;g=new S.vd.JB(g,e.P.So(d.backgroundColor));g.textAlign=d.textAlign;f.Qf.styleSheet.rw(g);d=getComputedStyle(e.K.Sb.Jb.G.find("."+e.K.Y.W.ya.Ne).element);var k=new S.vd.fonts.$v(d.fontFamily,parseInt(d.fontSize)-2,e.P.So("rgb(0,0,0)"));k.bold="bold"===d.fontWeight;k.fE="italic"===d.fontStyle;d=new S.vd.JB(k,e.P.So(d.backgroundColor));d.textAlign="left";f.Qf.styleSheet.rw(d);k=f.Qf.lh[0];var m=0;for(let t=0;t<b.length;t++){var n=b.fa(t);var p=n.Ci.type==e.u.i.dB.qB;
(a.Bb(n.A)||f.pb.NW)&&n.filter.Fh&&(p=p?f.Bwa(n):f.pb.NW?f.Eea(n):f.Iz(n),c&&(k.Oi(m+f.Me,0,"",g),k.Oi(m+f.Me,1,l.B.j.$r,g),m++),k.Oi(m+f.Me,0,n.caption,g),k.Oi(m+f.Me,1,p,d),m++,c=!1)}if(f.Y.na.type===e.K.Y.sheet.flat.Mv.TYPE)for(b=l.Wa.R().ja.qa.Wf,a=0;a<b.length;a++)(n=l.Wa.R().ja.qa.Ok(b[a].A))&&n.filter.Fh&&(p=f.pb.NW?f.Eea(n):f.Iz(n),c&&(k.Oi(m+f.Me,0,"",g),k.Oi(m+f.Me,1,"Filters",g),m++),k.Oi(m+f.Me,0,n.caption,g),k.Oi(m+f.Me,1,p,d),m++,c=!1);f.Me+=c?0:m+1}}static Eea(b){for(var a=[],c=0;c<
b.eb.length;c++)a.push(b.zD(b.eb[c]));return a.join(", ")}static Iz(b){var a=l.B.j.FJ;b.filter.Fh&&(a=1==b.eb.length?b.za(b.eb[0]).caption:l.B.j.LJ);return a}static Bwa(b){var a,c=[];null!=f.DA&&(f.DA.length=0);f.Ija(b.pd);for(var d=f.Gwa(b),g=!1,k=0;k<f.DA.length;k++){var m=b.za(f.DA[k]);var n=k==f.DA.length-1;if(!g&&-1<b.eb.indexOf(m.ordinal)){g=!0;var p=m}g&&(-1<b.eb.indexOf(m.ordinal)&&(a=m),-1<d.indexOf(m.ordinal)&&!n||(a=null!=a?a:p,m=f.eca(p),n=a.A!=p.A?":"+f.eca(a,!0):"",a=p=null,g=!1,c.push(m+
n)))}return c.join(", ")}static Ija(b){null==f.DA&&(f.DA=[]);b.dc||f.DA.push(b.ordinal);for(var a=b.hierarchy.jk(b,!1,e.u.i.Ba.hc),c=a.length,d,g=0;g<c;g++)d=b.hierarchy.za(a[g]),0<d.children.length?f.Ija(d):f.DA.push(d.ordinal)}static eca(b,a=!1){var c=b,d=[];for(d.push(b.caption);c&&c.A!=b.A&&!c.level.ev&&0<c.children.length;)d.push(c.caption),c=c.hierarchy.jk(c,!1,e.u.i.Ba.hc),c=b.hierarchy.za(a?c[c.length-1]:c[0]);for(c=b.parent;c&&!c.dc;)d.unshift(c.caption),c=c.parent;return d.join("-")}static Gwa(b){for(var a=
[],c=b.eb,d,g=0;g<c.length;g++)if(d=b.za(c[g]),a.push(d.ordinal),a=a.concat(d.Ow),!(d.parent&&!d.parent.dc&&-1<a.indexOf(d.parent.ordinal)))for(;d.parent&&!d.parent.dc;)d=d.parent,a.push(d.ordinal);return a}}f.lb=0;f.Me=0;f.cellPadding=3;f.H7=100;f.np="[h]:mm:ss";f.A5=[];f.jya=14.3;f.Mca=38;f.fO=[];h.f8=f})(l.Dc||(l.Dc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){}static Gk(c,d=null,g=null){f.wZ?this.M0.push({type:c,options:d,gf:g}):(c=c.toLowerCase(),c=a.MA(c)?c:a.ci,l.C.F.me==e.K.Jd.nj&&c==a.JSON?(e.Va(l.B.j.Apa,l.B.j.xa),this.Rja()):(l.Wa.R().N(e.ef.lg,f.Ada),f.wZ=!0,f.Op=g,e.v(d)&&(d=new h.e8),d.type=c,c=new b(c,d,g),l.Wa.R().Ha(c)))}static Rja(){e.Ca(!1);l.Wa.R().rb(e.ef.lg,f.Ada);f.wZ=!1}static ZGa(){f.Rja();if(0<f.M0.length){var c=f.M0.shift();this.Gk(c.type,c.options,c.gf)}}static save(c,
d){switch(d.bD.toLowerCase()){case l.hb.up.AP:f.gO(c,d);break;case l.hb.up.IY:f.xW(c,d);break;case l.hb.up.Y6:break;case l.hb.up.wB:f.YKa(c,d);break;default:f.gO(c,d)}}static xW(c,d){switch(d.type){case a.Ov:case a.wF:case a.vB:case a.nB:case a.JSON:case a.ci:f.ZKa(c,d);break;default:c=l.Tb.validate(d.type),e.Va("Unknown type of export: '"+c+"'",l.B.j.xa)}}static gO(c,d){switch(d.type){case a.Ov:var g="text/html;charset=utf-8";d.filename=f.sL(d.filename,".html");break;case a.wF:g="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
d.filename=f.sL(d.filename,".xlsx");break;case a.vB:g="application/pdf";d.filename=f.sL(d.filename,".pdf");break;case a.nB:g="image/png";d.filename=f.sL(d.filename,".png");break;case a.ci:g="text/csv;charset=utf-8";d.filename=f.sL(d.filename,".csv");break;default:g="text/plain;charset=utf-8"}var k=[c];d.type==a.ci&&k.unshift(e.P.VAa());try{z.Hia(new Blob(k,{type:g}),d.filename),f.JO({data:c,filename:d.filename,type:d.type})}catch(m){e.Va(l.B.j.hQ,l.B.j.xa,e.ob.xa),f.JO(null,{message:l.B.j.hQ})}}static sL(c,
d){c.indexOf(d)!=c.length-d.length&&(c+=d);return c}static SJa(c){var d={};null!=c&&null!=c.target&&null!=c.target.response&&""!=c.target.response&&null!=c.target.xhr&&(d.response=c.target.response,d.status=c.target.xhr.status);d.message=l.B.j.hQ;return d}static ZKa(c,d){var g=new u.Pt(500);g.N(u.xf.Ol,function(){e.Ca(!0,l.B.j.v9,(g.Kw/10).toString()+" sec")});var k=new z.tk;k.N(w.ia.xa,t=>{t=f.SJa(t);var r=t.hasOwnProperty("response")?l.Tb.validate(t.response):"";r=700<r.length?r.substr(0,700):r;
e.Va(e.P.bind(t.message,r),l.B.j.xa,e.ob.xa);g.stop();e.Ca(!1);f.JO(null,t)});k.N(w.ia.Qc,function(){g.stop();e.Ca(!1);f.JO({data:c,filename:d.filename,type:d.type,response:k.response})});var m=new Blob([c],{type:"application/octet-binary"}),n=new FormData;n.append("filedata",m,d.filename);for(var p in d.m1)n.append(p,d.m1[p]);k.Ir=z.Qt.Rv;k.data=n;k.contentType=!1;k.$h(d.tc);k.load(d.url);g.start()}static YKa(c,d){f.JO({data:c,filename:d.filename,type:d.type})}static JO(c=null,d=null){null!=f.Op&&
f.Op.call(null,c,d)}}f.wZ=!1;f.M0=[];f.Ada=()=>f.ZGa();h.lo=f;class b extends w.ia{constructor(c,d,g){super(e.ef.TX);this.Lu=c;this.pb=d;this.Op=g}}h.nOa=b;class a{static MA(c){return c===a.nB||c===a.wF||c===a.Ov||c===a.ci||c===a.JSON||c===a.vB}}a.nB="image";a.wF="excel";a.Ov="html";a.ci="csv";a.JSON="json";a.vB="pdf";h.qj=a})(l.Dc||(l.Dc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b="file"){this.Zk=!0;this.bD=e.model.hb.up.AP;this.filename="";this.url="()";this.tc=null;this.type=h.qj.Ov;this.uE="portrait";this.f1="";this.NW=this.uda=!1;this.KA=!0;this.m1={};this.$f=",";this.PO=!0;this.uba=!1;this.bD=b}static xb(b){var a=new f;if(e.v(b))return a;e.v(b.showHeaders)||(a.Zk="true"===b.showHeaders||!0===b.showHeaders);e.v(b.filename)||(a.filename=b.filename);e.v(b.url)||(a.url=b.url);e.v(b.excelSheetName)||(a.f1=b.excelSheetName);
e.v(b.excelExportAll)||(a.uda=b.excelExportAll);e.v(b.pageOrientation)||"portrait"!==b.pageOrientation.toLowerCase()&&"landscape"!==b.pageOrientation.toLowerCase()||(a.uE=b.pageOrientation.toLowerCase());!e.v(b.destinationType)&&e.model.hb.up.MA(b.destinationType.toString().toLowerCase())&&(a.bD=b.destinationType.toString().toLowerCase());e.ka(b.pageFormat)||(a.Er=b.pageFormat);e.ka(b.fieldSeparator)||(a.$f=b.fieldSeparator);e.v(b.showFilters)||(a.NW=b.showFilters);e.v(b.useOlapFormattingInExcel)||
(a.KA=b.useOlapFormattingInExcel);e.v(b.extendedParameters)||(a.m1=b.extendedParameters);e.v(b.header)||(a.cj=b.header);e.v(b.footer)||(a.Bj=b.footer);e.v(b.fontUrl)||(a.yT=b.fontUrl);e.v(b.useCustomizeCellForData)||(a.PO=b.useCustomizeCellForData);e.v(b.requestHeader)||(a.tc=b.requestHeader);e.v(b.requestHeaders)||(a.tc=b.requestHeaders);e.v(b.alwaysEnclose)||(a.uba=b.alwaysEnclose);return a}}h.e8=f})(l.Dc||(l.Dc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){throw Error("Singleton");}static Ze(b,a,c,d,g=null){if(!e.v(b)){f.Y=b;f.Fd=c;f.Ed=d;f.pb=a;f.Op=g;try{f.pza()}catch(k){console.error("Export CSV error:",k),e.Va(l.B.j.oo,l.B.j.xa,e.ob.xa),e.Ca(!1),l.Wa.R().Ha(new w.ia(e.ef.lg)),f.clear()}}}static cea(b,a){if(null!=b&&0!=b.length){0<f.nr.length&&f.nr.push([].join(f.pb.$f));b=b.split("\n");for(let d=0;d<b.length;d++){var c=[];c.push('"'+b[d]+'"');f.nr.push(c.join(f.pb.$f))}0<f.nr.length&&
!a&&f.nr.push([].join(f.pb.$f))}}static yM(){if(!(f.Y instanceof e.K.Yf.vF||0==e.u.Ma.R().qa.qb.length)){for(var b,a=l.Wa.R().ja.qa.vc(),c=e.u.Ma.R().qa.qb,d,g,k=!0,m=0;m<a.length;m++)g=a.fa(m),b=[],c.Bb(g.A)&&g.filter.Fh&&(d=f.Iz(g),k&&(b.push('""'),b.push('"'+l.B.j.$r+'"'),f.nr.push(b.join(f.pb.$f)),b=[]),b.push('"'+g.caption+'"'),b.push('"'+d+'"'),f.nr.push(b.join(f.pb.$f)),k=!1);0<f.nr.length&&f.nr.push([].join(f.pb.$f))}}static Iz(b){var a=l.B.j.FJ;b.filter.Fh&&(a=1==b.eb.length?b.za(b.eb[0]).caption:
l.B.j.LJ);return a}static pza(){e.Ca(!0,l.B.j.wy);f.lb=0;f.Wm=u.bg();f.cea(this.pb.cj);l.C.F.MI&&f.yM();u.Ql.Co({lp:()=>f.JAa(),gf:()=>f.fGa()})}static JAa(){if(f.Y.na.coords.Wo(f.lb,NaN))return f.lb>=f.Ed+f.Y.vf;var b=[];for(var a=0;a<f.Fd+f.Y.Bg;a++)if(!f.Y.na.coords.Wo(NaN,a))for(b=[],a=0;a<f.Fd+f.Y.Bg;a++){if(f.Y.na.coords.Wo(NaN,a))continue;const c=f.Y.na.ag(f.lb,a,!0);let d=f.AM(c);"number"===typeof d&&(c.value=d,d+="",c.numeric=!0);d=e.P.nH(d);0<=d.indexOf(f.pb.$f)||this.pb.uba||-1<d.search(/\n|\r/gi)?
(d=d.replace(/["]/gi,'""'),b.push(`"${d}"`)):b.push(d)}f.nr.push(b.join(f.pb.$f));200<u.bg()-f.Wm&&(b=f.lb/(f.Ed+f.Y.vf)*100,100<b&&(b=100),e.Ca(!0,l.B.j.wy,e.P.bind("{1}% ("+l.B.j.uY+")",f.lb.toString(),b.toFixed(0))),f.Wm=u.bg());return++f.lb>=f.Ed+f.Y.vf}static AM(b){return e.v(b)?"":b.xh||b.Ng?b.I():b.I(!1,f.pb.PO)}static UKa(){var b=f.nr.join("\r\n");0==f.pb.filename.length&&(f.pb.filename="pivot.csv");h.lo.save(b,f.pb);l.Wa.R().Ha(new w.ia(e.ef.lg));f.clear()}static fGa(){e.Ca(!1);f.cea(this.pb.Bj,
!0);f.UKa()}static clear(){f.Y=null;f.lb=0;f.Wm=0;f.nr=[];f.pb=null;f.Op=null;f.Fd=0;f.Ed=0}}f.lb=0;f.Wm=0;f.nr=[];h.a8=f})(l.Dc||(l.Dc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){throw Error("Singleton");}static Ze(b,a,c,d,g=null){if(!e.v(b)){f.Y=b;f.Fd=c;f.Ed=d;f.pb=a;f.Op=g;try{f.qza()}catch(k){console.error("Export JSON error:",k),e.Va(l.B.j.oo,l.B.j.xa,e.ob.xa),e.Ca(!1),l.Wa.R().Ha(new w.ia(e.ef.lg)),f.clear()}}}static qza(){e.Ca(!0,l.B.j.wy);f.kc=0;f.Wm=f.startTime=u.bg();u.Ql.Co({lp:()=>f.NAa(),gf:()=>()=>f.vHa()})}static NAa(){for(var b=Math.min(f.kc+f.Ur,f.Fd+f.Y.Bg),a;f.kc<b;f.kc++){a=[];for(var c=0;c<f.Ed+
f.Y.vf;c++){var d="",g=f.Y.na.ag(c,f.kc,!0);g&&(d=g.label);a.push(d)}f.r3.push(JSON.stringify(a))}if(50<u.bg()-f.Wm){b=f.kc/(f.Fd+f.Y.Bg)*100;if(100<b)return!0;f.ULa(b);f.Wm=u.bg()}return f.kc>=f.Fd+f.Y.Bg}static ULa(b){e.Ca(!0,l.B.j.wy,e.P.bind("{0}% ({1} rows)",b.toFixed(0),f.kc.toString()))}static XKa(){var b="["+f.r3.join(",\n")+"]";0==f.pb.filename.length&&(f.pb.filename="pivot.json");h.lo.save(b,f.pb);l.Wa.R().Ha(new w.ia(e.ef.lg));f.clear()}static vHa(){e.Ca(!1);f.XKa()}static clear(){f.Y=
null;f.kc=0;f.startTime=0;f.Wm=0;f.Fd=0;f.Ed=0;f.r3=[];f.cells=[];f.pb=null;f.Op=null}}f.kc=0;f.startTime=0;f.Wm=0;f.cells=[];f.r3=[];f.Ur=10;h.d8=f})(l.Dc||(l.Dc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{}f.A8="formatchange";h.H8=f;class b{static Eh(a,c){a=b.HBa(a,c);return b.eaa(a)}static HBa(a,c){let d=void 0;b.tr.Bb(a)&&(d=b.tr.getItem(a).has(c)?b.tr.getItem(a).get(c):b.tr.getItem(a).values().next().value);return d}static GI(a,c,d){b.tr.Bb(c)||b.tr.Ta(c,new Map);b.tr.getItem(c).set(d,a)}static OE(a){const c=h.W.se.xb(a);b.uS.Ta(c.name,c);if(null!=b.cH&&""!=c.name)c.Yga(b.cH);else if(""==c.name)for(b.cH=a,a=0;a<b.Fe.length;a++)b.Fe.fa(a).Yga(b.cH);
b.Fe.Ta(c.name,c)}static eaa(a){return b.Fe.Bb(a)?b.Fe.getItem(a):""!=a&&b.Fe.Bb("")?b.Fe.getItem(""):b.hea()}static SAa(){return b.uS.slice()}static clear(){b.Fe=new e.ub;b.uS=new e.ub;b.cH=null;b.tr=new e.ub}static VT(){return b.eaa("")}static hea(){return new h.W.se}static Yza(a,c){return b.tr.Bb(a)&&b.tr.getItem(a).has(c)}static JBa(){return b.tr}static dispose(){b.Fe=null;b.uS=null;b.cH=null;b.tr=null}}b.Fe=new e.ub;b.uS=new e.ub;b.tr=new e.ub;b.cH=null;h.tj=b})(l.oc||(l.oc={}))})(e.model||(e.model=
{}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a=""){this.name="";this.Kb={};this.Rd={thousandsSeparator:" ",decimalSeparator:".",decimalPlaces:-1,maxDecimalPlaces:-1,maxSymbols:20,currencySymbol:"",positiveCurrencyFormat:b.oA.$1,negativeCurrencyFormat:b.Yn["-$1"],negativeNumberFormat:b.kE["-1"],nullValue:"",infinityValue:"Infinity",divideByZeroValue:"Infinity",textAlign:b.textAlign.RIGHT,isPercent:!1,isCount:!1,beautifyFloatingPoint:!0};this.name=a}get Ud(){return this.Kb}get Nf(){return void 0!=this.Kb.thousandsSeparator?
this.Kb.thousandsSeparator:this.Rd.thousandsSeparator}set Nf(a){this.Kb.thousandsSeparator=a}get aD(){return void 0!=this.Kb.decimalSeparator?this.Kb.decimalSeparator:this.Rd.decimalSeparator}set aD(a){this.Kb.decimalSeparator=a}get am(){return void 0!=this.Kb.decimalPlaces?this.Kb.decimalPlaces:this.Rd.decimalPlaces}set am(a){this.Kb.decimalPlaces=a}get mv(){return void 0!=this.Kb.maxDecimalPlaces?this.Kb.maxDecimalPlaces:this.Rd.maxDecimalPlaces}set mv(a){this.Kb.maxDecimalPlaces=a}get Cx(){return void 0!=
this.Kb.maxSymbols?this.Kb.maxSymbols:this.Rd.maxSymbols}set Cx(a){this.Kb.maxSymbols=a}get yd(){return void 0!=this.Kb.currencySymbol?this.Kb.currencySymbol:this.Rd.currencySymbol}set yd(a){this.Kb.currencySymbol=a}get it(){return void 0!=this.Kb.positiveCurrencyFormat?this.Kb.positiveCurrencyFormat:this.Rd.positiveCurrencyFormat}set it(a){this.Kb.positiveCurrencyFormat=a}get $s(){return void 0!=this.Kb.negativeCurrencyFormat?this.Kb.negativeCurrencyFormat:this.Rd.negativeCurrencyFormat}set $s(a){this.Kb.negativeCurrencyFormat=
a}get hA(){return void 0!=this.Kb.negativeNumberFormat?this.Kb.negativeNumberFormat:this.Rd.negativeNumberFormat}set hA(a){this.Kb.negativeNumberFormat=a}get lE(){return void 0!=this.Kb.nullValue?this.Kb.nullValue:this.Rd.nullValue}set lE(a){this.Kb.nullValue=a}get QD(){return void 0!=this.Kb.infinityValue?this.Kb.infinityValue:this.Rd.infinityValue}set QD(a){this.Kb.infinityValue=a}get cD(){return void 0!=this.Kb.divideByZeroValue?this.Kb.divideByZeroValue:this.Rd.divideByZeroValue}set cD(a){this.Kb.divideByZeroValue=
a}get textAlign(){return void 0!=this.Kb.textAlign?this.Kb.textAlign:this.Rd.textAlign}set textAlign(a){this.Kb.textAlign=a}get de(){return void 0!=this.Kb.isPercent?this.Kb.isPercent:this.Rd.isPercent}set de(a){this.Kb.isPercent=a}get xe(){return void 0!=this.Kb.isCount?this.Kb.isCount:this.Rd.isCount}set xe(a){this.Kb.isCount=a}get ou(){return void 0!=this.Kb.beautifyFloatingPoint?this.Kb.beautifyFloatingPoint:this.Rd.beautifyFloatingPoint}set ou(a){this.Kb.beautifyFloatingPoint=a}set D0(a){}get D0(){return 1<
this.yd.length&&"&"==this.yd.charAt(0)&&";"==this.yd.charAt(this.yd.length-1)?1:this.yd.length}lka(){var a;if("%"==this.yd){var c=-1==this.am||this.xe?0:this.am;var d=0<c?"0.":"0";for(a=0;a<c;a++)d+="0";return d+=this.yd}d=""!=this.Nf?"#,##0":"###0";if(!this.xe)if(0<this.am)for(d+=".",a=0;a<this.am;a++)d+="0";else 0>this.am&&(d+=".0#########");""==this.yd||this.xe?""==this.yd&&(d=d+";"+u.bc.w1(d,this.hA)):(a=this.yd,d=1<a.length?this.it==b.oA.$1?"[$"+a+"]\\ "+d+";"+u.bc.wM(d,"[$"+a+"]",this.$s):d+
"\\ [$"+a+"];"+u.bc.wM(d,"[$"+a+"]",this.$s):this.it==b.oA.$1?"\\"+this.yd+d+";"+u.bc.wM(d,this.yd,this.$s):d+"\\"+this.yd+";"+u.bc.wM(d,this.yd,this.$s));return d}Sa(a=!1){var c={};c.name=this.name;if(a)c.thousandsSeparator=this.Nf,c.decimalSeparator=this.aD,c.decimalPlaces=this.am,c.maxDecimalPlaces=this.mv,c.maxSymbols=this.Cx,c.currencySymbol=this.yd,c.positiveCurrencyFormat=this.it,c.negativeCurrencyFormat=this.$s,c.negativeNumberFormat=this.hA,c.nullValue=this.lE,c.infinityValue=this.QD,c.divideByZeroValue=
this.cD,c.textAlign=""!==this.textAlign?this.textAlign:b.textAlign.RIGHT,c.isPercent=this.de,c.isCount=this.xe,c.beautifyFloatingPoint=this.ou;else for(var d in this.Kb)c[d]="textAlign"===d?""===this.textAlign?b.textAlign.RIGHT:this.textAlign:this.Kb[d];return c}static xb(a){var c=new b;null!=a.name&&(c.name=a.name);null!=a.thousandsSeparator&&l.Tb.valid(a.thousandsSeparator)&&(c.Nf=l.Tb.validate(a.thousandsSeparator,!0));null!=a.decimalSeparator&&l.Tb.valid(a.decimalSeparator)&&(c.aD=l.Tb.validate(a.decimalSeparator,
!0));null!=a.decimalPlaces&&-1<=parseInt(a.decimalPlaces)&&(c.am=isNaN(parseInt(a.decimalPlaces))?-1:parseInt(a.decimalPlaces));null!=a.maxDecimalPlaces&&-1<=parseInt(a.maxDecimalPlaces)&&(c.mv=isNaN(parseInt(a.maxDecimalPlaces))?-1:parseInt(a.maxDecimalPlaces));null!=a.maxSymbols&&1<=parseInt(a.maxSymbols)&&(c.Cx=a.maxSymbols);null!=a.currencySymbol&&l.Tb.valid(a.currencySymbol)&&(c.yd=l.Tb.validate(a.currencySymbol,!0));if(null!=a.currencySymbolAlign&&l.Tb.valid(a.currencySymbolAlign)){var d=l.Tb.validate(a.currencySymbolAlign);
d==b.Bca.LEFT?c.it=b.oA.$1:d==b.Bca.RIGHT&&(c.it=b.oA["1$"])}null!=a.positiveCurrencyFormat&&l.Tb.valid(a.positiveCurrencyFormat)&&(c.it=l.Tb.validate(a.positiveCurrencyFormat,!0));null!=a.negativeCurrencyFormat&&l.Tb.valid(a.negativeCurrencyFormat)&&(c.$s=l.Tb.validate(a.negativeCurrencyFormat,!0));null!=a.negativeNumberFormat&&l.Tb.valid(a.negativeNumberFormat)&&(c.hA=l.Tb.validate(a.negativeNumberFormat));null!=a.nullValue&&l.Tb.valid(a.nullValue)&&(c.lE=l.Tb.validate(a.nullValue,!0));null!=a.infinityValue&&
l.Tb.valid(a.infinityValue)&&(c.QD=l.Tb.validate(a.infinityValue,!0));null!=a.divideByZeroValue&&l.Tb.valid(a.divideByZeroValue)&&(c.cD=l.Tb.validate(a.divideByZeroValue,!0));null!=a.textAlign&&l.Tb.valid(a.textAlign)&&(c.textAlign=l.Tb.validate(a.textAlign));null!=a.isPercent&&(c.de=1==a.isPercent);null!=a.isCount&&(c.xe=1==a.isCount);null!=a.beautifyFloatingPoint&&(c.ou=1==a.beautifyFloatingPoint);return c}clone(){var a=new b;a.name=this.name;this.Kb.hasOwnProperty("thousandsSeparator")&&(a.Nf=
this.Nf);this.Kb.hasOwnProperty("decimalSeparator")&&(a.aD=this.aD);this.Kb.hasOwnProperty("decimalPlaces")&&(a.am=this.am);this.Kb.hasOwnProperty("maxDecimalPlaces")&&(a.mv=this.mv);this.Kb.hasOwnProperty("maxSymbols")&&(a.Cx=this.Cx);this.Kb.hasOwnProperty("currencySymbol")&&(a.yd=this.yd);this.Kb.hasOwnProperty("positiveCurrencyFormat")&&(a.it=this.it);this.Kb.hasOwnProperty("negativeCurrencyFormat")&&(a.$s=this.$s);this.Kb.hasOwnProperty("negativeNumberFormat")&&(a.hA=this.hA);this.Kb.hasOwnProperty("nullValue")&&
(a.lE=this.lE);this.Kb.hasOwnProperty("infinityValue")&&(a.QD=this.QD);this.Kb.hasOwnProperty("divideByZeroValue")&&(a.cD=this.cD);this.Kb.hasOwnProperty("textAlign")&&(a.textAlign=this.textAlign);this.Kb.hasOwnProperty("isPercent")&&(a.de=this.de);this.Kb.hasOwnProperty("isCount")&&(a.xe=this.xe);this.Kb.hasOwnProperty("beautifyFloatingPoint")&&(a.ou=this.ou);var c={},d;for(d in this.Rd)c[d]=this.Rd[d];a.Rd=c;return a}Yga(a){for(var c in a)this.Rd[c]=a[c]}}b.Bca={LEFT:"left",RIGHT:"right"};b.Yn=
{"-$1":"-$1","-1$":"-1$","$-1":"$-1","$1-":"$1-","1-$":"1-$","1$-":"1$-","1$":"1$",$1:"$1","($1)":"($1)","(1$)":"(1$)","$(1)":"$(1)","(1)$":"(1)$"};b.oA={$1:"$1","1$":"1$"};b.kE={"-1":"-1","- 1":"- 1","1-":"1-","1 -":"1 -",1:"1","(1)":"(1)"};b.textAlign={LEFT:"left",CENTER:"center",RIGHT:"right"};f.se=b})(h.W||(h.W={}))})(l.oc||(l.oc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static valid(b){return b==f.kg||b==f.Cc||b==f.Pd||b==f.API||b==f.JSON||b==f.ci||b==f.Nq||b==f.EMPTY}static Ec(b){return this.valid(b)&&(b==f.Pd||b==f.Cc||b==f.kg||b==f.API)}static I(b){return b==f.ci?"CSV":b==f.Nq?"OCSV":b==f.JSON?"JSON":b==f.Cc?"Microsoft Analysis Services":b==f.Pd?"Mondrian":b==f.kg?"Elasticsearch":b==f.API?"Flexmonster Custom API":""}}f.Cc="microsoft analysis services";f.Pd="mondrian";f.ci="csv";f.Nq="ocsv";f.JSON="json";f.kg="elasticsearch";
f.API="api";f.EMPTY="";h.ra=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static validate(m){if(e.ka(m))return f.NONE;m=m.toLowerCase();return 0<=f.types.indexOf(m)?m:f.NONE}static yfa(m,n){switch(m){case h.ib.$c:return c.ih(n);case h.ib.jb:return b.ih(n);case h.ib.Ua:return d.ih(n)}return!1}}f.NONE="none";f.fl="label";f.Ua="date";f.jb="number";f.wo="value";f.ec="time";f.types=[f.NONE,f.fl,f.Ua,f.jb,f.wo,f.ec];h.tb=f;class b{static ih(m){return e.v(m)?!1:0<=b.Gq.indexOf(m.toLowerCase())}}b.EQUAL="equal";b.Tf="not_equal";b.GREATER=
"greater";b.dl="greater_equal";b.LESS="less";b.gl="less_equal";b.mh="between";b.Tg="not_between";b.ui=[b.EQUAL,b.Tf,b.GREATER,b.dl,b.LESS,b.gl];b.Uf=[b.mh,b.Tg];b.Gq=[b.EQUAL,b.Tf,b.GREATER,b.dl,b.LESS,b.gl,b.mh,b.Tg];h.Ug=b;class a extends b{}h.il=a;class c{static ih(m){return e.v(m)?!1:0<=c.Gq.indexOf(m.toLowerCase())}}c.EQUAL="equal";c.Tf="not_equal";c.kF="begin";c.rB="not_begin";c.eB="end";c.tB="not_end";c.ho="contain";c.sB="not_contain";c.GREATER="greater";c.dl="greater_equal";c.LESS="less";
c.gl="less_equal";c.mh="between";c.Tg="not_between";c.ui=[c.EQUAL,c.Tf,c.kF,c.rB,c.eB,c.tB,c.ho,c.sB,c.GREATER,c.dl,c.LESS,c.gl];c.Uf=[c.mh,c.Tg];c.Gq=[c.EQUAL,c.Tf,c.kF,c.rB,c.eB,c.tB,c.ho,c.sB,c.GREATER,c.dl,c.LESS,c.gl,c.mh,c.Tg];h.Eb=c;class d{static ih(m){return e.v(m)?!1:0<=d.Gq.indexOf(m.toLowerCase())}}d.EQUAL="equal";d.Tf="not_equal";d.iF="before";d.jF="before_equal";d.fF="after";d.gF="after_equal";d.mh="between";d.Tg="not_between";d.UP="last";d.hP="current";d.oQ="next";d.ui=[d.EQUAL,d.Tf,
d.iF,d.jF,d.fF,d.gF];d.Uf=[d.mh,d.Tg];d.zy=[d.UP,d.hP,d.oQ];d.Gq=[d.EQUAL,d.Tf,d.iF,d.jF,d.fF,d.gF,d.mh,d.Tg,d.UP,d.hP,d.oQ];h.cc=d;class g{static ih(m){return e.v(m)?!1:0<=g.types.indexOf(m.toLowerCase())}}g.pn="day";g.sK="week";g.nh="month";g.Nt="quarter";g.Sl="year";g.types=[g.pn,g.sK,g.nh,g.Nt,g.Sl];h.cB=g;class k extends b{static ih(m){return e.v(m)?!1:0<=k.Gq.indexOf(m.toLowerCase())}}k.Rj="top";k.pi="bottom";k.ui=[k.Rj,k.pi,k.EQUAL,k.Tf,k.GREATER,k.dl,k.LESS,k.gl];k.Uf=[k.mh,k.Tg];k.Gq=[k.Rj,
k.pi,k.EQUAL,k.Tf,k.GREATER,k.dl,k.LESS,k.gl,k.mh,k.Tg];h.Wb=k})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){class f{static ih(b){return b==f.ed||b==f.hc||b==f.Nc}static cU(b="",a=!1,c=!1){return c?b==l.i.Ba.hc?a?l.i.Ba.ed:l.i.Ba.Nc:b==l.i.Ba.Nc?a?l.i.Ba.hc:l.i.Ba.ed:a?l.i.Ba.Nc:l.i.Ba.hc:b==l.i.Ba.Nc?l.i.Ba.hc:l.i.Ba.Nc}}f.ed="unsorted";f.hc="asc";f.Nc="desc";f.bqa="numericRange";h.Ba=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){}}f.Ia="rows";f.Oa="columns";f.Lt="pages";h.ha=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));var pa=q||(q={}),qa=pa.u||(pa.u={}),ra=qa.i||(qa.i={});class ta{}ta.qB=1;ta.eQ=2;ra.dB=ta;
(function(e){(function(l){(function(h){class f{static nD(b){var a=f.Hv;switch(b){case h.input.Gf.N8.eQ:a=f.yp;break;case h.input.Gf.N8.qB:a=f.Ua}return a}static A1(b){return 0<=h.Ra.jM.indexOf(b)?f.yp:"date"==b?f.Ua:f.Hv}static DT(b){var a=f.Hv;switch(b){case h.input.sa.jb:case h.input.sa.ec:a=f.yp;break;case h.input.sa.oj:case h.input.sa.Mq:case h.input.sa.wp:case h.input.sa.Mc:case h.input.sa.Ua:a=f.Ua}return a}static FA(b){var a=h.input.sa.$c;switch(b){case f.yp:a=h.input.sa.jb;break;case f.Ua:a=
h.input.sa.Ua}return a}}f.Hv=0;f.Ua=1;f.yp=2;f.jM=["keyword","date","boolean"];h.Ic=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static nD(b){switch(b){case h.input.Gf.oB.$c:case h.input.Gf.oB.$ra:return f.$c;case h.input.Gf.oB.rp:return f.rp;case h.input.Gf.oB.Ua:return f.Ua;case h.input.Gf.oB.Mc:return f.Mc;case h.input.Gf.oB.Bra:return f.ec;case h.input.Gf.oB.wc:return f.wc}return f.jb}static kAa(b){b=b.toLowerCase();switch(b){case "string":return f.Ua;case "integer":case "number":case "double":return f.jb;default:return f.jb}}static hAa(b){switch(b){case 13:return f.ec;case 15:return f.Mc;
case 3:return f.rp;case 12:return f.jb}return f.wc}static jAa(b){var a=f.wc;switch(b){case "number":a=f.jb;break;case "string":a=f.$c;break;case "boolean":a=f.rp;break;case "date":a=f.Ua;break;case "timestamp":a=f.ec;break;case "count":a=f.wc}return a}static A1(b){return 0<=h.Ic.jM.indexOf(b)?f.wc:f.jb}static FA(b){switch(b){case f.$c:return h.input.sa.$c;case f.rp:return h.input.sa.rp;case f.Ua:return h.input.sa.Ua;case f.Mc:return h.input.sa.Mc;case f.ec:return h.input.sa.ec;case f.wc:return h.input.sa.$c}return h.input.sa.jb}}
f.jb=1;f.$c=2;f.rp=3;f.Ua=4;f.ec=5;f.Mc=6;f.wc=7;f.jM="long integer short byte double float half_float scaled_float".split(" ");h.Ra=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static qN(b){return b===f.jb||b===f.Sl||b===f.pn||b===f.MP||b===f.lQ||b===f.HY||b===f.x9||b===f.Mc||b===f.ec||b===f.Ua||b===f.oj}static GDa(b){return b===f.Ua||b===f.Mc||b===f.oj}static iAa(b){switch(b){case 2:case 4:case 5:case 6:case 14:case 16:case 17:case 18:case 19:case 20:case 21:return f.jb}return f.$c}static nD(b,a=!1,c=0){if(a)return f.iAa(c);switch(b){case h.input.Gf.el.Roa:return f.Qka;case h.input.Gf.el.Soa:case 4178:case 4561:case 4562:return f.jb;
case h.input.Gf.el.Toa:case h.input.Gf.el.epa:return f.ec;case h.input.Gf.el.Xoa:case h.input.Gf.el.Woa:case h.input.Gf.el.Yoa:return f.pn;case h.input.Gf.el.Zoa:case 4385:case 4328:case 4329:return f.gY;case h.input.Gf.el.$oa:return f.MP;case h.input.Gf.el.apa:return f.lQ;case h.input.Gf.el.bpa:return f.nh;case h.input.Gf.el.cpa:case 4336:case 4337:case 4578:return f.Nt;case h.input.Gf.el.dpa:return f.HY;case h.input.Gf.el.fpa:case 4345:case h.input.Gf.el.gpa:case 4344:return f.sK;case h.input.Gf.el.hpa:case 4759:case 4345:case 4346:return f.Sl;
case h.input.Gf.el.Voa:case h.input.Gf.el.Uoa:case 4657:case 4659:case 4292:case 4294:return f.Ua}return f.$c}static FA(b){switch(b){case f.jb:case f.MP:case f.lQ:case f.HY:case f.x9:return h.input.sa.jb;case f.Ua:case f.Sl:case f.Sl:case f.pn:return h.input.sa.Ua;case f.rp:return h.input.sa.rp;case f.nh:return h.input.sa.nh;case f.un:return h.input.sa.un;case f.ec:return h.input.sa.ec;case f.Mc:return h.input.sa.Mc;case f.oj:return h.input.sa.oj;default:return h.input.sa.$c}}static DT(b){switch(b){case h.input.sa.$c:return f.$c;
case h.input.sa.jb:return f.jb;case h.input.sa.rp:return f.rp;case h.input.sa.nh:return f.nh;case h.input.sa.un:return f.un;case h.input.sa.Ua:case h.input.sa.Mq:case h.input.sa.wp:return f.Ua;case h.input.sa.oj:return f.oj;case h.input.sa.ec:return f.ec;case h.input.sa.Mc:return f.Mc;default:return f.$c}}}f.Qka=0;f.$c=1;f.jb=2;f.rp=3;f.Ua=4;f.ec=5;f.Sl=6;f.gY=7;f.Nt=8;f.nh=9;f.sK=10;f.un=11;f.pn=12;f.MP=13;f.lQ=14;f.HY=15;f.x9=16;f.Mc=17;f.oj=18;h.ib=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){e=e.u||(e.u={});e=e.i||(e.i={});e=e.input||(e.input={});e=e.Gf||(e.Gf={});class l{}l.qB=1;l.eQ=2;e.N8=l})(q||(q={}));(function(e){e=e.u||(e.u={});e=e.i||(e.i={});e=e.input||(e.input={});e=e.Gf||(e.Gf={});class l{}l.jb=1;l.$c=2;l.rp=3;l.Ua=4;l.$ra=5;l.Bra=6;l.wc=7;l.Mc=8;e.oB=l})(q||(q={}));
(function(e){e=e.u||(e.u={});e=e.i||(e.i={});e=e.input||(e.input={});e=e.Gf||(e.Gf={});class l{}l.Roa=1;l.Soa=2;l.Toa=4;l.Voa=516;l.Zoa=36;l.$oa=772;l.apa=1028;l.bpa=132;l.cpa=68;l.dpa=2052;l.epa=4100;l.fpa=260;l.hpa=20;l.Uoa=4289;l.Woa=4296;l.Xoa=4301;l.Yoa=4302;l.gpa=4759;e.el=l})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{static valid(a){return-1<b.rL.indexOf(a)}static A6(a){return""===a?b.$c:"number"!=typeof a&&isNaN(Number(a))?e.P.HU(a)?e.model.C.F.$L:b.$c:b.jb}static fAa(a){a=a.trim();var c=b.$c;"+"==a.charAt(0)?c=b.$c:"t+"==a.substr(0,2)?c=b.ec:"dt+"==a.substr(0,3)?c=b.Mc:"n+"==a.substr(0,2)?c=b.jb:"-"==a.charAt(0)?c=b.jb:"ds+"==a.substr(0,3)?c=b.oj:"d+"==a.substr(0,2)?c=b.Ua:"m+"==a.substr(0,2)?c=b.nh:"w+"==a.substr(0,2)?c=b.un:"D+"==a.substr(0,2)?c=
b.Mq:"D4+"==a.substr(0,3)?c=b.wp:"id+"==a.substr(0,3)&&(c=b.ty);return c}}b.jb="number";b.$c="string";b.rp="boolean";b.Sf="level";b.nh="month";b.un="weekday";b.Ua="date";b.oj="date string";b.Mq="year/month/day";b.wp="year/quarter/month/day";b.ec="time";b.Mc="datetime";b.ty="id";b.J7="delete";b.M8="hidden";b.NF="property";b.iJ="any";b.rL="number;string;boolean;level;month;weekday;date;date string;year/month/day;year/quarter/month/day;time;datetime;id;delete;hidden;property;array;any".split(";");f.sa=
b})(h.input||(h.input={}))})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static get hJ(){return f.QA.concat(f.RA)}static get bla(){0===f.eZ.length&&(f.eZ=f.Nka.concat(f.RA));return f.eZ}static get Zka(){0===f.dZ.length&&(f.dZ=f.Mka);return f.dZ}static get S6(){0===f.cZ.length&&(f.cZ=[f.NONE].concat(f.RA));return f.cZ}static HG(b){return b===f.Sq?e.model.B.j.d$:b===f.wc?e.model.B.j.w7:b===f.pj||b===f.oP?e.model.B.j.Ama:b===f.Hq?e.model.B.j.T6:b===f.Pv?e.model.B.j.jpa:b===f.Uv?e.model.B.j.gra:b===f.Vv?e.model.B.j.ira:b===f.Mt?
e.model.B.j.zqa:b===f.MIN?e.model.B.j.Opa:b===f.MAX?e.model.B.j.Poa:b===f.cs?e.model.B.j.lqa:b===f.Cp||b===f.rQ?e.model.B.j.mqa:b===f.Rq?e.model.B.j.xqa:b===f.Pq?e.model.B.j.tqa:b===f.Qq?e.model.B.j.vqa:b===f.Si?e.model.B.j.ooa:b===f.ko||b===f.nP?e.model.B.j.wma:b===f.qn?e.model.B.j.yma:b===f.qo||b===f.sQ?e.model.B.j.oqa:b===f.sn?e.model.B.j.qqa:b===f.tn||b===f.wQ?e.model.B.j.Mqa:b===f.so?e.model.B.j.Oqa:b===f.NONE?e.model.B.j.Zpa:b}static G_(b=null){var a=[];b=b?b:f.hJ;for(var c=0;c<b.length;c++)a.push(f.HG(b[c]));
return a}static sba(b=null){var a=[];b=b?b:f.hJ;for(var c=0;c<b.length;c++)b[c]===f.Sq?a.push(e.model.B.j.oK):b[c]===f.wc?a.push(e.model.B.j.fP):b[c]===f.pj||b[c]===f.oP?a.push(e.model.B.j.pP):b[c]===f.Hq?a.push(e.model.B.j.ZO):b[c]===f.Pv?a.push(e.model.B.j.nY):b[c]===f.Uv?a.push(e.model.B.j.CQ):b[c]===f.Vv?a.push(e.model.B.j.DQ):b[c]===f.Mt?a.push(e.model.B.j.tQ):b[c]===f.MIN?a.push(e.model.B.j.mQ):b[c]===f.MAX?a.push(e.model.B.j.dQ):b[c]===f.cs?a.push(e.model.B.j.iK):b[c]===f.Cp||b[c]===f.rQ?a.push(e.model.B.j.cK):
b[c]===f.Rq?a.push(e.model.B.j.hK):b[c]===f.Pq?a.push(e.model.B.j.fK):b[c]===f.Qq?a.push(e.model.B.j.gK):b[c]===f.Si?a.push(e.model.B.j.QJ):b[c]===f.ko||b[c]===f.nP?a.push(e.model.B.j.wJ):b[c]===f.qn?a.push(e.model.B.j.xJ):b[c]===f.qo||b[c]===f.sQ?a.push(e.model.B.j.dK):b[c]===f.sn?a.push(e.model.B.j.eK):b[c]===f.tn||b[c]===f.wQ?a.push(e.model.B.j.vQ):b[c]===f.so?a.push(e.model.B.j.xQ):b[c]===f.NONE?a.push("{0}"):-1<f.QA.indexOf(b[c])&&a.push(`{0} (${b[c]})`);return a}static MA(b){return-1!==f.hJ.indexOf(b)||
b===f.NONE}static dNa(b){return-1!==f.S6.indexOf(b)}static dF(b){return-1!==f.Kka.indexOf(b)||b===f.NONE}static pp(b){return-1!==f.Lka.indexOf(b)||b===f.NONE}static xe(b){return-1!==f.Oka.indexOf(b)}static de(b){return-1!==f.Pka.indexOf(b)}static nN(b){return b===f.ko||b===f.qn||b===f.qo||b===f.sn}static uN(b){return b===f.tn||b===f.so}static pz(b){return b===f.oP||b===f.rQ||b===f.nP||b===f.sQ||b===f.wQ}static Dz(b){switch(b){case f.oP:return f.pj;case f.rQ:return f.Cp;case f.nP:return f.ko;case f.sQ:return f.qo;
case f.wQ:return f.tn;default:return""}}static BU(b){return-1!==f.QA.indexOf(b)||b===f.NONE}}f.Sq="sum";f.wc="count";f.pj="distinctcount";f.oP="distinct count";f.Hq="average";f.Pv="median";f.Uv="stdevp";f.Vv="stdevs";f.cs="percent";f.Cp="percentofcolumn";f.Rq="percentofrow";f.Pq="percentofparentcolumntotal";f.Qq="percentofparentrowtotal";f.rQ="percent of column";f.Mt="product";f.Si="index";f.tn="runningtotalsofcolumn";f.so="runningtotalsofrow";f.wQ="runningtotals";f.MIN="min";f.MAX="max";f.NONE="none";
f.ko="differenceofcolumn";f.qn="differenceofrow";f.nP="difference";f.qo="%differenceofcolumn";f.sn="%differenceofrow";f.sQ="%difference";f.QA=[f.Sq,f.wc,f.pj,f.Hq,f.Pv,f.Mt,f.MIN,f.MAX,f.Uv,f.Vv];f.RA=[f.cs,f.Cp,f.Rq,f.Pq,f.Qq,f.Si,f.ko,f.qn,f.qo,f.sn,f.tn,f.so];f.iP=[];f.Nka=[f.wc,f.pj];f.eZ=[];f.Mka=[f.MAX,f.MIN,f.wc,f.pj];f.dZ=[];f.cZ=[];f.$ka=[f.Sq,f.wc,f.pj,f.Hq,f.MIN,f.MAX];f.ala=[f.wc,f.pj];f.Oka=[f.wc,f.pj];f.Pka=[f.cs,f.Cp,f.Rq,f.Pq,f.Qq,f.qo,f.sn];f.Kka=[f.Sq,f.Hq,f.Pv,f.Mt,f.MIN,f.MAX];
f.Lka=[f.Sq,f.Hq,f.Pv,f.Mt,f.MIN,f.MAX,f.Uv,f.Vv,f.ko,f.qn,f.tn,f.so];h.ea=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));var ua=q||(q={}),wa=ua.u||(ua.u={}),xa=wa.i||(wa.i={});class ya{}ya.VO="+";ya.EQ="-";ya.nQ="*";ya.yJ="/";ya.xY="^";ya.LESS="<";ya.GREATER=">";ya.EQUAL="=";ya.Qma="==";ya.Tf="!=";ya.X8="<=";ya.I8=">=";ya.L9="or";ya.L6="and";ya.NP="if";ya.oX="abs";ya.EY="round";ya.MIN="min";ya.MAX="max";ya.gla="isnan";ya.aqa="!isnan";ya.wo="value";ya.OQ="updatedifference";ya.PQ="updatepercent";
xa.rc=ya;var za=q||(q={}),Aa=za.u||(za.u={}),Ba=Aa.i||(Aa.i={});class Ca{}Ca.to="select";Ca.xF="expand";Ca.m7="collapse";Ca.sP="drillUp";Ca.Iv="drillDown";Ca.rP="drillDownTo";Ca.zJ="drillThrough";Ca.BP="filter";Ca.GY="search";Ba.Md=Ca;var Da=q||(q={}),Ea=Da.u||(Da.u={}),Fa=Ea.i||(Ea.i={});class Ga{}Ga.qP=Number.NEGATIVE_INFINITY;Fa.tP=Ga;
(function(e){(function(l){(function(h){class f{constructor(){this.Kl=()=>this.et();this.Oj=()=>this.uq()}cFa(b,a,c){try{this.dispose(),this.Cb=c,this.Nw=this.Wj=0,this.Bx=u.Gy.RH(b),this.BO(this.Bx,a)}catch(d){this.Rb(d)}}Br(){e.Ca(!1);let b;try{b=JSON.parse(this.pa.response)}catch(a){b=null}null!=this.Cb&&(this.Cb(b),this.dispose())}zGa(){e.Ca(!0,e.model.B.j.tY,"")}bt(b){const a=b.data;if(404==a.target.status)this.Rb(b);else if(!e.v(this.pa))try{const d=this.pa.response;if(null!=d&&0!=d.length&&
(this.Wj!=a.loaded||this.Nw!=d.length)){this.Wj=a.loaded;this.Nw=d.length;var c=0==a.total?e.P.bind(e.model.B.j.Am,u.bc.ah(a.loaded)):e.P.bind(e.model.B.j.JF,u.bc.ah(a.loaded),u.bc.ah(a.total),(a.loaded/a.total*100).toFixed(0));e.Ca(!0,e.model.B.j.tY,c)}}catch(d){console.error(d.stack),this.Rb(d)}}Rb(){e.Ca(!1);null!=this.Cb&&(this.Cb(null),this.dispose())}BO(b,a){this.timer=new u.Pt(100,1E5);this.timer.N(u.xf.Ol,this.Kl);this.timer.N(u.xf.Pl,this.Oj);this.timer.start();var c=new z.tk;c.dataType=
z.bB.DB;c.N(w.ia.Qc,()=>this.Br());c.N(w.ia.ZA,()=>this.zGa());c.N(w.ia.te,d=>this.bt(d));c.N(w.ia.xa,d=>this.Rb(d));c.$h(a);c.load(b);this.pa=c}et(){0<this.Wj?this.yg():null!=this.timer&&this.timer.Gl&&e.Ca(!0,e.model.B.j.tY,e.P.bind(e.model.B.j.Jt,u.bc.format(this.timer.Kw/10,new e.model.oc.W.se,!1,!1,1)))}uq(){this.timer.Gl&&this.yg()}yg(){this.timer&&this.timer.Gl&&(this.timer.stop(),this.timer.rb(u.xf.Ol,this.Kl),this.timer.rb(u.xf.Pl,this.Oj))}dispose(){this.yg();null!=this.pa&&(this.pa.Vd(),
this.pa.dispose(),this.pa=null);this.Cb=null}}h.Rpa=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(b){b.JOa="visible";b.COa="caption";b.TYPE="type";b.hY="hierarchy";b.Sf="level";b.HOa="parent";b.AOa="aggregations";b.EOa="format";b.FOa="interval";b.BOa="calendar_interval";b.DOa="fixed_interval";b.IOa="time_zone";b.GOa="min_doc_count";b.SOa="isMeasure";b.KOa="filters";b.lQa="showEmptyValues";b.bQa="preloadMemberCaptions"})(h.Spa||(h.Spa={}));class f{constructor(b=null){this.Bx=this.mapping=null;this.Gu={};this.rV=null;"string"==typeof b?this.Bx=b:
(this.mapping=b,this.lX());this.Gu.filters=!0}lX(){for(var b in this.mapping)if("aggregations"===b)this.Lp=this.mapping[b],delete this.mapping[b];else if(!e.v(this.mapping[b])&&"object"!==typeof this.mapping[b]){let a=l.i.input.sa.A6(this.mapping[b]);this.mapping[b]={uniqueName:b,caption:b,type:a}}}La(b,a,c=null){b=u.Hc.resolve(b,this.mapping);var d=null;e.v(b)||(d=b[a]);e.v(d)&&(d=c);e.v(d)&&(d=this.Gu[a]);return d}XH(b,a){b=u.Hc.resolve(b,this.mapping);return e.v(b)||e.v(b[a])?!1:!0}oi(b,a,c){var d=
u.Hc.resolve(b,this.mapping);e.v(d)&&(this.mapping[b]={},d=this.mapping[b]);e.v(d)||(d[a]=c)}Sa(b=!1){if(b&&this.$o)return this.Bx;b&&this.Lp&&(this.mapping.aggregations=this.Lp);return this.mapping}uFa(b){switch(b){case l.i.ra.API:b=new l.external.jc.XO;break;case l.i.ra.kg:b=new l.external.Ue.wP;break;case l.i.ra.Pd:case l.i.ra.Cc:new l.external.Hb.pQ;default:b=new f}return b}clone(b=""){b=this.uFa(b);b.mapping=u.Hc.zj(this.mapping);b.Bx=this.Bx;b.Lp=this.Lp;return b}isEqual(b){return JSON.stringify(this.Sa(!0))===
JSON.stringify(b.Sa(!0))&&b.$o||JSON.stringify(this.mapping)===JSON.stringify(b.Sa())}get kb(){return!this.Lfa&&e.v(this.Lp)}get Lfa(){return!e.v(this.mapping)&&0<Object.keys(this.mapping).length}get $o(){return null!==this.Bx&&0<this.Bx.length}dFa(b,a){this.gf=a;this.$o&&this.kb?(this.rV=new h.Rpa,this.rV.cFa(this.Bx,b,c=>this.JHa(c))):(this.gf(),this.gf=null)}JHa(b){null!==b&&(this.mapping=b,this.lX());this.gf();this.gf=null;this.rV.dispose();this.rV=null}static TU(b){if(e.v(b))return!1;if(!e.v(b.aggregations))return!0;
for(var a in b)if(!e.v(b[a])&&(Array.isArray(b[a])&&f.TU(b[a])||b[a].hasOwnProperty("type")||b[a].hasOwnProperty("caption")||b[a].hasOwnProperty("hierarchy")||b[a].hasOwnProperty("level")||b[a].hasOwnProperty("parent")||b[a].hasOwnProperty("dimensionUniqueName")||b[a].hasOwnProperty("dimensionCaption")||b[a].hasOwnProperty("folder")||b[a].hasOwnProperty("aggregations")||b[a].hasOwnProperty("visible")))return!0;return!1}L3(b,a){const c=u.Hc.resolve(b,this.mapping);e.v(a)&&(a={});if(Array.isArray(c)){let d=
[],g=[],k=[],m;for(let n=0;n<c.length;n++)m=this.xaa(c[n],a),e.ka(m.uniqueName)&&(m.uniqueName=b),e.ka(m.caption)&&(m.caption=b),-1!==g.indexOf(m.uniqueName)&&(m.uniqueName=`${b}.${n}`),-1!==k.indexOf(m.caption)&&(m.caption=`${m.caption} ${n}`),g.push(m.uniqueName),k.push(m.caption),d.push(m);return d}return this.xaa(c,a)}xaa(b,a){a=u.Hc.zj(a);for(var c in b)a[c]=b[c],"aggregations"===c&&(a.availableAggregations=b[c]);return a}}h.Bm=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.tc=null;this.withCredentials=!1;this.yo=l.i.ra.EMPTY;this.yEa=!1}get Aa(){return this.yo}set Aa(b){this.yo=b.toLowerCase()}get Ec(){return l.i.ra.Ec(this.yo)}set Ec(b){}get rN(){return!1}set rN(b){}isEqual(b){return b&&this.Aa==b.Aa&&this.withCredentials==b.withCredentials}get kb(){return this.yo==l.i.ra.EMPTY}set kb(b){}get mN(){return this.yo===l.i.ra.ci&&"this"===this.filename}get cv(){return!1}set cv(b){}get aI(){return!0}get KU(){return!0}get JU(){return!0}static xb(b){if(void 0==
b||e.model.Ea.xc.bk()==e.model.Ea.xp.Rl)return new h.gB;e.v(b.connectionInfo)||(b=b.connectionInfo);b instanceof f||b instanceof l.local.csv.gP||b instanceof l.local.csv.LF||b instanceof l.local.json.RP||b instanceof l.external.Hb.Bp||b instanceof l.external.Ue.T7||b instanceof l.external.jc.N6||(b=f.um(b));e.v(b.dataSourceType)||(b.dataSourceType=b.dataSourceType.toLowerCase());b.dataSourceType&&-1<b.dataSourceType.indexOf("pentaho")&&(b.dataSourceType=l.i.ra.Pd);"msolap"==b.dataSourceType&&(b.dataSourceType=
l.i.ra.Cc);!l.i.ra.valid(b.dataSourceType)&&b.proxyUrl&&(b.dataSourceType=l.i.ra.Cc);if("es"==b.dataSourceType||"elastic"==b.dataSourceType)b.dataSourceType=l.i.ra.kg;!l.i.ra.valid(b.dataSourceType)&&(b.host||b.node)&&b.index&&(b.dataSourceType=l.i.ra.kg);!l.i.ra.valid(b.dataSourceType)&&(b.url||b.discover&&b.select)&&(b.dataSourceType=l.i.ra.API);if(!e.v(b.filename)&&e.v(b.dataSourceType)){var a=b.filename.split("?")[0].toLowerCase();b.dataSourceType=".csv"==a.substr(-4)?l.i.ra.ci:".ocsv"==a.substr(-5)?
l.i.ra.Nq:".json"==a.substr(-5)||".js"==a.substr(-3)?l.i.ra.JSON:l.i.ra.ci}!e.v(b.data)&&Array.isArray(b.data)&&(b.dataSourceType=l.i.ra.JSON,b.data=b.data.slice());if(b.dataSourceType==l.i.ra.kg&&e.model.Ea.xc.bk()!=e.model.Ea.xp.kg&&e.model.Ea.xc.bk()!=e.model.Ea.xp.vP)return e.model.Ea.xc.bk()!=e.model.Ea.xp.Rl&&e.Va(e.model.Ea.ca.I(e.model.Ea.ca.nza),e.model.Ea.ca.I(e.model.Ea.ca.gE)),new h.gB;if(b.dataSourceType==l.i.ra.Cc&&e.model.Ea.xc.bk()!=e.model.Ea.xp.Rka&&e.model.Ea.xc.bk()!=e.model.Ea.xp.vP)return e.model.Ea.xc.bk()!=
e.model.Ea.xp.Rl&&e.Va(e.model.Ea.ca.I(e.model.Ea.ca.UFa),e.model.Ea.ca.I(e.model.Ea.ca.gE)),new h.gB;if(b.dataSourceType==l.i.ra.Pd&&e.model.Ea.xc.bk()!=e.model.Ea.xp.Pd&&e.model.Ea.xc.bk()!=e.model.Ea.xp.vP)return e.model.Ea.xc.bk()!=e.model.Ea.xp.Rl&&e.Va(e.model.Ea.ca.I(e.model.Ea.ca.MFa),e.model.Ea.ca.I(e.model.Ea.ca.gE)),new h.gB;if((b.dataSourceType==l.i.ra.ci||b.dataSourceType==l.i.ra.Nq||b.dataSourceType==l.i.ra.JSON)&&e.model.Ea.xc.bk()!=e.model.Ea.xp.cma&&e.model.Ea.xc.bk()!=e.model.Ea.xp.vP)return e.model.Ea.xc.bk()!=
e.model.Ea.xp.Rl&&e.Va(e.model.Ea.ca.I(e.model.Ea.ca.ZFa),e.model.Ea.ca.I(e.model.Ea.ca.gE)),new h.gB;switch(b.dataSourceType){case l.i.ra.Nq:return l.local.csv.LF.xb(b);case l.i.ra.ci:return l.local.csv.gP.xb(b);case l.i.ra.JSON:return l.local.json.RP.xb(b);case l.i.ra.Cc:case l.i.ra.Pd:return l.external.Hb.Bp.xb(b);case l.i.ra.kg:return l.external.Ue.T7.xb(b);case l.i.ra.API:return l.external.jc.N6.xb(b);default:return new h.gB}}static um(b){var a={};e.ka(b.type)||(a.dataSourceType=b.type);e.ka(b.dataSourceType)||
(a.dataSourceType=b.dataSourceType);e.ka(b.filename)||(a.filename=b.filename);e.ka(b.requestHeader)||(a.requestHeaders=b.requestHeader);e.ka(b.requestHeaders)||(a.requestHeaders=b.requestHeaders);e.ka(b.browseForFile)||(a.browseForFile=b.browseForFile);e.ka(b.requestPermission)||(a.requestPermission=b.requestPermission);e.ka(b.thousandSeparator)||(a.thousandsSeparator=b.thousandSeparator);e.ka(b.thousandsSeparator)||(a.thousandsSeparator=b.thousandsSeparator);e.ka(b.fieldSeparator)||(a.fieldSeparator=
b.fieldSeparator);e.ka(b.recordsetDelimiter)||(a.recordsetDelimiter=b.recordsetDelimiter);e.ka(b.ignoreQuotedLineBreaks)||(a.ignoreQuotedLineBreaks=b.ignoreQuotedLineBreaks);e.ka(b.embedded)||(a.embedded=b.embedded);e.ka(b.embeddedDataOffset)||(a.embeddedDataOffset=b.embeddedDataOffset);e.ka(b.embeddedDataToLoad)||(a.embeddedDataToLoad=b.embeddedDataToLoad);e.ka(b.isOCSV2Data)||(a.isOCSV2Data=b.isOCSV2Data);e.v(b.data)||(a.data=b.data);e.ka(b.checkUpdates)||(a.checkUpdates=b.checkUpdates);e.ka(b.proxyUrl)||
(a.proxyUrl=b.proxyUrl);e.ka(b.dataSourceInfo)||(a.dataSourceInfo=b.dataSourceInfo);e.ka(b.catalog)||(a.catalog=b.catalog);e.ka(b.cube)||(a.cube=b.cube);e.ka(b.subquery)||(a.subquery=b.subquery);e.ka(b.binary)||(a.binary=b.binary);e.ka(b.withCredentials)||(a.withCredentials=b.withCredentials);e.ka(b.roles)||(a.roles=b.roles);e.ka(b.localeIdentifier)||(a.localeIdentifier=b.localeIdentifier);e.ka(b.effectiveUserName)||(a.effectiveUserName=b.effectiveUserName);e.ka(b.customData)||(a.customData=b.customData);
e.ka(b.url)||(a.url=b.url);e.ka(b.handshakingUrl)||(a.handshakingUrl=b.handshakingUrl);e.ka(b.dimensionsUrl)||(a.dimensionsUrl=b.dimensionsUrl);e.ka(b.hierarchiesUrl)||(a.hierarchiesUrl=b.hierarchiesUrl);e.ka(b.levelsUrl)||(a.levelsUrl=b.levelsUrl);e.ka(b.measuresUrl)||(a.measuresUrl=b.measuresUrl);e.ka(b.membersUrl)||(a.membersUrl=b.membersUrl);e.ka(b.dataUrl)||(a.dataUrl=b.dataUrl);e.ka(b.drillThroughUrl)||(a.drillThroughUrl=b.drillThroughUrl);e.ka(b.host)||(a.host=b.host);e.ka(b.node)||(a.node=
b.node);e.ka(b.connection)||(a.connection=b.connection);e.ka(b.index)||(a.index=b.index);e.ka(b.mapping)||(a.mapping=b.mapping);e.ka(b.singleEndpoint)||(a.singleEndpoint=b.singleEndpoint);e.ka(b.concurrentRequests)||(a.concurrentRequests=b.concurrentRequests);e.ka(b.useSockets)||(a.useSockets=b.useSockets);e.ka(b.useStreamLoader)||(a.useStreamLoader=b.useStreamLoader);e.ka(b.useGranularityNamesForDateFilters)||(a.useGranularityNamesForDateFilters=b.useGranularityNamesForDateFilters);e.ka(b.dataRootPath)||
(a.dataRootPath=b.dataRootPath);e.ka(b.hash)||(a.hash=b.hash);e.ka(b.username)||(a.username=b.username);e.ka(b.password)||(a.password=b.password);e.ka(b.dataSource)||(b=b.dataSource,e.ka(b.type)||(a.dataSourceType=b.type),e.ka(b.dataSourceType)||(a.dataSourceType=b.dataSourceType),e.ka(b.filename)||(a.filename=b.filename),e.ka(b.requestHeader)||(a.requestHeaders=b.requestHeader),e.ka(b.requestHeaders)||(a.requestHeaders=b.requestHeaders),e.ka(b.browseForFile)||(a.browseForFile=b.browseForFile),e.ka(b.requestPermission)||
(a.requestPermission=b.requestPermission),e.ka(b.fieldSeparator)||(a.fieldSeparator=b.fieldSeparator),e.ka(b.thousandSeparator)||(a.thousandsSeparator=b.thousandSeparator),e.ka(b.thousandsSeparator)||(a.thousandsSeparator=b.thousandsSeparator),e.ka(b.recordsetDelimiter)||(a.recordsetDelimiter=b.recordsetDelimiter),e.ka(b.ignoreQuotedLineBreaks)||(a.ignoreQuotedLineBreaks=b.ignoreQuotedLineBreaks),e.ka(b.embedded)||(a.embedded=b.embedded),e.ka(b.embeddedDataOffset)||(a.embeddedDataOffset=b.embeddedDataOffset),
e.ka(b.embeddedDataToLoad)||(a.embeddedDataToLoad=b.embeddedDataToLoad),e.ka(b.isOCSV2Data)||(a.isOCSV2Data=b.isOCSV2Data),e.v(b.data)||(a.data=b.data),e.ka(b.proxyUrl)||(a.proxyUrl=b.proxyUrl),e.ka(b.dataSourceInfo)||(a.dataSourceInfo=b.dataSourceInfo),e.ka(b.catalog)||(a.catalog=b.catalog),e.ka(b.cube)||(a.cube=b.cube),e.ka(b.subquery)||(a.subquery=b.subquery),e.ka(b.binary)||(a.binary=b.binary),e.ka(b.withCredentials)||(a.withCredentials=b.withCredentials),e.ka(b.roles)||(a.roles=b.roles),e.ka(b.localeIdentifier)||
(a.localeIdentifier=b.localeIdentifier),e.ka(b.effectiveUserName)||(a.effectiveUserName=b.effectiveUserName),e.ka(b.customData)||(a.customData=b.customData),e.ka(b.url)||(a.url=b.url),e.ka(b.handshakingUrl)||(a.handshakingUrl=b.handshakingUrl),e.ka(b.dimensionsUrl)||(a.dimensionsUrl=b.dimensionsUrl),e.ka(b.hierarchiesUrl)||(a.hierarchiesUrl=b.hierarchiesUrl),e.ka(b.levelsUrl)||(a.levelsUrl=b.levelsUrl),e.ka(b.measuresUrl)||(a.measuresUrl=b.measuresUrl),e.ka(b.membersUrl)||(a.membersUrl=b.membersUrl),
e.ka(b.dataUrl)||(a.dataUrl=b.dataUrl),e.ka(b.drillThroughUrl)||(a.drillThroughUrl=b.drillThroughUrl),e.ka(b.host)||(a.host=b.host),e.ka(b.node)||(a.node=b.node),e.ka(b.connection)||(a.connection=b.connection),e.ka(b.index)||(a.index=b.index),e.ka(b.mapping)||(a.mapping=b.mapping),e.ka(b.singleEndpoint)||(a.singleEndpoint=b.singleEndpoint),e.ka(b.concurrentRequests)||(a.concurrentRequests=b.concurrentRequests),e.ka(b.useStreamLoader)||(a.useStreamLoader=b.useStreamLoader),e.ka(b.useGranularityNamesForDateFilters)||
(a.useGranularityNamesForDateFilters=b.useGranularityNamesForDateFilters),e.ka(b.dataRootPath)||(a.dataRootPath=b.dataRootPath),b=b.credentials,null!=b&&(e.ka(b.hash)||(a.hash=b.hash),e.ka(b.username)||(a.username=b.username),e.ka(b.password)||(a.password=b.password)));return a}static Jk(b){var a=b.find("dataSource"),c=a.attr("type");void 0!==c&&(c=c.toLowerCase());"msolap"==c&&(c=l.i.ra.Cc);c&&-1<c.indexOf("pentaho")&&(c=l.i.ra.Pd);var d=a.find("filename");if(!l.i.ra.valid(c)){var g=a.find("proxyUrl");
0<g.length&&0<g.text().length&&(c=l.i.ra.Cc);0<d.length&&0<d.text().length&&(c=l.i.ra.ci)}0<d.length&&0<d.text().length&&".ocsv"==d.text().toLocaleLowerCase().substr(-5)&&(c=l.i.ra.Nq);0<d.length&&0<d.text().length&&".json"==d.text().toLocaleLowerCase().substr(-5)&&(c=l.i.ra.JSON);0<d.length&&0<d.text().length&&".csv"==d.text().toLocaleLowerCase().substr(-4)&&(c=l.i.ra.ci);switch(c){case l.i.ra.Nq:return l.local.csv.LF.Jk(a[0]);case l.i.ra.ci:return l.local.csv.gP.Jk(b);case l.i.ra.JSON:return l.local.json.RP.Jk(a[0]);
case l.i.ra.Cc:case l.i.ra.Pd:return l.external.Hb.Bp.Jk(b);default:return l.local.csv.gP.Jk(b)}}op(){var b=z.ba.create("<dataSource/>");this.Aa!=l.i.ra.EMPTY&&b.attr("type",this.Aa);return b}}h.Et=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h{constructor(f){this.zb=[];this.Kc=[];this.qh=[];this.eb=[];this.Cd=[];this.Od=[];this.le=[];this.ua=[];this.dm=[];this.th=[];this.zg=[];this.Lp=[];this.su=[];this.nx=[];this.Wn=[];this.cqa=0;this.Cha=[];this.xj=[];this.Zh=[];this.sizes=[];this.filters=[];this.Yx=[];this.Mu=[];this.values=[];this.tR=[];this.wa=f}LC(){this.Wn=[];this.eb=[];this.zb=[];this.Kc=[];this.dm=[];this.ua=[];this.values=[];this.qh=[];this.filters=[]}$_(){this.le=[];this.th=[];this.zg=[];this.Lp=
[];this.su=[];this.nx=[]}wu(){this.LC();this.$_();this.Cd=[];this.Od=[];this.sizes=[];this.qh=[]}clearData(){this.LC();this.Cd=[];this.Od=[];this.sizes=[];this.qh=[]}get slice(){return null!=this.Pb?this.Pb:this.wa.qa}set slice(f){this.Pb=f}CAa(f){return isNaN(f[0])}EAa(f){return!isNaN(f[0])}qAa(f){return void 0===f[0]||"string"===typeof f[0]||void 0===f[1]||"string"===typeof f[1]?(null==f[0]||"number"===typeof f[0]&&isNaN(f[0])?"":f[0])+(null==f[1]||"number"===typeof f[1]&&isNaN(f[1])?"":f[1]):f[0]+
f[1]}IAa(f){return f[0]-f[1]}BAa(f){return f[0]*f[1]}sAa(f){return 0==f[1]||isNaN(f[1])?l.i.tP.qP:f[0]/f[1]}GAa(f){return Math.pow(f[0],f[1])}xAa(f){return f[0]<f[1]}uAa(f){return f[0]>f[1]}tAa(f){return f[0]==f[1]}DAa(f){return f[0]!=f[1]}yAa(f){return f[0]<=f[1]}vAa(f){return f[0]>=f[1]}FAa(f){return f[0]||f[1]}rAa(f){return f[0]&&f[1]}wAa(f){return f[0]?f[1]:f[2]}pAa(f){return Math.abs(f[0])}HAa(f){const b=f[1];if(isNaN(b)||0===b)return Math.round(f[0]);f=f[0];f=Math.round(Number(f+"e"+b));return Number(f+
"e"+-b)}AAa(f){return Math.min(f[0],f[1])}zAa(f){return Math.max(f[0],f[1])}Bs(f,b){for(var a=1,c=0,d,g,k=this.xj.length-1;0<=k;k--)g=this.sizes[this.Zh.length+k],0<g&&(d=void 0===b[k]?0:b[k],c+=d*a,a*=g);for(b=this.Zh.length-1;0<=b;b--)g=this.sizes[b],0<g&&(d=f&&void 0!==f[b]?f[b]:0,Math.abs(d*a)>9007199254740991-c&&(a=-a%1E6,0==a&&(a=-g)),c+=d*a,a*=g);return c}i2(f,b){for(var a=0,c=!0,d=0;d<f.length;d++){var g=this.Kc[b][f[d]];isNaN(g)||(a+=g,c=!1)}return c?NaN:a}ZBa(f,b){for(var a=Number.MAX_VALUE,
c=!0,d=0;d<f.length;d++){var g=this.Kc[b][f[d]];isNaN(g)||(g<a&&(a=g),c=!1)}return c?NaN:a}SBa(f,b){for(var a=Number.NEGATIVE_INFINITY,c=!0,d=0;d<f.length;d++){var g=this.Kc[b][f[d]];isNaN(g)||(g>a&&(a=g),c=!1)}return c?NaN:a}mCa(f,b){for(var a=1,c=!0,d=0;d<f.length;d++){var g=this.Kc[b][f[d]];isNaN(g)||(a*=g,c=!1)}return c?NaN:a}fea(f,b){let a=0,c=0;for(let d=0;d<f.length;d++){const g=this.Kc[b][f[d]];isNaN(g)||(a+=g,c++)}return 0==c?NaN:a/c}WBa(f,b){for(var a=[],c=0;c<f.length;c++){var d=this.Kc[b][f[c]];
isNaN(d)||a.push(d)}if(0===a.length)return NaN;e.Ja.sort(a,e.Ja.Ti);if(1===a.length%2)return a[Math.floor(a.length/2)];f=a.length/2;return(a[f]+a[f-1])/2}uea(f,b){for(var a=this.fea(f,b),c=0,d=0,g=0;g<f.length;g++){var k=this.Kc[b][f[g]];isNaN(k)||(c+=Math.pow(k-a,2),d++)}return{Xca:c,count:d}}CCa(f,b){f=this.uea(f,b);return 0==f.count?NaN:Math.sqrt(f.Xca/f.count)}DCa(f,b){f=this.uea(f,b);return 0==f.count?NaN:1==f.count?0:Math.sqrt(f.Xca/(f.count-1))}iCa(f,b){null==this.tR[b]&&(this.tR[b]=this.i2(this.eb,
b));return Math.abs(100*this.i2(f,b)/this.tR[b])}kBa(f,b){for(var a=0,c=0;c<f.length;c++){var d=this.Kc[b][f[c]];isNaN(d)||this.Kc[b]instanceof Uint8Array&&0==d||a++}return a}wBa(f,b,a){return l.Te.Qi.Bc("",!1).La(f,b,a)}jCa(f,b,a){return l.Te.Qi.Bc("",!1).La(f,b,a)}md(f,b){for(var a=0;a<f.length;a++){if(void 0===b)return;b=b[f[a]]}return b}BW(f,b){for(let a=0;a<f.length;a++)void 0===b[f[a]]&&(b[f[a]]=[[[]],[],[],void 0,void 0,!1]),b=b[f[a]];return b}get result(){return[this.Cd,this.Od]}set result(f){}wh(f,
b){if(0===f.length)return!0;var a=-1;void 0!==b&&(a="number"===typeof b?-1===b?-1:this.Mu[b]:this.ii(b));f=this.md(f,this.Cd);return void 0===f||void 0===f[0]||void 0===f[0][3]?!1:-1===a||void 0===f[0][3][a]?f[0][3][this.zg.length]:f[0][3][a]}ii(f,b,a){"string"!==typeof f&&(b=f.$,f=f.A);if(e.model.C.F.sc&&!a||void 0===b||b===l.i.ea.NONE)for(a=0;a<this.zg.length;a++){if(this.zg[a]===f)return a}else for(a=0;a<this.zg.length;a++)if(this.zg[a]===f&&(void 0===this.Lp[a]||this.Lp[a]===b))return a;return-1}Gj(f,
b){if(0===f.length)return!0;var a=-1;void 0!==b&&(a="number"===typeof b?this.Mu[b]:this.ii(b));f=this.md(f,this.Od);return void 0===f||void 0===f[0]||void 0===f[0][3]?!1:-1===a||void 0===f[0][3][a]?f[0][3][this.zg.length]:f[0][3][a]}collapse(f,b,a){0===this.Cd.length&&(this.Cd=[[this.eb,[],[],void 0,void 0]]);0===this.Od.length&&(this.Od=[[this.eb,[],[],void 0,void 0]]);1===this.Mu.length&&(a=void 0);b===l.i.ha.Ia&&this.nwa(f,a);b===l.i.ha.Oa&&this.lwa(f,a)}nwa(f,b){this.L$(this.md(f,this.Cd),b)}lwa(f,
b){this.L$(this.md(f,this.Od),b)}L$(f,b){void 0!==f&&(void 0===f[0][3]&&(f[0][3]=[]),void 0!==b?f[0][3][this.ii(b)]=!1:f[0][3][this.zg.length]=!1)}expand(f,b,a){0!==this.eb.length&&(1===this.Mu.length&&(a=void 0),0===this.Cd.length&&(this.Cd=[[this.eb,[],[],void 0,void 0]],this.j1([],a)),0===this.Od.length&&(this.Od=[[this.eb,[],[],void 0,void 0]],this.g1([],a)),b===l.i.ha.Ia&&this.j1(f,a),b===l.i.ha.Oa&&this.g1(f,a))}j1(f,b){var a=this.md(f,this.Cd);void 0===a&&this.vL()&&(a=this.BW(f,this.Cd));
if(void 0!==a){var c=this.Zh[f.length];f.length<this.Zh.length&&this.Ny(a,c,b)}}g1(f,b){var a=this.md(f,this.Od);void 0===a&&this.uL()&&(a=this.BW(f,this.Od));if(void 0!==a){var c=this.xj[f.length];f.length<this.xj.length&&this.Ny(a,c,b)}}Ny(f,b,a){if(void 0!==f){var c=f[0][0];if(0<c.length&&!isNaN(b))for(var d=0;d<c.length;d++){var g=this.ua[b][1]<this.zb.length?this.zb[this.ua[b][1]][c[d]]:0;0!==g&&void 0!==g&&(void 0===f[g]?(f[g]=[[[c[d]],[],[],void 0,void 0,!1]],f[0][1].push(g)):f[0][5]||f[g][0][0].push(c[d]))}void 0===
f[0][3]&&(f[0][3]=[]);void 0===a?f[0][3][this.zg.length]=!0:f[0][3][this.ii(a)]=!0;f[0][5]=!0}}Xp(f,b,a,c){1===this.Mu.length&&(c=void 0);a===l.i.ha.Ia&&this.eza(f,c);a===l.i.ha.Oa&&this.dza(f,c)}eza(f,b){var a=this.md(f,this.Cd);f=f.slice(0,-1);this.rZ(this.md(f,this.Cd),a,b)}dza(f,b){var a=this.md(f,this.Od);f=f.slice(0,-1);this.rZ(this.md(f,this.Od),a,b)}Ee(f,b,a,c){0!==b.children.length&&(1===this.Mu.length&&(c=void 0),0===this.Cd.length&&(this.Cd=[[this.eb,[],[],void 0,void 0]],this.j1([],c)),
0===this.Od.length&&(this.Od=[[this.eb,[],[],void 0,void 0]],this.g1([],c)),a===l.i.ha.Ia&&this.$ya(f,b,c),a===l.i.ha.Oa&&this.Zya(f,b,c))}$ya(f,b,a){var c=this.md(f,this.Cd);void 0===c&&this.vL(b.level)&&(c=this.BW(f,this.Cd));if(void 0!==c){f=f.slice(0,-1);var d=this.Zh[f.length];this.jR(this.md(f,this.Cd),c,d,this.ua[d][b.level.yb+1],a)}}jR(f,b,a,c,d){if(void 0!==b&&void 0!==b[0]){var g=b[0][0];if(0<g.length&&!isNaN(c)){void 0===f.indiciesMap&&(f.indiciesMap={});for(let m=0;m<g.length;m++){var k=
this.zb[c][g[m]];0!==k&&void 0!==k&&(void 0===f[k]?(f[k]=[[[g[m]],[],[],void 0,void 0]],b[0][2].push(k),this.dm[a][k]=c,f.indiciesMap[k]={[g[m]]:1}):1!==f.indiciesMap[k][g[m]]&&(f[k][0][0].push(g[m]),f.indiciesMap[k][g[m]]=1))}}void 0===b[0][4]&&(b[0][4]=[]);void 0===d?b[0][4][this.zg.length]=!0:b[0][4][this.ii(d)]=!0}}Zya(f,b,a){var c=this.md(f,this.Od);void 0===c&&this.uL(b.level)&&(c=this.BW(f,this.Od));f=f.slice(0,-1);var d=this.xj[f.length];this.jR(this.md(f,this.Od),c,d,this.ua[d][b.level.yb+
1],a)}rZ(f,b,a){const c=b[0][2];if(void 0!==c&&0<c.length)for(var d=0;d<c.length;d++){let g=c[d];void 0!==f[g][0][4]&&this.rZ(f,f[g],a);f[g]=void 0}b[0][2]=[];b[0][4][this.zg.length]=!1;void 0!==a&&(b[0][4][this.ii(a)]=!1)}Ih(f,b,a){b=this.zg.length;void 0!==a&&(b="number"===typeof a?-1===a?-1:this.Mu[a]:this.ii(a));-1===b&&(b=this.zg.length);f=this.md(f,this.Cd);return void 0!==f&&void 0!==f[0]&&void 0!==f[0][4]&&(f[0][4][b]||f[0][4][this.zg.length])}Fj(f,b,a){b=this.zg.length;void 0!==a&&(b="number"===
typeof a?-1===a?-1:this.Mu[a]:this.ii(a));-1===b&&(b=this.zg.length);f=this.md(f,this.Od);return void 0!==f&&void 0!==f[0]&&void 0!==f[0][4]&&(f[0][4][b]||f[0][4][this.zg.length])}kN(f,b,a){var c=this.le.indexOf(b.hierarchy.A),d=b.dc?f.slice(0,-1):f.slice(0);const g=a===l.i.ha.Ia?this.md(d,this.Cd):this.md(d,this.Od);1<f.length?(d=f.slice(0,-1),f=(a===l.i.ha.Ia?this.md(d,this.Cd):this.md(d,this.Od))[0][0]):f=this.eb;if(g){c=this.ua[c][b.level.yb+1];a={};for(d=0;d<g[0][0].length;d++)a[g[0][0][d]]=
1;d=[];for(let k=0;k<b.children.length;k++){const m=this.Zp(f,[b.children[k]],[c]);for(let n=0;n<m.length;n++)1!==a[m[n]]&&(d.push(m[n]),a[m[n]]=1)}for(b=0;b<d.length;b++)g[0][0].push(d[b])}}Zp(f,b,a){for(let k=0;k<b.length;k++){const m=b[k];var c=a[k];if(e.model.C.F.mU){var d=this.slice.vc().getItem(this.le[c]),g=d.za(m);e.v(d.Nz)||e.v(this.ua)||e.v(a[k])||e.v(this.ua[a[k]])||(c=this.ua[a[k]][g.level.yb])}c=e.v(this.dm[c])||e.v(this.dm[c][m])?c:this.dm[c][m];d=[];for(g=0;g<f.length;g++)e.v(this.zb[c])||
this.zb[c][f[g]]!==m||d.push(f[g]);f=d}return f}sR(f,b,a){let c=this.La(f,b,a);this.wa.ga.Aa!==l.i.ra.Cc&&this.wa.ga.Aa!==l.i.ra.Pd||!e.model.C.F.co||(f=this.La(f,b,a),c=l.Kt.R().B2(f)?l.Kt.R().d2(f):f);return c}Sea(f,b,a){return a.$===l.i.ea.tn?this.wCa(f,b,a):a.$===l.i.ea.so?this.xCa(f,b,a):NaN}wCa(f,b,a){var c=a.Qa?this.slice.gd().findIndex(r=>r.A===a.A)+this.zg.length:this.ii(a);null==this.values[c]&&(this.values[c]=[]);var d=this.Bs(f,b);if(null==this.values[c][d]){a.$=a.Mm;if(f&&0!=f.length){var g=
this.slice.wb.fa(f.length-1),k=g.za(f[f.length-1]);if(null==k||null==k.parent)return null;g=null==g.ic||k.level.yb>g.ic.yb?g.jk(k.parent,!1):g.nv(g.zf);f=f.slice(0,-1);k=this.md(f,this.Cd);if(k[0]&&k[0][1])for(var m=0,n=0;n<g.length;n++){var p=g[n];if(null!=k[p]){f.push(p);p=this.Bs(f,b);if(null==this.values[c][p]){var t=this.sR(f,b,a);isNaN(t)||(m+=t);this.values[c][p]=m}else m=this.values[c][p];f.pop()}}}else this.values[c][d]=this.sR(f,b,a);a.$=l.i.ea.tn}return this.values[c][d]}xCa(f,b,a){const c=
a.Qa?this.slice.gd().findIndex(n=>n.A===a.A)+this.zg.length:this.ii(a);null==this.values[c]&&(this.values[c]=[]);const d=this.Bs(f,b);if(null==this.values[c][d]){a.$=a.Mm;if(0===b.length)this.values[c][d]=this.sR(f,b,a);else{var g=this.slice.Fb.fa(b.length-1),k=g.za(b[b.length-1]);if(null===k||null===k.parent)return null;g=null===g.ic||k.level.yb>g.ic.yb?g.jk(k.parent,!1):g.nv(g.zf);b=b.slice(0,-1);k=this.md(b,this.Od);if(k[0]&&k[0][1]){let n=0;for(let p=0;p<g.length;p++){var m=g[p];if(void 0!==k[m]){b.push(m);
m=this.Bs(f,b);if(null==this.values[c][m]){const t=this.sR(f,b,a);isNaN(t)||(n+=t);this.values[c][m]=n}else n=this.values[c][m];b.pop()}}}}a.$=l.i.ea.so}return this.values[c][d]}zea(f,b,a,c,d,g){if(!e.v(f)&&0!=f.length)if(this.Zh.length==b.length)this.yea(f,c,d,g);else{var k=[],m={},n=this.Zh[b.length];for(var p=0;p<f.length;p++){const t=this.zb[n][f[p]];m[t]||0==t||(k.push(t),m[t]=!0)}for(m=0;m<k.length;m++)n=b.slice(0),n.push(k[m]),p=this.Zp(f,n,this.Zh),this.zea(p,n,a,c,d,g)}}xea(f,b,a,c){const d=
[];this.zea(f,b,a,c,d,{});return d.length}GM(f,b){if(e.v(f)||0==f.length)return 0;var a=this.wa.O.Ok(b.A);a=this.le.indexOf(2<a.ua.length?a.ua.Uh(a.ua.length-1):a.A);b=this.th.indexOf(b.A);for(var c=[],d=[],g,k=0;k<f.length;k++)g=this.zb[a][f[k]],d[g]||(d[g]=!0,this.Kc[b]&&isNaN(this.Kc[b][f[k]])||this.Kc[b]instanceof Uint8Array&&0==this.Kc[b][f[k]]||c.push(g));return c.length}ww(f,b,a,c){var d=this.md(f,this.Cd),g=this.md(b,this.Od),k=[];d&&0<d.length&&g&&0<g.length&&(k=f.length*g[0][0].length<b.length*
d[0][0].length?this.Zp(g[0][0],f,this.Zh):this.Zp(d[0][0],b,this.xj));return this.bq(k,a,!1,c)}sva(f,b,a){return this.bq([this.eb[f[0]]],b,!1,a)}MBa(f,b,a=0,c=null,d=null){for(var g=0,k=!0,m=0;m<f.length;m++)a=this.bq([f[m]],b,!1,a,c,d,!0),isNaN(a)||(g+=a,k=!1);return k?NaN:g}bq(f,b,a=!1,c=0,d=null,g=null,k=!0){if(a)return this.MBa(f,b,c,d,g);if(b[2]){var m=[],n;for(n in b[1]){var p=b[1][n],t=p;Array.isArray(p)&&(t=this.bq(f,p,a,c,d,g,k),t=isNaN(t)&&k&&(b[0]===l.i.rc.VO||b[0]===l.i.rc.EQ||b[0]===
l.i.rc.nQ||b[0]===l.i.rc.xY||b[0]===l.i.rc.yJ)?this.cqa:t);m.push(t)}if(b[0]===l.i.rc.wo||b[0]===l.i.rc.PQ||b[0]===l.i.rc.OQ)return c;if(b[0]===l.i.rc.gla)return this.CAa(m);if(b[0]===l.i.rc.aqa)return this.EAa(m);if(b[0]===l.i.rc.VO)return this.qAa(m);if(b[0]===l.i.rc.EQ)return this.IAa(m);if(b[0]===l.i.rc.nQ)return this.BAa(m);if(b[0]===l.i.rc.xY)return this.GAa(m);if(b[0]===l.i.rc.yJ)return this.sAa(m);if(b[0]===l.i.rc.LESS)return this.xAa(m);if(b[0]===l.i.rc.GREATER)return this.uAa(m);if(b[0]===
l.i.rc.EQUAL||b[0]==l.i.rc.Qma)return this.tAa(m);if(b[0]===l.i.rc.Tf)return this.DAa(m);if(b[0]===l.i.rc.X8)return this.yAa(m);if(b[0]===l.i.rc.I8)return this.vAa(m);if(b[0]===l.i.rc.L6)return this.rAa(m);if(b[0]===l.i.rc.L9)return this.FAa(m);if(b[0]===l.i.rc.NP)return this.wAa(m);if(b[0]===l.i.rc.EY)return this.HAa(m);if(b[0]===l.i.rc.oX)return this.pAa(m);if(b[0]===l.i.rc.MIN)return this.AAa(m);if(b[0]===l.i.rc.MAX)return this.zAa(m)}else{a=this.Q1(b[1][0],b[0]);if(void 0!==this.su[a])return this.bq(f,
this.su[a],this.nx[a],0,d,g,k);k=b[0];l.i.ea.pz(k)&&(k=l.i.ea.Dz(k));switch(k){case l.i.ea.Cp:if(null!=g&&(c=this.wa.O.fd(b[1][0]),!e.v(c)))return f=this.La([],g,c),c=this.La(d,g,c),100*c/f;break;case l.i.ea.Rq:if(null!=d&&(c=this.wa.O.fd(b[1][0]),!e.v(c)))return f=this.La(d,[],c),c=this.La(d,g,c),100*c/f;break;case l.i.ea.Si:if(null!=d&&null!=g&&(c=this.wa.O.fd(b[1][0]),!e.v(c)))return f=this.La([],[],c),b=this.La(d,[],c),k=this.La([],g,c),c=this.La(d,g,c),Math.abs(f*c/(k*b));break;case l.i.ea.tn:case l.i.ea.so:c=
this.wa.O.fd(b[1][0]);if(!e.v(c))return f=c.$,c.$=k,d=this.Sea(d,g,c),c.$=f,d;break;case l.i.ea.pj:c=this.wa.O.fd(b[1][0]);if(!e.v(c)&&c.type==l.i.Ra.wc)return this.GM(f,c);break;case l.i.ea.ko:case l.i.ea.qn:case l.i.ea.qo:case l.i.ea.sn:c=this.wa.O.fd(b[1][0]);if(!e.v(c))return f=c.$,c.$=k,d=this.wBa(d,g,c),c.$=f,d;break;case l.i.ea.Pq:case l.i.ea.Qq:if(c=this.wa.O.fd(b[1][0]),!e.v(c))return f=c.$,c.$=k,d=this.jCa(d,g,c),c.$=f,d}return this.Wg(f,a,k)}}Q1(f){var b=this.th.indexOf(f);-1===b&&-1!=
f.indexOf("[Measures]")&&(f=f.slice(12,-1),b=this.th.indexOf(f));return b}filter(){}select(f=!0){this.zI();this.filter();var b;this.Cha=[];this.Zh=[];this.xj=[];this.sizes=[];this.dm=[];this.Mu=[];this.vI=this.slice.axes.getItem(l.i.ha.Lt);this.$b=this.slice.axes.getItem(l.i.ha.Ia);this.Lb=this.slice.axes.getItem(l.i.ha.Oa);for(b=0;b<this.$b.Na.length;b++){var a=this.$b.Na.fa(b);if(!a.We){var c=this.le.indexOf(a.A);this.Zh.push(c);this.sizes.push(a.fn);this.dm[c]=[]}}this.Uk=this.Zh.length;for(b=
0;b<this.Lb.Na.length;b++)a=this.Lb.Na.fa(b),a.We||(c=this.le.indexOf(a.A),this.xj.push(c),this.sizes.push(a.fn),this.dm[c]=[]);this.Ck=this.xj.length;if(f)for(b=0;b<this.vI.Na.length;b++)a=this.vI.Na.fa(b),c=this.le.indexOf(a.A),this.Cha.push(c);else this.eb=this.qh;f=this.slice.gd();for(b=0;b<f.length;b++)c=this.ii(f[b]),this.Mu.push(c)}qZ(f,b,a,c){try{if(0===b.children.length||1===b.children.length&&(b.hierarchy.za(b.children[0]).caption===e.model.B.j.Nl||b.hierarchy.za(b.children[0]).caption===
e.model.B.j.jo))return;this.kN(f,b,c);this.Ee(f,b,c,void 0)}catch(k){}const d=this.md(f,c===l.i.ha.Ia?this.Cd:this.Od);for(var g=0;g<b.children.length;g++){const k=b.hierarchy.za(b.children[g]);try{if(k.Hh&&c===l.i.ha.Ia){f.length<this.Zh.length&&!this.wh(f)&&this.Ny(d,this.Zh[a],void 0);const m=f.slice(0);m[m.length-1]=k.ordinal;this.vZ(m,a+1,!0)}else if(k.Hh&&c===l.i.ha.Oa){f.length<this.xj.length&&!this.Gj(f)&&this.Ny(d,this.xj[a],void 0);const m=f.slice(0);m[m.length-1]=k.ordinal;this.uZ(m,a+
1,!0)}else{const m=f.slice(0,-1);m.push(k.ordinal);this.qZ(m,k,a,c)}}catch(m){}}}lf(f){if(0===this.Cd.length||0<this.Cd.length&&this.Cd[0][0].length!==this.eb.length)this.Cd=[[this.eb,[],[],void 0,void 0]];this.vZ([],0,f)}kf(f){if(0===this.Od.length||0<this.Od.length&&this.Od[0][0].length!==this.eb.length)this.Od=[[this.eb,[],[],void 0,void 0]];this.uZ([],0,f)}vZ(f,b,a){if(void 0!==this.Zh[b]){var c=this.Zh[b],d=this.md(f,this.Cd),g;f.length<this.Zh.length&&this.Ny(d,c,void 0);a&&(g=this.$b.Na.getItem(this.le[c]));
if(a&&g&&g.Ef)for(a=g.pd.children,c=0;c<a.length;c++){d=g.za(a[c]);const k=f.slice(0);k.push(d.ordinal);this.qZ(k,d,b,l.i.ha.Ia)}else for(g=d[0][1],c=0;c<g.length;c++)d=f.slice(0),d.push(g[c]),this.vZ(d,b+1,a)}}uZ(f,b,a){if(void 0!==this.xj[b]){var c=this.xj[b],d=this.md(f,this.Od),g;f.length<this.xj.length&&this.Ny(d,c,void 0);a&&(g=this.Lb.Na.getItem(this.le[c]));if(a&&g.Ef)for(a=g.pd.children,c=0;c<a.length;c++){d=g.za(g.pd.children[c]);const k=f.slice(0);k.push(d.ordinal);this.qZ(k,d,b,l.i.ha.Oa)}else for(g=
d[0][1],c=0;c<g.length;c++)d=f.slice(0),d.push(g[c]),this.uZ(d,b+1,a)}}Vm(f,b,a,c){0===this.Cd.length&&(this.expand([],l.i.ha.Ia,void 0),this.expand([],l.i.ha.Oa,void 0));try{if(0!=b.children.length&&(1!=b.children.length||b.hierarchy.za(b.children[0]).caption!=e.model.B.j.Nl&&b.hierarchy.za(b.children[0]).caption!=e.model.B.j.jo)){this.kN(f,b,a);b.dc||this.Ee(f,b,a,void 0);for(var d=b.hierarchy.ua.getItem(c),g=0;g<b.children.length;g++){var k=b.hierarchy.za(b.children[g]);if(!k.Hh&&k.level.yb<d.yb){var m=
f.slice(0,-1);m.push(k.ordinal);var n=this.md(m,a===l.i.ha.Oa?this.Od:this.Cd);void 0!==n&&void 0!==n[0]&&this.Vm(m,k,a,c)}}}}catch(p){}}La(){return 0}Wg(f,b){f=this.values&&this.values[f[0]]?this.values[f[0]][b]:NaN;this.wa.ga.Aa!==l.i.ra.Cc&&this.wa.ga.Aa!==l.i.ra.Pd||!e.model.C.F.co||(f=l.Kt.R().B2(f)?l.Kt.R().d2(f):f);return f}yea(){}Kz(){return this.eb.length}get HA(){return this.zb&&this.zb[0]?this.zb[0].length:this.zb[1]?this.zb[1].length:0}Jm(f,b){if(-1!==this.le.indexOf(f))return this.le.indexOf(f);
if(void 0===b)this.ua[this.le.length]=[-1,this.le.length];else{var a=this.le.indexOf(b);if(-1===a)return this.Jm(b),this.Jm(f,b);this.ua[a]?this.ua[a].push(this.le.length):this.ua[this.le.length]=[-1,this.le.length]}this.le.push(f);return this.le.length-1}fL(f){-1===this.th.indexOf(f.A)&&this.th.push(f.A)}Uy(f,b){var a=!1;if("string"===typeof f)var c=f;else if(c=f.A,b=f.$,a=f.Qa){var d=f.Ud;var g=f.Lk}f=this.zg.indexOf(c);if(-1!==f){if(void 0!==b&&b!==l.i.ea.NONE){if(this.Lp[f]===b)return;f=this.zg.length;
this.Lp[f]=b;this.zg[f]=c}}else f=this.zg.length,void 0!==b&&b!==l.i.ea.NONE&&(this.Lp[f]=b),this.zg.push(c);a&&(this.su[f]=d,this.nx[f]=g)}vL(f=null){var b=!0===e.model.C.F.TE||"rows"===e.model.C.F.TE;if(f){const a=f.hierarchy;b=a.mapping.La(a.A,"showEmptyValues",b);return f.hierarchy.mapping.La(f.A,"showEmptyValues",b)}return b}uL(f=null){var b=!0===e.model.C.F.TE||"columns"===e.model.C.F.TE;if(f){const a=f.hierarchy;b=a.mapping.La(a.A,"showEmptyValues",b);return f.hierarchy.mapping.La(f.A,"showEmptyValues",
b)}return b}}l.c7=h})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h{constructor(){}static GCa(f){var b=null;switch(f.Aa){case l.i.ra.Cc:b=f.Nm?new l.external.Hb.Kp.V6(f):new l.external.Hb.XE.dra(f);break;case l.i.ra.Pd:b=f.Nm?new l.external.Hb.Kp.V6(f):new l.external.Hb.pq.Ypa(f);break;case l.i.ra.ci:b=new l.local.csv.GX;break;case l.i.ra.Nq:b=new l.local.csv.eqa;break;case l.i.ra.JSON:b=!f.bJ||f.cv||f.Yd?new l.local.json.O8:new l.local.json.qoa;break;case l.i.ra.kg:b=new l.external.Ue.Zma(f);break;case l.i.ra.API:b=new l.external.jc.Xka(f)}return b}}
l.wra=h})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){class h{constructor(f=""){this.type=f;this.uw=l.i.ha.Ia;this.jg=[]}}l.PF=h})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){class h{static xD(f,b){switch(b.Aa){case l.i.ra.kg:f=new l.external.Ue.Xma(f,b);break;case l.i.ra.API:f=new l.external.jc.Wka(f,b);break;case l.i.ra.Pd:f=new l.external.Hb.pq.mY(f,b);break;default:f=new l.external.Hb.XE.mY(f,b)}return f}}l.yB=h})(e.u||(e.u={}))})(q||(q={}));
var Ha=q||(q={}),Ia=Ha.u||(Ha.u={});class Ja{}Ja.GF="members";Ja.R6="ascendants";Ja.vma="descendants";Ja.b$="siblings";Ja.GY="search";Ia.Ap=Ja;
(function(e){(function(l){class h{constructor(){}static O1(f){var b=null;switch(f.Aa){case l.i.ra.kg:b=new l.external.Ue.Sma;break;case l.i.ra.API:b=new l.external.jc.Ska;break;case l.i.ra.Cc:b=f.Nm?new l.external.Hb.Kp.U6:new l.external.Hb.mj.w$;break;case l.i.ra.Pd:b=f.Nm?new l.external.Hb.Kp.U6:new l.external.Hb.mj.w$}return b}}l.MX=h})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h{constructor(){this.values=[];this.values.push("");if(null!=h.instance)throw Error("Singleton");}static R(){null==h.instance&&(h.instance=new h);return h.instance}static dispose(){h.instance=null}oi(f){var b=this.values.indexOf(f);-1==b&&(b=this.values.push(f)-1);return b}La(f){return f>=this.values.length?"out of bounce: "+f+" of "+this.values.length:this.values[f]}}l.SY=h})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h{}h.PY="STRUCTURE_CONNECTED";h.Wv="STRUCTURE_LOADED";h.OY="STRUCTURE_CANCELLED";h.QY="STRUCTURE_LOADING_FAILED";h.lJ="BEFORE_QUERY";h.hl="QUERY_COMPLETE";h.Ot="QUERY_ERROR";l.Ag=h;class f{}f.nK="SLICE_CHANGED";f.NY="SLICE_DRILL_EXPAND_CLEARED";l.Dy=f;class b extends w.ia{constructor(c){super(h.lJ);this.rm=c}}l.oF=b;class a extends w.ia{constructor(c){super(h.hl);this.rm=c}}l.AY=a})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h{constructor(){this.KN=[NaN];this.QI=[""];if(null!=h.instance)throw Error("Singleton");}static R(){null==h.instance&&(h.instance=new h);return h.instance}static dispose(){h.instance=null}BA(f,b){var a=this.QI.indexOf(f);-1==a&&(this.QI.push(f),a=this.KN.push(b)-1);return a}ECa(f){return isNaN(f)||f>=this.QI.length||void 0==this.QI[f]?"":this.QI[f]}d2(f){return isNaN(f)||f>=this.KN.length?NaN:this.KN[f]}B2(f){return!(isNaN(f)||void 0===this.KN[f])}clear(){this.KN.length=
1;this.QI.length=1}}l.Kt=h})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h{static bh(f,b){if(f===b)return f;if(h.bF&&"["===f.slice(0,1)&&"]"===f.slice(-1)){b=f.split("].");1<b.length&&b.shift();f="";for(var a=0;a<b.length;a++){var c=b[a];"[Measures]"!=c&&("["==c.slice(0,1)&&(c=c.slice(1,c.length)),"]"==c.slice(-1)&&(c=c.slice(0,c.length-1)));f=""==f?c:f+"."+c}}return f}static Vs(f){if("["==f.slice(0,1)&&"]"==f.slice(-1)&&h.bF){var b=f.split("].");if(2>b.length)return h.aJ&&!e.model.C.F.zw?f.toLocaleLowerCase():f;1<b.length&&b.shift();f=
"";for(var a=0;a<b.length-1;a++){var c=b[a];"[Measures]"!=c&&("["==c.slice(0,1)&&(c=c.slice(1,c.length)),"]"==c.slice(-1)&&(c=c.slice(0,c.length-1)));f=""==f?c:f+"."+c}f=f+"."+b[b.length-1]}return h.aJ&&!e.model.C.F.zw?f.toLocaleLowerCase():f}static Ws(f){if("[Measures]"==f.slice(0,10))return h.Vs(f,void 0);h.bF&&(f=f.split(".["),2<f.length?(f.shift(),f="["+f.join(".[")):(f=f.pop(),"]"==f.slice(-1)&&(f=f.slice(0,f.length-1))));return h.aJ&&!e.model.C.F.zw?f.toLocaleLowerCase():f}static type(f){return l.i.input.sa.valid(f)?
f:"hierarchical date"===f?l.i.input.sa.Mq:"measure"===f?l.i.input.sa.jb:l.i.input.sa.$c}}h.bF=!1;h.aJ=!1;l.ze=h})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends w.Mh{constructor(){super();this.Mb=[];this.Eg=[];this.bd=[];this.og=[];this.Fc=[];this.Gc=[];this.Mi=[];this.Jc=[];this.xz=[];this.sW=[];this.BS=[];this.iC="";this.Ie=!1;this.cO=[];this.mw=[];this.JL=[];this.Tt=[];this.b3=!0;this.pA=b=>this.qE(b);this.yL=b=>this.W3(b);this.EO=()=>this.Dr();this.zha=()=>{this.slice=this.ja.qa};this.Dn=new e.ub;this.RR=[];this.$Q=[];this.Dm=new e.ub;this.KR=new e.ub;this.mb=[];this.Vj=0;this.dG=!1;this.fC=this.Ly=
this.uG=0;this.rm=l.i.Md.to;this.UR=!1;this.yZ=0;f.counter++;this.ja=l.Ma.R()}static R(){null==f.instance&&(f.instance=new f,f.instance.iC="grid"+f.counter);return f.instance}bS(){this.ja.N(l.Ag.hl,this.pA,1);this.ja.N(l.Ag.lJ,this.yL);this.ja.N(l.Ag.Wv,this.EO,1);this.ja.N(l.Dy.NY,this.zha)}rA(){this.ja.rb(l.Ag.hl,this.pA);this.ja.rb(l.Ag.lJ,this.yL);this.ja.rb(l.Ag.Wv,this.EO);this.ja.rb(l.Dy.NY,this.zha)}get ta(){return null!=this.FK?this.FK:this.ja.ta}set ta(b){this.FK=b}get slice(){return null!=
this.Pb?this.Pb:this.ja.qa}set slice(b){this.Pb=b}get Ej(){return e.model.C.F.Bk}set Ej(b){}get rows(){return this.Dn}set rows(b){}get wb(){return this.slice.wb}set wb(b){}get Fl(){return this.RR}set Fl(b){}get NC(){return this.$Q}set NC(b){}get Ka(){return this.Dm}set Ka(b){}get Fb(){return this.slice.Fb}set Fb(b){}get qb(){return this.KR}set qb(b){}get Da(){return this.mb}set Da(b){}get ke(){return this.Vj}set ke(b){}get $i(){return this.slice&&this.dG}set $i(b){this.dG=b}get EI(){return this.uG}set EI(b){}get Ln(){return this.Ly}set Ln(b){}get dA(){return this.fC}set dA(b){}get $b(){return this.Ob}set $b(b){}get Lb(){return this.Nb}set Lb(b){}get Uk(){return this.Ob?
this.Ob.bb?this.Ob.Na.length-1:this.Ob.Na.length:0}set Uk(b){}get Ck(){return this.Nb?this.Nb.bb?this.Nb.Na.length-1:this.Nb.Na.length:0}set Ck(b){}get nm(){return 1<this.mb.length||this.Nb.bb&&e.model.C.F.KI}set nm(b){}NM(){return this.Ob&&!this.WD?this.Ob.ld:[]}eja(b){this.Ob&&!this.WD&&(this.Ob.ld=b)}LM(){return this.Nb&&!this.UD?this.Nb.ld:[]}dja(b){this.Nb&&!this.UD&&(this.Nb.ld=b)}xH(){return this.Ob&&this.WD?this.Ob.ld:[]}F5(b){this.Ob&&this.WD&&(this.Ob.ld=b)}tD(){return this.Nb&&this.UD?
this.Nb.ld:[]}Wia(b){this.Nb&&this.UD&&(this.Nb.ld=b)}EH(){return this.Ob&&!this.VD?this.Ob.ue:[]}J5(b){this.Ob&&!this.VD&&(this.Ob.ue=b)}DH(){return this.Nb&&!this.TD?this.Nb.ue:[]}I5(b){this.Nb&&!this.TD&&(this.Nb.ue=b)}IM(){return this.Ob&&this.VD?this.Ob.ue:[]}bja(b){this.Ob&&this.VD&&(this.Ob.ue=b)}HM(){return this.Nb&&this.TD?this.Nb.ue:[]}aja(b){this.Nb&&this.TD&&(this.Nb.ue=b)}get VD(){return this.slice.hf}get TD(){return this.slice.Xf}get WD(){return this.slice.lf}get UD(){return this.slice.kf}set gk(b){this.Ob&&
(this.Ob.ig=b)}get gk(){var b=l.i.Ba.ed;this.Ob&&(b=this.Ob.ig,b==l.i.Ba.ed&&this.Ob.wt&&this.Ob.Or!=l.i.Ba.ed&&(b=this.Ob.Or));return b}set Mj(b){this.Ob&&(this.Ob.jn=b)}get Mj(){if(this.Ob){var b=this.Ob.jn;this.Ob.ig==l.i.Ba.ed&&this.Ob.wt&&this.Ob.Or!=l.i.Ba.ed&&(b=[])}return b}set cp(b){this.Ob&&(this.Ob.Mf=b)}get cp(){if(this.Ob){var b=this.Ob.Mf;this.Ob.ig==l.i.Ba.ed&&this.Ob.wt&&this.Ob.Or!=l.i.Ba.ed&&(b=this.Ob.wt)}return b}get MD(){if(this.gk==l.i.Ba.ed||null==this.Mj)return!1;if(1>this.Mj.length)return!0;
var b=!1;try{b=this.wh(this.Mj.slice(0,this.Mj.length-1),this.cp)}catch(a){}return b}set MD(b){}set Th(b){this.Nb&&(this.Nb.ig=b)}get Th(){var b=l.i.Ba.ed;this.Nb&&(b=this.Nb.ig,b==l.i.Ba.ed&&this.Nb.wt&&this.Nb.Or!=l.i.Ba.ed&&(b=this.Nb.Or));return b}set Xl(b){this.Nb&&(this.Nb.jn=b)}get Xl(){if(this.Nb){var b=this.Nb.jn;this.Nb.ig==l.i.Ba.ed&&this.Nb.wt&&this.Nb.Or!=l.i.Ba.ed&&(b=[])}return b}set lr(b){this.Nb&&(this.Nb.Mf=b)}get lr(){if(this.Nb){var b=this.Nb.Mf;this.Nb.ig==l.i.Ba.ed&&this.Nb.wt&&
this.Nb.Or!=l.i.Ba.ed&&(b=this.Nb.wt)}return b}get Oz(){if(this.Th==l.i.Ba.ed||null==this.Xl)return!1;if(1>this.Xl.length)return!0;var b=!1;try{b=this.Gj(this.Xl.slice(0,this.Xl.length-1),this.lr)}catch(a){}return b}set Oz(b){}set Bi(b){}get Bi(){return null}PT(){return null}reset(b=!0){this.Ie=this.$i=!1;this.mb=[];this.Dn=new e.ub;this.Dm=new e.ub;this.KR=new e.ub;this.RR=[];this.$Q=[];this.Eg=[];this.og=[];this.Mb=[];this.bd=[];this.Fc=[];this.Gc=[];this.Jc=[];this.Ly=this.uG=0;this.Mi=[];this.xz=
[];this.sW=[];this.BS=[];b&&(this.Nb&&(this.Nb.ld=[]),this.Ob&&(this.Ob.ld=[]),this.Nb&&(this.Nb.ue=[]),this.Ob&&(this.Ob.ue=[]))}W3(b){b.rm!=l.i.Md.zJ&&(this.rm=b.rm,this.b3=this.$i=!1,b.rm==l.i.Md.to&&this.reset(),b.rm!=l.i.Md.sP&&b.rm!=l.i.Md.Iv||this.reset(!1))}qE(b){b.rm!=l.i.Md.zJ&&(this.b3=!0,this.load())}Dr(){this.$i=!1;this.Ie||this.reset()}load(){if(null==this.ta&&(this.ta=this.ja.ta,null==this.ta))return;this.slice?(this.Nb=this.slice.td(l.i.ha.Oa),this.Ob=this.slice.td(l.i.ha.Ia),(0==
this.bd.length&&0==this.Mb.length||this.rm==l.i.Md.BP)&&this.b3&&(this.WD?this.ta.lf(this.slice.hf):this.ta.expand([],l.i.ha.Ia,void 0),this.UD?this.ta.kf(this.slice.Xf):this.ta.expand([],l.i.ha.Oa,void 0),(0<this.EH().length||0<this.IM().length)&&this.T$(),(0<this.DH().length||0<this.HM().length)&&this.S$(),(0<this.NM().length||0<this.xH().length||0<this.LM().length||0<this.tD().length)&&this.Y$(),(0<this.EH().length||0<this.IM().length)&&this.T$(),(0<this.DH().length||0<this.HM().length)&&this.S$(),
(0<this.NM().length||0<this.xH().length||0<this.LM().length||0<this.tD().length)&&this.Y$()),this.aW(),this.$i=!0):this.Ob=this.Nb=null}Y$(){var b=this.slice.gd();if(this.rm===l.i.Md.BP||this.rm===l.i.Md.to||this.rm===l.i.Md.Iv||this.rm===l.i.Md.sP||this.rm===l.i.Md.rP){if(this.slice.lf){var a=this.xH();if(0<a.length)for(var c=0;c<a.length;c++)try{var d=b[a[c][0]];var g=a[c].slice(1);this.ta.collapse(g,l.i.ha.Ia,d)}catch(k){}}else if(a=this.NM(),0<a.length)for(c=0;c<a.length;c++)try{d=b[a[c][0]],
g=a[c].slice(1),this.ta.expand(g,l.i.ha.Ia,d)}catch(k){}if(this.slice.kf){if(a=this.tD(),0<this.tD().length)for(c=0;c<this.tD().length;c++)try{d=b[a[c][0]],g=a[c].slice(1),this.ta.collapse(g,l.i.ha.Oa,d)}catch(k){}}else if(a=this.LM(),0<a.length)for(c=0;c<a.length;c++)try{d=b[a[c][0]],g=a[c].slice(1),this.ta.expand(g,l.i.ha.Oa,d)}catch(k){}}}T$(){let b,a,c;const d=this.$b.Na.slice();d.removeItem("[Measures]");let g;const k=this.slice.gd();if(this.VD){var m=this.IM();for(var n=0;n<m.length;n++)try{g=
k[m[n][0]],b=m[n].slice(2),a=d.fa(b.length-1),c=a.Ib(m[n][1]),this.ta.Ih(b,c,g)&&(this.ta.Xp(b,c,l.i.ha.Ia,g),this.ta.wh(b,g)&&this.ta.collapse(b,l.i.ha.Ia,g))}catch(p){}}else{n=this.EH();for(let p=0;p<n.length;p++)try{if("string"==typeof n[p][0]?(m=n[p][0],g=k[n[p][1]],b=n[p].slice(3),a=d.fa(b.length-1),c=a.Ib(n[p][2])):(g=k[n[p][0]],b=n[p].slice(2),a=d.fa(b.length-1),c=a.Ib(n[p][1])),void 0!==m)if(a.Ou(m).yb<c.level.yb){const t=this.iva(c,m);b[b.length-1]=t.ordinal;a.Z0(t);this.ta.Xp(b,t,l.i.ha.Ia,
g)}else this.ta.Ih(b,c,g)||(this.ta.kN(b,c,l.i.ha.Ia),this.ta.Ee(b,c,l.i.ha.Ia,g));else c.hierarchy.ic&&c.hierarchy.pd&&this.ta.Vm(b.slice(0),c.hierarchy.pd,l.i.ha.Ia,c.hierarchy.zf),this.ta.Ih(b,c,g)||(this.ta.kN(b,c,l.i.ha.Ia),this.ta.Ee(b,c,l.i.ha.Ia,g))}catch(t){}}}S$(){var b=this.Lb.Na.slice();b.removeItem("[Measures]");var a=this.slice.gd();if(this.TD)for(var c=this.HM(),d=0;d<c.length;d++)try{var g=a[c[d][0]];var k=c[d].slice(2);var m=b.fa(k.length-1);var n=m.Ib(c[d][1]);this.ta.Fj(k,n,g)&&
this.ta.Xp(k,n,l.i.ha.Oa,g)}catch(p){}else for(c=this.DH(),d=0;d<c.length;d++)try{g=a[c[d][0]],k=c[d].slice(2),m=b.fa(k.length-1),n=m.Ib(c[d][1]),n.hierarchy.ic&&n.hierarchy.pd&&this.ta.Vm(k.slice(0),n.hierarchy.pd,l.i.ha.Oa,n.hierarchy.zf),this.ta.Fj(k,n,g)||(this.ta.kN(k,n,l.i.ha.Oa),this.ta.Ee(k,n,l.i.ha.Oa,g))}catch(p){}}IDa(b){if(!b.Qa)return!1;b=u.Ht.RM(b.Ud,this.ja.O.Da);const a=new Map;for(let c=0;c<b.length;c++)a.set(b[c].$,!0);return a.has(l.i.ea.qn)||a.has(l.i.ea.sn)}aW(){this.UR=!1;this.slice?
(this.mb=this.slice.gd(),this.Vj=this.Ob.bb?this.Ob.ke:this.Nb.ke,this.Dn=this.slice.rows,this.Dm=this.slice.Ka,this.KR=this.slice.qb):(this.mb=[],this.Vj=0,this.Dn=new e.ub,this.Dm=new e.ub,this.KR=new e.ub);this.RR=[];this.$Q=[];this.Ie?(this.SMa(),this.mw=this.ir(this.Eg),this.cO=this.ir(this.Mb),this.Tt=this.ir(this.og),this.JL=this.ir(this.bd)):(this.Eg=[],this.Mb=[],this.og=[],this.bd=[],this.Fc=[],this.Gc=[],this.Mi=[],this.Jc=[]);this.xz=[];this.Ly=this.uG=0;this.sW=[];this.BS=[];if(!e.v(this.slice)&&
!this.slice.kb){this.fC=-1;e.v(this.Nb.Mf)||this.Nb.Mf.$!==l.i.ea.qn&&this.Nb.Mf.$!==l.i.ea.sn&&!this.IDa(this.Lb.Mf)?(this.$ha(),this.Xha()):(this.Xha(),this.$ha());for(var b=0;b<this.Gc.length;b++)this.Gc[b]>this.uG&&(this.uG=this.Gc[b]);this.uG++;for(b=0;b<this.Jc.length;b++)this.Jc[b]>this.Ly&&(this.Ly=this.Jc[b]);0<this.bd.length&&this.Ly++;!this.kb&&0<this.slice.Fb.length&&this.Nb.bb&&this.nm&&this.Ly++;-1==this.fC?this.fC=0==this.ke?0:this.Ly:this.fC++;this.Ie&&(this.qKa(),this.pKa(),this.mw=
[],this.cO=[],this.Tt=[],this.JL=[]);this.Ie||this.pack();this.UR&&e.Va(e.model.B.j.i9,e.model.B.j.j9,e.ob.nk)}}pKa(){if(this.Nb.bb){var b=this.og[0].length;for(--b;0<=b;b--){var a=this.ak(b,!0);if(null===a||0==a.length)continue;const c=this.La([],a,this.mb[0]);isNaN(c)&&(a=this.tM(this.bd,a),0<=a&&this.sA(this.bd,a),this.sA(this.og,b),this.Jc=e.Ja.Qr(this.Jc,b),this.Fc=e.Ja.Qr(this.Fc,b))}}else for(b=this.bd[0].length,--b;0<=b;b--)a=this.ak(b),null!==a&&0!=a.length&&(a=this.La([],a,this.mb[0]),isNaN(a)&&
(this.sA(this.bd,b),this.Jc=e.Ja.Qr(this.Jc,b)))}qKa(){if(this.Nb.bb){var b=this.Mb[0].length;for(--b;0<=b;b--){var a=this.Vn(b);null!==a&&0!=a.length&&(a=this.La(a,[],this.mb[0]),isNaN(a)&&(this.sA(this.Mb,b),this.Gc=e.Ja.Qr(this.Gc,b),this.Mi.splice(b,1)))}}else for(b=this.Eg[0].length,--b;0<=b;b--){a=this.Vn(b,!0);if(null===a||0==a.length)continue;const c=this.La(a,[],this.mb[0]);isNaN(c)&&(a=this.tM(this.Mb,a),0<=a&&this.sA(this.Mb,a),this.sA(this.Eg,b),this.Gc=e.Ja.Qr(this.Gc,b),this.Fc=e.Ja.Qr(this.Fc,
b),this.Mi.splice(b,1))}}sA(b,a){for(let c=0;c<b.length;c++)b[c]=e.Ja.Qr(b[c],a)}$ha(){var b=this.ta.result[0];if(!this.Ob.bb||1<this.Dn.length||this.Ej)this.o1(b,[],0),this.Ie&&this.wKa(this.Mb);if(this.S5||this.Ob.bb&&1==this.Dn.length){var a=this.wb.fa(0);if(!a||a.Xh)if(0==this.Mb.length&&(this.Mb[0]=[]),!this.Ie){for(a=0;a<this.Mb.length;a++)this.Mb[a].push(0);this.Gc.push(0)}}if(!this.Ej)if(this.Ob.bb&&this.nm){this.Ie||(this.Gc=[],this.Mi=[]);if(1<this.Dn.length)for(0!=this.ke&&this.qM(b,[],
-1,0),a=0;a<this.mb.length;a++){if(this.S5)if(this.Ie){var c=this.Cj(this.Eg,[],this.mw);0<=c&&(this.Gc=e.Ja.re(this.Gc,0,c),this.Fc=e.Ja.re(this.Fc,a,c))}else this.wj(this.Eg,[],a),this.Gc.push(0);else 0!=this.Vj||"off"!=e.model.C.F.Lf&&"rows"!=e.model.C.F.Lf||(this.Ie?(c=this.Cj(this.Eg,[],this.mw),0<=c&&(this.Gc=e.Ja.re(this.Gc,0,c),this.Fc=e.Ja.re(this.Fc,a,c))):(this.wj(this.Eg,[],a),this.Gc.push(0)));0==this.ke&&this.qM(b,[],a,1)}if(0==this.ke&&(this.S5||this.Ob.bb&&1==this.Dn.length))for(b=
0;b<this.mb.length;b++)this.Ie?(a=this.Cj(this.Eg,[],this.mw),0<=a&&(this.Gc=e.Ja.re(this.Gc,0,a),this.Fc=e.Ja.re(this.Fc,b,a))):(this.wj(this.Eg,[],b),this.Gc.push(0))}else this.Eg=this.Mb}Xha(){var b=this.ta.result[1];(!this.Nb.bb||1<this.Dm.length)&&this.Gda(b,[],0);if(this.Z5||this.Nb.bb&&1==this.Dm.length){var a=this.Fb.fa(0);if(!a||a.Xh)if(0==this.bd.length&&(this.bd[0]=[]),!this.Ie){for(a=0;a<this.bd.length;a++)this.bd[a].push(0);this.Jc.push(0)}}if(this.Nb.bb&&this.nm){this.Ie||(this.Jc=[]);
if(1<this.Dm.length)for(this.xz=[],0!=this.Vj&&this.oM(b,[],-1,0),a=0;a<this.mb.length;a++){if(this.Z5)if(this.Ie){var c=this.Cj(this.og,[],this.Tt);0<=c&&(this.Jc=e.Ja.re(this.Jc,0,c),this.Fc=e.Ja.re(this.Fc,a,c))}else this.wj(this.og,[],a),this.Jc.push(0);else 0!=this.Vj||"off"!=e.model.C.F.Lf&&"columns"!=e.model.C.F.Lf||(this.Ie?(c=this.Cj(this.og,[],this.Tt),0<=c&&(this.Jc=e.Ja.re(this.Jc,0,c),this.Fc=e.Ja.re(this.Fc,a,c))):(this.wj(this.og,[],a),this.Jc.push(0)));0==this.Vj&&this.oM(b,[],a,0)}if(0==
this.Vj&&(this.Z5||this.Nb.bb&&1==this.Dm.length))for(b=0;b<this.mb.length;b++)this.Ie?(a=this.Cj(this.og,[],this.Tt),0<=a&&(this.Jc=e.Ja.re(this.Jc,0,a),this.Fc=e.Ja.re(this.Fc,b,a))):(this.wj(this.og,[],b),this.Jc.push(0))}else this.og=this.bd}SMa(){this.hX(this.Mb);this.hX(this.Eg);this.hX(this.bd);this.hX(this.og);Array.isArray(this.Fc)||(this.Fc=Array.from(this.Fc));Array.isArray(this.Gc)||(this.Gc=Array.from(this.Gc));Array.isArray(this.Jc)||(this.Jc=Array.from(this.Jc))}hX(b){for(var a=0;a<
b.length;a++)Array.isArray(b[a])||(b[a]=Array.from(b[a]))}pack(){this.UV(this.Mb);this.UV(this.Eg);this.UV(this.bd);this.UV(this.og);15<this.Fc.length&&(this.Fc=128>this.Fc.length?new Int8Array(this.Fc):new Int16Array(this.Fc));15<this.Gc.length&&(this.Gc=new Uint8Array(this.Gc));15<this.Jc.length&&"after"!==e.model.C.F.IL&&(this.Jc=new Uint8Array(this.Jc))}ir(b){b=b.slice();for(let a=0;a<b.length;a++)b[a]=b[a].slice();return b}UV(b){for(var a=0;a<b.length;a++)if(15<b[a].length){for(var c=0,d=0;d<
b[a].length;d++)c=b[a][d]>c?b[a][d]:c;256>c?b[a]=new Uint8Array(b[a]):65536>c?b[a]=new Uint16Array(b[a]):4294967296>c&&(b[a]=new Uint32Array(b[a]))}}o1(b,a,c){var d=a.length;if(d=this.Ob.bb&&a.length>=this.Vj?this.Dn.fa(d+1):this.Dn.fa(d))0==c&&(this.yZ=Date.now()),this.Ej?this.$$(d,d.pd,b,a,c):this.Ida(d,d.pd,b,a,c)}Ufa(b){if(0==b.hierarchy.eb.length)return!0;let a=b;for(;!e.v(a);){if(0<=b.hierarchy.eb.indexOf(a.ordinal))return!0;a=a.parent}for(const c of b.hierarchy.eb)if(0<=b.Ow.indexOf(c))return!0;
return!1}Y2(b,a,c,d,g){if(this.ja.ga.Ec&&this.ja.ga.Aa!==l.i.ra.API||this.ja.ga.mN)return!1;if(g)return!this.Ufa(a);if(void 0!==c&&void 0!==d&&!l.i.ea.nN(d.$)&&(d=d.clone(),d.$=c.measure.$,a=this.La(b,[],d),!c.uV(a,c.query)))return!0;for(c=0;c<this.Da.length;c++)if(0===c&&this.Da[c].Qa||!isNaN(this.La(b,[],this.Da[c]))||l.i.ea.nN(this.Da[c].$))return!1;return!0}Kfa(b,a,c,d,g){if(this.ja.ga.Ec&&this.ja.ga.Aa!==l.i.ra.API||this.ja.ga.mN)return!1;if(g)return!this.Ufa(a);if(void 0!==c&&void 0!==d&&!l.i.ea.nN(d.$)&&
(d=d.clone(),d.$=c.measure.$,a=this.La([],b,d),!c.uV(a,c.query)))return!0;for(c=0;c<this.Da.length;c++)if(0===c&&this.Da[c].Qa||!isNaN(this.La([],b,this.Da[c]))||l.i.ea.nN(this.Da[c].$))return!1;return!0}Ida(b,a,c,d,g){if(null!=a){if(null!=b.ic&&!this.ta.Ih(d,a)){if(0<d.length){var k=d.slice(0);k.push(a.ordinal)}else k=d.slice(0);this.ta.Vm(k,a,l.i.ha.Ia,b.zf)}a=null==b.ic||a.level.yb>=b.ic.yb?b.jk(a,!1,""):b.nv(b.zf);a=this.e6(b,a,c,d);if(b.filter.ji&&b.filter.query.va!=l.i.Wb.Rj&&b.filter.query.va!=
l.i.Wb.pi){var m=b.filter;var n=this.slice.fd(m.measure.A)}k=this.wb.indexOf(b.A)<this.wb.length-1;var p=this.FD(b,l.i.ha.Ia);for(let v=0;v<a.length;v++){const y=b.za(a[v]);var t=p[y.level.A];0===v&&this.Jda(y);if(void 0===c[y.ordinal]&&!t||y.dc)continue;var r=d.slice(0);r.push(y.ordinal);if(this.Y2(r,y,m,n,t))continue;t=k&&this.ta.wh(r);const A=!y.Hh&&this.ta.Ih(r,y);if(this.Ie){const C=this.Cj(this.Mb,r,this.cO);0<=C&&!this.$b.bb&&(this.Gc=e.Ja.re(this.Gc,g,C));t||this.$b.bb||this.r5(this.Mb,r)}else this.wj(this.Mb,
r),this.Gc.push(g);if(Date.now()-this.yZ<e.model.C.F.oT)A?this.Ida(b,y,c,d,g+1):t&&this.o1(c[y.ordinal],r,g+1);else if(A||t)this.UR=!0}}}FD(b,a){const c={};for(let d=0;d<b.ua.length;d++){const g=b.ua.fa(d);a==l.i.ha.Ia?c[g.A]=this.ta.vL(g):a==l.i.ha.Oa&&(c[g.A]=this.ta.uL(g))}return c}r5(b,a){var c=b[0].length;for(--c;0<=c;c--){var d=!0;for(var g=0;g<a.length;g++)if(b[g][c]!=a[g]){d=!1;break}if(d){d=!0;for(g=a.length;g<b.length;g++)if(0!=b[g][c]){d=!1;break}d?this.Ej&&2==this.Mi[c]&&(this.Mi[c]=3):
(this.sA(b,c),this.Gc=e.Ja.Qr(this.Gc,c),this.Mi.splice(c,1),this.Ob.bb&&(this.Fc=e.Ja.Qr(this.Fc,c)))}}if(this.Ej)for(b=b[0].length,a=0;a<b;a++)3==this.Mi[a]&&(this.Mi[a]=1,this.Gc[a]=this.kea(this.Mb,a))}wKa(b){if(b&&0!=b.length){var a=b[0].length;for(let c=b.length-1;0<=c;c--){for(let d=0;d<a;d++)if(0!=b[c][d])return;--b.length}}}pia(b,a){var c=b[0].length;for(--c;0<=c;c--){var d=!0;for(var g=0;g<a.length;g++)if(b[g][c]!=a[g]){d=!1;break}if(d){d=!0;for(g=a.length;g<b.length;g++)if(0!=b[g][c]){d=
!1;break}d||(this.sA(b,c),this.Jc=e.Ja.Qr(this.Jc,c),this.Nb.bb&&(this.Fc=e.Ja.Qr(this.Fc,c)))}}}wj(b,a,c){0===b.length&&(b[0]=[]);if(a.length>b.length)for(var d=b.length;d<a.length;d++){b[d]=[];for(let g=0;g<b[0].length;g++)b[d].push(0)}for(d=0;d<a.length;d++)b[d].push(a[d]);if(b.length>a.length)for(a=a.length;a<b.length;a++)b[a].push(0);void 0!==c&&this.Fc.push(c)}Cj(b,a,c=null,d=0){if(a.length<b.length){a=a.slice(0);for(var g=a.length;g<b.length;g++)a.push(0)}if(a.length>b.length)for(g=b.length;g<
a.length;g++){b[g]=[];for(let k=0;k<b[0].length;k++)b[g].push(0)}return this.ica(null!==c?c:b,a)?-1:(c=this.Mza(b,a)+d,this.qDa(b,a,c),c)}Mza(b,a){var c=0;let d=b[0].indexOf(0);0>d&&(d=b[0].length-1);for(let g=0;g<b.length;g++){c=b[g].indexOf(a[g],c);if(-1===c)break;if(c<d)d=b[g].lastIndexOf(a[g],d-1)+1;else break}return d}qDa(b,a,c){for(let d=0;d<b.length;d++)b[d]=e.Ja.re(b[d],void 0!==a[d]?a[d]:0,c)}ica(b,a){if(a.length<b.length){a=a.slice(0);for(var c=a.length;c<b.length;c++)a.push(0)}if(a.length>
b.length){c=!0;for(let d=b.length;d<a.length;d++)if(0!=a[d]){c=!1;break}if(!c)return!1;a=a.slice(0,b.length)}return 0<=this.tM(b,a)}tM(b,a,c=!0){const d=b[0].length;for(;!c&&a.length<d;)a.push(0);for(c=0;c<d;c++){let g=!0;for(let k=0;k<b.length;k++)if(b[k][c]!=a[k]){g=!1;break}if(g)return c}return-1}GD(b,a){if(0==b.length||void 0==b[0][a])return null;for(var c=[],d=0;d<b.length;d++)0!=b[d][a]&&c.push(b[d][a]);return c}qM(b,a,c,d){if(!this.Ej){var g=a.length;(g=this.Ob.bb&&a.length>=this.Vj?this.Dn.fa(g+
1):this.Dn.fa(g))&&this.tT(g,g.pd,b,a,c,d)}}tT(b,a,c,d,g,k){if(null!=a){if(null!=b.ic&&!this.ta.Ih(d,a)){if(0<d.length){var m=d.slice(0,-1);m.push(a.ordinal)}else m=d.slice(0);this.ta.Vm(m,a,l.i.ha.Ia,b.zf)}m=d.length;a=null==b.ic||a.level.yb>=b.ic.yb?b.jk(a,!1,""):b.nv(b.zf);a=this.e6(b,a,c,d);if(b.filter.ji&&b.filter.query.va!=l.i.Wb.Rj&&b.filter.query.va!=l.i.Wb.pi){var n=b.filter;var p=this.slice.fd(n.measure.A)}var t=this.FD(b,l.i.ha.Ia);for(let C=0;C<a.length;C++){const B=b.za(a[C]);var r=t[B.level.A];
if((null!=c[B.ordinal]||r)&&!B.dc){var v=d.slice(0);v.push(B.ordinal);if(!this.Y2(v,B,n,p,r)){r=this.ta.wh(v,g);var y=this.ta.Ih(v,B);if(m<this.Vj){if(this.Ie){var A=this.Cj(this.Eg,v,this.mw);0<=A&&(this.Gc=e.Ja.re(this.Gc,k,A),this.Fc=e.Ja.re(this.Fc,-1,A))}else this.wj(this.Eg,v,-1),this.Gc.push(k);if(m==this.Vj-1&&r)for(r=0;r<this.mb.length;r++)this.ta.Ih(v,B,r)?this.tT(b,B,c,d,r,k+2):(this.Ie?(y=this.Cj(this.Eg,v,this.mw),0<=y&&(this.Gc=e.Ja.re(this.Gc,k+1,y),this.Fc=e.Ja.re(this.Fc,r,y))):(this.wj(this.Eg,
v,r),this.Gc.push(k+1)),this.ta.wh(v)&&this.qM(c[B.ordinal],v,r,k+2));else{for(A=0;A<this.mb.length;A++)if(this.Cja(b)||!r&&!y||this.Qu)if(this.Ie){const H=this.Cj(this.Eg,v,this.mw);0<=H&&(this.Gc=e.Ja.re(this.Gc,k+1,H),this.Fc=e.Ja.re(this.Fc,A,H));r||this.r5(this.Eg,v)}else this.wj(this.Eg,v,A),this.Gc.push(k+1);this.ta.Ih(v,B,g)?this.tT(b,B,c,d,g,k+2):this.ta.wh(v,g)&&this.qM(c[B.ordinal],v,g,k+2)}}else this.Ie?(y=this.Cj(this.Eg,v,this.mw),0<=y&&(this.Gc=e.Ja.re(this.Gc,k,y),this.Fc=e.Ja.re(this.Fc,
g,y))):(this.wj(this.Eg,v,g),this.Gc.push(k)),this.ta.Ih(v,B,g)?this.tT(b,B,c,d,g,k+1):r&&this.qM(c[B.ordinal],v,g,k+1)}}}}}$$(b,a,c,d,g){if(null!=a){if(null!=b.ic&&!this.ta.Ih(d,a)){if(0<d.length){var k=d.slice(0);k.push(a.ordinal)}else k=d.slice(0);this.ta.Vm(k,a,l.i.ha.Ia,b.zf)}a=null==b.ic||a.level.yb>=b.ic.yb?b.jk(a,!1,""):b.nv(a.hierarchy.zf);a=this.e6(b,a,c,d);if(b.filter.ji&&b.filter.query.va!=l.i.Wb.Rj&&b.filter.query.va!=l.i.Wb.pi){var m=b.filter;var n=this.slice.fd(m.measure.A)}k=!1;var p=
this.FD(b,l.i.ha.Ia);for(let A=0;A<a.length;A++){const C=b.za(a[A]);var t=p[C.level.A];0===A&&this.Jda(C);if(null==c[C.ordinal]&&!t||C.dc)continue;var r=d.slice(0);r.push(C.ordinal);if(this.Y2(r,C,m,n,t))continue;var v=this.ta.Ih(r,C);t=this.ta.wh(r);C.fh&&t&&!v&&(t=!1);var y=0<this.Mb.length?this.Mb[0].length:0;!this.Ie&&this.Uk>r.length&&(this.Mi[y]=1,void 0==this.Gc[y]&&(this.Gc[y]=g));const B=Date.now()-this.yZ;if(B<e.model.C.F.oT||B>=e.model.C.F.oT&&0<g)v?this.$$(b,C,c,d,g+1):t&&this.o1(c[C.ordinal],
r,g+1);else if(v||t)this.UR=!0,0===g&&t&&(this.NKa(r,y),t=!1);v||t?(this.Cja(b)&&(this.Ie?(t=this.Cj(this.Mb,r,this.cO),0<=t?(this.Mi.splice(t,0,2),this.Gc=e.Ja.re(this.Gc,g,t)):(r=this.tM(this.Mb,r,!1),0<=r&&(this.Mi[r]=2))):(this.wj(this.Mb,r),this.Gc[this.Mb[0].length-1]=g,this.Mi[this.Mb[0].length-1]=2)),v&&this.Gc[y]>g&&(this.Gc[y]=g,this.Mi[y]=0)):this.Ie?(v=1<r.length&&this.hxa(this.Mb,d),v=this.Cj(this.Mb,r,this.cO,v?-1:0),0<=v&&(this.Mi.splice(v,0,g==this.Uk-1?0:1),this.Gc=e.Ja.re(this.Gc,
g,v),1<r.length&&(0==A&&(this.Mi[v]=1,this.Gc[v]=this.kea(this.Mb,v)),0==k&&(v=d.slice(0),v.push(0),v=this.tM(this.Mb,v),0<=v&&2!=this.Mi[v]&&(k=!0,this.Mi[v]=2,this.Gc[v]=g-1)))),t||this.$b.bb||this.r5(this.Mb,r)):(this.wj(this.Mb,r),void 0==this.Mi[this.Mb[0].length-1]&&(this.Mi[this.Mb[0].length-1]=0,this.Gc[this.Mb[0].length-1]=g))}}}kea(b,a){if(0==a)return 0;let c=0;for(let d=0;d<b.length&&b[d][a]==b[d][a-1];d++)c++;return c}hxa(b,a){a=a.slice(0);a.push(0);let c=1;for(;c<a.length;){if(this.ica(b,
a))return!0;c++;a[a.length-c]=0}return!1}NKa(b,a){this.Gc[a]=0;this.ta.collapse(b,this.Ob.A,void 0);b=[-1,b[0]];a=this.xH().slice(0);a.push(b);this.F5(a)}Jda(b){this.Hda(this.RR,b)}uza(b){this.Hda(this.$Q,b)}Hda(b,a){-1===b.indexOf(a.level.A)&&(1>=(null!=a.hierarchy.ic?a.level.yb-a.hierarchy.ic.yb+1:a.level.yb)?b.push(a.level.A):b.splice(b.indexOf(a.parent.level.A)+1,0,a.level.A))}mga(b,a){for(let c=0;c<b.length;c++){const d=a.fa(c),g=this.LBa(d,b[c]);if(d.filter.Fh){let k=-1;for(let m=0;m<g.length;m++){if(0>
d.eb.indexOf(g[m])&&1===g.length)return!1;const n=d.eb.indexOf(g[m]);k=n>k?n:k}if(-1===k)return!1}}return!0}LBa(b,a){const c=[];for(b=b.za(a);0!==b.ordinal;)c.push(b.ordinal),b=b.parent;return c}e6(b,a,c,d){if(!this.Oz)return a;var g=this.Xl;if(!this.mga(g,this.Fb))return a;var k=[],m=[],n=[],p=[];const t=this.FD(b,l.i.ha.Ia);for(let v=0;v<a.length;v++){const y=b.za(a[v]);var r=t[y.level.A];null==c[y.ordinal]&&!r||y.dc||(r=d.slice(0),r.push(y.ordinal),r=this.La(r,g,this.lr),isNaN(r)?n.push(y.ordinal):
(k.push(r),m.push(y.ordinal)))}a=this.Th!==l.i.Ba.Nc?e.Ja.sort(k,e.Ja.Ti|e.Ja.Tv):e.Ja.sort(k,e.Ja.Ti|e.Ja.tp|e.Ja.Tv);for(c=0;c<a.length;c++)b=m[a[c]],null!=b&&p.push(b);for(m=0;m<n.length;m++)b=n[m],this.Th==l.i.Ba.Nc?p.push(b):p.splice(m,0,b);return p}Hja(b,a,c,d){if(!this.MD)return a;var g=this.Mj;if(!this.mga(g,this.wb))return a;var k=[],m=[],n=[],p=[];const t=this.FD(b,l.i.ha.Oa);for(let v=0;v<a.length;v++){const y=b.za(a[v]);var r=t[y.level.A];null==c[y.ordinal]&&!r||y.dc||(r=d.slice(0),r.push(y.ordinal),
r=this.La(g,r,this.cp),isNaN(r)?n.push(y.ordinal):(k.push(r),m.push(y.ordinal)))}a=this.gk!==l.i.Ba.Nc?e.Ja.sort(k,e.Ja.Ti|e.Ja.Tv):e.Ja.sort(k,e.Ja.Ti|e.Ja.tp|e.Ja.Tv);for(c=0;c<a.length;c++)b=m[a[c]],null!=b&&p.push(b);for(m=0;m<n.length;m++)b=n[m],this.gk==l.i.Ba.Nc?p.push(b):p.splice(m,0,b);return p}Gda(b,a,c){var d=a.length;(d=this.Nb.bb&&a.length>=this.Vj?this.Dm.fa(d+1):this.Dm.fa(d))&&d.pd&&this.Fda(d,d.pd,b,a,c)}Fda(b,a,c,d,g){if(null!=b.ic&&!this.ta.Fj(d,a)){if(0<d.length){var k=d.slice(0);
k.push(a.ordinal)}else k=d.slice(0);this.ta.Vm(k,a,l.i.ha.Oa,b.zf)}a=null==a.hierarchy.ic||a.level.yb>=b.ic.yb?b.jk(a,!1,""):b.nv(b.zf);a=this.Hja(b,a,c,d);if(b.filter.ji&&b.filter.query.va!=l.i.Wb.Rj&&b.filter.query.va!=l.i.Wb.pi){var m=b.filter;var n=this.slice.fd(m.measure.A)}k=this.FD(b,l.i.ha.Oa);for(let r=0;r<a.length;r++){const v=b.za(a[r]);var p=k[v.level.A];0==r&&this.uza(v);if(null==c[v.ordinal]&&!p||v.dc)continue;var t=d.slice(0);t.push(v.ordinal);if(this.Kfa(t,v,m,n,p))continue;p=this.ta.Gj(t);
const y=this.ta.Fj(t,v);if(this.JI(p,y)&&!y)this.vC(d.length);else if(this.rt(b)||!p||this.Qu)if(this.Ie){const A=this.Cj(this.bd,t,this.JL);0<=A&&!this.Lb.bb&&(this.Jc=e.Ja.re(this.Jc,g,A));p||this.Lb.bb||this.pia(this.bd,t)}else this.wj(this.bd,t),this.Jc.push(g);else this.rt(b)||this.vC(d.length);y?this.Fda(b,v,c,d,g+1):p&&this.Gda(c[v.ordinal],t,g+1);this.JI(p,y)&&(this.rt(b)||!p||this.Qu)&&(this.Ie?(t=this.Cj(this.bd,t,this.JL),0<=t&&(this.Jc=e.Ja.re(this.Jc,-1,t))):(this.wj(this.bd,t),this.Jc.push(-1)))}}oM(b,
a,c,d){var g=a.length;(g=this.Nb.bb&&a.length>=this.Vj?this.Dm.fa(g+1):this.Dm.fa(g))&&g.pd&&this.sT(g,g.pd,b,a,c,d)}get S5(){return"on"===e.model.C.F.Lf||"columns"===e.model.C.F.Lf||0===this.rows.length}get Z5(){return"on"===e.model.C.F.Lf||"rows"===e.model.C.F.Lf||0===this.Ka.length}rt(b){return e.model.C.F.Bk&&void 0!==b&&void 0!==b.bf?b.bf:"on"===e.model.C.F.bf||"columns"===e.model.C.F.bf}JI(b,a){return!b&&!a||this.Qu?!1:"after"===e.model.C.F.IL}Cja(b){return e.model.C.F.Bk&&void 0!==b&&void 0!==
b.bf?b.bf:"on"===e.model.C.F.bf||"rows"===e.model.C.F.bf}get Qu(){return!1}sT(b,a,c,d,g,k){if(null!=b.ic&&!this.ta.Fj(d,a)){if(0<d.length){var m=d.slice(0,-1);m.push(a.ordinal)}else m=d.slice(0);this.ta.Vm(m,a,l.i.ha.Oa,b.zf)}m=d.length;var n=null==b.ic||a.level.yb>=b.ic.yb?b.jk(a,!1,""):b.nv(b.zf);n=this.Hja(a.hierarchy,n,c,d);if(b.filter.ji&&b.filter.query.va!=l.i.Wb.Rj&&b.filter.query.va!=l.i.Wb.pi){var p=a.hierarchy.filter;var t=this.slice.fd(p.measure.A)}a=this.FD(b,l.i.ha.Oa);for(let B=0;B<
n.length;B++){var r=b.za(n[B]),v=a[r.level.A];if((null!=c[r.ordinal]||v)&&!r.dc){var y=d.slice(0);y.push(r.ordinal);if(!this.Kfa(y,r,p,t,v)){v=this.ta.Gj(y,g);var A=this.ta.Fj(y,r);if(m<this.Vj)if(this.Nb.bb&&this.fC<k+1&&(this.fC=k+1),m==this.Vj-1&&v)if(A){for(v=0;v<this.mb.length;v++)this.Ie?(A=this.Cj(this.og,y,this.Tt),0<=A&&(this.Jc=e.Ja.re(this.Jc,k,A),this.Fc=e.Ja.re(this.Fc,g,A))):(this.wj(this.og,y,v),this.Jc.push(k));this.sT(b,r,c,d,g,k+1)}else for(A=0;A<this.mb.length;A++){if(this.rt(b)||
!v||this.Qu)if(this.Ie){var C=this.Cj(this.og,y,this.Tt);0<=C&&(this.Jc=e.Ja.re(this.Jc,k,C),this.Fc=e.Ja.re(this.Fc,A,C))}else this.wj(this.og,y,A),this.Jc.push(k);else this.rt(b)||this.vC(m);this.ta.Gj(y,A)&&this.oM(c[r.ordinal],y,A,k+1)}else{if(this.JI(v,A)&&!A)this.vC(m);else if(this.rt(b)||!v||this.Qu)for(C=0;C<this.mb.length;C++)if(this.Ie){const H=this.Cj(this.og,y,this.Tt);0<=H&&(this.Jc=e.Ja.re(this.Jc,k,H),this.Fc=e.Ja.re(this.Fc,C,H));v||this.pia(this.og,y)}else this.wj(this.og,y,C),this.Jc.push(k);
else this.rt(b)||this.vC(m);this.ta.Fj(y,r,g)?this.sT(b,r,c,d,g,k+1):v&&this.oM(c[r.ordinal],y,g,k+1);if(this.JI(v,A)&&(this.rt(b)||!v||this.Qu))for(r=0;r<this.mb.length;r++)this.Ie?(v=this.Cj(this.og,y,this.Tt),0<=v&&(this.Jc=e.Ja.re(this.Jc,-1,v),this.Fc=e.Ja.re(this.Fc,r,v))):(this.wj(this.og,y,r),this.Jc.push(-1))}else this.JI(v,A)&&!A?this.vC(m):this.rt(b)||!v||this.Qu?this.Ie?(C=this.Cj(this.og,y,this.Tt),0<=C&&(this.Jc=e.Ja.re(this.Jc,k,C),this.Fc=e.Ja.re(this.Fc,g,C))):(this.wj(this.og,y,
g),this.Jc.push(k)):this.rt(b)||this.vC(m),this.ta.Fj(y,r,g)?this.sT(b,r,c,d,g,k+1):v&&this.oM(c[r.ordinal],y,g,k+1),this.JI(v,A)&&(this.rt(b)||!v||this.Qu)&&(this.Ie?(y=this.Cj(this.bd,y,this.JL),0<=y&&(this.Jc=e.Ja.re(this.Jc,-1,y))):(this.wj(this.bd,y),this.Jc.push(-1)))}}}}vC(b){void 0===this.xz[this.Jc.length]&&(this.xz[this.Jc.length]=[]);-1==this.xz[this.Jc.length].indexOf(b)&&this.xz[this.Jc.length].push(b)}get kb(){return 0==this.bd.length&&0==this.Mb.length}set kb(b){}dU(b){return this.Ej?
this.Gc[this.Ob.bb?Math.floor(b/this.mb.length):b]:this.Gc[b]}LH(b){return this.Ej?this.Mi[this.Ob.bb?Math.floor(b/this.mb.length):b]:this.Mi[b]}Zw(){return 1}EM(b){return this.Jc[b]}X2(b){return this.xz[b]}fU(b){return this.Ob.bb&&(b.length>this.Vj||0==this.Vj)?b.length:b.length-1}eU(b){return this.Dn.fa(this.fU(b))}MT(b){return this.Nb.bb&&(b.length>this.Vj||0==this.Vj)?b.length:b.length-1}yH(b){return this.Dm.fa(this.MT(b))}get Fd(){return 0<this.bd.length?this.bd[0].length:0}set Fd(b){}get Ed(){return 0<
this.Mb.length?this.Mb[0].length:0}set Ed(b){}get Sn(){return 0<this.og.length?this.og[0].length:0}set Sn(b){}get Rn(){return this.Ej?(this.$b&&this.$b.bb?this.mb.length:1)*(0<this.Mb.length?this.Mb[0].length:0):this.Eg&&0<this.Eg.length?this.Eg[0].length:0}set Rn(b){}wh(b,a){return this.ta.wh(b,a)}Gj(b,a){return this.ta.Gj(b,a)}Ih(b,a,c){return this.ta.Ih(b,a,c)}Fj(b,a,c){return this.ta.Fj(b,a,c)}Hz(b,a=!0){b=b.slice(0);var c=(a=a&&this.Nb.bb)?b.pop():-1,d=this.og;if(0<d.length)for(var g=0;g<d[0].length;g++){var k=
!0;if(!a||!this.nm||c==this.Fc[g]){var m=this.GD(d,g);if(m.length==b.length){for(var n=0;n<m.length;n++)if(m[n]!=b[n]){k=!1;break}if(k)return g}}}return-1}Lz(b,a=!0){b=b.slice(0);var c=(a=a&&this.Ob.bb)?b.pop():-1,d=this.Ej?this.Mb:this.Eg;if(0<d.length)for(var g=0;g<d[0].length;g++){var k=!0;if(!a||!this.nm||c==this.Fc[g]){var m=this.GD(d,g);if(m.length==b.length){for(var n=0;n<m.length;n++)if(m[n]!=b[n]){k=!1;break}if(k)return g}}}return-1}Vn(b,a=!1){return 0>b||null==this.Ob||null==this.mb?null:
a&&this.Ob.bb&&this.nm?this.Ej?(b=Math.floor(b/this.mb.length),void 0==this.Mb[0][b]?null:this.GD(this.Mb,b)):void 0==this.Eg[0][b]?null:this.GD(this.Eg,b):e.v(this.Mb[0])||e.v(this.Mb[0][b])?null:this.GD(this.Mb,b)}ak(b,a=!1){return 0>b||null==this.Nb||null==this.mb?null:a&&this.Nb.bb&&this.nm?void 0==this.og[0][b]?null:this.GD(this.og,b):void 0==this.bd[0]?[0]:void 0==this.bd[0][b]?null:this.GD(this.bd,b)}K1(){return null}hU(b){return this.Ej&&this.Ob.bb?void 0==this.Mb[0][Math.floor(b/this.Da.length)]?
-1:b%this.mb.length:void 0==this.Fc[b]?-1:this.Ob.bb&&this.nm?this.Fc[b]:-1}OT(b){return void 0===this.Fc[b]?-1:this.Nb.bb&&this.nm?this.Fc[b]:-1}Gi(b,a){if(void 0!==this.mb&&void 0!==this.Ob&&void 0!==this.Nb)return this.nm?this.Ob.bb?this.Ej?(a=b%this.mb.length,void 0==this.Mb[0][Math.floor(b/this.Da.length)]?this.mb[0]:this.mb[a]):void 0===this.Fc[b]?this.mb[0]:this.mb[this.Fc[b]]:void 0===this.Fc[a]?this.mb[0]:this.mb[this.Fc[a]]:this.mb[0]}cd(b,a,c){return this.ta.cd(b,a,c)}save(b,a,c,d,g){return this.ta.save(b,
a,c,d,g)}HD(b,a,c){return this.ta.HD(b,a,c)}Ps(b,a){return this.ja.ga.Ec?null:null==b&&null==a?null:this.ta.oCa(b,a)}Wg(b,a,c){b=this.ta.La(b,a,c);this.ja.ga.Aa!==l.i.ra.Cc&&this.ja.ga.Aa!==l.i.ra.Pd||!e.model.C.F.co||(b=!c.Qa&&l.Kt.R().B2(b)?l.Kt.R().d2(b):b);return b}La(b,a,c){if(c.$===l.i.ea.cs)return b=this.Wg(b,a,c),c=this.Wg([],[],c),isNaN(b)&&!isNaN(c)?0:Math.abs(100*b/c);if(c.$===l.i.ea.Cp)return b=this.Wg(b,a,c),c=this.Wg([],a,c),isNaN(b)&&!isNaN(c)?0:Math.abs(100*b/c);if(c.$===l.i.ea.Rq)return a=
this.Wg(b,a,c),c=this.Wg(b,[],c),isNaN(a)&&!isNaN(c)?0:Math.abs(100*a/c);if(c.$===l.i.ea.Qq){var d=this.Wg(b,a,c);b=b.slice(0,b.length-1);c=this.Wg(b,a,c);return isNaN(d)&&!isNaN(c)?0:Math.abs(100*d/c)}if(c.$===l.i.ea.Pq)return d=this.Wg(b,a,c),a=a.slice(0,a.length-1),c=this.Wg(b,a,c),isNaN(d)&&!isNaN(c)?0:Math.abs(100*d/c);if(c.$===l.i.ea.Si){d=this.Wg([],[],c);const g=this.Wg(b,[],c),k=this.Wg([],a,c);c=this.Wg(b,a,c);return Math.abs(d*c/(k*g))}return c.$===l.i.ea.ko?this.vea(b,a,c,!1):c.$===l.i.ea.qn?
this.wea(b,a,c,!1):c.$===l.i.ea.qo?this.vea(b,a,c,!0):c.$===l.i.ea.sn?this.wea(b,a,c,!0):c.$===l.i.ea.tn||c.$===l.i.ea.so?this.ta.Sea(b,a,c):this.Wg(b,a,c)}wea(b,a,c,d){var g=-1;if(0<this.Ka.length){var k=this.Nb.bb&&1<this.mb.length;g=a.slice();k&&g.push(0);g=this.Hz(g,k);if(0==g||0==a.length)return NaN;if(0>g)return 0;k=this.ak(k&&a.length<=this.Nb.ke?g-this.mb.length:g-1,k);if(null==k||a.length!=k.length&&1!=a.length)return NaN;a.length!=k.length&&1==a.length&&(k=this.kCa(g,a.length));if(null==
k)return NaN;k=this.Wg(b,k,c);isNaN(k)&&!d&&(k=0)}b=this.Wg(b,a,c);isNaN(b)&&0<g&&!d&&(b=0);return d?(b-k)/k*100:b-k}vea(b,a,c,d){var g=-1;if(0<this.rows.length){var k=this.Ob.bb&&1<this.mb.length;g=b.slice();k&&g.push(0);g=this.Lz(g,k);if(0==g||0==b.length)return NaN;if(0>g)return 0;k=this.Vn(k&&b.length<=this.Ob.ke?g-(this.mb.length+1):g-1,k);if(null==k||b.length!=k.length&&1!=b.length)return NaN;b.length!=k.length&&1==b.length&&(k=this.lCa(g,b.length));if(null==k)return NaN;k=this.Wg(k,a,c);isNaN(k)&&
!d&&(k=0)}b=this.Wg(b,a,c);isNaN(b)&&0<g&&!d&&(b=0);return d?(b-k)/k*100:b-k}lCa(b,a){if(0>b||null==this.Ob||null==this.mb||e.v(this.Mb[0])||e.v(this.Mb[0][b]))return null;b=this.Lia(this.Mb,a,b);return 0<=b&&0==this.Mb[a][b]?this.Qea(b,a,this.Mb):null}kCa(b,a){if(0>b||null==this.Ob||null==this.mb)return null;if(void 0==this.bd[0])return[0];if(void 0==this.bd[0][b])return null;b=this.Lia(this.bd,a,b);return 0<=b&&0==this.bd[a][b]?this.Qea(b,a,this.bd):null}Qea(b,a,c){let d=[];for(let g=0;g<a;g++)d.push(c[g][b]);
return d}Lia(b,a,c){if(b[a]&&0==b[a][c]){for(c--;0!=b[a][c]&&0<=c;)c--;return c}return-1}eq(b,a,c){b=this.ta.La(b,a,c);return l.Kt.R().ECa(b)}ww(b,a,c,d){return this.ta.ww(b,a,c,d)}Uw(b){this.$i&&(this.ja.ga.Ec||this.oza(b))}oza(b){var a=this.slice.rows.Bb(b.A)?l.i.ha.Ia:l.i.ha.Oa;b=a==l.i.ha.Ia?this.slice.wb.indexOf(b.A):this.slice.Fb.indexOf(b.A);if(b+1!=(a==l.i.ha.Ia?this.slice.wb.length:this.slice.Fb.length)){var c=[],d=(a==l.i.ha.Ia?this.slice.wb:this.slice.Fb).slice(0,b+1);this.$M([],d,c);d=
a==this.slice.As.A?this.slice.As.ke:-1;for(var g=this.slice.gd(),k=0;k<c.length;k++)if(0<=d&&d<=b&&1<g.length)for(var m=0;m<g.length;m++){var n=g[m];c[k].length>d?this.expand(c[k],a,n,!1):this.expand(c[k],a,void 0,!1)}else this.expand(c[k],a,void 0,!1);this.ja.Ha(new l.AY(l.i.Md.xF));this.ja.Ya(e.model.Xb.Vc.rk)}}$M(b,a,c,d=!0){if(0!=a.length){var g=a.fa(0);var k=g.filter.Gh?g.eb.length:g.Zi;for(var m=0;m<k;m++){var n=g.filter.Gh?g.za(g.eb[m]):g.za(m);if(!n.dc){var p=b.slice(0);p.push(n.ordinal);
(d||!d&&1==a.length)&&c.push(p.slice(0));this.$M(p.slice(0),a.slice(1),c,d)}}}}Ew(b){this.$i&&(this.ja.ga.Ec||this.mwa(b))}mwa(b){var a=this.slice.rows.Bb(b.A)?l.i.ha.Ia:l.i.ha.Oa;b=a==l.i.ha.Ia?this.slice.wb.indexOf(b.A):this.slice.Fb.indexOf(b.A);if(b+1!=(a==l.i.ha.Ia?this.slice.wb.length:this.slice.Fb.length)){var c=[],d=(a==l.i.ha.Ia?this.slice.wb:this.slice.Fb).slice(0,b+1);this.$M([],d,c,!1);d=a==this.slice.As.A?this.slice.As.ke:-1;for(var g=this.slice.gd(),k=0;k<c.length;k++)if(0<=d&&d<=b&&
1<g.length)for(var m=0;m<g.length;m++){var n=g[m];c[k].length>d?this.collapse(c[k],a,n,!1):this.collapse(c[k],a,void 0,!1)}else this.collapse(c[k],a,void 0,!1);this.ja.Ha(new l.AY(l.i.Md.m7));this.ja.Ya(e.model.Xb.Vc.rk)}}sort(){this.Ie=!1;this.aW();this.ja.Ya(e.model.Xb.Vc.rk)}get dV(){return this.vaa}get cV(){return this.uaa}expand(b,a,c,d=!0){a==l.i.ha.Ia&&(this.vaa=b);a==l.i.ha.Oa&&(this.uaa=b);var g=this.slice.td(a),k=b.slice(0);k.unshift(c&&g.bb?c.index:-1);if(a==l.i.ha.Ia)if(this.WD){g=this.xH();
var m=k.toString().toLocaleLowerCase(),n=-1;for(let p=0;p<g.length;p++)if(m===g[p].toString().toLocaleLowerCase()){n=p;break}0<=n&&g.splice(n,1);this.F5(g)}else g=this.NM().slice(0),g.push(k),this.eja(g);if(a==l.i.ha.Oa)if(this.UD){g=this.tD();k=k.toString().toLocaleLowerCase();m=-1;for(n=0;n<g.length;n++)if(k===g[n].toString().toLocaleLowerCase()){m=n;break}0<=m&&g.splice(m,1);this.Wia(g)}else g=this.LM().slice(0),g.push(k),this.dja(g);this.ja.expand(b,a,c,d)}collapse(b,a,c,d=!0){a==l.i.ha.Ia&&(this.vaa=
b.slice(0,b.length-1));a==l.i.ha.Oa&&(this.uaa=b.slice(0,b.length-1));var g=this.slice.td(a),k=b.slice(0);k.unshift(c&&g.bb?c.index:-1);if(a==l.i.ha.Ia)if(this.WD)g=this.xH().slice(0),g.push(k),this.F5(g);else{g=this.NM();var m=k.toString().toLocaleLowerCase(),n=-1;for(let p=0;p<g.length;p++)if(m===g[p].toString().toLocaleLowerCase()){n=p;break}0<=n&&g.splice(n,1);this.eja(g)}if(a==l.i.ha.Oa)if(this.UD)g=this.tD().slice(0),g.push(k),this.Wia(g);else{g=this.LM();k=k.toString().toLocaleLowerCase();
m=-1;for(n=0;n<g.length;n++)if(k===g[n].toString().toLocaleLowerCase()){m=n;break}0<=m&&g.splice(m,1);this.dja(g)}this.ja.collapse(b,a,c,d);d&&this.ja.Ya(e.model.Xb.Vc.rk)}Xp(b,a,c,d){var g=this.slice.td(c),k=[],m=b.slice(0);m.unshift(a.A);m.unshift(d&&g.bb?d.index:-1);if(c==l.i.ha.Ia)if(this.VD)k=this.IM().slice(0),k.push(m),this.bja(k);else{g=this.EH();for(var n=0;n<g.length;n++){var p=g[n];"string"==typeof p[0]&&(p=p.slice(1));p.toString().toLocaleLowerCase()!=m.toString().toLocaleLowerCase()&&
k.push(p)}this.J5(k)}if(c==l.i.ha.Oa)if(this.TD)k=this.HM().slice(0),k.push(m),this.aja(k);else{g=this.DH();for(n=0;n<g.length;n++)p=g[n],"string"==typeof p[0]&&(p=p.slice(1)),p.toString().toLocaleLowerCase()!=m.toString().toLocaleLowerCase()&&k.push(p);this.I5(k)}this.ja.Xp(b,a,c,d);this.ja.Ya(e.model.Xb.Vc.rk)}iva(b,a){for(;void 0!==b&&b.level.A!=a;)b=b.parent;return b}Ee(b,a,c,d){var g=this.slice.td(c),k=[],m=b.slice(0);m.unshift(a.A);m.unshift(d&&g.bb?d.index:-1);if(c==l.i.ha.Ia)if(this.VD){g=
this.IM();for(var n in g){var p=g[n];p.toString().toLocaleLowerCase()!=m.toString().toLocaleLowerCase()&&k.push(p)}this.bja(k)}else k=this.EH().slice(0),k.push(m),this.J5(k);if(c==l.i.ha.Oa)if(this.TD){g=this.HM();for(n in g)p=g[n],p.toString().toLocaleLowerCase()!=m.toString().toLocaleLowerCase()&&k.push(p);this.aja(k)}else k=this.DH().slice(0),k.push(m),this.I5(k);this.ja.Ee(b,a,c,d);this.ja.Ya(e.model.Xb.Vc.rk)}Vm(b,a,c,d,g){var k=this.slice.td(c),m=b.slice(0);m.unshift(a.A);m.unshift(d&&k.bb?
d.index:-1);m.unshift(g);c==l.i.ha.Ia?(k=this.EH().slice(0),k.push(m),this.J5(k)):(k=this.DH().slice(0),k.push(m),this.I5(k));this.ja.Vm(b,a,c,d,g)}j3(b){return!0===this.sW[b]}KW(b){this.sW[b]=!0}R2(b){return!0===this.BS[b]}G5(b,a=!0){this.BS[b]=a}static dispose(){f.instance&&(f.instance.rA(),f.instance.Vd());f.instance=null}}f.counter=0;h.QQ=f})(l.Te||(l.Te={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static get Hca(){if(f.J)return f.J instanceof h.cY?"flat":f.J instanceof h.jP?"chart":"pivot"}static bka(b){var a=b.U("gridType");return b.U("viewType")===e.K.Jd.nj?"chart":a===e.K.Y.wf.rj?"flat":"pivot"}static Bc(b="",a=!0){""==b&&(b=e.model.C.F.me==e.K.Jd.nj?"chart":e.model.C.F.sc?"flat":"pivot");b="flat"==b?h.cY.R():"chart"==b?h.jP.R():h.QQ.R();b.bS();f.J!=b?(f.J&&f.J.rA(),f.J=b,b.load()):a&&e.model.C.F.uv&&(b.load(),e.model.C.F.uv=!1);f.J=b;return f.J}static J1(b){f.Bc("chart");
return b?h.Z9.R(f.J):f.J}static dispose(){h.cY.dispose();h.jP.dispose();h.QQ.dispose();h.Z9.dispose();f.J=null}}f.J=null;h.Qi=f;(function(b){b.aQa="pivot";b.rj="flat";b.XNa="chart"})(h.Ima||(h.Ima={}))})(l.Te||(l.Te={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends w.Mh{constructor(){super();this.mb=[];this.dG=!1;this.pA=()=>this.qE();this.g_=!1;this.Zu=[];this.ol=[];this.wa=l.Ma.R()}get ta(){return null!=this.FK?this.FK:this.wa.ta}set ta(b){this.FK=b}get slice(){return null!=this.Pb?this.Pb:this.wa.qa}set slice(b){this.Pb=b}get Da(){return this.mb}set Da(b){}get nm(){return 1<this.mb.length}set nm(b){}get $i(){return this.slice&&this.dG}set $i(b){}static R(){null==f.instance&&(f.instance=new f);return f.instance}bS(){this.wa.N(l.Ag.hl,
this.pA,1)}rA(){this.wa.rb(l.Ag.hl,this.pA)}load(){if(null==this.ta&&(this.ta=this.wa.ta,null==this.ta))return;this.slice&&(this.wa.ga.Ec||(this.ta.expand([],l.i.ha.Ia,void 0),this.ta.expand([],l.i.ha.Oa,void 0)),this.aW(),this.dG=!0)}qE(){this.reset();this.load()}aW(){var b,a=this.slice?this.slice.flatten(!0,!0):new e.ub;this.ol.length=0;this.HL=new e.ub;this.vc=this.wa.O.vc();this.mb=[];for(b=0;b<a.length;b++){var c=a.fa(b);var d=a.fa(b)instanceof l.O.Ct?this.wa.O.nf(c.A):a.fa(b);void 0===d&&(d=
this.wa.O.gr.getItem(c.A));d&&this.mb.push(d);d=this.ta.th.indexOf(c.A);if(c.Ef)for(var g=1;g<c.ua.length;g++)this.ol.push([d,g]),this.HL.Ta(c.A,this.ol.length-1);else this.ol.push(d),this.HL.Ta(c.A,this.ol.length-1);this.Bi=this.slice.$g}this.sort()}get ke(){return 0}set ke(b){}get EI(){return 0}set EI(b){}get Ln(){return 0}set Ln(b){}get dA(){return 0}set dA(b){}get rows(){return new e.ub}set rows(b){}get wb(){return new e.ub}set wb(b){}get Fl(){return[]}set Fl(b){}get NC(){return[]}set NC(b){}get Ka(){return new e.ub}set Ka(b){}get Fb(){return new e.ub}set Fb(b){}get qb(){return new e.ub}set qb(b){}get $b(){return new l.O.Tr(l.i.ha.Ia)}set $b(b){}get Lb(){return new l.O.Tr(l.i.ha.Oa)}set Lb(b){}get Uk(){return 1}set Uk(b){}get Ck(){return 0}set Ck(b){}set gk(b){}get gk(){return null}set Mj(b){}get Mj(){return null}set cp(b){}get cp(){return null}get MD(){return!1}set MD(b){}set Th(b){}get Th(){return null}set Xl(b){}get Xl(){return null}set lr(b){}get lr(){return null}get Oz(){return!e.v(this.Bi)&&
0<this.Bi.length}set Oz(b){}set Bi(b){b!==this.slice.$g&&(this.g_=!0);this.slice.$g=b}get Bi(){return this.slice.$g}PT(b){if(e.v(this.Bi))return null;for(var a=0;a<this.Bi.length;a++){var c=this.Bi[a];if(c.measure.A==b)return c}}reset(){this.dG=!1;this.mb=[];this.Zu.length=0;this.ol.length=0;this.HL=new e.ub;this.vc=null}get kb(){return 0==this.ol.length}set kb(b){}X2(){return null}dU(){return 0}LH(){return 0}Zw(){return 0}EM(){return 1}fU(){return 0}eU(b){return this.yH(b)}MT(){return 0}yH(b){e.v(this.vc)&&
(this.vc=this.wa.O.vc());return this.vc.getItem(this.ta.th[b[0]])}get Fd(){return this.ol.length}set Fd(b){}get Ed(){return this.ta?this.ta.result[0]:0}set Ed(b){}get Sn(){return this.ol.length}set Sn(b){}get Rn(){return this.ta.Kz()}set Rn(b){}wh(){return!1}Gj(){return!1}Ih(){return!1}Fj(){return!1}Hz(b){for(var a=0;a<this.ol.length;a++)if(this.ol[a]instanceof Array){if(this.ol[a][0].toString()==b.toString())return a}else if(this.ol[a].toString()==b.toString())return a;return-1}Lz(b){if(0<this.Zu.length&&
b[0]<this.Zu.length)for(var a=0;a<this.Zu.length;a++){if(this.Zu[a].toString()==b.toString())return a}else return b[0];return-1}Vn(b){return 0>b?null:0<this.Zu.length&&b<this.Zu.length?[this.Zu[b]]:[b]}ak(b,a,c=!1){return 0>b?null:0<this.ol.length&&b<this.ol.length?!c&&this.ol[b]instanceof Array?[this.ol[b][0]]:[this.ol[b]]:[b]}K1(b){b=this.HL.getItem(b);return this.ak(b,!1)}hU(){return 0}OT(){return 0}Gi(b,a){b=this.ak(a);var c=this.ta.th[b[0]];return this.mb.find(d=>d.A===c)}HD(b,a,c){return null==
b?this.ta.Fea(null,c):this.ta.Fea(b[0],c)}La(b,a,c,d){if(null==a&&null==b)return this.ta.La([],[],c,!0);if(this.ta instanceof l.local.ZP||this.ta instanceof l.external.jc.P6)return this.ta.XT(b[0],a[0],c,c.type!=l.i.Ra.wc,d)}Ps(b,a){return(null!=b||null!=a)&&this.ta instanceof l.local.ZP?this.ta.Ps(b[0]):null}sort(){this.f_();this.g_&&(this.g_=!1,this.wa.Ya(e.model.Xb.Vc.rk))}f_(){if(this.Oz){for(var b=[],a=null,c=null,d=0;d<this.Bi.length;d++){var g=this.Bi[d];g.hierarchy=this.wa.O.Ok(g.measure.A);
c=void 0!==g.hierarchy?g.hierarchy.A:g.measure.A;a=void 0!==g.hierarchy?g.hierarchy.u2:!1;if(-1!=this.HL.indexOf(c)){g.jg=this.K1(c);if(g.measure.type==l.i.Ra.wc||a)g.XS=this.sBa(g.hierarchy);b.push(g)}}this.Bi=b;b=[];for(a=0;a<this.Rn;a++){c=[];for(d=0;d<this.Bi.length;d++)g=this.Bi[d],c[d]=this.uCa(a,g.jg,g.measure,g.hierarchy,!e.v(g.XS));b[a]=[c,a]}b.sort((k,m)=>this.dMa(k[0],m[0]));this.Zu=b.map(k=>k[1])}else this.Zu.length=0}sBa(b){var a=!1;b.type==l.i.Ic.Ua&&2<b.ua.length&&(a=!0);if(b.u2||!a){a=
{};const c=b.jk(b.pd,!1,l.i.Ba.hc);for(let d=0;d<c.length;d++){const g=b.za(c[d]);a[g.A]=d}return a}return null}uCa(b,a,c,d,g){if(null!=d&&d.type==l.i.Ic.Ua&&2<d.ua.length)return g=this.La([b],a,c,d.ua.length-1),d.za(g).nc;b=this.La([b],a,c);if(c.type!=l.i.Ra.wc)return isNaN(b)?Number.NEGATIVE_INFINITY:b;d=d.za(b);return g?d.A:d.caption}dMa(b,a){let c=0;for(let d=0;d<this.Bi.length;d++){const g=this.Bi[d];if(b[d]!=a[d]){c=e.v(g.XS)?"number"==typeof b[d]&&"number"==typeof a[d]?b[d]-a[d]:e.Ja.localeCompare(b[d],
a[d]):g.XS[b[d]]-g.XS[a[d]];g.sort==l.i.Ba.Nc&&(c*=-1);break}}return c}ww(b,a,c,d){return this.ta.sva(b,c,d)}eq(){return null}Uw(){}Ew(){}get dV(){return null}get cV(){return null}expand(){}collapse(){}Xp(){}Ee(){}cd(){return[]}save(b,a,c,d){return this.ta.VKa(b,a,c,d)}get Ej(){return!1}set Ej(b){}static dispose(){f.instance&&(f.instance.Vd(),f.instance.rA());f.instance=null}j3(){return!1}KW(){}R2(){return!1}G5(){}}h.cY=f})(l.Te||(l.Te={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.QQ{constructor(){super()}static R(){null==f.Be&&(f.Be=new f,f.Be.iC="chart"+h.QQ.counter);return f.Be}get Ej(){return!1}set Ej(b){}get Qu(){return!0}static dispose(){f.Be&&(f.Be.rA(),f.Be.Vd());f.Be=null}}h.jP=f})(l.Te||(l.Te={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends w.Mh{constructor(b){super();this.J=b}static R(b){null==f.instance&&(f.instance=new f(b));return f.instance}static dispose(){f.instance&&(f.instance.Vd(),f.instance.rA());f.instance=null}get ta(){return this.J.ta}set ta(b){this.J.ta=b}get slice(){return this.J.slice}set slice(b){this.J.slice=b}get Da(){return this.J.Da}set Da(b){}get $i(){return this.J.$i}set $i(b){}bS(){this.J.bS()}rA(){this.J.rA()}load(){this.J.load()}get ke(){return this.J.ke}set ke(b){}get EI(){return this.J.Ln}set EI(b){}get nm(){return 1<
this.Da.length}set nm(b){}get Ln(){return this.J.EI}set Ln(b){}get dA(){return this.J.dA}set dA(b){}get rows(){return this.J.Ka}set rows(b){}get wb(){return this.J.Fb}set wb(b){}get Fl(){return this.J.NC}set Fl(b){}get NC(){return this.J.Fl}set NC(b){}get Ka(){return this.J.rows}set Ka(b){}get Fb(){return this.J.wb}set Fb(b){}get qb(){return this.J.qb}set qb(b){}get $b(){return this.J.Lb}set $b(b){}get Lb(){return this.J.$b}set Lb(b){}get Uk(){return this.J.Ck}set Uk(b){}get Ck(){return this.J.Uk}set Ck(b){}set gk(b){}get gk(){return this.J.Th}set Mj(b){}get Mj(){return this.J.Xl}set cp(b){}get cp(){return this.J.lr}get MD(){return this.J.Oz}set MD(b){}set Th(b){}get Th(){return this.J.gk}set Xl(b){}get Xl(){return this.J.Mj}set lr(b){}get lr(){return this.J.cp}get Oz(){return this.J.MD}set Oz(b){}set Bi(b){}get Bi(){return null}PT(){return null}reset(){}get kb(){return this.J.kb}set kb(b){}X2(){return null}dU(b){return this.J.EM(b)}LH(b){return this.J.Zw(b)}EM(b){return this.J.dU(b)}Zw(b){return this.J.LH(b)}fU(b){return this.J.fU(b)}eU(b){return this.J.eU(b)}MT(b){return this.J.MT(b)}yH(b){return this.J.yH(b)}get Fd(){return this.J.Ed}set Fd(b){}get Ed(){return this.J.Fd}set Ed(b){}get Sn(){return this.J.Rn}set Sn(b){}get Rn(){return this.J.Sn}set Rn(b){}wh(b,
a){return this.J.Gj(b,a)}Gj(b,a){return this.J.wh(b,a)}Ih(b,a,c){return this.J.Fj(b,a,c)}Fj(b,a,c){return this.J.Ih(b,a,c)}Hz(b){return this.J.Lz(b)}Lz(b){return this.J.Hz(b)}Vn(b,a=!1){return this.J.ak(b,a)}ak(b,a=!1){return this.J.Vn(b,a)}hU(b){return this.J.OT(b)}OT(b){return this.J.hU(b)}Gi(b,a){return this.J.Gi(b,a)}HD(b,a,c){return this.J.HD(b,a,c)}Ps(){return null}La(b,a,c){return this.J.La(a,b,c)}sort(){return this.J.sort()}ww(b,a,c,d){return this.J.ww(b,a,c,d)}eq(b,a,c){return this.J.eq(b,
a,c)}Uw(b){this.J.Uw(b)}Ew(b){this.J.Ew(b)}get dV(){return null}get cV(){return null}expand(b,a,c,d=!0){a=a==l.i.ha.Oa?l.i.ha.Ia:l.i.ha.Oa;this.J.expand(b,a,c,d)}collapse(b,a,c,d=!0){a=a==l.i.ha.Oa?l.i.ha.Ia:l.i.ha.Oa;this.J.collapse(b,a,c,d)}Xp(b,a,c,d){c=c==l.i.ha.Oa?l.i.ha.Ia:l.i.ha.Oa;this.J.Xp(b,a,c,d)}Ee(b,a,c,d){c=c==l.i.ha.Oa?l.i.ha.Ia:l.i.ha.Oa;this.J.Ee(b,a,c,d)}cd(b,a,c){return this.J.cd(b,a,c)}save(b,a,c,d,g){return this.J.save(b,a,c,d,g)}K1(){return null}get Ej(){return this.J.Ej}set Ej(b){}j3(){return!1}KW(){}R2(){return!1}G5(){}}
h.Z9=f})(l.Te||(l.Te={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){class f extends h.jP{constructor(){super()}}h.cna=f})(l.Te||(l.Te={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b){void 0!==b.A&&(this.A=b.A);void 0!==b.caption&&(this.caption=b.caption);void 0!==b.Ki&&(this.Ki=b.Ki);void 0!==b.parent&&(this.parent=b.parent);void 0!==b.nc&&(this.nc=b.nc);void 0!==b.level&&(this.level=b.level);void 0!==b.ordinal&&(this.ordinal=b.ordinal);void 0!==b.fh&&(this.fh=b.fh);void 0!==b.dc&&(this.dc=b.dc);void 0!==b.Cf&&(this.Cf=b.Cf);void 0!==b.value&&(this.value=b.value);void 0!==b.Ye&&(this.Ye=b.Ye)}get l3(){return void 0!==
this.parent||void 0!==this.dc||void 0!==this.Ye||void 0!==this.eh||void 0!==this.Cf||void 0!==this.fh?!1:!0}clone(){return new f(this)}}h.be=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{TB(b){if(this.wk(b))return this.data[b]}eu(b,a){this.data||(this.data={});this.data[b]=a}Hsa(){this.data&&delete this.data._descendants_}wk(b){return this.data&&this.data.hasOwnProperty(b)}xb(b){for(var a in b)null!=this[a]&&(this[a]=b[a])}}h.r$=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.r${constructor(b,a){super();this.A=b;this.caption=a}set A(b){this.$K=b}get A(){return this.$K}set caption(b){e.v(b)&&(b="");b=""+b;""===b.trim()?this.yc=e.model.B.j.Nl:this.yc=b}get caption(){return e.model.Tb.valid(this.yc)?this.yc:e.model.Tb.validate(this.yc)}get label(){return this.wk("_label")?this.TB("_label"):this.caption}set label(b){""!=b.trim()&&this.eu("_label",b)}get C2(){return this.wk("_label")}toString(){return`{uniqueName: "${this.A}", caption: "${this.caption}"`}Sa(){var b=
{};b.uniqueName=this.A;b.caption=this.caption;return b}}h.mF=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){class f extends h.mF{constructor(b,a,c){super(b,a);this.A$=!1;this.QO=c}get QO(){return this.Gta}set QO(b){this.Gta=b}get active(){return this.A$}set active(b){this.A$=b}}h.xX=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.mF{constructor(b,a=""){super(b,a);this.Fg=l.i.Ic.Hv;this.JR=0;this.gs=this.hR=this.$t="";this.WB=!0;this.Rh=f.vJ;this.VR=null;this.pg=[];this.Tl=new u.HQ(!e.model.C.F.zw);this.Ky=new u.HQ(!e.model.C.F.zw);this.ow=[];this.cr=[];this.ZB=!1;this.os={};this.Bn=new e.ub;this.IZ=!1;this.oR=!0;this.ER=this.DR=!1;this.OR=[];this.fR=[];this.Ry=[];this.VB={};this.NR={};this.Tj=null;this.cache=[];this.ml=[];this.hG=[]}set Ci(b){this.lZ=b}get Ci(){return this.lZ}get type(){return this.Fg}set type(b){this.Fg=
b}get origin(){return this.JR}set origin(b){this.JR=b;this.IZ=1==(b&1)}get fn(){return this.Tl.length}set fn(b){}get Zi(){return this.Tl.length}get Td(){return this.ZB}set Td(b){this.ZB=b}get Oc(){return this.$t}set Oc(b){"undefined"==b?this.$t="":this.$t=b}get Xh(){return this.WB}set Xh(b){}get mapping(){return l.Ma.R().ga.mapping}get ua(){return this.Bn}set ua(b){}get bf(){return this.e_}set bf(b){this.e_=b}get description(){return this.Tj}set description(b){this.Tj=b}get vN(){const b=2<this.ua.length&&
this.type!==l.i.Ic.Ua?this.ua.fa(1).A:this.Ci.type===l.i.dB.qB?this.Ci.A:this.A;return e.model.Wa.R().ja.ga.mapping.La(b,"filters")}Sh(b){b.hierarchy=this;this.WB||b.yb++;this.Bn.Ta(b.A,b);this.os[b.A]=[]}hua(b){b.hierarchy=this;this.WB||b.yb++;this.Bn.hL(b.A,b,1);for(var a=2;a<this.Bn.length;a++){var c=this.Bn.fa(a);c&&c.yb++}this.os[b.A]=[]}Ou(b){return this.Bn.getItem(b)}get Ef(){return this.Ts||(this.Xh?2<this.ua.length:1<this.ua.length)}set Ef(b){}get We(){return"[Measures]"==this.A}set We(b){}get Ts(){return this.DR}set Ts(b){this.DR=
b}get tN(){return this.ER}set tN(b){this.ER=b}get sM(){return this.oR}set sM(b){this.oR=b}wz(b){null!=b&&(b.eh=!0,this.os[b.level.A].push(b.ordinal))}Z0(b){b.eh=!1;this.os[b.level.A].splice(b.ordinal,1);b=b.Ow;for(var a=0;a<b.length;a++){var c=this.za(b[a]);c.eh&&this.Z0(c)}}gM(b){return this.os[b.A]}Vba(){for(let b in this.os)this.os.hasOwnProperty(b)&&(this.os[b]=[])}get jda(){for(var b=1;b<this.ua.length;b++){var a=this.ua.fa(b);if(!(this.ic&&a.yb<this.ic.yb)&&0===this.gM(a).length)return b}return 1}set jda(b){}sua(b){var a=
void 0===b.ordinal?this.Tl.add(b.A):this.Tl.add(b.A,b.ordinal);if(e.v(b.parent))if(e.v(b.Ki))var c=this.pd;else c=this.Ib(b.Ki),null!==c?this.cr[a]=c.ordinal:c=this.pd;else c=b.parent,this.cr[a]=c.ordinal;void 0!==b.nc&&(this.ow[a]=b.nc);void 0!==b.caption&&b.caption!==b.A&&this.Ky.add(b.caption,a);c.X(a);this.wW(c);this.JC();this.ml=[];return a}AD(){return new h.oJ(this)}pc(b){if(b.l3){var a=this.sua(b);return this.za(a)}var c=this.AD();void 0!==b.parent&&(c.parent=b.parent);void 0===b.dc&&void 0===
c.parent&&(c.parent=e.ka(b.Ki)?this.pd:this.Ib(b.Ki));c.parent&&(e.v(c.level)||c.level.yb<=c.parent.level.yb)&&(a=c.parent.level.yb+1,a=new h.Dv(c.parent.level.A+" "+a,this.caption+" "+a,a),this.Sh(a),this.Ts=!0);void 0!==b.ordinal?(this.Tl.add(b.A,b.ordinal),c.ordinal=b.ordinal):(a=this.Tl.add(b.A),c.ordinal=a);void 0!==b.nc&&(this.ow[c.ordinal]=b.nc,c.nc=b.nc);this.pg[c.ordinal]=c;void 0!==b.caption&&this.Ky.add(b.caption,c.ordinal);null!=c.parent&&(c.parent.X(c),this.cr[c.ordinal]=c.parent.ordinal,
this.wW(c.parent));e.v(b.fh)||(c.fh=b.fh);this.JC();this.ml=[];return c}wW(b){this.pg[b.ordinal]=b}Nda(b){b=this.Ky.find(b);return-1===b?null:this.za(b)}Oda(b){b=this.Tl.find(b);return-1===b?null:this.za(b)}Ib(b){b=this.ex(""+b);return-1<b?this.za(b):null}ex(b){var a=this.Tl.find(b);-1===a&&this.Ef&&(a=this.Tl.find(`[${b}]`));return a}za(b){if(void 0===this.pg[b]){var a=this.AD();a.ordinal=b;a.nc=this.ow[b];a.parent=this.cr[b]?this.za(this.cr[b]):this.pd;return a}return this.pg[b]}SM(b){return this.ow[b]}Pu(b){if(e.model.C.F.qr&&
(null===b||"null"===b))return b=this.ex("null"),0<=b?this.za(b):null;"number"!==typeof b&&(b=parseFloat(b));if(isNaN(b))for(var a=1;a<this.ow.length;a++)if(isNaN(this.ow[a]))return this.za(a);b=this.ow.indexOf(b);return 0<=b?this.za(b):null}vr(b){for(var a=[],c,d=0;d<b.length;d++)c=this.za(b[d]),e.v(c)||e.ka(c.Fi)||a.push(c.Fi);return a}b2(b){return this.Tl.get(b)}zD(b){var a=this.Ky.get(b);void 0===a&&(a=this.Tl.get(b));e.model.Tb.valid(a)||(a=e.model.Tb.validate(a));return a}wia(b){let a;a=this.type!==
l.i.Ic.Ua||this.ua.fa(1).type!==l.i.ib.Ua&&this.ua.fa(1).type!==l.i.ib.Mc?this.ua.fa(1).type===l.i.ib.ec?this.LKa(b):this.ex(b):this.KKa(b);-1===a&&!e.v(b)&&0<b.indexOf(".")&&(b=b.substring(b.lastIndexOf(".")+1),a=this.ex(b));return a}KKa(b){if(e.model.C.F.qr&&"null"===b)b=null;else if(8>b.length||/\D+/.test(b.slice(1))){var a=this.ua.fa(1).type===l.i.ib.Mc?e.model.C.F.Ek:e.model.C.F.Up;a=this.mapping.La(this.A,"format",a);b=new e.Rf(b,{Vy:!1,format:a});b.Kf(u.Lh.sg(a));b=b.getTime()}else b=parseInt(b);
b=this.Pu(b);return null===b?-1:b.ordinal}LKa(b){if(e.model.C.F.qr&&"null"===b)var a=null;else if(0<=b.indexOf(":")){if(b=b.split(":"),3==b.length){a=0;if(0<=b[0].indexOf("d")){var c=b[0].split("d");const d=parseInt(c[0]);isNaN(d)||(a+=86400*d);c=parseInt(c[1]);isNaN(c)||(a+=3600*c)}else c=parseInt(b[0]),isNaN(c)||(a+=3600*c);c=parseInt(b[1]);isNaN(c)||(a+=60*c);b=parseInt(b[2]);isNaN(b)||(a+=b)}}else a=parseFloat(b);b=this.Pu(a);return null===b?-1:b.ordinal}Y_(){this.hg=f.vJ;this.YK=null}JC(){this.cache=
[]}get hg(){return this.Rh}set hg(b){this.Rh=b}get TW(){return this.VR}set TW(b){this.VR=b}sort(){return this.jk(this.pd)}jk(b,a=!0,c=""){if(null==b)return[];l.i.Ba.ih(c)||(c=this.Rh);if(a){if(null!=this.ml[b.ordinal]){if(null!=this.ml[b.ordinal][c])return this.ml[b.ordinal][c];if(!this.Ef){if(c==l.i.Ba.Nc&&null!=this.ml[b.ordinal][l.i.Ba.hc])return a=this.ml[b.ordinal][l.i.Ba.hc].slice(),this.ml[b.ordinal][l.i.Ba.Nc]=a.reverse(),this.ml[b.ordinal][l.i.Ba.Nc];if(c==l.i.Ba.hc&&null!=this.ml[b.ordinal][l.i.Ba.Nc])return a=
this.ml[b.ordinal][l.i.Ba.Nc].slice(),this.ml[b.ordinal][l.i.Ba.hc]=a.reverse(),this.ml[b.ordinal][l.i.Ba.hc]}}}else if(null!=this.cache[b.ordinal]){if(null!=this.cache[b.ordinal][c])return this.cache[b.ordinal][c];if(!this.Ef){if(c==l.i.Ba.Nc&&null!=this.cache[b.ordinal][l.i.Ba.hc])return a=this.cache[b.ordinal][l.i.Ba.hc].slice(),this.cache[b.ordinal][l.i.Ba.Nc]=a.reverse(),this.cache[b.ordinal][l.i.Ba.Nc];if(c==l.i.Ba.hc&&null!=this.cache[b.ordinal][l.i.Ba.Nc])return a=this.cache[b.ordinal][l.i.Ba.Nc].slice(),
this.cache[b.ordinal][l.i.Ba.hc]=a.reverse(),this.cache[b.ordinal][l.i.Ba.hc]}}var d=this.Rh;this.Rh=c;if(this.Rh==l.i.Ba.ed){var g=a?b.Ow:b.children;g=g.slice();0<g.length&&this.za(g[0]).dc&&g.splice(0,1)}else g=this.UW(b,a);a?(null==this.ml[b.ordinal]&&(this.ml[b.ordinal]=[]),this.ml[b.ordinal][c]=g):(null==this.cache[b.ordinal]&&(this.cache[b.ordinal]=[]),this.cache[b.ordinal][c]=g);this.Rh=d;return g}ata(b){for(var a=[[]],c,d=0;d<b.length;d++)0!==b[d]&&(c=this.cr[b[d]],void 0===c?a[0].push(b[d]):
(void 0===a[c]&&(a[c]=[]),a[c].push(b[d])));return a}zta(b,a){if(e.v(this.YK)||void 0===this.YK[b.ordinal]||b.children.length!=this.YK[b.ordinal].length){var c=this.Tl.sort();this.YK=this.ata(c)}b=this.YK[b.ordinal];c=[];for(var d=0;d<b.length;d++){var g=this.za(b[d]);c.push(g.ordinal);a&&!g.Hh&&(g=this.jk(g),0<g.length&&(c=c.concat(g)))}return c}Jva(b){try{if("month"===b.level.caption.toLowerCase())return!0;if(12<b.children.length)return!1;for(var a=0;a<b.children.length;a++){var c=this.za(b.children[a]).caption.split(" ")[0];
if(-1===e.model.B.j.bs.indexOf(c)&&-1===e.model.B.j.xy.indexOf(c))return!1}var d=b.hierarchy.ua.indexOf(b.level.A);if(b.hierarchy.ua.length<d+2)return!1;b.hierarchy.ua.fa(d+1).type=l.i.ib.nh;return!0}catch(g){}return!1}UW(b,a){var c=this.ua.fa(b.level.yb+1),d=c&&c.type===l.i.ib.Sl,g=c&&c.type===l.i.ib.gY,k=c&&c.type===l.i.ib.Nt,m=c&&c.type===l.i.ib.nh,n=c&&c.type===l.i.ib.sK,p=c&&(c.type===l.i.ib.pn||c.type===l.i.ib.un),t=c&&c.type===l.i.ib.MP,r=c&&c.type===l.i.ib.lQ,v=c&&c.type===l.i.ib.jb,y=c&&
c.type===l.i.ib.ec||c&&c.type===l.i.ib.Ua,A=c&&c.type===l.i.ib.Mc,C=this.TW===l.i.Ba.bqa;if(!(k||m||n||y||p||t||r||v||A||0!==this.Oo.length||e.Pg(this.Xs))){if(1E3<b.children.length)return this.zta(b,a);this.Jva(b)&&(m=!0)}var B=this.eka(b.children);e.Pg(this.Xs)?B=this.Gja(B):k||m||n||p||t||r||A||g||d?B=this.fMa(B,c?c.type:-1):y?0<this.Oo.length?B.sort((H,M)=>this.Yxa(H,M)):B=this.cMa(B):0<this.Oo.length?B.sort((H,M)=>this.Xxa(H,M)):v?(this.Rh===l.i.Ba.hc&&e.Ja.sort(B,e.Ja.Ti,H=>H.nc),this.Rh===
l.i.Ba.Nc&&e.Ja.sort(B,e.Ja.tp|e.Ja.Ti,H=>H.nc)):C?B.sort(this.YFa):(this.Rh===l.i.Ba.hc&&e.Ja.sort(B,e.Ja.ny,H=>H.caption),this.Rh===l.i.Ba.Nc&&e.Ja.sort(B,e.Ja.tp|e.Ja.ny,H=>H.caption));c=[];g=B.length;for(k=0;k<g;k++)c.push(B[k].ordinal),a&&!b.Hh&&(d=this.jk(B[k],a),0<d.length&&(c=c.concat(d)));return c}eka(b){for(var a=[],c=0;c<b.length;c++)a.push(this.za(b[c]));return a}fMa(b,a){a===l.i.ib.nh?b=this.eMa(b):a===l.i.ib.pn||a===l.i.ib.un?b=this.gMa(b):a===l.i.ib.Nt||a===l.i.ib.gY||a===l.i.ib.Sl?
(this.hg===l.i.Ba.hc&&e.Ja.sort(b,e.Ja.ny,c=>c.caption),this.hg===l.i.Ba.Nc&&e.Ja.sort(b,e.Ja.tp|e.Ja.ny,c=>c.caption)):(this.hg===l.i.Ba.hc&&e.Ja.sort(b,e.Ja.Ti,c=>c.nc),this.hg===l.i.Ba.Nc&&e.Ja.sort(b,e.Ja.tp|e.Ja.Ti,c=>c.nc));return b}eMa(b){for(var a=[],c=[],d=0;d<b.length;++d)this.Esa(b[d].caption)?c.push(b[d]):a.push(b[d]);this.hg===l.i.Ba.hc&&e.Ja.sort(a,e.Ja.ny,g=>g.caption);this.hg===l.i.Ba.Nc&&e.Ja.sort(a,e.Ja.tp|e.Ja.ny,g=>g.caption);c.sort((g,k)=>this.gya(g,k));return c.concat(a)}gMa(b){for(var a=
[],c=[],d=0;d<b.length;++d)this.Fsa(b[d].caption)?c.push(b[d]):a.push(b[d]);this.hg===l.i.Ba.hc&&e.Ja.sort(a,e.Ja.ny|e.Ja.Ti,g=>g.caption);this.hg===l.i.Ba.Nc&&e.Ja.sort(a,e.Ja.tp|e.Ja.ny|e.Ja.Ti,g=>g.caption);c.sort((g,k)=>this.jNa(g,k));return c.concat(a)}Esa(b){return-1!==e.model.B.j.bs.indexOf(b)||-1!==e.model.B.j.xy.indexOf(b)}Fsa(b){return-1!==e.model.B.j.HB.indexOf(b)||-1!==e.model.B.j.IB.indexOf(b)}gya(b,a){var c=this.hg===l.i.Ba.hc?e.model.B.j.bs.indexOf(b.caption):e.model.B.j.bs.indexOf(a.caption);
-1===c&&(c=this.hg==l.i.Ba.hc?e.model.B.j.xy.indexOf(b.caption):e.model.B.j.xy.indexOf(a.caption));var d=this.hg===l.i.Ba.hc?e.model.B.j.bs.indexOf(a.caption):e.model.B.j.bs.indexOf(b.caption);-1===d&&(d=this.hg===l.i.Ba.hc?e.model.B.j.xy.indexOf(a.caption):e.model.B.j.xy.indexOf(b.caption));return c>d?1:c<d?-1:0}jNa(b,a){var c=this.hg===l.i.Ba.hc?e.model.B.j.HB.indexOf(b.caption):e.model.B.j.HB.indexOf(a.caption);-1===c&&(c=this.hg===l.i.Ba.hc?e.model.B.j.IB.indexOf(b.caption):e.model.B.j.IB.indexOf(a.caption));
var d=this.hg===l.i.Ba.hc?e.model.B.j.HB.indexOf(a.caption):e.model.B.j.HB.indexOf(b.caption);-1===d&&(d=this.hg===l.i.Ba.hc?e.model.B.j.IB.indexOf(a.caption):e.model.B.j.IB.indexOf(b.caption));return c>d?1:c<d?-1:0}cMa(b){this.Rh===l.i.Ba.hc&&e.Ja.sort(b,e.Ja.Ti,a=>a.nc);this.Rh===l.i.Ba.Nc&&e.Ja.sort(b,e.Ja.Ti|e.Ja.tp,a=>a.nc);return b}$T(b){return e.model.C.F.zw?this.Oo.indexOf(b):this.Oo.indexOf(b.toLocaleLowerCase())}Xxa(b,a){const c=this.Rh===l.i.Ba.hc?this.$T(b.caption):this.$T(a.caption);
b=this.Rh===l.i.Ba.hc?this.$T(a.caption):this.$T(b.caption);return c>b?1:c<b?-1:0}Yxa(b,a){const c=this.Rh===l.i.Ba.hc?this.Oo.indexOf(b.nc.toString()):this.Oo.indexOf(a.nc.toString());b=this.Rh===l.i.Ba.hc?this.Oo.indexOf(a.nc.toString()):this.Oo.indexOf(b.nc.toString());return c>b?1:c<b?-1:0}Gja(b){if(e.Pg(this.Xs)){var a=this.Rh===l.i.Ba.Nc?-1:1;b.sort((c,d)=>this.Xs(c.caption,d.caption)*a)}return b}YFa(b,a){b=b.caption.match(/(?:\d*\.)?\d+/);a=a.caption.match(/(?:\d*\.)?\d+/);b=b&&0<b.length?
parseFloat(b[0]):Number.POSITIVE_INFINITY;a=a&&0<a.length?parseFloat(a[0]):Number.POSITIVE_INFINITY;return b>a?1:b<a?-1:0}nv(b){b=this.Bn.getItem(b).yb;for(var a=[],c=this.sort(),d=0;d<c.length;d++){var g=this.za(c[d]);g&&g.level.yb===b&&a.push(c[d])}return a}get filter(){e.v(this.cw)&&(this.cw=new e.model.hb.lB(this));return this.cw}set filter(b){this.cw=b;this.hG=[]}get eb(){return 0<this.hG.length?this.hG:this.hG=this.filter.Pz||this.filter.mx||this.filter.hN||this.filter.vU?this.filter.Cza():
this.filter.Hi()}set eb(b){this.hG=b}xu(){this.filter.clear();this.eb=[]}HC(){this.filter.HC();this.eb=[]}vza(){for(var b=[],a=this.eb,c=0;c<a.length;c++){var d=this.za(a[c]);1===d.level.yb&&b.push(d.ordinal)}return b}set Lm(b){""!==b&&!e.v(b)||this.We?this.gs=b:(this.gs=this.A+".[(All)]",this.Sh(new h.Dv(this.A,this.caption+" (All)")),this.pc(new h.be({A:this.caption+" (All)",dc:!0})),this.WB=!1)}get Lm(){return this.gs}Km(b="(Total)"){return b}get pd(){this.bZ||(this.bZ=this.Ib(this.gs),this.wz(this.bZ));
return this.bZ}set pd(b){}get Js(){return this.hR}set Js(b){this.hR=b}Fw(){this.wba(this.g5);this.filter.Fw()}dca(){if(0<this.Ry.length){for(var b=0;b<this.Ry.length;b++){var a=this.za(parseInt(this.Ry[b]));null==a||a.eh||this.wz(a)}this.Ry=[]}}set g5(b){this.NR=b}get g5(){return this.NR}set Uha(b){this.OR=b}get Uha(){return this.OR}set Oo(b){this.JC();this.fR=b}get Oo(){return this.fR}set yv(b){this.Ry=b}get yv(){return this.Ry}set groups(b){this.VB=b}get groups(){return this.VB}wba(b){if(this.groups)for(var a in this.groups)this.LO(a);
for(a in b)this.eba(a,b[a])}LO(b){var a=this.Ib(this.Km("Others"));if((b="string"==typeof b?this.Ib(this.Km(b)):b)&&a){var c,d=b.children;for(c=0;c<d.length;c++){var g=this.za(d[c]);a.X(g);this.cr[g.ordinal]=a.ordinal}this.pd.removeChild(b.ordinal);this.pg[b.ordinal]=null;delete this.VB[b.caption];if(1==this.nv(this.Nz.A).length){d=a.children;for(c=0;c<d.length;c++)g=this.za(d[c]),this.pd.X(g),this.cr[g.ordinal]=this.pd.ordinal;this.pd.removeChild(a.ordinal);this.pg[a.ordinal]=null;this.Bn=this.Bn.splice(1,
1);for(c=1;c<this.Bn.length;c++)this.Bn.fa(c).yb--}this.JC();this.ml=[]}}eba(b,a){null!=this.groups[b]&&this.LO(b);if(null==this.Nz){var c=new h.Dv(this.caption+".groups","Groups",1);c.fh=!0;this.hua(c);var d=this.pd.children.slice(0),g=this.pc(new h.be({A:"others",caption:"Others"}));for(c=0;c<d.length;c++){var k=this.za(d[c]);this.pd.removeChild(k.ordinal);g.X(k.ordinal);k.parent=g;this.cr[k.ordinal]=g.ordinal}}else this.ua.fa(1);d=this.pc(new h.be({A:b,fh:!0}));this.VB[b]=[];for(c=0;c<this.Tl.length;c++)g=
this.za(c),g.hierarchy=this,!g.dc&&-1<a.indexOf(g.ordinal)&&(g.fh?this.LO(g):(g.parent&&g.parent.removeChild(g.ordinal),d.X(g),this.VB[b].push(g.ordinal),this.cr[g.ordinal]=d.ordinal));for(var m in this.groups)this.groups.hasOwnProperty(m)||(g=this.Ib(this.Km(m)))&&0==g.children.length&&this.LO(g);this.wz(d);this.JC();this.ml=[]}get Nz(){for(var b=0;b<this.ua.length;b++)if(this.ua.fa(b).fh)return this.ua.fa(b);return null}set Nz(b){}get lV(){for(var b=new e.ub,a=0;a<this.Bn.length;a++){var c=this.Bn.fa(a).Ye;
b=b.concat(c)}return b}set lV(b){}set zf(b){this.vK=b}get zf(){return this.vK}set ic(b){}get ic(){return null!=this.vK?this.Ou(this.vK):null}get Xs(){return this.lta}set Xs(b){this.JC();this.lta=b}get u2(){return e.Pg(this.Xs)||0<this.Oo.length}get fr(){for(var b=[],a=0;a<this.Zi;a++)b.push(a);return b}Sa(){var b={};b.uniqueName=this.A;b.dimensionName=this.Ci.A;b.activeLevelName=this.zf;b.caption=this.caption;b.filterEnabled=this.sM;b.sortName=this.hg;b.sortAs=this.TW;b.type=this.type;b.groups=this.groups;
b.customSorting=this.Oo;this.filter.Fh&&!this.filter.Rfa&&(b.filter=this.filter.Sa());void 0!==this.bf&&(b.showTotals=this.bf);return b}lj(){const b={};b.caption=this.caption;b.dimensionCaption=this.Ci.caption;b.dimensionUniqueName=this.Ci.A;b.folder=this.Oc;b.label=this.label;if(2<this.ua.length){b.levels=[];for(let a=1;a<this.ua.length;a++)b.levels.push(this.ua.fa(a).Sa())}b.sort=this.Rh;b.uniqueName=this.A;return b}static xb(b,a=null){var c=b.uniqueName;c=l.ze.bh(c,b.caption);null==a&&(a=new l.local.O.$P(c));
b.hasOwnProperty("caption")&&(a.caption=b.caption);b.hasOwnProperty("groups")&&f.QCa(b.groups,a);b.hasOwnProperty("sortName")&&(a.hg=b.sortName);b.hasOwnProperty("sortAs")&&(a.TW=b.sortAs);b.hasOwnProperty("filterEnabled")&&(a.sM=b.filterEnabled);b.hasOwnProperty("type")&&(a.type=b.type);b.hasOwnProperty("origin")&&(a.origin=b.origin);b.hasOwnProperty("folder")&&(a.Oc=b.folder);b.hasOwnProperty("filter")&&(a.filter=e.model.hb.lB.xb(b.filter,a,!0));b.hasOwnProperty("defaultMemberName")&&(a.Js=b.defaultMemberName);
b.hasOwnProperty("allMemberName")&&(a.Lm=b.allMemberName);b.hasOwnProperty("activeLevelName")&&(a.zf=b.activeLevelName);b.hasOwnProperty("predefinedProperties")&&(a.Uha=b.predefinedProperties);b.hasOwnProperty("customSorting")&&f.Dca(b.customSorting,a);b.hasOwnProperty("sortOrder")&&f.Dca(b.sortOrder,a);b.hasOwnProperty("showTotals")&&(a.bf=!0===b.showTotals);return a}static QCa(b,a){var c={},d;for(d in b){var g=b[d];c[d]=[];for(var k=0;k<g.length;k++){var m=l.ze.Ws(g[k]);(m=a.Ib(m))&&c[d].push(m.ordinal)}}a.Td?
a.wba(c):a.g5=c}static Dca(b,a){a.Oo=[];for(var c=0;c<b.length;c++)a.Oo.push(l.ze.Ws(b[c]))}clone(){var b=new f(this.A);b.data=this.data;b.$K=this.$K;b.lZ=this.lZ;b.Fg=this.Fg;b.JR=this.JR;b.$t=this.$t;b.hR=this.hR;b.gs=this.gs;b.WB=this.WB;b.Rh=this.Rh;b.VR=this.VR;e.v(this.cw)||(b.cw=this.cw.clone());b.pg=this.pg.slice();b.Tl=this.Tl.clone();b.Ky=this.Ky.clone();b.ow=this.ow.slice();b.cr=this.cr.slice();var a={},c;for(c in this.os)a[c]=this.os[c].slice();b.os=a;b.Bn=this.Bn.slice();b.IZ=this.IZ;
b.oR=this.oR;b.Td=this.Td;b.DR=this.DR;b.ER=this.ER;b.OR=this.OR.slice();b.fR=this.fR.slice();b.Ry=this.Ry.slice();b.vK=this.vK;b.VB=this.VB;b.NR=this.NR;b.e_=this.e_;return b}getTimezoneOffset(){return null}}f.vJ="asc";h.Ct=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.mF{constructor(b,a="",c=0){super(b,a);this.Fg=l.i.ib.$c;this.Faa=new e.ub;this.Tj=null;this.RZ=c}set yb(b){this.RZ=b}get yb(){return this.RZ}set type(b){this.Fg=b}get type(){return this.Fg}set fh(b){this.cta=b}get fh(){return this.cta}get ev(){return this.Ac.ua.length-1==this.RZ}set ev(b){}set hierarchy(b){this.Ac=b}get hierarchy(){return this.Ac}get Ye(){return this.Faa}set Ye(b){}get description(){return this.Tj}set description(b){this.Tj=
b}B_(b){this.Faa.Ta(b.A,b)}}h.Dv=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.r${constructor(b){super();this.SZ=1;this.waa=0;this.IR=-1;this.Ac=b}get ordinal(){return this.SZ}set ordinal(b){this.SZ=b}get nc(){return this.waa}set nc(b){this.waa=b}get hierarchy(){return this.Ac}set hierarchy(b){}get parent(){return this.vta}set parent(b){this.vta=b}get root(){if(2>this.level.yb)return this;var b=this;do b=b.parent;while(1<b.level.yb);return b}set root(b){}set caption(b){}get caption(){var b=this.Ac.zD(this.ordinal);if(this.level.type===
l.i.ib.Ua||this.level.type===l.i.ib.oj||this.level.type===l.i.ib.Mc||this.level.type===l.i.ib.ec){let a=this.Ac.SM(this.ordinal);e.v(a)?b=e.model.B.j.IX:this.level.type===l.i.ib.Ua||this.level.type===l.i.ib.oj?(b=this.hierarchy.Ek||this.hierarchy.mapping.La(this.hierarchy.A,"format",e.model.C.F.Up),b=e.P.$x(a,b,e.model.C.F.$j)):this.level.type===l.i.ib.Mc?(b=this.hierarchy.Ek||this.hierarchy.mapping.La(this.hierarchy.A,"format",e.model.C.F.Ek),b=e.P.HO(a,b,e.model.C.F.$j)):this.level.type===l.i.ib.ec&&
(b=this.hierarchy.Ek||this.hierarchy.mapping.La(this.hierarchy.A,"format",e.model.C.F.np),b=e.P.ey(a,b))}return b}get A(){return this.BD()}set A(b){}BD(){return this.Ac.b2(this.ordinal)}get Fi(){var b=this.Ac.Ef?2>this.level.yb?`[${this.BD()}]`:this.BD():`[${this.BD()}]`;return e.model.C.F.zw?`${this.hierarchy.A}.${b}`:`${this.hierarchy.A}.${b}`.toLocaleLowerCase()}get level(){return e.v(this.parent)?this.hierarchy.ua.fa(0):this.hierarchy.ua.fa(this.parent.level.yb+1)}set level(b){}get dc(){return null!=
this.hierarchy.pd&&this.hierarchy.pd.ordinal==this.ordinal}set dc(b){}set eh(b){this.eu("_isDrilledDown_",b)}get eh(){return this.wk("_isDrilledDown_")?this.TB("_isDrilledDown_"):!1}set fh(b){this.eu("_isGroup_",b)}get fh(){return this.wk("_isGroup_")?this.TB("_isGroup_"):!1}get children(){return this.wk("_children_")?this.TB("_children_"):[]}set children(b){}set Ow(b){}get Ow(){if(this.wk("_descendants_"))return this.TB("_descendants_");var b=[];b.push(this.ordinal);if(0==this.xV)return b;for(var a=
this.children.length,c,d=0;d<a;d++)c=this.hierarchy.za(this.children[d]),c.Hh?b.push(c.ordinal):0<c.xV?b=b.concat(c.Ow):b.push(c.ordinal);0<b.length&&this.eu("_descendants_",b);return b}set xV(b){}get xV(){if(-1<this.IR)return this.IR;if(!this.wk("_children_"))return this.IR=0;for(var b=this.children.length,a=b,c=0;c<b;c++){var d=this.hierarchy.za(this.children[c]);a+=d.xV}return a}W_(){this.wk("_descendants_")&&this.Hsa();this.parent&&this.parent.W_()}X(b){var a=this.children;b.constructor===Number?
a.push(b):a.push(b.ordinal);this.eu("_children_",a);b.constructor!==Number&&(b.parent=this);this.IR=-1;this.W_()}removeChild(b){var a=this.children.indexOf(b);-1<a&&this.children.splice(a,1);this.eu("_children_",this.children);this.hierarchy.za(b).parent=null;this.W_()}toString(){return this.A+" : "+this.SZ}set Ye(b){this.eu("_properties_",b)}get Ye(){this.wk("_properties_")||(this.Ye=new e.ub);return this.TB("_properties_")}setProperty(b,a){this.Ye.Ta(b,a)}nCa(b){return this.Ye.getItem(b)}get Hh(){return!this.wk("_children_")||
0==this.children.length}set Hh(b){}get Cf(){return this.wk("_hasMissingChildren_")?this.TB("_hasMissingChildren_"):!1}set Cf(b){this.eu("_hasMissingChildren_",b)}set pba(b){}get pba(){return this.hierarchy.Ts?this.A:this.A+".[(Total"+(0==this.ordinal?"":this.ordinal)+")]"}eu(b,a){super.eu(b,a);this.l3||e.v(this.hierarchy)||this.hierarchy.wW(this)}get l3(){if(this.wk("_children_")||this.wk("_descendants_")||this.wk("_caption_")||this.wk("_isDrilledDown_")||this.wk("_hasMissingChildren_")||this.wk("_properties_")||
this.wk("_isGroup_"))return!1}Sa(){var b={};b.uniqueName=this.A;b.caption=this.caption;b.dimensionName=this.hierarchy.Ci.A;b.hierarchyName=this.hierarchy.A;b.hierarchyCaption=this.hierarchy.caption;this.parent&&(b.parentMember=this.parent.A);0<this.Ye.length&&(b.properties=this.Ye.Sa());return b}hD(b){return e.v(b)?!1:e.model.C.F.zw?this.A==b:this.A.toLocaleLowerCase()==b.toLocaleLowerCase()}}h.oJ=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.mF{constructor(b,a=""){super(b,a);this.oc=this.$t=this.wR="";this.Fg=l.i.Ra.jb;this.uk=this.$F=this.dw="";this.Kb=[];this.rR="";this.xR=this.yR=!1;this.oG="";this.kaa=-1;this.CR=this.BR=!1;this.WQ=!0;this.Tj=this.hw=null;this.wn=[]}get Bl(){return this.yc}set Bl(b){}get Mg(){return this.wR}set Mg(b){this.wR=b}get Oc(){return this.$t}set Oc(b){this.$t=b}get mapping(){return l.Ma.R().ga.mapping}get format(){return this.Eh(this.A,this.$).name}set format(b){this.oc=
b}get Lk(){return this.yR}set Lk(b){this.yR=b}get hidden(){return this.xR}set hidden(b){this.xR=b}get index(){return this.kaa}set index(b){this.kaa=b}get type(){return this.Fg}get an(){return this.hw}set an(b){this.hw=b}set type(b){this.Fg=b}get description(){return this.Tj}set description(b){this.Tj=b}get lk(){if(this.Qa||this.gh)return[];const b=this.mapping.Lp;if(e.v(b))return this.Fg!=l.i.Ra.jb&&this.Fg!=l.i.Ra.ec?this.Fg==l.i.Ra.Ua||this.Fg==l.i.Ra.Mc?l.i.ea.Zka:l.i.ea.bla:l.i.ea.hJ;const a=
l.i.Ra.FA(this.Fg);return void 0!==b[a]?b[a]:void 0!==b.any?b.any:Array.isArray(b)?b:l.i.ea.hJ}set lk(b){}set fq(b){this.dw=b}get fq(){return this.dw?this.dw:0==e.model.C.F.Tx?this.yc:l.i.ea.NONE===this.uk?this.yc:f.T1(this.$,this.yc)}static T1(b,a){switch(b){case l.i.ea.Sq:return e.P.bind(e.model.B.j.lra,a);case l.i.ea.wc:return e.P.bind(e.model.B.j.bma,a);case l.i.ea.Mt:return e.P.bind(e.model.B.j.Aqa,a);case l.i.ea.pj:return e.P.bind(e.model.B.j.Bma,a);case l.i.ea.Hq:return e.P.bind(e.model.B.j.cla,
a);case l.i.ea.Pv:return e.P.bind(e.model.B.j.kpa,a);case l.i.ea.Uv:return e.P.bind(e.model.B.j.hra,a);case l.i.ea.Vv:return e.P.bind(e.model.B.j.jra,a);case l.i.ea.MAX:return e.P.bind(e.model.B.j.Qoa,a);case l.i.ea.MIN:return e.P.bind(e.model.B.j.Ppa,a);case l.i.ea.cs:return e.P.bind(e.model.B.j.sqa,a);case l.i.ea.Cp:return e.P.bind(e.model.B.j.nqa,a);case l.i.ea.Rq:return e.P.bind(e.model.B.j.yqa,a);case l.i.ea.Pq:return e.P.bind(e.model.B.j.uqa,a);case l.i.ea.Qq:return e.P.bind(e.model.B.j.wqa,
a);case l.i.ea.Si:return e.P.bind(e.model.B.j.poa,a);case l.i.ea.tn:return e.P.bind(e.model.B.j.Nqa,a);case l.i.ea.so:return e.P.bind(e.model.B.j.Pqa,a);case l.i.ea.ko:return e.P.bind(e.model.B.j.xma,a);case l.i.ea.qn:return e.P.bind(e.model.B.j.zma,a);case l.i.ea.qo:return e.P.bind(e.model.B.j.pqa,a);case l.i.ea.sn:return e.P.bind(e.model.B.j.rqa,a)}return a}get Mm(){if(""==this.$F)if(l.i.ea.BU(this.$))this.$F=this.$;else if(-1!=this.Wc.indexOf(l.i.ea.Sq))this.$F=l.i.ea.Sq;else for(let b=0;b<this.Wc.length;b++)if(l.i.ea.BU(this.Wc[b])){this.$F=
this.Wc[b];break}return this.$F}get $(){return""===this.uk?this.Wc[0]:this.uk}set $(b){b&&b.toLowerCase()!==this.uk?(b=b.toLowerCase(),l.i.ea.pz(b)&&(b=l.i.ea.Dz(b)),l.i.ea.MA(b)||this.Qa&&b==l.i.ea.NONE?(this.$F="",this.uk=b,this.Qa||-1!=this.Wc.indexOf(b)||(this.uk=this.Wc[0])):this.pW()):""==b&&this.pW()}pW(){this.dw=void 0;this.uk=this.Wc[0]}set Wc(b){if(e.v(b))this.wn=this.lk;else{for(var a=[],c=0;c<b.length;c++){var d=b[c].trim().toLowerCase();l.i.ea.pz(d)&&(d=l.i.ea.Dz(d));-1!==this.lk.indexOf(d)&&
a.push(d)}this.wn=0<a.length?a:this.lk}}get Wc(){return 0<this.wn.length?this.wn:this.lk}get Ud(){return this.Kb}set Ud(b){this.Kb=b}get Qa(){return!e.ka(this.Ge)}set Qa(b){}get Ge(){return this.rR}set Ge(b){this.rR=b}get xr(){return this.oG}set xr(b){this.oG=b}get gh(){return!e.v(this.oG)&&""!=this.oG}get Wz(){return this.BR}set Wz(b){this.BR=b}get Xz(){return this.CR}set Xz(b){this.CR=b}get Jn(){return this.WQ}set Jn(b){this.WQ=b}Sa(){var b={};b.uniqueName=this.A;b.name=this.Bl;this.Qa&&(b.formula=
this.Ge.trim());b.format=this.format;b.individual=this.Lk;b.supportedAggregations=this.lk;b.availableAggregations=this.Wc;b.aggregation=this.$;b.caption=this.caption;b.label=this.label;b.originalCaption=this.Bl;b.grandTotalCaption=this.fq;b.groupName=this.Mg;b.folder=this.Oc;b.type=this.type;b.kpi=this.xr;b.calculated=this.Qa;b.calculateNaN=this.Jn;b.hidden=this.hidden;return b}w2(){var b=new f("","");return this.Lk!==b.Lk||this.Ge!==b.Ge||this.format!==b.format||!1===this.an||""!==this.$&&(this.fq!==
f.T1(this.$,this.yc)&&e.model.C.F.Tx||!e.model.C.F.Tx&&this.fq!==this.caption)?!1:!0}Eh(b,a,c=!1){let d=e.model.oc.tj.Eh(b,a);e.model.oc.tj.Yza(b,a)||(d=e.model.oc.tj.Eh(b,""));c&&e.v(d.Ud.textAlign)&&this.type!=l.i.Ra.jb&&this.type!=l.i.Ra.ec&&this.type!=l.i.Ra.Mc&&(d=d.clone(),d.textAlign=e.model.oc.W.se.textAlign.LEFT);return d}clone(){var b=new f(this.A);this.SL(b);return b}SL(b){b.data=this.data;b.yc=this.yc;b.wR=this.wR;b.$t=this.$t;b.oc=this.oc;b.Fg=this.Fg;void 0!=this.dw&&(b.dw=this.dw);
b.uk=this.uk;b.wn=this.wn.slice();b.Kb=this.Kb.slice();b.rR=this.rR;b.yR=this.yR;b.xR=this.xR;b.oG=this.oG;b.BR=this.BR;b.CR=this.CR;b.WQ=this.WQ;b.Tj=this.Tj}sx(){return 0<this.Wc.length||this.Qa||this.gh}lj(){const b={};b.aggregation=this.$;b.availableAggregations=this.Wc;b.availableAggregationsCaptions=l.i.ea.G_(this.Wc);b.caption=this.caption;if(b.calculated=this.Qa)b.calculateNaN=this.Jn,b.formula=this.Ge.trim(),b.individual=this.Lk;b.folder=this.Oc;b.format=this.format;b.grandTotalCaption=this.fq;
b.label=this.label;b.name=this.Bl;b.uniqueName=this.A;b.groupName=this.Mg;return b}}h.Vr=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.mF{constructor(b,a=""){super(b,a);this.Tj=null}get value(){return this.bL}set value(b){this.bL=b}get status(){return this.Ata}set status(b){this.Ata=b}get kx(){return this.$sa}set kx(b){this.$sa=b}get gy(){return this.Dta}set gy(b){this.Dta=b}get description(){return this.Tj}set description(b){this.Tj=b}}h.nla=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.mF{constructor(b,a=""){super(b,a);this.Tj=null;this.Na=new e.ub}set Na(b){this.vb=b}get Na(){return this.vb}get type(){return this.Fg}set type(b){this.Fg=b}set JD(b){this.haa=b}get JD(){return this.haa?this.haa:[]}get Yc(){return this.O}set Yc(b){this.O=b}get description(){return this.Tj}set description(b){this.Tj=b}zi(b){b.Ci=this;this.vb.Ta(b.A,b)}uh(b){return this.vb.getItem(b)}static xb(b,a=null){var c=b.uniqueName;c=l.ze.bh(c,b.caption);
null==a&&(a=new l.local.O.b9(c));e.ka(b.caption)?a.caption=b.uniqueName:a.caption=b.caption;return a}}h.TA=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.qaa=this.ZB=!1;this.P$=new e.ub;this.mb=new e.ub;this.LZ=new e.ub;this.sH=new h.wX}get Td(){return this.ZB}set Td(b){this.ZB=b}get tx(){return this.qaa}set tx(b){this.qaa=b}get kb(){return 0<this.Pw.length-(this.Pw.Bb("[Measures]")?1:0)||0<this.Da.length||0<this.s3.length?!1:!0}get Pw(){return this.P$}set Pw(b){}get Da(){return this.mb}set Da(b){}set gr(b){}get gr(){for(var b=new e.ub,a=0;a<this.mb.length;a++){var c=this.mb.fa(a);c.Qa&&
b.Ta(c.A,c)}return b}set Hr(b){}get Hr(){for(var b=[],a=0;a<this.mb.length;a++){var c=this.mb.fa(a);c.Qa||b.push(c)}return b}set nI(b){}get nI(){var b=this.$p("[Measures]");null==b&&(b=this.z_());return b.uh("[Measures]")}z_(){var b=new h.Ct("[Measures]","Measures"),a=new h.TA("[Measures]","Measures");a.type=l.i.dB.eQ;a.zi(b);this.mu(a);return a}mu(b){null==this.$p(b.A)&&(b.Yc=this,this.Pw.Ta(b.A,b))}$p(b){return this.Pw.getItem(b)}vc(b=!1){for(var a=new e.ub,c=0;c<this.Pw.length;c++){var d=this.Pw.fa(c);
if(b||d.type!=l.i.dB.eQ)a=a.concat(d.Na)}return a}uh(b){for(let a=0;a<this.Pw.length;a++){const c=this.Pw.fa(a);if(c.Na.Bb(b))return c.Na.getItem(b)}}zk(b){this.Da.Ta(b.A,b)}fd(b){return this.Da.getItem(b)}EE(b){this.Da.removeItem(b)}clear(){this.P$=new e.ub;this.mb=new e.ub;this.LZ=new e.ub;this.Td=!1}Ok(){return null}nf(){return null}iL(){}get s3(){return this.LZ}set s3(b){}x_(b,a){this.LZ.Ta(b.A,b);if(0==e.ka(b.value)){var c=new h.Vr(b.value,this.Jz(b.value,b.caption,e.model.B.j.U8,a));c.Mg=e.model.B.j.uy;
c.Oc=b.caption;c.type=l.i.Ra.jb;c.xr=b.A;this.zk(c)}0==e.ka(b.kx)&&(c=new h.Vr(b.kx,this.Jz(b.kx,b.caption,e.model.B.j.P8,a)),c.Mg=e.model.B.j.uy,c.Oc=b.caption,c.type=l.i.Ra.jb,c.xr=b.A,this.zk(c));0==e.ka(b.status)&&(c=new h.Vr(b.status,this.Jz(b.status,b.caption,e.model.B.j.S8,a)),c.Mg=e.model.B.j.uy,c.Oc=b.caption,c.type=l.i.Ra.jb,c.xr=b.A,c.Wz=!0,this.zk(c));0==e.ka(b.gy)&&(a=new h.Vr(b.gy,this.Jz(b.gy,b.caption,e.model.B.j.T8,a)),a.Mg=e.model.B.j.uy,a.Oc=b.caption,a.type=l.i.Ra.jb,a.xr=b.A,
a.Xz=!0,this.zk(a))}Jz(b,a,c,d){d=d.La(b,"caption");return e.v(d)?0==b.indexOf("[Measures]")?b.substring(12,b.length-1):a+" "+c:d}Dx(b,a=null,c=!1){c=e.v(a)||c;var d=b.uniqueName;e.ka(b.formula)&&(d=l.ze.bh(d,b.caption));e.v(a)&&(a=new l.local.O.c9(d));b.hasOwnProperty("type")&&(a.type="string"===typeof b.type?l.i.Ra.hAa(parseInt(b.type)):b.type);if(c||a.Qa)b.hasOwnProperty("formula")&&(a.Ge=b.formula),b.hasOwnProperty("individual")&&(a.Lk=b.individual),b.hasOwnProperty("calculateNaN")&&(a.Jn=b.calculateNaN);
b.hasOwnProperty("supportedAggregations")&&(a.lk=b.supportedAggregations);b.hasOwnProperty("availableAggregations")&&(a.Wc=b.availableAggregations);if(b.hasOwnProperty("aggregation")){if(b.aggregation!==l.i.ea.NONE||l.Ma.R().ga.Ec||a.Qa)a.$=b.aggregation}else a.$=a.Qa?l.i.ea.NONE:"";b.hasOwnProperty("format")&&(a.format=b.format,e.model.oc.tj.GI(b.format,a.A,a.$));b.hasOwnProperty("caption")&&(a.caption=b.caption);b.hasOwnProperty("name")&&(a.caption=b.name);b.hasOwnProperty("grandTotalCaption")&&
(a.fq=b.grandTotalCaption);b.hasOwnProperty("groupName")&&(a.Mg=b.groupName);b.hasOwnProperty("folder")&&(a.Oc=b.folder);b.hasOwnProperty("active")?a.an=b.active:b.hasOwnProperty("uniqueName")&&b.hasOwnProperty("caption")&&b.uniqueName!=b.caption&&!b.hasOwnProperty("formula")&&(a.an=!1);a.Qa&&(!b.hasOwnProperty("caption")&&c&&(a.caption=a.A),b=new u.VJ,a.Ud=b.parse(a.Ge));return a}HLa(b){this.mapping=b}}h.yX=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){}static FCa(b){switch(b){case l.i.ra.Cc:case l.i.ra.Pd:return new l.external.Hb.O.jqa;case l.i.ra.kg:return new l.external.Ue.O.Yma;case l.i.ra.API:return new l.external.jc.O.jJ}return new l.local.O.bQ}}h.vra=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b){this.vb=new e.ub;this.Or=l.i.Ba.ed;this.fu=this.SQ=null;this.JK=[];this.nR=[];this.lR=[];this.QB=[];this.h_=l.i.Ba.ed;this.iC=b}set jn(b){this.fu=b;this.SQ=null}get jn(){if(null!=this.SQ)return this.SQ;var b=null;if(null!=this.fu){var a=0;b=[];for(var c=0;c<this.vb.length;c++){var d=this.Na.fa(c);if(!d.We){if(!this.fu[a])break;if("number"==typeof this.fu[a]){b=this.fu;break}else{var g=this.fu[a].toString().trim();if(!/\D/.test(g)){b=this.fu;
break}}d=d.Ib(l.ze.Ws(this.fu[a].toString().trim()));if(null!=d)b.push(d.ordinal);else if(this.fu[a]){b=null;break}a++}}}return this.SQ=b}set XW(b){this.jn=b}get XW(){var b=null,a=this.jn;if(null!=a){var c=0;b=[];for(var d=0;d<this.vb.length;d++){var g=this.Na.fa(d);if(!g.We){if(!a[c])break;g=g.za(""===a[c]?0:parseInt(a[c]));if(null!=g)b.push(g.Fi);else if(a[c]){b=null;break}c++}}}return b}get ld(){return this.JK}set ld(b){if(null==b)this.JK=[];else if(this.bb)this.JK=b;else{this.JK=[];for(var a=
0;a<b.length;a++){var c=b[a];c[0]=-1;this.JK.push(c)}}}get zda(){for(var b=[],a,c,d,g,k,m=0;m<this.ld.length;m++){a=this.ld[m].slice(0);c=[];d=a.shift();g=null;-1<d&&(g=(g=this.Gi(d))?g.Sa():null);for(var n=d=0;n<a.length;n++)k=this.Na.fa(d),k.We&&(d++,k=this.Na.fa(d)),k&&k.za(a[n])&&c.push(k.za(a[n]).A),d++;c.unshift(g);b.push(c)}return b}Kha(b){for(var a=[],c,d,g,k,m,n,p=0;p<b.length;p++){c=b[p].slice(0);d=[];k=-1;g=c.shift();g="string"==typeof g?new e.model.hb.oh(g):e.model.hb.oh.xb(g);m=0;if(0<
this.Na.length)for(var t=0;t<c.length;t++){(n=this.Na.fa(m))&&n.We&&(k=(k=this.Gi(g))?k.index:-1,m++,n=this.Na.fa(m));if(n&&!n.Td&&!n.We)return this.nR=b.slice(0),[];if(n){const r=n.wia(c[t]);if(0>r){d=null;break}else d.push(r)}if(e.v(n))return[];m++}null!==d&&(d.unshift(k),a.push(d))}return a}Y4(){0<this.nR.length&&(this.ld=this.Kha(this.nR),this.nR=[]);0<this.lR.length&&(this.ue=this.Jha(this.lR),this.lR=[])}get ue(){return this.QB}set ue(b){if(e.v(b)||0===b.length)this.QB=[];else{if(this.bb)this.QB=
b;else{this.QB=[];for(var a=0;a<b.length;a++){var c=b[a];"string"===typeof c[0]?c[1]=-1:c[0]=-1;this.QB.push(c)}}this.c6(this.QB);this.hja(this.QB)}}c6(b){b.sort((a,c)=>{if(a.length!==c.length)return 0;var d=a.length-1;a=a[d];c=c[d];return-1===a?1:-1===c||a<c?-1:a>c?1:0})}hja(b){let a;const c=this.vb.slice();c.removeItem("[Measures]");let d;for(let g=0;g<b.length;g++){a=b[g].slice(0);"string"===typeof a[0]&&(d=a.shift());const k=c.fa(a.length-3);if(null==k)break;let m=a[1],n;"string"===typeof a[1]&&
(n=k.Ib(m),!n&&!isNaN(parseInt(a[1]))&&8>a[1].length&&(m=parseInt(a[1])));-1==k.yv.indexOf(m)&&k.yv.push([d,m])}}get mda(){for(var b=[],a,c,d,g,k,m,n,p=0;p<this.ue.length;p++){a=this.ue[p].slice(0);c=[];d="";k=null;"string"==typeof a[0]&&(d=a.shift());g=a.shift();m=a.shift();-1<g&&(k=(k=this.Gi(g))?k.Sa():null);for(var t=g=0;t<a.length;t++)n=this.Na.fa(g),n.We&&(g++,n=this.Na.fa(g)),(n=n.za(a[t]))&&c.push(n.A),g++;c.unshift(m);c.unshift(k);c.unshift(d);b.push(c)}return b}Jha(b){const a=[];let c,d;
for(var g,k,m,n,p,t=0;t<b.length;t++){var r=b[t].slice(0);c=[];g=-1;d=r.shift();m=r.shift();k="string"==typeof m?new e.model.hb.oh(m):e.model.hb.oh.xb(m);m=r.shift();n=0;if(0<this.Na.length)for(var v=0;v<r.length;v++){p=this.Na.fa(n);if(e.v(p))return[];p.We&&(g=(g=this.Gi(k))?g.index:-1,n++,p=this.Na.fa(n));if(!p.Td&&!p.We)return this.lR=b.slice(0),this.hja(b),[];if(p){if(p.type!==l.i.Ic.Ua||p.ua.fa(1).type!==l.i.ib.Ua&&p.ua.fa(1).type!==l.i.ib.Mc)p=p.Ib(r[v]);else{if(e.model.C.F.qr&&"null"===r[v])var y=
null;else if(8>r[v].length||/\D+/.test(r[v].slice(1))){y=p.ua.fa(1).type===l.i.ib.Mc?e.model.C.F.Ek:e.model.C.F.Up;y=p.mapping.La(p.A,"format",y);const C=new e.Rf(r[v],{Vy:!1,format:y});C.Kf(u.Lh.sg(y));y=C.getTime()}else y=parseInt(r[v]);p=p.Pu(y)}p?c.push(p.ordinal):c.push(-1)}n++}if((p=this.Na.fa(r.length-1))&&p.Td&&null!==p.ic&&null==p.Ib(m))for(r=m.slice(1,-1).split("].[");1<r.length;){r.pop();var A=1<r.length?`[${r.join("].[")}]`:r[0];null==b.find(C=>C[c.length+2]===A)&&(k=c.slice(0,-1),n=p.Ib(A),
null!=n&&(k.push(n.ordinal),k.unshift(A),k.unshift(g),""!=d&&k.unshift(d),a.push(k)))}c.unshift(m);c.unshift(g);""!=d&&c.unshift(d);a.push(c)}return a}set ig(b){b=b.toLowerCase();this.h_=b==l.i.Ba.hc||b==l.i.Ba.Nc?b:l.i.Ba.ed}get ig(){return this.h_}get A(){return this.iC}set A(b){this.iC=b}get caption(){return this.yc}set caption(b){this.yc=b}get Na(){return this.vb}set Na(b){this.ld=[];this.ue=[];this.fu=null;this.h_=l.i.Ba.ed;this.Mf=null;this.vb=b}get ke(){return this.vb.indexOf("[Measures]")}set ke(b){}get nI(){return this.vb.getItem("[Measures]")}set nI(b){}get bb(){return-1<
this.ke}set bb(b){}get depth(){for(var b=0,a=0;a<this.vb.length;a++){var c=this.vb.fa(a);b+=c.jda}return b}set depth(b){}toString(){return"[Axis:"+this.iC+" ]"}static pFa(b,a,c){"[Measures]"!==b.A&&(c=c.Da.getItem(b.A),void 0===c||c.yc===b.caption&&!a.hasOwnProperty("caption")||(c.yc!==b.caption?a.caption=c.yc:a.hasOwnProperty("caption")&&a.caption!==c.yc&&(c.yc=a.caption)))}static xb(b,a,c,d,g,k,m=null,n=!1){b=new f(b);m&&(b.Gi=t=>m(t));b.Na=new e.ub;if(a)for(let t=0;t<a.length;t++)if(null!=a[t].uniqueName){a[t].uniqueName=
l.ze.bh(a[t].uniqueName,a[t].caption);let r=k.uh(a[t].uniqueName);if(null!=r){n&&(r=r.clone(),r.JC(),r.filter.clear());this.pFa(r,a[t],k);h.Ct.xb(a[t],r);if(r.We&&b.A===l.i.ha.Lt)continue;const v=e.v(a[t].levelName)?e.v(a[t].activeLevelName)?null:a[t].activeLevelName:a[t].levelName;r.zf=v;b.Na.Ta(r.A,r)}}if(c){if(null!=c.measure){a="string"===typeof c.measure?new e.model.hb.oh(l.ze.bh(c.measure)):e.model.hb.oh.xb(c.measure);var p=b.Gi(a)}null!=p&&null!=c.tuple?b.SE(p,c.tuple,c.type):b.NQa=c}if(d&&
0<d.length){c=[];for(a=0;a<d.length;a++){k=d[a];n=[];0<k.length&&n.push(f.ofa(k[0]));for(p=1;p<k.length;p++)n.push(f.Wga(k[p]));c.push(n)}d=c}b.ld=d?b.Kha(d):[];if(g&&0<g.length){d=[];for(c=0;c<g.length;c++){a=g[c];k=[];0<a.length&&k.push(f.ofa(a[0]));for(n=1;n<a.length;n++)k.push(f.Wga(a[n]));d.push(k)}g=d}b.ue=g?b.Jha(g):[];return b}static ofa(b){if("string"===typeof b){const a=parseInt(b);if(isNaN(a)||a.toString()!==b)return l.ze.bh(b)}return b}static Wga(b){if("string"===typeof b){const a=parseInt(b);
if(isNaN(a)||a.toString()!==b)return l.ze.Ws(b)}return b}Sa(){for(var b={},a=[],c=0;c<this.Na.length;c++){var d=this.Na.fa(c).Sa();a.push(d)}b.hierarchies=a;this.ig==l.i.Ba.ed||e.v(this.jn)||e.v(this.Mf)||(b.sort={type:this.ig,tuple:this.XW,measure:{uniqueName:this.Mf.A,aggregation:this.Mf.$}});return b}SE(b,a,c){this.Mf=b;this.jn=a;this.ig=c;0==a.length&&(this.Or=this.ig,this.wt=this.Mf)}KC(){this.jn=this.Mf=null;this.Or=this.ig=l.i.Ba.ed;this.wt=null}clone(){var b=new f(this.iC);b.caption=this.caption;
b.Na=this.Na.slice(0);b.wt=this.wt;b.Or=this.Or;b.Mf=this.Mf;b.jn=this.jn;b.ig=this.ig;b.ld=this.ir(this.ld);b.ue=this.ir(this.ue);return b}ir(b){for(var a=[],c=0;c<b.length;c++)a.push(b[c].slice());return a}}h.Tr=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b){this.hs=new e.ub;this.mb=[];this.Q$=this.R$=this.W$=this.X$=!1;this.SB=[];this.pR=[];this.kR=[];this.Ij={};this.J3=!0;this.Yc=b;this.ku(new l.O.Tr(l.i.ha.Ia));this.ku(new l.O.Tr(l.i.ha.Oa));this.ku(new l.O.Tr(l.i.ha.Lt))}get axes(){return this.hs}set axes(b){}ku(b){this.hs.Ta(b.A,b);b.bb&&(this.KB=b)}td(b){return this.hs.getItem(b)}Iza(b){if(-1!=this.$b.Na.indexOf(b))return this.$b;if(-1!=this.Lb.Na.indexOf(b))return this.Lb;if(-1!=this.vI.Na.indexOf(b))return this.vI}set As(b){}get As(){this.Cka();
return this.KB}Cka(){if(null==this.KB){for(var b=0;b<this.hs.length;b++){var a=this.hs.fa(b);if(a.bb){this.KB=a;break}}null==this.KB&&(this.KB=this.td(l.i.ha.Oa))}this.KB.bb||(b=this.Yc.nI)&&this.KB.Na.Ta(b.A,b)}get Hr(){const b=[],a={};for(var c=0;c<this.mb.length;c++){var d=this.mb[c];d.Qa||void 0!==a[d.A]||(b.push(d),a[d.A]=1)}return b}set Hr(b){}get gr(){for(var b=new e.ub,a=0;a<this.mb.length;a++){var c=this.mb[a];c.Qa&&b.Ta(c.A,c)}return b}set gr(b){}get Wf(){return this.mb}set Wf(b){this.zA(b)}gd(b=
!1){for(var a=[],c=0;c<this.mb.length;c++){var d=this.mb[c];!b&&d.hidden||a.push(d)}return a}zA(b){this.mb=b}Gi(b){for(var a=0;a<this.mb.length;a++)if(b.A==this.mb[a].A&&(""==b.$||b.$===this.mb[a].$))return this.mb[a];return null}bx(b){return b instanceof e.model.hb.oh?this.Gi(b):isNaN(b)?null:this.mb[b]}Iea(b,a){for(var c=0;c<this.mb.length;c++)if(b==this.mb[c].A&&(void 0==a||a==this.mb[c].$))return c;return-1}vc(b=!0,a=!0,c=!1,d=!1){let g=new e.ub;for(let k=0;k<this.hs.length;k++){const m=this.hs.fa(k);
g=g.concat(m.Na)}b||g.removeItem(this.Yc.nI.A);if(!a)for(b=0;b<this.qb.length;b++)g.removeItem(this.qb.Uh(b));if(c)for(c=0;c<this.mb.length;c++)b=this.mb[c],b.Qa||b.hidden&&!d||(b=this.Yc.Ok(b.A),e.v(b)||g.Ta(b.A,b));return g}clear(){for(var b=0;b<this.hs.length;b++)this.hs.fa(b).Na=new e.ub;this.mb=[]}get rows(){return this.td(l.i.ha.Ia).Na}set rows(b){var a=this.td(l.i.ha.Ia);null==a&&(a=new h.Tr(l.i.ha.Ia));a.Na=b;null==b&&(a.Na=new e.ub);a.Gi=c=>this.bx(c);this.ku(a)}get Ka(){return this.td(l.i.ha.Oa).Na}set Ka(b){var a=
this.td(l.i.ha.Oa);null==a&&(a=new h.Tr(l.i.ha.Oa));a.Na=b;null==b&&(a.Na=new e.ub);a.Gi=c=>this.bx(c);this.ku(a)}get qb(){return this.td(l.i.ha.Lt).Na}set qb(b){var a=this.td(l.i.ha.Lt);null==a&&(a=new h.Tr(l.i.ha.Lt));a.Na=b;null==b&&(a.Na=new e.ub);this.ku(a)}set wb(b){}get wb(){return this.As.A==l.i.ha.Ia?this.rows.splice(this.As.ke,1):this.rows}set Fb(b){}get Fb(){return this.As.A==l.i.ha.Oa?this.Ka.splice(this.As.ke,1):this.Ka}clone(){var b=new f(this.Yc);b.rows=this.rows.slice();b.Ka=this.Ka.slice();
b.qb=this.qb.slice();b.zA(this.gd(!0));b.Zg=this.Zg.slice(0);b.$g=this.$g.slice(0);b.cd=this.cd.slice(0);b.ku(this.$b.clone());b.$b.Gi=a=>this.bx(a);b.ku(this.Lb.clone());b.Lb.Gi=a=>this.bx(a);b.lf=this.lf;b.kf=this.kf;b.hf=this.hf;b.Xf=this.Xf;return b}static Bba(b,a){if(null==a)return!0;var c=b.rows.length!=a.rows.length;if(!c)for(var d=0;d<b.rows.length;d++)if(b.rows.fa(d).A!=a.rows.fa(d).A){c=!0;break}return c}static Aba(b,a){if(null==a)return!0;var c=b.Ka.length!=a.Ka.length;if(!c)for(var d=
0;d<b.Ka.length;d++)if(b.Ka.fa(d).A!=a.Ka.fa(d).A){c=!0;break}return c}static cva(b,a){if(null==a)return!0;b=b.gd();a=a.gd();var c=b.length!=a.length;if(!c)for(var d=0;d<b.length;d++)if(b[d].A!=a[d].A){c=!0;break}return c}static Xua(b,a){void 0!==a.caption&&null!=b&&(b.caption=a.caption)}static fEa(b){return void 0===b.formula?!0:e.model.C.F.tu&&l.Ma.R().ga.Aa===l.i.ra.Cc||!l.Ma.R().ga.Ec||l.Ma.R().ga.Aa===l.i.ra.API}static xb(b,a,c=!1,d=!1){const g=new f(a);var k=[],m=a.vc(),n=b.Da.map(r=>r.uniqueName);
for(var p=0;p<b.Da.length;p++)if(void 0!==b.Da[p].uniqueName&&this.fEa(b.Da[p])){e.ka(b.Da[p].formula)&&(a.fd(b.Da[p].uniqueName)||(b.Da[p].uniqueName=l.ze.bh(b.Da[p].uniqueName)));var t=a.Da.getItem(b.Da[p].uniqueName);if(null!=t||!e.ka(b.Da[p].formula)){this.Xua(m.getItem(b.Da[p].uniqueName),b.Da[p]);t=a.Dx(b.Da[p],t);t.hidden=!1;if(t.Qa&&!a.Da.Bb(t.A)){if(e.model.C.F.RO&&!g.eNa(t,n))continue;a.zk(t)}if(null==b.Da[p].active||b.Da[p].active)t=t.clone(),t.index=k.length,k.push(t)}e.model.C.F.sc&&
!e.v(b.Da[p].filter)&&(t=m.getItem(b.Da[p].uniqueName),e.v(t)||(t.filter=e.model.hb.lB.xb(b.Da[p].filter,t)))}g.G6(k);k=l.O.Tr.xb(l.i.ha.Ia,b.rows,b.hk,b.Ww,b.Tw,a,r=>g.bx(r),c);m=l.O.Tr.xb(l.i.ha.Oa,b.Ka,b.Yj,b.Vw,b.Sw,a,r=>g.bx(r),c);c=l.O.Tr.xb(l.i.ha.Lt,b.qb,null,[],[],a,null,c);g.rows=k.Na;g.Ka=m.Na;g.qb=c.Na;g.lf=b.lf;g.kf=b.kf;g.hf=b.hf;g.Xf=b.Xf;if(l.Ma.R().ga&&l.Ma.R().ga.aI)if(g.Zg=b.Zg,e.v(b.$g))if(m.ig==l.i.Ba.ed||e.v(m.Mf))for(c=b.rows.concat(b.Ka.concat(b.qb)),n=0;n<c.length;n++){if(t=
c[n],p=t.sortName,t=a.fd(t.uniqueName),!e.v(p)&&!e.v(t)&&l.i.Ba.ih(p)&&p!=l.i.Ba.ed){g.$g=[{sort:p,measure:t}];break}}else g.$g=[{sort:m.ig,measure:m.Mf}];else g.$g=f.Rda(b.$g,a);g.cd=b.cd;g.Ij=b.Ij;g.ku(k);g.ku(m);g.Cka();g.Eka();d||g.MKa(g);return g}static Rda(b,a){if(e.v(b))return null;const c=[];for(var d=0;d<b.length;d++){var g=b[d];const k=a.fd(g&&g.uniqueName?g.uniqueName:g.measure.uniqueName);g=String(g.sort).toLowerCase();!e.v(k)&&l.i.Ba.ih(g)&&c.push({measure:k,sort:g})}return c}Eka(){const b=
e.model.C.F.sc,a=this.mb.filter(k=>-1<l.i.ea.RA.indexOf(k.$));for(var c=0;c<this.rows.length;c++){var d=this.rows.fa(c),g=d.filter.measure;b&&d.filter.ji&&!e.v(this.Yc.fd(g.A))||this.oga(d,g,a)||d.filter.HC()}for(c=0;c<this.Ka.length;c++)d=this.Ka.fa(c),g=d.filter.measure,b&&d.filter.ji&&!e.v(this.Yc.fd(g.A))||this.oga(d,g,a)||d.filter.HC()}oga(b,a,c){c=c.find(d=>a&&d.A===a.A);return!(b.filter.ji&&null==this.fd(b.filter.measure.A)||a&&l.Ma.R().ga.Ec&&void 0!==c)}eNa(b,a){b=u.LP.pS(b.Ge,b.A,a);return 0==
b.px?(e.Va(b.errorMessage),!1):!0}MKa(b){if(null!=l.Ma.R().qa){var a=l.Ma.R().qa.As,c=b.As;null!=a&&null!=c&&a.A!=c.A||null==a.Mf||null==b.Gi(new e.model.hb.oh(a.Mf.A,a.Mf.$,a.Mf.index))||null!=c.Mf||(c.Mf=a.Mf,c.XW=a.XW,c.jn=a.jn,c.ig=a.ig)}}kka(){const b=new e.model.hb.vo,a=this.td(l.i.ha.Ia).Sa(),c=this.td(l.i.ha.Oa).Sa();var d=this.td(l.i.ha.Lt).Sa();b.rows=a.hierarchies;b.Ka=c.hierarchies;b.qb=d.hierarchies;b.Da=[];d=this.Yc.Da;const g=this.gd();for(var k=0;k<g.length;k++){var m=g[k],n=m.Sa();
n.caption=m.Bl;n.active=!0;e.model.C.F.sc&&(m=this.Yc.Ok(m.A))&&m.filter.Fh&&!b.YDa(m.A)&&(n.filter=m.filter.Sa());b.Da.push(n)}for(k=0;k<d.length;k++){const p=d.fa(k);p.hidden&&!p.Qa||p.w2()||g.find(t=>t.A===p.A)||(n=p.Sa(),n.active=!1,b.Da.push(n))}b.hk=a.sort;b.Yj=c.sort;b.lf=this.lf;b.kf=this.kf;b.Ww=this.axes.getItem(l.i.ha.Ia).zda;b.Vw=this.axes.getItem(l.i.ha.Oa).zda;b.hf=this.hf;b.Xf=this.Xf;b.Tw=this.axes.getItem(l.i.ha.Ia).mda;b.Sw=this.axes.getItem(l.i.ha.Oa).mda;b.Zg=this.Zg;b.$g=this.Sda();
b.cd=this.cd;b.Ij=this.Ij;return b}Sda(){if(e.v(this.$g))return null;const b=[];for(var a=0;a<this.$g.length;a++){var c=this.$g[a];b.push({uniqueName:c.measure.A,sort:c.sort})}return b}Sa(){var b={};b.rows=[];for(var a=0;a<this.rows.length;a++){var c=this.rows.fa(a).Sa();b.rows[a]=c}b.columns=[];for(a=0;a<this.Ka.length;a++)c=this.Ka.fa(a).Sa(),b.columns[a]=c;b.pages=[];for(a=0;a<this.qb.length;a++)c=this.qb.fa(a).Sa(),b.pages[a]=c;b.measures=[];for(a=0;a<this.mb.length;a++)this.mb[a].hidden||(c=
this.mb[a].Sa(),b.measures[a]=c);return b}Y4(){for(var b=0;b<this.hs.length;b++)this.hs.fa(b).Y4()}flatten(b=!1,a=!1){const c=this.vc(!1);for(let d=0;d<this.mb.length;d++){if(this.mb[d].hidden)continue;const g=this.mb[d];if(a)g.type===l.i.Ra.wc?c.Bb(g.A)||c.Ta(g.A,g):c.Ta(g.A,g);else{let k=this.Ok(g.A);null!=k&&c.Ta(k.A,k);g.Qa&&b&&(k=new h.Ct(g.A,g.caption),c.Ta(g.A,k))}}return this.Pua(c,this.Zg)}Pua(b,a){const c=new e.ub;for(let d=0;d<a.length;d++){const g=a[d];b.Bb(g)&&(c.Ta(g,b.getItem(g)),b.removeItem(g))}for(a=
0;a<b.length;a++)c.Ta(b.Uh(a),b.fa(a));return c}isEqual(b){if(null==b)return!1;var a=this.gd(),c=b.gd();if(this.qb.length!=b.qb.length||this.rows.length!=b.rows.length||this.Ka.length!=b.Ka.length||a.length!=c.length)return!1;for(var d=0;d<this.qb.length;d++)if(this.qb.Uh(d)!=b.qb.Uh(d))return!1;for(d=0;d<this.rows.length;d++)if(this.rows.Uh(d)!=b.rows.Uh(d))return!1;for(d=0;d<this.Ka.length;d++)if(this.Ka.Uh(d)!=b.Ka.Uh(d))return!1;for(d=0;d<a.length;d++)if(a[d].A!=c[d].A||a[d].$!=c[d].$)return!1;
return!0}Ok(b){return this.Yc.Ok(b)}nf(b){return this.Yc.nf(b)}get kb(){return 0==this.vc(!1).length&&0==this.mb.length}rFa(){if(e.model.C.F.sc){this.rows=new e.ub;this.Ka=new e.ub;this.qb=new e.ub;for(var b=[],a=[],c=0;c<this.Yc.Da.length;c++){var d=this.Yc.Da.fa(c);a.push(d.A);d.type==l.i.Ra.wc?(d=this.Yc.Ok(d.A))&&this.rows.Ta(d.A,d):(d.index=0,b.push(d))}if(e.v(this.SB)||0==this.SB.length)this.SB=a;this.mb=b}else{for(c=0;c<this.Yc.Da.length&&(d=this.Yc.Da.fa(c),d.type!=l.i.Ra.jb?null==a&&(a=this.Yc.Ok(d.A)):
null==b&&(b=d),null==a||null==b);c++);null==b?b=this.Yc.Da.fa(0):null==a?(d=this.Yc.Da.fa(0),a=this.Yc.Ok(d.A)):null==a&&null==b&&0<this.Yc.Da.length&&(b=this.Yc.Da.fa(0),a=this.Yc.Ok(b.A));null!=a&&null!=b&&(this.qb=new e.ub,this.rows=new e.ub,this.Ka=new e.ub,this.rows.Ta(a.A,a),c=[],b.index=0,c.push(b),this.mb=c)}}get lf(){return this.X$}set lf(b){this.X$=b}get kf(){return this.W$}set kf(b){this.W$=b}get hf(){return this.R$}set hf(b){this.R$=b}get Xf(){return this.Q$}set Xf(b){this.Q$=b}fwa(){this.$b.ld=
[]}$va(){this.Lb.ld=[]}ewa(){this.$b.ue=[]}Zva(){this.Lb.ue=[]}dwa(){for(let b=0;b<this.$b.Na.length;b++)this.$b.Na.fa(b).Vba()}Yva(){for(let b=0;b<this.Lb.Na.length;b++)this.Lb.Na.fa(b).Vba()}get Zg(){null==this.SB&&(this.SB=[]);return this.SB}set Zg(b){this.SB=b}get $g(){null==this.pR&&(this.pR=[]);return this.pR}set $g(b){this.pR=b}get cd(){null==this.kR&&(this.kR=[]);return this.kR}set cd(b){this.kR=b}get $b(){return this.axes.getItem(l.i.ha.Ia)}get Lb(){return this.axes.getItem(l.i.ha.Oa)}get vI(){return this.axes.getItem(l.i.ha.Lt)}G6(b){void 0===
b&&(b=this.mb);const a=[];if(this.Yc instanceof l.external.jc.O.jJ&&0<e.model.va.nn.Xc.length)for(var c=0;c<e.model.va.nn.Xc.length;c++){var d=e.model.va.nn.Xc.fa(c);if((d=u.Ht.RM(d.Ud,this.Yc.Da))&&0<d.length)for(var g=0;g<d.length;g++){var k=d[g];let n=this.Yc.Da.getItem(k.A);if(null!=n){var m=b.find(p=>p.A===n.A);if(null==m||!m.Qa&&m.$!=k.$)m=n.clone(),m.$=k.$,m.hidden=!0,a.push(m)}}}c=null;for(d=0;d<b.length;d++)if(c=b[d],c.format=this.Yc.Da.getItem(c.A).format,a.push(c),c.Qa){if((g=u.Ht.RM(c.Ud,
this.Yc.Da))&&0<g.length)for(k=0;k<g.length;k++){m=g[k];let n=this.Yc.Da.getItem(m.A);if(null!=n){let p=b.find(t=>t.A===n.A);if(null==p||!p.Qa&&p.$!=m.$)p=n.clone(),p.$=m.$,p.hidden=!0,a.push(p)}}this.Yc instanceof l.external.jc.O.jJ&&(c.Ud=u.Ht.FH(c.Ud,this.Yc.Da))}this.zA(a)}HFa(b){e.v(b)||(this.lf=b.lf,this.kf=b.kf,this.hf=b.hf,this.Xf=b.Xf,f.Bba(this,b)?(this.$b.ld=this.ZS(b.$b.ld,this.RT(this.$b.Na,b.$b.Na)),this.$b.ue=this.ZS(b.$b.ue,this.RT(this.$b.Na,b.$b.Na)+2)):(this.$b.ld=this.ir(b.$b.ld),
this.$b.ue=this.ir(b.$b.ue)),f.Aba(this,b)?(this.Lb.ld=this.ZS(b.Lb.ld,this.RT(this.Lb.Na,b.Lb.Na)),this.Lb.ue=this.ZS(b.Lb.ue,this.RT(this.Lb.Na,b.Lb.Na)+2)):(this.Lb.ld=this.ir(b.Lb.ld),this.Lb.ue=this.ir(b.Lb.ue)))}EE(b,a){const c=[];for(let d=0;d<this.mb.length;d++)(this.mb[d].A!==b||this.mb[d].$!==a&&void 0!==a)&&c.push(this.mb[d]);this.mb=c}qia(b){b.index<this.mb.length&&this.mb[b.index].A===b.A&&this.mb[b.index].$===b.$?this.mb.splice(b.index,1):this.EE(b.A,b.$)}fd(b){for(var a=0;a<this.mb.length;a++)if(this.mb[a].A==
b)return this.mb[a]}RT(b,a){for(var c=0,d=Math.min(b.length,a.length),g=0;g<d;g++){var k=b.fa(g),m=a.fa(g);if(k.A!=m.A)break;k.We||c++}return c}ZS(b,a){var c=[];if(1<a)for(var d=0;d<b.length;d++){var g=b[d];g.length<=a&&c.push(g.slice())}return c}ir(b){for(var a=[],c=0;c<b.length;c++)a.push(b[c].slice());return a}r0(b){return this.kca(b,this.wb)}q0(b){return this.kca(b,this.Fb)}kca(b,a){var c=[];if(e.v(b))return c;for(var d=0;d<b.length;d++){var g=a.fa(d);e.v(g)||(g=g.za(b[d]),e.v(g)||c.push(g.Sa()))}return c}YCa(){let b=
this.vc();for(let a=0;a<b.length;a++)if(b.fa(a).Ef)return!0;return!1}}h.Tq=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{get oL(){return!0}set oL(c){}nba(){throw"Not Implemented";}dua(c,d){e.v(this.Oy)&&(this.Oy=new e.ub);this.Oy.Ta(c,d)}Wea(c,d){return!e.v(this.Oy)&&this.Oy.Bb(c.A)?this.PS(this.Oy.getItem(c.A),d):this.CH(d)}PS(c,d){if("boolean"===typeof c)return!0===c?this.CH(d):null;const g=new a;d=this.CH(d);e.v(c.nd)||(g.nd=c.nd);e.v(c.query)||(g.query="boolean"===typeof c.query?!0===c.query?d.query:[]:c.query.slice());e.v(c.vm)||(g.vm="boolean"===typeof c.vm?!0===
c.vm?d.vm:[]:c.vm.slice());return g}CH(c){var d=new a;d.nd=!0;d.vm=l.i.Wb.Gq;switch(c){case l.i.tb.fl:d.query=l.i.Eb.Gq;break;case l.i.tb.Ua:d.query=l.i.cc.Gq;break;case l.i.tb.jb:d.query=l.i.Ug.Gq;break;case l.i.tb.ec:d.query=l.i.il.Gq}return d}}h.wX=f;class b{}h.yra=b;class a{get Wfa(){return 1==this.nd}get sN(){return!e.v(this.query)&&0<this.query.length}get pga(){return!e.v(this.vm)&&0<this.vm.length}merge(c){void 0===this.nd&&(this.nd=c.nd);void 0===this.query&&(this.query=c.query);void 0===
this.vm&&(this.vm=c.vm)}}h.xra=a})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){class f extends h.Et{isEqual(b){return b.Aa==l.i.ra.EMPTY}clone(){return new f}Sa(){return{}}}h.gB=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends l.O.Et{constructor(){super(...arguments);this.requestPermission=this.Yd=!1;this.mapping=new l.O.Bm}isEqual(b){return super.isEqual(b)&&this.filename===b.filename&&!1===this.Yd&&!1===b.Yd&&this.mapping.isEqual(b.mapping)}}h.YP=f})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends l.c7{constructor(){super(...arguments);this.Kh=[];this.bo=[];this.aZ=[{value:"Chrome",$N:.76},{value:"Firefox",$N:.11},{value:"Safari",$N:.05},{value:"Edge/IE",$N:.06},{value:"Opera",$N:.02}]}LC(){super.LC();this.Kh=[];this.bo=[]}iwa(){this.Kh=[];this.bo=[];this.values=[]}static clone(b){var a=new f(b.wa);a.qh=b.qh.slice(0);a.Wn=b.Wn.slice(0);a.zb=b.zb.slice(0);a.Kc=b.Kc.slice(0);a.ua=b.ua.slice(0);a.le=b.le.slice(0);a.th=b.th.slice(0);a.zg=b.zg.slice(0);
a.su=b.su.slice(0);a.nx=b.nx.slice(0);return a}qya(b){var a=this.Wn.indexOf(b);if(!e.v(b)&&-1<a){for(b=0;b<this.th.length;b++)void 0===this.Kh[b]&&(this.Kh[b]=[]),void 0!==this.Kc[b]?(this.Kc[b][a]=NaN,this.Kh[b][a]={Wp:-this.Kc[b][a],ht:-1}):this.Kh[b][a]={Wp:0,ht:0};this.qh=e.Ja.Qr(this.qh,this.qh.indexOf(a));this.Wn[a]=null}}update(b,a,c){var d=this.Wn.indexOf(c);if(!e.v(c)&&-1<d){for(c=0;c<this.th.length;c++)if(this.Kc[c]&&this.Kc[c][d]!==a[c]){var g=a[c]-this.Kc[c][d];isNaN(g)||(null==this.Kh[c]&&
(this.Kh[c]=[]),this.Kh[c][d]={Wp:g,ht:g/this.Kc[c][d]})}for(c=0;c<a.length;c++)this.Kc[c][d]=a[c];for(c=0;c<b.length;c++)this.zb[c][d]=b[c]}else{d=this.HA;e.v(c)||(this.Wn[d]=c);for(c=0;c<this.th.length;c++)g=a[c],isNaN(g)||(null==this.Kh[c]&&(this.Kh[c]=[]),this.Kh[c][d]={Wp:g,ht:1});this.qh=e.Ja.Pr(this.qh,d);for(c=0;c<b.length;c++)this.zb[c]=e.Ja.Pr(this.zb[c],b[c]);for(c=0;c<a.length;c++)this.Kc[c]=e.Ja.Pr(this.Kc[c],a[c])}}insert(b,a,c){if(!(-1<b.indexOf(0))){var d;if(0===this.zb.length)for(d=
0;d<b.length;d++)this.zb[d]=[];this.qh=e.Ja.Pr(this.qh,this.HA);e.v(c)||(this.Wn[this.HA]=c);for(d=0;d<b.length;d++)this.zb[d]=e.Ja.Pr(this.zb[d],b[d]);if(0===this.Kc.length)for(d=0;d<a.length;d++)this.Kc[d]=[];for(d=0;d<a.length;d++)this.Kc[d]=e.Ja.Pr(this.Kc[d],a[d])}}yea(b,a,c,d){if(0!=b.length){var g=this.Kc[a]instanceof Uint8Array;for(let m=0;m<b.length;m++){var k=this.Kc[a][b[m]];isNaN(k)||g&&0==k||d[k]||(c.push(k),d[k]=!0)}}}VKa(b,a,c,d){b=this.eb[b[0]];a=a[0];const g=[];let k,m;this.Kh=[];
this.Kh[b]=[];this.values=[];this.bo=[];if(null!=c){let n=c.Oda(d);m=this.Oea(c.za(this.zb[a][b]),"string"==typeof d);null==n&&(n=null!=c.Ib(d)?c.pc(new l.O.be({A:e.P.zM(),caption:d})):c.pc(new l.O.be({A:d,caption:d})));this.zb[a][b]=n.ordinal;k=null!=this.Wn[b]?this.Wn[b]:b;g.push({id:k,field:c.A,value:d,oldValue:m});c=parseFloat(d)-this.Kc[a][b];this.Kh[b][a]={Wp:c,ht:c/this.Kc[a][b]};this.Kc[a][b]=parseFloat(d);0<g.length&&this.wa.Ria(g);return n.ordinal}}Oea(b,a){return null==b?"":a?b.caption:
b.nc}save(b,a,c,d,g){var k=this.md(b,this.Cd),m=this.md(a,this.Od);g=(b.length*m[0][0].length<a.length*k[0][0].length?this.Zp(m[0][0],b,this.Zh):this.Zp(k[0][0],a,this.xj))[g];b=[];a=this.th.indexOf(this.wa.O.nf(c.A).A);this.Kh=[];this.Kh[a]=[];k=parseFloat(d)-this.Kc[a][g];this.Kh[a][g]={Wp:k,ht:k/this.Kc[a][g]};this.Kc[a][g]=parseFloat(d);this.values=[];this.bo=[];if(null!=c)return m=this.le.indexOf(c.A),k=c.Oda(d),k=null===k?c.Ib(d):k,a=this.Oea(c.za(this.zb[m][g]),"string"==typeof d),null==k&&
(k=c.pc(this.BBa(c,d))),k.nc=d,this.zb[m][g]=k.ordinal,g=null!=this.Wn[g]?this.Wn[g]:g,b.push({id:g,field:c.A,value:d,oldValue:a}),0<b.length&&this.wa.Ria(b),k.ordinal}BBa(b,a){b=this.wa.O.nf(b.A);l.i.Ra.Ua==b.type?(b=e.P.$x(a,e.model.C.F.Up,e.model.C.F.$j),a=new l.O.be({A:b,caption:b,nc:a})):l.i.Ra.wc==b.type?a=new l.O.be({A:a.toString(),caption:a.toString()}):l.i.Ra.ec==b.type?(b=e.P.ey(a,e.model.C.F.np),a=new l.O.be({A:b,nc:a})):a=new l.O.be({A:a.toString(),caption:a.toString(),nc:a});return a}cd(b,
a){const c=[];c.push(this.le);var d=this.md(b,this.Cd);if(e.v(d)||e.v(d[0])||e.v(d[0][0]))return c;var g=this.md(a,this.Od);if(e.v(g)||e.v(g[0])||e.v(g[0][0]))return c;b=b.length*g[0][0].length<a.length*d[0][0].length?this.Zp(g[0][0],b,this.Zh):this.Zp(d[0][0],a,this.xj);for(a=0;a<b.length;a++){d=[];for(g=0;g<this.zb.length;g++)d.push(this.zb[g][b[a]]);c.push(d)}return c}HD(b,a,c){b=this.Bs(b,a);a=c.Qa?this.slice.gd().findIndex(d=>d.A===c.A)+this.th.length:this.th.indexOf(c.A);return void 0==this.bo[b]?
null:this.bo[b][a]}Fea(b,a){if(a.Qa)return null;a=this.th.indexOf(a.A);return null==b?this.U_(this.eb,a):void 0==this.bo[b]?null:this.bo[b][a]}Ps(b){return null==this.eb[b]||null==this.zb[0][this.eb[b]]||""==this.wa.O.id?null:this.Wn[this.eb[b]]}oCa(b,a){if(0==this.Wn.length)return null;var c=this.md(b,this.Cd);if(e.v(c)||e.v(c[0])||e.v(c[0][0]))return null;const d=this.md(a,this.Od);if(e.v(d)||e.v(d[0])||e.v(d[0][0]))return null;b=b.length*d[0][0].length<a.length*c[0][0].length?this.Zp(d[0][0],b,
this.Zh):this.Zp(c[0][0],a,this.xj);a=[];for(c=0;c<b.length;c++)a.push(this.Wn[b[c]]);return 0==a.length?null:a}XT(b,a,c,d,g){if(this.wa.ga.mN)return 0===this.zb[0][b]&&this.KAa(b),this.zb[a][b];if(null==this.eb[b]||null==this.zb[0][this.eb[b]])return NaN;if(d){!c.Qa&&this.Kh.length&&(d=this.th.indexOf(c.A),null==this.bo[b]&&(this.bo[b]=[]),this.bo[b][d]=this.U_([this.eb[b]],d));if(c.Qa){b=this.bq([this.eb[b]],c.Ud,c.Lk,0,null,null,c.Jn);if(!0===b||!1===b)b=!0===b?1:0;return b}return this.Kc[a][this.eb[b]]}this.Kc.length!=
this.zb.length&&(a=this.le.indexOf(this.th[a]),void 0!==g&&(a=this.ua[a][g]));return this.zb[a][this.eb[b]]}La(b,a,c){var d=this.Bs(b,a),g=this.ii(c);if(e.v(this.values[g])||-1==g)this.values[g]=[];g=this.values[g];if(!g[d]){var k=this.md(b,this.Cd),m=this.md(a,this.Od);if(null==k||null==k[0]||null==m||null==m[0])return NaN;var n=[],p=this.th.indexOf(c.A);0<m.length&&0<k.length&&b.length*m[0][0].length<a.length*k[0][0].length?n=this.Zp(m[0][0],b,this.Zh):0<k.length&&(n=this.Zp(k[0][0],a,this.xj));
if(c.Qa){if(b=this.bq(n,c.Ud,c.Lk,0,b,a,c.Jn),!0===b||!1===b)b=!0===b?1:0}else b=c.$==l.i.ea.pj?c.type==l.i.Ra.wc?this.GM(n,c):this.xea(n,b,a,p):this.Wg(n,p,c.$);g[d]=b;0<this.Kh.length&&(null==this.bo[d]&&(this.bo[d]=[]),this.bo[d][p]=this.U_(n,p));return b}return g[d]}U_(b,a){if(void 0==this.Kh[a])return null;for(var c=!1,d={Wp:0,ht:0},g=0;g<b.length;g++)this.Kh[a][b[g]]&&0!=this.Kh[a][b[g]].Wp&&!isNaN(this.Kh[a][b[g]].Wp)&&(d.Wp+=this.Kh[a][b[g]].Wp,d.ht+=this.Kh[a][b[g]].ht,c=!0);return c?d:null}pack(){if(!this.wa.ga.mN){var b=
this.wa.O.vc(!1);65536>this.qh.length?this.qh=new Uint16Array(this.qh):4294967296>this.qh.length&&(this.qh=new Uint32Array(this.qh));var a;for(a=0;a<b.length;a++){var c=b.fa(a),d=this.le.indexOf(c.A);-1===d&&(d=this.le.indexOf(c.caption));for(var g=1;g<this.ua[d].length;g++)256>c.Zi&&this.zb.hasOwnProperty(this.ua[d][g])?this.zb[this.ua[d][g]]=new Uint8Array(this.zb[this.ua[d][g]]):65536>c.Zi&&this.zb.hasOwnProperty(this.ua[d][g])?this.zb[this.ua[d][g]]=new Uint16Array(this.zb[this.ua[d][g]]):4294967296>
c.Zi&&this.zb.hasOwnProperty(this.ua[d][g])&&(this.zb[this.ua[d][g]]=new Uint32Array(this.zb[this.ua[d][g]]))}for(a=0;a<this.th.length;a++)c=b.getItem(this.th[a]),null!=c&&(c=this.wa.O.wD(c.A),c!==l.i.input.sa.jb&&c!==l.i.input.sa.oj&&c!==l.i.input.sa.Mc&&c!==l.i.input.sa.ec&&(this.Kc[a]=new Uint8Array(this.Kc[a])))}}filter(){this.Od=[];this.Cd=[];this.values=[];this.tR=[];this.dm=[];this.bo=[];this.Uua();this.pack();var b=e.model.C.F.sc&&e.model.C.F.me!=e.K.Jd.nj,a=this.slice.vc(!1,!0,b),c=new e.ub,
d=new e.ub,g,k,m=this.slice.gd();for(g=0;g<a.length;g++)(k=a.fa(g))&&k.filter.Fh&&(k.filter.ji?(b?d.Ta(k.A,k):m.find(n=>n.A===k.filter.measure.A)&&!this.slice.qb.Bb(k.A)&&d.Ta(k.A,k),k.filter.Gh&&c.Ta(k.A,k)):c.Ta(k.A,k));this.cw(c,this.qh);for(g=0;g<d.length;g++)k=d.fa(g),!b||k.filter.Wu&&k.filter.measure&&this.wa.O.gr.Bb(k.filter.measure.A)?this.bva(k):this.Rua(k);this.cw(d,this.eb);if(0<d.length&&!b)for(b=[],g=0;g<a.length;g++)c=a.fa(g),d=this.le.indexOf(c.A),-1===d&&(d=this.le.indexOf(c.caption)),
b.push(d),c.filter.ji&&(d=this.wa.O.Da.getItem(c.filter.measure.A),void 0!==d&&(m=this.th.indexOf(d.A),this.eb=this.Taa(b,0,this.eb.slice(),m,d,c.filter,[])))}Taa(b,a,c,d,g,k,m){let n=b[a],p=[],t;for(let r=0;r<c.length;r++)t=this.zb[n][c[r]],void 0===p[t]&&(p[t]=[]),p[t].push(c[r]);for(let r in p)this.usa(p[r],d,g,k)&&(m=a===b.length-1?m.concat(p[r]):this.Taa(b,a+1,p[r],d,g,k,m));return m}usa(b,a,c,d){if(c.Qa){var g=e.v(this.su[a])?c.Ud:this.su[a];a=e.v(this.nx[a])?c.Lk:this.nx[a];b=this.bq(b,g,a,
0,null,null,c.Jn)}else b=c.$==l.i.ea.pj?this.GM(b,c):this.Wg(b,a,c.$);if(d.query.va===l.i.Wb.Rj||d.query.va===l.i.Wb.pi)return!0;if(d.query.va===l.i.Wb.EQUAL)return b===d.query.value;if(d.query.va===l.i.Wb.Tf)return b!==d.query.value;if(d.query.va===l.i.Wb.GREATER)return b>d.query.value;if(d.query.va===l.i.Wb.dl)return b>=d.query.value;if(d.query.va===l.i.Wb.LESS)return b<d.query.value;if(d.query.va===l.i.Wb.gl)return b<=d.query.value;if(d.query.va===l.i.Wb.mh)return b>=d.query.value[0]&&b<=d.query.value[1];
if(d.query.va===l.i.Wb.Tg)return b<d.query.value[0]||b>d.query.value[1]}cw(b,a){for(var c=[],d=[],g=0;g<b.length;g++){var k=b.fa(g),m=this.le.indexOf(k.A);if(k.filter.Fh){c.push(m);d.push(k.vza().length/k.pd.children.length);this.filters[m]=[];this.Yx[m]=[];for(var n=0;n<k.eb.length;n++){var p=k.za(k.eb[n]);1===p.level.yb?this.filters[m][p.ordinal]=!0:(void 0===this.Yx[m][p.root.ordinal]&&(this.Yx[m][p.root.ordinal]=[]),void 0===this.Yx[m][p.root.ordinal][p.level.yb]&&(this.Yx[m][p.root.ordinal][p.level.yb]=
[]),this.Yx[m][p.root.ordinal][p.level.yb][p.ordinal]=!0)}}}d=e.Ja.sort(d,e.Ja.Tv|e.Ja.Ti);if(0<c.length)for(g=0;g<c.length;g++){b=c[d[g]];k=[];for(m=0;m<a.length;m++)if(n=this.zb[this.ua[b][1]][a[m]],!0===this.filters[b][n])k.push(a[m]);else if(void 0!==this.Yx[b][n])for(p=2;p<this.ua[b].length;p++)if(void 0!==this.Yx[b][n][p]&&!0===this.Yx[b][n][p][this.zb[this.ua[b][p]][a[m]]]){k.push(a[m]);break}a=k}this.eb=a}ysa(b){var a=this.le.indexOf(b.Nz.A),c=this.le.indexOf(b.A);-1===a&&(a=this.Jm(b.Nz.A,
b.A),this.ua[c].pop(),this.ua[c].splice(1,0,a));var d=[],g;for(g in b.groups)for(var k=b.Ib(b.Km(g)),m=0;m<b.groups[g].length;m++){var n=b.za(b.groups[g][m]);null!==n&&(d[n.ordinal]=k.ordinal)}b=b.Ib(b.Km("Others"));void 0===this.zb[a]&&(this.zb[a]=[]);for(g=0;g<this.HA;g++)n=this.zb[c][g],this.zb[a][g]=void 0!==d[n]?d[n]:b.ordinal}Gsa(b){var a=this.le.indexOf(b.A);if(this.ua[a]&&this.ua[a].length>b.ua.length)for(var c=0;c<this.ua[a].length;c++)if(!b.ua.Bb(this.le[this.ua[a][c]])){this.ua[a].splice(c,
1);break}}Uua(){var b,a,c=this.slice.vc(!1);for(b=0;b<c.length;b++)(a=c.fa(b))&&(null!=a.Nz?this.ysa(a):this.Gsa(a))}Rua(b){if(b.filter.ji){var a=this.wa.O.Da.getItem(b.filter.measure.A);if(void 0!==a){for(var c=[],d=[],g=this.th.indexOf(a.A),k=0;k<this.eb.length;k++)c.push(this.XT(k,g,a,!0)),d.push(this.XT(k,g,a,!1));b.filter.query.va==l.i.Wb.Rj?b.eb=this.Qua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.pi?b.eb=this.Hua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.EQUAL?b.eb=this.Iua(c,
d,b.filter.query.value):b.filter.query.va==l.i.Wb.Tf?b.eb=this.Oua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.GREATER?b.eb=this.Kua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.dl?b.eb=this.Jua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.LESS?b.eb=this.Mua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.gl?b.eb=this.Lua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.mh?b.eb=this.Gua(c,d,Math.min(b.filter.query.value[0],b.filter.query.value[1]),Math.max(b.filter.query.value[0],
b.filter.query.value[1])):b.filter.query.va==l.i.Wb.Tg&&(b.eb=this.Nua(c,d,Math.min(b.filter.query.value[0],b.filter.query.value[1]),Math.max(b.filter.query.value[0],b.filter.query.value[1])))}}}Qua(b,a,c){var d=[];b=e.Ja.sort(b,e.Ja.tp|e.Ja.Tv|e.Ja.Ti);c=Math.min(c,a.length);for(var g=0;g<c;g++)d.push(a[b[g]]);return d}Hua(b,a,c){var d=[];b=e.Ja.sort(b,e.Ja.Tv|e.Ja.Ti);c=Math.min(c,a.length);for(var g=0;g<c;g++)d.push(a[b[g]]);return d}Iua(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]==c&&d.push(a[k]);
return d}Oua(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]!=c&&d.push(a[k]);return d}Kua(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]>c&&d.push(a[k]);return d}Jua(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]>=c&&d.push(a[k]);return d}Mua(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]<c&&d.push(a[k]);return d}Lua(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]<=c&&d.push(a[k]);return d}Gua(b,a,c,d){for(var g=[],k=a.length,m=0;m<k;m++)b[m]>=c&&b[m]<=d&&g.push(a[m]);return g}Nua(b,a,c,d){for(var g=
[],k=a.length,m=0;m<k;m++)(b[m]<c||b[m]>d)&&g.push(a[m]);return g}bva(b){if(b.filter.ji){var a=this.slice.Gi(b.filter.measure);if(void 0!==a){var c=[],d=[],g=[],k=this.le.indexOf(b.A);k=this.ua[k][b.ic?b.ic.yb:1];if(this.dm[k])for(var m in this.dm[k])g.push(this.dm[k][m]);else g=[k];k=[];for(m=0;m<g.length;m++)for(var n=0;n<this.eb.length;n++){var p=this.zb[g[m]][this.eb[n]];null==k[p]&&(k[p]=[]);k[p].push(this.eb[n])}g=this.th.indexOf(a.A);n=b.filter.Gh?b.filter.Hi():b.fr;p=a.Qa;var t=b.ic?b.ic.yb:
1;for(m=0;m<n.length;m++){var r=b.za(n[m]);if(!r.dc&&r.level.yb==t&&void 0!==k[r.ordinal]){if(p){var v=e.v(this.su[g])?a.Ud:this.su[g];var y=e.v(this.nx[g])?a.Lk:this.nx[g];v=this.bq(k[r.ordinal],v,y,0,null,null,a.Jn)}else v=k[r.ordinal],v=a.$==l.i.ea.pj?this.GM(v,a):this.Wg(v,g,a.$);isNaN(v)&&(v=Number.MIN_VALUE);c.push(v);d.push(r.ordinal)}}b.filter.query.va==l.i.Wb.Rj?b.eb=this.ava(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.pi?b.eb=this.Dua(c,d,b.filter.query.value):b.filter.query.va==
l.i.Wb.EQUAL?b.eb=this.Eua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.Tf?b.eb=this.Zua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.GREATER?b.eb=this.Tua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.dl?b.eb=this.Sua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.LESS?b.eb=this.Wua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.gl?b.eb=this.Vua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.mh?b.eb=this.Cua(c,d,Math.min(b.filter.query.value[0],b.filter.query.value[1]),
Math.max(b.filter.query.value[0],b.filter.query.value[1])):b.filter.query.va==l.i.Wb.Tg&&(b.eb=this.Yua(c,d,Math.min(b.filter.query.value[0],b.filter.query.value[1]),Math.max(b.filter.query.value[0],b.filter.query.value[1])))}}}ava(b,a,c){var d=[];b=e.Ja.sort(b,e.Ja.tp|e.Ja.Tv|e.Ja.Ti);c=Math.min(c,a.length);for(var g=0;g<c;g++)d.push(a[b[g]]);return d}Dua(b,a,c){var d=[];b=e.Ja.sort(b,e.Ja.Tv|e.Ja.Ti);c=Math.min(c,a.length);for(var g=0;g<c;g++)d.push(a[b[g]]);return d}Eua(b,a,c){for(var d=[],g=a.length,
k=0;k<g;k++)b[k]==c&&d.push(a[k]);return d}Zua(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]!=c&&d.push(a[k]);return d}Tua(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]>c&&d.push(a[k]);return d}Sua(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]>=c&&d.push(a[k]);return d}Wua(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]<c&&d.push(a[k]);return d}Vua(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]<=c&&d.push(a[k]);return d}Cua(b,a,c,d){for(var g=[],k=a.length,m=0;m<k;m++)b[m]>=c&&b[m]<=d&&g.push(a[m]);
return g}Yua(b,a,c,d){for(var g=[],k=a.length,m=0;m<k;m++)(b[m]<c||b[m]>d)&&g.push(a[m]);return g}Wg(b,a,c){return null===b||-1===a?NaN:0===b.length?c===l.i.ea.wc?0:NaN:c===l.i.ea.NONE?this.Kc[a][b[0]]:c===l.i.ea.wc?this.kBa(b,a):c===l.i.ea.pj?this.xea(b,[],[],a):c===l.i.ea.cs?this.iCa(b,a):c===l.i.ea.Uv?this.CCa(b,a):c===l.i.ea.Vv?this.DCa(b,a):1===b.length?this.Kc&&this.Kc[a]?this.Kc[a][b[0]]:NaN:c===l.i.ea.Sq||c===l.i.ea.Cp||c===l.i.ea.Rq||c===l.i.ea.Pq||c===l.i.ea.Qq||c===l.i.ea.Si||c===l.i.ea.ko||
c===l.i.ea.qn||c===l.i.ea.qo||c===l.i.ea.sn||c===l.i.ea.tn||c===l.i.ea.so?this.i2(b,a):c===l.i.ea.Mt?this.mCa(b,a):c===l.i.ea.Hq?this.fea(b,a):c===l.i.ea.Pv?this.WBa(b,a):c===l.i.ea.MAX?this.SBa(b,a):c===l.i.ea.MIN?this.ZBa(b,a):0}$M(){return this.zb}zI(){this.$_();for(var b,a=this.wa.O.N1(),c=0;c<a.length;c++){var d=a[c];b=this.wa.O.uD(d);if(b instanceof h.O.b9)l.i.dB.qB==b.type?(this.Jm(d+".Year"),this.Hn(this.wa.O.nf(d+".Year")),this.Jm(d+".Month"),this.Hn(this.wa.O.nf(d+".Month")),this.Jm(d+".Day"),
this.Hn(this.wa.O.nf(d+".Day"))):b.Na.Bb(d)&&(this.Jm(d),this.Hn(this.wa.O.nf(d)));else if(b instanceof h.O.$P)for(this.Jm(d),this.Hn(this.wa.O.nf(d)),d=2;d<b.ua.length;d++){var g=b.ua.fa(d);this.Jm(g.A,b.A)}else b instanceof h.O.aQ&&(1===b.yb?(this.Jm(b.hierarchy.A),this.Hn(this.wa.O.nf(b.hierarchy.A))):this.Jm(b.A,b.hierarchy.A))}if(this.slice){for(c=0;c<this.wa.O.Da.length;c++)b=this.wa.O.Da.fa(c),this.Jm(b.A),this.Hn(b);for(c=0;c<this.slice.Wf.length;c++)b=this.slice.Wf[c],this.Jm(b.A),this.Hn(b)}}Hn(b){b&&
(this.fL(b),this.Uy(b))}dba(b){for(var a=this.wa.O.uD("Browser"),c=0;c<b.length;c++)a.pc(new l.O.be({A:b[c].value}))}KAa(b){var a=this.Qha(b,{from:0,tm:500,Fx:30})+1,c=this.Qha(b,{from:0,tm:30,Fx:0})+1,d=.3>Math.abs(Math.sin(7*b))?1:0;this.zb[0][b]=this.MJa(5*b,this.aZ)+1;this.zb[1][b]=a*(4>c?c:10>c?Math.round(c/3):Math.round(c/7));this.zb[2][b]=c;this.zb[3][b]=d}C1(b){this.dba(this.aZ);var a=u.Nd().im?5E5:1E6;this.zb=[];this.zb[0]=new Uint8Array(a);this.zb[1]=new Uint16Array(a);this.zb[2]=new Uint8Array(a);
this.zb[3]=new Uint8Array(a);this.qh[a-1]=a;this.Cd=[];this.Cd=[[this.eb,[],[],void 0,void 0]];this.Od=[[this.eb,[],[],void 0,void 0]];this.dba(this.aZ);b()}Qha(b,a){b=Math.abs(Math.sin(1.17*b))*(a.tm-a.from)+a.from;if(b>=a.Fx){var c=(b-a.Fx)/(5*(a.tm-a.Fx));a=(b-a.Fx)*c+a.Fx}else c=(a.Fx-b)/(5*(a.Fx-a.from)),a=(a.Fx-b)*c+a.from;return Math.round(a)}MJa(b,a){b=Math.abs(Math.sin(b));for(var c=0,d=0;d<a.length;d++)if(c+=a[d].$N,c>b)return d;return a.length-1}}h.ZP=f})(l.local||(l.local={}))})(e.u||
(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.Ct{constructor(a,c=""){super(a,c);this.Le=e.model.C.F.Le;a=new f.aQ(a+".[(all)]","All",0);this.Sh(a);this.Js=this.Lm="(all member)";a=new l.O.be({A:"(all member)",caption:"All",dc:!0});super.pc(a)}pc(a,c,d){if(void 0===c)return super.pc(a);e.ka(a.value)||"null"===a.value||"undefined"===a.value?(e.model.C.F.qr?a.A=a.value+"":(a.A=void 0===a.parent?"":("["===a.parent.A.substr(0,1)?a.parent.A:"["+a.parent.A+"]")+".[]",a.caption=
a.value=""),""===a.caption&&(a.caption=e.model.B.j.Nl)):d===l.i.input.sa.jb&&(a.nc=a.value);if(c===l.i.input.sa.jb)c=this.pua(a);else if(c===l.i.input.sa.$c||c===l.i.input.sa.un||c===l.i.input.sa.nh)c=this.mba(a);else if(c===l.i.input.sa.Ua)c=this.Sta(a);else if(c===l.i.input.sa.Sf)c=this.iua(a,a.level);else if(c===l.i.input.sa.Mq)c=this.gba(a,!1);else if(c===l.i.input.sa.wp)c=this.gba(a,!0);else if(c===l.i.input.sa.oj)c=this.Uta(a);else if(c===l.i.input.sa.Mc)c=this.Wta(a);else if(c===l.i.input.sa.ec)c=
this.wua(a);else{if(c===l.i.input.sa.ty||c===l.i.input.sa.M8||c===l.i.input.sa.NF)return null;c=this.mba(a)}void 0!==a.Ye&&c.Ye.fua(a.Ye);return c}AD(){return new f.Loa(this)}Km(a="(Total)"){return a.toLocaleLowerCase()}get interval(){return this.type===l.i.Ic.Ua?this.zR:null}set interval(a){if(this.type===l.i.Ic.Ua){const c=a.substr(-1);if("y"===c||"q"===c||"M"===c||"w"===c)a="1"+c;this.zR=a}else this.zR=null}get Ek(){return this.Ksa}set Ek(a){this.Ksa=a}getTimezoneOffset(){if(this.type!==l.i.Ic.Ua)return null;
if(!e.v(this.Ek))return u.Lh.sg(this.Ek);var a=this.mapping.La(this.A,"format");if(!e.v(a))return u.Lh.sg(a);a=this.ua.fa(1);if(a.type===l.i.ib.Ua||a.type===l.i.ib.oj){if(a=u.Lh.sg(e.model.C.F.Up),null!==a)return a}else if(a.type===l.i.ib.Mc&&(a=u.Lh.sg(e.model.C.F.Ek),null!==a))return a;return e.v(e.model.C.F.$j)||isNaN(e.model.C.F.$j)?null:e.model.C.F.$j}get inputType(){return this.lG}set inputType(a){this.lG=a}get Td(){return!0}set Td(a){}mba(a){var c=void 0===a.A?a.value+"":a.A,d=this.Ib(c);null===
d&&(a.A=c,void 0===a.caption&&(a.caption=a.value+""),d=super.pc(a));return d}pua(a){var c=void 0===a.A?a.value+"":a.A;if(!this.Le){var d=this.Ib(c);null===d&&(a.A=c,void 0===a.caption&&(a.caption=a.value+""),a.nc=e.model.C.F.qr&&e.v(a.value)?a.value:e.P.q6(a.value),d=super.pc(a))}return d}Wta(a){var c=new e.Rf(a.value,{Vy:!1});c.Kf(this.getTimezoneOffset());this instanceof l.external.jc.O.WO||c.round(this.interval);c=c.getTime();let d=a.A;if(void 0===a.A||e.v(a.parent)&&e.v(a.Ki))d=isNaN(c)?e.model.B.j.jo:
""+c;var g=this.Ib(d);null===g&&(a.A=d,a.nc=c,g=super.pc(a));return g}wua(a){const c=parseFloat(a.value);var d=this.mapping.La(this.A,"format",e.model.C.F.np),g=isNaN(c)||""===String(a.value).trim()||c.toString()!==a.value.toString();d=g?"":e.P.ey(c,d);g=g?"":`${c}`;let k=this.Ib(g);null===k&&(a.A=g,a.caption=d,a.nc=c,k=super.pc(a));return k}Uta(a){var c=new e.Rf(a.value,{Vy:!1});c.Kf(this.getTimezoneOffset());this instanceof l.external.jc.O.WO||c.round(this.interval);var d=c.getTime();c=d;let g=
a.A;if(void 0===a.A||e.v(a.parent)&&e.v(a.Ki))g=isNaN(d)?e.model.B.j.jo:""+d;!e.model.C.F.qr||null!==a.value&&"null"!==a.value||(g="null",c=null);d=this.Ib(g);null===d&&(a.A=g,a.nc=c,d=super.pc(a));return d}gba(a,c){var d=new e.Rf(a.value,{Vy:!1});e.v(e.model.C.F.$j)||d.Kf(e.model.C.F.$j);var g="";if(null!=d&&!isNaN(d.getTime())&&d.ih()){var k=e.model.B.j.R9[Math.floor(d.getMonth()/3)];var m=e.model.B.j.bs[d.getMonth()];var n=d.getDate().toString();var p=d.getFullYear().toString();d=d.getTime()}else return n=
e.model.B.j.jo,p=this.Ib(n),null===p&&(a.A=n,a.caption=n,p=super.pc(a)),p;var t=""+p,r=p;p=this.Ib(t);null===p&&(a.A=t,a.caption=r,p=super.pc(a));c&&(c=`[${t}].[${k}]`,r=k,g=p,p=this.Ib(c),null===p&&(a.A=c,a.caption=r,a.parent=g,p=super.pc(a)),g=`.[${k}]`);k=m;m=`[${t}]${g}.[${m}]`;g=p;p=this.Ib(m);null===p&&(a.A=m,a.caption=k,a.parent=g,p=super.pc(a));k=n;n=`${m}.[${n}]`;g=p;p=this.Ib(n);null===p&&(a.A=n,a.caption=k,a.parent=g,a.nc=d,p=super.pc(a));return p}Sta(a){var c=[],d=new e.Rf(a.value,{Vy:!1});
e.v(e.model.C.F.$j)||d.Kf(e.model.C.F.$j);if(null!==d&&!isNaN(d.getTime())&&d.ih()){var g=e.model.B.j.bs[d.getMonth()];var k=d.getDate().toString();var m=d.getFullYear().toString();var n=d.getTime()}else{k=e.model.B.j.jo;for(n=0;3>n;n++){a=this.Ci.Na.fa(n);var p=a.Ib(k);null===p&&(p=a.pc(new l.O.be({A:k})));c.push(p)}return c}a=this.Ci.Na.fa(0);var t=this.bX(m);p=a.Ib(t);null===p&&(p=a.pc(new l.O.be({A:m,caption:t,nc:d.getFullYear()})));c.push(p);a=this.Ci.Na.fa(1);m=this.bX(g);p=a.Ib(m);null===p&&
(p=a.pc(new l.O.be({A:g,caption:m})));c.push(p);a=this.Ci.Na.fa(2);g=this.bX(k);p=a.Ib(g);null===p&&(p=a.pc(new l.O.be({A:k,caption:g,nc:n})));c.push(p);return c}bX(a){return a&&0<a.length&&"NaN"!=a?a:e.model.B.j.jo}iua(a,c){var d=void 0===a.parent?this.Ib(a.Ki):a.parent;null===d&&void 0!==a.Ki&&(d=this.Nda(a.Ki));var g=e.v(a.A)||!e.v(a.Ki)&&"["===a.Ki.substr(0,1)||!e.v(a.A)&&"["===a.A.substr(0,1)?a.value+"":a.A;if(1<c.yb){var k=c.hierarchy.ua.fa(c.yb-1);null===d&&(d=c.hierarchy.Ib(e.model.B.j.Nl),
null===d&&(d=k.hierarchy.pc(new l.O.be({A:e.model.B.j.Nl,caption:e.model.B.j.Nl}))));g=1===k.yb?`[${d.A}].[${g}]`:`${d.A}.[${g}]`}k=c.hierarchy.Ib(g);null===k&&(a.A=g,a.caption=e.v(a.caption)?a.value:a.caption,a.parent=1<c.yb?d:void 0,k=this.pc(a,l.i.ib.FA(c.type),l.i.ib.FA(c.inputType)));return k}lj(){const a=super.lj();a.type=this.inputType;return a}clone(){var a=super.clone();a.zR=this.zR;return a}}f.$P=b})(h.O||(h.O={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.Dv{get inputType(){return this.lG}set inputType(a){this.lG=a}constructor(a,c="",d=0){super(a,c,d)}}f.aQ=b})(h.O||(h.O={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){(function(f){class b extends l.O.oJ{Sa(){var a=super.Sa();a.uniqueName=this.Fi;this.parent&&(a.parentMember=this.parent.Fi);return a}}f.Loa=b})(h.O||(h.O={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.Vr{constructor(a,c=""){super(a,c)}get fc(){return e.model.Tb.valid(this.yc)?this.yc:e.model.Tb.validate(this.yc)}get caption(){if(!1===e.model.C.F.Tx||this.Qa)return this.fc;switch(this.$){case l.i.ea.wc:return e.P.bind(e.model.B.j.fP,this.fc);case l.i.ea.Mt:return e.P.bind(e.model.B.j.tQ,this.fc);case l.i.ea.pj:return e.P.bind(e.model.B.j.pP,this.fc);case l.i.ea.Hq:return e.P.bind(e.model.B.j.ZO,this.fc);case l.i.ea.Pv:return e.P.bind(e.model.B.j.nY,
this.fc);case l.i.ea.Uv:return e.P.bind(e.model.B.j.CQ,this.fc);case l.i.ea.Vv:return e.P.bind(e.model.B.j.DQ,this.fc);case l.i.ea.MAX:return e.P.bind(e.model.B.j.dQ,this.fc);case l.i.ea.MIN:return e.P.bind(e.model.B.j.mQ,this.fc);case l.i.ea.cs:return e.P.bind(e.model.B.j.iK,this.fc);case l.i.ea.Cp:return e.P.bind(e.model.B.j.cK,this.fc);case l.i.ea.Rq:return e.P.bind(e.model.B.j.hK,this.fc);case l.i.ea.Pq:return e.P.bind(e.model.B.j.fK,this.fc);case l.i.ea.Qq:return e.P.bind(e.model.B.j.gK,this.fc);
case l.i.ea.Si:return e.P.bind(e.model.B.j.QJ,this.fc);case l.i.ea.tn:return e.P.bind(e.model.B.j.vQ,this.fc);case l.i.ea.so:return e.P.bind(e.model.B.j.xQ,this.fc);case l.i.ea.ko:return e.P.bind(e.model.B.j.wJ,this.fc);case l.i.ea.qn:return e.P.bind(e.model.B.j.xJ,this.fc);case l.i.ea.qo:return e.P.bind(e.model.B.j.dK,this.fc);case l.i.ea.sn:return e.P.bind(e.model.B.j.eK,this.fc);case l.i.ea.NONE:return this.fc}return e.P.bind(e.model.B.j.oK,this.fc)}set caption(a){this.yc=a}get Bl(){return this.yc}set Bl(a){}clone(){var a=
new b(this.A);this.SL(a);return a}lj(){const a=super.lj(),c=l.Ma.R().O.Ok(this.A);e.v(c)?a.type=l.i.input.sa.jb:a.type=c.inputType;return a}}f.c9=b})(h.O||(h.O={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){(function(f){class b extends l.O.TA{constructor(a,c=""){super(a,c)}}f.b9=b})(h.O||(h.O={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.yX{constructor(){super();this.id=this.aT="";this.ua=[];this.v2=!1;this.gC={};this.XB={};this.z_();this.mf=new e.ub;this.xw={};this.nA={};this.kl=new e.ub;this.types={};this.Ye=[];this.id=this.aT="";this.Le=e.model.C.F.Le}clear(){this.gC={};this.XB={};this.mf=new e.ub;this.xw={};this.nA={};this.kl=new e.ub;this.types={};this.id=this.aT="";super.clear()}Uo(a,c){return new f.$P(a,c)}Lea(a,c){return new f.c9(a,c)}gm(a,c,d){return new f.aQ(a,
c,d)}Ok(a){return this.gC[a]}nf(a){return this.XB[a]}wD(a){if(void 0!==this.types[a])return this.types[a];a=this.nA[a];if(!e.v(a))return this.types[a]}qea(a){return this.Ye[a]}uD(a){let c=this.mf.getItem(a);if(e.v(c)){if(a=this.xw[a],Array.isArray(a)){let d=[];for(let g=0;g<a.length;g++)c=this.mf.getItem(a[g]),e.v(c)||d.push(c);return d}}else return c}N1(a=!0){let c=this.mf.Pc(!0);if(a||0===Object.keys(this.xw).length)return c;a=[];for(let d=0;d<c.length;d++)void 0!==this.nA[c[d]]?-1===a.indexOf(this.nA[c[d]])&&
a.push(this.nA[c[d]]):a.push(c[d]);return a}iL(a,c){this.Le||(this.gC[a]=this.uh(c),this.XB[c]=this.fd(a))}Gp(a,c,d,g){c=this.Lea(a,c);c.type=d;g.hasOwnProperty("supportedAggregations")&&(c.lk=g.supportedAggregations);c.Wc=g.availableAggregations;this.zk(c);this.iL(c.A,a);return c}lba(a,c,d){var g=c.uniqueName,k=e.ka(c.caption)?d:c.caption,m=this.Uo(g,k);m.type=l.i.Ic.Hv;void 0!==c.folder&&(m.Oc=c.folder);a.zi(m);a=this.gm(m.caption==e.model.B.j.Nl?g+".[]":g,m.caption,1);a.type=l.i.ib.$c;m.Sh(a);
this.Le||this.Gp(g,k,l.i.Ra.wc,c);this.mf.Ta(d,m);this.kl.Ta(d,m);m.inputType=c.type}bua(a,c,d){var g=c.uniqueName,k=e.ka(c.caption)?d:c.caption;a.type=l.i.dB.qB;var m=this.Uo(g,k);m.type=l.i.Ic.Ua;void 0!==c.folder&&(m.Oc=c.folder);a.zi(m);var n=g+".Year";a=this.gm(n,e.model.B.j.Sl,m.ua.length);a.type=l.i.ib.Sl;m.Sh(a);this.kl.Ta(n,a);c.type==l.i.input.sa.wp&&(n=g+".Quarter",a=this.gm(n,e.model.B.j.Nt,m.ua.length),a.type=l.i.ib.Nt,m.Sh(a),this.kl.Ta(n,a));n=g+".Month";a=this.gm(n,e.model.B.j.nh,
m.ua.length);a.type=l.i.ib.nh;m.Sh(a);this.kl.Ta(n,a);n=g+".Day";a=this.gm(n,e.model.B.j.pn,m.ua.length);a.type=l.i.ib.pn;m.Sh(a);this.kl.Ta(n,a);this.Le||this.Gp(g,k,l.i.Ra.wc,c);e.v(c.interval)?m.interval=this.mapping.La(g,"interval","1d"):m.interval=c.interval;this.mf.Ta(d,m);m.inputType=c.type}iba(a,c,d){var g=c.hasOwnProperty("hierarchy")?c.hierarchy:c.uniqueName,k=a.uh(g);void 0===k&&(k=this.Uo(g,g),void 0!==c.folder&&(k.Oc=c.folder),a.zi(k));var m=0;if(c.hasOwnProperty("parent")){m=k.Ou(c.parent);
void 0===m&&(m=k.Ou(c.parent.toLowerCase()));if(void 0===m){void 0===this.ua[k.A]&&(this.ua[k.A]=[]);this.ua[k.A][c.parent]=[c,d];return}m=k.ua.indexOf(m.A)}else k.type=l.i.Ic.DT(c.levelType);var n=c.hasOwnProperty("caption")?c.caption:c.hasOwnProperty("level")?c.level:d;m=this.gm(d,n,m+1);m.type=l.i.ib.DT(c.levelType);m.inputType=l.i.ib.DT(c.inputType);k.Sh(m);this.Le||e.v(this.fd(g))&&this.Gp(g,g,l.i.Ra.wc,c);this.mf.Ta(d,m);this.kl.Ta(d,m);this.ua[k.A]&&this.ua[k.A][d]&&this.iba(a,this.ua[k.A][d][0],
this.ua[k.A][d][1]);e.v(k.inputType)&&(k.inputType=c.type)}Rta(a,c,d){var g=c.uniqueName,k=e.ka(c.caption)?d:c.caption;a.type=l.i.dB.qB;var m=g+".Year",n=k+"."+e.model.B.j.Sl;var p=this.Uo(m,n);p.type=l.i.Ic.Ua;void 0!==c.folder&&(p.Oc=c.folder);e.v(c.interval)?p.interval=this.mapping.La(g,"interval","1d"):p.interval=c.interval;a.zi(p);var t=this.gm(m+"."+n,n,1);t.type=l.i.ib.Sl;p.Sh(t);this.kl.Ta(m,t);this.Le||this.Gp(m,n,l.i.Ra.wc,c);p.inputType=c.type;m=g+".Month";n=k+"."+e.model.B.j.nh;p=this.Uo(m,
n);void 0!==c.folder&&(p.Oc=c.folder);e.v(c.interval)?p.interval=this.mapping.La(g,"interval","1d"):p.interval=c.interval;a.zi(p);var r=this.gm(m+"."+n,n,1);r.type=l.i.ib.nh;p.Sh(r);this.kl.Ta(m,t);this.Le||this.Gp(m,n,l.i.Ra.wc,c);p.inputType=c.type;m=g+".Day";k=k+"."+e.model.B.j.pn;p=this.Uo(m,k);void 0!==c.folder&&(p.Oc=c.folder);e.v(c.interval)?p.interval=this.mapping.La(g,"interval","1d"):p.interval=c.interval;a.zi(p);g=this.gm(m+"."+k,k,1);g.type=l.i.ib.pn;p.Sh(g);this.kl.Ta(m,t);this.Le||this.Gp(m,
k,l.i.Ra.wc,c);p.inputType=c.type;this.mf.Ta(d,a)}oua(a,c,d,g){var k=c.uniqueName;const m=e.ka(c.caption)?d:c.caption;this.Le?g?(k=this.Gp(k,m,l.i.Ra.jb,c),e.ka(c.folder)?e.ka(c.dimensionCaption)?e.ka(c.dimensionUniqueName)||(k.Mg=c.dimensionUniqueName):k.Mg=c.dimensionCaption:k.Mg=c.folder,this.mf.Ta(d,k)):(g=this.Uo(k,m),g.type=l.i.Ic.yp,void 0!==c.folder&&(g.Oc=c.folder),a.zi(g),k=this.gm(k,m,1),k.type=l.i.ib.jb,g.Sh(k),this.mf.Ta(d,g),this.kl.Ta(d,g),g.inputType=c.type):(g=this.Uo(k,m),g.type=
l.i.Ic.yp,void 0!==c.folder&&(g.Oc=c.folder),a.zi(g),a=this.gm(k,m,1),a.type=l.i.ib.jb,g.Sh(a),this.Gp(k,m,l.i.Ra.jb,c),this.mf.Ta(d,g),this.kl.Ta(d,g),g.inputType=c.type)}mua(a,c,d){var g=c.uniqueName,k=e.ka(c.caption)?d:c.caption,m=this.Uo(g,k);m.type=l.i.Ic.Ua;void 0!==c.folder&&(m.Oc=c.folder);a.zi(m);a=this.gm(g,k,1);a.type=l.i.ib.nh;m.Sh(a);this.Le||this.Gp(g,k,l.i.Ra.wc,c);this.mf.Ta(d,m);this.kl.Ta(d,m);m.inputType=c.type}yua(a,c,d){var g=c.uniqueName,k=e.ka(c.caption)?d:c.caption,m=this.Uo(g,
k);m.type=l.i.Ic.Hv;void 0!==c.folder&&(m.Oc=c.folder);a.zi(m);a=this.gm(g,k,1);a.type=l.i.ib.pn;m.Sh(a);this.Le||this.Gp(g,k,l.i.Ra.wc,c);this.mf.Ta(d,m);this.kl.Ta(d,m);m.inputType=c.type}Tta(a,c,d){var g=c.uniqueName,k=e.ka(c.caption)?d:c.caption,m=this.Uo(g,k);m.type=l.i.Ic.Ua;void 0!==c.folder&&(m.Oc=c.folder);a.zi(m);a=this.gm(g,k,1);a.type=l.i.ib.Ua;m.Sh(a);this.Le||this.Gp(g,k,l.i.Ra.Ua,c);e.v(c.interval)?m.interval=this.mapping.La(g,"interval","1d"):m.interval=c.interval;e.v(c.format)||(m.Ek=
c.format);this.mf.Ta(d,m);this.kl.Ta(d,m);m.inputType=c.type}vua(a,c,d){var g=c.uniqueName,k=e.ka(c.caption)?d:c.caption,m=this.Uo(g,k);m.type=l.i.Ic.yp;void 0!==c.folder&&(m.Oc=c.folder);a.zi(m);a=this.gm(g,k,1);a.type=l.i.ib.ec;m.Sh(a);this.Le||this.Gp(g,k,l.i.Ra.ec,c);this.mf.Ta(d,m);this.kl.Ta(d,m);m.inputType=c.type}Vta(a,c,d){var g=c.uniqueName,k=e.ka(c.caption)?d:c.caption,m=this.Uo(g,k);m.type=l.i.Ic.Ua;void 0!==c.folder&&(m.Oc=c.folder);a.zi(m);a=this.gm(g,k,1);a.type=l.i.ib.Mc;m.Sh(a);this.Le||
this.Gp(g,k,l.i.Ra.Mc,c);e.v(c.interval)?m.interval=this.mapping.La(g,"interval","1s"):m.interval=c.interval;e.v(c.format)||(m.Ek=c.format);this.mf.Ta(d,m);this.kl.Ta(d,m);m.inputType=c.type}Dsa(a,c){for(var d=0;d<a.length;d++)if("string"!==typeof a[d])return!1;for(var g in c)if(-1===a.indexOf(g))return!1;return!0}aS(a,c){if(a instanceof l.O.Bm){var d=a;a=a.mapping}else!e.v(c)&&l.O.Bm.TU(a)&&(d=new l.O.Bm(a));if(void 0!==d){var g={};if(Array.isArray(c)){if(this.Dsa(c,a))for(var k=0;k<c.length;k++){const p=
c[k];g[p]=d.L3(p,a[p])}for(var m in a)void 0===g[m]&&(g[m]=a[m])}else{for(m in a)g[m]=a[m];for(m in c)g[m]="object"!==typeof a[m]?{uniqueName:m,caption:m,type:l.i.input.sa.A6(c[m])}:a[m]}}void 0===g&&(g=a);for(m in g)if(void 0!==d||"string"!==typeof g[m]&&"number"!==typeof g[m])if(void 0===d&&e.v(g[m]))this.q_(m,l.i.input.sa.$c);else if(void 0===d&&g[m]instanceof Date)this.q_(m,e.model.C.F.$L);else if(void 0===d&&Array.isArray(g[m]))this.Sy(a[m],m);else if(g[m].hasOwnProperty("formula"))e.ka(g[m].formula)||
this.lu(g[m],m);else if(Array.isArray(g[m]))this.Sy(g[m],m);else{k=l.i.input.sa.$c;g[m].hasOwnProperty("type")&&(c=String(g[m].type).trim().toLowerCase(),l.i.input.sa.valid(c),k=l.ze.type(c));k!==l.i.input.sa.jb&&(a[m]&&delete a[m].isMeasure,delete g[m].isMeasure);g[m].hasOwnProperty("isMeasure")&&String(g[m].isMeasure).trim();c={};for(var n in g[m])c[n]=g[m][n];c.type=k;this.Sy(c,m)}else c=l.i.input.sa.A6(g[m]),this.q_(m,c);this.Td=!0}lu(a,c){c=new l.O.Vr(c,void 0==a.caption?c:a.caption);c.Ge=a.formula;
c.Jn=void 0==a.calculateNaN?c.Jn:a.calculateNaN;a.hasOwnProperty("grandTotalCaption")&&(c.fq=a.grandTotalCaption);e.model.C.F.RO&&(a=u.LP.pS(c.Ge,c.A),0==a.px&&e.Va(a.errorMessage));e.model.Wa.R().lu(c)}q_(a,c){this.Sy({A:a,caption:a,bM:a,type:c},a)}Sy(a,c=""){if(!Array.isArray(a)){var d={},g;for(g in a)d[g]=a[g];d.hasOwnProperty("uniqueName")||(d.uniqueName=c);d.hasOwnProperty("type")&&(d.inputType=d.type);a=this.mapping.L3(c,d)}if(!a.hasOwnProperty("visible")||!1!==a.visible)if(Array.isArray(a))for(this.xw[c]=
[],d=0;d<a.length;d++)void 0===a[d].uniqueName&&(a[d].uniqueName=`${c}.${d}`),this.C$(a[d]),this.xw[c].push(a[d].uniqueName),this.nA[a[d].uniqueName]=c;else this.C$(a)}C$(a){var c=a.uniqueName;"[Measures]"===c.substr(0,10)&&(l.ze.bF=!1);e.v(a.hierarchy)||a.type===l.i.input.sa.NF||(a.levelType=a.type===l.i.input.sa.Sf?l.i.input.sa.$c:a.type,a.type=l.i.input.sa.Sf);a.type===l.i.input.sa.Sf&&!1===l.external.jc.O.fo.VH&&(a.type=l.i.input.sa.$c,a.hasOwnProperty("level")&&(a.caption=a.level),delete a.hierarchy,
delete a.level,delete a.parent);let d=l.i.input.sa.$c;l.i.input.sa.valid(a.type)&&(d=a.type);var g;a.hasOwnProperty("dimensionUniqueName")?g=this.$p(a.dimensionUniqueName):d===l.i.input.sa.Sf&&a.hasOwnProperty("hierarchy")&&(g=this.$p(a.hierarchy));let k=!1;a.hasOwnProperty("isMeasure")&&(k=e.P.Zc(String(a.isMeasure).trim()));this.Le&&k||void 0!==g||(g=l.O.TA.xb(a),a.uniqueName=l.ze.bh(a.uniqueName,a.caption),a.hasOwnProperty("dimensionUniqueName")&&(g.caption=g.A=a.dimensionUniqueName),a.hasOwnProperty("dimensionCaption")&&
(g.caption=a.dimensionCaption),d===l.i.input.sa.Sf&&a.hasOwnProperty("hierarchy")&&!a.hasOwnProperty("dimensionUniqueName")&&(g.A=a.hierarchy),this.mu(g));this.types[c]=d;switch(d){case l.i.input.sa.$c:this.lba(g,a,c);break;case l.i.input.sa.jb:this.oua(g,a,c,k);break;case l.i.input.sa.nh:this.mua(g,a,c);break;case l.i.input.sa.un:this.yua(g,a,c);break;case l.i.input.sa.Ua:this.Rta(g,a,c);break;case l.i.input.sa.Mc:this.Vta(g,a,c);break;case l.i.input.sa.ec:this.vua(g,a,c);break;case l.i.input.sa.Sf:this.iba(g,
a,c);break;case l.i.input.sa.Mq:case l.i.input.sa.wp:this.bua(g,a,c);break;case l.i.input.sa.oj:this.Tta(g,a,c);break;case l.i.input.sa.ty:this.id=c;this.mf.Ta(c,null);break;case l.i.input.sa.J7:this.aT=c;break;case l.i.input.sa.M8:break;case l.i.input.sa.NF:this.Qta(a,c);break;default:this.lba(g,a,c)}}pc(a,c,d,g,k){if(Array.isArray(this.xw[c]))for(d=0;d<this.xw[c].length;d++)this.D$(a,this.xw[c][d],this.wD(this.xw[c][d]),g,k);else return this.D$(a,c,d,g,k)}D$(a,c,d,g,k){a=a.clone();if(this.Le&&d===
l.i.input.sa.jb)k.push(e.P.q6(a.value));else{var m=c=this.uD(c);if(!e.v(m)){switch(d){case l.i.input.sa.Ua:m=c.Na.fa(0);var n=m.pc(a,d);break;case l.i.input.sa.Sf:var p=c.hierarchy.ua.fa(c.yb-1);0<p.yb&&e.v(a.parent)&&e.v(a.Ki)&&(a.parent=c.hierarchy.za(g[this.kl.indexOf(p.A)]));a.level=c;p=c.hierarchy.pc(a,d);break;default:p=m.pc(a,d)}switch(d){case l.i.input.sa.jb:this.Le||g.push(p.ordinal);k.push(e.P.q6(a.value));break;case l.i.input.sa.Mc:case l.i.input.sa.oj:g.push(p.ordinal);this.Le||k.push(p.nc);
break;case l.i.input.sa.Mq:1===p.level.yb?(g.push(p.ordinal),g.push(NaN),g.push(NaN)):(g.push(p.parent.parent.ordinal),g.push(p.parent.ordinal),g.push(p.ordinal));this.Le||k.push(1);break;case l.i.input.sa.wp:1===p.level.yb?(g.push(p.ordinal),g.push(NaN),g.push(NaN),g.push(NaN)):(g.push(p.parent.parent.parent.ordinal),g.push(p.parent.parent.ordinal),g.push(p.parent.ordinal),g.push(p.ordinal));this.Le||k.push(1);break;case l.i.input.sa.Ua:for(d=0;d<n.length;d++)g.push(n[d].ordinal),this.Le||k.push(1);
break;case l.i.input.sa.ec:g.push(p.ordinal);this.Le||k.push(p.nc);break;case l.i.input.sa.Sf:g.push(p.ordinal);this.Le||1===p.level.yb&&k.push(1);break;default:g.push(p.ordinal),this.Le||(e.ka(a.value)?k.push(NaN):k.push(1))}return p}}}Qta(a,c){this.v2=!0;a=a.hierarchy;e.v(this.Ye[a])&&(this.Ye[a]=[]);this.mf.Ta(c,null);this.Ye[a].push(c)}}f.bQ=b})(h.O||(h.O={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.qJ=1048576;this.SU=!1;this.AC=this.Wj=this.zL=0;this.encoding="UTF-8";this.Zja=()=>this.OIa();this.Oj=()=>this.uq()}BO(b,a){this.timer=new u.Pt(100,1E5);this.timer.N(u.xf.Ol,this.Zja);this.timer.N(u.xf.Pl,this.Oj);this.timer.start();this.pa=new z.p$;this.pa.responseType="blob";this.pa.N(w.ia.ZA,()=>this.AGa());this.pa.N(w.ia.te,c=>this.qta(c));this.pa.N(w.ia.Qc,()=>this.ota());this.pa.N(w.ia.xa,c=>this.pta(c));this.$h(this.pa,a);this.pa.load(b)}qta(b){const a=
b.data;404==a.target.status?this.z4(b):(this.Wj=a.loaded,this.zL=a.total,this.HHa(a))}ota(){if(!e.v(this.pa)&&!e.v(this.pa.response)){this.SU=!0;this.AC=0;this.zL=this.pa.response.size;this.encoding=this.pa.iBa();var b=new FileReader;b.addEventListener("loadend",()=>c());var a=null,c=()=>{this.oIa(b.result,()=>{this.AC+=a.size;d()},a.size==this.zL)},d=()=>{this.AC>=this.zL?this.nIa():(a=this.pa.response.slice(this.AC,this.AC+this.qJ),b.readAsText(a,this.encoding))};d()}}pta(b){this.yg();this.z4(b)}$h(b,
a){if(!e.v(a))for(var c in a)a.hasOwnProperty(c)&&b.tc.push(new z.q$(c,a[c]))}OIa(){0<this.Wj||this.SU?this.yg():null!=this.timer&&e.Ca(!0,e.model.B.j.mg,e.P.bind(e.model.B.j.Jt,u.bc.format(this.timer.Kw/10,new e.model.oc.W.se,!1,!1,1)))}uq(){this.timer.Gl&&this.yg()}yg(){this.timer&&this.timer.Gl&&(this.timer.stop(),this.timer.rb(u.xf.Ol,this.Zja),this.timer.rb(u.xf.Pl,this.Oj))}}h.ura=f})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.YP{constructor(){super();this.$f=null;this.Nf="";this.gn="\n";this.iq=!0;this.Aa=l.i.ra.ci}get kb(){return e.ka(this.filename)&&(null==this.Yd||0==this.Yd)}set kb(a){}get cv(){return!e.v(this.data)}set cv(a){}isEqual(a){return a==this?!0:super.isEqual(a)}static xb(a){var c=new b;e.v(a.browseForFile)||(c.Yd=a.browseForFile);e.v(a.requestPermission)||(c.requestPermission=a.requestPermission);e.v(a.filename)||""==a.filename||(c.filename=
a.filename);e.v(a.fieldSeparator)||(c.$f=a.fieldSeparator);e.v(a.thousandSeparator)||(c.Nf=a.thousandSeparator);e.v(a.thousandsSeparator)||(c.Nf=a.thousandsSeparator);e.v(a.recordsetDelimiter)||(c.gn=a.recordsetDelimiter);e.v(a.requestHeaders)||(c.tc=a.requestHeaders);e.v(a.ignoreQuotedLineBreaks)||(c.iq=a.ignoreQuotedLineBreaks);e.v(a.mapping)||(c.mapping=a.mapping instanceof l.O.Bm?a.mapping:new l.O.Bm(a.mapping));e.v(a.withCredentials)||(c.withCredentials=a.withCredentials);return c}static Jk(a){var c=
new b,d=a.find("params");0!=d.find("param[name=ignoreQuotedLineBreaks]").length&&(c.iq=e.P.Zc(d.find("param[name=ignoreQuotedLineBreaks]").text()));a=a.find("dataSource");0!=a.find("browseForFile").length&&(c.Yd=e.P.Zc(a.find("browseForFile").text()));0!=a.find("filename").length&&(c.filename=a.find("filename").text());0!=a.find("fieldSeparator").length&&(c.$f=a.find("fieldSeparator").text());0!=a.find("thousandSeparator").length&&(c.Nf=a.find("thousandSeparator").text());0!=a.find("thousandsSeparator").length&&
(c.Nf=a.find("thousandsSeparator").text());0!=a.find("recordsetDelimiter").length&&(c.gn=a.find("recordsetDelimiter").text());0!=a.find("ignoreQuotedLineBreaks").length&&(c.iq=e.P.Zc(a.find("ignoreQuotedLineBreaks").text()));return c}op(a=!1){var c=z.ba.create("<dataSource/>");c.attr("type",this.Aa);(a||this.Yd)&&c.append(z.ba.create("<browseForFile/>").text(this.Yd));this.filename&&c.append(z.ba.create("<filename/>").append(z.ba.fi(this.filename)));this.$f&&c.append(z.ba.create("<fieldSeparator/>").append(z.ba.fi(this.$f)));
this.Nf&&c.append(z.ba.create("<thousandsSeparator/>").append(z.ba.fi(this.Nf)));this.gn&&"\n"!=this.gn&&c.append(z.ba.create("<recordsetDelimiter/>").append(z.ba.fi(this.gn)));(a||0==this.iq)&&c.append(z.ba.create("<ignoreQuotedLineBreaks/>").text(this.iq));return c}Sa(a=!1){var c={};c.type=this.Aa;if(a||this.Yd)c.browseForFile=this.Yd;this.filename&&(c.filename=this.filename);this.$f&&(c.fieldSeparator=this.$f);this.Nf&&(c.thousandsSeparator=this.Nf);this.gn&&"\n"!=this.gn&&(c.recordsetDelimiter=
this.gn);if(a||0==this.iq)c.ignoreQuotedLineBreaks=this.iq;if(!this.mapping.kb||this.mapping.$o)c.mapping=this.mapping.Sa(!0);if(a||this.withCredentials)c.withCredentials=this.withCredentials;return c}clone(){var a=new b;a.Aa=this.Aa;this.Yd&&(a.Yd=this.Yd);this.filename&&(a.filename=this.filename);this.$f&&(a.$f=this.$f);this.Nf&&(a.Nf=this.Nf);this.gn&&"\n"!=this.gn&&(a.gn=this.gn);0==this.iq&&(a.iq=this.iq);if(!this.mapping.kb||this.mapping.$o)a.mapping=this.mapping.clone(this.Aa);this.withCredentials&&
(a.withCredentials=this.withCredentials);return a}}f.gP=b})(h.csv||(h.csv={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.YP{constructor(){super();this.aga=this.Fk=!1;this.$0=0;this.Aa=l.i.ra.Nq}get kb(){return e.ka(this.filename)&&(null==this.Yd||0==this.Yd)&&(null==this.Fk||0==this.Fk)}set kb(a){}get cv(){return this.Fk}set cv(a){}isEqual(a){return super.isEqual(a)&&0==this.Fk&&0==a.Fk}static xb(a){var c=new b;e.v(a.browseForFile)||(c.Yd=a.browseForFile);e.v(a.filename)||""==a.filename||(c.filename=a.filename);e.v(a.requestHeaders)||(c.tc=a.requestHeaders);
e.v(a.embedded)||(c.Fk=a.embedded);e.v(a.embeddedDataOffset)||(c.$0=a.embeddedDataOffset);e.v(a.embeddedDataToLoad)||(c.qda=a.embeddedDataToLoad);e.v(a.isOCSV2Data)||(c.aga=a.isOCSV2Data);e.v(a.mapping)||(c.mapping=a.mapping instanceof l.O.Bm?a.mapping:new l.O.Bm(a.mapping));return c}op(a=!1){var c=z.ba.create("<dataSource/>");c.attr("type",this.Aa);(a||this.Yd)&&c.append(z.ba.create("<browseForFile/>").text(this.Yd));this.filename&&c.append(z.ba.create("<filename/>").append(z.ba.fi(this.filename)));
this.Fk&&c.append(z.ba.create("<embedded/>").text(this.Fk));return c}static Jk(a){var c=new b;0!=a.find("browseForFile").length&&(c.Yd=e.P.Zc(a.find("browseForFile").text()));0!=a.find("filename").length&&(c.filename=a.find("filename").text());0!=a.find("embedded").length&&(c.Fk=e.P.Zc(a.find("embedded").text()));return c}Sa(a=!1){var c={};c.type=this.Aa;if(a||this.Yd)c.browseForFile=this.Yd;this.filename&&(c.filename=this.filename);this.Fk&&(c.embedded=this.Fk);return c}clone(){var a=new b;a.Aa=
this.Aa;this.Yd&&(a.Yd=this.Yd);this.filename&&(a.filename=this.filename);this.Fk&&(a.Fk=this.Fk);return a}}f.LF=b})(h.csv||(h.csv={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.Nf="";this.n1=[".csv"];this.Dya=RegExp('""',"g");this.fga=!1;this.nva=()=>this.G$();this.Kl=()=>this.et();this.Oj=()=>this.uq();this.Yh=0;this.jv=!1;this.o6=null;this.Wha=0;this.wa=l.Ma.R();this.n1=[".csv"]}clear(){this.data=[];this.Cw=this.Yh=this.Nw=this.Wj=0;this.gn="\n";this.qT='"';this.OC=[];this.We=[];this.iN=this.oN=this.Xo=this.QU=!1;this.hd="";this.lb=0;this.Ur=100;null!=this.pa&&(this.pa.Vd(),this.pa.dispose(),
this.pa=null);this.yg();e.Ca(!1)}load(c,d,g,k,m){try{this.clear(),this.filename=c.filename,this.Cb=d,this.Xa=g,this.Re=k,this.OG=m,this.$f=c.$f,this.Nf=c.Nf,this.iq=c.iq,c.mN?this.C1():(void 0!==this.filename&&""!=this.filename&&"()"!=this.filename.substr(-2)||!1!==c.Yd?this.filename=u.Gy.RH(this.filename,!e.model.C.F.gS):this.pm(),!0===c.Yd?this.Jba(c):(e.Ca(!0,e.model.B.j.mg),this.D3(this.filename,c.tc,c.withCredentials)))}catch(n){console.error(n.stack),this.pm()}}C1(){this.pt();this.$f=",";this.wE("Browser, Duration, Page Views, New Session",
"Chrome, 100, 3, true",new l.O.Bm({Browser:{type:"string"},Duration:{type:"time"},"Page Views":{type:"number"},"New Session":{type:"number"}}));this.QU=!0;this.wa.ta.C1(()=>{this.jA()})}requestPermission(){e.Va(e.model.B.j.Hpa,e.model.B.j.ila,e.ob.OP,[e.model.B.j.xm,e.model.B.j.jla],[this.nva])}Jba(c){!0===c.requestPermission?this.requestPermission():this.G$()}G$(){this.Xw=new z.B8;this.Xw.N(w.ia.to,()=>this.bHa());this.Xw.N(w.ia.Qc,()=>this.MN());this.Xw.N(w.ia.te,c=>this.NN(c));this.Xw.N(w.ia.BX,
()=>this.aHa());this.Xw.N(w.ia.xa,()=>this.pm());this.Xw.Iba(this.n1)}bHa(){e.Ca(!0,e.model.B.j.mg,"",!0,!0);this.pa=this.Xw;this.Xw.load();this.Xw=null}D3(c,d=null,g=!1){this.timer=new u.Pt(100,1E5);this.timer.N(u.xf.Ol,this.Kl);this.timer.N(u.xf.Pl,this.Oj);this.timer.start();var k=new z.tk;k.dataType=z.bB.DB;k.N(w.ia.Qc,()=>this.MN());k.N(w.ia.ZA,()=>this.f4());k.N(w.ia.te,m=>this.NN(m));k.N(w.ia.xa,m=>this.pm(m));k.$h(d);k.withCredentials=g;k.load(c);this.pa=k}et(){0<this.Wj||this.Xo||this.oN?
this.yg():null!=this.timer&&e.Ca(!0,e.model.B.j.mg,e.P.bind(e.model.B.j.Jt,u.bc.format(this.timer.Kw/10,new e.model.oc.W.se,!1,!1,1)))}uq(){this.timer.Gl&&this.yg()}yg(){this.timer&&this.timer.Gl&&(this.timer.stop(),this.timer.rb(u.xf.Ol,this.Kl),this.timer.rb(u.xf.Pl,this.Oj))}aHa(){null!=this.OG&&(this.OG(),this.OG=null);this.clear()}pm(c=null){e.Ca(!1);var d="",g="";null!=c&&null!=c.target&&null!=c.target.response&&""!=c.target.response&&(g=e.model.Tb.validate(c.target.response),d=g=700<g.length?
g.substr(0,700):g,g=e.P.bind(e.model.B.j.iQ,g).replace(/'/g,""));0==this.oN&&(this.oN=!0,c=e.model.Tb.valid(this.filename)?this.filename:e.model.Tb.validate(this.filename),e.Va(e.P.bind(e.model.B.j.ZJ,c)+g,e.model.B.j.xa,e.ob.xa));null!=this.Xa&&(this.Xa(d),this.Xa=null);this.yg()}m4(){e.Ca(!1);e.Va(e.P.bind(e.model.B.j.m9),e.model.B.j.xa,e.ob.xa)}NN(c){var d=c.data;if(404==d.target.status)this.pm(c);else if(!e.v(this.pa))try{this.Wj=d.loaded;this.iN=0<d.total&&d.lengthComputable;const k=this.pa.response;
if(null!=k&&0!=k.length&&this.Nw!=k.length&&(this.Nw=k.length,1E4<k.length-this.Yh||d.loaded==d.total)){this.Xo=d.loaded==d.total&&d.loaded>=this.pa.response.length;void 0===k||u.Nd().fj||this.Fr(k.substring(this.Yh,k.length));this.Yh=k.length;var g=0==d.total?e.P.bind(e.model.B.j.Am,u.bc.ah(d.loaded)):e.P.bind(e.model.B.j.JF,u.bc.ah(d.loaded),u.bc.ah(d.total),(d.loaded/d.total*100).toFixed(0));e.Ca(!0,e.model.B.j.mg,g)}}catch(k){console.error(k.stack),this.pm()}}f4(){e.Ca(!0,e.model.B.j.mg,"")}pt(){null!=
this.Re&&(this.Re(),this.Re=null)}MN(){if(!e.v(this.pa)){try{if(0==this.Yh||!this.iN||u.Nd().fj||this.Yh<=this.Nw||this.Yh<=this.pa.response.length){var c=this.pa.response;e.ka(c)&&!this.jv?this.jA():(this.Xo=!0,this.jv)?this.iN||(this.Yh<c.length?(this.Fr(c.substring(this.Yh,c.length)),this.Yh=c.length):this.data.push(this.hd)):this.Fr(c)}}catch(d){console.error(d.stack),this.pm()}this.pa=null}}static zfa(c){c=c.toLowerCase();return-1!=c.indexOf("<html>")||-1!=c.indexOf("<config>")||0==c.trim().length||
-1!=c.indexOf("<!doctype")?(e.Va(e.model.B.j.Dpa,e.model.B.j.xa,e.ob.xa),!1):!0}Fr(c){this.jv=!0;this.pt();0===this.Cw&&-1===c.indexOf("\n")&&-1!==c.indexOf("\r")&&(this.gn="\r");e.v(this.$f)&&(this.$f=this.Rva(-1==c.indexOf("\n")&&-1==c.indexOf("\r")?c:c.substring(0,c.indexOf(this.gn))));this.appendData(c);!1===this.QU&&(1<this.data.length||e.model.C.F.Ux)&&(this.fga&&this.data.shift(),this.wE(this.data.shift(),this.data[0],this.wa.ga.mapping),this.wa.ta.zI(),this.QU=!0);0!==this.Yh&&!u.Nd().fj||
this.oN||u.Ql.Co({lp:()=>this.wv(),gf:()=>this.jA()})}jA(){e.Ca(!1);268435456<this.Wj&&this.Wj>this.Nw?(e.Va(e.model.B.j.o9,e.model.B.j.xa,e.ob.xa),null!=this.Xa&&(this.Xa(e.model.B.j.o9),this.Xa=null)):this.QU?null!=this.Cb&&this.Cb():(e.model.C.F.Ux||e.Va(e.model.B.j.zp,e.model.B.j.xa,e.ob.nk),null!=this.Xa&&(this.Xa(e.model.B.j.zp),this.Xa=null));this.clear()}wE(c,d,g){if("string"==typeof c&&!b.zfa(c)||"object"==typeof c&&!b.zfa(c.toString()))this.pm();else try{e.v(this.$f)&&(this.$f=",");var k=
"string"==typeof c?b.Lja(c,this.$f):c,m="string"==typeof d?b.Lja(d,this.$f):e.v(d)?[]:d;this.Pm=[];for(c=0;c<k.length;c++){var n=this.QT(m[c]),p=this.Zw(k[c],n,0==m.length),t=this.W1(k[c],n,0==m.length),r=this.FM(k[c]),v=this.DM(r),y={type:p,uniqueName:r,caption:this.eBa(k[c])||v,isMeasure:t};void 0!==g&&(y=g.L3(r,y),e.v(g.La(r,"hierarchy"))||y.type===l.i.input.sa.NF||(y.type="level"));if(!y.hasOwnProperty("visible")||!1!==y.visible){this.OC[c]=y.type;this.We[c]=y.isMeasure;this.Pm[c]=r;if(p===l.i.input.sa.Sf){var A=
r.split(":");y.hierarchy=A[0];y.level=A.pop();y.parent=A.join(":")}this.wa.O.Sy(y,r)}}}catch(C){console.error(C.stack),this.m4()}}QT(c){void 0!==c&&null!==c&&"string"==typeof c&&(this.Nf&&0<this.Nf.length&&(e.v(this.o6)&&(this.o6=new RegExp(this.Nf,"g")),c=c.replace(this.o6,"")),c=c.replace(",","."));return c}DM(c){var d=c.split(a.gJ);if(1<d.length)return d[1];this.Qz(c)&&(d=c.split(":"));return d[d.length-1]}FM(c){c=c.trim().split(a.gJ)[0];c=this.p5(c);if(-1<this.Pm.indexOf(c)){for(var d=1,g=c;-1<
this.Pm.indexOf(g);)g=c+d,d++;c=g}return c}eBa(c){c=c.split(a.gJ);return 1<c.length?c[1]:null}p5(c){return c.replace(/^(\+|dt\+|t\+|n\+|-|ds\+|d\+|m\+|w\+|D\+|D4\+|url\+|img\+|id\+)/,"")}Zw(c,d,g){var k=l.i.input.sa.jb;c=c.trim();if(e.v(d)&&!g)return l.i.input.sa.$c;"+"===c.charAt(0)?k=l.i.input.sa.$c:"t+"===c.substr(0,2)?k=l.i.input.sa.ec:"dt+"===c.substr(0,3)?k=l.i.input.sa.Mc:"n+"===c.substr(0,2)?k=l.i.input.sa.jb:"-"===c.charAt(0)?k=l.i.input.sa.jb:"ds+"===c.substr(0,3)?k=l.i.input.sa.oj:"d+"===
c.substr(0,2)?k=l.i.input.sa.Ua:"m+"===c.substr(0,2)?k=l.i.input.sa.nh:"w+"===c.substr(0,2)?k=l.i.input.sa.un:"D+"===c.substr(0,2)?k=l.i.input.sa.Mq:"D4+"===c.substr(0,3)?k=l.i.input.sa.wp:"id+"===c.substr(0,3)?k=l.i.input.sa.ty:""===d||void 0===d?k=l.i.input.sa.$c:isNaN(Number(d))&&(k=e.P.HU(d)?e.model.C.F.$L:l.i.input.sa.$c);k===l.i.input.sa.$c&&this.Qz(c)&&(k=l.i.input.sa.Sf);return k}W1(c,d,g){return!e.model.C.F.Le||e.v(d)&&!g?!1:"-"===c.trim().charAt(0)}Qz(c){"+"===c.charAt(0)&&(c=c.substr(1));
return 1<c.split(":").length&&-1<this.Pm.indexOf(c.split(":")[0].trim())}wv(){if(this.lb>=this.data.length)return this.Xo;var c=this.data[this.lb];if(!e.ka(c)&&this.Pm){for(var d=!1,g="",k=0,m=[],n=[],p,t=0;t<c.length;t++){var r=c.charAt(t);if(t===c.length-1||r===this.$f&&!d){if(t===c.length-1&&r!==this.$f&&(g+=r),g=g.trim(),g=g.replace("\r",""),g.charAt(0)===this.qT&&g.charAt(g.length-1)===this.qT&&(g=g.slice(1,g.length-1),g=g.replace(this.Dya,'"')),this.OC[k]===l.i.input.sa.ty&&(p=g),void 0!==this.Pm[k]&&
(this.OC[k]===l.i.input.sa.jb&&(g=this.QT(g)),d=new l.O.be({value:g}),this.wa.O.pc(d,this.Pm[k],this.OC[k],m,n)),d=!1,g="",k++,k>=this.Pm.length)break}else r===this.qT?(g+=r,d=!d):g+=r}if(k<this.Pm.length)for(c=k;c<this.Pm.length;c++)d=new l.O.be({value:void 0}),this.wa.O.pc(d,this.Pm[c],this.OC[c],m,n);this.wa.ta.insert(m,n,p);0===this.lb%1E3&&this.Xo&&200<u.bg()-this.Wha&&(m=e.model.B.j.fQ,n=(this.lb/this.data.length*100).toFixed(0),n=e.P.bind(e.model.B.j.gQ,u.bc.Cz(this.lb.toFixed(0)),u.bc.Cz(this.data.length.toFixed(0)),
n),e.Ca(!0,m,n),this.Wha=u.bg())}this.lb++;return this.Xo&&this.lb>=this.data.length}appendData(c){void 0!==this.hd&&0<this.hd.length&&(c=this.hd+c);c=this.hMa(c);for(var d=0;d<c.length;d++)this.data.push(c[d]);1!=this.Xo&&(this.hd=this.data.pop())}hMa(c){var d=!1;c=c.split(this.gn);if(0==this.iq)for(var g=0;g<c.length;g++)d?(this.ega(c[g])&&(d=!1),c[g-1]+="<br/>"+c[g],c.splice(g,1),g--):this.ega(c[g])&&(d=!0);return c}ega(c){return 1==this.sxa(c,this.qT)%2}sxa(c,d){var g=0;if(c)for(var k=0;k<c.length;k++)c.charAt(k)==
d&&g++;return g}Rva(c){if(void 0==this.$f){var d=c.indexOf("sep=");if(-1<d){const g='"'===c[0];c=c.trim();c=c.substring(d+4,g?c.length-1:c.length);this.fga=!0;return c.trim()}return c.split(",").length>c.split(";").length?",":";"}}static Lja(c,d){if(null===c)return[];for(var g="",k=!1,m=!1,n=[],p=0;p<c.length;p++){var t=c.charAt(p);p===c.length-1||t===d&&!k?(p===c.length-1&&t===d?(n.push(g),g=""):p===c.length-1&&(g+=t),g=g.trim(),'"'===g.charAt(0)&&'"'===g.charAt(g.length-1)&&(g=g.slice(1,g.length-
1)),k=m=!1,n.push(g),g=""):'"'===t?(m||(g+=t),k=!k,m=!0):(g+=t,m=!1)}return n}static bX(c){return c&&0<c.length?c:e.model.B.j.jo}xl(){}Nk(){}cA(){}Aq(){}BC(){return!1}cancel(){this.clear();this.Re=this.Xa=this.Cb=null}}f.GX=b;class a{}a.FLOAT="F";a.gJ="+T+";f.F7=a})(h.csv||(h.csv={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.sZ=!1;this.M$=0;this.DJ=",";this.BY="\n";this.Pe=l.Ma.R();this.ar=0;this.saa=this.raa=!1;this.Tsa="\x3c!--";this.Usa="--\x3e";this.tZ="/**----**";this.Ssa="**--!--**/";this.eR=this.ms="";this.Eaa=0;this.Kl=()=>this.et();this.Oj=()=>this.uq();this.kKa=RegExp("%d%","g");this.mKa=RegExp("%q%","g");this.lKa=RegExp("%n%","g")}load(a,c,d,g,k){try{this.clear(),this.Ab=a,this.k_=c,this.Re=g,this.OG=k,this.mR=d,this.gG=this.Ab.filename,
this.sZ=this.Ab.Fk,this.M$=this.Ab.$0,this.N$=this.Ab.qda,this.V$=!1,0==this.sZ&&(this.gG=u.Gy.RH(this.gG,!e.model.C.F.gS)),this.sZ&&null!=this.N$?this.$Ea(this.N$):(e.Ca(!0,e.model.B.j.mg),this.D3(this.gG,this.Ab.tc))}catch(m){console.error(m.stack),this.pm(null,m.message?"Error: "+m.message:"")}}D3(a,c){this.Hm=new u.Pt(100,1E5);this.Hm.N(u.xf.Ol,this.Kl);this.Hm.N(u.xf.Pl,this.Oj);this.Hm.start();var d=new z.tk;d.dataType=z.bB.DB;d.N(w.ia.Qc,()=>this.MN());d.N(w.ia.ZA,()=>this.f4());d.N(w.ia.te,
g=>this.NN(g));d.N(w.ia.xa,g=>this.pm(g));d.$h(c);d.load(a);this.Gm=d}uq(){this.Hm.Gl&&this.yg()}yg(){this.Hm&&this.Hm.Gl&&(this.Hm.stop(),this.Hm.rb(u.xf.Ol,this.Kl),this.Hm.rb(u.xf.Pl,this.Oj))}Tca(a){this.ms=-1<a.indexOf(this.tZ)?this.tZ:this.Tsa;this.eR=this.ms==this.tZ?this.Ssa:this.Usa}$Ea(a){this.Ur=100;this.Xi=0;try{var c=new e.Yr(a,this.M$,e.Yr.mJ),d=c.byteLength>this.Ur?this.Ur:c.byteLength,g=c.iW(d);this.Tca(g);g.substr(0,this.ms.length)==this.ms&&(this.GK="",this.GK+=g.substring(this.ms.length),
this.Xi+=d,this.AK=c.byteLength,this.Xi<this.AK?u.Ql.Co({lp:()=>this.XEa(c),gf:()=>this.Br(),M_:c}):this.Br())}catch(k){console.error(k.stack),this.pm(null,k.message?"Parsing error: "+k.message:"")}}XEa(a){var c=this.AK-this.Xi>this.Ur?this.Ur:this.AK-this.Xi;a=a.iW(c);this.Xi+=c;this.GK+=a;this.Y5(this.Xi,this.AK);return this.Xi>=this.AK}Y5(a,c){a=e.P.bind(e.model.B.j.g9,(a/c*100).toFixed(0));e.Ca(!0,e.model.B.j.IF,a)}Br(){e.Ca(!1);this.Py=!0;this.bKa(this.GK)}pt(){null!=this.Re&&(this.Re(),this.Re=
null)}bKa(a){a=e.P.trimLeft(a);this.Tba(a)||this.Fr(a)}et(){if(0<this.Xi||this.Py||this.FZ)this.yg();else{var a=this.Hm.Kw/10;this.DZ?(196<a&&(a=196),a=u.bc.format(a/2,new e.model.oc.W.se,!1,!1,1)+"%"):a=e.P.bind(e.model.B.j.Jt,u.bc.format(a,new e.model.oc.W.se,!1,!1,1));e.Ca(!0,e.model.B.j.mg,a)}}pm(a=null,c=""){e.Ca(!1);var d="";""==c&&null!=a&&null!=a.target&&null!=a.target.response&&""!=a.target.response&&(d=e.model.Tb.validate(a.target.response),c=d=700<d.length?d.substr(0,700):d,d=e.P.bind(e.model.B.j.iQ,
d).replace(/'/g,""));0==this.FZ&&(this.FZ=!0,a=e.model.Tb.valid(this.gG)?this.gG:e.model.Tb.validate(this.gG),e.Va(e.P.bind(e.model.B.j.ZJ,a)+d,e.model.B.j.xa,e.ob.xa));null!=this.Xa&&(this.Xa(c),this.Xa=null);this.clear()}Tba(a){if(0==this.saa&&22<a.length){if(this.iEa(a)){if(0==this.CDa(a.substr(0,a.indexOf(this.BY))))return this.yGa(),!0;this.saa=!0;return!1}this.wDa(a)?(u.Ql.cancel(),null!=this.Gm&&(this.Gm.Vd(),this.Gm.dispose(),this.Gm=null),e.Va("OCSV data format is deprecated. Please contact the support team for more information."),
this.clear()):(this.clear(),(new f.GX).load(this.Ab,this.k_,this.mR,this.Re,null));return!0}return!1}NN(a){if(null!=this.Gm&&!(null!=a.data&&a.data.target&&400<=a.data.target.status)){a=a.data;try{var c=this.Gm.response;if(this.Xi!=a.loaded&&null!=c&&0!=c.length){this.CZ=0<a.total&&a.lengthComputable;this.Xi=a.loaded;""==this.ms&&this.Tca(c);var d=0;if(-1<(d=c.indexOf(this.ms)))c=c.substring(d+this.ms.length+1),this.V$=!0;else if(this.Ab.aga&&!this.V$)return;c=e.P.trimLeft(c);if(!this.Tba(c)&&(1E4<
c.length-this.ar||a.loaded==a.total)){this.Py=a.loaded==a.total&&a.loaded>=this.Gm.response.length;void 0===c||u.Nd().W2||this.Fr(c.substring(this.ar,c.length));this.ar=c.length;var g=0==a.total?e.P.bind(e.model.B.j.Am,u.bc.ah(a.loaded)):e.P.bind(e.model.B.j.JF,u.bc.ah(a.loaded),u.bc.ah(a.total));e.Ca(!0,e.model.B.j.mg,g)}}}catch(k){console.error(k.stack),this.pm(null,k.message?"File loading error: "+k.message:"")}}}f4(){this.DZ=!0;e.Ca(!0,e.model.B.j.mg,"")}MN(){if(null!=this.Gm)try{if(0==this.ar||
!this.CZ||u.Nd().W2||this.ar<=this.Gm.response.length){var a=this.Gm.response,c=0;-1<(c=a.indexOf(this.ms))&&(a=a.substring(c+this.ms.length+1));if(this.Gm.response instanceof ArrayBuffer){var d=new e.Yr(this.Gm.response,0,e.Yr.mJ);a=d.iW(d.byteLength)}this.Py=this.DZ=!0;this.raa?this.CZ?this.ar<a.length&&(this.Fr(a.substring(this.ar,a.length)),this.ar=a.length):this.ar<a.length?(this.Fr(a.substring(this.ar,a.length)),this.ar=a.length):this.jl.push(this.Qy):this.Fr(a)}}catch(g){console.error(g.stack),
this.pm(null,g.message?"ERROR: "+g.message:"")}}Fr(a){this.raa=!0;this.pt();this.appendData(a);0==this.HZ&&1<this.jl.length&&(this.jl.shift(),this.wE(this.jl.shift()),this.HZ=!0,u.Ql.Co({lp:()=>this.wv(),gf:()=>this.jA()}))}iEa(a){return"string"==typeof a&&"___ocsv2___"==a.substr(0,11)}wDa(a){try{if("string"==typeof a)for(var c=0;c<a.length;c++){if(10>a.charCodeAt(c)||255<a.charCodeAt(c))return!0;if(50<c)return!1}if(a instanceof ArrayBuffer)return 1600085871!=(new e.Yr(a,0,e.Yr.mJ)).lia();if(a instanceof
e.Yr)return 1600085871!=a.lia()}catch(d){}return!1}appendData(a){void 0!==this.Qy&&0<this.Qy.length&&(a=this.Qy+a);a=0<=a.indexOf(this.BY)?a.split(this.BY):[];for(var c=0;c<a.length;c++)e.ka(a[c])||this.jl.push(a[c]);1!=this.Py&&(this.Qy=e.ka(a[a.length-1])?a.pop():this.jl.pop(),this.Qy=this.Qy==this.eR?this.jl.pop():this.Qy)}CDa(a){this.gZ=a.replace("___ocsv2___","").split("/")[1];return void 0!=this.gZ&&1==e.P.GS(this.gZ,e.Cg.Iq)?!1:!0}wE(a){a=a.split(this.DJ);this.ls=[];for(var c=0;c<a.length;c++){var d=
this.Zw(a[c]),g=this.FM(a[c]),k=this.DM(g);this.Ut[c]=d;this.ls.push(g);k={type:d,caption:k,A:g};d===l.i.input.sa.Sf&&(d=g.split(":"),k.hierarchy=d[0],k.level=d.pop(),k.parent=d.join(":"));this.Pe.O.Sy(k,g)}this.Pe.ta.zI()}Zw(a){var c=l.i.input.sa.fAa(a);c===l.i.input.sa.$c&&this.Qz(a)&&(c=l.i.input.sa.Sf);return c}DM(a){var c=a.split(f.F7.gJ);if(1<c.length)return c[1];this.Qz(a)&&(c=a.split(":"));return c[c.length-1]}Qz(a){"+"==a.charAt(0)&&(a=a.substr(1));return 1<a.split(":").length&&-1<this.ls.indexOf(a.split(":")[0].trim())}FM(a){a=
a.trim().split(f.F7.gJ)[0];a=this.p5(a);a=this.Jca(a);if(-1<this.ls.indexOf(a)){for(var c=1,d=a;-1<this.ls.indexOf(d);)d=a+c,c++;a=d}return a}p5(a){return a.replace(/^(\+|dt\+|t\+|n\+|-|ds\+|d\+|m\+|w\+|D\+|D4\+|url\+|img\+|id\+)/,"")}wv(){if(this.Vf>=this.jl.length)return this.Py;var a=this.jl[this.Vf];if(!e.ka(a)&&void 0!==this.ls){if(a==this.eR)return!0;if(a.split(this.DJ).length<this.ls.length)for(var c=a.split(this.DJ).length;c<this.ls.length;c++)a=a.concat(this.DJ);var d=[],g=[];a=a.split(this.DJ);
for(c=0;c<this.ls.length;c++)this.iJa(a[c],c,d,g);this.Pe.ta.insert(d,g)}this.Py&&200<u.bg()-this.Eaa&&(c=e.model.B.j.fQ,d=(this.Vf/this.jl.length*100).toFixed(0),d=e.P.bind(e.model.B.j.gQ,u.bc.Cz(this.Vf.toFixed(0)),u.bc.Cz(this.jl.length.toFixed(0)),d),e.Ca(!0,c,d),this.Eaa=u.bg());this.jl[this.Vf]="";this.Vf++;return this.Py&&this.Vf>=this.jl.length}iJa(a,c,d,g){var k=!0,m=this.Pe.O.uD(this.ls[c]);if(null!==this.ls[c]){if(this.Ut[c]===l.i.input.sa.$c||this.Ut[c]===l.i.input.sa.un||this.Ut[c]===
l.i.input.sa.nh){if("^"===a.charAt(0)){var n=parseInt(a.substring(1));!1===isNaN(n)&&(m=m.za(n+1),null!=m&&(a=m.caption==e.model.B.j.Nl?"":m.caption,k=!1))}}else if(this.Ut[c]==l.i.input.sa.Sf)"^"===a.charAt(0)&&(n=parseInt(a.substring(1)),!1===isNaN(n)&&(m=m.hierarchy.za(n+1),null!=m&&(a=m.caption==e.model.B.j.Nl?"":m.caption,k=!1)));else if(this.Ut[c]===l.i.input.sa.Ua||this.Ut[c]===l.i.input.sa.oj||this.Ut[c]===l.i.input.sa.Mq||this.Ut[c]===l.i.input.sa.wp)a=1E3*parseInt(a),k=!1;k&&(a=this.Jca(a));
a=new l.O.be({value:a});this.Pe.O.pc(a,this.ls[c],this.Ut[c],d,g)}}Jca(a){return a.replace(this.kKa,",").replace(this.mKa,'"').replace(this.lKa,"\n")}jA(){e.Ca(!1);this.HZ?this.Cb():(e.Va(e.model.B.j.zp,e.model.B.j.xa,e.ob.nk),this.Xa(),this.mR=null);this.clear()}yGa(){e.Ca(!1);e.Va(e.P.bind(e.model.B.j.Epa,this.gZ),e.model.B.j.xa,e.ob.xa);this.Xa();this.clear()}clear(){e.Ca(!1);this.jl=[];this.eR=this.ms="";this.Xi=0;this.DZ=!1;this.ar=0;this.Ut=[];this.CZ=this.FZ=this.Py=this.HZ=!1;this.Qy="";this.Vf=
0;this.Ur=100;null!=this.Gm&&(this.Gm.Vd(),this.Gm.dispose(),this.Gm=null);this.yg()}Cb(){null!=this.k_&&this.k_()}Xa(a){null!=this.mR&&this.mR(a)}xl(){}Nk(){}cA(){}Aq(){}BC(){return!1}cancel(){this.clear();this.Re=this.Xa=this.Cb=null}}f.eqa=b})(h.csv||(h.csv={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.YP{constructor(){super();this.bJ=this.Pva=!1;this.pr=null;this.Aa=l.i.ra.JSON}get kb(){return e.ka(this.filename)&&(null==this.Yd||0==this.Yd)&&e.v(this.data)}set kb(a){}get cv(){return!e.v(this.data)}set cv(a){}isEqual(a){return a==this?!0:super.isEqual(a)&&e.v(a.data)}static xb(a){var c=new b;e.v(a.browseForFile)||(c.Yd=a.browseForFile);e.v(a.requestPermission)||(c.requestPermission=a.requestPermission);e.ka(a.filename)||(c.filename=
a.filename);e.v(a.data)||(c.data=a.data);e.v(a.checkUpdates)||(c.Pva=a.checkUpdates);e.v(a.requestHeaders)||(c.tc=a.requestHeaders);e.v(a.mapping)||(c.mapping=a.mapping instanceof l.O.Bm?a.mapping:new l.O.Bm(a.mapping));e.v(a.useStreamLoader)||(c.bJ=a.useStreamLoader);e.v(a.withCredentials)||(c.withCredentials=a.withCredentials);e.v(a.dataRootPath)||(c.pr=a.dataRootPath);return c}static Jk(a){var c=new b;0!=a.find("browseForFile").length&&(c.Yd=e.P.Zc(a.find("browseForFile").text()));0!=a.find("filename").length&&
(c.filename=a.find("filename").text());return c}op(a=!1){var c=z.ba.create("<dataSource/>");c.attr("type",this.Aa);(a||this.Yd)&&c.append(z.ba.create("<browseForFile/>").text(this.Yd));this.filename&&c.append(z.ba.create("<filename/>").append(z.ba.fi(this.filename)));return c}Sa(a=!1){var c={};c.type=this.Aa;if(a||this.Yd)c.browseForFile=this.Yd;this.filename&&(c.filename=this.filename);e.v(this.data)||(c.data=this.data);if(!this.mapping.kb||this.mapping.$o)c.mapping=this.mapping.Sa(!0);if(a||this.bJ)c.useStreamLoader=
this.bJ;if(a||this.withCredentials)c.withCredentials=this.withCredentials;if(a||!e.v(this.pr))c.dataRootPath=this.pr;return c}clone(){var a=new b;a.Aa=this.Aa;this.Yd&&(a.Yd=this.Yd);this.filename&&(a.filename=this.filename);e.v(this.data)||(a.data=this.data);if(!this.mapping.kb||this.mapping.$o)a.mapping=this.mapping.clone(this.Aa);this.withCredentials&&(a.withCredentials=this.withCredentials);a.bJ=this.bJ;a.pr=this.pr;return a}}f.RP=b})(h.json||(h.json={}))})(l.local||(l.local={}))})(e.u||(e.u=
{}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.csv.GX{constructor(){super();this.qJ=6553600;this.qx=!0;this.pr=null;this.Dj=void 0;this.d5=()=>this.fIa();this.Kj=this.WN=0;this.n1=[".js",".json"]}load(a,c,d,g,k){this.clear();this.ZC=this.$G=this.Nn=null;this.Kj=0;this.qx=!0;this.pr=a.pr;this.Cb=c;this.Xa=d;this.Re=g;this.OG=k;!0===a.Yd?this.Jba(a):void 0!==a.filename&&""!=a.filename&&"()"!=a.filename.substr(-2)?super.load(a,c,d,g,k):(a=a.data,this.Xo=!0,this.Dj=!e.v(a[1])&&
Array.isArray(a[1]),this.eL(a))}fIa(){if(!(e.v(this.pa)||e.v(this.pa.response)||!this.qx&&this.pa.response.length<this.qJ/100)){var a=this.pa.response.substr(this.Yh,this.qJ);this.Fr(a);this.Yh+=a.length}}NN(a){var c=a.data;if(404==c.target.status)this.pm(a);else if(!e.v(this.pa)&&!e.v(this.pa.response))try{if(0!==this.pa.response.length&&(this.Wj!=c.loaded||this.Nw!=this.pa.response.length)){this.iN=0<c.total&&c.lengthComputable;this.Nw=this.pa.response.length;this.Wj=c.loaded;this.Xo=c.loaded==
c.total;var d=0==c.total?e.P.bind(e.model.B.j.Am,u.bc.ah(c.loaded)):e.P.bind(e.model.B.j.JF,u.bc.ah(c.loaded),u.bc.ah(c.total),(c.loaded/c.total*100).toFixed(0));e.Ca(!0,e.model.B.j.mg,d);this.iN&&c.total<5*this.qJ||u.Nd().fj||!e.v(this.pr)?this.qx=!0:this.jv||(this.qx=!1,this.d5())}}catch(g){console.error(g.stack),this.pm()}}MN(){if(!e.v(this.pa)&&!e.v(this.pa.response))try{if(this.Xo=!0,0==this.Yh||!this.jv||this.qx){const a=this.pa.response;e.ka(a)&&!this.jv?this.EV():this.Fr(a);this.pa=null}}catch(a){console.error(a.stack),
this.pm()}}tBa(a){return this.qx&&!e.v(this.pr)&&0<this.pr.length?u.Hc.resolve(this.pr,a):a}Fr(a){void 0===this.Dj&&(this.Dj=b.Wca(a));let c=null;try{let d;if(this.qx)d=JSON.parse(a);else{if(0==a.length){this.Xo?this.eL([]):e.ve(this.d5,100);return}d=this.J_(a)}c=this.tBa(d);e.v(c.items)||(c=c.items);if(e.v(c.length)){this.ON();return}}catch(d){this.ON();return}this.eL(c)}J_(a){void 0!==this.hd&&0<this.hd.length&&(a=this.hd+a);let c=a;var d=a.trim();"["===d[0]?(d=d.substring(1).trim(),!0===this.Dj&&
(d=d[0],a="["!==d&&"{"!==d?"["+a:a)):"]"===d[d.length-1]&&(d=d.slice(0,-1).trim(),this.Dj&&(a=d[d.length-1],a="]"!==a&&"}"!==a?d+"]":d));!1===this.Dj?(d=a.lastIndexOf("},"),e.ka(this.hd)&&-1===d?"["!==a[0]&&(a="["+a):(this.hd=a.substring(d+2),a=a.substring(0,d+1).trim(),a="["===a[0]?a+"]":"["+a+"]")):!0===this.Dj&&(d=a.lastIndexOf("],"),e.ka(this.hd)&&-1===d?"["!==a[0]&&(a="["+a):(this.hd=a.substring(d+2),a=a.substring(0,d+1).trim(),a+="]"));d=[];try{d=JSON.parse(a)}catch(g){this.hd=c}return d}eL(a){e.v(a.items)||
(a=a.items);(e.v(a)||1>a.length)&&!e.model.C.F.Ux?!this.jv&&this.Xo&&this.EV():Array.isArray(a)?(this.jv?this.data=this.data.concat(a.slice()):(this.jv=!0,this.pt(),this.Dj&&this.wLa(a[0]),a[0]&&Array.isArray(a[0])?this.wE(a[0],a[1],this.wa.ga.mapping):this.wa.ga.mapping.Lfa?this.wa.O.aS(this.wa.ga.mapping,a[0]):this.wa.O.aS(a[0],a[1]),this.data=a.slice(),(l.O.Bm.TU(a[0])||this.Dj)&&this.data.shift()),0==this.data.length?this.qx?this.sI():this.jA(!0):this.qx?u.Ql.Co({lp:()=>this.wv(),gf:()=>this.sI()}):
this.oN||u.Ql.Co({lp:()=>this.wv(),gf:()=>this.jA()})):e.Va(e.model.B.j.XJ,e.model.B.j.xa)}jA(a=!1){if(a||e.v(this.pa)||!(this.pa.response.length>this.Yh)&&this.Xo){if(this.jv){if(!e.ka(this.hd)){this.hd=this.hd.trim();"]"==this.hd.substr(-1)&&(this.hd=this.hd.substr(0,this.hd.length-1).trim(),!0===this.Dj&&(a=this.hd.substr(this.hd.length-1),this.hd="]"!=a&&"}"!=a?this.hd+"]":this.hd));try{var c=JSON.parse(this.hd)}catch(d){c=JSON.parse(JSON.stringify(this.hd))}this.data.push(c);this.wv()}null!=
this.Cb&&(this.clear(),this.Cb())}else e.Va(e.model.B.j.zp,e.model.B.j.xa,e.ob.nk),null!=this.Xa&&(this.Xa(e.model.B.j.zp),this.Xa=null);this.clear()}else e.ve(this.d5,1)}Wd(a){if(!(e.v(a)||1>a.length)){this.wa.ta.iwa();for(var c=1<a.length?a[1]&&Array.isArray(a[1]):a[0]&&Array.isArray(a[0]),d=0;d<a.length;d++)this.insertData(a[d],!0,c)}}sI(){this.data=null;e.Ca(!1);e.Pg(this.Cb)&&this.Cb();this.clear()}e2(){return u.Nd().fj?0==this.data.length?e.P.bind(e.model.B.j.uY,this.Kj):e.P.bind(e.model.B.j.gQ,
this.Kj,this.data.length,(this.Kj/this.data.length*100).toFixed(0)):0!=this.Wj?e.P.bind(e.model.B.j.JF,u.bc.ah(this.Yh),u.bc.ah(this.Wj),(this.Yh/this.Wj*100).toFixed(0)):0==this.Wj&&0<this.data.length?e.P.bind(e.model.B.j.gQ,this.Kj,this.data.length,(this.Kj/this.data.length*100).toFixed(0)):e.P.bind(e.model.B.j.Am,u.bc.ah(this.Yh))}wv(){if(0===this.Kj%100&&200<u.bg()-this.WN){var a=e.model.B.j.fQ,c=this.e2();1==this.Xo&&e.Ca(!0,a,c);this.WN=u.bg()}if(this.Kj>=this.data.length)return!0;e.v(this.data[this.Kj])||
this.insertData(this.data[this.Kj],!1,this.Dj);this.Kj++;return this.Kj>=this.data.length}H5(){this.Nn=this.wa.O.N1(!1);this.$G=[];for(var a=0;a<this.Nn.length;a++)this.$G[a]=this.wa.O.wD(this.Nn[a]);this.wa.ta.zI()}wLa(a){this.ZC=new e.ub;if(Array.isArray(a))for(var c=0;c<a.length;c++)this.ZC.Ta(a[c],c);else{c=0;for(let d in a)a.hasOwnProperty(d)&&(e.v(a[d])||e.ka(a[d].uniqueName)?this.ZC.Ta(d,c):this.ZC.Ta(a[d].uniqueName,c),c++)}}insertData(a,c,d){null===this.Nn&&this.H5();var g=[],k=[],m=!1,n=
new Map;if(c){var p=this.wa.O.aT;""!==p&&(d?(m=this.ZC.getItem(p),m=!e.v(a[m])):m=!e.v(a[p]))}for(var t=0;t<this.Nn.length;t++){p=this.Nn[t];var r=this.$G[t];if(d){var v=this.ZC.getItem(p);var y=a.hasOwnProperty(""+v);v=a[v]}else y=a.hasOwnProperty(p),v=a[p];if(r!==l.i.input.sa.NF)if(r===l.i.input.sa.ty)var A=v;else if(!m){var C=void 0;this.wa.O.v2&&(C=this.R1(a,p,d));y=y?new l.O.be({Ye:C,value:v,caption:""+v}):new l.O.be({Ye:C});r===l.i.input.sa.Sf&&(v=this.wa.O.uD(p),v=v.hierarchy.ua.fa(v.yb-1).A,
n.has(v)?y.parent=n.get(v):void 0!==a[v]&&(y.Ki=a[v]));n.set(p,this.wa.O.pc(y,p,r,g,k))}}c?m?this.wa.ta.qya(A):this.wa.ta.update(g,k,A):this.wa.ta.insert(g,k,A)}R1(a,c,d=!1){var g=void 0;(c=this.wa.O.qea(c))&&0<c.length&&c.forEach(k=>{if(d){var m=this.ZC.getItem(k);m=a[m]}else m=a[k];e.v(m)||(e.v(g)&&(g={}),g[k]=m)});return g}ON(){e.Va(e.model.B.j.XJ,e.model.B.j.xa);e.Ca(!1);e.Pg(this.Xa)&&this.Xa(e.model.B.j.XJ);this.Cb=this.Xa=null;this.clear()}EV(){e.model.C.F.Ux||e.Va(e.model.B.j.zp,e.model.B.j.xa,
e.ob.nk);e.Ca(!1);e.Pg(this.Xa)&&this.Xa(e.model.B.j.zp);this.Cb=this.Xa=null;this.clear()}static Wca(a){a=a.trim();if(!0===/^\[[\s\n\r]*\[/gm.test(a)||!0===/^\[[\s\n\r]*\{[\s\n\r\S]*\}[\s\n\r]*,[\s\n\r]*\[/gm.test(a))return!0;if(!0===/^\[[\s\n\r]*\{/gm.test(a))return!1}}f.O8=b})(h.json||(h.json={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.PZ=null;this.Vf=0;this.fs=this.gR=this.jl=null;this.yf=0}getData(c){this.H$=c;e.Ca(!0,e.model.B.j.u9);this.VJa();this.HS()}VJa(){this.fs=l.Ma.R().O.vc();this.PZ={};this.Em=[];for(this.yf=0;this.yf<this.fs.length;){var c=this.fs.fa(this.yf);var d=l.Ma.R().O.nf(c.A).type;d!=l.i.Ra.wc&&d!=l.i.Ra.Ua?this.aKa(l.Ma.R().O.nf(c.A)):this.ZJa(c);this.yf++}this.qwa(this.Em)}qwa(c){for(var d,g=0;g<c.length;g++)d={},c[g].type!=l.i.input.sa.Sf&&
(d.caption=c[g].caption),d.type=c[g].type,c[g].type==l.i.input.sa.Sf&&this.yJa(c[g],d),this.PZ[c[g].A]=d}yJa(c,d){var g=c.A.split(":");1==g.length?(d.hierarchy=g[0],d.level=g[0]):(d.hierarchy=g[0],d.level=g[g.length-1],d.parent=g[g.length-2],c.A=d.level)}HS(){this.Vf=0;this.jl=[];this.jl.push(this.PZ);this.Ao=l.Ma.R().ta.$M();u.Ql.Co({lp:()=>this.Qwa(),gf:()=>this.HGa()})}Qwa(){var c=u.bg();this.gR=[];this.vk=this.yf=0;for(var d=this.Ao&&this.Ao[0]?this.Ao[0].length:0;this.Vf<d;){for(this.gR=[];this.yf+
this.vk<this.Ao.length&&this.yf<this.Em.length;)this.pc(this.Swa()),this.yf++;this.Vf++;this.jl.push(this.gR);this.vk=this.yf=0;if(100<u.bg()-c)break}this.WLa(this.Vf,d);return this.Vf>=d}ZJa(c){var d=c.inputType;(d==l.i.input.sa.Sf||2<c.ua.length)&&d!=l.i.input.sa.Mq&&d!=l.i.input.sa.wp?this.$Ja(c):d==l.i.input.sa.Ua?(this.Em.push(this.QS(d,c.Ci.caption,!1,c.Ci.A)),this.yf+=2):this.Em.push(this.QS(d,c.caption,!1,c.A))}$Ja(c){c=c.ua;for(var d,g,k,m=1;m<c.length;m++){k=m;d=c.getItem(c.Uh(m));for(g=
d.caption;1<k;)k--,g=c.getItem(c.Uh(k)).A+":"+g;this.Em.push(this.QS(l.i.input.sa.Sf,d.caption,!1,g))}}pc(c){this.gR.push(c)}Swa(){var c=this.Em[this.yf].type;if(c!=l.i.input.sa.Ua)var d=this.fs.getItem(this.Em[this.yf].A).za(this.Ao[this.yf+this.vk][this.Vf]).caption;if(c==l.i.input.sa.jb)return null!=d?parseFloat(d):"";if(c==l.i.input.sa.$c||c==l.i.input.sa.un||c==l.i.input.sa.nh)return null!=d&&d!=e.model.B.j.Nl?d.toString():"";if(c==l.i.input.sa.Sf){c=this.fs.getItem(this.Em[this.yf].caption);
for(var g=0;g<c.ua.length-2;g++)this.pc(d),this.Em[this.yf],this.yf++,d=null==this.Ao[this.yf+this.vk][this.Vf]||""==this.Ao[this.yf+this.vk][this.Vf]+""?"":c.za(this.Ao[this.yf+this.vk][this.Vf]).caption}else{if(c==l.i.input.sa.oj)return this.fs.getItem(this.Em[this.yf].caption).za(this.Ao[this.yf+this.vk][this.Vf]).nc;if(c==l.i.input.sa.Ua)return d="",c=this.fs.getItem(this.Em[this.yf].caption+".Year").za(this.Ao[this.yf+this.vk][this.Vf]),d+=c.caption+"-",this.vk++,c=this.fs.getItem(this.Em[this.yf].caption+
".Month").za(this.Ao[this.yf+this.vk][this.Vf]),d+=e.model.B.j.bs.indexOf(c.caption)+1+"-",this.vk++,c=this.fs.getItem(this.Em[this.yf].caption+".Day").za(this.Ao[this.yf+this.vk][this.Vf]),d+=c.caption;if(c==l.i.input.sa.Mq||c==l.i.input.sa.wp)return this.Jwa(c);if(c==l.i.input.sa.Mc||c==l.i.input.sa.ec)return this.fs.getItem(this.Em[this.yf].A).za(this.Ao[this.yf+this.vk][this.Vf]).nc}return d}HGa(){e.Ca(!1);null!=this.H$&&this.H$(this.jl)}Jwa(c){this.vk+=2;this.vk=c==l.i.input.sa.wp?this.vk+1:
this.vk;return this.fs.getItem(this.Em[this.yf].caption).SM(this.Ao[this.yf+this.vk][this.Vf])}aKa(c){this.Em.push(this.QS(l.i.Ra.FA(c.type),c.Bl,!0,c.A))}WLa(c,d){c=e.P.bind(e.model.B.j.g9,(c/d*100).toFixed(0));e.Ca(!0,e.model.B.j.u9,c)}QS(c,d,g=!1,k){var m=new a;m.caption=d;m.type=c;m.tg=g;m.A=k;return m}}f.jY=b;class a{constructor(){}get type(){return this.Fg}set type(c){this.Fg=c}get caption(){return this.yc}get tg(){return this.dta}set tg(c){this.dta=c}set caption(c){this.yc=c}get A(){return this.$K}set A(c){this.$K=
c}}f.dOa=a})(h.json||(h.json={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.ura{constructor(){super(...arguments);this.Kj=this.WN=0;this.Nn=null;this.f3=this.VU=!1;this.Dj=void 0}load(a,c,d,g,k){this.clear();this.Cb=c;this.Xa=d;this.Re=g;this.OG=k;this.la=a;this.filename=a.filename;!e.ka(this.filename)&&"()"!=this.filename.substr(-2)||!1!==a.Yd?(this.filename=u.Gy.RH(this.filename,!e.model.C.F.gS),e.Ca(!0,e.model.B.j.mg),this.BO(this.filename,a.tc)):this.z4()}AGa(){e.Ca(!0,e.model.B.j.mg,"")}HHa(a){a=0==
a.total?e.P.bind(e.model.B.j.Am,u.bc.ah(a.loaded)):e.P.bind(e.model.B.j.JF,u.bc.ah(a.loaded),u.bc.ah(a.total),(a.loaded/a.total*100).toFixed(0));e.Ca(!0,e.model.B.j.mg,a)}z4(a=null){e.Ca(!1);var c="",d="";null!=a&&null!=a.target&&null!=a.target.response&&""!=a.target.response&&(d=e.model.Tb.validate(a.target.response),c=d=700<d.length?d.substr(0,700):d,d=e.P.bind(e.model.B.j.iQ,d).replace(/'/g,""));0==this.f3&&(this.f3=!0,a=e.model.Tb.valid(this.filename)?this.filename:e.model.Tb.validate(this.filename),
e.Va(e.P.bind(e.model.B.j.ZJ,a)+d,e.model.B.j.xa,e.ob.xa));null!=this.Xa&&(this.Xa(c),this.Xa=null);this.yg()}oIa(a,c,d){try{a=a.replaceAll(String.fromCharCode(0),"");void 0===this.Dj&&(this.Dj=f.O8.Wca(a));const g=d?JSON.parse(a):this.J_(a);Array.isArray(g)?(this.eL(g),u.Ql.Co({lp:()=>this.wv(),gf:c})):this.ON()}catch(g){this.ON()}}J_(a){void 0!==this.hd&&0<this.hd.length&&(a=this.hd+a);let c=a;var d=a.trim();"["===d[0]?(d=d.substr(1).trim(),!0===this.Dj&&(d=d[0],a="["!=d&&"{"!=d?"["+a:a)):"]"===
d[d.length-1]&&(d=d.substr(0,d.length-1).trim(),!0===this.Dj&&(a=d[d.length-1],a="]"!=a&&"}"!=a?d+"]":d));!1===this.Dj?(d=a.lastIndexOf("},"),e.ka(this.hd)&&-1===d?"["!==a[0]&&(a="["+a):(this.hd=a.substring(d+2),a=a.substring(0,d+1).trim(),a="["===a[0]?a+"]":"["+a+"]")):!0===this.Dj&&(d=a.lastIndexOf("],"),e.ka(this.hd)&&-1===d?"["!==a[0]&&(a="["+a):(this.hd=a.substring(d+2),a=a.substring(0,d+1).trim(),a+="]"));d=[];try{d=JSON.parse(a)}catch(g){this.hd=c}return d}eL(a){e.v(a.items)||(a=a.items);(e.v(a)||
1>a.length)&&!e.model.C.F.Ux?!this.VU&&this.SU&&this.EV():Array.isArray(a)?(this.VU?this.data=this.data.concat(a.slice()):(this.VU=!0,this.pt(),this.fe=l.Ma.R().O,this.ta=l.Ma.R().ta,this.la.mapping.kb?a[0]&&Array.isArray(a[0])?this.wE(a[0],a[1]):this.fe.aS(a[0]):this.fe.aS(this.la.mapping.Sa()),this.data=a.slice(),(l.O.Bm.TU(a[0])||this.Dj)&&this.data.shift()),0==this.data.length&&this.sI()):e.Va(e.model.B.j.XJ,e.model.B.j.xa)}wE(a,c){try{var d=e.v(c)?[]:c;this.Pm=[];for(c=0;c<a.length;c++){var g=
this.QT(d[c]),k=this.Zw(a[c],g,0==d.length),m=this.W1(a[c],g,0==d.length),n=this.FM(a[c]),p=this.DM(n),t={type:k,uniqueName:n,caption:p,isMeasure:m};if(!t.hasOwnProperty("visible")||!1!==t.visible){this.OC[c]=t.type;this.We[c]=t.isMeasure;this.Pm[c]=n;if(k===l.i.input.sa.Sf){var r=n.split(":");t.hierarchy=r[0];t.level=r.pop();t.parent=r.join(":")}this.fe.Sy(t,n)}}}catch(v){console.error(v.stack),this.m4()}}m4(){e.Ca(!1);e.Va(e.P.bind(e.model.B.j.m9),e.model.B.j.xa,e.ob.xa)}QT(a){void 0!==a&&null!==
a&&"string"==typeof a&&(a=a.replace(",","."));return a}FM(a){a=a.trim();if(-1<this.Pm.indexOf(a)){for(var c=1,d=a;-1<this.Pm.indexOf(d);)d=a+c,c++;a=d}return a}DM(a){return this.Qz(a)?(a=a.split(":"),a[a.length-1]):a}W1(a,c,d){return!e.model.C.F.Le||e.v(c)&&!d?!1:"-"===a.trim().charAt(0)}Zw(a,c,d){var g=l.i.input.sa.jb;a=a.trim();if(e.v(c)&&!d)return l.i.input.sa.$c;"+"===a.charAt(0)?g=l.i.input.sa.$c:"t+"===a.substr(0,2)?g=l.i.input.sa.ec:"dt+"===a.substr(0,3)?g=l.i.input.sa.Mc:"n+"===a.substr(0,
2)?g=l.i.input.sa.jb:"-"===a.charAt(0)?g=l.i.input.sa.jb:"ds+"===a.substr(0,3)?g=l.i.input.sa.oj:"d+"===a.substr(0,2)?g=l.i.input.sa.Ua:"m+"===a.substr(0,2)?g=l.i.input.sa.nh:"w+"===a.substr(0,2)?g=l.i.input.sa.un:"D+"===a.substr(0,2)?g=l.i.input.sa.Mq:"D4+"===a.substr(0,3)?g=l.i.input.sa.wp:"id+"===a.substr(0,3)?g=l.i.input.sa.ty:""==c||void 0===c?g=l.i.input.sa.$c:isNaN(Number(c))&&(g=e.P.HU(c)?e.model.C.F.$L:l.i.input.sa.$c);g===l.i.input.sa.$c&&this.Qz(a)&&(g=l.i.input.sa.Sf);return g}Qz(a){"+"===
a.charAt(0)&&(a=a.substr(1));return 1<a.split(":").length&&-1<this.Pm.indexOf(a.split(":")[0].trim())}wv(){if(0===this.Kj%100&&200<u.bg()-this.WN){var a=e.model.B.j.fQ,c=this.e2();1==this.SU&&e.Ca(!0,a,c);this.WN=u.bg()}if(this.Kj>=this.data.length)return!0;e.v(this.data[this.Kj])||this.insertData(this.data[this.Kj],this.Dj);this.data[this.Kj]=void 0;this.Kj++;return this.Kj>=this.data.length}H5(){this.Nn=this.fe.N1(!1);this.$G=[];for(var a=0;a<this.Nn.length;a++)this.$G[a]=this.fe.wD(this.Nn[a]);
this.ta.zI()}insertData(a,c){null===this.Nn&&this.H5();for(var d,g,k=[],m=[],n,p,t,r=0;r<this.Nn.length;r++)if(d=this.Nn[r],g=this.$G[r],c?(t=a.hasOwnProperty(""+r),p=a[r]):(t=a.hasOwnProperty(d),p=a[d]),g!==l.i.input.sa.NF)if(g===l.i.input.sa.ty)n=p;else{var v=void 0;this.fe.v2&&(v=this.R1(a,d,c));p=t?new l.O.be({Ye:v,value:p,caption:String(p)}):new l.O.be({Ye:v});g===l.i.input.sa.Sf&&(t=this.fe.uD(d),t=t.hierarchy.ua.fa(t.yb-1).A,p.Ki=a[t]);this.fe.pc(p,d,g,k,m)}this.ta.insert(k,m,n)}R1(a,c,d=!1){var g=
void 0;(c=this.fe.qea(c))&&0<c.length&&c.forEach(k=>{var m=d?a[this.Nn.indexOf(k)]:a[k];e.v(m)||(e.v(g)&&(g={}),g[k]=m)});return g}e2(){return e.P.bind(e.model.B.j.lpa,u.bc.Cz(this.Kj.toString()),(this.AC/this.zL*100).toFixed(0))}sI(){this.data=null;e.Ca(!1);e.Pg(this.Cb)&&this.Cb();this.clear()}pt(){null!=this.Re&&(this.Re(),this.Re=null)}nIa(){e.Ca(!1);if(this.VU){if(!e.ka(this.hd)){this.hd=this.hd.trim();if("]"==this.hd.substr(-1)&&(this.hd=this.hd.substr(0,this.hd.length-1).trim(),!0===this.Dj)){var a=
this.hd.substr(this.hd.length-1);this.hd="]"!=a&&"}"!=a?this.hd+"]":this.hd}try{var c=JSON.parse(this.hd)}catch(d){c=JSON.parse(JSON.stringify(this.hd))}this.data.push(c);this.wv()}null!=this.Cb&&this.Cb()}else e.Va(e.model.B.j.zp,e.model.B.j.xa,e.ob.nk),null!=this.Xa&&(this.Xa(),this.Xa=null);this.clear()}ON(){e.Va(e.model.B.j.XJ,e.model.B.j.xa);e.Ca(!1);e.Pg(this.Xa)&&this.Xa();this.Cb=this.Xa=null;this.clear()}EV(){e.model.C.F.Ux||e.Va(e.model.B.j.zp,e.model.B.j.xa,e.ob.nk);e.Ca(!1);e.Pg(this.Xa)&&
this.Xa();this.Cb=this.Xa=null;this.clear()}clear(){this.data=[];this.Wj=0;this.OC=[];this.We=[];this.f3=!1;this.hd="";null!=this.pa&&(this.pa.Vd(),this.pa.dispose(),this.pa=null);this.yg()}cancel(){this.clear();this.Re=this.Xa=this.Cb=null}xl(){throw Error("Method not implemented.");}Nk(){throw Error("Method not implemented.");}cA(){throw Error("Method not implemented.");}Aq(){throw Error("Method not implemented.");}BC(){return!1}}f.qoa=b})(h.json||(h.json={}))})(l.local||(l.local={}))})(e.u||(e.u=
{}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends l.c7{zI(){this.$_();const b=[];for(var a=this.slice.vc(!1),c=0;c<a.length;c++){const g=a.fa(c);this.Jm(g.A,g.A);e.model.C.F.sc&&this.Hn(this.wa.O.nf(g.A));for(var d=1;d<g.ua.length;d++){const k=g.ua.fa(d);this.Jm(k.A,g.A)}}a=e.u.i.ra.Cc===this.wa.ga.Aa?this.Bza(this.slice.Wf):this.slice.Wf;for(c=0;c<a.length;c++)this.Hn(a[c],b);if(e.u.i.ra.Cc===this.wa.ga.Aa)for(c=0;c<a.length;c++)d=a[c],d.Qa&&(this.Uy(d.A,d.Mm),this.fL(d));this.slice.zA(b)}Bza(b){const a=
[],c={};if(void 0!==b){let k,m,n;for(var d=0;d<b.length;d++){var g=b[d].$;k=b[d].A;m=b[d].hidden;void 0===c[k+"_"+g]?(n=a.length,c[k+"_"+g]={iE:n,Pfa:m},a.push(b[d])):(g=c[k+"_"+g],g.Pfa&&!m&&(a.splice(g.iE,1),g.iE=a.length,g.Pfa=b[d].hidden,a.push(b[d])))}}return a}ii(b,a,c){let d,g;"string"!==typeof b?(d=b.A,g=l.i.ea.uN(b.$)?b.$:b.Mm):d=b;e.v(a)||(g=a);return super.ii(d,g,c)}Hn(b,a){b&&(e.u.i.ra.Cc===this.wa.ga.Aa&&b.Qa||(this.Uy(b.A,b.Mm),l.i.ea.uN(b.$)&&this.Uy(b.A,b.$),this.fL(b)),b.Qa&&this.Yaa(b,
this.slice.Yc.Da,a),void 0!==a&&a.push(b))}Yaa(b,a,c){if((a=u.Ht.RM(b.Ud,a))&&0<a.length)for(let k=0;k<a.length;k++){var d=a[k],g=this.wa.O.fd(d.A);if(null!=g){let m=this.slice.Gi(d);if(null==m){m=g.clone();m.$=d.$;d=m.hidden=!0;if(void 0!==c)for(g=0;g<c.length;g++)c[g].A===m.A&&(m.$===l.i.ea.NONE||c[g].$===b.$&&c[g].Mm===b.Mm)&&(d=!1);d&&(c.push(m),this.fL(m),this.Uy(m.A,m.Mm),l.i.ea.uN(m.$)&&this.Uy(m.A,m.$))}}}}vL(b){return this.wa.ga.Aa==l.i.ra.kg&&b?(b=b.hierarchy,0==b.mapping.La(b.A,"min_doc_count")):
this.wa.ga.Aa==l.i.ra.API?super.vL(b):!1}uL(b){return this.wa.ga.Aa==l.i.ra.kg&&b?(b=b.hierarchy,0==b.mapping.La(b.A,"min_doc_count")):this.wa.ga.Aa==l.i.ra.API?super.uL(b):!1}}h.UX=f})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));var Ka=q||(q={}),La=Ka.u||(Ka.u={}),Ma=La.external||(La.external={}),Na=Ma.Hb||(Ma.Hb={});class Oa{}Oa.NONE=0;Oa.EX=1;Oa.FY=2;Oa.MY=3;Oa.pJ=4;Oa.LX=5;Na.Qj=Oa;
(function(e){(function(l){(function(h){(function(f){class b extends l.O.Bm{constructor(a=null){super(a)}bI(a){a=this.La(a,"visible");return null==a?!0:a}}f.pQ=b})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.Et{constructor(){super(...arguments);this.Nm=!1;this.Aj=this.Hj=this.Tk=this.sf=this.cf=this.Pe=this.I$=this.gi="";this.mapping=new f.pQ;this.hy=!0;this.bw="";this.version=0}get De(){return this.I$}set De(a){a=a.replace("[","");this.I$=a=a.replace("]","")}get wa(){return this.Pe}set wa(a){a=a.replace("[","");this.Pe=a=a.replace("]","")}get Rm(){return this.Aa!=l.i.ra.Cc?"":""==this.bw&&null!=this.credentials&&this.credentials.bn?
"credentials="+this.credentials.hash:this.bw}set Rm(a){this.bw=a}get rN(){return this.Nm}get kb(){return e.ka(this.sf)}set kb(a){}get cv(){return!1}set cv(a){}get aI(){return!1}get KU(){return this.Aa!=l.i.ra.Pd||this.rN?!0:!1}get JU(){return this.Aa==l.i.ra.Cc&&this.rN}isEqual(a){return super.isEqual(a)&&this.sf===a.sf&&this.De===a.De&&this.wa===a.wa&&this.gi===a.gi&&this.Nm===a.Nm&&this.cf===a.cf&&this.mapping.isEqual(a.mapping)&&this.hy===a.hy&&(this.Aa!=l.i.ra.Pd?this.cf===a.cf:!0)&&(this.Aa===
l.i.ra.Cc?this.Hj===a.Hj:!0)&&(this.Aa===l.i.ra.Cc?this.Aj===a.Aj:!0)&&(this.Aa===l.i.ra.Cc?this.Rm===a.Rm:!0)}static xb(a){var c=new b;e.v(a.dataSourceType)||(c.Aa=a.dataSourceType);e.v(a.dataSourceInfo)||(c.gi=a.dataSourceInfo);e.v(a.catalog)||(c.De=a.catalog);e.v(a.cube)||(c.wa=a.cube);e.v(a.roles)||(c.Tk=a.roles);e.v(a.proxyUrl)||(c.sf=a.proxyUrl);e.v(a.localeIdentifier)||(c.Hj=a.localeIdentifier);e.v(a.subquery)||(c.cf=a.subquery);e.v(a.effectiveUserName)||(c.Aj=a.effectiveUserName);e.v(a.customData)||
(c.Rm=a.customData);e.v(a.binary)||(c.Nm=a.binary);e.v(a.requestHeaders)||(c.tc=a.requestHeaders);e.v(a.mapping)||(c.mapping=a.mapping instanceof f.pQ?a.mapping:new f.pQ(a.mapping));e.v(a.useGranularityNamesForDateFilters)||(c.hy=a.useGranularityNamesForDateFilters);c.credentials=f.mj.v$.xb(a);e.v(a.withCredentials)||(c.withCredentials=a.withCredentials);return c}static Jk(a){var c=new b;a=a.find("dataSource");var d=a.attr("type");void 0!==d&&(d=d.toLowerCase());"msolap"==d&&(d=l.i.ra.Cc);d&&-1<d.indexOf("pentaho")&&
(d=l.i.ra.Pd);if(!l.i.ra.valid(d)){var g=a.find("proxyUrl");0<g.length&&0<g.text().length&&(d=l.i.ra.Cc)}c.Aa=d;0!=a.find("dataSourceInfo").length&&(c.gi=a.find("dataSourceInfo").text());0!=a.find("catalog").length&&(c.De=a.find("catalog").text());0!=a.find("cube").length&&(c.wa=a.find("cube").text());0!=a.find("subquery").length&&(c.cf=a.find("subquery").text());0!=a.find("roles").length&&(c.Tk=a.find("roles").text());0!=a.find("proxyUrl").length&&(c.sf=a.find("proxyUrl").text());0!=a.find("localeIdentifier").length&&
(c.Hj=a.find("localeIdentifier").text());0!=a.find("effectiveUserName").length&&(c.Aj=a.find("effectiveUserName").text());0!=a.find("customData").length&&(c.Rm=a.find("customData").text());0!=a.find("binary").length&&(c.Nm=e.P.Zc(a.find("binary").text()));0!=a.find("credentials").length&&(d={},0!=a.find("credentials").find("hash").length&&(d.hash=a.find("credentials").find("hash").text()),0!=a.find("credentials").find("username").length&&(d.username=a.find("credentials").find("username").text()),
0!=a.find("credentials").find("password").length&&(d.password=a.find("credentials").find("password").text()),c.credentials=f.mj.v$.xb(d));return c}op(a=!1){var c=z.ba.create("<dataSource/>");c.attr("type",this.Aa);switch(this.Aa){case l.i.ra.Cc:(a||""!=this.Hj)&&c.append(z.ba.create("<localeIdentifier/>").text(this.Hj)),(a||""!=this.Aj)&&c.append(z.ba.create("<effectiveUserName/>").text(this.Aj)),(a||""!=this.bw)&&c.append(z.ba.create("<customData/>").text(this.bw));case l.i.ra.Pd:c.append(z.ba.create("<proxyUrl/>").append(z.ba.fi(this.sf))),
(a||""!=this.gi)&&c.append(z.ba.create("<dataSourceInfo/>").text(this.gi)),c.append(z.ba.create("<catalog/>").text(this.De)),c.append(z.ba.create("<cube/>").text(this.wa)),c.append(z.ba.create("<binary/>").text(this.Nm)),(a||""!=this.Tk)&&c.append(z.ba.create("<roles/>").text(this.Tk)),this.credentials&&this.credentials.bn&&(a=z.ba.create("<hash/>").text(this.credentials.hash),c.append(z.ba.create("<credentials/>").append(a)))}return c}Sa(a=!1){var c={};c.type=this.Aa;switch(this.Aa){case l.i.ra.Cc:if(a||
""!=this.Hj)c.localeIdentifier=this.Hj;if(a||""!=this.Aj)c.effectiveUserName=this.Aj;if(a||""!=this.bw)c.customData=this.bw;if(a||this.withCredentials)c.withCredentials=this.withCredentials;if(a||1!=this.hy)c.useGranularityNamesForDateFilters=this.hy;case l.i.ra.Pd:c.proxyUrl=this.sf;if(a||""!=this.gi)c.dataSourceInfo=this.gi;c.catalog=this.De;c.cube=this.wa;c.binary=this.Nm;if(a||""!=this.Tk)c.roles=this.Tk;this.credentials&&this.credentials.bn&&(c.credentials={hash:this.credentials.hash})}if(!this.mapping.kb||
this.mapping.$o)c.mapping=this.mapping.Sa(!0);return c}clone(){var a=new b;a.Aa=this.Aa;switch(this.Aa){case l.i.ra.Cc:""!==this.Hj&&(a.Hj=this.Hj),""!==this.Aj&&(a.Aj=this.Aj),""!==this.bw&&(a.Rm=this.bw),this.withCredentials&&(a.withCredentials=this.withCredentials),1!=this.hy&&(a.hy=this.hy);case l.i.ra.Pd:a.sf=this.sf,""!==this.gi&&(a.gi=this.gi),a.De=this.De,a.wa=this.wa,a.Nm=this.Nm,""!==this.Tk&&(a.Tk=this.Tk),this.credentials&&this.credentials.bn&&(a.credentials={hash:this.credentials.hash})}if(!this.mapping.kb||
this.mapping.$o)a.mapping=this.mapping.clone(this.Aa);return a}}b.sessionId=0;f.Bp=b})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.UX{AU(a,c,d,g,k,m){for(var n=[],p=[],t=0;t<a.length;t++){if(-1===a[t][1])return;p[t]=a[t][1];n[this.ua[this.Zh[t]][a[t][0]]]=p[t]}a=[];for(t=0;t<c.length;t++){if(-1===c[t][1])return;a[t]=c[t][1];n[this.ua[this.xj[t]][c[t][0]]]=a[t]}c=this.Bs(p,a);p=this.zb.length;void 0!==this.values[c]?p=this.Lza(n):(this.qh.push(p),this.zb.push(n));0<g.length&&(n=k===l.i.ha.Ia?this.md(g,this.Cd):this.md(g,this.Od),-1===n[0][0].indexOf(p)&&n[0][0].push(p),
m===l.i.Md.rP&&(g=g.slice(0,-1),k=k===l.i.ha.Ia?this.md(g,this.Cd):this.md(g,this.Od),-1===k[0][0].indexOf(p)&&k[0][0].push(p)));this.values[c]=d}Lza(a){for(var c,d=0;d<this.zb.length;d++)if(a.length===this.zb[d].length){c=!0;for(var g=0;g<a.length;g++)if(a[g]!==this.zb[d][g]){c=!1;break}if(c)return d}return this.zb.length}La(a,c,d){var g=this.Bs(a,c),k=this.ii(d);void 0===this.values[g]&&(this.values[g]=[]);if(!e.model.C.F.tu||!d.Qa)return e.v(this.values[g][k])?NaN:this.values[g][k];if(void 0==
this.values[g][k]){var m=this.md(a,this.Cd),n=this.md(c,this.Od);if(void 0===m||void 0===m[0]||void 0===n||void 0===n[0])return NaN;a=this.bq([g],d.Ud,d.Lk,0,a,c,d.Jn);if(!0===a||!1===a)a=!0===a?1:0;this.values[g][k]=a}return e.v(this.values[g][k])?NaN:this.values[g][k]}Ny(a,c,d){if(void 0!==a){var g=a[0][0];if(0<g.length&&!isNaN(c))for(var k=0;k<g.length;k++){var m=this.zb[g[k]][this.ua[c][1]];0!==m&&void 0!==m&&(void 0===a[m]?(a[m]=[[[g[k]],[],[],void 0,void 0,!1]],a[0][1].push(m)):a[0][5]||a[m][0][0].push(g[k]))}void 0===
a[0][3]&&(a[0][3]=[]);void 0===d?a[0][3][this.zg.length]=!0:a[0][3][this.ii(d)]=!0;a[0][5]=!0}}jR(a,c,d,g,k){var m=c[0][0];if(0<m.length&&!isNaN(g))for(var n=0;n<m.length;n++){var p=this.zb[m[n]][g];0!==p&&void 0!==p&&(void 0===a[p]?(a[p]=[[[m[n]],[],[],void 0,void 0]],c[0][2].push(p),this.dm[d][p]=g):-1===a[p][0][0].indexOf(m[n])&&a[p][0][0].push(m[n]))}void 0===c[0][4]&&(c[0][4]=[]);void 0===k?c[0][4][this.zg.length]=!0:c[0][4][this.ii(k)]=!0}Zp(a,c,d){for(var g=0;g<c.length;g++){var k=c[g],m=d[g];
if(e.model.C.F.mU){var n=this.slice.vc().getItem(this.le[m]),p=n.za(k);e.v(n.Nz)||e.v(this.ua)||e.v(d[g])||e.v(this.ua[d[g]])||(m=this.ua[d[g]][p.level.yb])}m=e.v(this.dm[m])||e.v(this.dm[m][k])?m:this.dm[m][k];n=[];for(p=0;p<a.length;p++)this.zb[a[p]][m]===k&&n.push(a[p]);a=n}return a}Hn(a,c){a&&super.Hn(a,c)}Yaa(a,c,d){a=u.Ht.RM(a.Ud,c);for(var g=0;g<a.length;g++){var k=this.wa.O.fd(a[g].A);null==k||c.Bb(k.A)||(k.hidden=!0,d.push(k),this.fL(k),this.Uy(k.A,k.Mm),l.i.ea.uN(k.$)&&this.Uy(k.A,k.$))}}}
f.fqa=b})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.nla{constructor(c,d){super(c,d)}}b.E9=a})(f.O||(f.O={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.Vr{constructor(c,d=""){super(c,d)}get lk(){return this.Qa||this.gh?[]:l.i.ea.S6}set lk(c){}get $(){return""==this.uk?this.Wc[0]:this.uk}set $(c){c&&c.toLowerCase()!=this.uk?(c=c.toLowerCase(),l.i.ea.pz(c)&&(c=l.i.ea.Dz(c)),l.i.ea.dNa(c)||this.Qa&&c==l.i.ea.NONE?(this.dw=void 0,this.uk=c,-1==this.Wc.indexOf(c)&&(this.uk=this.Wc[0])):this.pW()):""==c&&this.pW()}get fc(){return e.model.Tb.valid(this.yc)?this.yc:e.model.Tb.validate(this.yc)}get caption(){if(0==
e.model.C.F.Tx)return this.fc;switch(this.$){case l.i.ea.cs:return e.P.bind(e.model.B.j.iK,this.fc);case l.i.ea.Cp:return e.P.bind(e.model.B.j.cK,this.fc);case l.i.ea.Rq:return e.P.bind(e.model.B.j.hK,this.fc);case l.i.ea.Pq:return e.P.bind(e.model.B.j.fK,this.fc);case l.i.ea.Qq:return e.P.bind(e.model.B.j.gK,this.fc);case l.i.ea.Si:return e.P.bind(e.model.B.j.QJ,this.fc);case l.i.ea.ko:return e.P.bind(e.model.B.j.wJ,this.fc);case l.i.ea.qn:return e.P.bind(e.model.B.j.xJ,this.fc);case l.i.ea.qo:return e.P.bind(e.model.B.j.dK,
this.fc);case l.i.ea.sn:return e.P.bind(e.model.B.j.eK,this.fc)}return this.fc}set caption(c){""==c.trim()?this.yc=e.model.B.j.Nl:this.yc=c}get Bl(){return this.fc}set Bl(c){}clone(){var c=new a(this.A);this.SL(c);return c}}b.uB=a})(f.O||(f.O={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.oJ{get caption(){return this.hierarchy.zD(this.ordinal)}set caption(c){}get Hh(){return this.level.ev?!0:this.hierarchy.tN||this.hierarchy.Ts||this.level.ev?(this.eh||!this.Cf)&&0==this.children.length:!1}set Hh(c){}get Fi(){return this.A}}b.F9=a})(f.O||(f.O={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.Dv{constructor(c,d="",g=0){super(c,d,g)}}b.iqa=a})(f.O||(f.O={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.Ct{constructor(c,d=""){super(c,d);this.Haa=0}get fn(){return this.Haa}set fn(c){this.Xh||(c+=1);this.Haa=c}pc(c){c.A==this.gs&&(c.dc=!0);return super.pc(c)}set Lm(c){""!=c&&!e.v(c)||this.We?this.gs=c:(this.gs=this.A+".[(All)]",this.Sh(new l.O.Dv(this.A,this.caption+" (All)")),this.pc(new l.O.be({A:this.gs,caption:this.caption+" (All)",dc:!0})),this.WB=!1)}get Lm(){return this.gs}Km(c="(Total)"){if(this.Xh)return this.Lm+
".["+c+"]";var d=this.Js.split("].");d.pop();d.push("["+c+"]");return d.join("].")}UW(c,d){var g=this.eka(c.children);g=e.Pg(this.Xs)?this.Gja(g):this.f_(g);for(var k=[],m=0;m<g.length;m++)if(k.push(g[m].ordinal),d&&!c.Hh){var n=this.jk(g[m],d);0<n.length&&(k=k.concat(n))}return k}f_(c){this.hg===l.i.Ba.hc&&e.Ja.sort(c,e.Ja.Ti,d=>d.nc);this.hg===l.i.Ba.Nc&&e.Ja.sort(c,e.Ja.tp|e.Ja.Ti,d=>d.nc);return c}Nda(c){c=this.Ky.find(c);return this.za(c)}AD(){return new b.F9(this)}}b.wY=a})(f.O||(f.O={}))})(h.Hb||
(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.TA{constructor(c,d=""){super(c,d)}}b.gqa=a})(f.O||(f.O={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.yX{constructor(){super();this.sH=new b.hqa}x_(c,d){this.s3.Ta(c.A,c);if(0==e.ka(c.value)){var g=new b.uB(c.value,this.Jz(c.value,c.caption,e.model.B.j.U8,d));g.Mg=e.model.B.j.uy;g.Oc=c.caption;g.type=l.i.Ra.jb;g.xr=c.A;this.zk(g)}0==e.ka(c.kx)&&(g=new b.uB(c.kx,this.Jz(c.kx,c.caption,e.model.B.j.P8,d)),g.Mg=e.model.B.j.uy,g.Oc=c.caption,g.type=l.i.Ra.jb,g.xr=c.A,this.zk(g));0==e.ka(c.status)&&(g=new b.uB(c.status,
this.Jz(c.status,c.caption,e.model.B.j.S8,d)),g.Mg=e.model.B.j.uy,g.Oc=c.caption,g.type=l.i.Ra.jb,g.xr=c.A,g.Wz=!0,this.zk(g));0==e.ka(c.gy)&&(d=new b.uB(c.gy,this.Jz(c.gy,c.caption,e.model.B.j.T8,d)),d.Mg=e.model.B.j.uy,d.Oc=c.caption,d.type=l.i.Ra.jb,d.xr=c.A,d.Xz=!0,this.zk(d))}Dx(c,d=null,g=!1){var k=d?d:new b.uB(c.uniqueName);return super.Dx(c,k,e.v(d)||g)}}b.jqa=a})(f.O||(f.O={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.wX{CH(c){var d=super.CH(c);c!=l.i.tb.NONE&&(d.vm=[l.i.Wb.Rj,l.i.Wb.pi]);return d}}b.hqa=a})(f.O||(f.O={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(){this.Ey=20;this.Jqa=RegExp("<Tuple>(.|\n|\r)*?</Tuple>","gi");this.Hqa=RegExp("<Cell (.|\n|\r)*?</Cell>","gi");this.Iqa=RegExp("<row>(.|\n|\r)*?</row>","g");this.U9=RegExp("<soap:Fault(.|\n|\r)*?</soap:Fault>","gi");this.T9=RegExp("<SOAP-ENV:Fault(.|\n|\r)*?</SOAP-ENV:Fault>","gi");this.ja=l.Ma.R();this.C6=!0;this.$B=!1;this.Kl=()=>this.et();this.Oj=()=>this.uq();this.Lga=()=>this.DHa();this.Nga=c=>this.EHa(c);
this.Mga=()=>{}}load(c,d,g,k){this.ga=c;this.xk=d;this.Cb=g;this.Xa=k;this.$B=!1;this.Ax()}cd(c,d,g,k,m,n){this.ga=c;this.xk=d;this.Cb=n;this.$B=!0;this.Ax()}Ax(){e.Ca(!0,e.model.B.j.mg,e.P.bind(e.model.B.j.Jt,"0.5"));this.$h();this.RD();b.ng.Ab=this.ga;this.pa.data=z.ba.Lc(b.ng.Gw(this.xk.body));this.pa.load(this.ga.sf);this.timer=new u.Pt(500,1E5);this.timer.N(u.xf.Ol,this.Kl);this.timer.N(u.xf.Pl,this.Oj);this.timer.start()}kM(){e.v(this.ga.withCredentials)||(this.pa.withCredentials=this.ga.withCredentials)}$h(){this.pa=
new z.tk;this.pa.eia=100;this.pa.contentType=z.Ft.IQ;this.pa.dataType=z.bB.ba;this.pa.Ir=z.Qt.Rv;const c=JSON.parse(JSON.stringify(e.v(this.ga.tc)?{}:this.ga.tc));this.C6&&(c.Accept="application/xml");this.kM();this.ga.credentials&&this.ga.credentials.bn&&(c.Authorization="Basic "+this.ga.credentials.hash,this.pa.withCredentials=!0);this.pa.$h(c)}et(){null!=this.timer&&e.Ca(!0,e.model.B.j.mg,e.P.bind(e.model.B.j.Jt,u.bc.format(this.timer.Kw/2,new e.model.oc.W.se,!1,!1,1)))}uq(){this.timer.Gl&&e.Va("Can't connect to data source!",
e.model.B.j.xa)}yg(){this.timer&&this.timer.Gl&&(this.timer.stop(),this.timer.rb(u.xf.Ol,this.Kl),this.timer.rb(u.xf.Pl,this.Oj))}RD(){this.pa.N(w.ia.Qc,this.Lga);this.pa.N(w.ia.te,this.Nga);this.pa.N(w.ia.xa,this.Mga);this.fk=f.Qj.NONE;this.bd=[];this.Mb=[];this.DC=[];this.eD=[];this.dD=[];this.jH=[];this.NZ="";this.HR=0;this.Ka=[];this.rows=[];this.Da=[];this.vc=this.ja.O.vc();this.Wf=this.ja.qa.Hr;this.xZ=this.yG=!1;this.AE=this.zE=-1;this.Kc=[]}DHa(){var c=z.ba.Lc(z.ba.create(this.pa.response));
this.xZ=!0;this.rta(c)}EHa(c){c=c.data;c.loaded!==this.Wj&&(this.yg(),this.Wj=c.loaded,this.Y5(c.loaded))}rta(c){this.Wd(c);!this.yG&&this.fk>f.Qj.NONE&&this.mMa()}Wd(c){if(0!=c.length&&this.HR!=c.length){var d=this.NZ+c.substring(this.HR);if(this.fk===f.Qj.NONE){if(this.ga.Aa==l.i.ra.Cc){if(this.U9.test(d)){this.pJa(d.match(this.U9)[0]);this.Br();return}}else if(this.ga.Aa==l.i.ra.Pd&&this.T9.test(d)){this.qJa(d.match(this.T9)[0]);this.Br();return}var g=this.jX(d);-1<g&&(d=d.substr(g))}this.fk==
f.Qj.LX&&(g=this.jX(d),0>g&&(g=d.lastIndexOf("</row>")+6),5!=g&&(this.WMa(d.substring(0,g),this.eD),d=d.substr(g)));this.fk==f.Qj.EX&&(g=this.jX(d),0>g&&(g=d.lastIndexOf("</Tuple>")+8),7!=g&&(this.Aka(d.substring(0,g),this.bd),d=d.substr(g)));this.fk==f.Qj.FY&&(g=this.jX(d),0>g&&(g=d.lastIndexOf("</Tuple>")+8),7!=g&&(this.Aka(d.substring(0,g),this.Mb),d=d.substr(g)));this.fk==f.Qj.MY&&(g=d.indexOf("<CellData>"),-1<g&&(this.fk=f.Qj.pJ,d=d.substr(g)));this.fk==f.Qj.pJ&&(g=d.indexOf("</CellData>"),0>
g&&(g=d.lastIndexOf("</Cell>")+7),6!=g&&(this.UMa(d.substring(0,g),this.DC),d=d.substr(g)));this.HR=c.length;this.NZ=d}}qJa(c){c=c.replace(/SOAP-ENV:Fault/gi,"Fault");c=c.replace(/XA:error/gi,"error");c=z.ba.create(c);null!=c.find("faultstring")&&(c=c.find("faultstring").text(),e.Va(c,e.model.B.j.xa,e.ob.xa))}pJa(c){c=c.replace(/soap:Fault/gi,"Fault");c=z.ba.create(c);null!=c.find("faultstring")&&(c=c.find("faultstring").text(),e.Va(c,e.model.B.j.xa,e.ob.xa))}jX(c){var d=-1;if(this.$B&&this.fk<f.Qj.LX){d=
c.indexOf("<row>");this.fk=f.Qj.LX;if(-1<d)return d;e.Va("No data received from the server.",e.model.B.j.xa)}if(this.fk<f.Qj.EX&&(d=c.indexOf('<Axis name="Axis0">'),-1<d))return this.fk=f.Qj.EX,d;if(this.fk<f.Qj.FY&&(d=c.indexOf('<Axis name="Axis1">'),-1<d))return this.fk=f.Qj.FY,d;if(this.fk<f.Qj.MY&&(d=c.indexOf('<Axis name="SlicerAxis">'),-1<d))return this.fk=f.Qj.MY,d;this.fk<f.Qj.pJ&&(d=c.indexOf("<CellData>"),-1<d&&(this.fk=f.Qj.pJ));return d}WMa(c,d){c=c.match(this.Iqa);for(var g=0;g<c.length;g++){var k=
c[g].replace(/xsi:/g,"");k=k.replace(/xsd:/g,"");d.push(z.ba.create(k))}}Aka(c,d){c=c.match(this.Jqa);if(!e.v(d)&&!e.v(c))for(var g=0;g<c.length;g++){var k=c[g].replace(/xsi:/g,"");d.push(z.ba.create(k))}}UMa(c,d){c=c.match(this.Hqa);if(!e.v(c)&&!e.v(d))for(var g=0;g<c.length;g++)e.v(c[g])||e.ka(c[g])||d.push(c[g])}mMa(){this.yG=!0;u.Ql.Co({lp:()=>this.parse(),gf:()=>this.Br()})}parse(){0<this.bd.length&&this.WV();0<this.Mb.length&&this.ZV();this.fk==f.Qj.pJ&&(0==this.Ka.length&&(this.Ka=[[[0,0]]]),
0==this.rows.length&&(this.rows=[[]]));0<this.DC.length&&this.fJa();0<this.eD.length&&this.lJa();return this.xZ&&0==this.bd.length&&0==this.Mb.length&&0==this.DC.length&&0==this.eD.length}fJa(){for(var c,d,g,k,m,n=this.Ey>this.DC.length?this.DC.length:this.Ey,p=this.DC.splice(0,n),t=e.model.C.F.co&&this.ga.Aa===l.i.ra.Cc,r=0;r<n;r++)c=p[r],g=null===c.match(/<Value.*>(.*)<\/Value>/)?0:parseFloat(c.match(/<Value.*>(.*)<\/Value>/)[1]),t&&(k=c.match(/<FmtValue.*>(.*)<\/FmtValue>/),k=null!=k&&1<k.length?
k[1]:""),d=parseInt(c.match(/CellOrdinal="(.*)"/)[1]),c=this.Lz(d),d=this.Hz(d),m=this.Da[d],c==this.AE&&this.Ka[this.zE].toString()==this.Ka[d].toString()||-1==this.AE||-1==this.zE||(this.ja.ta.AU(this.rows[this.AE],this.Ka[this.zE],this.Kc,this.xk.jg,this.xk.uw,this.xk.type),this.Kc=[]),this.Kc[m]=t&&this.Wf[m].$==l.i.ea.NONE?l.Kt.R().BA(k,g):g,this.AE=c,this.zE=d;-1!=this.AE&&-1!=this.zE&&this.ja.ta.AU(this.rows[this.AE],this.Ka[this.zE],this.Kc,this.xk.jg,this.xk.uw,this.xk.type)}lJa(){for(var c,
d,g=this.Ey>this.eD.length?this.eD.length:this.Ey;0<g;){c=this.eD.shift();d=[];for(var k=0;k<c.getChildren().length;k++)this.nJa(c.getChildren()[k],d,k);this.dD.push(d);g--}}nJa(c,d,g){d[c.localName]=c.text();0>this.jH.indexOf(c.localName)&&this.jH.splice(g,0,c.localName)}NJa(){for(var c=[],d=0;d<this.jH.length;d++)c[this.jH[d]]=d;for(d=0;d<this.dD.length;d++){var g=this.dD[d],k=[],m;for(m in g)k[c[m]]=g[m];this.dD[d]=k}c=this.jH.map(n=>this.mJa(n));this.dD.unshift(c)}mJa(c){c=c.replace(/_x005B_/g,
"[");c=c.replace(/_x005D_/g,"]");c=c.replace(/_x0020_/g," ");c=c.replace(/_x0024_/g,"");var d=this.vc.getItem(c);if(null!=d)return d.caption;d=this.Wf.find(g=>g.A===c);if(null!=d)return d.caption;d=c.split("].[");1<d.length&&(c=d[d.length-1].substr(0,d[d.length-1].length-1));return c}Hz(c){return c%this.Ka.length}Lz(c){return Math.floor(c/this.Ka.length)}ZV(){for(var c,d,g=this.Ey>this.Mb.length?this.Mb.length:this.Ey;0<g;){this.rowIndex=0;d=[];c=this.Mb.shift();var k=c.find("Member");for(c=0;c<k.length;c++)this.GJa(k[c],
d);this.rows.push(d);g--}}GJa(c,d){var g=c.find("HIERARCHY_UNIQUE_NAME").text();g=this.vc.getItem(g);null!=g&&(c=this.Ib(c,g),d.push([c.level.yb,c.ordinal]),this.rowIndex++)}WV(){for(var c,d,g=this.Ey>this.bd.length?this.bd.length:this.Ey;0<g;){this.owa=0;c=[];d=this.bd.shift();d=d.find("Member");for(var k=0;k<d.length;k++)this.hJa(d[k],c);this.Ka.push(c);g--}}hJa(c,d){var g=c.find("HIERARCHY_UNIQUE_NAME").text();if("Measures"!=g&&"[Measures]"!=g){var k=this.vc.getItem(g);null==k&&(k=this.vc.getItem("["+
g+"]"));null!=k&&(c=this.Ib(c,k),d.push([c.level.yb,c.ordinal]),this.owa++)}else{var m=c.find("UName").text();d=this.Wf.findIndex(n=>n.A===m);this.Da.push(d)}}Ib(c,d){var g=c.find("UName").text(),k=d.Ib(g);if(e.v(k)){var m=c.find("Caption").text();-1<m.indexOf("(Total")&&(d.Xh?g=g.substring(0,g.lastIndexOf(".[(")):(g=g.substring(0,g.lastIndexOf(".[("))+".[(All)]",null==d.Ib(g)&&(g=g.substring(0,g.length-8))),k=d.Ib(g))}e.v(k)&&(m=c.find("Caption").text(),c=c.find("PARENT_UNIQUE_NAME").text(),k=d.pc(new l.O.be({A:g,
caption:m,Cf:!0,Ki:c})));return k}Y5(c){c=u.bc.ah(c);e.Ca(!0,e.model.B.j.mg,e.P.bind(e.model.B.j.Am,c))}Br(){e.Ca(!1);this.Cb&&(this.$B?(this.NJa(),this.Cb(this.dD)):!1===e.model.C.F.Ux&&0==this.ja.ta.Kz()?(e.Va(e.model.B.j.zp,e.model.B.j.xa,e.ob.nk),this.Xa(e.model.B.j.zp)):this.Cb());this.clear()}clear(){this.pa&&(this.pa.rb(w.ia.Qc,this.Lga),this.pa.rb(w.ia.te,this.Nga),this.pa.rb(w.ia.xa,this.Mga),this.pa.close(),this.pa=null);this.timer&&this.timer.Gl&&this.timer.stop();this.fk=0;this.bd=[];
this.Mb=[];this.DC=[];this.eD=[];this.dD=[];this.jH=[];this.HR=0;this.NZ="";this.Ka=[];this.rows=[];this.Da=[];this.Wf=this.vc=null;this.xZ=this.yG=!1;this.AE=this.zE=-1;this.Kc=[]}cancel(){this.clear();this.Cb=null}}b.w$=a})(f.mj||(f.mj={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(c){this.km=this.zl=this.qI=0;this.hr=5E3;this.$ga=1E3;this.state=l.Ap.GF;this.ud="";this.ov=!1;this.wga="";this.mca=()=>this.CGa();this.oca=()=>this.EGa();this.Kga=()=>this.Jj();this.aO=d=>this.bt(d);this.Mia=()=>this.BIa();this.Nia=d=>this.CIa(d);this.Kia=()=>this.xIa();this.nca=d=>this.DGa(d);this.Di=d=>this.Rb(d);b.ng.Ab=this.ga=c}$m(){this.pa=new z.tk;this.pa.contentType=z.Ft.IQ;this.pa.dataType=z.bB.ba;this.pa.Ir=
z.Qt.Rv;this.kM();const c=JSON.parse(JSON.stringify(e.v(this.ga.tc)?{}:this.ga.tc));this.ga.credentials&&this.ga.credentials.bn&&(c.Authorization="Basic "+this.ga.credentials.hash,this.pa.withCredentials=!0);this.pa.$h(c)}kM(){e.v(this.ga.withCredentials)||(this.pa.withCredentials=this.ga.withCredentials)}cI(){return e.ka(this.hierarchy.zf)?this.hierarchy.fn<this.$ga:this.hierarchy.fn<10*this.$ga}Ko(){return e.ka(this.ga.cf)?"["+this.ga.wa+"]":"("+this.ga.cf+")"}rxa(c,d){this.txa=c;this.Xa=d;c=this.Ko();
c=e.P.bind("with member [Measures].[CountAllMembers] as Count({0}.allmembers) select NON EMPTY {[Measures].[CountAllMembers]} ON columns FROM {1}",this.hierarchy.A,c);this.$m();this.pa.data=z.ba.Lc(b.ng.Gw(c));this.pa.N(w.ia.Qc,this.mca);this.pa.N(w.ia.xa,this.Di);this.pa.load(this.ga.sf)}CGa(){var c=z.ba.create(this.pa.response);this.NA(c)&&(this.hierarchy.fn=parseInt(c.find("root CellData Cell Value").text()));this.txa()}NA(c){return 0==c.length?(e.Va(e.model.B.j.HF,"",e.ob.xa),e.Ca(!1),!1):0<c.find("root Fault").length?
(e.Va(z.ba.Lc(c.find("root Fault faultstring")),"Query error!",e.ob.xa),!1):!0}load(c,d,g){this.ud="";this.JE&&(this.JE.length=0);this.km=this.zl=this.qI=0;this.lc=d;this.Xa=g;this.Vb=c;this.cI()?this.xl():this.count()}count(){var c=this.Ko();c=null==this.Vb?e.P.bind("with member [Measures].[CountMembers] as Count({0}.levels(1).allmembers) select  NON EMPTY {[Measures].[CountMembers]} ON columns FROM {1}",this.hierarchy.A,c):e.P.bind("with member [Measures].[CountMembers] as Count({0}.children) select NON EMPTY {[Measures].[CountMembers]} ON columns FROM {1}",
this.Vb.A,c);this.$m();this.pa.data=z.ba.Lc(b.ng.Gw(c));this.pa.N(w.ia.Qc,this.oca);this.pa.N(w.ia.xa,this.Di);this.pa.load(this.ga.sf)}EGa(){var c=z.ba.create(this.pa.response);this.NA(c)&&(this.qI=parseInt(c.find("root CellData Cell Value").text()),this.xl())}RC(){return""}k0(){return""}xl(){var c=this.k0();this.state=l.Ap.GF;this.$m();this.pa.data=z.ba.Lc(b.ng.Gw(c));this.pa.N(w.ia.Qc,this.Kga);this.pa.N(w.ia.te,this.aO);this.pa.N(w.ia.xa,this.Di);this.pa.load(this.ga.sf)}Jj(){this.km+=this.pa.Xi;
var c=z.ba.create(this.pa.response);this.pa.close();this.pa=null;this.NA(c)&&this.xE(c);this.zl+=this.hr;this.zl<this.qI&&!this.cI()?this.xl():this.zV()}xE(c){var d=c.find("root");if(0<d.find("Fault").length)e.Va(z.ba.Lc(d.find("Fault faultstring")),"Query error!",e.ob.xa);else{c=[];d=d.find('Axes Axis[name="Axis0"] Tuples Tuple Member');for(var g=this.hierarchy.Zi,k=0;k<d.length;k++)c.push(this.XV(d[k],k+g));return c}}XV(){return null}zV(){e.Ca(!1);this.lc(this.hierarchy)}bt(c){c=u.bc.ah(c.data.loaded+
this.km);e.Ca(!0,e.model.B.j.zm,this.hierarchy.caption+", "+e.P.bind(e.model.B.j.Am,c))}Rb(c){e.Va(c.message,"Error",e.ob.xa);null!=this.Xa&&(this.Xa(c.message),this.Xa=null)}N_(c,d,g,k,m){this.lc=k;this.Xa=m;this.ov=g;this.hierarchy=c;this.state=l.Ap.R6;c=[];for(g=0;g<d.length;g++)c.push(e.P.bind("Ascendants({0})",d[g]));d="{"+c.join(", ")+"}";this.km=0;this.$m();c=this.Ko();d=e.P.bind("SELECT Hierarchize(Distinct({0})) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",d,c);this.pa.data=
z.ba.Lc(b.ng.Gw(d));this.pa.N(w.ia.Qc,()=>this.V3());this.pa.N(w.ia.te,this.aO);this.pa.N(w.ia.xa,this.Di);this.pa.load(this.ga.sf)}V3(){this.km+=this.pa.Xi;var c=z.ba.create(this.pa.response);this.pa.close();this.pa=null;if(this.NA(c)){c=this.xE(c);for(var d=0;d<c.length;d++)this.hierarchy.za(c[d]).Cf=!0;this.ov?this.a6(c,this.Xa):this.hierarchy.Fw()}this.ov||this.lc(this.hierarchy)}Ow(c,d,g,k,m){this.lc=k;this.Xa=m;this.hierarchy=c;this.wga=g;this.state=l.Ap.vma;this.km=0;this.$m();c=this.Ko();
d=e.P.bind("SELECT Hierarchize(Distinct(Descendants({0}, {1}, SELF_AND_BEFORE))) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {2}",d.A,g,c);this.pa.data=z.ba.Lc(b.ng.Gw(d));this.pa.N(w.ia.Qc,()=>this.QGa());this.pa.N(w.ia.te,this.aO);this.pa.N(w.ia.xa,this.Di);this.pa.load(this.ga.sf)}QGa(){this.km+=this.pa.Xi;var c=z.ba.create(this.pa.response);this.pa.close();this.pa=null;if(this.NA(c)){c=this.xE(c);for(var d=0;d<c.length;d++){var g=this.hierarchy.za(c[d]);g.level.A==this.wga?g.Cf=!0:
this.hierarchy.wz(g)}}this.lc(this.hierarchy)}a6(c,d){this.Xa=d;d=[];for(var g=0;g<c.length;g++)d.push(e.P.bind("{0}.Siblings",this.hierarchy.za(c[g]).A));c="{"+d.join(", ")+"}";this.state=l.Ap.b$;this.km=0;this.$m();d=this.Ko();c=e.P.bind("SELECT Hierarchize(Distinct({0})) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",c,d);this.pa.data=z.ba.Lc(b.ng.Gw(c));this.pa.N(w.ia.Qc,()=>this.S4());this.pa.N(w.ia.te,this.aO);this.pa.N(w.ia.xa,this.Di);this.pa.load(this.ga.sf)}S4(){this.km+=this.pa.Xi;
var c=z.ba.create(this.pa.response);this.pa.close();this.pa=null;this.ov=!1;if(this.NA(c)){c=this.xE(c);for(var d=0;d<c.length;d++)this.hierarchy.za(c[d]).Cf=!0;this.hierarchy.Fw()}this.lc(this.hierarchy)}search(c,d,g){this.ud=c.toLowerCase().replace(RegExp('"',"g"),'""').replace(RegExp("'","g"),"''");this.lc=d;this.Xa=g;this.km=this.zl=this.qI=0;this.state=l.Ap.GY;this.JE&&0<this.JE.length?this.JE.length=0:this.JE=[];this.wxa()}n0(){var c=e.P.bind("SET [SearchMembersSet] AS 'FILTER(EXCEPT({0}.allmembers, {1}), (INSTR(1, {0}.CurrentMember.member_caption, {2}) > 0))'",
this.hierarchy.A,this.hierarchy.Lm,'"'+this.ud+'"');var d=e.P.bind("SET [SearchParentsSet] AS 'EXCEPT(GENERATE([SearchMembersSet], ASCENDANTS([SearchMembersSet].Current)), {0})'",this.hierarchy.Lm);return c+"\n"+d+"\nSET [SearchSet] AS 'HIERARCHIZE(DISTINCT({[SearchMembersSet], [SearchParentsSet]}))'"}wxa(){var c=this.Ko(),d="MEMBER [Measures].[CountSearchSet] AS 'COUNT([SearchSet])'\nSELECT NON EMPTY {[Measures].[CountSearchSet]} ON COLUMNS FROM {0}";d="WITH "+this.n0()+"\n"+e.P.bind(d,c);this.$m();
this.pa.data=z.ba.Lc(b.ng.Gw(d));this.pa.N(w.ia.Qc,this.Kia);this.pa.N(w.ia.te,this.nca);this.pa.N(w.ia.xa,this.Di);this.pa.load(this.ga.sf)}xIa(){var c=z.ba.create(this.pa.response);this.NA(c)&&(this.qI=parseInt(c.find("root CellData Cell Value").text()),this.Aq())}DGa(c){e.Ca(!0,"Counting members...",this.hierarchy.caption+", "+Math.round(c.data.loaded/1E3)+"K loaded")}Aq(){var c=this.Ko(),d="SELECT SUBSET([SearchSet], {0}, {1}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME ON COLUMNS FROM {2}";d="WITH "+
this.n0()+"\n"+e.P.bind(d,this.zl,this.hr,c);this.$m();this.pa.data=z.ba.Lc(b.ng.Gw(d));this.pa.N(w.ia.Qc,this.Mia);this.pa.N(w.ia.te,this.Nia);this.pa.N(w.ia.xa,this.Di);this.pa.load(this.ga.sf)}CIa(c){c=u.bc.ah(c.data.loaded+this.km);e.Ca(!0,e.model.B.j.zm,this.hierarchy.caption+", "+e.P.bind(e.model.B.j.Am,c))}BIa(){this.km+=this.pa.Xi;var c=z.ba.create(this.pa.response);this.pa.close();this.pa=null;this.NA(c)&&this.IJa(c);this.zl+=this.hr;this.zl<this.qI?this.Aq():this.sE()}IJa(c){c=c.find("root");
if(0<c.find("Fault").length)e.Va(z.ba.Lc(c.find("Fault faultstring")),"Query error!",e.ob.xa);else{c=c.find('Axes Axis[name="Axis0"] Tuples Tuple Member');for(var d=0;d<c.length;d++)this.HJa(c[d])}}HJa(c){var d=c.find("PARENT_UNIQUE_NAME").text();var g=c.find("Caption").text(),k=c.find("UName").text(),m=parseInt(c.find("MEMBER_ORDINAL").text()),n=this.hierarchy.Ib(k);if(null==n&&(n=this.hierarchy.pc(new l.O.be({A:k,caption:g,nc:m,Ki:d})),n.level&&0<n.level.Ye.length))for(g=0;g<n.level.Ye.length;g++)d=
n.level.Ye.fa(g),n.setProperty(d.A,c.find(d.QO).text());n.parent&&!n.parent.dc&&(n.parent.Cf=!0);this.JE.push(n.ordinal)}sE(){e.Ca(!1);this.lc(this.JE)}cancel(){this.pa&&(this.pa.rb(w.ia.Qc,this.mca),this.pa.rb(w.ia.Qc,this.oca),this.pa.rb(w.ia.Qc,this.Kga),this.pa.rb(w.ia.te,this.aO),this.pa.rb(w.ia.Qc,this.Mia),this.pa.rb(w.ia.te,this.Nia),this.pa.rb(w.ia.Qc,this.Kia),this.pa.rb(w.ia.te,this.nca),this.pa.rb(w.ia.xa,this.Di),this.pa.close());this.Xa=this.pa=null}}b.x$=a})(f.mj||(f.mj={}))})(h.Hb||
(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(c){this.wa=l.Ma.R();this.C6=!0;this.Yca=()=>this.BV();this.Zca=d=>this.RGa(d);this.AFa=()=>this.PHa();this.CFa=d=>this.RHa(d);this.Di=d=>this.Rb(d);this.mfa=()=>this.n4();this.nfa=d=>this.qHa(d);this.yga=()=>this.w4();this.zga=d=>this.AHa(d);this.fia=()=>this.kIa();this.gia=d=>this.mIa(d);this.Uga=()=>this.C4();this.Vga=d=>this.THa(d);this.V8=()=>this.s4();this.W8=d=>this.wHa(d);this.ga=c;this.bm=new z.tk;this.hE=
new z.tk;this.hq=new z.tk;this.nq=new z.tk;this.jq=new z.tk;this.mq=new z.tk;this.xq=new z.tk}cq(c){return c.find("row")}load(c,d,g,k){this.Cb=d;this.Xa=g;this.Re=k;this.B3(this.Y3)}$m(c){this.kM(c);this.$h(c)}kM(c){e.v(this.ga.withCredentials)||(c.withCredentials=this.ga.withCredentials)}$h(c){c.contentType=z.Ft.IQ;c.dataType=z.bB.ba;c.Ir=z.Qt.Rv;const d=JSON.parse(JSON.stringify(e.v(this.ga.tc)?{}:this.ga.tc));this.C6&&(d.Accept="application/xml");this.ga.credentials&&this.ga.credentials.bn&&(d.Authorization=
"Basic "+this.ga.credentials.hash,c.withCredentials=!0);c.$h(d);return c}Rb(c){this.bm.Vd(w.ia.xa);this.bm.Vd(w.ia.Qc);this.bm.Vd(w.ia.te);c=c.target.url.trim();c=e.model.B.j.ypa.replace("{0}",'<u><a href="'+c+'">'+c+"</a></u>");e.Va(c,"",e.ob.xa);this.Xa(c)}pt(){null!=this.Re&&(this.Re(),this.Re=null)}B3(c){e.Ca(!0,e.model.B.j.YJ);this.fH=c;this.$m(this.bm);b.ng.Ab=this.ga;this.bm.data=z.ba.Lc(b.ng.Cwa());this.bm.N(w.ia.Qc,this.Yca);this.bm.N(w.ia.te,this.Zca);this.bm.N(w.ia.xa,this.Di);this.bm.load(this.ga.sf)}RGa(c){c=
u.bc.ah(c.data.loaded);e.Ca(!0,e.model.B.j.YJ,e.P.bind(e.model.B.j.Am,c))}BV(){this.pt();var c=z.ba.create(this.bm.response);c=this.cq(c);if(0<c.length){for(var d=0;d<c.length;d++)this.Iha(c[d]);this.fH()}else e.Va(e.model.B.j.HF,"",e.ob.xa),e.Ca(!1)}Iha(c){var d=c.find("DIMENSION_UNIQUE_NAME").text();const g=this.ga.mapping.La(d,"caption",c.find("DIMENSION_CAPTION").text());c=parseInt(c.find("DIMENSION_TYPE").text());this.ga.mapping.bI(d)&&(d=new l.O.TA(d,g),d.type=c,this.wa.O.mu(d))}Y3(){this.ga.Aa==
l.i.ra.Cc?this.eFa(this.QHa):this.mV(this.JV)}eFa(c){e.Ca(!0,e.model.B.j.YJ);this.BFa=c;this.$m(this.hE);b.ng.Ab=this.ga;this.hE.data=z.ba.Lc(b.ng.Rwa());this.hE.N(w.ia.Qc,this.AFa);this.hE.N(w.ia.te,this.CFa);this.hE.N(w.ia.xa,this.Di);this.hE.load(this.ga.sf)}RHa(c){c=u.bc.ah(c.data.loaded);e.Ca(!0,e.model.B.j.YJ,e.P.bind(e.model.B.j.Am,c))}PHa(){this.pt();var c=z.ba.create(this.hE.response);c=this.cq(c);for(var d=0;d<c.length;d++)this.AJa(c[d]);this.BFa()}AJa(c){var d=c.find("DIMENSION_UNIQUE_NAME").text(),
g=c.find("MEASUREGROUP_NAME").text();c=c.find("DIMENSION_GRANULARITY").text();d=this.wa.O.$p(d);if(null!=d){d.JD||(d.JD=[]);var k=d.JD;k[g]=c;d.JD=k}}QHa(){this.mV(this.JV)}mV(c){e.Ca(!0,e.model.B.j.rY);this.jN=c;this.$m(this.hq);this.hq.data=z.ba.Lc(b.ng.Hw());this.hq.N(w.ia.Qc,this.mfa);this.hq.N(w.ia.te,this.nfa);this.hq.N(w.ia.xa,this.Di);this.hq.load(this.ga.sf)}n4(){var c=z.ba.create(this.hq.response);c=this.cq(c);if(0==c.length)e.Va(e.model.B.j.HF,"",e.ob.xa),e.Ca(!1);else{for(var d=0;d<c.length;d++)this.tJa(c[d]);
this.jN()}}tJa(c){var d=c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("HIERARCHY_UNIQUE_NAME").text();const k=this.ga.mapping.La(g,"caption",c.find("HIERARCHY_CAPTION").text()),m=parseInt(c.find("DIMENSION_TYPE").text()),n=c.find("HIERARCHY_DISPLAY_FOLDER").text(),p=c.find("ALL_MEMBER").text(),t=c.find("DEFAULT_MEMBER").text();c=parseInt(c.find("STRUCTURE").text());this.ga.mapping.bI(g)&&(d=this.wa.O.$p(d),null!=d&&(g=this.ga.Aa==l.i.ra.Cc?new f.O.wY(g,k):new f.pq.O.A9(g,k),g.origin=1,g.Oc=n,g.type=
l.i.Ic.nD(m),g.Lm=p,g.Js=t,1==c&&(g.tN=!0),2==c&&(g.Ts=!0),d.zi(g)))}qHa(c){c=u.bc.ah(c.data.loaded);e.Ca(!0,e.model.B.j.rY,e.P.bind(e.model.B.j.Am,c))}JV(){this.FN(this.x4)}FN(c){e.Ca(!0,e.model.B.j.sY);this.DN=c;this.$m(this.mq);this.mq.data=z.ba.Lc(b.ng.Pwa());this.mq.N(w.ia.Qc,this.yga);this.mq.N(w.ia.te,this.zga);this.mq.N(w.ia.xa,this.Di);this.mq.load(this.ga.sf)}AHa(c){c=u.bc.ah(c.data.loaded);e.Ca(!0,e.model.B.j.sY,e.P.bind(e.model.B.j.Am,c))}w4(){var c=z.ba.create(this.mq.response);c=this.cq(c);
if(0==c.length)e.Va(e.model.B.j.HF,"",e.ob.xa),e.Ca(!1);else{for(var d=0;d<c.length;d++)this.Mha(c[d]);this.DN()}}x4(){e.model.C.F.LI?this.fFa(this.lIa):this.oV(this.PV)}Mha(c){var d=c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("HIERARCHY_UNIQUE_NAME").text(),k=c.find("LEVEL_CAPTION").text(),m=parseInt(c.find("LEVEL_TYPE").text()),n=c.find("LEVEL_UNIQUE_NAME").text();c=parseInt(c.find("LEVEL_NUMBER").text());d=this.wa.O.$p(d);null!=d&&(g=d.uh(g),null!=g&&(k=new l.O.Dv(n,k,c),k.type=l.i.ib.nD(m),
g.Sh(k),d.zi(g)))}fFa(c){e.Ca(!0,e.model.B.j.s9);this.cKa=c;this.$m(this.xq);this.xq.data=z.ba.Lc(b.ng.Uwa());this.xq.N(w.ia.Qc,this.fia);this.xq.N(w.ia.te,this.gia);this.xq.N(w.ia.xa,this.Di);this.xq.load(this.ga.sf)}mIa(c){c=u.bc.ah(c.data.loaded);e.Ca(!0,e.model.B.j.s9,e.P.bind(e.model.B.j.Am,c))}kIa(){var c=z.ba.create(this.xq.response);c=this.cq(c);if(0!=c.length)for(var d=0;d<c.length;d++)this.Z4(c[d]);this.cKa()}Z4(){}lIa(){this.oV(this.PV)}oV(c){e.Ca(!0,e.model.B.j.jQ);this.GN=c;this.$m(this.nq);
this.nq.data=z.ba.Lc(b.ng.Lo());this.nq.N(w.ia.Qc,this.Uga);this.nq.N(w.ia.te,this.Vga);this.nq.N(w.ia.xa,this.Di);this.nq.load(this.ga.sf)}THa(c){c=u.bc.ah(c.data.loaded);e.Ca(!0,e.model.B.j.jQ,e.P.bind(e.model.B.j.Am,c))}C4(){var c=z.ba.create(this.nq.response);c=this.cq(c);if(0==c.length)e.Va(e.model.B.j.HF,"",e.ob.xa),e.Ca(!1);else{for(var d=0;d<c.length;d++)this.BJa(c[d]);this.GN()}}BJa(c){const d=c.find("MEASURE_UNIQUE_NAME").text();var g=this.ga.mapping.La(d,"caption",c.find("MEASURE_CAPTION").text());
const k=c.find("MEASUREGROUP_NAME").text();c=c.find("MEASURE_DISPLAY_FOLDER").text()||"";this.ga.mapping.bI(d)&&(g=new f.O.uB(d,g),g.type=1,g.Mg=k,g.Oc=c,g.Wc=this.ga.mapping.La(d,"aggregations"),this.wa.O.zk(g))}PV(){this.nV(this.t4)}nV(c){e.Ca(!0,e.model.B.j.r9);this.wN=c;this.$m(this.jq);this.jq.data=z.ba.Lc(b.ng.Lwa());this.jq.N(w.ia.Qc,this.V8);this.jq.N(w.ia.te,this.W8);this.jq.N(w.ia.xa,this.Di);this.jq.load(this.ga.sf)}wHa(c){c=u.bc.ah(c.data.loaded);e.Ca(!0,e.model.B.j.jQ,e.P.bind(e.model.B.j.Am,
c))}s4(){var c=z.ba.create(this.jq.response);c=this.cq(c);if(0!=c.length)for(var d=0;d<c.length;d++)this.vJa(c[d]);this.wN()}vJa(c){var d=c.find("KPI_NAME").text(),g=this.ga.mapping.La(d,"caption",c.find("KPI_CAPTION").text()),k=c.find("KPI_VALUE").text(),m=c.find("KPI_STATUS").text(),n=c.find("KPI_GOAL").text();c=c.find("KPI_TREND").text();d=new f.O.E9(d,g);d.value=k;d.status=m;d.kx=n;d.gy=c;this.wa.O.x_(d,this.ga.mapping)}t4(){e.Ca(!1);null!=this.Cb&&this.Cb()}xl(c,d,g){e.Ca(!0,e.model.B.j.zm,c.caption);
this.Cb=d;this.Xa=g;this.lm.hierarchy=c;this.lm.rxa(()=>{this.Nk(c,null,k=>this.ek(k),g)},this.Xa)}ek(c){var d=c.yv;if(0<c.filter.Dl.length)this.EN(c,c.filter.Dl,c.filter.yI,k=>this.ek(k),this.Xa);else if(0<d.length){var g=d.shift();c.yv=d;d=c.Ib(g[1]);c.wz(d);null!=g[0]&&""!=g[0]?this.cA(d,g[0],k=>this.ek(k),this.Xa):this.Nk(c,d,k=>this.ek(k),this.Xa)}else this.Cb(c)}Nk(c,d,g,k){e.Ca(!0,e.model.B.j.zm,c.caption);this.lm.hierarchy=c;this.lm.load(d,g,k)}EN(c,d,g,k,m){this.lm.hierarchy=c;this.lm.N_(c,
d,g,k,m)}cA(c,d,g,k){this.lm.hierarchy=c.hierarchy;this.lm.Ow(c.hierarchy,c,d,g,k)}Aq(c,d,g,k){this.lm.hierarchy=c;this.lm.search(d,g,k)}BC(){return!0}cancel(){this.bm&&(this.bm.rb(w.ia.Qc,this.Yca),this.bm.rb(w.ia.te,this.Zca),this.bm.rb(w.ia.xa,this.Di),this.bm.close(),this.bm=null);this.hq&&(this.hq.rb(w.ia.Qc,this.mfa),this.hq.rb(w.ia.te,this.nfa),this.hq.rb(w.ia.xa,this.Di),this.hq.close(),this.hq=null);this.mq&&(this.mq.rb(w.ia.Qc,this.yga),this.mq.rb(w.ia.te,this.zga),this.mq.rb(w.ia.xa,this.Di),
this.mq.close(),this.mq=null);this.xq&&(this.xq.rb(w.ia.Qc,this.fia),this.xq.rb(w.ia.te,this.gia),this.xq.rb(w.ia.xa,this.Di),this.xq.close(),this.xq=null);this.nq&&(this.nq.rb(w.ia.Qc,this.Uga),this.nq.rb(w.ia.te,this.Vga),this.nq.rb(w.ia.xa,this.Di),this.nq.close(),this.nq=null);this.jq&&(this.jq.rb(w.ia.Qc,this.V8),this.jq.rb(w.ia.te,this.W8),this.jq.rb(w.ia.xa,this.Di),this.jq.close(),this.jq=null);this.lm&&(this.lm.cancel(),this.lm=null);this.Re=this.Xa=this.Cb=null}}b.y$=a})(f.mj||(f.mj={}))})(h.Hb||
(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{static Gw(c){var d=z.ba.create("<DataSourceInfo/>").text(this.Ab.gi),g=z.ba.create("<Catalog/>").text(this.Ab.De),k=z.ba.create("<AxisFormat/>").text("TupleFormat"),m=z.ba.create("<Content/>").text("Data"),n=z.ba.create("<Format/>").text("Multidimensional");d=a.Fs([d,g,k,m,n]);c=z.ba.create('<Execute xmlns="urn:schemas-microsoft-com:xml-analysis"><Command><Statement><![CDATA['+c+"]]\x3e</Statement></Command>"+z.ba.Lc(d)+"</Execute>");
return a.Yp(c)}static ywa(){return a.Yp(a.Es(z.ba.create("<RequestType/>").text("DISCOVER_DATASOURCES"),z.ba.create("<Restrictions/>"),z.ba.create("<Properties/>")))}static Xwa(){var c=z.ba.create("<Content/>").text("Data"),d=z.ba.create("<DataSourceInfo/>").text(this.Ab.gi);c=a.Fs([c,d]);return a.Yp(a.Es(z.ba.create("<RequestType/>").text("DISCOVER_PROPERTIES"),z.ba.create("<Restrictions/>").append(z.ba.create("<RestrictionList/>").append(z.ba.create("<PropertyName/>").text("DBMSVersion"))),c))}static swa(){var c=
z.ba.create("<DataSourceInfo/>").text(this.Ab.gi),d=z.ba.create("<Format/>").text("Tabular");c=a.Fs([c,d]);d=z.ba.create("<RequestType/>").text("DBSCHEMA_CATALOGS");var g=z.ba.create("<Restrictions/>");return a.Yp(a.Es(d,g,c))}static xwa(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.gi),d=z.ba.create("<Catalog/>").text(this.Ab.De),g=z.ba.create("<Format/>").text("Tabular");c=a.Fs([c,d,g]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.De);d=a.hz([d]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_CUBES");
return a.Yp(a.Es(g,d,c))}static Cwa(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.gi),d=z.ba.create("<Catalog/>").text(this.Ab.De),g=z.ba.create("<Format/>").text("Tabular");c=a.Fs([c,d,g]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.De);g=z.ba.create("<CUBE_NAME/>").text(this.Ab.wa);d=a.hz([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_DIMENSIONS");return a.Yp(a.Es(g,d,c))}static Rwa(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.gi),d=z.ba.create("<Catalog/>").text(this.Ab.De),
g=z.ba.create("<Format/>").text("Tabular");c=a.Fs([c,d,g]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.De);g=z.ba.create("<CUBE_NAME/>").text(this.Ab.wa);d=a.hz([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_MEASUREGROUP_DIMENSIONS");return a.Yp(a.Es(g,d,c))}static Hw(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.gi),d=z.ba.create("<Catalog/>").text(this.Ab.De),g=z.ba.create("<Cube/>").text(this.Ab.wa),k=z.ba.create("<Format/>").text("Tabular");c=a.Fs([c,d,g,k]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.De);
g=z.ba.create("<CUBE_NAME/>").text(this.Ab.wa);d=a.hz([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_HIERARCHIES");return a.Yp(a.Es(g,d,c))}static Pwa(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.gi),d=z.ba.create("<Catalog/>").text(this.Ab.De),g=z.ba.create("<Cube/>").text(this.Ab.wa),k=z.ba.create("<Format/>").text("Tabular");c=a.Fs([c,d,g,k]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.De);g=z.ba.create("<CUBE_NAME/>").text(this.Ab.wa);d=a.hz([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_LEVELS");
return a.Yp(a.Es(g,d,c))}static Uwa(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.gi),d=z.ba.create("<Catalog/>").text(this.Ab.De),g=z.ba.create("<Cube/>").text(this.Ab.wa),k=z.ba.create("<Format/>").text("Tabular");c=a.Fs([c,d,g,k]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.De);g=z.ba.create("<CUBE_NAME/>").text(this.Ab.wa);d=a.hz([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_PROPERTIES");return a.Yp(a.Es(g,d,c))}static Lwa(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.gi),
d=z.ba.create("<Catalog/>").text(this.Ab.De),g=z.ba.create("<Cube/>").text(this.Ab.wa),k=z.ba.create("<Format/>").text("Tabular");c=a.Fs([c,d,g,k]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.De);g=z.ba.create("<CUBE_NAME/>").text(this.Ab.wa);d=a.hz([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_KPIS");return a.Yp(a.Es(g,d,c))}static Lo(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.gi),d=z.ba.create("<Catalog/>").text(this.Ab.De),g=z.ba.create("<Cube/>").text(this.Ab.wa),k=z.ba.create("<Format/>").text("Tabular");
c=a.Fs([c,d,g,k]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.De);g=z.ba.create("<CUBE_NAME/>").text(this.Ab.wa);d=a.hz([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_MEASURES");return a.Yp(a.Es(g,d,c))}static Yp(c){var d=z.ba.create('<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" flexmonster="true"><SOAP-ENV:Body></SOAP-ENV:Body></SOAP-ENV:Envelope>');
d.firstElementChild.appendChild(c);return d}static Fs(c){var d=z.ba.create("<PropertyList/>").attr("flexmonster","true"),g=z.ba.create("<Properties/>");if(""!=a.Ab.Tk){var k=z.ba.create("<Roles/>").text(a.Ab.Tk);c.push(k)}""!=a.Ab.Aj&&(k=z.ba.create("<EffectiveUserName/>").text(a.Ab.Aj),c.push(k));""!=a.Ab.Hj&&(k=z.ba.create("<LocaleIdentifier/>").text(a.Ab.Hj),c.push(k));""!=a.Ab.Rm&&(k=z.ba.create("<CustomData/>").text(a.Ab.Rm),c.push(k));for(k=0;k<c.length;k++)d.append(c[k]);g.append(d);return g}static hz(c){for(var d=
z.ba.create("<RestrictionList/>"),g=z.ba.create("<Restrictions/>"),k=0;k<c.length;k++)d.append(c[k]);g.append(d);return g}static Es(c,d,g){return z.ba.create('<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">'+z.ba.Lc(c)+z.ba.Lc(d)+z.ba.Lc(g)+"</Discover>")}static twa(c,d,g){var k=z.ba.create('<ClearCache xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"/>'),m=z.ba.create("<Object/>");null!=c&&m.append(z.ba.create("<DatabaseID/>").text(c));null!=d&&m.append(z.ba.create("<CubeID/>").text(d));
null!=g&&m.append(z.ba.create("<MeasureGroupID/>").text(g));k.append(m);return a.Yp(z.ba.create('<Execute xmlns="urn:schemas-microsoft-com:xml-analysis"/>').append(z.ba.create("<Command/>").append(k)).append(z.ba.create("<Properties/>")))}}b.ng=a})(f.mj||(f.mj={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(){this.bO=this.dW="";if(null!=a.instance)throw Error("Singleton");}static R(){null==a.instance&&(a.instance=new a);return a.instance}static dispose(){a.instance=null}cq(c){return c.find("row")}JW(){this.pa=new z.tk;this.pa.contentType=z.Ft.IQ;this.pa.Ir=z.Qt.Rv}ID(c,d){this.lc=d;this.bO!=c?this.rea(c,()=>function(){d(this.dW)}):this.lc&&this.lc(this.dW);return this.dW}rea(c,d){this.lc=d;this.bO=c;this.JW();this.pa.data=
z.ba.Lc(b.ng.ywa());this.pa.N(w.ia.Qc,()=>this.KGa());this.pa.N(w.ia.xa,()=>this.LGa());this.pa.load(c)}KGa(){if(!e.ka(this.pa.response)){var c=z.ba.create(this.pa.response);c=this.cq(c);for(var d=[],g=0;g<c.length;g++){var k=c[g].find("DataSourceName").text();this.dW=c[g].find("ProviderName").text();d.push(k)}this.lc&&this.lc(d)}}LGa(){const c=e.model.Tb.valid(this.bO)?this.bO:e.model.Tb.validate(this.bO);e.Va("Error opening URL <u>"+c+"</u><br/>Please check your Internet connection.<br/><br/><u><a href='https://www.flexmonster.com/doc/typical-errors/#url-error' target='_blank'>Read more info about this error</a></u>",
e.model.B.j.xa,e.ob.xa);this.lc&&this.lc([])}WAa(c,d,g){this.lc=g;b.ng.Ab=new f.Bp;b.ng.Ab.gi=d;this.JW();this.pa.data=z.ba.Lc(b.ng.swa());this.pa.N(w.ia.Qc,()=>this.hGa());this.pa.N(w.ia.xa,()=>this.iGa());this.pa.load(c)}hGa(){var c=z.ba.create(this.pa.response);c=this.cq(c);for(var d=[],g=0;g<c.length;g++){var k=c[g].find("CATALOG_NAME").text();d.push(k)}this.lc&&this.lc(d)}iGa(){e.Va("Error discovering catalogs",e.model.B.j.xa,e.ob.xa);this.lc&&this.lc([])}mBa(c,d,g,k){this.lc=k;b.ng.Ab=new f.Bp;
b.ng.Ab.gi=d;b.ng.Ab.De=g;this.JW();this.pa.data=z.ba.Lc(b.ng.xwa());this.pa.N(w.ia.Qc,()=>this.FGa());this.pa.N(w.ia.xa,()=>this.GGa());this.pa.load(c)}FGa(){var c=z.ba.create(this.pa.response);c=this.cq(c);for(var d=[],g=0;g<c.length;g++){var k=c[g].find("CUBE_NAME").text();d.push(k)}this.lc&&this.lc(d)}GGa(){e.Va("Error discovering cubes",e.model.B.j.xa,e.ob.xa);this.lc&&this.lc([])}vS(c,d,g,k,m){this.JW();this.pa.data=z.ba.Lc(b.ng.twa(d,g,k));this.pa.N(w.ia.Qc,()=>this.oGa(m));this.pa.N(w.ia.xa,
()=>this.pGa(m));this.pa.load(c)}oGa(c){null!=c&&c({complete:!0,response:this.pa.response})}pGa(c){null!=c&&c({complete:!1})}}b.u$=a})(f.mj||(f.mj={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(c,d=null){this.XZ=this.aL=this.iG="";null==d?this.iG=c:(this.aL=c,this.XZ=d)}set hash(c){}get hash(){return 0<this.iG.length?this.iG:u.lla.encode(this.aL+":"+this.XZ)}set bn(c){}get bn(){return this.iG&&0<this.iG.length||this.aL&&0<this.aL.length}static xb(c){var d=new a("");c.hasOwnProperty("hash")&&(d.iG=c.hash?c.hash:"");c.hasOwnProperty("username")&&(d.aL=c.username?c.username:"");c.hasOwnProperty("password")&&
(d.XZ=c.password?c.password:"");return d}}b.v$=a})(f.mj||(f.mj={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{Al(c){if(e.model.Za.R().z2(e.model.Za.qK)){const d=new e.model.jd(e.model.Za.qK,g=>{if(!e.v(g)&&!e.v(g.requestHeaders)){const k=this.la.tc||{};for(let m in g.requestHeaders)g.requestHeaders.hasOwnProperty(m)&&(k[m]=g.requestHeaders[m]);this.la.tc=k;this.tf.tc=k}c(!0)});e.model.Za.R().Ha(d)}else c(!1)}}b.sX=a})(f.Kp||(f.Kp={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends b.sX{constructor(c){super();this.wa=l.Ma.R();this.la=c;this.pa=new b.dla(c)}load(c,d,g,k){this.la=c;this.Cb=d;this.Re=k;this.Xa=g;this.tf=new b.yQ(this.la.sf,e.model.Ea.ca.I(e.model.Ea.ca.eW),!0,this.la.tc,this.la.withCredentials);this.efa=()=>this.BO();this.UCa()}UCa(){e.Ca(!0,e.model.B.j.IF);null!=this.tf&&this.tf.call("Handshaking",{componentVersion:e.Cg.Iq,acceleratorMinVersion:a.Jka},()=>this.efa(),c=>this.Rb(c),
c=>this.Al(c))}BO(){null!=this.Re&&(this.Re(),this.Re=null);this.fH=()=>this.Y3();this.B3()}B3(){null!=this.tf&&(e.Ca(!0,e.model.B.j.YJ),this.tf.call("DiscoverDimensions",{catalog:this.la.De,cubeUniqueName:this.la.wa,credentials:this.la.credentials&&this.la.credentials.bn?this.la.credentials.hash:null,customData:this.la.Rm,localeIdentifier:this.la.Hj,effectiveUserName:this.la.Aj,roles:this.la.Tk},(c,d)=>this.BV(c,d),c=>this.Rb(c),c=>this.Al(c)))}BV(c,d){if(null!=this.fH){null!=d&&0<d.sessionId&&(f.Bp.sessionId=
d.sessionId);for(d=0;d<c.length;d++){const k=c[d];var g=k.uniqueName;const m=this.la.mapping.La(g,"caption",k.caption),n=k.type;this.la.mapping.bI(g)&&(g=new f.O.gqa(g,m),g.type=n,g.JD=k.granularityNames,g.description=k.description,this.wa.O.mu(g))}this.fH()}}Y3(){this.jN=()=>this.JV();this.mV()}mV(){null!=this.tf&&(e.Ca(!0,e.model.B.j.rY),this.tf.call("DiscoverHierarchies",{catalog:this.la.De,cubeUniqueName:this.la.wa,credentials:this.la.credentials&&this.la.credentials.bn?this.la.credentials.hash:
null,sessionId:f.Bp.sessionId,customData:this.la.Rm,localeIdentifier:this.la.Hj,effectiveUserName:this.la.Aj,roles:this.la.Tk},c=>this.n4(c),c=>this.Rb(c),c=>this.Al(c)))}n4(c){if(null!=this.jN){for(var d=0;d<c.length;d++){const m=c[d];var g=m.dimensionUniqueName,k=m.uniqueName;const n=this.la.mapping.La(k,"caption",m.caption),p=m.type,t=m.allMemberName,r=m.defaultMemberName,v=m.displayFolder||"",y=m.isParentChild||!1,A=m.isRagged||!1;this.la.mapping.bI(k)&&(g=this.wa.O.$p(g),null!=g&&(k=this.la.Aa==
l.i.ra.Cc?new f.O.wY(k,n):new f.pq.O.A9(k,n),k.origin=1,k.type=l.i.Ic.nD(p),k.Lm=t,k.Js=r,k.Oc=v,k.Ts=y,k.tN=A,k.description=m.description,g.zi(k)))}this.jN()}}JV(){this.DN=()=>this.x4();this.FN()}FN(){null!=this.tf&&(e.Ca(!0,e.model.B.j.sY),this.tf.call("DiscoverLevels",{catalog:this.la.De,cubeUniqueName:this.la.wa,credentials:this.la.credentials&&this.la.credentials.bn?this.la.credentials.hash:null,sessionId:f.Bp.sessionId,customData:this.la.Rm,localeIdentifier:this.la.Hj,effectiveUserName:this.la.Aj,
roles:this.la.Tk},c=>this.w4(c),c=>this.Rb(c),c=>this.Al(c)))}w4(c){if(null!=this.DN){for(let n=0;n<c.length;n++){var d=c[n],g=d.hierarchyUniqueName,k=d.caption,m=d.type;const p=d.dbType,t=d.uniqueName,r=d.levelNumber,v=d.properties,y=this.wa.O.$p(d.dimensionUniqueName);if(null!=y&&(g=y.uh(g),null!=g&&(k=new f.O.iqa(t,k,r),k.type=e.v(m)?l.i.ib.$c:l.i.ib.nD(m,!e.v(p)&&0==m,p),k.description=d.description,g.Sh(k),y.zi(g),e.model.C.F.LI&&null!=v&&0<v.length)))for(d=0;d<v.length;d++)m=e.v(v[d].item)?v[d]:
v[d].item,m=new l.O.xX(m[0],m[1]),k.B_(m)}this.DN()}}x4(){this.GN=()=>this.PV();this.oV()}oV(){null!=this.tf&&(e.Ca(!0,e.model.B.j.jQ),this.tf.call("DiscoverMeasures",{catalog:this.la.De,cubeUniqueName:this.la.wa,credentials:this.la.credentials&&this.la.credentials.bn?this.la.credentials.hash:null,sessionId:f.Bp.sessionId,customData:this.la.Rm,localeIdentifier:this.la.Hj,effectiveUserName:this.la.Aj,roles:this.la.Tk},c=>this.C4(c),c=>this.Rb(c),c=>this.Al(c)))}C4(c){if(null!=this.GN){for(let g=0;g<
c.length;g++){const k=c[g],m=k.uniqueName;if(!this.la.mapping.bI(m))continue;var d=this.la.mapping.La(m,"caption",k.caption);const n="String"==typeof k.type?l.i.Ra.kAa(k.type):l.i.Ra.jb,p=k.groupCaption||k.groupName||"",t=k.displayFolder||"";d=new f.O.uB(m,d);d.type=n;d.Mg=p;d.Oc=t;d.Wc=this.la.mapping.La(m,"aggregations");d.description=k.description;this.wa.O.zk(d)}this.GN()}}PV(){this.la.Aa==l.i.ra.Cc?(this.wN=()=>this.t4(),this.nV()):this.Dr()}nV(){null!=this.tf&&(e.Ca(!0,e.model.B.j.r9),this.tf.call("DiscoverKpis",
{catalog:this.la.De,cubeUniqueName:this.la.wa,credentials:this.la.credentials&&this.la.credentials.bn?this.la.credentials.hash:null,sessionId:f.Bp.sessionId,customData:this.la.Rm,localeIdentifier:this.la.Hj,effectiveUserName:this.la.Aj,roles:this.la.Tk},c=>this.s4(c),c=>this.Rb(c),c=>this.Al(c)))}s4(c){if(null!=this.wN){for(let g=0;g<c.length;g++){const k=c[g];var d=k.uniqueName;const m=this.la.mapping.La(d,"caption",k.caption),n=k.value,p=k.status,t=k.goal,r=k.trend;d=new f.O.E9(d,m);d.value=n;d.status=
p;d.kx=t;d.gy=r;d.description=k.description;this.wa.O.x_(d,this.la.mapping)}this.wN()}}t4(){this.Dr()}xl(c,d){e.Ca(!0,e.model.B.j.zm,c.caption);this.Cb=d;this.Nk(c,null,g=>this.ek(g))}Nk(c,d,g){this.pa.hierarchy=c;this.pa.iD=this.wa.qa.lf||this.wa.qa.kf;this.pa.hT=this.wa.qa.hf||this.wa.qa.Xf;this.pa.children(c,d,g,this.Xa)}ek(c){if(null!=this.Cb){var d=c.yv;if(0<c.filter.Dl.length)c.Zi<c.fn?this.EN(c,c.filter.Dl,c.filter.yI,k=>this.ek(k)):(c.Fw(),this.ek(c));else if(0<d.length){var g=d.shift();0==
d.length&&c.dca();c.yv=d;d=c.Ib(g[1]);c.wz(d);this.Nk(c,d,k=>this.ek(k))}else c.Td=!0,this.Cb(c)}}EN(c,d,g,k){this.pa.hierarchy=c;this.pa.iD=this.wa.qa.lf||this.wa.qa.kf;this.pa.hT=this.wa.qa.hf||this.wa.qa.hf;this.pa.N_(c,d,g,k)}cA(){}Aq(c,d,g){this.pa.hierarchy=c;this.pa.iD=this.wa.qa.lf||this.wa.qa.kf;this.pa.hT=this.wa.qa.hf||this.wa.qa.Xf;this.pa.search(d,g)}BC(){return!0}cancel(){this.wN=this.GN=this.DN=this.jN=this.fH=this.efa=null;null!=this.tf&&this.tf.cancel();this.tf=null;null!=this.lm&&
this.lm.cancel();this.lm=null;null!=this.pa&&this.pa.cancel();this.Re=this.Xa=this.Cb=this.pa=null}Dr(){e.Ca(!1);null!=this.Cb&&this.Cb()}Rb(c){e.Ca(!1);let d=null;e.v(c)?(d=`Cannot connect to ${e.model.Tb.valid(this.la.sf)?this.la.sf:e.model.Tb.validate(this.la.sf)}`,e.Va(d,e.model.B.j.xa)):(d=e.ka(c.message)?e.model.B.j.kQ:c.message,"Unknown error."==d?e.Va(e.model.B.j.wpa,e.model.B.j.xa):"ERROR_SESSION_EXPIRED"==d?e.model.C.F.QW?e.Va(e.model.B.j.qY,e.model.B.j.mn,e.ob.mn,[e.model.B.j.lF,e.model.B.j.xm],
[()=>this.kA(),null]):this.kA():-1<d.indexOf("2.416")||-1<d.indexOf("2.400")?e.Va("Your current version of Flexmonster Pivot Table & Charts is not compatible with Flexmonster Accelerator. Please update both products to the latest available version.",e.model.B.j.xa):e.Va(d,e.model.B.j.xa));null!=this.Xa&&this.Xa(d)}kA(){e.model.Wa.R().m5()}}a.Jka="2.7.11";b.V6=a})(f.Kp||(f.Kp={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends b.sX{constructor(c){super();this.Cw=this.oI=0;this.ud="";this.state=l.Ap.GF;this.Kl=()=>this.et();this.Oj=()=>this.uq();this.IN=[];this.eA=[];this.HN=0;this.la=c;this.tf=new b.yQ(this.la.sf,e.model.Ea.ca.I(e.model.Ea.ca.eW),!0,this.la.tc,this.la.withCredentials)}reset(){this.ud="";this.Cw=this.HN=this.oI=0;this.eA=[];this.Xa=this.ov=this.XK=this.wK=this.Vb=this.f0=this.lc=null;this.state=""}search(c,d){this.reset();this.state=
l.Ap.GY;this.lc=d;this.ud=c.toLowerCase();this.load(()=>this.sE())}sE(){for(var c=[],d=0;d<this.eA.length;d++){var g=this.eA[d];g.Cf=!0;c.push(g.ordinal)}e.Ca(!1);this.lc(c)}children(c,d,g,k){this.reset();this.state=l.Ap.GF;this.lc=g;this.Xa=k;this.Vb=d;this.hierarchy=c;null==this.Vb||this.Vb.Cf?this.load(()=>this.ek()):g(this.hierarchy)}ek(){null!=this.Vb&&(this.Vb.Cf=!1);this.lc(this.hierarchy)}N_(c,d,g,k){this.reset();this.state=l.Ap.R6;this.lc=k;this.wK=d;this.ov=g;this.hierarchy=c;this.load(()=>
this.V3())}V3(){for(var c=[],d=0;d<this.eA.length;d++){var g=this.eA[d];g.Cf=!0;c.push(g.A)}this.ov?this.a6(c,this.lc):(this.hierarchy.Fw(),this.lc(this.hierarchy))}a6(c,d){this.reset();this.state=l.Ap.b$;this.lc=d;this.XK=c;this.load(()=>this.S4())}S4(){for(var c=this.eA,d=0;d<c.length;d++)this.hierarchy.za(c[d]).Cf=!0;this.hierarchy.Fw();this.lc(this.hierarchy)}load(c){this.f0=c;e.Ca(!0,e.model.B.j.zm);this.xl();this.timer=new u.Pt(500,1E4);this.timer.N(u.xf.Ol,this.Kl);this.timer.N(u.xf.Pl,this.Oj);
this.timer.start()}RC(){for(var c=this.hierarchy.lV,d=[],g=0;g<c.length;g++)d.push(this.hierarchy.A+".["+c.fa(g).A+"]");return 0<d.length?", "+d.join(","):""}xl(){if(null!=this.tf){var c=this.RC(this.hierarchy);this.tf.call("DiscoverMembers",{catalog:this.la.De,cubeUniqueName:this.la.wa,subquery:this.la.cf,hierarchyUniqueName:this.hierarchy.A,properties:c,memberUniqueName:this.Vb?this.Vb.A:"",allMemberName:this.hierarchy.Lm,hasAllMember:this.hierarchy.Xh,loadAll:this.hT,searchPhrase:this.ud,chunkIndex:this.Cw,
ascendants:null==this.wK?"":this.wK.join(",,"),siblings:null==this.XK?"":this.XK.join(",,"),activeLevel:null==this.hierarchy.zf?"":this.hierarchy.zf,credentials:this.la.credentials&&this.la.credentials.bn?this.la.credentials.hash:null,sessionId:f.Bp.sessionId,customData:this.la.Rm,localeIdentifier:this.la.Hj,effectiveUserName:this.la.Aj,roles:this.la.Tk},d=>this.Jj(d),d=>this.Rb(d),d=>this.Al(d));this.Cw++}}et(){if(null!=this.timer){var c=this.timer.Kw/2;2<c&&e.Ca(!0,e.model.B.j.zm,e.P.bind(e.model.B.j.Jt,
u.bc.format(c,new e.model.oc.W.se,!1,!1,1)))}}uq(){this.timer.Gl&&e.Va("Can't connect to data source!",e.model.B.j.xa)}yg(){this.timer&&this.timer.Gl&&(this.timer.stop(),this.timer.rb(u.xf.Ol,this.Kl),this.timer.rb(u.xf.Pl,this.Oj))}Jj(c){null!=this.tf&&(this.yg(),1==this.Cw&&(this.oI=c.count),1>this.hierarchy.fn&&(this.hierarchy.fn=c.all),this.xE(c.members,()=>this.sI()))}xE(c,d){if(e.v(c))d();else if(this.IN=c,0==this.IN.length)this.zV();else{for(c=this.hierarchy.Zi;!this.CJa(c);)c++;d()}}CJa(c){var d=
this.IN.shift();if(null!=d){var g=d.parentUniqueName,k=d.caption,m=d.uniqueName,n=d.ordinal,p=d.properties;var t=this.hierarchy.Ib(m);if(null==t&&(d=new l.O.be({A:m,caption:k,Ki:g,ordinal:n}),""===this.ud&&null==this.wK&&null==this.XK&&(d.nc=c),t=this.hierarchy.pc(d),null!=p&&0<p.length))for(g=0;g<p.length;g++)d=e.v(p[g].item)?p[g]:p[g].item,t.setProperty(d[0],d[1]);""!=this.ud||null!=this.wK||null!=this.XK?this.eA.push(t):t.nc=c;null!=t&&!t.dc&&1E3<this.hierarchy.fn&&!this.hT&&(t.Cf=!0);this.HN++}return 0>=
this.IN.length}sI(){var c=0==this.oI?100:Math.round(this.HN/this.oI*100);100<c&&(c=100);e.Ca(!0,e.model.B.j.zm,this.hierarchy.caption+" - "+c+"% ("+this.HN+" of "+this.oI+")");this.HN>=this.oI?this.zV():this.xl()}zV(){e.Ca(!1);this.yg();this.f0();this.IN=[];this.eA=[]}Rb(c){this.yg();e.Ca(!1);c=e.ka(c.message)?e.model.B.j.kQ:c.message;"ERROR_SESSION_EXPIRED"==c?e.model.C.F.QW?e.Va(e.model.B.j.qY,e.model.B.j.mn,e.ob.mn,[e.model.B.j.lF,e.model.B.j.xm],[()=>this.kA(),null]):this.kA():(e.Va(c,e.model.B.j.xa),
null!=this.Xa&&(this.Xa(c),this.Xa=null))}kA(){e.model.Wa.R().m5()}cI(){return!1}cancel(){null!=this.tf&&this.tf.cancel();this.tf=null;null!=this.timer&&this.yg();this.f0=this.Xa=this.lc=this.timer=null}}b.dla=a})(f.Kp||(f.Kp={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends b.sX{constructor(){super(...arguments);this.Pe=l.Ma.R();this.Mb=[];this.bd=[];this.Kl=()=>this.et();this.Oj=()=>this.uq()}load(c,d,g,k){e.Ca(!0,e.model.B.j.mg,e.P.bind(e.model.B.j.Jt,"0.5"));this.la=c;this.xk=d;this.Cb=g;this.Xa=k;this.$i=this.Cw=0;this.Wf=this.Pe.qa.Hr;this.tf=new b.yQ(this.la.sf,e.model.Ea.ca.I(e.model.Ea.ca.eW),!0,this.la.tc,this.la.withCredentials);this.requestId=e.P.zM();this.Ax();this.timer=new u.Pt(500,
1E4);this.timer.N(u.xf.Ol,this.Kl);this.timer.N(u.xf.Pl,this.Oj);this.timer.start()}Ax(){if(null!=this.tf){for(var c=[],d=this.Pe.qa.Hr,g=0;g<d.length;g++)c.push(d[g].A);this.tf.call("Execute",{catalog:this.la.De,cubeUniqueName:this.la.wa,subquery:this.la.cf,queryString:this.xk.body,columns:this.Pe.qa.Fb.Pc(!0),rows:this.Pe.qa.wb.Pc(!0),measures:c,chunkIndex:this.Cw,credentials:this.la.credentials&&this.la.credentials.bn?this.la.credentials.hash:null,sessionId:f.Bp.sessionId,customData:this.la.Rm,
localeIdentifier:this.la.Hj,effectiveUserName:this.la.Aj,roles:this.la.Tk,expandAll:this.xk.type==l.i.Md.to&&(this.Pe.qa.lf||this.Pe.qa.kf),formatted:e.model.C.F.co,requestId:this.requestId},k=>this.rq(k),k=>this.Rb(k),k=>this.Al(k));this.Cw++}}et(){null!=this.timer&&e.Ca(!0,e.model.B.j.mg,e.P.bind(e.model.B.j.Jt,u.bc.format(this.timer.Kw/2,new e.model.oc.W.se,!1,!1,1)))}uq(){this.timer.Gl&&e.Va("Can't connect to data source!",e.model.B.j.xa)}yg(){this.timer&&this.timer.Gl&&(this.timer.stop(),this.timer.rb(u.xf.Ol,
this.Kl),this.timer.rb(u.xf.Pl,this.Oj))}cd(c,d,g,k,m,n){e.Ca(!0,e.model.B.j.mg,e.P.bind(e.model.B.j.Jt,"0.5"));this.la=c;this.xk=d;this.Cb=n;this.Wf=this.Pe.qa.Hr;this.tf=new b.yQ(this.la.sf,e.model.Ea.ca.I(e.model.Ea.ca.eW),!0,this.la.tc,this.la.withCredentials);c=this.yBa(this.Pe.qa,g,k);m={catalog:this.la.De,cubeUniqueName:this.la.wa,subquery:this.la.cf,measureUniqueName:m.A,members:c,credentials:this.la.credentials&&this.la.credentials.bn?this.la.credentials.hash:null,sessionId:f.Bp.sessionId,
customData:this.la.Rm,localeIdentifier:this.la.Hj,effectiveUserName:this.la.Aj,roles:this.la.Tk};this.la.Aa==l.i.ra.Cc&&(m.drillThroughMaxRows=e.model.C.F.kH);this.tf.call("DrillThrough",m,p=>this.SGa(p),p=>this.Rb(p),p=>this.Al(p));this.timer=new u.Pt(500,1E4);this.timer.N(u.xf.Ol,this.Kl);this.timer.N(u.xf.Pl,this.Oj);this.timer.start()}yBa(c,d,g){for(var k=[],m,n,p=0;p<c.Fb.length;p++){var t=c.Fb.fa(p);m=[];n=!1;if(!t.We){if(null!=g[p]){var r=t.za(g[p]);e.v(r)||e.ka(r.A)||(m.push(r.A),n=!0)}if(t.filter.Gh&&
!n)for(n=0;n<t.eb.length;n++)r=t.za(t.eb[n]),e.v(r)||e.ka(r.A)||-1==m.indexOf(r.A)&&m.push(r.A);0<m.length&&(this.la.Aa==l.i.ra.Pd?k.push(m.join(",")):k.push("{"+m.join(",")+"}"))}}for(p=0;p<c.wb.length;p++)if(t=c.wb.fa(p),n=!1,m=[],!t.We){null!=d[p]&&(r=t.za(d[p]),e.v(r)||e.ka(r.A)||(m.push(r.A),n=!0));if(t.filter.Gh&&!n)for(n=0;n<t.eb.length;n++)r=t.za(t.eb[n]),e.v(r)||e.ka(r.A)||-1==m.indexOf(r.A)&&m.push(r.A);0<m.length&&(this.la.Aa==l.i.ra.Pd?k.push(m.join(",")):k.push("{"+m.join(",")+"}"))}for(p=
0;p<c.qb.length;p++){t=c.qb.fa(p);m=[];if(t.filter.Gh)for(n=0;n<t.eb.length;n++)r=t.za(t.eb[n]),e.v(r)||e.ka(r.A)||-1==m.indexOf(r.A)&&m.push(r.A);0<m.length&&(this.la.Aa==l.i.ra.Pd?k.push(m.join(",")):k.push("{"+m.join(",")+"}"))}return k}SGa(c){if(null!=this.tf){c=c.cellData;if(null!=c&&0<c.length&&null!=c[0].item)for(var d=0;d<c.length;d++)c[d]=c[d].item;this.yg();e.Ca(!1);this.Cb(c)}}cancel(){this.la=this.Pe=null;this.Mb=[];this.bd=[];this.Xa=this.Cb=this.xk=null;null!=this.tf&&this.tf.cancel();
this.tf=null;this.yg();this.timer=null}rq(c){null!=this.tf&&(c.isComplete||this.Ax(),this.yg(),this.la.Aa==l.i.ra.Pd?(this.WV(c.columnsList?JSON.parse(c.columnsList):[]),this.ZV(c.rowsList?JSON.parse(c.rowsList):[]),this.Gha(c.cellData?JSON.parse(c.cellData):[],c.cellDataFmt?JSON.parse(c.cellDataFmt):[])):(this.WV(c.columnsList),this.ZV(c.rowsList),this.Gha(c.cellData,c.cellDataFmt)),this.$i+=this.Mb.length*this.bd.length,c.isComplete?(e.Ca(!1),!1===e.model.C.F.Ux&&0==this.Pe.ta.Kz()?(e.Va(e.model.B.j.zp,
e.model.B.j.xa,e.ob.nk),this.Xa(e.model.B.j.zp)):this.Cb()):(c=null!=c.percent?Math.round(1E4*c.percent)/100:NaN,e.Ca(!0,e.model.B.j.mg,this.$i+" items "+(isNaN(c)||0>=c?"":"("+(100<c?100:c)+"%)"))))}WV(c){this.bd=c;if(e.v(c)||0==this.bd.length)this.bd=[[[0,0]]]}ZV(c){this.Mb=[[]];e.v(c)?this.Mb=[[]]:(this.Mb=c,0==this.Mb.length&&(this.Mb=[[]]))}ODa(c,d){if(c.length!=d.length)return!1;for(var g=0;g<c.length;g++)if(1<c[g].length&&c[g][1]!=d[g][1])return!1;return!0}Gha(c,d=null){e.v(c)&&(c=[]);var g=
this.Mb.length,k=this.bd.length;var m=this.Pe.qa.Hr;for(var n=[],p=0;p<m.length;p++)n[p]=m[p].type;var t=l.SY.R();this.Pe.qa.rows.fa(1);for(p=0;p<g;p++)if(void 0!=c[p]&&null!=this.Mb[p]){m=[];for(var r=[],v,y,A=!1,C=0;C<k;C++)null!=this.bd[C]&&(v=r,r=this.bd[C].slice(0),y=r.pop()[0],this.ODa(r,v)||(A&&this.Pe.ta.AU(this.Mb[p],v,m,this.xk.jg,this.xk.uw,this.xk.type),A=!1,m=[]),void 0!=c[p][C]&&(A=!0),e.model.C.F.co&&null!=d&&this.Wf[y].$==l.i.ea.NONE?m[y]=l.Kt.R().BA(d[p][C],c[p][C]):n[y]==l.i.Ra.jb?
m[y]=c[p][C]:n[y]==l.i.Ra.Ua&&(v=c[p][C]?t.oi(c[p][C].toString()):0,m[y]=v));A&&this.Pe.ta.AU(this.Mb[p],r,m,this.xk.jg,this.xk.uw,this.xk.type)}}Rb(c){this.yg();e.Ca(!1);c=e.ka(c.message)?e.model.B.j.kQ:c.message;"ERROR_SESSION_EXPIRED"==c?e.model.C.F.QW?e.Va(e.model.B.j.qY,e.model.B.j.mn,e.ob.mn,[e.model.B.j.lF,e.model.B.j.xm],[()=>this.kA(),null]):this.kA():(e.Va(c,e.model.B.j.xa),this.Xa&&this.Xa(c))}kA(){e.model.Wa.R().m5()}}b.U6=a})(f.Kp||(f.Kp={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external=
{}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(c,d=null,g=!0,k=null,m=!1){this.zv=null;this.withCredentials=!1;this.tc=null;this.url=c;this.url.lastIndexOf("/")==this.url.length-1&&(this.url=this.url.substr(0,this.url.length-1));g&&0>this.url.indexOf("/FlexmonsterProxy")&&this.url.lastIndexOf(":")>this.url.lastIndexOf("/")&&(this.url+="/FlexmonsterProxy");this.tc=k;this.zv=d;this.withCredentials=m}call(c,d=null,g=null,k=null,m=null){this.action=c;this.Cb=g;this.Xa=
k;this.KO=m;this.Ud=d;u.uo.load("lib/sha1.min.js",()=>{this.xhr=new XMLHttpRequest;this.xhr.open("POST",this.url+"/"+c,!0);this.xhr.withCredentials=this.withCredentials;this.xhr.onreadystatechange=n=>this.tv(n);this.xhr.setRequestHeader("Content-type","application/json; charset=UTF-8");this.xhr.setRequestHeader("Accept","application/json");this.tL(this.tc);this.xhr.send(this.YLa(d))})}tL(c){if(!e.v(c))for(var d in c)c.hasOwnProperty(d)&&this.xhr.setRequestHeader(d,c[d])}YLa(c){if(null!=this.zv){delete c.signature;
var d=this.getHash(c);d=d.replace(/[^a-zA-Z0-9]/gm,"");var g=new jsSHA("SHA-1","TEXT");g.setHMACKey(this.zv,"TEXT");g.update(d);c.signature=g.getHMAC("B64")}return JSON.stringify(c)}getHash(c){var d=[];for(g in c)d.push(g);d.sort();var g="";for(var k=0;k<d.length;k++){var m=c[d[k]];e.v(m)||"string"==typeof m&&e.ka(m)||Array.isArray(m)&&0==m.length||("sessionId"!=d[k]||0!=m)&&"customData"!=d[k]&&"localeIdentifier"!=d[k]&&"effectiveUserName"!=d[k]&&(g+=d[k]+":"+m)}return g.toLowerCase()}tv(){if(null!=
this.xhr&&4===this.xhr.readyState){if(200===this.xhr.status)return this.SI();if(401===this.xhr.status&&e.Pg(this.KO))return this.KO(c=>{c?this.call(this.action,this.Ud,this.Cb,this.Xa):this.Xa({message:this.xhr.statusText})});this.Xa({message:this.xhr.statusText})}}SI(){var c=JSON.parse(this.xhr.response);c&&null==c.error?null!=this.Cb&&this.Cb(c.data,c):this.Xa&&c&&this.Xa(c.error)}cancel(){null!=this.xhr&&(this.xhr.onerror=null,this.xhr.onreadystatechange=null,this.xhr.abort());this.zv=this.url=
this.Cb=this.xhr=this.tc=null}}b.yQ=a})(f.Kp||(f.Kp={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.mj.x${constructor(c){super(c)}RC(){for(var c=this.hierarchy.lV,d=[],g=0;g<c.length;g++)d.push(this.hierarchy.A+".["+c.fa(g).A+"]");return 0<d.length?", "+d.join(","):""}k0(){var c=this.RC(this.hierarchy),d=this.Ko();return null==this.Vb?this.cI()?e.P.bind("SELECT DISTINCT({{0}.allmembers}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME{1} on columns FROM {2}",this.hierarchy.A,c,d):this.hierarchy.Xh?e.P.bind("SELECT Subset(DISTINCT({{0}.levels(0).allmembers, {0}.levels(1).allmembers}), {3}, {4}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME{2} on 0 FROM {1}",
this.hierarchy.A,d,c,this.zl.toString(),this.hr.toString()):e.P.bind("SELECT Subset(DISTINCT({{0}.levels(0).allmembers}), {3}, {4}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME{2} on 0 FROM {1}",this.hierarchy.A,d,c,this.zl.toString(),this.hr.toString()):e.P.bind("SELECT Subset({0}.children, {3}, {4}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME {2} on columns FROM {1}",this.Vb.A,d,c,this.zl.toString(),this.hr.toString(),this.hierarchy.A)}XV(c,d){var g=c.find("PARENT_UNIQUE_NAME").text();var k=c.find("Caption").text(),
m=c.find("UName").text(),n=parseInt(c.find("MEMBER_ORDINAL").text());var p=this.hierarchy.Ib(m);if(null==p){p=this.hierarchy.pc(new l.O.be({A:m,caption:k,Ki:g}));if(p.level&&0<p.level.Ye.length)for(k=0;k<p.level.Ye.length;k++){g=p.level.Ye.fa(k);p.setProperty(g.A,c.find(g.QO).text());m=c.getChildren();for(var t=0;t<m.length;t++){var r=m[t];r.nodeName.toLowerCase()==g.QO.toLowerCase()&&(r=r.text(),p.setProperty(g.A,r))}}p.nc=isNaN(n)?d:n}else this.state==l.Ap.GF&&(p.nc=isNaN(n)?d:n);null==p||p.dc||
(p.Cf=!0);p.parent&&!p.parent.dc&&(p.parent.Cf=!1);return p.ordinal}}b.cra=a})(f.XE||(f.XE={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.mj.y${constructor(c){super(c);this.lm=new b.cra(c)}BV(){var c=z.ba.create(this.bm.response);c=this.cq(c);if(0<c.length){this.pt();for(var d=0;d<c.length;d++)this.Iha(c[d]);this.kFa();this.fH()}else c=e.model.B.j.HF,e.Va(c,"",e.ob.xa),e.Ca(!1),this.Xa(c)}kFa(){this.eF=new z.tk;this.eF=this.$h(this.eF);this.eF.data=z.ba.Lc(f.mj.ng.Xwa());this.eF.N(w.ia.Qc,()=>this.VIa());this.eF.N(w.ia.xa,c=>this.Rb(c));this.eF.load(this.ga.sf)}VIa(){var c=
z.ba.create(this.eF.response);c=this.cq(c);this.ga.version=parseFloat(c.find("Value").text().substr(0,5))}Mha(c){var d=c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("HIERARCHY_UNIQUE_NAME").text(),k=c.find("LEVEL_CAPTION").text(),m=c.find("LEVEL_UNIQUE_NAME").text(),n=parseInt(c.find("LEVEL_NUMBER").text());c=parseInt(c.find("LEVEL_TYPE").text());d=this.wa.O.$p(d);null!=d&&(g=d.uh(g),null!=g&&(k=new l.O.Dv(m,k,n),k.type=l.i.ib.nD(c),g.Sh(k),d.zi(g)))}Z4(c){var d=c.find("DIMENSION_UNIQUE_NAME").text(),
g=c.find("HIERARCHY_UNIQUE_NAME").text(),k=c.find("LEVEL_UNIQUE_NAME").text(),m=c.find("PROPERTY_CAPTION").text();c.find("PROPERTY_TYPE").text();c=c.find("PROPERTY_NAME").text();var n=(g+".["+c+"]").replace(/\[/g,"_x005B_").replace(/\]/g,"_x005D_").replace(/\s/g,"_x0020_");"NAME"!=c&&"KEY0"!=c&&"KEY1"!=c&&"KEY2"!=c&&"TRAN0"!=c&&"TRAN1"!=c&&"TRAN2"!=c&&"MEMBER_VALUE"!=c&&"CUSTOM_ROLLUP"!=c&&"UNARY_OPERATOR"!=c&&(d=this.wa.O.$p(d),null!=d&&(g=d.uh(g),null!=g&&(k=g.Ou(k),null!=k&&(m=new l.O.xX(c,m,n),
k.B_(m)))))}}b.dra=a})(f.XE||(f.XE={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(c,d){this.slice=c;this.ga=d}get cF(){return this.ga&&this.ga.Nm&&!e.model.C.F.L2?!0:!1}IT(c){return c.Ts?"members":"allmembers"}HT(c){return c.Xh?c.Lm:e.P.bind("{0}.levels(0).{1}",c.A,this.IT(c))}qU(){return 0<this.slice.td(l.i.ha.Oa).ld.length}rU(){return 0<this.slice.td(l.i.ha.Ia).ld.length}Lo(){const c=[],d=this.slice.Hr;for(var g=0;g<d.length;g++)c.push(d[g].A);return"{"+c.join(", ")+"}"}PC(){var c=this.Lo();
if(0<this.slice.Fb.length){var d=this.KL(this.slice.Fb),g="";this.qU()&&(g=this.gz(this.slice.td(l.i.ha.Oa).ld,this.slice.Fb));return"Crossjoin("+(0<g.length?"Union("+d+", "+g+")":d)+", "+c+")"}return c}SC(){if(0<this.slice.wb.length){var c=this.KL(this.slice.wb),d="";this.rU()&&(d=this.gz(this.slice.td(l.i.ha.Ia).ld,this.slice.wb));return 0<d.length?"Union("+c+", "+d+")":c}return""}KL(c){for(var d=[],g=0;g<c.length;g++){var k=c.fa(g);k=this.j0(k,this.slice.lf||this.slice.kf||0==g,this.slice.hf||
this.slice.Xf);0<k.length&&d.push(k)}if(1<d.length){c=this.Lo();k=d[0];for(g=1;g<d.length;g++)k=e.model.C.F.L2?e.P.bind("Crossjoin({0}, {1})",k,d[g]):e.P.bind("NonEmpty(Crossjoin({0}, {1}), {2})",k,d[g],c);return k}return d[0]}j0(c,d,g){var k=this.HT(c);if(g)d="Hierarchize({"+c.A+"."+this.IT(c)+"})";else if(d)for(d=null!=c.ic?"Hierarchize({Descendants({"+c.A+".levels(0)."+this.IT(c)+"}, "+c.ic.A+", SELF_AND_BEFORE)})":c.Xh?"Hierarchize({DrilldownLevel({"+k+"})})":"{{"+c.Km()+","+k+"}}",g=1;g<c.ua.length;g++)k=
c.ua.fa(g),k=c.gM(k),0!=k.length&&(k=c.vr(k).join(","),d=10.5<this.ga.version?"DrilldownMember({{"+d+"}}, {"+k+"},,INCLUDE_CALC_MEMBERS)":"DrilldownMember({{"+d+"}}, {"+k+"})");else{if(c.Xh)return k;d="{{"+c.Km()+","+k+"}}"}return d}SW(c){return c=c.replace(/[\]|\[]/g,"")}Sp(c,d,g){for(var k=[],m,n=0;n<d.length;n++){var p=d.fa(n);if(n==c.length-1)m=p.za(c[n]),m.dc?(this.j0(p,!0,!1),k.push(this.j0(p,!0,!1))):void 0!==g&&null!=p.Ou(g)?k.push("Descendants("+m.A+", "+g+", SELF_AND_BEFORE)"):m.eh?k.push(m.A+
".CHILDREN"):k.push(m.A);else if(n<c.length){m=p.za(c[n]);if(null==m)return"";p=p.vr(m.children);m=m.fh?"{"+p.join(",")+"}":m.A;k.push(m)}else k.push(this.HT(p))}return 1<k.length?"Crossjoin({"+k.join("}, {")+"})":k[0]}gz(c,d){for(var g,k=0;k<c.length;k++){var m=c[k].slice(1);m.push(0);m=this.Sp(m,d);g=g&&!e.ka(m)?e.P.bind("Union({0}, {1})",m,g):m}return g}V0(c,d){return 0<this.slice.wb.length?this.Sp(c,this.slice.wb,d):""}U0(c,d){var g=this.Lo();return 0<this.slice.Fb.length?"Crossjoin("+this.Sp(c,
this.slice.Fb,d)+", "+g+")":g}h1(c){var d=this.Lo();return 0<this.slice.Fb.length?(c=c.slice(0),c.push(0),"Crossjoin("+this.Sp(c,this.slice.Fb)+", "+d+")"):d}l1(c){return 0<this.slice.wb.length?(c=c.slice(0),c.push(0),this.Sp(c,this.slice.wb)):""}zwa(c,d){0<=l.i.cc.zy.indexOf(d.va)&&(d=d.MS(c.getTimezoneOffset()));if(d.va==l.i.cc.EQUAL){var g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue>=CDate('{1}') AND {0}.CurrentMember.MemberValue<CDate('{2}')))";var k=d.value.clone().Ll();var m=k.clone().s_(1).Ll()}d.va==
l.i.cc.Tf&&(g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue<CDate('{1}') OR {0}.CurrentMember.MemberValue>CDate('{2}')))",k=d.value.clone().Ll(),m=k.clone());d.va==l.i.cc.iF&&(k=d.value.clone().Ll(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue<CDate('{1}')))");d.va==l.i.cc.jF&&(k=d.value.clone().Ll(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue<=CDate('{1}')))");d.va==l.i.cc.fF&&(k=d.value.clone().Ll(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue>CDate('{1}')))");
d.va==l.i.cc.gF&&(k=d.value.clone().Ll(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue>=CDate('{1}')))");d.va==l.i.cc.mh&&(k=d.value[0].clone().Ll(),m=d.value[1].clone().ay(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue>=CDate('{1}') AND {0}.CurrentMember.MemberValue<=CDate('{2}')))");d.va==l.i.cc.Tg&&(k=d.value[0].clone().Ll(),m=d.value[1].clone().ay(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue<CDate('{1}') OR {0}.CurrentMember.MemberValue>CDate('{2}')))");
d=this.slice.Hr[0].Mg;let n;this.ga.hy&&(n=c.Ci.JD[d]);e.ka(n)&&(n=c.A);g=e.P.bind(g,n,k.format("yyyy-MM-dd"),m?m.format("yyyy-MM-dd"):"",c.Xh?1:0);return[g]}Mwa(c,d){var g,k=d.value,m=k.length;d.va==l.i.Eb.EQUAL&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption='{2}'))");d.va==l.i.Eb.Tf&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption<>'{2}'))");d.va==l.i.Eb.kF&&(g="Filter({0}.levels({1}), (Left({0}.CurrentMember.member_caption,{3})='{2}'))");d.va==l.i.Eb.rB&&(g="Filter({0}.levels({1}), (Left({0}.CurrentMember.member_caption,{3})<>'{2}'))");
d.va==l.i.Eb.eB&&(g="Filter({0}.levels({1}), (Right({0}.CurrentMember.member_caption,{3})='{2}'))");d.va==l.i.Eb.tB&&(g="Filter({0}.levels({1}), (Right({0}.CurrentMember.member_caption,{3})<>'{2}'))");d.va==l.i.Eb.ho&&(g="Filter({0}.levels({1}), (InStr(1, {0}.CurrentMember.member_caption,'{2}')>0))");d.va==l.i.Eb.sB&&(g="Filter({0}.levels({1}), (InStr(1, {0}.CurrentMember.member_caption,'{2}')=0))");d.va==l.i.Eb.GREATER&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption>'{2}'))");d.va==
l.i.Eb.dl&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption>='{2}'))");d.va==l.i.Eb.LESS&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption<'{2}'))");d.va==l.i.Eb.gl&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption<='{2}'))");if(d.va==l.i.Eb.mh){g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption>='{2}'  AND {0}.CurrentMember.member_caption<='{4}'))";k=d.value[0];var n=d.value[1]}d.va==l.i.Eb.Tg&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption<='{2}'  OR {0}.CurrentMember.member_caption>='{4}'))",
k=d.value[0],n=d.value[1]);g=e.P.bind(g,c.A,c.Xh?1:0,k,m,n);return[g]}Rp(c){for(var d=[],g="",k=0;k<c.length;k++){var m=c.fa(k),n=[];m.filter.Gh&&(n=m.vr(m.eb));m.filter.Pz&&(n=this.zwa(m,m.filter.query));m.filter.mx&&(n=this.Mwa(m,m.filter.query));if(!m.Xh){var p=m.Km();this.nd.Bb(p)||this.nd.Ta(p,this.HT(m))}0<n.length&&d.push("{"+n.join(",")+"}")}0<d.length&&(g="("+d.join(", ")+")");return g}Wwa(c,d,g){for(var k=[],m=c.indexOf(d.A),n=0;n<m;n++){var p=c.fa(n);k.push("Hierarchize("+p.A+".levels("+
(p.Xh?1:0)+")."+this.IT(d)+")")}c="Hierarchize({"+this.HT(d)+"})";0<k.length&&(c="CrossJoin("+k.join(",")+", "+c+")");return e.P.bind("( SELECT Generate({0} AS {1}, {7}( Filter( Except(  DrilldownLevel({1}.Current AS {2}, , {5}{8} ), {2}), Not IsEmpty({3})), {4}, {3})) ON COLUMNS FROM {6})",c,"["+d.caption+"___0___0]","["+d.caption+"_1_1_1]",d.filter.measure.A,d.filter.query.value,""+m,g,d.filter.query.va==l.i.Wb.Rj?"TopCount":"BottomCount",", INCLUDE_CALC_MEMBERS")}fca(c,d){for(var g=0;g<c.length;g++){var k=
c.fa(g);k.filter.ji&&this.slice.Wf.find(m=>m.A===k.filter.measure.A)&&(d=this.Wwa(c,k,d))}return d}TC(){if(0==this.nd.length)return"";for(var c="with",d=0;d<this.nd.length;d++)c+=e.P.bind(" member {0} as IIF(IsError(Aggregate({{1}})), null, Aggregate({{1}}))",this.BE(this.nd.Uh(d)),this.BE(this.nd.fa(d)));return c}Ko(c=!0){var d=e.ka(this.ga.cf)?"["+this.ga.wa+"]":"("+this.ga.cf+")";var g=this.Rp(this.slice.Fb),k=this.Rp(this.slice.wb),m="";let n="";if(0!==this.slice.qb.length)for(let t=0;t<this.slice.qb.length;t++){const r=
this.slice.qb.fa(t);if(r.filter&&r.filter.Gh){var p=r.filter.Hi();1==p.length&&c?n=0===n.length?` WHERE (${r.b2(p[0])})`:n.substring(0,n.length-1)+`, ${r.b2(p[0])})`:1<p.length&&c&&(n=0===n.length?` WHERE (${r.A+".CurrentMember"})`:n.substring(0,n.length-1)+`, ${r.A+".CurrentMember"})`)}}0<this.slice.qb.length&&(m=this.Rp(this.slice.qb));0==g.length&&0==k.length&&0==m.length?c=d:(0<g.length&&(g+=" ON COLUMNS"),0<k.length&&(0<g.length?k=", "+k+" ON ROWS":(g=k+" ON COLUMNS",k="")),0<m.length&&(m="SELECT "+
m+" ON COLUMNS FROM "+d),0<g.length||0<k.length?(c="SELECT "+g+k+" FROM ",c=0<m.length?c+("("+m+")"):c+d):c=m,c="("+c+")");c=this.fca(this.slice.wb,c);c=this.fca(this.slice.Fb,c);0<n.length&&(c+=n);return c}BE(c){-1<c.indexOf("'")&&(c=c.replace(RegExp("'","g"),"''"));return c}expand(c,d){this.nd=new e.ub;c==l.i.ha.Ia?(c=this.PC(),d=this.l1(d)):(c=this.h1(d),d=this.SC());var g=this.Ko();c="NON EMPTY "+c+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS";d=this.cF?
0<d.length?", NON EMPTY _ROWS_TOKEN_START_"+d+"_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":0<d.length?", NON EMPTY "+d+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";var k=this.TC();return e.P.bind("{4} Select {0} {1} FROM {2} CELL PROPERTIES {3}",c,d,g,this.i0(),k)}Ee(c,d,g,k){this.nd=new e.ub;c==l.i.ha.Ia?(c=this.PC(),d=this.V0(d,k)):(c=this.U0(d,k),d=this.SC());k=this.Ko();c="NON EMPTY "+c+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS";
d=this.cF?0<d.length?", NON EMPTY _ROWS_TOKEN_START_"+d+"_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":0<d.length?", NON EMPTY "+d+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";g=this.TC();return e.P.bind("{4} Select {0} {1} FROM {2} CELL PROPERTIES {3}",c,d,k,this.i0(),g)}select(){this.nd=new e.ub;var c=this.PC(),d=this.SC(),g=this.Ko();c="NON EMPTY "+c+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS";
d=this.cF?0<d.length?", NON EMPTY _ROWS_TOKEN_START_"+d+"_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":0<d.length?", NON EMPTY "+d+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";var k=this.TC();return e.P.bind("{4} Select {0} {1} FROM {2} CELL PROPERTIES {3}",c,d,g,this.i0(),k)}i0(){return 0==e.model.C.F.co||this.ga.Aa!=l.i.ra.Cc?"VALUE":"VALUE, FORMATTED_VALUE"}cd(c,d,g){this.nd=new e.ub;for(var k=
"DRILLTHROUGH MAXROWS "+e.model.C.F.kH+" SELECT {0} ON 0 FROM {1} {2}",m,n=[],p=0;p<this.slice.Fb.length;p++)m=this.slice.Fb.fa(p),m.We||null==d[p]||(m=m.za(d[p]),null!=m&&n.push(m.A));for(p=0;p<this.slice.wb.length;p++)m=this.slice.wb.fa(p),m.We||null==c[p]||(m=m.za(c[p]),null!=m&&n.push(m.A));c=0<n.length?"where ("+n.join(",")+")":"";d=this.Ko(!1);return e.P.bind(k,g.A,d,c)}}b.mY=a})(f.XE||(f.XE={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.mj.x${constructor(c){super(c);this.AI=[]}n0(){var c=e.P.bind("SET [SearchMembersSet] AS 'FILTER(EXCEPT({0}.members, {{1}}), (INSTR(lcase({0}.CurrentMember.Caption), {2}) > 0))'",this.hierarchy.A,this.hierarchy.Js,'"'+this.ud+'"');var d=e.P.bind("SET [SearchParentsSet] AS 'EXCEPT(GENERATE([SearchMembersSet], ASCENDANTS([SearchMembersSet].Current)), {{0}})'",this.hierarchy.Js);return c+"\n"+d+"\nSET [SearchSet] AS 'HIERARCHIZE(DISTINCT({[SearchMembersSet], [SearchParentsSet]}))'"}k0(){var c=
this.hierarchy.lV,d=[],g=[];if(0<c.length)for(var k=0;k<c.length;k++){var m=c.fa(k).A;g.push("[Measures].["+m+"]");d.push(e.P.bind('member [Measures].[{0}] as {1}.CurrentMember.Properties("{0}")',m,this.hierarchy.A))}c=this.Ko();0<g.length?(g=0<g.length?g.join(", "):"",d=0<d.length?"with "+d.join(" "):"",d=null==this.Vb?this.cI()?e.P.bind("{3} SELECT crossjoin(DISTINCT({{0}.allmembers}), {{2}}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.hierarchy.A,c,g,d):this.hierarchy.Xh?
e.P.bind("{5} SELECT crossjoin(Subset(DISTINCT({{0}.levels(0).allmembers, {0}.levels(1).allmembers}), {2}, {3}), {{4}}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.hierarchy.A,c,this.zl.toString(),this.hr.toString(),g,d):e.P.bind("{5} SELECT crossjoin(Subset(DISTINCT({{0}.levels(0).allmembers}), {2}, {3}), {{4}}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.hierarchy.A,c,this.zl.toString(),this.hr.toString(),g,d):e.P.bind("{5} SELECT crossjoin(Subset({0}.children, {2}, {3}), {{4}}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",
this.Vb.A,c,this.zl.toString(),this.hr.toString(),g,d)):d=null==this.Vb?this.cI()?e.P.bind("SELECT DISTINCT({{0}.allmembers}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.hierarchy.A,c):this.hierarchy.Xh?e.P.bind("SELECT Subset(DISTINCT({{0}.levels(0).allmembers, {0}.levels(1).allmembers}), {2}, {3}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.hierarchy.A,c,this.zl.toString(),this.hr.toString()):e.P.bind("SELECT Subset(DISTINCT({{0}.levels(0).allmembers}), {2}, {3}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",
this.hierarchy.A,c,this.zl.toString(),this.hr.toString()):e.P.bind("SELECT Subset({0}.children, {2}, {3}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.Vb.A,c,this.zl.toString(),this.hr.toString());return d}xE(c){var d=c.find("root");if(0<d.find("Fault").length)e.Va(z.ba.Lc(d.find("Fault faultstring")),"Query error!",e.ob.xa);else{this.AI=[];c=[];for(var g=d.find('Axes Axis[name="Axis0"] Tuples Tuple Member'),k=this.hierarchy.Zi,m=0;m<g.length;m++)c.push(this.XV(g[m],m+k));d=d.find("CellData Cell");
for(m=0;m<d.length;m++)if(k=d[m],g=parseInt(k.attr("CellOrdinal")),k=k.find("Value").text(),0>k.indexOf("MondrianEvaluationException")&&!e.v(this.AI)&&!e.v(this.AI[g])){var n=this.AI[g][1];g=this.hierarchy.Ib(this.AI[g][0]);null!=g&&g.setProperty(n,k)}return c}}XV(c,d){var g=c.find("PARENT_UNIQUE_NAME").text();var k=c.find("LName").text();var m=c.find("Caption").text(),n=c.find("UName").text();c=parseInt(c.find("MEMBER_ORDINAL").text());if("[Measures].[MeasuresLevel]"==k)null!=this.tga&&this.AI.push([this.tga.A,
m]);else return k=this.hierarchy.Ib(n),null==k?(k=this.hierarchy.pc(new l.O.be({A:n,caption:m,Ki:g})),k.nc=isNaN(c)?d:c):this.state==l.Ap.GF&&(k.nc=isNaN(c)?d:c),this.tga=k,null==k||k.dc||(k.Cf=!0),k.parent&&!k.parent.dc&&(k.parent.Cf=!1),k.ordinal}}b.Xpa=a})(f.pq||(f.pq={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.mj.y${constructor(c){super(c);this.lm=new b.Xpa(c)}nV(){e.Ca(!1);null!=this.Cb&&this.Cb()}Z4(c){var d=c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("HIERARCHY_UNIQUE_NAME").text(),k=c.find("LEVEL_UNIQUE_NAME").text(),m=c.find("PROPERTY_CAPTION").text();c.find("PROPERTY_TYPE").text();c=c.find("PROPERTY_NAME").text();d=this.wa.O.$p(d);null!=d&&(g=d.uh(g),null!=g&&(k=g.Ou(k),null!=k&&(m=new l.O.xX(c,m),k.B_(m))))}}b.Ypa=
a})(f.pq||(f.pq={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(c,d){this.slice=c;this.Ab=d}get cF(){return this.Ab&&this.Ab.Nm?!0:!1}qU(){return 0<this.slice.td(l.i.ha.Oa).ld.length}rU(){return 0<this.slice.td(l.i.ha.Ia).ld.length}SW(c){return c=c.replace(/[\]|\[]/g,"")}BE(c){-1<c.indexOf("'")&&(c=c.replace(RegExp("'","g"),"''"));return c}ML(c,d=!1){var g=[];var k=0!=c.eb.length||c.Xh?c.eb:c.nv(c.ua.fa(1).A);for(var m=c.vr(k),n=[],p,t=0;t<k.length;t++)if(p=c.za(k[t]),!e.ka(p.A)){g.push(p.A);
if(p.eh||this.slice.hf||this.slice.Xf)d?g.push(e.P.bind("Descendants({0})",p.A)):g.push(e.P.bind("{0}.CHILDREN",p.A));for(;null!=p.parent;){p=p.parent;for(var r=p.Ow,v=[],y=0;y<r.length;y++){var A=c.za(r[y]).A;-1<m.indexOf(A)&&v.push(A)}r=!c.Xh&&p.dc?c.Km():p.pba;if(c.type==l.i.Ic.Ua&&!c.Xh){if(p.dc)continue;r=p.A}-1==n.indexOf(r)&&n.push(r);this.nd.Bb(r)||c.Ts||this.nd.Ta(r,v.join(","))}}d=this.SW(c.A)+"FilterSet";this.Rg.Ta(d,g.join(", "));c=this.SW(c.A)+"CalculatedSet";this.Rg.Ta(c,n.join(", "));
return["["+d+"]","["+c+"]"]}NL(c,d,g){if(g)if(c.filter.Gh){var k=this.ML(c,!0);g=k[0];k=k[1];d=e.P.bind("Hierarchize(Distinct(Union({0}, {1})))",g,k)}else d="Hierarchize({"+c.A+".AllMembers})";else{var m=c.Xh?e.P.bind("Union({{0}}, {1}.levels(1).AllMembers)",c.Lm,c.A):c.type==l.i.Ic.Ua?e.P.bind("{0}.levels(0).AllMembers",c.A):e.P.bind("Union({{0}}, {1}.levels(0).AllMembers)",c.Km(),c.A);var n=this.Fwa(c);c.filter.Gh||!c.Xh&&c.type!=l.i.Ic.Ua?(k=this.ML(c,d&&0<n.length),g=k[0],k=k[1],d=d?0<n.length?
e.P.bind("Hierarchize(Distinct(Union(Intersect({0}, Union({1}, {3})), {2})))",g,n,k,m):e.P.bind("Hierarchize(Distinct(Union({0}, {1})))",g,k):c.Km()):d=d?0<n.length?e.P.bind("Hierarchize(Distinct(Union({0}, {1})))",m,n):m:e.P.bind("{0}.levels(0).AllMembers",c.A)}c="set_"+this.slice.vc().indexOf(c.A)+"_set";this.Rg.Ta(c,d);return"["+c+"]"}Fwa(c){for(var d=[],g=1;g<c.ua.length;g++){var k=c.ua.fa(g);c.ic&&c.ic.A==k.A&&d.push(e.P.bind("Descendants({{0}}, {1}, SELF_AND_BEFORE)",c.Js,c.ic.A));k=c.gM(k);
if(0!=k.length)for(var m=0;m<k.length;m++){var n=c.za(k[m]);c.type!=l.i.Ic.Ua||c.Xh?d.push(e.P.bind("{0}.CHILDREN",n.A)):(n=c.vr(n.children),d.push(e.P.bind("{"+n.join(","))+"}"))}}return 0<d.length?(c=this.SW(c.A)+"DrilledSet",this.Rg.Ta(c,d.join(",")),"["+c+"]"):""}gz(c,d){for(var g="",k=0;k<c.length;k++){var m=c[k].slice(1);m=this.Sp(m,d);""!=m&&(g=g?e.P.bind("Union({0}, {1})",m,g):m)}return g}Sp(c,d){for(var g="",k=d.length-1;0<=k;k--){var m=d.fa(k);if(null!=c[k]){var n=m.za(c[k]);if(null==n){g=
"";break}m.filter.Gh?(m=this.ML(m,!0),n=e.P.bind("Hierarchize(Distinct(Union(Intersect({{0}}, {1}), {2})))",n.A,m[0],m[1])):n="{"+n.A+"}"}else n=c.length==k?this.NL(m,!0,!1):this.NL(m,!1,!1);g=k==d.length-1?n:e.P.bind("CrossJoin({{0}}, {{1}})",n,g)}return g}KL(c){var d=[];for(var g=this.slice.gd(),k=0;k<g.length;k++)d.push("isEmpty("+g[k].A+")");d=d.join(" and ");g="";for(k=0;k<c.length;k++){var m=c.fa(k);m=this.NL(m,this.slice.lf||this.slice.kf||0==k,this.slice.hf||this.slice.Xf);m="Filter("+m+", not ("+
d+"))";g=0<k?"Crossjoin("+g+","+m+")":m}return g}PC(){if(0<this.slice.Fb.length){var c=this.KL(this.slice.Fb);this.Rg.Ta("columnHierarchiesSet",c);c="";this.qU()&&(c=this.gz(this.slice.td(l.i.ha.Oa).ld,this.slice.Fb),0<c.length&&this.Rg.Ta("columnExpandedSet",c));this.Rg.Ta("columnSet","Crossjoin("+(0<c.length?"Union([columnHierarchiesSet], [columnExpandedSet])":"[columnHierarchiesSet]")+", [measureSet])")}else this.Rg.Ta("columnSet","[measureSet]")}SC(){if(0<this.slice.wb.length){var c=this.KL(this.slice.wb);
this.Rg.Ta("rowHierarchiesSet",c);c="";this.rU()&&(c=this.gz(this.slice.td(l.i.ha.Ia).ld,this.slice.wb),0<c.length&&this.Rg.Ta("rowExpandedSet",c));this.Rg.Ta("rowSet",0<c.length?"Union([rowHierarchiesSet], [rowExpandedSet])":"[rowHierarchiesSet]")}}h1(c){0<this.slice.Fb.length?(c=this.Sp(c,this.slice.Fb),this.Rg.Ta("columnSet","Crossjoin("+c+", [measureSet])")):this.Rg.Ta("columnSet","[measureSet]")}l1(c){0<this.slice.wb.length&&(c=this.Sp(c,this.slice.wb),this.Rg.Ta("rowSet",c))}U0(c,d){0<this.slice.Fb.length?
(c=this.ida(c,d,this.slice.Fb),this.Rg.Ta("columnSet","Crossjoin("+c+", [measureSet])")):this.Rg.Ta("columnSet","[measureSet]")}V0(c,d){0<this.slice.wb.length&&(c=this.ida(c,d,this.slice.wb),this.Rg.Ta("rowSet",c))}ida(c,d,g){var k=[];for(var m=this.slice.gd(),n=0;n<m.length;n++)k.push("isEmpty("+m[n].A+")");k=k.join(" and ");m="";for(n=g.length-1;0<=n;n--){var p=g.fa(n);if(d.hierarchy.A==p.A)if(p.filter.Gh){var t=this.ML(p,!0);p=t[0];t=t[1];var r=e.P.bind("Hierarchize(Distinct(Union(Intersect({0}.CHILDREN, {1}), {2})))",
d.A,p,t)}else r=this.NL(p,!0,!1),r=e.P.bind("Intersect({0}.CHILDREN, {{1}})",d.A,r);else if(null!=c[n]){r=p.za(c[n]);if(null==r){m="";break}p.filter.Gh?(t=this.ML(p,!0),p=t[0],t=t[1],r=e.P.bind("Hierarchize(Distinct(Union(Intersect({{0}}, {1}), {2})))",r.A,p,t)):r="{"+r.A+"}"}else r=this.NL(p,!1,!1);r="Filter("+r+", not ("+k+"))";m=n==g.length-1?r:e.P.bind("CrossJoin({{0}}, {{1}})",r,m)}return m}l0(){for(var c="",d=[],g=0;g<this.slice.qb.length;g++){var k=this.slice.qb.fa(g);k.filter.Gh&&(this.nd.Ta(k.Km(),
k.vr(k.eb).join(",")),d.push(k.Km()))}0<d.length&&(c=e.P.bind("where ({0})",d.join(", ")));return c}Lo(){for(var c=[],d=0;d<this.slice.Hr.length;d++)c.push(this.slice.Hr[d].A);this.Rg.Ta("measureSet",c.join(", "))}TC(){for(var c="with",d=0;d<this.Rg.length;d++)c+=e.P.bind(" set [{0}] as '{{1}}'",this.BE(this.Rg.Uh(d)),this.BE(this.Rg.fa(d)));for(d=0;d<this.nd.length;d++)c+=e.P.bind(" member {0} as 'Aggregate({{1}})'",this.BE(this.nd.Uh(d)),this.BE(this.nd.fa(d)));return c}select(){this.Rg=new e.ub;
this.nd=new e.ub;this.Lo();this.PC();this.SC();var c=this.l0();var d=this.cF?this.Rg.Bb("rowSet")?", NON EMPTY _ROWS_TOKEN_START_[rowSet]_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":this.Rg.Bb("rowSet")?", NON EMPTY [rowSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";var g=this.TC();return e.P.bind("{0} Select {1} {2} FROM [{3}] {4} CELL PROPERTIES VALUE",g,"NON EMPTY [columnSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS",
d,this.Ab.wa,c)}expand(c,d){this.Rg=new e.ub;this.nd=new e.ub;this.Lo();c==l.i.ha.Ia?(this.PC(),this.l1(d)):(this.h1(d),this.SC());c=this.l0();d=this.cF?this.Rg.Bb("rowSet")?", NON EMPTY _ROWS_TOKEN_START_[rowSet]_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":this.Rg.Bb("rowSet")?", NON EMPTY [rowSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";var g=this.TC();return e.P.bind("{0} Select {1} {2} FROM [{3}] {4} CELL PROPERTIES VALUE",
g,"NON EMPTY [columnSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS",d,this.Ab.wa,c)}Ee(c,d,g){this.Rg=new e.ub;this.nd=new e.ub;this.Lo();c==l.i.ha.Ia?(this.PC(),this.V0(d,g)):(this.U0(d,g),this.SC());c=this.l0();d=this.cF?this.Rg.Bb("rowSet")?", NON EMPTY _ROWS_TOKEN_START_[rowSet]_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":this.Rg.Bb("rowSet")?", NON EMPTY [rowSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":
"";g=this.TC();return e.P.bind("{0} Select {1} {2} FROM [{3}] {4} CELL PROPERTIES VALUE",g,"NON EMPTY [columnSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS",d,this.Ab.wa,c)}cd(){return""}}b.mY=a})(f.pq||(f.pq={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){(function(a){class c extends f.O.wY{constructor(){super(...arguments);this.Tl=new u.HQ(!1);this.Ky=new u.HQ}Km(d="(Total)"){if(this.Xh)return this.Lm+".["+d+"]";var g=this.Js.split("].");g.pop();g.push("["+d+"]");return g.join("].")}AD(){return new a.Wpa(this)}Ib(d){d=this.Tl.find(d);return-1==d?null:this.za(d)}}a.A9=c})(b.O||(b.O={}))})(f.pq||(f.pq={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){(function(a){class c extends f.O.F9{get Hh(){return this.level.ev?!0:this.hierarchy.tN||this.hierarchy.Ts||this.level.ev?(this.eh||!this.Cf)&&0==this.children.length:!1}set Hh(d){}}a.Wpa=c})(b.O||(b.O={}))})(f.pq||(f.pq={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.TA{constructor(c,d=""){super(c,d)}}b.Uma=a})(f.O||(f.O={}))})(h.Ue||(h.Ue={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.Ct{constructor(c,d=""){super(c,d);this.Xfa=!1;this.lG=this.Eha="";c=new b.U7(c+".[(all)]","All",0);this.Sh(c);this.Js=this.Lm="(all member)";c=new l.O.be({A:"(all member)",caption:"All",dc:!0});this.pc(c)}AD(){return new b.Wma(this)}pc(c){void 0!==c.caption&&e.ka(c.caption)?c.caption=e.model.B.j.Nl:e.ka(c.A)&&(c.caption=e.model.B.j.Nl);return super.pc(c)}za(c){return super.za(c)}get inputType(){return this.lG}set inputType(c){this.lG=
c}lj(){const c=super.lj();c.type=this.inputType;return c}}b.Vma=a})(f.O||(f.O={}))})(h.Ue||(h.Ue={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.Dv{constructor(c,d="",g=0){super(c,d,g)}}b.U7=a})(f.O||(f.O={}))})(h.Ue||(h.Ue={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.Vr{constructor(c,d=""){super(c,d)}get lk(){return this.Qa?[]:this.type==l.i.Ra.jb?l.i.ea.$ka:l.i.ea.ala}set lk(c){}get caption(){if(0==e.model.C.F.Tx)return this.yc;switch(this.$){case l.i.ea.wc:return e.P.bind(e.model.B.j.fP,this.yc);case l.i.ea.Mt:return e.P.bind(e.model.B.j.tQ,this.yc);case l.i.ea.pj:return e.P.bind(e.model.B.j.pP,this.yc);case l.i.ea.Hq:return e.P.bind(e.model.B.j.ZO,this.yc);case l.i.ea.Uv:return e.P.bind(e.model.B.j.CQ,
this.yc);case l.i.ea.Vv:return e.P.bind(e.model.B.j.DQ,this.yc);case l.i.ea.MAX:return e.P.bind(e.model.B.j.dQ,this.yc);case l.i.ea.MIN:return e.P.bind(e.model.B.j.mQ,this.yc);case l.i.ea.cs:return e.P.bind(e.model.B.j.iK,this.yc);case l.i.ea.Cp:return e.P.bind(e.model.B.j.cK,this.yc);case l.i.ea.Rq:return e.P.bind(e.model.B.j.hK,this.yc);case l.i.ea.Pq:return e.P.bind(e.model.B.j.fK,this.yc);case l.i.ea.Qq:return e.P.bind(e.model.B.j.gK,this.yc);case l.i.ea.Si:return e.P.bind(e.model.B.j.QJ,this.yc);
case l.i.ea.tn:return e.P.bind(e.model.B.j.vQ,this.yc);case l.i.ea.so:return e.P.bind(e.model.B.j.xQ,this.yc);case l.i.ea.ko:return e.P.bind(e.model.B.j.wJ,this.yc);case l.i.ea.qn:return e.P.bind(e.model.B.j.xJ,this.yc);case l.i.ea.qo:return e.P.bind(e.model.B.j.dK,this.yc);case l.i.ea.sn:return e.P.bind(e.model.B.j.eK,this.yc);case l.i.ea.NONE:return this.yc}return e.P.bind(e.model.B.j.oK,this.yc)}set caption(c){""==c.trim()?this.yc=e.model.B.j.Nl:this.yc=c}get Bl(){return this.yc}set Bl(c){}w2(){var c=
new a("","");return this.format!=c.format||0==this.an?!1:!0}clone(){var c=new a(this.A);this.SL(c);return c}lj(){const c=super.lj(),d=l.Ma.R().O.Ok(this.A);e.v(d)?c.type=l.i.input.sa.jb:c.type=d.inputType;return c}}b.V7=a})(f.O||(f.O={}))})(h.Ue||(h.Ue={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.oJ{Sa(){var c=super.Sa();c.uniqueName=this.Fi;this.parent&&(c.parentMember=this.parent.Fi);return c}set caption(c){}get caption(){return this.hierarchy.zD(this.ordinal)}}b.Wma=a})(f.O||(f.O={}))})(h.Ue||(h.Ue={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.yX{constructor(){super();this.gC={};this.XB={};this.z_()}iL(c,d){this.gC[c]=this.uh(d);this.XB[d]=this.fd(c)}Ok(c){return this.gC[c]}nf(c){return this.XB[c]}Dx(c,d=null,g=!1){var k=d?d:new b.V7(c.uniqueName);return super.Dx(c,k,e.v(d)||g)}clear(){this.gC={};this.XB={};super.clear()}}b.Yma=a})(f.O||(f.O={}))})(h.Ue||(h.Ue={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.Et{constructor(){super();this.node=null;this.index="";this.mapping=new f.wP;this.cf=null;this.Aa=l.i.ra.kg}isEqual(a){return a.connection&&a.connection===this.connection&&this.index==a.index?!0:super.isEqual(a)&&JSON.stringify(this.node)==JSON.stringify(a.node)&&this.index==a.index&&this.mapping.isEqual(a.mapping)&&JSON.stringify(this.cf)==JSON.stringify(a.cf)}get aI(){return!1}$w(a){if(!e.v(this.connection))return a(this.connection);
var c=new Pa.B7({host:this.node,headers:this.tc,withCredentials:this.withCredentials});a(c)}static xb(a){var c=new b;e.v(a.host)||(c.node=a.host);e.v(a.node)||(c.node=a.node);e.v(a.index)||(c.index=a.index);e.v(a.mapping)||(c.mapping=a.mapping instanceof f.wP?a.mapping:new f.wP(a.mapping));e.v(a.subquery)||(c.cf=a.subquery);e.v(a.connection)||(c.connection=a.connection);e.v(a.requestHeaders)||(c.tc=a.requestHeaders);e.v(a.withCredentials)||(c.withCredentials=a.withCredentials);return c}Sa(a=!1){var c=
{};c.type=this.Aa;e.v(this.node)||(c.node=this.node);e.v(this.index)||(c.index=this.index);if(!this.mapping.kb||this.mapping.$o)c.mapping=this.mapping.Sa(!0);e.v(this.cf)||(c.subquery=this.cf);if(a||this.withCredentials)c.withCredentials=this.withCredentials;return c}clone(){var a=new b;a.Aa=this.Aa;e.v(this.node)||(a.node=this.node);e.v(this.index)||(a.index=this.index);if(!this.mapping.kb||this.mapping.$o)a.mapping=this.mapping.clone(this.Aa);e.v(this.cf)||(a.cf=this.cf);e.v(this.withCredentials)||
(a.withCredentials=this.withCredentials);return a}}f.T7=b})(h.Ue||(h.Ue={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a,c){this.slice=a;this.la=c}select(){var a={size:0};e.v(this.la.cf)||(a.query=u.Hc.zj(this.la.cf));var c=this.slice.wb.Pc(),d=this.slice.Fb.Pc();this.slice.lf||(c=c.slice(0,1));this.slice.kf||(d=d.slice(0,1));this.Rp(a);0==c.length&&0==d.length?this.Lo(a,this.slice.gd(),!0):this.Hw(a,c.concat(d));0<d.length&&this.Hw(a,d.concat(c),!0);return a}expand(a,c){var d={size:0};e.v(this.la.cf)||(d.query=u.Hc.zj(this.la.cf));var g=a==l.i.ha.Ia;
a=this.slice.wb.Pc();var k=this.slice.Fb.Pc();this.Rp(d);this.Sp(d,c,g?a:k);if(this.slice.lf||this.slice.kf)return this.Hw(d,a.concat(k)),0<k.length&&this.Hw(d,k.concat(a),!0),d;var m=[];if(g){c=c.length+1;var n=this.Dea(l.i.ha.Oa),p=this.bfa(this.slice.td(l.i.ha.Oa).ld);for(g=1;g<=n;g++)if(!e.v(p[g])||1==g){var t=u.Hc.zj(d);1!=g&&this.gz(t,p[g],k);var r=a.slice(0,c),v=k.slice(0,g);this.Hw(t,r.concat(v));m.push(t)}}else for(g=c.length+1,n=this.Dea(l.i.ha.Ia),p=this.bfa(this.slice.td(l.i.ha.Ia).ld),
c=1;c<=n;c++)e.v(p[c])&&1!=c||(t=u.Hc.zj(d),1!=c&&this.gz(t,p[c],a),r=a.slice(0,c),v=k.slice(0,g),this.Hw(t,r.concat(v)),0<v.length&&this.Hw(t,v.concat(r),!0),m.push(t));return m}bfa(a){for(var c={},d=0;d<a.length;d++){var g=a[d].length;e.v(c[g])&&(c[g]=[]);c[g].push(a[d])}return c}cd(a,c,d,g=null){d={size:e.model.C.F.kH};e.v(this.la.cf)||(d.query=u.Hc.zj(this.la.cf));d._source=g.map(k=>{let m=this.slice.Yc.uh(k);return m&&m.Xfa?m.Eha:k});this.Rp(d);this.Sp(d,a,this.slice.wb.Pc());this.Sp(d,c,this.slice.Fb.Pc());
return d}B0(a){e.v(a.query)&&(a.query={});e.v(a.query.bool)&&(a.query.bool={});e.v(a.query.bool.must)?a.query.bool.must=[]:Array.isArray(a.query.bool.must)||(a.query.bool.must=[a.query.bool.must]);e.v(a.query.bool.must_not)?a.query.bool.must_not=[]:Array.isArray(a.query.bool.must_not)||(a.query.bool.must_not=[a.query.bool.must_not])}Sp(a,c,d){this.B0(a);c.forEach((g,k)=>{k=d[k];g=k.za(g);a.query.bool.must.push(this.OL(k,g))})}Ee(){return null}Dea(a){a=this.slice.td(a).ld;return 0<a.length?Math.max.apply(Math,
a.map(c=>c.length)):1}gz(a,c,d){var g={bool:{should:[]}};c.forEach(k=>{k=k.slice(1);d.forEach((m,n)=>{null!=k[n]&&(n=m.za(k[n]),g.bool.should.push(this.OL(m,n)))})});a.query.bool.must.push(g)}qU(){return 0<this.slice.td(l.i.ha.Oa).ld.length}rU(){return 0<this.slice.td(l.i.ha.Ia).ld.length}Hw(a,c,d=!1){for(var g=this.slice.gd(),k=0;k<c.length;k++)if(this.Lo(a,g,!0),!d||k!=c.length-1){var m=c[k];this.Kwa(a,m);a=a.aggs[m.A]}d||this.Lo(a,g)}Kwa(a,c){e.v(a.aggs)&&(a.aggs={});e.v(a.aggs[c.A])&&(a.aggs[c.A]=
{});if(c.type==l.i.Ic.Ua){const d={field:c.A,min_doc_count:this.la.mapping.La(c.A,"min_doc_count"),time_zone:this.la.mapping.La(c.A,"time_zone"),format:this.la.mapping.La(c.A,"format",e.model.C.F.Up)};this.la.mapping.XH(c.A,"interval")?d.interval=this.la.mapping.La(c.A,"interval"):this.la.mapping.XH(c.A,"fixed_interval")?d.fixed_interval=this.la.mapping.La(c.A,"fixed_interval"):d.calendar_interval=this.la.mapping.La(c.A,"calendar_interval");a.aggs[c.A].date_histogram=d}else a.aggs[c.A].terms={field:c.A,
size:c.fn}}Lo(a,c,d=!1){e.v(a.aggs)&&(a.aggs={});c.forEach(g=>{a.aggs[(d?"total_":"")+(g.$+"_")+g.A]={[this.RAa(g)]:{field:g.A}}})}RAa(a){if(a.$!=l.i.ea.Sq){if(a.$==l.i.ea.Hq)return"avg";if(a.$==l.i.ea.wc)return"value_count";if(a.$==l.i.ea.pj)return"cardinality";if(a.$==l.i.ea.MIN)return"min";if(a.$==l.i.ea.MAX)return"max"}return"sum"}Rp(a){this.slice.qb.Pc().forEach(c=>this.LL(a,c));this.slice.Fb.Pc().forEach(c=>this.LL(a,c));this.slice.wb.Pc().forEach(c=>this.LL(a,c))}LL(a,c){if(c.filter.Gh){this.B0(a);
const m={bool:{should:[]}};for(var d=c.filter.Hi(c.filter.Z2),g=0;g<d.length;g++){var k=c.za(d[g]);m.bool.should.push(this.OL(c,k))}a.query.bool[c.filter.Z2?"must_not":"must"].push(m)}else if(c.filter.mx||c.filter.hN||c.filter.Pz)this.B0(a),d={bool:{should:[]}},c=c.filter.Pz?this.Awa(c):this.Nwa(c),d.bool.should.push(c),a.query.bool[c.isExclude?"must_not":"must"].push(d),delete c.isExclude}Awa(a){const c={},d=0<=l.i.cc.zy.indexOf(a.filter.query.va)?a.filter.query.MS(a.getTimezoneOffset()):a.filter.query;
if(l.i.cc.EQUAL===d.va||l.i.cc.Tf===d.va){var g=d.value;c.range={[a.A]:{gte:g.format("yyyy-MM-dd"),lt:g.format("yyyy-MM-dd")+"||+1d/d"}};c.isExclude=l.i.cc.Tf===d.va}else if(l.i.cc.iF===d.va)c.range={[a.A]:{lt:d.value.format("yyyy-MM-dd")}},c.isExclude=!1;else if(l.i.cc.jF===d.va)c.range={[a.A]:{lt:d.value.format("yyyy-MM-dd")+"||+1d/d"}},c.isExclude=!1;else if(l.i.cc.fF===d.va)c.range={[a.A]:{gte:d.value.format("yyyy-MM-dd")+"||+1d/d"}},c.isExclude=!1;else if(l.i.cc.gF===d.va)c.range={[a.A]:{gte:d.value.format("yyyy-MM-dd")}},
c.isExclude=!1;else if(l.i.cc.mh===d.va||l.i.cc.Tg===d.va)g=d.value[1],c.range={[a.A]:{gte:d.value[0].format("yyyy-MM-dd"),lte:g.format("yyyy-MM-dd")}},c.isExclude=l.i.cc.Tg===d.va;return c}Nwa(a){const c={},d=a.filter.query;if(l.i.Eb.kF===d.va||l.i.Eb.rB===d.va)c.prefix={[a.A]:d.value},c.isExclude=l.i.Eb.rB===d.va;else if(l.i.Eb.EQUAL===d.va||l.i.Eb.Tf===d.va)c.match={[a.A]:d.value},c.isExclude=l.i.Eb.Tf===d.va;else if(l.i.Eb.eB===d.va||l.i.Eb.tB===d.va)c.wildcard={[a.A]:"*"+d.value},c.isExclude=
l.i.Eb.tB===d.va;else if(l.i.Eb.ho===d.va||l.i.Eb.sB===d.va)c.wildcard={[a.A]:"*"+d.value+"*"},c.isExclude=l.i.Eb.sB===d.va;else if(l.i.Eb.GREATER===d.va)c.range={[a.A]:{gt:d.value}},c.isExclude=!1;else if(l.i.Eb.dl===d.va)c.range={[a.A]:{gte:d.value}},c.isExclude=!1;else if(l.i.Eb.LESS===d.va)c.range={[a.A]:{lt:d.value}},c.isExclude=!1;else if(l.i.Eb.gl===d.va)c.range={[a.A]:{lte:d.value}},c.isExclude=!1;else if(l.i.Eb.mh===d.va||l.i.Eb.Tg===d.va)c.range={[a.A]:{gte:d.value[0],lte:d.value[1]}},c.isExclude=
l.i.Eb.Tg===d.va;return c}OL(a,c){if(a.type==l.i.Ic.Ua){let d=this.la.mapping.La(a.A,"calendar_interval");this.la.mapping.XH(a.A,"interval")?d=this.la.mapping.La(a.A,"interval"):this.la.mapping.XH(a.A,"fixed_interval")&&(d=this.la.mapping.La(a.A,"fixed_interval"));return{range:{[a.A]:{gte:c.nc,lt:e.gL(new Date(c.nc),d).getTime()}}}}return{term:{[a.A]:c.caption}}}}f.Xma=b})(h.Ue||(h.Ue={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));var Pa;
(function(e){class l extends z.tk{constructor(f){super();f||(f={host:"http://localhost:9200"});this.host="string"===typeof f.host?new h(f.host):h.xb(f.host);f.headers&&(this.host.headers=f.headers);this.contentType=z.Ft.qX;this.withCredentials=f.withCredentials}p_(f,b=q.model.B.j.kQ){this.Uja=()=>{this.rb(w.ia.Qc,this.Uja);f(null,JSON.parse(this.response))};this.N(w.ia.Qc,this.Uja);this.tda=()=>{this.rb(w.ia.xa,this.tda);let a=b;try{const c=JSON.parse(this.response);c&&c.message?a=c.message:c&&c.error&&
c.error.reason&&(a=c.error.reason)}catch(c){}a=q.model.Tb.valid(a)?a:q.model.Tb.validate(a);f({message:a},null)};this.N(w.ia.xa,this.tda)}search(f,b){this.p_(b);this.Ir=z.Qt.Rv;this.$h(this.host.headers);this.data="string"===typeof f.body?f.body:JSON.stringify(f.body);this.load(this.host.qV(`/${f.index}/_search`));this.data=null}V1(f){this.p_(f,this.lea());this.Ir=z.Qt.dY;this.$h(this.host.headers);this.load(this.host.qV("/_cat/indices?format=json"))}RBa(f,b){this.p_(b,this.lea());this.Ir=z.Qt.dY;
this.$h(this.host.headers);this.load(this.host.qV(`/${f}/_mapping`))}lea(){const f=q.model.B.j.zpa;let b=this.host.qV();b=q.model.Tb.valid(b)?b:q.model.Tb.validate(b);return q.P.bind(f,b)}}e.B7=l;class h{constructor(f){q.ka(f)||this.$da(f)}$da(f){f=q.KJa(f);this.host=f.hostname;this.protocol=f.protocol;this.port=f.port;this.path=f.pathname}qV(f=""){this.host&&-1<this.host.indexOf("http")&&this.$da(this.host);var b="";this.port!==h.nya[this.protocol]&&(b=":"+this.port);var a=q.ka(this.path)?"":this.path;
"/"!==a.charAt(0)&&(a="/"+a);var c=q.ka(this.protocol)?"http":this.protocol;b=this.host?c+"://"+this.host+b+a:a;"/"==b.charAt(b.length-1)&&(b=b.substr(0,b.length-1));return b+f}static xb(f){var b=new h;b.headers=f.headers;b.host=f.host;b.path=f.path;b.port=f.port;b.protocol=f.protocol;return b}}h.nya={http:80,https:443}})(Pa||(Pa={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){if(null!=b.instance)throw Error("Singleton");}static R(){null==b.instance&&(b.instance=new b);return b.instance}static dispose(){b.instance=null}V1(a,c){(new Pa.B7(a)).V1((d,g)=>{if(d)return e.Va(d.message,e.model.B.j.xa,e.ob.xa),c(d,g);if(e.v(g))return console.warn("ESConnector: empty response"),c(d,g);d=g.map(k=>k.index).filter(k=>0>k.indexOf(".kibana")&&0>k.indexOf(".security"));c(null,d)})}}f.Rma=b})(h.Ue||(h.Ue={}))})(l.external||
(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.wa=l.Ma.R();this.ta=this.wa.ta}load(a,c,d,g){this.la=a;this.query=c;this.Cb=d;this.Xa=g;this.la.$w(k=>{this.Qo=k;this.Ax()})}g6(a,c,d,g=!1){for(var k in c){var m=this.wa.O.uh(k),n=Math.ceil(m.fn/b.bK);if(1==n)m=u.Hc.jz(c),delete m[k],this.g6(a,m,d);else for(var p=0;p<n;p++)c[k].forEach(t=>{t.include={partition:p,num_partitions:n}}),d.push(JSON.stringify(a)),m=u.Hc.jz(c),delete m[k],this.g6(a,m,d);if(g)break}return d}Qda(a,
c){for(var d in a){var g=this.wa.O.uh(d);e.v(g)||(e.v(a[d].terms)||(e.v(c[d])&&(c[d]=[]),c[d].push(a[d].terms)),a[d].aggs&&this.Qda(a[d].aggs,c))}return c}Ax(){e.Ca(!0,e.model.B.j.mg);if(this.query.type==l.i.Md.to){var a=this.Qda(this.query.body.aggs,{}),c=this.g6(this.query.body,a,[],!0);0==c.length&&c.push(JSON.stringify(this.query.body));var d=new u.FB;c.forEach((g,k)=>{d.add(m=>this.A3(g,k,c.length,m))});d.Ze(()=>{null!=this.Cb&&this.Cb();e.Ca(!1)})}else Array.isArray(this.query.body)?(d=new u.FB,
this.query.body.forEach(g=>{d.add(k=>this.A3(g,0,0,k))}),d.Ze(()=>{null!=this.Cb&&this.Cb();e.Ca(!1)})):this.A3(this.query.body,0,0,()=>{null!=this.Cb&&this.Cb();e.Ca(!1)})}A3(a,c,d,g){0<c&&e.Ca(!0,e.model.B.j.mg,(c/d*100).toFixed(0)+"%");this.Qo.search({index:this.la.index,body:a},(k,m)=>{if(k)return this.Rb(k.message,this.Xa),g();k=this.wa.qa.wb.Pc();var n=this.wa.qa.Fb.Pc();this.query.type==l.i.Md.to&&(this.wa.qa.lf||(k=k.slice(0,1)),this.wa.qa.kf||(n=n.slice(0,1)));var p=this.wa.qa.gd();this.X4(m.aggregations,
k.concat(n),p,0,[],[]);0<n.length&&this.Hha(m.aggregations,n.concat(k),p,0,[],[]);g()})}X4(a,c,d,g,k,m){const n=c[g];if(n&&a.hasOwnProperty(n.A))a[n.A].buckets.forEach(t=>{var r=null;n.type==l.i.Ic.Ua&&(r=n.Pu(t.key));e.v(r)&&(r=n.Ib(t.key_as_string||""+t.key));const v=k.slice(),y=m.slice();r&&this.wa.qa.rows.Bb(n.A)?v.push(r.ordinal):r&&y.push(r.ordinal);this.kfa(t,d)?(r=d.map(A=>this.c5(t,A)),this.ta.insert(v,y,r)):this.X4(t,c,d,g+1,v,y)});else if(g<c.length){var p=k.slice();const t=m.slice();this.wa.qa.rows.Bb(n.A)?
p.push(null):t.push(null);this.X4(a,c,d,g+1,p,t)}p=d.map(t=>this.c5(a,t,!0));this.ta.BA(k,m,p)}c5(a,c,d=!1){if(0==a.doc_count)return c.$==l.i.ea.wc||c.$==l.i.ea.pj?0:NaN;c=(d?"total_":"")+c.$+"_"+c.A;return e.v(a[c])?NaN:a[c].value}Hha(a,c,d,g,k,m){const n=c[g];e.v(a[n.A])||a[n.A].buckets.forEach(p=>{const t=l.i.Ic.Ua==n.type?n.Ib(""+p.key):n.Ib(p.key_as_string||""+p.key),r=k.slice(),v=m.slice();this.wa.qa.rows.Bb(n.A)?r.push(t.ordinal):v.push(t.ordinal);let y;this.kfa(p,d,!0)&&(y=d.map(A=>this.c5(p,
A,!0)));this.ta.BA(r,v,y);g<c.length-2&&this.Hha(p,c,d,g+1,r,v)})}sU(a,c){return c&&a.hasOwnProperty(c.A)}kfa(a,c,d=!1){return(c=c[0])&&a.hasOwnProperty((d?"total_":"")+c.$+"_"+c.A)}cd(a,c,d,g,k,m,n){e.Ca(!0,e.model.B.j.mg,e.model.B.j.mg);a.$w(p=>{this.Qo=p;this.Qo.search({index:a.index,body:c.body},(t,r)=>{if(t)return this.Rb(t.message,n);var v=r.hits.hits.map(A=>A._source),y=c.body._source;v.forEach((A,C)=>{v[C]=y.map(B=>u.Hc.resolve(B,A))});v.unshift(y);m(v)})})}cancel(){this.Qo&&this.la&&!this.la.connection&&
this.Qo.close();this.Xa=this.Cb=this.la=this.wa=this.Qo=null}Rb(a,c){console.error(a);e.Ca(!1);e.Va(a,e.model.B.j.xa,e.ob.xa);e.Pg(c)&&c(a)}}b.bK=5E4;f.Sma=b})(h.Ue||(h.Ue={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.UX{La(a,c,d){a=this.Bs(a,c);d=this.ii(d);return e.v(this.values[a])?NaN:e.v(this.values[a][d])?NaN:this.values[a][d]}BA(a,c,d){a=this.Bs(a,c);e.v(this.values[a])&&(this.values[a]=d)}Wg(a,c){return null==a||0==a.length?NaN:this.Kc[c][a[0]]}Pea(a,c){var d=a.slice(0);a=a.indexOf(null);0<a&&(d.length=a);d[d.length-1]=0;return this.md(d,c)}insert(a,c,d){for(;a.length<this.Zh.length;)a.push(null);for(;c.length<this.xj.length;)c.push(null);
var g=a.concat(c);if(!(-1<g.indexOf(0))){if(0==this.zb.length)for(var k=0;k<g.length;k++)this.zb[k]=[];(k=this.Pea(a,this.Cd))&&k[0]&&k[0].push(this.HA);(k=this.Pea(c,this.Od))&&k[0]&&k[0].push(this.HA);this.qh=e.Ja.Pr(this.qh,this.HA);for(k=0;k<g.length;k++)this.zb[k]=e.Ja.Pr(this.zb[k],g[k]);if(0==this.Kc.length)for(k=0;k<d.length;k++)this.Kc[k]=[];for(k=0;k<d.length;k++)this.Kc[k]=e.Ja.Pr(this.Kc[k],d[k]);this.values[this.Bs(a,c)]=d}}filter(){}}f.Tma=b})(h.Ue||(h.Ue={}))})(l.external||(l.external=
{}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){(function(f){class b extends l.O.Bm{constructor(a=null){super(a);this.Gu={};this.Gu.calendar_interval="day";this.Gu.min_doc_count=1;this.Gu.filters=!0}}f.wP=b})(h.Ue||(h.Ue={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a){this.wa=l.Ma.R();this.bK=1E5;this.la=a}load(a,c,d,g){this.Cb=c;this.Re=g;this.Xa=d;e.Ca(!0,e.model.B.j.IF);a.$w(k=>{this.Qo=k;this.I3()})}I3(){this.Qo.RBa(this.la.index,(a,c)=>{if(a)return this.Rb(a.message,this.Xa);e.Pg(this.Re)&&this.Re();for(var d in c){a=c[d].mappings;for(var g in a)"properties"==g?this.wI(a[g]):this.wI(a[g].properties)}this.Dr()})}wI(a,c=null,d="",g="",k=""){for(var m in a)if(this.la.mapping.La(d+m,"visible",
!0)){var n=a[m];if(this.JDa(n)){var p=c?c:this.mu(m,m);this.wI(n.properties,p,d+m+".",g,k+m+"/")}else if(this.tg(n)){p=c?c:this.mu(m,m);p=this.zi(p,d+m,m,n,k);var t=this.zk(d+m,m,n);this.wa.O.iL(t.A,p.A)}else if(this.Ef(n)){p=c?c:this.mu(m,m);t=m;var r=!e.ka(g);r&&(t="keyword"==m?g:g+" ("+m+")");p=this.zi(p,d+m,t,n,k);r&&(p.Xfa=!0,p.Eha=d.substr(0,d.length-1));t=this.zk(d+m,t,n);this.wa.O.iL(t.A,p.A)}e.v(n.fields)||(p=c?c:this.mu(m,m),this.wI(n.fields,p,d+m+".",m,k+m+"/"))}}mu(a,c){var d=this.wa.O.$p(a);
e.v(d)&&(c=this.la.mapping.La(a,"caption",c),d=new f.O.Uma(a,c),this.wa.O.mu(d));return d}zi(a,c,d,g,k=null){var m=a.uh(c);e.v(m)&&(d=this.la.mapping.La(c,"caption",d),m=new f.O.Vma(c,d),m.type=l.i.Ic.A1(g.type),m.inputType=g.type,a.zi(m),e.ka(k)?m.Oc=a.caption:("/"==k.charAt(k.length-1)&&(k=k.substr(0,k.length-1)),m.Oc=k),a=new f.O.U7(c,c,1),m.type==l.i.Ic.Ua?a.type=l.i.ib.Mc:m.type==l.i.Ic.yp&&(a.type=l.i.ib.jb),m.Sh(a));return m}zk(a,c,d){var g=this.wa.O.fd(a);e.v(g)&&(c=this.la.mapping.La(a,"caption",
c),g=new f.O.V7(a,c),g.type=l.i.Ra.A1(d.type),g.Wc=this.la.mapping.La(a,"aggregations"),this.wa.O.zk(g));return g}tg(a){return 0<=l.i.Ra.jM.indexOf(a.type)}JDa(a){return!e.v(a.properties)}Ef(a){return 0<=l.i.Ic.jM.indexOf(a.type)}Dr(){e.Ca(!1);null!=this.Cb&&this.Cb()}xl(a,c,d){e.Ca(!0,e.model.B.j.zm,a.caption);a.type==l.i.Ic.Ua?this.YEa(a,g=>{if(g)return this.Rb(g,d);a.Td=!0;e.Ca(!1);c(a)}):this.vxa(a,(g,k)=>{if(g)return this.Rb(g,d);0==k?(a.Td=!0,c(a)):this.Jga(a,0,Math.ceil(k/this.bK),k,m=>{if(m)return this.Rb(m,
d);a.Td=!0;e.Ca(!1);c(a)})})}vxa(a,c){a={size:0,aggs:{count:{cardinality:{field:a.A}}}};e.v(this.la.cf)||(a.query=u.Hc.zj(this.la.cf));this.Qo.search({index:this.la.index,body:a},(d,g)=>{if(d)return c(d.message);c(null,g.aggregations.count.value)})}Jga(a,c,d,g,k){var m={size:0,aggs:{[a.A]:{terms:{field:a.A,include:{partition:c,num_partitions:d},size:2*this.bK}}}};e.v(this.la.cf)||(m.query=u.Hc.zj(this.la.cf));this.Qo.search({index:this.la.index,body:m},(n,p)=>{if(n)return k(n.message);n=p.aggregations[a.A].buckets;
for(p=0;p<n.length;p++)this.pc(a,n[p].key_as_string||n[p].key,n[p].key);c<d-1?(e.Ca(!0,e.model.B.j.zm,e.P.bind("{0}: {1} of {2} loaded",a.caption,(c+1)*this.bK,g)),this.Jga(a,c+1,d,g,k)):k()})}YEa(a,c){var d={field:a.A,min_doc_count:this.la.mapping.La(a.A,"min_doc_count"),time_zone:this.la.mapping.La(a.A,"time_zone"),format:this.la.mapping.La(a.A,"format",e.model.C.F.Up)};this.la.mapping.XH(a.A,"interval")?d.interval=this.la.mapping.La(a.A,"interval"):this.la.mapping.XH(a.A,"fixed_interval")?d.fixed_interval=
this.la.mapping.La(a.A,"fixed_interval"):d.calendar_interval=this.la.mapping.La(a.A,"calendar_interval");d={size:0,aggs:{[a.A]:{date_histogram:d}}};e.v(this.la.cf)||(d.query=u.Hc.zj(this.la.cf));this.Qo.search({index:this.la.index,body:d},(g,k)=>{if(g)return c(g.message);g=k.aggregations[a.A].buckets;for(k=0;k<g.length;k++)this.pc(a,g[k].key_as_string,g[k].key);c()})}pc(a,c,d){"string"!=typeof c&&(c=""+c);const g="number"===typeof d?d:null;let k=a.type!==l.i.Ic.Ua?a.Ib(c):a.Pu(g);null==k?(c=a.type==
l.i.Ic.Ua?new l.O.be({A:String(g),caption:c,nc:g}):new l.O.be({A:c,nc:g}),k=a.pc(c)):k.nc!=d&&a.type==l.i.Ic.Ua&&(k=a.pc(new l.O.be({A:`${c}-${d}`,caption:c,nc:g})));return k}Nk(a,c,d,g){this.xl(a,d,g)}cA(){throw"Not Implemented";}Aq(){throw"Not Implemented";}BC(){return!1}cancel(){this.Qo&&this.la&&!this.la.connection&&this.Qo.close();this.Re=this.Xa=this.Cb=this.la=this.wa=this.Qo=null}Rb(a,c){console.error(a);e.Ca(!1);e.Va(a,e.model.B.j.xa,e.ob.xa);e.Pg(c)&&c(a)}}f.Zma=b})(h.Ue||(h.Ue={}))})(l.external||
(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.Et{constructor(){super();this.index=this.url=null;this.hp=!1;this.mapping=new f.XO;this.Tia="2.8.5";this.Iw=!1;this.Aa=l.i.ra.API}isEqual(a){return super.isEqual(a)&&this.url==a.url&&this.index==a.index&&this.hp==a.hp&&this.Iw==a.Iw&&this.mapping.isEqual(a.mapping)}get aI(){return!0}static xb(a){var c=new b;e.v(a.url)||""==a.url||(c.url=a.url);e.v(a.index)||(c.index=a.index.toString());e.v(a.requestHeaders)||(c.tc=a.requestHeaders);
e.v(a.mapping)||(c.mapping=a.mapping instanceof f.XO?a.mapping:new f.XO(a.mapping));e.v(a.withCredentials)||(c.withCredentials=a.withCredentials);e.v(a.singleEndpoint)||(c.hp=a.singleEndpoint);e.v(a.concurrentRequests)||(c.Iw=a.concurrentRequests);return c}Sa(a=!1){var c={};c.type=this.Aa;e.v(this.url)||(c.url=this.url);e.v(this.index)||(c.index=this.index);if(a||this.hp)c.singleEndpoint=this.hp;if(!this.mapping.kb||this.mapping.$o)c.mapping=this.mapping.Sa(!0);if(a||this.withCredentials)c.withCredentials=
this.withCredentials;if(a||this.Iw)c.concurrentRequests=this.Iw;return c}$w(){return new f.SA({url:this.url,hp:this.hp,tc:this.tc,withCredentials:this.withCredentials})}clone(){var a=new b;a.Aa=this.Aa;e.v(this.url)||(a.url=this.url);e.v(this.index)||(a.index=this.index);e.v(this.hp)||(a.hp=this.hp);if(!this.mapping.kb||this.mapping.$o)a.mapping=this.mapping.clone(this.Aa);this.withCredentials&&(a.withCredentials=this.withCredentials);this.Iw&&(a.Iw=this.Iw);return a}}f.N6=b})(h.jc||(h.jc={}))})(l.external||
(l.external={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.TA{constructor(c,d=""){super(c,d)}}b.uNa=a})(f.O||(f.O={}))})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.local.O.$P{constructor(c,d=""){super(c,d);this.tx=!1}AD(){return new b.Vka(this)}get u2(){return e.Pg(this.Xs)||this.tx}UW(c,d){return this.tx||0<c.tS.length?0<c.tS.length?this.aMa(c.tS.slice()):this.bMa(c.children):super.UW(c,d)}aMa(c){return this.Rh===l.i.Ba.hc?c:this.Rh===l.i.Ba.Nc?c.reverse():c}bMa(c){this.Rh===l.i.Ba.hc&&e.Ja.sort(c,e.Ja.Ti);this.Rh===l.i.Ba.Nc&&e.Ja.sort(c,e.Ja.tp|e.Ja.Ti);return c}clone(){var c=
super.clone();c.tx=this.tx;return c}get Td(){return this.ZB}set Td(c){this.ZB=c}}b.WO=a})(f.O||(f.O={}))})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.local.O.aQ{constructor(c,d="",g=0){super(c,d,g)}}b.Uka=a})(f.O||(f.O={}))})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.Vr{constructor(c,d=""){super(c,d);this.zG=[];this.fw=void 0}get fc(){return e.model.Tb.valid(this.yc)?this.yc:e.model.Tb.validate(this.yc)}get caption(){if(0==e.model.C.F.Tx)return this.fc;switch(this.$){case l.i.ea.Sq:return e.P.bind(e.model.B.j.oK,this.fc);case l.i.ea.wc:return e.P.bind(e.model.B.j.fP,this.fc);case l.i.ea.Mt:return e.P.bind(e.model.B.j.tQ,this.fc);case l.i.ea.pj:return e.P.bind(e.model.B.j.pP,this.fc);
case l.i.ea.Hq:return e.P.bind(e.model.B.j.ZO,this.fc);case l.i.ea.Pv:return e.P.bind(e.model.B.j.nY,this.fc);case l.i.ea.Uv:return e.P.bind(e.model.B.j.CQ,this.fc);case l.i.ea.Vv:return e.P.bind(e.model.B.j.DQ,this.fc);case l.i.ea.MAX:return e.P.bind(e.model.B.j.dQ,this.fc);case l.i.ea.MIN:return e.P.bind(e.model.B.j.mQ,this.fc);case l.i.ea.cs:return e.P.bind(e.model.B.j.iK,this.fc);case l.i.ea.Cp:return e.P.bind(e.model.B.j.cK,this.fc);case l.i.ea.Rq:return e.P.bind(e.model.B.j.hK,this.fc);case l.i.ea.Pq:return e.P.bind(e.model.B.j.fK,
this.fc);case l.i.ea.Qq:return e.P.bind(e.model.B.j.gK,this.fc);case l.i.ea.Si:return e.P.bind(e.model.B.j.QJ,this.fc);case l.i.ea.tn:return e.P.bind(e.model.B.j.vQ,this.fc);case l.i.ea.so:return e.P.bind(e.model.B.j.xQ,this.fc);case l.i.ea.ko:return e.P.bind(e.model.B.j.wJ,this.fc);case l.i.ea.qn:return e.P.bind(e.model.B.j.xJ,this.fc);case l.i.ea.qo:return e.P.bind(e.model.B.j.dK,this.fc);case l.i.ea.sn:return e.P.bind(e.model.B.j.eK,this.fc);case l.i.ea.NONE:return this.fc}return-1<l.i.ea.iP.indexOf(this.$)?
`${this.fc} (${this.$})`:e.P.bind(e.model.B.j.oK,this.fc)}set fq(c){this.dw=c}get fq(){return-1<l.i.ea.iP.indexOf(this.uk)?`${this.fc} (${this.uk})`:super.fq}set caption(c){this.yc=c}get Bl(){return this.yc}set Bl(c){}get lk(){return this.zG}set lk(c){this.zG=[];if(!e.v(c))for(var d=0;d<c.length;d++)if("string"==typeof c[d]){var g=c[d].trim().toLowerCase();l.i.ea.pz(g)&&(g=l.i.ea.Dz(g));l.i.ea.MA(g)&&this.zG.push(g)}}set Wc(c){if(e.v(c))this.wn=this.lk,this.type==l.i.Ra.jb&&0<this.wn.length&&(this.wn=
this.wn.concat(l.i.ea.RA));else{for(var d=[],g=0;g<c.length;g++){var k=c[g].trim().toLowerCase();l.i.ea.pz(k)&&(k=l.i.ea.Dz(k));(-1!==this.lk.indexOf(k)||this.type==l.i.Ra.jb&&-1!==l.i.ea.RA.indexOf(k))&&d.push(k)}this.wn=0<d.length?d:this.lk}this.fw=void 0;this.VCa(this.wn)||(this.wn=[])}get Wc(){return!1===this.fw||0<this.wn.length?this.wn:this.lk}VCa(c){if(void 0===this.fw){this.fw=!1;for(var d=0;d<c.length;d++)if(l.i.ea.BU(c[d])){this.fw=!0;break}}return this.fw}w2(){var c=new a("","");return this.Ge!=
c.Ge||this.format!=c.format||0==this.an?!1:!0}clone(){var c=new a(this.A);this.SL(c);void 0!=this.zG&&(c.zG=this.zG.slice());void 0!=this.fw&&(c.fw=this.fw);return c}}b.Q6=a})(f.O||(f.O={}))})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.oJ{constructor(){super(...arguments);this.tS=[]}get Hh(){return this.level.ev?!0:!(this.eh||this.Cf)&&0===this.children.length}}b.Vka=a})(f.O||(f.O={}))})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.local.O.bQ{constructor(){super();this.sH=new b.fo}Uo(c,d){return new b.WO(c,d)}Lea(c,d){return new b.Q6(c,d)}gm(c,d,g){return new b.Uka(c,d,g)}Dx(c,d=null,g=!1){var k=d?d:new b.Q6(c.uniqueName);return super.Dx(c,k,e.v(d)||g)}}b.jJ=a})(f.O||(f.O={}))})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.wX{constructor(){super(...arguments);this.E$=!1}get oL(){return this.E$}set oL(c){this.E$=c}nba(c,d){e.v(this.RB)&&(this.RB=new e.ub);this.RB.Ta(c,d)}Wea(c,d){let g=void 0;if(!e.v(this.RB)){const k=l.i.Ic.FA(c.type);this.RB.Bb(k)?g=this.PS(this.RB.getItem(k),d):this.RB.Bb(l.i.input.sa.iJ)&&(g=this.PS(this.RB.getItem(l.i.input.sa.iJ),d))}return!e.v(this.Oy)&&this.Oy.Bb(c.A)?(c=this.PS(this.Oy.getItem(c.A),d),void 0!==
g&&c.merge(g),c):g?g:this.oL?this.CH(d):null}}a.WH=!1;b.fo=a})(f.O||(f.O={}))})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.interval=this.A=void 0}}f.vNa=b;class a{constructor(){this.Kk=void 0;this.EQa=null}}f.wNa=a;class c{constructor(d){this.rows={};this.Ka={};this.values={};this.filters={};this.slice=d}select(){var d=this.QC(l.i.ha.Ia),g=this.QC(l.i.ha.Oa),k=this.IS(),m=this.Rp(),n={aggs:{}};!m||Array.isArray(m)&&0===m.length||(n.filter=m);if(0<d.length||0<g.length)n.aggs={by:{}},0<d.length&&(n.aggs.by.rows=d),0<g.length&&(n.aggs.by.cols=
g);n.aggs.values=k;return n}lLa(){var d=this.QC(l.i.ha.Ia),g=this.IS(),k=this.Rp(!1),m={aggs:{}};!k||Array.isArray(k)&&0===k.length||(m.filter=k);m.fields=d;m.aggs.values=g;return m}Ee(d,g){var k=this.QC(l.i.ha.Ia),m=this.QC(l.i.ha.Oa),n=this.IS(),p=this.Rp();d={type:l.i.Md.Iv,axisName:d,dataKeys:u.Hc.jz(g),aggs:{}};!p||Array.isArray(p)&&0===p.length||(d.filter=p);if(0<k.length||0<m.length)d.aggs={by:{}},0<k.length&&(d.aggs.by.rows=k),0<m.length&&(d.aggs.by.cols=m);0<n.length&&(d.aggs.values=n);return d}expand(d,
g){var k=this.QC(l.i.ha.Ia),m=this.QC(l.i.ha.Oa),n=this.IS(),p=this.Rp();d={type:l.i.Md.xF,axisName:d,dataKeys:u.Hc.jz(g),aggs:{}};!p||Array.isArray(p)&&0===p.length||(d.filter=p);if(0<k.length||0<m.length)d.aggs={by:{}},0<k.length&&(d.aggs.by.rows=k),0<m.length&&(d.aggs.by.cols=m);0<n.length&&(d.aggs.values=n);return d}cd(d,g,k=!0){return k?this.bza(d):this.X0(d,g)}bza(d){d=this.Dwa(d);var g=this.Rp(),k={};k.limit=e.model.C.F.kH;!g||Array.isArray(g)&&0===g.length||(k.filter=g);k.fields=d;return k}X0(d,
g){var k,m=[];const n=this.slice.vc(!1,!0,!0,!0).Pc();var p=[];for(let y=0;y<d.length;y++){var t={uniqueName:d[y]},r=n.find(A=>A.A===d[y]);if(r){var v=r.ua.fa(1);this.gL(v,r.interval,t)}m.push(t);if(void 0!==g[d[y]]){r={};r.field={uniqueName:d[y]};t=g[d[y]];let A=null!==(k=v.inputType)&&void 0!==k?k:v.type;l.i.ib.qN(A)&&!isNaN(t)&&null!==t?t=+t:v.type===l.i.ib.$c&&(t=""+t);r.include=[{member:t}];p.push(r)}}e.v(this.filters)||p.push(...this.Ewa());g={};g.limit=e.model.C.F.kH;0<p.length&&(g.filter=
p);g.fields=m;return g}Dwa(d){const g=[],k=this.slice.Yc.vc(!1).Pc();for(var m=0;m<d.length;m++){const p={uniqueName:d[m]};var n=k.find(t=>t.A===d[m]);n&&this.gL(n.ua.fa(1),n.interval,p);g.push(p)}return g}QC(d){const g=[],k=this.slice.vc(!1,!0,!0,!0).Pc();d=d===l.i.ha.Ia?this.rows:this.Ka;for(var m=0;m<k.length;m++){const t=k[m].A;if(void 0!==d[t])if(0===d[t].length){var n={uniqueName:t};this.gL(k[m].ua.fa(1),k[m].interval,n);g.push(n)}else for(n=0;n<k[m].ua.length;n++){var p=k[m].ua.fa(n).A;-1!==
d[t].indexOf(p)&&g.push({uniqueName:p})}}return g}gL(d,g,k){if(d.type===l.i.ib.Ua||d.type===l.i.ib.Mc)k.interval=g}IS(){let d=[];for(let g in this.values)for(let k=0;k<this.values[g].length;k++)d.push({func:this.values[g][k],field:{uniqueName:g}});return d}LL(d){var g=d.A,k=d.Ef?d.ua.fa(1).A:g,m={};m.field={uniqueName:k};if(void 0!==this.filters[g].query)if(f.O.fo.WH)Array.isArray(this.filters[g].query)?m={type:"or",value:this.filters[g].query}:m.query=this.filters[g].query;else if(d.Ef){var n=Object.keys(this.filters[g].query)[0];
l.i.tb.yfa(d.ua.fa(1).type,n)&&(m.query=this.filters[g].query)}else m.query=this.filters[g].query;void 0!==this.filters[g].value&&(m.value=this.filters[g].value);if(void 0!==this.filters[g].include){n=[];for(var p=0;p<this.filters[g].include.length;p++)n.push(this.filters[g].include[p]);m.query?m={type:"or",value:[m,{field:{uniqueName:k},include:n}]}:m.include=n}if(void 0!==this.filters[g].exclude){n=[];for(p=0;p<this.filters[g].exclude.length;p++)n.push(this.filters[g].exclude[p]);m.query?m={type:"and",
value:[m,{field:{uniqueName:k},exclude:n}]}:m.exclude=n}if(void 0!==this.filters[g].intersect)if(f.O.fo.WH)void 0!==m.include?m={type:"and",value:[{field:{uniqueName:k},include:this.filters[g].intersect},{field:{uniqueName:k},include:this.filters[g].include}]}:void 0!==m.query||void 0!==m.exclude||void 0===m.field?m={type:"and",value:[{field:{uniqueName:k},include:this.filters[g].intersect},m]}:m.include=this.filters[g].intersect;else{k={};k.field={uniqueName:d.Ef?d.ua.fa(1).A:g};k.include=[this.filters[g].intersect[0]];
if(void 0!==m.include||void 0!==m.exclude||void 0!==m.query)k.include[0].filter=m;m=k}return m}Ewa(){for(var d=[],g=this.slice.vc(!1,!0,!0).Pc(),k=0;k<g.length;k++)if(void 0!==this.filters[g[k].A]){var m={};if(this.filters[g[k].A].intersect)m.include=this.filters[g[k].A].intersect;else if(this.filters[g[k].A]){var n=Object.keys(this.filters[g[k].A]),p=n[0];m[p]=this.filters[g[k].A][p];n[1]&&(p=n[1],m[p]=this.filters[g[k].A][p])}else continue;m.field={uniqueName:g[k].Ef?g[k].ua.fa(1).A:g[k].A};d.push(m)}return d}Rp(d=
!0){const g=[],k=this.slice.vc(!1,!0,!0).Pc();for(let m=0;m<k.length;m++){const n=k[m];this.t_(n,!1,!1,d);void 0!==this.filters[n.A]&&g.push(this.LL(n))}if(!f.O.fo.WH)return g;if(0<g.length)return{type:"and",value:g}}Im(d,g){this.Ty(this.rows,d,g)}Bo(d,g){this.Ty(this.Ka,d,g)}Ty(d,g,k){var m=g.A;void 0===d[m]&&(d[m]=[]);var n=this.slice.rows.Bb(g.A),p=this.slice.Ka.Bb(g.A);n=this.slice.hf&&n||this.slice.Xf&&p;if(void 0===k&&g.Ef){if(null!=g.ic||n){for(k=1;k<g.ua.length&&(p=g.ua.fa(k),-1===d[m].indexOf(p.A)&&
d[m].push(p.A),p!=g.ic||n);k++);return}k=g.ua.fa(1)}void 0!==k&&(g=k.A,-1===d[m].indexOf(g)&&d[m].push(g))}kba(d){d.forEach(g=>{this.Im(g)})}aba(d){d.forEach(g=>{this.Bo(g)})}jL(d){if(""!==d.Mm){var g=d.A,k=d.Mm;void 0===this.values[g]&&(this.values[g]=[]);d.Qa||-1!==this.values[g].indexOf(k)||this.values[g].push(k)}}Yta(d,g){void 0===this.filters[d.A]&&(this.filters[d.A]={});d.filter.Pz&&(g.query=g.query.MS(d.getTimezoneOffset()));var k=this.kia(g.query);if(f.O.fo.WH&&d.Ef){let t=[];for(var m=1;m<
d.ua.length;m++){var n=Object.keys(k)[0],p=d.ua.fa(m);l.i.tb.yfa(p.type,n)&&t.push({field:{uniqueName:p.A},query:k})}this.filters[d.A].query=t}else this.filters[d.A].query=k;if(g.$Ca){k=g.Fm;m=[];for(n=0;n<k.length;n++)(p=d.za(k[n]))&&m.push({member:p.A});this.filters[d.A].include=m}if(g.ZCa){g=g.Uj;k=[];for(m=0;m<g.length;m++)(n=d.za(g[m]))&&k.push({member:n.A});this.filters[d.A].exclude=k}}Zta(d,g,k){d=d.A;void 0===this.filters[d]&&(this.filters[d]={});this.filters[d].query=this.kia(g);this.filters[d].value=
{field:{uniqueName:k.A},func:k.$}}kia(d){let g=d.value;g instanceof e.Rf&&(g=g.getTime());Array.isArray(g)&&g[0]instanceof e.Rf&&(g=[g[0].getTime(),g[1].getTime()]);return{[d.va]:g}}zs(d,g,k,m){var n,p=d.A;f.O.fo.VH||"intersect"!==k||(k="include");void 0===this.filters[p]&&(this.filters[p]={});void 0===this.filters[p][k]&&(this.filters[p][k]=[]);for(var t,r,v;!g.dc&&void 0!==g.parent;){var y=g.level.A;r=g.A;e.model.C.F.qr&&("null"===r&&(r=null),"undefined"===r&&(r=void 0),"(blank)"===r&&(r=""));e.ka(r)||
(r=null!==(n=g.level.inputType)&&void 0!==n?n:g.level.type,r=l.i.ib.qN(r)&&!isNaN(g.nc)?g.nc:1<g.level.yb?g.A.substr(1,g.A.length-2).split("].[").pop():g.A);v={};g.parent.dc?(v.member=r,void 0!==t&&(v.filter=t)):(m?this.Im(d,g.level):this.Bo(d,g.level),v.field={uniqueName:y},v.include=[{member:r}],void 0!==t&&(v.include[0].filter=t));t=v;g=g.parent}this.filters[p][k].push(t)}t_(d,g=!1,k,m=!0){var n=d.filter.clone();if(n.Gh&&!g){var p=n.Hi().length<d.Zi/2;g=p?n.Hi():n.Hi(!0);for(var t=0;t<g.length;t++){var r=
d.za(g[t]);this.zs(d,r,p?"include":"exclude",k)}}!e.v(n.query)&&n.Wu&&(e.v(n.measure)||!n.ji||!m&&d.type===e.u.i.Ic.yp?this.Yta(d,n):(k=this.slice.Yc.fd(n.measure.A))&&!0!==k.Qa&&(l.i.ea.BU(n.measure.$)||(n.measure.$=k.Mm),this.Zta(d,n.query,n.measure)))}clone(){var d=new c(this.slice);d.rows=u.Hc.zj(this.rows);d.Ka=u.Hc.zj(this.Ka);d.values=u.Hc.zj(this.values);d.filters=u.Hc.zj(this.filters);return d}}c.PP=["type","axisName","dataKeys"];f.Bt=c})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||
(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{get rDa(){return h.jc.O.fo.VH}constructor(c){this.slice=c}select(){return e.model.C.F.sc&&e.model.C.F.me!==e.K.Jd.nj?this.Hwa():this.Twa()}Hwa(){for(var c=new f.Bt(this.slice),d=this.slice.vc(!1,!0,!0,!0),g=0;g<d.length;g++){var k=this.slice.nf(d.fa(g).A);this.Sfa(k)&&c.jL(k);k=d.fa(g);if(k.Ef)for(var m=1;m<k.ua.length;m++)c.Im(k,k.ua.fa(m));else c.Im(k)}for(g=0;g<this.slice.Wf.length;g++)d=this.slice.Wf[g],this.Sfa(d)&&c.jL(d);return c.lLa()}Sfa(c){return c.type!==
l.i.Ra.wc&&c.type!==l.i.Ra.Ua}Twa(){var c=new f.Bt(this.slice),d=this.slice.wb.Pc(),g=this.slice.Fb.Pc();this.slice.lf?0<d.length&&c.kba(d):0<d.length&&c.Im(d[0]);this.slice.kf?0<g.length&&c.aba(g):0<g.length&&c.Bo(g[0]);for(d=0;d<this.slice.Wf.length;d++)g=this.slice.Wf[d],g.Qa||c.jL(g);return c.select()}expand(c,d,g={}){const k=new f.Bt(this.slice),m=c==l.i.ha.Ia;var n=this.slice.wb.Pc(),p=this.slice.Fb.Pc();if(m){0<p.length&&k.Bo(p[0]);for(p=0;p<d.length;p++)for(var t=n[p].za(d[p]);!t.dc;)k.Im(t.hierarchy,
t.level),k.zs(n[p],t,"intersect",!0),t=t.parent;n=n[d.length];if(null==n.ic)k.Im(n,n.ua.fa(1));else for(t=1;t<n.ua.length&&(p=n.ua.fa(t),k.Im(n,p),p!=n.ic);t++);}else{0<n.length&&k.Im(n[0]);for(n=0;n<d.length;n++)for(t=p[n].za(d[n]);!t.dc;)k.Bo(t.hierarchy,t.level),k.zs(p[n],t,"intersect",!1),t=t.parent;n=p[d.length];if(null==n.ic)k.Bo(n,n.ua.fa(1));else for(t=1;t<n.ua.length&&(p=n.ua.fa(t),k.Bo(n,p),p!=n.ic);t++);}for(t=0;t<this.slice.Wf.length;t++)n=this.slice.Wf[t],n.Qa||k.jL(n);t=this.Waa(k,m?
l.i.ha.Oa:l.i.ha.Ia,g);g=this.Xaa(k,m?l.i.ha.Oa:l.i.ha.Ia,g);t=t.concat(g);g={};this.z6(g,d,c);t.unshift(k.expand(c,g));return t}cza(c,d,g){c[d.Ef?g.level.A:d.A]=g.A}z6(c,d,g){g=g===l.i.ha.Ia?this.slice.wb:this.slice.Fb;-1===d[0]&&(d=d.slice(1));for(let k=0;k<d.length;k++){let m=g.fa(k),n=m.za(d[k]);c[m.Ef?n.level.A:m.A]=n.A}}Ee(c,d,g){var k={},m=new f.Bt(this.slice),n=c==l.i.ha.Ia,p=this.slice.wb.Pc(),t=this.slice.Fb.Pc();if(n)for(m.kba(p.slice(0,d.length)),0<t.length&&m.Bo(t[0]),t=0;t<d.length-
1;t++)m.zs(p[t],p[t].za(d[t]),"intersect",!0);else for(m.aba(t.slice(0,d.length)),0<p.length&&m.Im(p[0]),p=0;p<d.length-1;p++)m.zs(t[p],t[p].za(d[p]),"intersect",!1);p=g;t=p.hierarchy.ua.fa(p.level.yb+1);if(n)for(m.Im(p.hierarchy,t);!p.dc;)m.Im(p.hierarchy,p.level),p=p.parent;else for(m.Bo(p.hierarchy,t);!p.dc;)m.Bo(p.hierarchy,p.level),p=p.parent;m.zs(g.hierarchy,g,"intersect",n);for(g=0;g<this.slice.Wf.length;g++)p=this.slice.Wf[g],p.Qa||m.jL(p);g=this.Waa(m,n?l.i.ha.Oa:l.i.ha.Ia,k);k=this.Xaa(m,
n?l.i.ha.Oa:l.i.ha.Ia,k);g=g.concat(k);k={};this.z6(k,d,c);g.unshift(m.Ee(c,k));return g=this.zza(g)}Tfa(c,d){return c.sM&&c.filter.Gh&&0<c.filter.Hi().length?-1!==c.filter.Hi().indexOf(d.ordinal):!0}zza(c){const d=new Set,g=[];for(let m=0;m<c.length;m++){const n=c[m];var k={};for(let p in n)n.hasOwnProperty(p)&&-1===f.Bt.PP.indexOf(p)&&(k[p]=n[p]);k=JSON.stringify(k);d.has(k)||(d.add(k),g.push(n))}return g}Xaa(c,d,g){const k=[],m=d===l.i.ha.Ia,n=this.slice.wb.Pc(),p=this.slice.Fb.Pc(),t=m?this.slice.$b.ld:
this.slice.Lb.ld;for(let A=0;A<t.length;A++){const C=t[A],B=c.clone();if(m){for(var r=0;r<C.length-1;r++){var v=n[r],y=v.za(C[r+1]);if(!this.Tfa(v,y))break;B.Im(v);B.zs(v,y,"intersect",!0)}B.Im(n[r])}else{for(r=0;r<C.length-1;r++){v=p[r];y=v.za(C[r+1]);if(!this.Tfa(v,y))break;B.Bo(v);B.zs(v,y,"intersect",!1)}B.Bo(p[r])}this.z6(g,C,d);k.push(B.expand(d,g))}return k}Waa(c,d,g){const k=[],m=d===l.i.ha.Ia,n=this.slice.wb.Pc(),p=this.slice.Fb.Pc(),t=m?this.slice.$b.ue:this.slice.Lb.ue;for(let v=0;v<t.length;v++){var r=
t[v].slice();const y=m?n[r.length-3]:p[r.length-3],A=c.clone();r=r.pop();let C=r=y.za(r);const B=y.ua.fa(r.level.yb+1);if(m)for(A.zs(y,r,"intersect",m),A.Im(y,B);!C.dc;)A.Im(y,C.level),C=C.parent;else for(A.zs(y,r,"intersect",m),A.Bo(y,B);!C.dc;)A.Bo(y,C.level),C=C.parent;this.cza(g,y,r);k.push(A.Ee(d,g))}return k}cd(c,d,g,k=null){return this.rDa?this.aza(c,d,k):this.X0(c,d,k)}aza(c,d,g=null){const k=new f.Bt(this.slice),m=this.slice.qb.Pc(),n=this.slice.wb.Pc(),p=this.slice.Fb.Pc(),t=this.slice.Wf;
this.W0(m,[],k,g,!1);this.W0(n,c,k,g,!0);this.W0(p,d,k,g,!1);for(c=0;c<t.length;c++)-1===g.indexOf(t[c].A)&&g.push(t[c].A);return k.cd(g,!0)}W0(c,d,g,k,m){for(var n,p=0;p<c.length;p++)if(g.t_(c[p],!e.v(d[p]),m),d[p]&&(n=c[p].za(d[p]))&&g.zs(c[p],n,"intersect",m),c[p].Ef){let r=k.indexOf(c[p].A);-1!==r&&k.splice(r,1);for(n=1;n<c[p].ua.length;n++){var t=c[p].ua.fa(n);-1===k.indexOf(t.A)&&(-1===r?k.push(t.A):k.splice(r++,0,t.A))}}else-1===k.indexOf(c[p].A)&&k.push(c[p].A)}X0(c,d,g=null){const k=new f.Bt(this.slice),
m=this.slice.qb.Pc(),n=this.slice.wb.Pc(),p=this.slice.Fb.Pc(),t=this.slice.Wf,r={};this.Y0(m,[],r,k,g);this.Y0(n,c,r,k,g);this.Y0(p,d,r,k,g);for(c=0;c<t.length;c++)-1===g.indexOf(t[c].A)&&g.push(t[c].A);return k.cd(g,r,!1)}Y0(c,d,g,k,m){var n;let p,t;for(var r=0;r<c.length;r++){t=c[r].A;k.t_(c[r],!e.v(d[r]));if(d[r]&&(p=c[r].za(d[r]))){let v=null!==(n=p.level.inputType)&&void 0!==n?n:p.level.type;g[t]=l.i.ib.qN(v)?p.nc:p.A}-1===m.indexOf(t)&&m.push(t)}}}f.Wka=b;class a{constructor(c){this.page=0;
this.vv=null;this.IG=d=>{null!=this.vv?d.pageToken=this.vv:d.page=this.page};e.v(c.vv)||(this.vv=c.vv);e.v(c.page)||(this.page=c.page)}}f.cl=a})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(c){this.iI=[];this.withCredentials=this.closed=!1;"string"===typeof c.url?this.url=c.url:e.Pg(c.url)&&(this.Bka=(d,g,k)=>c.url(d,g,k));this.hp=c.hp;this.tc=c.tc;this.withCredentials=c.withCredentials}$h(c){this.tc=c;for(const d of this.iI)d.$h(this.tc)}xv(c,d,g,k=null){if(e.v(this.url))e.v(this.Bka)?e.ve(()=>{g(e.model.B.j.vpa,null)},1):e.ve(()=>{d=this.Eca(d);this.Bka(JSON.stringify(d),n=>{if(!this.closed)if("object"==typeof n)g(null,
n);else if("string"==typeof n)try{var p=JSON.parse(n);g(null,p)}catch(t){g(t,null)}},n=>{if(!this.closed)if("object"==typeof n)g(n.message||n,null);else if("string"==typeof n)try{var p=JSON.parse(n);g(p.message||p,null)}catch(t){g(t,null)}})},1);else{var m=this.Pxa();m.gf=g;m.KO=k;d=this.Eca(d,m);m.data=JSON.stringify(d);m.load(this.hp?this.url:`${this.url}/${c}`)}}Pxa(){var c=z.Qt.Rv,d=new a;d.contentType=z.Ft.qX;d.Ir=c;d.withCredentials=this.withCredentials;d.$h(this.tc);d.N(w.ia.Qc,()=>this.Br(d));
d.N(w.ia.xa,g=>this.Rb(g,d));this.iI.push(d);return d}Eca(c,d){if(!e.v(b.XL)){var g=JSON.parse(JSON.stringify(c));g.requestHeaders=e.v(this.tc)?{}:this.tc;g=b.XL(g);e.v(g)||(e.v(g.requestHeaders)||(e.v(d)||d.$h(g.requestHeaders),delete g.requestHeaders),c=g)}return c}b0(c){c.close();this.iI.splice(this.iI.indexOf(c),1)}Br(c){if("object"==typeof c.response)c.gf(null,c.response);else if("string"==typeof c.response)try{var d=JSON.parse(c.response);c.gf(null,d)}catch(g){c.gf(g,null)}this.b0(c)}Rb(c,d){d.gf(this.parseError(c.data,
d),null);this.b0(d)}parseError(c,d){let g=e.v(c)?"":c;if("object"==typeof d.response)g+=d.response.message||d.response;else if("string"==typeof d.response)try{var k=JSON.parse(d.response);g+=k.message||k}catch(m){g=e.v(c)?m:c}return g}close(){for(this.closed=!0;0<this.iI.length;)this.b0(this.iI[0])}}b.XL=null;f.SA=b;class a extends z.tk{tv(c){if(null!=this.xhr&&4===this.xhr.readyState){if(200===this.xhr.status)return this.SI();if(401===this.xhr.status&&e.Pg(this.KO))return this.KO(d=>{d?this.retry():
this.Rb(c)});this.Rb(c)}null!=this.xhr&&3>this.xhr.readyState&&!this.connected&&(this.connected=!0,this.Ha(new w.ia(w.ia.ZA)))}Rb(){var c;0===this.xhr.status?c=e.P.bind(e.model.B.j.upa,this.url):404===this.xhr.status?c=e.P.bind(e.model.B.j.npa,this.url):400===this.xhr.status?c=e.P.bind(e.model.B.j.mpa,this.url):500===this.xhr.status&&(c=e.P.bind(e.model.B.j.opa,this.url));this.response=this.xhr.response||this.xhr.responseText||this.xhr.statusText;this.Ha(new w.ia(w.ia.xa,this,c))}}})(h.jc||(h.jc=
{}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{Al(a){if(e.model.Za.R().z2(e.model.Za.qK)){const c=new e.model.jd(e.model.Za.qK,d=>{if(!e.v(d)&&!e.v(d.requestHeaders)){const g=this.la.tc||{};for(let k in d.requestHeaders)d.requestHeaders.hasOwnProperty(k)&&(g[k]=d.requestHeaders[k]);this.la.tc=g;this.client.$h(g)}a(!0)});e.model.Za.R().Ha(c)}else a(!1)}}f.M6=b})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.M6{constructor(a){super();this.wa=l.Ma.R();this.bA=new Map;this.la=a;this.client=this.la.$w()}load(a,c,d,g){this.Cb=c;this.Xa=d;this.Re=g;this.Sja=!1;this.TCa()}TCa(){this.client.xv("handshake",{type:"handshake",version:e.Cg.Iq},(a,c)=>{a=!0;let d;e.v(c)||(this.client.close(),d=c.version,a=this.Qva(d),this.la.Tia=d,this.client=this.la.$w());if(a&&!this.Sja)this.I3();else if(!e.v(d)&&this.uEa(d))return this.Rb(e.P.bind(e.model.B.j.tpa,
this.la.url,b.JY))},a=>this.Al(a));e.Ca(!0,e.model.B.j.IF)}Qva(a){return e.ka(a)?!0:-1!=e.P.GS(a,b.JY)}uEa(a){return-1==e.P.GS(a,b.JY)}I3(){this.Sja=!0;this.client.xv("fields",{index:this.la.index,type:"fields"},(a,c)=>{if(a)return this.Rb(a);this.Dr(c)},a=>this.Al(a));e.Ca(!0,e.model.B.j.IF)}Dr(a){e.Ca(!1);null!=this.Re&&this.Re();if(e.v(a)||e.v(a.fields))return this.Rb(e.P.bind(e.model.B.j.spa,this.la.url));a.sorted&&(this.wa.O.tx=!0);let c;e.v(a.aggregations)||(c=this.cJa(a.aggregations));e.v(a.filters)||
this.rJa(a.filters);this.wI(a.fields,c);null!=this.Cb&&this.Cb()}cJa(a){let c={};if(Array.isArray(a))c[l.i.input.sa.iJ]=a.map(n=>n.toString());else for(var d=0;d<l.i.input.sa.rL.length;d++){var g=l.i.input.sa.rL[d];if(!e.v(a[g])&&Array.isArray(a[g])){e.v(c[g])&&(c[g]=[]);for(var k=0;k<a[g].length;k++){var m=a[g][k].toLowerCase();c[g].push(m);-1===l.i.ea.QA.indexOf(m)&&m!==l.i.ea.NONE&&(l.i.ea.QA.push(m),l.i.ea.iP.push(m))}}}return c}eya(a){let c;switch(a){case l.i.input.sa.$c:c=l.i.tb.fl;break;case l.i.input.sa.jb:c=
l.i.tb.jb;break;case l.i.input.sa.Ua:c=l.i.tb.Ua}return c}rJa(a){if(!0===a||!1===a)this.wa.O.sH.oL=a;else{for(var c=0;c<l.i.input.sa.rL.length;c++){var d=l.i.input.sa.rL[c];if(!e.v(a[d])){const g=this.Lha(a[d],this.eya(d));this.wa.O.sH.nba(d,g)}}f.O.fo.VH=!0===a.advanced;f.O.fo.VH&&(f.O.fo.WH=1==e.P.GS(this.la.Tia,"2.8.21"))}}Lha(a,c){if(!0===a||!1===a)return a;let d=new l.O.yra;e.v(a.members)||(d.nd=!0===a.members);if(!e.v(a.query))if("boolean"===typeof a.query)d.query=a.query;else if(Array.isArray(a.query))for(let g of a.query)if(c==
l.i.tb.fl&&l.i.Eb.ih(g)||c==l.i.tb.jb&&l.i.Ug.ih(g)||c==l.i.tb.Ua&&l.i.cc.ih(g)||e.v(c)&&l.i.Eb.ih(g)&&l.i.Ug.ih(g)&&l.i.cc.ih(g))e.v(d.query)&&(d.query=[]),d.query.push(g);if(!e.v(a.valueQuery))if("boolean"===typeof a.valueQuery)d.vm=a.valueQuery;else if(Array.isArray(a.valueQuery))for(let g of a.valueQuery)l.i.Wb.ih(g)&&(e.v(d.vm)&&(d.vm=[]),d.vm.push(g));return d}wI(a,c){for(let m=0;m<a.length;m++){var d=a[m],g=d.type;if(!d.hasOwnProperty("uniqueName")||e.v(d.uniqueName)||"string"!==typeof d.uniqueName)continue;
var k=d.uniqueName;let n=void 0;if(!e.v(d.aggregations)&&Array.isArray(d.aggregations)){const p=d.aggregations;n=[];for(let t=0;t<p.length;t++){const r=p[t].toLowerCase();n.push(r);-1===l.i.ea.QA.indexOf(r)&&r!==l.i.ea.NONE&&(l.i.ea.QA.push(r),l.i.ea.iP.push(r))}}void 0!==n&&0<n.length?d.supportedAggregations=n:e.v(c)||(e.v(c[g])?e.v(c[l.i.input.sa.iJ])||(d.supportedAggregations=c[l.i.input.sa.iJ]):d.supportedAggregations=c[g]);d.type===l.i.input.sa.Ua&&(d.type=l.i.input.sa.oj);this.wa.O.Sy(d,k);
g=this.wa.O.uD(k);g instanceof f.O.WO&&!e.v(d.filters)&&(k=e.model.hb.lB.ZT(g),d=this.Lha(d.filters,k),this.wa.O.sH.dua(g.A,d))}}Rb(a){console.error(a);e.Ca(!1);a=a.message||a;e.Va(a,e.model.B.j.xa,e.ob.xa);this.Xa&&e.Pg(this.Xa)&&(this.Xa(a),this.Xa=null)}xl(a,c,d){var g=this.wa.ga.mapping.La(a.A,"filters");!1===g||!1===g.members?setTimeout(c,1,a):(this.Xa=d,e.Ca(!0,e.model.B.j.zm,a.caption),a.Ef?(d=this.wa.qa.rows.Bb(a.A),g=this.wa.qa.Ka.Bb(a.A),d=this.wa.qa.hf&&d||this.wa.qa.Xf&&g,null!==a.ic||
d?this.OJa(a,()=>{this.FN(a,k=>this.ek(k,c))}):this.Nk(a,a.pd,k=>this.ek(k,c))):this.H3(a,new f.cl({page:0}),k=>this.ek(k,c)))}OJa(a,c){const d=[];for(let k=1;k<a.ua.length;k++){const m=a.ua.fa(k);!1!==this.la.mapping.La(m.A,"preloadMemberCaptions",!1)&&d.push(m)}const g=()=>{if(0===d.length)c();else{var k=d.shift();this.F3(k,new f.cl({page:0}),g)}};g()}F3(a,c,d){const g={index:this.la.index,type:"members",field:{uniqueName:a.A}};c.IG(g);this.client.xv("members",g,(k,m)=>{if(k)return this.Rb(k);if(!this.xJa(a,
m))return this.Rb(e.P.bind(e.model.B.j.oY,this.la.url));e.v(m.nextPageToken)?!e.v(m.pageTotal)&&c.page+1<m.pageTotal?(e.Ca(!0,e.model.B.j.zm,`${a.caption} - ${Math.round((c.page+1)/m.pageTotal*100)}%`),this.F3(a,new f.cl({page:c.page+1}),d)):d():(e.Ca(!0,e.model.B.j.zm,a.caption),this.F3(a,new f.cl({vv:m.nextPageToken}),d))},k=>this.Al(k))}H3(a,c,d){var g={};if(a.ua.fa(1).type===l.i.ib.Ua||a.ua.fa(1).type===l.i.ib.Mc)g.interval=a.interval;g.uniqueName=a.A;g={index:this.la.index,type:"members",field:g};
c.IG(g);this.client.xv("members",g,(k,m)=>{if(k)return this.Rb(k);if(!this.YV(a,m))return this.Rb(e.P.bind(e.model.B.j.oY,this.la.url));e.v(m.nextPageToken)?!e.v(m.pageTotal)&&c.page+1<m.pageTotal?(e.Ca(!0,e.model.B.j.zm,`${a.caption} - ${Math.round((c.page+1)/m.pageTotal*100)}%`),this.H3(a,new f.cl({page:c.page+1}),d)):(a.Td=!0,d(a)):(e.Ca(!0,e.model.B.j.zm,a.caption),this.H3(a,new f.cl({vv:m.nextPageToken}),d))},k=>this.Al(k))}OL(a){for(var c,d;!a.dc;){var g={};if(a.level.type===l.i.ib.Ua||a.level.type===
l.i.ib.Mc)g.interval=a.level.hierarchy.interval;g.uniqueName=a.level.A;var k=a.A,m=null!==(c=a.level.inputType)&&void 0!==c?c:a.level.type;l.i.ib.qN(m)&&!isNaN(a.nc)?k=a.nc:1<a.level.yb&&(k=a.A.substr(1,a.A.length-2).split("].[").pop());m=d;d={field:g,include:[{member:k}]};m&&(d.include[0].filter=m);a=a.parent}return d}Iga(a,c,d,g){var k={};if(a.type===l.i.ib.Ua||a.type===l.i.ib.Mc)k.interval=a.hierarchy.interval;k.uniqueName=a.A;k={index:this.la.index,type:"members",field:k};var m=this.OL(c);m&&
(k.filter=f.O.fo.WH?{type:"and",value:[m]}:m);d.IG(k);this.client.xv("members",k,(n,p)=>{if(n)return this.Rb(n);if(!this.gJa(c,p))return this.Rb(e.P.bind(e.model.B.j.oY,this.la.url));!e.v(p.pageTotal)&&d.page+1<p.pageTotal?(e.Ca(!0,e.model.B.j.zm,a.caption+" - "+(d.page+1)+"/"+p.pageTotal),this.Iga(a,c,new f.cl({page:d.page+1}),g)):(c.Cf=!1,g(a.hierarchy))},n=>this.Al(n))}ek(a,c){var d=a.yv;this.c6(d);if(0<a.filter.Dl.length)this.EN(a,a.filter.Dl,a.filter.yI,k=>{k.Fw();this.ek(k,c)});else if(0<d.length){var g=
d.shift();0==d.length&&a.dca();a.yv=d;d=a.Ib(g[1]);a.wz(d);this.Nk(a,d,k=>this.ek(k,c))}else a.Td=!0,c(a)}c6(a){a.sort((c,d)=>{if(c.length!==d.length)return 0;var g=c.length-1;c=c[g];d=d[g];return e.v(d)||void 0===d.indexOf?1:e.v(c)||void 0===c.indexOf||-1!==d.indexOf(c)?-1:-1!==c.indexOf(d)?1:0})}gJa(a,c){if(e.v(c)||e.v(c.members))return!1;if(0===c.members.length||1===c.members.length&&e.ka(c.members[0].value))return a.Cf=!1,a.eh=!1,!0;const d=c.members;for(let g=0;g<d.length;g++){const k=this.pc(a.hierarchy,
a,d[g]);c.sorted&&a.tS.push(k.ordinal);k.Cf=!k.level.ev}return!0}xJa(a,c){var d;if(e.v(c)||e.v(c.members))return!1;c=c.members;const g=null!==(d=this.bA.get(a))&&void 0!==d?d:new Map;for(d=0;d<c.length;d++){var k=c[d];const m=String(k.value);k=String(k.id);0==g.has(k)&&g.set(k,m)}this.bA.set(a,g);return!0}YV(a,c){if(e.v(c)||e.v(c.members))return!1;for(var d=c.members,g=0;g<d.length;g++)this.pc(a,null,d[g]);c.sorted&&(a.tx=!0);return!0}pc(a,c,d){var g=String(d.value);var k=a.type===l.i.Ic.Hv&&void 0!==
d.id?String(d.id):c&&!c.dc?("["===c.A.substr(0,1)?c.A:"["+c.A+"]")+".["+g+"]":g;var m=a.Ib(k);e.v(m)&&(g=new l.O.be({A:k,caption:g}),e.v(c)||(g.parent=c),g.value=d.value,a.Ef?(c=a.ua.fa(c.level.yb+1),d=c.A,g.level=c,c=c.inputType,d=this.wa.O.wD(d)):(d=this.wa.O.wD(a.A),c=a.inputType),m=a.pc(g,d,c));a.wW(m);return m}Nk(a,c,d){null==c||!c.dc&&!c.Cf||c.Hh?d(a):this.Iga(a.ua.fa(c.level.yb+1),c,new f.cl({page:0}),()=>{c.Cf=!1;d(a)})}FN(a,c){this.G3(a,new f.cl({page:0}),()=>{c(a)})}G3(a,c,d){for(var g=
[],k=1;k<a.ua.length;k++){var m=a.ua.fa(k);g.push({uniqueName:m.A});if(m==a.ic)break}m=[];for(k=0;k<g.length;k++)m.push({field:g[k],func:"count"});g={type:"select",index:this.la.index,query:{aggs:{by:{rows:g},values:m}}};c.IG(g);this.client.xv("select",g,(n,p)=>{n?(this.Rb(n),d(a)):this.zJa(p,a)?e.v(p.nextPageToken)?!e.v(p.pageTotal)&&c.page+1<p.pageTotal?this.G3(a,new f.cl({page:c.page+1}),d):d(a):this.G3(a,new f.cl({vv:p.nextPageToken}),d):(this.Rb(e.P.bind(e.model.B.j.h9,this.la.url)),d(a))},n=>
this.Al(n))}zJa(a,c){if(e.v(a)||e.v(a.aggs))return!1;a=a.aggs;for(var d,g,k,m,n,p,t=0;t<a.length;t++)if(d=a[t].keys,!e.v(d)){n=void 0;g=[];for(let v=1;v<c.ua.length;v++){k=c.ua.fa(v);var r=k.A;if(!d.hasOwnProperty(r))break;r=d[r];m=this.bA.has(k)&&this.bA.get(k).has(r)?this.bA.get(k).get(r):r;g.push(r);k=1===g.length?r:`[${g.join("].[")}]`;p=c.Ib(k);null==p&&(p=this.pc(c,null!==n&&void 0!==n?n:c.pd,{A:k,caption:m,parent:n,id:r,value:m}),p.Cf=!p.level.ev);n=p}}return!0}EN(a,c,d,g){this.Wza(a,c,g)}Wza(a,
c,d){(new Promise(async g=>{for(let k=0;k<c.length;k++)await this.Xza(a,"["===c[k].substr(0,1)?c[k].substr(1,c[k].length-2).split("].["):[c[k]]);g(null)})).then(()=>{d(a)})}async Xza(a,c){for(let g=0;g<c.length;g++){var d="";if(0<g){d=[];for(let m=0;m<=g;m++)d.push("["+c[m]+"]");d=d.join(".")}else d=c[0];let k;a.type===l.i.Ic.Ua?(d=(new e.Rf(d)).getTime(),k=a.Pu(d)):k=a.Ib(d);await new Promise(m=>{this.Nk(a,k,m)})}}cA(){}Aq(a,c,d,g){d&&(this.Cb=d);g&&(this.Xa=g);throw"Not Implemented";}BC(){return!1}cancel(){this.Re=
this.Xa=this.Cb=this.la=this.wa=null;this.client&&(this.client.close(),this.client=null);this.bA&&(this.bA.clear(),this.bA=null)}}b.JY="2.8.5";f.Xka=b})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.M6{constructor(){super(...arguments);this.wa=l.Ma.R();this.ta=this.wa.ta}load(a,c,d,g){this.la=a;this.query=c;this.Cb=d;this.Xa=g;this.client=this.la.$w();this.Ax()}Ax(){e.Ca(!0,e.model.B.j.mg);this.h5=0;if(Array.isArray(this.query.body)){const a=new u.FB;this.query.body.forEach(c=>{a.add(d=>this.pV(c,this.query.type,new f.cl({page:0}),d))});a.Ze(()=>{null!=this.Cb&&this.Cb()})}else this.pV(this.query.body,this.query.type,new f.cl({page:0}),
()=>{null!=this.Cb&&this.Cb()})}pV(a,c,d,g){let k=this.Tva(a);a={type:"select",index:this.la.index,query:k};e.model.C.F.sc||(a.querytype=c);d.IG(a);this.client.xv("select",a,(m,n)=>{if(m)return this.Rb(m,this.Xa),g();if(!this.FJa(n))return this.Rb(e.P.bind(e.model.B.j.h9,this.la.url),this.Xa),g();e.v(n.nextPageToken)?!e.v(n.pageTotal)&&d.page+1<n.pageTotal?(e.Ca(!0,e.model.B.j.mg,`${Math.round((d.page+1)/n.pageTotal*100)}%`),this.pV(k,c,new f.cl({page:d.page+1}),g)):g():this.pV(k,c,new f.cl({vv:n.nextPageToken}),
g)},m=>this.Al(m))}Tva(a){a=u.Hc.zj(a);for(let c=0;c<f.Bt.PP.length;c++)a[f.Bt.PP[c]]&&delete a[f.Bt.PP[c]];return a}FJa(a){if(e.v(a))return!1;a.aggs&&(this.dJa(a.aggs,this.$H()),(e.v(a.nextPageToken)&&e.v(a.pageTotal)||1>=a.pageTotal-a.page)&&this.h5++);a.hits&&this.sJa(a.fields,a.hits);return!0}$H(){return e.model.C.F.sc&&e.model.C.F.me!==e.K.Jd.nj}sJa(a,c){for(var d=this.Y1(this.wa.qa.vc(!1,!0,!0,!0)),g=0;g<c.length;g++){for(var k=[],m=[],n,p=0;p<a.length;p++){n=a[p].uniqueName;var t=this.ta.ii(n),
r=c[g][p];n=d.getItem(n);var v=n.hierarchy;if(v.type===l.i.Ic.Ua){var y=v.Pu(r);y=e.v(y)?-1:y.ordinal}else v.type!==l.i.Ic.Hv?l.i.ib.qN(n.level.type)?(y=v.Pu(parseFloat(r)),y=null!==y?y.ordinal:-1):y=v.ex(e.ka(r)?"":""+r):y=v.ex(e.ka(r)?"":""+r);if(-1===y)if(v.Ef){var A=n.VV;y=[];for(var C=1;C<v.ua.length;C++){var B=v.ua.fa(C),H=a.findIndex(M=>M.uniqueName===B.A);y.push(c[g][H]);if(A===B.A)break}A="["+y.join("].[")+"]";C=A+".["+r+"]";1===y.length&&(A=y[0]);y=v.ex(C);-1===y&&(B=n.level,A=v.pc(new l.O.be({A:C,
caption:r,value:r,level:B,Ki:A}),l.i.ib.FA(B.type)),null!=A&&(y=A.ordinal))}else A=this.wa.O.wD(v.A),A=v.pc(new l.O.be({A:String(r),caption:String(r),value:r}),A),null!=A&&(y=A.ordinal);k[n.nc]=y;m[t]=v.type===l.i.Ic.yp?"number"===typeof r?r:NaN:v.type===l.i.Ic.Ua?!e.model.C.F.qr||null!==r&&"null"!==r?"number"===typeof r?r:NaN:null:1}this.ta.pDa(k,m)}}Y1(a){for(var c,d=new e.ub,g=0,k=0,m=0;m<a.length;m++){c=a.fa(m);if(c.Ef){k++;for(var n=1;n<c.ua.length;n++)d.Ta(c.ua.fa(n).A,{hierarchy:c,ordinal:g,
level:c.ua.fa(n),VV:c.ua.fa(n-1).A,ic:c.ic,nc:k++})}else n=this.wa.ga.mapping.La(c.A,"filters"),d.Ta(c.A,{hierarchy:c,ordinal:g,level:c.ua.fa(1),nc:k++,Gh:!1!==n&&!1!==n.members});g++}return d}dJa(a,c){const d=this.Y1(this.wa.qa.wb),g=this.Y1(this.wa.qa.Fb);let k=!1,m,n;m=this.query.jg;if(Array.isArray(this.query.body)){var p=this.query.body[this.h5];n=p.dataKeys;0<this.h5&&(k=!0)}else p=this.query.body,n=this.query.Nn;p=p.type;for(let r=0;r<a.length;r++)if(c){var t=this.Pha(a[r].values);this.ta.BA(t)}else{if(p===
l.i.Md.xF||p===l.i.Md.Iv){if(e.v(a[r].keys))continue;if(!this.fNa(a[r].keys,n))continue}t=this.Pha(a[r].values);const v=this.Oha(a[r].keys,d),y=this.Oha(a[r].keys,g);this.nga(v)&&this.nga(y)&&this.ta.insert(v,y,t,m,this.query.uw,!k)}}fNa(a,c){if(c)for(let d in c)if(void 0===a[d]&&a[d]!==c[d])return!1;return!0}nga(a){for(let c=0;c<a.length;c++)if(e.v(a[c]))return!1;return!0}Pha(a){var c=[],d;for(d in a)if(a.hasOwnProperty(d))for(var g in a[d])if(a[d].hasOwnProperty(g)){var k=this.ta.ii(d,g,!0);c[k]=
a[d][g]}return c}Oha(a,c){const d=[];if(e.v(a))return d;const g=c.length;for(let v=0;v<g;v++){var k=c.Uh(v);if(void 0!==a[k]){var m=a[k];"string"!==typeof m&&(m=""+m);var n=c.getItem(k);const y=[];if(n.level){var p=n.VV;for(1<n.level.yb&&(m=`[${m}]`);void 0!==a[p];)m=`[${a[p]}].${m}`,p=c.getItem(p).VV}n.hierarchy.type===l.i.Ic.Hv||n.level.type!==l.i.ib.Ua&&n.level.type!==l.i.ib.Mc&&n.level.type!==l.i.ib.ec&&n.level.type!==l.i.ib.Sl?p=n.hierarchy.ex(m):(p=n.hierarchy.Pu(a[k]),p=e.v(p)?-1:p.ordinal);
const A=c.getItem(n.hierarchy.ua.fa(1).A).ordinal;var t=this.wa.qa.rows.Bb(n.hierarchy.A),r=this.wa.qa.Ka.Bb(n.hierarchy.A);if(n.ic||this.wa.qa.hf&&t||this.wa.qa.Xf&&r){if(-1===p){t=n.VV;m=[];for(r=1;r<n.hierarchy.ua.length;r++){const C=n.hierarchy.ua.fa(r);m.push(a[C.A]);if(t===C.A)break}t="["+m.join("].[")+"]";r=t+".["+a[k]+"]";1===m.length&&(t=m[0]);k=n.hierarchy.pc(new l.O.be({A:r,caption:a[k],level:n.level,Ki:t}));null!=k&&(p=k.ordinal)}y.push(n.level.yb);y.push(p);void 0===d[A]&&(d[A]=[n.ic?
n.hierarchy.ua.length-n.ic.yb:0]);d[A].push(y)}else n.level?(-1===p&&!1===n.Gh&&(k=n.hierarchy.pc(new l.O.be({A:m,caption:a[k]})),null!=k&&(p=k.ordinal)),y.push(n.level.yb),y.push(p),d[A]=y):(-1===p&&!1===n.Gh&&(n=n.hierarchy.pc(new l.O.be({A:m,caption:a[k]})),null!=n&&(p=n.ordinal)),y.push(1),y.push(p),d.push(y))}}return d}Rb(a,c){console.error(a);e.Ca(!1);e.Va(a.message||a,e.model.B.j.xa,e.ob.xa);e.Pg(c)&&c()}cd(a,c,d,g,k,m){e.Ca(!0,e.model.B.j.mg);this.la=a;e.v(this.client)&&(this.client=this.la.$w());
this.fD=[];this.C3(c,new f.cl({page:0}),m)}C3(a,c,d){const g={type:"select",index:this.la.index,query:a.body};c.IG(g);this.client.xv("select",g,(k,m)=>{if(k)return this.Rb(k,d);if(!this.oJa(m))return this.Rb(e.P.bind(e.model.B.j.ppa,this.la.url),d);e.v(m.nextPageToken)?!e.v(m.pageTotal)&&c.page+1<m.pageTotal?this.C3(a,new f.cl({page:c.page+1}),d):d(this.fD):this.C3(a,new f.cl({vv:m.nextPageToken}),d)},k=>this.Al(k))}oJa(a){if(e.v(a))return!1;if(a.fields&&0==this.fD.length){var c=a.fields.map(d=>d.A);
this.fD.push(c)}if(a.hits)for(c=0;c<a.hits.length;c++)this.fD.push(a.hits[c]);return!0}cancel(){this.Xa=this.query=this.Cb=this.la=this.ta=this.wa=null;this.client&&(this.client.close(),this.client=null);this.fD&&(this.fD.length=0,this.fD=null)}}f.Ska=b})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.UX{constructor(){super(...arguments);this.y6=new e.ub}LC(){this.y6.clear();super.LC()}La(a,c,d,g=!1){g=g?0:this.zZ(a,c);const k=this.ii(d);if(e.v(this.values[g]))return l.i.ea.xe(d.$)?0:NaN;if(d.Qa){this.mG=!1;a=this.bq([g],d.Ud,d.Lk,0,a,c,d.Jn);if(!0===a||!1===a)a=!0===a?1:0;this.values[g][k]=a}return e.v(this.values[g][k])?l.i.ea.xe(d.$)?0:NaN:this.values[g][k]}ww(a,c,d,g){return this.bq([this.zZ(a,c)],d,!1,g)}zZ(a,c){return a+
" "+c}BA(a){this.values[0]=a}Wg(a,c){return null===a||0===a.length?NaN:this.values[a[0]]?this.values[a[0]][c]:NaN}Q1(a,c){const d=this.slice.Gi(new e.model.hb.oh(a,c));null!=d&&(c=l.i.ea.uN(d.$)?d.$:d.Mm);return this.ii(a,c,!this.mG)}GM(a,c){const d=l.i.ea.pj;c=this.Q1(c.A,d);return this.Wg(a,c,d)}Hn(a,c){super.Hn(a,c);this.Jm(a.A)}insert(a,c,d,g,k,m){var n=[],p=[];const t=[];for(var r=0;r<a.length;r++)if(Array.isArray(a[r][1])){p[r]=a[r][a[r].length-1][1];if(a[r].length>a[r][0]){var v=[];g&&(v=g.slice());
v.concat(n.slice());0<v.length&&t.push(v)}for(v=1;v<a[r].length;v++)n[this.ua[this.Zh[r]][a[r][v][0]]]=a[r][v][1]}else{if(-1===a[r][1])return;p[r]=a[r][1];n[this.ua[this.Zh[r]][a[r][0]]]=p[r]}a=[];for(r=0;r<c.length;r++)if(Array.isArray(c[r][1]))for(a[r]=c[r][c[r].length-1][1],v=[],g&&(v=g.slice()),v.concat(n.slice()),0<v.length&&t.push(v),v=1;v<c[r].length;v++)n[this.ua[this.xj[r]][c[r][v][0]]]=c[r][v][1];else{if(-1===c[r][1])return;a[r]=c[r][1];n[this.ua[this.xj[r]][c[r][0]]]=a[r]}p=this.zZ(p,a);
c=this.zb.length;void 0!==this.values[p]?(n=this.y6.getItem(n.join("-")),void 0!==n&&(c=n),m&&(this.values[p]=d)):(this.qh.push(c),this.zb.push(n),this.y6.Ta(n.join("-"),this.zb.length-1),this.values[p]=d);0<g.length&&(0===this.Cd.length&&(this.expand([],l.i.ha.Ia,void 0),this.expand([],l.i.ha.Oa,void 0)),d=k===l.i.ha.Ia?this.md(g,this.Cd):this.md(g,this.Od),void 0!=d&&-1===d[0][0].indexOf(c)&&d[0][0].push(c));if(0<t.length)for(d=0;d<t.length;d++){g=k===l.i.ha.Ia?this.md(t[d],this.Cd):this.md(t[d],
this.Od);if(void 0===g){g=[];m=void 0;for(n=0;n<t[d].length;n++)g.push(t[d][n]),m=k===l.i.ha.Ia?this.md(g,this.Cd):this.md(g,this.Od),void 0!==m&&void 0!==m[0]&&void 0!==m[0][0]&&(p=t[d][n+1])&&(m[p]=[[[c],[],[],void 0,void 0]]);g=m}void 0!==g&&void 0!==g[0]&&void 0!==g[0][0]&&-1===g[0][0].indexOf(c)&&g[0][0].push(c)}}pDa(a,c){let d;if(0===this.zb.length)for(d=0;d<a.length;d++)this.zb[d]=[];this.qh=e.Ja.Pr(this.qh,this.HA);for(d=0;d<a.length;d++)this.zb[d]=e.Ja.Pr(this.zb[d],a[d]);0===this.values.length&&
this.BA([]);this.values.push(c)}XT(a,c,d,g,k){if(void 0===this.eb[a])return NaN;if(g){this.mG=!0;if(d.Qa){a=this.bq([this.eb[a]+1],d.Ud,d.Lk,0,null,null,d.Jn);if(!0===a||!1===a)a=!0===a?1:0;return a}return this.values[this.eb[a]+1][c]}c=this.le.indexOf(this.th[c]);void 0!==k&&(c=this.ua[c][k+1]);return void 0===this.zb[c]?NaN:this.zb[c][this.eb[a]]}filter(){}Ny(a,c,d){if(null!==a){var g=a[0][0];if(0<g.length&&!isNaN(c)){for(let k=0;k<g.length;k++){const m=this.zb[g[k]][this.ua[c][1]];0!==m&&void 0!==
m&&(void 0===a[m]?(a[m]=[[[g[k]],[],[],void 0,void 0,!1]],a[0][1].push(m)):a[0][5]||a[m][0][0].push(g[k]))}void 0===a[0][3]&&(a[0][3]=[]);void 0===d?a[0][3][this.zg.length]=!0:a[0][3][this.ii(d)]=!0;a[0][5]=!0}}}jR(a,c,d,g,k){if(void 0!==c&&void 0!==c[0]){var m=c[0][0];if(0<m.length&&!isNaN(g)){for(let n=0;n<m.length;n++){const p=this.zb[m[n]][g];0!==p&&void 0!==p&&(void 0===a[p]?(a[p]=[[[m[n]],[],[],void 0,void 0]],void 0===c[0][2]&&(c[0][2]=[]),c[0][2].push(p),this.dm[d][p]=g):-1===a[p][0][0].indexOf(m[n])&&
a[p][0][0].push(m[n]))}void 0===c[0][4]&&(c[0][4]=[]);void 0===k?c[0][4][this.zg.length]=!0:c[0][4][this.ii(k)]=!0}}}}f.P6=b})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{}b.e$={date:"date string","year/month/day":"date string","year/quarter/month/day":"date string"};class a extends l.O.Bm{constructor(c=null){super(c);this.lX()}lX(){this.Ita();this.Hta()}Hta(){for(let c in this.mapping)Array.isArray(this.mapping[c])&&(this.mapping[c]=this.mapping[c][0])}Ita(){var c=this.mapping;for(let d in c)c=this.La(d,"type"),null!=c&&b.e$.hasOwnProperty(c)&&this.oi(d,"type",b.e$[c])}}f.XO=a})(h.jc||(h.jc={}))})(l.external||
(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){if(null!=b.instance)throw Error("Singleton");}static R(){null==b.instance&&(b.instance=new b);return b.instance}static dispose(){b.instance=null}async rO(a,c){return new Promise((d,g)=>{u.uo.load("lib/sha1.min.js",()=>{var k=e.model.Ea.ca.I(e.model.Ea.ca.AKa);if(null!=k){var m=JSON.stringify(c.Sa());var n=new jsSHA("SHA-1","TEXT");n.setHMACKey(k,"TEXT");n.update(m);m=n.getHMAC("B64")}a.$h({"x-flexmonster":m});a.xv("save",null!==
c?c.Sa():{},(p,t)=>{if(e.v(t))p&&(e.Va(e.P.bind(e.model.B.j.l9,p),e.model.B.j.xa,e.ob.xa),a.close(),g(p));else{p=new URL(location.href);p.searchParams.set("flexmonsterreport",t);var r=p.href;e.Va(e.P.bind(e.model.B.j.Fpa,r),e.model.B.j.mn,e.ob.mn,[e.model.B.j.Z6,e.model.B.j.xm],[()=>{const v=document.createElement("textarea");v.value=r;v.setAttribute("readonly","");v.style.position="fixed";v.style.left="-9999px";document.body.appendChild(v);v.select();document.execCommand("copy");document.body.removeChild(v)},
()=>{}]);a.close();d(r)}})})})}gFa(a,c,d){var g=new f.SA(a);g.xv("load",c,(k,m)=>{e.v(m)||d&&d(m);k&&(e.Va(e.P.bind(e.model.B.j.k9,k),e.model.B.j.xa,e.ob.xa),console.error("Can't load the shared file. The URL to the server hasn't been found. "+k),d&&d());g.close()})}}f.O6=b})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h extends x.ce.sk{get jfa(){return this.toolbar&&null!=this.toolbar.create}constructor(f,b){super();this.RU=this.e3=!1;this.pfa="theme/accessible/flexmonster.min.css";this.kga=!1;this.ma=e.model.Wa.R();this.pH=null;this.u3=this.v3=this.height=this.width=0;this.IO=!1;this.Z$=0;this.dH=[];this.fha=0;this.hda=!1;this.bz=d=>this.pv(d);this.cz=d=>this.qv(d);this.dz=()=>this.LN();this.az=null;this.Bda=()=>{h.Jb.rb(l.Vi.qp,this.Bda);this.Qb.Gk(this.pH.Lu,this.pH.pb,(...d)=>
{this.Qb.J=null;this.ma.J=e.u.Te.Qi.Bc("chart");null!=this.pH.Op&&this.pH.Op.apply(null,d);this.pH=null})};this.fja("fm-pivot-view");null!=this.rf&&this.rf.dispose();f.empty();this.rf=f;h.Jb=this;var a=b.width?"number"===typeof b.width?b.width+"px":-1<b.width.indexOf("px")||b.width.indexOf("%")==b.width.length-1?b.width:b.width+"px":"100%";f=b.height?"number"===typeof b.height?b.height+"px":-1<b.height.indexOf("px")||b.height.indexOf("%")==b.height.length-1?b.height:b.height+"px":"500px";var c=/\d+(?=px|%)/;
a=a.match(c)?a:"100%";f=f.match(c)?f:"500px";this.rf.V("width",a);this.rf.V("height",f);this.G.V("width",a);this.G.V("height",f);this.rf.append(this.G);f=[];b.toolbar?(f=["toolbar/flexmonster.toolbar.js"],this.IO=!0):this.IO=!1;u.FX.M1()||(c=new x.Ga("div","fm-csscheck"),this.rf.append(c),"flexmonster"!=window.getComputedStyle(c.element).getPropertyValue("font-family")&&'"flexmonster"'!=window.getComputedStyle(c.element).getPropertyValue("font-family")&&f.unshift("flexmonster.css"),c.remove());u.uo.load(f,
()=>{this.G.requestAnimationFrame(()=>{if(!u.Nd().fj&&!u.FX.Dva(e.Cg.Iq)){const d=`Flexmonster: CSS version mismatch.\nVersions of Flexmonster specified in the CSS and JS files do not match.\nThe version of Javascript: ${e.Cg.Iq}, the version of CSS: ${u.FX.M1()}.\nTo fix the issue, please try the following:\n1. Clear your browser cache to make sure the latest files are loaded.\n2. Check if the CSS file was updated correctly along with Flexmonster.\n3. Ask the tech team for help (https://www.flexmonster.com/technical-support/).`;
console.warn(d)}this.toolbar=b.toolbar?new FlexmonsterToolbar(this.rf.element,e.Cg.instance.jc,"html5",a,e.model.B.pB.R().nea(),e.model.Ea.xc.bk()):null;e.Cg.instance.jc.toolbar=this.toolbar;this.jfa&&(e.model.Za.R().Ha(new e.model.jd(e.model.Za.tX,this.toolbar)),this.toolbar.create());this.IO=!1;this.Ke();this.nb()})},()=>{this.IO=!1});this.ma.Fa.N(e.model.Xb.Vc.vy,()=>this.A4());this.ma.Fa.N(e.model.Xb.Vc.kY,()=>this.aIa());this.ma.Fa.N(e.model.Xb.Vc.NX,()=>this.c4());this.ma.Fa.N(e.model.Xb.Vc.DF,
()=>this.y4());this.ma.Fa.N(e.model.Xb.Vc.zB,()=>{});this.ma.Fa.N(e.model.Xb.Vc.hl,d=>this.IGa(d));this.ma.Fa.N(e.model.Xb.Vc.si,()=>this.J4());this.ma.Fa.N(e.model.Xb.Vc.QF,()=>this.K4());this.ma.Fa.N(e.model.Xb.Vc.FF,()=>this.rI());this.ma.N(e.ef.TX,d=>this.XGa(d));this.ma.N(e.ef.yY,()=>this.hIa());this.ma.N(l.Qa.pk.h7,d=>this.bIa(d));this.ma.N(l.Vi.t7,d=>this.cIa(d));this.N(l.Vi.qp,()=>this.aGa());e.Ik.addEventListener("fullscreenchange",()=>this.CV(),!1);e.Ik.addEventListener("mozfullscreenchange",
()=>this.CV(),!1);e.Ik.addEventListener("webkitfullscreenchange",()=>this.CV(),!1);e.Ik.addEventListener("MSFullscreenChange",()=>this.CV(),!1);this.rf.N("fullscreenchange",d=>this.IV(d),!1);this.rf.N("mozfullscreenchange",d=>this.IV(d),!1);this.rf.N("webkitfullscreenchange",d=>this.IV(d),!1);this.rf.N("MSFullscreenChange",d=>this.IV(d),!1);u.TP.R().N(u.KeyboardEvent.k$,()=>this.QIa())}QIa(){this.gja(!this.e3)}gja(f){this.e3=f;this.rf.ab("fm-keyboard-mode",this.e3)}get aF(){if(this.toolbar){var f=
x.Ga.Yb(this.rf.element.querySelector("#fm-toolbar-wrapper"));return null==f?0:f.height}return 0}static get Wx(){var f=h.Jb.G.borderWidth;return h.Jb.rf.cg(u.PU())-f.left-f.right}static get Nja(){var f=h.Jb.G.borderWidth;return h.Jb.rf.zd(u.PU())-f.top-f.bottom}static get Io(){return e.model.C.F.me==l.Jd.mo?h.YQ:h.Wx-h.Jb.kD}static get Go(){return e.model.C.F.me==l.Jd.mo?h.BK:h.Jb.Gr()}static get gN(){return e.model.C.F.me==l.Jd.mo?h.vR:h.Wx-h.Jb.kD}static get KD(){return e.model.C.F.me==l.Jd.mo?
h.uR:h.Jb.Gr()}get kD(){return"right"==e.model.C.F.jD&&e.model.C.F.Qm?this.Z$:0}set kD(f){this.Z$=f}Gr(){return this.oU()&&null!=this.Om?h.Nja-(this.Om.zd()+this.Om.G.borderWidth.top)-h.Jb.aF:h.Nja-h.Jb.aF}Kr(f){this.Qb&&this.Qb.na&&this.Qb.na.Kr(f)}ot(f){this.Qb&&this.Qb.na&&this.Qb.na.ot(f)}nb(f=!1){this.Uba();if(this.hda||this.kga&&(e.model.Ea.xc.error||!e.ka(e.model.Ea.xc.mz))){var b=this.G.requestAnimationFrame(()=>{this.Uba();this.oZ(f)});this.dH.push(b)}else 500>this.fha++||(this.IO||e.ka(e.model.Ea.xc.mz))&&
5E3>this.fha?this.XFa=e.ve(()=>{this.nb(f)},10):this.rf.visible&&(console.error("Something went wrong.\nTo fix the issue please try the following:\n1. Check if the componentFolder parameter is defined correctly.\n2. Check if the path to the css file is valid.\n3. Check if DevTools (press F12) has an exception.\n4. Ask the support team for help (https://www.flexmonster.com/technical-support/)"),"hidden"!=document.visibilityState&&(e.model.Ea.xc.wq||alert("Something went wrong.\nTo fix the issue please try the following:\n1. Check if the componentFolder parameter is defined correctly.\n2. Check if the path to the css file is valid.\n3. Check if DevTools (press F12) has an exception.\n4. Ask the support team for help (https://www.flexmonster.com/technical-support/)")))}Uba(){for(;0<
this.dH.length;)this.G.cancelAnimationFrame(this.dH.pop());this.dH=[];e.sr(this.XFa);e.sr(this.sia)}uka(){if(!this.rf)return!1;var f=u.PU(),b=this.rf.cg(),a=this.rf.zd();a-=this.aF;if(this.v3!==b||this.u3!==a)this.G.V("width",b+"px"),f?this.G.V("height","calc(100% - "+this.aF+"px)"):this.G.V("height",a+"px");return this.v3!==b||this.u3!==a}U4(){this.toolbar&&null!=this.toolbar.applyToolbarLayoutClasses&&this.toolbar.applyToolbarLayoutClasses();this.nb(!0)}A4(){this.ma&&this.ma.Fa.Hf==e.model.Xb.Ep.INIT&&
this.gH()}c4(){null!=this.Qb&&this.Qb.yu();this.nb()}y4(){this.ma.Fa.Hf!=e.model.Xb.Ep.rK&&this.ma.Fa.Hf!=e.model.Xb.Ep.$A&&this.gH()}aIa(){this.gH()}vha(){this.ma.Fa.ga.Ec&&(null!=this.Qb&&this.Qb.yu(),this.nb())}uha(){this.ma.Fa.Hf!=e.model.Xb.Ep.rK&&this.ma.Fa.Hf!=e.model.Xb.Ep.$A&&this.gH()}jha(){this.ma.Fa.Hf!=e.model.Xb.Ep.rK&&this.ma.Fa.Hf!=e.model.Xb.Ep.$A&&this.gH()}IGa(f){this.ma.Fa.Hf==e.model.Xb.Ep.INIT||this.ma.Fa.Hf==e.model.Xb.Ep.Y8||null==this.Qb||f.data!=e.u.i.Md.to&&f.data!=e.u.i.Md.BP||
(this.Qb.yu(),this.nb())}rI(){null!=this.toolbar&&this.toolbar.updateLabels(e.model.B.pB.R().nea());null!=this.Ei&&this.Ei.updateLabels();null!=this.Qb&&this.Qb.updateLabels()}Uw(f){f=this.ma.ja.qa.vc().getItem(f);null!=f&&this.Qfa(f)&&(this.Qb.yu(),this.ma.J.Uw(f))}WR(f,b){f=this.ma.ja.qa.td(f);let a=[],c=0;for(let g=0;g<b.length;g++){let k=f.Na.fa(c);k.We&&(c++,k=f.Na.fa(c));var d=k.Ib(b[g]);e.v(d)&&(d=k.Ib(e.u.ze.Ws(b[g])));if(e.v(d))return[];a.push(d.ordinal);c++}return a}nT(f,b,a){this.Qb.yu();
this.ma.J.expand(this.WR(f,b),f,this.ma.ja.qa.fd(a))}DS(f,b,a){this.Qb.yu();this.ma.J.collapse(this.WR(f,b),f,this.ma.ja.qa.fd(a))}jT(f,b,a,c){this.Qb.yu();var d=this.ma.ja.qa.td(f);const g=d.bb&&d.ke<=b.length?d.Na.fa(b.length+1):d.Na.fa(b.length);d=g.Ib(c);e.v(d)&&(c=e.u.ze.Ws(c),d=g.Ib(c));e.v(d)||(b=this.WR(f,b),b.push(d.ordinal),this.ma.J.Xp(b,d,f,this.ma.ja.qa.fd(a)))}iT(f,b,a,c){this.Qb.yu();var d=this.ma.ja.qa.td(f);const g=d.bb&&d.ke<=b.length?d.Na.fa(b.length+1):d.Na.fa(b.length);d=g.Ib(c);
e.v(d)&&(c=e.u.ze.Ws(c),d=g.Ib(c));e.v(d)||(b=this.WR(f,b),b.push(d.ordinal),this.ma.J.Ee(b,d,f,this.ma.ja.qa.fd(a)))}Ew(f){f=this.ma.ja.qa.vc().getItem(f);null!=f&&this.Qfa(f)&&(this.Qb.yu(),this.ma.J.Ew(f))}Qfa(f){const b=this.ma.ja.qa,a=b.rows.Bb(f.A)?e.u.i.ha.Ia:e.u.i.ha.Oa;return(a==e.u.i.ha.Ia?b.wb.indexOf(f.A):b.Fb.indexOf(f.A))+1<(a==e.u.i.ha.Ia?b.wb.length:b.Fb.length)}J4(){this.ma.Fa.Hf==e.model.Xb.Ep.sp?this.gH():this.rf&&this.nb()}K4(){this.jwa()}CV(){this.dfa()}IV(f){f.stopPropagation();
this.dfa()}dfa(){var f=u.PU();null!=e.model.Za.jsFullScreenHandler&&e.model.Za.jsFullScreenHandler.call(null,f);var b=0,a=()=>{this.rf.zd()!=parseInt(this.rf.element.style.height)&&5>b?(b++,this.rf.requestAnimationFrame(a)):this.uka()&&this.nb(!0)};this.rf.requestAnimationFrame(a)}Ke(){this.toolbar&&(this.G.height-=this.aF);this.Qb=new l.Y.joa;this.Qb.N(l.Vi.sy,f=>this.eHa(f));this.Qb.N(l.Vi.KX,f=>this.kha(f));this.X(this.Qb);this.Ei=new l.qd.vp;this.Ei.N(w.ia.OPENED,()=>{});this.Ei.N(w.ia.CLOSED,
()=>{});this.Ei.N(l.qd.vp.yP,()=>this.e4());this.Ei.N(l.qd.vp.AJ,f=>this.d4(f));this.X(this.Ei);e.Ik.addEventListener("keydown",f=>this.tq(f));this.sG=new u.Uqa(this.rf.parent);this.sG.N(w.ia.DY,f=>this.U4(f));this.kga=!0}jKa(){l.aP.R().hv&&l.aP.R().Pp()}oZ(f=!1){null==this.ma||0==this.rf.width||f&&x.eM.uP.R().KDa||(this.uka(),this.jKa(),1>e.model.Ea.xc.bk()||(this.hda=!0,this.sG.refresh(),this.oU()&&this.Eya(),this.bDa()&&(this.X(this.mX),this.mX.nb()),e.model.C.F.sc&&this.ma.ja.ga&&!this.ma.ja.ga.aI&&
(e.model.C.F.sc=!1,e.Va(e.P.bind(e.model.B.j.Cpa,e.u.i.ra.I(this.ma.ja.ga.Aa)),e.model.B.j.VP)),e.model.C.F.sc&&e.model.C.F.me==l.Jd.mo&&this.ma.ja.ga&&this.ma.ja.ga.Aa==e.u.i.ra.API&&(e.model.C.F.me=l.Jd.It,e.Va(e.P.bind(e.model.B.j.pY),e.model.B.j.VP,e.ob.nk)),null!=this.Hk&&this.Hk.nb(),e.v(this.ma.Fa.ga)||this.ma.Fa.ga.kb||!e.model.C.F.JS?this.Ei.$a():this.Ei.show(),f||e.model.C.F.UC||l.Qa.tF.kL||(e.model.C.F.Qm=!1),e.v(this.ma.ja.qa)||e.v(this.ma.ja.O)||this.ma.ja.O.kb||!this.ma.ja.qa.kb||(e.model.C.F.Qm=
!0),e.model.C.F.Qm&&null!=this.ma.Fa.ga&&!this.ma.Fa.ga.kb?this.Ei.open(this.ma.ja.O,this.ma.ja.qa,this.ma.Fa.ga.Aa):this.Ei.close(),e.model.C.F.me==l.Jd.nj?this.P0(f):e.model.C.F.me==l.Jd.mo?this.R0(f):this.Q0(f),null!=this.ql&&this.ql.isVisible()&&(e.model.C.F.sc&&e.model.C.F.me===l.Jd.It?this.ql.close():this.ql.j5()),this.v3=this.cg(),this.u3=this.zd()))}gH(){e.model.C.F.me==l.Jd.nj?this.P0(!1,!0):e.model.C.F.me==l.Jd.mo?this.R0(!1):this.Q0(!1,!0);e.v(this.Ei)||(this.Ei.close(),this.Ei.$a())}OW(){if(this.ma.Fa.ga.Aa==
e.u.i.ra.API&&e.model.C.F.sc&&e.model.C.F.me==l.Jd.nj){const f=e.model.C.F.gx(!1,!0);f.oa("viewType",l.Jd.It);this.ma.Cq(f.Sa())}else e.model.C.F.me=l.Jd.It,e.model.C.F.sc&&this.Ei&&this.Ei.hv&&this.Ei.open(this.ma.ja.O,this.ma.ja.qa,this.ma.Fa.ga.Aa),this.Q0()}Q0(f=!1,b=!1){null!=this.Qb&&(null!=this.kd&&this.kd.$a(),null!=this.bl&&this.bl.$a(),f||null==this.Hk||this.Hk.close(),this.Qb.J=b?null:this.ma.J=e.u.Te.Qi.Bc(),this.Qb.G.V("top","").V("left","").V("right","").V("bottom",""),this.Qb.G.V("position",
"absolute"),this.Qb.show(),this.Qb.G.V("height",h.KD+"px"),this.Qb.G.V("width",h.Wx+"px"),b&&this.Qb.yu(),this.Qb.nb())}tO(f="",b=!1){if(this.ma.Fa.ga.Aa==e.u.i.ra.API&&e.model.C.F.sc&&e.model.C.F.me==l.Jd.It){const a=e.model.C.F.gx(!1,!0);a.oa("viewType",l.Jd.nj);a.oa("chartType",f);a.oa("chartMultipleMeasures",l.Dd.Oe.Yfa(f)?b:!1);this.ma.Cq(a.Sa())}else e.model.C.F.me=l.Jd.nj,e.model.C.F.CL=f,e.model.C.F.QG=l.Dd.Oe.Yfa(f)?b:!1,this.P0()}P0(f=!1,b=!1){u.uo.load("lib/d3.v3.min.js",()=>{f||null==
this.Hk||this.Hk.close();null!=this.Qb&&this.Qb.$a();null!=this.bl&&this.bl.$a();null==this.kd&&this.FG();this.kd.G.V("top","").V("left","").V("right","").V("bottom","");this.kd.G.V("position","absolute");this.kd.show();this.kd.G.V("height",h.Go+"px");this.kd.G.V("width",h.Io+"px");this.kd.J=b?null:this.ma.J=e.u.Te.Qi.J1(e.model.C.F.oS);this.kd.nb();e.model.C.F.sc&&this.Ei&&this.Ei.hv&&this.Ei.open(this.ma.ja.O,this.ma.ja.qa,this.ma.Fa.ga.Aa);b||0!=this.dH.length||(this.sia=e.ve(()=>{this.Ya(l.Vi.CY)},
1))})}PW(f="",b="bottom",a=!1){this.ma.Fa.ga.Aa==e.u.i.ra.API&&e.model.C.F.sc?e.Va(e.P.bind(e.model.B.j.pY),e.model.B.j.VP,e.ob.nk):(e.model.C.F.me=l.Jd.mo,e.model.C.F.CL=f,e.model.C.F.ez=b,e.model.C.F.QG=a,this.R0())}R0(f=!1){u.uo.load("lib/d3.v3.min.js",()=>{f||null==this.Hk||this.Hk.close();null!=this.Qb&&(this.Qb.show(),this.Qb.J=this.ma.J=e.u.Te.Qi.Bc(),null==this.kd&&this.FG(),this.kd.show(),this.kd.J=e.u.Te.Qi.J1(e.model.C.F.oS),null==this.bl&&this.uua(),this.bl.show(),this.bl.direction="left"==
e.model.C.F.ez||"right"==e.model.C.F.ez?x.MQ.XY:x.MQ.PJ,this.bl.gxa=[150,150,h.Wx-150,this.Gr()-150],this.gda(e.model.C.F.ez))})}IIa(f){var b=e.model.C.F.ez;this.gda(b,"left"==b||"right"==b?f.data.left:f.data.top)}gda(f="bottom",b=NaN){var a=h.Wx-h.Jb.kD;isNaN(b)&&(b="left"==f||"right"==f?Math.round(a/2):Math.round(this.Gr()/2));switch(f){case "bottom":h.vR=a;h.uR=b;this.Qb.G.V("width",h.gN+"px");this.Qb.G.V("height",h.KD+"px");this.Qb.G.V("top",0).V("left",0).V("right","").V("bottom","");h.YQ=a;
h.BK=this.Gr()-this.Qb.G.zd()-this.bl.zd();this.kd.G.V("width",h.Io+"px");this.kd.G.V("height",h.BK+"px");this.kd.G.V("bottom",this.oU()&&!e.v(this.Om)?this.Om.zd()+"px":0).V("left",0).V("right","").V("top","");this.bl.G.V("top",b+"px").V("left","").V("right","").V("bottom","");break;case "top":h.YQ=a;h.BK=b;this.kd.G.V("width",h.Io+"px");this.kd.G.V("height",h.Go+"px");this.kd.G.V("top",0).V("left",0).V("right","").V("bottom","");h.vR=a;h.uR=this.Gr()-this.kd.G.zd()-this.bl.zd();this.Qb.G.V("width",
h.gN+"px");this.Qb.G.V("height",h.KD+"px");this.Qb.G.V("bottom",this.oU()&&!e.v(this.Om)?this.Om.zd()+"px":0).V("left",0).V("right","").V("top","");this.bl.G.V("top",b+"px").V("left","").V("right","").V("bottom","");break;case "left":h.YQ=b;h.BK=this.Gr();this.kd.G.V("width",h.Io+"px");this.kd.G.V("height",h.Go+"px");this.kd.G.V("top",0).V("left",0).V("right","").V("bottom","");h.vR=a-this.kd.G.cg()-this.bl.cg();h.uR=this.Gr();this.Qb.G.V("width",h.gN+"px");this.Qb.G.V("height",h.KD+"px");this.Qb.G.V("top",
0).V("right",h.Jb.kD+"px").V("left","").V("bottom","");this.bl.G.V("left",b+"px").V("top","").V("right","").V("bottom","");break;case "right":h.vR=b,h.uR=this.Gr(),this.Qb.G.V("width",h.gN+"px"),this.Qb.G.V("height",h.KD+"px"),this.Qb.G.V("top",0).V("left",0).V("right","").V("bottom",""),h.YQ=a-this.Qb.G.cg()-this.bl.cg(),h.BK=this.Gr(),this.kd.G.V("width",h.Io+"px"),this.kd.G.V("height",h.Go+"px"),this.kd.G.V("top",0).V("right",h.Jb.kD+"px").V("left","").V("bottom",""),this.bl.G.V("left",b+"px").V("top",
"").V("right","").V("bottom","")}this.Qb.G.V("position","absolute");this.kd.G.V("position","absolute");this.Qb.nb();this.kd.nb()}kha(f){null==this.ql&&this.Xta();for(var b,a=this.ma.ja.qa.gd(),c=0;c<a.length;c++){var d=a[c];d.A==f.measure.A&&d.$==f.measure.$&&(b=d)}this.ql.ap(this.ma.J,this.ma.ja.qa,f.Jg,f.Ah,b,f.cell)}$Ia(f){if(null!=this.ma.ja&&null!=this.ma.ja.O){var b=this.ma.ja.O.vc(!1).getItem(f),a=this.ma.ja.qa;null!=b&&(a.qb.Bb(f)||a.rows.Bb(f)||a.Ka.Bb(f))&&(f={hierarchy:b.lj()},e.model.Za.R().Ha(new e.model.jd(e.model.Za.sy,
f)),this.uI(b))}}SV(){e.v(this.ma.Fa.ga)||this.ma.Fa.ga.kb||("right"==e.model.C.F.jD?(e.model.C.F.UC=!0,e.model.C.F.Qm=!0,this.nb()):this.Ei.open(this.ma.ja.O,this.ma.ja.qa,this.ma.Fa.ga.Aa))}GL(){"right"==e.model.C.F.jD?(e.model.C.F.UC=!1,e.model.C.F.Qm=!1,this.nb()):this.Ei.close()}d4(f){if(!u.Hc.Og(this.ma.ja.qa.Ij)){var b=new e.model.hb.vo;b.Ij=this.ma.ja.qa.Ij;f.data.Ij=b.Ij}this.ma.ge(f.data)}yDa(){return!e.v(this.ma.Fa.ga)&&(!this.ma.Fa.ga.Ec||this.ma.Fa.ga.Aa===e.u.i.ra.API)&&!this.ma.ja.O.kb||
e.model.C.F.tu&&this.ma.Fa.ga.Aa===e.u.i.ra.Cc}UN(f=null,b=null){e.v(this.ma.Fa.ga)||this.ma.Fa.ga.kb||!this.yDa()||(e.v(b)||(this.az="string"==typeof b?e.model.Za.Hea(b):b),e.ka(f)||e.model.Wa.R().N(l.Qa.pk.VA,this.cz),e.model.Wa.R().Ha(new l.Qa.HX(f)),e.model.Wa.R().N(l.Qa.pk.UA,this.bz),e.model.Wa.R().N(l.Qa.pk.WA,this.dz))}pv(f){e.model.Wa.R().rb(l.Qa.pk.UA,this.bz);e.v(this.az)||this.az({uniqueName:f.Vs,isRemoved:!1});this.az=null}qv(f){e.model.Wa.R().rb(l.Qa.pk.VA,this.cz);e.v(this.az)||this.az({uniqueName:f.Vs,
isRemoved:!0});this.az=null}LN(){e.model.Wa.R().rb(l.Qa.pk.WA,this.dz);this.az=null}dHa(f){null==this.Hk&&this.u_();this.Hk.G.ab("fm-charts-filter",!0);this.HV(f)}eHa(f){null==this.Hk&&this.u_();this.Hk.G.ab("fm-charts-filter",!1);this.HV(f)}HV(f){var b={hierarchy:f.hierarchy.lj()};e.model.Za.R().Ha(new e.model.jd(e.model.Za.sy,b));this.uI(f.hierarchy)}uI(f){null==this.Hk&&this.u_();this.Hk.ap(f)}jwa(){null!=this.ql&&this.ql.close()}Eya(){null!=this.Om&&null!=this.gX||this.Jta();this.X(this.Om);this.Om.ab("fm-layout-660",
660>this.Om.cg());this.Om.ab("fm-layout-520",520>this.Om.cg());var f="";e.model.Ea.xc.Av&&(f=e.model.Ea.ca.I(e.model.Ea.ca.qka)+"("+u.Lh.format(e.model.Ea.xc.oH,e.model.Ea.ca.I(e.model.Ea.ca.Fu))+")",new Date(Date.now()+432E6)>e.model.Ea.xc.oH&&(f+=e.model.Ea.ca.I(e.model.Ea.ca.tza)));e.model.Ea.xc.Vp&&(u.Jfa()||e.model.Ea.xc.Vca||(f=e.model.Ea.ca.I(e.model.Ea.ca.uya)+e.model.Ea.xc.x3+")"));this.gX.fb(f,!0)}e4(){this.SV()}tq(f){if(this.an||this.t2)73===f.keyCode&&(f.ctrlKey||f.metaKey)&&f.altKey&&
this.Aja(),72===f.keyCode&&(f.ctrlKey||f.metaKey)&&f.altKey&&this.ELa(!this.RU),27===f.keyCode&&(null!=this.Hk&&this.Hk.close(),null!=this.ql&&(this.ql.Yt.hv?this.ql.Yt.close():this.ql.close()),null!=this.MG&&this.MG.isVisible()?this.MG.close():this.Ei.close())}ELa(f){f?(f=document.querySelector("link[data-fm-hc-theme]"))?(f.disabled=!1,this.RU=!0,this.nb()):u.uo.z3(this.pfa,{wL:{"data-fm-hc-theme":""},Bj:!0},()=>{this.RU=!0;this.nb()}):(u.uo.RMa(),this.nb(),this.RU=!1)}FLa(f){this.pfa=f}XGa(f){this.ql&&
this.ql.isVisible()?this.ql.Gk(f.Lu,f.pb,f.Op):e.model.C.F.me==l.Jd.It?(this.Qb.J=e.u.Te.Qi.Bc(e.model.C.F.p2==l.Y.wf.rj?"flat":"pivot"),this.Qb.Gk(f.Lu,f.pb,f.Op)):e.model.C.F.me!=l.Jd.nj||f.Lu!=e.model.Dc.qj.ci&&f.Lu!=e.model.Dc.qj.wF?e.model.C.F.me==l.Jd.nj?(null==this.kd&&this.FG(),this.kd.Gk(f.pb)):e.model.C.F.me==l.Jd.mo&&(f.Lu==e.model.Dc.qj.nB||f.Lu==e.model.Dc.qj.Ov||f.Lu==e.model.Dc.qj.vB?(null==this.kd&&this.FG(),this.kd.Gk(f.pb,!0,b=>{this.Qb.Gk(f.Lu,f.pb,f.Op,b)})):this.Qb.Gk(f.Lu,f.pb,
f.Op)):(this.Qb.J=e.u.Te.Qi.Bc(e.model.C.F.p2==l.Y.wf.rj?"flat":"pivot"),this.pH=f,h.Jb.N(l.Vi.qp,this.Bda),this.Qb.nb())}hIa(){e.model.C.F.me==l.Jd.It?this.Qb.print():e.model.C.F.me==l.Jd.nj?(null==this.kd&&this.FG(),this.kd.print()):e.model.C.F.me==l.Jd.mo&&(null==this.kd&&this.FG(),this.kd.print(f=>this.nGa(f)))}nGa(f){this.Qb.print(f)}oU(){e.model.Ea.xc.bk();return e.model.Ea.xc.Zy||e.model.Ea.xc.wq?!1:!0}bDa(){return!e.model.Ea.xc.wq&&!e.model.Ea.xc.Vp&&!e.model.Ea.xc.Zy}Aja(){var f=new Date(parseFloat(e.Cg.bP)/
61);let b=u.Lh.format(f,e.model.Ea.ca.I(e.model.Ea.ca.gNa))+" (v. "+e.Cg.Iq+")";b+=e.model.Ea.ca.I(e.model.Ea.ca.Xg);b+=e.P.bind(e.model.Ea.ca.I(e.model.Ea.ca.pva),u.Lh.format(f,e.model.Ea.ca.I(e.model.Ea.ca.fya)));b+=e.model.Ea.ca.I(e.model.Ea.ca.Xg);b+=e.model.Ea.ca.I(e.model.Ea.ca.dya)+e.model.Ea.xc.UEa();e.model.Ea.xc.Vp?b+=e.model.Ea.ca.I(e.model.Ea.ca.bJa)+e.model.Ea.xc.x3:e.model.Ea.xc.wq&&(b+=e.model.Ea.ca.I(e.model.Ea.ca.Aya)+e.model.Ea.xc.Aga);f=!1;e.model.Ea.xc.Av?e.model.Ea.xc.Vp||e.model.Ea.xc.wq?
b+=e.model.Ea.ca.I(e.model.Ea.ca.PEa)+u.Lh.format(e.model.Ea.xc.oH,e.model.Ea.ca.I(e.model.Ea.ca.Fu)):(f=!0,b+=e.model.Ea.ca.I(e.model.Ea.ca.MMa)+u.Lh.format(e.model.Ea.xc.oH,e.model.Ea.ca.I(e.model.Ea.ca.Fu))):b+=e.model.Ea.ca.I(e.model.Ea.ca.QEa);f||(b+=e.model.Ea.ca.I(e.model.Ea.ca.Xg),b+=e.model.Ea.ca.I(e.model.Ea.ca.Vja)+u.Lh.format(e.model.Ea.xc.aX,e.model.Ea.ca.I(e.model.Ea.ca.Fu)));b+=e.model.Ea.ca.I(e.model.Ea.ca.TEa)+e.model.Ea.xc.mz;b+=e.model.Ea.ca.I(e.model.Ea.ca.info);e.Va(b,e.model.Ea.ca.I(e.model.Ea.ca.rwa),
e.ob.OP)}ag(f,b){return this.Qb.ag(f,b)}YT(f,b){return this.Qb.YT(f,b)}OH(){return this.Qb.OH()}AA(f,b){this.Qb.AA(f,b)}FE(){this.Qb.FE()}get fN(){return this.Qb.fN}get eN(){return this.Qb.eN}bIa(f){null==this.MG&&this.Lta();this.MG.ap(f.Vs)}cIa(f){null==this.contextMenu&&this.Ota();var b=f.data.GFa;b&&0<b.length&&this.contextMenu.gp(this.G,b,f.data.coords,null,f.data.mL)}aGa(){0==this.dH.length&&(this.sia=e.ve(()=>{this.Ya(l.Vi.CY)},1))}Lta(){this.MG=new l.Qa.tF;this.X(this.MG)}FG(){this.kd=new l.Dd.Gv;
this.kd.N(l.Vi.sy,f=>this.dHa(f));this.kd.N(l.Vi.KX,f=>this.kha(f));this.X(this.kd)}Xta(){this.ql=new l.Yf.vF;this.X(this.ql)}u_(){this.Hk=new l.filter.aoa;this.Hk.N(w.ia.OPENED,()=>{});this.Hk.N(w.ia.CLOSED,()=>{});this.X(this.Hk)}uua(){this.bl=new x.MQ;this.bl.$a();this.bl.N(x.MQ.QX,f=>this.IIa(f));this.X(this.bl)}Ota(){this.contextMenu=new x.mr.XF(h.Jb.G);this.contextMenu.aa("fm-context-menu");this.contextMenu.$a();this.X(this.contextMenu)}Jta(){this.Om=new x.ce.sk;this.Om.aa("fm-branding-bar");
this.gX=new x.Tc;this.gX.aa("fm-version-label");this.Om.X(this.gX);this.fX=new x.Tc;this.fX.aa("fm-link");this.fX.fb(e.model.Ea.ca.I(e.model.Ea.ca.Rha),!0);this.Om.X(this.fX);var f=new x.Ga("span","fm-info-icon");f.N("click",()=>this.Aja());this.fX.G.append(f);this.mX=new l.isa}dispose(){this.ma=null;this.Qb&&this.Qb.dispose();this.kd&&this.kd.dispose();this.ql&&this.ql.dispose();this.G.dispose();this.rf.dispose();l.aP.dispose();l.filter.C8.dispose();l.zY.dispose();x.eM.uP.dispose();u.TP.dispose();
h.Jb=null;this.toolbar&&(this.toolbar.dispose&&this.toolbar.dispose(),this.toolbar=null);this.sG&&(this.sG.Vd(w.ia.DY),this.sG.dispose(),this.sG=null)}}l.Sb=h})(e.K||(e.K={}))})(q||(q={}));(function(e){(function(l){class h{static ih(f){if(e.v(f)||"string"!=typeof f)return!1;f=f.toLowerCase();return f==h.It||f==h.nj||f==h.mo}}h.It="grid";h.nj="charts";h.mo="grid_charts";l.Jd=h})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){class h{constructor(){this.Hm=0;this.xG=!1;this.IK=this.qG="";this.AG=!1}show(f,b,a,c=!0,d=!1){f?(d&&this.V5(f,b,a,c),0==this.xG?(this.xG=f,this.qG=b,this.IK=a,this.AG=c,this.Hm=e.ve(()=>this.Yja(),h.I7)):0==this.Hm?this.V5(f,b,a,c):(this.xG=f,this.qG=b,this.IK=a,this.AG=c)):(d&&this.V5(f,b,a,c),1==this.xG&&(this.xG=f,this.Hm=e.ve(()=>this.Yja(),h.I7)))}V5(f,b,a,c){this.uia();this.Vha(f,b,a,c)}Yja(){this.uia();this.Vha(this.xG,this.qG,this.IK,this.AG)}uia(){e.sr(this.Hm);
this.Hm=0}Vha(f,b,a,c){l.zY.R()&&l.zY.R().ap(f,b,a,c)}static R(){null==h.Be&&(h.Be=new h);return h.Be}static dispose(){h.Be=null}}h.I7=250;l.Fqa=h})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){class h extends x.ce.Fy{constructor(){if(null!=h.Be)throw Error("Singleton");super(l.Sb.Jb.G);this.aa("fm-preloader-view");this.Wk("status");this.Ke()}ap(f=!0,b="",a="",c=!0){this.qG=b;this.IK=a;this.fta=c;f?this.open():this.close()}open(){super.open();this.nb()}Ke(){this.tE.aa("fm-overlay-preloader");this.tE.rb("click",this.Baa);this.jaa=new x.Pa("div","fm-spinner");this.jaa.Eo();this.X(this.jaa);this.xs=new x.Tc;this.xs.Eo();this.xs.aa("fm-message-label");this.X(this.xs);
this.XR=new x.Tc;this.XR.Eo();this.XR.aa("fm-details-label");this.X(this.XR);this.$a();l.Sb.Jb.X(this)}nb(){this.tE.KLa(!this.fta);this.II(this.qG);this.zLa(this.IK);this.zc(this.qG);this.validate()}II(f){this.xs.fb(f)}zLa(f){this.XR.fb(f)}close(){super.close();this.clear()}clear(){this.II("");this.II("")}static R(){if(null==l.Sb.Jb)return null;null==h.Be&&(h.Be=new h);return h.Be}static dispose(){h.Be=null}}l.zY=h})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Ga{constructor(){super("div","fm-charts-layout");this.X5=!0;this.cm();this.Ke()}Ke(){this.C0();this.Jxa()}C0(){this.Jp=new x.Tc;this.Jp.G.display="block";this.Jp.aa("fm-chart-title");this.Jp.aa("fm-pivot-title");this.Jp.LW(!0);this.Jp.G.V("position","relative");this.Jp.$a();this.uC(this.Jp)}Jxa(){this.Zq=new x.Pa("div","fm-ui-row fm-header-toolbar");this.uC(this.Zq);this.kw=new x.Pa("div","fm-ui-col-2");this.kw.G.display="inline-block";this.Zq.X(this.kw);
this.ll=new x.Bd.es;this.ll.aa("fm-chart-measures-dropdown");this.ll.N(w.ia.Xd,a=>this.KHa(a));this.ll.$a();this.kw.X(this.ll);this.qs=new x.Bd.es;this.qs.aa("fm-chart-pie-dropdown");this.qs.N(w.ia.Xd,a=>this.gIa(a));this.qs.$a();this.kw.X(this.qs);this.er=new x.Pa("div","fm-ui-col-2 fm-charts-filters-container");this.er.G.display="inline-block";this.Zq.X(this.er);this.ps=new x.Bd.es;this.ps.yl=!1;this.ps.aa("fm-charts-filters-btn");this.ps.ni(e.model.B.j.EB);this.ps.N(w.ia.Xd,a=>this.mha(a));this.ps.mi(this.Aza);
this.Zq.X(this.ps)}Aza(a,c){var d=new b;d.setData(a);d.hn(c);d.aa("fm-charts-filter");d.G.attr("title",e.model.B.j.EB);return d}get Nr(){return this.Jp}get ug(){return this.An}get Cs(){return this.Hp}resize(a,c){this.eC=a;this.dC=c}WDa(){return!this.ps.isVisible()&&!this.er.isVisible()&&!this.ll.isVisible()&&!this.qs.isVisible()}nb(){this.width=this.eC;this.height=this.dC;e.v(this.J)||this.J.kb?this.TLa&&this.Wya():(e.ka(e.model.C.F.Kn)||this.T0(),null!=this.Gb&&(this.Zq.G.ab("fm-fields-list-padding",
this.XCa),this.ll.$a(),this.qs.$a(),e.model.C.F.Vx&&e.model.C.F.xja&&this.Hya(),this.Gb.type!=h.Oe.sF&&e.model.C.F.tja&&this.Oya(),this.Gb.type==h.Oe.Qv&&1<this.Gb.Ml.length&&this.Sya(),this.WDa()&&this.Zq.$a(),e.model.C.F.sja&&this.Gb.ug&&0<this.Gb.ug.length&&this.fda(),this.dda(),e.model.Za.R().Ha(new e.model.jd(e.model.Za.pX))))}get XCa(){return e.model.C.F.JS&&!(e.model.C.F.Qm&&"right"==e.model.C.F.jD)&&!(e.model.C.F.me==l.Jd.mo&&("bottom"==e.model.C.F.ez||"left"==e.model.C.F.ez))}clear(){this.Jp.$a();
this.Zq.$a();this.ll.$a();this.qs.$a();this.er.$a();this.ps.$a();this.kw.Hd("fm-wide");this.Hp&&(this.Hp.Qg(!0),this.Hp=null);this.An&&(this.An.Qg(!0),this.An=null);this.rC&&this.rC.$a()}get TLa(){return e.model.Wa.R().Fa.GE==e.model.Xb.Vc.si&&(e.v(this.J)||this.J.kb&&!e.model.C.F.T5)}Wya(){null==this.rC&&(this.rC=new x.Tc(e.model.B.j.l7),this.rC.aa("fm-charts-msg"),this.uC(this.rC));this.rC.fb(e.model.B.j.l7);this.rC.show()}T0(){this.Jp.fb(e.model.C.F.Kn);this.Jp.show()}Oya(){var a=[],c=this.J.Da;
const d=this.Gb.dL;for(var g=0;g<c.length;g++){var k=c[g],m=new e.model.hb.oh(k.A,k.$,k.index);m.label=e.P.Ro(k.label,!0,!0);a.push(m)}if(e.model.C.F.R5||!e.model.C.F.R5&&1<a.length){this.ll.PE(e.model.B.j.vla);this.ll.rga=this.ll.Do&&this.Gb.gA;this.ll.Do=this.Gb.gA;this.ll.gg(a);if(this.Gb.gA){c=[];for(g=0;g<a.length;g++)for(k=a[g],m=0;m<d.length;m++)if(k.A==d[m].A&&(k.$==d[m].$||e.ka(d[m].$))&&(k.index==d[m].index||-1==d[m].index)){c.push(g);break}this.ll.qO(c)}else{a=d[0];const n=new e.model.hb.oh(a.A,
a.$,a.index);this.ll.qt(p=>p.A===n.A&&p.$===n.$)}this.ll.show();this.Zq.show();this.Gb.type==h.Oe.Qv&&1<this.Gb.Ml.length?this.ll.Yk(this.kw.cg()/2-10):this.ll.Yk(this.kw.cg()-10)}}Sya(){for(var a=[],c=0;c<this.Gb.Ml.length;c++)a.push({label:e.P.Ro(this.Gb.Ml[c].label,!0,!0)});this.qs.gg(a);this.qs.Xk(e.model.C.F.BL);this.qs.show();this.Zq.show();this.qs.Yk(this.kw.cg()/2-10)}Hya(){this.er.G.Kx();if(null!=e.u.Ma.R().qa){var a=e.u.Ma.R().qa.vc(!1),c=[];for(var d=0;d<a.length;d++){var g=a.fa(d);this.Mfa(g)&&
(g=this.Gxa(a.fa(d)),c.push(g),this.er.X(g))}0===c.length?this.er.$a():this.er.show();this.Zq.show();a=0;for(c=0;c<this.er.G.element.children.length;c++)d=this.er.G.element.children.item(c),a+=d.offsetWidth;a>this.er.cg()&&this.Iya()}}Mfa(a){return e.u.Ma.R().ga.mapping.La(a.A,"filters")}Iya(){const a=[],c=e.u.Ma.R().qa.vc(!1);for(let d=0;d<c.length;d++){const g=c.fa(d);this.Mfa(g)&&a.push({label:g.caption,A:g.A,NU:g.filter.Fh})}this.ps.gg(a);0===a.length?this.ps.$a():this.ps.show();this.er.$a();
this.kw.aa("fm-wide")}Gxa(a){var c=new x.Vg;c.aa("fm-ui-btn-superlight");c.aa("fm-charts-filter");c.G.ab("fm-filtered",a.filter.Fh);c.N(x.Qd.uf,d=>this.mha(d));c.fb(a.label);c.G.attr("data-hierarchy",a.A);c.G.attr("title",e.model.B.j.EB);return c}dda(){null!=this.Hp&&this.Hp.Qg(!0);this.Hp=h.jma.ZAa(this.Gb.type);this.uC(this.Hp);this.Hp.N5((c,d,g)=>this.WIa(c,d,g));var a=this.dC-this.Jp.zd(!0)-this.Zq.zd(!0)-this.Hp.padding.top-this.Hp.padding.bottom;this.An&&(a-=this.An.G.element.offsetHeight);
this.Hp.Wd(this.Gb,this.eC-20,a);this.Hp.G.V("max-width",this.eC+"px");this.Hp.G.V("max-height",a+"px")}fda(){null!=this.An&&this.An.Qg(!0);this.An=new h.ug.kma(this.X5);this.An.aa("fm-chart-legend");this.An.uLa((a,c,d)=>this.zHa(a,c,d));this.An.N(w.ia.Xd,()=>this.yHa());this.An.vLa(this.Gb.Qp);this.An.Wd(this.Gb.ug);this.An.gI.V("max-height",(this.dC-this.Jp.zd(!0)-this.Zq.zd())/2+"px");this.uC(this.An)}yHa(){this.X5=!this.X5;this.fda();this.dda()}vz(a,c,d){null==d||d.dc||d.Hh||((a==e.u.i.ha.Ia?
this.J.Ih(c,d):this.J.Fj(c,d))?this.J.Xp(c,d,a):this.J.Ee(c,d,a))}Ku(a,c){a==e.u.i.ha.Ia?this.J.wh(c)?this.J.collapse(c,e.u.i.ha.Ia):this.J.expand(c,e.u.i.ha.Ia):this.J.Gj(c)?this.J.collapse(c,e.u.i.ha.Oa):this.J.expand(c,e.u.i.ha.Oa)}vda(a,c){a==e.u.i.ha.Ia?c.length<=e.model.C.F.vu.length?this.J.collapse(c,e.u.i.ha.Ia):this.J.expand(c,e.u.i.ha.Ia):c.length<=e.model.C.F.FC.length?this.J.collapse(c,e.u.i.ha.Oa):this.J.expand(c,e.u.i.ha.Oa)}mha(a){a=a.type==w.ia.Xd?a.data.Hl.A:a.target.G.attr("data-hierarchy");
a=e.u.Ma.R().O.uh(a);this.Ha(new l.KP(a))}zHa(a,c,d){e.model.C.F.Ho?"expand"==a?this.vda(this.Gb.fI,c):"drill"==a&&this.vz(this.Gb.fI,c,d):"expand"==a?this.Ku(this.Gb.fI,c):"drill"==a&&this.vz(this.Gb.fI,c,d)}WIa(a,c,d){var g=this.Gb.fI==e.u.i.ha.Oa?e.u.i.ha.Ia:e.u.i.ha.Oa;e.model.C.F.Ho?"expand"==a?this.vda(g,c):"drill"==a&&this.vz(g,c,d):"expand"==a?this.Ku(g,c):"drill"==a&&this.vz(g,c,d)}KHa(a){if(this.Gb.gA){for(var c=[],d=this.ll.XM().slice(),g=0;g<d.length;g++)(a=d[g])&&c.push(a);e.model.C.F.PG=
c}else e.model.C.F.Fo=a.data.Hl;this.Ya("chart_changed")}gIa(a){e.model.C.F.BL=a.data.selectedIndex;this.Ya("chart_changed")}}h.nma=f;class b extends x.Li.GB{nb(){var a=this.getData();null==this.label&&(this.label=new x.Tc,this.label.aa("fm-text-display"),this.G.append(this.label.G));this.label.fb(a[this.ur()],!0);this.G.ab("fm-filtered",!0===a.NU);this.G.attr("data-hierarchy",a.A)}}})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static validate(a){return a==f.XA||a==f.hF||a==f.RJ||a==f.Qv||a==f.mK||a==f.CB||a==f.sF?a:a==f.fra?f.CB:a==f.zla?f.sF:a==f.X6?f.hF:f.XA}static Yfa(a){if("string"!=typeof a||e.ka(a))return!1;a=a.toLowerCase();return a==f.XA||a==f.hF||a==f.X6||a==f.RJ||a==f.mK?!0:!1}}f.XA="column";f.hF="bar_h";f.X6="bar_horizontal";f.RJ="line";f.Qv="pie";f.mK="scatter";f.CB="stacked_column";f.fra="bar_stack";f.sF="column_line";f.zla="bar_line";h.Oe=f;class b{}b.AB="series";
b.VF="series_label";b.Doa="legend";h.io=b})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(c){if(!e.v(c))for(let d in c)c.hasOwnProperty(d)&&(this[d]=c[d])}Sa(){const c={};e.v(this.label)||(c.label=this.label);e.v(this.color)||(c.color=this.color);e.v(this.Vb)||(c.member=this.Vb.Sa());e.v(this.jg)||(c.tuple=this.OMa==e.u.i.ha.Ia?e.model.Wa.R().ja.qa.r0(this.jg):e.model.Wa.R().ja.qa.q0(this.jg));e.v(this.measure)||(c.measure={uniqueName:this.measure.A,caption:this.measure.caption,aggregation:this.measure.$});e.v(this.level)||
(c.level=this.level);e.v(this.dg)||(c.isExpanded=this.dg);e.v(this.isCollapsed)||(c.isCollapsed=this.isCollapsed);e.v(this.eh)||(c.isDrilledDown=this.eh);e.v(this.ZH)||(c.isDrilledUp=this.ZH);return c}}f.a9=b;class a{constructor(){this.gA=!1;this.ky=this.At=this.zt="";this.Ml=[];this.Pi=[];this.fI=e.u.i.ha.Oa;this.lx=[];this.data=[];this.Mw=[];this.CA=this.uu=this.jga=this.cga=this.Dfa=this.ux=this.de=this.xe=!1}}f.lma=a})(h.W||(h.W={}))})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.ce.sk{constructor(){super();this.Io=600;this.Go=400;this.Zga=15;this.M3=3;this.J$=[];this.aa("fm-chart")}Wd(b,a,c){this.Io=a;this.Go=c;this.Gb=b;this.mDa(this.Io,this.Go)}mDa(b,a){d3v3.select(l.Sb.Jb.rf.element).select(".fm-chart").selectAll("svg").remove();this.svg=d3v3.select(l.Sb.Jb.rf.element).select(".fm-chart").append("svg").attr("width",b).attr("height",a).append("g")}N5(){}c1(b){this.G.V("overflow-y","auto");d3v3.select(l.Sb.Jb.rf.element).select(".fm-chart").selectAll("svg").attr("height",
b)}rda(b){this.G.V("overflow-x","auto");d3v3.select(l.Sb.Jb.rf.element).select(".fm-chart").selectAll("svg").attr("width",b)}get Wl(){return this.J$}set Wl(b){this.J$=b}Zl(b,a){if(e.Pg(h.Gv.YC)){var c=h.Gv.YC,d=h.Gv.Oba,g=this.Gb.type;b.each(function(k){k=d(k.data?k.data:k);k.type=a;k.chartType=g;c(this,k)})}}ZQ(b){b.forEach(a=>{Infinity===Math.abs(a.value)&&(a.value=0);a.ai&&this.ZQ(a.ai)})}}h.vX=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.vX{constructor(){super();this.ky=this.At=this.zt="";this.UO=0;this.Mja=!1;this.GA=10;this.KG=200;this.I_=[0,15,30,45,60,75,90]}Wd(b,a,c){super.Wd(b,a,c);this.zt=b.zt;this.At=b.At;this.ky=b.ky}Ak(b,a){this.pw=this.Io;this.au=this.Go;this.GA=this.Gb.CA?20:10;this.KG=this.pw/5;this.ZQ(b);this.o_(b,a);this.svg.attr("transform","translate("+this.nX+", "+this.GA+")")}QM(b){return d3v3.max(b,function(a){return d3v3.max(a.ai,function(c){return c.value})})}TM(b){return d3v3.min(b,
function(a){return d3v3.min(a.ai,function(c){return c.value})})}N5(b){this.zu=b}Ku(b){if(!e.v(b)&&this.zu){var a=b.data,c=b.Mw,d=b.sh||b.Kg;b.collapsed||b.Zf?this.zu("expand",a,c):d&&this.zu("drill",a,c)}}o_(b,a){var c=this.Io,d=this.Go,g=this.QM(b),k=this.TM(b);g=0>g&&(!this.Gb.uu||k==g)?0:g;k=0>k||this.Gb.uu&&k!=g?k:0;this.wm=d3v3.scale.linear().range([d,0]).domain([k,g]).nice();var m=this.Gb.Ru,n=this.Gb.xe,p=this.Gb.de,t=this.Gb.ux,r=!0===e.model.C.F.EC||null===e.model.C.F.EC&&1E7<g,v=this.Gb.Yda,
y=d3v3.svg.axis().scale(this.wm).orient("left").tickFormat(function(aa){return e.P.Kca(v(aa,m,n,p,t,r))}),A=0,C=0,B=0;b=this.svg.append("g").attr("class","fm-y fm-axis").call(y).each(function(){A=this.getBBox().width});b.append("text").attr("class","fm-y fm-axis fm-axis-label fm-title").text(this.At).each(function(){C=this.getBBox().width}).style("text-anchor","end").attr("dy","-0.5em").attr("transform","translate(-"+A+", 0) rotate(-90)");b.each(function(){A=this.getBBox().width;c-=A});this.nX=A;
var H=!e.v(a)&&0<a.length;if(H){var M=this.QM(a),Y=this.TM(a);M=0>M&&(!this.Gb.uu||Y==M)?0:M;Y=0>Y||this.Gb.uu&&Y!=M?Y:0;var D=!0===e.model.C.F.EC||null===e.model.C.F.EC&&1E7<M;this.TO=d3v3.scale.linear().range([d,0]).domain([Y,M]).nice();var E=this.Gb.z1,G=this.Gb.Dfa,F=this.Gb.cga,K=this.Gb.jga,I=d3v3.svg.axis().scale(this.TO).orient("right").tickFormat(function(aa){return e.P.Kca(v(aa,E,G,F,K,D))}),J=0,L=this.svg.append("g").attr("class","fm-y fm-axis fm-axis-2").call(I).each(function(){J=this.getBBox().width});
L.append("text").attr("class","fm-y fm-axis fm-axis-label-2 fm-title").text(this.ky).each(function(){B=this.getBBox().width}).attr("dy","1.3em").attr("transform","translate("+(J+20)+", 0) rotate(90)");L.each(function(){J=this.getBBox().width+2;c-=J}).attr("transform","translate("+c+", 0)")}var Q=this.Gb.Ml,N=Math.max(Q.length*Math.max(this.Mja?this.M3:this.Gb.lx.length*this.M3,this.Zga),c);H&&L.attr("transform","translate("+N+", 0)");a=N>c;this.mk=d3v3.scale.ordinal().rangeRoundBands([0,N],a?0:.1).domain(Q.map(function(aa){return aa.id}));
Q=d3v3.svg.axis().scale(this.mk).tickFormat(function(){return""}).orient("bottom");Q=this.svg.append("g").attr("class","fm-x fm-axis").call(Q);this.E_(Q);var W,O=Q.each(function(){W=this.getBBox().height}).append("text").attr("class","fm-x fm-axis fm-title").attr("dy","1.2em").style("text-anchor",a?"start":"middle").text(this.zt).attr("transform","translate("+(a?0:N/2)+", "+W+")"),V=this.zt;O.each(function(){this.getBBox().width>=N&&O.append("svg:title").text(V)});d-=this.GA;d=a?d-16:d;var ca=!1;
Q.each(function(){W=this.getBBox().height;d=(ca=W>4*d/5)?1*d/5:d-W}).attr("transform","translate(0,"+d+")");b.select(".fm-y.fm-axis-label").style("text-anchor",C<d?"middle":"end").attr("transform","translate(-"+(A-20)+","+(C<d?d/2:0)+") rotate(-90)");H&&L.select(".fm-y.fm-axis-label-2").style("text-anchor",B<d?"middle":"start").attr("transform","translate("+(J+5)+","+(B<d?d/2:0)+") rotate(90)");ca&&this.c1(d+W+this.GA);var fa=Math.min(60,d/2);b.select(".tick").each(function(){var aa=this.getBBox().height;
fa=Math.max(fa,aa)});Q=Math.floor(d/fa);n&&1>(g-k)/Q&&(Q=g-k);y.ticks(Q);this.wm.range([d,0]);b.call(y);H&&(I.ticks(Q),this.TO.range([d,0]),L.call(I));this.UO=0<k&&0<g?this.wm.domain()[0]:0>k&&0>g?this.wm.domain()[1]:0;H&&(0<Y&&0<M?this.TO.domain():0>Y&&0>M&&this.TO.domain());this.pw=c;this.au=d;var U=this.wm;g=U.ticks(Q);g.shift();b.selectAll(".refline").data(g).enter().append("line").attr("class","fm-refline").attr("x1",0).attr("x2",N).attr("y1",function(aa){return U(aa)}).attr("y2",function(aa){return U(aa)});
a&&this.rda(H?A+N+J:A+N)}E_(b){var a=b.append("g").attr("class","fm-axis-dividers");b=b.selectAll(".level").data(this.Gb.Pi).enter().append("g").attr("class","fm-level");var c=b.selectAll("text").data(function(A){return A}).enter().append("text").on("click",A=>this.Ku(A)).attr("class","fm-label").style("text-anchor","middle").text(function(A){return A.Zf||A.Kg?"- "+A.label:A.collapsed||A.sh?"+ "+A.label:A.label}).style("cursor",function(A){return A.collapsed||A.Zf||A.Kg||A.sh?"pointer":"auto"});b.selectAll("text").filter(function(A){return A.Of&&
0<A.Of.length||A.collapsed||A.Zf||A.Kg||A.sh}).append("svg:title").text(function(A){return A.Of&&0<A.Of.length?A.Of:A.collapsed||A.sh?e.model.B.j.KQ:A.Zf||A.Kg?e.model.B.j.JQ:""});var d=0;for(d=0;d<c.length;d++)this.XN(c[d],0);var g=Math.floor(this.mk.rangeBand()),k=[],m=0;for(d=0;d<c.length;d++){var n=this.PBa(c[d],g);k.push(n);m=Math.max(m,n)}for(d=0;d<c.length;d++)0!=k[d]&&this.XN(c[d],-m);for(d=0;d<c.length;d++)0!=k[d]&&this.XN(c[d],-m);var p=[],t=6;b.each(function(){t+=this.getBBox().height+
6;p.push(this.getBBox().height)});b.attr("transform",function(A,C){t-=p[C]+6;return"translate(0, "+t+")"});p=p.reverse();for(var r=this.mk,v=1<r.range().length?(r.range()[1]-r.range()[0]-r.rangeBand())/2:0,y=0;y<this.Gb.Pi.length;y++)a.selectAll(".refline").data(this.Gb.Pi[y].slice(1)).enter().append("line").attr("class","fm-refline").attr("x1",function(A){return r(A.id)-v}).attr("x2",function(A){return r(A.id)-v}).attr("y1",function(){return 0}).attr("y2",function(){for(var A=0,C=p.length-y,B=0;B<
C;B++)A+=p[B]+6;return A})}XN(b,a){for(var c=0;c<b.length;c++)x.Ga.Yb(b[c]).V("text-anchor","middle"),x.Ga.Yb(b[c]).attr("dy","0.38em"),x.Ga.Yb(b[c]).attr("transform",this.j2(b[c])+(0!=a?" rotate("+a+")":""))}j2(b){var a=b.getBoundingClientRect().height/2;b=b.__data__;var c=1<this.mk.range().length?(this.mk.range()[1]-this.mk.range()[0]-this.mk.rangeBand())/2:0;return"translate("+(this.mk(b.id)+this.mk.rangeBand()*b.MC/2+c*(b.MC-1))+", "+a+")"}PBa(b,a){var c=0,d=0;b.forEach(function(g){g=g.getBBox();
c<g.width&&(c=g.width,d=g.height)});return this.rva(a,Math.sqrt(c*c+d*d),this.cka(Math.atan(d/c)))}rva(b,a,c){b=Math.min(90,this.cka(Math.acos(b/a))+c||0);if(0==b)return 0;for(a=0;a<this.I_.length;a++)if(this.I_[a]>b)return this.I_[a];return b}cka(b){return 180*b/Math.PI}gT(b,a){var c=this.Gb.Qp,d=this.mk,g=0;if(0<this.Gb.lx.length){var k=this.Gb.lx;var m=d3v3.scale.ordinal().rangeRoundBands([0,d.rangeBand()],.1).domain(k);k=m.rangeBand();var n=Math.min(k,this.KG);g=k!=n?(k-n)/2:0}b=this.svg.selectAll(".state").data(b).enter().append("g").attr("transform",
function(r){return"translate("+(d(r.id)+g)+",0)"});var p=this.UO;k=b.selectAll("rect").data(function(r){return r.ai}).enter().append("rect");k.attr("class","fm-bar").attr("x",function(r){return m(r.id)}).attr("width",n).attr("y",function(r){return 0<r.value?Math.floor(100*a(r.value))/100:Math.floor(100*a(p))/100}).attr("height",function(r){return Math.floor(100*Math.abs(a(p)-a(r.value)))/100}).style("fill",function(r){return e.v(r.kr)?c(r.id):c(r.kr)}).append("title").text(function(r){return r.Of});
this.Zl(k,h.io.AB);if(this.Gb.CA){var t=0;b=b.selectAll("text").data(function(r){return r.ai}).enter().append("text").attr("class","fm-data-label").text(function(r){return r.Ms}).each(function(){t=Math.max(t,this.getBBox().width)});t>n?b.attr("y",function(r){return m(r.id)+n/2}).attr("x",function(r){var v=0<r.value?-Math.floor(100*a(r.value))/100:-Math.floor(100*a(p))/100;this.getBBox().width+3>Math.abs(v)&&(v-=Math.min(this.getBBox().width,Math.floor(100*Math.abs(a(p)-a(r.value)))/100));return v}).attr("dx",
function(r){var v=0<r.value?-Math.floor(100*a(r.value))/100:-Math.floor(100*a(p))/100;return this.getBBox().width+3>Math.abs(v)&&this.getBBox().width+3<Math.floor(100*Math.abs(a(p)-a(r.value)))/100?"-3px":"3px"}).attr("dy","0.38em").attr("transform","rotate(-90)"):b.style("text-anchor","middle").attr("x",function(r){return m(r.id)+n/2}).attr("y",function(r){return 0<r.value?Math.floor(100*a(r.value))/100:Math.floor(100*a(p))/100}).attr("dy","-3px");b.append("title").text(function(r){return r.Of});
for(k=0;k<b.length;k++){const r=b[k][0].getBoundingClientRect();this.Wl.push({element:b[k][0],type:"bar",group:b,x:r.x,y:r.y})}this.Zl(b,h.io.VF)}}S0(b,a){for(var c=this.mk,d=d3v3.svg.line().interpolate("linear").x(function(p){return c(p.id)+c.rangeBand()/2}).y(function(p){return a(p.value)}),g=0;g<b.length;g++){var k=e.v(b[g].kr)?this.Gb.Qp(b[g].id):this.Gb.Qp(b[g].kr),m=this.svg.append("g"),n=m.append("path").datum(b[g]).attr("class","fm-line").style("stroke",k).attr("d",function(p){return d(p.ai)});
this.Zl(n,h.io.AB);k=m.selectAll("circle").data(b[g].ai).enter().append("circle").attr("class","fm-circle").style("stroke",k).attr("cx",function(p){return c(p.id)+c.rangeBand()/2}).attr("cy",function(p){return a(p.value)}).attr("r",4);k.append("title").text(function(p){return p.Of});this.Zl(k,h.io.AB);if(this.Gb.CA){m=m.selectAll("text").data(b[g].ai).enter().append("text").attr("class","fm-data-label").text(function(p){return p.Ms});m.style("text-anchor","middle").attr("x",function(p){return c(p.id)+
c.rangeBand()/2}).attr("y",function(p){p=Math.floor(100*a(p.value))/100-8;return Math.max(-10,p)});m.append("title").text(function(p){return p.Of});for(k=0;k<m[0].length;k++)n=m[0][k].getBoundingClientRect(),this.Wl.push({element:m[0][k],type:"line",group:m,x:n.x,y:n.y});this.Zl(m,h.io.VF)}}}}h.nJ=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.vX{constructor(){super();this.ky=this.At=this.zt="";this.UO=0;this.GA=10;this.KG=200}Wd(b,a,c){super.Wd(b,a,c);this.zt=b.zt;this.At=b.At;this.ky=b.ky}Ak(b,a){this.pw=this.Io;this.au=this.Go;this.KG=this.pw/5;this.ZQ(b);this.o_(b,a);this.svg.attr("transform","translate("+this.nX+", "+this.GA+")")}QM(b){return d3v3.max(b,function(a){return d3v3.max(a.ai,function(c){return c.value})})}TM(b){return d3v3.min(b,function(a){return d3v3.min(a.ai,function(c){return c.value})})}N5(b){this.zu=
b}Ku(b){if(!e.v(b)&&this.zu){var a=b.data,c=b.Mw,d=b.sh||b.Kg;b.collapsed||b.Zf?this.zu("expand",a,c):d&&this.zu("drill",a,c)}}o_(b){var a=this.Io,c=this.Go,d=this.QM(b),g=this.TM(b);d=0>d&&(!this.Gb.uu||g==d)?0:d;g=0>g||this.Gb.uu&&g!=d?g:0;this.wm=d3v3.scale.linear().range([0,a]).domain([g,d]).nice();var k=this.Gb.Ru,m=this.Gb.xe,n=this.Gb.de,p=this.Gb.ux,t=!0===e.model.C.F.EC||null===e.model.C.F.EC&&1E7<d,r=this.Gb.Yda,v=d3v3.svg.axis().scale(this.wm).orient("bottom").tickFormat(function(J){return r(J,
k,m,n,p,t)}),y=this.svg.append("g").attr("class","fm-y fm-axis").call(v),A,C;y.each(function(){C=A=this.getBBox().height}).append("text").attr("class","fm-x fm-axis fm-title").attr("dy","1.2em").style("text-anchor","middle").text(this.At).attr("transform","translate("+a/2+", "+C+")");c-=this.GA;y.each(function(){A=this.getBBox().height;c-=A});var B=this.Gb.Ml,H=Math.max(B.length*Math.max(this.Gb.lx.length*this.M3,this.Zga),c);y.attr("transform","translate(0,"+H+")");b=H>c;this.mk=d3v3.scale.ordinal().rangeRoundBands([0,
H],b?0:.1).domain(B.map(function(J){return J.id}));B=d3v3.svg.axis().scale(this.mk).orient("left").tickFormat(function(){return""});var M=0;B=this.svg.append("g").attr("class","fm-x fm-axis").call(B).each(function(){M=this.getBBox().width;a-=M});this.nX=M;this.E_(B);B.each(function(){M=this.getBBox().width});var Y=B.append("text").attr("class","fm-x fm-axis fm-axis-label fm-title").text(this.zt).style("text-anchor",b?"end":"middle").attr("dy","-0.5em").attr("transform","translate(-"+M+", "+(b?0:H/
2)+") rotate(-90)"),D=this.zt;Y.each(function(){this.getBBox().width>=H&&Y.append("svg:title").text(D)});a=b?a-16:a;var E=!1;B.each(function(){M=this.getBBox().width;a=(E=M>4*a/5)?1*a/5:a-M});E&&this.rda(a+M);this.nX=M;B=10;var G=20,F=0;y.selectAll(".tick").each(function(){G=this.getBBox().width;F=Math.max(F,G)});a-=G/2;F*=1.8;a/B<F&&(B=Math.floor(a/F));m&&1>(d-g)/B&&(B=d-g);v.ticks(B);this.wm.range([0,a]);y.call(v);const K=this.G.element.querySelector("svg").getBoundingClientRect();y.select(".tick").select("text").style("text-anchor",
function(){return this.getBoundingClientRect().x<K.x?"start":"middle"});y.select(".fm-title").attr("transform","translate("+a/2+", "+C+")");this.UO=0<g&&0<d?this.wm.domain()[0]:0>g&&0>d?this.wm.domain()[1]:0;this.pw=a;this.au=c;var I=this.wm;d=I.ticks(B);d.shift();y.selectAll(".refline").data(d).enter().append("line").attr("class","fm-refline").attr("y1",0).attr("y2",-H).attr("x1",function(J){return I(J)}).attr("x2",function(J){return I(J)});d=A+H+this.GA;b&&this.c1(d)}E_(b){var a=b.append("g").attr("class",
"fm-axis-dividers");b=b.selectAll(".level").data(this.Gb.Pi).enter().append("g").attr("class","fm-level");var c=b.selectAll("text").data(function(t){return t}).enter().append("text").on("click",t=>this.Ku(t)).attr("class","fm-label").style("text-anchor","middle").text(function(t){return t.Zf||t.Kg?"- "+t.label:t.collapsed||t.sh?"+ "+t.label:t.label}).style("cursor",function(t){return t.collapsed||t.Zf||t.Kg||t.sh?"pointer":"auto"});b.selectAll("text").filter(function(t){return t.Of&&0<t.Of.length||
t.collapsed||t.Zf||t.Kg||t.sh}).append("svg:title").text(function(t){return t.Of&&0<t.Of.length?t.Of:t.collapsed||t.sh?e.model.B.j.KQ:t.Zf||t.Kg?e.model.B.j.JQ:""});var d=0;for(d=0;d<c.length;d++)this.XN(c[d],0);var g=[],k=6;b.each(function(){k+=this.getBBox().width+6;g.push(this.getBBox().width)});b.attr("transform",function(t,r){k-=g[r];t="translate("+-k+", 0)";k-=6;return t});g=g.reverse();for(var m=this.mk,n=1<m.range().length?(m.range()[1]-m.range()[0]-m.rangeBand())/2:0,p=0;p<this.Gb.Pi.length;p++)a.selectAll(".refline").data(this.Gb.Pi[p].slice(1)).enter().append("line").attr("class",
"fm-refline").attr("y1",function(t){return m(t.id)-n}).attr("y2",function(t){return m(t.id)-n}).attr("x1",function(){return 0}).attr("x2",function(){for(var t=0,r=g.length-p,v=0;v<r;v++)t+=g[v]+6;return-t})}XN(b,a){for(var c=0;c<b.length;c++)x.Ga.Yb(b[c]).V("text-anchor","end"),x.Ga.Yb(b[c]).attr("dy","0.38em"),x.Ga.Yb(b[c]).attr("transform",this.j2(b[c])+(0!=a?" rotate("+a+")":""))}j2(b){var a=b.getBoundingClientRect().height/2;b=b.__data__;b=this.mk(b.id)+this.mk.rangeBand()*b.MC/2;return"translate("+
a+", "+b+")"}gT(b,a){var c=this.Gb.Qp,d=this.mk,g=0;if(0<this.Gb.lx.length){var k=this.Gb.lx;var m=d3v3.scale.ordinal().rangeRoundBands([0,d.rangeBand()],.1).domain(k);k=m.rangeBand();var n=Math.min(k,this.KG);g=k!=n?(k-n)/2:0}b=this.svg.selectAll(".state").data(b).enter().append("g").attr("transform",function(t){return"translate(0,"+(d(t.id)+g)+")"});var p=this.UO;k=b.selectAll("rect").data(function(t){return t.ai}).enter().append("rect").attr("class","fm-bar").attr("y",function(t){return m(t.id)}).attr("height",
n).attr("x",function(t){return 0>t.value?Math.floor(100*a(t.value))/100:Math.floor(100*a(p))/100}).attr("width",function(t){return Math.floor(100*Math.abs(a(p)-a(t.value)))/100}).style("fill",function(t){return e.v(t.kr)?c(t.id):c(t.kr)});k.append("title").text(function(t){return t.Of});this.Zl(k,h.io.AB);if(this.Gb.CA){const t=this.G.find("svg").getBoundingClientRect();b=b.selectAll("text").data(function(r){return r.ai}).enter().append("text").attr("class","fm-data-label").text(function(r){return r.Ms}).attr("x",
function(r){return Math.floor(100*a(r.value))/100}).attr("y",function(r){return m(r.id)+n/2}).attr("dx",function(){const r=this.getBoundingClientRect();return r.right>t.right?`${t.right-r.right}px`:"2px"}).attr("dy","0.38em");b.append("title").text(function(r){return r.Of});this.Zl(b,h.io.VF)}}S0(b,a){for(var c=this.mk,d=d3v3.svg.line().interpolate("linear").x(function(n){return c(n.id)+c.rangeBand()/2}).y(function(n){return a(n.value)}),g=0;g<b.length;g++){var k=e.v(b[g].kr)?this.Gb.Qp(b[g].id):
this.Gb.Qp(b[g].kr),m=this.svg.append("g");m.append("path").datum(b[g]).attr("class","fm-line").style("stroke",k).attr("d",function(n){return d(n.ai)});m.selectAll("circle").data(b[g].ai).enter().append("circle").attr("class","fm-circle").style("stroke",k).attr("cx",function(n){return c(n.id)+c.rangeBand()/2}).attr("cy",function(n){return a(n.value)}).attr("r",4).append("title").text(function(n){return n.Of})}}}h.mla=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.nJ{constructor(){super()}Wd(b,a,c){super.Wd(b,a,c);this.Ak(b.data)}Ak(b){super.Ak(b);this.gT(b,this.wm)}}h.C7=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));(function(e){(function(l){(function(h){class f extends h.nJ{constructor(){super()}Wd(b,a,c){super.Wd(b,a,c);this.Ak(b.data)}Ak(b){super.Ak(b);this.S0(b,this.wm)}}h.Joa=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.nJ{constructor(){super()}Wd(b,a,c){super.Wd(b,a,c);this.Ak(b.data)}Ak(b){super.Ak(b);for(var a=this.mk,c=this.wm,d="triangle-up cross circle square triangle-down diamond".split(" "),g=0;g<b.length;g++){var k=e.v(b[g].kr)?this.Gb.Qp(b[g].id):this.Gb.Qp(b[g].kr),m=d[g%d.length],n=this.svg.append("g");m=d3v3.svg.symbol().type(m);m=n.selectAll(".scatter-point").data(b[g].ai).enter().append("path").attr("class","fm-scatter-point").attr("d",m).style("stroke",
function(){return k}).attr("transform",function(p){return"translate("+Math.round(a(p.id)+a.rangeBand()/2)+","+Math.round(c(p.value))+")"});m.append("title").text(function(p){return p.Of});this.Zl(m,h.io.AB);this.Gb.CA&&(n=n.selectAll("text").data(b[g].ai).enter().append("text").attr("class","fm-data-label").text(function(p){return p.Ms}),n.style("text-anchor","middle").attr("x",function(p){return a(p.id)+a.rangeBand()/2}).attr("y",function(p){return Math.floor(100*c(p.value))/100}).attr("dy","-8px"),
n.append("title").text(function(p){return p.Of}),this.Zl(n,h.io.VF))}}}h.mra=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.vX{constructor(){super()}Wd(b,a,c){super.Wd(b,a,c);this.update(b.data)}update(b){if(0!=b.length){var a=this.Io,c=Math.max(this.Go,70),d=Math.min(a,c)/2;c>this.Go&&this.c1(c);var g=this.Gb.Qp,k=d3v3.svg.arc().outerRadius(d-20).innerRadius(0),m=d3v3.layout.pie().sort(null).value(function(y){return Math.abs(y.value)});this.svg.attr("transform","translate("+a/2+","+c/2+")");b=this.svg.selectAll(".arc").data(m(b[0].ai)).enter().append("g").attr("class",
"fm-arc");b.append("path").attr("d",k).style("fill",function(y){return g(y.data.id)}).append("title").text(function(y){return y.data.Of});var n=d3v3.svg.arc().outerRadius(d-20).innerRadius(d),p=0;d=this.svg.append("g").attr("class","fm-pie-label");d.append("text").text("Test").each(function(){p=this.getBBox().height});d.remove();var t=[],r=[],v=[];b.each(function(y){var A=n.centroid(y);if(e.model.C.F.pja||0==r.length||2==r.length&&Math.abs(A[1]-r[1])>p||0<=r[0]&&0>=A[0])v.push(y),t.push(A),r=A});
d=this.svg.selectAll(".pie-label").data(v).enter().append("g").attr("class","fm-pie-label");d.append("text").text(function(y){return y.data.label+" ("+y.data.Ms+")"}).attr("transform",function(y,A){return"translate("+t[A]+")"}).attr("class","fm-label").attr("dy",".35em").style("text-anchor",function(y,A){return 0<t[A][0]?"start":"end"});d.selectAll("text").filter(function(y){return y.data.t3&&0<y.data.t3.length}).append("svg:title").text(function(y){return y.data.t3});this.Zl(b,h.io.AB);this.Zl(d,
h.io.VF);b=this.svg[0][0].getBBox();if(b.x+b.width>a/2||b.x<-a/2)d=x.Ga.Yb(this.svg[0][0]),k=d3v3.transform(d.attr("transform")),a=a/2/(a/2+Math.max(-a/2-b.x,b.x+b.width-a/2)),k.scale=[a,a],d.attr("transform",k.toString())}}}h.Cqa=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.nJ{constructor(){super();this.Mja=!0}Wd(b,a,c){super.Wd(b,a,c);this.Ak(b.data)}QM(b){return d3v3.max(b,function(a){return a.sNa})}TM(b){return d3v3.min(b,function(a){return a.rNa})}Ak(b){this.ZQ(b);b.forEach(function(p){var t=0,r=0;p.ai.forEach(function(v){0<=v.value?(v.K6=t,t+=v.value,v.y1=t):(v.y1=r,r+=v.value,v.K6=r)});p.rNa=r;p.sNa=t});super.Ak(b);var a=this.Gb.Qp,c=this.mk,d=this.wm;var g=c.rangeBand();0<this.Gb.lx.length&&(g=this.Gb.lx,
g=d3v3.scale.ordinal().rangeRoundBands([0,c.rangeBand()],.1).domain([g[0]]),g=g.rangeBand());var k=Math.min(g,this.KG),m=g!=k?(g-k)/2:0;m+=(c.rangeBand()-g)/2;b=this.svg.selectAll(".state").data(b).enter().append("g").attr("class","fm-bar-stack").attr("transform",function(p){return"translate("+(c(p.id)+m)+",0)"});g=b.selectAll("rect").data(function(p){return p.ai}).enter().append("rect").attr("width",k).attr("y",function(p){return Math.round(100*d(p.y1))/100}).attr("height",function(p){return Math.round(100*
Math.abs(d(p.K6)-d(p.y1)))/100}).style("fill",function(p){return a(p.id)});g.append("title").text(function(p){return p.Of});b.selectAll("path").data(function(p){return p.ai}).enter().append("path").attr("d",function(p){return"M0 "+Math.round(100*d(p.y1))/100+" l"+k+" 0"});this.Zl(g,h.io.AB);if(this.Gb.CA){var n=0;b=b.selectAll("text").data(function(p){return p.ai}).enter().append("text").attr("class","fm-data-label").text(function(p){return p.Ms}).each(function(){n=Math.max(n,this.getBBox().height)});
b.text(function(p){return n+1>Math.round(100*Math.abs(d(p.K6)-d(p.y1)))/100?"":p.Ms});g=Math.floor(n);b.style("text-anchor","middle").attr("x",function(){return k/2}).attr("y",function(p){return Math.round(100*d(p.y1))/100}).attr("dy",g+"px");b.append("title").text(function(p){return p.Of});this.Zl(b,h.io.VF)}}}h.sra=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.nJ{constructor(){super()}Wd(b,a,c){super.Wd(b,a,c);this.Ak(b.data,b.Mw)}Ak(b,a){super.Ak(b,a);this.gT(b,this.wm);this.S0(a,this.TO);this.gKa()}gKa(){if(this.Gb.CA&&1<this.Wl.length){this.Wl.sort((b,a)=>b.y-a.y);for(let b=0;b<this.Wl.length;b++)for(let a=b+1;a<this.Wl.length;a++)if(15>Math.abs(this.Wl[b].y-this.Wl[a].y)&&15>Math.abs(this.Wl[b].x-this.Wl[a].x)&&this.Wl[b]!==this.Wl[a]){const c="line"===this.Wl[b].type?this.Wl[b].group:"line"===
this.Wl[a].type?this.Wl[a].group:null;if(c){c.attr("transform","translate(0,30)");return}}}}}h.pma=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));(function(e){(function(l){(function(h){class f extends h.mla{constructor(){super()}Wd(b,a,c){super.Wd(b,a,c);this.Ak(b.data)}Ak(b){super.Ak(b);this.gT(b,this.wm)}}h.kla=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Li.GB{constructor(){super();this.A0();this.UL()}A0(){null==this.PD&&(this.PD=new x.Ga("span","fm-icon-display"))}UL(){null==this.mp&&(this.mp=new x.Ga("span","fm-text-display"))}nb(){var a=this.getData();this.G.empty();0==a.dg&&this.PD.V("background-color",a.color);this.G.append(this.PD);this.mp.html(a[this.ur()]);var c=a.Of;c&&0<c.length&&this.mp.attr("title",c);a.isCollapsed||a.ZH?this.G.attr("title",e.model.B.j.KQ):(a.dg||a.eh)&&
this.G.attr("title",e.model.B.j.JQ);this.G.aa("fm-level-"+a.level);this.G.append(this.mp);e.v(a.measure)||isNaN(a.measure.index)||this.G.attr("data-measure-index",a.measure.index);this.G.ab(l.Y.W.ya.DX,a.isCollapsed||a.ZH);this.G.ab(l.Y.W.ya.SX,a.dg||a.eh);this.Zl(this.G.element,h.io.Doa)}Zl(a,c){if(e.Pg(h.Gv.YC)){var d=this.getData().Sa();d.type=c;d.chartType=e.model.C.F.CL;h.Gv.YC(a,d)}}}f.Ioa=b})(h.ug||(h.ug={}))})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.ce.sk{constructor(a){super();this.uO=!0;this.uO=a;this.G.cm();this.color=d3v3.scale.category20c();e.model.C.F.Q5&&(this.sO=new x.Vg,this.uO?this.sO.aa("fm-chart-legend-btn fm-hide"):this.sO.aa("fm-chart-legend-btn fm-show"),this.sO.G.attr("title",this.uO?e.model.B.j.ula:e.model.B.j.wla),this.sO.N(x.Qd.uf,()=>this.FIa()),this.X(this.sO));this.gI=new x.Ga("div");this.gI.aa("fm-chart-legend-container");this.uO&&this.G.append(this.gI)}FIa(){this.Ya(w.ia.Xd)}vLa(a){this.color=
a}Wd(a){if(this.uO){this.gI.Kx();this.gI.ab("fm-legend-btn-shown",e.model.C.F.Q5);for(var c=new x.Ga("table"),d=new x.Ga("tr"),g=0;g<a.length;g++){for(var k=0;k<a[g].length;k++)a[g][k].dg||a[g][k].eh||(a[g][k].color=this.color(a[g][k].id));k=new x.Ga("td");var m=new x.Bd.vj;m.aa("fm-legend-lst-"+g);m.mi(this.kv);m.xg("label");m.useCache=!1;m.gg(a[g]);m.N(w.ia.Xd,n=>this.KV(n));k.append(m.G);d.append(k)}c.append(d);this.gI.append(c)}}uLa(a){this.zu=a}kv(a,c){var d=new f.Ioa;d.setData(a);d.hn(c);return d}KV(a){a=
a.data.Hl;var c=a.ZH||a.eh;a.isCollapsed||a.dg?this.zu("expand",a.jg,a.Vb):c&&this.zu("drill",a.jg,a.Vb)}}f.kma=b})(h.ug||(h.ug={}))})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){}static ZAa(b){switch(b){case h.Oe.XA:b=new h.C7;break;case h.Oe.hF:b=new h.kla;break;case h.Oe.RJ:b=new h.Joa;break;case h.Oe.mK:b=new h.mra;break;case h.Oe.Qv:b=new h.Cqa;break;case h.Oe.CB:b=new h.sra;break;case h.Oe.sF:b=new h.pma;break;default:b=new h.C7}return b}}h.jma=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.ce.sk{constructor(){super();this.d9=50;this.model=e.model.Wa.R();this.aa("fm-charts-view");new h.mma(this)}dispose(){this.model=this.J=null;this.Xq&&this.Xq.dispose();this.Xq=null}nb(){if(!(1>e.model.Ea.xc.bk())){null==this.Xq&&(this.Xq=this.zxa(),this.G.X(this.Xq));this.Xq.clear();this.Xq.J=this.J;this.Xq.resize(l.Sb.Io,l.Sb.Go);this.Xq.Gb=null;if(this.J&&this.J.$i){if(null==this.F1()){e.Va(e.model.B.j.xla,e.model.B.j.xa);return}this.Xq.Gb=
this.yxa()}this.Xq.nb()}}zxa(){var b=new h.nma;b.N("chart_changed",()=>this.kGa());b.N(l.Vi.sy,a=>this.HV(a));b.N("dblclick",a=>this.mGa(a));b.N("click",a=>this.lGa(a));return b}get Ds(){return this.Xq}kGa(){this.nb()}HV(b){this.Ha(b)}SDa(b){b=x.Ga.Yb(b);return b.closest(".fm-charts-filters-container")||b.closest(".fm-charts-filters-btn")?!0:!1}uI(b){b=x.Ga.Yb(b).closest(".fm-charts-filter");null!=b&&(b=e.u.Ma.R().O.uh(b.attr("data-hierarchy")),null!=b&&this.Ha(new l.KP(b)))}Gk(b,a=!1,c=null){e.model.Dc.aB.Ze(this,
b,a,c)}print(b=null){if(this.iga){var a=e.model.Dc.aB.pT(this,null,!0);a=e.model.Dc.aB.TL(e.model.kt.OF.R().C.cj)+a+e.model.Dc.aB.TL(e.model.kt.OF.R().C.Bj)}else a=e.model.Dc.aB.Cda(this,null,!0);!e.ka(e.model.C.F.Kn)&&this.iga&&(a="<center><div style='"+l.Y.W.ad.Ez(this.G.find(".fm-chart-title"))+"'>"+e.model.C.F.Kn+"</div></center>"+a);null!=b?b(a):(z.P9.print(a,"",e.model.C.F.Kn),e.model.kt.OF.R().xha());e.model.Dc.aB.clear()}get iga(){var b=new x.Ga("div");b.text("FM");b.V("font-size","10px");
b.$a();document.body.appendChild(b.element);var a="10px"==b.V("font-size");b.remove();return a}yxa(){var b=new h.W.lma;b.type=e.model.C.F.CL;b.uu=e.model.C.F.uu;b.CA=e.model.C.F.rja;b.ju=this.F1();b.gA=e.model.C.F.QG&&(b.type==h.Oe.XA||b.type==h.Oe.hF||b.type==h.Oe.RJ||b.type==h.Oe.mK);b.Ru=b.ju.Eh(b.ju.A,b.ju.$).clone();b.xe=e.u.i.ea.xe(b.ju.$);b.de=e.u.i.ea.de(b.ju.$);b.Ru.yd=b.ju.$==e.u.i.ea.Si?"":b.Ru.yd;b.ux=b.ju.type==e.u.i.Ra.ec&&e.u.i.ea.pp(b.ju.$);b.Yda=this.Xda;var a="on"==e.model.C.F.Lf||
"rows"==e.model.C.F.Lf?this.J.Fd-1:this.J.Fd,c="on"==e.model.C.F.Lf||"columns"==e.model.C.F.Lf?this.J.Ed-1:this.J.Ed;0==a&&(a=1);0==c&&(c=1);var d=3E3<c*a?3E3:-1;b.dL=b.gA?this.eea():[b.ju];e.model.C.F.Ho&&(null!=this.J.dV&&(e.model.C.F.vu=this.J.dV),null!=this.J.cV&&(e.model.C.F.FC=this.J.cV),0==this.eCa(e.model.C.F.vu)&&(e.model.C.F.vu=[]),0==this.fCa(e.model.C.F.FC)&&(e.model.C.F.FC=[]));var g=!1;switch(b.type){case h.Oe.XA:case h.Oe.hF:case h.Oe.CB:g=this.Yha(b,a,c,b.dL,b.data,b.gA&&1<b.dL.length,
void 0,d);break;case h.Oe.RJ:case h.Oe.mK:g=this.Zha(b,a,c,b.dL,b.data,b.gA&&1<b.dL.length,void 0,d);break;case h.Oe.Qv:g=this.RJa(b,a,c,b.ju,void 0,d);break;case h.Oe.sF:g=0<this.J.Da.length?this.J.Da[0]:null;var k=1<this.J.Da.length?this.J.Da[1]:null;b.Ru=g.Eh(g.A,g.$).clone();b.xe=e.u.i.ea.xe(g.$);b.de=e.u.i.ea.de(g.$);b.Ru.yd=g.$==e.u.i.ea.Si?"":b.Ru.yd;b.ux=g.type==e.u.i.Ra.ec&&e.u.i.ea.pp(g.$);e.v(k)||(b.z1=k.Eh(k.A,k.$).clone(),b.Dfa=e.u.i.ea.xe(k.$),b.cga=e.u.i.ea.de(k.$),b.z1.yd=k.$==e.u.i.ea.Si?
"":b.z1.yd,b.jga=k.type==e.u.i.Ra.ec&&e.u.i.ea.pp(k.$));g=this.QJa(b,a,c,g,k,d)}e.model.C.F.uja&&g&&e.Va(e.model.B.j.yla,e.model.B.j.s$,e.ob.nk);this.PJa(b);b.type!=h.Oe.Qv&&(b.zt=this.KCa(),b.type==h.Oe.sF?(g=0<this.J.Da.length?this.J.Da[0]:null,k=1<this.J.Da.length?this.J.Da[1]:null,b.At=null!=g?g.label:"",b.ky=null!=k?k.label:""):(e.model.C.F.QG?(a=this.eea(),b.At=1==a.length?a[0].label:""):b.At=this.F1().label,b.ky=""));return b}PJa(b){if(e.v(this.b6)||0==this.b6.length)this.b6=this.dBa();b.Qp=
d3v3.scale.ordinal().range(this.b6);if(b.ug&&0<b.ug.length){var a=[],c=[],d,g;for(d=0;d<b.ug.length;d++){var k=b.ug[d][0].id;var m=b.Qp(k);b.ug[d][0].dg||(a.push(k),c.push(m));k=[];for(g=1;g<b.ug[d].length;g++)b.ug[d][g].dg||k.push(b.ug[d][g].id);a=a.concat(k);g=d3v3.rgb(m);g=d3v3.rgb(g.r-25,g.g-25,g.b-25);m=d3v3.rgb("#EEEEEE");m=d3v3.scale.linear().domain([0,k.length+1]).range([g,m]);g=1;for(k=0;g<b.ug[d].length;g++)b.ug[d][g].dg||(c.push(m(k).toString()),k++)}b.Qp=d3v3.scale.ordinal().domain(a).range(c)}}dBa(){var b=
[],a=1,c=new x.Ga("div");c.$a();for(l.Sb.Jb.G.X(c);100>a;){c.o5("class");c.aa("fm-charts-color-"+a);var d=window.getComputedStyle(c.element).fill;e.ka(d)&&(d="#000");if("none"!=d)b.push(d);else break;a++}c.remove();return b}F1(){var b=this.J.Da.find(k=>k.A===e.model.C.F.Fo.A);if(null!=b&&(""!=e.model.C.F.Fo.$||!e.v(e.model.C.F.Fo.index))){var a=!0,c=!0;for(g=0;g<this.J.Da.length;g++){var d=this.J.Da[g];if(d.A==e.model.C.F.Fo.A)if(""==e.model.C.F.Fo.$){b=d;break}else if(d.$==e.model.C.F.Fo.$)if(a=
!1,null==e.model.C.F.Fo.index||-1==e.model.C.F.Fo.index){b=d;break}else if(d.index==e.model.C.F.Fo.index){b=d;c=!1;break}}a&&(e.model.C.F.Fo.$="");c&&(e.model.C.F.Fo.index=-1)}if(null==b)if(e.model.C.F.sc)for(var g=0;g<this.J.Da.length&&(b=this.J.Da[g],b.type==e.u.i.Ra.wc);g++);else b=this.J.Da[0];return b}eea(){var b=[],a=e.model.C.F.PG;if(0<a.length)for(var c=[],d=0;d<a.length;d++){for(var g=a[d],k,m=!0,n=!0,p=0;p<this.J.Da.length;p++){var t=this.J.Da[p];if(t.A==g.A)if(-1==c.indexOf(t.index)&&(k=
t),""==g.$)break;else if(t.$==g.$)if(m=!1,null==g.index||-1==g.index){if(-1==c.indexOf(t.index)){k=t;break}}else if(t.index==g.index){k=t;n=!1;break}}m&&(e.model.C.F.PG[d].$="");n&&(e.model.C.F.PG[d].index=-1);null!=k&&(c.push(k.index),b.push(k))}else b=this.J.Da.slice();0==b.length&&(b=this.J.Da.slice(),e.model.C.F.PG=[]);return b}eCa(b){for(var a=0,c,d=0;d<this.J.Ed;d++)c=this.J.Vn(d),this.rS(b,c)&&a++;return a}fCa(b){for(var a=0,c,d=0;d<this.J.Fd;d++)c=this.J.ak(d),this.sS(b,c)&&a++;return a}rS(b,
a){return a.length!=b.length+1||0!=b.length&&0!=a.join(",").indexOf(b.join(",")+",")?!1:!0}sS(b,a){return a.join()==b.join()||a.length==b.length+1&&(0==b.length||0==a.join(",").indexOf(b.join(",")+","))?!0:!1}KCa(){for(var b=[],a=0;a<this.J.rows.length;a++)b.push(this.J.rows.fa(a).label);return b.join(" / ")}Gea(b){for(var a=[],c,d=0;d<b.length;d++)c=b[d],c=c.Eh(c.A,c.$).clone(),a.push(c);return a}ZM(b,a,c,d,g,k=""){a=c+": "+a;b.type==h.Oe.Qv&&0<k.length&&(a+=" of "+k);c=this.J.Lb.bb&&1==this.J.Ka.length;
d=this.J.$b.bb&&1==this.J.rows.length?"":this.l2(d,e.u.i.ha.Ia,!1,null,!0);g=c?"":this.l2(g,e.u.i.ha.Oa,!1,null,!0);d=this.hx(d);g=this.hx(g);0<d.length&&(a=a+"\n"+d);0<g.length&&(a=a+"\n"+g);b.type!=h.Oe.Qv&&0<k.length&&(a=a+"\nTotal: "+k);return a}l2(b,a,c=!1,d=null,g=!1){if(c&&a==e.u.i.ha.Ia)return null!=d?d.hierarchy.label+": "+d.caption:e.model.B.j.Gra+" "+(b[0]+1).toString();c=[];a=a==e.u.i.ha.Oa?this.J.Fb:this.J.wb;for(var k,m=0;m<b.length;m++)d=a.fa(m),null!=d&&(k=b[m],c.push(this.Pga(d.za(k),
g)));return c.join(" - ")}mGa(b){this.Gfa(b.target)&&this.cd(b.target)}lGa(b){b=this.UT(b.target,!0);e.v(b)||e.model.Za.R().Ha(new e.model.jd(e.model.Za.k7,b))}Gfa(b){if(e.v(e.u.Ma.R().ga)||!e.u.Ma.R().ga.KU||!e.model.C.F.cd)return!1;b=b.__data__;null!=b&&b.data&&(b=b.data);return b&&b.measure&&null==this.model.ja.O.fd(b.measure.A)?!1:b&&b.measure&&b.Jg&&b.Ah}cd(b){var a=b.__data__;null!=a&&a.data&&(a=a.data);b=new l.R7(a.measure,a.Jg,a.Ah,this.UT(b,!0));this.Ha(b)}Pga(b,a=!1){var c="";if(!e.v(b)){for(var d=
[];!e.v(b.parent);)d.unshift(b.caption),b=b.parent;c=a?b.hierarchy.label+": ":"";c+=d.join("/")}return c}hx(b){return b=b.length<=this.d9?b:b.substr(0,this.d9)+"..."}eh(b,a){if(0==b.length)return!1;var c=a==e.u.i.ha.Oa?this.J.Ka:this.J.rows;if(0==c.length)return!1;c=c.fa((a==e.u.i.ha.Oa?this.J.Lb:this.J.$b).bb&&(0==b.length||b.length>this.J.ke)?b.length:b.length-1).za(b[b.length-1]);return a==e.u.i.ha.Oa?this.J.Fj(b,c):this.J.Ih(b,c)}y_(b,a,c){if(0!=a.length){var d=c==e.u.i.ha.Oa?this.J.Lb:this.J.$b,
g=c==e.u.i.ha.Oa?this.J.Ka:this.J.rows;if(0!=g.length){var k=d.bb&&1==g.length,m=g.fa(d.bb&&a.length>this.J.ke?a.length:a.length-1);d=m.za(a[a.length-1]);var n=g=k?m.label:d.caption;g=this.hx(g);n=g!=n?n:"";g=e.P.Ro(g,!0,!0);k=k?"":d.level.A;k=c==e.u.i.ha.Oa?this.J.NC.indexOf(k):this.J.Fl.indexOf(k);var p=this.wr(a),t=c==e.u.i.ha.Oa?this.J.Gj(a):this.J.wh(a),r=c==e.u.i.ha.Oa?this.J.Fj(a,d):this.J.Ih(a,d),v=a.length<(c==e.u.i.ha.Oa?this.J.Ck:this.J.Uk)&&!t&&!r;m=m.Ef&&!d.Hh&&!d.dc&&!d.fh&&!t&&!r;0!=
k&&0!=b.length||b.push([]);b[b.length-1].push(new h.W.a9({label:g,id:p,jg:a,OMa:c,Vb:d,level:k,dg:t,isCollapsed:v,eh:r,ZH:m,Of:n}))}}}wr(b){return b.join("-")}D_(b,a,c,d=!1,g=null,k=null){var m=c==e.u.i.ha.Oa?this.J.Lb:this.J.$b,n=c==e.u.i.ha.Oa?this.J.Fb:this.J.wb,p=m.bb&&1==n.length,t=a.length-1,r=n.fa(t);if(null==r)return b.Ml.push({label:"",id:this.wr(a)}),"";t=a[a.length-1];t=r.za(t);var v="";if(0<a.length)if(d)v=null!=g?g.caption:(a[0]+1).toString();else if(0<n.length){v=p?r.label:t.caption;
var y=p?"":t.level.A}g=this.wr(a);var A=this.hx(p?"":v);b.Ml.push({label:A,id:g});y=this.J.Fl.indexOf(y);null==b.Pi[y]&&(b.Pi[y]=[]);var C=e.model.C.F.Ho?a.length<=e.model.C.F.vu.length:p?!1:c==e.u.i.ha.Oa?this.J.Gj(a):this.J.wh(a);var B=c==e.u.i.ha.Oa?this.J.Ck:this.J.Uk;b.Pi[y].push({label:A,id:g,data:a,Mw:t,Zf:C,collapsed:p?!1:!C&&a.length<B,Kg:!1,sh:p?!1:r.Ef&&!t.Hh&&!t.dc&&!t.fh,MC:1,Of:A!=v?v:""});this.C_(b,a,t,c,g);for(d=d?0:a.length-1;0<d;)d--,t=m.bb&&d+1>this.J.ke?d+1:d,r=n.fa(t),t=a[d],
t=r.za(t),y=t.level.A,y=this.J.Fl.indexOf(y),null==b.Pi[y]&&(b.Pi[y]=[]),r=p?r.label:t.caption,A=this.hx(r),r=A!=r?r:"",C=k.pop(),void 0===C?b.Pi[y][b.Pi[y].length-1].MC++:b.Pi[y].push({label:A,id:g,data:C,Mw:t,Zf:!0,collapsed:!1,Kg:!1,sh:!1,MC:1,Of:r}),this.C_(b,a,t,c,g);return v}C_(b,a,c,d,g){try{c.level.yb}catch(r){c.level.yb}if(c&&1<c.level.yb){var k=this.J.Fl.indexOf(c.parent.level.A);null==b.Pi[k]&&(b.Pi[k]=[]);var m=c.parent.caption,n=m;m=this.hx(m);n=m!=n?n:"";if(m===(0<b.Pi[k].length?b.Pi[k][b.Pi[k].length-
1].label:""))b.Pi[k][b.Pi[k].length-1].MC++;else{var p=(d==e.u.i.ha.Oa?this.J.Fb:this.J.wb).indexOf(c.hierarchy.A),t=a.slice(0,p);t[p]=c.parent.ordinal;b.Pi[k].push({label:m,id:g,data:t,Mw:c.parent,Zf:!1,collapsed:!1,Kg:!0,sh:!1,MC:1,Of:n})}this.C_(b,a,c.parent,d,g)}}I(b,a){if(0==b.length)return"";var c=a==e.u.i.ha.Oa?this.J.Lb:this.J.$b,d=a==e.u.i.ha.Oa?this.J.Ka:this.J.rows;if(0==d.length)return"";a=c.bb&&1==d.length;c=d.fa(c.bb&&(0==b.length||b.length>this.J.ke)?b.length:b.length-1);b=b[b.length-
1];return a?c.label:this.Pga(c.za(b))}dS(b,a,c){b.push([]);b[b.length-1].push(new h.W.a9({label:a.label,id:c,measure:a,level:0,dg:!1,isCollapsed:!1,eh:!1,ZH:!1,Of:""}))}eq(b,a,c,d,g,k,m,n){return this.model.Fa.ga.Aa!=e.u.i.ra.Cc&&this.model.Fa.ga.Aa!=e.u.i.ra.Pd||!e.model.C.F.co||d.$!=e.u.i.ea.NONE?this.Xda(b,g,k,m,n):this.J.eq(a,c,d)}Xda(b,a,c,d,g,k=!1){return g?e.P.ey(b,e.model.C.F.np):d?u.bc.format(b,a,c,d):k?u.bc.SLa(b,a,c,d):u.bc.format(b,a,c,d)}Zha(b,a,c,d,g,k=!1,m=null,n=-1){var p=!0,t=!0,
r=[],v=this.J.Lb.bb&&1==this.J.Ka.length,y=this.J.$b.bb&&1==this.J.rows.length;var A="";var C=NaN,B,H=d[0],M=this.Gea(d),Y=M[0],D=e.u.i.ea.xe(H.$),E=e.u.i.ea.de(H.$);Y.yd=H.$==e.u.i.ea.Si?"":Y.yd;var G=H.type==e.u.i.Ra.ec&&e.u.i.ea.pp(H.$);if(null!=m)var F=this.J.ak(this.model.ja.qa.rows.indexOf(m.A)),K=this.model.ja.O.nf(m.A);var I=!1,J=c;for(c=0;c<a;c++){var L=c;L=this.J.ak(L);if(!e.model.C.F.Ho||this.sS(e.model.C.F.FC,L)||v||0==this.J.Ka.length){var Q=this.eh(L,e.u.i.ha.Oa);k||v||this.y_(r,L,e.u.i.ha.Oa);
if(!Q){if(0<this.J.Ka.length&&0<L.length){var N=[];if(!k&&(C=this.J.La(N,L,H),0==this.Zz(C)&&this.model.Fa.ga.Aa!=e.u.i.ra.Cc&&this.model.Fa.ga.Aa!=e.u.i.ra.Pd))continue;A=this.J.Lb.bb&&(0==L.length||L.length>this.J.ke)?L.length:L.length-1;A=this.J.Ka.fa(A);var W=L[L.length-1];A=v?A.label:A.za(W).caption}Q=0==L.length?!1:this.J.Gj(L);if(!Q){W=[];var O=[];if(k){for(var V=0;V<d.length;V++){H=d[V];D=e.u.i.ea.xe(H.$);E=e.u.i.ea.de(H.$);M[V].yd=H.$==e.u.i.ea.Si?"":M[V].yd;G=H.type==e.u.i.Ra.ec&&e.u.i.ea.pp(H.$);
t&&this.dS(r,H,V.toString());W=[];for(B=0;B<J;B++){N=this.J.Vn(B);var ca=this.wr(N);if(Q=0==N.length?!1:this.J.wh(N))if(O.push(N),!e.model.C.F.Ho)continue;Q=this.eh(N,e.u.i.ha.Ia);if(!Q&&(!e.model.C.F.Ho||this.rS(e.model.C.F.vu,N)||y||0==this.J.rows.length)){Q=p?this.D_(b,N,e.u.i.ha.Ia,null,null,O.splice(0)):this.I(N,e.u.i.ha.Ia);O=[];var fa=this.J.La(N,L,H);if(this.Zz(fa)){var U=this.eq(fa,N,L,H,M[V],D,E,G);var aa=this.ZM(b,U,H.label,N,L);W.push({label:Q,value:fa,Ms:U,id:ca,Of:aa,measure:{A:H.A,
$:H.$,index:H.index},Ah:N,Jg:L})}if(p&&0<b.Ml.length&&(ca=b.Ml.length,-1<n&&ca>=n)){J=B+1;I=!0;break}}}p=!1;ca=this.wr(L)+"-"+V;B=V.toString();g.push({label:A,value:C,id:ca,kr:B,ai:W})}t=!1}else{for(B=0;B<J;B++){N=this.J.Vn(B)||[];ca=this.wr(N);if(Q=0==N.length?!1:this.J.wh(N))if(O.push(N),!e.model.C.F.Ho)continue;Q=this.eh(N,e.u.i.ha.Ia);if(!Q&&(!e.model.C.F.Ho||this.rS(e.model.C.F.vu,N)||y||0==this.J.rows.length)){if(p){if(null!=m){var ka=this.J.La(N,F,K);ka=m.za(ka)}Q=this.D_(b,N,e.u.i.ha.Ia,!1,
ka,O.slice(0))}else Q=this.I(N,e.u.i.ha.Ia);O=[];fa=this.J.La(N,L,H);this.Zz(fa)&&(U=this.eq(fa,N,L,H,Y,D,E,G),aa=this.ZM(b,U,H.label,N,L,""),W.push({label:Q,value:fa,Ms:U,id:ca,Of:aa,measure:{A:H.A,$:H.$,index:H.index},Ah:N,Jg:L}));if(p&&0<b.Ml.length&&(ca=b.Ml.length,-1<n&&ca>=n)){J=B+1;I=!0;break}}}p=!1;ca=this.wr(L);g.push({label:A,value:C,id:ca,Jg:L,ai:W})}}}}}b.ug=r;return I}Yha(b,a,c,d,g,k=!1,m=null,n=-1){var p=!0,t=!0,r=[],v=[],y=this.J.$b.bb&&1==this.J.rows.length,A=this.J.Lb.bb&&1==this.J.Ka.length;
var C="";var B=NaN,H,M,Y,D=d[0],E=this.Gea(d),G=E[0],F=e.u.i.ea.xe(D.$),K=e.u.i.ea.de(D.$);G.yd=D.$==e.u.i.ea.Si?"":G.yd;var I=D.type==e.u.i.Ra.ec&&e.u.i.ea.pp(D.$);if(null!=m)var J=this.J.ak(this.model.ja.qa.rows.indexOf(m.A)),L=this.model.ja.O.nf(m.A);var Q=!1,N=a,W=[];for(M=0;M<c;M++){var O=this.J.Vn(M)||[];if(H=0==O.length?!1:this.J.wh(O))if(W.push(O),!e.model.C.F.Ho)continue;var V=this.eh(O,e.u.i.ha.Ia);if(!V&&(!e.model.C.F.Ho||this.rS(e.model.C.F.vu,O)||y||0==this.J.rows.length)){if(null!=m){V=
this.J.La(O,J,L);var ca=m.za(V)}var fa=this.D_(b,O,e.u.i.ha.Ia,!1,ca,W.slice(0));W=[];var U=[];if(!k&&(B=this.J.La(O,U,D),!1===this.Zz(B)&&!1===e.u.i.ea.nN(D.$)&&this.model.Fa.ga.Aa!=e.u.i.ra.Cc&&this.model.Fa.ga.Aa!=e.u.i.ra.Pd))continue;var aa=[];var ka=this.eq(B,O,U,D,b.Ru,b.xe,b.de,b.ux);for(Y=0;Y<N;Y++)if(U=Y,U=this.J.ak(U),!e.model.C.F.Ho||this.sS(e.model.C.F.FC,U)||A||0==this.J.Ka.length){var ha=this.wr(U);H=0==U.length?!1:this.J.Gj(U);V=this.eh(U,e.u.i.ha.Oa);k||(p&&!A&&this.y_(r,U,e.u.i.ha.Oa),
t&&(H||V||v.push(ha)));if(!V&&(0<this.J.Ka.length&&0<U.length&&(C=this.J.Lb.bb&&(0==U.length||U.length>this.J.ke)?U.length:U.length-1,C=this.J.Ka.fa(C),V=U[U.length-1],C=A?C.label:C.za(V).caption),!H))if(k){for(var R,P=0;P<d.length;P++){D=d[P];F=e.u.i.ea.xe(D.$);K=e.u.i.ea.de(D.$);E[P].yd=D.$==e.u.i.ea.Si?"":E[P].yd;I=D.type==e.u.i.Ra.ec&&e.u.i.ea.pp(D.$);R=ha+"-"+P;var ba=P.toString();p&&this.dS(r,D,P.toString());t&&(H||v.push(R));V=this.J.La(O,U,D);if(this.Zz(V)){var Z=this.eq(V,O,U,D,E[P],F,K,
I);var X=b.type==h.Oe.CB?ka:"";X=this.ZM(b,Z,D.label,O,U,X);aa.push({label:C,value:V,Ms:Z,id:R,kr:ba,Of:X,measure:{A:D.A,$:D.$,index:D.index},Ah:O,Jg:U})}if(-1<n&&v.length>=n){N=Y+1;break}}p=!1}else if(V=this.J.La(O,U,D),this.Zz(V)&&(Z=this.eq(V,O,U,D,G,F,K,I),X=b.type==h.Oe.CB?ka:"",X=this.ZM(b,Z,D.label,O,U,X),aa.push({label:C,value:V,Ms:Z,id:ha,Of:X,measure:{A:D.A,$:D.$,index:D.index},Ah:O,Jg:U})),-1<n&&v.length>=n){N=Y+1;break}}t=p=!1;ha=this.wr(O);g.push({label:fa,value:B,id:ha,ai:aa});O=b.type==
h.Oe.CB?b.Ml.length:b.Ml.length*a;if(-1<n&&O>=n){Q=!0;break}}}b.ug=r;b.lx=v;return Q}RJa(b,a,c,d,g=null,k=-1){b.fI=e.u.i.ha.Ia;var m=!0,n=[],p=this.J.Lb.bb&&1==this.J.Ka.length,t;var r=t="";var v,y=e.model.C.F.BL;if(y>=a||-1==y)y=e.model.C.F.BL=0;null!=g&&this.J.ak(this.model.ja.qa.rows.indexOf(g.A));var A=!1;for(g=0;g<a;g++){var C=g;C=this.J.ak(C);var B=[];var H=this.J.La(B,C,d);if(0<this.J.Ka.length&&0<C.length){var M=this.J.Lb.bb&&(0==C.length||C.length>this.J.ke)?C.length:C.length-1;r=this.J.Ka.fa(M);
M=C[C.length-1];r=p?r.label:r.za(M).caption;r=this.hx(r)}var Y=p?"":this.l2(C,e.u.i.ha.Oa);Y=this.hx(Y);b.Ml.push({label:Y,id:this.wr(C)});if(0!=this.Zz(H)||this.model.Fa.ga.Aa==e.u.i.ra.Cc||this.model.Fa.ga.Aa==e.u.i.ra.Pd)if(b.Ml.length-1==y||1==a){var D=[];var E=this.eq(H,B,C,d,b.Ru,b.xe,b.de,b.ux);Y=this.J.$b.bb&&1==this.J.rows.length;for(v=0;v<c;v++)if(B=this.J.Vn(v)||[],!e.model.C.F.Ho||this.sS(e.model.C.F.vu,B)||Y||0==this.J.rows.length){var G=this.J.La(B,C,d);if(this.Zz(G)&&(M=this.eh(B,e.u.i.ha.Ia),
m&&!Y&&this.y_(n,B,e.u.i.ha.Ia),!M&&(M=0==B.length?!1:this.J.wh(B),!M))){0<this.J.rows.length&&(M=this.J.$b.bb&&(0==B.length||B.length>this.J.ke)?B.length:B.length-1,t=this.J.rows.fa(M),M=B[B.length-1],t=Y?t.label:t.za(M).caption);M=this.wr(B);var F=this.eq(G,B,C,d,b.Ru,b.xe,b.de,b.ux);var K=this.ZM(b,F,d.label,B,C,E);var I=t;t=this.hx(t);I=Y||I==t?"":I;D.push({label:Y?"":t,value:G,Ms:F,id:M,Of:K,measure:{A:d.A,$:d.$,index:d.index},Ah:B,Jg:C,t3:I});B=D.length;if(-1<k&&B>=k){A=!0;break}}}m=!1;M=this.wr(C);
b.data.push({label:r,value:H,id:M,Jg:C,ai:D})}}b.ug=n;return A}QJa(b,a,c,d,g,k=-1){k=this.Yha(b,a,c,[d],b.data,!1,null,k);if(!e.v(g)){var m=-1;k&&(m=b.Ml.length);b.Ml=[];b.Pi=[];var n=b.ug;b.ug=[];this.Zha(b,a,c,[g],b.Mw,!1,null,m);0==n.length&&(this.dS(n,d,"0"),this.dS(n,g,"1"));b.ug=n;1==b.Mw.length&&(b.Mw[0].kr="2")}return k}UT(b,a=!1){var c=b.__data__;null!=c&&c.data&&(c=c.data);if(e.v(c)&&e.model.C.F.QG){var d=x.Ga.Yb(b).closest("li.fm-ui-element");!e.v(d)&&d.attr("data-measure-index")&&(c={iE:parseInt(d.attr("data-measure-index"))})}d=
c;a&&(d=f.Oba(c),e.v(d)||(d.element=b));return d}Zz(b){return!isNaN(b)&&e.u.i.tP.qP!=b}static Oba(b){if(e.v(b))return null;var a={};e.v(b.id)||(a.id=b.id);e.v(b.label)||(a.label=b.label);e.v(b.value)||(a.value=b.value);e.v(b.measure)||(a.measure=e.model.Wa.R().ja.qa.fd(b.measure.A).lj());e.v(b.iE)||(a.measureIndex=b.iE);e.v(b.Ah)||(a.rows=e.model.Wa.R().ja.qa.r0(b.Ah));e.v(b.Jg)||(a.columns=e.model.Wa.R().ja.qa.q0(b.Jg));return a}}f.YC=null;h.Gv=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.mr.Vqa{constructor(a){super(a);this.Db=e.model.Wa.R()}Fz(a){var c=[];a.Wc.forEach(d=>{c.push({id:`aggregation_${d}`,label:e.u.i.ea.HG(d),isSelected:d==a.$,handler:()=>this.iha(a,d)})});return c}iha(a,c){const d=this.Db.ja.qa.clone();a=d.gd()[a.index];e.v(a)||(a.$=c,this.Db.ge(d))}YS(a,c,d){e.Pg(f.YL)&&(a=f.YL(a.slice(),c,d)||a);return a}eT(a,c,d=null){this.Db.Ya(e.K.Vi.t7,this,{GFa:a,coords:c,mL:d})}}f.YL=null;h.mP=f;class b extends f{constructor(a){super(a.G);
this.K=a;this.K.N(h.uc.OJ,()=>this.lHa());this.K.N(h.uc.Gt,c=>this.cHa(c))}lHa(){const a=this.K.na.Lr;if(0!=a.length){var c=a[0];const d=this.K.G.sg(),g=d.left+this.K.na.coords.hm(c.kc,this.K.na.ac)+this.K.na.coords.Dh(c.kc);c=d.top+this.K.na.coords.Vo(c.lb,this.K.na.ac)+this.K.na.coords.$d(c.lb);1==a.length?this.show(a[0],{left:g,top:c}):this.yja(a,{left:g,top:c})}}cHa(a){if(a.t5){var c=this.K.na.Tu(a.t5.G.element);a=a.t5.G.getBoundingClientRect();this.show(c,{left:a.right,top:a.bottom})}else{c=
this.K.na.ag(a.lb,a.kc,!0);c.lb=a.lb;c.kc=a.kc;var d=this.K.G.sg();a=d.left+this.K.na.coords.hm(c.kc,this.K.na.ac)+this.K.na.coords.Dh(c.kc);d=d.top+this.K.na.coords.Vo(c.lb,this.K.na.ac)+this.K.na.coords.$d(c.lb);this.show(c,{left:a,top:d})}}B4(a,c){a=this.K.na.Tu(a.target)||this.K.na.jea(c.clientX,c.clientY);null==a||e.ka(a.label)&&isNaN(a.value)||(this.show(a,{left:c.clientX,top:c.clientY}),this.K.na.Ks())}O4(a){var c=this.K.G.sg(),d=a.clientX-c.left,g=a.clientY-c.top,k=a.clientX,m=a.clientY;if(!(0>
d||0>g||d>this.K.cg()||g>this.K.zd())){d=this.K.na.Tu(a.target)||this.K.na.jea(a.clientX,a.clientY);g=this.K.na.Lr;0==a.which&&0!=g.length&&(d=g[0],k=c.left+this.K.na.coords.hm(d.kc,this.K.na.ac)+this.K.na.coords.Dh(d.kc),m=c.top+this.K.na.coords.Vo(d.lb,this.K.na.ac)+this.K.na.coords.$d(d.lb));c=!1;if(1<g.length)for(var n=0;n<g.length;n++)if(g[n].lb==d.lb&&g[n].kc==d.kc){c=!0;break}(1<g.length&&c?this.yja(g,{left:k,top:m}):this.show(d,{left:k,top:m}))&&a.preventDefault()}}yja(a,c){if(e.model.C.F.readOnly)return!1;
var d=[],g=this.K;if(this.UDa(a)){var k=a[0].hierarchy,m=a.map(n=>n.Vb.ordinal);d.push({id:"group",label:e.model.B.j.Lla,handler:()=>{e.PMa({Aha:n=>{k.eba(n,m);this.Db.ja.select();this.K.na.Ks()},AV:()=>{this.K.na.Ks()}})}})}d=this.YS(d,a.map(n=>n.Sa()),g.dj?"flat":"pivot");return 0<d.length?(this.eT(d,c),!0):!1}UDa(a){if(!e.model.C.F.mU)return!1;var c=a[0].hierarchy;if(e.v(c))return!1;for(var d=0;d<a.length;d++){var g=a[d];if(g.hierarchy!=c||e.v(g.Vb))return!1}return!0}show(a,c){if(e.model.C.F.readOnly)return!1;
let d=[];const g=this.K;var k=e.v(a)||e.ka(a.label)&&isNaN(a.value);!k&&a.li&&!isNaN(a.value)&&e.model.C.F.cd&&!e.model.C.F.sc&&e.u.Ma.R().ga&&e.u.Ma.R().ga.KU&&d.push({id:"drillthrough",label:e.model.B.j.s7,handler:()=>{g.cd(a)}});const m=this.Db.ja.qa;if(!e.v(m)){!k&&a.vl&&e.model.C.F.Vx&&d.push({id:"open_filter",label:e.model.B.j.u7,handler:()=>{this.K.Ha(new l.KP(a.hierarchy))}});if(!k&&a.vl&&!e.model.C.F.sc){var n=m.Iza(a.hierarchy.A);e.v(n)||(n.A!=e.u.i.ha.Ia&&d.push({id:"move_to_rows",label:e.model.B.j.Qla,
handler:()=>{n.Na.removeItem(a.hierarchy.A);m.$b.Na.Ta(a.hierarchy.A,a.hierarchy);this.Db.ge(m)}}),n.A!=e.u.i.ha.Oa&&d.push({id:"move_to_columns",label:e.model.B.j.Ola,handler:()=>{n.Na.removeItem(a.hierarchy.A);m.Lb.Na.Ta(a.hierarchy.A,a.hierarchy);this.Db.ge(m)}}),n.A!=e.u.i.ha.Lt&&d.push({id:"move_to_report_filters",label:e.model.B.j.Pla,handler:()=>{n.Na.removeItem(a.hierarchy.A);m.vI.Na.Ta(a.hierarchy.A,a.hierarchy);this.Db.ge(m)}}),d.push({id:"remove_field",label:e.P.bind(e.model.B.j.v7,a.hierarchy.caption),
handler:()=>{n.Na.removeItem(a.hierarchy.A);this.Db.ge(m)}}))}k||!a.xh&&!a.Ng||(a.Zf&&d.push({id:"collapse",label:e.model.B.j.Dla,handler:()=>{g.Ku(a)}}),a.collapsed&&d.push({id:"expand",label:e.model.B.j.Jla,handler:()=>{g.Ku(a)}}),!(a.hierarchy&&2<a.hierarchy.ua.length)||m.hf&&a.xh||m.Xf&&a.Ng||(a.Kg||a.sh)&&d.push({id:a.Kg?"drill_up":"drill_down",label:a.Kg?e.model.B.j.Gla:e.model.B.j.Fla,handler:()=>{g.vz(a)}}));!k&&(a.xh||a.Ng)&&a.Vb&&a.Vb.fh&&d.push({id:"ungroup",label:e.model.B.j.$la,handler:()=>
{a.hierarchy.LO(a.Vb);this.Db.ja.select()}});!k&&a.xh&&!a.vl&&a.ao&&(a.jp||d.push({id:"sort_row_desc",label:e.model.B.j.Zla,handler:()=>{g.d6(a,e.u.i.Ba.Nc)}}),a.ip||d.push({id:"sort_row_asc",label:e.model.B.j.Yla,handler:()=>{g.d6(a,e.u.i.Ba.hc)}}),(a.ip||a.jp)&&d.push({id:"clear_sorting",label:e.model.B.j.r7,handler:()=>{g.gwa()}}));!k&&a.Ng&&!a.vl&&a.ao&&(a.jp||d.push({id:"sort_column_desc",label:e.model.B.j.Xla,handler:()=>{g.yO(a,e.u.i.Ba.Nc)}}),a.ip||d.push({id:"sort_column_asc",label:e.model.B.j.Wla,
handler:()=>{g.yO(a,e.u.i.Ba.hc)}}),(a.ip||a.jp)&&d.push({id:"clear_sorting",label:e.model.B.j.r7,handler:()=>{g.awa()}}));if(!k&&(a.xh||a.Ng)){if(e.model.C.F.LI&&a.hierarchy&&a.Vb&&0<a.Vb.level.Ye.length){var p=this.YBa(a.Vb.level.Ye,a.Vb.level.A);0<p.length&&d.push({id:"member_properties",label:e.model.B.j.Sla,submenu:p})}a.Vb&&e.model.C.F.Vx&&1!==a.Vb.hierarchy.eb.length&&(d.push({id:"filter_by",label:e.P.bind(e.model.B.j.Kla,a.Vb.caption),handler:()=>{this.Db.Il(a.hierarchy.A,{members:[a.Vb.Fi]})}}),
d.push({id:"exclude",label:e.P.bind(e.model.B.j.Ila,a.Vb.caption),handler:()=>{var r=a.hierarchy.vr(a.hierarchy.filter.Hi(!0));r=0===a.hierarchy.eb.length?[a.Vb.Fi]:r.concat(a.Vb.Fi);this.Db.Il(a.hierarchy.A,{exclude:r})}}))}k||!this.tDa(a)&&!this.sDa(a)||(p=this.Fz(a.measure),0<p.length&&d.push({id:"aggregation",label:e.model.B.j.q7,submenu:p}));!k&&a.measure&&l.Sb.Jb.jfa&&(d.push({id:"number_formatting",label:e.model.B.j.Rla,handler:()=>{this.aJa(a.measure)}}),d.push({id:"conditional_formatting",
label:e.model.B.j.Ela,handler:()=>{this.ZIa(a.measure)}}));!k&&a.measure&&a.measure.Qa&&d.push({id:"edit_calculated_value",label:e.P.bind(e.model.B.j.Hla,a.measure.caption),handler:()=>{l.Sb.Jb.UN(a.measure.A)}});var t=m.gd();!k&&a.measure&&1<t.length&&!e.model.C.F.sc&&d.push({id:"remove_measure",label:e.model.B.j.Tla,handler:()=>{m.qia(a.measure);const r=e.u.O.Tq.xb(e.model.hb.vo.xb(m.Sa()),this.Db.ja.O);this.Db.ge(r)}});!k&&a.vl&&e.model.C.F.sc&&(e.v(a.measure)&&e.v(a.hierarchy)||d.push({id:"remove_field",
label:e.P.bind(e.model.B.j.v7,a.hierarchy?a.hierarchy.caption:a.measure.caption),handler:()=>{a.hierarchy&&m.Ka.Bb(a.hierarchy.A)?m.Ka.removeItem(a.hierarchy.A):a.hierarchy&&m.rows.Bb(a.hierarchy.A)?m.rows.removeItem(a.hierarchy.A):a.hierarchy&&m.qb.Bb(a.hierarchy.A)&&m.qb.removeItem(a.hierarchy.A);a.measure&&t.find(r=>r.A===a.measure.A)&&m.qia(a.measure);this.Db.ge(m)}}));if(!k&&a.vl&&!e.v(a.hierarchy)&&e.model.C.F.Bk&&(k=m.rows.Bb(a.hierarchy.A),p=m.Ka.Bb(a.hierarchy.A),(k?m.wb.indexOf(a.hierarchy.A)!=
m.wb.length-1:m.Fb.indexOf(a.hierarchy.A)!=m.Fb.length-1)&&(k||p))){let r=!0===a.hierarchy.bf;void 0===a.hierarchy.bf&&(!k||"on"!=e.model.C.F.bf&&"rows"!=e.model.C.F.bf||(r=!0),!p||"on"!=e.model.C.F.bf&&"columns"!=e.model.C.F.bf||(r=!0));d.push({id:r?"hide_hierarchy_totals":"show_hierarchy_totals",label:r?e.model.B.j.Nla:e.model.B.j.Vla,handler:()=>{a.hierarchy.bf=!r;this.Db.ge(m)}})}d=this.YS(d,a?a.Sa():null,g.dj?"flat":"pivot");return 0<d.length?(this.eT(d,c,r=>this.Aua(r,a)),!0):!1}}Aua(a,c){var d=
["open_filter","drillthrough","number_formatting","conditional_formatting","edit_calculated_value"];if(a&&0<=d.indexOf(a.id))return!1;d=["move_to_rows","move_to_columns","move_to_report_filters","remove_field"];if(a&&0<=d.indexOf(a.id))return!0;this.K.AA(c.lb,c.kc);return!1}aJa(a=null){e.model.Za.R().Ha(new e.model.jd(e.model.Za.C9,{measureName:a.A,aggregation:a.$}))}ZIa(a=null){e.model.Za.R().Ha(new e.model.jd(e.model.Za.p7,{measureName:a.A}))}tDa(a){return!e.model.C.F.sc&&e.model.C.F.Jl&&a.measure&&
!a.measure.Qa&&!a.measure.gh}sDa(a){return e.model.C.F.sc&&e.model.C.F.Jl&&a.measure&&!a.measure.Qa&&a.Vz&&a.Ss&&0<=a.measure.index}YBa(a,c){for(var d=[],g=0;g<a.length;g++){var k=a.fa(g);if(k){var m=this.Db.ja.qa.Ij;m&&m[c]&&-1<m[c].indexOf(k.A)?d.push({id:"hide_member_property",label:e.P.bind(e.model.B.j.Mla,k.caption),data:{levelName:c,propertyName:k.A},handler:n=>{this.K.zja(n,!1)}}):d.push({id:"show_member_property",label:e.P.bind(e.model.B.j.Ula,k.caption),data:{levelName:c,propertyName:k.A},
handler:n=>{this.K.zja(n,!0)}})}}return d}}h.K8=b})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.ce.sk{constructor(){super();this.Bg=this.vf=this.Fp=this.Cy=this.Ui=0;this.Db=e.model.Wa.R();this.Xc=[];this.iaa=()=>this.mHa();this.bV=b=>this.tq(b);this.aa("fm-grid-view");this.af();this.Wk("grid");new h.K8(this);this.Db.N("reset_grid",this.iaa);this.lv=u.TP.R();this.lv.N(u.KeyboardEvent.SP,this.bV)}dispose(){this.J=null;this.Db.rb("reset_grid",this.iaa);this.Db=null;this.na&&this.na.dispose();this.Ae=null}updateLabels(){this.Ae&&this.Ae.updateLabels()}tq(b){if(this.an&&
null!=this.lv&&null!=this.Ae){var a=b.ctrlKey||b.metaKey;switch(b.keyCode){case 37:this.scroll("left",a);b.vq.preventDefault();break;case 38:this.scroll("up",a);b.vq.preventDefault();break;case 39:this.scroll("right",a);b.vq.preventDefault();break;case 40:this.scroll("down",a);b.vq.preventDefault();break;case 13:case 32:null!=this.OH()?this.na.focus():this.AA(this.na.coords.Lg,this.na.coords.Bf),b.stopPropagation()}}}scroll(b,a=!1){switch(b){case "up":a?this.Ae.fLa():this.Ae.Kr(this.Ae.coords.Lg-
1);break;case "down":a?this.Ae.cLa():this.Ae.Kr(this.Ae.coords.Lg+1);break;case "left":a?this.Ae.dLa():this.Ae.ot(this.Ae.coords.Bf-1);break;case "right":a?this.Ae.eLa():this.Ae.ot(this.Ae.coords.Bf+1)}}Dxa(){var b=new h.sheet.lP;b.vD=(a,c)=>this.getData(a,c);b.N(h.uc.po,a=>this.mE(a));b.N(h.uc.aK,a=>this.j4(a));b.N(h.uc.Kv,a=>this.sq(a));b.N(h.uc.RF,a=>this.M4(a));b.N(h.uc.SF,a=>this.N4(a));b.N(h.uc.OJ,a=>this.Ha(a));b.N(h.uc.Gt,a=>this.Ha(a));this.G.append(b);return b}Axa(){var b=new h.sheet.GC.kP;
b.vD=(a,c)=>this.getData(a,c);b.N(h.uc.po,a=>this.mE(a));b.N(h.uc.aK,a=>this.j4(a));b.N(h.uc.Kv,a=>this.sq(a));b.N(h.uc.RF,a=>this.M4(a));b.N(h.uc.SF,a=>this.N4(a));b.N(h.uc.OJ,a=>this.Ha(a));b.N(h.uc.Gt,a=>this.Ha(a));this.G.append(b);return b}Hxa(){var b=new h.sheet.flat.Mv;b.vD=(a,c)=>this.getData(a,c);b.N(h.uc.po,a=>this.mE(a));b.N(h.uc.aK,a=>this.j4(a));b.N(h.uc.Kv,a=>this.sq(a));b.N(h.uc.RF,a=>this.M4(a));b.N(h.uc.SF,a=>this.N4(a));b.N(h.uc.OJ,a=>this.Ha(a));b.N(h.uc.Gt,a=>this.Ha(a));this.G.append(b);
return b}pBa(){if(e.model.C.F.Bk){if(this.na&&this.na.type==h.sheet.GC.kP.TYPE)return this.na;null!=this.na&&this.na.Qg(!0);return this.Axa()}if(e.model.C.F.sc){if(this.na&&this.na.type==h.sheet.flat.Mv.TYPE)return this.na;null!=this.na&&this.na.Qg(!0);return this.Hxa()}if(this.na&&this.na.type==h.sheet.lP.TYPE)return this.na;null!=this.na&&this.na.Qg(!0);return this.Dxa()}nb(){if(!(1>e.model.Ea.xc.bk())&&(this.Ae=this.pBa(),null!=this.na)){this.Ae.slice=e.u.Ma.R().qa;this.na.Fja=this.Db.Fa.JA?100:
1E3;if(this.J&&this.J.$i){this.na.clearData();this.Cy=this.Fp=this.Ui=0;var b=this.J.Ln,a=e.model.C.F.Bk?0<this.J.wb.length?1:0:this.J.Uk;if(a>=b+1){var c=0;var d=c+a;var g=c+(a-b)-1}else g=0,c=0<this.J.Ck?g+(b-a)+1:g,0==this.J.Fb.length&&0==this.J.wb.length&&(c+=1),d=c+a;var k=g;this.Ui=Math.min(c,k);this.Cy=k;this.Fp=0;this.vf=d;this.Bg=this.dj?0:e.model.C.F.Bk?this.J.$b.bb&&this.J.nm?e.v(this.J.LH(0))?this.J.rows.length:this.J.Fl.length+1:e.v(this.J.LH(0))?this.J.$b.bb?this.J.rows.length-1:this.J.rows.length:
this.J.Fl.length:0==this.J.rows.length?0:1;e.model.C.F.st||(this.Cy=1==a&&0==this.J.Ck?0:-1,this.vf=b);this.dj&&(this.na.iM.Gia=(m,n,p)=>this.saveData(m,n,p),this.na.iM.cja(e.model.C.F.gD));this.dj&&"on"==e.model.C.F.Lf&&"top"==e.model.C.F.TH&&this.vf++;d=this.J.Rn;this.dj&&"on"==e.model.C.F.Lf&&"bottom"==e.model.C.F.TH&&(d+=1);k=this.J.Sn;0==k&&(k=this.J.Ka.length-(this.J.Lb.bb?1:0));this.na.$ia(d,k);this.na.eAa(this.Bg);this.na.Zda(this.vf);if(this.na instanceof h.sheet.lP&&(this.na.coords.VG=this.vf-
this.J.Ln-1,this.na.ES.rowIndex=this.na.coords.VG,this.na.ES.xA(this.J.Fb),this.na.Aia.xA(this.J.wb),this.na.Dha.xA(this.J.qb),e.model.C.F.cn)){d=this.J.wb.length;for(k=1;k<=d;k++)this.na.coords.Rx(this.na.coords.he-k,52);this.na.coords.Rx(this.na.coords.VG,52)}this.na instanceof h.sheet.GC.kP&&(this.na.coords.VG=this.vf-this.J.Ln-1,this.na.ES.rowIndex=this.na.coords.VG,this.na.ES.xA(this.J.Fb),this.na.Aia.xA(this.J.wb),this.na.Dha.xA(this.J.qb));(1<this.J.Ka.length||!this.J.Lb.bb)&&e.model.C.F.st&&
this.cba(g,this.Bg,e.u.i.ha.Oa);(1<this.J.rows.length||!this.J.$b.bb)&&e.model.C.F.st&&(e.model.C.F.Bk?this.wsa(c):this.cba(c,0,e.u.i.ha.Ia));this.Db.Fa.JA||this.Db.Fa.$I||(this.DL(),this.Uva());this.FKa();this.GKa();this.EKa();this.JKa();this.HKa();this.IKa();this.G.Gg("rowcount",`${this.na.coords.dk}`);this.G.Gg("colcount",`${this.na.coords.Ji}`)}else this.na.wu();this.Xc=e.model.va.nn.Xc.Pc();this.na.resize(l.Sb.gN,l.Sb.KD);this.na.nb()}}yu(){e.v(this.na)||this.Db.Fa.JA||this.Db.Fa.$I||(this.na.TG(0),
this.na.IC(0))}getData(b,a,c=!1){if(null==this.J||!this.J.$i||b<this.Cy||a<this.Fp)return null;var d=b-this.vf,g=a-this.Bg;if((d>this.J.Rn-1||g>this.J.Sn-1)&&!(this.dj&&"on"==e.model.C.F.Lf&&"bottom"==e.model.C.F.TH&&d==this.J.Rn&&g<=this.J.Sn-1))return null;var k=this.J.Vn(d,!0),m=this.J.ak(g,!0);if(null==k&&null==m)return null;var n=this.J.Gi(d,g),p;if(this.dj){var t=this.J.ak(g,!0,!0);t instanceof Array&&(p=t[0][1])}if(this.dj&&"on"==e.model.C.F.Lf&&"top"==e.model.C.F.TH&&(e.model.C.F.st&&1==b||
!e.model.C.F.st&&0==b)||this.dj&&"on"==e.model.C.F.Lf&&"bottom"==e.model.C.F.TH&&(e.model.C.F.st&&b==this.J.Rn+1||!e.model.C.F.st&&b==this.J.Rn))return this.EBa(k,m,n);if(null==k)return c=1==(e.model.C.F.Bk?1:this.J.wb.length)&&0==this.J.Ck?b-this.Cy:b-this.Cy-1,0==this.J.wb.length&&0==this.J.Fb.length&&(c=b-this.Cy),g=this.J.EM(g),this.fBa(m,n,g,c,a,p);t=this.J.dU(d);d=this.J.LH(d);g=this.J.EM(g);return null==m?e.model.C.F.Bk?this.Zsa(k,n,t,b,a,d):this.qCa(k,n,t,b):this.BH(k,m,n,b,a,c,t,g,d,p)}BH(b,
a,c,d,g,k=!1,m=NaN,n=NaN,p=-1,t){if(e.v(c)){var r=new h.W.ne;r.li=!0;r.Jg=a;r.Ah=b;r.jm=this.J.Uk>b.length;r.vx=this.J.Ck>a.length;r.$D=0==a.length;r.Ss=0==b.length;return r}var v=c.Eh(c.A,c.$).clone();c.$==e.u.i.ea.Si?v.yd="":e.u.i.ea.xe(c.$)?v.xe=!0:e.u.i.ea.de(c.$)&&(v.de=!0,v.yd="%");r=new h.W.ne;r.li=!0;r.Jg=a;r.measure=c;r.hierarchy=this.Db.ja.O.Ok(c.A);r.Ah=b;e.model.C.F.Bk?0==b.length?r.level=0:(m=this.Z1(b),-1<m&&(r.level=m)):e.model.C.F.sc||(r.level=m);t=this.J.La(b,a,c,t);r.value=t;this.dj?
(v=c.type!=e.u.i.Ra.wc?c.Eh(c.A,c.$).clone():c.Eh(c.A,c.$,!0).clone(),c.type==e.u.i.Ra.wc?(m=this.J.yH(a).za(t),null!=m&&(r.Vb=m,r.label=m.caption)):c.type==e.u.i.Ra.jb?"string"===typeof t?r.label=t:(r.label=u.bc.format(t,v),r.numeric=!0):c.type==e.u.i.Ra.Ua?null===t?r.label=e.model.B.j.IX:(m=this.Db.ja.ga.mapping.La(c.A,"format",e.model.C.F.Up),r.label=e.P.$x(t,m,e.model.C.F.$j)):c.type==e.u.i.Ra.ec?isNaN(t)||(m=this.Db.ja.ga.mapping.La(c.A,"format",e.model.C.F.np),r.label=e.P.ey(t,m)):c.type!=e.u.i.Ra.Mc||
isNaN(t)||(m=this.Db.ja.ga.mapping.La(c.A,"format",e.model.C.F.Ek),r.label=e.P.HO(t,m,e.model.C.F.$j))):(m=(this.Db.Fa.ga.Aa==e.u.i.ra.Cc||this.Db.Fa.ga.Aa==e.u.i.ra.Pd)&&e.model.C.F.co&&c.$==e.u.i.ea.NONE,m||c.type!=e.u.i.Ra.jb&&c.type!=e.u.i.Ra.wc)?m||c.type!=e.u.i.Ra.Ua?m||c.type!=e.u.i.Ra.ec?m||c.type!=e.u.i.Ra.Mc?(r.label=m?this.J.eq(b,a,c):e.u.SY.R().La(t),r.numeric=m&&e.u.i.Ra.jb===c.type):isNaN(r.value)||(e.u.i.ea.dF(c.$)?(m=this.Db.ja.ga.mapping.La(c.A,"format",e.model.C.F.Ek),r.label=e.P.HO(t,
m,e.model.C.F.$j)):r.label=u.bc.format(t,v)):isNaN(t)||(e.u.i.ea.pp(c.$)?(m=this.Db.ja.ga.mapping.La(c.A,"format",e.model.C.F.np),r.label=e.P.ey(t,m)):r.label=u.bc.format(t,v)):isNaN(t)||(e.u.i.ea.dF(c.$)?(m=this.Db.ja.ga.mapping.La(c.A,"format",e.model.C.F.Up),r.label=e.P.$x(r.value,m,e.model.C.F.$j)):r.label=u.bc.format(t,v)):"string"===typeof t?r.label=t:(r.label=u.bc.format(t,v),r.numeric=!0);r.CI=this.J.Ps(b,a);m=!1;var y=this.J.Ih(b,void 0,c);if(this.J.Uk>b.length||y||this.J.Ck>a.length){m=
!0;r.jm=this.J.Uk>b.length||y;r.vx=this.J.Ck>a.length;if("on"!=e.model.C.F.bf&&!e.model.C.F.Bk){var A=this.J.dA;if(0!=b.length&&(this.J.wh(b)||this.J.wh(b,c)||y)&&("off"==e.model.C.F.bf||"columns"==e.model.C.F.bf)||0!=a.length&&(this.J.Gj(a)||this.J.Gj(a,c))&&("off"==e.model.C.F.bf||"rows"==e.model.C.F.bf))return null;if(0==A&&1<this.J.Da.length)if(this.J.$b.bb&&("off"==e.model.C.F.bf||"columns"==e.model.C.F.bf)){if(d<("on"==e.model.C.F.Lf||"columns"==e.model.C.F.Lf?this.vf+this.J.Rn-this.J.Da.length:
this.vf+this.J.Rn)&&this.J.wh(b,c))return null}else if(this.J.Lb.bb&&("off"==e.model.C.F.bf||"rows"==e.model.C.F.bf)&&g<("on"==e.model.C.F.Lf||"rows"==e.model.C.F.Lf?this.Bg+this.J.Sn-this.J.Da.length:this.Bg+this.J.Sn)&&this.J.Gj(a,c))return null}r.Ss=0==b.length;r.$D=0==a.length;r.EU=r.jm&&2==p&&!r.Ss;if(e.model.C.F.Bk&&r.Vz&&"on"!=e.model.C.F.Lf&&0!=this.J.Ck&&0!=this.J.Uk&&("off"==e.model.C.F.Lf||"rows"==e.model.C.F.Lf&&r.Ss||"columns"==e.model.C.F.Lf&&r.$D))return null}this.J.j3(d)&&(m=!0,r.jm=
!0);this.J.R2(g)&&(m=!0,r.vx=!0);r.measure&&(r.measure.Xz||r.measure.Wz)&&!isNaN(r.value)&&(r.label="",r.Xz=r.measure.Xz,r.Wz=r.measure.Wz);if(k)return r;""!=v.textAlign&&r.nz({"text-align":v.textAlign});if(0<this.Xc.length&&r.measure)for(k=0;k<this.Xc.length;k++)(p=this.Xc[k],p.mt!=d&&-1!=p.mt||p.Au!=g&&-1!=p.Au||!(p.measure==c.A&&""===p.$||""==p.measure&&r.numeric||p.measure=="[Measures].["+c.A+"]"||p.measure==c.A&&p.$===r.measure.$)||p.Mk!==m&&void 0!==p.Mk||""!=p.hierarchy&&!this.Hva(b,a,p.hierarchy,
p.Vb))||((this.Db.Fa.ga.Aa==e.u.i.ra.API?(e.v(p.qH)&&(p.qH=u.Ht.FH(p.Ud,this.Db.ja.O.Da)),y=p.qH.slice(0)):y=p.Ud.slice(0),p.m3)?this.Db.Fa.JA&&(v=this.J.HD(b,a,c))&&(-1<p.Ge.toLowerCase().indexOf(e.u.i.rc.OQ)?t=v.Wp:-1<p.Ge.toLowerCase().indexOf(e.u.i.rc.PQ)&&(t=100*v.ht),v=this.J.ww(b,a,y,t),null!=v&&r.Fca(v)):(v=this.J.ww(b,a,y,t),e.v(p.format)||!0!==v&&"truestyle"!==v||(r.nz(p.format.$ja()),r.Xc.push(p.id)),r.XLa=!0));"after"===e.model.C.F.IL&&this.J.Fj(a,void 0,c)&&-1!==n&&(r.label="");return r}EBa(b,
a,c){if(e.v(c))return null;var d=new h.W.ne;d.li=!0;d.Jg=a;d.measure=c;d.hierarchy=this.Db.ja.O.Ok(c.A);d.Ah=b;if(c.type==e.u.i.Ra.jb||c.type==e.u.i.Ra.ec||c.type==e.u.i.Ra.Mc){var g=c.Eh(c.A,c.$).clone();if(c.$==e.u.i.ea.Si)g.yd="";else if(e.u.i.ea.xe(c.$))g.xe=!0;else if(e.u.i.ea.de(c.$)||c.Qa&&-1<c.Ge.indexOf("percent"))g.de=!0,g.yd="%";d.value=this.J.La(null,null,c);if(c.type==e.u.i.Ra.jb)d.label=u.bc.format(d.value,g),d.numeric=!0;else if(c.type==e.u.i.Ra.ec)isNaN(d.value)||(d.label=e.u.i.ea.pp(c.$)?
e.P.ey(d.value,e.model.C.F.np):u.bc.format(d.value,g));else if(c.type==e.u.i.Ra.Mc&&!isNaN(d.value)){var k=this.Db.ja.ga.mapping.La(c.A,"format",e.model.C.F.Ek);d.label=e.u.i.ea.dF(c.$)?e.P.HO(d.value,k,e.model.C.F.$j):u.bc.format(d.value,g)}d.Ss=!0;d.jm=!0;""!=g.textAlign&&d.nz({"text-align":g.textAlign});if(0<this.Xc.length)for(g=0;g<this.Xc.length;g++){k=this.Xc[g];let p;this.Db.Fa.ga.Aa==e.u.i.ra.API?(e.v(k.qH)&&(k.qH=u.Ht.FH(k.Ud,this.Db.ja.O.Da)),p=k.qH.slice(0)):p=k.Ud.slice(0);if(k.measure==
c.A&&k.m3&&this.Db.Fa.JA){var m=this.J.HD(b,a,c);if(m){var n;-1<k.Ge.toLowerCase().indexOf(e.u.i.rc.OQ)?n=m.Wp:-1<k.Ge.toLowerCase().indexOf(e.u.i.rc.PQ)&&(n=100*m.ht);k=this.J.ww(b,a,p,n);null!=k&&d.Fca(k)}}}}return d}Hva(b,a,c,d){var g=this.J.Ka.indexOf(c);if(-1<g){if(g<a.length)return b=this.J.Ka.getItem(c),a[g]&&b.za(a[g]).hD(d)}else if(a=this.J.rows.indexOf(c),-1<a&&a<b.length)return c=this.J.rows.getItem(c),b[a]&&c.za(b[a]).hD(d);return!1}fBa(b,a,c,d,g,k){return this.dj?this.Ysa(b,a,k):this.Xsa(b,
a,c,d,g)}CK(b){if(b.Hh)return!0;if(1<b.children.length)return!1;b=b.hierarchy.za(b.children[0]);return b.caption!==e.model.B.j.Nl&&b.caption!==e.model.B.j.jo?!1:this.CK(b)}Xsa(b,a,c,d,g){if(0==b.length){if(this.J.$b.bb&&d==this.J.Ln-1)return this.GH(a,e.u.i.ha.Oa);b=this.J.Sn-this.J.Da.length+1;if(this.J.Lb.bb&&d==this.J.Ln-1&&g>=b&&1==this.J.Da.length)return this.GH(a,e.u.i.ha.Oa);b="on"==e.model.C.F.Lf||"rows"==e.model.C.F.Lf?this.Bg+this.J.Sn-this.J.Da.length:this.Bg+this.J.Sn;if(this.J.Lb.bb&&
0==d&&g>=b&&1<this.J.Ln){if(g==b){var k=this.yD();k.label=e.model.B.j.ioa;return k}return this.JM()}return this.J.Lb.bb&&0==d&&1<this.J.Ln?this.GH(a,e.u.i.ha.Oa):this.J.Lb.bb&&d==this.J.Ln-1?g>=b||1==this.J.Lb.Na.length?this.GH(a,e.u.i.ha.Oa):this.yD():this.J.Lb.bb&&0<d&&g<=b?this.yD():0<=d?this.JM():null}var m=this.J.Lb.bb&&(b.length>this.J.ke||0==this.J.ke)?b.length:b.length-1,n=this.J.Ka.fa(m),p,t=this.J.X2(g-this.Bg);void 0!==t&&-1<d&&(m=p=d,this.J.Lb.bb&&m>=this.J.ke&&1<this.J.Da.length&&(p--,
m++),p<t[0]&&(t=void 0));this.J.Lb.bb&&m>this.J.ke&&(1==this.J.Da.length?m--:c++);if(c>d&&void 0===t||0>d)return 0<=d?this.JM():null;k=new h.W.ne;k.Ng=!0;k.measure=this.J.Lb.bb&&(1<this.J.Da.length||e.model.C.F.KI)?a:void 0;k.level=c;var r=!1,v=this.J.dA;if(void 0!==t)if(e.v(b[p]))if(d==v-1)k.label=void 0!==a?a.caption:e.model.B.j.fY,k.pN=!0;else return this.JM();else{var y=b[p];n=this.J.Fb.fa(p)}else y=b[b.length-1];y=n.za(y);k.CI=this.J.Ps([],b);if(this.J.Lb.bb&&1<this.J.Da.length&&d==v-1||this.J.Lb.bb&&
e.model.C.F.KI&&d==v-1&&1!=v||this.J.Lb.bb&&e.model.C.F.KI&&d==v&&1==v&&2>this.J.Da.length)k.label=a.label,k.pN=!0,y=null;else{if(this.J.Lb.bb&&void 0!==a&&0<a.index&&d<v)return this.JM();c<d?m==d?(r=b.length-1!=this.J.Ck-1&&!y.dc,k.label=y.caption):(k.label=this.J.Ln-1==d&&e.model.C.F.KI?void 0!==a?a.caption:e.model.B.j.fY:"",y=null):(r=b.length-1!=this.J.Ck-1&&!y.dc,k.label=y.caption,this.J.Lb.bb&&d<v&&1<this.J.Da.length&&(k.measure=a=void 0));void 0!==t&&(t[t.length-1]>=p&&(r=!0),e.v(b[p])&&(r=
!1))}d=null==y?!1:this.J.Fj(b,y,a);!y||this.CK(y)||y.dc||y.Hh||!y.hierarchy.Ef||y.level.ev||(r||e.model.C.F.UE?d?k.Kg=!0:k.sh=!0:d?k.Zf=!0:k.collapsed=!0);r&&!d&&(this.J.Gj(b,a)||void 0!==t&&-1<t.indexOf(p)?k.Zf=!0:k.collapsed=!0);if("on"==e.model.C.F.Nj||"columns"==e.model.C.F.Nj){k.ao=!0;if(e.ka(k.label)||e.v(a))k.ao=!1;"off"!=e.model.C.F.bf&&"rows"!=e.model.C.F.bf||!k.Zf||(k.ao=!1);k.ao&&this.J.Xl&&this.J.Xl.toString()==b.toString()&&this.J.lr==a&&(this.J.Th==e.u.i.Ba.Nc?k.jp=!0:this.J.Th==e.u.i.Ba.hc&&
(k.ip=!0))}k.vx=this.J.Ck>b.length||k.sh||k.Kg||!e.model.C.F.UE&&(k.Zf||k.collapsed);k.vx&&"off"!=e.model.C.F.bf&&"rows"!=e.model.C.F.bf&&this.J.G5(g,!0);"after"!==e.model.C.F.IL||-1!==c||k.pN||(k.ao=!1,k.label="",k.Zf=!1,k.collapsed=!1,k.Kg=!1,k.sh=!1);k.jg=void 0!==t?b.slice(0,p+1):b;k.hierarchy=n;k.Vb=y;return k}Ysa(b,a,c){const d=this.J.yH(b);if(void 0===d){if(e.v(a))return null;b=new h.W.ne;b.Ng=!0;b.label=a.caption;b.measure=a;this.zba(b,a);return b}let g;void 0!==c&&(g=d.ua.fa(c));const k=
new h.W.ne;k.Ng=!0;k.vl=!0;k.tU=d.sM;k.eb=d.filter.Fh;k.label=void 0===g?d.label:d.label+"."+g.caption;k.jg=b;k.hierarchy=d;k.level=c;k.Vb=null;k.measure=a;k.draggable=!0;this.zba(k,a);return k}zba(b,a){if("on"===e.model.C.F.Nj||"columns"===e.model.C.F.Nj){b.ao=!0;const c=this.J.PT(a.A);!e.v(c)&&c.measure&&c.measure.A==a.A&&(c.sort==e.u.i.Ba.Nc?b.jp=!0:c.sort==e.u.i.Ba.hc&&(b.ip=!0),1<this.J.Bi.length&&(b.f6=this.J.Bi.indexOf(c)))}}yD(){var b=new h.W.ne;b.Ng=!0;return b}JM(){var b=this.yD();b.kb=
!0;return b}GH(b,a){var c=new h.W.ne;c.label=void 0===b?e.model.B.j.eY:b.fq;c.pN=void 0!==b;void 0!==b&&b.C2&&(c.label=b.label);if(a==e.u.i.ha.Oa){c.Ng=!0;c.vx=c.$D=!0;if("on"===e.model.C.F.Nj||"columns"===e.model.C.F.Nj)c.ao=!0,!this.J.Xl||""!==this.J.Xl.toString()||void 0!==b&&this.J.lr!==b||(this.J.Th===e.u.i.Ba.Nc?c.jp=!0:this.J.Th===e.u.i.Ba.hc&&(c.ip=!0));this.J.Lb.bb?c.measure=b:c.label=e.model.B.j.eY}else{c.xh=!0;c.jm=c.Ss=!0;if("on"===e.model.C.F.Nj||"rows"===e.model.C.F.Nj)c.ao=!0,!this.J.Mj||
""!==this.J.Mj.toString()||void 0!==b&&this.J.cp!==b||(this.J.gk===e.u.i.Ba.Nc?c.jp=!0:this.J.gk===e.u.i.Ba.hc&&(c.ip=!0));this.J.$b.bb?c.measure=b:c.label=e.model.B.j.eY;c.level=0}c.jg=[];return c}qCa(b,a,c,d){if(0==b.length)return this.GH(a,e.u.i.ha.Ia);var g=this.J.$b.bb&&b.length>this.J.ke?b.length:b.length-1,k=b[b.length-1],m=this.J.rows.fa(g),n=new h.W.ne;n.xh=!0;var p=!1;k=m.za(k);n.level=c;void 0!==a&&this.J.$b.bb&&this.J.nm&&g<=this.J.ke?(n.label=a.label,k=null):k&&(p=this.RC(k),n.uU=""!=
p,n.label=k.caption+p,p=b.length!=this.J.Uk&&!k.dc&&!k.fh);c=null==k?!1:this.J.Ih(b,k,a);!k||k.dc||!k.hierarchy.Ef||k.Hh||this.CK(k)||(e.model.C.F.UE?c?n.Kg=!0:n.sh=!0:c?n.Zf=!0:n.collapsed=!0);p&&!c&&(this.J.wh(b,a)?n.Zf=!0:n.collapsed=!0);if("on"==e.model.C.F.Nj||"rows"==e.model.C.F.Nj)if(!(this.J.$b.bb&&1<this.J.Da.length&&this.J.ke>=b.length)||a&&n.label==a.caption)n.ao=!0,this.J.Mj&&this.J.Mj.toString()==b.toString()&&this.J.cp==a&&(this.J.gk==e.u.i.Ba.Nc?n.jp=!0:this.J.gk==e.u.i.Ba.hc&&(n.ip=
!0));n.jm=this.J.Uk>b.length||n.Kg||n.sh||!e.model.C.F.UE&&(n.Zf||n.collapsed);n.jg=b;n.hierarchy=m;n.Vb=k;n.measure=this.J.$b.bb&&1<this.J.Da.length?a:void 0;n.CI=this.J.Ps(b,[]);n.jm&&this.J.KW(d);return n}Zsa(b,a,c,d,g,k){if(0===b.length){if(0===g)return this.GH(a,e.u.i.ha.Ia);var m=new h.W.ne;m.xh=!0;m.jm=m.Ss=!0;m.kb=!0;m.level=c;return m}var n=g;m=this.J.Fl[g];for(var p,t,r=0;r<this.J.wb.length;r++){var v=this.J.wb.fa(r);p=v.Ou(m);if(null!=p){var y=v;n=r;break}}r=null==b[n]?0:b[n];m=new h.W.ne;
m.xh=!0;m.jm=this.J.Uk>b.length;m.EU=m.jm&&2==k;p=!1;c>g&&(p=!0);c>g&&2==k&&(p=!0);c+1<g&&2==k&&(p=!0);m.level=Math.min(b.length-1,g);var A=b.slice(0);v=!1;if(g==this.J.Fl.length)m.label=a.label,v=!0;else{var C=!1;A=void 0===a?0:a.index;var B=y.za(r);t=this.J.Fl.indexOf(B.level.A)-g;var H=null!=B&&(B.fh||2!=k);if(0>t)if(B.dc)v=!0;else return m;else if(0<t)for(r=0;r<t;r++)B=B.parent;B&&(r=this.J.Fl.indexOf(B.level.A),-1<r&&(m.level=r));m.Vb=B;if(2==k)B&&c==g&&(m.label=this.J.$b.bb&&1<this.J.Da.length?
B.caption+" "+a.label:B.caption+" "+e.model.B.j.fY,v=!0);else{if(0>t)return e.ka(m.label)&&(m.kb=!0),r=this.Z1(b),-1<r&&(m.level=r),m;0<A&&(B=null);B&&0!=B.ordinal&&(r=this.RC(B),m.uU=""!=r,m.label=B.caption+r);C=1==k&&n<this.J.wb.length-1&&0>=A&&!B.fh}m.CI=this.J.Ps(b,[]);A=b.slice(0,n+1);if(H&&B){A[n]=B.ordinal;var M=this.J.Ih(A,B,a);B.dc||!B.hierarchy.Ef||B.Hh||2==k&&(!B.fh||M)||this.CK(B)||(e.model.C.F.UE?M?m.Kg=!0:(m.sh=!0,m.jm=!0):M?m.Zf=!0:(m.collapsed=!0,m.jm=!0))}C&&!M&&(this.J.wh(A,a)?m.Zf=
!0:m.collapsed=!0)}if(p)m.label="",m.ip=m.jp=m.collapsed=m.Zf=m.Kg=m.sh=!1;else if(m.jg=A,m.hierarchy=y,m.measure=this.J.$b.bb&&1<this.J.Da.length?a:void 0,"on"==e.model.C.F.Nj||"rows"==e.model.C.F.Nj)m.ao=!0,!this.J.Mj||this.J.Mj.toString()!=A.toString()||this.J.cp!=a||m.Zf||m.Kg||this.J.$b.bb&&1<this.J.Da.length&&(!(this.J.$b.bb&&1<this.J.Da.length)||null!=m.Vb&&!m.EU)||(this.J.gk==e.u.i.Ba.Nc?m.jp=!0:this.J.gk==e.u.i.Ba.hc&&(m.ip=!0));v&&(r=this.Z1(b),-1<r&&(m.level=r));e.ka(m.label)&&(m.kb=!0,
m.QDa=2==k&&B&&g-1>c?!1:!0);m.jm&&this.J.KW(d);return m}Z1(b){return(b=this.J.eU(b).za(b[b.length-1]))?this.J.Fl.indexOf(b.level.A):-1}RC(b){if(this.Db.Fa.ga.Aa!==e.u.i.ra.Cc&&this.Db.Fa.ga.Aa!==e.u.i.ra.Pd||!e.model.C.F.LI)return"";var a=this.Db.ja.qa.Ij[b.level.A];if(void 0===a||0===a.length)return"";for(var c=[],d=0;d<a.length;d++){var g=b.level.Ye.getItem(a[d]),k=b.nCa(a[d]);e.ka(k)||null==g||c.push('<br/><span class="fm-member-property-label">'+g.caption+':</span> <span class="fm-member-property-value">'+
k+"</span>")}return 0<c.length?c.join("")+"<br/>":""}mE(b){e.v(b.cell)||e.model.C.F.readOnly||!b.cell.Ng&&!b.cell.xh||(b.cell.tC==h.W.Lq.M7?this.vz(b.cell):b.cell.tC==h.W.Lq.WP&&b.cell.cEa||(e.v(b.cell.Vb)||b.cell.tC==h.W.Lq.lK?b.cell.tC==h.W.Lq.lK&&(b.cell.Ng&&this.yO(b.cell,null,!u.uj.Yo&&b.vq.ctrlKey||u.uj.Yo&&b.vq.metaKey),b.cell.xh&&this.d6(b.cell)):e.model.C.F.UE||b.cell.Vb.Hh||this.CK(b.cell.Vb)?this.Ku(b.cell):this.vz(b.cell)))}sq(b){e.model.C.F.Vx&&b.hierarchy.vN&&this.Ha(new l.KP(b.hierarchy))}vz(b){if(b.sh||
b.Kg||b.Zf||b.collapsed){var a=b.jg,c=e.model.C.F.Bk?void 0:b.measure,d=b.Vb;if(null!=d&&!d.dc&&!d.Hh){if(b.xh){b=e.u.i.ha.Ia;var g=this.J.Ih(a,d,c)}else b=e.u.i.ha.Oa,g=this.J.Fj(a,d,c);g?this.J.Xp(a,d,b,c):this.J.Ee(a,d,b,c)}}}Ku(b){if(!e.v(this.na)&&(b.Zf||b.collapsed)){var a=b.jg,c=b.Ng?e.u.i.ha.Oa:e.u.i.ha.Ia,d=e.model.C.F.Bk&&c==e.u.i.ha.Ia?void 0:b.measure;b.Zf?(this.na.clearData(),this.J.collapse(a,c,d)):b.collapsed&&(this.na.clearData(),this.J.expand(a,c,d));b.Ng?this.na.TG(b.kc+1):this.na.IC(b.lb+
1)}}j4(b){b.hga?this.ZLa(b.cell):(e.model.C.F.cd&&!e.model.C.F.sc&&this.Db.ja.ga&&this.Db.ja.ga.KU&&this.cd(b.cell),this.Cya(b.cell))}cd(b){b.li&&void 0!==b.measure&&(b=new l.R7({A:b.measure.A,$:b.measure.$},b.Jg,b.Ah,b.Sa()),this.Ha(b))}ZLa(b){var a=b.Sa();this.zW(a,b.kc,b.lb);e.model.Za.R().Ha(new e.model.jd(e.model.Za.j7,a))}Cya(b){var a=b.Sa();this.zW(a,b.kc,b.lb);e.model.Za.R().Ha(new e.model.jd(e.model.Za.dP,a))}zW(b,a,c){b.x=this.na.coords.hm(a,this.na.ac);b.y=this.na.coords.Vo(c,this.na.ac);
b.width=this.na.coords.Dh(a);b.height=this.na.coords.$d(c)}d6(b,a=""){var c=b.jg;b=b.measure;void 0===b&&(b=this.J.Da[0]);this.J.Mj&&this.J.Mj.toString()==c.toString()&&this.J.cp==b?this.J.gk=this.J.gk==e.u.i.Ba.Nc?e.u.i.Ba.hc:e.u.i.Ba.Nc:(this.J.gk=e.u.i.Ba.Nc,this.J.Mj=c,this.J.cp=b);""!=a&&(this.J.gk=a);this.J.sort();this.na.TG(0);this.nb()}yO(b,a="",c=!1){if(e.model.C.F.sc){let d=this.J.PT(b.measure.A);a=this.J.Bi.slice(0);e.v(d)?(b={measure:b.measure,sort:e.u.i.Ba.cU("",b.measure.type!=e.u.i.Ra.wc,
!0)},!e.v(a)&&c?a.push(b):a=[b]):(d.sort=e.u.i.Ba.cU(d.sort,b.measure.type!=e.u.i.Ra.wc,!0),d.sort==e.u.i.Ba.ed?a.splice(this.J.Bi.indexOf(d),1):c||(a=[d]));this.J.Bi=a}else this.J.Xl=b.jg,this.J.lr=e.v(b.measure)?this.J.Da[0]:b.measure,this.J.Th=e.ka(a)?e.u.i.Ba.cU(this.J.Th):a;this.J.sort();this.na.IC(0);this.nb()}awa(){this.J.Th=e.u.i.Ba.ed;this.J.Xl=null;this.J.lr=void 0;this.J.Lb.KC();this.J.sort();this.na.IC(0);this.nb()}gwa(){this.J.gk=e.u.i.Ba.ed;this.J.Mj=null;this.J.cp=void 0;this.J.$b.KC();
this.J.sort();this.na.TG(0);this.nb()}zja(b,a){var c=this.Db.ja.qa.Ij;c||(c={});c[b.levelName]||(c[b.levelName]=[]);var d=c[b.levelName].indexOf(b.propertyName);a?-1==d&&(c[b.levelName].push(b.propertyName),this.Db.ja.qa.Ij=c):-1<d&&c[b.levelName].splice(d,1);this.na.clearData();this.na.IC(0);this.nb()}saveData(b,a,c){b=this.getData(b,a);b.label!=c&&b.value!=c&&(this.J.save(b.Ah,b.Jg,b.hierarchy,c),this.dj&&this.nb())}cba(b,a,c){for(var d=c==e.u.i.ha.Oa?this.J.Fb:this.J.wb,g,k=0,m=0;m<d.length;m++){var n=
d.fa(m);n.We||(g=new h.W.ne,g.label=n.label,g.vl=!0,g.draggable=!0,g.tU=!0,g.eb=n.filter.Fh,g.level=k,g.hierarchy=n,c==e.u.i.ha.Oa?(g.isFrozen=!this.dj,this.na.J.AW(b,a+m,g)):(g.xh=!0,this.na.J.AW(b+k,a,g),k++))}}wsa(b){for(var a=this.J.wb,c,d=0,g=this.J.$b.bb&&1<this.J.Da.length?this.Bg-1:this.Bg,k=0;k<a.length;k++){var m=a.fa(k);c=new h.W.ne;c.label=m.label;c.vl=!0;c.draggable=!0;c.tU=!0;c.eb=m.filter.Fh;c.hierarchy=m;this.na.J.AW(b,0+d,c);d++;if(2<m.ua.length)for(var n=null==m.ic?2:m.ic.yb+1;n<
m.ua.length;n++){var p=m.ua.fa(n);-1!=this.J.Fl.indexOf(p.A)&&(c=new h.W.ne,c.label=p.caption,c.xh=!0,c.tU=!0,this.na.J.AW(b,0+d,c),d++);if(d>=g)break}if(d>=g)break}}get dj(){return e.model.C.F.sc}get na(){return this.Ae}Gk(b,a,c=null,d=null){b==e.model.Dc.qj.nB&&e.model.Dc.c8.Ze(this,a,d);b==e.model.Dc.qj.Ov&&e.model.Dc.b8.Ze(this,a,this.na.coords.$l,this.na.coords.Tp,d);b==e.model.Dc.qj.ci&&e.model.Dc.a8.Ze(this,a,this.na.coords.$l,this.na.coords.Tp,c);b==e.model.Dc.qj.JSON&&e.model.Dc.d8.Ze(this,
a,this.na.coords.$l,this.na.coords.Tp,c);b==e.model.Dc.qj.vB&&e.model.Dc.df.Ze(this,a,this.na.coords.$l,this.na.coords.Tp,d);b==e.model.Dc.qj.wF&&(a.KA=a.KA&&(this.Db.Fa.ga.Aa==e.u.i.ra.Cc||this.Db.Fa.ga.Aa==e.u.i.ra.Pd)&&e.model.C.F.co,e.model.Dc.f8.Ze(this,a,this.na.coords.$l,this.na.coords.Tp))}print(b=""){e.model.kt.OF.R().Ze(this,b)}ag(b,a){b=this.YT(b,a);a=b.Sa();this.zW(a,b.kc,b.lb);return a}YT(b,a){let c=null;this.na&&(c=this.na.ag(b,a,!0));if(null==c){c=new h.W.ne;c.lb=b;c.kc=a;const d=this.getData(b,
a,!0);c.value=d?d.value:NaN;isNaN(c.value)||(c.label=u.bc.format(c.value))}-1==c.lb&&(c.lb=b);-1==c.kc&&(c.kc=a);return c}OH(){if(e.v(this.na))return null;var b=this.na.Lr.map(a=>a.Sa());if(0==b.length)return null;if(1<b.length)return b;b=b[0];this.zW(b,b.columnIndex,b.rowIndex);return b}AA(b,a){e.v(this.na)||this.na.select(b,a,b,a)}FE(){e.v(this.na)||this.na.Ks()}get fN(){return this.J.$i?this.J.Rn+this.vf:0}get eN(){return this.J.$i?this.J.Sn+this.Bg:0}M4(b){this.yaa(b.data.kc,b.data.width)}N4(b){this.zaa(b.data.lb,
b.data.height)}yaa(b,a){if(b<this.Bg)0<a?e.model.size.wd.Ig[b]=a:delete e.model.size.wd.Ig[b];else{var c=this.J.ak(b-this.Bg,!0);null!=c&&(b=this.J.OT(b-this.Bg),this.J.Lb.bb&&c.push(b),e.model.size.wd.Af[c.join(",")]=a)}}Uva(){this.na.V_()}DL(){this.na.DL()}FKa(){const b=e.model.size.wd.Dk;e.model.size.wd.Dk={};const a=[];for(let c in b)!isNaN(b[c])&&b.hasOwnProperty(c)&&(a[parseInt(c)]=b[c]);for(let c in a)a.hasOwnProperty(c)&&(this.na.v5(parseInt(c),a[c]),this.yaa(parseInt(c),a[c]))}GKa(){var b=
e.model.size.wd.Ig;const a=[];for(let c in b)!isNaN(b[c])&&b.hasOwnProperty(c)&&(a[c]=b[c]);for(let c in a)b=parseInt(c),b<this.Bg&&a.hasOwnProperty(c)&&this.na.v5(b,a[b])}EKa(){const b=e.model.size.wd.Af,a=[];for(let d in b)if(!isNaN(b[d])&&b.hasOwnProperty(d)){var c=this.J.Hz(""==d?[]:d.split(","));-1!=c&&(c+=this.Bg,a[c]=b[d])}for(let d in a)a.hasOwnProperty(d)&&this.na.v5(parseInt(d),a[d])}JKa(){const b=e.model.size.wd.Lj;e.model.size.wd.Lj={};const a=[];for(let c in b)!isNaN(b[c])&&b.hasOwnProperty(c)&&
(a[parseInt(c)]=b[c]);for(let c in a)a.hasOwnProperty(c)&&(this.na.x5(parseInt(c),a[c]),this.zaa(parseInt(c),a[c]))}HKa(){e.model.size.wd.YE=this.Ui;const b=e.model.size.wd.wg,a=[];for(let c in b)!isNaN(b[c])&&b.hasOwnProperty(c)&&(a[parseInt(c)+this.Ui]=b[c]);for(let c in a)parseInt(c)<this.vf&&a.hasOwnProperty(c)&&this.na.x5(parseInt(c),a[c])}IKa(){const b=e.model.size.wd.If,a=[];for(let c in b)if(!isNaN(b[c])&&b.hasOwnProperty(c)){let d=this.J.Lz(""==c?[]:c.split(","));-1!=d&&(d+=this.vf,a[d]=
b[c])}for(let c in a)a.hasOwnProperty(c)&&this.na.x5(parseInt(c),a[c])}zaa(b,a){e.model.size.wd.YE=this.Ui;if(b<this.Ui)0<a?e.model.size.wd.zh[b]=a:delete e.model.size.wd.zh[b];else if(b<this.vf)0<a?e.model.size.wd.wg[b-this.Ui]=a:delete e.model.size.wd.wg[b-this.Ui];else{var c=this.J.Vn(b-this.vf,!0);null!=c&&(b=this.J.hU(b-this.vf),this.J.$b.bb&&c.push(b),e.model.size.wd.If[c.join(",")]=a)}}mHa(){this.na&&(this.na.Kr(0),this.na.ot(0),this.na.Ks())}}h.joa=f})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||
(q={}));
(function(e){(function(l){(function(h){class f{}f.po="mclick";f.aK="singledoubleclick";f.O7="dthclosed";f.Kv="filter_click";f.TJ="live_filter_change";f.RF="resize_c";f.SF="resize_r";f.Kqa="request_data_doubleclick";f.L7="dragndrop_remove";f.K7="dragndrop_move";f.Gt="filter_keyboard_select";f.OJ="grid_keyboard_select";h.uc=f;class b extends w.ia{constructor(k,m=null,n=null){super(f.po);this.cell=k;this.element=m;this.vq=n}}h.J8=b;class a extends w.ia{constructor(k,m,n=null){super(f.aK);this.cell=k;
this.hga=m;this.element=n}}h.L8=a;class c extends w.ia{constructor(k,m,n=null){super(f.Kv);this.hierarchy=k;this.cell=m;this.element=n}}h.IP=c;class d extends w.ia{constructor(k,m,n=null){super(f.Gt);this.lb=k;this.kc=m;this.t5=n}}h.JP=d;class g extends w.ia{constructor(k,m){super(f.TJ);this.bh=k;this.value=m}}h.Koa=g})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static validate(b){return b==f.YA||b==f.Fv||b==f.rj?b:f.YA}}f.YA="compact";f.Fv="classic";f.rj="flat";h.wf=f})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){class h extends x.ce.Fy{constructor(){if(null!=h.Be)throw Error("Singleton");super(l.Sb.Jb.G);this.aa("fm-alert-view");this.Wk("alertdialog");this.Ke()}static R(){null==h.Be&&(h.Be=new h);return h.Be}static dispose(){h.Be=null}Ke(){this.tE.aa("fm-overlay-alert");this.zK=[];var f=new x.Pa("div","fm-content");this.X(f);this.ys=new x.Tc;this.ys.aa("fm-popup-title");f.X(this.ys);this.xs=new x.Tc;f.X(this.xs);this.hu=new x.Pa("div","fm-ui-btns-row");f.X(this.hu);this.YB=new x.Pa("div",
"fm-alert-icon");this.YB.Eo();this.X(this.YB);e.Ik.addEventListener("keydown",b=>this.tq(b))}ap(f="",b="",a=e.ob.nk,c=null,d=null,g=!1){this.clear();this.mja(b);this.II(f);this.GLa(a);this.sLa(c,d);l.Sb.Jb.X(this);this.g3=g;this.open();this.Rza();this.Pp()}Rza(){let f=this.hu.G.find(".fm-ui-btn-dark");null==f&&(f=this.hu.G.find(".fm-ui-btn"));f&&f.focus({preventScroll:!0})}clear(){this.mja("");for(this.II("");0<this.zK.length;)this.zK.pop().Qg();this.G.ab("fm-alert",!1);this.G.ab("fm-confirmation",
!1);this.G.ab("fm-error",!1);this.G.ab("fm-info",!1);this.G.ab("fm-question",!1)}mja(f){this.ys.LW(!1);this.ys.fb(f)}II(f){this.xs.fb(f,!0)}sLa(f,b){null==f&&(f=[e.model.B.j.uX]);f.reverse();null!=b&&b.reverse();this.BZ=b;for(var a=0;a<f.length;a++)b=new x.Vg,b.fb(f[a]),b.N(x.Qd.uf,c=>this.qva(c)),this.zK.push(b),this.isPrimary(f[a])&&b.aa("fm-ui-btn-dark"),this.isPrimary(f[a])&&(u.uj.Yo||u.uj.aE)?this.hu.X(b):this.isPrimary(f[a])?this.hu.G.prepend(b.G):this.hu.X(b)}isPrimary(f){switch(f){case e.model.B.j.uX:case e.model.B.j.b7:case e.model.B.j.Z6:case e.model.B.j.lF:return!0}return!1}qva(f){f=
f.target;for(var b=-1,a=0;a<this.zK.length;a++)if(this.zK[a]==f){b=a;break}if(!(0>b)&&(this.close(),null!=this.BZ&&null!=this.BZ[b]))this.BZ[b]()}GLa(f){this.YB.G.Kx();f==e.ob.nk?this.YB.G.X(this.Kxa()):f==e.ob.mn?this.YB.G.X(this.Lxa()):f==e.ob.xa?this.YB.G.X(this.Mxa()):f==e.ob.OP&&this.YB.G.X(this.Nxa())}Lxa(){var f=new x.Ga("span","fm-circle");f.X(new x.Ga("span","fm-ui-icon fm-icon-notif_confirm"));return f}Nxa(){var f=new x.Ga("span","fm-circle");f.X(new x.Ga("span","fm-ui-icon fm-icon-notif_info"));
return f}Kxa(){var f=new x.Ga("span","fm-triangle-wrap");f.X(new x.Ga("span","fm-triangle"));f.X(new x.Ga("span","fm-ui-icon fm-icon-notif_warning"));return f}Mxa(){var f=new x.Ga("span","fm-hexagon");f.X(new x.Ga("span","fm-ui-icon fm-icon-notif_arrow"));return f}close(){super.close();this.clear()}F4(){this.g3||super.F4()}tq(f){27===f.keyCode&&(super.close(),this.clear())}}l.aP=h})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){class h extends x.ce.Fy{constructor(){if(null!=h.Be)throw Error("Singleton");super(l.Sb.Jb.G);this.aa("fm-prompt-view");this.Ke()}static R(){null==h.Be&&(h.Be=new h);return h.Be}static dispose(){h.Be=null}Ke(){this.tE.aa("fm-overlay-alert");var f=new x.Pa("div","fm-content");this.X(f);this.xs=new x.Tc;this.xs.aa("fm-message-label");f.X(this.xs);this.ZK=new x.Sj;this.ZK.aa("fm-prompt-input");f.X(this.ZK);this.hu=new x.Pa("div","fm-ui-btns-row");f.X(this.hu);f=new x.Vg("fm-ui-btn-dark");
f.fb(e.model.B.j.uX);f.N(x.Qd.uf,()=>this.pE());this.hu.X(f);f=new x.Vg;f.fb(e.model.B.j.xm);f.N(x.Qd.uf,()=>this.at());this.hu.X(f,u.uj.Yo||u.uj.aE)}ap(f="",b=null){this.C=b;this.xs.fb(f);this.ZK.ik(b&&b.defaultValue?b.defaultValue:"");l.Sb.Jb.X(this);this.open();this.Pp();this.ZK.G.element.focus()}pE(){this.C&&this.C.Aha&&this.C.Aha(this.ZK.bj());this.close()}at(){this.C&&this.C.AV&&this.C.AV();this.close()}}l.Gqa=h})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{get lT(){return this.uU?this.label:e.P.Ro(this.label,!0,!0)}get Mk(){return this.jm||this.vx}get Vz(){return this.Ss||this.$D}constructor(){this.value=NaN;this.label="";this.level=NaN;this.jp=this.ip=this.ao=this.Kg=this.sh=this.draggable=this.collapsed=this.Zf=this.eb=this.uU=this.tU=this.XLa=this.cEa=this.li=this.EU=this.$D=this.Ss=this.vx=this.jm=this.pN=this.Ng=this.xh=this.isFrozen=this.vl=this.av=this.numeric=!1;this.kc=this.lb=this.f6=
-1;this.CI=null;this.ul=this.QDa=this.kb=!1;this.Xc=[];this.Wz=this.Xz=!1;this.tC=f.Lq.W6}xBa(){return this.Kg||this.sh?this.hierarchy.ua.fa(this.Vb.level.yb+1).caption:""}I(a=!1,c=!0){if(null!=b.Lw&&c){var d=new Qa;d.clear();d.tag="div";d.text+=this.lT;b.Lw(d.node,this.Sa());c=d.text;c=e.model.Tb.valid(c)?c:e.model.Tb.validate(c);this.av=c!=this.label?!0:this.av;d.clear();d=document.createElement("div");d.innerHTML=e.vt(c);c=d.textContent&&"number"!=typeof c?d.textContent.trim():c;a&&!this.uU&&(c=
e.P.Ro(c,!0,!0));return c}return a?this.lT:this.label}nz(a){this.av=!0;null==this.style&&(this.style=new f.z7);this.style.Kta(a)}Fca(a){this.av=!0;null==this.style&&(this.style=new f.z7);this.style.rw(a);this.style.Pta(a)}Sa(){if(this.gha)return this.gha;var a=e.model.Wa.R().ja.qa,c=[];e.model.C.F.sc||e.v(a)||(c=a.q0(this.Ng&&this.jg?this.jg:this.Jg));var d=[];e.model.C.F.sc||e.v(a)||(d=a.r0(this.xh&&this.jg?this.jg:this.Ah));a=this.value;e.v(this.measure)||(this.measure.type!=e.u.i.Ra.wc?this.measure.Eh(this.measure.A,
this.measure.$).clone():this.measure.Eh(this.measure.A,this.measure.$,!0).clone()).ou&&this.measure.type==e.u.i.Ra.jb&&(a=u.bc.ou(this.value));c={columnIndex:this.kc,columns:c,label:this.label,escapedLabel:this.lT,measure:this.measure?this.measure.lj():null,hierarchy:this.hierarchy?this.hierarchy.lj():null,member:this.Vb?this.Vb.Sa():null,rowIndex:this.lb,rows:d,type:this.Ng||this.xh||this.vl?"header":"value",value:a,expanded:this.Zf,collapsed:this.collapsed,drilledUp:this.sh,drilledDown:this.Kg,
recordId:this.CI,isTotal:this.Mk,isTotalRow:this.jm,isTotalColumn:this.vx,isClassicTotalRow:this.EU,isGrandTotal:this.Vz,isGrandTotalRow:this.Ss,isGrandTotalColumn:this.$D,isDrillThrough:this.ul};isNaN(this.level)||(c.level=this.level);0<this.Xc.length&&(c.conditions=this.Xc);return this.gha=c}}b.Lw=null;f.ne=b})(h.W||(h.W={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.$W=[];this.XC=[];this.V={}}rw(a){-1==this.$W.indexOf(a)&&this.$W.push(a)}Pta(a){-1==this.XC.indexOf(a)&&this.XC.push(a)}Kta(a){for(var c in a)this.V[c]=a[c]}ST(){return this.XC.join(" ")}jU(){var a="",c;for(c in this.V)a+=c+":"+this.V[c]+";";return a}}f.z7=b})(h.W||(h.W={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){}static GBa(c){return 500<c?b.hla:b.$pa}}b.$pa="";b.hla="Bold";f.foa=b;class a{merge(c){this.color=this.color||c.color;this.backgroundColor=this.backgroundColor||c.backgroundColor;this.backgroundImage=this.backgroundImage||c.backgroundImage;this.borderColor=this.borderColor||c.borderColor;this.fontSize=this.fontSize||c.fontSize;this.fontWeight=this.fontWeight||c.fontWeight;this.textAlign=this.textAlign||c.textAlign;this.fontFamily=
this.fontFamily||c.fontFamily;this.width=this.width||c.width;this.maxWidth=this.maxWidth||c.maxWidth;this.minWidth=this.minWidth||c.minWidth;this.height=this.height||c.height;this.maxHeight=this.maxHeight||c.maxHeight;this.minHeight=this.minHeight||c.minHeight}clone(){var c=new a;c.color=this.color;c.backgroundColor=this.backgroundColor;c.backgroundImage=this.backgroundImage;c.borderColor=this.borderColor;c.fontSize=this.fontSize;c.fontWeight=this.fontWeight;c.textAlign=this.textAlign;c.fontFamily=
this.fontFamily;c.width=this.width;c.maxWidth=this.maxWidth;c.minWidth=this.minWidth;c.height=this.height;c.maxHeight=this.maxHeight;c.minHeight=this.minHeight;return c}static nAa(c,d=null){var g=new a;if(null==d||null!=d&&d.V("color")!=c.V("color"))g.color=c.V("color");if(null==d||null!=d&&d.V("background-color")!=c.V("background-color"))g.backgroundColor=c.V("background-color");if(null==d||null!=d&&d.V("background-image")!=c.V("background-image"))g.backgroundImage=c.V("background-image");if(null==
d||null!=d&&d.V("border-color")!=c.V("border-color"))g.borderColor=c.V("border-color");if(null==d||null!=d&&d.V("font-size")!=c.V("font-size"))g.fontSize=parseInt(c.V("font-size"));if(null==d||null!=d&&d.V("font-weight")!=c.V("font-weight"))g.fontWeight=c.V("font-weight");if(null==d||null!=d&&d.V("fill")!=c.V("fill"))g.fill=c.V("fill");if(null==d||null!=d&&d.V("text-align")!=c.V("text-align"))g.textAlign=c.V("text-align");if(null==d||null!=d&&d.V("font-family")!=c.V("font-family"))g.fontFamily=c.V("font-family");
if(null==d||null!=d&&d.V("width")!=c.V("width"))g.width=parseInt(c.V("width"));if(null==d||null!=d&&d.V("max-width")!=c.V("max-width"))g.maxWidth=parseInt(c.V("max-width"));if(null==d||null!=d&&d.V("min-width")!=c.V("min-width"))g.minWidth=parseInt(c.V("min-width"));if(null==d||null!=d&&d.V("height")!=c.V("height"))g.height=parseInt(c.V("height"));if(null==d||null!=d&&d.V("max-height")!=c.V("max-height"))g.maxHeight=parseInt(c.V("max-height"));if(null==d||null!=d&&d.V("min-height")!=c.V("min-height"))g.minHeight=
parseInt(c.V("min-height"));return g}static sl(c,d=null,g=!0){var k=new x.Ga("div");k.aa(c).$a();c=new x.Ga("div");null==d?l.Sb.Jb.G.append(k).append(c):d.append(k).append(c);d=a.nAa(k,g?c:null);k.remove();c.remove();return d}static FT(c){var d=new a,g;for(c=c.replace(/ /g,";");-1<(g=c.indexOf(";"));)this.oya(c.substring(0,g),d),c=c.substring(g+1);return d}static yU(c){c=c.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(d,g,k,m){return g+g+k+k+m+m});c=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(c);
return null==c?"":"rgb("+parseInt(c[1],16)+","+parseInt(c[2],16)+","+parseInt(c[3],16)+")"}static oya(c,d){-1<c.indexOf("background-color")?d.backgroundColor=this.yU(c.substring(17,c.length)):-1<c.indexOf("background-image")?d.backgroundImage=c.substring(17,c.length):-1<c.indexOf("border-color")?d.borderColor=this.yU(c.substring(13,c.length)):-1<c.indexOf("color")?d.color=this.yU(c.substring(6,c.length)):-1<c.indexOf("font-size")?d.fontSize=parseInt(c.substring(10,c.length)):-1<c.indexOf("fill")?
d.fill=this.yU(c.substring(5,c.length)):-1<c.indexOf("text-align")?d.textAlign=c.substring(11,c.length):-1<c.indexOf("max-width")?d.maxWidth=parseInt(c.substring(10,c.length)):-1<c.indexOf("max-height")?d.maxHeight=parseInt(c.substring(11,c.length)):-1<c.indexOf("width")&&(d.width=parseInt(c.substring(6,c.length)))}static Ez(c,d=null,g=null){var k="";null==d&&(d=a.sma);for(var m=0;m<d.length;m++)if(null==g||null!=g&&c.V(d[m])!=g.V(d[m]))k+=d[m]+":"+c.V(d[m])+";";return k}static tl(c,d=null,g=null){var k=
new x.Ga("div");k.aa(c).$a();if(void 0===m){var m=new x.Ga("div");m.$a()}null==d?l.Sb.Jb.G.append(k).append(m):d.append(k).append(m);c=a.Ez(k,g,m);k.remove();null!=m&&m.remove();return c}static b5(c){var d=[],g=c.split("rgb");2<g.length&&(c=g[2]);c=c.replace(/[^\d,]/g,"");c=c.split(",");for(g=0;g<c.length;g++)d[g]=parseInt(c[g]);void 0==d[3]&&(d[3]=1);return d}}a.sma="background-color background-image color font-family font-size font-weight text-align padding-top padding-left padding-right padding-bottom border border-top-width border-top-color border-top-style border-bottom-width border-bottom-color border-bottom-style border-left-width border-left-color border-left-style border-right-width border-right-color border-right-style".split(" ");
f.ad=a})(h.W||(h.W={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));var Ra=q||(q={}),Sa=Ra.K||(Ra.K={}),Ta=Sa.Y||(Sa.Y={}),Ua=Ta.W||(Ta.W={});class T{}T.TY="fm-pivot-title";T.Ne="fm-cell";T.CX="fm-empty";T.BQ="fm-sheet-header";T.qk="fm-header";T.mB="fm-header-c";T.Nv="fm-header-r";T.ipa="fm-measure-header";T.Kq="fm-filter-header";T.SJ="fm-live-filtering-header";T.KJ="fm-filter-icon";T.YX="fm-filtered";T.EJ="fm-filtered-icon";T.Xv="fm-total";T.Mra="fm-total-r";T.Lra="fm-total-c";T.NJ="fm-grand-total";
T.hoa="fm-grand-total-r";T.goa="fm-grand-total-c";T.hY="fm-hierarchy-link";T.WP="fm-link";T.asa="fm-v-sort";T.dsa="fm-v-sort-icon";T.bsa="fm-v-sort-asc";T.csa="fm-v-sort-desc";T.koa="fm-h-sort";T.noa="fm-h-sort-icon";T.loa="fm-h-sort-asc";T.moa="fm-h-sort-desc";T.BB="fm-sort-icon";T.c$="fm-with-order";T.SX="fm-expanded";T.Y7="fm-expanded-icon";T.DX="fm-collapsed";T.n7="fm-collapsed-icon";T.Sf="fm-level-";T.Dma="fm-drilled-up";T.Cma="fm-drilled-down";T.iY="fm-icon";T.Q8="fm-kpi";T.roa="fm-kpi-status-bad-icon";
T.voa="fm-kpi-status-risk-icon";T.toa="fm-kpi-status-ok-icon";T.uoa="fm-kpi-status-rising-icon";T.soa="fm-kpi-status-good-icon";T.woa="fm-kpi-trend-bad-icon";T.Aoa="fm-kpi-trend-risk-icon";T.yoa="fm-kpi-trend-ok-icon";T.zoa="fm-kpi-trend-rising-icon";T.xoa="fm-kpi-trend-good-icon";Ua.ya=T;var Va=q||(q={}),Wa=Va.K||(Va.K={}),Xa=Wa.Y||(Wa.Y={}),Ya=Xa.W||(Xa.W={});class Za{}Za.Coa="left icon";Za.lK="right icon";Za.fl="label";Za.M7="drill";Za.WP="link";Za.W6="backgroud";Ya.Lq=Za;
(function(e){(function(l){(function(h){class f extends l.Y.mP{constructor(b){super(b.G);this.kd=b}B4(b,a){this.show(b.target,{left:a.clientX,top:a.clientY},b)}O4(b){this.show(b.target,{left:b.clientX,top:b.clientY},b)}TBa(b){b=this.kd.UT(b);var a=this.Db.ja.qa.gd();if(b&&!isNaN(b.iE))return a[b.iE];if(b&&b.measure)for(var c=0;c<a.length;c++)if(a[c].A==b.measure.A&&a[c].$==b.measure.$&&a[c].index==b.measure.index)return a[c];return null}show(b,a,c){if(!e.model.C.F.readOnly){var d=[];this.kd.Gfa(c.target)&&
d.push({id:"drillthrough",label:e.model.B.j.s7,handler:()=>{this.kd.cd(c.target)}});this.kd.SDa(c.target)&&d.push({id:"open_filter",label:e.model.B.j.u7,handler:()=>{this.kd.uI(c.target)}});var g=this.TBa(b);g&&!g.Qa&&!g.gh&&e.model.C.F.Jl&&(g=this.Fz(g),0<g.length&&d.push({id:"aggregation",label:e.model.B.j.q7,submenu:g}));d=this.YS(d,this.kd.UT(b,!0),"charts");0<d.length&&c.preventDefault();this.eT(d,a)}}iha(b,a){var c=this.Db.ja.qa.clone();b=c.gd()[b.index];b.$=a;e.model.C.F.Fo.$=b.$;this.Db.ge(c)}}
h.mma=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{get we(){return this.cX+this.s1}constructor(){this.Vt=this.Wt=-1;this.VG=this.s1=this.cX=this.NI=this.scrollLeft=this.scrollTop=this.Bf=this.Lg=this.he=this.Zd=this.Tp=this.$l=this.d_=this.TR=0;this.nC=15E5;this.pC=this.oC=1;this.wi=[];this.ks=[];this.ts=[];this.Yq=[];this.us=[];this.OB=[];this.mC=[];this.nC=this.yCa();this.TR=b.LY;this.d_=b.KY;this.NE();this.jja()}jja(){if(void 0===this.b_||void 0===this.a_){var c=this.zCa();c&&(this.b_=
c.width,this.a_=c.height)}}zCa(){return u.Nd().im?this.Nba():u.Nd().W2?{width:15,height:15}:u.uj.Yo||u.Nd().DU||u.Nd().bga||u.Nd().OU?this.Nba():{width:17,height:17}}Nba(){if(null==l.Sb.Jb.G.element.offsetParent)return null;var c=document.createElement("div");c.style.width="100%";c.style.height="100px";var d=document.createElement("div");u.uj.Yo&&d.classList.add("fm-scrollbars");d.style.position="absolute";d.style.top="0px";d.style.left="0px";d.style.visibility="hidden";d.style.width="50px";d.style.height=
"50px";d.style.overflow="hidden";d.appendChild(c);l.Sb.Jb.G.element.appendChild(d);let g=c.offsetWidth;d.style.overflow="scroll";let k=c.offsetWidth;g==k&&(k=d.clientWidth);c.style.width="100px";c.style.height="100%";d.style.overflow="hidden";var m=c.offsetHeight;d.style.overflow="scroll";c=c.offsetHeight;m==c&&(c=d.clientHeight);l.Sb.Jb.G.element.removeChild(d);d=g-k;m-=c;u.Nd().OU&&(m=d);return{width:d,height:m}}yCa(){return u.bT().DU||u.bT().OU?1E7:15E5}TG(c){this.ks.length-1>=c&&(this.ks.length=
c);this.Yq.length-1>=c&&(this.Yq.length=c);this.OB.length-1>=c&&(this.OB.length=c);for(let d in this.wi)this.wi.hasOwnProperty(d)&&!e.v(this.wi[d])&&this.wi[d].length-1>=c&&(this.wi[d].length=c);this.Wt=-1}IC(c){this.ts.length-1>=c&&(this.ts.length=c);this.us.length-1>=c&&(this.us.length=c);this.mC.length-1>=c&&(this.mC.length=c);this.wi.length-1>=c&&(this.wi.length=c);this.Vt=-1}reset(){this.ks.length=0;this.ts.length=0;this.Yq.length=0;this.us.length=0;this.OB.length=0;this.mC.length=0;this.Vt=
this.Wt=-1;this.s1=this.cX=this.scrollLeft=this.scrollTop=this.Bf=this.Lg=this.he=this.Zd=this.Tp=this.$l=0;this.TR=b.LY;this.d_=b.KY;this.pC=this.oC=1;this.NI=this.wi.length=0;this.NE()}NE(){var c=l.Y.W.ad.sl(u.Nd().im?"fm-grid-column-mobile":"fm-grid-column");isNaN(c.minWidth)||(b.rF=c.minWidth);isNaN(c.width)||(b.Dt=Math.max(b.rF,c.width));isNaN(c.maxWidth)||(b.Jq=0>=c.maxWidth?0:Math.max(b.rF,c.maxWidth));var d=l.Y.W.ad.sl(u.Nd().im?"fm-grid-row-mobile":"fm-grid-row");isNaN(d.minHeight)||(b.qF=
d.minHeight);isNaN(d.height)||(b.Ev=Math.max(b.qF,d.height));isNaN(d.maxHeight)||(b.Wr=0>=c.maxHeight?0:Math.max(b.qF,d.maxHeight));c=l.Y.W.ad.sl(u.Nd().im?"fm-grid-header-mobile":"fm-grid-header");isNaN(c.width)||(b.LY=c.width);isNaN(c.height)||(b.KY=c.height)}setScale(){var c=this.qu(this.he,this.he+this.Tp);this.pC=c>this.nC?this.nC/c:1;c=this.ru(this.Zd,this.Zd+this.$l);this.oC=c>this.nC?this.nC/c:1}resize(c,d){this.eC=c;this.dC=d}get IE(){return this.ND?this.b_:0}get HE(){return this.LD?this.a_:
0}get lq(){return this.eC}get Us(){return this.dC}get Xy(){return this.dC-this.HE-this.we}get nu(){return this.eC-this.IE}get Fd(){return this.eC-this.zq}get Ed(){return this.dC-this.jr-this.we}get Ji(){return this.Zd+this.$l}get dk(){return this.he+this.Tp}$d(c){var d=isNaN(this.ts[c])?b.Ev:this.ts[c];return 0<b.Wr&&!this.dE(c)?Math.min(b.Wr,d):d}Rx(c,d,g=!1,k=!1){0!=d&&(d=Math.max(d,b.qF));if(g){if(isNaN(this.us[c])||d>this.us[c])this.us[c]=d}else this.ts[c]=d,this.Vt=-1;k&&(this.mC[c]=!0)}DKa(c){if(this.dE(c)){delete this.ts[c];
delete this.us[c];delete this.mC[c];this.Vt=-1;for(let d in this.wi)this.wi.hasOwnProperty(d)&&delete this.wi[d]}}DL(){this.ts.length=0;this.us.length=0;this.mC.length=0;this.Vt=-1;this.wi.length=0}V_(){this.ks.length=0;this.Yq.length=0;this.OB.length=0;this.Wt=-1;this.wi.length=0}Dh(c){if(-1==c)return this.Rs();if(c>=this.Ji)return Math.max(100,b.Dt);var d=isNaN(this.ks[c])?b.Dt:this.ks[c];return 0<b.Jq&&!this.YD(c)?Math.min(b.Jq,d):d}uM(c,d,g){return 0>=g?Math.max(d,c):Math.min(g,Math.max(d,c))}nO(c,
d,g=!1,k=!1){0!=d&&(d=this.uM(d,b.rF,b.Jq));if(g){if(isNaN(this.Yq[c])||d>this.Yq[c])this.Yq[c]=d}else-1==c?this.TR=d:this.ks[c]=d,this.Wt=-1;k&&(this.OB[c]=!0)}BKa(c){if(this.YD(c)){delete this.ks[c];delete this.Yq[c];delete this.OB[c];this.Wt=-1;for(let d in this.wi)this.wi.hasOwnProperty(d)&&(e.v(this.wi[d])||delete this.wi[d][c])}}YD(c){return!0===this.OB[c]}dE(c){return!0===this.mC[c]}kS(){const c=new a;for(var d in this.us){var g=parseInt(d);if(!isNaN(g)&&!this.dE(g)){var k=this.us[g];!isNaN(k)&&
k>this.$d(g)&&(this.Rx(g,k),c.rows.push(g))}}this.us.length=0;for(var m in this.Yq)d=parseInt(m),isNaN(d)||this.YD(d)||(g=this.Yq[d],!isNaN(g)&&g>this.Dh(d)&&(this.nO(d,g),c.Ka.push(d)));this.Yq.length=0;return c}WM(c,d=!1){var g=c/this.Du*(this.Us/this.pC-this.Us)*this.pC;if(1!=this.pC&&c+g>=this.Du-this.Us){d=this.dk;for(g=this.Du;g>c;)g-=this.$d(d),d--;return d+1}d=d?0:this.he;for(var k=0;k<c+g;)k+=this.$d(d)*this.pC,d++;return d}CM(c,d=!1){var g=c/this.Eu*(this.lq/this.oC-this.lq)*this.oC;if(1!=
this.oC&&c+g>=this.Eu-this.lq){d=this.Ji;for(g=this.Eu;g>c;)g-=this.Dh(d),d--;return d+1}d=d?0:this.Zd;for(var k=0;k<c+g;)k+=this.Dh(d)*this.oC,d++;return d}Zea(c){for(var d=0,g=0,k=this.Ed;g<k;)g+=this.$d(c+d),d++;return d}Yea(c){for(var d=0,g=0,k=this.Fd;g<k;)g+=this.Dh(c+d),d++;return d}get Eu(){return 0<=this.Wt?this.Wt:this.Wt=1>this.oC?this.nC:this.ru(this.Zd,this.Zd+this.$l)}ru(c,d){if(c>=d)return 0;var g=0,k=0,m;for(m in this.ks){var n=parseInt(m);!isNaN(n)&&!isNaN(this.ks[n])&&n>=c&&n<d&&
(k++,g+=this.Dh(n))}g+=(Math.min(d,this.Ji)-c-k)*(0<b.Jq?Math.min(b.Jq,b.Dt):b.Dt);d>=this.Ji&&(g+=(d-this.Ji)*this.Dh(d));return g}get Du(){return 0<=this.Vt?this.Vt:this.Vt=1>this.pC?this.nC:this.qu(this.he,this.he+this.Tp)}qu(c,d){if(c>=d)return 0;var g=0,k=0,m;for(m in this.ts){var n=parseInt(m);!isNaN(n)&&!isNaN(this.ts[n])&&n>=c&&n<d&&(k++,g+=this.$d(n))}return g+=(d-c-k)*(0<b.Wr?Math.min(b.Wr,b.Ev):b.Ev)}Xva(){this.wi.length=0}Afa(c,d){return e.v(this.wi[c])?!1:!0===this.wi[c][d]}tLa(c,d){e.v(this.wi[c])&&
(this.wi[c]=[]);this.wi[c][d]=!0}vS(){this.Wt=this.Vt=-1}get LFa(){for(var c=0,d=this.Zd+this.$l,g=this.Zd;g<d;g++)if(c+=this.Dh(g),c>b.y9)return b.y9;return c}get zq(){for(var c=this.Rs(),d=0;d<this.Zd;d++)c+=this.Dh(d);return c}get jr(){for(var c=this.Vu(),d=0;d<this.he;d++)c+=this.$d(d);return c}Rs(){return e.model.C.F.Zk?this.TR:0}Vu(){return e.model.C.F.Zk?this.d_:0}bBa(){for(var c=[],d=this.Zd;d<this.$l&&(this.Bfa(d)||(c.push(d),!(50<=c.length)));d++);return c}cBa(c){var d=[];c.bottom=Math.min(c.bottom,
this.dk);for(var g=c.left;g<=c.right;g++)for(var k=c.top;k<=c.bottom;k++)if(!this.Afa(k,g)){d.push(g);break}return d}Bfa(c,d=!0){return!isNaN(this.ks[c])||(d?!isNaN(this.Yq[c]):!1)}get LD(){return this.Eu+(this.Du>this.Ed?this.b_:0)>this.Fd}get ND(){return this.Du+(this.Eu>this.Fd?this.a_:0)>this.Ed}ED(c,d=!1){var g=e.model.C.F.Zk&&d?this.Vu():0;return g+=this.qu(d?0:this.he,c)}sD(c,d=!1){var g=e.model.C.F.Zk&&d?this.Rs():0;return g+=this.ru(d?0:this.Zd,c)}get yw(){return u.Nd().fj?!1:500>Math.max(this.Ji,
this.nu/b.Dt)*Math.max(this.dk,this.Xy/b.Ev)}get yva(){return u.Nd().fj?!1:(this.ND||this.LD)&&1E5>this.Ji*this.dk}To(c=!1){return new f.pF(this.vH(c),this.wH(c),this.rD(c),this.Gz(c))}wH(c=!1){return this.yw?this.he:c?Math.max(this.he,this.Lg-b.V9):Math.max(this.he,this.Lg)}vH(c=!1){return this.yw?this.Zd:c?Math.max(this.Zd,this.Bf-b.o7):Math.max(this.Zd,this.Bf)}Gz(c=!1){var d=this.Zea(this.Lg);return this.yw?this.ND?this.dk:this.Lg+d:c?Math.min(this.Lg+d+(this.ND?b.V9:0),this.ND?this.dk:Number.MAX_VALUE):
this.Lg+d}rD(c=!1){var d=this.Yea(this.Bf);return this.yw?this.LD?this.Ji:this.Bf+d:c?Math.min(this.Bf+d+(this.LD?b.o7:0),this.LD?this.Ji:Number.MAX_VALUE):this.Bf+d}bE(c=NaN){isNaN(c)&&(c=this.rD());return 0<this.scrollLeft&&c>=this.Ji}cE(c=NaN){isNaN(c)&&(c=this.Gz());return 0<this.scrollTop&&c>=this.dk}BM(c=NaN){isNaN(c)&&(c=this.Bf);return this.bE()?this.Eu-this.scrollLeft-this.ru(c,this.Ji):0}VM(c=NaN){isNaN(c)&&(c=this.Lg);return this.cE()?this.Du-this.scrollTop-this.qu(c,this.dk):0}gU(c,d){if(c<
this.we)return NaN;if(e.model.C.F.Zk&&c<this.we+this.Vu())return-1;var g=0,k=this.we+this.Vu();c>this.jr&&(g=this.Lg,k=this.we+this.jr,d&&g>this.he?(d=this.scrollTop-this.ED(g-1),0<d&&(k-=d,g--)):d||(c-=this.VM()));for(;k<c;)k+=this.$d(g),g++;return g-1}LT(c,d){if(e.model.C.F.Zk&&c<this.Rs())return-1;var g=0,k=this.Rs();c>this.zq&&(g=this.Bf,k=this.zq,d&&g>this.Zd?(d=this.scrollLeft-this.sD(g-1)+this.NI,0<d&&(k-=d,g--)):d||(c-=this.BM()));for(;k<c;)k+=this.Dh(g),g++;return g-1}Vo(c,d,g=!0){var k=
0,m=(g?this.we:0)+this.Vu();c>this.he&&(k=this.Lg,m=(g?this.we:0)+this.jr,k<=c&&(m+=d?this.ED(this.Lg)-this.scrollTop:this.VM()));return m+=this.qu(k,c)}hm(c,d){var g=0,k=this.Rs();c>this.Zd&&(g=this.Bf,k=this.zq,g<=c&&(k+=d?this.sD(this.Bf)-this.scrollLeft-this.NI:this.BM()));return k+=this.ru(g,c)}rEa(c){return isNaN(this.ts[c])}get dAa(){return this.scrollLeft+this.Fd-this.Eu-this.IE}get cAa(){return this.scrollTop+this.Ed-this.Du-this.HE}Wo(c,d){return!isNaN(c)&&0==this.$d(c)||!isNaN(d)&&0==this.Dh(d)?
!0:!1}}b.V9=5;b.o7=5;b.Dt=100;b.rF=50;b.Jq=480;b.Ev=30;b.qF=30;b.Wr=100;b.KY=25;b.LY=25;b.y9=200;f.Nh=b;class a{constructor(){this.rows=[];this.Ka=[]}}f.oQa=a})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Ga{constructor(a,c){super("div");this.EZ=!1;this.cell=new Qa;this.da=a;this.zn=c;this.element.addEventListener("click",d=>this.QV(d))}$y(a=!1){for(var c=!1,d=this.element.children,g=0;g<d.length;g++){var k=d.item(g);c=this.yka(k,!0)||c;k=k.children;for(var m=0;m<k.length;m++){const n=k.item(m);c=this.MO(n,a)||c}}this.EZ=c}get ZD(){return this.EZ}yka(a,c=!1){if(null!=this.da){var d=!1,g=parseInt(a.getAttribute("data-r"));if(isNaN(g)||
this.da.dE(g))return!1;var k=a.clientHeight;a=a.offsetHeight;var m=a-k;a-this.da.$d(g)>m?(this.da.Rx(g,Math.ceil(a),c),d=!0):k<=f.Nh.Ev&&this.da.Rx(g,f.Nh.Ev,c);return d}}MO(a,c=!1,d=!1){if(null!=this.da){var g=!1,k=parseInt(a.getAttribute("data-c")),m=parseInt(a.getAttribute("data-r"));if(isNaN(k)||a.classList.contains(h.W.ya.BQ)&&0<=k||this.da.YD(k)||this.da.Afa(m,k)&&!d)return!1;a=a.offsetWidth;if(a>this.da.Dh(k)){if(1<a-this.da.Dh(k)||1==window.devicePixelRatio||1!=window.devicePixelRatio&&this.da.Dh(k)==
f.Nh.Dt)this.da.nO(k,Math.ceil(a+3),c),g=!0}else-1!=k&&a<=f.Nh.Dt&&!this.da.Bfa(k,!0)&&this.da.nO(k,f.Nh.Dt,c);this.da.tLa(m,k);return g}}kz(a,c){var d=this.zn?this.zn(a,c):null;this.cell.clear();this.cell.tag="div";if(this.da.Wo(a,c))return this.cell.style.display="none",this.cell;this.cell.aa(h.W.ya.Ne);var g=a>=this.da.dk||c>=this.da.Ji;!d&&g?this.cell.aa(h.W.ya.CX):(this.cell.attr.role="gridcell",this.cell.attr["aria-rowindex"]=a+1,this.cell.attr["aria-colindex"]=c+1);d&&!isNaN(d.level)&&this.cell.aa(h.W.ya.Sf+
d.level);d&&d.xh&&(this.cell.aa(h.W.ya.qk),this.cell.aa(h.W.ya.Nv),this.cell.aa(h.W.ya.Sf+d.level),this.cell.attr.role="rowheader");d&&d.Ng&&(this.cell.aa(h.W.ya.qk),this.cell.aa(h.W.ya.mB),this.cell.attr.role="columnheader");d&&d.pN&&this.cell.aa(h.W.ya.ipa);d&&d.Mk&&this.cell.aa(h.W.ya.Xv);d&&d.vx&&this.cell.aa(h.W.ya.Lra);d&&d.jm&&this.cell.aa(h.W.ya.Mra);d&&d.Vz&&this.cell.aa(h.W.ya.NJ);d&&d.$D&&this.cell.aa(h.W.ya.goa);d&&d.Ss&&this.cell.aa(h.W.ya.hoa);d&&d.Zf&&(this.cell.aa(h.W.ya.SX),this.cell.text+=
this.No(h.W.ya.Y7,e.model.B.j.JQ));d&&d.collapsed&&(this.cell.aa(h.W.ya.DX),this.cell.text+=this.No(h.W.ya.n7,e.model.B.j.KQ));d&&d.Xz&&(this.cell.aa(h.W.ya.Q8),-.75>=d.value?this.cell.aa(h.W.ya.woa):-.25>=d.value?this.cell.aa(h.W.ya.Aoa):.25>d.value?this.cell.aa(h.W.ya.yoa):.75>d.value?this.cell.aa(h.W.ya.zoa):1>=d.value&&this.cell.aa(h.W.ya.xoa));d&&d.Wz&&(this.cell.aa(h.W.ya.Q8),-.75>=d.value?this.cell.aa(h.W.ya.roa):-.25>=d.value?this.cell.aa(h.W.ya.voa):.25>d.value?this.cell.aa(h.W.ya.toa):.75>
d.value?this.cell.aa(h.W.ya.uoa):1>=d.value&&this.cell.aa(h.W.ya.soa));this.cell.text+=d?d.lT:"";d&&(d.sh||d.Kg)&&(this.cell.text+='<span class="'+h.W.ya.hY+'" title="'+(d.sh?e.model.B.j.Dra:e.model.B.j.Era)+'">'+d.xBa()+"</span>",d.sh&&this.cell.aa(h.W.ya.Dma),d.Kg&&this.cell.aa(h.W.ya.Cma));if(d&&d.Ng){if(d.ao&&!d.kb){var k="";0<=d.f6&&(k="<span>"+(d.f6+1)+"</span>");const n=e.v(d.measure)||d.measure.type!=e.u.i.Ra.wc;this.cell.text=d.ip?this.cell.text+this.No([h.W.ya.BB,h.W.ya.bsa,e.ka(k)?"":h.W.ya.c$],
this.JH(e.u.i.Ba.hc,n,e.model.C.F.sc),k):d.jp?this.cell.text+this.No([h.W.ya.BB,h.W.ya.csa,e.ka(k)?"":h.W.ya.c$],this.JH(e.u.i.Ba.Nc,n,e.model.C.F.sc),k):this.cell.text+this.No([h.W.ya.BB,h.W.ya.dsa],this.JH(e.u.i.Ba.ed,n,e.model.C.F.sc))}d.kb&&this.cell.aa(h.W.ya.CX);d.kb||this.cell.aa(h.W.ya.asa)}d&&d.xh&&(d.ao&&!d.kb&&(this.cell.text=d.ip?this.cell.text+this.No([h.W.ya.BB,h.W.ya.loa],this.JH(e.u.i.Ba.hc)):d.jp?this.cell.text+this.No([h.W.ya.BB,h.W.ya.moa],this.JH(e.u.i.Ba.Nc)):this.cell.text+this.No([h.W.ya.BB,
h.W.ya.noa],this.JH(e.u.i.Ba.ed))),this.cell.aa(h.W.ya.koa));this.cell.attr["data-c"]=c;this.cell.attr["data-r"]=a;this.cell.attr["data-n"]=0==a%2?"even":"odd";0!=c||e.model.C.F.Zk||(this.cell.style.height=this.da.$d(a)+"px");if(d&&d.style){for(k=0;k<d.style.$W.length;k++)this.cell.aa(d.style.$W[k]);k=d.style.V;for(var m in k)this.cell.style[m]=k[m]}this.Via(this.cell,a,c,d&&d.li);null==h.W.ne.Lw||g||(null==d&&(d=new h.W.ne,d.lb=a,d.kc=c),h.W.ne.Lw(this.cell.node,d.Sa()));return this.cell}JH(a,c=
!0,d=!1){a=e.u.i.Ba.cU(a,c,d);return a==e.u.i.Ba.hc?e.model.B.j.Hra:a==e.u.i.Ba.Nc?e.model.B.j.Ira:a==e.u.i.Ba.ed?e.model.B.j.Kra:e.model.B.j.Jra}P2(a,c){return this.zn?(a=this.zn(a,c),e.v(a)||e.ka(a.label)):!0}Via(a,c,d,g=!1){this.da.YD(d)||this.da.dE(c)?(a.style.width=this.da.Dh(d)+"px",a.style.height=this.da.$d(c)+"px"):(a.style["min-width"]=this.da.Dh(d)+"px",a.style[g?"height":"min-height"]=this.da.$d(c)+"px");!this.da.YD(d)&&0<f.Nh.Jq&&(a.style["max-width"]=f.Nh.Jq+"px");!this.da.dE(c)&&0<f.Nh.Wr&&
(a.style["max-height"]=f.Nh.Wr+"px")}No(a,c=null,d=""){Array.isArray(a)&&(a=a.join(" "));a='<i aria-hidden="true" class="'+h.W.ya.iY+" "+a+'"';c&&(a+='title="'+c+'"');return a+(">"+d+"</i>")}Uxa(){this.cell.clear();this.cell.tag="div";this.cell.aa(h.W.ya.Ne);this.cell.aa(h.W.ya.BQ);this.cell.style.width=this.da.Rs()+"px";this.cell.style.height=this.da.Vu()+"px";this.cell.attr["aria-hidden"]="true";return this.cell}sca(a){this.cell.clear();this.cell.tag="div";if(this.da.Wo(-1,a))return this.cell.style.display=
"none",this.cell;this.cell.aa(h.W.ya.Ne);this.cell.aa(h.W.ya.BQ);this.cell.text+=a+1;this.cell.style.width=this.da.Dh(a)+"px";0<f.Nh.Jq&&!this.da.YD(a)&&(this.cell.style["max-width"]=f.Nh.Jq+"px");this.cell.style.height=this.da.Vu()+"px";this.cell.attr["data-r"]=-1;this.cell.attr["data-c"]=a;this.cell.attr["aria-hidden"]="true";return this.cell}VS(a){this.cell.clear();this.cell.tag="div";if(this.da.Wo(a,-1))return this.cell.style.display="none",this.cell;this.cell.aa(h.W.ya.Ne);this.cell.aa(h.W.ya.BQ);
this.cell.text+=a+1;this.cell.style["min-width"]=this.da.Rs()+"px";this.cell.style.height=this.da.$d(a)+"px";this.cell.style["line-height"]=this.da.$d(a)-2+"px";0<f.Nh.Wr&&!this.da.dE(a)&&(this.cell.style["max-height"]=f.Nh.Wr+"px");this.cell.attr["data-r"]=a;this.cell.attr["data-c"]=-1;this.cell.attr["aria-hidden"]="true";return this.cell}I1(a,c){a=this.da.CM(a)-1;c=this.da.WM(c)-1;var d=null;null!=this.zn&&(d=this.zn(c,a));null==d&&(d=new h.W.ne,d.lb=c,d.kc=a);return d}Tu(a){for(;!a.Sc(h.W.ya.Ne);)if(a=
a.parent,null==a)return null;var c=parseInt(a.attr("data-c"));a=parseInt(a.attr("data-r"));var d=null!=this.zn?this.zn(a,c):l.Sb.Jb.YT(a,c);null==d&&(d=new h.W.ne,d.lb=a,d.kc=c);return d}QV(a){var c=x.Ga.Yb(a.target),d=this.Tu(c)||this.I1(a.offsetX,a.offsetY);switch(a.type){case "click":var g=new h.J8(d,c,a)}g&&this.Ha(g)}dispose(){super.dispose();this.da=this.zn=null}}f.$O=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.$O{constructor(a,c){super(a,c);this.GR=!1;this.aa("fm-sheet-canvas");this.Ul=new $a;this.X(this.Ul);this.Cm=new f.pF;this.vi=new f.pF}nb(){}uz(){}get ac(){return this.GR}set ac(a){this.GR!=a&&(this.GR=a,this.Ya(this.ac?b.X7:b.RX))}Wja(){0!=this.ac&&(this.Cm.reset(),this.vi.reset(),this.nb())}SG(){this.Cm.reset()}Vva(){this.vi.reset()}Dw(){this.SG();this.Vva()}$y(a=!1){for(var c=!1,d=this.Ul.content.element.children,g=0;g<d.length;g++){var k=
d.item(g);c=this.yka(k,a)||c;k=k.children;for(var m=0;m<k.length;m++){var n=k.item(m);c=this.MO(n,a)||c}}this.EZ=c}vA(){this.Ul.content.width=this.pw-this.da.IE;this.Ul.content.height=this.au-this.da.HE}get sb(){return this.Ul}get width(){return this.pw}set width(a){this.pw!=a&&(this.element.style.minWidth=a+"px",this.pw=a,this.Ul.width=a)}get height(){return this.au}set height(a){this.au!=a&&(this.element.style.height=a+"px",this.au=a,this.Ul.height=a)}XAa(a,c){a=this.da.LT(a,this.ac);c=this.da.gU(c,
this.ac);var d=null;null!=this.zn&&(d=this.zn(c,a));null==d&&(d=new h.W.ne,d.lb=c,d.kc=a);return d}QV(a){var c=this.parent.sg();var d=a.clientX-c.left;var g=a.clientY-c.top;c=a.target;c==this.sb.placeholder.element&&(this.sb.placeholder.V("pointer-events","none"),c=document.elementFromPoint(a.clientX,a.clientY),this.sb.placeholder.V("pointer-events",""));c=x.Ga.Yb(c);d=this.Tu(c)||this.XAa(d,g);null!=d&&null!=c&&(g=h.W.Lq.W6,c.Sc(h.W.ya.hY)?g=h.W.Lq.M7:c.Sc(h.W.ya.Y7)||c.Sc(h.W.ya.n7)?g=h.W.Lq.Coa:
c.Sc(h.W.ya.BB)?g=h.W.Lq.lK:c.Sc(h.W.ya.WP)&&(g=h.W.Lq.WP),d.tC=g);switch(a.type){case "click":var k=new h.J8(d,c,a)}k&&this.Ha(k)}ZG(a,c=!1,d=!1){var g=[],k=new Qa;d&&g.push(this.Bxa(a));for(d=a.top;d<a.bottom;d++){k.tag="div";k.aa("fm-row");k.attr["data-r"]=d;d<this.da.dk&&this instanceof f.Q7&&(k.attr.role="row");c&&(k.text+=ab(this.VS(d)));for(var m=a.left;m<a.right;++m)k.text+=ab(this.kz(d,m));g.push(ab(k))}return g.join("")}Bxa(a){for(var c="",d=a.left;d<a.right;++d)c+=ab(this.sca(d));a=new Qa;
a.tag="div";a.aa("fm-row");a.text=c;return c=ab(a)}Vea(){var a=this.da.wH();return this.ac?this.da.qu(this.vi.top,a)-this.sb.VC:this.da.VM(a)}Uea(){var a=this.da.vH();return this.ac?this.da.ru(this.vi.left,a)-this.sb.Gs:this.da.BM(a)}dispose(){this.sb.dispose();super.dispose()}}b.X7="switched_to_smooth";b.RX="switched_to_simple";f.nF=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a=0,c=0,d=0,g=0){this.left=a;this.top=c;this.right=d;this.bottom=g}set(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom}reset(){this.bottom=this.right=this.top=this.left=0}contains(a){return this.left<=a.left&&this.top<=a.top&&this.right>=a.right&&this.bottom>=a.bottom}clone(){return new b(this.left,this.top,this.right,this.bottom)}}f.pF=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||
(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a){this.oD=[];this.data=[];this.coords=a}reset(){this.data=[];this.oD=[]}setData(a,c,d,g=!1){d.lb=a;d.kc=c;if(c<this.coords.Zd||g)null==this.data[a]&&(this.data[a]=[]),this.data[a][c]=d}AW(a,c,d){null==this.oD[a]&&(this.oD[a]=[]);this.oD[a][c]=d}zva(a,c){void 0===this.data[a]&&(this.data[a]=[]);return void 0!==this.data[a][c]}getData(a,c,d=!0){if(0==this.zva(a,c)){var g=this.vD(a,c);null!=g&&(g.lb=a,g.kc=c);if(d)this.data[a][c]=g;
else return g}if(null!==this.data[a][c])return this.data[a][c]}uBa(a,c){return this.oD[a]&&this.oD[a][c]?this.oD[a][c]:null}Wva(a,c){null!=this.data[a]&&(this.data[a][c]=this.getData(a,c))}dispose(){this.reset();this.vD=null}}f.pra=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(c){this.Saa=this.caa=null;this.gj=new e.ub;this.TK={};this.EK={};this.bV=d=>this.tq(d);this.na=c;this.coords=this.na.coords;this.Vk=new f.nra(this,this.na);this.oLa=new f.fla;this.lv=u.TP.R();this.lv.N(u.KeyboardEvent.SP,this.bV)}dispose(){null!=this.gj&&0<this.gj.length&&this.X_();this.lv.rb(u.KeyboardEvent.SP,this.bV);this.lv=this.na=null;this.Vk.dispose()}nb(){this.Vk.j5()}Sha(c,d){this.Vk.XU?this.SKa(c,d):this.Fia(c,d);this.nb()}Tha(c,
d){this.Vk.GU||(null==this.Vk.ep&&(this.Vk.ep=new f.f$(this.na)),this.Vk.ep.Aw=c.toString()+"|"+d.toString(),this.nb())}mLa(c,d){this.Vk.Xx||this.select(c,d)}select(c,d){this.Ks();this.from=c;this.tm=d;this.Sha(c,d)}SKa(c,d){this.Cfa(c,d)&&!this.gj.Bb(this.WG(c,d))&&(this.X_(),this.Fia(c,d))}Fia(c,d){null!=this.Vk.ep&&(this.Vk.ep.remove(),this.Vk.ep=null);if(!this.Vk.GU||this.Cfa(c,d))if(this.gj.Bb(this.WG(c,d)))g=this.gj.getItem(this.WG(c,d)),null!=g.bp&&delete this.TK[c.y.toString()],null!=g.Jo&&
delete this.EK[c.x.toString()],g.remove(),this.gj.removeItem(this.WG(c,d));else if(null!=c&&null!=d){var g=new f.f$(this.na);g.Aw=this.WG(c,d);this.gj.Ta(g.Aw,g)}}X_(){for(;this.gj&&0<this.gj.length;)this.gj.fa(0).remove(),this.gj.s5(0);this.TK={};this.EK={}}WG(c,d){return c.x.toString()+"|"+c.y.toString()+"|"+d.x.toString()+"|"+d.y.toString()}bH(c){c=c.split("|");var d={};4==c.length?(d.from=new e.K.Y.sheet.Dp(parseInt(c[0]),parseInt(c[1])),d.tm=new e.K.Y.sheet.Dp(parseInt(c[2]),parseInt(c[3]))):
2==c.length&&(d.mt=parseInt(c[0]),d.Au=parseInt(c[1]));return d}dga(c){return this.TK.hasOwnProperty(c.y.toString())&&this.EK.hasOwnProperty(c.x.toString())&&this.TK[c.y.toString()]==f.A7.YO&&this.EK[c.x.toString()]==f.A7.YO}Cfa(c,d){return null==c||null==d||!c.hD(d)||this.dga(c)||this.dga(d)||0>c.x*c.y||0>d.x*d.y?!1:!0}selectAll(){this.select(new a(0,0),new a(this.coords.$l+this.coords.Zd-1,this.coords.Tp+this.coords.he-1))}E5(c){if(!(null==this.from||this.from.hD(c)&&this.gj.Bb(this.WG(this.from,
c)))){var d=this.from;this.Ks();this.from=d;this.tm=c;this.Sha(d,c)}}nLa(c){this.Ks();this.Tha(c,-1)}jLa(c){this.Ks();this.Tha(-1,c)}Ks(){!this.Vk.GU&&0<this.gj.length&&!this.Vk.XU&&this.X_();null!=this.Vk.ep&&(this.Vk.ep.remove(),this.Vk.ep=null);this.tm=this.from=null}clear(){this.Ks();this.nb()}updateLabels(){this.Vk&&this.Vk.updateLabels()}zDa(c){return c.li&&!isNaN(c.value)||c.ul&&c.li&&""!=c.label}dva(c){if(null==c)return!1;let d=0;for(let g=0;g<c.length;g++)if(this.zDa(c[g])&&d++,2<=d)return!0;
return!1}get Lr(){return this.gj}get tm(){return this.Saa}set tm(c){this.Saa=c}get from(){return this.caa}set from(c){this.caa=c}gAa(c,d){return c&&d?Math.min(c.x,d.x):-1}wMa(c,d){return c&&d?Math.max(c.x,d.x):-1}oAa(c,d){return c&&d?Math.min(c.y,d.y):-1}IMa(c,d){return c&&d?Math.max(c.y,d.y):-1}move(c,d,g=!1){switch(c){case 37:this.QFa(g);break;case 38:this.TFa(g);break;case 39:this.RFa(g);break;case 40:this.PFa(g)}}get Bia(){return this.TK}get bca(){return this.EK}QFa(c=!1){this.P3(-1,c)}RFa(c=
!1){this.P3(1,c)}TFa(c=!1){this.S3(-1,c)}PFa(c=!1){this.S3(1,c)}P3(c,d=!1){if(1==this.gj.length){var g=this.bH(this.gj.fa(0).Aw),k=g.from,m=g.tm;g=d?m.x:k.x;var n=d?m.x:k.x;g=this.Nza(g+c,d?m.y:k.y);this.BDa(g)?g<this.coords.Ji-1&&g>this.coords.Bf&&this.P3(0>c?c-1:c+1,d):(g<this.coords.Bf?(c=Math.max(g,this.coords.Zd),this.na.ot(c)):g>=this.coords.Yea(this.coords.Bf)+this.coords.Bf-1&&(c=this.coords.Bf+(g-n),this.na.ot(c+1)),c=d?m.y:k.y,m=g,this.select(new a(d?k.x:g,k.y),new a(m,c)))}}S3(c,d=!1){if(1==
this.gj.length){var g=this.bH(this.gj.fa(0).Aw),k=g.from,m=g.tm;g=d?m.y:k.y;var n=d?m.y:k.y;g=this.Oza(g+c,d?m.x:k.x);this.sEa(g)?g<this.coords.dk-1&&g>this.coords.Lg&&this.S3(0>c?c-1:c+1,d):(g<this.coords.Lg?(c=Math.max(g,this.coords.he),this.na.Kr(c)):g>=this.coords.Zea(this.coords.Lg)+this.coords.Lg-1&&(c=this.coords.Lg+(g-n),this.na.Kr(c+1)),c=g,m=d?m.x:k.x,this.select(new a(k.x,d?k.y:g),new a(m,c)))}}sEa(c){const d=e.model.size.wd.If;for(let k in d)if(!isNaN(d[k])&&d.hasOwnProperty(k)){var g=
k.split(",");g=e.model.Wa.R().J.Lz(g);if(!(0>g)&&g+this.coords.Lg===c&&0===d[k])return!0}return!1}BDa(c){const d=e.model.size.wd.Af;for(let k in d)if(!isNaN(d[k])&&d.hasOwnProperty(k)){var g=k.split(",");g=e.model.Wa.R().J.Hz(g);if(!(0>g)&&g+this.coords.Bf===c&&0===d[k])return!0}return!1}Oza(c,d){return Math.max(d<this.coords.Zd?this.coords.he:this.coords.VG+1,Math.min(c,this.coords.dk-1))}Nza(c,d){c=0>c&&!e.model.C.F.Zk?0:c;return Math.max(d<this.coords.he?this.coords.Zd:0,Math.min(c,this.coords.Ji-
1))}get kva(){return this.oLa}tq(c){if(null!=this.lv&&(this.na.an||this.lv.Ofa)){var d=c.ctrlKey||c.metaKey;switch(c.keyCode){case 13:case 32:d||this.na.Ya(h.uc.OJ);break;case 65:d&&(this.selectAll(),c.vq.preventDefault());break;case 37:case 39:case 38:case 40:this.move(c.keyCode,c.ctrlKey,c.shiftKey),c.vq.preventDefault()}!d||c.altKey||c.shiftKey||this.lv.Ofa||67!==c.keyCode||this.jz()}}jz(){var c="";if(0<this.gj.length)for(var d,g=0;g<this.gj.length;g++)d=this.gj.fa(g),null!=d.Xj&&(d=this.bH(d.Aw),
c+=this.oxa(d.from,d.tm),g<this.gj.length-1&&(c+="\n"));0<c.length&&this.lv.jz(c)}oxa(c,d){var g="";if(null==c||null==d)return g;var k=Math.min(c.x,d.x),m=Math.max(c.x,d.x),n=Math.max(c.y,d.y);for(d=Math.min(c.y,d.y);d<=n;d++){for(var p=k;p<=m;p++){p>k&&(g+="\t");c=this.na.ag(d,p,!0);if(null==c&&(c=d<this.coords.Lg&&p>=this.coords.Bf?this.na.ag(d,p-this.coords.Bf+this.coords.Zd,!0):null,null==c))continue;g+=null==c?"":c.I()}d<n&&(g+="\n")}return g}}f.ora=b;class a{constructor(c=0,d=0){this.x=c;this.y=
d}hD(c){return c.x==this.x&&c.y==this.y}}f.Dp=a})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(d,g){this.yG=this.gga=this.GU=!1;this.xo=this.Paa=null;this.Eba=5;this.gLa=17;this.XU=!1;this.pI=k=>this.QV(k);this.bha=k=>this.D4(k);this.yh=d;this.na=g;this.coords=this.na.coords;this.xo=new f.ela;this.xo.$a();this.na.X(this.xo);this.na.element.addEventListener("mousedown",this.pI);this.na.element.addEventListener("mouseup",this.pI)}get Xx(){return this.yG}set Xx(d){this.yG=d;this.Xx||(this.na.element.removeEventListener("mousemove",
this.pI),document.removeEventListener("mousemove",this.bha))}get ep(){return this.Paa}set ep(d){this.Paa=d}QV(d){if(1==d.which||3==d.which){var g=x.Ga.Yb(d.target);if("mousedown"!=d.type||!(g.Sc(h.W.ya.Kq)||g.Sc(h.W.ya.KJ)||g.Sc(h.W.ya.EJ)||null!=g.closest(".fm-filters")||null!=g.closest("."+h.W.ya.SJ))){var k=this.na.sg();g=d.clientX-k.left;k=d.clientY-k.top;if(!(g>this.coords.nu||k>this.coords.we+this.coords.Xy||(k=this.coords.gU(k,this.na.ac),g=this.coords.LT(g,this.na.ac),isNaN(k)||isNaN(g))))switch(this.GU=
!u.uj.Yo&&d.ctrlKey||u.uj.Yo&&d.metaKey,this.XU=3==d.which,this.gga=d.shiftKey,d.type){case "mousedown":this.Ix(k,g);break;case "mousemove":this.Jx(k,g);break;case "mouseup":this.Cr(k,g)}}}}D4(d){var g=x.Ga.Yb(this.na.element),k=d.clientX;d=d.clientY;(k<g.left||d<g.top||k>g.left+this.na.width||d>g.top+this.na.height)&&this.oMa()}select(d,g,k,m){this.Xx=!1;this.yh.select(new f.Dp(g,d),new f.Dp(m,k))}oMa(){this.Xx=!1}Ix(d,g){this.gga&&this.yh.from?this.SCa(d,g):(this.Xx=!0,this.yh.select(new f.Dp(g,
d),new f.Dp(g,d)),this.na.element.addEventListener("mousemove",this.pI),e.Ik.addEventListener("mousemove",this.bha))}SCa(d,g){d=new f.Dp(g,d);this.yh.from&&!this.yh.from.hD(d)&&this.yh.E5(d)}Cr(d,g){this.Xx&&(this.Xx=!1,this.XU||(-1==d?this.yh.jLa(g):-1==g?this.yh.nLa(d):this.yh.from&&!this.yh.from.hD(new f.Dp(g,d))&&this.yh.E5(new f.Dp(g,d))))}Jx(d,g){this.Xx&&(!this.yh.tm||this.yh.tm.x==g&&this.yh.tm.y==d||this.yh.E5(new f.Dp(g,d)))}updateLabels(){this.xo&&this.xo.updateLabels()}dispose(){this.na.element&&
this.na.element.removeEventListener("mousedown",this.pI);this.na.element&&this.na.element.removeEventListener("mouseup",this.pI);this.xo.dispose();this.coords=this.na=this.yh=null;null!=this.ep&&(this.ep.remove(),this.ep=null)}j5(){this.xo.CKa();for(var d=0;d<this.yh.Lr.length;d++){var g=this.yh.Lr.fa(d);var k=this.yh.bH(this.yh.Lr.Uh(d));this.xta(g,k.from,k.tm)}this.yta(this.xo);this.Jya(this.ep)}Jya(d){if(null!=d){d.$a();var g=this.yh.bH(d.Aw);-1!=g.mt&&this.Uya(g.mt,d);-1!=g.Au&&this.Tya(g.Au,
d)}}yta(d){d.$a();if(e.model.C.F.qja&&d.DDa()&&null!=e.u.Ma.R()&&null!=e.u.Ma.R().O){var g=this.na.Lr;if(this.yh.dva(g)&&(d.qFa(),this.TMa(d,g),!d.uDa())){d.show();d.qw.Yk("auto");d.top=d.Yl.bottom;g=this.coords.hm(this.coords.Zd,this.na.ac);for(var k=0,m=0;m<d.In.length;m++)k+=d.In.fa(m).width;k=k+2*this.Eba+2*(d.In.length-1)*this.Eba;d.qw.width=k;g-d.Yl.right+k>this.coords.scrollLeft?d.Yl.right=d.Yl.left+k:g>d.Yl.right-k?(d.qw.V("left","auto"),d.qw.right=0,k=d.Yl.right-g):d.Yl.yia>=this.coords.nu&&
(d.qw.V("left","right"),d.qw.left=0,k=k-(d.Yl.yia-this.coords.nu)-1,k=0>k?0:k);this.coords.we+this.coords.Xy<=d.Yl.bottom+d.height&&(d.top=d.Yl.bottom-this.gLa);d.left=d.Yl.right-k;d.mia.width=k;d.width=k}}}TMa(d,g){this.yh.kva.iKa(d,g)}xta(d,g,k){d.$a();var m=Math.min(g.x,k.x),n=Math.min(g.y,k.y),p=Math.max(g.x,k.x);g=Math.max(g.y,k.y);this.YJa(m,p,n,g,d);e.model.C.F.Zk&&this.Mya(m,p,n,g,d);k=this.coords.nu;var t=this.coords.we+this.coords.Xy,r=Math.max(this.coords.we,this.coords.Vo(n,this.na.ac)-
1),v=this.coords.Vo(g+1,this.na.ac),y=Math.min(t,v),A=Math.max(0,this.coords.hm(m,this.na.ac)-1),C=this.coords.hm(p+1,this.na.ac),B=Math.min(k,C),H=y-r,M=B-A;2>=M||2>=H?null!=d.Xj&&d.Xj.$a():A<k&&r<t?(null!=d.Xj&&(d.Xj.show(),d.Xj.top=r,d.Xj.left=A,d.Xj.width=M,d.Xj.height=H,this.xo.Yl.bottom*this.xo.Yl.right<=B*y&&(this.xo.Yl.left=A,this.xo.Yl.right=B,this.xo.Yl.bottom=y,this.xo.Yl.yia=C)),n<this.coords.he&&C>B&&(d.pca(),d.nl.top=r,d.nl.left=B,d.nl.width=Math.min(C,this.coords.lq)-B,d.nl.height=
Math.min(y,this.coords.we+this.coords.jr)-r,d.nl.ab("fm-clear-border-bottom",g>this.coords.he),d.nl.ab("fm-clear-border-right",C>this.coords.lq),d.nl.Hd("fm-clear-border"),d.nl.show()),m<this.coords.Zd&&v>y&&(d.wca(),d.El.top=y,d.El.left=A,d.El.width=Math.min(B,this.coords.zq)-A,d.El.height=Math.min(v,this.coords.Us)-y,d.El.ab("fm-clear-border-bottom",v>this.coords.Us),d.El.ab("fm-clear-border-right",p>this.coords.Zd),d.El.Hd("fm-clear-border"),d.El.show()),null!=d.Xj&&(d.Xj.ab("fm-clear-border-right",
C>B),d.Xj.ab("fm-clear-border-bottom",v>y))):null!=d.Xj&&d.Xj.$a()}Uya(d,g){if(!isNaN(d)){null==g.bp&&g.xca();var k=this.coords.Vo(d,this.na.ac);d=this.coords.Vo(d+1,this.na.ac);var m=Math.min(this.coords.we+this.coords.Xy,d);k<this.coords.we+this.coords.Xy?(g.bp.left=0,g.bp.top=k,g.bp.width=this.coords.nu,g.bp.height=m-k,g.bp.show(),d>m&&(g.wca(),g.El.top=m,g.El.left=0,g.El.width=this.coords.zq,g.El.height=Math.min(d,this.coords.Us)-m,g.El.aa("fm-clear-border"),g.El.show())):g.bp.$a()}}Tya(d,g){if(!isNaN(d)){null==
g.Jo&&g.qca();var k=this.coords.hm(d,this.na.ac);d=this.coords.hm(d+1,this.na.ac);var m=Math.min(this.coords.nu,d);k<this.coords.nu?(g.Jo.left=k,g.Jo.top=this.coords.we,g.Jo.width=m-k,g.Jo.height=this.coords.Xy,g.Jo.show(),d>m&&(g.pca(),g.nl.top=this.coords.we,g.nl.left=m,g.nl.width=Math.min(d,this.coords.lq)-m,g.nl.height=this.coords.jr,g.nl.aa("fm-clear-border"),g.nl.show())):g.Jo.$a()}}Mya(d,g,k,m,n){this.Kya(n.Jo,d,g);this.Lya(n.bp,k,m)}YJa(d,g,k,m,n){if(!this.yh.Bia.hasOwnProperty(k.toString())){n.xca();
for(var p=k;p<=m;p++)this.yh.Bia[p.toString()]=k==m&&d==g?a.K9:a.YO}if(!this.yh.bca.hasOwnProperty(d.toString()))for(n.qca(),p=d;p<=g;p++)this.yh.bca[p.toString()]=k==m&&d==g?a.K9:a.YO}Kya(d,g,k){null!=d&&(g=this.coords.hm(g,this.na.ac),k=Math.min(this.coords.lq,this.coords.hm(k+1,this.na.ac)),g<this.coords.lq?(d.left=g,d.top=this.coords.we,d.width=k-g,d.height=this.coords.Vu(),d.show()):d.$a())}Lya(d,g,k){null!=d&&(g=this.coords.Vo(g,this.na.ac),k=Math.min(this.coords.Us,this.coords.Vo(k+1,this.na.ac)),
d.left=0,d.top=g,d.width=this.coords.Rs(),d.height=k-g,d.show())}}f.nra=b;class a{}a.K9=1;a.YO=2;f.A7=a;class c{constructor(d){this.na=this.SK=this.DK=this.vG=this.aG=this.XQ=null;this.na=d;this.XQ=this.VL()}VL(){var d=new x.Ga("div","fm-sheet-selection-canvas");d.$a();this.na.X(d);return d}qca(){null==this.aG&&(this.aG=this.VL(),this.aG.aa("fm-sheet-selection-header"))}xca(){null==this.vG&&(this.vG=this.VL(),this.vG.aa("fm-sheet-selection-header"))}wca(){null==this.SK&&(this.SK=this.VL(),this.SK.aa("fm-clear-border-top"))}pca(){null==
this.DK&&(this.DK=this.VL(),this.DK.aa("fm-clear-border-left"))}get Aw(){return this.Asa}set Aw(d){this.Asa=d}get El(){return this.SK}get nl(){return this.DK}get bp(){return this.vG}set bp(d){this.vG=d}get Jo(){return this.aG}set Jo(d){this.aG=d}get Xj(){return this.XQ}set Xj(d){this.XQ=d}$a(){this.Jo&&this.Jo.$a();this.bp&&this.bp.$a();this.nl&&this.nl.$a();this.El&&this.El.$a();this.Xj&&this.Xj.$a()}remove(){null!=this.Xj&&(this.Xj.remove(),this.XQ=null);null!=this.Jo&&(this.Jo.remove(),this.aG=
null);null!=this.bp&&(this.bp.remove(),this.vG=null);null!=this.nl&&(this.nl.remove(),this.DK=null);null!=this.El&&(this.El.remove(),this.SK=null);this.na=null}}f.f$=c})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.daa=null}iKa(a,c){this.Xm=this.Kza(c);const d=null==this.Xm?e.model.oc.tj.VT().clone():this.Xm.Eh(this.Xm.A,this.Xm.$).clone();d.am=d.am==e.model.oc.tj.hea().am?2:d.am;for(var g=0;g<a.zx.length;g++){var k=this.tva(a.zx[g],c);0!=k?a.oi(a.zx[g],this.IBa(k,a.zx[g],d.clone())):a.cDa(a.zx[g])}this.Xm=null}IBa(a,c,d){var g="count"==c||null!=this.Xm&&e.u.i.ea.xe(this.Xm.$),k="count"!=c&&null!=this.Xm&&e.u.i.ea.de(this.Xm.$),m=
null!=this.Xm&&this.Xm.type==e.u.i.Ra.ec&&e.u.i.ea.pp(this.Xm.$);d.de="count"==c?!1:d.de;d.yd=null!=this.Xm&&this.Xm.$==e.u.i.ea.Si?"":d.yd;return m&&!isNaN(a)&&"count"!=c?e.P.ey(a,e.model.C.F.np):u.bc.format(a,d,g,k)}tva(a,c){switch(a){case "sum":return this.wva(c);case "average":return this.uva(c);case "count":return this.vva(c)}return 0}wva(a){for(var c=0,d=0;d<a.length;d++)c+=a[d].li&&!isNaN(a[d].value)&&this.UU(a[d])?a[d].value:0;return c}uva(a){for(var c=0,d=0,g=0;g<a.length;g++)a[g].li&&!isNaN(a[g].value)&&
this.UU(a[g])&&(c+=a[g].value,d++);return 0==d?0:c/d}vva(a){for(var c=0,d=0;d<a.length;d++)(a[d].li&&!isNaN(a[d].value)||a[d].ul&&a[d].li&&""!=a[d].label)&&c++;return c}Kza(a){for(var c=null,d=0;d<a.length;d++)if(this.UU(a[d])&&null==c&&!e.v(a[d].measure))c=a[d].measure;else if(this.UU(a[d])&&null!=c&&c.A!=a[d].measure.A){c=null;break}return c}UU(a){return a.ul&&a.li&&!isNaN(a.value)||a.li&&null!=a.measure&&!isNaN(a.value)&&e.u.i.Ra.wc!=a.measure.type&&e.u.i.Ra.Ua!=a.measure.type&&e.u.i.Ra.Mc!=a.measure.type}get Xm(){return this.daa}set Xm(a){this.daa=
a}}f.fla=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Ga{constructor(c=null){super("div","fm-auto-calculation-bar");this.OZ=["average","count","sum"];this.nL={};this.cR={right:-1E3,bottom:1E3};this.xsa=new e.ub;this.OZ=null==c?this.OZ:c;this.sfa();this.Ke()}sfa(){this.nL.average=e.model.B.j.T6;this.nL.sum=e.model.B.j.d$;this.nL.count=e.model.B.j.w7}get In(){return this.xsa}Ke(){this.ZZ=new x.Ga("div");this.ZZ.V("position","relative");this.X(this.mia);this.vsa=new x.Ga("div","fm-auto-calculation-bar-conainer");
this.qw.V("position","absolute");this.ZZ.X(this.qw);for(var c,d=0;d<this.zx.length;d++)c=new a,c.Uia(this.nL[this.zx[d]]),this.qw.X(c),this.In.Ta(this.zx[d],c)}DDa(){return-1E3!=this.cR.right&&1E3!=this.cR.bottom}oi(c,d){this.In.getItem(c).qLa(d)}cDa(c){this.In.getItem(c).$a()}get qw(){return this.vsa}get mia(){return this.ZZ}qFa(){for(var c,d=0;d<this.In.length;d++)c=this.In.fa(d),c.visible||c.show()}uDa(){for(var c=0;c<this.In.length;c++)if(this.In.fa(c).visible)return!1;return!0}get Yl(){return this.cR}get zx(){return this.OZ}CKa(){this.cR=
{right:-1E3,bottom:1E3}}updateLabels(){this.sfa();for(var c=0;c<this.In.length;c++)this.In.fa(c).Uia(this.nL[this.zx[c]])}clear(){for(;0<this.In.length;)this.In.fa(0).dispose(),this.In.s5(0);this.dispose()}}f.ela=b;class a extends x.Ga{constructor(){super("div","fm-auto-calculation-bar-content");this.display="inline-block";this.Ke()}Ke(){this.qba=new x.Ga("div","fm-auto-calculation-bar-content-text");this.X(this.qba);this.rba=new x.Ga("div","fm-auto-calculation-bar-content-results");this.X(this.rba)}show(){this.element.style.display=
this.display}Uia(c){this.qba.text(c+":")}qLa(c){this.rba.text(c)}}f.xNa=a})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
class $a extends x.Ga{constructor(){super("div","fm-scroll-pane");this.Oaa=()=>this.P4();this.rG=!1;this.jZ=this.iZ=0;u.uj.Yo&&this.aa("fm-scrollbars");this.du=new x.Ga("div","fm-scroll-placeholder");this.bR=new x.Ga("div","fm-scroll-content");this.X(this.du);this.X(this.bR);this.element.addEventListener("scroll",this.Oaa,!0)}P4(){if(this.rG)return this.rG=!1;this.Ya(bb)}get WC(){return this.du.width}set WC(e){this.du.width=e}get p0(){return this.du.height}set p0(e){this.du.height=e}get scrollLeft(){return this.element.scrollLeft}set scrollLeft(e){this.rG=
!1;this.element.scrollLeft=Math.max(0,e)}set iO(e){this.rG=!0;this.element.scrollLeft=Math.max(0,e)}get scrollTop(){return this.element.scrollTop}set scrollTop(e){this.rG=!1;this.element.scrollTop=Math.max(0,e)}set kO(e){this.rG=!0;this.element.scrollTop=Math.max(0,e)}get placeholder(){return this.du}get content(){return this.bR}get Gs(){return this.iZ}set Gs(e){this.iZ=e;this.bR.left=-this.iZ}get VC(){return this.jZ}set VC(e){this.jZ=e;this.bR.top=-this.jZ}set fDa(e){this.element.style.overflowX=
e?"scroll":"hidden"}set hNa(e){this.element.style.overflowY=e?"scroll":"hidden"}dispose(){this.element&&this.element.removeEventListener("scroll",this.Oaa);super.dispose()}}var bb="fm_scroll_event";
(function(e){(function(l){(function(h){(function(f){class b extends f.$O{constructor(a){super(a,null);this.da=a}nb(){var a=[],c=new Qa;if(e.model.C.F.Zk){c.tag="div";c.aa("fm-row");c.text+=ab(this.Uxa());for(var d=0;d<this.da.Zd;d++)c.text+=ab(this.sca(d));a.push(ab(c));for(d=0;d<this.da.he;d++)c.text=ab(this.VS(d)),a.push(ab(c))}a=a.join("");this.element.innerHTML!=a&&this.html(a)}clear(){}}f.qra=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
class cb{constructor(){this.text=this.tag="";this.style={};this.attr={};this.classes=[];this.addClass=function(e){0>this.classes.indexOf(e)&&this.classes.push(e)};this.toHtml=function(){var e="<"+this.tag,l=[],h;for(h in this.style)l.push(h+":"+this.style[h]);0<l.length&&(e+=' style="'+l.join(";")+';"');0<this.classes.length&&(e+=' class="'+this.classes.join(" ")+'"');for(var f in this.attr)e+=" "+f+'="'+this.attr[f]+'"';return e+=">"+(this.text||"")+"</"+this.tag+">"};this.tag="div"}}
function ab(e,l=!0){var h=e.node.toHtml();l&&e.clear();null!=q.K.Y.W.ne.Lw&&(h=q.model.Tb.valid(h)?h:q.model.Tb.validate(h));return h}
class Qa{get node(){return this.nta}constructor(e="div"){this.nta=new cb;this.clear();this.tag=e}get tag(){return this.node.tag}set tag(e){this.node.tag=e}get text(){return this.node.text}set text(e){this.node.text=e}get style(){return this.node.style}set style(e){this.node.style=e}get attr(){return this.node.attr}set attr(e){this.node.attr=e}aa(e){this.node.addClass(e)}clear(){this.tag="div";this.text="";this.style={};this.attr={};this.node.classes=[]}}
(function(e){(function(l){(function(h){(function(f){class b extends f.nF{nb(){this.vA();var a=this.To();if(this.ac||this.da.cE(a.bottom)||this.da.bE(a.right)||!this.Cm.contains(a)){var c=a.clone();0!=this.da.Ji&&(c.right=Math.min(c.right,this.da.Ji));0!=this.da.dk&&(c.bottom=Math.min(c.bottom,this.da.dk));if(!this.ac||!this.vi.contains(c)||!this.da.yw&&(a.left>this.da.Zd&&a.left<=this.vi.left||a.top>this.da.he&&a.top<=this.vi.top))this.da.bE(a.right)&&(a.left=Math.max(a.left-1,this.da.Zd)),this.da.cE(a.bottom)&&
(a.top=Math.max(a.top-1,this.da.he)),this.sb.content.html(this.ZG(a)),this.ac=!1,this.Cm.set(a)}}lL(){this.ac?(this.sb.VC=this.da.scrollTop-this.da.qu(this.da.he,this.vi.top),this.sb.Gs=this.da.scrollLeft-this.da.ru(this.da.Zd,this.vi.left)):(this.sb.VC=-this.da.VM(this.Cm.top),this.sb.Gs=-this.da.BM(this.Cm.left))}uz(){var a=this.sb.WC;this.vA();a=this.sb.WC-a;var c=this.To(!0);if(!(this.ac&&this.da.yw&&this.vi.contains(c))){var d=this.Vea(),g=this.Uea(),k=this.To();this.vi=c;this.sb.content.html(this.ZG(c));
this.sb.VC=this.da.qu(this.vi.top,k.top)-d;this.sb.Gs=this.da.ru(this.vi.left,k.left)-g;this.ac||this.da.cE(this.Cm.bottom)||(this.sb.kO=this.da.ED(this.da.Lg,!1));this.ac||(this.da.bE(this.Cm.right)?(this.da.NI=a,this.sb.Gs+=this.da.NI):this.sb.iO=this.da.sD(this.da.Bf,!1));this.ac=!0}}To(a=!1){var c=new f.pF;c.top=this.da.wH(a);c.left=this.da.vH(a);c.bottom=this.da.Gz(a);c.right=this.da.rD(a);return c}vA(){this.sb.WC=Math.max(this.da.Eu,this.da.Fd-this.da.IE);this.sb.p0=Math.max(this.da.Du,this.da.Ed-
this.da.HE);this.sb.content.right=this.da.IE;this.sb.content.bottom=this.da.HE;this.sb.fDa=this.da.LD;this.sb.hNa=this.da.ND}ZN(a,c){for(var d=[],g=this.To(!0),k=g.top;k<g.bottom;k++)for(var m=0;m<a.length;m++){var n=a[m];this.P2(k,n)||(n=this.kz(k,n),delete n.attr.tabindex,d.push(ab(n)))}var p=this.Ul.content.element.querySelector(".fm-row-hidden");null==p&&(p=document.createElement("div"),p.classList.add("fm-row"),p.classList.add("fm-row-hidden"),this.Ul.content.element.appendChild(p),this.Ul.content.element.insertBefore(p,
this.Ul.content.element.childNodes[0]));p.innerHTML=e.vt(d.join(""));this.requestAnimationFrame(()=>{for(var t=0;t<p.children.length;t++)this.MO(p.children.item(t),!1,!0);c()})}dispose(){super.dispose();this.sb.dispose()}}f.Q7=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.nF{nb(){this.vA();var a=this.To();if(this.ac||this.da.cE(a.bottom)||!this.Cm.contains(a)){var c=a.clone();0!=this.da.dk&&(c.bottom=Math.min(c.bottom,this.da.dk));this.ac&&this.vi.contains(c)||(this.da.cE(a.bottom)&&(a.top=Math.max(a.top-1,this.da.he)),this.sb.content.html(this.ZG(a,e.model.C.F.Zk)),this.GR=!1,this.Cm.set(a))}}VS(a){this.cell=super.VS(a);this.cell.style["min-height"]=this.cell.style.height;delete this.cell.style.height;
delete this.cell.style["line-height"];return this.cell}lL(){this.sb.VC=this.ac?this.da.scrollTop-this.da.qu(this.da.he,this.vi.top):-this.da.VM(this.Cm.top)}To(a=!1){var c=new f.pF;c.top=this.da.wH(a);c.left=0;c.bottom=this.da.Gz(a);c.right=this.da.Zd;a&&c.bottom==this.da.dk&&c.bottom++;return c}uz(){var a=this.To(!0);if(!(this.ac&&this.da.yw&&this.vi.contains(a))){var c=this.Vea(),d=this.To();this.vi=a;this.sb.content.html(this.ZG(a,e.model.C.F.Zk));this.sb.VC=this.da.qu(this.vi.top,d.top)-c;this.ac||
this.da.cE(this.Cm.bottom)||(this.da.scrollTop=this.sb.kO=this.da.ED(this.da.Lg,!1));this.ac=!0}}$Ma(a){for(var c=0;c<a.Ka.length;c++){const d=this.sb.content.element.querySelectorAll(`[data-c="${c}"]`);for(let g=0;g<d.length;g++)d.item(g).style.minWidth=this.da.Dh(c)+"px"}}vA(){this.sb.p0=this.da.Du+this.da.HE;this.sb.content.bottom=0;this.sb.scrollTop=this.da.scrollTop}I1(a,c){a=this.da.CM(a,!0)-1;c=this.da.WM(c)-1;var d=this.zn(c,a);null==d&&(d=new h.W.ne,d.lb=c,d.kc=a);return d}}f.Wqa=b})(h.sheet||
(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.nF{constructor(a,c){super(a,c);this.Cn=new f.lY(this);this.qR=new f.eoa(this)}nb(){u.cancelIdleCallback(this.xK);this.vA();var a=this.To();if(this.ac||this.da.bE(a.right)||!this.Cm.contains(a)){var c=a.clone();0!=this.da.Ji&&(c.right=Math.min(c.right,this.da.Ji));this.ac&&this.vi.contains(c)||(this.da.bE(a.right)&&(a.left=Math.max(a.left-1,this.da.Zd)),this.Cn.Mx(),this.qR.Mx(),this.sb.content.html(this.ZG(a,!1,e.model.C.F.Zk)),
this.Cn.tA(),this.qR.tA(),this.ac=!1,this.Cm.set(a))}}lL(){this.sb.Gs=this.ac?this.da.scrollLeft-this.da.ru(this.da.Zd,this.vi.left):-this.da.BM(this.Cm.left)}To(a=!1){var c=new f.pF;c.top=0;c.left=this.da.vH(a);c.bottom=this.da.he;c.right=this.da.rD(a);a&&c.right==this.da.Ji&&c.right++;return c}uz(){var a=this.sb.WC;this.vA();a=this.sb.WC-a;var c=this.To(!0);if(!(this.ac&&this.da.yw&&this.vi.contains(c))){u.cancelIdleCallback(this.xK);var d=this.Uea(),g=this.To();this.vi=c;this.Cn.Mx();this.qR.Mx();
this.sb.content.html(this.ZG(c,!1,e.model.C.F.Zk));this.Cn.tA();this.qR.tA();this.sb.Gs=this.da.ru(this.vi.left,g.left)-d;this.ac||(this.da.bE(this.Cm.right)?this.sb.Gs+=a:this.sb.iO=this.da.sD(this.da.Bf,!1));this.ac=!0}}vA(){this.sb.WC=this.da.Eu+this.da.IE;this.sb.content.right=0}lva(){u.cancelIdleCallback(this.xK);this.xK=u.requestIdleCallback(()=>this.F$())}F$(){var a=this.da.bBa();if(0!=a.length){for(var c=[],d=0;d<this.da.he;d++)for(var g=0;g<a.length;g++){var k=a[g];this.P2(d,k)||(k=this.kz(d,
k),delete k.attr.tabindex,c.push(ab(k)))}var m=this.Ul.content.element.querySelector(".fm-row-hidden");null==m&&(m=document.createElement("div"),m.classList.add("fm-row"),m.classList.add("fm-row-hidden"),this.Ul.content.element.insertBefore(m,this.Ul.content.element.childNodes[0]));m.innerHTML=e.vt(c.join(""));this.requestAnimationFrame(()=>{for(var n=0;n<m.children.length;n++)this.MO(m.children.item(n),!1,!0);this.xK=u.requestIdleCallback(()=>this.F$())})}}ZN(a,c){for(var d=[],g=0;g<this.da.he;g++)for(var k=
0;k<a.length;k++){var m=a[k];this.P2(g,m)||(m=this.kz(g,m),delete m.attr.tabindex,d.push(ab(m)))}var n=this.Ul.content.element.querySelector(".fm-row-hidden");null==n&&(n=document.createElement("div"),n.classList.add("fm-row"),n.classList.add("fm-row-hidden"),this.Ul.content.element.insertBefore(n,this.Ul.content.element.childNodes[0]));n.innerHTML=e.vt(d.join(""));this.requestAnimationFrame(()=>{for(var p=0;p<n.children.length;p++)this.MO(n.children.item(p),!1,!0);c()})}I1(a,c){a=this.da.CM(a)-1;
c=this.da.WM(c,!0)-1;var d=this.zn(c,a);null==d&&(d=new h.W.ne,d.lb=c,d.kc=a);return d}EL(){u.cancelIdleCallback(this.xK)}dispose(){this.EL();super.dispose()}}f.D7=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Ga{constructor(){super("div","fm-grid-layout");this.Fja=1E3;this.Wy=[];this.aC=!1;this.c0=a=>this.xGa(a);this.Cia=a=>this.uIa(a);this.oja=a=>this.EIa(a);this.FL=0;this.cm();this.da=new f.Nh;this.yn=new f.pra(this.da);this.Fn=new f.ora(this);this.Ke();this.af(-1);this.preventScroll()}Ke(){this.C0();this.Vxa();this.rca();this.Txa();this.Exa();this.Sxa()}C0(){this.ws=new x.Tc;this.ws.G.display="block";this.ws.aa("fm-grid-title");this.ws.aa("fm-pivot-title");
this.ws.LW(!0);this.ws.G.V("position","relative");this.ws.$a();this.uC(this.ws)}Vxa(){this.vs=new f.qra(this.da);this.vs.aa("fm-sheet-headers");this.X(this.vs)}rca(){this.od=new f.D7(this.da,(a,c)=>this.ag(a,c));this.od.aa("fm-cols-sheet");this.od.sb.element.addEventListener("wheel",this.c0);this.od.N(h.uc.po,a=>this.Pk(a));u.Nd().im&&(this.od.sb.V("overflow","scroll"),this.od.sb.placeholder.V("z-index","1"),this.od.sb.N(bb,()=>this.vGa(),!0));this.X(this.od)}Txa(){this.Ce=new f.Wqa(this.da,(a,c)=>
this.ag(a,c));this.Ce.aa("fm-rows-sheet");this.Ce.sb.element.addEventListener("wheel",this.Cia);this.Ce.N(h.uc.po,a=>this.Pk(a));u.Nd().im&&(this.Ce.sb.V("overflow","scroll"),this.Ce.sb.placeholder.V("z-index","1"),this.Ce.sb.N(bb,()=>this.tIa(),!0));this.X(this.Ce)}Exa(){this.Uc=new f.Q7(this.da,(a,c)=>this.ag(a,c));this.Uc.aa("fm-data-sheet");this.Uc.sb.N(bb,()=>this.JGa(),!0);this.Uc.N(f.nF.RX,a=>this.tha(a));this.Uc.N(f.nF.X7,a=>this.tha(a));this.Uc.N(h.uc.po,a=>this.Pk(a));this.X(this.Uc)}Sxa(){this.js=
new f.qma(this);this.js.aa("fm-cols-resize");this.js.N(h.uc.RF,a=>this.sGa(a));this.X(this.js);this.rs=new f.Xqa(this);this.rs.aa("fm-rows-resize");this.rs.N(h.uc.SF,a=>this.sIa(a));this.X(this.rs);this.element.addEventListener("dblclick",this.oja)}nb(a=!1){this.da.jja();this.da.vS();this.Uc.width&&this.Uc.height||this.iH();this.da.setScale();this.da.NI=0;this.oba();e.sr(this.pZ);this.O0();this.Wy.push(this.requestAnimationFrame(()=>this.oZ(a)))}O0(){for(;0<this.Wy.length;)this.cancelAnimationFrame(this.Wy.pop())}oZ(a=
!1){this.Ya(l.Vi.ly,this,{smooth:!1});l.Sb.Jb.Ya(l.Vi.ly,this,{smooth:!1});const c=this.da.kS();this.ac&&this.Ce.$Ma(c);this.hH();this.aC&&(this.Q_()&&(this.da.kS(),this.od.SG(),this.Ce.SG(),this.hH()),this.aC=!1);this.fM();e.model.Za.R().Ha(new e.model.jd(e.model.Za.qp,{smooth:!1}));this.Wy.push(this.requestAnimationFrame(()=>{this.iH();this.Fn.nb()}));this.Wy.push(this.requestAnimationFrame(()=>{var d=!a&&this.P_();d?(this.od.SG(),this.Ce.SG(),this.Uc.SG(),this.nb(!0)):this.da.yva&&(e.sr(this.pZ),
this.pZ=e.ve(()=>this.uz(),this.Fja));!d&&e.model.C.F.sz&&this.lI()}));this.Wy.push(this.requestAnimationFrame(()=>{this.Ya(l.Vi.qp,this,{smooth:!1});l.Sb.Jb.Ya(l.Vi.qp,this,{smooth:!1})}))}hH(){this.T0();this.da.cX=this.ifa()?this.ws.zd(!0):0;this.od.nb();this.od.lL();this.Ce.nb();this.Ce.lL()}fM(){this.vs.nb();this.Fn.nb();this.js.nb();this.rs.nb();this.Uc.nb();this.Uc.lL()}T0(){this.ifa()?(this.ws.fb(e.model.C.F.gq),this.ws.show()):this.ws.$a()}ifa(){return!(e.ka(e.model.C.F.gq)||this instanceof
f.flat.Mv&&this.ul)}Q_(){this.od.$y(!0);this.Ce.$y(!0);return this.od.ZD||this.Ce.ZD}P_(){this.Uc.$y(!0);this.od.$y(!0);this.Ce.$y(!0);return this.Uc.ZD||this.od.ZD||this.Ce.ZD}uz(){this.O0();this.Wy.push(this.requestAnimationFrame(()=>this.Osa()))}Osa(){this.ZN(()=>{l.Sb.Jb.Ya(l.Vi.ly,this,{smooth:!0});this.od.uz();this.Ce.uz();this.Uc.uz();this.da.scrollLeft=this.Uc.sb.scrollLeft;this.da.scrollTop=this.Uc.sb.scrollTop;e.model.Za.R().Ha(new e.model.jd(e.model.Za.qp,{smooth:!0}));this.type==f.flat.Mv.TYPE&&
e.model.C.F.sz&&this.lI();this.da.yw||0!=this.da.scrollLeft||this.od.lva();this.Wy.push(this.requestAnimationFrame(()=>{l.Sb.Jb.Ya(l.Vi.qp,this,{smooth:!0})}))})}ZN(a){var c=this.da.cBa(this.da.To(!0));0==c.length?a():this.od.ZN(c,()=>{this.Uc.ZN(c,a)})}tha(a){a.type==f.nF.RX&&this.requestAnimationFrame(()=>{this.od.Wja();this.Ce.Wja()})}JGa(){this.L5(this.Uc.sb.scrollTop,this.Uc.sb.scrollLeft)}tIa(){this.L5(this.Ce.sb.scrollTop)}vGa(){this.L5(NaN,this.od.sb.scrollLeft)}uIa(a){if(this.coords.ND){var c=
a.wheelDeltaY||a.deltaY||a.wheelDelta||0;u.Nd().fj&&(c*=-1);isNaN(c)||0==c||(this.Uc.sb.scrollTop=this.da.scrollTop-c);a.preventDefault()}}xGa(a){if(this.coords.LD){var c=a.wheelDeltaX||a.deltaX||0;u.Nd().fj&&(c*=-1);0!=c&&(this.Uc.sb.scrollLeft=this.da.scrollLeft-c);a.preventDefault()}}preventScroll(){this.element.addEventListener("scroll",a=>{a.target.scrollTo(0,0)})}get slice(){return this.Pb}set slice(a){this.Pb=a}get type(){return this.Fg}get coords(){return this.da}iH(){this.width=this.coords.lq;
this.height=this.coords.Us;this.js.left=0;this.js.top=this.coords.we;this.js.right=0;this.js.height=this.coords.Vu();this.rs.left=0;this.rs.top=this.coords.we;this.rs.bottom=0;this.rs.width=this.coords.Rs()}updateLabels(){this.lO&&this.lO.updateLabels()}get Lr(){var a=[];if(0<this.lO.Lr.length)for(var c,d=0;d<this.Fn.Lr.length;d++)null!=this.Fn.Lr.fa(d).Xj&&(c=this.Fn.bH(this.Fn.Lr.fa(d).Aw),this.ACa(a,c.from,c.tm));return a}ACa(a,c,d){if(c&&d)for(var g=this.Fn.oAa(c,d);g<=this.Fn.IMa(c,d);g++)for(var k=
this.Fn.gAa(c,d);k<=this.Fn.wMa(c,d);k++){var m=this.ag(g,k,!0);null==m&&(m=new h.W.ne,m.lb=g,m.kc=k);a.push(m)}}ag(a,c,d=!1){var g=this.yn.getData(a,c,!d);return d&&null==g?this.yn.uBa(a,c):g}insertCell(a,c,d,g=!1){this.yn.setData(a,c,d,g)}resize(a,c){this.da.resize(a,c,!0)}set vD(a){this.yn.vD=a}$ia(a,c){this.da.Tp=a;this.da.$l=c}Zda(a){a!=this.da.he&&(this.da.Lg=a+(this.da.Lg-this.da.he));this.da.he=a}eAa(a){a!=this.da.Zd&&(this.da.Bf=a+(this.da.Bf-this.da.Zd));this.da.Bf<a&&(this.da.Bf=a);this.da.Zd=
a}wu(){this.aC=!0;this.yn.reset();this.da.reset();this.od.Dw();this.Ce.Dw();this.Uc.Dw();this.Fn.clear();this.Uc.sb.scrollTop=0;this.Uc.sb.scrollLeft=0;this.EL()}clearData(){this.yn.reset();this.od.Dw();this.Ce.Dw();this.Uc.Dw();this.da.vS();this.da.Xva()}TG(a){this.aC=!0;this.da.TG(a)}IC(a){this.aC=!0;this.da.IC(a)}V_(){this.aC=!0;this.da.V_()}DL(){this.aC=!0;this.da.DL()}select(a,c,d,g){this.Fn.mLa(new f.Dp(c,a),new f.Dp(g,d));this.element.focus({preventScroll:!0})}Ks(){this.Fn.clear();this.element.blur()}EL(){this.O0();
e.sr(this.pZ);e.sr(this.Wba);this.od.EL()}dispose(){this.yn.dispose();this.Fn.dispose();this.EL();this.od.sb.element&&this.od.sb.element.removeEventListener("wheel",this.c0);this.od.dispose();this.Ce.sb.element&&this.Ce.sb.element.removeEventListener("wheel",this.Cia);this.Ce.dispose();this.Uc.dispose();this.js.dispose();this.rs.dispose();this.element&&this.element.removeEventListener("dbclick",this.oja);super.dispose()}Pk(a){null!=a.cell&&this.Ha(a);this.qGa(a)}sq(a){this.Ha(a)}qGa(a){!a.cell||void 0==
this.zS||a.cell.lb==this.zS.y&&a.cell.kc==this.zS.x?this.FL++:(e.sr(this.Wba),this.FL=1);1==this.FL&&(this.Wba=e.ve(()=>{if(1==this.FL){if(a.cell){var c=new h.L8(a.cell,!0,a.element);this.Ha(c)}}else a.cell&&(c=new h.L8(a.cell,!1,a.element),this.Ha(c));this.FL=0;this.zS=void 0},300),a.cell&&(this.zS=new f.Dp(a.cell.kc,a.cell.lb)))}L5(a=NaN,c=NaN){var d=!1;isNaN(a)||a==this.coords.scrollTop||(this.coords.scrollTop=a,this.coords.Lg=this.coords.WM(a),this.Ce.sb.kO=a,d=!0);isNaN(c)||c==this.coords.scrollLeft||
(this.coords.scrollLeft=c,this.coords.Bf=this.coords.CM(c),this.od.sb.iO=c,d=!0);d&&this.nb()}sGa(a){this.Ha(a);this.da.kS();0<a.data.width?this.da.nO(a.data.kc,a.data.width,!1,!0):this.da.BKa(a.data.kc);this.fT()}sIa(a){this.Ha(a);this.da.kS();0<a.data.height?this.da.Rx(a.data.lb,a.data.height,!1,!0):this.da.DKa(a.data.lb);this.fT()}EIa(a){if(0!=e.model.C.F.Zk){var c=this.sg(),d=a.clientX-c.left;a=a.clientY-c.top;d>this.coords.Rs()&&a>this.coords.we+this.coords.Vu()||(a=this.coords.gU(a,this.ac),
d=this.coords.LT(d,this.ac),-1!=a||isNaN(d)||this.js.Ya(h.uc.RF,this,{width:-1,kc:d}),-1!=d||isNaN(a)||(this.rs.Ya(h.uc.SF,this,{height:-1,lb:a}),this.Ya(h.uc.Kqa,this,{height:-1,lb:a})))}}fT(){this.od.Dw();this.Ce.Dw();this.Uc.Dw();this.oba();this.nb()}oba(){if(0<this.coords.scrollLeft&&0<this.coords.dAa){var a=Math.max(0,this.coords.Eu-this.coords.Fd+this.coords.IE);this.coords.scrollLeft=a;this.coords.Bf=this.coords.CM(a);this.Uc.sb.iO=a;this.od.sb.iO=a}0<this.coords.scrollTop&&0<this.coords.cAa&&
(a=Math.max(0,this.coords.Du-this.coords.Ed+this.coords.HE),this.coords.scrollTop=a,this.coords.Lg=this.coords.WM(a),this.Uc.sb.kO=a,this.Ce.sb.kO=a)}Tu(a){var c=x.Ga.Yb(a);a=c.closest(".fm-cell");return null!=a?(c=parseInt(a.attr("data-r")),a=parseInt(a.attr("data-c")),this.ag(c,a,!0)):null!=c.closest(".fm-page-filter")&&null!=c.closest(".fm-filter-header")?(a=c.closest(".fm-filter-header"),a=parseInt(a.attr("data-h")),a=this.slice.qb.fa(a),c=new h.W.ne,c.label=a.caption,c.vl=!0,c.hierarchy=a,c):
null}jea(a,c){c=this.coords.gU(c-this.offset().top,this.ac);a=this.coords.LT(a-this.offset().left,this.ac);let d=this.ag(c,a,!0);e.v(d)&&(d=new h.W.ne,d.lb=c,d.kc=a);return d}get ac(){return this.Uc.ac}Kr(a){a=Math.min(a,this.coords.dk);this.Uc.sb.scrollTop=this.coords.ED(a)}ot(a){a=Math.min(a,this.coords.Ji);this.Uc.sb.scrollLeft=this.coords.sD(a)}cLa(){this.Uc.sb.scrollTop+=this.coords.Ed}fLa(){this.Uc.sb.scrollTop-=this.coords.Ed}eLa(){this.Uc.sb.scrollLeft+=this.coords.Fd}dLa(){this.Uc.sb.scrollLeft-=
this.coords.Fd}get J(){return this.yn}get lO(){return this.Fn}v5(a,c){this.coords.nO(a,c,!1,!0)}x5(a,c){this.coords.Rx(a,c,!1,!0)}lI(){this.Ls({en:(a,c,d,g)=>this.en(a,c,d,g),dn:(a,c,d,g)=>this.dn(a,c,d,g),om:(a,c,d,g)=>this.om(a,c,d,g)})}tca(a){var c=new x.Ga("span");c.aa("fm-helper");c.aa("fm-draggable");c.aa("fm-header-helper");c.V("position","absolute");c.V("z-index",100);c.text(a.element.firstChild.textContent);a=new x.Ga("i","fm-remove-icon");c.X(a);return c}dn(a,c,d,g){a&&a.ab("fm-drag-remove",
!1);c&&c.ab("fm-drag-remove",!1);a=x.Ga.Yb(g.target);a.Sc("fm-header-drop-indicator")||this.VE(a,a)}om(a,c){this.sm();a&&a.ab("fm-drag-remove",!0);c&&c.ab("fm-drag-remove",!0)}en(){}VE(){}Jw(){return this.xd?this.xd:new x.Ga("div","fm-header-drop-indicator")}sm(){this.xd&&(this.xd.Qg(!0),this.xd=null)}OV(a){e.sr(this.WEa);var c=this.slice.Yc.uh(a.bh);if(!e.v(c)){var d=this.Oxa(c,a.value);if(c.filter.Wu||null!=d)c.filter.Wu&&a.value==c.filter.query.value||(this.WEa=e.ve(()=>{e.model.Wa.R().Il(c.A,
d);c.filter.Rfa=!0},300))}}Oxa(a,c){var d={};if(e.model.hb.lB.ZT(a)==e.u.i.tb.jb){a=parseFloat(c);if(isNaN(a))return null;d.query={equal:a}}else{if(e.ka(c))return null;d.query={contain:c}}return d}}f.e7=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.$O{constructor(a){super(a,null);this.da=a;this.vb=[];this.aa("fm-filters");this.N(h.uc.po,c=>this.Pk(c));this.N("keydown",c=>this.oE(c));this.Cn=new f.lY(this)}nb(){for(var a=[],c=new Qa,d=0;d<this.da.he;d++){c.tag="div";c.aa("fm-row");for(var g=0;g<this.da.Zd;g++)if(e.model.C.F.st){var k=d-this.da.he+this.vb.length;c.text+=ab(this.SS(d,g,0<=k?this.vb[k]:null))}else c.text+=ab(this.kz(d,g));a.push(ab(c))}a=a.join("");this.element.innerHTML!=
a&&(this.Cn.Mx(),this.html(a),this.Cn.tA())}SS(a,c,d){var g=this.vb.indexOf(d);this.cell.clear();this.cell.tag="div";this.cell.aa(h.W.ya.Ne);this.cell.aa(h.W.ya.qk);this.cell.aa(h.W.ya.Nv);d?(this.cell.aa(h.W.ya.Sf+g),this.cell.text=e.P.Ro(d.caption,!0,!0).replace(/\n/g,"<br>"),d.vN&&(e.model.C.F.cn?(this.Sz(this.cell,d),this.cell.aa(h.W.ya.SJ),this.cell.attr["data-h-name"]=d.A,this.cell.text+=this.Cn.z0(d)):e.model.C.F.Vx&&(this.cell.attr.title=e.model.B.j.EB,this.Sz(this.cell,d)))):this.cell.aa(h.W.ya.CX);
this.Via(this.cell,a,c);this.cell.attr["data-c"]=c;this.cell.attr["data-r"]=a;0<=g&&(this.cell.attr["data-h"]=g,this.cell.attr.tabindex="0");return this.cell}Sz(a,c){a.aa(h.W.ya.Kq);c.filter.Fh&&(a.aa(h.W.ya.YX),a.text+=this.No(h.W.ya.EJ,e.model.B.j.UY));a.text+=this.No(h.W.ya.KJ)}xA(a){for(var c=this.vb.length=0;c<a.length;c++){var d=a.fa(c);0==d.We&&this.vb.push(d)}}Pk(a){if(!e.model.C.F.cn){var c=a.element;c.Sc(h.W.ya.Kq)&&(c=parseInt(c.attr("data-h")),isNaN(c)||this.Ha(new h.IP(this.vb[c],a.cell)))}}oE(a){if(!e.model.C.F.cn&&
(32==a.keyCode||13==a.keyCode)){var c=a.target;a=parseInt(c.getAttribute("data-r"));c=parseInt(c.getAttribute("data-c"));isNaN(a)||isNaN(c)||this.Ha(new h.JP(a,c))}}clear(){this.vb.length=0;this.nb()}}f.a$=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.$O{constructor(a){super(a,null);this.rowIndex=0;this.da=a;this.vb=[];this.aa("fm-filters");this.$a();this.N(h.uc.po,c=>this.Pk(c));this.N("keydown",c=>this.oE(c));this.Cn=new f.lY(this)}nb(){this.Cn.Mx();this.Kx();if(e.model.C.F.st){var a=new Qa("div");a.aa("fm-row");a.style.height=this.da.$d(this.rowIndex)+"px";for(var c=0;c<this.vb.length;c++)a.text+=ab(this.SS(this.rowIndex,c,this.vb[c]));this.html(ab(a));this.Cn.tA();0==this.vb.length?
this.$a():this.show()}else this.$a()}SS(a,c,d){this.cell.clear();this.cell.tag="div";this.cell.aa(h.W.ya.Ne);this.cell.aa(h.W.ya.qk);d&&(this.cell.text=e.P.Ro(d.caption,!0,!0).replace(/\n/g,"<br>"),d.vN&&(e.model.C.F.cn?(this.Sz(this.cell,d),this.cell.aa(h.W.ya.SJ),this.cell.attr["data-h-name"]=d.A,this.cell.text+=this.Cn.z0(d)):e.model.C.F.Vx&&(this.cell.attr.title=e.model.B.j.EB,this.Sz(this.cell,d))));this.cell.style["min-height"]=this.da.$d(a)+"px";this.cell.style["max-height"]=this.da.$d(a)+
"px";this.cell.attr["data-r"]=a;this.cell.attr["data-c"]=this.da.Bf+c;this.cell.attr["data-h"]=c;this.cell.attr.tabindex="0";return this.cell}Sz(a,c){a.aa(h.W.ya.Kq);c.filter.Fh&&(a.aa(h.W.ya.YX),a.text+=this.No(h.W.ya.EJ,e.model.B.j.UY));a.text+=this.No(h.W.ya.KJ)}xA(a){for(var c=this.vb.length=0;c<a.length;c++){var d=a.fa(c);0==d.We&&this.vb.push(d)}0==this.vb.length?this.$a():this.show()}Pk(a){if(!e.model.C.F.cn&&(a=a.element,a.Sc(h.W.ya.Kq))){var c=parseInt(a.attr("data-h"));isNaN(c)||this.Ha(new h.IP(this.vb[c],
null,a))}}oE(a){if(!e.model.C.F.cn&&(32==a.keyCode||13==a.keyCode)){var c=a.target;a=parseInt(c.getAttribute("data-r"));c=parseInt(c.getAttribute("data-c"));isNaN(a)||isNaN(c)||this.Ha(new h.JP(a,c))}}clear(){this.vb.length=0;this.nb()}}f.rma=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Ga{constructor(){super();this.vb=[];this.aa("fm-ui-hgroup");this.aa("fm-filters");this.$a()}nb(){this.Kx();if(e.model.C.F.Vx&&e.model.C.F.MI){var c=[];for(let d=0;d<this.vb.length;d++){const g=this.vb[d];if(!g.vN){c.push(d);continue}const k=new a(g,!0);k.G.attr("data-h",d);k.N("click",()=>this.Pk(k));k.N("keydown",m=>this.oE(m,k));this.X(k.G)}0==this.vb.length||c.length==this.vb.length?this.$a():this.show()}else this.$a()}xA(c){for(var d=
this.vb.length=0;d<c.length;d++){var g=c.fa(d);0==g.We&&this.vb.push(g)}this.nb()}Pk(c){this.Ha(new h.IP(c.hierarchy,null,c.G))}oE(c,d){e.model.C.F.cn||32!=c.keyCode&&13!=c.keyCode||this.Ha(new h.JP(0,0,d))}clear(){this.vb.length=0;this.nb()}get kb(){return 0==this.vb.length}}f.Bqa=b;class a extends x.Qd{constructor(c,d=!1){super();this.oaa=!1;this.G.Vd();this.Ac=c;this.oaa=d;this.fb(this.Ac.caption);this.Hd("fm-ui-btn");this.aa(h.W.ya.Kq);this.aa(h.W.ya.qk);this.G.attr("title",e.model.B.j.EB);this.aaa=
new x.Ga("i",h.W.ya.iY);this.aaa.aa(h.W.ya.KJ);this.G.append(this.aaa);this.baa=new x.Ga("i",h.W.ya.iY);this.baa.aa(h.W.ya.EJ);this.G.append(this.baa);this.NU=this.Ac.filter.Fh;this.oaa&&(this.Tj=new x.Tc,this.Tj.fb(this.DBa()),this.Tj.aa("fm-filter-desc"),this.X(this.Tj))}get hierarchy(){return this.Ac}get NU(){return this.G.Sc("fm-filtered")}set NU(c){this.G.ab("fm-filtered",c)}DBa(){var c=e.model.B.j.FJ;this.hierarchy.filter.Fh&&(c=1==this.hierarchy.eb.length?this.hierarchy.za(this.hierarchy.eb[0]).caption:
e.model.B.j.LJ);return c}}f.MOa=a})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.e7{constructor(){super();this.Fg=b.TYPE;this.aa("fm-compact-view")}Ke(){super.Ke();this.Rxa();this.yca();this.Cxa()}Cxa(){this.ph=new f.rma(this.da);this.ph.aa("fm-cols-filter");this.ph.N(h.uc.Kv,a=>this.sq(a));this.ph.N(h.uc.TJ,a=>this.OV(a));this.ph.N(h.uc.Gt,a=>this.Ha(a));this.X(this.ph)}yca(){this.oe=new f.a$(this.da);this.oe.aa("fm-rows-filter");this.oe.N(h.uc.Kv,a=>this.sq(a));this.oe.N(h.uc.po,a=>this.Pk(a));this.oe.N(h.uc.TJ,
a=>this.OV(a));this.oe.N(h.uc.Gt,a=>this.Ha(a));this.X(this.oe)}Rxa(){this.Yi=new f.Bqa;this.Yi.aa("fm-page-filter");this.Yi.N(h.uc.Kv,a=>this.sq(a));this.Yi.N(h.uc.Gt,a=>this.Ha(a));this.X(this.Yi)}hH(){this.da.s1=this.Yi.kb?0:this.Yi.element.offsetHeight;super.hH();this.oe.nb()}fM(){super.fM();this.ph.nb()}Q_(){this.oe.$y(!0);return super.Q_()||this.oe.ZD}P_(){this.oe.$y(!0);return super.P_()||this.oe.ZD}iH(){super.iH();this.Yi.kb||(this.Yi.top=this.da.cX,this.Yi.left=0,this.Yi.right=0);this.vs.top=
this.da.we;this.vs.left=0;this.vs.width=this.da.zq;this.vs.height=this.da.jr;this.oe.left=this.da.sD(0,!0);this.oe.top=this.da.we+this.da.ED(0,!0);this.ph.top=this.da.we+this.da.ED(this.ph.rowIndex,!0);this.ph.left=this.da.zq;this.ph.right=Math.max(0,this.da.lq-this.da.hm(this.da.Ji,this.ac));this.js.top=this.dKa()?this.da.we:this.ph.zd();this.rs.top=this.da.we;this.od.left=this.da.zq;this.od.top=this.da.we;this.od.width=this.da.Fd;this.od.height=this.da.Us-this.da.we;this.Ce.left=0;this.Ce.top=this.da.jr+
this.da.we;this.Ce.width=this.da.lq;this.Ce.height=this.da.Ed;this.Uc.left=this.da.zq-parseInt(this.Uc.V("border-left-width"));this.Uc.top=this.da.jr+this.da.we-parseInt(this.Uc.V("border-top-width"));this.Uc.width=this.da.Fd;this.Uc.height=this.da.Ed}dKa(){return!(this.ph.visible&&!e.model.C.F.Zk)}fT(){super.fT();this.oe.nb();this.ph.nb()}lI(){super.lI();for(var a={Mo:g=>this.tca(g),rv:g=>this.rv(g)},c=this.ph.find(".fm-header:not(.fm-empty)",!0),d=0;d<c.length;d++)c[d].draggable(a);c=this.oe.find(".fm-header:not(.fm-empty)",
!0);for(d=0;d<c.length;d++)c[d].draggable(a);c=this.Yi.find(".fm-header:not(.fm-empty)",!0);for(d=0;d<c.length;d++)c[d].draggable(a)}rv(a){if(a.Sc("fm-drag-remove")){var c=parseInt(a.attr("data-h"));const d=a.closest(".fm-filters");a=this.slice.clone();d==this.ph?(c=a.Fb.fa(c).A,a.Ka.removeItem(c)):d==this.oe?(c=a.wb.fa(c).A,a.rows.removeItem(c)):d==this.Yi&&a.qb.s5(c);e.model.Wa.R().ge(a)}}en(a,c,d){d=this.Bea(d);if(null==d)this.sm();else{var g=this.zBa(d,this.xd);this.sm();if(!isNaN(g)){var k=parseInt(a.attr("data-h")),
m=a.closest(".fm-filters");c=this.slice.clone();if(m==this.ph){var n=c.Fb.fa(k);k=c.Ka.indexOf(n.A)}else m==this.oe?(n=c.wb.fa(k),k=c.rows.indexOf(n.A)):m==this.Yi&&(n=c.qb.fa(k),k=c.qb.indexOf(n.A));null!=n&&(d==m&&k<g&&g--,d!=m||k!=g)&&(a.$a(),d==m?d==this.ph?(g=0<c.Ka.length&&c.Ka.aU().We&&g>=c.Ka.length-1?c.Ka.length-2:g,c.Ka.R3(k,g)):d==this.oe?(g=0<c.rows.length&&c.rows.aU().We&&g>=c.rows.length-1?c.rows.length-2:g,c.rows.R3(k,g)):d==this.Yi&&c.qb.R3(k,g):(c.Ka.removeItem(n.A),c.rows.removeItem(n.A),
c.qb.removeItem(n.A),d==this.ph?(g=0<c.Ka.length&&c.Ka.aU().We&&g>=c.Ka.length?c.Ka.length-1:g,c.Ka.hL(n.A,n,g)):d==this.oe?(g=0<c.rows.length&&c.rows.aU().We&&g>=c.rows.length?c.rows.length-1:g,c.rows.hL(n.A,n,g)):d==this.Yi&&c.qb.hL(n.A,n,g)),1<c.Ka.length&&c.Ka.fa(0).We&&(a=c.Ka.fa(0),c.Ka.splice(0,1),c.Ka.hL(a.A,a,c.Ka.length)),e.model.Wa.R().ge(c))}}}zBa(a,c){return a==this.ph?this.gBa(c):a==this.oe?this.Rea(c):a==this.Yi?this.gCa(c):NaN}gBa(a){if(null!=a){a=a.index();if(a>this.slice.Ka.length)return this.slice.Ka.length;
var c=this.slice.Ka.indexOf("[Measures]");0<=c&&c<=a&&0!=a&&a++;return a}return NaN}Rea(a){if(null!=a){a=a.parent.Sc("fm-filters")?this.slice.rows.length:(a=a.parent.find(".fm-header"))?parseInt(a.attr("data-h")):0;if(a>this.slice.rows.length)return this.slice.rows.length;var c=this.slice.rows.indexOf("[Measures]");0<=c&&c<=a&&0!=a&&a++;return a}return NaN}gCa(a){return null!=a?(a=a.index(),a>this.slice.qb.length?this.slice.qb.length:a):NaN}Bea(a){var c=a.closest(".fm-filters");if(null==c){var d=
a.closest(".fm-cell");null!=d?(d.attr("data-r"),a=parseInt(d.attr("data-c")),this.jEa(a)?c=this.ph:this.kEa(a)&&(c=this.oe)):(a=a.closest(".fm-resize-handles"),null!=a&&(a.Sc("fm-cols-resize")?c=this.ph:a.Sc("fm-rows-resize")&&(c=this.oe)))}return c}jEa(a){return a>=this.coords.Zd}kEa(a){return a<=this.coords.Zd}VE(a,c){a=this.Bea(a);if(null==a)this.sm();else{var d=c.closest(".fm-header:not(.fm-empty)");null!=c.closest(".fm-filters")&&null!=d?(this.xd=this.Jw(),a==this.Yi?d.before(this.xd):c.before(this.xd)):
(this.xd=this.Jw(),a==this.ph?this.ph.find(".fm-row").append(this.xd):a==this.oe?(a=this.oe?this.oe.find(".fm-header"):null,null!=c.closest(".fm-filters")?a&&a.before(this.xd):this.Fg==f.GC.kP.TYPE?a&&a.parent.append(this.xd):this.oe.append(this.xd)):a==this.Yi&&this.Yi.append(this.xd))}}wu(){super.wu();this.ph.clear();this.Yi.clear();this.oe.clear()}get ES(){return this.ph}get Aia(){return this.oe}get Dha(){return this.Yi}dispose(){this.ph.Vd();this.ph.dispose();this.oe.Vd();this.oe.dispose();this.Yi.Vd();
super.dispose()}}b.TYPE="compact";f.lP=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Ga{constructor(a){super("div","fm-resize-handles");this.NK=c=>this.Ix(c);this.bu=c=>this.Cr(c);this.hC=c=>this.Jx(c);this.m_=c=>this.T4(c);this.ew=new Qa;this.Ae=a;this.da=a.coords;this.element.addEventListener("mousedown",this.NK);this.element.addEventListener("touchstart",this.NK);e.Tn.addEventListener("mouseup",this.bu);e.Tn.addEventListener("touchend",this.bu);e.Tn.addEventListener("touchcancel",this.bu);this.gw=new x.Ga("div",
"fm-indicator");this.gw.$a();this.X(this.gw);this.sC=new x.Ga("div","fm-wrapper");this.sC.attr("title",e.model.B.j.i$);this.X(this.sC);u.Nd().im&&this.aa("fm-pointer-events-none");this.Gg("hidden","true")}nb(){this.sC.attr("title",e.model.B.j.i$)}Bu(a){this.ew.tag="div";this.ew.aa("fm-handle");this.ew.attr["data-idx"]=a;this.ew.attr.title=e.model.B.j.Fra;return this.ew}Ix(a){if(a.target.classList.contains("fm-handle")){this.aw=a.target;this.aw.classList.add("fm-active");this.LB=this.sg();e.Tn.addEventListener("mousemove",
this.hC);e.Tn.addEventListener("touchmove",this.m_);a.stopImmediatePropagation();var c=parseInt(this.aw.getAttribute("data-idx"));this.CO(c);a.preventDefault();a.stopImmediatePropagation()}}CO(){}Cr(){e.Tn.removeEventListener("mousemove",this.hC);e.Tn.removeEventListener("touchmove",this.m_);if(this.aw){this.aw.classList.remove("fm-active");var a=parseInt(this.aw.getAttribute("data-idx"));this.DO(this.aw,a);this.aw=null;this.gw.$a()}}DO(){}T4(a){a=a.touches[0];this.$V(this.aw,a.clientX-this.LB.left,
a.clientY-this.LB.top);this.gw.show()}Jx(a){var c=a.clientX-this.LB.left,d=a.clientY-this.LB.top;0>c||0>d||c>this.da.lq||d>this.da.Us?this.Cr(a):(this.$V(this.aw,c,d),this.gw.show())}$V(){}dispose(){this.element&&this.element.removeEventListener("mousedown",this.NK);e.Tn.removeEventListener("mousemove",this.hC);e.Tn.removeEventListener("mouseup",this.bu);e.Tn.removeEventListener("touchmove",this.m_);e.Tn.removeEventListener("touchend",this.bu);e.Tn.removeEventListener("touchcancel",this.bu);super.dispose()}}
f.Y9=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.Y9{nb(){super.nb();this.sC.Kx();let a="";for(var c=0;c<this.da.he;c++)a+=ab(this.Bu(c),!0);var d=this.da.Lg;for(c=Math.min(this.da.dk,this.da.Gz());d<c;d++)a+=ab(this.Bu(d),!0);this.sC.html(a)}Bu(a){super.Bu(a);this.ew.style.top=this.da.Vo(a,this.Ae.ac,!1)+this.da.$d(a)+"px";return this.ew}CO(a){this.j_=this.da.Vo(a,this.Ae.ac,!1)}DO(a,c){a=Math.round(a.offsetTop+a.clientHeight/2-this.j_);a=this.da.uM(a,f.Nh.qF,f.Nh.Wr);this.Ya(h.uc.SF,
this,{height:a,lb:c})}$V(a,c,d){d=this.da.uM(d,this.j_+f.Nh.qF,this.j_+f.Nh.Wr);a.style.top=d+"px";this.gw.top=d;this.gw.width=this.da.nu}}f.Xqa=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.Y9{nb(){super.nb();this.sC.Kx();let a="";for(var c=0;c<this.da.Zd;c++)a+=ab(this.Bu(c),!0);c=Math.min(this.da.Ji,this.da.rD());for(var d=this.da.Bf;d<c;d++)a+=ab(this.Bu(d),!0);this.sC.html(a)}Bu(a){super.Bu(a);this.ew.style.left=this.da.hm(a,this.Ae.ac)+this.da.Dh(a)+"px";return this.ew}CO(a){this.i_=this.da.hm(a,this.Ae.ac)}DO(a,c){a=Math.round(a.offsetLeft+a.clientWidth/2-this.i_);a=this.da.uM(a,f.Nh.rF,f.Nh.Jq);this.Ya(h.uc.RF,
this,{width:a,kc:c})}$V(a,c){c=this.da.uM(c,this.i_+f.Nh.rF,this.i_+f.Nh.Jq);a.style.left=c+"px";this.gw.left=c;this.gw.height=this.da.Xy}}f.qma=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a){this.maa=!1;this.Dm=[];this.Dn=[];this.sda=()=>this.UGa();this.Aca=()=>this.TGa();this.Vda=()=>this.VGa();this.Ae=a;this.da=a.coords;this.Ae.N(h.uc.po,c=>this.mE(c))}nb(){this.eda(this.Qh)}set Gia(a){this.Naa=a}cja(a=!0){this.maa=a}Qja(){this.B5();null!=this.Qh&&(this.Qh.Qg(!0),this.Qh=null)}mE(a){this.stop();this.LDa(a.cell.kc)&&a.cell.li&&this.oda(a.cell)}LDa(a){return this.maa||-1<this.Dm.indexOf(a)}clear(){this.Dm=[];this.Dn=
[];this.sd=null}oda(a){!e.model.C.F.gD||null!=this.sd&&this.sd.lb==a.lb&&this.sd.kc==a.kc||(this.sd=a,this.Gya(),this.Ae.lO.nb())}jua(a){this.sd.label=a+"\n"}get Ifa(){return null!=this.sd}stop(){e.model.C.F.gD&&(this.Qja(),this.sd=null)}save(a){if((e.model.C.F.gD||this.Ifa)&&null!=this.sd){a=a.replace(/\n/gi,"<br>");if(this.sd.measure.type==e.u.i.Ra.Ua)this.sd.value=Date.parse(a);else if(this.sd.measure.type!=e.u.i.Ra.wc){a=a.replace(/,/gi,".");a=a.replace(/[^\d|\.|\-]/gi,"");this.sd.value=parseFloat(a);
const c=this.sd.measure.Eh(this.sd.measure.A,this.sd.measure.$).clone();this.sd.label=u.bc.format(this.sd.value,c)}else this.sd.label=a;null!=this.Naa&&this.Naa(this.sd.lb,this.sd.kc,this.sd.measure.type!=e.u.i.Ra.wc?this.sd.value:a);null!=this.sd&&this.Ae.J.Wva(this.sd.lb,this.sd.kc)}}Gya(){null!=this.sd&&this.sd.li&&(null!=this.Qh&&(this.Qh.Vd(),this.Qh.Qg(),this.Qh=null),this.sd.lb<this.da.wH()||this.sd.kc<this.da.vH()||this.sd.lb>this.da.Gz()||this.sd.kc>this.da.rD()||(this.Qh=new x.Zv,this.Qh.aa("fm-editing-cell"),
this.Ae.uC(this.Qh),this.eda(this.Qh),this.sd.label=this.sd.label.replace(/<br\s*[\/]?>/gi,"\n"),this.Qh.ik(this.ABa(this.sd)),this.Qh.N(x.Zv.fB,this.sda),this.Qh.N(x.Zv.OX,this.Aca),this.Qh.N(x.Zv.PX,this.Vda),this.Qh.G.focus(),this.Qh.selectAll(),this.Qh.show()))}ABa(a){return a.measure.type==e.u.i.Ra.wc?a.label:isNaN(a.value)?"":a.measure.type==e.u.i.Ra.Ua?(new Date(a.value)).toISOString().substr(0,10):a.value.toString()}eda(a){if(a){this.sd.lb<this.da.wH()||this.sd.kc<this.da.vH()||this.sd.lb>
this.da.Gz()||this.sd.kc>this.da.rD()?a.$a():a.show();var c=Math.min(this.da.Dh(this.sd.kc),this.da.nu-this.da.hm(this.sd.kc,this.Ae.ac));a.G.V("left",this.da.hm(this.sd.kc,this.Ae.ac)-1+"px");a.G.V("top",this.da.Vo(this.sd.lb,this.Ae.ac)-1+"px");a.Yk(c+1);a.Mr(this.da.$d(this.sd.lb)+1)}}UGa(){this.nia();this.B5();var a=this.Ae.ag(this.sd.lb+1,this.sd.kc);this.stop();null!=a?(a.lb>this.da.Gz()-3&&this.Ae.Kr(this.da.Lg+1),this.oda(a)):this.stop()}VGa(){this.nia();this.B5();this.stop()}TGa(){this.Ifa&&
this.jua(this.Qh.bj());this.Qh.ik(this.sd.label)}B5(){null!=this.Qh&&this.save(this.Qh.bj());null!=this.sd&&(this.Ae.clearData(),this.Ae.nb())}nia(){this.Qh.rb(x.Zv.fB,this.sda);this.Qh.rb(x.Zv.OX,this.Aca);this.Qh.rb(x.Zv.PX,this.Vda)}}f.ana=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a){this.focused=null;this.eE=!1;this.target=a;this.target.N("keyup",c=>this.nha(c));this.target.N("paste",c=>this.nha(c));this.target.N("focusout",()=>this.i4())}z0(a){return"<div><input type='text' class='fm-ui-text-input' value='"+((a.filter.Wu?a.filter.query.value:"")+"'></div>")}Mx(){if(e.model.C.F.cn&&(this.eE=!0,document.activeElement&&"input"==document.activeElement.tagName.toLowerCase())){var a=document.activeElement,
c=a.parentElement.parentElement.getAttribute("data-h-name");e.ka(c)?this.focused=null:this.focused={bh:c,selectionStart:a.selectionStart,selectionEnd:a.selectionEnd,value:a.value}}}tA(){if(e.model.C.F.cn){if(null!=this.focused){var a=this.target.element.querySelector("."+h.W.ya.SJ+'[data-h-name="'+this.focused.bh+'"] input');a&&(a.focus(),a.value=this.focused.value,a.selectionStart=this.focused.selectionStart,a.selectionEnd=this.focused.selectionEnd)}this.eE=!1}}i4(){this.eE||(this.focused=null)}nha(a){a=
a.target;var c=a.parentElement.parentElement.getAttribute("data-h-name");this.target.Ha(new h.Koa(c,a.value))}}f.lY=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a){this.focused=null;this.eE=!1;this.target=a;this.target.N("focusin",()=>this.Mx());this.target.N("focusout",()=>this.i4())}Mx(){if(!e.model.C.F.cn&&(this.eE=!0,document.activeElement&&"columnheader"==document.activeElement.getAttribute("role"))){var a=document.activeElement;const c=a.getAttribute("data-c");this.focused=(a=a.getAttribute("data-r"))||c?{DQa:c,mt:a}:null}}tA(){if(!e.model.C.F.cn){if(null!=this.focused){const a=
document.querySelector("."+h.W.ya.Kq+`[data-c="${this.focused.col}"][data-r="${this.focused.row}"]`);a&&a.focus()}this.eE=!1}}i4(){this.eE||(this.focused=null)}}f.eoa=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.lP{constructor(){super();this.Fg=a.TYPE;this.Hd("fm-compact-view");this.aa("fm-classic-view")}yca(){this.oe=new b.oma(this.da);this.oe.aa("fm-rows-filter");this.oe.N(h.uc.Kv,c=>this.sq(c));this.oe.N(h.uc.po,c=>this.Pk(c));this.oe.N(h.uc.TJ,c=>this.OV(c));this.oe.N(h.uc.Gt,c=>this.Ha(c));this.X(this.oe)}hH(){this.ADa?super.hH():(e.Va(e.model.B.j.Jpa,e.model.B.j.mn,e.ob.mn),e.model.Wa.R().Cq({gridType:h.wf.YA}),e.model.Wa.R().refresh())}get ADa(){return 0==
e.model.C.F.Fba?!0:this.da.Fd>this.da.LFa}Rea(c){var d=this.slice;if(null!=c){c=c.index();if(c>d.rows.length)return d.rows.length;d=d.rows.indexOf("[Measures]");0<=d&&d<=c&&0!=c&&c++;return c}return NaN}}a.TYPE="classic";b.kP=a})(f.GC||(f.GC={}))})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.a${constructor(c){super(c)}nb(){for(var c=[],d=new Qa,g=0;g<this.da.he;g++){d.tag="div";d.aa("fm-row");for(var k=0;k<this.da.Zd;k++)d.text=e.model.C.F.st?d.text+ab(this.SS(g,k,g==this.da.he-1?this.vb[k]:null)):d.text+ab(this.kz(g,k));c.push(ab(d))}this.Cn.Mx();this.html(c.join(""));this.Cn.tA()}}b.oma=a})(f.GC||(f.GC={}))})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.e7{constructor(){super();this.sz=this.$B=!1;this.Fg=a.TYPE;this.aa("fm-flat-view");this.U$=new f.ana(this)}rca(){this.od=new b.coa(this.da,(c,d)=>this.ag(c,d));this.od.aa("fm-cols-sheet");this.od.sb.element.addEventListener("wheel",this.c0);this.od.sb.N(bb,()=>this.wGa());this.od.N(h.uc.po,c=>this.Pk(c));this.od.N(h.uc.Kv,c=>this.sq(c));this.od.N(h.uc.TJ,c=>this.OV(c));this.od.N(h.uc.Gt,c=>this.Ha(c));this.X(this.od)}wGa(){this.Uc.sb.scrollLeft=
this.od.sb.scrollLeft}Pk(c){this.sz||super.Pk(c)}sq(c){this.sz||super.sq(c)}iH(){super.iH();this.vs.top=this.da.we;this.vs.left=0;this.vs.width=this.da.zq;this.vs.height=this.da.jr;this.od.left=this.da.zq;this.od.top=this.da.we;this.od.width=this.da.Fd;this.od.height=this.da.Us-this.da.we;this.Ce.left=0;this.Ce.top=this.da.jr+this.da.we;this.Ce.width=this.da.lq;this.Ce.height=this.da.Ed;this.Uc.left=this.da.zq-parseInt(this.Uc.V("border-left-width"));this.Uc.top=this.da.jr+this.da.we-parseInt(this.Uc.V("border-top-width"));
this.Uc.width=this.da.Fd;this.Uc.height=this.da.Ed+parseInt(this.Uc.V("border-top-width"))}fM(){super.fM();this.U$.nb()}get iM(){return this.U$}get ul(){return this.$B}set ul(c){this.$B=c}lI(){if(!this.ul||e.u.Ma.R().ga.JU){super.lI();for(var c={Mo:k=>this.tca(k),rv:k=>this.rv(k),Hx:(k,m)=>this.Hx(k,m),DV:k=>this.DV(k)},d=this.od.find(".fm-header",!0),g=0;g<d.length;g++)d[g].draggable(c)}}Hfa(c){if(e.v(c))return!1;c=this.Tu(c.element);return e.v(c)?!0:1===c.level||void 0===c.level}VE(c,d){c=d.closest(".fm-cell");
this.Hfa(c)?(c=parseInt(c.attr("data-c")),c=Math.min(c,this.coords.$l),this.xd=this.Jw(),this.xd.left=this.coords.hm(c,this.ac)-(c==this.coords.$l?0:this.xd.width),this.xd.top=this.da.we+this.coords.Vo(0,this.ac)-1,this.xd.height=this.coords.$d(0)+1,this.append(this.xd)):this.sm()}Hx(c,d){return"input"==d.target.tagName.toLowerCase()||1<this.Tu(c.element).level?!1:!0}DV(){this.lO.clear();this.sz=!0}rv(c){setTimeout(()=>{this.sz=!1},100);if(c.Sc("fm-drag-remove"))if(this.ul){var d=parseInt(c.attr("data-c"));
this.Ya(h.uc.L7,this,{index:d})}else{d=this.slice.clone();var g=parseInt(c.attr("data-r"));c=parseInt(c.attr("data-c"));const k=(g=this.ag(g,c))?g.hierarchy:null;e.v(k)||(g=d.flatten(!0),g.removeItem(k.A),d.Ka.Bb(k.A)?d.Ka.removeItem(k.A):d.rows.Bb(k.A)?d.rows.removeItem(k.A):d.qb.Bb(k.A)&&d.qb.removeItem(k.A),d.gd().find(m=>m.A===k.A)&&d.EE(k.A),d.Zg=g.Pc(!0),e.model.Wa.R().ge(d))}}en(c,d,g){this.sm();var k=g.closest(".fm-cell");if(null!=k){d=parseInt(c.attr("data-c"));g=parseInt(k.attr("data-c"));
c=this.Tu(c.element);var m=this.Tu(k.element),n=c.hierarchy?c.hierarchy.ua.length:0;g=g>d?g-(0<n?n-2:0):g;d!==g&&(this.ul?this.Ya(h.uc.K7,this,{mAa:d,CMa:g}):this.Hfa(k)&&(k=this.slice.clone(),0==k.Zg.length&&(k.Zg=k.flatten(!0).Pc(!0)),k.YCa&&void 0===c.level&&(n=d>g?1:-1,d=k.Zg.indexOf(c.hierarchy.A),g=null===m?g:k.Zg.indexOf(m.hierarchy.A),g=d===g?g+n:g),g=Math.max(0,Math.min(g,k.Zg.length)),d<g&&g--,e.Ja.Q3(k.Zg,d,g),e.model.Wa.R().ge(k)))}}}a.TYPE="flat";b.Mv=a})(f.flat||(f.flat={}))})(h.sheet||
(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.D7{constructor(c,d){super(c,d);this.N(h.uc.po,g=>this.sq(g));this.N("keydown",g=>this.oE(g));this.N("focusin",g=>this.h4(g))}h4(c){const d=this.sb.content.element.scrollLeft;0!=d?(this.sb.content.LLa(),this.sb.scrollLeft=this.sb.element.scrollLeft+d):(c=parseInt(c.target.getAttribute("data-c")),!isNaN(c)&&this.da.sD(c,this.ac)<this.da.scrollLeft&&(this.sb.scrollLeft-=this.da.Fd/2))}sq(c){null!=c.cell&&c.cell.vl&&null!=
c.cell.hierarchy&&c.cell.tC!=h.W.Lq.lK&&(e.model.C.F.cn||this.Ha(new h.IP(c.cell.hierarchy,c.cell)))}oE(c){if(!e.model.C.F.cn&&(32==c.keyCode||13==c.keyCode)){var d=c.target;c=parseInt(d.getAttribute("data-r"));d=parseInt(d.getAttribute("data-c"));isNaN(c)||isNaN(d)||this.Ha(new h.JP(c,d))}}kz(c,d){this.cell=super.kz(c,d);(c=this.zn?this.zn(c,d):null)&&c.vl&&c.hierarchy.vN&&(e.model.C.F.cn?(this.Sz(this.cell,c.hierarchy),this.cell.aa(h.W.ya.SJ),this.cell.text+=this.Cn.z0(c.hierarchy),this.cell.attr["data-h-name"]=
c.hierarchy.A):e.model.C.F.Vx&&(this.Sz(this.cell,c.hierarchy),this.cell.attr.title=e.model.B.j.EB,this.cell.attr.tabindex="0",this.cell.text+=this.No(h.W.ya.KJ)));return this.cell}Sz(c,d){c.aa(h.W.ya.Kq);d.filter.Fh&&(c.aa(h.W.ya.YX),c.text+=this.No(h.W.ya.EJ,e.model.B.j.UY))}}b.coa=a})(f.flat||(f.flat={}))})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){e=e.K||(e.K={});e=e.qd||(e.qd={});e=e.Jsa||(e.Jsa={});e=e.Xna||(e.Xna={});e[e.gOa=0]="DESELECT";e[e.hOa=1]="DESELECT_ALL";e[e.rQa=2]="TOGGLE_EXPANDED";e[e.sQa=3]="TOGGLE_SELECTED";e[e.KPa=4]="MOVE_UP";e[e.FPa=5]="MOVE_DOWN";e[e.IPa=6]="MOVE_TO_ROWS";e[e.GPa=7]="MOVE_TO_COLUMNS";e[e.HPa=8]="MOVE_TO_FILTERS";e[e.JPa=9]="MOVE_TO_VALUES";e[e.jOa=10]="EDIT_CALCULATED_VALUE";e[e.hQa=11]="SELECT_AGGREGATION"})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Pa{constructor(){super("div");this.kV=a=>this.D4(a);this.list=new x.Bd.vj;this.list.yl=!0;this.list.mi(this.kv);this.list.xg("caption");this.list.af();this.list.N(w.ia.Xd,a=>this.sv(a));this.X(this.list);this.G.cm();this.G.N("keydown",a=>{27==a.keyCode&&(this.close(),a.stopImmediatePropagation())});var b=new x.Ga("div","fm-arrow");this.G.X(b)}gp(b,a,c=-1){this.origin=a;this.nM=b;this.Dda=c;this.setData(b);this.show();this.G.N("mouseleave",this.kV);
e.Tn.addEventListener("mousedown",this.kV);b=a.sg(this.G.element.offsetParent);this.G.V("right",this.G.element.offsetParent.clientWidth-b.left+"px");this.G.V("top",b.top-this.zd()/2+a.zd()/2+"px");this.lw=document.activeElement;this.list.focus()}D4(b){"mousedown"==b.type&&this.G.KS(b)||(this.G.rb("mouseleave",this.kV),e.Tn.removeEventListener("mousedown",this.kV),this.close())}setData(b){let a=0;const c=[];for(let d=0;d<b.Wc.length;d++){const g={caption:b.xL[d],$:b.Wc[d]};void 0!=b.tw&&(g.eX=b.tw[d]);
c.push(g);b.Wc[d]==b.$&&(a=d)}this.list.gg(c);this.list.Xk(a);this.list.G.Sx(0)}sv(b){this.close();this.Ya(w.ia.Xd,this,{nM:this.nM,Dda:this.Dda,F_:b.data.Hl,origin:this.origin})}kv(b,a){var c=new x.Li.RY;c.setData(b);c.hn(a);return c}close(){this.$a();this.lw&&this.lw.focus({preventScroll:!0})}}h.kJ=f})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.Zt=this.Gn=null}update(a,c,d,g){this.fe=a;this.Pb=c;this.yo=d;this.Zt=g;this.fz();this.Fq();this.OO()}Fq(){this.qb=this.CD();this.rows=this.MH();this.Rga(this.rows);this.Ka=this.AH();this.Rga(this.Ka);this.Da=this.gd();this.vFa(this.Da);this.Z_()}OO(){this.vb=[];this.ff=[];this.cua(this.vb,this.tH());this.qEa&&this.uKa(this.vb);this.lua(this.vb,this.Os());e.model.C.F.Dja&&this.vKa(this.vb);this.OI(this.vb);if(b.i1){b.i1=
!1;var a=this.vb.find(c=>c.A==="/"+e.model.B.j.o8);null!=a&&this.wda(a)}this.yl(this.qb);this.yl(this.Ka);this.yl(this.rows);this.yl(this.Da)}pv(a){if(null!=this.fe){var c=this.Os().find(g=>g.A===a);if(null!=c){c.tg=!0;c.Jl=this.Yz;var d=this.Da.findIndex(g=>g.A===a);0<=d?(c.Q2=!0,this.Da[d]=c):this.Da.push(c)}this.OO()}}qv(a){if(null!=this.Pb&&null!=this.fe){const c=this.Da.findIndex(d=>d.A===a);-1<c&&this.Da.splice(c,1);this.j6();this.OO()}}Z_(){this.Gn=null}j6(){this.Gn={pages:this.qb,rows:this.rows,
columns:this.Ka,measures:this.Da}}Rga(a){a=a.find(c=>"[Measures]"===c.A);null!=a&&(a.caption=e.model.B.j.iB,a.aV=!0)}vFa(a){for(var c=0;c<a.length;c++)a[c].tg=!0,a[c].Jl=e.model.C.F.Jl&&!a[c].gh}yl(a){for(var c,d=0;d<a.length;d++){a[d].Ad=!0;c=this.Mda(a[d].A,a[d].tg);var g=this.Pb.vc().getItem(a[d].A);if(null!=c&&(this.kj(c,!0),c.ej))for(var k=0;k<c.children.length;k++)g.zf==c.children[k].A&&this.kj(c.children[k],!0);a[d].ej&&null!=g.ic&&(a[d].caption=a[d].caption+" / "+g.ic.caption)}}kj(a,c){a.Ad=
c;null!=a.parent&&a.parent.Ad!=c&&(1==c?this.kj(a.parent,c):0==this.aDa(a.parent.children)&&this.kj(a.parent,c));if(a.ej&&0==c)for(var d=0;d<a.children.length;d++)this.kj(a.children[d],c)}aDa(a){for(var c=0;c<a.length;c++)if(!0===a[c].Ad)return!0;return!1}eua(a,c){var d=null;c=c.split(/[\/\\]/);for(var g="",k=null,m=0;m<c.length;m++){var n=c[m];if(!e.ka(n)){g=g+(e.ka(g)?"":"/")+n;var p="[Folder]."+g;(d=this.ff.find(t=>t.A===p))?k=d:(d=new h.W.sj,d.Df=!0,d.A=p,d.caption=n,d.children=[],this.ff.push(d),
k?(d.level=k.level+1,d.parent=k,k.children.push(d)):(d.level=0,a.push(d)),k=d)}}return d}cua(a,c){for(var d,g,k,m=0;m<c.length;m++){k=this.fe.nf(c[m].A);var n=null!=k&&k.type!=e.u.i.Ra.wc,p=this.yo==e.u.i.ra.kg||this.yo==e.u.i.ra.API||this.yo==e.u.i.ra.JSON||this.yo==e.u.i.ra.ci||this.yo==e.u.i.ra.Nq;c[m].$fa=null!=k&&k.type==e.u.i.Ra.jb;c[m].ux=null!=k&&k.type==e.u.i.Ra.ec;c[m].HDa=null!=k&&k.type==e.u.i.Ra.Mc;e.ka(c[m].Oc)||!n&&!p?(d=a.find(t=>t.A===c[m].bM),null==d&&(d=new h.W.sj,d.Df=!0,d.A=c[m].bM,
d.caption=c[m].eH,d.children=[],d.level=0,d.description=d.description,a.push(d),this.ff.push(d)),c[m].ck?(k=e.ka(c[m].Oc)?d:g,k=k.children.find(t=>t.A===c[m].bh),c[m].level=k.level+1,c[m].parent=k,null==k.children&&(k.children=[]),k.children.push(c[m]),k.ej=!0):e.ka(c[m].Oc)?(c[m].level=1,c[m].parent=d,d.children.push(c[m])):(g=d.children.find(t=>t.A===d.A+c[m].Oc),null==g&&(g=new h.W.sj,g.Df=!0,g.A=d.A+c[m].Oc,g.caption=c[m].Oc,g.children=[],g.level=1,g.parent=d,g.description=d.description,d.children.push(g),
this.ff.push(g)),c[m].level=2,c[m].parent=g,g.children.push(c[m]))):(g=c[m].ck?this.ff.find(t=>t.A===c[m].bh):this.ff.find(t=>t.A==="[Folder]."+c[m].Oc),null==g&&(g=this.eua(a,c[m].Oc)),c[m].level=g.level+1,c[m].parent=g,e.v(g.children)&&(g.children=[]),g.children.push(c[m]));this.ff.push(c[m])}}lua(a,c){for(let k=0;k<c.length;k++){c[k].tg=!0;c[k].Jl=e.model.C.F.Jl&&!c[k].gh;c[k].Qa&&(c[k].Mg=e.model.B.j.o8);var d=null;if(this.Yz){var g=this.dka(c[k].A);d=this.ff.find(m=>m.A===g&&!m.Df)}this.Yz&&
null!=d?(d.jh=c[k],d.jh.zU=d,c[k].parent=d.parent):""!==c[k].Mg?(d=this.ff.find(m=>m.A==="[Folder]."+c[k].Mg+"/"+c[k].Oc),null==d&&(d=this.kua(a,c[k].Mg,c[k].Oc,c[k].gh,c[k].Qa)),c[k].level=d.level+1,c[k].parent=d,d.children.push(c[k])):(c[k].level=0,a.push(c[k]));this.ff.push(c[k])}}kua(a,c,d,g=!1,k=!1){var m=null;d=d.split(/[\/\\]/);d.unshift(c);c="";for(var n=null,p=0;p<d.length;p++){var t=d[p];if(!e.ka(t)){c=c+(e.ka(c)?"":"/")+t;var r="[Folder]."+c;m=this.ff.find(v=>v.A===r);e.v(m)&&0==p&&(m=
this.ff.find(v=>v.caption===t))&&!m.Df&&(m=null);m?n=m:(m=new h.W.sj,m.Df=!0,m.A=r,m.caption=t,m.children=[],m.gv=!0,m.gh=g,m.YH=k,this.ff.push(m),n?(m.level=n.level+1,m.parent=n,n.children.push(m)):(m.level=0,a.push(m)),n=m)}}return m}uKa(a){for(var c,d=0;d<a.length;d++)if(!0===a[d].Df&&1==a[d].children.length&&!0!==a[d].children[0].Df&&!a[d].children[0].Qa&&(c=a[d].children[0],c.level=0,c.parent=null,a.splice(d,1,c),c.children))for(var g=0;g<c.children.length;g++)--c.children[g].level}vKa(a){for(var c=
0;c<a.length;c++)!0===a[c].Df&&!0!==a[c].YH&&(a[c]=this.Jaa(a[c].children,a[c]))}Jaa(a,c){for(var d=0;d<a.length;d++)!0===a[d].Df&&(a[d]=this.Jaa(a[d].children,a[d]));return 1==a.length&&!0!==a[0].Df?(a=a[0],a.level=c.level,a.parent=c.parent,a):c}OI(a){this.fe.tx||(e.v(this.Zt)?a.sort((c,d)=>{var g=this.OM(c),k=this.OM(d);return g==k?c.caption.localeCompare(d.caption):k-g}):a.sort((c,d)=>this.Zt(h.W.sj.dX(c),h.W.sj.dX(d),"pivot")))}OM(a){return!0===a.ck?0:e.model.C.F.Le?a.YH?-1:0:!0===a.Df&&!0!==
a.gv?3:!0!==a.Df&&!0!==a.tg?2:!0===a.Df&&!0===a.gv?1:0}Zba(a){if(!this.Zo){for(var c=this.vb.indexOf(a)+1,d=0;d<a.children.length;d++)!0===a.children[d].dg&&this.Zba(a.children[d]);this.vb.splice(c,a.children.length);a.dg=!1}}wda(a){if(!this.Zo){var c=this.vb.indexOf(a)+1;a.ej&&e.v(this.Zt)||this.OI(a.children);e.Ja.insert(this.vb,a.children,c);a.dg=!0}}dka(a){a=this.fe.Ok(a);return null!=a?a.A:""}EMa(a){a=this.fe.nf(a);return null!=a?a.A:""}uh(a){for(var c=0;c<this.ff.length;c++)if(!this.ff[c].tg&&
!this.ff[c].Df&&this.ff[c].A==a)return this.ff[c]}fd(a){for(var c=0;c<this.ff.length;c++)if(this.ff[c].tg&&!this.ff[c].Df&&this.ff[c].A==a)return this.ff[c]}Mda(a,c=!1){return c?this.fd(a):this.uh(a)}n3(){return 0<this.Da.length}YM(){const a=new h.W.rra;a.qb=this.qb.map(d=>h.W.GQ.ET(d));a.rows=this.rows.map(d=>h.W.GQ.ET(d));a.Ka=this.Ka.map(d=>h.W.GQ.ET(d));a.Da=this.Da.map(d=>h.W.GQ.ET(d));a.Zg=this.Pb?this.Pb.Zg:[];a.$g=this.Pb?this.Pb.$g:[];if(this.Pb){if(this.Pb.$b.Mf){var c=this.Pb.$b.Sa();void 0===
a.Nj&&(a.Nj={});a.Nj.row=c.sort}this.Pb.Lb.Mf&&(c=this.Pb.Lb.Sa(),void 0===a.Nj&&(a.Nj={}),a.Nj.column=c.sort)}return a}ZU(a){return null==this.Pb?!0:this.IU(a.qb,this.Pb.qb.Pc())||this.IU(a.rows,this.Pb.rows.Pc())||this.IU(a.Ka,this.Pb.Ka.Pc())||this.IU(a.Da,this.Pb.gd())}IU(a,c){if(a.length!=c.length)return!0;for(var d=0;d<c.length;d++)if(a[d].A!=c[d].A||a[d].$!=c[d].$||a[d].zf!=c[d].zf||a[d].Q2)return!0;return!1}get Yz(){var a=this.yo;return a==e.u.i.ra.ci&&!e.model.C.F.Le||a==e.u.i.ra.Nq&&!e.model.C.F.Le||
a==e.u.i.ra.JSON&&!e.model.C.F.Le||a==e.u.i.ra.kg||a==e.u.i.ra.API}get MU(){for(var a=0;a<this.vb.length;a++)if((this.vb[a].Df||this.vb[a].gv||this.vb[a].ej)&&!this.vb[a].dg)return!0;return!1}get ffa(){for(var a=0;a<this.vb.length;a++)if(this.vb[a].Df||this.vb[a].gv||this.vb[a].ej)return!0;return!1}Yba(){if(!this.Zo){for(var a=0;a<this.vb.length;a++)if(this.vb[a].Df||this.vb[a].gv||this.vb[a].ej)this.vb[a].dg=!1;var c=[];for(a=0;a<this.vb.length;a++)0==this.vb[a].level&&c.push(this.vb[a]);this.vb.splice(0,
this.vb.length);e.Ja.insert(this.vb,c,0)}}iD(){if(!this.Zo){this.Yba();for(var a=0;a<this.vb.length;a++)(this.vb[a].Df||this.vb[a].ej)&&this.Vsa(this.vb[a],a+1)}}Vsa(a,c){a.dg=!0;null!=a.children&&0<a.children.length&&(this.OI(a.children),e.Ja.insert(this.vb,a.children,c))}CD(){return null!==this.Gn?this.Gn.pages:null!=this.Pb?this.NS(this.Pb.qb):[]}MH(){return null!==this.Gn?this.Gn.rows:null!=this.Pb?this.NS(this.Pb.rows):[]}AH(){return null!==this.Gn?this.Gn.columns:null!=this.Pb?this.NS(this.Pb.Ka):
[]}gd(){return null!==this.Gn?this.Gn.measures:null!=this.Pb?h.W.sj.QL(this.Pb.gd()):[]}tH(){return null!=this.fe?this.NS(this.fe.vc(!1),!0):[]}Os(){return null!=this.fe?h.W.sj.QL(this.fe.Da.Pc()):[]}NS(a,c=!1){for(var d=[],g=0;g<a.length;g++){var k=a.fa(g),m=this.fe.nf(k.A),n=new h.W.sj;c||null==k.ic?(n.A=k.A,n.caption=k.caption,n.bM=k.Ci.A,n.eH=k.Ci.caption,n.Oc=k.Oc,n.ck=!1,n.ej=k.Ef&&c):(n.A=k.ic.A,n.caption=k.ic.caption,n.bM=k.Ci.A,n.eH=k.Ci.caption,n.bh=k.A,n.H2=k.caption,n.ck=!0,n.ej=!1);n.sx=
m?m.sx():!1;n.description=k.description;d.push(n);if(k.Ef&&c)for(m=0;m<k.ua.length;m++)if(0!=m){var p=k.ua.fa(m);n=new h.W.sj;n.A=p.A;n.caption=p.caption;n.bM=k.Ci.A;n.eH=k.Ci.caption;n.Oc=k.Oc;n.bh=k.A;n.H2=k.caption;n.ck=!0;n.ej=!1;n.sx=!1;n.description=p.description;d.push(n)}}return d}search(a){a=a.toLowerCase();if(this.ud!=a){this.ud=a;this.uA=[];for(var c=this.ff.length,d=0;d<c;d++){var g=this.ff[d];g.Df||g.tg&&this.Yz&&!g.Qa||!e.P.contains(g.caption,a)||(g.ud=a,this.rua(g,this.uA),this.uA.push(g))}}}rua(a,
c){if(a.parent&&0>c.indexOf(a.parent)){for(var d=[];null!=a.parent;)d.push(a.parent),a=a.parent;d=d.reverse();for(a=0;a<d.length;a++)0>c.indexOf(d[a])&&c.push(d[a])}}fz(){this.ud="";this.uA=null}get qEa(){return e.model.Wa.R().Fa.ga.Aa!=e.u.i.ra.Cc}get Zo(){return!e.ka(this.ud)}get YU(){return e.model.C.F.U5||this.ff&&50<this.ff.length}get XD(){return(!e.model.Wa.R().Fa.ga.Ec||e.model.Wa.R().Fa.ga.Aa===e.u.i.ra.API)&&e.model.C.F.P5||e.model.C.F.tu&&e.model.Wa.R().Fa.ga.Aa===e.u.i.ra.Cc}get CU(){return this.XD&&
!this.Yc.kb}get Na(){return this.Zo?this.uA:this.vb}get Yc(){return this.fe}RE(a){this.Pb=a}}b.i1=!1;f.O9=b})(h.cu||(h.cu={}))})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends w.Mh{constructor(a,c){super();this.type="pivot";this.iw=!1;this.xO=()=>{const d=e.u.Ma.R();this.update(d.O,d.qa,d.ga.Aa)};this.bz=d=>this.pv(d);this.cz=d=>this.qv(d);this.dz=()=>this.LN();this.model=new f.O9;this.iw=c;this.view=this.Ve?new f.Eqa:new f.Dqa(this,a);this.view.N(w.ia.CLOSED,d=>this.Ha(d));this.Bd=[this.view.vg,this.view.Ff,this.view.eg,this.view.Ub];this.view.ei&&this.view.ei.N(x.Qd.uf,()=>this.pE());this.view.Qe&&this.view.Qe.N(x.Qd.uf,
()=>this.at());null!=this.view.qg&&this.view.qg.N(w.ia.Xd,d=>this.T3(d));this.view.gb&&(this.view.gb.G.N("click",d=>this.o4(d)),this.view.gb.G.N("keydown",d=>this.p4(d)),this.view.gb.Ls({en:d=>this.oHa(d),b4:(d,g)=>this.qha(d,g),dn:(d,g)=>this.qha(d,g),om:(d,g,k,m)=>this.om(d,g,k,m),$z:"li"}),this.view.gb.G.cm());a={en:(d,g,k,m)=>this.en(d,g,k,m),dn:(d,g,k,m)=>this.dn(d,g,k,m),om:(d,g,k,m)=>this.om(d,g,k,m),$z:"li",scroll:!0};this.view.vg&&(this.view.vg.Ls(a),this.view.vg.G.N("dblclick",d=>this.FV(d)),
this.view.vg.G.N("keydown",d=>this.GV(d,this.view.vg)),this.view.vg.G.cm());this.view.Ff&&(this.view.Ff.Ls(a),this.view.Ff.G.N("dblclick",d=>this.FV(d)),this.view.Ff.G.N("keydown",d=>this.GV(d,this.view.Ff)),this.view.Ff.G.cm());this.view.eg&&(this.view.eg.Ls(a),this.view.eg.G.N("dblclick",d=>this.FV(d)),this.view.eg.G.N("keydown",d=>this.GV(d,this.view.eg)),this.view.eg.G.cm());this.view.Ub&&(this.view.Ub.G.N("click",d=>this.OHa(d)),this.view.Ub.G.N("dblclick",d=>this.FV(d)),this.view.Ub.G.N("keydown",
d=>this.GV(d,this.view.Ub)),this.view.Ub.Ls(a),this.view.Ub.G.cm());this.view.Ai&&this.view.Ai.N(x.Qd.uf,()=>this.yV());this.view.yC&&this.view.yC.N(x.Qd.uf,()=>this.yV());this.view.pu&&this.view.pu.N(x.Qd.uf,()=>this.uGa());this.view.ie&&(this.view.ie.yW(500),this.view.ie.N(x.Sj.oy,()=>this.RN()));this.view.pe&&(this.view.pe.N("click",()=>this.ct()),this.view.pe.N("keydown",d=>this.lA(d,!1)));this.view.jj&&(this.view.jj.N("click",()=>this.dt()),this.view.jj.N("keydown",d=>this.lA(d,!0)))}get Ve(){return this.iw}at(){this.Ve?
e.Cg.instance.GL():this.UG()}pE(){this.ge();this.UG()}lA(a,c){if(32===a.keyCode||13===a.keyCode)c?this.dt():this.ct()}ct(){this.view.$e.aa("fm-search-opened");this.view.ie.G.focus()}dt(){this.view.$e.Hd("fm-search-opened");this.view.ie.clear();this.view.pe.G.focus()}RN(){this.model.search(this.view.ie.bj());this.view.gb.G.ab("fm-searched",this.model.Zo);this.view.gb.gg(this.model.Na);this.eo(this.view.gb);this.view.pu&&this.view.pu.isVisible(this.model.ffa&&!this.model.Zo)}wO(){this.iw&&e.u.Ma.R().N(e.u.Dy.nK,
this.xO)}vO(){this.iw&&e.u.Ma.R().rb(e.u.Dy.nK,this.xO)}ap(){this.view.open();this.wO()}UG(){this.view.close();this.vO()}ge(){var a=this.model.YM();this.model.ZU(a)&&(a=e.u.O.Tq.xb(e.model.hb.vo.xb(a.Sa()),this.model.Yc),this.Ve&&(a.J3=!1,e.Cg.instance.FE(),this.model.RE(a)),this.vO(),e.model.Wa.R().ge(a),this.wO())}pv(a){e.model.Wa.R().rb(l.Qa.pk.UA,this.bz);this.model.pv(a.Vs);this.kn();this.Ve&&this.ge()}qv(a){e.model.Wa.R().rb(l.Qa.pk.VA,this.cz);this.model.qv(a.Vs);this.kn();this.Ve&&this.ge()}LN(){this.view.WI=
!1;e.model.Wa.R().rb(l.Qa.pk.WA,this.dz);this.view.gb.focus({preventScroll:!0})}yV(){this.tI()}uGa(){this.model.MU?this.model.iD():this.model.Yba();this.eo(this.view.gb);this.view.ye()}FV(a){var c=x.Ga.Yb(a.target).closest("ul");null!=c&&(c=this.ax(c),a=x.Ga.Yb(a.target).closest("li"),null!=a&&(a=parseInt(a.attr("data-index")),this.lW(c,a)))}OHa(a){a=x.Ga.Yb(a.target);var c=a.closest("li");if(null!=c){c=parseInt(c.attr("data-index"));var d=this.model.Da[c];a.Sc("fm-aggr-display")?this.view.qg.gp(d,
a,c):a.Sc("fm-calc-display")&&this.tI(d.A)}}T3(a){this.yA(a.data.nM,a.data.F_)}yA(a,c){a.$=c.$;a.caption=e.model.C.F.Tx?e.P.bind(c.eX,a.name):a.name;this.view.Ub.Rr(a);let d=this.model.Na.find(g=>g.A===a.A);null!=d&&(this.model.Yz&&null!=d.jh&&(d=d.jh),d.$=a.$,d.caption=a.caption,this.view.gb.Rr(g=>g.A===d.A));this.Ve&&this.ge()}tI(a=null){this.view.WI=!0;e.model.Wa.R().Ha(new l.Qa.HX(a));e.model.Wa.R().N(l.Qa.pk.UA,this.bz);e.model.Wa.R().N(l.Qa.pk.WA,this.dz);e.ka(a)||e.model.Wa.R().N(l.Qa.pk.VA,
this.cz)}Fz(a){const c=[];for(let d=0;d<a.Wc.length;d++){const g={caption:a.xL[d],$:a.Wc[d]};void 0!=a.tw&&(g.eX=a.tw[d]);c.push({label:e.u.i.ea.HG(a.Wc[d]),isSelected:a.Wc[d]==a.$,handler:()=>this.yA(a,g)})}return c}GV(a,c){if(32===a.keyCode||13===a.keyCode){if(this.view.aj){const d=c.Su();if(e.v(d))return;const g=[];!0!==d.data.aV&&g.push({label:e.model.B.j.WX,handler:()=>this.Wh(0,d.data,d.index,c)});0<d.index&&g.push({label:e.model.B.j.l8,handler:()=>this.Wh(4,d.data,d.index,c)});d.index<c.Bc().length-
1&&g.push({label:e.model.B.j.g8,handler:()=>this.Wh(5,d.data,d.index,c)});d.data.tg&&!d.data.Qa&&g.push({label:e.model.B.j.VX,submenu:this.Fz(d.data)});c!=this.view.Ff&&this.bv(d.data,c,this.view.Ff)&&g.push({label:e.model.B.j.j8,handler:()=>this.Wh(6,d.data,d.index,c)});c!=this.view.eg&&this.bv(d.data,c,this.view.eg)&&g.push({label:e.model.B.j.h8,handler:()=>this.Wh(7,d.data,d.index,c)});c!=this.view.vg&&this.bv(d.data,c,this.view.vg)&&g.push({label:e.model.B.j.i8,handler:()=>this.Wh(8,d.data,d.index,
c)});c!=this.view.Ub&&this.bv(d.data,c,this.view.Ub)&&g.push({label:e.model.B.j.k8,handler:()=>this.Wh(9,d.data.jh,d.index,c)});d.data.Qa&&g.push({label:e.model.B.j.XX,handler:()=>this.Wh(10,d.data,d.index),preventFocusRestore:!0});this.view.aj.gp(this.view.G,g,d.element.sg(),{top:10,left:10})}a.preventDefault()}}p4(a){if(32===a.keyCode||13===a.keyCode){if(this.view.aj){const c=this.view.gb.Su();if(e.v(c))return;if(c.data.Df){this.Wh(2,c.data,c.index);return}const d=[];c.data.ej&&d.push({label:c.data.dg?
e.model.B.j.dna:e.model.B.j.ena,handler:()=>this.Wh(2,c.data,c.index)});this.c3(c.data)&&d.push({label:e.model.B.j.WX,handler:()=>this.Wh(1,c.data,c.index)});this.bv(c.data,this.view.gb,this.view.Ff)&&d.push({label:e.model.B.j.j8,handler:()=>this.Wh(6,c.data,c.index,this.view.gb)});this.bv(c.data,this.view.gb,this.view.eg)&&d.push({label:e.model.B.j.h8,handler:()=>this.Wh(7,c.data,c.index,this.view.gb)});this.bv(c.data,this.view.gb,this.view.vg)&&d.push({label:e.model.B.j.i8,handler:()=>this.Wh(8,
c.data,c.index,this.view.gb)});if(this.bv(c.data,this.view.gb,this.view.Ub)){const g={label:e.model.B.j.k8,handler:()=>this.Wh(9,c.data.jh,c.index,this.view.gb)};c.data.$fa?d.splice(this.c3(c.data)?1:0,0,g):d.push(g)}c.data.Qa&&d.push({label:e.model.B.j.XX,handler:()=>this.Wh(10,c.data,c.index),preventFocusRestore:!0});this.view.aj.gp(this.view.G,d,c.element.sg(),{top:10,left:10})}a.preventDefault()}}Wh(a,c,d,g=null){1==a?(1==c.Ad&&(this.model.kj(c,!1),this.Nu(c)),null!=c.jh&&1==c.jh.Ad&&(this.model.kj(c.jh,
!1),this.Nu(c.jh)),this.E6(this.view.gb,d),this.yt(),this.Ve&&this.ge()):0==a?(this.lW(g,d),g.Ni(Math.min(d,g.Bc().length-1))):6==a?(g==this.view.gb?this.Ty(g,this.view.Ff,d,this.model.rows.length):this.Zs(g,this.view.Ff,d,this.model.rows.length),g.Ni(Math.min(d,g.Bc().length-1))):7==a?(g==this.view.gb?this.Ty(g,this.view.eg,d,this.model.Ka.length):this.Zs(g,this.view.eg,d,this.model.Ka.length),g.Ni(Math.min(d,g.Bc().length-1))):8==a?(g==this.view.gb?this.Ty(g,this.view.vg,d,this.model.qb.length):
this.Zs(g,this.view.vg,d,this.model.qb.length),g.Ni(Math.min(d,g.Bc().length-1))):9==a?(g==this.view.gb?this.Ty(g,this.view.Ub,d,this.model.Da.length):this.Zs(g,this.view.Ub,d,this.model.Da.length),g.Ni(Math.min(d,g.Bc().length-1))):4==a?(this.Zs(g,g,d,d-1),g.Ni(d-1)):5==a?(this.Zs(g,g,d,d+2),g.Ni(d+1)):2==a?(c.dg?this.model.Zba(c):this.model.wda(c),this.eo(this.view.gb),this.view.ye()):10==a?this.tI(c.A):11==a&&this.view.qg.gp(c,null.find(".fm-aggr-display"))}o4(a){const c=this.view.gb.mD(a.target);
if(!e.v(c))if(a=x.Ga.Yb(a.target),a.Sc("fm-aggr-display"))this.view.qg.gp(c.data,a);else if(a.Sc("fm-calc-display"))this.Wh(10,c.data,c.index);else if(c.data.Df||c.data.ej&&!a.Sc("fm-moreicon-display"))this.Wh(2,c.data,c.index);else{if(this.c3(c.data))1==c.data.Ad&&(this.model.kj(c.data,!1),this.Nu(c.data)),null!=c.data.jh&&1==c.data.jh.Ad&&(this.model.kj(c.data.jh,!1),this.Nu(c.data.jh));else if(c.data.tg&&c.data.sx){this.model.kj(c.data,!0);a=[];for(var d in c.data)c.data[d]instanceof h.W.sj&&a.push(d);
d=u.Hc.zj(c.data,a);this.model.Da.push(d);this.eo(this.view.Ub)}else if(c.data.jh&&c.data.sx&&c.data.jh.type!=e.u.i.Ra.wc&&c.data.jh.type!=e.u.i.Ra.Ua){this.model.kj(c.data.jh,!0);a=[];for(d in c.data.jh)c.data.jh[d]instanceof h.W.sj&&a.push(d);d=u.Hc.zj(c.data.jh,a);this.model.Da.push(d);this.eo(this.view.Ub)}else{if(c.data.ck)for(c.data.parent.Ad&&this.Nu(c.data.parent),d=0;d<c.data.parent.children.length;d++)a=c.data.parent.children[d],a.A!=c.data.A&&(a.Ad&&this.Nu(a),a.Ad=!1);this.model.kj(c.data,
!0);this.model.rows.push(c.data);this.eo(this.view.Ff)}this.E6(this.view.gb,c.index);this.yt();this.Ve&&this.ge()}}E6(a,c){a.xt(c);c=a.Bc()[c];null!=c.parent&&this.SO(a,c.parent);if(c.ej)for(var d=0;d<c.children.length;d++)a.Rr(c.children[d]);if(c.ck)for(d=0;d<c.parent.children.length;d++)a.Rr(c.parent.children[d])}SO(a,c,d=null){a.Rr(d||c);c.parent&&this.SO(a,c.parent);if(c.ej)for(d=0;d<c.children.length;d++)a.Rr(c.children[d]);if(c.ck)for(d=0;d<c.parent.children.length;d++)a.Rr(c.parent.children[d])}Hx(){return!0}oHa(a){if(a&&
a.closest("ul")){var c=parseInt(a.attr("data-index"));a=this.ax(a.closest("ul"));a!=this.view.gb&&this.lW(a,c)}}qha(a,c){a&&a.closest("ul")&&(a=this.ax(a.closest("ul")),a!=this.view.gb&&(c&&c.aa("fm-drag-remove"),a.G.Sc("fm-droppable")?c&&c.aa("fm-droppable-valid"):c&&c.aa("fm-droppable-invalid")))}dn(a,c,d,g){let k;g instanceof MouseEvent?(k=x.Ga.Yb(g.target),g=g.clientY):(g=g.changedTouches[0],k=x.Ga.Yb(document.elementFromPoint(g.clientX,g.clientY)),g=g.clientY);if(!k.Sc("fm-drop-indicator")&&
(this.sm(),c&&(c.Hd("fm-no-drop"),c.Hd("fm-drag-remove")),a&&a.closest("ul"))){d instanceof x.Bd.vj||(d=this.ax(d));var m=this.ax(a.closest("ul"));m.G.Sc("fm-droppable")&&(this.bv(this.pea(a,m),m,d)?this.VE(k,g):c.aa("fm-no-drop"))}}c3(a){return a.Ad||a.jh&&a.jh.Ad}bv(a,c,d){return a.aV&&d!=this.view.eg&&d!=this.view.Ff||!1===a.sx&&d==this.view.Ub||0==this.model.Yz&&(d!=this.view.Ub&&(a.tg||a.gh)||d==this.view.Ub&&!a.tg&&!a.gh)||a.Qa&&d!=this.view.Ub||a.children&&0<a.children.length&&d==this.view.Ub?
!1:a.Qa&&d==this.view.Ub&&c==this.view.Ub?!0:a.Qa&&d==this.view.Ub?e.v(this.view.Ub.Bc().find(g=>g.A===a.A)):c==this.view.gb&&null!=d.Bc().find(g=>g.A===a.A)&&d!=this.view.Ub?!1:!0}pea(a,c){a=parseInt(a.attr("data-index"));return c.Bc()[a]}om(a,c){this.sm();c&&(c.Hd("fm-no-drop"),c.Hd("fm-drag-remove"));if(a&&a.closest("ul")&&c){c.Hd("fm-droppable-valid");c.Hd("fm-droppable-invalid");const d=this.ax(a.closest("ul"));a.Sc("fm-values")||d==this.view.gb||c.aa("fm-drag-remove")}}en(a,c){if(null!=this.xd)if(a&&
a.closest("ul")){c=c instanceof x.Bd.vj?c:this.ax(c);var d=this.ax(a.closest("ul"));if(0==this.bv(this.pea(a,d),d,c))this.sm();else{var g=c.Bc().length;this.xd.element.previousElementSibling?g=parseInt(this.xd.element.previousElementSibling.getAttribute("data-index"))+1:this.xd.element.nextElementSibling&&(g=parseInt(this.xd.element.nextElementSibling.getAttribute("data-index")));this.sm();a=parseInt(a.attr("data-index"));d==this.view.gb&&c!=this.view.gb?this.Ty(d,c,a,g):this.Zs(d,c,a,g);a=c.G.element.scrollTop;
this.Fka();c.G.Sx(a);c.jO(g)}}else this.sm()}rv(a){if(a&&a.closest("ul")){var c=parseInt(a.attr("data-index"));a=this.ax(a.closest("ul"));a!=this.view.gb&&this.lW(a,c)}}VE(a,c){const d=a.closest("li");null!=d?(this.xd=this.Jw(),a=d.getBoundingClientRect(),c>a.top+.75*a.height?d.after(this.xd):d.before(this.xd)):(c=a.closest("ul"),null!=c&&(this.xd=this.Jw(),c.append(this.xd)))}Jw(){return new x.Ga("div","fm-drop-indicator")}sm(){this.xd&&(this.xd.Qg(!0),this.xd=null)}Zs(a,c,d,g){var k=a.Bc()[d];a==
c?(a=c.Bc(),d<g&&--g,a.splice(g,0,a.splice(d,1)[0])):(k=a.Bc()[d],a.Bc().splice(d,1),a.Sr(),c==this.view.Ub&&(this.model.kj(k,!1),k=this.model.fd(this.model.EMa(k.ck?k.bh:k.A)),null!=k.zU&&this.model.kj(k.zU,!1)),a==this.view.Ub&&(-1==a.Bc().findIndex(m=>m.A===k.A)&&this.model.kj(k,!1),k=this.model.uh(this.model.dka(k.A)),null!=k.jh&&this.model.kj(k.jh,!1)),null!=k&&(this.model.kj(k,!0),this.Nu(k,null,!0),c.Bc().splice(g,0,k)));this.eo(c);this.yt();this.Ve&&this.ge()}Ty(a,c,d,g){var k=a.Bc()[d];if(k.ck){k.parent.Ad&&
this.Nu(k.parent);for(d=0;d<k.parent.children.length;d++){var m=k.parent.children[d];m.A!=k.A&&(m.Ad&&this.Nu(m),m.Ad=!1)}this.SO(this.view.gb,k)}this.model.Yz&&c==this.view.Ub&&null!=k.jh&&(k=k.jh);k.Ad&&!k.tg?(this.model.kj(k,!1),this.Nu(k,a,!0),this.model.kj(k,!0)):(this.model.kj(k,!0),a=this.view.gb.Bc().findIndex(p=>p.A===k.A),this.E6(this.view.gb,a));if(this.model.Yz&&c==this.view.Ub&&k.tg){a=[];for(var n in k)k[n]instanceof h.W.sj&&a.push(n);k=u.Hc.zj(k,a)}c.Bc().splice(g,0,k);this.eo(c);this.yt();
this.Ve&&this.ge()}lW(a,c){if(!(a.Bc().length<=c)){var d=a.Bc()[c];if(!d.aV){a.Bc().splice(c,1);this.eo(a);if(!(d.tg&&-1<this.view.Ub.Bc().findIndex(g=>g.A===d.A))){a=this.model.Mda(d.A,d.tg);if(null!=a){this.model.kj(a,!1);const g=null!=a.zU?a.zU:a;this.SO(this.view.gb,g,k=>k.A===g.A);a.ck&&(this.model.kj(a.parent,!1),this.SO(this.view.gb,a.parent))}this.yt()}this.Ve&&this.ge()}}}Nu(a,c=null,d=!1){for(var g=-1,k=0;k<this.Bd.length;k++)if(this.Bd[k]!=c&&(this.Bd[k]!=this.view.Ub||!d))for(var m=!0;m||
-1<g;)m=!1,g=this.Bd[k].Bc().findIndex(n=>n.A===a.A||n.bh===a.A),-1==g&&(g=this.Bd[k].Bc().findIndex(n=>n.A===a.A||n.bh===a.A)),-1<g&&(this.Bd[k].Bc().splice(g,1),this.eo(this.Bd[k]))}ax(a){return a.element==this.view.gb.G.element?this.view.gb:a.element==this.view.vg.G.element?this.view.vg:a.element==this.view.Ff.G.element?this.view.Ff:a.element==this.view.eg.G.element?this.view.eg:a.element==this.view.Ub.G.element?this.view.Ub:null}update(a,c,d="",g=!0,k=!1){g&&this.model.update(a,c,d,h.vp.rT);this.kn(k)}yt(){this.view.ei&&
this.view.ei.Bq(this.model.n3())}get MU(){return this.model.MU}kn(a=!1){this.view.reset&&this.view.reset();this.view.Ai&&(this.view.Ai.isVisible(this.model.XD),this.view.Ai.Bq(this.model.CU));this.view.yC&&(this.view.yC.isVisible(this.model.XD),this.view.yC.Bq(this.model.CU));this.view.gb&&this.view.gb.gg(this.model.Na,!1);this.view.vg&&this.view.vg.gg(this.model.qb,!1);this.view.Ff&&this.view.Ff.gg(this.model.rows,!1);this.view.eg&&this.view.eg.gg(this.model.Ka,!1);this.view.Ub&&this.view.Ub.gg(this.model.Da,
!1);this.view.pu&&this.view.pu.isVisible(this.model.ffa);this.view.$e&&this.view.$e.isVisible(this.model.YU);this.view.ie&&(this.view.ie.clear(!1),this.model.fz());this.view.ye();this.view.G.requestAnimationFrame(()=>{this.Fka();a&&e.model.Za.R().Ha(new e.model.jd(e.model.Za.zF))})}eo(a){a.Sr();var c={Hx:g=>this.Hx(g),Mo:g=>this.view.Mo(g)};u.Nd().im&&(c.nU=".fm-drag-handle");var d=a.G.find("li",!0);if(a==this.view.gb)for(a=0;a<d.length;a++)d[a].Sc("fm-folder")&&!d[a].Sc("fm-level-folder")||d[a].draggable(c);
else for(a.Ls({en:(g,k,m,n)=>this.en(g,k,m,n),dn:(g,k,m,n)=>this.dn(g,k,m,n),om:(g,k,m,n)=>this.om(g,k,m,n),$z:"li",scroll:!0}),c.rv=g=>this.rv(g),a=0;a<d.length;a++)d[a].draggable(c)}Fka(){try{this.yt(),this.eo(this.view.gb),this.eo(this.view.vg),this.eo(this.view.Ff),this.eo(this.view.eg),this.eo(this.view.Ub)}catch(a){}}}f.N9=b})(h.cu||(h.cu={}))})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.ce.Fy{constructor(a,c){super(c);this.aF=0;this.controller=a;this.aa("fm-pivot-fields");this.Ke();this.G.cm();this.G.ij({RW:[x.ij.ti.pi,x.ij.ti.CF,x.ij.ti.UF],LS:l.Sb.Jb.G,H_:!0,resize:d=>this.TN(d),complete:()=>this.Pp()})}TN(a){a.WE==x.ij.ti.CF||a.WE==x.ij.ti.UF?(this.Yk(a.size.width+(a.size.width-a.W4.width)),this.Pp()):a.WE==x.ij.ti.pi&&this.Mr(a.size.height);this.wC()}Ke(){var a=new x.Pa("div","fm-popup-header fm-ui-row");this.X(a);
var c=new x.Pa("div","fm-ui-col fm-vam");a.X(c);this.yx=new x.Tc(e.model.B.j.qy);this.yx.aa("fm-popup-title");c.X(this.yx);this.xx=new x.Tc(e.model.B.j.q8);this.xx.aa("fm-popup-subtitle");c.X(this.xx);c=new x.Pa("div","fm-ui-col fm-vam fm-tar fm-ui-btns-row");a.X(c);this.Ai=new x.Vg("fm-btn-add-measure fm-ui-btn-light fm-icon-act_calc");this.Ai.fb(e.model.B.j.hB);c.X(this.Ai);this.Qe=new x.Vg;this.Qe.fb(e.model.B.j.xm);this.ei=new x.Vg("fm-ui-btn-dark");this.ei.fb(e.model.B.j.my);u.uj.aE||u.uj.Yo?
(c.X(this.Qe),c.X(this.ei)):(c.X(this.ei),c.X(this.Qe));a=new x.Pa("div","fm-popup-content");this.X(a);var d=new x.Pa("div","fm-ui-row");a.X(d);c=new x.Pa("div","fm-ui-col-3");d.X(c);var g=new x.Pa("div","fm-list-wrap fm-list-wrap-all");c.X(g);var k=new x.Pa("div","fm-list-header fm-list-header-wide");g.X(k);c=new x.Pa("div","fm-list-header-label-wrap");k.X(c);this.zN=new x.Tc(e.model.B.j.Jv);c.X(this.zN);this.pu=new x.Qd("fm-ui-link-btn fm-btn-collapse-expand-all");this.pu.Hd("fm-ui-btn");this.pu.fb(e.model.B.j.m8);
c.X(this.pu);this.$e=new x.Pa("div","fm-search-wrap");k.X(this.$e);this.pe=new x.Pa("a","fm-search-btn");this.pe.af(0);this.pe.Wk("button");this.$e.X(this.pe);c=new x.Pa("span","fm-ui-icon fm-icon-act_search");this.pe.X(c);this.ie=new x.Sj;this.ie.aa("fm-search-inp");this.$e.X(this.ie);this.jj=new x.Pa("span","fm-close-search fm-ui-icon fm-icon-act_close");this.jj.af(0);this.jj.Wk("button");this.$e.X(this.jj);k=new x.Pa("div","fm-list-content");g.X(k);this.gb=new x.Bd.vj;this.gb.af();this.gb.aa("fm-lst-hierarchies");
this.gb.mi((m,n)=>this.KE(m,n));this.gb.IW(m=>m.caption);k.X(this.gb);c=new x.Pa("div","fm-ui-col-3");d.X(c);g=new x.Pa("div","fm-list-wrap fm-list-wrap-pages");c.X(g);k=new x.Pa("div","fm-list-header");g.X(k);this.BN=new x.Tc(e.model.B.j.$r);k.X(this.BN);k=new x.Pa("div","fm-list-content");g.X(k);this.vg=new x.Bd.vj;this.vg.af();this.vg.aa("fm-lst-pages");this.vg.mi((m,n)=>this.Ns(m,n));this.vg.xg("caption");k.X(this.vg);this.iV=new x.Tc(e.model.B.j.py);this.iV.aa("fm-prompt");this.iV.Eo();g.X(this.iV);
g=new x.Pa("div","fm-list-wrap fm-list-wrap-rows");c.X(g);k=new x.Pa("div","fm-list-header");g.X(k);this.CN=new x.Tc(e.model.B.j.AF);k.X(this.CN);k=new x.Pa("div","fm-list-content");g.X(k);this.Ff=new x.Bd.vj;this.Ff.af();this.Ff.aa("fm-lst-rows");this.Ff.mi((m,n)=>this.Ns(m,n));this.Ff.xg("caption");k.X(this.Ff);this.jV=new x.Tc(e.model.B.j.py);this.jV.aa("fm-prompt");this.jV.Eo();g.X(this.jV);c=new x.Pa("div","fm-ui-col-3");d.X(c);g=new x.Pa("div","fm-list-wrap fm-list-wrap-columns");c.X(g);k=new x.Pa("div",
"fm-list-header");g.X(k);this.yN=new x.Tc(e.model.B.j.yF);k.X(this.yN);k=new x.Pa("div","fm-list-content");g.X(k);this.eg=new x.Bd.vj;this.eg.af();this.eg.aa("fm-lst-columns");this.eg.mi((m,n)=>this.Ns(m,n));this.eg.xg("caption");k.X(this.eg);this.fV=new x.Tc(e.model.B.j.py);this.fV.aa("fm-prompt");this.fV.Eo();g.X(this.fV);g=new x.Pa("div","fm-list-wrap fm-list-wrap-measures");c.X(g);k=new x.Pa("div","fm-list-header");g.X(k);this.AN=new x.Tc(e.model.B.j.iB);k.X(this.AN);this.yC=new x.Vg("fm-btn-add-measure-2 fm-icon-act_calc");
k.X(this.yC);k=new x.Pa("div","fm-list-content");g.X(k);this.Ub=new x.Bd.vj;this.Ub.af();this.Ub.aa("fm-lst-measures");this.Ub.mi((m,n)=>this.Ns(m,n));this.Ub.xg("caption");k.X(this.Ub);this.hV=new x.Tc(e.model.B.j.py);this.hV.aa("fm-prompt");this.hV.Eo();g.X(this.hV);this.qg=new h.kJ;this.qg.aa("fm-aggregations-view");this.qg.$a();a.X(this.qg);this.aj=new x.mr.XF(a.G);this.aj.$a();a.X(this.aj)}ye(){this.yx.fb(e.model.B.j.qy);this.xx.fb(e.model.B.j.q8);this.Qe.fb(e.model.B.j.xm);this.ei.fb(e.model.B.j.my);
this.zN.fb(e.model.B.j.Jv);this.BN.fb(e.model.B.j.$r);this.CN.fb(e.model.B.j.AF);this.yN.fb(e.model.B.j.yF);this.AN.fb(e.model.B.j.iB);this.Ai.fb(e.model.B.j.hB);this.Ai.ni(e.model.B.j.hB);this.yC.ni(e.model.B.j.hB);this.iV.fb(e.model.B.j.py);this.jV.fb(e.model.B.j.py);this.fV.fb(e.model.B.j.py);this.hV.fb(e.model.B.j.py);this.pu.fb(this.controller.MU?e.model.B.j.gna:e.model.B.j.m8);this.zc(e.model.B.j.qy);this.yx.Eo();this.xx.Eo();this.gb.zc(e.model.B.j.Jv);this.vg.zc(e.model.B.j.$r);this.Ff.zc(e.model.B.j.AF);
this.eg.zc(e.model.B.j.yF);this.Ub.zc(e.model.B.j.iB);this.pe.zc(e.model.B.j.zP);this.ie.zc(e.model.B.j.zP);this.jj.zc(e.model.B.j.p8)}Ns(a,c){var d=new h.Li.aY;d.setData(a);d.hn(c);return d}KE(a,c){a=new h.Li.FQ(a,c);a.hn(c);return a}reset(){this.$e.Hd("fm-search-opened");this.ie.clear(!1)}Mo(a){const c=new x.Ga("span");c.aa("fm-drag-handle");c.aa("fm-helper");c.aa("fm-draggable");c.ab("fm-values",a.Sc("fm-values"));c.V("width",a.V("width"));c.V("position","absolute");c.V("z-index",100);c.attr("data-index",
a.attr("data-index"));const d=new x.Ga("span","fm-label");d.text(a.text());c.X(d);c.X(new x.Ga("i","fm-drag-icon"));return c}wC(){super.wC(!0)}}f.Dqa=b})(h.cu||(h.cu={}))})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.ce.sk{constructor(){super();this.aF=0;this.aa("fm-pivot-fields");this.aa("fm-instant-view");this.Ke();this.G.cm()}Ke(){var a=new x.Pa("div","fm-popup-content");this.X(a);var c=new x.Pa("div","fm-list-wrap fm-list-wrap-all");a.X(c);var d=new x.Pa("div","fm-list-header fm-list-header-wide");c.X(d);var g=new x.Pa("div","fm-list-header-label-wrap");d.X(g);this.zN=new x.Tc(e.model.B.j.Jv);g.X(this.zN);this.Ai=new x.Vg("fm-btn-add-measure");
d.X(this.Ai);this.Qe=new x.Vg("fm-btn-close-fields");d.X(this.Qe);d=new x.Pa("div","fm-list-content");c.X(d);this.gb=new x.Bd.vj;this.gb.aa("fm-lst-hierarchies");this.gb.af();this.gb.mi((k,m)=>this.KE(k,m));this.gb.xg("caption");d.X(this.gb);g=new x.Pa("div","fm-ui-row");a.X(g);d=new x.Pa("div","fm-ui-col-2");g.X(d);c=new x.Pa("div","fm-list-wrap fm-list-wrap-pages");d.X(c);d=new x.Pa("div","fm-list-header");c.X(d);this.BN=new x.Tc(e.model.B.j.$r);d.X(this.BN);d=new x.Pa("div","fm-list-content");
c.X(d);this.vg=new x.Bd.vj;this.vg.aa("fm-lst-pages");this.vg.af();this.vg.mi((k,m)=>this.Ns(k,m));this.vg.xg("caption");d.X(this.vg);d=new x.Pa("div","fm-ui-col-2");g.X(d);c=new x.Pa("div","fm-list-wrap fm-list-wrap-columns");d.X(c);d=new x.Pa("div","fm-list-header");c.X(d);this.yN=new x.Tc(e.model.B.j.yF);d.X(this.yN);d=new x.Pa("div","fm-list-content");c.X(d);this.eg=new x.Bd.vj;this.eg.aa("fm-lst-columns");this.eg.af();this.eg.mi((k,m)=>this.Ns(k,m));this.eg.xg("caption");d.X(this.eg);g=new x.Pa("div",
"fm-ui-row");a.X(g);c=new x.Pa("div","fm-list-wrap fm-list-wrap-rows");g.X(c);d=new x.Pa("div","fm-list-header");c.X(d);this.CN=new x.Tc(e.model.B.j.AF);d.X(this.CN);d=new x.Pa("div","fm-list-content");c.X(d);this.Ff=new x.Bd.vj;this.Ff.aa("fm-lst-rows");this.Ff.af();this.Ff.mi((k,m)=>this.Ns(k,m));this.Ff.xg("caption");d.X(this.Ff);g=new x.Pa("div","fm-ui-row");a.X(g);c=new x.Pa("div","fm-list-wrap fm-list-wrap-measures");g.X(c);d=new x.Pa("div","fm-list-header");c.X(d);this.AN=new x.Tc(e.model.B.j.iB);
d.X(this.AN);d=new x.Pa("div","fm-list-content");c.X(d);this.Ub=new x.Bd.vj;this.Ub.aa("fm-lst-measures");this.Ub.af();this.Ub.mi((k,m)=>this.Ns(k,m));this.Ub.xg("caption");d.X(this.Ub);this.qg=new h.kJ;this.qg.aa("fm-aggregations-view");this.qg.$a();a.X(this.qg);this.aj=new x.mr.XF(a.G);this.aj.$a();a.X(this.aj)}ye(){this.zN.fb(e.model.B.j.Jv);this.BN.fb(e.model.B.j.$r);this.CN.fb(e.model.B.j.AF);this.yN.fb(e.model.B.j.yF);this.AN.fb(e.model.B.j.iB);this.Ai.ni(e.model.B.j.hB);this.zc(e.model.B.j.qy);
this.gb.zc(e.model.B.j.Jv);this.vg.zc(e.model.B.j.$r);this.Ff.zc(e.model.B.j.AF);this.eg.zc(e.model.B.j.yF);this.Ub.zc(e.model.B.j.iB);this.Qe.zc(e.model.B.j.CJ)}Ns(a,c){var d=new h.Li.aY;d.setData(a);d.hn(c);return d}KE(a,c){a=new h.Li.FQ(a,c);a.hn(c);return a}Mo(a){const c=new x.Ga("span");c.aa("fm-drag-handle");c.aa("fm-helper");c.aa("fm-draggable");c.ab("fm-values",a.Sc("fm-values"));c.V("width",a.V("width"));c.V("position","absolute");c.V("z-index",100);c.attr("data-index",a.attr("data-index"));
const d=new x.Ga("span","fm-label");d.text(a.text());c.X(d);c.X(new x.Ga("i","fm-drag-icon"));return c}open(){this.show();this.Ya(w.ia.OPENED)}close(){this.$a();this.Ya(w.ia.CLOSED)}reset(){}}f.Eqa=b})(h.cu||(h.cu={}))})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Pa{constructor(){super();this.AS=()=>this.SN();this.aa("fm-fields-view-wrap");this.Ke()}Ke(){this.ft=new x.Vg("fm-btn-open-fields");this.ft.ni(e.model.B.j.LQ);this.ft.zc(e.model.B.j.zF);this.ft.N(x.Qd.uf,()=>this.E4());this.X(this.ft)}updateLabels(){this.ft.ni(e.model.B.j.LQ);this.ft.zc(e.model.B.j.zF)}open(b,a,c=""){if(!this.Ve||this.O2||this.Nfa||this.Efa||e.v(this.QK)){this.controller&&this.controller.rb(w.ia.CLOSED,this.AS);this.close();
this.controller&&this.controller.N(w.ia.CLOSED,this.AS);this.G.ab("fm-fields-opened",!0);this.G.ab("fm-fields-instant",this.Ve);this.Ve&&this.G.Mr(l.Sb.Jb.Gr());e.model.C.F.Qm=!0;this.controller=this.jBa();var d=e.model.C.F.Qm&&this.O2;this.controller.update(b,a,c,this.WCa,d);this.controller.view.aa("fm-fields-view");this.X(this.controller.view);this.isVisible()||this.show();this.controller.ap();!this.controller.view.WI&&this.controller.view.gb&&this.controller.view.gb.focus({preventScroll:!0});l.Sb.Jb.kD=
this.Ve?this.controller.view.cg():0;this.hw=!0;this.QK=e.u.Ma.R().qa?e.u.Ma.R().qa.clone():null;this.Ab=e.u.Ma.R().ga;this.eta=e.u.Ma.R().O&&e.u.Ma.R().O.Td;this.mG=e.model.C.F.sc;this.bta=e.model.C.F.me==l.Jd.nj;this.mG&&d&&e.model.Za.R().Ha(new e.model.jd(e.model.Za.zF))}else this.G.Mr(l.Sb.Jb.Gr())}get Ve(){return"right"==e.model.C.F.jD}get Nfa(){return this.mG!=e.model.C.F.sc||e.model.C.F.sc&&this.bta!=(e.model.C.F.me==l.Jd.nj)}get O2(){return this.hw!=e.model.C.F.Qm}get Efa(){return null==this.Ab||
null==e.u.Ma.R().O||this.eta!=e.u.Ma.R().O.Td||!this.Ab.isEqual(e.u.Ma.R().ga)}get vEa(){return null==e.u.Ma.R().qa&&null!=this.QK||null!=e.u.Ma.R().qa&&null==this.QK||e.u.Ma.R().qa&&this.QK&&!e.u.Ma.R().qa.isEqual(this.QK)}get WCa(){return this.O2||this.Efa||this.vEa||this.Nfa}jBa(){var b=null,a=e.model.C.F.sc&&e.model.C.F.me!=l.Jd.nj,c=l.Sb.Jb.G;null==this.controller?b=a?new h.flat.bY(c,this.Ve):new h.cu.N9(c,this.Ve):!a||"flat"==this.controller.type&&this.controller.Ve==this.Ve?a||"pivot"==this.controller.type&&
this.controller.Ve==this.Ve||(b=new h.cu.N9(c,this.Ve)):b=new h.flat.bY(c,this.Ve);if(null==b)return this.controller;this.controller&&this.controller.Vd();b.N(w.ia.CLOSED,this.AS);b.N(f.AJ,d=>this.U3(d));return b}U3(b){this.Ha(b)}SN(){this.hw=void 0;this.Ab=null;this.mG=void 0;this.controller.rb(w.ia.CLOSED,this.AS);e.model.Za.R().Ha(new e.model.jd(e.model.Za.CJ));e.model.C.F.R();e.model.C.F.JS?this.show():this.$a();e.model.C.F.Qm=!1;this.Ya(w.ia.CLOSED);this.G.ab("fm-fields-opened",!1);this.G.Mr("")}close(){this.controller&&
this.controller.UG()}E4(){this.Ya(f.yP)}get hv(){return this.hw}}f.AJ="EVENT_APPLY_SLICE";f.yP="EVENT_OPEN";h.vp=f})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Li.GB{constructor(){super();this.UL()}UL(){null==this.mp&&(this.mp=new x.Ga("span","fm-text-display"))}v0(){null==this.sw&&(this.sw=new x.Ga("span","fm-aggr-display"),this.sw.attr("title",e.model.B.j.j$),this.sw.Gg("hidden","true"))}w0(){null==this.vw&&(this.vw=new x.Ga("span","fm-calc-display"),this.vw.attr("title",e.model.B.j.h$),this.vw.Gg("hidden","true"))}x0(){null==this.Qw&&(this.Qw=new x.Ga("span","fm-drag-handle"),this.Qw.Gg("hidden",
"true"))}n6(a,c){return null==a?a:a.replace(new RegExp("("+c.ud+")","i"),'<b class="fm-search-highlight">$&</b>')}nb(){const a=this.getData();this.G.empty();var c=null!=this.wx?(0,this.wx)(a):a.ck?a.H2+" / "+a[this.ur()]:a[this.ur()];this.mp.html(void 0!==a.ud?this.n6(c,a):c);this.mp.attr("title",c+(e.ka(a.description)?"":`\n${a.description}`));this.zc(c);this.G.append(this.mp);1==a.tg&&!a.gh&&1==a.Jl&&1<a.Wc.length&&e.model.C.F.Jl&&(this.v0(),this.G.append(this.sw));!0===a.tg&&!0===a.Qa&&(this.w0(),
this.G.append(this.vw));this.x0();this.G.append(this.Qw);this.G.ab("fm-measure",!0===a.tg);this.G.ab("fm-values",!0===a.aV);this.G.ab("fm-selected",!0===a.Ad);this.G.ab("fm-level",!0===a.ck)}}f.aY=b})(h.Li||(h.Li={}))})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Li.GB{constructor(a=null){super();this.data=a;this.A0();this.UL()}A0(){null==this.PD&&(this.PD=new x.Ga("span","fm-icon-display"),this.PD.Gg("hidden","true"))}Qxa(){null==this.N3&&(this.N3=new x.Ga("span","fm-moreicon-display"),this.N3.Gg("hidden","true"))}UL(){null==this.mp&&(this.mp=new x.Ga("span","fm-text-display"))}v0(){null==this.sw&&(this.sw=new x.Ga("span","fm-aggr-display"),this.sw.attr("title",e.model.B.j.j$),this.sw.Gg("hidden",
"true"))}w0(){null==this.vw&&(this.vw=new x.Ga("span","fm-calc-display"),this.vw.attr("title",e.model.B.j.h$),this.vw.Gg("hidden","true"))}x0(){null==this.Qw&&(this.Qw=new x.Ga("span","fm-drag-handle"),this.Qw.Gg("hidden","true"))}n6(a,c){return null==a?a:a.replace(new RegExp("("+c.ud+")","i"),'<b class="fm-search-highlight">$&</b>')}nb(){const a=this.getData();this.G.empty();this.G.append(this.PD);a.ej&&(this.Qxa(),this.G.append(this.N3));var c=this.I();this.mp.html(void 0!==a.ud?this.n6(c,a):c);
this.mp.attr("title",this.I()+(e.ka(a.description)?"":`\n${a.description}`));this.G.append(this.mp);!0===a.tg&&!a.gh&&!0!==a.Qa&&1<a.Wc.length&&e.model.C.F.Jl&&"right"!=e.model.C.F.jD&&(this.v0(),this.G.aa("fm-has-aggs"),this.G.append(this.sw));!0!==a.tg||!0!==a.Qa||!0!==a.Jl&&!e.model.C.F.tu||(this.w0(),this.G.append(this.vw));a.Df||a.gv?null!=this.Qw&&this.Qw.remove():(this.x0(),this.G.append(this.Qw));c=!0===a.Ad||null!=a.jh&&!0===a.jh.Ad;for(var d=1;10>d;d++)this.G.ab("fm-level-"+d,a.level===
d);this.G.ab("fm-selected",!0===c);this.G.ab("fm-checked",!0!==a.Df&&!0!==a.ck&&!0===c||1==a.ck&&!0===c);this.G.ab("fm-unchecked",!0!==a.Df&&!0!==a.ck&&!0!==c||1==a.ck&&!0!==c);this.G.ab("fm-measure",a.sx&&(!0===a.tg&&!0!==a.gh||a.$fa||a.ux||a.HDa));this.G.ab("fm-folder",!0===a.Df||!0===a.ej);this.G.ab("fm-level-folder",!0===a.ej);this.G.ab("fm-level",!0===a.ck);this.G.ab("fm-measures-folder",!0===a.gv&&!0!==a.gh);this.G.ab("fm-measures-calculated-folder",!0===a.gv&&!0!==a.gh&&!0===a.YH);this.G.ab("fm-kpis-folder",
!0===a.gh&&!0===a.Df);this.G.ab("fm-kpi",!0===a.gh&&!0!==a.Df);this.G.ab("fm-calculated",!0===a.Qa);this.G.ab(l.Y.W.ya.DX,(!0===a.Df||!0===a.ej)&&!0!==a.dg);this.G.ab(l.Y.W.ya.SX,(!0===a.Df||!0===a.ej)&&!0===a.dg);this.zc(this.I());this.Dba(!0===c);!0!==a.Df&&!0!==a.ej||this.Cba(!0===a.dg)}}f.FQ=b})(h.Li||(h.Li={}))})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{Sa(){const d={};e.v(this.qb)||(d.pages=this.qb.map(g=>g.Sa()));e.v(this.rows)||(d.rows=this.rows.map(g=>g.Sa()));e.v(this.Ka)||(d.columns=this.Ka.map(g=>g.Sa()));e.v(this.Da)||(d.measures=this.Da.map(g=>g.Sa()));e.v(this.Zg)||(d.flatOrder=this.Zg.slice());e.v(this.$g)||(d.flatSort=this.$g.slice());e.v(this.Nj)||(d.sorting=this.Nj);return d}}f.rra=b;class a{Sa(){const d={};e.v(this.A)||(d.uniqueName=this.A);e.v(this.$)||(d.aggregation=this.$);
e.v(this.zf)||(d.activeLevelName=this.zf);return d}static ET(d){const g=new a;g.A=d.A;d.tg&&(g.$=d.$,g.Q2=d.Q2);d.ck&&(g.zf=d.A,g.A=d.bh);return g}}f.GQ=a;class c{static QL(d){const g=[];for(let k=0;k<d.length;k++)g.push(c.OS(d[k]));return g}static dX(d){return d.ej||d.Df?c.BMa(d):c.JMa(d)}static BMa(d){const g={caption:d.caption,isFolder:!0};void 0!==d.YH&&d.YH&&(g.isCalculated=d.YH);void 0!==d.gv&&(g.isMeasureFolder=d.gv);e.v(d.parent)||(g.folder=void 0!==d.eH?d.eH:d.parent.caption);void 0!==d.gh&&
d.gh&&(g.isKPI=d.gh);return g}static JMa(d){const g={caption:d.caption,isFolder:!1};void 0!==d.Qa&&d.Qa&&(g.isCalculated=d.Qa);void 0!==d.gh&&d.gh&&(g.isKPI=d.gh);void 0!==d.Mg&&void 0!==d.Oc&&d.gh?g.folder=d.Mg+"/"+d.Oc:void 0!==d.Mg?g.folder=d.Mg:void 0!==d.Oc&&0<d.Oc.length?g.folder=d.Oc:!e.v(d.parent)&&d.parent.ck?g.folder=d.H2:e.v(d.parent)||(g.folder=d.eH);return g}static OS(d){const g=d.Wc,k=new f.sj;k.A=d.A;k.caption=d.caption;k.name=d.Bl;k.type=d.type;k.$=d.$;k.Qa=d.Qa;k.Oc=d.Oc;k.Mg=d.Mg;
k.xr=d.xr;k.gh=d.gh;k.Wc=g;k.xL=e.u.i.ea.G_(g);k.tw=e.u.i.ea.sba(g);k.sx=d.sx();k.description=d.description;return k}}f.sj=c})(h.W||(h.W={}))})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{get Yc(){return this.fe}set Yc(a){this.fe=a}constructor(a){this.Yqa=40;this.Zt=null;this.yo=a}get Na(){return this.Zo?this.uA:this.vb}set Na(a){this.vb=a}n3(){return 0<this.BCa().length}fz(){this.ud="";this.uA=null}get YU(){return(e.model.C.F.U5||this.Na&&this.Na.length>this.Yqa)&&this.yo!=e.u.i.ra.Cc}get Zo(){return!e.ka(this.ud)}search(a){a=a.toLowerCase();if(this.ud!=a){this.ud=a;this.uA=[];for(var c=0;c<this.vb.length;c++){var d=this.vb[c];
e.P.contains(d.caption,a)&&(d.ud=this.ud,this.uA.push(d))}}}f2(){for(var a=0,c=0;c<this.Na.length;c++)this.Na[c].Ad&&a++;return 0==a?0:a==this.Na.length?1:-1}BCa(){const a=[];if(!e.v(this.vb))for(let c=0;c<this.vb.length;c++)this.vb[c].Ad&&a.push(this.vb[c]);return a}get XD(){return(!e.model.Wa.R().Fa.ga.Ec||e.model.Wa.R().Fa.ga.Aa===e.u.i.ra.API)&&e.model.C.F.P5||e.model.C.F.tu&&e.model.Wa.R().Fa.ga.Aa===e.u.i.ra.Cc}get CU(){return this.XD&&!this.Yc.kb}OI(a,c){if(0!==c.length||!e.v(this.Zt))if(e.v(this.Zt))a.sort((d,
g)=>this.Rca(d,g,c));else{const d=[];let g=[];if(0<c.length){for(let m=0;m<a.length;m++)a[m].Ad?d.push(a[m]):g.push(a[m]);d.sort((m,n)=>this.Rca(m,n,c))}else g=a;const k=this.CBa();g.sort((m,n)=>this.Zt(h.W.sj.dX(m),h.W.sj.dX(n),k));this.Na=[...d,...g]}}CBa(){return this instanceof f.D8?"flat":"drillThrough"}Rca(a,c,d){const g=this.OM(a,d);d=this.OM(c,d);return g==d?a.caption.localeCompare(c.caption):d-g}OM(a,c){return a.Ad?c.length-c.indexOf(a.A):0}yl(a){for(var c=0;c<this.Na.length;c++)this.Na[c].Ad=
0<=a.indexOf(this.Na[c].A)}FBa(a){return this.GMa(this.Na,a)}GMa(a,c){for(var d=[],g=0;g<c.length;g++){var k=a[c[g]];k.Ad&&d.push({A:k.A,$:k.$})}return d}fka(a,c){for(var d=[],g=0;g<c.length;g++){var k=a[c[g]];k.Ad&&d.push(k)}return d}}f.d7=b})(h.flat||(h.flat={}))})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.d7{constructor(a){super(a);this.Gn=null}update(a,c,d){this.fe=a;this.Pb=c;this.Zt=d;this.OO();this.Fq()}OO(){this.Na=[];for(var a=this.fe.vc(!1),c=0;c<a.length;c++){var d=a.fa(c),g=this.fe.nf(d.A);e.v(g)||g.type==e.u.i.Ra.wc||g.type==e.u.i.Ra.Ua||this.Pb.rows.Bb(g.A)||this.Pb.Ka.Bb(g.A)||this.Pb.qb.Bb(g.A)?this.Na.push(this.ixa(d)):this.Na.push(this.OS(g))}a=this.fe.gr;for(c=0;c<a.length;c++)g=a.fa(c),this.Na.push(this.OS(g))}Fq(){if(null!==
this.Gn)this.Na=this.Gn.hierarchies,this.Z_();else{var a=this.Pb.flatten(!0,!0).Pc(!0);this.yl(a);this.rLa(this.Pb.gd());this.OI(this.Na,a)}}rLa(a){for(var c=0;c<a.length;c++){var d=this.Jza(a[c].A);e.v(d)||(d.$=a[c].$)}}Jza(a){for(var c=0;c<this.vb.length;c++)if(this.vb[c].A==a)return this.vb[c];return null}OS(a){var c=new h.W.sj;c.A=a.A;c.caption=a.Bl;c.$=a.$;c.Qa=a.Qa;a=a.Wc;c.Wc=a;c.xL=e.u.i.ea.G_(a);c.tw=e.u.i.ea.sba(a);c.tg=!0;c.Jl=e.model.C.F.Jl;return c}ixa(a){var c=new h.W.sj;c.A=a.A;c.caption=
a.caption;return c}YM(a){var c=this.Pb.clone(),d=this.fka(this.Na,a),g=d.map(r=>r.A),k=c.flatten(!0,!0);a=c.gd();for(var m=0;m<k.length;m++){var n=k.fa(m).A;if(0>g.indexOf(n)){c.qb.Bb(n)&&c.qb.removeItem(n);c.Ka.Bb(n)&&c.Ka.removeItem(n);c.rows.Bb(n)&&c.rows.removeItem(n);let r=this.fe.nf(n);e.v(r)&&(r=this.fe.gr.getItem(n));e.v(r)||(n=a.findIndex(v=>v.A===r.A),-1<n&&a.splice(n,1))}}for(m=0;m<d.length;m++)if(n=d[m].A,!k.Bb(n)){var p=this.fe.uh(n),t=this.fe.fd(n);e.v(t)||e.v(p)||t.type==e.u.i.Ra.wc||
p.type==e.u.i.Ic.Ua?e.v(p)?this.fe.gr.Bb(n)&&a.push(this.fe.gr.getItem(n)):c.rows.Ta(n,p):a.push(t)}for(m=0;m<d.length;m++)if(k=d[m],k.$)for(n=0;n<a.length;n++)a[n].A==k.A&&(a[n].$=k.$);c.Zg=g;for(d=0;d<a.length;d++)a[d].index=d;c.zA(a);return c}Os(){return null!=this.fe?h.W.sj.QL(this.fe.Da.Pc()):[]}pv(a){if(null!=this.Pb&&null!=this.fe){const c=this.Os().find(d=>d.A===a);if(null!=c){c.Ad=!0;let d=0;for(let g=0;g<this.Na.length;g++)this.Na[g].Ad&&(d=g);this.Na=[...this.Na.slice(0,d+1),c,...this.Na.slice(d+
1)]}}}qv(a){if(null!=this.Pb&&null!=this.fe){const c=this.Na.findIndex(d=>d.A===a);this.Na.splice(c,1);this.j6()}}Z_(){this.Gn=null}j6(){this.Gn={hierarchies:this.Na}}ZU(a){var c=this.Pb.flatten(!0,!0).Pc();if(a.length!=c.length)return!0;for(var d=0;d<a.length;d++){var g=a[d],k=c[d];if(g.A!=k.A||void 0!=g.$&&void 0!=k.$&&g.$!=k.$)return!0}return!1}RE(a){this.Pb=a}}f.D8=b})(h.flat||(h.flat={}))})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends w.Mh{constructor(a,c){super();this.type="flat";this.iw=!1;this.xO=()=>{const d=e.u.Ma.R();this.update(d.O,d.qa,d.ga.Aa)};this.bz=d=>this.pv(d);this.cz=d=>this.qv(d);this.dz=()=>this.LN();this.Db=this.US(e.u.Ma.R().ga.Aa);this.iw=c;this.view=this.zca(a);this.view.N(w.ia.CLOSED,d=>this.Ha(d));this.view.ei&&this.view.ei.N(x.Qd.uf,()=>this.pE());this.view.Qe&&this.view.Qe.N(x.Qd.uf,()=>this.at());null!=this.view.qg&&this.view.qg.N(w.ia.Xd,
d=>this.T3(d));this.view.gb&&(this.view.gb.G.N("click",d=>this.o4(d)),this.view.gb.G.N("keydown",d=>this.p4(d)),this.view.gb.G.Ls({en:(d,g,k,m)=>this.en(d,g,k,m),dn:(d,g,k,m)=>this.dn(d,g,k,m),om:(d,g,k,m)=>this.om(d,g,k,m),$z:"li",scroll:!0}));this.view.ae&&this.view.ae.N(w.ia.Xd,()=>this.R4());this.view.Ai&&this.view.Ai.N(x.Qd.uf,()=>this.yV());this.view.ie&&(this.view.ie.yW(500),this.view.ie.N(x.Sj.oy,()=>this.RN()));this.view.pe&&(this.view.pe.N("click",()=>this.ct()),this.view.pe.N("keydown",
d=>this.lA(d,!1)));this.view.jj&&(this.view.jj.N("click",()=>this.dt()),this.view.jj.N("keydown",d=>this.lA(d,!0)))}get Ve(){return this.iw}zca(a){return this.Ve?new f.doa:new f.E8(a)}US(a){return new f.D8(a)}lA(a,c){if(32===a.keyCode||13===a.keyCode)c?this.dt():this.ct()}ct(){this.view.$e.aa("fm-search-opened-flat");this.view.ie.G.focus()}dt(){this.view.$e.Hd("fm-search-opened-flat");this.view.ie.clear();this.view.pe.G.focus()}dn(a,c,d,g){g instanceof MouseEvent?(d=x.Ga.Yb(g.target),g=g.clientY):
(g=g.changedTouches[0],d=x.Ga.Yb(document.elementFromPoint(g.clientX,g.clientY)),g=g.clientY);d.Sc("fm-drop-indicator")||(this.sm(),a&&a.closest("ul")&&(c&&c.aa("fm-droppable-valid"),a.aa("fm-drag-over"),this.VE(d,g)))}om(a,c){this.sm();a&&a.closest("ul")&&(c&&c.Hd("fm-droppable-valid"),c&&c.Hd("fm-droppable-invalid"),a.Hd("fm-drag-over"))}RN(){this.Db.search(this.view.ie.bj());this.view.gb.G.ab("fm-searched",this.Db.Zo);this.view.gb.gg(this.Db.Na);this.lM()}T3(a){this.yA(a.data.nM,a.data.F_)}yA(a,
c){a.$=c.$;this.view.gb.Rr(a);c=this.Db.Na.find(d=>d.A===a.A);null!=c&&(c.$=a.$,c.caption=a.caption);this.Ve&&this.ge()}en(a){if(null!=this.xd)if(a&&a.closest("ul")){a=parseInt(a.attr("data-index"));var c=this.view.gb.Bc()[a],d=this.view.gb.Bc().length;this.xd.element.previousElementSibling?d=parseInt(this.xd.element.previousElementSibling.getAttribute("data-index"))+1:this.xd.element.nextElementSibling&&(d=parseInt(this.xd.element.nextElementSibling.getAttribute("data-index")));this.sm();this.Zs(a,
d);this.view.gb.Ni(this.view.gb.Bc().indexOf(c));this.view.gb.G.Sx(this.view.gb.G.element.scrollTop);this.view.gb.jO(d)}else this.sm()}Zs(a,c){if(a!=c){var d=this.view.gb.Bc();a<c&&--c;d.splice(c,0,d.splice(a,1)[0]);this.view.gb.Sr();this.yt();this.lM();this.Ve&&this.ge()}}wO(){this.iw&&e.u.Ma.R().N(e.u.Dy.nK,this.xO)}vO(){this.iw&&e.u.Ma.R().rb(e.u.Dy.nK,this.xO)}ap(){this.view.open();this.wO()}UG(){this.view.close();this.vO()}at(){this.Ve?e.Cg.instance.GL():this.UG()}pE(){this.view.ie&&this.Db.Zo&&
(this.view.ie.clear(!1),this.Db.fz(),this.view.gb.gg(this.Db.Na),this.lM());this.ge();this.UG()}R4(){for(var a=this.view.ae.checked,c=this.Db.Na,d=0;d<c.length;d++)c[d].Ad=a;this.view.gb.Sr();this.yt();this.lM();this.Ve&&this.ge()}p4(a){if(32===a.keyCode||13===a.keyCode){if(this.view.aj){const c=this.view.gb.Su();if(e.v(c))return;const d=[];d.push({label:c.data.Ad?e.model.B.j.WX:e.model.B.j.fna,handler:()=>this.Wh(3,c.data,c.index)});0<c.index&&d.push({label:e.model.B.j.l8,handler:()=>this.Wh(4,c.data,
c.index)});c.index<this.view.gb.Bc().length-1&&d.push({label:e.model.B.j.g8,handler:()=>this.Wh(5,c.data,c.index)});c.data.tg&&d.push({label:e.model.B.j.VX,submenu:this.Fz(c.data)});c.data.Qa&&d.push({label:e.model.B.j.XX,handler:()=>this.Wh(10,c.data,c.index)});this.view.aj.gp(this.view.G,d,c.element.sg(),{top:10,left:10})}a.preventDefault()}}Fz(a){const c=[];for(let d=0;d<a.Wc.length;d++){const g={caption:a.xL[d],$:a.Wc[d]};void 0!=a.tw&&(g.eX=a.tw[d]);c.push({label:e.u.i.ea.HG(a.Wc[d]),isSelected:a.Wc[d]==
a.$,handler:()=>this.yA(a,g)})}return c}Wh(a,c,d){3==a?(c.Ad=!c.Ad,this.view.gb&&this.view.gb.xt(d),this.view.ae&&this.view.ae.Jf(this.Db.f2()),this.yt(),this.Ve&&this.ge()):4==a?(this.Zs(d,d-1),this.view.gb.Ni(d-1)):5==a?(this.Zs(d,d+2),this.view.gb.Ni(d+1)):10==a&&this.tI(c.A)}o4(a){const c=this.view.gb.mD(a.target);e.v(c)||(a=x.Ga.Yb(a.target),a.Sc("fm-aggr-display")?this.view.qg.gp(c.data,a):a.Sc("fm-calc-display")?this.Wh(10,c.data,c.index):this.Wh(3,c.data,c.index))}tI(a=null){this.view.WI=
!0;e.model.Wa.R().Ha(new l.Qa.HX(a));e.model.Wa.R().N(l.Qa.pk.WA,this.dz);e.model.Wa.R().N(l.Qa.pk.UA,this.bz);e.model.Wa.R().N(l.Qa.pk.VA,this.cz)}yV(){this.tI()}pv(a){e.model.Wa.R().rb(l.Qa.pk.UA,this.bz);this.Db.pv(a.Vs);this.kn();this.Ve&&this.ge()}qv(a){e.model.Wa.R().rb(l.Qa.pk.VA,this.cz);this.Db.qv(a.Vs);this.kn();this.Ve&&this.ge()}LN(){this.view.WI=!1;e.model.Wa.R().rb(l.Qa.pk.WA,this.dz);this.view.gb.focus({preventScroll:!0})}kn(){this.view.reset&&this.view.reset();this.view.$e&&this.view.$e.isVisible(this.Db.YU);
this.view.ie&&(this.view.ie.clear(!1),this.Db.fz());this.view.gb&&(this.view.gb.gg(this.Db.Na),this.yt(),this.lM());this.view.Ai&&(this.view.Ai.isVisible(this.Db.XD),this.view.Ai.Bq(this.Db.CU))}lM(){var a={Mo:g=>this.view.Mo(g)};u.Nd().im&&(a.nU=".fm-drag-handle");for(var c=this.view.gb.G.find("li",!0),d=0;d<c.length;d++)c[d].draggable(a)}update(a,c){e.v(a)||e.v(c)||(this.Db.update(a,c,h.vp.rT),this.kn(),this.view.ae&&this.view.ae.Jf(this.Db.f2()),this.view.ye())}yt(){this.view.ei&&this.view.ei.Bq(this.Db.n3())}ge(){for(var a=
[],c=this.view.gb.G.find("li",!0),d=0;d<c.length;d++){var g=parseInt(c[d].attr("data-index"));a.push(g)}c=this.Db.FBa(a);this.Db.ZU(c)&&(a=this.Db.YM(a),this.Ve&&a instanceof e.u.O.Tq&&(a.J3=!1,e.Cg.instance.FE(),this.Db.RE(a)),this.vO(),e.model.Wa.R().ge(a),this.wO())}VE(a,c){const d=a.closest("li");null!=d?(this.xd=this.Jw(),a=d.getBoundingClientRect(),c>a.top+a.height/2?d.after(this.xd):d.before(this.xd)):(c=a.closest("ul"),null!=c&&(this.xd=this.Jw(),c.append(this.xd)))}Jw(){return new x.Ga("div",
"fm-drop-indicator")}sm(){this.xd&&(this.xd.Qg(!0),this.xd=null)}}f.bY=b})(h.flat||(h.flat={}))})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.ce.Fy{constructor(a){super(a);this.aa("fm-flat-fields");this.Ke();this.G.cm();this.G.ij({RW:[x.ij.ti.pi],LS:l.Sb.Jb.G,H_:!0,resize:c=>this.TN(c),complete:()=>this.Pp()})}TN(a){a.WE==x.ij.ti.pi&&this.Mr(a.size.height)}Ke(){var a=new x.Pa("div","fm-popup-header fm-ui-row");this.X(a);var c=new x.Pa("div","fm-ui-col fm-vam");a.X(c);this.yx=new x.Tc(e.model.B.j.qy);this.yx.aa("fm-popup-title");c.X(this.yx);this.xx=new x.Tc(e.model.B.j.n8);
this.xx.aa("fm-popup-subtitle");c.X(this.xx);c=new x.Pa("div","fm-ui-col fm-vam fm-tar fm-ui-btns-row");a.X(c);this.Ai=new x.Vg("fm-btn-add-measure fm-ui-btn-light fm-icon-act_calc");c.X(this.Ai);this.Qe=new x.Vg;this.Qe.fb(e.model.B.j.xm);this.ei=new x.Vg("fm-ui-btn-dark");this.ei.fb(e.model.B.j.my);u.uj.aE||u.uj.Yo?(c.X(this.Qe),c.X(this.ei)):(c.X(this.ei),c.X(this.Qe));a=new x.Pa("div","fm-popup-content");this.X(a);c=new x.Pa("div","fm-list-wrap");a.X(c);var d=new x.Pa("div","fm-list-header");
c.X(d);this.ae=new x.pK;this.ae.aa("fm-select-all-cbx");this.ae.fb(e.model.B.j.Lv);d.X(this.ae);this.$e=new x.Pa("div","fm-search-wrap");d.X(this.$e);this.pe=new x.Pa("a","fm-search-btn");this.pe.af(0);this.pe.Wk("button");this.$e.X(this.pe);d=new x.Pa("span","fm-ui-icon fm-icon-act_search");this.pe.X(d);this.ie=new x.Sj;this.ie.aa("fm-search-inp-flat");this.$e.X(this.ie);this.jj=new x.Pa("span","fm-close-search fm-ui-icon fm-icon-act_close");this.jj.af(0);this.jj.Wk("button");this.$e.X(this.jj);
d=new x.Pa("div","fm-list-content");c.X(d);this.gb=new x.Bd.vj;this.gb.aa("fm-lst-hierarchies");this.gb.af();this.gb.mi(this.KE);this.gb.xg("caption");d.X(this.gb);this.qg=new h.kJ;this.qg.aa("fm-aggregations-view");this.qg.$a();a.X(this.qg);this.aj=new x.mr.XF(a.G);this.aj.$a();a.X(this.aj)}KE(a,c){var d=new h.Li.FQ(a,c);d.setData(a);d.hn(c);return d}ye(){this.yx.fb(e.model.B.j.qy);this.xx.fb(e.model.B.j.n8);this.Qe.fb(e.model.B.j.xm);this.ei.fb(e.model.B.j.my);this.ae.fb(e.model.B.j.Lv);this.Ai.ni(e.model.B.j.hB);
this.zc(e.model.B.j.qy);this.yx.Eo();this.xx.Eo();this.gb.zc(e.model.B.j.Jv);this.pe.zc(e.model.B.j.zP);this.ie.zc(e.model.B.j.zP);this.jj.zc(e.model.B.j.p8)}reset(){this.$e.Hd("fm-search-opened-flat");this.ie.clear(!1)}Mo(a){var c=new x.Ga("span");c.aa("fm-drag-handle");c.aa("fm-helper");c.aa("fm-draggable");c.ab("fm-values",a.Sc("fm-values"));c.V("width",a.V("width"));c.V("position","absolute");c.V("z-index",100);c.attr("data-index",a.attr("data-index"));c.text(a.text());return c}}f.E8=b})(h.flat||
(h.flat={}))})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.ce.sk{constructor(){super();this.aa("fm-flat-fields");this.aa("fm-instant-view");this.Ke()}Ke(){var a=new x.Pa("div","fm-popup-content");this.X(a);var c=new x.Pa("div","fm-list-wrap fm-list-wrap-all");a.X(c);var d=new x.Pa("div","fm-list-header");c.X(d);this.ae=new x.pK;this.ae.aa("fm-select-all-cbx");this.ae.fb(e.model.B.j.Lv);d.X(this.ae);this.Ai=new x.Vg("fm-btn-add-measure");d.X(this.Ai);this.Qe=new x.Vg("fm-btn-close-fields");
d.X(this.Qe);d=new x.Pa("div","fm-list-content");c.X(d);this.gb=new x.Bd.vj;this.gb.aa("fm-lst-hierarchies");this.gb.af();this.gb.mi(this.KE);this.gb.xg("caption");d.X(this.gb);this.qg=new h.kJ;this.qg.aa("fm-aggregations-view");this.qg.$a();a.X(this.qg);this.aj=new x.mr.XF(a.G);this.aj.$a();a.X(this.aj)}KE(a,c){var d=new h.Li.FQ(a,c);d.setData(a);d.hn(c);return d}ye(){this.ae.fb(e.model.B.j.Lv);this.Ai.ni(e.model.B.j.hB);this.zc(e.model.B.j.qy);this.gb.zc(e.model.B.j.Jv);this.Qe.zc(e.model.B.j.CJ)}Mo(a){var c=
new x.Ga("span");c.aa("fm-drag-handle");c.aa("fm-helper");c.aa("fm-draggable");c.ab("fm-values",a.Sc("fm-values"));c.V("width",a.V("width"));c.V("position","absolute");c.V("z-index",100);c.attr("data-index",a.attr("data-index"));c.text(a.text());return c}open(){this.show();this.Ya(w.ia.OPENED)}close(){this.$a();this.Ya(w.ia.CLOSED)}}f.doa=b})(h.flat||(h.flat={}))})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.ce.Fy{constructor(){super(l.Sb.Jb.G);this.iNa=()=>this.SN();this.aa("fm-calculated-view");this.G.cm();this.tE.aa("fm-calculated-view-overlay");this.Se=new h.dma;this.Se.N(w.ia.eP,()=>this.close());this.X(this.Se.view);this.N(w.ia.CLOSED,this.iNa)}SN(){e.model.Wa.R().Ha(new l.Qa.hma)}ap(b){this.Se.update(b);this.open();this.Se.view.Ar.focus({preventScroll:!0});this.ye()}ye(){this.zc(e.model.B.j.AX)}close(){super.close();this.Se.clear()}}f.kL=
!1;h.tF=f})(l.Qa||(l.Qa={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{}f.UA="event_calculated_value_added";f.VA="event_calculated_value_removed";f.h7="calculated_view_open";f.WA="calculated_view_close";h.pk=f;class b extends w.ia{constructor(g){super(f.UA);this.Vs=g}}h.fma=b;class a extends w.ia{constructor(g){super(f.VA);this.Vs=g}}h.gma=a;class c extends w.ia{constructor(g=null){super(f.h7);this.Vs=g}}h.HX=c;class d extends w.ia{constructor(){super(f.WA)}}h.hma=d})(l.Qa||(l.Qa={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.Fta="- 2";this.ma=e.model.Wa.R();this.B1=[{name:"_addBtn",label:"+",pf:"CALCULATED_VIEW_FUNC_ADD",Kk:e.u.i.rc.VO},{name:"_subtractBtn",label:"-",pf:"CALCULATED_VIEW_FUNC_SUBTRACT",Kk:e.u.i.rc.EQ},{name:"_multiplyBtn",label:"\u00d7",pf:"CALCULATED_VIEW_FUNC_MULTIPLY",Kk:e.u.i.rc.nQ},{name:"_divideBtn",label:"\u00f7",pf:"CALCULATED_VIEW_FUNC_DIVIDE",Kk:e.u.i.rc.yJ},{name:"_powerBtn",label:"^",pf:"CALCULATED_VIEW_FUNC_POWER",Kk:e.u.i.rc.xY},
{name:"_equalBtn",label:"=",pf:"CALCULATED_VIEW_FUNC_EQUAL",Kk:e.u.i.rc.EQUAL},{name:"_lessBtn",label:"<",pf:"CALCULATED_VIEW_FUNC_LESS",Kk:e.u.i.rc.LESS},{name:"_greaterBtn",label:">",pf:"CALCULATED_VIEW_FUNC_GREATER",Kk:e.u.i.rc.GREATER},{name:"_lessOrEqualBtn",label:"\u2264",pf:"CALCULATED_VIEW_FUNC_LESS_EQUAL",Kk:e.u.i.rc.X8},{name:"_greaterOrEqualBtn",label:"\u2265",pf:"CALCULATED_VIEW_FUNC_GREATER_EQUAL",Kk:e.u.i.rc.I8},{name:"_notEqualBtn",label:"!=",pf:"CALCULATED_VIEW_FUNC_NOT_EQUAL",Kk:e.u.i.rc.Tf},
{name:"_orBtn",label:"OR",pf:"CALCULATED_VIEW_FUNC_OR",Kk:e.u.i.rc.L9},{name:"_andBtn",label:"AND",pf:"CALCULATED_VIEW_FUNC_AND",Kk:e.u.i.rc.L6},{name:"_ifBtn",label:"IF",pf:"CALCULATED_VIEW_FUNC_IF",Kk:e.u.i.rc.NP},{name:"_absBtn",label:"ABS",pf:"CALCULATED_VIEW_FUNC_ABS",Kk:e.u.i.rc.oX},{name:"_roundBtn",label:"RD",pf:"CALCULATED_VIEW_FUNC_ROUND",Kk:e.u.i.rc.EY},{name:"_minBtn",label:"MIN",pf:"CALCULATED_VIEW_FUNC_MIN",Kk:e.u.i.rc.MIN},{name:"_maxBtn",label:"MAX",pf:"CALCULATED_VIEW_FUNC_MAX",Kk:e.u.i.rc.MAX}]}search(b){b=
b.toLowerCase().trim();if(this.ud!==b){this.ud=b;this.D5=[];var a=this.ff.length;for(let c=0;c<a;c++){const d=this.ff[c];e.P.contains(d.caption,b)&&(d.ud=b,this.D5.push(d))}}}get Zo(){return!e.ka(this.ud)}fz(){this.ud="";this.D5=null}update(b){this.ff=l.qd.W.sj.QL(this.ma.ja.O.Da.Pc());this.fz();e.ka(b)||(this.yj=this.ma.ja.O.fd(b))}get Jl(){return!this.ma.ja.ga.Ec||this.ma.ja.ga.Aa==e.u.i.ra.API}get W5(){return this.ma.ja.ga.Aa!=e.u.i.ra.API}Os(){e.v(this.ff)&&(this.ff=l.qd.W.sj.QL(this.ma.ja.O.Da.Pc()));
return this.Zo?this.D5:this.ff}EE(b){h.tF.kL=!0;this.ma.qA(b.A);this.ma.Ha(new h.gma(b.A));e.ve(()=>{h.tF.kL=!1},1E3)}zk(b,a="",c=!1){a=a.trim();a=0<a.length?a:this.OAa();let d;if(null!=this.yj){if(this.yj.caption!=a||this.yj.Ge!=b||this.yj.Lk!=c)d={uniqueName:this.yj.A,caption:a,formula:b,individual:c,type:this.yj.type}}else{do a=null!=this.ma.ja.O.Da.getItem(a)?a+" "+this.Fta:a;while(null!=this.ma.ja.O.Da.getItem(a));d={uniqueName:a,caption:a,formula:b,individual:c,type:e.u.i.Ra.jb}}null!=d&&(h.tF.kL=
!0,l.qd.cu.O9.i1=!0,this.ma.ja.lu(d,!1),this.ma.Ha(new h.fma(d.uniqueName)),e.ve(()=>{h.tF.kL=!1},1E3))}OAa(){let b=e.model.B.j.cP+" #",a=0;const c=this.ma.ja.O.gr,d=new RegExp(e.model.B.j.cP+" #");for(let g=0;g<c.length;g++){const k=c.fa(g).A;d.test(k)&&(a=Math.max(a,Number(k.substr(e.model.B.j.cP.length+2))))}return b+(a+1)}}h.ema=f})(l.Qa||(l.Qa={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends w.Mh{constructor(){super();this.Gaa=new RegExp(/(["'])(?:(?=(\\?))\2.)*?\1/g);this.ma=new h.ema;this.view=new h.ima(this);this.view.Lx&&this.view.Lx.N(x.Qd.uf,()=>this.pIa());this.view.ie&&(this.view.ie.yW(500),this.view.ie.N(x.Sj.oy,()=>this.RN()));this.view.pe&&(this.view.pe.N("click",()=>this.ct()),this.view.pe.N("keydown",b=>this.lA(b,!1)));this.view.jj&&(this.view.jj.N("click",()=>this.dt()),this.view.jj.N("keydown",b=>this.lA(b,!0)));this.view.Ub&&
(this.view.Ub.G.N("click",b=>this.LHa(b)),this.view.Ub.G.N("dblclick",b=>this.MHa(b)),this.view.Ub.G.N("keydown",b=>this.SHa(b)),this.view.Ub.mi((b,a)=>this.Ns(b,a)));this.view.hi&&this.view.hi.G.Ls({en:b=>this.NHa(b),b4:()=>this.oha(),dn:()=>this.oha(),om:()=>this.hHa(),$z:"li"});this.view.ei&&this.view.ei.N(x.Qd.uf,()=>this.pE());this.view.Qe&&this.view.Qe.N(x.Qd.uf,()=>this.at());this.view.qg&&this.view.qg.N(w.ia.Xd,b=>this.bGa(b));if(this.view.GT)for(const b of this.view.GT)b.N(x.Qd.uf,()=>this.iHa(b))}RN(){this.ma.search(this.view.ie.bj());
this.view.Ub.G.ab("fm-searched",this.ma.Zo);this.xka()}ct(){this.view.$e.aa("fm-search-opened");this.view.ie.G.focus()}lA(b,a){if(32===b.keyCode||13===b.keyCode)a?this.dt():this.ct()}dt(){this.view.$e.Hd("fm-search-opened");this.view.ie.clear();this.view.pe.G.focus()}LHa(b){const a=x.Ga.Yb(b.target);a.Sc("fm-aggr-display")&&(b=this.view.Ub.mD(b.target),e.v(b)||this.view.qg.gp(b.data,a))}MHa(b){b=this.view.Ub.mD(b.target);e.v(b)||this.A_(b.data)}SHa(b){if(32===b.keyCode||13===b.keyCode){if(this.view.aj){const a=
this.view.Ub.Su();if(e.v(a))return;const c=[];c.push({label:e.model.B.j.ola,handler:()=>{this.A_(a.data)}});c.push({label:e.model.B.j.VX,submenu:this.Fz(a.data)});this.view.aj.gp(this.view.content.G,c,a.element.sg(),{top:10,left:10})}b.preventDefault()}}Fz(b){const a=[];for(let c=0;c<b.Wc.length;c++){const d={caption:b.xL[c],$:b.Wc[c]};void 0!=b.tw&&(d.eX=b.tw[c]);a.push({label:e.u.i.ea.HG(b.Wc[c]),isSelected:b.Wc[c]==b.$,handler:()=>this.yA(b,d)})}return a}oha(){this.view.hi.aa("fm-droppable-over")}hHa(){this.view.hi.Hd("fm-droppable-over")}NHa(b){this.view.hi.Hd("fm-droppable-over");
b=parseInt(b.attr("data-index"));b=this.view.Ub.Bc()[b];this.A_(b)}Ns(b,a){var c=new l.qd.Li.aY;c.setData(b);c.hn(a);c.IW(function(d){return d.name+" ("+e.u.i.ea.HG(d.$)+")"});return c}get B1(){return this.ma.B1}update(b){this.ma.update(b);this.view.CC.isVisible(this.ma.W5);null!=this.ma.yj?(this.view.G.ab("fm-with-delete-btn",!0),this.view.Ar&&this.view.Ar.ik(this.ma.yj.caption),this.view.hi&&(b=e.model.C.F.kX?this.zKa(this.ma.yj.Ge):this.ma.yj.Ge,this.view.hi.ik(b)),this.view.Lx&&this.view.Lx.isVisible(!0)):
(this.view.G.ab("fm-with-delete-btn",!1),this.view.Lx&&this.view.Lx.isVisible(!1));this.view.CC&&this.ma.W5&&(this.view.CC.checked=this.ma.yj?this.ma.yj.Lk:!1);this.view.ie&&(this.view.$e.Hd("fm-search-opened"),this.view.ie.clear(!1),this.ma.fz());this.view.ye();this.xka()}xka(){for(var b=this.ma.Os(),a=[],c=0;c<b.length;c++)null!=this.ma.yj&&this.ma.yj.A==b[c].A||b[c].gh||(b[c].tg=!0,b[c].Jl=this.ma.Jl&&!b[c].Qa,a.push(b[c]));a.sort(this.e0);if(this.view.Ub)for(this.view.Ub.gg(a),b={Mo:d=>this.view.Mo(d)},
u.Nd().im&&(b.nU=".fm-drag-handle"),a=this.view.Ub.G.find("li",!0),c=0;c<a.length;c++)a[c].draggable(b)}clear(){this.view.Ar&&this.view.Ar.ik("");this.view.hi&&this.view.hi.ik("");this.ma.yj=null}e0(b,a){return b.name>a.name?1:-1}pIa(){u.Nd().im?this.H4():this.VLa()}VLa(){if(u.uj.aE||u.uj.Yo){var b=[e.model.B.j.a7,e.model.B.j.lF];var a=[null,()=>this.H4()]}else b=[e.model.B.j.lF,e.model.B.j.a7],a=[()=>this.H4(),null];var c=e.model.Tb.valid(this.ma.yj.caption)?this.ma.yj.caption:e.model.Tb.validate(this.ma.yj.caption);
e.Va(e.model.B.j.qla,e.P.bind(e.model.B.j.rla,c),e.ob.nk,b,a)}H4(){this.ma.EE(this.ma.yj);this.close()}A_(b){if(void 0!==b){var a=e.model.C.F.kX?b.name:b.A;b.$===e.u.i.ea.NONE||void 0===b.$?this.Tz(e.P.bind('"{0}"',a)):this.Tz(e.P.bind('{0}("{1}")',b.$,a))}}bGa(b){this.yA(b.data.nM,b.data.F_)}yA(b,a){b.$=a.$;b.caption=a.caption+" of "+b.name;this.view.Ub.Rr(b)}iHa(b){b=b.data.Kk;b==e.u.i.rc.NP||b==e.u.i.rc.oX||b==e.u.i.rc.MIN||b==e.u.i.rc.MAX||b==e.u.i.rc.wo||b==e.u.i.rc.EY?this.tua(b):this.qua(b)}at(){this.close()}pE(){const b=
e.model.C.F.kX?this.yKa(this.view.hi.bj()):this.view.hi.bj();if(e.model.C.F.RO){var a=u.LP.pS(b,this.ma.yj?this.ma.yj.A:this.view.Ar.bj());if(0==a.px){e.Va(a.errorMessage);return}}a=this.ma.W5?this.view.CC.checked:!1;this.ma.zk(b,this.view.Ar.bj(),a);this.close()}yKa(b){let a=b.slice(0);const c=a.match(this.Gaa),d=e.u.Ma.R().O.Da;let g;if(e.v(c))return b;for(let k=0;k<c.length;k++){b=c[k].substring(1,c[k].length-1);for(g=0;g<d.length&&b!==d.fa(g).Bl;g++);g<d.length&&(a=a.replace(b,d.fa(g).A))}return a}zKa(b){let a=
b.slice(0);const c=a.match(this.Gaa),d=e.u.Ma.R().O.Da;if(e.v(c))return b;for(let g=0;g<c.length;g++)b=c[g].substring(1,c[g].length-1),a=a.replace(b,d.getItem(b).Bl);return a}close(){this.Ya(w.ia.eP)}Tz(b,a=0){var c=this.view.hi.G.element.selectionStart,d=this.view.hi.bj();-1==c&&(c=this.Yh);0==c||" "==d.charAt(c-1)?(this.view.hi.Tz(b+" "),this.Yh=c+b.length+1):(this.view.hi.Tz(" "+b+" "),this.Yh=c+b.length+2);this.Yh-=a;this.view.hi.Jf(this.Yh)}qua(b){this.Tz(b)}tua(b){const a=this.view.hi.G.element.selectionStart,
c=this.view.hi.G.element.selectionEnd,d=this.view.hi.bj();if(e.u.i.rc.NP==b)this.Tz(b+"("+d.slice(a,c)+", , )",6);else{let g=e.u.i.rc.MIN==b||e.u.i.rc.MAX==b?",":"";this.Tz(b+"("+d.slice(a,c)+g+")",2+g.length)}}}h.dma=f})(l.Qa||(l.Qa={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Pa{constructor(a){super();this.controller=a;this.Ke()}Ke(){var a=new x.Pa("div","fm-popup-header fm-ui-row");this.X(a);var c=new x.Pa("div","fm-ui-col fm-vam");a.X(c);this.Nr=new x.Tc(e.model.B.j.AX);this.Nr.aa("fm-popup-title");c.X(this.Nr);c=new x.Pa("div","fm-ui-col fm-vam fm-tar fm-ui-btns-row");a.X(c);this.Lx=new x.Vg("fm-ui-btn-light fm-icon-act_trash fm-remove-btn");this.Lx.G.attr("title",e.model.B.j.i7);c.X(this.Lx);this.Qe=new x.Vg("fm-ui-btn");
this.Qe.fb(e.model.B.j.xm);this.ei=new x.Vg("fm-ui-btn-dark");this.ei.fb(e.model.B.j.my);u.uj.aE||u.uj.Yo?(c.X(this.Qe),c.X(this.ei)):(c.X(this.ei),c.X(this.Qe));this.content=a=new x.Pa("div","fm-popup-content");this.X(a);this.Ar=new x.Sj;this.Ar.aa("fm-name-input");this.Ar.PE(e.model.B.j.zX);a.X(this.Ar);c=new x.Pa("div","fm-list-header fm-list-header-wide");a.X(c);var d=new x.Pa("div","fm-list-header-label-wrap");c.X(d);var g=new x.Tc(e.model.B.j.Jv);d.X(g);this.$e=new x.Pa("div","fm-search-wrap");
c.X(this.$e);this.pe=new x.Pa("a","fm-search-btn");this.pe.af(0);this.pe.Wk("button");this.$e.X(this.pe);c=new x.Pa("span","fm-ui-icon fm-icon-act_search");this.pe.X(c);this.ie=new x.Sj;this.ie.aa("fm-search-inp");this.$e.X(this.ie);this.jj=new x.Pa("span","fm-close-search fm-ui-icon fm-icon-act_close");this.jj.af(0);this.jj.Wk("button");this.$e.X(this.jj);c=new x.Pa("div","fm-list-content");a.X(c);this.Ub=new x.Bd.vj;this.Ub.aa("fm-lst-measures");this.Ub.af();this.Ub.useCache=!1;this.Ub.xg("caption");
c.X(this.Ub);this.CC=new x.pK;this.CC.fb(e.model.B.j.f7);a.X(this.CC);this.bea=new x.Pa("div","fm-ui-row fm-func-btn-group");a.X(this.bea);this.GT=[];c=this.controller.B1;for(d=0;d<c.length;d++)g=new b,g.data=c[d],g.G.attr("data-index",d),g.fb(c[d].label),g.ni(e.model.B.j[g.data.pf]),g.zc(e.model.B.j[g.data.pf]),this.bea.X(g),this.GT.push(g);c=new x.Pa("div","fm-formula-wrap");a.X(c);this.hi=new x.Zv;this.hi.aa("fm-formula-input");this.hi.N(x.Sj.oy,()=>this.gHa());c.X(this.hi);this.gV=new x.Tc(e.model.B.j.g7);
this.gV.aa("fm-prompt");c.X(this.gV);this.qg=new l.qd.kJ;this.qg.aa("fm-aggregations-view");this.qg.$a();a.X(this.qg);this.aj=new x.mr.XF(a.G);this.aj.$a();a.X(this.aj)}ye(){this.Nr.fb(e.model.B.j.AX);this.ei.fb(e.model.B.j.my);this.Qe.fb(e.model.B.j.xm);this.Ar.PE(e.model.B.j.zX);this.CC.fb(e.model.B.j.f7);this.gV.fb(e.model.B.j.g7);this.Lx.ni(e.model.B.j.i7);this.Nr.Eo();this.Ar.zc(e.model.B.j.zX);this.Ub.zc(e.model.B.j.pla);this.hi.zc(e.model.B.j.cP);for(const a of this.GT)a.ni(e.model.B.j[a.data.pf]),
a.zc(e.model.B.j[a.data.pf])}Mo(a){var c=new x.Ga("span");c.aa("fm-drag-handle");c.aa("fm-helper");c.aa("fm-draggable");c.V("width",a.V("width"));c.V("position","absolute");c.V("z-index",100);c.attr("data-index",a.attr("data-index"));c.text(a.text());return c}gHa(){this.gV.isVisible(0==this.hi.bj().length)}}h.ima=f;class b extends x.Vg{constructor(){super("fm-ui-col-9 fm-calc-action");this.Hd("fm-ui-btn")}}h.OOa=b})(l.Qa||(l.Qa={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.ce.Fy{constructor(){super(l.Sb.Jb.G);this.Bg=this.vf=this.Fp=this.Cy=this.Ui=0;this.aa("fm-drillthrough-view");this.Ke()}Ke(){this.jG=new x.ce.sk("fm-header-container");this.X(this.jG);this.ys=new x.Tc;this.ys.aa("fm-popup-title");this.ys.LW(!1);this.jG.X(this.ys);this.MB=new x.Vg;this.MB.aa("fm-ui-btn-close");this.MB.ni(e.model.B.j.Cra);this.MB.N(x.Qd.uf,()=>this.close());this.jG.X(this.MB);this.PB=new x.ce.sk("fm-details-container");this.X(this.PB);
this.DG=new x.Tc;this.DG.aa("fm-ui-label-light");this.PB.X(this.DG);this.BG=new x.Tc;this.BG.aa("fm-ui-label-light");this.PB.X(this.BG);this.CG=new x.Tc;this.CG.aa("fm-ui-label-light");this.PB.X(this.CG);this.WK=new x.ce.sk("fm-grid-container");this.X(this.WK);this.na=new l.Y.sheet.flat.Mv;this.na.af(-1);this.na.ul=!0;this.WK.G.X(this.na);new h.Kma(this);this.Yt=new h.rr.Mma;this.WK.X(this.Yt)}j5(){e.v(this.Se)||this.Se.kn()}ap(b=null,a=null,c=null,d=null,g=null,k=null){this.J=b;e.v(this.Se)&&(this.Se=
new h.Lma(this));this.Se.update(a,c,d,g,k)}close(){super.close();this.Ya(l.Y.uc.O7);e.model.Za.R().Ha(new e.model.jd(e.model.Za.N7))}Gk(b,a,c=null,d=null){e.v(this.Se)||this.Se.Gk(b,a,c,d)}dispose(){this.J=null;this.na&&(this.na.dispose(),this.na=null);this.Se&&(this.Se.dispose(),this.Se=null);this.Yt.Vd();this.Yt.Qg();this.Yt=null;this.ys.Qg();this.ys=null;this.DG.Qg();this.DG=null;this.BG.Qg();this.BG=null;this.CG.Qg();this.CG=null;this.jG.Qg();this.jG=null;this.WK.Qg();this.WK=null;this.PB.Qg();
this.PB=null;this.MB.Qg();this.MB.Vd();this.MB=null;this.Vd()}}h.vF=f})(l.Yf||(l.Yf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b){this.view=b;this.view.N(l.Y.uc.O7,()=>this.rGa());this.view.na.N(l.Y.uc.aK,a=>this.mE(a));this.view.na.N(l.Y.uc.L7,a=>this.kHa(a));this.view.na.N(l.Y.uc.K7,a=>this.jHa(a));this.view.Yt.N(l.qd.vp.yP,()=>this.e4());this.view.Yt.N(l.qd.vp.AJ,a=>this.d4(a))}US(b){return e.model.Wa.R().Fa.ga.Ec?e.model.Wa.R().Fa.ga.Aa==e.u.i.ra.Cc?new h.Ys.z9(b):e.model.Wa.R().Fa.ga.Aa==e.u.i.ra.API?new h.Ys.Tka(b):e.model.Wa.R().Fa.ga.Aa==e.u.i.ra.Pd?new h.Ys.Vpa(b):
new h.Ys.D9(b):new h.uF(b)}update(b=null,a=null,c=null,d=null,g=null){e.v(this.model)||this.model.dispose();this.model=this.US(this.view.J);this.model.cell=g;this.model.N(h.uF.xP,()=>this.rq());this.model.update(b,a,c,d);this.view.na.slice=b;this.view.na.vD=(k,m)=>this.model.getData(k,m);this.view.na.iM.Gia=(k,m,n)=>this.saveData(k,m,n)}rq(){this.view.open();const b=()=>{this.view.na.rb(l.Vi.qp,b);e.model.Za.R().Ha(new e.model.jd(e.model.Za.P7,this.model.cell))};this.view.na.N(l.Vi.qp,b);this.kn()}kn(){this.model.k5();
this.wka();this.view.Yt.isVisible(this.model.RDa);this.view.Yk(l.Sb.Wx-70);const b=l.Sb.Jb.G.zd(!0)-this.view.PB.G.zd(!0)-this.view.jG.G.zd(!0)-30-this.view.G.padding.top-this.view.G.padding.bottom-40,a=this.view.cg()-(parseInt(this.view.G.V("border-left-width"))+parseInt(this.view.G.V("border-right-width")));this.view.na.wu();this.view.na.resize(a,b);this.view.na.width=a;this.view.na.height=b;this.view.na.Zda(1);this.view.na.iM.cja(e.model.C.F.gD&&!e.u.Ma.R().ga.Ec);this.view.na.$ia(this.model.dO,
this.model.$ba);this.view.na.nb();this.view.Pp()}wka(){this.view.ys.fb(e.model.B.j.Gma);var b=this.model.tCa();this.view.DG.fb(b,!0);this.view.DG.isVisible(!e.ka(b));b=this.model.aBa();this.view.BG.fb(b,!0);this.view.BG.isVisible(!e.ka(b));b=this.model.UBa();this.view.CG.fb(b,!0);this.view.CG.isVisible(!e.ka(b))}mE(b){e.model.Wa.R().Fa.ga.Ec||b.hga||this.yya(b.cell);b.cell&&b.cell.Ng&&b.cell.tC==l.Y.W.Lq.lK&&(this.model.yO(b.cell),this.view.na.clearData(),this.view.na.nb())}yya(b){if(e.model.Za.R().z2(e.model.Za.dP)&&
!e.v(b)){var a=this.model.rCa(b.lb);e.v(a)||(b.ul=!0,b=b.Sa(),b.rowData=a,e.model.Za.R().Ha(new e.model.jd(e.model.Za.dP,b)))}}kHa(b){this.model.Rw.tKa(b.data.index);this.model.Fq(this.model.Rw)}jHa(b){let a=b.data.mAa;b=b.data.CMa;b=Math.max(0,Math.min(b,this.model.Rw.selected.length));a<b&&b--;a!=b&&(this.model.Rw.SFa(a,b),this.model.Fq(this.model.Rw))}e4(){this.view.Yt.open(this.model.Rw)}d4(b){this.model.Fq(b.data)}Gk(b,a,c,d){const g=this.model.$ba,k=0<this.model.dO?this.model.dO+1:0;b==e.model.Dc.qj.nB&&
e.model.Dc.c8.Ze(this.view,a,d);b==e.model.Dc.qj.Ov&&e.model.Dc.b8.Ze(this.view,a,g,k,d);b==e.model.Dc.qj.ci&&e.model.Dc.a8.Ze(this.view,a,g,k,c);b==e.model.Dc.qj.JSON&&e.model.Dc.d8.Ze(this.view,a,g,k,c);b==e.model.Dc.qj.vB&&e.model.Dc.df.Ze(this.view,a,g,k,d);b==e.model.Dc.qj.wF&&(a.KA=a.KA&&(e.model.Wa.R().Fa.ga.Aa==e.u.i.ra.Cc||e.model.Wa.R().Fa.ga.Aa==e.u.i.ra.Pd)&&e.model.C.F.co,e.model.Dc.f8.Ze(this.view,a,g,k))}saveData(b,a,c){this.timer&&this.timer.Gl&&this.timer.stop();null==this.timer&&
(this.timer=new u.Pt(1E3,1));this.timer.N(u.xf.Pl,()=>this.MIa());this.timer.start();this.model.saveData(b,a,c);this.kn()}MIa(){this.wka();this.timer.stop()}rGa(){this.view.na.iM.Qja();e.model.C.F.gD&&this.model.E0&&(this.model.E0=!1,e.u.Ma.R().refresh())}dispose(){this.timer&&(this.timer.stop(),this.timer=null);this.model&&(this.model.dispose(),this.model=null);this.view=null}}h.Lma=f})(l.Yf||(l.Yf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends w.Mh{constructor(b){super();this.DI=NaN;this.mI={};this.E0=!1;this.cell=null;this.yn=b}update(b=null,a=null,c=null,d=null){this.Pb=b;this.Dg=this.y0(b);this.Ah=c;this.Jg=a;this.measure=d;this.mI={};this.Wd()}Fq(b){this.Dg=b;b=[];if(this.Dg.fp&&0<this.Dg.fp.length){for(var a=0;a<this.Dg.fp.length;a++){var c=this.Dg.fp[a].level;b.push(void 0===c?this.Dg.fp[a].hierarchy:c)}this.Pb.cd=b}else this.Pb.cd=this.Dg.selected;this.Wd()}get Rw(){return this.Dg}y0(b){const a=
new h.rr.S7;var c=this.Pb.Yc.vc(!1);for(var d=0;d<c.length;d++){var g=c.fa(d);a.mf.Ta(g.A,{A:g.A,caption:g.caption,ua:g.ua.Pc(!0).slice(1)})}d=null!=b.cd&&0<b.cd.length?b.cd:null!=e.model.Wa.R().Fa.cN&&0<e.model.Wa.R().Fa.cN.length?e.model.Wa.R().Fa.cN:b.flatten().Pc(!0);for(c=0;c<d.length;c++)g=d[c],a.mf.Bb(g)&&a.GG(g);d={};for(c=0;c<b.Wf.length;c++)g=b.Wf[c],g.Qa&&0<g.Ud.length&&this.iea(g.Ud,d);for(const k in d)c=b.Yc.fd(k),e.v(c)||c.Qa||a.GG(k);return a}iea(b,a){if(void 0!==b[2]){var c,d;for(d in b[1]){var g=
c=b[1][d];Array.isArray(c)&&(g=this.iea(c,a));if(g==e.u.i.tP.qP&&b[0]==e.u.i.rc.yJ)break;void 0!==g&&(a[g]=1)}}}k5(){this.Wd(!1)}Wd(b=!0){this.data=this.yn.cd(this.Ah,this.Jg,this.measure);this.keys=this.data.shift();const a=this.yn.Ps(this.Ah,this.Jg);this.IFa(a);this.Y_();b&&this.Ya(f.xP)}IFa(b){this.DI=NaN;if(!e.v(b))if(Array.isArray(b)){this.DI=this.data[0].length;for(let a=0;a<b.length;a++)this.data[a].push(b[a])}else e.v(this.data[0])||(this.DI=this.data[0].length,this.data[0].push(b))}yO(b){const a=
b.measure&&b.measure.type==e.u.i.Ra.wc?e.u.i.Ba.hc:e.u.i.Ba.Nc;let c=!0;this.FS==b.hierarchy?(this.Th=this.Th==e.u.i.Ba.hc?e.u.i.Ba.Nc:this.Th==e.u.i.Ba.Nc?e.u.i.Ba.hc:a,c=!0):(this.Th=a,c=!1);this.FS=b.hierarchy;const d=this.Jea(b.hierarchy),g=b.hierarchy.jk(b.hierarchy.pd,!0,this.Th);c?this.data.reverse():this.data.sort((k,m)=>g.indexOf(k[d])-g.indexOf(m[d]))}rCa(b){if(e.v(this.data)||e.v(this.data[b-1]))return null;const a=[];for(let c=0;c<this.Rw.mf.length;c++){const d=this.sCa(b,this.Dg.mf.Uh(c));
a.push(null==d?d:d.Sa())}return a}sCa(b,a){a=this.Pb.Yc.uh(a);if(null==a)return null;const c=this.Pb.nf(a.A);return null==c?null:this.Aea(b,-1,a,c)}Y_(){this.Th=this.FS=null}get $ba(){return e.v(this.Rw)?0:this.Rw.fp.length}get dO(){return e.v(this.data)?0:this.data.length}tCa(){for(var b,a=[],c=0;c<this.Ah.length;c++){b=this.Pb.wb.fa(c);if(null==b)return null;b=b.za(this.Ah[c]);a.push(e.P.Ro(b.caption,!0,!0))}a=0<a.length?e.P.bind(e.model.B.j.Fma,a.join(" - ")):"";return a=a.replace(/<br\s*[\/]?>/gi,
" ")}aBa(){for(var b,a=[],c=0;c<this.Jg.length;c++){b=this.Pb.Fb.fa(c);if(null==b)return null;b=b.za(this.Jg[c]);a.push(e.P.Ro(b.caption,!0,!0))}a=0<a.length?e.P.bind(e.model.B.j.Ema,a.join(" - ")):"";return a=a.replace(/<br\s*[\/]?>/gi," ")}UBa(){var b=this.measure.Eh(this.measure.A,this.measure.$).clone();const a=this.yn.La(this.Ah,this.Jg,this.measure);this.measure.$==e.u.i.ea.Si?b.yd="":e.u.i.ea.xe(this.measure.$)?b.xe=!0:e.u.i.ea.de(this.measure.$)&&(b.de=!0,b.yd="%");const c=e.u.i.Ra.ec==this.measure.type&&
e.u.i.ea.pp(this.measure.$),d=e.u.i.Ra.Ua==this.measure.type||e.u.i.Ra.Mc==this.measure.type;b=c?e.P.ey(a,e.model.C.F.np):d?this.cell.label:u.bc.format(a,b);b=e.P.bind(e.model.B.j.Hma,e.P.Ro(this.measure.label,!0,!0),b);return b=b.replace(/<br\s*[\/]?>/gi," ")}get RDa(){return e.model.C.F.wja?e.u.Ma.R().ga.JU:!1}get wEa(){return!e.model.Wa.R().Fa.ga.Ec&&e.model.Wa.R().Fa.ga.Aa!=e.u.i.ra.kg&&e.model.Wa.R().Fa.ga.Aa!=e.u.i.ra.API}getData(b,a){return e.v(this.Dg)?null:0==b?this.yD(a):0>a||a>=this.Dg.fp.length?
null:this.BH(b,a)}yD(b){const a=new l.Y.W.ne;a.ul=!0;a.Ng=!0;if(0>b||b>=this.Dg.fp.length)return null;var c=this.Dg.fp[b].level;b=this.Pb.Yc.uh(this.Dg.fp[b].hierarchy);if(null==b)return null;void 0!==c&&(c=b.Ou(c),null!=c&&(a.label=b.caption+" / "+c.caption));e.ka(a.label)&&(a.label=b.caption);a.hierarchy=b;a.measure=this.Pb.Yc.nf(b.A);this.wEa&&(a.ao=!0,a.hierarchy==this.FS&&(a.ip=this.Th==e.u.i.Ba.hc,a.jp=this.Th==e.u.i.Ba.Nc));return a}BH(b,a){if(e.v(this.data)||e.v(this.data[b-1]))return null;
var c=this.Pb.Yc.uh(this.Dg.fp[a].hierarchy);if(null==c)return null;const d=this.Pb.nf(c.A);return null==d?null:this.Aea(b,a,c,d)}Aea(b,a,c,d){const g=new l.Y.W.ne;g.lb=b;g.kc=a;g.ul=!0;g.li=!0;const k=c.za(this.cCa(b,this.Jea(c)));g.label=this.XBa(k,-1!=a?this.Dg.fp[a].level:void 0);g.hierarchy=c;a=this.bU(d);d.type!=e.u.i.Ra.jb&&d.type!=e.u.i.Ra.ec&&d.type!=e.u.i.Ra.Ua&&d.type!=e.u.i.Ra.Mc||e.v(k)||(g.value=k.nc,g.label=d.type==e.u.i.Ra.jb?u.bc.format(g.value,a):k.caption,g.numeric=g.numeric||d.type!=
e.u.i.Ra.jb?g.numeric:!0);e.ka(a.textAlign)||g.nz({"text-align":a.textAlign});g.CI=this.Ps(b);g.measure=d;return g}Ps(b){return isNaN(this.DI)?void 0:this.data[b-1][this.DI]}bU(b){e.v(this.mI[b.A])&&(this.mI[b.A]=b.Eh(b.A,b.$,!0).clone());return this.mI[b.A]}cCa(b,a){for(;null==this.data[b-1][a];)a--;return this.data[b-1][a]}XBa(b,a){let c="";if(e.v(b))return c;c=b.caption;if(!e.ka(a))for(;b;){if(b.level.A==a){c=b.caption;break}b=b.parent}return c}Jea(b){var a=this.keys.indexOf(b.A);2<b.ua.length&&
(a=this.keys.indexOf(b.ua.Uh(b.ua.length-1)));return a}saveData(b,a,c){(a=this.getData(b,a))&&a.label!=c&&a.value!=c&&(c=this.yn.save(this.Ah,this.Jg,a.hierarchy,c,b-1),this.data[b-1][this.keys.indexOf(a.hierarchy.A)]=c,this.E0=!0)}dispose(){this.keys=this.data=this.measure=this.Ah=this.Jg=this.Dg=this.Pb=this.yn=null;this.DI=NaN;this.mI=this.Th=this.FS=null}}f.xP="dataloaded";h.uF=f})(l.Yf||(l.Yf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends l.Y.K8{show(b,a){var c=[];c=this.YS(c,b?b.Sa():null,"drillthrough");return 0<c.length?(this.eT(c,a),!0):!1}}h.Kma=f})(l.Yf||(l.Yf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.yk=[];this.En=[];this.mf=new e.ub}get selected(){return this.yk}set selected(a){e.v(a)||(this.yk=a,this.En=null)}GG(a){this.Ad(a)||(this.yk.push(a),this.En=null)}tKa(a){this.sU?this.En.splice(a,1):(this.yk.splice(a,1),this.En=null)}get sU(){return!e.v(this.En)&&this.yk.length!==this.En.length}SFa(a,c){this.sU?e.Ja.Q3(this.En,a,c):(e.Ja.Q3(this.yk,a,c),this.En=null)}Ad(a){return this.sU?0<=this.En.findIndex(c=>void 0!==
c.level?c.level===a:c.hierarchy===a):0<=this.yk.indexOf(a)}get fp(){if(!e.v(this.En))return this.En;this.En=[];for(let d=0;d<this.yk.length;d++){var a=this.mf.getItem(this.yk[d]);if(!e.v(a))if(a=a.ua,void 0!==a&&1<a.length)for(var c=0;c<a.length;c++)this.En.push({hierarchy:this.yk[d],level:a[c]});else this.En.push({hierarchy:this.yk[d]})}return this.En}isEqual(a){if(e.v(a)||e.v(a.yk)||this.yk.length!=a.yk.length)return!1;for(let c=0;c<this.yk.length;c++)if(this.yk[c]!=a.yk[c])return!1;return!0}clone(){const a=
new b;a.mf=this.mf.slice();a.yk=a.yk.slice();return a}}f.S7=b})(h.rr||(h.rr={}))})(l.Yf||(l.Yf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Pa{constructor(){super();this.aa("fm-fields-view-wrap");this.Ke();this.Se=new f.Nma(l.Sb.Jb.G);this.Se.N(w.ia.CLOSED,()=>this.SN());this.Se.N(l.qd.vp.AJ,a=>this.U3(a))}Ke(){this.ft=new x.Vg("fm-btn-open-fields");this.ft.ni(e.model.B.j.LQ);this.ft.N(x.Qd.uf,()=>this.E4());this.X(this.ft)}updateLabels(){this.ft.ni(e.model.B.j.LQ)}open(a){this.G.ab("fm-fields-opened",!0);this.Se.Fq(a);this.Se.view.open();this.hw=!0}close(){this.Se.view.$a();
this.Se.view.close()}E4(){this.Ya(l.qd.vp.yP)}SN(){this.hw=!1;this.G.ab("fm-fields-opened",!1)}U3(a){this.Ha(a)}get hv(){return this.hw}}f.Mma=b})(h.rr||(h.rr={}))})(l.Yf||(l.Yf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.qd.flat.d7{constructor(a){super(a)}Fq(a,c){this.Pb=a;this.Zt=c;this.Na=a.mf.Pc();this.yl(a.selected);this.OI(this.Na,a.selected)}get slice(){return this.Pb}get XD(){return!1}get YU(){return!1}YM(a){const c=this.Pb.clone();c.selected=this.fka(this.Na,a).map(d=>d.A);return c}ZU(){return!1}pv(){}qv(){}update(){}RE(){}}f.Oma=b})(h.rr||(h.rr={}))})(l.Yf||(l.Yf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.qd.flat.E8{constructor(a){super(a);this.aa("fm-fields-view");this.aa("fm-dt-fields");this.tE.aa("fm-dt-fields-overlay");l.Sb.Jb.G.X(this.G)}}f.Pma=b})(h.rr||(h.rr={}))})(l.Yf||(l.Yf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.qd.flat.bY{constructor(a){super(a,!1);this.model=this.Db}US(a){return new f.Oma(a)}zca(a){return new f.Pma(a)}Fq(a){this.model.Fq(a,l.qd.vp.rT);this.kn();this.view.ae&&this.view.ae.Jf(this.Db.f2());this.view.ye()}ge(){var a=[];const c=this.view.gb.G.find("li",!0);for(let d=0;d<c.length;d++){const g=parseInt(c[d].attr("data-index"));a.push(g)}a=this.Db.YM(a);this.model.slice.isEqual(a)||this.Ya(l.qd.vp.AJ,this,a)}}f.Nma=b})(h.rr||
(h.rr={}))})(l.Yf||(l.Yf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.uF{constructor(a){super(a);this.Pe=e.u.Ma.R()}get dO(){return e.v(this.data)?0:this.data.length-1}k5(){}Wd(){this.data=[];this.Pe.cd(this.Ah,this.Jg,this.measure,a=>this.rq(a),this.Dg.selected)}rq(a){this.data=a;e.Ca(!1);this.Ya(h.uF.xP)}tea(a){a=this.Pe.ga.mapping.La(a,"time_zone");return e.v(a)?e.model.C.F.$j:(a=Number(a.split(":",1)[0]),isNaN(a)?e.model.C.F.$j:a)}BH(a,c){if(e.v(this.data)||e.v(this.data[a]))return null;var d=
this.Pb.Yc.uh(this.Dg.selected[c]);if(null==d)return null;var g=this.Pb.nf(d.A);if(null==g)return null;const k=this.data[a][c];g=this.bU(g);const m=new l.Y.W.ne;m.lb=a;m.kc=c;m.ul=!0;m.li=!0;if(d.type==e.u.i.Ic.yp)"number"==typeof k&&(m.label=u.bc.format(k,g),m.value=k);else if(d.type==e.u.i.Ic.Ua)if("number"===typeof k)a=this.sea(d.A),d=this.tea(d.A),m.label=e.P.$x(k,a,d),m.value=k;else if("string"!==typeof k||e.ka(k))m.label=e.model.B.j.jo;else try{const n=e.P.HU(k),p=this.sea(d.A),t=this.tea(d.A);
m.label=n?u.Lh.format(new Date(k),p,t):k}catch(n){m.label=k}else m.label=k;e.ka(g.textAlign)||m.nz({"text-align":g.textAlign});return m}sea(a){return this.Pe.ga.mapping.La(a,"format",e.model.C.F.Up)}dispose(){super.dispose();this.Pe=null}}f.D9=b})(h.Ys||(h.Ys={}))})(l.Yf||(l.Yf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.uF{constructor(a){super(a);this.Pe=e.u.Ma.R()}update(a=null,c=null,d=null,g=null){this.Pb=a;this.Ah=d;this.Jg=c;this.measure=g;this.mI={};this.Wd()}k5(){}Wd(){this.data=[];this.Pe.cd(this.Ah,this.Jg,this.measure,a=>this.rq(a))}Fq(a){this.Dg=a;this.fZ={};for(a=0;a<this.Dg.selected.length;a++){var c=this.Dg.selected[a];this.fZ[c]=this.Dg.mf.indexOf(c)}this.Ya(h.uF.xP)}rq(a){e.Ca(!1);this.data=a;this.Fq(this.y0(this.Pb))}y0(a){const c=
new h.rr.S7;for(var d of this.data[0])d=d.replace("$",""),c.mf.Ta(d,{A:d,caption:this.bCa(d)});if(!e.model.C.F.O5&&this.Pe.ga.JU){var g=a.flatten();d=c.mf.Pc(!0);for(var k=0;k<g.length;k++){var m=g.fa(k);if(2>=m.ua.length)m=this.wFa(m,d),e.ka(m)||c.GG(m);else if(null!=m.ic)m=m.zf.split("."),m=0<m.length?m[0]+"."+m[m.length-1]:null,-1<d.indexOf(m)&&c.GG(m);else{m=m.A.split(".");for(let n=0;n<d.length;n++)-1<(m[0]==d[n].split(".")[0]?n:-1)&&c.GG(d[n])}}for(g=0;g<a.Wf.length;g++)k=this.xFa(a.Wf[g],d),
e.ka(k)||c.GG(k)}if(e.model.C.F.O5||0==c.selected.length)c.selected=c.mf.Pc(!0);return c}bCa(a){a=a.split("].[").pop();a="]"==a.charAt(a.length-1)?a.substr(0,a.length-1):a;return a="["==a.charAt(0)?a.substr(1):a}wFa(a,c){for(var d=0;d<c.length;d++){var g=c[d];if(g==a.A||0<=g.indexOf(`[${a.caption}]`))return g}return null}xFa(a,c){for(var d=0;d<c.length;d++){var g=c[d];if(g==a.A)return g;var k=a.A.split(".");if(g==`[${a.Mg}].${k[k.length-1]}`)return g;k=g;k="["==k.charAt(0)?k.substr(1):k;if(0<=a.A.indexOf(k))return g}return null}yD(a){const c=
new l.Y.W.ne;c.ul=!0;c.Ng=!0;a=this.Dg.selected[a];if(e.v(a))return null;c.label=this.Dg.mf.getItem(a).caption;return c}BH(a,c){if(e.v(this.data)||e.v(this.data[a]))return null;var d=this.Dg.selected[c];const g="[Measures].["+this.Dg.mf.getItem(d).caption+"]",k=this.yn.Da.find(n=>n.A===g);d=this.data[a][this.fZ[d]];const m=new l.Y.W.ne;m.lb=a;m.kc=c;m.ul=!0;m.li=!0;e.model.C.F.co||null==k?"number"==typeof d?(m.label=e.model.C.F.co||null!=k?u.bc.format(d):u.bc.format(d,e.model.oc.tj.VT()),m.value=
d):(m.label=d,null==k&&m.nz({"text-align":"left"})):(a=this.bU(k),m.label=u.bc.format(d,a),m.value=d,""!=a.textAlign&&m.nz({"text-align":a.textAlign}));return m}dispose(){super.dispose();this.fZ=this.Pe=null}}f.z9=b})(h.Ys||(h.Ys={}))})(l.Yf||(l.Yf={}))})(e.K||(e.K={}))})(q||(q={}));var db=q||(q={}),eb=db.K||(db.K={}),fb=eb.Yf||(eb.Yf={}),gb=fb.Ys||(fb.Ys={});class hb extends gb.z9{}gb.Vpa=hb;
(function(e){(function(l){(function(h){(function(f){class b extends f.D9{BH(a,c){if(e.v(this.data)||e.v(this.data[a]))return null;var d=this.Dg.fp[c].level,g=this.Pb.Yc.uh(this.Dg.fp[c].hierarchy);if(null==g)return null;var k=d?g.Ou(d):null,m=this.Pb.nf(g.A);if(null==m)return null;d=this.data[a][c];m=this.bU(m);const n=new l.Y.W.ne;n.lb=a;n.kc=c;n.ul=!0;n.li=!0;g.type===e.u.i.Ic.yp?(n.label="number"===typeof d?u.bc.format(d,m):d,n.value=d):g.type===e.u.i.Ic.Ua||k&&e.u.i.ib.GDa(k.type)?"number"==typeof d?
(k&&k.type===e.u.i.ib.Mc?(a=this.Pe.ga.mapping.La(g.A,"format",e.model.C.F.Ek),n.label=e.P.HO(d,a,e.model.C.F.$j)):(a=this.Pe.ga.mapping.La(g.A,"format",e.model.C.F.Up),n.label=e.P.$x(d,a,e.model.C.F.$j)),n.value=d):"string"!==typeof d||e.ka(d)||"null"===d?n.label=!e.model.C.F.qr||null!==d&&"null"!==d?e.model.B.j.jo:e.model.B.j.IX:n.label=d:n.label=d;e.ka(m.textAlign)||n.nz({"text-align":m.textAlign});return n}}f.Tka=b})(h.Ys||(h.Ys={}))})(l.Yf||(l.Yf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){class h{}h.sy="FILTER_OPEN";h.ZX="FILTER_CLOSE";h.KX="DRILL_THROUGH_OPEN";h.t7="CONTEXT_MENU_OPEN";h.CY="RENDER_COMPLETE";h.ly="beforegriddraw";h.qp="aftergriddraw";l.Vi=h;class f extends w.ia{constructor(a){super(h.sy);this.hierarchy=a}}l.KP=f;class b extends w.ia{constructor(a,c,d,g){super(h.KX);this.measure=a;this.Jg=c;this.Ah=d;this.cell=g}}l.R7=b})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.fr=[];this.Id=new e.BF;this.qe=[];this.ud="";this.He=!0}GW(b){this.rh=b}lja(b){this.ig=b;this.fr=this.rh.jk(this.rh.pd,!1,this.ig)}Qia(b,a){var c=this.Xe()?this.qe:this.fr;b=c.indexOf(b.ordinal);a=c.indexOf(a.ordinal);for(a<b&&(b=a+(a=b,0));b<=a;b++)this.select(c[b],!0)}select(b,a){this.He!=a?this.Id.add(b):this.Id.delete(b);this.Id.size!=this.fr.length||this.Xe||this.selectAll(!this.He)}search(b,a){b=b.toLowerCase();this.ud===b?a(this.qe):
(this.ud=b,0==this.ud.length?a():e.u.Ma.R().Aq(this.rh,b,a))}kja(b){null!=b?this.qe=b:this.qe.length=0}selectAll(b){if(this.Xe())for(var a=this.qe.length,c=0;c<a;c++)e.P.contains(this.rh.za(this.qe[c]).caption,this.ud)&&this.select(this.qe[c],b);else this.He=b,this.Id.clear()}Oia(){}jx(){var b=this.He||this.Xe()?this.He&&this.Xe()?this.qe.length+this.xxa()-this.Id.size:this.He||0!=this.Id.size?this.fr.length==this.Id.size?this.qe.length:this.fr.length-this.Id.size:this.Id.size:this.Id.size;return 0<
b?b:0}xxa(){let b=0;for(let a=0;a<this.qe.length;a++)this.Id.has(this.qe[a])&&b++;return this.Id.size-b}Mz(){if(this.Xe()){for(var b=0,a=0;a<this.qe.length;a++)!this.Id.has(this.qe[a])==this.He&&b++;return b}return this.jx()}DW(b){this.Id.clear();var a=b.length;this.He=e.model.C.F.hS?this.rh.filter.Gh?a===this.fr.length:0===a:0===a;if(!this.He)for(let c=0;c<a;c++)this.Id.add(b[c])}WT(){const b=[];var a=this.Xe()&&this.He?this.qe:this.Id.Pc();const c=a.length;if(this.Xe()&&this.He)for(a=0;a<this.qe.length;a++)this.Id.has(this.qe[a])||
b.push(this.qe[a]);else for(let d=0;d<c;d++)b[d]=a[d];a=this.Xe()&&this.He?!1:0==b.length?!1:this.He;return{items:b,ov:a}}HW(b){this.fr=b;this.ud="";this.qe.length=0}X1(b,a){const c=[];let d=b;var g=e.P.Ro(this.ud.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),!0,!0);g=new RegExp("("+g+")","ig");const k=this.Xe()?this.qe:this.fr;let m;for(;d<a&&!(d>k.length-1);d++){var n=this.rh.za(k[d]);m=e.P.Ro(n.caption,!0,!0);n={Vb:n,label:this.Xe()?m.replace(g,'<b class="fm-search-highlight">$&</b>'):m,Ad:(this.Id.has(n.ordinal)?
!this.He:this.He)?1:0,xga:0,QKa:a-b<k.length-1?15:0,fh:n.fh&&"Others"!==m};c.push(n)}return c}getItem(b){return(this.Xe()?this.qe:this.fr)[b]}IH(){return this.Xe()?this.qe.length:this.fr.length}getTotalLength(){return this.IH()}Xe(){return 0<this.ud.length}expand(){}collapse(){}}h.vY=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.nd=[];this.Id=[];this.qe=[];this.Sk=[];this.Az=[];this.ud="";this.He=!0;this.ig=e.u.i.Ba.ed}GW(b){this.rh=b;this.nd.length=0}lja(b){this.ig=b;this.nd.length=0;this.M2(this.rh.pd,-1)}HW(b){for(var a=0,c=b.length,d;a<c;a++)d=this.rh.za(b[a]),d.dc||(this.nd.push(b[a]),d.eh&&d.children&&0<d.children.length&&(this.Az.push(b[a]),this.HW(this.ig===e.u.i.Ba.ed?d.children.slice():this.rh.jk(d,!1,this.ig))))}X1(b,a){var c=b,d=[],g=new RegExp("("+
this.ud+")","i"),k=this.Xe()?this.qe:this.nd;let m;for(;c<a&&!(c>k.length-1);c++){var n=this.rh.za(k[c]);m=e.P.Ro(n.caption,!0,!0);n={Vb:n,xga:n.level.yb,label:this.Xe()?m.replace(g,'<b class="fm-search-highlight">$&</b>'):m,Ad:this.Ad(n),Xe:this.Xe(),dg:this.dg(n),QKa:a-b<k.length-1?17:0,fh:n.fh&&"Others"!=n.caption,pU:this.pU(n)};d.push(n)}return d}getItem(b){return(this.Xe()?this.qe:this.nd)[b]}Ad(b){var a=(-1==this.Id.indexOf(b.ordinal)?this.He:!this.He)?1:0;0<this.Id.length&&-1!=this.Sk.indexOf(b.ordinal)&&
(a=-1);return a}pU(b){return this.Xe()?!1:!b.Hh}dg(b){return this.Xe()||b.Hh?void 0:-1!=this.Az.indexOf(b.ordinal)?!0:!1}IH(){return this.Xe()?this.qe.length:this.nd.length}getTotalLength(){if(this.Xe()){let c=0;if(e.u.Ma.R().ga.Ec)for(var b=this.qe.length,a=0;a<b;a++)e.P.contains(this.rh.za(this.qe[a]).caption,this.ud)||c++;return this.qe.length-c}return this.rh?this.rh.Zi-1:0}Qia(b,a){var c=this.Xe()?this.qe:this.nd;b=c.indexOf(b.ordinal);a=c.indexOf(a.ordinal);for(a<b&&(b=a+(a=b,0));b<=a;b++)this.select(this.rh.za(c[b]),
!0)}select(b,a){var c=this.Id.indexOf(b.ordinal);this.He!==a?(-1==c&&this.Id.push(b.ordinal),0<b.children.length&&this.fW(b)):(-1!=c&&this.Id.splice(c,1),0<b.children.length&&this.q5(b));a=this.Sk.indexOf(b.ordinal);-1!=a&&this.Sk.splice(a,1);this.Pia(b);this.Id.length===this.rh.Zi-1&&(this.Id.length=0,this.Sk.length=0,this.He=!this.He)}Oia(b){-1==this.Sk.indexOf(b.ordinal)&&(-1==this.Id.indexOf(b.ordinal)?this.q5(b):this.fW(b))}Pia(b){var a=b.parent;if(a&&!a.dc){b=this.Id.indexOf(a.ordinal);var c=
this.Sk.indexOf(a.ordinal);var d=-1!=b;this.gfa(a,!1)?(this.gfa(a)?(-1==c&&this.Sk.push(a.ordinal),this.He&&d&&this.Id.splice(b,1)):(-1!=c&&this.Sk.splice(c,1),this.He&&!d&&this.Id.push(a.ordinal)),!this.He&&d&&this.Id.splice(b,1)):(-1!=c&&this.Sk.splice(c,1),this.He&&d?this.Id.splice(b,1):this.He||d||this.Id.push(a.ordinal));this.Pia(a)}}gfa(b,a=!0){var c=0;b=b.children;for(var d=b.length;c<d;c++)if(-1==this.Id.indexOf(b[c])==this.He==a||-1!=this.Sk.indexOf(b[c]))return!0;return!1}fW(b){var a=0;
b=b.children;for(var c=b.length;a<c;a++){var d=this.Id.indexOf(b[a]);var g=this.Sk.indexOf(b[a]);-1==d&&this.Id.push(b[a]);-1!=g&&this.Sk.splice(g,1);d=this.rh.za(b[a]);0<d.children.length&&this.fW(d)}}q5(b){for(var a=0,c,d,g=b.children,k=g.length;a<k;a++)d=this.rh.za(g[a]),b=this.Id.indexOf(g[a]),c=this.Sk.indexOf(g[a]),-1!=b&&this.Id.splice(b,1),-1!=c&&this.Sk.splice(c,1),0<d.children.length&&this.q5(d)}selectAll(b){if(this.Xe())for(var a=this.qe.length,c,d=0;d<a;d++)c=this.rh.za(this.qe[d]),e.P.contains(c.caption,
this.ud)&&this.select(c,b);else this.He=b,this.Id.length=0,this.Sk.length=0}Mz(){if(this.Xe()){for(var b=0,a=this.qe.length,c,d=0;d<a;d++)c=this.rh.za(this.qe[d]),e.P.contains(c.caption,this.ud)&&0>this.Id.indexOf(this.qe[d])==this.He&&b++;return b}return this.jx()}jx(){var b=this.He?this.rh.Zi-this.Id.length-this.Sk.length-1:this.Id.length;return 0>b?0:b}DW(b){var a=b.length;this.Id.length=0;this.Sk.length=0;if(0==a)this.He=!0;else{this.He=!1;for(var c,d=0;d<a;d++)for(c=this.rh.za(b[d]),this.Id.push(c.ordinal),
0<c.children.length&&this.fW(c);c.parent&&!c.parent.dc;)c=c.parent,-1==this.Sk.indexOf(c.ordinal)&&this.Sk.push(c.ordinal)}}WT(){var b=[];var a=this.Xe()&&this.He?this.qe:this.Id;for(var c=0,d=a.length;c<d;c++){var g=this.rh.za(a[c]);var k=g.parent;var m=-1;e.v(k)||(m=a.indexOf(k.ordinal));-1===m&&b.push(g.ordinal)}g=this.Xe()&&this.He?!1:0==b.length?!1:this.He;return{items:b,ov:g}}search(b,a){b=b.toLowerCase();this.ud===b?a():(this.ud=b,0==this.ud.length?a():e.u.Ma.R().Aq(this.rh,b,a))}kja(b){null!=
b?this.qe=b:this.qe.length=0}Xe(){return 0<this.ud.length}expand(b){-1==this.Az.indexOf(b.ordinal)&&this.Az.push(b.ordinal);this.vja(b,!0)}collapse(b){var a=this.Az.indexOf(b.ordinal);-1!=a&&this.Az.splice(a,1);this.vja(b,!1)}vja(b,a){var c=this.nd.indexOf(b.ordinal);a?this.M2(b,c):this.nd.splice(c+1,this.Nea(b))}M2(b,a){b=this.ig===e.u.i.Ba.ed?b.children:this.rh.jk(b,!1,this.ig);for(var c=b.length-1,d=a+1;-1<c;c--)a=this.rh.za(b[c]),this.nd.splice(d,0,b[c]),-1<this.Az.indexOf(b[c])&&this.M2(a,d)}Nea(b){b=
b.children;for(var a=b.length,c=a,d,g=0;g<a;g++)d=this.rh.za(b[g]),-1<this.Az.indexOf(b[g])&&(c+=this.Nea(d));return c}}h.Upa=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.ce.sk{constructor(){super();this.aa("fm-filter-view-content");this.Ke()}Ke(){var b=new x.Pa("div","fm-popup-header fm-ui-row");this.X(b);var a=new x.Pa("div","fm-ui-col-2 fm-vam");b.X(a);this.Nr=new x.Tc;this.Nr.aa("fm-popup-title");a.X(this.Nr);a=new x.Pa("div","fm-ui-col fm-vam fm-ui-btns-row");b.X(a);this.NG=new x.Vg("fm-ui-btn");this.NG.fb(e.model.B.j.xm);this.Mp=new x.Vg("fm-ui-btn-dark");this.Mp.fb(e.model.B.j.my);u.uj.aE||u.uj.Yo?(a.X(this.NG),
a.X(this.Mp)):(a.X(this.Mp),a.X(this.NG));b=new x.Pa("div","fm-ui-row fm-filter-sort-row");this.X(b);this.rH=new x.Pa("div","fm-ui-col fm-filters-col");b.X(this.rH);this.vT=new x.Tc;this.vT.aa("fm-filter-label");this.vT.aa("fm-ui-label-light");this.rH.X(this.vT);this.qf=new x.NQ;this.qf.aa("fm-labels-filter-btn");this.qf.aa("fm-filter-btn");this.eI=new x.Tc;this.qf.X(this.eI);this.qf.G.X(new x.Ga("div","fm-ui-arrow-up",!1));this.rH.X(this.qf);this.Pf=new x.NQ;this.Pf.aa("fm-values-filter-btn");this.Pf.aa("fm-filter-btn");
this.Gka=new x.Tc;this.Pf.X(this.Gka);this.Pf.G.X(new x.Ga("div","fm-ui-arrow-up",!1));this.rH.X(this.Pf);this.ln=new h.esa;this.ln.aa("fm-values-filter-view");this.ln.$a();this.X(this.ln);this.Pn=new h.Jma;this.Pn.aa("fm-dates-filter-view");this.Pn.$a();this.X(this.Pn);this.kq=new h.Goa;this.kq.aa("fm-labels-filter-view");this.kq.$a();this.X(this.kq);this.qq=new h.dqa;this.qq.aa("fm-numbers-filter-view");this.qq.$a();this.X(this.qq);this.Eq=new h.Nra;this.Eq.aa("fm-time-filter-view");this.Eq.$a();
this.X(this.Eq);this.zO=new x.Pa("div","fm-ui-col fm-sort-col");b.X(this.zO);this.WW=new x.Tc;this.WW.aa("fm-sort-label");this.WW.aa("fm-ui-label-light");this.WW.fb(e.model.B.j.Mna);this.zO.X(this.WW);b=new x.Pa("div","fm-sort-btns");this.zO.X(b);this.$k=new x.NQ;this.$k.aa("fm-sort-btn");this.$k.fb(e.model.B.j.r8);b.X(this.$k);this.al=new x.NQ;this.al.aa("fm-sort-btn");this.al.fb(e.model.B.j.v8);b.X(this.al);this.Zb=new h.Tpa;this.X(this.Zb)}get ae(){return this.Zb.ae}get Nx(){return this.Zb.Nx}get $n(){return this.Zb.$n}ye(){this.Mp.fb(e.model.B.j.my);
this.NG.fb(e.model.B.j.xm);this.$k.fb(e.model.B.j.r8);this.$k.ni(e.model.B.j.s8);this.$k.zc(e.model.B.j.s8);this.al.fb(e.model.B.j.v8);this.al.ni(e.model.B.j.w8);this.al.zc(e.model.B.j.w8);this.vT.fb(e.model.B.j.jB);this.eI.fb(e.model.B.j.HP);this.qf.zc(e.model.B.j.jB+" "+e.model.B.j.HP);this.Gka.fb(e.model.B.j.z8);this.Pf.zc(e.model.B.j.jB+" "+e.model.B.j.z8);this.Pn.ye();this.kq.ye();this.qq.ye();this.Eq.ye();this.ln.ye();this.Zb.ye()}}h.boa=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q=
{}));
(function(e){(function(l){(function(h){class f extends x.Li.GB{constructor(){super();this.OEa=20;this.Ju=new x.VY;this.Ju.Hd("fm-ui-toggle-btn");this.Ju.aa("fm-expand-toggle-btn");this.Ju.N(w.ia.Xd,()=>this.tGa());this.Ju.af(-1);this.G.append(this.Ju.G);this.LE=new x.pK;this.LE.G.o5("tabindex");this.LE.N(w.ia.Xd,b=>this.Q4(b.data));this.G.append(this.LE.G);this.je("all")}tGa(){var b=this.getData();b.dg=1==this.Ju.getSelection();this.G.Ya(h.MJ.BJ,this,b)}Q4(b){var a=this.getData();a.Ad=this.LE.getSelection();this.G.Ya(h.MJ.AQ,
this,{Vb:a,shiftKey:b.shiftKey})}nb(){if(this.dv("data")){const a=this.getData();if(this.Ju&&this.LE&&a){this.G.V("padding-left","");var b=this.OEa*(a.xga-1);a.Xe||void 0!==a.dg||(b+=30);0<b&&this.G.V("padding-left",b+"px");a.pU?(this.Ju.show(),this.Ju.Jf(a.dg)):this.Ju.$a();this.LE.fb(a[this.ur()],!0);this.LE.Jf(a.Ad)}}}}h.$na=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Bd.Ura{constructor(){super();this.eV=null;this.af();this.mi((b,a)=>this.OBa(b,a))}OBa(b,a){var c=new h.$na;c.setData(b);c.hn(a);c.N(f.AQ,d=>this.Q4(d));c.N(f.BJ,d=>this.WGa(d));return c}sv(b){super.sv(b);b=b.data.Hl;b.Ad=1==b.Ad?0:1;this.u6(b)}Q4(b){this.u6(b.data.Vb,b.data.shiftKey)}u6(b,a=!1){1==b.Ad&&a&&this.eV&&this.vh().Qia(this.eV.Vb,b.Vb);this.NLa(b,1==b.Ad);this.Ha(new w.ia(f.AQ,this))}WGa(b){this.mka(b.data)}mka(b){b.dg?0===b.Vb.children.length||
b.Vb.Cf?e.model.Wa.R().ja.Nk(b.Vb.hierarchy,b.Vb,()=>this.ek(b)):this.ek(b):(this.vh().collapse(b.Vb),this.je("data"),this.Ha(new w.ia(f.BJ,this)))}ek(b){e.Ca(!1);this.vh().Oia(b.Vb);this.vh().expand(b.Vb);this.je("data");this.Ha(new w.ia(f.BJ,this))}vh(){return this.xza}M5(b){this.xza=b}WT(){return this.vh().WT()}DW(b){this.vh().DW(b);this.je("data")}Mz(){return this.vh().Mz()}jx(){return this.vh().jx()}getTotalLength(){return this.vh().IH()}kU(){return this.vh().getTotalLength()}NLa(b,a){this.vh()instanceof
h.vY?this.vh().select(b.Vb.ordinal,a):this.vh().select(b.Vb,a);this.eV=a?b:null;this.je("data")}selectAll(b){this.vh().selectAll(b);this.eV=null;this.je("data")}search(b,a){this.vh().search(b,c=>{this.vh().kja(c);this.je("data");a()});this.G.ab("fm-is-searched",this.Xe())}Xe(){return this.vh().Xe()}GW(b){this.vh().GW(b)}sort(b){b!==this.vh().ig&&(this.vh().lja(b),this.je("data"))}}f.AQ="_";f.BJ="__";h.MJ=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){if(null!=f.instance)throw"FilterModel is singleton!";this.oq=e.model.Wa.R()}static R(){null==f.instance&&(f.instance=new f);return f.instance}static dispose(){f.instance=null}update(b){this.Da=[];const a=this.oq.ja.qa.gd();for(let c=0;c<a.length;c++){const d=a[c],g=new e.model.hb.oh(d.A,d.$,d.index);g.label=d.caption;!b.filter.measure||-1!=b.filter.measure.index||g.A!=b.filter.measure.A||""!=b.filter.measure.$&&g.$!=b.filter.measure.$||
(b.filter.measure.index=g.index);this.Da.push(g)}this.rl={};this.Zia(b)}Zia(b){(this.hierarchy=b)?(this.hierarchy.filter.Fh&&(this.rl.type=this.hierarchy.filter.type,this.hierarchy.filter.measure&&(this.rl.measure=this.hierarchy.filter.measure.Sa()),this.hierarchy.filter.query&&(this.rl.query=this.hierarchy.filter.query.clone())),this.nd=this.hierarchy.hg!==e.u.i.Ba.ed?this.hierarchy.jk(this.hierarchy.pd,!1,this.hierarchy.hg):this.hierarchy.pd.children.slice(),this.taa=e.model.hb.lB.ZT(this.hierarchy)):
this.taa=e.u.i.tb.NONE;this.Raa=this.oq.ja.O.sH.Wea(this.hierarchy,this.Xn)}gd(){if(this.dj){var b=this.oq.ja.O.nf(this.hierarchy.A),a=new e.model.hb.oh(b.A,b.$,b.index);a.label=b.caption;return[a]}return this.oq.ja.ga.Ec?this.Da.filter(c=>{const d=this.oq.ja.O.fd(c.A);c=-1<e.u.i.ea.RA.indexOf(c.$);return d&&!d.Qa&&!c}):this.Da}Fua(b){var a=!1,c=!1;!e.v(this.hierarchy.filter.query)&&e.v(b.query)?(a=!0,this.hierarchy.HC(),this.oq.cb()):e.v(b.query)||(c=this.oEa(b));var d=this.Vfa(b);if(c||d)return a=
{},c&&!e.v(b.measure)&&(a.measure=b.measure),c&&!e.v(b.query)&&(a.query=b.query.Sa()),d&&!e.v(b.nd)&&(a.members=b.nd),d&&!e.v(b.zz)&&(a.exclude=b.zz),this.oq.Il(this.hierarchy.A,a),!0;a&&this.oq.refresh();return!1}xu(){this.oq.xu(this.hierarchy.A)}oEa(b){if(b.type==e.u.i.tb.Ua)return this.FDa(b);if(b.type==e.u.i.tb.fl)return this.bEa(b);if(b.type==e.u.i.tb.jb||b.type==e.u.i.tb.ec)return this.hEa(b);if(b.type==e.u.i.tb.wo)return this.zEa(b)}FDa(b){return this.hierarchy.filter.type!==b.type||this.hierarchy.filter.query.va!=
b.query.va?!0:0<=e.u.i.cc.ui.indexOf(b.query.va)?!e.Rf.e1(this.hierarchy.filter.query.value,b.query.value):0<=e.u.i.cc.Uf.indexOf(b.query.va)?this.hierarchy.filter.query.value&&b.query.value?!e.Rf.e1(this.hierarchy.filter.query.value[0],b.query.value[0])||!e.Rf.e1(this.hierarchy.filter.query.value[1],b.query.value[1]):!0:0<=e.u.i.cc.zy.indexOf(b.query.va)?this.hierarchy.filter.query.value!==b.query.value:!1}bEa(b){return this.hierarchy.filter.type!==b.type||this.hierarchy.filter.query.va!=b.query.va?
!0:0<=e.u.i.Eb.ui.indexOf(b.query.va)?this.hierarchy.filter.query.value!==b.query.value:0<=e.u.i.Eb.Uf.indexOf(b.query.va)?e.v(this.hierarchy.filter.query.value)||e.v(b.query.value)?!0:this.hierarchy.filter.query.value[0]!==b.query.value[0]||this.hierarchy.filter.query.value[1]!==b.query.value[1]:!1}hEa(b){return this.hierarchy.filter.type!==b.type||this.hierarchy.filter.query.va!==b.query.va?!0:0<=e.u.i.Ug.ui.indexOf(b.query.va)?this.hierarchy.filter.query.value!==b.query.value:0<=e.u.i.Ug.Uf.indexOf(b.query.va)?
e.v(this.hierarchy.filter.query.value)||e.v(b.query.value)?!0:this.hierarchy.filter.query.value[0]!==b.query.value[0]||this.hierarchy.filter.query.value[1]!==b.query.value[1]:!1}zEa(b){return this.hierarchy.filter.type!==b.type||this.hierarchy.filter.measure.A!==b.measure.uniqueName||this.hierarchy.filter.measure.$!==b.measure.aggregation||this.hierarchy.filter.query.va!=b.query.va?!0:0<=e.u.i.Wb.ui.indexOf(b.query.va)?this.hierarchy.filter.query.value!==b.query.value:0<=e.u.i.Wb.Uf.indexOf(b.query.va)?
e.v(this.hierarchy.filter.query.value)||e.v(b.query.value)?!0:this.hierarchy.filter.query.value[0]!==b.query.value[0]||this.hierarchy.filter.query.value[1]!==b.query.value[1]:!1}Vfa(b){if(null==b)return this.hierarchy.filter.Gh;if(null==b.nd&&null==b.zz)return!1;var a=this.hierarchy.filter.Hi();if(b.nd){var c=b.nd;if(c.length!=a.length)return!0;for(var d=0,g=c.length;d<g;d++)if(-1==a.indexOf(c[d]))return!0}if(b.zz){b=b.zz;if(a.length+b.length!==this.hierarchy.Zi-1)return!0;d=0;for(g=b.length;d<g;d++)if(-1==
a.indexOf(b[d]))return!0}return!1}$ua(b){b!=this.hierarchy.hg&&this.oq.SE(this.hierarchy.A,b)}get h3(){return!this.dj&&this.oq.ja.qa.qb.Bb(this.hierarchy.A)}get Ec(){return this.oq.Fa.ga.Ec}get dj(){return e.model.C.F.sc&&e.model.C.F.me!=l.Jd.nj}get Xn(){return this.taa}get kp(){return this.Raa?this.Raa:new e.u.O.xra}get mx(){return this.rl.type==e.u.i.tb.Ua||this.rl.type==e.u.i.tb.fl||this.rl.type==e.u.i.tb.jb||this.rl.type==e.u.i.tb.ec}get ji(){return this.rl.type==e.u.i.tb.wo}}h.C8=f})(l.filter||
(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends w.Mh{constructor(){super();this.model=h.C8.R();this.view=new h.boa;null!=this.view.dDa&&this.view.dDa.N(w.ia.Xd,b=>this.pHa(b));null!=this.view.$n&&(this.view.$n.N(x.Sj.oy,b=>this.yIa(b.data)),this.view.$n.N(x.Sj.fB,()=>this.AIa()),this.view.$n.N(x.Sj.W7,()=>this.zIa()));this.view.Zb&&this.view.Zb.Kd&&(this.view.Zb.Kd.N(h.MJ.AQ,()=>this.WHa()),this.view.Zb.Kd.N(h.MJ.BJ,()=>this.UHa()),this.view.Zb.Kd.N("keydown",b=>this.VHa(b)));null!=this.view.ae&&
this.view.ae.N(w.ia.Xd,()=>this.R4());null!=this.view.$k&&this.view.$k.N(w.ia.Xd,()=>this.GIa());null!=this.view.al&&this.view.al.N(w.ia.Xd,()=>this.HIa());null!=this.view.qf&&this.view.qf.N(w.ia.Xd,()=>this.xHa());null!=this.view.Pn&&this.view.Pn.N(w.ia.sp,()=>this.NV());null!=this.view.kq&&this.view.kq.N(w.ia.sp,()=>this.NV());null!=this.view.qq&&this.view.qq.N(w.ia.sp,()=>this.NV());null!=this.view.Eq&&this.view.Eq.N(w.ia.sp,()=>this.NV());null!=this.view.Pf&&this.view.Pf.N(w.ia.Xd,()=>this.UIa());
null!=this.view.ln&&this.view.ln.N(w.ia.sp,()=>this.TIa());null!=this.view.Mp&&this.view.Mp.N(x.Qd.uf,()=>this.cGa());null!=this.view.NG&&this.view.NG.N(x.Qd.uf,()=>this.at())}TIa(){this.view.Pf&&(this.view.Pf.Hd("fm-has-filter"),this.view.Pf.Jf(0),this.oO(),this.YI())}NV(){this.view.qf&&(this.view.qf.Hd("fm-has-filter"),this.view.qf.Jf(0),this.oO(),this.YI())}xHa(){this.view.Pf&&this.view.Pf.Jf(0);this.oO();this.YI()}UIa(){this.view.qf&&this.view.qf.Jf(0);this.oO();this.YI()}cGa(){var b=this.model.Fua(this.oBa());
this.model.$ua(this.qBa());b||this.Ya("close")}oO(){this.view.Pn&&this.view.Pn.isVisible(this.ox&&1===this.view.qf.getSelection()&&this.model.Xn==e.u.i.tb.Ua);this.view.kq&&this.view.kq.isVisible(this.ox&&1===this.view.qf.getSelection()&&this.model.Xn==e.u.i.tb.fl);this.view.qq&&this.view.qq.isVisible(this.ox&&1===this.view.qf.getSelection()&&this.model.Xn==e.u.i.tb.jb);this.view.Eq&&this.view.Eq.isVisible(this.ox&&1===this.view.qf.getSelection()&&this.model.Xn==e.u.i.tb.ec);this.view.ln&&this.view.ln.isVisible(this.Uz&&
1===this.view.Pf.getSelection());this.view.Zb&&(this.view.Zb.isVisible(this.model.kp.Wfa&&0==this.view.Pf.getSelection()&&0==this.view.qf.getSelection()),this.view.Zb.isVisible()&&this.view.Zb.Kd.Sr());this.view.ab("fm-query-filter-opened",!1);this.view.qf&&1===this.view.qf.getSelection()&&this.view.ab("fm-query-filter-opened",!0);this.view.Pf&&1===this.view.Pf.getSelection()&&this.view.ab("fm-query-filter-opened",!0);this.view.ab("fm-no-query-filters",!this.ox&&!this.Uz);this.view.ab("fm-no-member-filters",
!this.model.kp.Wfa);this.Ya("center")}YI(){this.view.Mp&&(this.view.Zb&&this.view.Zb.isVisible()?this.view.Mp.Bq(0<this.view.Zb.Kd.jx()):this.view.Mp.Bq(!0))}qBa(){return this.view.$k&&1==this.view.$k.getSelection()?e.u.i.Ba.hc:this.view.al&&1==this.view.al.getSelection()?e.u.i.Ba.Nc:this.view.$k&&this.view.al?e.u.i.Ba.ed:this.model.hierarchy.hg}Kea(){return this.model.Xn==e.u.i.tb.Ua?this.view.Pn.Ym():this.model.Xn==e.u.i.tb.fl?this.view.kq.Ym():this.model.Xn==e.u.i.tb.jb?this.view.qq.Ym():this.model.Xn==
e.u.i.tb.ec?this.view.Eq.Ym():null}oBa(){var b=null,a=null;1==this.view.qf.getSelection()?b=this.Kea():1==this.view.Pf.getSelection()?b=this.view.ln.Ym():(a=this.view.Zb.Ym(),this.model.Vfa(a)||(a=null));null==a&&null==b&&(this.view.qf.Sc("fm-has-filter")?b=this.Kea():this.view.Pf.Sc("fm-has-filter")&&(b=this.view.ln.Ym()));var c={};b&&(c.type=b.type,c.query=b.query,c.measure=b.measure);a&&(e.v(a.nd)||(c.nd=a.nd),e.v(a.zz)||(c.zz=a.zz));return c}at(){this.Ya("close")}GIa(){1===this.view.$k.getSelection()&&
(this.view.al.Jf(0),this.view.Zb&&this.view.Zb.Kd.sort(e.u.i.Ba.hc));0===this.view.$k.getSelection()&&0===this.view.al.getSelection()&&this.view.Zb&&this.view.Zb.Kd.sort(e.u.i.Ba.ed)}HIa(){1===this.view.al.getSelection()&&(this.view.$k.Jf(0),this.view.Zb&&this.view.Zb.Kd.sort(e.u.i.Ba.Nc));0===this.view.$k.getSelection()&&0===this.view.al.getSelection()&&this.view.Zb&&this.view.Zb.Kd.sort(e.u.i.Ba.ed)}R4(){this.view.Zb&&(this.view.Zb.Kd.selectAll(1==this.view.ae.getSelection()),this.view.Mp.Bq(0<
this.view.Zb.Kd.jx()));this.NO()}VHa(b){if(32===b.keyCode||13===b.keyCode){var a=this.view.Zb.Kd.Su();e.v(a)||(a=a.data,!a.pU||b.ctrlKey||b.metaKey?(a.Ad=1==a.Ad?0:1,this.view.Zb.Kd.u6(a)):(a.dg=!a.dg,this.view.Zb.Kd.mka(a)))}}WHa(){this.view.Mp.Bq(0<this.view.Zb.Kd.jx());this.tka();this.NO()}UHa(){this.B6();this.NO()}tka(){0==this.view.Zb.Kd.Mz()?this.view.ae.Jf(0):this.view.Zb.Kd.kU()>this.view.Zb.Kd.Mz()?this.view.ae.Jf(-1):this.view.Zb.Kd.kU()==this.view.Zb.Kd.Mz()&&this.view.ae.Jf(1)}update(b){0!=
this.view.isVisible()&&(1E4<b.Zi?(e.Ca(!0,e.model.B.j.KF,e.model.B.j.Ipa,!0,!0),setTimeout(()=>{this.model.update(b);this.kn();e.Ca(!1)},50)):(this.model.update(b),this.kn()))}yIa(b){e.model.C.F.wT&&b.trim()==b&&this.view.Zb&&this.view.Zb.Kd.search(b,()=>this.sE())}AIa(){var b=this.view.$n.bj();!e.model.C.F.wT&&b.trim()==b&&this.view.Zb&&this.view.Zb.Kd.search(b,()=>this.sE())}zIa(){!e.model.C.F.wT&&this.view.Zb&&this.view.Zb.Kd.search("",()=>this.sE())}sE(){this.B6();this.NO();this.tka();this.view.Mp.Bq(0<
this.view.Zb.Kd.jx())}kn(){this.view.ye();this.view.ab("fm-filter-pages-layout",this.model.h3);this.view.ab("fm-filter-flat-layout",this.model.dj);this.view.Zb&&this.view.Zb.reset();this.view.$n&&(this.view.$n.clear(),this.view.$n.yW(e.model.Wa.R().Fa.ga.Ec?1E3:0));this.view.Pf&&(e.u.i.Ra.$c==e.u.i.Ra.jAa(this.model.hierarchy.Ci.type+"")&&e.model.C.F.sc?this.view.Pf.$a():this.view.Pf.show());this.bNa();this.YMa();this.ZMa();this.XMa();this.B6();this.NO();this.aNa();this.YI();this.Sza()}Sza(){this.view.Zb&&
this.view.Zb.isVisible()?this.view.Zb.Kd.focus({preventScroll:!0}):this.view.qf&&1==this.view.qf.getSelection()?this.view.qf.focus({preventScroll:!0}):this.view.Pf&&1==this.view.Pf.getSelection()?this.view.Pf.focus({preventScroll:!0}):this.view.Mp.focus({preventScroll:!0})}aNa(){var b=!this.model.h3&&!e.model.C.F.sc;this.view.$k&&this.view.$k.isVisible(b);this.view.al&&this.view.al.isVisible(b);this.view.zO&&this.view.zO.isVisible(b);this.view.ab("fm-sort-only",!this.ox&&!this.Uz)}get Uz(){if(e.u.Ma.R().ga.Aa==
e.u.i.ra.API&&!this.model.kp.pga)return!1;if(this.model.dj){var b=this.model.oq.ja.O.nf(this.model.hierarchy.A);return!e.v(b)&&b.type==e.u.i.Ra.jb}return this.model.h3||e.u.Ma.R().ga.Aa==e.u.i.ra.Pd||e.u.Ma.R().ga.Aa==e.u.i.ra.kg||!this.gEa()?!1:!0}gEa(){return 0<this.model.gd().length}get ox(){return this.model.kp.sN&&e.u.Ma.R().ga.Aa!=e.u.i.ra.Pd&&!(this.model.dj&&this.model.Xn==e.u.i.tb.jb)}ZMa(){var b=this.model.hierarchy;this.view.ae&&this.view.ae.Jf(0<b.filter.Hi().length?-1:!b.filter.Gh);if(this.view.Zb){var a=
2<b.ua.length;this.view.Zb.Kd.ab("fm-tree-list",a);this.view.Zb.Kd.M5(a?new h.Upa:new h.vY);this.view.Zb.Kd.GW(b);this.view.Zb.Kd.gg(this.model.nd);this.view.Zb.Kd.DW(b.filter.Hi());this.view.Zb.Kd.sort(b.hg)}}YMa(){this.view.Nr&&(this.view.Nr.fb(this.model.hierarchy.caption),this.view.Nr.ni(this.model.hierarchy.caption));this.view.toolbar&&this.view.toolbar.DLa(this.model.hierarchy.caption)}B6(){this.view.Zb&&0<this.view.Zb.Kd.getTotalLength()?this.view.ae&&this.view.ae.show():this.view.ae&&this.view.ae.$a()}bNa(){this.view.$k&&
this.view.$k.Jf(this.model.hierarchy.hg==e.u.i.Ba.hc?1:0);this.view.al&&this.view.al.Jf(this.model.hierarchy.hg==e.u.i.Ba.Nc?1:0)}XMa(){this.view.rH&&this.view.rH.isVisible(this.ox||this.Uz);this.view.qf&&(this.model.Xn==e.u.i.tb.Ua?(this.view.eI.fb(e.model.B.j.u8),this.view.qf.zc(e.model.B.j.jB+" "+e.model.B.j.u8)):this.model.Xn==e.u.i.tb.fl?(this.view.eI.fb(e.model.B.j.HP),this.view.qf.zc(e.model.B.j.jB+" "+e.model.B.j.HP)):this.model.Xn==e.u.i.tb.jb?(this.view.eI.fb(e.model.B.j.x8),this.view.qf.zc(e.model.B.j.jB+
" "+e.model.B.j.x8)):this.model.Xn==e.u.i.tb.ec&&(this.view.eI.fb(e.model.B.j.y8),this.view.qf.zc(e.model.B.j.jB+" "+e.model.B.j.y8)),this.view.qf.isVisible(this.ox&&this.model.Xn!=e.u.i.tb.NONE),this.view.qf.ab("fm-has-filter",this.model.mx),this.view.qf.Jf(this.model.mx));this.view.Pf&&(this.model.dj&&!this.Uz&&this.model.hierarchy.filter.ji?(this.view.Pf.isVisible(!0),this.view.Pf.Bq(!1)):(this.view.Pf.isVisible(this.Uz),this.view.Pf.Bq(this.Uz)),this.view.Pf.ab("fm-has-filter",this.model.ji),
this.view.Pf.Jf(this.Uz&&this.model.ji));this.view.Pn&&(this.view.Pn.Pj=e.model.C.F.rM,this.view.Pn.Kf(this.model.hierarchy.getTimezoneOffset()),this.view.Pn.Px(this.model.kp.sN?this.model.kp.query:[]),this.view.Pn.reset(),this.model.rl.type==e.u.i.tb.Ua&&this.view.Pn.Il(this.model.rl));this.view.kq&&(this.view.kq.Px(this.model.kp.sN?this.model.kp.query:[]),this.view.kq.reset(),this.model.rl.type==e.u.i.tb.fl&&this.view.kq.Il(this.model.rl));this.view.qq&&(this.view.qq.Px(this.model.kp.sN?this.model.kp.query:
[]),this.view.qq.reset(),this.model.rl.type==e.u.i.tb.jb&&this.view.qq.Il(this.model.rl));this.view.Eq&&(this.view.Eq.Px(this.model.kp.sN?this.model.kp.query:[]),this.view.Eq.reset(),this.model.rl.type==e.u.i.tb.ec&&this.view.Eq.Il(this.model.rl));this.view.ln&&(this.view.ln.Px(this.model.kp.pga?this.model.kp.vm:[]),this.view.ln.reset(),this.view.ln.zA(this.model.gd()),this.model.rl.type==e.u.i.tb.wo&&this.view.ln.Il(this.model.rl),this.view.ln.ab("fm-arrow-first",!this.ox));this.oO();this.YI()}NO(){var b=
"";this.view.Zb&&(b=this.view.Zb.Kd.Xe()?e.P.bind(e.model.B.j.hna,this.view.Zb.Kd.Mz(),this.view.Zb.Kd.kU()):e.P.bind(e.model.B.j.ina,this.view.Zb.Kd.Mz(),this.view.Zb.Kd.kU()));this.view.Nx&&(this.view.Nx.fb(b),this.view.Nx.ni(b));this.view.ae&&this.view.ae.fb(this.view.Zb&&this.view.Zb.Kd.Xe()?e.model.B.j.Lna:e.model.B.j.Lv)}pHa(b){var a=b.data.Hl;-1<b.data.selectedIndex&&(this.model.Zia(a),this.kn())}}h.Zna=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.ce.Fy{constructor(){super(l.Sb.Jb.G);this.aa("fm-filter-view");this.aa("fm-noselect");this.Se=new h.Zna;this.Se.N("close",()=>this.close());this.Se.N("center",()=>this.Pp());this.X(this.Se.view);this.Se.view.show();this.G.ij({RW:[x.ij.ti.pi,x.ij.ti.CF,x.ij.ti.UF],LS:l.Sb.Jb.G,H_:!0,resize:b=>this.TN(b),complete:()=>this.Pp()})}TN(b){b.WE==x.ij.ti.CF||b.WE==x.ij.ti.UF?(this.Se.view.Yk(b.size.width+(b.size.width-b.W4.width)),this.Pp()):b.WE==
x.ij.ti.pi&&(this.Se.view.Mr(b.size.height),b.size.height>b.W4.height&&this.Pya());this.wC()}Pya(){this.Se.view.Zb&&this.Se.view.Zb.isVisible()&&this.Se.view.G.requestAnimationFrame(()=>{this.Se.view.Zb.Kd.Sr()})}ap(b){this.open();this.Se.update(b);this.Pp();this.Ya(w.ia.OPENED)}close(){this.hv&&(super.close(),this.Ya(w.ia.CLOSED),e.model.Za.R().Ha(new e.model.jd(e.model.Za.ZX)))}wC(){this.G.ab("fm-layout-mobile-small",460>this.G.cg(!0))}}h.aoa=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q=
{}));
(function(e){(function(l){(function(h){class f extends x.Pa{constructor(){super("div","fm-filters-table");var b=new x.Pa("div","fm-filters-table-header fm-fth-withsearch");this.X(b);var a=new x.Pa("div","fm-select-all-wrapper");a.aa("fm-ui-col");this.ae=new x.pK;this.ae.aa("fm-select-all-label");this.ae.fb(e.model.B.j.Lv);this.ae.ni(e.model.B.j.Lv);a.X(this.ae);var c=new x.Pa("div","fm-select-counter-wrap");c.aa("fm-ui-col");this.Nx=new x.Tc;this.Nx.aa("fm-select-counter");c.X(this.Nx);b.X(a);b.X(c);
this.$e=new x.Pa("div","fm-search-wrap");b.X(this.$e);this.pe=new x.Pa("a","fm-search-btn");this.pe.G.text(e.model.B.j.$X);this.pe.af();this.pe.N("click",()=>this.ct());this.pe.N("focus",()=>this.ct());this.$e.X(this.pe);this.$n=new x.Sj;this.$n.aa("fm-search-inp");this.$e.X(this.$n);b=new x.Qd("fm-close-search");b.N(x.Qd.uf,()=>this.dt());this.$e.X(b);b=new x.Pa("div","fm-filters-table-content");this.X(b);this.Kd=new h.MJ;this.Kd.aa("fm-members-filter-list");this.Kd.M5(new h.vY);b.X(this.Kd)}ye(){this.$n.PE(e.model.B.j.$X);
this.ae.fb(e.model.B.j.Lv);this.ae.ni(e.model.B.j.Lv);this.pe.G.text(e.model.B.j.$X)}ct(){this.pe.af(-1);this.$e.aa("fm-search-opened");this.$n.G.focus();this.Nx.$a()}dt(){this.pe.af(0);this.$e.Hd("fm-search-opened");this.$n.clear();this.Nx.show()}Ym(){var b=this.Kd.WT();return b.items?b.ov?{zz:b.items}:{nd:b.items}:null}reset(){this.dt()}}h.Tpa=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Pa{constructor(){super("div","fm-filters-subview-wrap");this.Xc=[];var b=new x.Pa("div","fm-filters-subview");this.X(b);this.zr=new x.Bd.es;this.zr.aa("fm-measures-dropdown");this.zr.xg("label");this.zr.PE(e.model.B.j.Fna);b.X(this.zr);this.Rc=new x.Bd.es;this.Rc.aa("fm-conditions-dropdown");this.Rc.xg("label");this.Rc.N(w.ia.Xd,()=>this.Qk());b.X(this.Rc);this.kh=new x.Uq;this.kh.aa("fm-num-input-1");this.kh.QE(x.Uq.TF);b.X(this.kh);this.hj=
new x.Uq;this.hj.aa("fm-num-input-2");this.hj.QE(x.Uq.TF);b.X(this.hj);var a=new x.Ga("div","fm-buttons-bar");b.G.X(a);this.Hg=new x.Qd("fm-ui-link-btn");this.Hg.aa("fm-muted");this.Hg.Hd("fm-ui-btn");this.Hg.N(x.Qd.uf,()=>this.Gx());a.X(this.Hg.G)}Gx(){this.$a();this.Ya(w.ia.sp)}Qk(){let b=this.Rc.Vh();e.v(b)||this.G.ab("fm-range",0<=e.u.i.Wb.Uf.indexOf(b.value))}zA(b){this.zr.gg(b);this.zr.Xk(0);this.Bq(0<b.length)}reset(){this.zr.Xk(0);this.Rc.Xk(0);this.Qk();this.kh.oi(10);this.hj.oi(0)}Ym(){if(e.v(this.zr.Vh()))return null;
var b={type:e.u.i.tb.wo};b.measure=this.zr.Vh().Sa();var a=this.Rc.Vh().value;if(0<=e.u.i.Wb.ui.indexOf(a)){var c=this.kh.La();!isNaN(c)||a!=e.u.i.Wb.Rj&&a!=e.u.i.Wb.pi||(c=0);b.query=new e.model.hb.ym(a,c)}0<=e.u.i.Wb.Uf.indexOf(a)&&(b.query=new e.model.hb.ym(a,[this.kh.La(),this.hj.La()]));return b}Il(b){this.Rc.qt(c=>c.value===b.query.va);this.Qk();const a=this.zr.Bc();for(let c=0;c<a.length;c++)if(a[c].A==b.measure.uniqueName&&a[c].$==b.measure.aggregation){this.zr.Xk(c);break}0<=e.u.i.Wb.ui.indexOf(b.query.va)&&
this.kh.oi(b.query.value);0<=e.u.i.Wb.Uf.indexOf(b.query.va)&&(this.kh.oi(b.query.value[0]),this.hj.oi(b.query.value[1]))}Px(b){this.Xc=b;this.ye()}I(b){switch(b){case e.u.i.Wb.Rj:return e.model.B.j.Ena;case e.u.i.Wb.pi:return e.model.B.j.vna;case e.u.i.Wb.EQUAL:return e.model.B.j.HJ;case e.u.i.Wb.Tf:return e.model.B.j.JJ;case e.u.i.Wb.GREATER:return e.model.B.j.DP;case e.u.i.Wb.dl:return e.model.B.j.EP;case e.u.i.Wb.LESS:return e.model.B.j.FP;case e.u.i.Wb.gl:return e.model.B.j.GP;case e.u.i.Wb.mh:return e.model.B.j.GJ;
case e.u.i.Wb.Tg:return e.model.B.j.IJ}}ye(){this.zr.zc(e.model.B.j.ona);this.Rc.zc(e.model.B.j.CP);this.kh.zc(e.model.B.j.kB);this.hj.zc(e.model.B.j.kB);this.Rc.gg(this.Xc.map(b=>({value:b,label:this.I(b)})));this.Hg.fb(e.model.B.j.nna)}}h.esa=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Pa{constructor(){super("div","fm-filters-subview-wrap");this.Xc=[];this.iu=!1;var b=new x.Pa("div","fm-filters-subview");this.X(b);this.Rc=new x.Bd.es;this.Rc.aa("fm-conditions-dropdown");this.Rc.xg("label");this.Rc.N(w.ia.Xd,()=>this.Qk());b.X(this.Rc);this.Zj=new x.ZL.n$;this.Zj.aa("fm-datepicker-1");this.Zj.Pj=this.Pj;this.Zj.N(w.ia.Xd,()=>this.NGa());b.X(this.Zj);this.pl=new x.ZL.n$;this.pl.aa("fm-datepicker-2");this.pl.Pj=this.Pj;this.pl.N(w.ia.Xd,
()=>this.OGa());b.X(this.pl);this.yE=new x.Bd.es;this.yE.aa("fm-periods-dropdown");this.yE.xg("label");b.X(this.yE);var a=new x.Ga("div","fm-buttons-bar");b.G.X(a);this.Hg=new x.Qd("fm-ui-link-btn");this.Hg.aa("fm-muted");this.Hg.Hd("fm-ui-btn");this.Hg.N(x.Qd.uf,()=>this.Gx());a.X(this.Hg.G)}set Pj(b){this.iu=b;this.Zj.Pj=b;this.pl.Pj=b}get Pj(){return this.iu}Px(b){this.Xc=b;this.ye()}I(b){switch(b){case e.u.i.cc.EQUAL:return e.model.B.j.HJ;case e.u.i.cc.Tf:return e.model.B.j.JJ;case e.u.i.cc.iF:return e.model.B.j.sna;
case e.u.i.cc.jF:return e.model.B.j.tna;case e.u.i.cc.fF:return e.model.B.j.qna;case e.u.i.cc.gF:return e.model.B.j.rna;case e.u.i.cc.mh:return e.model.B.j.GJ;case e.u.i.cc.Tg:return e.model.B.j.IJ;case e.u.i.cc.UP:return e.model.B.j.zna;case e.u.i.cc.hP:return e.model.B.j.xna;case e.u.i.cc.oQ:return e.model.B.j.Ana}}ye(){this.Rc.zc(e.model.B.j.CP);this.Rc.gg(this.Xc.map(b=>({value:b,label:this.I(b)})));this.yE.gg([{value:e.u.i.cB.pn,label:e.model.B.j.Gna},{value:e.u.i.cB.sK,label:e.model.B.j.Jna},
{value:e.u.i.cB.nh,label:e.model.B.j.Hna},{value:e.u.i.cB.Nt,label:e.model.B.j.Ina},{value:e.u.i.cB.Sl,label:e.model.B.j.Kna}]);this.Hg.fb(e.model.B.j.jna);this.Zj.ye();this.pl.ye();this.Zj.jy=e.model.C.F.Yw;this.pl.jy=e.model.C.F.Yw;this.Zj.Fu=e.model.C.F.p1;this.pl.Fu=e.model.C.F.p1}Ym(){var b={type:e.u.i.tb.Ua},a=this.Rc.Vh().value;0<=e.u.i.cc.ui.indexOf(a)&&(b.query=new e.model.hb.ym(a,this.Zj.qc));if(0<=e.u.i.cc.Uf.indexOf(a)){var c=this.Zj.qc,d=this.pl.qc;b.query=new e.model.hb.ym(a,c.getTime()<
d.getTime()?[c,d]:[d,c])}0<=e.u.i.cc.zy.indexOf(a)&&(b.query=new e.model.hb.ym(a,this.yE.Vh().value));return b}Il(b){this.Rc.qt(a=>a.value===b.query.va);this.Qk();0<=e.u.i.cc.ui.indexOf(b.query.va)&&(this.Zj.qc=b.query.value.clone());0<=e.u.i.cc.Uf.indexOf(b.query.va)&&(this.Zj.qc=b.query.value[0].clone(),this.pl.qc=b.query.value[1].clone());0<=e.u.i.cc.zy.indexOf(b.query.va)&&this.yE.qt(a=>a.value===b.query.value)}Kf(b){this.Zj.bi=b;this.pl.bi=b}reset(){this.Rc.Xk(0);this.yE.Xk(0);this.Qk();this.Zj.OLa();
this.pl.qc=null;this.Zj.bi=null;this.pl.bi=null}Qk(){var b=this.Rc.Vh();e.v(b)||(b=b.value,this.G.ab("fm-date-range",0<=e.u.i.cc.Uf.indexOf(b)),this.G.ab("fm-date-period",0<=e.u.i.cc.zy.indexOf(b)),0<=e.u.i.cc.Uf.indexOf(b)&&null==this.pl.qc&&null!=this.Zj.qc&&(this.pl.qc=this.Zj.qc.clone()))}NGa(){null==this.pl.qc&&0<=e.u.i.cc.Uf.indexOf(this.Rc.Vh().value)&&(this.pl.qc=this.Zj.qc.clone())}OGa(){null==this.Zj.qc&&0<=e.u.i.cc.Uf.indexOf(this.Rc.Vh().value)&&(this.Zj.qc=this.pl.qc.clone())}Gx(){this.reset();
this.$a();this.Ya(w.ia.sp)}}h.Jma=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Pa{constructor(){super("div","fm-filters-subview-wrap");this.Xc=[];var b=new x.Pa("div","fm-filters-subview");this.X(b);this.Rc=new x.Bd.es;this.Rc.aa("fm-conditions-dropdown");this.Rc.xg("label");this.Rc.N(w.ia.Xd,()=>this.Qk());b.X(this.Rc);this.IA=new x.Sj;this.IA.aa("fm-txt-input-1");b.X(this.IA);this.XI=new x.Sj;this.XI.aa("fm-txt-input-2");b.X(this.XI);var a=new x.Ga("div","fm-buttons-bar");b.G.X(a);this.Hg=new x.Qd("fm-ui-link-btn");
this.Hg.aa("fm-muted");this.Hg.Hd("fm-ui-btn");this.Hg.N(x.Qd.uf,()=>this.Gx());a.X(this.Hg.G)}Px(b){this.Xc=b;this.ye()}I(b){switch(b){case e.u.i.Eb.EQUAL:return e.model.B.j.HJ;case e.u.i.Eb.Tf:return e.model.B.j.JJ;case e.u.i.Eb.kF:return e.model.B.j.una;case e.u.i.Eb.rB:return e.model.B.j.Bna;case e.u.i.Eb.eB:return e.model.B.j.yna;case e.u.i.Eb.tB:return e.model.B.j.Dna;case e.u.i.Eb.ho:return e.model.B.j.wna;case e.u.i.Eb.sB:return e.model.B.j.Cna;case e.u.i.Eb.GREATER:return e.model.B.j.DP;
case e.u.i.Eb.dl:return e.model.B.j.EP;case e.u.i.Eb.LESS:return e.model.B.j.FP;case e.u.i.Eb.gl:return e.model.B.j.GP;case e.u.i.Eb.mh:return e.model.B.j.GJ;case e.u.i.Eb.Tg:return e.model.B.j.IJ}}ye(){this.Rc.zc(e.model.B.j.CP);this.IA.zc(e.model.B.j.kB);this.XI.zc(e.model.B.j.kB);this.Rc.gg(this.Xc.map(b=>({value:b,label:this.I(b)})));this.Hg.fb(e.model.B.j.kna)}Ym(){var b={type:e.u.i.tb.fl},a=this.Rc.Vh().value;0<=e.u.i.Eb.ui.indexOf(a)&&(b.query=new e.model.hb.ym(a,this.IA.bj()));0<=e.u.i.Eb.Uf.indexOf(a)&&
(b.query=new e.model.hb.ym(a,[this.IA.bj(),this.XI.bj()]));return b}Il(b){this.Rc.qt(a=>a.value===b.query.va);this.Qk();0<=e.u.i.Eb.ui.indexOf(b.query.va)&&this.IA.ik(b.query.value);0<=e.u.i.Eb.Uf.indexOf(b.query.va)&&(this.IA.ik(b.query.value[0]),this.XI.ik(b.query.value[1]))}reset(){this.Rc.Xk(0);this.Qk();this.IA.ik("");this.XI.ik("")}Qk(){let b=this.Rc.Vh();e.v(b)||this.G.ab("fm-range",0<=e.u.i.Eb.Uf.indexOf(b.value))}Gx(){this.reset();this.$a();this.Ya(w.ia.sp)}}h.Goa=f})(l.filter||(l.filter=
{}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Pa{constructor(){super("div","fm-filters-subview-wrap");this.Xc=[];var b=new x.Pa("div","fm-filters-subview");this.X(b);this.Rc=new x.Bd.es;this.Rc.aa("fm-conditions-dropdown");this.Rc.xg("label");this.Rc.N(w.ia.Xd,()=>this.Qk());b.X(this.Rc);this.kh=new x.Uq;this.kh.aa("fm-num-input-1");this.kh.QE(x.Uq.TF);b.X(this.kh);this.hj=new x.Uq;this.hj.aa("fm-num-input-2");this.hj.QE(x.Uq.TF);b.X(this.hj);var a=new x.Ga("div","fm-buttons-bar");b.G.X(a);
this.Hg=new x.Qd("fm-ui-link-btn");this.Hg.aa("fm-muted");this.Hg.Hd("fm-ui-btn");this.Hg.N(x.Qd.uf,()=>this.Gx());a.X(this.Hg.G)}Px(b){this.Xc=b;this.ye()}I(b){switch(b){case e.u.i.Ug.EQUAL:return e.model.B.j.HJ;case e.u.i.Ug.Tf:return e.model.B.j.JJ;case e.u.i.Ug.GREATER:return e.model.B.j.DP;case e.u.i.Ug.dl:return e.model.B.j.EP;case e.u.i.Ug.LESS:return e.model.B.j.FP;case e.u.i.Ug.gl:return e.model.B.j.GP;case e.u.i.Ug.mh:return e.model.B.j.GJ;case e.u.i.Ug.Tg:return e.model.B.j.IJ}}ye(){this.Rc.gg(this.Xc.map(b=>
({value:b,label:this.I(b)})));this.Hg.fb(e.model.B.j.lna)}Ym(){var b={type:e.u.i.tb.jb},a=this.Rc.Vh().value;0<=e.u.i.Ug.ui.indexOf(a)&&(b.query=new e.model.hb.ym(a,this.kh.La()));0<=e.u.i.Ug.Uf.indexOf(a)&&(b.query=new e.model.hb.ym(a,[this.kh.La(),this.hj.La()]));return b}Il(b){this.Rc.qt(a=>a.value===b.query.va);this.Qk();0<=e.u.i.Ug.ui.indexOf(b.query.va)&&this.kh.oi(b.query.value);0<=e.u.i.Ug.Uf.indexOf(b.query.va)&&(this.kh.oi(b.query.value[0]),this.hj.oi(b.query.value[1]))}reset(){this.Rc.Xk(0);
this.Qk();this.kh.oi(0);this.hj.oi(0)}Qk(){let b=this.Rc.Vh();e.v(b)||this.G.ab("fm-range",0<=e.u.i.Ug.Uf.indexOf(b.value))}Gx(){this.reset();this.$a();this.Ya(w.ia.sp)}}h.dqa=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Pa{constructor(){super("div","fm-filters-subview-wrap");this.Xc=[];var b=new x.Pa("div","fm-filters-subview");this.X(b);this.Rc=new x.Bd.es;this.Rc.aa("fm-conditions-dropdown");this.Rc.xg("label");this.Rc.N(w.ia.Xd,()=>this.Qk());b.X(this.Rc);this.kh=new x.Uq;this.kh.aa("fm-num-input-1");this.kh.QE(x.Uq.TF);b.X(this.kh);this.hj=new x.Uq;this.hj.aa("fm-num-input-2");this.hj.QE(x.Uq.TF);b.X(this.hj);this.$u=new x.Bd.es;this.$u.aa("fm-interval-dropdown");
this.$u.xg("label");this.$u.mO("ariaLabel");b.X(this.$u);b=new x.Ga("div","fm-buttons-bar");this.G.X(b);this.Hg=new x.Qd("fm-ui-link-btn");this.Hg.aa("fm-muted");this.Hg.Hd("fm-ui-btn");this.Hg.N(x.Qd.uf,()=>this.Gx());b.X(this.Hg.G)}Px(b){this.Xc=b;this.ye()}I(b){switch(b){case e.u.i.il.EQUAL:return e.model.B.j.HJ;case e.u.i.il.Tf:return e.model.B.j.JJ;case e.u.i.il.GREATER:return e.model.B.j.DP;case e.u.i.il.dl:return e.model.B.j.EP;case e.u.i.il.LESS:return e.model.B.j.FP;case e.u.i.il.gl:return e.model.B.j.GP;
case e.u.i.il.mh:return e.model.B.j.GJ;case e.u.i.il.Tg:return e.model.B.j.IJ}}ye(){this.Rc.zc(e.model.B.j.CP);this.kh.zc(e.model.B.j.kB);this.hj.zc(e.model.B.j.kB);this.Rc.gg(this.Xc.map(b=>({value:b,label:this.I(b)})));this.$u.zc(e.model.B.j.pna);this.$u.gg([{value:"s",label:e.model.B.j.Tna,ariaLabel:e.model.B.j.Una},{value:"m",label:e.model.B.j.Rna,ariaLabel:e.model.B.j.Sna},{value:"h",label:e.model.B.j.Pna,ariaLabel:e.model.B.j.Qna},{value:"d",label:e.model.B.j.Nna,ariaLabel:e.model.B.j.Ona}]);
this.Hg.fb(e.model.B.j.mna)}Ym(){var b={type:e.u.i.tb.ec},a=this.Rc.Vh().value,c=this.$u.Vh().value;0<=e.u.i.il.ui.indexOf(a)&&(b.query=new e.model.hb.ym(a,this.kh.La()+c));0<=e.u.i.il.Uf.indexOf(a)&&(b.query=new e.model.hb.ym(a,[this.kh.La()+c,this.hj.La()+c]));return b}Il(b){this.Rc.qt(g=>g.value===b.query.va);this.Qk();for(var a=this.$u.Bc(),c=0;c<a.length;c++){var d=a[c].value;if(0<=b.query.value.indexOf(d)){this.$u.Xk(c);break}}0<=e.u.i.il.ui.indexOf(b.query.va)&&(a=parseFloat(b.query.value.replace(d,
"")),this.kh.oi(a));0<=e.u.i.il.Uf.indexOf(b.query.va)&&(a=parseFloat(b.query.value[0].replace(d,"")),d=parseFloat(b.query.value[1].replace(d,"")),this.kh.oi(a),this.hj.oi(d))}reset(){this.Rc.Xk(0);this.Qk();this.kh.oi(0);this.hj.oi(0);this.$u.Xk(0)}Qk(){let b=this.Rc.Vh();e.v(b)||this.G.ab("fm-range",0<=e.u.i.il.Uf.indexOf(b.value))}Gx(){this.reset();this.$a();this.Ya(w.ia.sp)}}h.Nra=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));var S;
(function(e){class l{constructor(){this.styleSheet=new e.vd.osa;this.lh=[];e.vd.format.Rt.uga=e.vd.format.Rt.Qca;e.YF.RI=[]}async LMa(){var h={};h["[Content_Types].xml"]=e.Wi.St+this.wwa();h["_rels/.rels"]=e.Wi.St+e.Wi.rsa;h["xl/_rels/workbook.xml.rels"]=e.Wi.St+this.Ywa();h["xl/workbook.xml"]=e.Wi.St+this.Zwa();h["xl/theme/theme1.xml"]=e.Wi.St+e.Wi.Ara;for(var f=0;f<this.lh.length;f++){var b=this.lh[f].Lc();h["xl/worksheets/sheet"+(f+1)+".xml"]=e.Wi.St+b}f=this.Vwa();h["xl/sharedStrings.xml"]=e.Wi.St+
f;h["xl/styles.xml"]=e.Wi.St+this.styleSheet.Lc();h["docProps/app.xml"]=e.Wi.St+e.Wi.Yka;h["docProps/core.xml"]=e.Wi.St+e.Wi.ama;return await (new z.Yna).$wa(h)}Vwa(){let h="";z.ba.create("<axis/>").attr("name","rows");for(let f=0;f<e.YF.RI.length;f++){const b=q.P.mza(e.YF.RI[f]);h+="<si><t>"+b+"</t></si>"}return e.Wi.ara.replace("{0}",h)}Zwa(){for(var h="",f=0;f<this.lh.length;f++)h+=q.P.bind('<sheet name="{0}" sheetId="{1}" r:id="{2}"/>',this.lh[f].name,f+1,"rId"+(f+4));return q.P.bind(e.Wi.fsa,
h)}Ywa(){for(var h="",f=0;f<this.lh.length;f++)h+=q.P.bind(e.Wi.hsa,"rId"+(f+4),"worksheets/sheet"+(f+1)+".xml");return q.P.bind(e.Wi.gsa,h)}wwa(){for(var h="",f=0;f<this.lh.length;f++)h+=q.P.bind(e.Wi.Cla,"/xl/worksheets/sheet"+(f+1)+".xml");return q.P.bind(e.Wi.Bla,h)}}e.jsa=l})(S||(S={}));
(function(e){class l{constructor(h=0,f=0,b="",a=0){this.mt=h;this.Au=f;this.value=b;this.m6=a}get type(){return this.Fg}set value(h){"number"===typeof h&&isNaN(h)&&(h="");if("string"===typeof h){h=h.replace(RegExp("<br/?>","gmi"),"\n");h=h.replace("/&/gmi","");const f=e.YF.RI.indexOf(h);-1==f?(this.bL=e.YF.RI.length,e.YF.RI.push(h)):this.bL=f;this.Fg=e.Hy.$c}else this.bL=h,this.Fg="number"===typeof h?e.Hy.jb:null===h?e.Hy.B9:!1===h?e.Hy.f9:e.Hy.Wra}get value(){return this.bL}set id(h){}get id(){let h=
"",f=this.Au;for(;0<=f;)h=String.fromCharCode(f%26+65)+h,f=Math.floor(f/26)-1;return h+(this.mt+1)}toString(){return"XLSCell {row: "+this.mt+", column: "+this.Au+", type: "+this.type+", id: "+this.id+", value: "+this.value+"}"}}e.RQ=l})(S||(S={}));var ib=S||(S={});class jb{}jb.RI=[];ib.YF=jb;
(function(e){class l{constructor(h){this.cells=[];this.sV=this.tV=0;this.Ka=[];this.rows=[];this.vV=[];this.name=this.kza(h)}kza(h){h=h.replace(/[\\/*[\]:?]/g,"");"'"==h.charAt(0)&&(h=h.substr(1));h=h.replace(/&/g,"&amp;");h=h.replace(/'/g,"&apos;");h=h.replace(/"/g,"&quot;");h=h.replace(/</g,"&lt;");h=h.replace(/>/g,"&gt;");30<h.length&&(h=h.substr(0,27)+"...");return h}get Sga(){return this.ag(this.tV,this.sV)}set Sga(h){}get pwa(){return this.sV+1}get dO(){return this.tV+1}Xia(h,f){this.Ka[h]=
f}zH(h){return this.Ka[h]?this.Ka[h]:0}Rx(h,f){this.rows[h]=f}$d(h){return this.rows[h]?this.rows[h]:0}Oi(h,f,b,a=null){null==this.cells[h]&&(this.cells[h]=[]);this.cells[h][f]=b instanceof e.RQ?b:new e.RQ(h,f,b,null==a?0:a.index);this.tV<h&&(this.tV=h);this.sV<f&&(this.sV=f)}ag(h,f){var b;null!=this.cells[h]&&(b=this.cells[h][f]);null==b&&(b=new e.RQ(h,f,null));return b}Xga(h,f,b){var a=this.ag(h,f);if(null!=a){for(var c=a.id,d,g=f+1;g<f+b;g++)d=new e.RQ(h,g,!1,a.m6),this.cells[h][g]=d;c+=":"+(d?
d.id:a.id);this.vV.push(c)}}Lc(){for(var h="",f=0;f<this.cells.length;f++){var b=this.cells[f];if(null!=b&&0!=b.length){for(var a="",c=0;c<b.length;c++){var d=b[c];null!=d&&d.type!=e.Hy.B9&&(a=d.type==e.Hy.f9?a+('<c r="'+d.id+'" s="'+d.m6.toString()+'" />'):a+('<c r="'+d.id+'" s="'+d.m6.toString()+'"'+(d.type==e.Hy.$c?' t="s"':"")+"><v>"+d.value+"</v></c>"))}h=isNaN(this.rows[f])?h+q.P.bind('<row spans="1:3" r="{0}"  >{1}</row>',f+1,a):h+q.P.bind('<row spans="1:3" r="{0}" x14ac:dyDescent="0.25" ht="{1}" customHeight="1">{2}</row>',
f+1,this.rows[f],a)}}f="";for(b=0;b<this.Ka.length;b++)isNaN(this.Ka[b])||(f+=q.P.bind('<col min="{0}" max="{1}" width="{2}" customWidth="1" />',b+1,b+1,this.Ka[b]));a="";for(b=0;b<this.vV.length;b++)a+=q.P.bind('<mergeCell ref="{0}"/>',this.vV[b]);b=0<this.vV.length?q.P.bind('<mergeCells count="{0}">{1}</mergeCells>',this.Xga.length,a):"";return q.P.bind(e.Wi.bra,this.ag(0,0).id+":"+this.Sga.id,f,h,b)}}e.ksa=l})(S||(S={}));var kb=S||(S={});class lb{}lb.B9=0;lb.jb=1;lb.$c=2;lb.f9=98;lb.Wra=99;
kb.Hy=lb;
(function(e){(function(l){class h{constructor(f,b,a=null,c=null){this.index=0;this.fill=b instanceof l.fm.tK?b:!isNaN(b)&&-1<b?new l.fm.tK(b):new l.fm.tK;this.font=f instanceof l.fonts.$v?f:new l.fonts.$v(f);this.format=a&&a instanceof l.format.Rt?a:new l.format.Rt(0,"");null!=c&&(this.textAlign=c)}set id(f){}get id(){return this.fill.id+":"+this.font.id+":"+this.textIndent+":"+this.textAlign+":"+this.format.id}Lc(){var f=this.textIndent||this.textAlign?q.P.bind('<alignment vertical="center" horizontal="{0}" wrapText="1"{1}/>',q.v(this.textAlign)?
"left":this.textAlign,q.v(this.textIndent)?"":' indent="'+this.textIndent+'"'):'<alignment vertical="center" wrapText="1"/>';return q.P.bind('<xf numFmtId="{0}"{1} fontId="{2}" fillId="{3}" borderId="1" xfId="0" applyFont="1" applyFill="1"{4}>{5}</xf>',this.format.iA,0<this.format.iA?' applyNumberFormat = "1"':"",this.font.xT,this.fill.pM,0<f.length?' applyAlignment="1"':"",f)}}l.JB=h})(e.vd||(e.vd={}))})(S||(S={}));
(function(e){(function(l){class h{constructor(){this.vd=new q.ub;this.fm=new q.ub;this.fonts=new q.ub;this.Fe=new q.ub;this.bba(new l.fm.tK);var f=new l.fm.tK;f.e5.f5="solid";f.pM=1;this.fm.Ta("solid",f)}rw(f){this.vd.Bb(f.id)?f.index=this.vd.getItem(f.id).index:(this.bba(f.fill),this.addFont(f.font),this.vd.Ta(f.id,f),f.index=this.vd.length)}bba(f){this.fm.Bb(f.id)?f.pM=this.fm.getItem(f.id).pM:(f.pM=this.fm.length,this.fm.Ta(f.id,f))}addFont(f){this.fonts.Bb(f.id)?f.xT=this.fonts.getItem(f.id).xT:
(this.fonts.Ta(f.id,f),f.xT=this.fonts.length)}aua(f){this.Fe.Bb(f.id)?f.iA=this.Fe.getItem(f.id).iA:(-1==f.iA&&(f.iA=l.format.Rt.aCa()),this.Fe.Ta(f.id,f))}Lc(){var f="",b="",a="",c="",d;if(0<this.Fe.length){var g=0,k="";for(d=0;d<this.Fe.length;d++){var m=this.Fe.fa(d);""!=m.BT&&(m=m.Lc(),k+=m,g++)}0<g&&(f='<numFmts count="'+g+'">'+k+"</numFmts>")}for(d=0;d<this.fm.length;d++)g=this.fm.fa(d),b+=g.Lc();for(d=0;d<this.fonts.length;d++)g=this.fonts.fa(d),a+=g.Lc();for(d=0;d<this.vd.length;d++)g=this.vd.fa(d),
c+=g.Lc();return q.P.bind(e.Wi.kra,f,this.fonts.length+1,a,this.fm.length,b,this.vd.length+1,c)}}l.osa=h})(e.vd||(e.vd={}))})(S||(S={}));
(function(e){(function(l){(function(h){class f{constructor(b){this.rgb=b}set id(b){}get id(){return this.rgb.toString(16)}Lc(b=""){0==b.length&&(b="color");b="<"+b;this.jva&&(b+=' auto="'+this.jva+'"');this.rMa&&(b+=' theme="'+this.rMa+'"');this.vMa&&(b+=' tint="'+this.vMa+'"');this.kDa&&(b+=' indexed="'+this.kDa+'"');for(var a=this.rgb.toString(16).toUpperCase();6>a.length;)a="0"+a;return b+(' rgb="FF'+a+'"/>')}}h.ZY=f})(l.color||(l.color={}))})(e.vd||(e.vd={}))})(S||(S={}));
(function(e){(function(l){(function(h){class f extends h.ZY{constructor(b){super(b)}Lc(){return super.Lc("bgColor")}}h.lsa=f})(l.color||(l.color={}))})(e.vd||(e.vd={}))})(S||(S={}));(function(e){(function(l){(function(h){class f extends h.ZY{constructor(b){super(b)}Lc(){return super.Lc("fgColor")}}h.msa=f})(l.color||(l.color={}))})(e.vd||(e.vd={}))})(S||(S={}));
(function(e){(function(l){(function(h){class f{constructor(b=-1){this.pM=0;this.e5=new h.nsa(b)}Lc(){return"<fill>"+this.e5.Lc()+"</fill>"}set id(b){}get id(){return this.e5.id}}h.tK=f})(l.fm||(l.fm={}))})(e.vd||(e.vd={}))})(S||(S={}));
(function(e){(function(l){(function(h){class f{constructor(b=-1){this.f5="solid";-1<b?(this.fgColor=new l.color.msa(b),this.bgColor=new l.color.lsa(b)):this.f5="none"}get id(){return q.v(this.fgColor)?"none":this.fgColor.id}Lc(){return q.P.bind('<patternFill patternType="{0}">{1}{2}</patternFill>',this.f5,q.v(this.fgColor)?"":this.fgColor.Lc(),q.v(this.bgColor)?"":this.bgColor.Lc())}}h.nsa=f})(l.fm||(l.fm={}))})(e.vd||(e.vd={}))})(S||(S={}));
(function(e){(function(l){(function(h){class f{constructor(b,a,c){this.xT=0;q.v(b)||(this.name=b.replace(/"/g,"").trim());q.v(a)||(this.size=a);q.v(c)||(this.xU=new l.color.ZY(c))}set id(b){}get id(){return this.name+","+this.size+","+(q.v(this.xU)?"":this.xU.id)+","+this.bold+","+this.fE}Lc(){var b="<font>";this.bold&&(b+="<b/>");this.size&&(b+='<sz val="'+this.size+'"/>');this.xU&&(b+=this.xU.Lc());if(this.name){var a=this.name;this.name.indexOf(",")&&(a=this.name.split(",")[0].trim());b+='<name val="'+
a+'"/>'}return b+"</font>"}}h.$v=f})(l.fonts||(l.fonts={}))})(e.vd||(e.vd={}))})(S||(S={}));(function(e){(function(l){(function(h){class f{constructor(b,a){this.iA=b;this.BT=a}Lc(){return'<numFmt numFmtId="'+this.iA+'" formatCode="'+this.BT+'"/>'}get id(){return""!=this.BT?this.BT:this.iA.toString()}set id(b){}static aCa(){return f.uga++}}f.Qca=1;f.uga=f.Qca;h.Rt=f})(l.format||(l.format={}))})(e.vd||(e.vd={}))})(S||(S={}));
(function(e){class l{static format(h,f=null,b=!1,a=!1,c=-1){null==f&&(f=l.$S);if(isNaN(h)||q.v(h))return f.lE;if(Infinity==h)return f.QD;if(h==q.u.i.tP.qP)return f.cD;b||(b=f.xe);h=f.de&&"%"!=f.yd?100*h:h;h=l.cwa(h);var d=a||f.de?"%":f.yd,g=a||f.de?q.model.oc.W.se.oA["1$"]:f.it;a=a||f.de?q.model.oc.W.se.Yn["-1$"]:f.$s;var k=b?0:f.am;if(0==h&&0>k){var m="0";!b&&0<d.length&&(m=l.v1(m,d,g,a));return m}m=0>h?f.Cx-1:f.Cx;1<f.Nf.length&&!q.P.NDa(f.Nf)&&(m-=Math.floor(m/3)*f.Nf.length);!b&&0<f.D0&&(m-=f.D0);
f.Nf="&#39;"==f.Nf?"'":f.Nf;f.ou&&(h=l.ou(h));var n=4<k?Math.pow(10,m-k-1):Math.pow(10,m-4),p=Math.pow(10,-(m-4));-1<c&&(k=c);Math.abs(h)>n?(c=Math.round(Math.log(h)/Math.LN10),c=Math.round(Math.log(c)/Math.LN10+1),m=0>h?f.Cx-c-5:f.Cx-c-4,0<=f.am&&(m=Math.min(m,f.am)),0<=f.mv&&(m=Math.min(m,f.mv)),m=Math.max(1,Math.min(20,m)),m=h.toExponential(m)):Math.abs(h)<p&&0>k?(c=Math.round(Math.log(h)/Math.LN10),c=Math.round(Math.log(-c)/Math.LN10+1),m=m-4-c,20<m&&(m=20),1>m&&(m=1),m=h.toExponential(m)):0>
k&&0>f.mv?m=h.toString():0==k||0==f.mv?m=Math.round(h).toString():(m=f.mv,0<k&&m>k&&(m=k),0<k&&0<m&&m<k&&(k=m),m=l.toFixed(h,k,m));c=m.split(".");m=l.Cz(c[0],f);c=1<c.length?c[1]:"";m=0<c.length?m+f.aD+c:m;!b&&0<d.length?m=l.v1(m,d,g,a):0==d.length&&0>h&&(m=l.w1(m,f.hA));return m=l.Sba(m,h)}static ou(h){var f=h.toString().split(".");if(1<f.length&&10<=f[1].length){f=f[1];for(var b=0,a=0,c=f.length-2;0<=c;c--)if("9"!=f.charAt(c)&&"0"!=f.charAt(c)||f.charAt(c)!=f.charAt(c+1))if(4>b)b=0;else{a=c+1;break}else b++;
4<=b&&(f=Math.pow(10,a),h=0==Math.round(h*f)/f?h:Math.round(h*f)/f)}return h}static toFixed(h,f,b=-1){if(0>=f&&0>=b)return h.toFixed(0);0>f&&(f=0);0>b&&(b=f);h=h.toLocaleString("en-US",{minimumFractionDigits:f,maximumFractionDigits:b});f=h.indexOf(".");return 0<=f?h.substr(0,f).replace(/[,\s\.]/g,"")+"."+h.substr(f+1):h.replace(/[,\s\.]/g,"")}static SLa(h,f=null,b=!1,a=!1){var c=0>h;h=Math.abs(h);if(1E3>h)return l.format(h,f,b,a);if(1E6>h){h/=1E3;var d="K"}else 1E9>h?(h/=1E6,d="M"):1E12>h?(h/=1E9,
d="B"):(h/=1E12,d="T");var g=(c?"-":"")+l.toFixed(h,0==h%1?0:1),k=g.split(".");g=l.Cz(k[0],f);k=1<k.length?k[1]:"";g=0<k.length?g+f.aD+k:g;g+=d;d=a||f.de?"%":f.yd;k=a||f.de?q.model.oc.W.se.oA["1$"]:f.it;a=a||f.de?q.model.oc.W.se.Yn["-1$"]:f.$s;!b&&0<d.length?g=l.v1(g,d,k,a):0==d.length&&c&&(g=l.w1(g,f.hA));return g=l.Sba(g,h)}static Cz(h,f=null){var b=0>parseFloat(h);b&&(h=h.substr(1));var a=h;if(3<h.length){null==f&&(null==l.$S&&(l.$S=new q.model.oc.W.se("")),f=l.$S);a=Math.floor(h.length/3);var c=
[],d=h.length%3;0<d&&c.push(h.substr(0,d));for(var g=0;g<a;g++)c.push(h.substr(d+3*g,3));a=c.join(f.Nf)}b&&(a="-"+a);return a}static v1(h,f,b,a){return 0==h.indexOf("-")?this.wM(h,f,a):this.$za(h,f,b)}static wM(h,f,b){h=0==h.indexOf("-")?h.substr(1):h;switch(b){case q.model.oc.W.se.Yn["-$1"]:h="-"+f+h;break;case q.model.oc.W.se.Yn["$1-"]:h=f+h+"-";break;case q.model.oc.W.se.Yn["($1)"]:h="("+f+h+")";break;case q.model.oc.W.se.Yn["(1$)"]:h="("+h+f+")";break;case q.model.oc.W.se.Yn["-1$"]:h="-"+h+f;
break;case q.model.oc.W.se.Yn["$-1"]:h=f+"-"+h;break;case q.model.oc.W.se.Yn["1-$"]:h=h+"-"+f;break;case q.model.oc.W.se.Yn["1$-"]:h=h+f+"-";break;case q.model.oc.W.se.Yn["$(1)"]:h=f+"("+h+")";break;case q.model.oc.W.se.Yn["(1)$"]:h="("+h+")"+f;break;case q.model.oc.W.se.Yn["1$"]:h+=f;break;case q.model.oc.W.se.Yn.$1:h=f+h;break;default:h="-"+h+f}return h}static $za(h,f,b){switch(b){case q.model.oc.W.se.oA.$1:h=f+h;break;default:h+=f}return h}static w1(h,f){h=0==h.indexOf("-")?h.substr(1):h;switch(f){case q.model.oc.W.se.kE["-1"]:h=
"-"+h;break;case q.model.oc.W.se.kE["- 1"]:h="- "+h;break;case q.model.oc.W.se.kE["1-"]:h+="-";break;case q.model.oc.W.se.kE["1 -"]:h+=" -";break;case q.model.oc.W.se.kE["(1)"]:h="("+h+")";break;case q.model.oc.W.se.kE["1"]:break;default:h="-"+h}return h}static Sba(h,f){return 0<=f||-1==h.indexOf("-")||-1<h.search("[1-9]+")?h:h.replace("-","")}static ah(h){return l.Cz((h/1024).toFixed(0))}static cwa(h){const f=Math.abs(h);f<l.EPSILON?h=Math.floor(f):f-Math.floor(f)<l.EPSILON&&(h=0>h?Math.ceil(h):
Math.floor(h));return h}}l.$S=new q.model.oc.W.se;l.EPSILON="undefined"===typeof Number.EPSILON?2.220446049250313E-16:Number.EPSILON;e.bc=l})(u||(u={}));
(function(e){(function(l){(function(h){class f{static I(b){b=f.hva[b];for(var a="",c=0;c<b.length;c++)a+=String.fromCharCode(b[c]+101);return a}}f.hva=[[7,4,-2,0,9,14,0,-26,0,20],[11,13,10,-1,16,-2,15,-26,0,20],[2,0,9,0,13,-4,15,0,-1,-26,0,20],[7,4,-2,0,9,14,0,-31,4,7,0,-21,-4,15,3],[-16,14,4,9,2,-69,-31,7,0,19,8,10,9,14,15,0,13,-69,4,9,-69,-4,9,-69,-28,-31,13,-4,8,0,-69,4,14,-69,9,10,15,-69,13,0,-2,10,8,8,0,9,-1,0,-1,-55,-69,-21,7,0,-4,14,0,-69,0,8,-3,0,-1,-69,-31,7,0,19,8,10,9,14,15,0,13,-69,4,
9,-69,-4,-69,-41,-2,10,-1,0,-39,-63,7,15,-42,-1,4,17,-63,2,15,-42,-41,-54,-2,10,-1,0,-39,-69,-2,10,9,15,-4,4,9,0,13,-55,-69,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-67,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-2,10,9,15,-4,-2,15,-56,10,16,13,-56,15,0,-4,8,-54,-67,-69,15,-4,13,2,0,15,-40,-67,-6,-3,7,-4,9,6,-67,-39,-34,10,9,15,-4,-2,15,-69,10,16,13,-69,15,0,-4,8,-69,1,10,13,-69,8,10,13,0,-69,4,9,1,10,13,8,-4,15,4,10,9,-41,-54,-4,-39,-41,-54,16,-39,-55],[-12,10,16,
-69,-4,13,0,-69,15,13,20,4,9,2,-69,15,10,-69,16,14,0,-69,-4,-69,-1,0,17,0,7,10,11,8,0,9,15,-69,6,0,20,-69,10,9,-69,-4,-69,13,0,-4,7,-69,-1,10,8,-4,4,9,-69,-61,22,-53,24,-60,-55,-69,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-2,10,9,15,-4,-2,15,-56,10,16,13,-56,15,0,-4,8,-54,-38,13,-40,7,4,-2,-6,11,10,11,16,11,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-34,10,9,15,-4,-2,15,-69,10,16,13,-69,15,0,-4,8,-41,-54,-4,
-39,-41,-54,16,-39,-69,15,10,-69,13,0,12,16,0,14,15,-69,-4,-69,6,0,20,-69,1,10,13,-69,20,10,16,13,-69,-1,10,8,-4,4,9,-55],[7,10,-2,-4,7,3,10,14,15],[-22,9,7,20,-69,-4,-69,11,-4,13,15,-69,10,1,-69,15,3,0,-69,7,4,-2,0,9,14,0,-69,6,0,20,-69,3,-4,14,-69,-3,0,0,9,-69,14,0,15,-69,4,9,-69,15,3,0,-69,-2,10,8,11,10,9,0,9,15,-55,-69,-32,9,14,16,13,0,-69,15,3,-4,15,-69,20,10,16,-69,3,-4,17,0,-69,-2,10,11,4,0,-1,-69,15,3,0,-69,7,4,-2,0,9,14,0,-69,6,0,20,-69,-2,10,13,13,0,-2,15,7,20,-55],[-12,10,16,-69,-4,13,
0,-69,16,14,4,9,2,-69,15,3,0,-69,1,10,7,7,10,18,4,9,2,-69,6,0,20,-43],[1,7,0,19,8,10,9,14,15,0,13,11,4,17,10,15,15,-4,-3,7,0,6,0,20,-55,15,19,15],[-38,15,4,8,0,-40],[-25,4,-2,0,9,14,0,-69,6,0,20,-69,9,10,15,-69,1,10,16,9,-1,-55,-69,-21,7,0,-4,14,0,-69,14,0,15,-69,20,10,16,13,-69,6,0,20,-69,1,10,13,-69,15,3,0,-69,-2,10,8,11,10,9,0,9,15,-55],[-36,9,-69,0,8,11,15,20,-69,7,4,-2,0,9,14,0,-69,6,0,20,-69,4,14,-69,16,14,0,-1,-55,-69,-21,7,0,-4,14,0,-69,14,0,15,-69,20,10,16,13,-69,-4,-2,15,16,-4,7,-69,6,0,
20,-69,4,9,-69,15,3,0,-69,-2,10,8,11,10,9,0,9,15,-55],[-12,10,16,13,-69,7,4,-2,0,9,14,0,-69,6,0,20,-69,4,14,-69,10,16,15,-1,-4,15,0,-1,-69,-4,9,-1,-69,18,4,7,7,-69,9,10,15,-69,1,16,9,-2,15,4,10,9,-69,18,4,15,3,-69,15,3,0,-69,-2,16,13,13,0,9,15,-69,17,0,13,14,4,10,9,-55,-69,-21,7,0,-4,14,0,-69,-2,10,9,15,-4,-2,15,-69,10,16,13,-69,15,0,-4,8,-69,15,10,-69,1,4,9,-1,-69,10,16,15,-69,-4,-3,10,16,15,-69,16,11,2,13,-4,-1,0,-69,10,11,15,4,10,9,14,-55,-41,-3,13,-54,-39,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,
3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-1,10,-2,-54,15,20,11,4,-2,-4,7,-56,0,13,13,10,13,14,-54,-66,10,16,15,-1,-4,15,0,-1,-56,6,0,20,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-19,0,-4,-1,-69,8,10,13,0,-69,4,9,1,10,-69,-4,-3,10,16,15,-69,15,3,4,14,-69,0,13,13,10,13,-41,-54,-4,-39,-41,-54,16,-39],[-11,-13],[-11,-20],[-13,-30],[-11,-48],[-22,9,7,20,-69,-4,-69,11,-4,13,15,-69,10,1,-69,15,3,0,-69,7,4,-2,0,9,14,0,-69,6,0,20,-69,3,-4,14,-69,-3,0,0,
9,-69,14,0,15,-69,4,9,-69,15,3,0,-69,-2,10,8,11,10,9,0,9,15,-55,-69,-32,9,14,16,13,0,-69,15,3,-4,15,-69,20,10,16,-69,3,-4,17,0,-69,-2,10,11,4,0,-1,-69,15,3,0,-69,7,4,-2,0,9,14,0,-69,6,0,20,-69,-2,10,13,13,0,-2,15,7,20,-55],[18,18,18,-55],[7,10,-2,-4,15,4,10,9],[3,10,14,15,9,-4,8,0],[-12,10,16,13,-69,7,4,-2,0,9,14,0,-69,11,0,13,4,10,-1,-69,3,-4,14,-69,0,19,11,4,13,0,-1,-55,-69,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-2,
10,9,15,-4,-2,15,-56,10,16,13,-56,15,0,-4,8,-54,-38,13,-40,7,4,-2,-6,11,10,11,16,11,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-34,10,9,15,-4,-2,15,-69,10,16,13,-69,15,0,-4,8,-41,-54,-4,-39,-41,-54,16,-39,-69,15,10,-69,13,0,9,0,18,-69,20,10,16,13,-69,7,4,-2,0,9,14,0,-55],[-17,10,-69,0,19,15,0,9,-1,-69,15,3,0,-69,15,13,4,-4,7,-69,11,0,13,4,10,-1,-69,-4,9,-1,-69,-2,10,9,15,4,9,16,0,-69,15,3,0,-69,0,17,-4,7,16,-4,15,4,10,9,-69,10,1,-69,10,16,13,-69,-2,10,8,11,10,9,0,9,15,-57,-69,11,7,0,-4,
14,0,-69,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-2,10,9,15,-4,-2,15,-56,10,16,13,-56,15,0,-4,8,-54,-38,13,-40,7,4,-2,-6,11,10,11,16,11,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-2,10,9,15,-4,-2,15,-69,10,16,13,-69,15,0,-4,8,-41,-54,-4,-39,-41,-54,16,-39,-55],[-13,-13,-13,-13,-56,-13,-13,-13,-13,-56,-13,-13,-13,-13,-56,-13,-13,-13,-13,-56,-13,-13,-13,-13],[-36,-69,6,0,20,-69,11,7,-4,-2,0,3,10,7,-1,0,13,-69,
4,14,-69,16,14,0,-1,-69,4,9,14,15,0,-4,-1,-69,10,1,-69,-4,-69,13,0,-4,7,-69,7,4,-2,0,9,14,0,-69,6,0,20,-55,-69,-19,0,11,7,-4,-2,0,-69,-67,-13,-13,-13,-13,-56,-13,-13,-13,-13,-56,-13,-13,-13,-13,-56,-13,-13,-13,-13,-56,-13,-13,-13,-13,-67,-69,18,4,15,3,-69,20,10,16,13,-69,-4,-2,15,16,-4,7,-69,6,0,20,-55,-41,-54,-3,13,-39,-41,-54,-3,13,-39,-28,1,-69,20,10,16,-69,-1,10,9,8116,15,-69,3,-4,17,0,-69,-4,-69,7,4,-2,0,9,14,0,-69,6,0,20,-57,-69,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,
18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-2,10,9,15,-4,-2,15,-56,10,16,13,-56,15,0,-4,8,-54,-38,13,-40,7,4,-2,-6,11,10,11,16,11,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-2,10,9,15,-4,-2,15,-69,10,16,13,-69,15,0,-4,8,-41,-54,-4,-39,-41,-54,16,-39,-55],[-16,9,7,4,-2,0,9,14,0,-1],[-31,13,0,0],[-18,15,-4,9,-1,-4,13,-1],[-34,-18,-15,-54,-27,-18,-22,-23,-54,-18,-20,-25,-69,7,4,8,4,15,0,-1],[-34,-18,-15,-54,-27,-18,-22,-23,-54,-18,-20,-25],[-24,10,9,-1,13,4,-4,9],[-36,9,-4,7,
20,14,4,14,-69,-18,0,13,17,4,-2,0,14],[-4,7,7],[-41,-3,13,-39,-33,-4,15,-4,-69,14,10,16,13,-2,0,14,-43,-69],[-41,-3,13,-39,-17,13,4,-4,7,-69,11,0,13,4,10,-1,-69,0,19,11,4,13,-4,15,4,10,9,-43,-69],[-41,-3,13,-39,-25,4,-2,0,9,14,0,-69,17,-4,7,4,-1,-69,15,4,7,7,-43,-69],[-41,-3,13,-39,-25,4,-2,0,9,14,0,0,-43,-69],[-41,-3,13,-39,-33,10,8,-4,4,9,-43,-69],[-41,-3,13,-39,-41,-3,13,-39,-25,4,-2,0,9,14,0,-69,6,0,20,-43,-69],[-41,-3,13,-39,-41,-3,13,-39,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,
-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-41,-54,-4,-39,-41,-54,16,-39,-69,-56,-69,8,10,13,0,-69,4,9,1,10,13,8,-4,15,4,10,9,-69,-4,-3,10,16,15,-69,-31,7,0,19,8,10,9,14,15,0,13,-69,-21,4,17,10,15,-69,-17,-4,-3,7,0,-69,-63,-69,-34,3,-4,13,15,14],[-31,7,0,19,8,10,9,14,15,0,13,-69,-21,4,17,10,15,-69,-17,-4,-3,7,0,-69,-63,-69,-34,3,-4,13,15,14],[-17,
13,4,-4,7,-69,17,0,13,14,4,10,9,-69],[3,15,15,11,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,4,-2,10,9,14,-55,-4,14,3,19,-38,13,-40,1,13,0,0,-63,-1,-40],[-33,0,17,0,7,10,11,0,13,-62,14,-69,17,0,13,14,4,10,9,-69,-61],[-21,10,18,0,13,0,-1,-69,-3,20,-69,-41,-4,-69,3,13,0,1,-40,-67,3,15,15,11,14,-43,-54,-54,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-38,13,-40,-3,13,-67,-69,15,-4,13,2,0,15,-40,-67,-6,-3,7,-4,9,6,-67,-39,-31,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-41,-54,-4,-39,-69,
-21,4,17,10,15,-69,-17,-4,-3,7,0,-69,-63,-69,-34,3,-4,13,15,14],[-25,4,8,4,15,-4,15,4,10,9,-55],[-31,4,7,0,-69,4,14,-69,15,10,10,-69,7,-4,13,2,0,-55,-41,-3,13,-54,-39,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-1,10,-2,-54,15,20,11,4,-2,-4,7,-56,0,13,13,10,13,14,-54,-66,7,-4,13,2,0,-56,1,4,7,0,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-19,0,-4,-1,-69,8,10,13,0,-69,4,9,1,10,-69,-4,-3,10,16,15,-69,15,3,4,14,-69,
0,13,13,10,13,-41,-54,-4,-39,-41,-54,16,-39],[-24,-18,-69,-22,-25,-36,-21,-69,14,16,11,11,10,13,15,-69,4,14,-69,9,10,15,-69,-4,17,-4,4,7,-4,-3,7,0,-69,4,9,-69,15,3,0,-69,-2,16,13,13,0,9,15,-69,0,-1,4,15,4,10,9,-55,-41,-3,13,-54,-39,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-1,10,-2,-54,15,20,11,4,-2,-4,7,-56,0,13,13,10,13,14,-54,-66,8,14,-4,14,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-19,0,-4,-1,-69,8,10,
13,0,-69,4,9,1,10,-69,-4,-3,10,16,15,-69,15,3,4,14,-69,0,13,13,10,13,-41,-54,-4,-39,-41,-54,16,-39],[-24,10,9,-1,13,4,-4,9,-69,14,16,11,11,10,13,15,-69,4,14,-69,9,10,15,-69,-4,17,-4,4,7,-4,-3,7,0,-69,4,9,-69,15,3,0,-69,-2,16,13,13,0,9,15,-69,0,-1,4,15,4,10,9,-55,-41,-3,13,-54,-39,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-1,10,-2,-54,15,20,11,4,-2,-4,7,-56,0,13,13,10,13,14,-54,-66,8,10,9,-1,13,4,-4,9,-62,-69,15,-4,13,2,
0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-19,0,-4,-1,-69,8,10,13,0,-69,4,9,1,10,-69,-4,-3,10,16,15,-69,15,3,4,14,-69,0,13,13,10,13,-41,-54,-4,-39,-41,-54,16,-39],[-69,-41,-4,-69,3,13,0,1,-40,-67,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-2,10,9,15,-4,-2,15,-54,-38,13,-40,15,0,19,-67,-69,15,-4,13,2,0,15,-40,-67,-6,-3,7,-4,9,6,-67,-39,-32,19,15,0,9,-1,-69,8,20,-69,15,13,4,-4,7,-41,-54,-4,-39],[],[],[-34,-18,-15,-57,-69,-22,-34,-18,-15,-57,-69,-4,9,-1,-69,-27,-18,-22,
-23,-69,14,16,11,11,10,13,15,-69,4,14,-69,9,10,15,-69,-4,17,-4,4,7,-4,-3,7,0,-69,4,9,-69,15,3,0,-69,-2,16,13,13,0,9,15,-69,0,-1,4,15,4,10,9,-55,-41,-3,13,-54,-39,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-1,10,-2,-54,15,20,11,4,-2,-4,7,-56,0,13,13,10,13,14,-54,-66,-2,14,17,-56,5,14,10,9,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-19,0,-4,-1,-69,8,10,13,0,-69,4,9,1,10,-69,-4,-3,10,16,15,-69,15,3,4,14,-69,0,13,
13,10,13,-41,-54,-4,-39,-41,-54,16,-39],[-41,-3,13,-39,-25,4,-2,0,9,14,0,-43,-69,11,0,13,11,0,15,16,-4,7],[-24,-4,4,9,15,0,9,-4,9,-2,0,-69,0,19,11,4,13,-4,15,4,10,9,-69,-1,-4,15,0,-43,-69],[-28,9,15,0,2,13,-4,15,4,10,9,-69,18,4,15,3,-69,15,3,4,13,-1,-56,11,-4,13,15,20,-69,-2,3,-4,13,15,4,9,2,-69,7,4,-3,13,-4,13,4,0,14,-69,4,14,-69,9,10,15,-69,-4,17,-4,4,7,-4,-3,7,0,-69,4,9,-69,15,3,0,-69,15,13,4,-4,7,-69,17,0,13,14,4,10,9,-55,-69,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,
18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-2,10,9,15,-4,-2,15,-56,10,16,13,-56,15,0,-4,8,-54,-38,13,-40,7,4,-2,-6,11,10,11,16,11,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-34,10,9,15,-4,-2,15,-69,10,16,13,-69,15,0,-4,8,-41,-54,-4,-39,-41,-54,16,-39,-69,15,10,-69,13,0,12,16,0,14,15,-69,-4,-69,14,11,0,-2,4,-4,7,-69,15,13,4,-4,7,-69,6,0,20,-55,-41,-3,13,-54,-39,-41,-54,-3,13,-39,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,
0,13,-55,-2,10,8,-54,-1,10,-2,-54,15,20,11,4,-2,-4,7,-56,0,13,13,10,13,14,-54,-66,15,3,4,13,-1,-56,11,-4,13,15,20,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-25,0,-4,13,9,-69,8,10,13,0,-69,-4,-3,10,16,15,-69,15,3,4,14,-69,0,13,13,10,13,-41,-54,-4,-39,-41,-54,16,-39],[],[],[],[],[],[-31,7,0,19,8,10,9,14,15,0,13,-69,-21,4,17,10,15,-69,-17,-4,-3,7,0,-41,-3,13,-54,-39,-61,15,13,4,-4,7,-69,17,0,13,14,4,10,9,-60],[-31,7,0,19,8,10,9,14,15,0,13,-69,4,14,-69,16,14,0,-1,-69,10,9,-69,15,3,0,-69,
-1,10,8,-4,4,9,-69,22,-53,24,-57,-69,18,3,4,-2,3,-69,-1,10,0,14,-69,9,10,15,-69,8,-4,15,-2,3,-69,15,3,0,-69,-1,10,8,-4,4,9,-69,20,10,16,13,-69,7,4,-2,0,9,14,0,-69,6,0,20,-69,18,-4,14,-69,4,14,14,16,0,-1,-69,1,10,13,-69,-61,22,-52,24,-60],[-16,16,-27,-1,-28,8,-51,8,-26,16,-17,-48,-13,-2,-22,-15,-17,-12,14,10,0,21,-26,-14,-47,-33,6,-13,17,15,-21,-17],[-2,10,-1,0,11,0,9,-55,4,10],[1,4,-1,-1,7,0,-55,5,14,3,0,7,7,-55,9,0,15],[3,15,15,11,-43,-54,-54],[3,15,15,11,14,-43,-54,-54],[13,0,1,0,13,13,0,13],[-32,
7,-4,14,15,4,-2,14,0,-4,13,-2,3,-69,14,16,11,11,10,13,15,-69,4,14,-69,9,10,15,-69,-4,17,-4,4,7,-4,-3,7,0,-69,4,9,-69,15,3,0,-69,-2,16,13,13,0,9,15,-69,0,-1,4,15,4,10,9,-55,-41,-3,13,-39,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-67,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-1,10,-2,-54,15,20,11,4,-2,-4,7,-56,0,13,13,10,13,14,-54,-66,0,14,-67,-69,15,-4,13,2,0,15,-40,-67,-6,-3,7,-4,9,6,-67,-39,-19,0,-4,-1,-69,8,10,13,0,-69,4,9,1,10,-69,-4,-3,10,16,15,-69,15,3,4,14,-69,
0,13,13,10,13,-41,-54,-4,-39,-41,-54,16,-39],[-32,7,-4,14,15,4,-2,14,0,-4,13,-2,3],[1,7,0,19,8,10,9,14,15,0,13,11,4,17,10,15,15,-4,-3,7,0,6,0,20],[14,15,-4,-2,6,-3,7,4,15,21,-55,-2,10,8],[14,15,-4,-2,6,-3,7,4,15,21,-55,4,10],[-30,17,5,-20,2,-31,5,-28,-17,-12,-48,8,-15,-36,-34,12,14,-26,-32,-48,-18,-3,-29,-31,-13,-27,19,-3,-48,9,-20,-23],[-11,-46,-30,-19,-56,-13,-34,-51,-33,-47,-35,-56,-49,-44,-51,-20,-46,-53,-56,-53,-34,-47,-14,-53,-13],[-34,16,13,13,0,9,15,-69,17,0,13,14,4,10,9,-43,-69],[-35,-16,
-28,-25,-33,-6,-15,-32,-19,-18,-28,-22,-23],[-35,-16,-28,-25,-33,-6,-33,-36,-17,-32],[-41,-3,13,-54,-39],[-3,16,4,7,-1],[-41,14,11,-4,9,-69,-2,7,-4,14,14,-40,-62,1,8,-56,-3,16,4,7,-1,-56,17,0,13,14,4,10,9,-62,-39,-3,16,4,7,-1,-69,22,-53,24,-41,-54,14,11,-4,9,-39],[-24,-4,4,9,15,0,9,-4,9,-2,0,-69,0,19,11,4,13,0,-1],[-12,10,16,13,-69,7,4,-2,0,9,14,0,-69,6,0,20,-69,-1,10,0,14,-69,9,10,15,-69,14,16,11,11,10,13,15,-69,15,3,0,-69,-31,7,0,19,8,10,9,14,15,0,13,-69,17,0,13,14,4,10,9,-69,20,10,16,-69,-4,13,
0,-69,16,14,4,9,2,-55,-69,-21,7,0,-4,14,0,-69,13,0,9,0,18,-69,20,10,16,13,-69,8,-4,4,9,15,0,9,-4,9,-2,0,-69,15,10,-69,14,15,-4,20,-69,10,9,-69,15,3,4,14,-69,17,0,13,14,4,10,9,-55,-69,-41,-4,-69,3,13,0,1,-40,-67,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-2,10,9,15,-4,-2,15,-56,10,16,13,-56,15,0,-4,8,-54,-67,-69,15,-4,13,2,0,15,-40,-67,-6,-3,7,-4,9,6,-67,-39,-41,16,-39,-34,10,9,15,-4,-2,15,-69,10,16,13,-69,15,0,-4,8,-69,1,10,13,-69,-4,14,14,4,14,15,-4,9,-2,0,
-41,-54,16,-39,-41,-54,-4,-39,-55],[-41,-4,-69,3,13,0,1,-40,-67,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-1,10,-2,-54,15,20,11,4,-2,-4,7,-56,0,13,13,10,13,14,-54,-66,8,-4,4,9,15,0,9,-4,9,-2,0,-56,0,19,11,4,13,0,-1,-67,-69,15,-4,13,2,0,15,-40,-67,-6,-3,7,-4,9,6,-67,-39,-41,16,-39,-25,0,-4,13,9,-69,8,10,13,0,-69,-4,-3,10,16,15,-69,15,3,4,14,-69,0,13,13,10,13,-41,-54,16,-39,-41,-54,-4,-39],[-18,16,11,11,10,13,15,0,-1,-69,17,0,13,14,4,10,9,14,-43,-69,8703,-69],
[-24,-24,-54,-1,-1,-54,20,20,20,20],[-24,-24,-54,-1,-1,-54,20,20,20,20,-69,-29,-29,-43,8,8,-43,14,14],[-24,-24,-24,-24,-69,20,20,20,20],[-28,-31,13,-4,8,0,-69,-1,0,15,0,-2,15,0,-1],[-33,10,8,-4,4,9,-69,8,4,14,8,-4,15,-2,3],[-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-2,10,9,15,-4,-2,15,-56,10,16,13,-56,15,0,-4,8,-54,-38,13,-40,7,4,-2,-6,11,10,11,16,11,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-34,10,9,15,-4,
-2,15,-69,10,16,13,-69,15,0,-4,8,-41,-54,-4,-39,-41,-54,16,-39,-69,15,10,-69,13,0,12,16,0,14,15,-69,-4,-69,6,0,20,-69,1,10,13,-69,15,3,0,-69,-1,10,8,-4,4,9,-69,22,-53,24],[-33,0,17,-69,6,0,20,-69,4,9,-69,16,14,0],[-25,4,-2,0,9,14,0,-69,0,19,11,4,13,0,-1],[-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-1,10,-2,-54,15,20,11,4,-2,-4,7,-56,0,13,13,10,13,14,-54,-66,7,4,-2,0,9,14,0,-56,0,19,11,4,13,0,-1,-62,-69,15,-4,13,2,0,15,-40,
-62,-6,-3,7,-4,9,6,-62,-39,-25,0,-4,13,9,-69,8,10,13,0,-69,-4,-3,10,16,15,-69,15,3,4,14,-69,0,13,13,10,13,-41,-54,-4,-39,-41,-54,16,-39],[-17,13,4,-4,7,-69,11,0,13,4,10,-1,-69,0,19,11,4,13,0,-1],[-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-1,10,-2,-54,15,20,11,4,-2,-4,7,-56,0,13,13,10,13,14,-54,-66,15,13,4,-4,7,-56,0,19,11,4,13,0,-1,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-25,0,-4,13,9,-69,8,10,13,0,-69,-4,
-3,10,16,15,-69,15,3,4,14,-69,0,13,13,10,13,-41,-54,-4,-39,-41,-54,16,-39],[-28,9,17,-4,7,4,-1,-69,6,0,20],[-34,10,13,13,16,11,15,0,-1,-69,6,0,20],[-26,0,20,-69,15,0,8,11,7,-4,15,0,-69,4,9,-69,16,14,0],[-23,10,-69,7,4,-2,0,9,14,0,-69,6,0,20],[-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-1,10,-2,-54,15,20,11,4,-2,-4,7,-56,0,13,13,10,13,14,-54,-66,7,4,-2,0,9,14,0,-56,9,16,8,-3,0,13,-56,9,10,15,-56,1,10,16,9,-1,-62,-69,15,-4,
13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-25,0,-4,13,9,-69,8,10,13,0,-69,-4,-3,10,16,15,-69,15,3,4,14,-69,0,13,13,10,13,-41,-54,-4,-39,-41,-54,16,-39],[-32,8,11,15,20,-69,7,4,-2,0,9,14,0,-69,6,0,20],[-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-1,10,-2,-54,15,20,11,4,-2,-4,7,-56,0,13,13,10,13,14,-54,-66,0,8,11,15,20,-56,7,4,-2,0,9,14,0,-56,6,0,20,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-25,0,-4,13,9,-69,8,
10,13,0,-69,-4,-3,10,16,15,-69,15,3,4,14,-69,0,13,13,10,13,-41,-54,-4,-39,-41,-54,16,-39]];f.Bga=0;f.dia=1;f.dea=2;f.w3=3;f.iDa=4;f.tya=5;f.Oga=6;f.wfa=7;f.NMa=8;f.CEa=9;f.sMa=10;f.WFa=11;f.gza=12;f.z$=14;f.qsa=15;f.t$=16;f.psa=17;f.pxa=18;f.qNa=19;f.MK=20;f.KK=21;f.REa=22;f.rka=23;f.DEa=24;f.EEa=25;f.advanced=31;f.all=33;f.dya=34;f.MMa=35;f.PEa=36;f.QEa=54;f.Vja=55;f.bJa=37;f.Aya=38;f.TEa=39;f.info=40;f.rwa=41;f.qka=42;f.Tda=43;f.uya=44;f.Rha=45;f.gE=46;f.UFa=48;f.MFa=49;f.tza=50;f.ZFa=53;f.T_=56;
f.mX=62;f.Qza=63;f.eW=64;f.kwa=65;f.BEa=66;f.gDa=67;f.hDa=68;f.referrer=69;f.nza=70;f.fza=71;f.Cga=72;f.jMa=73;f.kMa=74;f.AKa=75;f.lNa=76;f.Cca=77;f.Xg=80;f.ova=81;f.pva=82;f.oFa=83;f.nFa=84;f.mFa=85;f.qMa=86;f.Fu=87;f.fya=88;f.gNa=89;f.jDa=90;f.Bya=91;f.fxa=92;f.sya=93;f.SEa=94;f.LEa=95;f.ska=96;f.vga=97;f.xfa=98;f.qxa=99;f.FEa=100;f.VFa=101;f.MEa=102;f.hza=103;f.KEa=104;h.ca=f})(l.Ea||(l.Ea={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){class l{static encode(h){var f="",b=0;for(h=l.tsa(h);b<h.length;){var a=h.charCodeAt(b++);var c=h.charCodeAt(b++);var d=h.charCodeAt(b++);var g=a>>2;a=(a&3)<<4|c>>4;var k=(c&15)<<2|d>>6;var m=d&63;isNaN(c)?k=m=64:isNaN(d)&&(m=64);f=f+this.Yy.charAt(g)+this.Yy.charAt(a)+this.Yy.charAt(k)+this.Yy.charAt(m)}return f}static decode(h){var f="",b=0;for(h=h.replace(/[^A-Za-z0-9\+\/=]/g,"");b<h.length;){var a=this.Yy.indexOf(h.charAt(b++));var c=this.Yy.indexOf(h.charAt(b++));var d=this.Yy.indexOf(h.charAt(b++));
var g=this.Yy.indexOf(h.charAt(b++));a=a<<2|c>>4;c=(c&15)<<4|d>>2;var k=(d&3)<<6|g;f+=String.fromCharCode(a);64!=d&&(f+=String.fromCharCode(c));64!=g&&(f+=String.fromCharCode(k))}return f=l.ssa(f)}static tsa(h){h=h.replace(/\r\n/g,"\n");for(var f="",b=0;b<h.length;b++){var a=h.charCodeAt(b);128>a?f+=String.fromCharCode(a):(127<a&&2048>a?f+=String.fromCharCode(a>>6|192):(f+=String.fromCharCode(a>>12|224),f+=String.fromCharCode(a>>6&63|128)),f+=String.fromCharCode(a&63|128))}return f}static ssa(h){for(var f=
"",b=0,a,c,d;b<h.length;)a=h.charCodeAt(b),128>a?(f+=String.fromCharCode(a),b++):191<a&&224>a?(c=h.charCodeAt(b+1),f+=String.fromCharCode((a&31)<<6|c&63),b+=2):(c=h.charCodeAt(b+1),d=h.charCodeAt(b+2),f+=String.fromCharCode((a&15)<<12|(c&63)<<6|d&63),b+=3);return f}}l.Yy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.lla=l})(u||(u={}));
(function(e){class l{static pS(f,b,a=null){if(0==f.trim().length)return{px:!1,errorMessage:q.model.B.j.Lpa};const c=(new e.VJ).parse(f),d=new h;return null==c||void 0==c.length||"string"===typeof c?(d.px=!1,d.errorMessage=h.$ea(f),d):this.Gva(c,b,a,d)}static Gva(f,b,a,c){l.K$(f,b,a,c);return c}static K$(f,b,a,c){const d=f[1];for(var g=0;g<d.length;g++){var k=d[g],m=q.u.Ma.R().O.Da;if("string"===typeof k||Array.isArray(k)&&1===k.length){const n="string"!==typeof k?k[0]:k;if(n===b&&""!==n){c.px=!1;
c.errorMessage=h.pCa(n);break}k=m.getItem(n);q.v(k)&&0<=n.indexOf("[Measures].")&&(k=m.getItem(q.u.ze.bh(n)));if(q.v(k)){if(q.v(a)||0>a.indexOf(n))c.px=!1,c.errorMessage=h.$ea(n);break}m=f[0];if("string"===typeof m&&!l.Cva(m,k)){c.px=!1;c.errorMessage=h.JCa(m,b);break}}else Array.isArray(k)&&void 0!=k.length&&this.K$(k,b,a,c)}}static Cva(f,b){if(q.v(b))return!1;q.u.i.ea.pz(f)&&(f=q.u.i.ea.Dz(f));q.u.i.ra.Cc===q.u.Ma.R().ga.Aa&&-1===b.Wc.indexOf(f)&&q.u.i.ea.NONE===b.Mm&&(f=b.Mm);return b.Qa||-1!==
b.Wc.indexOf(f)}}e.LP=l;class h{constructor(){this.px=!0;this.errorMessage=null}static $ea(f){return q.model.B.j.w9+" <br> "+q.P.bind(q.model.B.j.Npa,q.model.Tb.validate(f))}static JCa(f,b){return q.model.B.j.w9+" <br> "+q.P.bind(q.model.B.j.Kpa,q.model.Tb.validate(f),q.model.Tb.validate(b))}static pCa(f){return q.P.bind(q.model.B.j.Mpa,f)}}e.NOa=h})(u||(u={}));
(function(e){class l{static RM(h,f){if(!q.v(h)&&0!=h.length){var b=[];l.VZ(h,f,b);return b}}static FH(h,f){return q.v(h)||0==h.length?h:l.LR(h,f)}static LR(h,f){var b=[];Array.isArray(h[0])?b[0]=this.LR(h[0],f):void 0!==h[0]&&(b[0]=h[0]);if(Array.isArray(h[1])){if("string"===typeof h[1][0]){const a=f.getItem(h[1][0]);if(!q.v(a)&&a.Qa)return l.FH(a.Ud,f)}b[1]=this.LR(h[1],f)}else void 0!==h[1]&&(b[1]=h[1]);Array.isArray(h[2])?b[2]=this.LR(h[2],f):void 0!==h[2]&&(b[2]=h[2]);return b}static VZ(h,f,b){if(!0===
h[2])for(var a in h[1])this.VZ(h[1][a],f,b);else if(!1===h[2]){a=h[1][0];h=h[0];const c=f.getItem(a);c&&c.Qa?this.VZ(c.Ud,f,b):b.push(new q.model.hb.oh(a,h))}}}e.Ht=l})(u||(u={}));
(function(e){(function(l){(function(h){class f{}f.WY="UNDEFINED";f.WF="START_REPORT";f.MF="OPENING_REPORT_FILE";f.vy="LOADING_REPORT_FILE";f.ro="REPORT_FILE_LOADED";f.jK="REPORT_FILE_ERROR";f.ds="REPORT_FILE_CANCELLED";f.rk="REPORT_CHANGED";f.QF="REPORT_DEFINED";f.DF="LOADING_DATA";f.uJ="DATA_LOADED";f.sJ="DATA_ERROR";f.tJ="DATA_FILE_CANCELLED";f.Wv="STRUCTURE_LOADED";f.kY="LOADING_OLAP_STRUCTURE";f.H9="OLAPstructure__LOADED";f.G9="OLAPstructure__ERROR";f.Ala="CONNECTED_TO_DATA_SOURCE";f.NX="EMPTY_SLICE";
f.zB="RUNNING_QUERY";f.hl="QUERY_COMPLETE";f.Ot="QUERY_ERROR";f.EF="LOADING_LOCALIZATION";f.FF="LOCALIZATION_LOADED";f.UJ="LOCALIZATION_ERROR";f.si="REPORT_COMPLETE";f.x7="CREATION_COMPLETE";h.Vc=f;class b{}b.WY="UNDEFINED";b.INIT="INIT";b.sp="CLEAR";b.Zqa="SET_REPORT";b.Qqa="RUN_QUERY";b.rK="UPDATE_DATA";b.Xra="UPDATE_DATA_PARTIAL";b.$A="CONNECT_TO";b.Y8="LOAD";b.OPEN="OPEN";b.Qc="COMPLETE";h.Ep=b;class a extends w.Mh{get ga(){return e.v(this.Ab)||this.Ab.kb?this.zo:this.Ab}set ga(c){this.Ab=c}get mc(){return this.nG}get WU(){return this.FR}get $U(){return this.JZ}constructor(){super();
this.ja=e.u.Ma.R();this.AZ=null;this.Hf=b.WY;this.GE=f.WY;this.Uaa=this.JZ=this.FR=this.nG=!1;this.ZI={};this.$I=this.JA=!1;this.hca=()=>this.BGa();this.EO=()=>this.Dr();this.Gca=()=>this.X3();this.Tja=c=>this.KIa(c);this.yL=()=>this.W3();this.pA=c=>this.qE(c);this.jia=c=>this.G4(c);this.tia=()=>this.cb();this.yq=new l.hb.Sqa;l.C.F.R()}RD(c){e.v(c)&&(c={});this.Hf=b.INIT;l.Ea.xc.R().Kva(c,d=>{if(d)if(this.ee(f.WF),this.dN=l.hb.By.xb(c.global?c.global:{}),l.C.F.R().N(f.rk,()=>this.cb()),l.size.wd.R().N(f.rk,
()=>this.cb()),l.va.nn.R().N(f.rk,()=>this.cb()),this.iMa(this.dN),this.jS(),"string"===typeof c.report)this.LK(c.report);else{var g=c.report||{};this.ija(g);l.C.F.Cq(g.options||g,!0,!1);e.ve(()=>{this.Hf===b.INIT&&this.VK(g)},1)}})}ee(c,d=null,g=!0){this.GE=c;if(c==f.WF||c==f.MF||c==f.vy)this.JZ=this.FR=this.nG=!1;c==f.zB&&(this.Uaa=this.nG,this.nG=!1);c!=f.hl&&c!=f.Ot||!0!==this.Uaa||(this.nG=!0);c==f.si&&(this.FR=this.nG=!0);c==f.QF&&(this.FR=!0);c==f.Wv&&(this.JZ=!0);g&&this.Ya(c,null,d)}Qx(c){e.v(c)&&
(c={});this.Hf=b.Zqa;this.cancel();this.ee(f.WF);this.VK(c.report||{})}ge(c){this.Hf=b.Qqa;c=c instanceof e.u.O.Tq?c:e.u.O.Tq.xb(l.hb.vo.xb(c),this.ja.O);var d=e.u.O.Tq.Bba(c,this.ja.qa),g=e.u.O.Tq.Aba(c,this.ja.qa);if(e.u.O.Tq.cva(c,this.ja.qa)&&!d&&!g){const k=new l.hb.Yv;k.If=l.size.wd.zia;k.Af=l.size.wd.aca;k.Lj=l.size.wd.Lj;k.wg=l.size.wd.wg;k.Ig=l.size.wd.Ig;k.zh=l.size.wd.zh;l.size.wd.L_(k)}d&&(l.size.wd.If={});g&&(l.size.wd.Af={});c.HFa(this.ja.qa);c.G6();c.Eka();l.Wa.R().Ya("reset_grid");
e.u.Te.Qi.Bc().Ie=!1;this.ja.RE(c);this.ja.filter();l.Za.R().Ha(new l.jd(l.Za.uQ))}Wd(c,d){this.Hf=b.rK;this.cancel();this.ee(f.WF);const g=this.Qs();d.ignoreSorting&&(g.slice.Yj={},g.slice.hk={});d.ignoreScroll&&l.Wa.R().Ya("reset_grid");e.ka(g.Je)||delete g.Je;const k=g.la.mapping;g.la=e.u.O.Et.xb(c);g.la.mapping=g.la.kb||g.la.mapping.kb&&!g.la.mapping.$o&&void 0!==k?k:g.la.mapping;c=g.Sa();null==g.la.tc||e.v(c.dataSource)||(c.dataSource.requestHeaders=g.la.tc);g.la.Ec&&(this.$I=!0);this.$Ka();
this.VK(c,!0,d)}$Ka(){this.ZI={};if(this.ja&&this.ja.O){const c=new Map,d=this.ja.O.vc(!0);for(let g=0;g<d.length;g++){const k=d.fa(g);k.Xs&&c.set(k.A,k.Xs)}0<c.size&&(this.ZI.Kja=c)}}PKa(){if(this.ZI&&this.ZI.Kja){const c=this.ZI.Kja;for(const [d,g]of c)l.Wa.R().AO(d,g)}}VMa(c,d){this.Hf=b.Xra;var g=this.ja.qa.clone();this.cancel();this.Yia();this.ee(f.WF);d.ignoreSorting&&(g.Lb.KC(),g.$b.KC());d.ignoreScroll&&l.Wa.R().Ya("reset_grid");this.Ld.la.data&&(d=this.Ld.la.data,d=d.concat(c),this.Ld.la.data=
d);this.ja.Wd(c);this.r_();e.u.Te.Qi.Bc().reset(!1);this.JA=!0;e.ve(()=>{this.JA=!1},500);this.ja.qa=g;this.ja.filter()}YG(c){this.Hf=b.$A;this.cancel();this.ee(f.WF);this.VK(c)}load(c,d){this.Hf=b.Y8;this.cancel();this.LK(c,d)}LK(c,d){this.ee(f.vy);this.yq.N(l.hb.Ph.ro,g=>this.rE(g));this.yq.N(l.hb.Ph.Sv,()=>this.QN());this.yq.load(c,d)}open(){this.Hf=b.OPEN;this.ee(f.MF);this.yq.cancel();this.yq.N(l.hb.Ph.kK,()=>this.L4());this.yq.N(l.hb.Ph.ro,c=>this.rE(c));this.yq.N(l.hb.Ph.Sv,()=>this.QN());
this.yq.N(l.hb.Ph.ds,()=>this.PN());this.yq.open()}ija(c){null!=c&&c.hasOwnProperty("dataSource")&&c.dataSource.hasOwnProperty("browseForFile")&&c.dataSource.browseForFile&&(c.dataSource.requestPermission=!0)}rE(c){this.ija(c.hb);e.Ca(!1);this.ee(f.ro);this.VK(c.hb)}QN(){e.Ca(!1);this.ee(f.jK);this.ee(f.QF);this.ee(f.si)}L4(){this.Ya(f.vy,null,"")}PN(){this.ee(f.ds);this.ee(f.QF);this.ee(f.si)}cb(){this.Ya(f.rk,null,"")}VK(c,d=!1,g=null){1>l.Ea.xc.bk()||e.v(this.ja)||(this.Ld=c instanceof l.hb.By?
c:l.hb.By.xb(c),this.Ld.la.yEa=d,this.Ld.la.vka=g,d||l.Wa.R().Ya("reset_grid"),this.Iva(this.Ld),this.Yia(),this.Ld.la.kb?this.Hga():this.Ld.la.mapping.dFa(this.Ld.la.tc,()=>this.Hga()))}Yia(){this.Ld.la.kb?this.zo&&!this.zo.kb&&(e.u.ze.bF=!this.zo.Ec||this.zo.Aa==e.u.i.ra.kg||this.zo.Aa==e.u.i.ra.API,e.u.ze.aJ=!this.zo.Ec||this.zo.Aa==e.u.i.ra.kg||this.zo.Aa==e.u.i.ra.API):(e.u.ze.bF=!this.Ld.la.Ec||this.Ld.la.Aa==e.u.i.ra.kg||this.Ld.la.Aa==e.u.i.ra.API,e.u.ze.aJ=!this.Ld.la.Ec||this.Ld.la.Aa==
e.u.i.ra.kg||this.Ld.la.Aa==e.u.i.ra.API)}Iva(c){"flat"!=c.options.U("gridType")||c.options.U("viewType")!=e.K.Jd.mo||c.la.kb||c.la.Aa!=e.u.i.ra.API||(c.options.oa("viewType",e.K.Jd.It),e.Va(e.P.bind(l.B.j.pY),l.B.j.VP,e.ob.nk))}Qs(c={}){return h.W.g$.HMa(this.rBa(c))}clear(c=!1){this.cancel();this.Hf=b.sp;this.jS();c?this.ja.clearData():this.ja.cancel();this.ee(f.si)}cancel(){this.yq.cancel();this.oKa();this.$I=this.JA=!1;e.u.ze.bF=!1;e.u.ze.aJ=!1;this.ZI={};e.Ca(!1)}Hga(){e.ka(this.dN.Je)?this.pha(null):
(this.ee(f.EF),l.B.pB.R().load(this.dN.Je,c=>this.pha(c),!0),this.dN.Je=null)}pha(c){e.ka(this.Ld.Je)?(l.B.pB.R().reset(),this.rI(c)):(this.ee(f.EF),l.B.pB.R().load(this.Ld.Je,d=>this.rI(d)))}rI(c){c?this.ee(f.FF):!1===c&&this.ee(f.UJ);this.jFa()}jFa(){this.Hf!=b.$A&&this.Hf!=b.rK&&(this.Hf!=b.OPEN&&this.jS(),l.C.F.Cq(this.Ld.options,!0,!1),this.Hf!=b.OPEN&&(l.C.F.Qm=l.C.F.UC));var c=this.Hf;this.ee(f.QF);c==this.Hf&&((c=this.Ld.la,!e.v(this.ga)&&!this.ga.kb&&this.ga.isEqual(c)&&!l.C.F.LI&&this.ja.ga&&
this.ja.O&&this.ja.O.Td)?(this.ga.Aa===e.u.i.ra.API&&this.Ld.la.Aa===e.u.i.ra.API&&e.u.Te.Qi.Hca!==e.u.Te.Qi.bka(this.Ld.options)&&this.ja.ta.clearData(),c=e.u.Te.Qi.Bc(),this.Ld.la.vka&&this.Ld.la.vka.keepMembersOrder?c.Ie=!0:c.reset(),this.r_(),this.ja.hKa()):(c.kb&&this.zo&&!this.zo.kb&&(c=this.zo),c.kb)?(this.ga=c,this.ja.cancel(),this.ee(f.si),e.Ca(!1)):(c.Ec?this.ee(f.kY):this.ee(f.DF),null!==this.ja.ta&&(this.Hf==b.$A||this.Hf==b.OPEN||e.v(this.ga)||this.ga.kb||c.Aa===this.ga.Aa?this.ga.Aa===
e.u.i.ra.API&&this.Ld.la.Aa===e.u.i.ra.API&&e.u.Te.Qi.Hca!==e.u.Te.Qi.bka(this.Ld.options)&&(this.ja.ta.wu(),this.ja.ta=null):(this.ja.ta.wu(),this.ja.ta=null)),this.Fva(c),e.u.Te.Qi.Bc(),this.r_(),this.ja.connect(c)))}Fva(c){!l.C.F.sc||e.v(c)||c.kb||c.aI||(l.C.F.sc=!1)}BGa(){this.Hf===b.$A?(this.jS(),this.ja.qa&&this.ja.qa.clear(),this.ja.O&&this.ja.O.clear()):this.yba(!1);this.ee(f.Ala);this.ga=this.Ld.la}Dr(){this.ee(f.Wv);const c=e.u.O.Tq.xb(this.Ld.slice,this.ja.O,!1,e.u.i.ra.API!==this.Ld.la.Aa);
this.PKa();this.yba(!0);this.ja.RE(c);this.ga.Ec?(this.ee(f.H9),c.kb?(this.ee(f.NX),this.ee(f.si)):(l.C.F.Qm=l.C.F.UC,this.ja.filter())):(this.ee(f.uJ),l.C.F.Qm=l.C.F.UC,this.ja.filter())}X3(){this.ee(f.tJ);this.ee(f.si)}KIa(c){var d=this.Ld.la;l.C.F.Cq(this.Ld.options);this.ja.cancel();e.Ca(!1);d.Ec?this.ee(f.G9,c.data):this.ee(f.sJ,c.data);this.ee(f.si)}W3(){this.ee(f.zB)}qE(c){this.ee(f.hl,c.rm);this.GE!=f.si&&this.ee(f.si,null,c.rm!=e.u.i.Md.zJ);this.$I&&e.ve(()=>{this.$I=!1},500)}G4(c){this.ee(f.Ot,
c.data);this.GE!=f.si&&this.ee(f.si)}r_(){this.ja.N(e.u.Ag.PY,this.hca);this.ja.N(e.u.Ag.Wv,this.EO);this.ja.N(e.u.Ag.OY,this.Gca);this.ja.N(e.u.Ag.QY,this.Tja);this.ja.N(e.u.Ag.lJ,this.yL);this.ja.N(e.u.Ag.hl,this.pA);this.ja.N(e.u.Ag.Ot,this.jia);this.ja.N(f.rk,this.tia)}oKa(){this.ja.rb(e.u.Ag.PY,this.hca);this.ja.rb(e.u.Ag.Wv,this.EO);this.ja.rb(e.u.Ag.OY,this.Gca);this.ja.rb(e.u.Ag.QY,this.Tja);this.ja.rb(e.u.Ag.lJ,this.yL);this.ja.rb(e.u.Ag.hl,this.pA);this.ja.rb(e.u.Ag.Ot,this.jia);this.ja.rb(f.rk,
this.tia)}save(c,d,g,k,m=!1){return this.yq.save(c,d,g,k,m,this.Qs(c instanceof Object?c:{}))}rBa(c){if(void 0===this.Ab&&void 0===this.ja.O&&void 0===this.ja.qa)return null;var d=c.hasOwnProperty("withDefaults")?1==c.withDefaults:!1;c=c.hasOwnProperty("withGlobals")?1==c.withGlobals:!1;var g=new h.W.g$;g.PA=d;g.mNa=c;g.Ab=c&&this.Ab.kb&&!this.zo.kb?this.zo:this.Ab;g.O=this.ja.O;g.Pb=this.ja.qa;g.C=l.C.F.gx(d,c);g.Fe=l.oc.tj.SAa();g.Xc=l.va.nn.Xc;g.Sm=l.hb.rJ.Sm;g.Zx=l.size.wd.QH();this.Ld&&(g.Je=
c&&null==this.Ld.Je&&null!=this.AZ?this.AZ:this.Ld.Je);return g}get cN(){return this.gaa}set cN(c){this.gaa=c}iMa(c){this.zo=c.la;this.cN=c.slice.cd;l.C.F.ALa(c.options);this.AZ=c.Je}jS(){e.u.Te.Qi.dispose();l.size.wd.clear();l.va.nn.n5();l.oc.tj.clear();l.hb.rJ.Sm=[];l.C.F.clear()}yba(c=!1){l.C.F.Cq(this.Ld.options,!1);c&&(l.size.wd.clear(),l.size.wd.L_(this.Ld.Zx));l.va.nn.n5();for(c=0;c<this.Ld.Xc.length;c++){var d=l.va.W.E7.xb(this.Ld.Xc[c]);l.va.nn.add(d)}l.oc.tj.clear();for(c=0;c<this.Ld.Fe.length;c++)l.oc.tj.OE(this.Ld.Fe[c]);
for(c=0;c<this.Ld.slice.Da.length;c++)if(d=this.Ld.slice.Da[c],void 0!==d.format){let g=void 0===d.aggregation?"":d.aggregation;g=e.u.i.ea.pz(g)?e.u.i.ea.Dz(g):g;l.oc.tj.GI(d.format,d.uniqueName,g)}l.hb.rJ.Sm=this.Ld.Sm}dispose(){this.cancel();l.va.nn.dispose();l.C.F.dispose();l.kt.OF.dispose();l.SD.QP.dispose();l.B.pB.dispose();l.Ea.xc.dispose();l.size.wd.dispose();l.oc.tj.dispose();this.yq.dispose();l.hb.rJ.Sm=[];this.ja=this.Ld=this.gaa=this.dN=this.Ab=this.yq=null}}h.tra=a})(l.Xb||(l.Xb={}))})(e.model||
(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){}static BD(a){return a==f.kg?h.ca.I(h.ca.fza):h.ca.I(a+28)}}f.Rl=0;f.cma=2;f.Pd=3;f.Rka=4;f.vP=5;f.kg=6;h.xp=f;class b{constructor(){b.zv=[123,11,92,19,144,53,22,7,190,81,45,201,45,88,130,173,165,9,34,54,31,233,245,40,65,55,23,183,102,109,34,45,177,103,51,20,119,17,3,49,90,92,90,134,182,199,92,230,241,2,117,108,124,54,32,190,251,16,4,5,231,253,201,2,39,96,91,55,82,160,32,84,193,149,189,152,29,102,119,234]}static R(){null==b.instance&&(b.instance=
new b);return b.instance}static dispose(){b.aX=null;b.oH=null;b.Aga=null;b.x3=null;b.mz=null;b.zv=null;b.instance=null}Kva(a,c){this.lc=c;a[h.ca.I(h.ca.Bga)]?this.pO(a[h.ca.I(h.ca.Bga)]):a[h.ca.I(h.ca.dia)]?this.pO(a[h.ca.I(h.ca.dia)]):a[h.ca.I(h.ca.dea)]?this.pO(a[h.ca.I(h.ca.dea)]):a[h.ca.I(h.ca.w3)]?this.Gga(a[h.ca.I(h.ca.w3)]):window[h.ca.I(h.ca.Cga)]?this.pO(window[h.ca.I(h.ca.Cga)]):this.Gga(a[h.ca.I(h.ca.w3)])}pO(a){if(Array.isArray(a)){let c=null;for(const d of a)if(this.Qba(d,!1)!=f.Rl){c=
d;break}a=null!==c&&void 0!==c?c:a[0]}a=l.Tb.validate(a);b.mz=b[h.ca.I(h.ca.Tda)+h.ca.I(h.ca.t$)]=a;b.error=!1;this.lc(!0)}Qba(a,c=!0){if(void 0==a)return f.Rl;if(a.trim()==h.ca.I(h.ca.lNa))return this.Jr(h.ca.I(h.ca.rka),!0,h.ca.I(h.ca.ska),h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Xg)+h.ca.I(h.ca.vga)),f.Rl;a=a.trim();var d=this.TDa(a);d&&(a=this.lAa(a));if(!this.lga(a,c))return f.Rl;a=this.OKa(a);var g=this.QBa(a);d&&(b.Zy=!0);var k=this.nBa(),m=this.dEa(k),n=this.$Da(k);if(!b.tba&&this.d3())return c&&this.Jr(h.ca.I(h.ca.iDa),
!0,h.ca.I(h.ca.jDa)),f.Rl;if(d&&b.Av)if(this.qS(a))b.Vp=!0;else return;if(b.Av&&!this.qS(a))return f.Rl;if(b.Vp)if(m||n||d){if(!this.Eva(a))return f.Rl}else return this.Jr(e.P.bind(h.ca.I(h.ca.tya),k),!0,h.ca.I(h.ca.sya)),f.Rl;if(b.wq&&!this.Lva(a,m||n?h.ca.I(h.ca.Oga):k,c))return f.Rl;if(g==f.Rl||e.v(g))c&&this.Jr(h.ca.I(h.ca.wfa),!0,h.ca.I(h.ca.xfa));else if(!this.Mva(a))return f.Rl;b.Av||b.Vp||b.wq||(g=f.Rl);return g}static bk(){var a=[h.ca.I(h.ca.Tda),"G"].join("X");return b.R().Qba(b[a])}Jr(a,
c=!0,d=l.B.j.xa,g=""){c&&!e.ka(b.mz)&&(a+=h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Xg)+this.mea());a+=h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Cca)+this.oea();a+=g;e.Ca(!1);this.lc(!1);e.Va(a,d,e.ob.xa,[],null,!0)}Gga(a){a||(a=u.Gy.RH(h.ca.I(h.ca.CEa)));a=a+h.ca.I(h.ca.sMa)+Date.now();this.xhr=new XMLHttpRequest;this.xhr.open("GET",a,!0);this.xhr.onerror=()=>this.lha();this.xhr.onreadystatechange=c=>this.tv(c);this.xhr.send()}tv(){null!=this.xhr&&4===this.xhr.readyState&&(200===this.xhr.status?this.BHa(this.xhr.responseText):
this.lha())}BHa(a){this.pO(a)}lha(){this.Jr(h.ca.I(h.ca.WFa),!1,h.ca.I(h.ca.VFa),h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Xg)+h.ca.I(h.ca.MEa))}dEa(a){return null==a||-1==a.indexOf(".")?!0:!1}$Da(a){return/^((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$/.test(a)}TDa(a){return a.substr(0,2)==h.ca.I(h.ca.t$)}lAa(a){a=a.substr(2);var c=Math.floor((new Date).getTime()/6048E5),d=parseInt(a.substr(0,2),16);a=a.replace(RegExp("-","g"),"").substr(2);for(var g=0;2>g;g++){for(var k=
0;5>k;k++){for(var m=d*c*k,n="",p=0;p<a.length;p+=2){var t=m%256;m=(m-t)/256;n+=String.fromCharCode(parseInt(a.charAt(p)+a.charAt(p+1),16)^t);256>m&&(m*=c)}if(this.lga(n,!1))return n}c++}return"-"}d3(){if(self==top||-1<window[h.ca.I(h.ca.MK)][h.ca.I(h.ca.KK)].toLowerCase().indexOf(h.ca.I(h.ca.kwa))||-1<window[h.ca.I(h.ca.MK)][h.ca.I(h.ca.KK)].toLowerCase().indexOf(h.ca.I(h.ca.BEa))||-1<window[h.ca.I(h.ca.MK)][h.ca.I(h.ca.KK)].toLowerCase().indexOf(h.ca.I(h.ca.jMa))||-1<window[h.ca.I(h.ca.MK)][h.ca.I(h.ca.KK)].toLowerCase().indexOf(h.ca.I(h.ca.kMa)))return!1;
try{window.parent.document}catch(a){return!0}return!1}lga(a,c=!0){if(null==a||0==a.length)return c&&this.Jr(h.ca.I(h.ca.gza),!1,h.ca.I(h.ca.hza),h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Xg)+h.ca.I(h.ca.KEa)),!1;if(a.trim()==h.ca.I(h.ca.DEa))return c&&this.Jr(h.ca.I(h.ca.EEa),!1,h.ca.I(h.ca.FEa)),!1;a=a.trim().replace(/-/gi,"");if(a.substr(0,2)==h.ca.I(h.ca.z$).substr(0,1)+7){var d=parseInt(a.substr(2,2),36);var g=a.substr(4,4);"X"==g.substr(0,1)&&(g=g.substr(1,3));g=parseInt(g,20)-3227;a=a.substring(8).toLowerCase()}else return a.substr(0,
2)==h.ca.I(h.ca.z$)||a.substr(0,2)==h.ca.I(h.ca.qsa)||a.substr(0,2)==h.ca.I(h.ca.psa)?c&&this.Bja():c&&this.Jr(h.ca.I(h.ca.wfa),!0,h.ca.I(h.ca.xfa)),!1;for(var k=0;k<a.length;k+=2){var m=parseInt(a.substr(k,2),36);isNaN(m)||(d+=m)}return g!=d||1>g?(c&&this.Jr(h.ca.I(h.ca.pxa),!0,h.ca.I(h.ca.qxa)),!1):!0}OKa(a){a=a.trim().replace(/-/gi,"");var c=parseInt(a.substring(2,4),36);a=a.substring(8).toLowerCase();for(var d="",g=0;g<a.length;g+=2)d+=String.fromCharCode(parseInt(a.substr(g,2),36)^Math.abs(Math.sin(g/
2+2)*c*(g/2+7))%256);return d}QBa(a){b.Vca=u.Jfa();a=a.charCodeAt(0);b.tba=256<=a;a%=256;b.Vp=128<=a;a%=128;b.hfa=64<=a;a%=64;b.wq=32<=a;a%=32;b.Zy=16<=a;a%=16;b.Av=8<=a;return a%8}nBa(){var a;if(this.d3()){if(a=document[h.ca.I(h.ca.referrer)])a=a.replace(h.ca.I(h.ca.gDa),""),a=a.replace(h.ca.I(h.ca.hDa),""),a=a.split("/")[0]}else{a=h.ca.I(h.ca.MK);var c=h.ca.I(h.ca.KK);a=window[a][c]}if(null==a)return null;a=a.replace(h.ca.I(h.ca.qNa),"");return a=a.split(":")[0]}Mva(a){var c=b.Av?a.substr(-6,3):
a.substr(-3);a=new Uint8Array(c.length);for(var d=0;d<c.length;d++)a[d]=c.charCodeAt(d)^b.zv[d];c="";for(d=0;d<a.byteLength;d++)c+=String.fromCharCode(a[d]);a=new Date(864E5*(parseInt(c,34)+17002)+6E4*(new Date).getTimezoneOffset());b.aX=a;d=new Date(parseFloat(e.Cg.bP)/61);return!a||isNaN(a.getTime())||a<d?(this.Bja(this.HCa(a)),!1):!0}Bja(a=null){const c=h.ca.I(h.ca.oFa);let d=h.ca.I(h.ca.nFa);d+=h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Vja)+u.Lh.format(b.aX,h.ca.I(h.ca.Fu));e.ka(a)||(d+=h.ca.I(h.ca.Xg)+
h.ca.I(h.ca.qMa)+a);d+=h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Cca)+this.oea();e.ka(b.mz)||(d+=h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Xg)+this.mea());d+=h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Xg)+h.ca.I(h.ca.mFa);b.error=!0;e.Ca(!1);this.lc(!1);e.Va(d,c,e.ob.xa,[],null,!0)}oea(){const a=new Date(parseFloat(e.Cg.bP)/61);return e.Cg.Iq+` (${h.ca.I(h.ca.ova)} ${u.Lh.format(a,h.ca.I(h.ca.Fu))})`}mea(){return h.ca.I(h.ca.NMa)+h.ca.I(h.ca.Xg)+b.mz}HCa(a){const c=new Date(parseFloat(e.Cg.bP)/61),d=e.Cg.Iq.split(".").map(g=>parseInt(g));
for(;-1<d[2];){c.setUTCDate(c.getUTCDate()-14);this.Hka(d);if(c.getTime()<a.getTime())return this.Hka(d).join(".");if(8==d[1]&&0==d[2])break}return null}Hka(a){--a[2];2==a[0]&&9==a[1]&&-1==a[2]&&(a[1]=8,a[2]=33);2==a[0]&&8==a[1]&&-1==a[2]&&(a[1]=7,a[2]=24);return a}qS(a,c=!0){var d=a.substr(-3);a=new Uint8Array(d.length);for(var g=0;g<d.length;g++)a[g]=d.charCodeAt(g)^b.zv[g];d="";for(g=0;g<a.byteLength;g++)d+=String.fromCharCode(a[g]);a=new Date(864E5*(parseInt(d,34)+17001)+6E4*(new Date).getTimezoneOffset());
b.oH=a;a=new Date(864E5*(parseInt(d,34)+17002)+6E4*(new Date).getTimezoneOffset());return!a||isNaN(a.getTime())||a<new Date?(b.wq||b.Vp?c&&this.Jr(h.ca.I(h.ca.REa),!0,h.ca.I(h.ca.SEa),h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Xg)+h.ca.I(h.ca.LEa)):c&&this.Jr(h.ca.I(h.ca.rka),!0,h.ca.I(h.ca.ska),h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Xg)+h.ca.I(h.ca.vga)),!1):!0}Eva(a){var c=a;a=a.substr(1);for(var d=new Uint8Array(a.length),g=0;g<a.length;g++)d[g]=a.charCodeAt(g)^b.zv[g];a="";for(g=0;g<d.byteLength;g++)a+=String.fromCharCode(d[g]);
b.x3=a.split(String.fromCharCode(224))[0];return b.Av&&!this.qS(c)?!1:!0}Lva(a,c,d=!0){var g=a;a=a.substr(1);for(var k=new Uint8Array(a.length),m=0;m<a.length;m++)k[m]=a.charCodeAt(m)^b.zv[m];a="";for(m=0;m<k.byteLength;m++)a+=String.fromCharCode(k[m]);k=a.split(String.fromCharCode(224));a=k[0];b.Aga=k.shift();if(b.Av&&!this.qS(g,d))return!1;if(c==h.ca.I(h.ca.Oga))return!0;g=" ";b.hfa&&c.length>=a.length-2&&(g="*."+c.substring(c.length-a.length+2));return a!=c&&a!=g&&a!=e.$qa.hash(c)?(d&&(c=e.P.bind(h.ca.I(h.ca.Qza),
c,a)+h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Xg)+e.P.bind(h.ca.I(h.ca.fxa),c),this.Jr(c,!0,h.ca.I(h.ca.Bya))),!1):!0}static UEa(){return f.BD(b.bk())}}b.error=!1;b.Av=!1;b.wq=!1;b.Vp=!1;b.Vca=!1;b.oH=new Date(2009,9,30);b.aX=new Date(2009,9,30);b.Zy=!1;b.mz="";b.hfa=!1;b.tba=!1;h.xc=b})(l.Ea||(l.Ea={}))})(e.model||(e.model={}))})(q||(q={}));var mb=S||(S={});class nb{}nb.Bla='<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/><Override PartName="/xl/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/>{0}</Types>';
nb.Cla='<Override PartName="{0}" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>';nb.rsa='<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>';
nb.Yka='<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Application>Flexmonster Pivot Table</Application><DocSecurity>0</DocSecurity><ScaleCrop>false</ScaleCrop><HeadingPairs><vt:vector size="2" baseType="variant"><vt:variant><vt:lpstr>Worksheets</vt:lpstr></vt:variant><vt:variant><vt:i4>3</vt:i4></vt:variant></vt:vector></HeadingPairs><TitlesOfParts><vt:vector size="3" baseType="lpstr"><vt:lpstr>Sheet1</vt:lpstr><vt:lpstr>Sheet2</vt:lpstr><vt:lpstr>Sheet3</vt:lpstr></vt:vector></TitlesOfParts><LinksUpToDate>false</LinksUpToDate><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>14.0300</AppVersion></Properties>';
nb.ama='<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:creator></dc:creator><cp:lastModifiedBy></cp:lastModifiedBy></cp:coreProperties>';nb.fsa='<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"><fileVersion appName="xl" lastEdited="5" lowestEdited="5" rupBuild="9302"/><workbookPr defaultThemeVersion="124226"/><bookViews><workbookView xWindow="360" yWindow="210" windowWidth="16860" windowHeight="9150"/></bookViews><sheets>{0}</sheets><calcPr calcId="144525"/></workbook>';
nb.gsa='<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/>{0}</Relationships>';
nb.hsa='<Relationship Id="{0}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="{1}"/>';nb.Ara='<a:theme name="Office Theme" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="1F497D"/></a:dk2><a:lt2><a:srgbClr val="EEECE1"/></a:lt2><a:accent1><a:srgbClr val="4F81BD"/></a:accent1><a:accent2><a:srgbClr val="C0504D"/></a:accent2><a:accent3><a:srgbClr val="9BBB59"/></a:accent3><a:accent4><a:srgbClr val="8064A2"/></a:accent4><a:accent5><a:srgbClr val="4BACC6"/></a:accent5><a:accent6><a:srgbClr val="F79646"/></a:accent6><a:hlink><a:srgbClr val="0000FF"/></a:hlink><a:folHlink><a:srgbClr val="800080"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Cambria"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"/><a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/><a:font script="Hans" typeface="\u5b8b\u4f53"/><a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface ="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/></a:majorFont><a:minorFont><a:latin typeface="Calibri"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"/><a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/><a:font script="Hans" typeface="\u5b8b\u4f53"/><a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface ="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs><a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="16200000" scaled="1"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:shade val="51000"/><a:satMod val="130000"/></a:schemeClr></a:gs><a:gs pos="80000"><a:schemeClr val="phClr"><a:shade val="93000"/><a:satMod val="130000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="94000"/><a:satMod val="135000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="16200000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln><a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln><a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst><a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw></a:effectLst><a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d><a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs><a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs></a:gsLst><a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs></a:gsLst><a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults><a:spDef><a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style></a:spDef><a:lnDef><a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style></a:lnDef></a:objectDefaults><a:extraClrSchemeLst/></a:theme>';
nb.kra='<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">{0}<fonts count="{1}" x14ac:knownFonts="1"><font><sz val="11"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font>{2}</fonts><fills count="{3}">{4}</fills><borders count="2"><border><left/><right/><top/><bottom/><diagonal/></border><border><left style="thin"><color theme="0" tint="-0.14996795556505021"/></left><right style="thin"><color theme="0" tint="-0.14996795556505021"/></right><top style="thin"><color theme="0" tint="-0.14996795556505021"/></top><bottom style="thin"><color theme="0" tint="-0.14996795556505021"/></bottom><diagonal/></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs><cellXfs count="{5}"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/>{6}</cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles><dxfs count="0"/><tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleLight16"/><extLst><ext uri="{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"><x14:slicerStyles defaultSlicerStyle="SlicerStyleLight1"/></ext></extLst></styleSheet>';
nb.ara='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="5" uniqueCount="5">{0}</sst>';nb.bra='<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><dimension ref="{0}"/><sheetViews><sheetView tabSelected="1" workbookViewId="0"><selection activeCell="A1" sqref="A1"/></sheetView></sheetViews><sheetFormatPr defaultRowHeight="15" defaultColWidth="15" x14ac:dyDescent="0.25"/><cols>{1}</cols><sheetData>{2}</sheetData>{3}<pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3"/></worksheet>';
nb.St='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';mb.Wi=nb;
(function(e){(function(l){class h extends w.Mh{constructor(){super();this.PL=[];this.OD=new e.ub;this.UH=new e.ub;this.g0=0;if(null!=h.instance)throw Error("Singleton");}static R(){void 0==h.instance&&(h.instance=new h);return h.instance}RE(f){this.ga.Ec||f.kb&&e.model.C.F.T5&&f.J3&&f.rFa();for(var b=0;b<f.qb.length;b++){var a=f.qb.fa(b);a.filter.ji&&a.filter.HC()}var c=f.vc(!1,!1);for(b=0;b<c.length;b++)if(a=c.fa(b),a.eb=[],a.filter.ji&&a.filter.measure){var d=f.bx(a.filter.measure.index);if(-1==
a.filter.measure.index||d&&d.A!==a.filter.measure.A)if(a.filter.measure.index=f.Iea(a.filter.measure.A,a.filter.measure.$),d=f.bx(a.filter.measure.index),-1==a.filter.measure.index||d&&d.A!==a.filter.measure.A)a.filter.measure.index=f.Iea(a.filter.measure.A);-1!=a.filter.measure.index&&(d=f.bx(a.filter.measure.index),e.v(d)||d.A!==a.filter.measure.A||(a.filter.measure.$=d.$))}this.qa=f;this.Ya(l.Dy.nK)}hKa(){!this.ga.Ec&&this.O&&(this.O.Td=!1,this.DE());for(var f=this.O.vc(!1),b=0;b<f.length;b++){var a=
f.fa(b);a.xu();a.Y_();this.ga.Ec?0<a.gM.length&&(a.Td=!1):a.Td=!1}this.qa&&this.qa.clear();this.dM()}connect(f){e.v(this.gu)||this.gu.cancel();this.gu=l.wra.GCa(f);this.gu.load(f,()=>this.dM(),b=>{this.Ya(l.Ag.QY,null,{error:b})},()=>{this.cancel(!1);this.ga=f;this.Dq=this.gu;this.ta=this.ga.Aa==l.i.ra.kg?new l.external.Ue.Tma(this):this.ga.Aa==l.i.ra.API?new l.external.jc.P6(this):this.ga.Ec?new l.external.Hb.fqa(this):new l.local.ZP(this);this.gu=null;this.Tm=l.MX.O1(this.ga);null!=this.O&&this.O.clear();
this.O=l.O.vra.FCa(this.ga.Aa);this.O.HLa(f.mapping);this.Ya(l.Ag.PY)},()=>{this.Ya(l.Ag.OY)})}dM(){this.O.Td=!0;this.Ya(l.Ag.Wv)}cancel(f=!0){u.Ql.cancel();this.Dq&&(this.Dq.cancel(),this.Dq=null);this.Tm&&(this.wS(),this.Tm.cancel(),this.Tm=null);this.OD=new e.ub;this.UH=new e.ub;f&&this.O&&(this.O.clear(),this.O=null);f&&this.qa&&(this.qa.clear(),this.qa=null);f&&this.ta&&(this.ta.wu(),this.ta=null);f&&this.gu&&(this.gu.cancel(),this.gu=null);this.g0=0}clearData(){this.wS();this.Tm&&(this.Tm.cancel(),
this.Tm=null);this.ta&&this.ta.clearData()}hI(f,b){if(null!=f){var a=this.S2(this.ga);this.ta.select(!1);null===this.Tm||a||this.Tm.cancel();this.Tm=l.MX.O1(this.ga);a&&this.PL.push(this.Tm);this.Tm.load(this.ga,f,b,c=>this.qz(c))}}Qn(f=""){e.Ca(!1);this.wS();this.Ha(new l.AY(f))}qz(f){e.Ca(!1);this.Ya(l.Ag.Ot,null,{error:f})}filter(){this.select(l.i.Md.BP)}sort(){this.Qn()}expand(f,b,a,c=!0){this.Ha(new l.oF(l.i.Md.xF));this.YN(f,b,a,()=>{this.ta.expand(f,b,a);c&&(this.Qn(l.i.Md.xF),e.ve(()=>{this.Ya(e.model.Xb.Vc.rk)},
1))})}Csa(f,b,a){a=e.v(a)?this.qa.Wf:[a];for(var c=!0,d=0;d<a.length;d++){var g=b===l.i.ha.Ia?this.ta.La(f,[],a[d]):this.ta.La([],f,a[d]);if(!isNaN(g)){c=!1;break}}return c}YN(f,b,a,c){this.ga.Ec?this.Csa(f,b,a)?c(!0):(a=new l.PF(l.i.Md.xF),a.jg=f,a.uw=b,a.body=l.yB.xD(this.qa,this.ga).expand(b,f),void 0===a.body?c(!0):this.hI(a,c)):c(!0)}Bsa(f,b,a){if(null!=b.hierarchy.ic)return!1;var c=e.v(void 0)?this.qa.Wf:[void 0],d=!0;f=f.slice(0);f[f.length-1]=b.ordinal;for(b=0;b<c.length;b++){var g=a===l.i.ha.Ia?
this.ta.La(f,[],c[b]):this.ta.La([],f,c[b]);if(!isNaN(g)){d=!1;break}}return d}bW(f,b,a,c){if(this.ga.Ec)if(this.Bsa(f,b,a))c(!0);else{var d=new l.PF(l.i.Md.Iv);d.jg=f;d.uw=a;d.body=l.yB.xD(this.qa,this.ga).Ee(a,f,b,b.level.A);void 0===d.body?c(!0):this.hI(d,c)}else c(!0)}collapse(f,b,a,c=!0){this.ta.collapse(f,b,a);c&&this.Qn(l.i.Md.m7)}cd(f,b,a,c,d=null){var g=new l.PF(l.i.Md.zJ);g.body=l.yB.xD(this.qa,this.ga).cd(f,b,a,d?d.slice(0):null);e.Ca(!0,e.model.B.j.mg);d=new l.oF(l.i.Md.zJ);this.Ha(d);
this.Tm.cancel();this.Tm=l.MX.O1(this.ga);this.Tm.cd(this.ga,g,f,b,a,k=>{c(k);this.Qn(g.type)},()=>{c();this.Qn(g.type)})}iD(f,b,a="all"){if("all"==a||"rows"==a)this.qa.lf=f,this.qa.hf=b,this.qa.fwa(),this.qa.ewa(),this.qa.dwa();if("all"==a||"columns"==a)this.qa.kf=f,this.qa.Xf=b,this.qa.$va(),this.qa.Zva(),this.qa.Yva();this.ga.Ec&&this.ta.LC()}Ee(f,b,a,c){b.hierarchy.wz(b);var d=new l.oF(l.i.Md.Iv);this.Ha(d);this.ga.Ec?b.fh?(this.ta.Ee(f,b,a,c),this.Qn(l.i.Md.Iv)):this.Nk(b.hierarchy,b,()=>{var g=
new l.PF(l.i.Md.Iv);g.jg=f;g.uw=a;g.body=l.yB.xD(this.qa,this.ga).Ee(a,f,b);this.hI(g,()=>{this.ta.Ee(f,b,a,c);for(var k=[],m=b.level.yb+1;m<b.hierarchy.ua.length;m++){var n=b.hierarchy.ua.fa(m);n&&(k=k.concat(b.hierarchy.gM(n)))}if(0<k.length){n=[];var p,t;for(m=0;m<k.length;m++)for(t=p=b.hierarchy.za(k[m]);void 0!==p&&void 0!==p.parent;){if(p.parent.ordinal===b.ordinal){n.push(t);break}p=p.parent}this.Dga(g,f,a,n,c)}else this.Qn(g.type)})}):(this.ta.Ee(f,b,a,c),this.Qn(l.i.Md.Iv))}Dga(f,b,a,c,d){if(0<
c.length){var g=c.shift(),k=b.slice(0);k[k.length-1]=g.ordinal;f.jg=k;f.body=l.yB.xD(this.qa,this.ga).Ee(a,k,g);this.hI(f,()=>{this.ta.Ee(k,g,a,d);this.Dga(f,b,a,c,d)})}else this.Qn(f.type)}Vm(f,b,a,c,d){var g=l.yB.xD(this.qa,this.ga);c=new l.oF(l.i.Md.rP);this.Ha(c);this.Dq.cA(b,d,()=>{var k=new l.PF;k.type=l.i.Md.rP;k.jg=f;k.uw=a;k.body=g.Ee(a,f,b,d);this.hI(k,()=>{this.ta.Vm(f,b,a,d);this.Qn(k.type)})},k=>this.qz(k))}Xp(f,b,a,c){b.hierarchy.Z0(b);this.ta.Xp(f,b,a,c);f=new l.oF(l.i.Md.sP);this.Ha(f);
this.Qn(l.i.Md.sP)}select(f=l.i.Md.to){!e.model.Ea.xc.Av||e.model.Ea.xc.wq||e.model.Ea.xc.Vp||e.model.Ea.xc.Zy||0==(new Date).getTime()%378&&e.Va(e.model.Ea.ca.I(e.model.Ea.ca.Rha),e.model.Ea.ca.I(e.model.Ea.ca.qka));var b=new l.oF(f);this.Ha(b);this.ga.Ec?(this.ta.wu(),this.TJa()):(this.ta.select(),this.Qn(f))}lu(f,b=!0){f=f instanceof l.O.Vr?f:this.O.Dx(f);if(e.model.C.F.RO){var a=u.LP.pS(f.Ge,f.A);0==a.px&&e.Va(a.errorMessage)}if(!this.ga.Ec||!f.Qa||e.model.C.F.tu||this.ga.Aa===l.i.ra.API){if(null==
this.O.fd(f.A)){f.Qa&&(a=new u.VJ,f.Ud=a.parse(f.Ge),this.O instanceof l.external.jc.O.jJ&&(f.Ud=u.Ht.FH(f.Ud,this.O.Da)));if(f.Qa&&null==f.Ud)return;this.O.nI&&this.O.zk(f);null!=this.qa&&!this.qa.gr.Bb(f.A)&&f.an&&this.ufa(f);b&&(this.O.Td&&!this.ga.Ec||this.O.Td&&this.ga.Aa==e.u.i.ra.API||this.O.Td&&this.ga.rN&&this.ga.Aa==e.u.i.ra.Cc&&e.model.C.F.tu)&&this.refresh()}else{a=new u.VJ;f.Ud=a.parse(f.Ge);this.O instanceof l.external.jc.O.jJ&&(f.Ud=u.Ht.FH(f.Ud,this.O.Da));if(f.Qa&&null==f.Ud)return;
b=this.O.fd(f.A);b.caption=f.caption;b.fq=f.fq;b.Ge=f.Ge;b.Lk=f.Lk;b.Ud=f.Ud;b.Jn=f.Jn;b.an=f.an;(this.qa.gr.Bb(b.A)||b.an)&&this.ufa(b);(this.O.Td&&!this.ga.Ec||this.O.Td&&this.ga.Aa==e.u.i.ra.API||this.ga.Aa==e.u.i.ra.Cc&&e.model.C.F.tu)&&this.refresh()}this.cb()}}ufa(f){let b=-1;const a=this.qa.gd();for(let c=0;c<a.length;c++)if(f.A==a[c].A){b=c;break}0<=b?(f.index=b,a[b]=f):(a.push(f),f.index=a.length);this.qa.zA(a);this.qa.G6();this.zka(this.qa.Lb,f);this.zka(this.qa.$b,f)}zka(f,b){null!=f.Mf&&
f.Mf.A==b.A&&(f.Mf=b)}qA(f,b=!0){var a=this.O.fd(f);a&&a.Qa&&(this.O.EE(f),this.qa.EE(f),b&&this.O.Td&&this.refresh(),this.cb())}DE(){for(var f=0;f<this.O.Da.length;){var b=this.O.Da.fa(f);b.Qa?this.qA(b.A,!1):f++}this.O.Td&&this.refresh();this.cb()}cb(){e.model.Za.R().Ya(e.model.Za.uQ)}refresh(){this.O.Td?(this.ga.Aa==l.i.ra.EMPTY&&e.v(this.qa)&&this.dM(),this.filter()):this.ga.Aa==l.i.ra.EMPTY&&this.dM()}xl(f,b){(0<f.yv.length||this.qa.hf&&this.qa.rows.Bb(f.A)||this.qa.Xf&&this.qa.Ka.Bb(f.A))&&
f.fn!=f.Zi&&(f.Td=!1);if(!f.We&&!f.Td||null!=f.ic){0==this.OD.length&&this.Dq.xl(f,c=>this.sha(c),c=>this.qz(c));this.OD.Ta(f.A,f);var a=null!=this.UH.getItem(f.A)?this.UH.getItem(f.A):[];a.push(b);this.UH.Ta(f.A,a)}else b(f)}Nk(f,b,a){this.Dq.Nk(f,b,a,c=>this.qz(c))}Aq(f,b,a){this.Dq.BC()?this.Dq.Aq(f,b,a,c=>this.qz(c)):(f=2<f.ua.length?this.iLa(f,b):this.hLa(f,b),a(f))}hLa(f,b){const a=[],c=f.Zi;let d;for(d=0;d<c;d++){if(f.pd.ordinal==d)continue;const g=f.za(d);void 0!==g&&e.P.contains(g.caption,
b)&&a.push(d)}return a}iLa(f,b){var a=[];this.Kda(a,f.pd,b);var c;for(c=0;c<a.length;c++)b=this.vfa(a,f.za(a[c]),c),c+=b;return a}vfa(f,b,a){b=b.parent;var c=0;e.v(b)||b.dc||(-1==f.indexOf(b.ordinal)&&(c++,f.splice(a,0,b.ordinal)),c+=this.vfa(f,b,a));return c}Kda(f,b,a){for(var c=b.children,d=c.length,g=b.hierarchy,k=0;k<d;k++)b=g.za(c[k]),e.P.contains(b.caption,a)&&f.push(b.ordinal),this.Kda(f,b,a)}sha(f){f.Fw();f.Td=!0;this.OD.removeItem(f.A);var b=this.UH.getItem(f.A);if(null!=b)for(var a=0;a<
b.length;a++)(0,b[a])(f);this.UH.removeItem(f.A);0<this.OD.length&&(f=this.OD.fa(0),null!=this.Dq?this.Dq.xl(f,c=>this.sha(c),c=>this.qz(c)):this.OD=null)}S2(f){return f.Aa===l.i.ra.API&&f.Iw}TJa(){if(this.qa.kb)this.Qn();else{var f=this.qa.vc(!0,!0,e.model.C.F.sc);this.g0=f.length;for(var b=0;b<f.length;b++){var a=f.fa(b);this.xl(a,()=>this.XHa())}}}Fga(f){try{this.S2(this.ga)?this.aFa(f):this.jta(f)}catch(b){e.Va(e.model.B.j.rpa+"<br/>"+b.message||b,e.model.B.j.xa,e.ob.xa),this.qz(b)}}XHa(){if(0==
--this.g0){this.ga.Ec&&this.qa.Y4();var f=new l.PF(l.i.Md.to);f.body=l.yB.xD(this.qa,this.ga).select();this.hI(f,()=>{e.model.C.F.sc||this.ga.Aa!=l.i.ra.kg&&this.ga.Aa!=l.i.ra.API?this.Qn(f.type):(e.Ca(!0,e.model.B.j.mg),this.Ega(()=>{this.Fga(()=>{this.Ega(()=>{this.Fga(()=>{this.Qn(f.type)})})})}))})}}aFa(f){var b=this.qa.td(l.i.ha.Ia).ld;const a=this.qa.td(l.i.ha.Oa).ld,c={cols:[],rows:[]};let d=0;for(var g=0;g<b.length;g++){const n=b[g].length-1;d=n>d?n:d;void 0==c.rows[n]&&(c.rows[n]=[]);c.rows[n].push(g)}for(b=
0;b<a.length;b++)g=a[b].length-1,d=g>d?g:d,void 0==c.cols[g]&&(c.cols[g]=[]),c.cols[g].push(b);let k=0;const m=()=>{k++;k>d?f():this.iFa(c,k,m)};m()}iFa(f,b,a){const c=new u.FB;var d=this.qa.td(l.i.ha.Ia).ld;const g=this.qa.td(l.i.ha.Oa).ld;var k=f.rows[b];f=f.cols[b];let m=(k?k.length:0)+(f?f.length:0);if(k)for(b=0;b<k.length;b++){const n=d[k[b]].slice(1),p=this.qa.wb.fa(n.length-1);if(p&&null!=p.ic){const t=p.za(n[n.length-1]);null!=t&&this.ta.Vm(n.slice(0,-1),t.parent,l.i.ha.Ia,p.zf)}this.ta.wh(n)?
m--:(c.add((t,r)=>{this.ta.expand(r,l.i.ha.Ia,void 0);t()},n),this.YN(n,l.i.ha.Ia,void 0,(t=!1)=>{t?(c.pop(),this.ta.expand(n,l.i.ha.Ia,void 0),--m):(1===m&&c.Ze(a),m--)}))}if(f)for(d=0;d<f.length;d++){const n=g[f[d]].slice(1);(k=this.qa.Fb.fa(n.length-1))&&null!=k.ic&&(b=k.za(n[n.length-1]),null!=b&&this.ta.Vm(n.slice(0,-1),b.parent,l.i.ha.Oa,k.zf));this.ta.Gj(n)?--m:(c.add((p,t)=>{this.ta.expand(t,l.i.ha.Oa,void 0);p()},n),this.YN(n,l.i.ha.Oa,void 0,(p=!1)=>{p?(c.pop(),this.ta.expand(n,l.i.ha.Oa,
void 0),--m):(1===m&&c.Ze(a),m--)}))}(c.kb()||0===m)&&a()}jta(f){const b=new u.FB;for(var a=this.qa.td(l.i.ha.Ia).ld,c=0;c<a.length;c++){var d=a[c];b.add((g,k)=>{var m=this.qa.wb.fa(k.length-1);if(m&&null!=m.ic){var n=m.za(k[k.length-1]);null!=n&&this.ta.Vm(k.slice(0,-1),n.parent,l.i.ha.Ia,m.zf)}this.ta.wh(k)?g():this.YN(k,l.i.ha.Ia,void 0,()=>{this.ta.expand(k,l.i.ha.Ia,void 0);g()})},d.slice(1))}a=this.qa.td(l.i.ha.Oa).ld;for(c=0;c<a.length;c++)d=a[c],b.add((g,k)=>{var m=this.qa.Fb.fa(k.length-
1);if(m&&null!=m.ic){var n=m.za(k[k.length-1]);null!=n&&this.ta.Vm(k.slice(0,-1),n.parent,l.i.ha.Oa,m.zf)}this.ta.Gj(k)?g():this.YN(k,l.i.ha.Oa,void 0,()=>{this.ta.expand(k,l.i.ha.Oa,void 0);g()})},d.slice(1));b.Ze(f)}Ega(f){try{this.S2(this.ga)?this.ZEa(f):this.ita(f)}catch(b){e.Va(e.model.B.j.qpa+"<br/>"+b.message||b,e.model.B.j.xa,e.ob.xa),this.qz(b)}}ZEa(f){if(this.ga.Aa!==l.i.ra.API||l.external.jc.O.fo.VH){var b=this.qa.td(l.i.ha.Ia).ue;const c=this.qa.td(l.i.ha.Oa).ue,d={cols:[],rows:[]};let g=
0;for(var a=0;a<b.length;a++){const n=b[a][1].split("].[").length;g=n>g?n:g;void 0==d.rows[n]&&(d.rows[n]=[]);d.rows[n].push(a)}for(b=0;b<c.length;b++)a=c[b][1].split("].[").length,g=a>g?a:g,void 0==d.cols[a]&&(d.cols[a]=[]),d.cols[a].push(b);let k=0;const m=()=>{k++;k>g?f():this.hFa(d,k,m)};m()}else f()}hFa(f,b,a){const c=new u.FB;var d=this.qa.td(l.i.ha.Ia).ue;const g=this.qa.td(l.i.ha.Oa).ue;var k=f.rows[b];f=f.cols[b];let m=(k?k.length:0)+(f?f.length:0);if(k)for(b=0;b<k.length;b++){let n=d[k[b]].slice(0);
const p=this.qa.wb.fa(n.length-3);if(e.v(p)){m--;continue}const t=p.Ib(n[1]);null==t?m--:(n=n.slice(2),this.ta.Ih(n,t)||(c.add((r,v)=>{this.ta.Ee(v,t,l.i.ha.Ia,void 0);r()},n),this.bW(n,t,l.i.ha.Ia,(r=!1)=>{r?(c.pop(),this.ta.Ee(n,t,l.i.ha.Ia,void 0)):1===m&&c.Ze(a);m--})))}if(f)for(d=0;d<f.length;d++){let n=g[f[d]].slice(0);k=this.qa.Fb.fa(n.length-3);if(e.v(k)){m--;continue}const p=k.Ib(n[1]);null==p?m--:(n=n.slice(2),this.ta.Fj(n,p)||(c.add((t,r)=>{this.ta.Ee(r,p,l.i.ha.Oa,void 0);t()},n),this.bW(n,
p,l.i.ha.Oa,t=>{t?(c.pop(),this.ta.Ee(n,p,l.i.ha.Oa,void 0)):1===m&&c.Ze(a);m--})))}(c.kb()||0===m)&&a()}ita(f){if(this.ga.Aa!==l.i.ra.API||l.external.jc.O.fo.VH){for(var b=new u.FB,a=this.qa.td(l.i.ha.Ia).ue,c=0;c<a.length;c++)b.add((d,g)=>{var k=this.qa.wb.fa(g.length-3);if(e.v(k))d();else{var m=k.Ib(g[1]);g=g.slice(2);null==m?d():this.ta.Ih(g,m)?d():this.bW(g,m,l.i.ha.Ia,()=>{this.ta.Ee(g,m,l.i.ha.Ia,void 0);d()})}},a[c].slice(0));a=this.qa.td(l.i.ha.Oa).ue;for(c=0;c<a.length;c++)b.add((d,g)=>
{var k=this.qa.Fb.fa(g.length-3);if(e.v(k))d();else{var m=k.Ib(g[1]);g=g.slice(2);null==m?d():this.ta.Fj(g,m)?d():this.bW(g,m,l.i.ha.Oa,()=>{this.ta.Ee(g,m,l.i.ha.Oa,void 0);d()})}},a[c].slice(0));b.Ze(f)}else f()}Ria(f){e.ve(()=>{e.model.Za.R().Ya(e.model.Za.G7,null,f)},1)}Wd(f){this.Dq.Wd(f);this.dM()}wS(){if(0<this.PL.length){for(let f=0;f<this.PL.length;f++)this.PL[f].cancel();this.PL=[]}}static dispose(){l.Kt.dispose();l.SY.dispose();l.external.Hb.mj.u$.dispose();l.external.jc.O6.dispose();u.Ql.cancel();
if(h.instance){h.instance.qa=null;try{h.instance.ta.wu()}catch(f){}h.instance.ta=null;try{h.instance.wS(),h.instance.Tm.cancel()}catch(f){}h.instance.Tm=null;try{h.instance.Dq.cancel()}catch(f){}h.instance.Dq=null;try{h.instance.gu.cancel()}catch(f){}h.instance.gu=null;try{h.instance.O.clear()}catch(f){}h.instance.Vd();h.instance.O=null;h.instance=null}}}l.Ma=h})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h extends x.Pa{constructor(){super("div");this.G.cm()}nb(){this.G.html(e.model.Ea.ca.I(e.model.Ea.ca.mX));this.G.element.setAttribute("style",`z-index:1!important;left:${(l.Sb.Wx-this.cg())/2}px!important;top:${(l.Sb.KD-this.zd())/2}px!important;color:#ffffff!important;position:absolute!important;pointer-events:none;display:block!important;font-size:60px!important;text-shadow:0 0 10px #000000 !important;text-align:center!important;opacity:0.2!important;`)}}l.isa=h})(e.K||
(e.K={}))})(q||(q={}));
(function(e){class l{constructor(f,b){this.FU=!1;this.jc=null;this.J0=[];this.L0=[];this.K0=[];this.I0=[];this.I4=()=>{this.ma&&this.ma.Fa&&(this.ma.Fa.GE==e.model.Xb.Vc.si||this.ma.Fa.GE==e.model.Xb.Vc.hl?e.model.Za.R().Ha(new e.model.jd(e.model.Za.uQ)):this.ma.ja&&this.ma.ja.ga&&this.ma.ja.ga.Ec&&this.rd(()=>this.I4(),2))};l.instance=this;this.jc=b;e.v(f)&&(f={});if(0!=u.VDa()||0!=confirm("Flexmonster Pivot Table is not completely supported by this version of browser. Please update your browser. Continue anyway?")){b="flexmonster/";
void 0!==f.componentFolder&&(b=f.componentFolder);u.Gy.h0=b;u.uo.O_=b;window.trustedTypes&&!window.flexmonsterTrustedTypesPolicy&&(window.flexmonsterTrustedTypesPolicy=window.trustedTypes.createPolicy("flexmonster",{createHTML:c=>c,createScriptURL:c=>c}));var a;f.container instanceof HTMLElement?a=f.container:e.v(f.container)||(a=document.getElementById("#"==f.container.substr(0,1)?f.container.substring(1):f.container));null==a?(f=0==e.ka(f.container)?"Flexmonster:\nUnable to create the component. DOM element with id '"+
f.container+"' is not found.":"Flexmonster:\nUnable to create the component. DOM element is null.",console.error(f),alert(f)):(b=this.Xea(a),e.v(b)||void 0===b.flexmonster||(b.flexmonster.dispose(),b.flexmonster=void 0),this.ma=e.model.Wa.R(),this.ma.Fa.N(e.model.Xb.Vc.MF,()=>this.dIa()),this.ma.Fa.N(e.model.Xb.Vc.vy,()=>this.A4()),this.ma.Fa.N(e.model.Xb.Vc.ro,()=>this.rE()),this.ma.Fa.N(e.model.Xb.Vc.jK,()=>this.rIa()),this.ma.Fa.N(e.model.Xb.Vc.ds,()=>this.PN()),this.ma.Fa.N(e.model.Xb.Vc.QF,()=>
this.K4()),this.ma.Fa.N(e.model.Xb.Vc.DF,()=>this.y4()),this.ma.Fa.N(e.model.Xb.Vc.uJ,()=>this.rq()),this.ma.Fa.N(e.model.Xb.Vc.sJ,c=>this.jha(c)),this.ma.Fa.N(e.model.Xb.Vc.tJ,()=>this.X3()),this.ma.Fa.N(e.model.Xb.Vc.Wv,()=>this.Dr()),this.ma.Fa.N(e.model.Xb.Vc.kY,()=>this.GHa()),this.ma.Fa.N(e.model.Xb.Vc.H9,()=>this.vha()),this.ma.Fa.N(e.model.Xb.Vc.G9,c=>this.uha(c)),this.ma.Fa.N(e.model.Xb.Vc.EF,()=>this.FHa()),this.ma.Fa.N(e.model.Xb.Vc.FF,()=>this.rI()),this.ma.Fa.N(e.model.Xb.Vc.UJ,()=>this.IHa()),
this.ma.Fa.N(e.model.Xb.Vc.NX,()=>this.c4()),this.ma.Fa.N(e.model.Xb.Vc.zB,()=>this.vIa()),this.ma.Fa.N(e.model.Xb.Vc.hl,()=>this.qE()),this.ma.Fa.N(e.model.Xb.Vc.Ot,c=>this.G4(c)),this.ma.N(e.model.Xb.Vc.rk,()=>this.I4()),this.ma.Fa.N(e.model.Xb.Vc.rk,()=>this.I4()),this.ma.Fa.N(e.model.Xb.Vc.si,()=>this.J4()),this.ma.N(h.TX,()=>this.$Ga()),this.ma.N(h.lg,()=>this.YGa()),this.ma.N(h.yY,()=>this.jIa()),this.ma.N(h.xB,()=>this.iIa()),this.Sg=new e.K.Sb(x.Ga.Yb(a),f),this.Sg.N(e.K.Vi.ly,c=>this.dGa(c)),
this.Sg.N(e.K.Vi.CY,()=>this.qIa()),this.ma.RD(f),this.Bua(f.accessibility),this.Xea(this.Sg.rf.element).flexmonster=this.jc,this.FU=!0,this.ma.Fa.Ya(e.model.Xb.Vc.x7))}}Bua(f){e.v(f)||"object"!==typeof f||(e.v(f.keyboardMode)||this.Sg.gja(!0===f.keyboardMode),e.v(f.highContrastTheme)||this.Sg.FLa(f.highContrastTheme))}Xea(f){return void 0===f.uielement?f:f.uielement}get mc(){return this.ma&&this.ma.Fa&&this.ma.Fa.mc}get WU(){return this.ma&&this.ma.Fa&&this.ma.Fa.WU}get $U(){return this.ma&&this.ma.Fa&&
this.ma.Fa.$U}Dia(){e.ve(()=>{for(;0<this.K0.length;)this.K0.shift().call(this)},1)}rd(f,b=10){e.ve(()=>{0==b?this.J0.push(f):1==b?this.L0.push(f):2==b?this.I0.push(f):this.K0.push(f)},1)}dIa(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.MF))}A4(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.vy))}rE(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.ro))}rIa(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.jK))}PN(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.ds))}K4(){for(this.ma&&this.ma.Fa&&this.ma.Fa.Hf==
e.model.Xb.Ep.INIT&&e.ve(()=>{e.model.Za.R().Ha(new e.model.jd(e.model.Za.S9))},1);0<this.J0.length;)this.J0.shift().call(this)}FHa(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.EF))}rI(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.FF))}IHa(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.UJ))}y4(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.DF))}rq(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.uJ))}X3(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.tJ))}jha(f){e.model.Za.R().Ha(new e.model.jd(e.model.Za.sJ,
f.data))}Dr(){for(;0<this.L0.length;)this.L0.shift().call(this)}GHa(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.Z8))}vha(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.J9))}uha(f){e.model.Za.R().Ha(new e.model.jd(e.model.Za.I9,f.data))}c4(){}vIa(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.zB))}qE(){for(e.model.Za.R().Ha(new e.model.jd(e.model.Za.hl));0<this.I0.length;)this.I0.shift().call(this);e.model.Za.R().Ha(new e.model.jd(e.model.Za.o$))}G4(f){e.model.Za.R().Ha(new e.model.jd(e.model.Za.Ot,
f.data))}J4(){}dGa(f){e.model.Za.R().Ha(new e.model.jd(e.model.Za.ly,f.data))}qIa(){this.mc&&(this.ma.Fa.Hf!==e.model.Xb.Ep.Qc?(this.ma.Fa.Hf=e.model.Xb.Ep.Qc,e.ve(()=>{this.Dia();e.model.Za.R().Ha(new e.model.jd(e.model.Za.si))},1)):e.ve(()=>{this.Dia()},1))}$Ga(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.Z7))}YGa(){e.ve(()=>{e.model.Za.R().Ha(new e.model.jd(e.model.Za.lg))},1)}jIa(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.M9))}iIa(){e.ve(()=>{e.model.Za.R().Ha(new e.model.jd(e.model.Za.xB))},
1)}H1(){return this.mc?this.ma.H1():null}L1(f){return this.mc?this.ma.L1(f):null}$R(f){this.mc?null!=f&&this.ma.$R(f):this.rd(()=>this.$R(f))}kW(f){this.mc?this.ma.kW(f):this.rd(()=>this.kW(f))}jW(){this.mc?this.ma.jW():this.rd(()=>this.jW())}open(){this.ma.open()}load(f,b){this.ma.load(f,b)}Qs(f="object"){let b="object";f instanceof Object?f.hasOwnProperty("type")&&(b=f.type,b=b.toLowerCase()):f&&(b=f.toLowerCase());f=this.ma.Qs(f instanceof Object?f:{});return e.v(f)||f.kb?null:"xmlstring"==b?z.ba.Lc(f.op(),
!0):f.Sa()}Qx(f){if(this.mc){if("string"==typeof f)try{if(-1<f.indexOf("<config>")){var b=z.ba.create(f);f=e.model.hb.By.Jk(b)}else f=JSON.parse(f)}catch(a){e.Va(e.model.B.j.p9,e.model.B.j.xa,e.ob.xa);return}this.ma.Qx({report:f})}else this.rd(()=>this.Qx(f))}getData(f,b,a){this.mc?this.ma.getData(f,b,a):this.rd(()=>this.getData(f,b,a))}save(f={filename:"report.json"},b=null,a=null,c=null,d=!1){var g=a;this.mc?(f instanceof Object&&f.hasOwnProperty("callbackHandler")&&(g=f.callbackHandler),this.ma.save(f,
b,null!=g?(k,m)=>g(k,m):null,c,d)):this.rd(()=>this.save(f,b,a,c,d))}Wd(f,b){null!=f&&(e.v(b)?b={partial:!1}:"boolean"===typeof b&&(b={partial:b}),this.WU?this.ma.Wd(f,b):this.rd(()=>this.Wd(f,b),0))}YG(f){null!=f&&(this.WU?this.ma.YG(f):this.rd(()=>this.YG(f),0))}gua(f){this.Wd({data:f})}lu(f){this.mc?null!=f&&this.ma.lu(f):this.rd(()=>this.lu(f))}qA(f){this.mc?this.ma.qA(f):this.rd(()=>this.qA(f))}DE(){this.mc?this.ma.DE():this.rd(()=>this.DE())}clear(){this.ma&&this.ma.clear()}dispose(){e.Tn.dispose();
e.Ik.dispose();e.vM.dispose();e.Ora.dispose();u.uo.dispose();this.jc=null;this.ma.dispose();this.Sg.dispose();this.ma=this.Sg=null;l.instance=null;e.model.Za.dispose()}refresh(){this.mc?this.Sg.nb():this.rd(()=>this.refresh())}OW(){this.mc?this.Sg.OW():this.rd(()=>this.OW())}tO(f="column",b=!1){this.mc?this.Sg.tO(f,b):this.rd(()=>this.tO(f,b))}PW(f="column",b="bottom",a=!1){this.mc?this.Sg.PW(f,b,a):this.rd(()=>this.PW(f,b,a))}mT(f=!0,b="all"){this.mc?this.ma.mT(f,b):this.rd(()=>this.mT(f,b))}Uw(f){this.mc?
this.Sg.Uw(f):this.rd(()=>this.Uw(f))}CS(){this.mc?this.ma.CS():this.rd(()=>this.CS())}Ew(f){this.mc?this.Sg.Ew(f):this.rd(()=>this.Ew(f))}print(f=null){this.mc?this.ma.print(e.model.kt.Q9.xb(f)):this.rd(()=>this.print(f))}Gk(f,b=null,a=null){if(this.mc){if(null!=f){var c=null!=a?(...d)=>a.apply(null,d):null;this.ma.Gk(f,e.model.Dc.e8.xb(b),c)}}else this.rd(()=>this.Gk(f,b,a))}Ym(f){return this.mc?this.ma.Ym(f):null}uI(f){this.mc&&this.Sg.$Ia(f)}Il(f,b){this.mc?this.ma.Il(f,b):this.rd(()=>this.Il(f,
b))}xu(f){this.mc?this.ma.xu(f):this.rd(()=>this.xu(f))}on(f,b){e.model.Za.R().N(f,b)}$Fa(f,b){null==b?e.model.Za.R().Vd(f):e.model.Za.R().rb(f,b)}MH(){return this.mc?this.ma.MH():null}m0(f){new Promise(b=>{this.FU?b(f()):this.ma.Fa.N(e.model.Xb.Vc.x7,()=>{b(f())})})}XG(f){return new Promise(b=>{this.mc?b(f()):this.ma.Fa.N(e.model.Xb.Vc.si,()=>{b(f())})})}vCa(){return this.XG(()=>this.ma.MH())}AH(){return this.mc?this.ma.AH():null}hBa(){return this.XG(()=>this.ma.AH())}CD(){return this.mc?this.ma.CD():
null}hCa(){return this.XG(()=>this.ma.CD())}gd(){return this.mc?this.ma.gd():null}VBa(){return this.XG(()=>this.ma.gd())}Os(){return this.mc?this.ma.Os():null}UAa(){return this.XG(()=>this.ma.Os())}fN(){return this.Sg.fN}eN(){return this.Sg.eN}VW(f){this.$U?this.ma.VW(f):this.rd(()=>this.VW(f),1)}YW(f,b,a,c){this.mc?this.ma.YW(f,b,a,c):this.rd(()=>this.YW(f,b,a,c))}AO(f,b){this.$U?this.ma.AO(f,b):this.rd(()=>this.AO(f,b),1)}SE(f,b){this.mc?this.ma.SE(f,b):this.rd(()=>this.SE(f,b))}EW(f){this.mc?this.ma.EW(f):
this.rd(()=>this.EW(f))}UN(f,b){this.mc?this.Sg.UN(f,b):this.rd(()=>this.UN(f,b))}g2(f){return this.mc?this.ma.g2(f):null}S1(){return this.mc?this.ma.S1():null}gx(){return this.mc?this.ma.gx():null}Cq(f){e.v(f)||(this.mc?this.ma.Cq(f):this.rd(()=>this.Cq(f)))}Hi(f,b,a){if(this.mc)return this.ma.Hi(f,b,a);this.rd(()=>this.Hi(f,b,a))}c2(f,b){return this.ma.c2(f,b)}ID(f,b){if(this.mc)return this.ma.ID(f,b);this.rd(()=>this.ID(f,b))}OCa(f){return new Promise(b=>{this.ma.SH(f,()=>{this.ma.ID(f,a=>b(a))})})}SH(f,
b){this.mc?this.ma.SH(f,b):this.rd(()=>this.SH(f,b))}NCa(f){return new Promise(b=>{this.ma.SH(f,a=>b(a))})}aN(f,b,a){this.mc?this.ma.aN(f,b,a):this.rd(()=>this.aN(f,b,a))}LCa(f,b){return new Promise(a=>{this.ma.aN(f,b,c=>a(c))})}bN(f,b,a,c){this.mc?this.ma.bN(f,b,a,c):this.rd(()=>this.bN(f,b,a,c))}MCa(f,b,a){return new Promise(c=>{this.ma.bN(f,b,a,d=>c(d))})}yS(f,b,a,c=null,d=null){this.mc?this.ma.yS(f,b,c,d,a):this.rd(()=>this.yS(f,b,c,d,a))}rO(f){return this.ma.rO(f)}tW(f){this.mc?null!=f&&this.ma.tW(e.model.hb.vo.xb(f)):
this.rd(()=>this.tW(f))}tH(){return this.mc?this.ma.tH():null}TAa(){return this.XG(()=>this.ma.tH())}nW(f){this.mc?this.ma.nW(f):this.rd(()=>this.nW(f))}Eh(f,b){return this.mc?this.ma.Eh(f,b):null}OE(f,b,a){this.mc?null!=f&&this.ma.OE(f,b,a):this.rd(()=>this.OE(f,b))}ag(f,b){return this.mc?this.Sg.ag(f,b):null}OH(){return this.mc?this.Sg.OH():null}AA(f,b){this.mc?this.Sg.AA(f,b):this.rd(()=>this.AA(f,b))}QH(){return this.mc?this.ma.QH():null}MW(f){this.mc?this.ma.MW(f):this.rd(()=>this.MW(f))}FE(){this.m0(()=>
this.Sg.FE())}SV(){this.m0(()=>this.Sg.SV())}GL(){this.m0(()=>this.Sg.GL())}aya(f){e.K.Y.W.ne.Lw=f;this.FU&&this.refresh()}Zl(f){e.K.Dd.Gv.YC=f;this.FU&&this.refresh()}bya(f){e.K.Y.mP.YL=f}$xa(f){e.u.external.jc.SA.XL=f}P1(f,b){this.ma.P1(f,b)}Kr(f){this.mc?this.Sg.Kr(f):this.rd(()=>this.Kr(f))}ot(f){this.mc?this.Sg.ot(f):this.rd(()=>this.ot(f))}nT(f,b,a){this.mc?this.Sg.nT(f,b,a):this.rd(()=>this.nT(f,b,a))}DS(f,b,a){this.mc?this.Sg.DS(f,b,a):this.rd(()=>this.DS(f,b,a))}jT(f,b,a,c){this.mc?this.Sg.jT(f,
b,a,c):this.rd(()=>this.jT(f,b,a,c))}iT(f,b,a,c){this.mc?this.Sg.iT(f,b,a,c):this.rd(()=>this.iT(f,b,a,c))}}l.Iq="2.9.86";l.bP="105314838432224";e.Cg=l;class h{}h.yY="print";h.xB="printcomplete";h.TX="export";h.lg="exportcomplete";e.ef=h})(q||(q={}));
function PivotApi(e){q.v(window.flexmonster)||(window.flexmonster=null);var l={version:q.Cg.Iq},h=new q.Cg(e,l);l.alert=b=>{if(void 0!=b.message&&""!=b.message||void 0!=b.title&&""!=b.title){var a=void 0!=b.message?q.model.Tb.valid(b.message)?b.message:q.model.Tb.validate(b.message):"",c=void 0!=b.title?q.model.Tb.valid(b.title)?b.title:q.model.Tb.validate(b.title):"",d=b.type==q.ob.nk||b.type==q.ob.mn||b.type==q.ob.xa||b.type==q.ob.OP?b.type:q.ob.nk,g=null,k=null;if(void 0!=b.buttons)for(var m=0;m<
b.buttons.length;m++){var n=b.buttons[m],p=n.label;p=q.model.Tb.valid(p)?p:q.model.Tb.validate(p);null==g&&(g=[]);g.push(p);n="function"==typeof n.handler?n.handler:null;null==k&&(k=[]);k.push(n)}q.Va(a,c,d,g,k,void 0==b.blocking||1!=b.blocking&&0!=b.blocking?!1:b.blocking)}};l.openCalculatedValueEditor=(b,a)=>h.UN(b,a);l.getAllConditions=()=>h.H1();l.getCondition=b=>h.L1(b);l.addCondition=b=>h.$R(b);l.removeCondition=b=>h.kW(b);l.removeAllConditions=()=>h.jW();l.open=()=>h.open();l.load=(b,a)=>h.load(b,
a);l.getReport=(b="object")=>h.Qs(b);l.setReport=b=>h.Qx(b);l.getData=(b,a,c)=>h.getData(b,a,c);l.save=(b={filename:"report.json"},a=null,c=null,d=null,g=!1)=>h.save(b,a,c,d,g);l.updateData=(b,a)=>h.Wd(b,a);l.connectTo=b=>h.YG(b);l.addJSON=b=>h.gua(b);l.addCalculatedMeasure=b=>h.lu(b);l.removeCalculatedMeasure=b=>h.qA(b);l.removeAllCalculatedMeasures=()=>h.DE();l.clear=()=>h.clear();l.dispose=()=>{q.v(window.flexmonster)||(window.flexmonster=null);h.dispose()};l.refresh=()=>h.refresh();l.showGrid=
()=>h.OW();l.showCharts=(b="column",a=!1)=>h.tO(b,a);l.showChart=(b="column",a=!1)=>h.tO(b,a);l.showGridAndCharts=(b="column",a="bottom",c=!1)=>h.PW(b,a,c);l.expandAllData=(b=!0,a="all")=>h.mT(b,a);l.expandData=b=>h.Uw(b);l.collapseAllData=()=>h.CS();l.collapseData=b=>h.Ew(b);l.expandCell=(b,a,c)=>h.nT(b,a,c);l.collapseCell=(b,a,c)=>h.DS(b,a,c);l.drillUpCell=(b,a,c,d)=>h.jT(b,a,c,d);l.drillDownCell=(b,a,c,d)=>h.iT(b,a,c,d);l.print=(b=null)=>h.print(b);l.exportTo=(b,a=null,c=null)=>h.Gk(b,a,c);l.openFilter=
b=>h.uI(b);l.getFilter=b=>h.Ym(b);l.setFilter=(b,a)=>h.Il(b,a);l.clearFilter=b=>h.xu(b);l.on=(b,a)=>h.on(b,a);l.off=(b,a)=>h.$Fa(b,a);l.getRows=()=>h.MH();l.getRowsAsync=()=>h.vCa();l.getColumns=()=>h.AH();l.getColumnsAsync=()=>h.hBa();l.getPages=()=>h.CD();l.getReportFilters=()=>h.CD();l.getReportFiltersAsync=()=>h.hCa();l.getMeasures=()=>h.gd();l.getMeasuresAsync=()=>h.VBa();l.getAllMeasures=()=>h.Os();l.getAllMeasuresAsync=()=>h.UAa();l.sortFieldsList=b=>h.VW(b);l.sortValues=(b,a,c,d)=>h.YW(b,
a,c,d);l.sortingMethod=(b,a)=>h.AO(b,a);l.setSort=(b,a)=>h.SE(b,a);l.getSort=b=>h.g2(b);l.setFlatSort=b=>h.EW(b);l.getFlatSort=()=>h.S1();l.getOptions=()=>h.gx();l.setOptions=b=>h.Cq(b);l.getMembers=(b,a,c)=>h.Hi(b,a,c);l.getMembersAsync=(b,a)=>h.c2(b,a);l.gridRowCount=()=>h.fN();l.gridColumnCount=()=>h.eN();l.getXMLAProviderName=(b,a)=>h.ID(b,a);l.getXMLAProviderNameAsync=b=>h.OCa(b);l.getXMLADataSources=(b,a)=>h.SH(b,a);l.getXMLADataSourcesAsync=b=>h.NCa(b);l.getXMLACatalogs=(b,a,c)=>h.aN(b,a,c);
l.getXMLACatalogsAsync=(b,a)=>h.LCa(b,a);l.getXMLACubes=(b,a,c,d)=>h.bN(b,a,c,d);l.getXMLACubesAsync=(b,a,c)=>h.MCa(b,a,c);l.clearXMLACache=(b,a,c,d=null,g=null)=>h.yS(b,a,c,d,g);l.shareReport=b=>h.rO(b);l.getElasticIndices=(b,a)=>h.P1(b,a);l.runQuery=b=>h.tW(b);l.getAllHierarchies=()=>h.tH();l.getAllHierarchiesAsync=()=>h.TAa();l.replaceHierarchyCaption=b=>h.nW(b);l.getFormat=(b,a)=>h.Eh(b,a);l.setFormat=(b,a,c)=>h.OE(b,a,c);l.getCell=(b,a)=>h.ag(b,a);l.getSelectedCell=()=>h.OH();l.setSelectedCell=
(b,a)=>h.AA(b,a);l.removeSelection=()=>h.FE();l.getTableSizes=()=>h.QH();l.setTableSizes=b=>h.MW(b);l.openFieldsList=()=>h.SV();l.closeFieldsList=()=>h.GL();l.scrollToRow=b=>h.Kr(b);l.scrollToColumn=b=>h.ot(b);l.customizeCell=b=>h.aya(b);l.customizeChartElement=b=>h.Zl(b);l.customizeContextMenu=b=>h.bya(b);l.customizeAPIRequest=b=>h.$xa(b);if(void 0!==window.FlexmonsterHighcharts){l.highcharts={instance:l};for(var f in window.FlexmonsterHighcharts)l.highcharts[f]=window.FlexmonsterHighcharts[f]}if(void 0!==
window.FlexmonsterFusioncharts)for(f in l.fusioncharts={instance:l},window.FlexmonsterFusioncharts)l.fusioncharts[f]=window.FlexmonsterFusioncharts[f];if(void 0!==window.FlexmonsterGooglecharts)for(f in l.googlecharts={instance:l},window.FlexmonsterGooglecharts)l.googlecharts[f]=window.FlexmonsterGooglecharts[f];if(void 0!==window.FlexmonsterAmcharts)for(f in l.amcharts={instance:l},window.FlexmonsterAmcharts)l.amcharts[f]=window.FlexmonsterAmcharts[f];q.v(window.flexmonster)||q.v(window.flexmonster.embedPivotComponent)||
(l.embedPivotComponent=window.flexmonster.embedPivotComponent);return window.flexmonster=l};
PivotApi["libsIncluded"] = true;;return PivotApi(a)}});
void 0!==window.jQuery&&(window.jQuery.fn.flexmonster=function(a){a=a||{};a.container=this.get(0);a=window.Flexmonster?window.Flexmonster(a):window.PivotApi(a);this.data("flexmonster",a);return a});
void 0!==window.angular&&window.angular.module("flexmonster",[]).directive("fmPivot",function(){function g(a,d){void 0!==a.fmComponentFolder&&(d.componentFolder=a.fmComponentFolder);void 0!==a.fmWidth&&(d.width=a.fmWidth);void 0!==a.fmHeight&&(d.height=a.fmHeight);if(void 0!==a.fmToolbar){var e=a.fmToolbar;d.toolbar=!0===e||"true"==e||"on"==e}void 0!==a.fmLicenseKey&&(d.licenseKey=a.fmLicenseKey)}return{restrict:"A",scope:{report:"=fmReport",global:"=fmGlobal",accessibility:"=fmAccessibility",customizeAPIRequest:"&fmCustomizeAPIRequest",
customizeCell:"&fmCustomizeCell",customizeChartElement:"&fmCustomizeChartElement",customizeContextMenu:"&fmCustomizeContextMenu",cellclick:"&fmCellClick",celldoubleclick:"&fmCellDoubleClick",dataerror:"&fmDataError",datafilecancelled:"&fmDataFileCancelled",dataloaded:"&fmDataLoaded",datachanged:"&fmDataChanged",fieldslistclose:"&fmFieldsListClose",fieldslistopen:"&fmFieldsListOpen",filteropen:"&fmFilteropen",fullscreen:"&fmFullscreen",loadingdata:"&fmLoadingData",loadinglocalization:"&fmLoadingLocalization",
loadingolapstructure:"&fmLoadingOlapStructure",loadingreportfile:"&fmLoadingReportFile",localizationerror:"&fmLocalizationError",localizationloaded:"&fmLocalizationLoaded",olapstructureerror:"&fmOlapStructureError",olapstructureloaded:"&fmOlapStructureLoaded",openingreportfile:"&fmOpeningReportFile",querycomplete:"&fmQueryComplete",queryerror:"&fmQueryError",ready:"&fmReady",reportchange:"&fmReportChange",reportcomplete:"&fmReportComplete",reportfilecancelled:"&fmReportFileCancelled",reportfileerror:"&fmReportFileError",
reportfileloaded:"&fmReportFileLoaded",runningquery:"&fmRunningQuery",unauthorizederror:"&fmUnauthorizedError",update:"&fmUpdate",beforetoolbarcreated:"&fmBeforeToolbarCreated",beforegriddraw:"&fmBeforeGridDraw",aftergriddraw:"&fmAfterGridDraw",afterchartdraw:"&fmAfterChartDraw",chartclick:"&fmChartClick",drillthroughopen:"&fmDrillThroughOpen",drillthroughclose:"&fmDrillThroughClose"},link:function(a,d,e,b){b={};b.container=d[0];g(e,b);a.customizeAPIRequest&&(b.customizeAPIRequest=function(c){return a.customizeAPIRequest({request:c})});
a.customizeCell&&(b.customizeCell=function(c,f){return a.customizeCell({html:c,data:f})});a.customizeChartElement&&(b.customizeChartElement=function(c,f){return a.customizeChartElement({element:c,data:f})});a.customizeContextMenu&&(b.customizeContextMenu=function(c,f,h){return a.customizeContextMenu({items:c,data:f,viewType:h})});a.cellclick&&(b.cellclick=function(c){a.cellclick({cell:c})});a.celldoubleclick&&(b.celldoubleclick=function(c){a.celldoubleclick({cell:c})});b.dataerror&&(b.dataerror=function(c){a.dataerror({event:c})});
b.datafilecancelled=a.datafilecancelled;b.dataloaded=a.dataloaded;b.datachanged&&(b.datachanged=function(c){a.datachanged({event:c})});b.fieldslistclose=a.fieldslistclose;b.fieldslistopen=a.fieldslistopen;b.filterclose=a.filterclose;b.filteropen&&(b.filteropen=function(c){a.filteropen({params:c})});b.drillthroughclose=a.drillthroughclose;b.drillthroughopen&&(b.drillthroughopen=function(c){a.drillthroughopen({cell:c})});b.fullscreen&&(b.fullscreen=function(c){a.fullscreen({fullScreenMode:c})});b.loadingdata=
a.loadingdata;b.loadinglocalization=a.loadinglocalization;b.loadingolapstructure=a.loadingolapstructure;b.loadingreportfile=a.loadingreportfile;b.localizationerror=a.localizationerror;b.localizationloaded=a.localizationloaded;b.olapstructureerror&&(b.olapstructureerror=function(c){a.olapstructureerror({event:c})});b.olapstructureloaded=a.olapstructureloaded;b.openingreportfile=a.openingreportfile;b.querycomplete=a.querycomplete;b.queryerror&&(b.queryerror=function(c){a.queryerror({event:c})});a.ready&&
(b.ready=function(){a.ready({pivot:k})});b.reportchange=a.reportchange;b.reportcomplete=a.reportcomplete;b.reportfilecancelled=a.reportfilecancelled;b.reportfileerror=a.reportfileerror;b.reportfileloaded=a.reportfileloaded;b.runningquery=a.runningquery;b.loadingdata=a.loadingdata;b.loadingdata=a.loadingdata;b.loadingdata=a.loadingdata;a.unauthorizederror&&(b.unauthorizederror=function(c){a.unauthorizederror({done:c})});b.update=a.update;a.beforetoolbarcreated&&(b.beforetoolbarcreated=function(c){a.beforetoolbarcreated({toolbar:c})});
a.beforegriddraw&&(b.beforegriddraw=function(c){a.beforegriddraw({params:c})});a.aftergriddraw&&(b.aftergriddraw=function(c){a.aftergriddraw({params:c})});b.afterchartdraw=a.afterchartdraw;a.chartclick&&(b.chartclick=function(c){a.chartclick({data:c})});a.report&&(b.report=a.report);a.global&&(b.global=a.global);a.accessibility&&(b.accessibility=a.accessibility);var k=new Flexmonster(b)}}});
if(void 0!==window.React&&void 0!==window.React.createClass&&(void 0!==window.React.PropTypes||void 0!==window.PropTypes)){var React_PropTypes=void 0!==window.React.PropTypes?window.React.PropTypes:window.PropTypes;window.FlexmonsterReact={Pivot:React.createClass({propTypes:{componentFolder:React_PropTypes.string,global:React_PropTypes.object,width:React_PropTypes.oneOfType([React_PropTypes.string,React_PropTypes.number]),height:React_PropTypes.oneOfType([React_PropTypes.string,React_PropTypes.number]),
report:React_PropTypes.oneOfType([React_PropTypes.string,React_PropTypes.object]),licenseKey:React_PropTypes.string,toolbar:React_PropTypes.bool,customizeAPIRequest:React_PropTypes.func,customizeCell:React_PropTypes.func,customizeChartElement:React_PropTypes.func,customizeContextMenu:React_PropTypes.func,accessibility:React_PropTypes.object,cellclick:React_PropTypes.func,celldoubleclick:React_PropTypes.func,dataerror:React_PropTypes.func,datafilecancelled:React_PropTypes.func,dataloaded:React_PropTypes.func,
datachanged:React_PropTypes.func,fieldslistclose:React_PropTypes.func,fieldslistopen:React_PropTypes.func,filteropen:React_PropTypes.func,filterclose:React_PropTypes.func,fullscreen:React_PropTypes.func,loadingdata:React_PropTypes.func,loadinglocalization:React_PropTypes.func,loadingolapstructure:React_PropTypes.func,loadingreportfile:React_PropTypes.func,localizationerror:React_PropTypes.func,localizationloaded:React_PropTypes.func,olapstructureerror:React_PropTypes.func,olapstructureloaded:React_PropTypes.func,
openingreportfile:React_PropTypes.func,querycomplete:React_PropTypes.func,queryerror:React_PropTypes.func,ready:React_PropTypes.func,reportchange:React_PropTypes.func,reportcomplete:React_PropTypes.func,reportfilecancelled:React_PropTypes.func,reportfileerror:React_PropTypes.func,reportfileloaded:React_PropTypes.func,runningquery:React_PropTypes.func,unauthorizederror:React_PropTypes.func,update:React_PropTypes.func,beforetoolbarcreated:React_PropTypes.func,beforegriddraw:React_PropTypes.func,aftergriddraw:React_PropTypes.func,
afterchartdraw:React_PropTypes.func,chartclick:React_PropTypes.func,drillthroughopen:React_PropTypes.func,drillthroughclose:React_PropTypes.func},render:function(){return React.DOM.div()},componentDidMount:function(){var a={};a.container=ReactDOM.findDOMNode(this);this.parseProps(a);this.flexmonster=new window.Flexmonster(a)},shouldComponentUpdate:function(){return!1},componentWillUnmount:function(){this.flexmonster.dispose()},parseProps:function(a){for(var b in this.props)a[b]=this.props[b]}})}};
window.flexmonster={embedPivotComponent:function(d,e,f,g,a,b,h){var c=b;"string"==typeof b&&(c=h);config={};config.componentFolder=d;config.container=e;config.width=f;config.height=parseInt(g);config.toolbar=c;config.report=a;a.hasOwnProperty("configUrl")&&(config.configUrl=a.configUrl);a.hasOwnProperty("licenseKey")&&(config.licenseKey=a.licenseKey);a.hasOwnProperty("jsCellClickHandler")&&(config.cellclick=a.jsCellClickHandler);a.hasOwnProperty("jsCellDoubleClickHandler")&&(config.celldoubleclick=
a.jsCellDoubleClickHandler);a.hasOwnProperty("jsFullScreenHandler")&&(config.fullscreen=a.jsFullScreenHandler);a.hasOwnProperty("jsFilterOpenHandler")&&(config.filteropen=a.jsFilterOpenHandler);a.hasOwnProperty("jsFieldsListCloseHandler")&&(config.fieldslistclose=a.jsFieldsListCloseHandler);a.hasOwnProperty("jsFieldsListOpenHandler")&&(config.fieldslistopen=a.jsFieldsListOpenHandler);a.hasOwnProperty("jsPivotCreationCompleteHandler")&&(config.ready=a.jsPivotCreationCompleteHandler);a.hasOwnProperty("jsPivotUpdateHandler")&&
(config.update=a.jsPivotUpdateHandler);a.hasOwnProperty("jsReportChangeHandler")&&(config.reportchange=a.jsReportChangeHandler);a.hasOwnProperty("jsReportLoadedHandler")&&(config.reportcomplete=a.jsReportLoadedHandler);a.hasOwnProperty("beforetoolbarcreated")&&(config.beforetoolbarcreated=a.beforetoolbarcreated);a.hasOwnProperty("beforegriddraw")&&(config.beforegriddraw=a.beforegriddraw);a.hasOwnProperty("aftergriddraw")&&(config.aftergriddraw=a.aftergriddraw);a.hasOwnProperty("afterchartdraw")&&
(config.afterchartdraw=a.afterchartdraw);a.hasOwnProperty("customizeCell")&&(config.customizeCell=a.customizeCell);a.hasOwnProperty("customizeContextMenu")&&(config.customizeContextMenu=a.customizeContextMenu);return Flexmonster(config)}};
/** @license canvg.js v2.0.0 | Copyright (c) 2010 - present Gabe Lerner (gabelerner@gmail.com) - https://github.com/canvg/canvg | MIT License [https://github.com/canvg/canvg/blob/master/LICENSE] */
!function(t,e){t.canvg=e(t.RGBColor,t.StackBlur)}(window,function(y,v){"use strict";var t;return y=y&&y.hasOwnProperty("default")?y.default:y,v=v&&v.hasOwnProperty("default")?v.default:v,function(t){var l;t.exports;(l=window).DOMParser=window.DOMParser;var c=l.document;function d(t,e){var i;return(i=c.createElement("canvas")).width=t,i.height=e,i}var f,p=function(t,e,i){if(null!=t||null!=e||null!=i){var n=m(i||{});"string"==typeof t&&(t=c.getElementById(t)),null!=t.svg&&t.svg.stop(),t.childNodes&&1==t.childNodes.length&&"OBJECT"==t.childNodes[0].nodeName||(t.svg=n);var s=t.getContext("2d");void 0!==e.documentElement?n.loadXmlDoc(s,e):"<"==e.substr(0,1)?n.loadXml(s,e):n.load(s,e)}else for(var a=c.querySelectorAll("svg"),r=0;r<a.length;r++){var o=a[r],h=c.createElement("canvas");if(void 0!==o.clientWidth&&void 0!==o.clientHeight)h.width=o.clientWidth,h.height=o.clientHeight;else{var l=o.getBoundingClientRect();h.width=l.width,h.height=l.height}o.parentNode.insertBefore(h,o),o.parentNode.removeChild(o);var u=c.createElement("div");u.appendChild(o),p(h,u.innerHTML)}};"undefined"==typeof Element||(void 0!==Element.prototype.matches?f=function(t,e){return t.matches(e)}:void 0!==Element.prototype.webkitMatchesSelector?f=function(t,e){return t.webkitMatchesSelector(e)}:void 0!==Element.prototype.mozMatchesSelector?f=function(t,e){return t.mozMatchesSelector(e)}:void 0!==Element.prototype.msMatchesSelector?f=function(t,e){return t.msMatchesSelector(e)}:void 0!==Element.prototype.oMatchesSelector?f=function(t,e){return t.oMatchesSelector(e)}:("function"!=typeof jQuery&&"function"!=typeof Zepto||(f=function(t,e){return $(t).is(e)}),void 0===f&&"undefined"!=typeof Sizzle&&(f=Sizzle.matchesSelector)));var e=/(\[[^\]]+\])/g,i=/(#[^\s\+>~\.\[:]+)/g,a=/(\.[^\s\+>~\.\[:]+)/g,r=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,o=/(:[\w-]+\([^\)]*\))/gi,h=/(:[^\s\+>~\.\[:]+)/g,u=/([^\s\+>~\.\[:]+)/g;function P(n){var s=[0,0,0],t=function(t,e){var i=n.match(t);null!=i&&(s[e]+=i.length,n=n.replace(t," "))};return n=(n=n.replace(/:not\(([^\)]*)\)/g,"     $1 ")).replace(/{[\s\S]*/gm," "),t(e,1),t(i,0),t(a,1),t(r,2),t(o,1),t(h,1),n=(n=n.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," "),t(u,2),s.join("")}function m(s){var D={opts:s,FRAMERATE:30,MAX_VIRTUAL_PIXELS:3e4,rootEmSize:12,emSize:12,log:function(){}};D.init=function(t){var e=0;D.UniqueId=function(){return"canvg"+ ++e},D.Definitions={},D.Styles={},D.StylesSpecificity={},D.Animations=[],D.Images=[],D.ctx=t,D.ViewPort=new function(){this.viewPorts=[],this.Clear=function(){this.viewPorts=[]},this.SetCurrent=function(t,e){this.viewPorts.push({width:t,height:e})},this.RemoveCurrent=function(){this.viewPorts.pop()},this.Current=function(){return this.viewPorts[this.viewPorts.length-1]},this.width=function(){return this.Current().width},this.height=function(){return this.Current().height},this.ComputeSize=function(t){return null!=t&&"number"==typeof t?t:"x"==t?this.width():"y"==t?this.height():Math.sqrt(Math.pow(this.width(),2)+Math.pow(this.height(),2))/Math.sqrt(2)}}},D.init(),D.ImagesLoaded=function(){for(var t=0;t<D.Images.length;t++)if(!D.Images[t].loaded)return!1;return!0},D.trim=function(t){return t.replace(/^\s+|\s+$/g,"")},D.compressSpaces=function(t){return t.replace(/(?!\u3000)\s+/gm," ")},D.ajax=function(t){var e;return(e=l.XMLHttpRequest?new l.XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"))?(e.open("GET",t,!1),e.send(null),e.responseText):null},D.parseXml=function(e){if("undefined"!=typeof Windows&&void 0!==Windows.Data&&void 0!==Windows.Data.Xml){var t=new Windows.Data.Xml.Dom.XmlDocument,i=new Windows.Data.Xml.Dom.XmlLoadSettings;return i.prohibitDtd=!1,t.loadXml(e,i),t}if(!l.DOMParser)return e=e.replace(/<!DOCTYPE svg[^>]*>/,""),(t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e),t;try{var n=s.xmldom?new l.DOMParser(s.xmldom):new l.DOMParser;return n.parseFromString(e,"image/svg+xml")}catch(t){return(n=s.xmldom?new l.DOMParser(s.xmldom):new l.DOMParser).parseFromString(e,"text/xml")}},D.Property=function(t,e){this.name=t,this.value=e},D.Property.prototype.getValue=function(){return this.value},D.Property.prototype.hasValue=function(){return null!=this.value&&""!==this.value},D.Property.prototype.numValue=function(){if(!this.hasValue())return 0;var t=parseFloat(this.value);return(this.value+"").match(/%$/)&&(t/=100),t},D.Property.prototype.valueOrDefault=function(t){return this.hasValue()?this.value:t},D.Property.prototype.numValueOrDefault=function(t){return this.hasValue()?this.numValue():parseFloat(t)},D.Property.prototype.addOpacity=function(t){var e=this.value;if(null!=t.value&&""!=t.value&&"string"==typeof this.value){var i=new y(this.value);i.ok&&(e="rgba("+i.r+", "+i.g+", "+i.b+", "+t.numValue()+")")}return new D.Property(this.name,e)},D.Property.prototype.getDefinition=function(){var t=this.value.match(/#([^\)'"]+)/);return t&&(t=t[1]),t||(t=this.value),D.Definitions[t]},D.Property.prototype.isUrlDefinition=function(){return 0==this.value.indexOf("url(")},D.Property.prototype.getFillStyleDefinition=function(t,e){var i=this.getDefinition();if(null!=i&&i.createGradient)return i.createGradient(D.ctx,t,e);if(null!=i&&i.createPattern){if(i.getHrefAttribute().hasValue()){var n=i.attribute("patternTransform");i=i.getHrefAttribute().getDefinition(),n.hasValue()&&(i.attribute("patternTransform",!0).value=n.value)}return i.createPattern(D.ctx,t,e)}return null},D.Property.prototype.getDPI=function(){return 96},D.Property.prototype.getREM=function(){return D.rootEmSize},D.Property.prototype.getEM=function(){return D.emSize},D.Property.prototype.getUnits=function(){return(this.value+"").replace(/[0-9\.\-]/g,"")},D.Property.prototype.isPixels=function(){if(!this.hasValue())return!1;var t=this.value+"";return!!t.match(/px$/)||!!t.match(/^[0-9]+$/)},D.Property.prototype.toPixels=function(t,e){if(!this.hasValue())return 0;var i=this.value+"";if(i.match(/rem$/))return this.numValue()*this.getREM(t);if(i.match(/em$/))return this.numValue()*this.getEM(t);if(i.match(/ex$/))return this.numValue()*this.getEM(t)/2;if(i.match(/px$/))return this.numValue();if(i.match(/pt$/))return this.numValue()*this.getDPI(t)*(1/72);if(i.match(/pc$/))return 15*this.numValue();if(i.match(/cm$/))return this.numValue()*this.getDPI(t)/2.54;if(i.match(/mm$/))return this.numValue()*this.getDPI(t)/25.4;if(i.match(/in$/))return this.numValue()*this.getDPI(t);if(i.match(/%$/))return this.numValue()*D.ViewPort.ComputeSize(t);var n=this.numValue();return e&&n<1?n*D.ViewPort.ComputeSize(t):n},D.Property.prototype.toMilliseconds=function(){return this.hasValue()?(this.value+"").match(/ms$/)?this.numValue():1e3*this.numValue():0},D.Property.prototype.toRadians=function(){if(!this.hasValue())return 0;var t=this.value+"";return t.match(/deg$/)?this.numValue()*(Math.PI/180):t.match(/grad$/)?this.numValue()*(Math.PI/200):t.match(/rad$/)?this.numValue():this.numValue()*(Math.PI/180)};var t={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};return D.Property.prototype.toTextBaseline=function(){return this.hasValue()?t[this.value]:null},D.Font=new function(){this.Styles="normal|italic|oblique|inherit",this.Variants="normal|small-caps|inherit",this.Weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",this.CreateFont=function(t,e,i,n,s,a){var r=null!=a?this.Parse(a):this.CreateFont("","","","","",D.ctx.font);return{fontFamily:s=s||r.fontFamily,fontSize:n||r.fontSize,fontStyle:t||r.fontStyle,fontWeight:i||r.fontWeight,fontVariant:e||r.fontVariant,toString:function(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}};var r=this;this.Parse=function(t){for(var e={},i=D.trim(D.compressSpaces(t||"")).split(" "),n={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1},s="",a=0;a<i.length;a++)n.fontStyle||-1==r.Styles.indexOf(i[a])?n.fontVariant||-1==r.Variants.indexOf(i[a])?n.fontWeight||-1==r.Weights.indexOf(i[a])?n.fontSize?"inherit"!=i[a]&&(s+=i[a]):("inherit"!=i[a]&&(e.fontSize=i[a].split("/")[0]),n.fontStyle=n.fontVariant=n.fontWeight=n.fontSize=!0):("inherit"!=i[a]&&(e.fontWeight=i[a]),n.fontStyle=n.fontVariant=n.fontWeight=!0):("inherit"!=i[a]&&(e.fontVariant=i[a]),n.fontStyle=n.fontVariant=!0):("inherit"!=i[a]&&(e.fontStyle=i[a]),n.fontStyle=!0);return""!=s&&(e.fontFamily=s),e}},D.ToNumberArray=function(t){for(var e=(t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[],i=0;i<e.length;i++)e[i]=parseFloat(e[i]);return e},D.Point=function(t,e){this.x=t,this.y=e},D.Point.prototype.angleTo=function(t){return Math.atan2(t.y-this.y,t.x-this.x)},D.Point.prototype.applyTransform=function(t){var e=this.x*t[0]+this.y*t[2]+t[4],i=this.x*t[1]+this.y*t[3]+t[5];this.x=e,this.y=i},D.CreatePoint=function(t){var e=D.ToNumberArray(t);return new D.Point(e[0],e[1])},D.CreatePath=function(t){for(var e=D.ToNumberArray(t),i=[],n=0;n<e.length;n+=2)i.push(new D.Point(e[n],e[n+1]));return i},D.BoundingBox=function(t,e,i,n){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN,this.x=function(){return this.x1},this.y=function(){return this.y1},this.width=function(){return this.x2-this.x1},this.height=function(){return this.y2-this.y1},this.addPoint=function(t,e){null!=t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),null!=e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))},this.addX=function(t){this.addPoint(t,null)},this.addY=function(t){this.addPoint(null,t)},this.addBoundingBox=function(t){this.addPoint(t.x1,t.y1),this.addPoint(t.x2,t.y2)},this.addQuadraticCurve=function(t,e,i,n,s,a){var r=t+2/3*(i-t),o=e+2/3*(n-e),h=r+1/3*(s-t),l=o+1/3*(a-e);this.addBezierCurve(t,e,r,h,o,l,s,a)},this.addBezierCurve=function(t,e,i,n,s,a,r,o){var h=[t,e],l=[i,n],u=[s,a],c=[r,o];this.addPoint(h[0],h[1]),this.addPoint(c[0],c[1]);for(var f=0;f<=1;f++){var p=function(t){return Math.pow(1-t,3)*h[f]+3*Math.pow(1-t,2)*t*l[f]+3*(1-t)*Math.pow(t,2)*u[f]+Math.pow(t,3)*c[f]},d=6*h[f]-12*l[f]+6*u[f],m=-3*h[f]+9*l[f]-9*u[f]+3*c[f],y=3*l[f]-3*h[f];if(0!=m){var v=Math.pow(d,2)-4*y*m;if(!(v<0)){var g=(-d+Math.sqrt(v))/(2*m);0<g&&g<1&&(0==f&&this.addX(p(g)),1==f&&this.addY(p(g)));var x=(-d-Math.sqrt(v))/(2*m);0<x&&x<1&&(0==f&&this.addX(p(x)),1==f&&this.addY(p(x)))}}else{if(0==d)continue;var b=-y/d;0<b&&b<1&&(0==f&&this.addX(p(b)),1==f&&this.addY(p(b)))}}},this.isPointInBox=function(t,e){return this.x1<=t&&t<=this.x2&&this.y1<=e&&e<=this.y2},this.addPoint(t,e),this.addPoint(i,n)},D.Transform=function(t){var e=this;this.Type={},this.Type.translate=function(t){this.p=D.CreatePoint(t),this.apply=function(t){t.translate(this.p.x||0,this.p.y||0)},this.unapply=function(t){t.translate(-1*this.p.x||0,-1*this.p.y||0)},this.applyToPoint=function(t){t.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0])}},this.Type.rotate=function(t){var e=D.ToNumberArray(t);this.angle=new D.Property("angle",e[0]),this.cx=e[1]||0,this.cy=e[2]||0,this.apply=function(t){t.translate(this.cx,this.cy),t.rotate(this.angle.toRadians()),t.translate(-this.cx,-this.cy)},this.unapply=function(t){t.translate(this.cx,this.cy),t.rotate(-1*this.angle.toRadians()),t.translate(-this.cx,-this.cy)},this.applyToPoint=function(t){var e=this.angle.toRadians();t.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0]),t.applyTransform([Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0]),t.applyTransform([1,0,0,1,-this.p.x||0,-this.p.y||0])}},this.Type.scale=function(t){this.p=D.CreatePoint(t),this.apply=function(t){t.scale(this.p.x||1,this.p.y||this.p.x||1)},this.unapply=function(t){t.scale(1/this.p.x||1,1/this.p.y||this.p.x||1)},this.applyToPoint=function(t){t.applyTransform([this.p.x||0,0,0,this.p.y||0,0,0])}},this.Type.matrix=function(t){this.m=D.ToNumberArray(t),this.apply=function(t){t.transform(this.m[0],this.m[1],this.m[2],this.m[3],this.m[4],this.m[5])},this.unapply=function(t){var e=this.m[0],i=this.m[2],n=this.m[4],s=this.m[1],a=this.m[3],r=this.m[5],o=1/(e*(1*a-0*r)-i*(1*s-0*r)+n*(0*s-0*a));t.transform(o*(1*a-0*r),o*(0*r-1*s),o*(0*n-1*i),o*(1*e-0*n),o*(i*r-n*a),o*(n*s-e*r))},this.applyToPoint=function(t){t.applyTransform(this.m)}},this.Type.SkewBase=function(t){this.base=e.Type.matrix,this.base(t),this.angle=new D.Property("angle",t)},this.Type.SkewBase.prototype=new this.Type.matrix,this.Type.skewX=function(t){this.base=e.Type.SkewBase,this.base(t),this.m=[1,0,Math.tan(this.angle.toRadians()),1,0,0]},this.Type.skewX.prototype=new this.Type.SkewBase,this.Type.skewY=function(t){this.base=e.Type.SkewBase,this.base(t),this.m=[1,Math.tan(this.angle.toRadians()),0,1,0,0]},this.Type.skewY.prototype=new this.Type.SkewBase,this.transforms=[],this.apply=function(t){for(var e=0;e<this.transforms.length;e++)this.transforms[e].apply(t)},this.unapply=function(t){for(var e=this.transforms.length-1;0<=e;e--)this.transforms[e].unapply(t)},this.applyToPoint=function(t){for(var e=0;e<this.transforms.length;e++)this.transforms[e].applyToPoint(t)};for(var i=D.trim(D.compressSpaces(t)).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/),n=0;n<i.length;n++)if("none"!==i[n]){var s=D.trim(i[n].split("(")[0]),a=i[n].split("(")[1].replace(")",""),r=this.Type[s];if(void 0!==r){var o=new r(a);o.type=s,this.transforms.push(o)}}},D.AspectRatio=function(t,e,i,n,s,a,r,o,h,l){var u=(e=(e=D.compressSpaces(e)).replace(/^defer\s/,"")).split(" ")[0]||"xMidYMid",c=e.split(" ")[1]||"meet",f=i/n,p=s/a,d=Math.min(f,p),m=Math.max(f,p);"meet"==c&&(n*=d,a*=d),"slice"==c&&(n*=m,a*=m),h=new D.Property("refX",h),l=new D.Property("refY",l),h.hasValue()&&l.hasValue()?t.translate(-d*h.toPixels("x"),-d*l.toPixels("y")):(u.match(/^xMid/)&&("meet"==c&&d==p||"slice"==c&&m==p)&&t.translate(i/2-n/2,0),u.match(/YMid$/)&&("meet"==c&&d==f||"slice"==c&&m==f)&&t.translate(0,s/2-a/2),u.match(/^xMax/)&&("meet"==c&&d==p||"slice"==c&&m==p)&&t.translate(i-n,0),u.match(/YMax$/)&&("meet"==c&&d==f||"slice"==c&&m==f)&&t.translate(0,s-a)),"none"==u?t.scale(f,p):"meet"==c?t.scale(d,d):"slice"==c&&t.scale(m,m),t.translate(null==r?0:-r,null==o?0:-o)},D.Element={},D.EmptyProperty=new D.Property("EMPTY",""),D.Element.ElementBase=function(a){this.attributes={},this.styles={},this.stylesSpecificity={},this.children=[],this.attribute=function(t,e){var i=this.attributes[t];return null!=i?i:(1==e&&(i=new D.Property(t,""),this.attributes[t]=i),i||D.EmptyProperty)},this.getHrefAttribute=function(){for(var t in this.attributes)if("href"==t||t.match(/:href$/))return this.attributes[t];return D.EmptyProperty},this.style=function(t,e,i){var n=this.styles[t];if(null!=n)return n;var s=this.attribute(t);if(null!=s&&s.hasValue())return this.styles[t]=s;if(1!=i){var a=this.parent;if(null!=a){var r=a.style(t);if(null!=r&&r.hasValue())return r}}return 1==e&&(n=new D.Property(t,""),this.styles[t]=n),n||D.EmptyProperty},this.render=function(t){if("none"!=this.style("display").value&&"hidden"!=this.style("visibility").value){if(t.save(),this.style("mask").hasValue()){var e=this.style("mask").getDefinition();null!=e&&e.apply(t,this)}else if(this.style("filter").hasValue()){var i=this.style("filter").getDefinition();null!=i&&i.apply(t,this)}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}},this.setContext=function(){},this.clearContext=function(){},this.renderChildren=function(t){for(var e=0;e<this.children.length;e++)this.children[e].render(t)},this.addChild=function(t,e){var i=t;e&&(i=D.CreateElement(t)),i.parent=this,"title"!=i.type&&this.children.push(i)},this.addStylesFromStyleDefinition=function(){for(var t in D.Styles)if("@"!=t[0]&&f(a,t)){var e=D.Styles[t],i=D.StylesSpecificity[t];if(null!=e)for(var n in e){var s=this.stylesSpecificity[n];void 0===s&&(s="000"),s<=i&&(this.styles[n]=e[n],this.stylesSpecificity[n]=i)}}};var t,e=new RegExp("^[A-Z-]+$");if(null!=a&&1==a.nodeType){for(var i=0;i<a.attributes.length;i++){var n=a.attributes[i],s=(t=n.nodeName,e.test(t)?t.toLowerCase():t);this.attributes[s]=new D.Property(s,n.value)}if(this.addStylesFromStyleDefinition(),this.attribute("style").hasValue()){var r=this.attribute("style").value.split(";");for(i=0;i<r.length;i++)if(""!=D.trim(r[i])){var o=r[i].split(":"),h=D.trim(o[0]),l=D.trim(o[1]);this.styles[h]=new D.Property(h,l)}}this.attribute("id").hasValue()&&null==D.Definitions[this.attribute("id").value]&&(D.Definitions[this.attribute("id").value]=this);for(i=0;i<a.childNodes.length;i++){var u=a.childNodes[i];if(1==u.nodeType&&this.addChild(u,!0),this.captureTextNodes&&(3==u.nodeType||4==u.nodeType)){var c=u.value||u.text||u.textContent||"";""!=D.compressSpaces(c)&&this.addChild(new D.Element.tspan(u),!1)}}}},D.Element.RenderedElementBase=function(t){this.base=D.Element.ElementBase,this.base(t),this.calculateOpacity=function(){for(var t=1,e=this;null!=e;){var i=e.style("opacity",!1,!0);i.hasValue()&&(t*=i.numValue()),e=e.parent}return t},this.setContext=function(t,e){if(!e){var i;if(this.style("fill").isUrlDefinition())null!=(i=this.style("fill").getFillStyleDefinition(this,this.style("fill-opacity")))&&(t.fillStyle=i);else if(this.style("fill").hasValue()){var n;"currentColor"==(n=this.style("fill")).value&&(n.value=this.style("color").value),"inherit"!=n.value&&(t.fillStyle="none"==n.value?"rgba(0,0,0,0)":n.value)}if(this.style("fill-opacity").hasValue())n=(n=new D.Property("fill",t.fillStyle)).addOpacity(this.style("fill-opacity")),t.fillStyle=n.value;if(this.style("stroke").isUrlDefinition())null!=(i=this.style("stroke").getFillStyleDefinition(this,this.style("stroke-opacity")))&&(t.strokeStyle=i);else if(this.style("stroke").hasValue()){var s;"currentColor"==(s=this.style("stroke")).value&&(s.value=this.style("color").value),"inherit"!=s.value&&(t.strokeStyle="none"==s.value?"rgba(0,0,0,0)":s.value)}if(this.style("stroke-opacity").hasValue())s=(s=new D.Property("stroke",t.strokeStyle)).addOpacity(this.style("stroke-opacity")),t.strokeStyle=s.value;if(this.style("stroke-width").hasValue()){var a=this.style("stroke-width").toPixels();t.lineWidth=0==a?.001:a}if(this.style("stroke-linecap").hasValue()&&(t.lineCap=this.style("stroke-linecap").value),this.style("stroke-linejoin").hasValue()&&(t.lineJoin=this.style("stroke-linejoin").value),this.style("stroke-miterlimit").hasValue()&&(t.miterLimit=this.style("stroke-miterlimit").value),this.style("paint-order").hasValue()&&(t.paintOrder=this.style("paint-order").value),this.style("stroke-dasharray").hasValue()&&"none"!=this.style("stroke-dasharray").value){var r=D.ToNumberArray(this.style("stroke-dasharray").value);void 0!==t.setLineDash?t.setLineDash(r):void 0!==t.webkitLineDash?t.webkitLineDash=r:void 0===t.mozDash||1==r.length&&0==r[0]||(t.mozDash=r);var o=this.style("stroke-dashoffset").toPixels();void 0!==t.lineDashOffset?t.lineDashOffset=o:void 0!==t.webkitLineDashOffset?t.webkitLineDashOffset=o:void 0!==t.mozDashOffset&&(t.mozDashOffset=o)}}if(void 0!==t.font)if(this.style("font").hasValue())t.font=this.style("font").value;else{t.font=D.Font.CreateFont(this.style("font-style").value,this.style("font-variant").value,this.style("font-weight").value,this.style("font-size").hasValue()?this.style("font-size").toPixels()+"px":"",this.style("font-family").value).toString();var h=this.style("font-size",!1,!1);h.isPixels()&&(D.emSize=h.toPixels())}this.style("transform",!1,!0).hasValue()&&new D.Transform(this.style("transform",!1,!0).value).apply(t);if(this.style("clip-path",!1,!0).hasValue()){var l=this.style("clip-path",!1,!0).getDefinition();null!=l&&l.apply(t)}t.globalAlpha=this.calculateOpacity()}},D.Element.RenderedElementBase.prototype=new D.Element.ElementBase,D.Element.PathElementBase=function(t){this.base=D.Element.RenderedElementBase,this.base(t),this.path=function(t){return null!=t&&t.beginPath(),new D.BoundingBox},this.renderChildren=function(t){this.path(t),D.Mouse.checkPath(this,t),""!=t.fillStyle&&("inherit"!=this.style("fill-rule").valueOrDefault("inherit")?t.fill(this.style("fill-rule").value):t.fill()),""!=t.strokeStyle&&t.stroke();var e=this.getMarkers();if(null!=e){if(this.style("marker-start").isUrlDefinition())(i=this.style("marker-start").getDefinition()).render(t,e[0][0],e[0][1]);if(this.style("marker-mid").isUrlDefinition())for(var i=this.style("marker-mid").getDefinition(),n=1;n<e.length-1;n++)i.render(t,e[n][0],e[n][1]);if(this.style("marker-end").isUrlDefinition())(i=this.style("marker-end").getDefinition()).render(t,e[e.length-1][0],e[e.length-1][1])}},this.getBoundingBox=function(){return this.path()},this.getMarkers=function(){return null}},D.Element.PathElementBase.prototype=new D.Element.RenderedElementBase,D.SetDefaults=function(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4},D.Element.svg=function(t){this.base=D.Element.RenderedElementBase,this.base(t),this.baseClearContext=this.clearContext,this.clearContext=function(t){this.baseClearContext(t),D.ViewPort.RemoveCurrent()},this.baseSetContext=this.setContext,this.setContext=function(t){if(D.SetDefaults(t),t.canvas.style&&void 0!==t.font&&void 0!==l.getComputedStyle){t.font=l.getComputedStyle(t.canvas).getPropertyValue("font");var e=new D.Property("fontSize",D.Font.Parse(t.font).fontSize);e.hasValue()&&(D.rootEmSize=D.emSize=e.toPixels("y"))}this.baseSetContext(t),this.attribute("x").hasValue()||(this.attribute("x",!0).value=0),this.attribute("y").hasValue()||(this.attribute("y",!0).value=0),t.translate(this.attribute("x").toPixels("x"),this.attribute("y").toPixels("y"));var i=D.ViewPort.width(),n=D.ViewPort.height();if(this.attribute("width").hasValue()||(this.attribute("width",!0).value="100%"),this.attribute("height").hasValue()||(this.attribute("height",!0).value="100%"),void 0===this.root){i=this.attribute("width").toPixels("x"),n=this.attribute("height").toPixels("y");var s=0,a=0;this.attribute("refX").hasValue()&&this.attribute("refY").hasValue()&&(s=-this.attribute("refX").toPixels("x"),a=-this.attribute("refY").toPixels("y")),"visible"!=this.attribute("overflow").valueOrDefault("hidden")&&(t.beginPath(),t.moveTo(s,a),t.lineTo(i,a),t.lineTo(i,n),t.lineTo(s,n),t.closePath(),t.clip())}if(D.ViewPort.SetCurrent(i,n),this.attribute("viewBox").hasValue()){var r=D.ToNumberArray(this.attribute("viewBox").value),o=r[0],h=r[1];i=r[2],n=r[3],D.AspectRatio(t,this.attribute("preserveAspectRatio").value,D.ViewPort.width(),i,D.ViewPort.height(),n,o,h,this.attribute("refX").value,this.attribute("refY").value),D.ViewPort.RemoveCurrent(),D.ViewPort.SetCurrent(r[2],r[3])}}},D.Element.svg.prototype=new D.Element.RenderedElementBase,D.Element.rect=function(t){this.base=D.Element.PathElementBase,this.base(t),this.path=function(t){var e=this.attribute("x").toPixels("x"),i=this.attribute("y").toPixels("y"),n=this.attribute("width").toPixels("x"),s=this.attribute("height").toPixels("y"),a=this.attribute("rx").toPixels("x"),r=this.attribute("ry").toPixels("y");if(this.attribute("rx").hasValue()&&!this.attribute("ry").hasValue()&&(r=a),this.attribute("ry").hasValue()&&!this.attribute("rx").hasValue()&&(a=r),a=Math.min(a,n/2),r=Math.min(r,s/2),null!=t){var o=(Math.sqrt(2)-1)/3*4;t.beginPath(),0<s&&0<n&&(t.moveTo(e+a,i),t.lineTo(e+n-a,i),t.bezierCurveTo(e+n-a+o*a,i,e+n,i+r-o*r,e+n,i+r),t.lineTo(e+n,i+s-r),t.bezierCurveTo(e+n,i+s-r+o*r,e+n-a+o*a,i+s,e+n-a,i+s),t.lineTo(e+a,i+s),t.bezierCurveTo(e+a-o*a,i+s,e,i+s-r+o*r,e,i+s-r),t.lineTo(e,i+r),t.bezierCurveTo(e,i+r-o*r,e+a-o*a,i,e+a,i),t.closePath())}return new D.BoundingBox(e,i,e+n,i+s)}},D.Element.rect.prototype=new D.Element.PathElementBase,D.Element.circle=function(t){this.base=D.Element.PathElementBase,this.base(t),this.path=function(t){var e=this.attribute("cx").toPixels("x"),i=this.attribute("cy").toPixels("y"),n=this.attribute("r").toPixels();return null!=t&&0<n&&(t.beginPath(),t.arc(e,i,n,0,2*Math.PI,!1),t.closePath()),new D.BoundingBox(e-n,i-n,e+n,i+n)}},D.Element.circle.prototype=new D.Element.PathElementBase,D.Element.ellipse=function(t){this.base=D.Element.PathElementBase,this.base(t),this.path=function(t){var e=(Math.sqrt(2)-1)/3*4,i=this.attribute("rx").toPixels("x"),n=this.attribute("ry").toPixels("y"),s=this.attribute("cx").toPixels("x"),a=this.attribute("cy").toPixels("y");return null!=t&&(t.beginPath(),t.moveTo(s+i,a),t.bezierCurveTo(s+i,a+e*n,s+e*i,a+n,s,a+n),t.bezierCurveTo(s-e*i,a+n,s-i,a+e*n,s-i,a),t.bezierCurveTo(s-i,a-e*n,s-e*i,a-n,s,a-n),t.bezierCurveTo(s+e*i,a-n,s+i,a-e*n,s+i,a),t.closePath()),new D.BoundingBox(s-i,a-n,s+i,a+n)}},D.Element.ellipse.prototype=new D.Element.PathElementBase,D.Element.line=function(t){this.base=D.Element.PathElementBase,this.base(t),this.getPoints=function(){return[new D.Point(this.attribute("x1").toPixels("x"),this.attribute("y1").toPixels("y")),new D.Point(this.attribute("x2").toPixels("x"),this.attribute("y2").toPixels("y"))]},this.path=function(t){var e=this.getPoints();return null!=t&&(t.beginPath(),t.moveTo(e[0].x,e[0].y),t.lineTo(e[1].x,e[1].y)),new D.BoundingBox(e[0].x,e[0].y,e[1].x,e[1].y)},this.getMarkers=function(){var t=this.getPoints(),e=t[0].angleTo(t[1]);return[[t[0],e],[t[1],e]]}},D.Element.line.prototype=new D.Element.PathElementBase,D.Element.polyline=function(t){this.base=D.Element.PathElementBase,this.base(t),this.points=D.CreatePath(this.attribute("points").value),this.path=function(t){var e=new D.BoundingBox(this.points[0].x,this.points[0].y);null!=t&&(t.beginPath(),t.moveTo(this.points[0].x,this.points[0].y));for(var i=1;i<this.points.length;i++)e.addPoint(this.points[i].x,this.points[i].y),null!=t&&t.lineTo(this.points[i].x,this.points[i].y);return e},this.getMarkers=function(){for(var t=[],e=0;e<this.points.length-1;e++)t.push([this.points[e],this.points[e].angleTo(this.points[e+1])]);return 0<t.length&&t.push([this.points[this.points.length-1],t[t.length-1][1]]),t}},D.Element.polyline.prototype=new D.Element.PathElementBase,D.Element.polygon=function(t){this.base=D.Element.polyline,this.base(t),this.basePath=this.path,this.path=function(t){var e=this.basePath(t);return null!=t&&(t.lineTo(this.points[0].x,this.points[0].y),t.closePath()),e}},D.Element.polygon.prototype=new D.Element.polyline,D.Element.path=function(t){this.base=D.Element.PathElementBase,this.base(t);var e=this.attribute("d").value;e=e.replace(/,/gm," ");for(var i=0;i<2;i++)e=e.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2");e=(e=e.replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2")).replace(/([0-9])([+\-])/gm,"$1 $2");for(i=0;i<2;i++)e=e.replace(/(\.[0-9]*)(\.)/gm,"$1 $2");e=e.replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 "),e=D.compressSpaces(e),e=D.trim(e),this.PathParser=new function(t){this.tokens=t.split(" "),this.reset=function(){this.i=-1,this.command="",this.previousCommand="",this.start=new D.Point(0,0),this.control=new D.Point(0,0),this.current=new D.Point(0,0),this.points=[],this.angles=[]},this.isEnd=function(){return this.i>=this.tokens.length-1},this.isCommandOrEnd=function(){return!!this.isEnd()||null!=this.tokens[this.i+1].match(/^[A-Za-z]$/)},this.isRelativeCommand=function(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return!0}return!1},this.getToken=function(){return this.i++,this.tokens[this.i]},this.getScalar=function(){return parseFloat(this.getToken())},this.nextCommand=function(){this.previousCommand=this.command,this.command=this.getToken()},this.getPoint=function(){var t=new D.Point(this.getScalar(),this.getScalar());return this.makeAbsolute(t)},this.getAsControlPoint=function(){var t=this.getPoint();return this.control=t},this.getAsCurrentPoint=function(){var t=this.getPoint();return this.current=t},this.getReflectedControlPoint=function(){return"c"!=this.previousCommand.toLowerCase()&&"s"!=this.previousCommand.toLowerCase()&&"q"!=this.previousCommand.toLowerCase()&&"t"!=this.previousCommand.toLowerCase()?this.current:new D.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y)},this.makeAbsolute=function(t){return this.isRelativeCommand()&&(t.x+=this.current.x,t.y+=this.current.y),t},this.addMarker=function(t,e,i){null!=i&&0<this.angles.length&&null==this.angles[this.angles.length-1]&&(this.angles[this.angles.length-1]=this.points[this.points.length-1].angleTo(i)),this.addMarkerAngle(t,null==e?null:e.angleTo(t))},this.addMarkerAngle=function(t,e){this.points.push(t),this.angles.push(e)},this.getMarkerPoints=function(){return this.points},this.getMarkerAngles=function(){for(var t=0;t<this.angles.length;t++)if(null==this.angles[t])for(var e=t+1;e<this.angles.length;e++)if(null!=this.angles[e]){this.angles[t]=this.angles[e];break}return this.angles}}(e),this.path=function(t){var e=this.PathParser;e.reset();var i=new D.BoundingBox;for(null!=t&&t.beginPath();!e.isEnd();)switch(e.nextCommand(),e.command){case"M":case"m":var n=e.getAsCurrentPoint();for(e.addMarker(n),i.addPoint(n.x,n.y),null!=t&&t.moveTo(n.x,n.y),e.start=e.current;!e.isCommandOrEnd();){n=e.getAsCurrentPoint();e.addMarker(n,e.start),i.addPoint(n.x,n.y),null!=t&&t.lineTo(n.x,n.y)}break;case"L":case"l":for(;!e.isCommandOrEnd();){var s=e.current;n=e.getAsCurrentPoint();e.addMarker(n,s),i.addPoint(n.x,n.y),null!=t&&t.lineTo(n.x,n.y)}break;case"H":case"h":for(;!e.isCommandOrEnd();){var a=new D.Point((e.isRelativeCommand()?e.current.x:0)+e.getScalar(),e.current.y);e.addMarker(a,e.current),e.current=a,i.addPoint(e.current.x,e.current.y),null!=t&&t.lineTo(e.current.x,e.current.y)}break;case"V":case"v":for(;!e.isCommandOrEnd();){a=new D.Point(e.current.x,(e.isRelativeCommand()?e.current.y:0)+e.getScalar());e.addMarker(a,e.current),e.current=a,i.addPoint(e.current.x,e.current.y),null!=t&&t.lineTo(e.current.x,e.current.y)}break;case"C":case"c":for(;!e.isCommandOrEnd();){var r=e.current,o=e.getPoint(),h=e.getAsControlPoint(),l=e.getAsCurrentPoint();e.addMarker(l,h,o),i.addBezierCurve(r.x,r.y,o.x,o.y,h.x,h.y,l.x,l.y),null!=t&&t.bezierCurveTo(o.x,o.y,h.x,h.y,l.x,l.y)}break;case"S":case"s":for(;!e.isCommandOrEnd();){r=e.current,o=e.getReflectedControlPoint(),h=e.getAsControlPoint(),l=e.getAsCurrentPoint();e.addMarker(l,h,o),i.addBezierCurve(r.x,r.y,o.x,o.y,h.x,h.y,l.x,l.y),null!=t&&t.bezierCurveTo(o.x,o.y,h.x,h.y,l.x,l.y)}break;case"Q":case"q":for(;!e.isCommandOrEnd();){r=e.current,h=e.getAsControlPoint(),l=e.getAsCurrentPoint();e.addMarker(l,h,h),i.addQuadraticCurve(r.x,r.y,h.x,h.y,l.x,l.y),null!=t&&t.quadraticCurveTo(h.x,h.y,l.x,l.y)}break;case"T":case"t":for(;!e.isCommandOrEnd();){r=e.current,h=e.getReflectedControlPoint();e.control=h;l=e.getAsCurrentPoint();e.addMarker(l,h,h),i.addQuadraticCurve(r.x,r.y,h.x,h.y,l.x,l.y),null!=t&&t.quadraticCurveTo(h.x,h.y,l.x,l.y)}break;case"A":case"a":for(;!e.isCommandOrEnd();){r=e.current;var u=e.getScalar(),c=e.getScalar(),f=e.getScalar()*(Math.PI/180),p=e.getScalar(),d=e.getScalar(),m=(l=e.getAsCurrentPoint(),new D.Point(Math.cos(f)*(r.x-l.x)/2+Math.sin(f)*(r.y-l.y)/2,-Math.sin(f)*(r.x-l.x)/2+Math.cos(f)*(r.y-l.y)/2)),y=Math.pow(m.x,2)/Math.pow(u,2)+Math.pow(m.y,2)/Math.pow(c,2);1<y&&(u*=Math.sqrt(y),c*=Math.sqrt(y));var v=(p==d?-1:1)*Math.sqrt((Math.pow(u,2)*Math.pow(c,2)-Math.pow(u,2)*Math.pow(m.y,2)-Math.pow(c,2)*Math.pow(m.x,2))/(Math.pow(u,2)*Math.pow(m.y,2)+Math.pow(c,2)*Math.pow(m.x,2)));isNaN(v)&&(v=0);var g=new D.Point(v*u*m.y/c,v*-c*m.x/u),x=new D.Point((r.x+l.x)/2+Math.cos(f)*g.x-Math.sin(f)*g.y,(r.y+l.y)/2+Math.sin(f)*g.x+Math.cos(f)*g.y),b=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))},P=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(b(t)*b(e))},E=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(P(t,e))},w=E([1,0],[(m.x-g.x)/u,(m.y-g.y)/c]),C=[(m.x-g.x)/u,(m.y-g.y)/c],B=[(-m.x-g.x)/u,(-m.y-g.y)/c],M=E(C,B);P(C,B)<=-1&&(M=Math.PI),1<=P(C,B)&&(M=0);var T=1-d?1:-1,S=w+T*(M/2),V=new D.Point(x.x+u*Math.cos(S),x.y+c*Math.sin(S));if(e.addMarkerAngle(V,S-T*Math.PI/2),e.addMarkerAngle(l,S-T*Math.PI),i.addPoint(l.x,l.y),null!=t&&!isNaN(w)&&!isNaN(M)){P=c<u?u:c;var k=c<u?1:u/c,A=c<u?c/u:1;t.translate(x.x,x.y),t.rotate(f),t.scale(k,A),t.arc(0,0,P,w,w+M,1-d),t.scale(1/k,1/A),t.rotate(-f),t.translate(-x.x,-x.y)}}break;case"Z":case"z":null!=t&&i.x1!==i.x2&&i.y1!==i.y2&&t.closePath(),e.current=e.start}return i},this.getMarkers=function(){for(var t=this.PathParser.getMarkerPoints(),e=this.PathParser.getMarkerAngles(),i=[],n=0;n<t.length;n++)i.push([t[n],e[n]]);return i}},D.Element.path.prototype=new D.Element.PathElementBase,D.Element.pattern=function(t){this.base=D.Element.ElementBase,this.base(t),this.createPattern=function(t,e,i){var n=this.attribute("width").toPixels("x",!0),s=this.attribute("height").toPixels("y",!0),a=new D.Element.svg;a.attributes.viewBox=new D.Property("viewBox",this.attribute("viewBox").value),a.attributes.width=new D.Property("width",n+"px"),a.attributes.height=new D.Property("height",s+"px"),a.attributes.transform=new D.Property("transform",this.attribute("patternTransform").value),a.children=this.children;var r=d(n,s),o=r.getContext("2d");this.attribute("x").hasValue()&&this.attribute("y").hasValue()&&o.translate(this.attribute("x").toPixels("x",!0),this.attribute("y").toPixels("y",!0)),i.hasValue()?this.styles["fill-opacity"]=i:delete this.styles["fill-opacity"];for(var h=-1;h<=1;h++)for(var l=-1;l<=1;l++)o.save(),a.attributes.x=new D.Property("x",h*r.width),a.attributes.y=new D.Property("y",l*r.height),a.render(o),o.restore();return t.createPattern(r,"repeat")}},D.Element.pattern.prototype=new D.Element.ElementBase,D.Element.marker=function(t){this.base=D.Element.ElementBase,this.base(t),this.baseRender=this.render,this.render=function(t,e,i){if(e){t.translate(e.x,e.y),"auto"==this.attribute("orient").valueOrDefault("auto")&&t.rotate(i),"strokeWidth"==this.attribute("markerUnits").valueOrDefault("strokeWidth")&&t.scale(t.lineWidth,t.lineWidth),t.save();var n=new D.Element.svg;n.attributes.viewBox=new D.Property("viewBox",this.attribute("viewBox").value),n.attributes.refX=new D.Property("refX",this.attribute("refX").value),n.attributes.refY=new D.Property("refY",this.attribute("refY").value),n.attributes.width=new D.Property("width",this.attribute("markerWidth").value),n.attributes.height=new D.Property("height",this.attribute("markerHeight").value),n.attributes.fill=new D.Property("fill",this.attribute("fill").valueOrDefault("black")),n.attributes.stroke=new D.Property("stroke",this.attribute("stroke").valueOrDefault("none")),n.children=this.children,n.render(t),t.restore(),"strokeWidth"==this.attribute("markerUnits").valueOrDefault("strokeWidth")&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"==this.attribute("orient").valueOrDefault("auto")&&t.rotate(-i),t.translate(-e.x,-e.y)}}},D.Element.marker.prototype=new D.Element.ElementBase,D.Element.defs=function(t){this.base=D.Element.ElementBase,this.base(t),this.render=function(){}},D.Element.defs.prototype=new D.Element.ElementBase,D.Element.GradientBase=function(t){this.base=D.Element.ElementBase,this.base(t),this.stops=[];for(var e=0;e<this.children.length;e++){var i=this.children[e];"stop"==i.type&&this.stops.push(i)}this.getGradient=function(){},this.gradientUnits=function(){return this.attribute("gradientUnits").valueOrDefault("objectBoundingBox")},this.attributesToInherit=["gradientUnits"],this.inheritStopContainer=function(t){for(var e=0;e<this.attributesToInherit.length;e++){var i=this.attributesToInherit[e];!this.attribute(i).hasValue()&&t.attribute(i).hasValue()&&(this.attribute(i,!0).value=t.attribute(i).value)}},this.createGradient=function(t,e,i){var n=this;this.getHrefAttribute().hasValue()&&(n=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(n));var s=function(t){return i.hasValue()?new D.Property("color",t).addOpacity(i).value:t},a=this.getGradient(t,e);if(null==a)return s(n.stops[n.stops.length-1].color);for(var r=0;r<n.stops.length;r++)a.addColorStop(n.stops[r].offset,s(n.stops[r].color));if(this.attribute("gradientTransform").hasValue()){var o=D.ViewPort.viewPorts[0],h=new D.Element.rect;h.attributes.x=new D.Property("x",-D.MAX_VIRTUAL_PIXELS/3),h.attributes.y=new D.Property("y",-D.MAX_VIRTUAL_PIXELS/3),h.attributes.width=new D.Property("width",D.MAX_VIRTUAL_PIXELS),h.attributes.height=new D.Property("height",D.MAX_VIRTUAL_PIXELS);var l=new D.Element.g;l.attributes.transform=new D.Property("transform",this.attribute("gradientTransform").value),l.children=[h];var u=new D.Element.svg;u.attributes.x=new D.Property("x",0),u.attributes.y=new D.Property("y",0),u.attributes.width=new D.Property("width",o.width),u.attributes.height=new D.Property("height",o.height),u.children=[l];var c=d(o.width,o.height),f=c.getContext("2d");return f.fillStyle=a,u.render(f),f.createPattern(c,"no-repeat")}return a}},D.Element.GradientBase.prototype=new D.Element.ElementBase,D.Element.linearGradient=function(t){this.base=D.Element.GradientBase,this.base(t),this.attributesToInherit.push("x1"),this.attributesToInherit.push("y1"),this.attributesToInherit.push("x2"),this.attributesToInherit.push("y2"),this.getGradient=function(t,e){var i="objectBoundingBox"==this.gradientUnits()?e.getBoundingBox(t):null;this.attribute("x1").hasValue()||this.attribute("y1").hasValue()||this.attribute("x2").hasValue()||this.attribute("y2").hasValue()||(this.attribute("x1",!0).value=0,this.attribute("y1",!0).value=0,this.attribute("x2",!0).value=1,this.attribute("y2",!0).value=0);var n="objectBoundingBox"==this.gradientUnits()?i.x()+i.width()*this.attribute("x1").numValue():this.attribute("x1").toPixels("x"),s="objectBoundingBox"==this.gradientUnits()?i.y()+i.height()*this.attribute("y1").numValue():this.attribute("y1").toPixels("y"),a="objectBoundingBox"==this.gradientUnits()?i.x()+i.width()*this.attribute("x2").numValue():this.attribute("x2").toPixels("x"),r="objectBoundingBox"==this.gradientUnits()?i.y()+i.height()*this.attribute("y2").numValue():this.attribute("y2").toPixels("y");return n==a&&s==r?null:t.createLinearGradient(n,s,a,r)}},D.Element.linearGradient.prototype=new D.Element.GradientBase,D.Element.radialGradient=function(t){this.base=D.Element.GradientBase,this.base(t),this.attributesToInherit.push("cx"),this.attributesToInherit.push("cy"),this.attributesToInherit.push("r"),this.attributesToInherit.push("fx"),this.attributesToInherit.push("fy"),this.attributesToInherit.push("fr"),this.getGradient=function(t,e){var i=e.getBoundingBox(t);this.attribute("cx").hasValue()||(this.attribute("cx",!0).value="50%"),this.attribute("cy").hasValue()||(this.attribute("cy",!0).value="50%"),this.attribute("r").hasValue()||(this.attribute("r",!0).value="50%");var n="objectBoundingBox"==this.gradientUnits()?i.x()+i.width()*this.attribute("cx").numValue():this.attribute("cx").toPixels("x"),s="objectBoundingBox"==this.gradientUnits()?i.y()+i.height()*this.attribute("cy").numValue():this.attribute("cy").toPixels("y"),a=n,r=s;this.attribute("fx").hasValue()&&(a="objectBoundingBox"==this.gradientUnits()?i.x()+i.width()*this.attribute("fx").numValue():this.attribute("fx").toPixels("x")),this.attribute("fy").hasValue()&&(r="objectBoundingBox"==this.gradientUnits()?i.y()+i.height()*this.attribute("fy").numValue():this.attribute("fy").toPixels("y"));var o="objectBoundingBox"==this.gradientUnits()?(i.width()+i.height())/2*this.attribute("r").numValue():this.attribute("r").toPixels(),h=this.attribute("fr").toPixels();return t.createRadialGradient(a,r,h,n,s,o)}},D.Element.radialGradient.prototype=new D.Element.GradientBase,D.Element.stop=function(t){this.base=D.Element.ElementBase,this.base(t),this.offset=this.attribute("offset").numValue(),this.offset<0&&(this.offset=0),1<this.offset&&(this.offset=1);var e=this.style("stop-color",!0);""===e.value&&(e.value="#000"),this.style("stop-opacity").hasValue()&&(e=e.addOpacity(this.style("stop-opacity"))),this.color=e.value},D.Element.stop.prototype=new D.Element.ElementBase,D.Element.AnimateBase=function(t){this.base=D.Element.ElementBase,this.base(t),D.Animations.push(this),this.duration=0,this.begin=this.attribute("begin").toMilliseconds(),this.maxDuration=this.begin+this.attribute("dur").toMilliseconds(),this.getProperty=function(){var t=this.attribute("attributeType").value,e=this.attribute("attributeName").value;return"CSS"==t?this.parent.style(e,!0):this.parent.attribute(e,!0)},this.initialValue=null,this.initialUnits="",this.removed=!1,this.calcValue=function(){return""},this.update=function(t){if(null==this.initialValue&&(this.initialValue=this.getProperty().value,this.initialUnits=this.getProperty().getUnits()),this.duration>this.maxDuration){if("indefinite"==this.attribute("repeatCount").value||"indefinite"==this.attribute("repeatDur").value)this.duration=0;else if("freeze"!=this.attribute("fill").valueOrDefault("remove")||this.frozen){if("remove"==this.attribute("fill").valueOrDefault("remove")&&!this.removed)return this.removed=!0,this.getProperty().value=this.parent.animationFrozen?this.parent.animationFrozenValue:this.initialValue,!0}else this.frozen=!0,this.parent.animationFrozen=!0,this.parent.animationFrozenValue=this.getProperty().value;return!1}this.duration=this.duration+t;var e=!1;if(this.begin<this.duration){var i=this.calcValue();if(this.attribute("type").hasValue())i=this.attribute("type").value+"("+i+")";this.getProperty().value=i,e=!0}return e},this.from=this.attribute("from"),this.to=this.attribute("to"),this.values=this.attribute("values"),this.values.hasValue()&&(this.values.value=this.values.value.split(";")),this.progress=function(){var t={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(this.values.hasValue()){var e=t.progress*(this.values.value.length-1),i=Math.floor(e),n=Math.ceil(e);t.from=new D.Property("from",parseFloat(this.values.value[i])),t.to=new D.Property("to",parseFloat(this.values.value[n])),t.progress=(e-i)/(n-i)}else t.from=this.from,t.to=this.to;return t}},D.Element.AnimateBase.prototype=new D.Element.ElementBase,D.Element.animate=function(t){this.base=D.Element.AnimateBase,this.base(t),this.calcValue=function(){var t=this.progress(),e=t.from.numValue()+(t.to.numValue()-t.from.numValue())*t.progress;return"%"===this.initialUnits&&(e*=100),e+this.initialUnits}},D.Element.animate.prototype=new D.Element.AnimateBase,D.Element.animateColor=function(t){this.base=D.Element.AnimateBase,this.base(t),this.calcValue=function(){var t=this.progress(),e=new y(t.from.value),i=new y(t.to.value);if(e.ok&&i.ok){var n=e.r+(i.r-e.r)*t.progress,s=e.g+(i.g-e.g)*t.progress,a=e.b+(i.b-e.b)*t.progress;return"rgb("+parseInt(n,10)+","+parseInt(s,10)+","+parseInt(a,10)+")"}return this.attribute("from").value}},D.Element.animateColor.prototype=new D.Element.AnimateBase,D.Element.animateTransform=function(t){this.base=D.Element.AnimateBase,this.base(t),this.calcValue=function(){for(var t=this.progress(),e=D.ToNumberArray(t.from.value),i=D.ToNumberArray(t.to.value),n="",s=0;s<e.length;s++)n+=e[s]+(i[s]-e[s])*t.progress+" ";return n}},D.Element.animateTransform.prototype=new D.Element.animate,D.Element.font=function(t){this.base=D.Element.ElementBase,this.base(t),this.horizAdvX=this.attribute("horiz-adv-x").numValue(),this.isRTL=!1,this.isArabic=!1,this.fontFace=null,this.missingGlyph=null,this.glyphs=[];for(var e=0;e<this.children.length;e++){var i=this.children[e];"font-face"==i.type?(this.fontFace=i).style("font-family").hasValue()&&(D.Definitions[i.style("font-family").value]=this):"missing-glyph"==i.type?this.missingGlyph=i:"glyph"==i.type&&(""!=i.arabicForm?(this.isRTL=!0,this.isArabic=!0,void 0===this.glyphs[i.unicode]&&(this.glyphs[i.unicode]=[]),this.glyphs[i.unicode][i.arabicForm]=i):this.glyphs[i.unicode]=i)}this.render=function(){}},D.Element.font.prototype=new D.Element.ElementBase,D.Element.fontface=function(t){this.base=D.Element.ElementBase,this.base(t),this.ascent=this.attribute("ascent").value,this.descent=this.attribute("descent").value,this.unitsPerEm=this.attribute("units-per-em").numValue()},D.Element.fontface.prototype=new D.Element.ElementBase,D.Element.missingglyph=function(t){this.base=D.Element.path,this.base(t),this.horizAdvX=0},D.Element.missingglyph.prototype=new D.Element.path,D.Element.glyph=function(t){this.base=D.Element.path,this.base(t),this.horizAdvX=this.attribute("horiz-adv-x").numValue(),this.unicode=this.attribute("unicode").value,this.arabicForm=this.attribute("arabic-form").value},D.Element.glyph.prototype=new D.Element.path,D.Element.text=function(t){this.captureTextNodes=!0,this.base=D.Element.RenderedElementBase,this.base(t),this.baseSetContext=this.setContext,this.setContext=function(t){this.baseSetContext(t);var e=this.style("dominant-baseline").toTextBaseline();null==e&&(e=this.style("alignment-baseline").toTextBaseline()),null!=e&&(t.textBaseline=e)},this.initializeCoordinates=function(t){this.x=this.attribute("x").toPixels("x"),this.y=this.attribute("y").toPixels("y"),this.attribute("dx").hasValue()&&(this.x+=this.attribute("dx").toPixels("x")),this.attribute("dy").hasValue()&&(this.y+=this.attribute("dy").toPixels("y")),this.x+=this.getAnchorDelta(t,this,0)},this.getBoundingBox=function(t){this.initializeCoordinates(t);for(var e=null,i=0;i<this.children.length;i++){var n=this.getChildBoundingBox(t,this,this,i);null==e?e=n:e.addBoundingBox(n)}return e},this.renderChildren=function(t){this.initializeCoordinates(t);for(var e=0;e<this.children.length;e++)this.renderChild(t,this,this,e);D.Mouse.checkBoundingBox(this,this.getBoundingBox(t))},this.getAnchorDelta=function(t,e,i){var n=this.style("text-anchor").valueOrDefault("start");if("start"==n)return 0;for(var s=0,a=i;a<e.children.length;a++){var r=e.children[a];if(i<a&&r.attribute("x").hasValue())break;s+=r.measureTextRecursive(t)}return-1*("end"==n?s:s/2)},this.adjustChildCoordinates=function(t,e,i,n){var s=i.children[n];if("function"!=typeof s.measureText)return s;if(s.attribute("x").hasValue()){s.x=s.attribute("x").toPixels("x")+e.getAnchorDelta(t,i,n);var a=s.attribute("text-anchor").valueOrDefault("start");if("start"!==a){var r=s.measureTextRecursive(t);s.x+=-1*("end"==a?r:r/2)}s.attribute("dx").hasValue()&&(s.x+=s.attribute("dx").toPixels("x"))}else s.attribute("dx").hasValue()&&(e.x+=s.attribute("dx").toPixels("x")),s.x=e.x;return e.x=s.x+s.measureText(t),s.attribute("y").hasValue()?(s.y=s.attribute("y").toPixels("y"),s.attribute("dy").hasValue()&&(s.y+=s.attribute("dy").toPixels("y"))):(s.attribute("dy").hasValue()&&(e.y+=s.attribute("dy").toPixels("y")),s.y=e.y),e.y=s.y,s},this.getChildBoundingBox=function(t,e,i,n){var s=this.adjustChildCoordinates(t,e,i,n),a=s.getBoundingBox(t);for(n=0;n<s.children.length;n++){var r=e.getChildBoundingBox(t,e,s,n);a.addBoundingBox(r)}return a},this.renderChild=function(t,e,i,n){var s=this.adjustChildCoordinates(t,e,i,n);s.render(t);for(n=0;n<s.children.length;n++)e.renderChild(t,e,s,n)}},D.Element.text.prototype=new D.Element.RenderedElementBase,D.Element.TextElementBase=function(t){this.base=D.Element.RenderedElementBase,this.base(t),this.getGlyph=function(t,e,i){var n=e[i],s=null;if(t.isArabic){var a="isolated";(0==i||" "==e[i-1])&&i<e.length-2&&" "!=e[i+1]&&(a="terminal"),0<i&&" "!=e[i-1]&&i<e.length-2&&" "!=e[i+1]&&(a="medial"),0<i&&" "!=e[i-1]&&(i==e.length-1||" "==e[i+1])&&(a="initial"),void 0!==t.glyphs[n]&&null==(s=t.glyphs[n][a])&&"glyph"==t.glyphs[n].type&&(s=t.glyphs[n])}else s=t.glyphs[n];return null==s&&(s=t.missingGlyph),s},this.renderChildren=function(t){var e=this.parent.style("font-family").getDefinition();if(null==e)"stroke"==t.paintOrder?(""!=t.strokeStyle&&t.strokeText(D.compressSpaces(this.getText()),this.x,this.y),""!=t.fillStyle&&t.fillText(D.compressSpaces(this.getText()),this.x,this.y)):(""!=t.fillStyle&&t.fillText(D.compressSpaces(this.getText()),this.x,this.y),""!=t.strokeStyle&&t.strokeText(D.compressSpaces(this.getText()),this.x,this.y));else{var i=this.parent.style("font-size").numValueOrDefault(D.Font.Parse(D.ctx.font).fontSize),n=this.parent.style("font-style").valueOrDefault(D.Font.Parse(D.ctx.font).fontStyle),s=this.getText();e.isRTL&&(s=s.split("").reverse().join(""));for(var a=D.ToNumberArray(this.parent.attribute("dx").value),r=0;r<s.length;r++){var o=this.getGlyph(e,s,r),h=i/e.fontFace.unitsPerEm;t.translate(this.x,this.y),t.scale(h,-h);var l=t.lineWidth;t.lineWidth=t.lineWidth*e.fontFace.unitsPerEm/i,"italic"==n&&t.transform(1,0,.4,1,0,0),o.render(t),"italic"==n&&t.transform(1,0,-.4,1,0,0),t.lineWidth=l,t.scale(1/h,-1/h),t.translate(-this.x,-this.y),this.x+=i*(o.horizAdvX||e.horizAdvX)/e.fontFace.unitsPerEm,void 0===a[r]||isNaN(a[r])||(this.x+=a[r])}}},this.getText=function(){},this.measureTextRecursive=function(t){for(var e=this.measureText(t),i=0;i<this.children.length;i++)e+=this.children[i].measureTextRecursive(t);return e},this.measureText=function(t){var e=this.parent.style("font-family").getDefinition();if(null!=e){var i=this.parent.style("font-size").numValueOrDefault(D.Font.Parse(D.ctx.font).fontSize),n=0,s=this.getText();e.isRTL&&(s=s.split("").reverse().join(""));for(var a=D.ToNumberArray(this.parent.attribute("dx").value),r=0;r<s.length;r++){n+=(this.getGlyph(e,s,r).horizAdvX||e.horizAdvX)*i/e.fontFace.unitsPerEm,void 0===a[r]||isNaN(a[r])||(n+=a[r])}return n}var o=D.compressSpaces(this.getText());if(!t.measureText)return 10*o.length;t.save(),this.setContext(t,!0);var h=t.measureText(o).width;return t.restore(),h},this.getBoundingBox=function(t){var e=this.parent.style("font-size").numValueOrDefault(D.Font.Parse(D.ctx.font).fontSize);return new D.BoundingBox(this.x,this.y-e,this.x+this.measureText(t),this.y)}},D.Element.TextElementBase.prototype=new D.Element.RenderedElementBase,D.Element.tspan=function(t){this.captureTextNodes=!0,this.base=D.Element.TextElementBase,this.base(t),this.text=D.compressSpaces(t.value||t.text||t.textContent||""),this.getText=function(){return 0<this.children.length?"":this.text}},D.Element.tspan.prototype=new D.Element.TextElementBase,D.Element.tref=function(t){this.base=D.Element.TextElementBase,this.base(t),this.getText=function(){var t=this.getHrefAttribute().getDefinition();if(null!=t)return t.children[0].getText()}},D.Element.tref.prototype=new D.Element.TextElementBase,D.Element.a=function(t){this.base=D.Element.TextElementBase,this.base(t),this.hasText=0<t.childNodes.length;for(var e=0;e<t.childNodes.length;e++)3!=t.childNodes[e].nodeType&&(this.hasText=!1);this.text=this.hasText?t.childNodes[0].value||t.childNodes[0].data:"",this.getText=function(){return this.text},this.baseRenderChildren=this.renderChildren,this.renderChildren=function(t){if(this.hasText){this.baseRenderChildren(t);var e=new D.Property("fontSize",D.Font.Parse(D.ctx.font).fontSize);D.Mouse.checkBoundingBox(this,new D.BoundingBox(this.x,this.y-e.toPixels("y"),this.x+this.measureText(t),this.y))}else if(0<this.children.length){var i=new D.Element.g;i.children=this.children,i.parent=this,i.render(t)}},this.onclick=function(){l.open(this.getHrefAttribute().value)},this.onmousemove=function(){D.ctx.canvas.style.cursor="pointer"}},D.Element.a.prototype=new D.Element.TextElementBase,D.Element.textPath=function(t){this.base=D.Element.TextElementBase,this.base(t);var e=this.getHrefAttribute().getDefinition();this.text=D.compressSpaces(t.value||t.text||t.textContent||""),this.renderChildren=function(t){this.setTextData(t),t.save();var e=this.parent.style("text-decoration").value,i=this.fontSize(),n=this.glyphInfo,s=t.fillStyle;"underline"===e&&t.beginPath();for(var a=0;a<n.length;a++){var r=n[a].p0,o=n[a].p1,h=n[a].text;t.save(),t.translate(r.x,r.y),t.rotate(n[a].rotation),""!=t.fillStyle&&t.fillText(D.compressSpaces(h),0,0),""!=t.strokeStyle&&t.strokeText(D.compressSpaces(h),0,0),t.restore(),"underline"===e&&(0===a&&t.moveTo(r.x,r.y+i/8),t.lineTo(o.x,o.y+i/5))}"underline"===e&&(t.lineWidth=i/20,t.strokeStyle=s,t.stroke(),t.closePath()),t.restore()},this.path=function(t){var e=this.dataArray;null!=t&&t.beginPath();for(var i=0;i<e.length;i++){var n=e[i].command,s=e[i].points;switch(n){case"L":null!=t&&t.lineTo(s[0],s[1]);break;case"M":null!=t&&t.moveTo(s[0],s[1]);break;case"C":null!=t&&t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"Q":null!=t&&t.quadraticCurveTo(s[0],s[1],s[2],s[3]);break;case"A":var a=s[0],r=s[1],o=s[2],h=s[3],l=s[4],u=s[5],c=s[6],f=s[7],p=h<o?o:h,d=h<o?1:o/h,m=h<o?h/o:1;null!=t&&(t.translate(a,r),t.rotate(c),t.scale(d,m),t.arc(0,0,p,l,l+u,1-f),t.scale(1/d,1/m),t.rotate(-c),t.translate(-a,-r));break;case"z":null!=t&&t.closePath()}}},this.getText=function(){return this.text},this.fontSize=function(){return this.parent.style("font-size").numValueOrDefault(D.Font.Parse(D.ctx.font).fontSize)},this.measureText=function(t,e){var i=this.parent.style("font-family").getDefinition();if(e=e||this.getText(),null!=i){var n=this.fontSize(),s=0;i.isRTL&&(e=e.split("").reverse().join(""));for(var a=D.ToNumberArray(this.parent.attribute("dx").value),r=0;r<e.length;r++){s+=(this.getGlyph(i,e,r).horizAdvX||i.horizAdvX)*n/i.fontFace.unitsPerEm,void 0===a[r]||isNaN(a[r])||(s+=a[r])}return s}var o=D.compressSpaces(e);if(!t.measureText)return 10*o.length;t.save(),this.setContext(t);var h=t.measureText(o).width;return t.restore(),h},this.setTextData=function(r){if(!this.hasOwnProperty("glyphInfo")){var o=this,t=this.getText().split(""),h=this.getText().split(" ").length-1,e=D.ToNumberArray(this.parent.attribute("dx").valueOrDefault("0")),i=0,l=this.parent.style("text-anchor").valueOrDefault("start"),n=this.style("letter-spacing"),s=this.parent.style("letter-spacing");n.hasValue()&&"inherit"!==n.getValue()?n.hasValue()&&"initial"!==n.getValue()&&"unset"!==n.getValue()&&(i=n.toPixels()):i=s.toPixels(),this.letterSpacingCache=[];for(var a=0;a<this.getText().length;a++)this.letterSpacingCache.push(void 0!==e[a]?e[a]:i);var u=this.letterSpacingCache.reduce(function(t,e){return t+e||0},0);this.textWidth=this.measureText(r),this.textHeight=this.fontSize();var c=Math.max(this.textWidth+u,0);this.glyphInfo=[];var f=this.getPathLength(),p=this.style("startOffset").numValueOrDefault(0)*f,d=0;"middle"!==l&&"center"!==l||(d=-c/2),"end"!==l&&"right"!==l||(d=-c),d+=p;var m=function(t,e){var i,n=o.measureText(r,t);" "===t&&"justify"===l&&c<f&&(n+=(f-c)/h),-1<e&&(d+=(i=(i=e)||0,o.letterSpacingCache[i]||0));var s=o.textHeight/20,a={p0:o.getEquidistantPointOnPath(d,s),p1:o.getEquidistantPointOnPath(d+n,s)};return d+=n,a};for(a=0;a<t.length;a++){var y=m(t[a],a);if(void 0!==y.p0&&void 0!==y.p1){var v=o.getLineLength(y.p0.x,y.p0.y,y.p1.x,y.p1.y),g=o.getPointOnLine(0+v/2,y.p0.x,y.p0.y,y.p1.x,y.p1.y),x=Math.atan2(y.p1.y-y.p0.y,y.p1.x-y.p0.x);this.glyphInfo.push({transposeX:g.x,transposeY:g.y,text:t[a],rotation:x,p0:y.p0,p1:y.p1})}}}},this.parsePathData=function(t){if(this.pathLength=void 0,!t)return[];var e=[],i=t.PathParser;for(i.reset();!i.isEnd();){var n=[],s=null,a=i.current?i.current.x:0,r=i.current?i.current.y:0;i.nextCommand();var o=i.command.toUpperCase();switch(i.command){case"M":case"m":var h=i.getAsCurrentPoint();for(n.push(h.x,h.y),i.start=i.current;!i.isCommandOrEnd();){h=i.getAsCurrentPoint();n.push(h.x,h.y),s="L"}break;case"L":case"l":for(;!i.isCommandOrEnd();){h=i.getAsCurrentPoint();n.push(h.x,h.y)}s="L";break;case"H":case"h":for(;!i.isCommandOrEnd();){var l=new D.Point((i.isRelativeCommand()?i.current.x:0)+i.getScalar(),i.current.y);n.push(l.x,l.y),i.current=l}s="L";break;case"V":case"v":for(;!i.isCommandOrEnd();){l=new D.Point(i.current.x,(i.isRelativeCommand()?i.current.y:0)+i.getScalar());n.push(l.x,l.y),i.current=l}s="L";break;case"C":case"c":for(;!i.isCommandOrEnd();){var u=i.getPoint(),c=i.getAsControlPoint(),f=i.getAsCurrentPoint();n.push(u.x,u.y,c.x,c.y,f.x,f.y)}break;case"S":case"s":for(;!i.isCommandOrEnd();){u=i.getReflectedControlPoint(),c=i.getAsControlPoint(),f=i.getAsCurrentPoint();n.push(u.x,u.y,c.x,c.y,f.x,f.y)}s="C";break;case"Q":case"q":for(;!i.isCommandOrEnd();){c=i.getAsControlPoint(),f=i.getAsCurrentPoint();n.push(c.x,c.y,f.x,f.y)}break;case"T":case"t":for(;!i.isCommandOrEnd();){c=i.getReflectedControlPoint();i.control=c;f=i.getAsCurrentPoint();n.push(c.x,c.y,f.x,f.y)}s="Q";break;case"A":case"a":for(;!i.isCommandOrEnd();){var p=i.current,d=i.getScalar(),m=i.getScalar(),y=i.getScalar()*(Math.PI/180),v=i.getScalar(),g=i.getScalar(),x=(f=i.getAsCurrentPoint(),new D.Point(Math.cos(y)*(p.x-f.x)/2+Math.sin(y)*(p.y-f.y)/2,-Math.sin(y)*(p.x-f.x)/2+Math.cos(y)*(p.y-f.y)/2)),b=Math.pow(x.x,2)/Math.pow(d,2)+Math.pow(x.y,2)/Math.pow(m,2);1<b&&(d*=Math.sqrt(b),m*=Math.sqrt(b));var P=(v==g?-1:1)*Math.sqrt((Math.pow(d,2)*Math.pow(m,2)-Math.pow(d,2)*Math.pow(x.y,2)-Math.pow(m,2)*Math.pow(x.x,2))/(Math.pow(d,2)*Math.pow(x.y,2)+Math.pow(m,2)*Math.pow(x.x,2)));isNaN(P)&&(P=0);var E=new D.Point(P*d*x.y/m,P*-m*x.x/d),w=new D.Point((p.x+f.x)/2+Math.cos(y)*E.x-Math.sin(y)*E.y,(p.y+f.y)/2+Math.sin(y)*E.x+Math.cos(y)*E.y),C=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))},B=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(C(t)*C(e))},M=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(B(t,e))},T=M([1,0],[(x.x-E.x)/d,(x.y-E.y)/m]),S=[(x.x-E.x)/d,(x.y-E.y)/m],V=[(-x.x-E.x)/d,(-x.y-E.y)/m],k=M(S,V);B(S,V)<=-1&&(k=Math.PI),1<=B(S,V)&&(k=0),0===g&&0<k&&(k-=2*Math.PI),1===g&&k<0&&(k+=2*Math.PI),n=[w.x,w.y,d,m,T,k,y,g]}break;case"Z":case"z":i.current=i.start}"Z"!==o?e.push({command:s||o,points:n,start:{x:a,y:r},pathLength:this.calcLength(a,r,s||o,n)}):e.push({command:"z",points:[],start:void 0,pathLength:0})}return e},this.getPathLength=function(){if(void 0===this.pathLength||null===this.pathLength||isNaN(this.pathLength))for(var t=this.pathLength=0;t<this.dataArray.length;t++)0<this.dataArray[t].pathLength&&(this.pathLength+=this.dataArray[t].pathLength);return this.pathLength},this.getPointOnPath=function(t){var e=0,i=this.getPathLength(),n=void 0;if(!(t<-5e-5||i<t-5e-5))for(var s=0;s<this.dataArray.length;s++){var a=this.dataArray[s];if(!a||!(a.pathLength<5e-5||e+a.pathLength+5e-5<t)){var r=t-e,o=void 0;switch(a.command){case"L":n=this.getPointOnLine(r,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case"A":var h=a.points[4],l=a.points[5],u=a.points[4]+l;if(o=h+r/a.pathLength*l,l<0&&o<u||0<=l&&u<o)break;n=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],o,a.points[6]);break;case"C":1<(o=r/a.pathLength)&&(o=1),n=this.getPointOnCubicBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3],a.points[4],a.points[5]);break;case"Q":1<(o=r/a.pathLength)&&(o=1),n=this.getPointOnQuadraticBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3])}if(void 0!==n&&n!=={})return n;break}e+=a.pathLength}},this.buildEquidistantCache=function(t,e){var i=this.getPathLength();if(e=e||.25,t=t||i/100,this.equidistantCache=this.equidistantCache||{},!this.equidistantCache.hasOwnProperty("points")||this.equidistantCache.step!=t||this.equidistantCache.precision!=e){this.equidistantCache={step:t,precision:e,points:[]};for(var n=0,s=0;s<=i;s+=e){var a=this.getPointOnPath(s),r=this.getPointOnPath(s+e);void 0!==a&&void 0!==r&&(t<=(n+=this.getLineLength(a.x,a.y,r.x,r.y))&&(this.equidistantCache.points.push({x:a.x,y:a.y,distance:s}),n-=t))}}},this.getEquidistantPointOnPath=function(t,e,i){if(this.buildEquidistantCache(e,i),!(t<0||5e-5<t-this.getPathLength())){var n=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[n]||void 0}},this.getLineLength=function(t,e,i,n){return Math.sqrt((i-t)*(i-t)+(n-e)*(n-e))},this.getPointOnLine=function(t,e,i,n,s,a,r){void 0===a&&(a=e),void 0===r&&(r=i);var o=(s-i)/(n-e+1e-8),h=Math.sqrt(t*t/(1+o*o));n<e&&(h*=-1);var l,u=o*h;if(n===e)l={x:a,y:r+u};else if((r-i)/(a-e+1e-8)===o)l={x:a+h,y:r+u};else{var c,f,p=this.getLineLength(e,i,n,s);if(p<1e-8)return;var d=(a-e)*(n-e)+(r-i)*(s-i);c=e+(d/=p*p)*(n-e),f=i+d*(s-i);var m=this.getLineLength(a,r,c,f),y=Math.sqrt(t*t-m*m);h=Math.sqrt(y*y/(1+o*o)),n<e&&(h*=-1),l={x:c+h,y:f+(u=o*h)}}return l},this.getPointOnCubicBezier=function(t,e,i,n,s,a,r,o,h){function l(t){return t*t*t}function u(t){return 3*t*t*(1-t)}function c(t){return 3*t*(1-t)*(1-t)}function f(t){return(1-t)*(1-t)*(1-t)}return{x:o*l(t)+a*u(t)+n*c(t)+e*f(t),y:h*l(t)+r*u(t)+s*c(t)+i*f(t)}},this.getPointOnQuadraticBezier=function(t,e,i,n,s,a,r){function o(t){return t*t}function h(t){return 2*t*(1-t)}function l(t){return(1-t)*(1-t)}return{x:a*o(t)+n*h(t)+e*l(t),y:r*o(t)+s*h(t)+i*l(t)}},this.getPointOnEllipticalArc=function(t,e,i,n,s,a){var r=Math.cos(a),o=Math.sin(a),h=i*Math.cos(s),l=n*Math.sin(s);return{x:t+(h*r-l*o),y:e+(h*o+l*r)}},this.calcLength=function(t,e,i,n){var s,a,r,o;switch(i){case"L":return this.getLineLength(t,e,n[0],n[1]);case"C":for(s=0,a=this.getPointOnCubicBezier(0,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),o=.01;o<=1;o+=.01)r=this.getPointOnCubicBezier(o,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),s+=this.getLineLength(a.x,a.y,r.x,r.y),a=r;return s;case"Q":for(s=0,a=this.getPointOnQuadraticBezier(0,t,e,n[0],n[1],n[2],n[3]),o=.01;o<=1;o+=.01)r=this.getPointOnQuadraticBezier(o,t,e,n[0],n[1],n[2],n[3]),s+=this.getLineLength(a.x,a.y,r.x,r.y),a=r;return s;case"A":s=0;var h=n[4],l=n[5],u=n[4]+l,c=Math.PI/180;if(Math.abs(h-u)<c&&(c=Math.abs(h-u)),a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],h,0),l<0)for(o=h-c;u<o;o-=c)r=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),s+=this.getLineLength(a.x,a.y,r.x,r.y),a=r;else for(o=h+c;o<u;o+=c)r=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),s+=this.getLineLength(a.x,a.y,r.x,r.y),a=r;return r=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,0),s+=this.getLineLength(a.x,a.y,r.x,r.y)}return 0},this.dataArray=this.parsePathData(e)},D.Element.textPath.prototype=new D.Element.TextElementBase,D.Element.image=function(t){this.base=D.Element.RenderedElementBase,this.base(t);var e=this.getHrefAttribute().value;if(""!=e){var a=e.match(/\.svg$/);if(D.Images.push(this),this.loaded=!1,a)this.img=D.ajax(e),this.loaded=!0;else{this.img=c.createElement("img"),1==D.opts.useCORS&&(this.img.crossOrigin="Anonymous");var r=this;this.img.onload=function(){r.loaded=!0},this.img.onerror=function(){D.log('ERROR: image "'+e+'" not found'),r.loaded=!0},this.img.src=e}this.renderChildren=function(t){var e=this.attribute("x").toPixels("x"),i=this.attribute("y").toPixels("y"),n=this.attribute("width").toPixels("x"),s=this.attribute("height").toPixels("y");0!=n&&0!=s&&(t.save(),a?t.drawSvg(this.img,e,i,n,s):(t.translate(e,i),D.AspectRatio(t,this.attribute("preserveAspectRatio").value,n,this.img.width,s,this.img.height,0,0),r.loaded&&(void 0===this.img.complete||this.img.complete)&&t.drawImage(this.img,0,0)),t.restore())},this.getBoundingBox=function(){var t=this.attribute("x").toPixels("x"),e=this.attribute("y").toPixels("y"),i=this.attribute("width").toPixels("x"),n=this.attribute("height").toPixels("y");return new D.BoundingBox(t,e,t+i,e+n)}}},D.Element.image.prototype=new D.Element.RenderedElementBase,D.Element.g=function(t){this.base=D.Element.RenderedElementBase,this.base(t),this.getBoundingBox=function(t){for(var e=new D.BoundingBox,i=0;i<this.children.length;i++)e.addBoundingBox(this.children[i].getBoundingBox(t));return e}},D.Element.g.prototype=new D.Element.RenderedElementBase,D.Element.symbol=function(t){this.base=D.Element.RenderedElementBase,this.base(t),this.render=function(){}},D.Element.symbol.prototype=new D.Element.RenderedElementBase,D.ParseExternalUrl=function(t){var e=t.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return e[2]||e[3]||e[4]},D.Element.style=function(t){this.base=D.Element.ElementBase,this.base(t);for(var e="",i=0;i<t.childNodes.length;i++)e+=t.childNodes[i].data;e=e.replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"");var n=(e=D.compressSpaces(e)).split("}");for(i=0;i<n.length;i++)if(""!=D.trim(n[i]))for(var s=n[i].split("{"),a=s[0].split(","),r=s[1].split(";"),o=0;o<a.length;o++){var h=D.trim(a[o]);if(""!=h){for(var l=D.Styles[h]||{},u=0;u<r.length;u++){var c=r[u].indexOf(":"),f=r[u].substr(0,c),p=r[u].substr(c+1,r[u].length-c);null!=f&&null!=p&&(l[D.trim(f)]=new D.Property(D.trim(f),D.trim(p)))}if(D.Styles[h]=l,D.StylesSpecificity[h]=P(h),"@font-face"==h)for(var d=l["font-family"].value.replace(/"/g,""),m=l.src.value.split(","),y=0;y<m.length;y++)if(0<m[y].indexOf('format("svg")')){var v=D.ParseExternalUrl(m[y]);if(v)for(var g=D.parseXml(D.ajax(v)).getElementsByTagName("font"),x=0;x<g.length;x++){var b=D.CreateElement(g[x]);D.Definitions[d]=b}}}}},D.Element.style.prototype=new D.Element.ElementBase,D.Element.use=function(t){this.base=D.Element.RenderedElementBase,this.base(t),this.baseSetContext=this.setContext,this.setContext=function(t){this.baseSetContext(t),this.attribute("x").hasValue()&&t.translate(this.attribute("x").toPixels("x"),0),this.attribute("y").hasValue()&&t.translate(0,this.attribute("y").toPixels("y"))};var n=this.getHrefAttribute().getDefinition();this.path=function(t){null!=n&&n.path(t)},this.elementTransform=function(){if(null!=n&&n.style("transform",!1,!0).hasValue())return new D.Transform(n.style("transform",!1,!0).value)},this.getBoundingBox=function(t){if(null!=n)return n.getBoundingBox(t)},this.renderChildren=function(t){if(null!=n){var e=n;"symbol"==n.type&&((e=new D.Element.svg).type="svg",e.attributes.viewBox=new D.Property("viewBox",n.attribute("viewBox").value),e.attributes.preserveAspectRatio=new D.Property("preserveAspectRatio",n.attribute("preserveAspectRatio").value),e.attributes.overflow=new D.Property("overflow",n.attribute("overflow").value),e.children=n.children),"svg"==e.type&&(this.attribute("width").hasValue()&&(e.attributes.width=new D.Property("width",this.attribute("width").value)),this.attribute("height").hasValue()&&(e.attributes.height=new D.Property("height",this.attribute("height").value)));var i=e.parent;e.parent=null,e.render(t),e.parent=i}}},D.Element.use.prototype=new D.Element.RenderedElementBase,D.Element.mask=function(t){this.base=D.Element.ElementBase,this.base(t),this.apply=function(t,e){var i=this.attribute("x").toPixels("x"),n=this.attribute("y").toPixels("y"),s=this.attribute("width").toPixels("x"),a=this.attribute("height").toPixels("y");if(0==s&&0==a){for(var r=new D.BoundingBox,o=0;o<this.children.length;o++)r.addBoundingBox(this.children[o].getBoundingBox(t));i=Math.floor(r.x1),n=Math.floor(r.y1),s=Math.floor(r.width()),a=Math.floor(r.height())}var h=e.style("mask").value;e.style("mask").value="";var l=d(i+s,n+a),u=l.getContext("2d");D.SetDefaults(u),this.renderChildren(u),new D.Element.feColorMatrix({nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(u,0,0,i+s,n+a);var c=d(i+s,n+a),f=c.getContext("2d");D.SetDefaults(f),e.render(f),f.globalCompositeOperation="destination-in",f.fillStyle=u.createPattern(l,"no-repeat"),f.fillRect(0,0,i+s,n+a),t.fillStyle=f.createPattern(c,"no-repeat"),t.fillRect(0,0,i+s,n+a),e.style("mask").value=h},this.render=function(){}},D.Element.mask.prototype=new D.Element.ElementBase,D.Element.clipPath=function(t){this.base=D.Element.ElementBase,this.base(t),this.apply=function(t){var e="undefined"!=typeof CanvasRenderingContext2D,i=t.beginPath,n=t.closePath;e&&(CanvasRenderingContext2D.prototype.beginPath=function(){},CanvasRenderingContext2D.prototype.closePath=function(){}),i.call(t);for(var s=0;s<this.children.length;s++){var a=this.children[s];if(void 0!==a.path){var r=void 0!==a.elementTransform&&a.elementTransform();!r&&a.style("transform",!1,!0).hasValue()&&(r=new D.Transform(a.style("transform",!1,!0).value)),r&&r.apply(t),a.path(t),e&&(CanvasRenderingContext2D.prototype.closePath=n),r&&r.unapply(t)}}n.call(t),t.clip(),e&&(CanvasRenderingContext2D.prototype.beginPath=i,CanvasRenderingContext2D.prototype.closePath=n)},this.render=function(){}},D.Element.clipPath.prototype=new D.Element.ElementBase,D.Element.filter=function(t){this.base=D.Element.ElementBase,this.base(t),this.apply=function(t,e){var i=e.getBoundingBox(t),n=Math.floor(i.x1),s=Math.floor(i.y1),a=Math.floor(i.width()),r=Math.floor(i.height()),o=e.style("filter").value;e.style("filter").value="";for(var h=0,l=0,u=0;u<this.children.length;u++){var c=this.children[u].extraFilterDistance||0;h=Math.max(h,c),l=Math.max(l,c)}var f=d(a+2*h,r+2*l),p=f.getContext("2d");D.SetDefaults(p),p.translate(-n+h,-s+l),e.render(p);for(u=0;u<this.children.length;u++)"function"==typeof this.children[u].apply&&this.children[u].apply(p,0,0,a+2*h,r+2*l);t.drawImage(f,0,0,a+2*h,r+2*l,n-h,s-l,a+2*h,r+2*l),e.style("filter",!0).value=o},this.render=function(){}},D.Element.filter.prototype=new D.Element.ElementBase,D.Element.feDropShadow=function(t){this.base=D.Element.ElementBase,this.base(t),this.addStylesFromStyleDefinition(),this.apply=function(){}},D.Element.feDropShadow.prototype=new D.Element.ElementBase,D.Element.feMorphology=function(t){this.base=D.Element.ElementBase,this.base(t),this.apply=function(){}},D.Element.feMorphology.prototype=new D.Element.ElementBase,D.Element.feComposite=function(t){this.base=D.Element.ElementBase,this.base(t),this.apply=function(){}},D.Element.feComposite.prototype=new D.Element.ElementBase,D.Element.feColorMatrix=function(t){this.base=D.Element.ElementBase,this.base(t);var n=D.ToNumberArray(this.attribute("values").value);switch(this.attribute("type").valueOrDefault("matrix")){case"saturate":var e=n[0];n=[.213+.787*e,.715-.715*e,.072-.072*e,0,0,.213-.213*e,.715+.285*e,.072-.072*e,0,0,.213-.213*e,.715-.715*e,.072+.928*e,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var s=n[0]*Math.PI/180,i=function(t,e,i){return t+Math.cos(s)*e+Math.sin(s)*i};n=[i(.213,.787,-.213),i(.715,-.715,-.715),i(.072,-.072,.928),0,0,i(.213,-.213,.143),i(.715,.285,.14),i(.072,-.072,-.283),0,0,i(.213,-.213,-.787),i(.715,-.715,.715),i(.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}function d(t,e,i,n,s,a){return t[i*n*4+4*e+a]}function m(t,e,i,n,s,a,r){t[i*n*4+4*e+a]=r}function y(t,e){var i=n[t];return i*(i<0?e-255:e)}var v=this.attribute("includeOpacity").hasValue();this.apply=function(t,e,i,n,s){var a=t.getImageData(0,0,n,s);for(i=0;i<s;i++)for(e=0;e<n;e++){var r=d(a.data,e,i,n,0,0),o=d(a.data,e,i,n,0,1),h=d(a.data,e,i,n,0,2),l=d(a.data,e,i,n,0,3),u=y(0,r)+y(1,o)+y(2,h)+y(3,l)+y(4,1),c=y(5,r)+y(6,o)+y(7,h)+y(8,l)+y(9,1),f=y(10,r)+y(11,o)+y(12,h)+y(13,l)+y(14,1),p=y(15,r)+y(16,o)+y(17,h)+y(18,l)+y(19,1);v&&(u=c=f=0,p*=l/255),m(a.data,e,i,n,0,0,u),m(a.data,e,i,n,0,1,c),m(a.data,e,i,n,0,2,f),m(a.data,e,i,n,0,3,p)}t.clearRect(0,0,n,s),t.putImageData(a,0,0)}},D.Element.feColorMatrix.prototype=new D.Element.ElementBase,D.Element.feGaussianBlur=function(t){this.base=D.Element.ElementBase,this.base(t),this.blurRadius=Math.floor(this.attribute("stdDeviation").numValue()),this.extraFilterDistance=this.blurRadius,this.apply=function(t,e,i,n,s){v&&void 0!==v.canvasRGBA?(t.canvas.id=D.UniqueId(),t.canvas.style.display="none",c.body.appendChild(t.canvas),v.canvasRGBA(t.canvas,e,i,n,s,this.blurRadius),c.body.removeChild(t.canvas)):D.log("ERROR: StackBlur.js must be included for blur to work")}},D.Element.feGaussianBlur.prototype=new D.Element.ElementBase,D.Element.title=function(){},D.Element.title.prototype=new D.Element.ElementBase,D.Element.desc=function(){},D.Element.desc.prototype=new D.Element.ElementBase,D.Element.MISSING=function(t){D.log("ERROR: Element '"+t.nodeName+"' not yet implemented.")},D.Element.MISSING.prototype=new D.Element.ElementBase,D.CreateElement=function(t){var e=t.nodeName.replace(/^[^:]+:/,"");e=e.replace(/\-/g,"");var i=null;return(i=void 0!==D.Element[e]?new D.Element[e](t):new D.Element.MISSING(t)).type=t.nodeName,i},D.load=function(t,e){D.loadXml(t,D.ajax(e))},D.loadXml=function(t,e){D.loadXmlDoc(t,D.parseXml(e))},D.loadXmlDoc=function(a,r){D.init(a);var i=function(t){for(var e=a.canvas;e;)t.x-=e.offsetLeft,t.y-=e.offsetTop,e=e.offsetParent;return l.scrollX&&(t.x+=l.scrollX),l.scrollY&&(t.y+=l.scrollY),t};1!=D.opts.ignoreMouse&&(a.canvas.onclick=function(t){var e=i(new D.Point(null!=t?t.clientX:event.clientX,null!=t?t.clientY:event.clientY));D.Mouse.onclick(e.x,e.y)},a.canvas.onmousemove=function(t){var e=i(new D.Point(null!=t?t.clientX:event.clientX,null!=t?t.clientY:event.clientY));D.Mouse.onmousemove(e.x,e.y)});var o=D.CreateElement(r.documentElement);o.root=!0,o.addStylesFromStyleDefinition();var h=!0,n=function(){D.ViewPort.Clear(),a.canvas.parentNode?D.ViewPort.SetCurrent(a.canvas.parentNode.clientWidth,a.canvas.parentNode.clientHeight):D.ViewPort.SetCurrent(800,600),1!=D.opts.ignoreDimensions&&(h||null==D.opts.scaleWidth&&null==D.opts.scaleHeight)&&(o.style("width").hasValue()&&(a.canvas.width=o.style("width").toPixels("x"),a.canvas.style&&(a.canvas.style.width=a.canvas.width+"px")),o.style("height").hasValue()&&(a.canvas.height=o.style("height").toPixels("y"),a.canvas.style&&(a.canvas.style.height=a.canvas.height+"px")));var t=a.canvas.clientWidth||a.canvas.width,e=a.canvas.clientHeight||a.canvas.height;if(1==D.opts.ignoreDimensions&&o.style("width").hasValue()&&o.style("height").hasValue()&&(t=o.style("width").toPixels("x"),e=o.style("height").toPixels("y")),D.ViewPort.SetCurrent(t,e),null!=D.opts.offsetX&&(o.attribute("x",!0).value=D.opts.offsetX),null!=D.opts.offsetY&&(o.attribute("y",!0).value=D.opts.offsetY),null!=D.opts.scaleWidth||null!=D.opts.scaleHeight){var i=null,n=null,s=D.ToNumberArray(o.attribute("viewBox").value);null!=D.opts.scaleWidth&&(o.attribute("width").hasValue()?i=o.attribute("width").toPixels("x")/D.opts.scaleWidth:isNaN(s[2])||(i=s[2]/D.opts.scaleWidth)),null!=D.opts.scaleHeight&&(o.attribute("height").hasValue()?n=o.attribute("height").toPixels("y")/D.opts.scaleHeight:isNaN(s[3])||(n=s[3]/D.opts.scaleHeight)),null==i&&(i=n),null==n&&(n=i),o.attribute("width",!0).value=D.opts.scaleWidth,o.attribute("height",!0).value=D.opts.scaleHeight,o.style("transform",!0,!0).value+=" scale("+1/i+","+1/n+")"}1!=D.opts.ignoreClear&&a.clearRect(0,0,t,e),o.render(a),h&&(h=!1,"function"==typeof D.opts.renderCallback&&D.opts.renderCallback(r))},s=!0;D.ImagesLoaded()&&(s=!1,n()),D.intervalID=setInterval(function(){var t=!1;if(s&&D.ImagesLoaded()&&(t=!(s=!1)),1!=D.opts.ignoreMouse&&(t=t||D.Mouse.hasEvents()),1!=D.opts.ignoreAnimation)for(var e=0;e<D.Animations.length;e++){var i=D.Animations[e].update(1e3/D.FRAMERATE);t=t||i}"function"==typeof D.opts.forceRedraw&&1==D.opts.forceRedraw()&&(t=!0),t&&(n(),D.Mouse.runEvents())},1e3/D.FRAMERATE)},D.stop=function(){D.intervalID&&clearInterval(D.intervalID)},D.Mouse=new function(){this.events=[],this.hasEvents=function(){return 0!=this.events.length},this.onclick=function(t,e){this.events.push({type:"onclick",x:t,y:e,run:function(t){t.onclick&&t.onclick()}})},this.onmousemove=function(t,e){this.events.push({type:"onmousemove",x:t,y:e,run:function(t){t.onmousemove&&t.onmousemove()}})},this.eventElements=[],this.checkPath=function(t,e){for(var i=0;i<this.events.length;i++){var n=this.events[i];e.isPointInPath&&e.isPointInPath(n.x,n.y)&&(this.eventElements[i]=t)}},this.checkBoundingBox=function(t,e){if(e)for(var i=0;i<this.events.length;i++){var n=this.events[i];e.isPointInBox(n.x,n.y)&&(this.eventElements[i]=t)}},this.runEvents=function(){D.ctx.canvas.style.cursor="";for(var t=0;t<this.events.length;t++)for(var e=this.events[t],i=this.eventElements[t];i;)e.run(i),i=i.parent;this.events=[],this.eventElements=[]}},D}"undefined"!=typeof CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.drawSvg=function(t,e,i,n,s,a){var r={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:e,offsetY:i,scaleWidth:n,scaleHeight:s};for(var o in a)a.hasOwnProperty(o)&&(r[o]=a[o]);p(this.canvas,t,r)}),p._build=m,t.exports=p}(t={exports:{}},t.exports),t.exports});
/** @license d3.js v3.5.12 | Copyright (c) 2010-2017 Mike Bostock [https://github.com/d3/d3] | BSD License [https://github.com/d3/d3/blob/master/LICENSE] */
!function(){function n(n){return n&&(n.ownerDocument||n.document||n).documentElement}function t(n){return n&&(n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView)}function e(n,t){return t>n?-1:n>t?1:n>=t?0:NaN}function r(n){return null===n?NaN:+n}function u(n){return!isNaN(n)}function i(n){return{left:function(t,e,r,u){for(arguments.length<3&&(r=0),arguments.length<4&&(u=t.length);u>r;){var i=r+u>>>1;n(t[i],e)<0?r=i+1:u=i}return r},right:function(t,e,r,u){for(arguments.length<3&&(r=0),arguments.length<4&&(u=t.length);u>r;){var i=r+u>>>1;n(t[i],e)>0?u=i:r=i+1}return r}}}function a(n){return n.length}function o(n){for(var t=1;n*t%1;)t*=10;return t}function l(n,t){for(var e in t)Object.defineProperty(n.prototype,e,{value:t[e],enumerable:!1})}function c(){this._=Object.create(null)}function s(n){return(n+="")===xa||n[0]===ba?ba+n:n}function f(n){return(n+="")[0]===ba?n.slice(1):n}function h(n){return s(n)in this._}function g(n){return(n=s(n))in this._&&delete this._[n]}function p(){var n=[];for(var t in this._)n.push(f(t));return n}function v(){var n=0;for(var t in this._)++n;return n}function d(){for(var n in this._)return!1;return!0}function m(){this._=Object.create(null)}function y(n){return n}function M(n,t,e){return function(){var r=e.apply(t,arguments);return r===t?n:r}}function x(n,t){if(t in n)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e=0,r=_a.length;r>e;++e){var u=_a[e]+t;if(u in n)return u}}function b(){}function _(){}function w(n){function t(){for(var t,r=e,u=-1,i=r.length;++u<i;)(t=r[u].on)&&t.apply(this,arguments);return n}var e=[],r=new c;return t.on=function(t,u){var i,a=r.get(t);return arguments.length<2?a&&a.on:(a&&(a.on=null,e=e.slice(0,i=e.indexOf(a)).concat(e.slice(i+1)),r.remove(t)),u&&e.push(r.set(t,{on:u})),n)},t}function S(){oa.event.preventDefault()}function k(){for(var n,t=oa.event;n=t.sourceEvent;)t=n;return t}function N(n){for(var t=new _,e=0,r=arguments.length;++e<r;)t[arguments[e]]=w(t);return t.of=function(e,r){return function(u){try{var i=u.sourceEvent=oa.event;u.target=n,oa.event=u,t[u.type].apply(e,r)}finally{oa.event=i}}},t}function E(n){return Sa(n,Aa),n}function A(n){return"function"==typeof n?n:function(){return ka(n,this)}}function C(n){return"function"==typeof n?n:function(){return Na(n,this)}}function z(n,t){function e(){this.removeAttribute(n)}function r(){this.removeAttributeNS(n.space,n.local)}function u(){this.setAttribute(n,t)}function i(){this.setAttributeNS(n.space,n.local,t)}function a(){var e=t.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}function o(){var e=t.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}return n=oa.ns.qualify(n),null==t?n.local?r:e:"function"==typeof t?n.local?o:a:n.local?i:u}function L(n){return n.trim().replace(/\s+/g," ")}function q(n){return new RegExp("(?:^|\\s+)"+oa.requote(n)+"(?:\\s+|$)","g")}function T(n){return(n+"").trim().split(/^|\s+/)}function R(n,t){function e(){for(var e=-1;++e<u;)n[e](this,t)}function r(){for(var e=-1,r=t.apply(this,arguments);++e<u;)n[e](this,r)}n=T(n).map(D);var u=n.length;return"function"==typeof t?r:e}function D(n){var t=q(n);return function(e,r){if(u=e.classList)return r?u.add(n):u.remove(n);var u=e.getAttribute("class")||"";r?(t.lastIndex=0,t.test(u)||e.setAttribute("class",L(u+" "+n))):e.setAttribute("class",L(u.replace(t," ")))}}function P(n,t,e){function r(){this.style.removeProperty(n)}function u(){this.style.setProperty(n,t,e)}function i(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(n):this.style.setProperty(n,r,e)}return null==t?r:"function"==typeof t?i:u}function j(n,t){function e(){delete this[n]}function r(){this[n]=t}function u(){var e=t.apply(this,arguments);null==e?delete this[n]:this[n]=e}return null==t?e:"function"==typeof t?u:r}function U(n){function t(){var t=this.ownerDocument,e=this.namespaceURI;return e?t.createElementNS(e,n):t.createElement(n)}function e(){return this.ownerDocument.createElementNS(n.space,n.local)}return"function"==typeof n?n:(n=oa.ns.qualify(n)).local?e:t}function F(){var n=this.parentNode;n&&n.removeChild(this)}function H(n){return{__data__:n}}function O(n){return function(){return Ea(this,n)}}function I(n){return arguments.length||(n=e),function(t,e){return t&&e?n(t.__data__,e.__data__):!t-!e}}function Y(n,t){for(var e=0,r=n.length;r>e;e++)for(var u,i=n[e],a=0,o=i.length;o>a;a++)(u=i[a])&&t(u,a,e);return n}function Z(n){return Sa(n,za),n}function V(n){var t,e;return function(r,u,i){var a,o=n[i].update,l=o.length;for(i!=e&&(e=i,t=0),u>=t&&(t=u+1);!(a=o[t])&&++t<l;);return a}}function X(n,t,e){function r(){var t=this[a];t&&(this.removeEventListener(n,t,t.$),delete this[a])}function u(){var u=l(t,ca(arguments));r.call(this),this.addEventListener(n,this[a]=u,u.$=e),u._=t}function i(){var t,e=new RegExp("^__on([^.]+)"+oa.requote(n)+"$");for(var r in this)if(t=r.match(e)){var u=this[r];this.removeEventListener(t[1],u,u.$),delete this[r]}}var a="__on"+n,o=n.indexOf("."),l=$;o>0&&(n=n.slice(0,o));var c=La.get(n);return c&&(n=c,l=B),o?t?u:r:t?b:i}function $(n,t){return function(e){var r=oa.event;oa.event=e,t[0]=this.__data__;try{n.apply(this,t)}finally{oa.event=r}}}function B(n,t){var e=$(n,t);return function(n){var t=this,r=n.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||e.call(t,n)}}function W(e){var r=".dragsuppress-"+ ++Ta,u="click"+r,i=oa.select(t(e)).on("touchmove"+r,S).on("dragstart"+r,S).on("selectstart"+r,S);if(null==qa&&(qa="onselectstart"in e?!1:x(e.style,"userSelect")),qa){var a=n(e).style,o=a[qa];a[qa]="none"}return function(n){if(i.on(r,null),qa&&(a[qa]=o),n){var t=function(){i.on(u,null)};i.on(u,function(){S(),t()},!0),setTimeout(t,0)}}}function J(n,e){e.changedTouches&&(e=e.changedTouches[0]);var r=n.ownerSVGElement||n;if(r.createSVGPoint){var u=r.createSVGPoint();if(0>Ra){var i=t(n);if(i.scrollX||i.scrollY){r=oa.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var a=r[0][0].getScreenCTM();Ra=!(a.f||a.e),r.remove()}}return Ra?(u.x=e.pageX,u.y=e.pageY):(u.x=e.clientX,u.y=e.clientY),u=u.matrixTransform(n.getScreenCTM().inverse()),[u.x,u.y]}var o=n.getBoundingClientRect();return[e.clientX-o.left-n.clientLeft,e.clientY-o.top-n.clientTop]}function G(){return oa.event.changedTouches[0].identifier}function K(n){return n>0?1:0>n?-1:0}function Q(n,t,e){return(t[0]-n[0])*(e[1]-n[1])-(t[1]-n[1])*(e[0]-n[0])}function nn(n){return n>1?0:-1>n?ja:Math.acos(n)}function tn(n){return n>1?Ha:-1>n?-Ha:Math.asin(n)}function en(n){return((n=Math.exp(n))-1/n)/2}function rn(n){return((n=Math.exp(n))+1/n)/2}function un(n){return((n=Math.exp(2*n))-1)/(n+1)}function an(n){return(n=Math.sin(n/2))*n}function on(){}function ln(n,t,e){return this instanceof ln?(this.h=+n,this.s=+t,void(this.l=+e)):arguments.length<2?n instanceof ln?new ln(n.h,n.s,n.l):_n(""+n,wn,ln):new ln(n,t,e)}function cn(n,t,e){function r(n){return n>360?n-=360:0>n&&(n+=360),60>n?i+(a-i)*n/60:180>n?a:240>n?i+(a-i)*(240-n)/60:i}function u(n){return Math.round(255*r(n))}var i,a;return n=isNaN(n)?0:(n%=360)<0?n+360:n,t=isNaN(t)?0:0>t?0:t>1?1:t,e=0>e?0:e>1?1:e,a=.5>=e?e*(1+t):e+t-e*t,i=2*e-a,new yn(u(n+120),u(n),u(n-120))}function sn(n,t,e){return this instanceof sn?(this.h=+n,this.c=+t,void(this.l=+e)):arguments.length<2?n instanceof sn?new sn(n.h,n.c,n.l):n instanceof hn?pn(n.l,n.a,n.b):pn((n=Sn((n=oa.rgb(n)).r,n.g,n.b)).l,n.a,n.b):new sn(n,t,e)}function fn(n,t,e){return isNaN(n)&&(n=0),isNaN(t)&&(t=0),new hn(e,Math.cos(n*=Oa)*t,Math.sin(n)*t)}function hn(n,t,e){return this instanceof hn?(this.l=+n,this.a=+t,void(this.b=+e)):arguments.length<2?n instanceof hn?new hn(n.l,n.a,n.b):n instanceof sn?fn(n.h,n.c,n.l):Sn((n=yn(n)).r,n.g,n.b):new hn(n,t,e)}function gn(n,t,e){var r=(n+16)/116,u=r+t/500,i=r-e/200;return u=vn(u)*Ka,r=vn(r)*Qa,i=vn(i)*no,new yn(mn(3.2404542*u-1.5371385*r-.4985314*i),mn(-.969266*u+1.8760108*r+.041556*i),mn(.0556434*u-.2040259*r+1.0572252*i))}function pn(n,t,e){return n>0?new sn(Math.atan2(e,t)*Ia,Math.sqrt(t*t+e*e),n):new sn(NaN,NaN,n)}function vn(n){return n>.206893034?n*n*n:(n-4/29)/7.787037}function dn(n){return n>.008856?Math.pow(n,1/3):7.787037*n+4/29}function mn(n){return Math.round(255*(.00304>=n?12.92*n:1.055*Math.pow(n,1/2.4)-.055))}function yn(n,t,e){return this instanceof yn?(this.r=~~n,this.g=~~t,void(this.b=~~e)):arguments.length<2?n instanceof yn?new yn(n.r,n.g,n.b):_n(""+n,yn,cn):new yn(n,t,e)}function Mn(n){return new yn(n>>16,n>>8&255,255&n)}function xn(n){return Mn(n)+""}function bn(n){return 16>n?"0"+Math.max(0,n).toString(16):Math.min(255,n).toString(16)}function _n(n,t,e){var r,u,i,a=0,o=0,l=0;if(r=/([a-z]+)\((.*)\)/.exec(n=n.toLowerCase()))switch(u=r[2].split(","),r[1]){case"hsl":return e(parseFloat(u[0]),parseFloat(u[1])/100,parseFloat(u[2])/100);case"rgb":return t(Nn(u[0]),Nn(u[1]),Nn(u[2]))}return(i=ro.get(n))?t(i.r,i.g,i.b):(null==n||"#"!==n.charAt(0)||isNaN(i=parseInt(n.slice(1),16))||(4===n.length?(a=(3840&i)>>4,a=a>>4|a,o=240&i,o=o>>4|o,l=15&i,l=l<<4|l):7===n.length&&(a=(16711680&i)>>16,o=(65280&i)>>8,l=255&i)),t(a,o,l))}function wn(n,t,e){var r,u,i=Math.min(n/=255,t/=255,e/=255),a=Math.max(n,t,e),o=a-i,l=(a+i)/2;return o?(u=.5>l?o/(a+i):o/(2-a-i),r=n==a?(t-e)/o+(e>t?6:0):t==a?(e-n)/o+2:(n-t)/o+4,r*=60):(r=NaN,u=l>0&&1>l?0:r),new ln(r,u,l)}function Sn(n,t,e){n=kn(n),t=kn(t),e=kn(e);var r=dn((.4124564*n+.3575761*t+.1804375*e)/Ka),u=dn((.2126729*n+.7151522*t+.072175*e)/Qa),i=dn((.0193339*n+.119192*t+.9503041*e)/no);return hn(116*u-16,500*(r-u),200*(u-i))}function kn(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function Nn(n){var t=parseFloat(n);return"%"===n.charAt(n.length-1)?Math.round(2.55*t):t}function En(n){return"function"==typeof n?n:function(){return n}}function An(n){return function(t,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=null),Cn(t,e,n,r)}}function Cn(n,t,e,r){function u(){var n,t=l.status;if(!t&&Ln(l)||t>=200&&300>t||304===t){try{n=e.call(i,l)}catch(r){return void a.error.call(i,r)}a.load.call(i,n)}else a.error.call(i,l)}var i={},a=oa.dispatch("beforesend","progress","load","error"),o={},l=new XMLHttpRequest,c=null;return!this.XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(n)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=u:l.onreadystatechange=function(){l.readyState>3&&u()},l.onprogress=function(n){var t=oa.event;oa.event=n;try{a.progress.call(i,l)}finally{oa.event=t}},i.header=function(n,t){return n=(n+"").toLowerCase(),arguments.length<2?o[n]:(null==t?delete o[n]:o[n]=t+"",i)},i.mimeType=function(n){return arguments.length?(t=null==n?null:n+"",i):t},i.responseType=function(n){return arguments.length?(c=n,i):c},i.response=function(n){return e=n,i},["get","post"].forEach(function(n){i[n]=function(){return i.send.apply(i,[n].concat(ca(arguments)))}}),i.send=function(e,r,u){if(2===arguments.length&&"function"==typeof r&&(u=r,r=null),l.open(e,n,!0),null==t||"accept"in o||(o.accept=t+",*/*"),l.setRequestHeader)for(var s in o)l.setRequestHeader(s,o[s]);return null!=t&&l.overrideMimeType&&l.overrideMimeType(t),null!=c&&(l.responseType=c),null!=u&&i.on("error",u).on("load",function(n){u(null,n)}),a.beforesend.call(i,l),l.send(null==r?null:r),i},i.abort=function(){return l.abort(),i},oa.rebind(i,a,"on"),null==r?i:i.get(zn(r))}function zn(n){return 1===n.length?function(t,e){n(null==t?e:null)}:n}function Ln(n){var t=n.responseType;return t&&"text"!==t?n.response:n.responseText}function qn(n,t,e){var r=arguments.length;2>r&&(t=0),3>r&&(e=Date.now());var u=e+t,i={c:n,t:u,n:null};return io?io.n=i:uo=i,io=i,ao||(oo=clearTimeout(oo),ao=1,lo(Tn)),i}function Tn(){var n=Rn(),t=Dn()-n;t>24?(isFinite(t)&&(clearTimeout(oo),oo=setTimeout(Tn,t)),ao=0):(ao=1,lo(Tn))}function Rn(){for(var n=Date.now(),t=uo;t;)n>=t.t&&t.c(n-t.t)&&(t.c=null),t=t.n;return n}function Dn(){for(var n,t=uo,e=1/0;t;)t.c?(t.t<e&&(e=t.t),t=(n=t).n):t=n?n.n=t.n:uo=t.n;return io=n,e}function Pn(n,t){return t-(n?Math.ceil(Math.log(n)/Math.LN10):1)}function jn(n,t){var e=Math.pow(10,3*Ma(8-t));return{scale:t>8?function(n){return n/e}:function(n){return n*e},symbol:n}}function Un(n){var t=n.decimal,e=n.thousands,r=n.grouping,u=n.currency,i=r&&e?function(n,t){for(var u=n.length,i=[],a=0,o=r[0],l=0;u>0&&o>0&&(l+o+1>t&&(o=Math.max(1,t-l)),i.push(n.substring(u-=o,u+o)),!((l+=o+1)>t));)o=r[a=(a+1)%r.length];return i.reverse().join(e)}:y;return function(n){var e=so.exec(n),r=e[1]||" ",a=e[2]||">",o=e[3]||"-",l=e[4]||"",c=e[5],s=+e[6],f=e[7],h=e[8],g=e[9],p=1,v="",d="",m=!1,y=!0;switch(h&&(h=+h.substring(1)),(c||"0"===r&&"="===a)&&(c=r="0",a="="),g){case"n":f=!0,g="g";break;case"%":p=100,d="%",g="f";break;case"p":p=100,d="%",g="r";break;case"b":case"o":case"x":case"X":"#"===l&&(v="0"+g.toLowerCase());case"c":y=!1;case"d":m=!0,h=0;break;case"s":p=-1,g="r"}"$"===l&&(v=u[0],d=u[1]),"r"!=g||h||(g="g"),null!=h&&("g"==g?h=Math.max(1,Math.min(21,h)):("e"==g||"f"==g)&&(h=Math.max(0,Math.min(20,h)))),g=fo.get(g)||Fn;var M=c&&f;return function(n){var e=d;if(m&&n%1)return"";var u=0>n||0===n&&0>1/n?(n=-n,"-"):"-"===o?"":o;if(0>p){var l=oa.formatPrefix(n,h);n=l.scale(n),e=l.symbol+d}else n*=p;n=g(n,h);var x,b,_=n.lastIndexOf(".");if(0>_){var w=y?n.lastIndexOf("e"):-1;0>w?(x=n,b=""):(x=n.substring(0,w),b=n.substring(w))}else x=n.substring(0,_),b=t+n.substring(_+1);!c&&f&&(x=i(x,1/0));var S=v.length+x.length+b.length+(M?0:u.length),k=s>S?new Array(S=s-S+1).join(r):"";return M&&(x=i(k+x,k.length?s-b.length:1/0)),u+=v,n=x+b,("<"===a?u+n+k:">"===a?k+u+n:"^"===a?k.substring(0,S>>=1)+u+n+k.substring(S):u+(M?n:k+n))+e}}}function Fn(n){return n+""}function Hn(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function On(n,t,e){function r(t){var e=n(t),r=i(e,1);return r-t>t-e?e:r}function u(e){return t(e=n(new go(e-1)),1),e}function i(n,e){return t(n=new go(+n),e),n}function a(n,r,i){var a=u(n),o=[];if(i>1)for(;r>a;)e(a)%i||o.push(new Date(+a)),t(a,1);else for(;r>a;)o.push(new Date(+a)),t(a,1);return o}function o(n,t,e){try{go=Hn;var r=new Hn;return r._=n,a(r,t,e)}finally{go=Date}}n.floor=n,n.round=r,n.ceil=u,n.offset=i,n.range=a;var l=n.utc=In(n);return l.floor=l,l.round=In(r),l.ceil=In(u),l.offset=In(i),l.range=o,n}function In(n){return function(t,e){try{go=Hn;var r=new Hn;return r._=t,n(r,e)._}finally{go=Date}}}function Yn(n){function t(n){function t(t){for(var e,u,i,a=[],o=-1,l=0;++o<r;)37===n.charCodeAt(o)&&(a.push(n.slice(l,o)),null!=(u=vo[e=n.charAt(++o)])&&(e=n.charAt(++o)),(i=A[e])&&(e=i(t,null==u?"e"===e?" ":"0":u)),a.push(e),l=o+1);return a.push(n.slice(l,o)),a.join("")}var r=n.length;return t.parse=function(t){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},u=e(r,n,t,0);if(u!=t.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var i=null!=r.Z&&go!==Hn,a=new(i?Hn:go);return"j"in r?a.setFullYear(r.y,0,r.j):"W"in r||"U"in r?("w"in r||(r.w="W"in r?1:0),a.setFullYear(r.y,0,1),a.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(a.getDay()+5)%7:r.w+7*r.U-(a.getDay()+6)%7)):a.setFullYear(r.y,r.m,r.d),a.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),i?a._:a},t.toString=function(){return n},t}function e(n,t,e,r){for(var u,i,a,o=0,l=t.length,c=e.length;l>o;){if(r>=c)return-1;if(u=t.charCodeAt(o++),37===u){if(a=t.charAt(o++),i=C[a in vo?t.charAt(o++):a],!i||(r=i(n,e,r))<0)return-1}else if(u!=e.charCodeAt(r++))return-1}return r}function r(n,t,e){_.lastIndex=0;var r=_.exec(t.slice(e));return r?(n.w=w.get(r[0].toLowerCase()),e+r[0].length):-1}function u(n,t,e){x.lastIndex=0;var r=x.exec(t.slice(e));return r?(n.w=b.get(r[0].toLowerCase()),e+r[0].length):-1}function i(n,t,e){N.lastIndex=0;var r=N.exec(t.slice(e));return r?(n.m=E.get(r[0].toLowerCase()),e+r[0].length):-1}function a(n,t,e){S.lastIndex=0;var r=S.exec(t.slice(e));return r?(n.m=k.get(r[0].toLowerCase()),e+r[0].length):-1}function o(n,t,r){return e(n,A.c.toString(),t,r)}function l(n,t,r){return e(n,A.x.toString(),t,r)}function c(n,t,r){return e(n,A.X.toString(),t,r)}function s(n,t,e){var r=M.get(t.slice(e,e+=2).toLowerCase());return null==r?-1:(n.p=r,e)}var f=n.dateTime,h=n.date,g=n.time,p=n.periods,v=n.days,d=n.shortDays,m=n.months,y=n.shortMonths;t.utc=function(n){function e(n){try{go=Hn;var t=new go;return t._=n,r(t)}finally{go=Date}}var r=t(n);return e.parse=function(n){try{go=Hn;var t=r.parse(n);return t&&t._}finally{go=Date}},e.toString=r.toString,e},t.multi=t.utc.multi=ct;var M=oa.map(),x=Vn(v),b=Xn(v),_=Vn(d),w=Xn(d),S=Vn(m),k=Xn(m),N=Vn(y),E=Xn(y);p.forEach(function(n,t){M.set(n.toLowerCase(),t)});var A={a:function(n){return d[n.getDay()]},A:function(n){return v[n.getDay()]},b:function(n){return y[n.getMonth()]},B:function(n){return m[n.getMonth()]},c:t(f),d:function(n,t){return Zn(n.getDate(),t,2)},e:function(n,t){return Zn(n.getDate(),t,2)},H:function(n,t){return Zn(n.getHours(),t,2)},I:function(n,t){return Zn(n.getHours()%12||12,t,2)},j:function(n,t){return Zn(1+ho.dayOfYear(n),t,3)},L:function(n,t){return Zn(n.getMilliseconds(),t,3)},m:function(n,t){return Zn(n.getMonth()+1,t,2)},M:function(n,t){return Zn(n.getMinutes(),t,2)},p:function(n){return p[+(n.getHours()>=12)]},S:function(n,t){return Zn(n.getSeconds(),t,2)},U:function(n,t){return Zn(ho.sundayOfYear(n),t,2)},w:function(n){return n.getDay()},W:function(n,t){return Zn(ho.mondayOfYear(n),t,2)},x:t(h),X:t(g),y:function(n,t){return Zn(n.getFullYear()%100,t,2)},Y:function(n,t){return Zn(n.getFullYear()%1e4,t,4)},Z:ot,"%":function(){return"%"}},C={a:r,A:u,b:i,B:a,c:o,d:tt,e:tt,H:rt,I:rt,j:et,L:at,m:nt,M:ut,p:s,S:it,U:Bn,w:$n,W:Wn,x:l,X:c,y:Gn,Y:Jn,Z:Kn,"%":lt};return t}function Zn(n,t,e){var r=0>n?"-":"",u=(r?-n:n)+"",i=u.length;return r+(e>i?new Array(e-i+1).join(t)+u:u)}function Vn(n){return new RegExp("^(?:"+n.map(oa.requote).join("|")+")","i")}function Xn(n){for(var t=new c,e=-1,r=n.length;++e<r;)t.set(n[e].toLowerCase(),e);return t}function $n(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+1));return r?(n.w=+r[0],e+r[0].length):-1}function Bn(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e));return r?(n.U=+r[0],e+r[0].length):-1}function Wn(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e));return r?(n.W=+r[0],e+r[0].length):-1}function Jn(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+4));return r?(n.y=+r[0],e+r[0].length):-1}function Gn(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+2));return r?(n.y=Qn(+r[0]),e+r[0].length):-1}function Kn(n,t,e){return/^[+-]\d{4}$/.test(t=t.slice(e,e+5))?(n.Z=-t,e+5):-1}function Qn(n){return n+(n>68?1900:2e3)}function nt(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+2));return r?(n.m=r[0]-1,e+r[0].length):-1}function tt(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+2));return r?(n.d=+r[0],e+r[0].length):-1}function et(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+3));return r?(n.j=+r[0],e+r[0].length):-1}function rt(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+2));return r?(n.H=+r[0],e+r[0].length):-1}function ut(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+2));return r?(n.M=+r[0],e+r[0].length):-1}function it(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+2));return r?(n.S=+r[0],e+r[0].length):-1}function at(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+3));return r?(n.L=+r[0],e+r[0].length):-1}function ot(n){var t=n.getTimezoneOffset(),e=t>0?"-":"+",r=Ma(t)/60|0,u=Ma(t)%60;return e+Zn(r,"0",2)+Zn(u,"0",2)}function lt(n,t,e){yo.lastIndex=0;var r=yo.exec(t.slice(e,e+1));return r?e+r[0].length:-1}function ct(n){for(var t=n.length,e=-1;++e<t;)n[e][0]=this(n[e][0]);return function(t){for(var e=0,r=n[e];!r[1](t);)r=n[++e];return r[0](t)}}function st(){}function ft(n,t,e){var r=e.s=n+t,u=r-n,i=r-u;e.t=n-i+(t-u)}function ht(n,t){n&&_o.hasOwnProperty(n.type)&&_o[n.type](n,t)}function gt(n,t,e){var r,u=-1,i=n.length-e;for(t.lineStart();++u<i;)r=n[u],t.point(r[0],r[1],r[2]);t.lineEnd()}function pt(n,t){var e=-1,r=n.length;for(t.polygonStart();++e<r;)gt(n[e],t,1);t.polygonEnd()}function vt(){function n(n,t){n*=Oa,t=t*Oa/2+ja/4;var e=n-r,a=e>=0?1:-1,o=a*e,l=Math.cos(t),c=Math.sin(t),s=i*c,f=u*l+s*Math.cos(o),h=s*a*Math.sin(o);So.add(Math.atan2(h,f)),r=n,u=l,i=c}var t,e,r,u,i;ko.point=function(a,o){ko.point=n,r=(t=a)*Oa,u=Math.cos(o=(e=o)*Oa/2+ja/4),i=Math.sin(o)},ko.lineEnd=function(){n(t,e)}}function dt(n){var t=n[0],e=n[1],r=Math.cos(e);return[r*Math.cos(t),r*Math.sin(t),Math.sin(e)]}function mt(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function yt(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}function Mt(n,t){n[0]+=t[0],n[1]+=t[1],n[2]+=t[2]}function xt(n,t){return[n[0]*t,n[1]*t,n[2]*t]}function bt(n){var t=Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=t,n[1]/=t,n[2]/=t}function _t(n){return[Math.atan2(n[1],n[0]),tn(n[2])]}function wt(n,t){return Ma(n[0]-t[0])<Da&&Ma(n[1]-t[1])<Da}function St(n,t){n*=Oa;var e=Math.cos(t*=Oa);kt(e*Math.cos(n),e*Math.sin(n),Math.sin(t))}function kt(n,t,e){++No,Ao+=(n-Ao)/No,Co+=(t-Co)/No,zo+=(e-zo)/No}function Nt(){function n(n,u){n*=Oa;var i=Math.cos(u*=Oa),a=i*Math.cos(n),o=i*Math.sin(n),l=Math.sin(u),c=Math.atan2(Math.sqrt((c=e*l-r*o)*c+(c=r*a-t*l)*c+(c=t*o-e*a)*c),t*a+e*o+r*l);Eo+=c,Lo+=c*(t+(t=a)),qo+=c*(e+(e=o)),To+=c*(r+(r=l)),kt(t,e,r)}var t,e,r;jo.point=function(u,i){u*=Oa;var a=Math.cos(i*=Oa);t=a*Math.cos(u),e=a*Math.sin(u),r=Math.sin(i),jo.point=n,kt(t,e,r)}}function Et(){jo.point=St}function At(){function n(n,t){n*=Oa;var e=Math.cos(t*=Oa),a=e*Math.cos(n),o=e*Math.sin(n),l=Math.sin(t),c=u*l-i*o,s=i*a-r*l,f=r*o-u*a,h=Math.sqrt(c*c+s*s+f*f),g=r*a+u*o+i*l,p=h&&-nn(g)/h,v=Math.atan2(h,g);Ro+=p*c,Do+=p*s,Po+=p*f,Eo+=v,Lo+=v*(r+(r=a)),qo+=v*(u+(u=o)),To+=v*(i+(i=l)),kt(r,u,i)}var t,e,r,u,i;jo.point=function(a,o){t=a,e=o,jo.point=n,a*=Oa;var l=Math.cos(o*=Oa);r=l*Math.cos(a),u=l*Math.sin(a),i=Math.sin(o),kt(r,u,i)},jo.lineEnd=function(){n(t,e),jo.lineEnd=Et,jo.point=St}}function Ct(n,t){function e(e,r){return e=n(e,r),t(e[0],e[1])}return n.invert&&t.invert&&(e.invert=function(e,r){return e=t.invert(e,r),e&&n.invert(e[0],e[1])}),e}function zt(){return!0}function Lt(n,t,e,r,u){var i=[],a=[];if(n.forEach(function(n){if(!((t=n.length-1)<=0)){var t,e=n[0],r=n[t];if(wt(e,r)){u.lineStart();for(var o=0;t>o;++o)u.point((e=n[o])[0],e[1]);return void u.lineEnd()}var l=new Tt(e,n,null,!0),c=new Tt(e,null,l,!1);l.o=c,i.push(l),a.push(c),l=new Tt(r,n,null,!1),c=new Tt(r,null,l,!0),l.o=c,i.push(l),a.push(c)}}),a.sort(t),qt(i),qt(a),i.length){for(var o=0,l=e,c=a.length;c>o;++o)a[o].e=l=!l;for(var s,f,h=i[0];;){for(var g=h,p=!0;g.v;)if((g=g.n)===h)return;s=g.z,u.lineStart();do{if(g.v=g.o.v=!0,g.e){if(p)for(var o=0,c=s.length;c>o;++o)u.point((f=s[o])[0],f[1]);else r(g.x,g.n.x,1,u);g=g.n}else{if(p){s=g.p.z;for(var o=s.length-1;o>=0;--o)u.point((f=s[o])[0],f[1])}else r(g.x,g.p.x,-1,u);g=g.p}g=g.o,s=g.z,p=!p}while(!g.v);u.lineEnd()}}}function qt(n){if(t=n.length){for(var t,e,r=0,u=n[0];++r<t;)u.n=e=n[r],e.p=u,u=e;u.n=e=n[0],e.p=u}}function Tt(n,t,e,r){this.x=n,this.z=t,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function Rt(n,t,e,r){return function(u,i){function a(t,e){var r=u(t,e);n(t=r[0],e=r[1])&&i.point(t,e)}function o(n,t){var e=u(n,t);d.point(e[0],e[1])}function l(){y.point=o,d.lineStart()}function c(){y.point=a,d.lineEnd()}function s(n,t){v.push([n,t]);var e=u(n,t);x.point(e[0],e[1])}function f(){x.lineStart(),v=[]}function h(){s(v[0][0],v[0][1]),x.lineEnd();var n,t=x.clean(),e=M.buffer(),r=e.length;if(v.pop(),p.push(v),v=null,r)if(1&t){n=e[0];var u,r=n.length-1,a=-1;if(r>0){for(b||(i.polygonStart(),b=!0),i.lineStart();++a<r;)i.point((u=n[a])[0],u[1]);i.lineEnd()}}else r>1&&2&t&&e.push(e.pop().concat(e.shift())),g.push(e.filter(Dt))}var g,p,v,d=t(i),m=u.invert(r[0],r[1]),y={point:a,lineStart:l,lineEnd:c,polygonStart:function(){y.point=s,y.lineStart=f,y.lineEnd=h,g=[],p=[]},polygonEnd:function(){y.point=a,y.lineStart=l,y.lineEnd=c,g=oa.merge(g);var n=Ot(m,p);g.length?(b||(i.polygonStart(),b=!0),Lt(g,jt,n,e,i)):n&&(b||(i.polygonStart(),b=!0),i.lineStart(),e(null,null,1,i),i.lineEnd()),b&&(i.polygonEnd(),b=!1),g=p=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}},M=Pt(),x=t(M),b=!1;return y}}function Dt(n){return n.length>1}function Pt(){var n,t=[];return{lineStart:function(){t.push(n=[])},point:function(t,e){n.push([t,e])},lineEnd:b,buffer:function(){var e=t;return t=[],n=null,e},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function jt(n,t){return((n=n.x)[0]<0?n[1]-Ha-Da:Ha-n[1])-((t=t.x)[0]<0?t[1]-Ha-Da:Ha-t[1])}function Ut(n){var t,e=NaN,r=NaN,u=NaN;return{lineStart:function(){n.lineStart(),t=1},point:function(i,a){var o=i>0?ja:-ja,l=Ma(i-e);Ma(l-ja)<Da?(n.point(e,r=(r+a)/2>0?Ha:-Ha),n.point(u,r),n.lineEnd(),n.lineStart(),n.point(o,r),n.point(i,r),t=0):u!==o&&l>=ja&&(Ma(e-u)<Da&&(e-=u*Da),Ma(i-o)<Da&&(i-=o*Da),r=Ft(e,r,i,a),n.point(u,r),n.lineEnd(),n.lineStart(),n.point(o,r),t=0),n.point(e=i,r=a),u=o},lineEnd:function(){n.lineEnd(),e=r=NaN},clean:function(){return 2-t}}}function Ft(n,t,e,r){var u,i,a=Math.sin(n-e);return Ma(a)>Da?Math.atan((Math.sin(t)*(i=Math.cos(r))*Math.sin(e)-Math.sin(r)*(u=Math.cos(t))*Math.sin(n))/(u*i*a)):(t+r)/2}function Ht(n,t,e,r){var u;if(null==n)u=e*Ha,r.point(-ja,u),r.point(0,u),r.point(ja,u),r.point(ja,0),r.point(ja,-u),r.point(0,-u),r.point(-ja,-u),r.point(-ja,0),r.point(-ja,u);else if(Ma(n[0]-t[0])>Da){var i=n[0]<t[0]?ja:-ja;u=e*i/2,r.point(-i,u),r.point(0,u),r.point(i,u)}else r.point(t[0],t[1])}function Ot(n,t){var e=n[0],r=n[1],u=[Math.sin(e),-Math.cos(e),0],i=0,a=0;So.reset();for(var o=0,l=t.length;l>o;++o){var c=t[o],s=c.length;if(s)for(var f=c[0],h=f[0],g=f[1]/2+ja/4,p=Math.sin(g),v=Math.cos(g),d=1;;){d===s&&(d=0),n=c[d];var m=n[0],y=n[1]/2+ja/4,M=Math.sin(y),x=Math.cos(y),b=m-h,_=b>=0?1:-1,w=_*b,S=w>ja,k=p*M;if(So.add(Math.atan2(k*_*Math.sin(w),v*x+k*Math.cos(w))),i+=S?b+_*Ua:b,S^h>=e^m>=e){var N=yt(dt(f),dt(n));bt(N);var E=yt(u,N);bt(E);var A=(S^b>=0?-1:1)*tn(E[2]);(r>A||r===A&&(N[0]||N[1]))&&(a+=S^b>=0?1:-1)}if(!d++)break;h=m,p=M,v=x,f=n}}return(-Da>i||Da>i&&0>So)^1&a}function It(n){function t(n,t){return Math.cos(n)*Math.cos(t)>i}function e(n){var e,i,l,c,s;return{lineStart:function(){c=l=!1,s=1},point:function(f,h){var g,p=[f,h],v=t(f,h),d=a?v?0:u(f,h):v?u(f+(0>f?ja:-ja),h):0;if(!e&&(c=l=v)&&n.lineStart(),v!==l&&(g=r(e,p),(wt(e,g)||wt(p,g))&&(p[0]+=Da,p[1]+=Da,v=t(p[0],p[1]))),v!==l)s=0,v?(n.lineStart(),g=r(p,e),n.point(g[0],g[1])):(g=r(e,p),n.point(g[0],g[1]),n.lineEnd()),e=g;else if(o&&e&&a^v){var m;d&i||!(m=r(p,e,!0))||(s=0,a?(n.lineStart(),n.point(m[0][0],m[0][1]),n.point(m[1][0],m[1][1]),n.lineEnd()):(n.point(m[1][0],m[1][1]),n.lineEnd(),n.lineStart(),n.point(m[0][0],m[0][1])))}!v||e&&wt(e,p)||n.point(p[0],p[1]),e=p,l=v,i=d},lineEnd:function(){l&&n.lineEnd(),e=null},clean:function(){return s|(c&&l)<<1}}}function r(n,t,e){var r=dt(n),u=dt(t),a=[1,0,0],o=yt(r,u),l=mt(o,o),c=o[0],s=l-c*c;if(!s)return!e&&n;var f=i*l/s,h=-i*c/s,g=yt(a,o),p=xt(a,f),v=xt(o,h);Mt(p,v);var d=g,m=mt(p,d),y=mt(d,d),M=m*m-y*(mt(p,p)-1);if(!(0>M)){var x=Math.sqrt(M),b=xt(d,(-m-x)/y);if(Mt(b,p),b=_t(b),!e)return b;var _,w=n[0],S=t[0],k=n[1],N=t[1];w>S&&(_=w,w=S,S=_);var E=S-w,A=Ma(E-ja)<Da,C=A||Da>E;if(!A&&k>N&&(_=k,k=N,N=_),C?A?k+N>0^b[1]<(Ma(b[0]-w)<Da?k:N):k<=b[1]&&b[1]<=N:E>ja^(w<=b[0]&&b[0]<=S)){var z=xt(d,(-m+x)/y);return Mt(z,p),[b,_t(z)]}}}function u(t,e){var r=a?n:ja-n,u=0;return-r>t?u|=1:t>r&&(u|=2),-r>e?u|=4:e>r&&(u|=8),u}var i=Math.cos(n),a=i>0,o=Ma(i)>Da,l=ve(n,6*Oa);return Rt(t,e,l,a?[0,-n]:[-ja,n-ja])}function Yt(n,t,e,r){return function(u){var i,a=u.a,o=u.b,l=a.x,c=a.y,s=o.x,f=o.y,h=0,g=1,p=s-l,v=f-c;if(i=n-l,p||!(i>0)){if(i/=p,0>p){if(h>i)return;g>i&&(g=i)}else if(p>0){if(i>g)return;i>h&&(h=i)}if(i=e-l,p||!(0>i)){if(i/=p,0>p){if(i>g)return;i>h&&(h=i)}else if(p>0){if(h>i)return;g>i&&(g=i)}if(i=t-c,v||!(i>0)){if(i/=v,0>v){if(h>i)return;g>i&&(g=i)}else if(v>0){if(i>g)return;i>h&&(h=i)}if(i=r-c,v||!(0>i)){if(i/=v,0>v){if(i>g)return;i>h&&(h=i)}else if(v>0){if(h>i)return;g>i&&(g=i)}return h>0&&(u.a={x:l+h*p,y:c+h*v}),1>g&&(u.b={x:l+g*p,y:c+g*v}),u}}}}}}function Zt(n,t,e,r){function u(r,u){return Ma(r[0]-n)<Da?u>0?0:3:Ma(r[0]-e)<Da?u>0?2:1:Ma(r[1]-t)<Da?u>0?1:0:u>0?3:2}function i(n,t){return a(n.x,t.x)}function a(n,t){var e=u(n,1),r=u(t,1);return e!==r?e-r:0===e?t[1]-n[1]:1===e?n[0]-t[0]:2===e?n[1]-t[1]:t[0]-n[0]}return function(o){function l(n){for(var t=0,e=d.length,r=n[1],u=0;e>u;++u)for(var i,a=1,o=d[u],l=o.length,c=o[0];l>a;++a)i=o[a],c[1]<=r?i[1]>r&&Q(c,i,n)>0&&++t:i[1]<=r&&Q(c,i,n)<0&&--t,c=i;return 0!==t}function c(i,o,l,c){var s=0,f=0;if(null==i||(s=u(i,l))!==(f=u(o,l))||a(i,o)<0^l>0){do c.point(0===s||3===s?n:e,s>1?r:t);while((s=(s+l+4)%4)!==f)}else c.point(o[0],o[1])}function s(u,i){return u>=n&&e>=u&&i>=t&&r>=i}function f(n,t){s(n,t)&&o.point(n,t)}function h(){C.point=p,d&&d.push(m=[]),S=!0,w=!1,b=_=NaN}function g(){v&&(p(y,M),x&&w&&E.rejoin(),v.push(E.buffer())),C.point=f,w&&o.lineEnd()}function p(n,t){n=Math.max(-Fo,Math.min(Fo,n)),t=Math.max(-Fo,Math.min(Fo,t));var e=s(n,t);if(d&&m.push([n,t]),S)y=n,M=t,x=e,S=!1,e&&(o.lineStart(),o.point(n,t));else if(e&&w)o.point(n,t);else{var r={a:{x:b,y:_},b:{x:n,y:t}};A(r)?(w||(o.lineStart(),o.point(r.a.x,r.a.y)),o.point(r.b.x,r.b.y),e||o.lineEnd(),k=!1):e&&(o.lineStart(),o.point(n,t),k=!1)}b=n,_=t,w=e}var v,d,m,y,M,x,b,_,w,S,k,N=o,E=Pt(),A=Yt(n,t,e,r),C={point:f,lineStart:h,lineEnd:g,polygonStart:function(){o=E,v=[],d=[],k=!0},polygonEnd:function(){o=N,v=oa.merge(v);var t=l([n,r]),e=k&&t,u=v.length;(e||u)&&(o.polygonStart(),e&&(o.lineStart(),c(null,null,1,o),o.lineEnd()),u&&Lt(v,i,t,c,o),o.polygonEnd()),v=d=m=null}};return C}}function Vt(n){var t=0,e=ja/3,r=oe(n),u=r(t,e);return u.parallels=function(n){return arguments.length?r(t=n[0]*ja/180,e=n[1]*ja/180):[t/ja*180,e/ja*180]},u}function Xt(n,t){function e(n,t){var e=Math.sqrt(i-2*u*Math.sin(t))/u;return[e*Math.sin(n*=u),a-e*Math.cos(n)]}var r=Math.sin(n),u=(r+Math.sin(t))/2,i=1+r*(2*u-r),a=Math.sqrt(i)/u;return e.invert=function(n,t){var e=a-t;return[Math.atan2(n,e)/u,tn((i-(n*n+e*e)*u*u)/(2*u))]},e}function $t(){function n(n,t){Oo+=u*n-r*t,r=n,u=t}var t,e,r,u;Xo.point=function(i,a){Xo.point=n,t=r=i,e=u=a},Xo.lineEnd=function(){n(t,e)}}function Bt(n,t){Io>n&&(Io=n),n>Zo&&(Zo=n),Yo>t&&(Yo=t),t>Vo&&(Vo=t)}function Wt(){function n(n,t){a.push("M",n,",",t,i)}function t(n,t){a.push("M",n,",",t),o.point=e}function e(n,t){a.push("L",n,",",t)}function r(){o.point=n}function u(){a.push("Z")}var i=Jt(4.5),a=[],o={point:n,lineStart:function(){o.point=t},lineEnd:r,polygonStart:function(){o.lineEnd=u},polygonEnd:function(){o.lineEnd=r,o.point=n},pointRadius:function(n){return i=Jt(n),o},result:function(){if(a.length){var n=a.join("");return a=[],n}}};return o}function Jt(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function Gt(n,t){Ao+=n,Co+=t,++zo}function Kt(){function n(n,r){var u=n-t,i=r-e,a=Math.sqrt(u*u+i*i);Lo+=a*(t+n)/2,qo+=a*(e+r)/2,To+=a,Gt(t=n,e=r)}var t,e;Bo.point=function(r,u){Bo.point=n,Gt(t=r,e=u)}}function Qt(){Bo.point=Gt}function ne(){function n(n,t){var e=n-r,i=t-u,a=Math.sqrt(e*e+i*i);Lo+=a*(r+n)/2,qo+=a*(u+t)/2,To+=a,a=u*n-r*t,Ro+=a*(r+n),Do+=a*(u+t),Po+=3*a,Gt(r=n,u=t)}var t,e,r,u;Bo.point=function(i,a){Bo.point=n,Gt(t=r=i,e=u=a)},Bo.lineEnd=function(){n(t,e)}}function te(n){function t(t,e){n.moveTo(t+a,e),n.arc(t,e,a,0,Ua)}function e(t,e){n.moveTo(t,e),o.point=r}function r(t,e){n.lineTo(t,e)}function u(){o.point=t}function i(){n.closePath()}var a=4.5,o={point:t,lineStart:function(){o.point=e},lineEnd:u,polygonStart:function(){o.lineEnd=i},polygonEnd:function(){o.lineEnd=u,o.point=t},pointRadius:function(n){return a=n,o},result:b};return o}function ee(n){function t(n){return(o?r:e)(n)}function e(t){return ie(t,function(e,r){e=n(e,r),t.point(e[0],e[1])})}function r(t){function e(e,r){e=n(e,r),t.point(e[0],e[1])}function r(){M=NaN,S.point=i,t.lineStart()}function i(e,r){var i=dt([e,r]),a=n(e,r);u(M,x,y,b,_,w,M=a[0],x=a[1],y=e,b=i[0],_=i[1],w=i[2],o,t),t.point(M,x)}function a(){S.point=e,t.lineEnd()}function l(){r(),S.point=c,S.lineEnd=s}function c(n,t){
i(f=n,h=t),g=M,p=x,v=b,d=_,m=w,S.point=i}function s(){u(M,x,y,b,_,w,g,p,f,v,d,m,o,t),S.lineEnd=a,a()}var f,h,g,p,v,d,m,y,M,x,b,_,w,S={point:e,lineStart:r,lineEnd:a,polygonStart:function(){t.polygonStart(),S.lineStart=l},polygonEnd:function(){t.polygonEnd(),S.lineStart=r}};return S}function u(t,e,r,o,l,c,s,f,h,g,p,v,d,m){var y=s-t,M=f-e,x=y*y+M*M;if(x>4*i&&d--){var b=o+g,_=l+p,w=c+v,S=Math.sqrt(b*b+_*_+w*w),k=Math.asin(w/=S),N=Ma(Ma(w)-1)<Da||Ma(r-h)<Da?(r+h)/2:Math.atan2(_,b),E=n(N,k),A=E[0],C=E[1],z=A-t,L=C-e,q=M*z-y*L;(q*q/x>i||Ma((y*z+M*L)/x-.5)>.3||a>o*g+l*p+c*v)&&(u(t,e,r,o,l,c,A,C,N,b/=S,_/=S,w,d,m),m.point(A,C),u(A,C,N,b,_,w,s,f,h,g,p,v,d,m))}}var i=.5,a=Math.cos(30*Oa),o=16;return t.precision=function(n){return arguments.length?(o=(i=n*n)>0&&16,t):Math.sqrt(i)},t}function re(n){var t=ee(function(t,e){return n([t*Ia,e*Ia])});return function(n){return le(t(n))}}function ue(n){this.stream=n}function ie(n,t){return{point:t,sphere:function(){n.sphere()},lineStart:function(){n.lineStart()},lineEnd:function(){n.lineEnd()},polygonStart:function(){n.polygonStart()},polygonEnd:function(){n.polygonEnd()}}}function ae(n){return oe(function(){return n})()}function oe(n){function t(n){return n=o(n[0]*Oa,n[1]*Oa),[n[0]*h+l,c-n[1]*h]}function e(n){return n=o.invert((n[0]-l)/h,(c-n[1])/h),n&&[n[0]*Ia,n[1]*Ia]}function r(){o=Ct(a=fe(m,M,x),i);var n=i(v,d);return l=g-n[0]*h,c=p+n[1]*h,u()}function u(){return s&&(s.valid=!1,s=null),t}var i,a,o,l,c,s,f=ee(function(n,t){return n=i(n,t),[n[0]*h+l,c-n[1]*h]}),h=150,g=480,p=250,v=0,d=0,m=0,M=0,x=0,b=Uo,_=y,w=null,S=null;return t.stream=function(n){return s&&(s.valid=!1),s=le(b(a,f(_(n)))),s.valid=!0,s},t.clipAngle=function(n){return arguments.length?(b=null==n?(w=n,Uo):It((w=+n)*Oa),u()):w},t.clipExtent=function(n){return arguments.length?(S=n,_=n?Zt(n[0][0],n[0][1],n[1][0],n[1][1]):y,u()):S},t.scale=function(n){return arguments.length?(h=+n,r()):h},t.translate=function(n){return arguments.length?(g=+n[0],p=+n[1],r()):[g,p]},t.center=function(n){return arguments.length?(v=n[0]%360*Oa,d=n[1]%360*Oa,r()):[v*Ia,d*Ia]},t.rotate=function(n){return arguments.length?(m=n[0]%360*Oa,M=n[1]%360*Oa,x=n.length>2?n[2]%360*Oa:0,r()):[m*Ia,M*Ia,x*Ia]},oa.rebind(t,f,"precision"),function(){return i=n.apply(this,arguments),t.invert=i.invert&&e,r()}}function le(n){return ie(n,function(t,e){n.point(t*Oa,e*Oa)})}function ce(n,t){return[n,t]}function se(n,t){return[n>ja?n-Ua:-ja>n?n+Ua:n,t]}function fe(n,t,e){return n?t||e?Ct(ge(n),pe(t,e)):ge(n):t||e?pe(t,e):se}function he(n){return function(t,e){return t+=n,[t>ja?t-Ua:-ja>t?t+Ua:t,e]}}function ge(n){var t=he(n);return t.invert=he(-n),t}function pe(n,t){function e(n,t){var e=Math.cos(t),o=Math.cos(n)*e,l=Math.sin(n)*e,c=Math.sin(t),s=c*r+o*u;return[Math.atan2(l*i-s*a,o*r-c*u),tn(s*i+l*a)]}var r=Math.cos(n),u=Math.sin(n),i=Math.cos(t),a=Math.sin(t);return e.invert=function(n,t){var e=Math.cos(t),o=Math.cos(n)*e,l=Math.sin(n)*e,c=Math.sin(t),s=c*i-l*a;return[Math.atan2(l*i+c*a,o*r+s*u),tn(s*r-o*u)]},e}function ve(n,t){var e=Math.cos(n),r=Math.sin(n);return function(u,i,a,o){var l=a*t;null!=u?(u=de(e,u),i=de(e,i),(a>0?i>u:u>i)&&(u+=a*Ua)):(u=n+a*Ua,i=n-.5*l);for(var c,s=u;a>0?s>i:i>s;s-=l)o.point((c=_t([e,-r*Math.cos(s),-r*Math.sin(s)]))[0],c[1])}}function de(n,t){var e=dt(t);e[0]-=n,bt(e);var r=nn(-e[1]);return((-e[2]<0?-r:r)+2*Math.PI-Da)%(2*Math.PI)}function me(n,t,e){var r=oa.range(n,t-Da,e).concat(t);return function(n){return r.map(function(t){return[n,t]})}}function ye(n,t,e){var r=oa.range(n,t-Da,e).concat(t);return function(n){return r.map(function(t){return[t,n]})}}function Me(n){return n.source}function xe(n){return n.target}function be(n,t,e,r){var u=Math.cos(t),i=Math.sin(t),a=Math.cos(r),o=Math.sin(r),l=u*Math.cos(n),c=u*Math.sin(n),s=a*Math.cos(e),f=a*Math.sin(e),h=2*Math.asin(Math.sqrt(an(r-t)+u*a*an(e-n))),g=1/Math.sin(h),p=h?function(n){var t=Math.sin(n*=h)*g,e=Math.sin(h-n)*g,r=e*l+t*s,u=e*c+t*f,a=e*i+t*o;return[Math.atan2(u,r)*Ia,Math.atan2(a,Math.sqrt(r*r+u*u))*Ia]}:function(){return[n*Ia,t*Ia]};return p.distance=h,p}function _e(){function n(n,u){var i=Math.sin(u*=Oa),a=Math.cos(u),o=Ma((n*=Oa)-t),l=Math.cos(o);Wo+=Math.atan2(Math.sqrt((o=a*Math.sin(o))*o+(o=r*i-e*a*l)*o),e*i+r*a*l),t=n,e=i,r=a}var t,e,r;Jo.point=function(u,i){t=u*Oa,e=Math.sin(i*=Oa),r=Math.cos(i),Jo.point=n},Jo.lineEnd=function(){Jo.point=Jo.lineEnd=b}}function we(n,t){function e(t,e){var r=Math.cos(t),u=Math.cos(e),i=n(r*u);return[i*u*Math.sin(t),i*Math.sin(e)]}return e.invert=function(n,e){var r=Math.sqrt(n*n+e*e),u=t(r),i=Math.sin(u),a=Math.cos(u);return[Math.atan2(n*i,r*a),Math.asin(r&&e*i/r)]},e}function Se(n,t){function e(n,t){a>0?-Ha+Da>t&&(t=-Ha+Da):t>Ha-Da&&(t=Ha-Da);var e=a/Math.pow(u(t),i);return[e*Math.sin(i*n),a-e*Math.cos(i*n)]}var r=Math.cos(n),u=function(n){return Math.tan(ja/4+n/2)},i=n===t?Math.sin(n):Math.log(r/Math.cos(t))/Math.log(u(t)/u(n)),a=r*Math.pow(u(n),i)/i;return i?(e.invert=function(n,t){var e=a-t,r=K(i)*Math.sqrt(n*n+e*e);return[Math.atan2(n,e)/i,2*Math.atan(Math.pow(a/r,1/i))-Ha]},e):Ne}function ke(n,t){function e(n,t){var e=i-t;return[e*Math.sin(u*n),i-e*Math.cos(u*n)]}var r=Math.cos(n),u=n===t?Math.sin(n):(r-Math.cos(t))/(t-n),i=r/u+n;return Ma(u)<Da?ce:(e.invert=function(n,t){var e=i-t;return[Math.atan2(n,e)/u,i-K(u)*Math.sqrt(n*n+e*e)]},e)}function Ne(n,t){return[n,Math.log(Math.tan(ja/4+t/2))]}function Ee(n){var t,e=ae(n),r=e.scale,u=e.translate,i=e.clipExtent;return e.scale=function(){var n=r.apply(e,arguments);return n===e?t?e.clipExtent(null):e:n},e.translate=function(){var n=u.apply(e,arguments);return n===e?t?e.clipExtent(null):e:n},e.clipExtent=function(n){var a=i.apply(e,arguments);if(a===e){if(t=null==n){var o=ja*r(),l=u();i([[l[0]-o,l[1]-o],[l[0]+o,l[1]+o]])}}else t&&(a=null);return a},e.clipExtent(null)}function Ae(n,t){return[Math.log(Math.tan(ja/4+t/2)),-n]}function Ce(n){return n[0]}function ze(n){return n[1]}function Le(n){for(var t=n.length,e=[0,1],r=2,u=2;t>u;u++){for(;r>1&&Q(n[e[r-2]],n[e[r-1]],n[u])<=0;)--r;e[r++]=u}return e.slice(0,r)}function qe(n,t){return n[0]-t[0]||n[1]-t[1]}function Te(n,t,e){return(e[0]-t[0])*(n[1]-t[1])<(e[1]-t[1])*(n[0]-t[0])}function Re(n,t,e,r){var u=n[0],i=e[0],a=t[0]-u,o=r[0]-i,l=n[1],c=e[1],s=t[1]-l,f=r[1]-c,h=(o*(l-c)-f*(u-i))/(f*a-o*s);return[u+h*a,l+h*s]}function De(n){var t=n[0],e=n[n.length-1];return!(t[0]-e[0]||t[1]-e[1])}function Pe(){rr(this),this.edge=this.site=this.circle=null}function je(n){var t=ll.pop()||new Pe;return t.site=n,t}function Ue(n){Be(n),il.remove(n),ll.push(n),rr(n)}function Fe(n){var t=n.circle,e=t.x,r=t.cy,u={x:e,y:r},i=n.P,a=n.N,o=[n];Ue(n);for(var l=i;l.circle&&Ma(e-l.circle.x)<Da&&Ma(r-l.circle.cy)<Da;)i=l.P,o.unshift(l),Ue(l),l=i;o.unshift(l),Be(l);for(var c=a;c.circle&&Ma(e-c.circle.x)<Da&&Ma(r-c.circle.cy)<Da;)a=c.N,o.push(c),Ue(c),c=a;o.push(c),Be(c);var s,f=o.length;for(s=1;f>s;++s)c=o[s],l=o[s-1],nr(c.edge,l.site,c.site,u);l=o[0],c=o[f-1],c.edge=Ke(l.site,c.site,null,u),$e(l),$e(c)}function He(n){for(var t,e,r,u,i=n.x,a=n.y,o=il._;o;)if(r=Oe(o,a)-i,r>Da)o=o.L;else{if(u=i-Ie(o,a),!(u>Da)){r>-Da?(t=o.P,e=o):u>-Da?(t=o,e=o.N):t=e=o;break}if(!o.R){t=o;break}o=o.R}var l=je(n);if(il.insert(t,l),t||e){if(t===e)return Be(t),e=je(t.site),il.insert(l,e),l.edge=e.edge=Ke(t.site,l.site),$e(t),void $e(e);if(!e)return void(l.edge=Ke(t.site,l.site));Be(t),Be(e);var c=t.site,s=c.x,f=c.y,h=n.x-s,g=n.y-f,p=e.site,v=p.x-s,d=p.y-f,m=2*(h*d-g*v),y=h*h+g*g,M=v*v+d*d,x={x:(d*y-g*M)/m+s,y:(h*M-v*y)/m+f};nr(e.edge,c,p,x),l.edge=Ke(c,n,null,x),e.edge=Ke(n,p,null,x),$e(t),$e(e)}}function Oe(n,t){var e=n.site,r=e.x,u=e.y,i=u-t;if(!i)return r;var a=n.P;if(!a)return-(1/0);e=a.site;var o=e.x,l=e.y,c=l-t;if(!c)return o;var s=o-r,f=1/i-1/c,h=s/c;return f?(-h+Math.sqrt(h*h-2*f*(s*s/(-2*c)-l+c/2+u-i/2)))/f+r:(r+o)/2}function Ie(n,t){var e=n.N;if(e)return Oe(e,t);var r=n.site;return r.y===t?r.x:1/0}function Ye(n){this.site=n,this.edges=[]}function Ze(n){for(var t,e,r,u,i,a,o,l,c,s,f=n[0][0],h=n[1][0],g=n[0][1],p=n[1][1],v=ul,d=v.length;d--;)if(i=v[d],i&&i.prepare())for(o=i.edges,l=o.length,a=0;l>a;)s=o[a].end(),r=s.x,u=s.y,c=o[++a%l].start(),t=c.x,e=c.y,(Ma(r-t)>Da||Ma(u-e)>Da)&&(o.splice(a,0,new tr(Qe(i.site,s,Ma(r-f)<Da&&p-u>Da?{x:f,y:Ma(t-f)<Da?e:p}:Ma(u-p)<Da&&h-r>Da?{x:Ma(e-p)<Da?t:h,y:p}:Ma(r-h)<Da&&u-g>Da?{x:h,y:Ma(t-h)<Da?e:g}:Ma(u-g)<Da&&r-f>Da?{x:Ma(e-g)<Da?t:f,y:g}:null),i.site,null)),++l)}function Ve(n,t){return t.angle-n.angle}function Xe(){rr(this),this.x=this.y=this.arc=this.site=this.cy=null}function $e(n){var t=n.P,e=n.N;if(t&&e){var r=t.site,u=n.site,i=e.site;if(r!==i){var a=u.x,o=u.y,l=r.x-a,c=r.y-o,s=i.x-a,f=i.y-o,h=2*(l*f-c*s);if(!(h>=-Pa)){var g=l*l+c*c,p=s*s+f*f,v=(f*g-c*p)/h,d=(l*p-s*g)/h,f=d+o,m=cl.pop()||new Xe;m.arc=n,m.site=u,m.x=v+a,m.y=f+Math.sqrt(v*v+d*d),m.cy=f,n.circle=m;for(var y=null,M=ol._;M;)if(m.y<M.y||m.y===M.y&&m.x<=M.x){if(!M.L){y=M.P;break}M=M.L}else{if(!M.R){y=M;break}M=M.R}ol.insert(y,m),y||(al=m)}}}}function Be(n){var t=n.circle;t&&(t.P||(al=t.N),ol.remove(t),cl.push(t),rr(t),n.circle=null)}function We(n){for(var t,e=rl,r=Yt(n[0][0],n[0][1],n[1][0],n[1][1]),u=e.length;u--;)t=e[u],(!Je(t,n)||!r(t)||Ma(t.a.x-t.b.x)<Da&&Ma(t.a.y-t.b.y)<Da)&&(t.a=t.b=null,e.splice(u,1))}function Je(n,t){var e=n.b;if(e)return!0;var r,u,i=n.a,a=t[0][0],o=t[1][0],l=t[0][1],c=t[1][1],s=n.l,f=n.r,h=s.x,g=s.y,p=f.x,v=f.y,d=(h+p)/2,m=(g+v)/2;if(v===g){if(a>d||d>=o)return;if(h>p){if(i){if(i.y>=c)return}else i={x:d,y:l};e={x:d,y:c}}else{if(i){if(i.y<l)return}else i={x:d,y:c};e={x:d,y:l}}}else if(r=(h-p)/(v-g),u=m-r*d,-1>r||r>1)if(h>p){if(i){if(i.y>=c)return}else i={x:(l-u)/r,y:l};e={x:(c-u)/r,y:c}}else{if(i){if(i.y<l)return}else i={x:(c-u)/r,y:c};e={x:(l-u)/r,y:l}}else if(v>g){if(i){if(i.x>=o)return}else i={x:a,y:r*a+u};e={x:o,y:r*o+u}}else{if(i){if(i.x<a)return}else i={x:o,y:r*o+u};e={x:a,y:r*a+u}}return n.a=i,n.b=e,!0}function Ge(n,t){this.l=n,this.r=t,this.a=this.b=null}function Ke(n,t,e,r){var u=new Ge(n,t);return rl.push(u),e&&nr(u,n,t,e),r&&nr(u,t,n,r),ul[n.i].edges.push(new tr(u,n,t)),ul[t.i].edges.push(new tr(u,t,n)),u}function Qe(n,t,e){var r=new Ge(n,null);return r.a=t,r.b=e,rl.push(r),r}function nr(n,t,e,r){n.a||n.b?n.l===e?n.b=r:n.a=r:(n.a=r,n.l=t,n.r=e)}function tr(n,t,e){var r=n.a,u=n.b;this.edge=n,this.site=t,this.angle=e?Math.atan2(e.y-t.y,e.x-t.x):n.l===t?Math.atan2(u.x-r.x,r.y-u.y):Math.atan2(r.x-u.x,u.y-r.y)}function er(){this._=null}function rr(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function ur(n,t){var e=t,r=t.R,u=e.U;u?u.L===e?u.L=r:u.R=r:n._=r,r.U=u,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function ir(n,t){var e=t,r=t.L,u=e.U;u?u.L===e?u.L=r:u.R=r:n._=r,r.U=u,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function ar(n){for(;n.L;)n=n.L;return n}function or(n,t){var e,r,u,i=n.sort(lr).pop();for(rl=[],ul=new Array(n.length),il=new er,ol=new er;;)if(u=al,i&&(!u||i.y<u.y||i.y===u.y&&i.x<u.x))(i.x!==e||i.y!==r)&&(ul[i.i]=new Ye(i),He(i),e=i.x,r=i.y),i=n.pop();else{if(!u)break;Fe(u.arc)}t&&(We(t),Ze(t));var a={cells:ul,edges:rl};return il=ol=rl=ul=null,a}function lr(n,t){return t.y-n.y||t.x-n.x}function cr(n,t,e){return(n.x-e.x)*(t.y-n.y)-(n.x-t.x)*(e.y-n.y)}function sr(n){return n.x}function fr(n){return n.y}function hr(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function gr(n,t,e,r,u,i){if(!n(t,e,r,u,i)){var a=.5*(e+u),o=.5*(r+i),l=t.nodes;l[0]&&gr(n,l[0],e,r,a,o),l[1]&&gr(n,l[1],a,r,u,o),l[2]&&gr(n,l[2],e,o,a,i),l[3]&&gr(n,l[3],a,o,u,i)}}function pr(n,t,e,r,u,i,a){var o,l=1/0;return function c(n,s,f,h,g){if(!(s>i||f>a||r>h||u>g)){if(p=n.point){var p,v=t-n.x,d=e-n.y,m=v*v+d*d;if(l>m){var y=Math.sqrt(l=m);r=t-y,u=e-y,i=t+y,a=e+y,o=p}}for(var M=n.nodes,x=.5*(s+h),b=.5*(f+g),_=t>=x,w=e>=b,S=w<<1|_,k=S+4;k>S;++S)if(n=M[3&S])switch(3&S){case 0:c(n,s,f,x,b);break;case 1:c(n,x,f,h,b);break;case 2:c(n,s,b,x,g);break;case 3:c(n,x,b,h,g)}}}(n,r,u,i,a),o}function vr(n,t){n=oa.rgb(n),t=oa.rgb(t);var e=n.r,r=n.g,u=n.b,i=t.r-e,a=t.g-r,o=t.b-u;return function(n){return"#"+bn(Math.round(e+i*n))+bn(Math.round(r+a*n))+bn(Math.round(u+o*n))}}function dr(n,t){var e,r={},u={};for(e in n)e in t?r[e]=Mr(n[e],t[e]):u[e]=n[e];for(e in t)e in n||(u[e]=t[e]);return function(n){for(e in r)u[e]=r[e](n);return u}}function mr(n,t){return n=+n,t=+t,function(e){return n*(1-e)+t*e}}function yr(n,t){var e,r,u,i=fl.lastIndex=hl.lastIndex=0,a=-1,o=[],l=[];for(n+="",t+="";(e=fl.exec(n))&&(r=hl.exec(t));)(u=r.index)>i&&(u=t.slice(i,u),o[a]?o[a]+=u:o[++a]=u),(e=e[0])===(r=r[0])?o[a]?o[a]+=r:o[++a]=r:(o[++a]=null,l.push({i:a,x:mr(e,r)})),i=hl.lastIndex;return i<t.length&&(u=t.slice(i),o[a]?o[a]+=u:o[++a]=u),o.length<2?l[0]?(t=l[0].x,function(n){return t(n)+""}):function(){return t}:(t=l.length,function(n){for(var e,r=0;t>r;++r)o[(e=l[r]).i]=e.x(n);return o.join("")})}function Mr(n,t){for(var e,r=oa.interpolators.length;--r>=0&&!(e=oa.interpolators[r](n,t)););return e}function xr(n,t){var e,r=[],u=[],i=n.length,a=t.length,o=Math.min(n.length,t.length);for(e=0;o>e;++e)r.push(Mr(n[e],t[e]));for(;i>e;++e)u[e]=n[e];for(;a>e;++e)u[e]=t[e];return function(n){for(e=0;o>e;++e)u[e]=r[e](n);return u}}function br(n){return function(t){return 0>=t?0:t>=1?1:n(t)}}function _r(n){return function(t){return 1-n(1-t)}}function wr(n){return function(t){return.5*(.5>t?n(2*t):2-n(2-2*t))}}function Sr(n){return n*n}function kr(n){return n*n*n}function Nr(n){if(0>=n)return 0;if(n>=1)return 1;var t=n*n,e=t*n;return 4*(.5>n?e:3*(n-t)+e-.75)}function Er(n){return function(t){return Math.pow(t,n)}}function Ar(n){return 1-Math.cos(n*Ha)}function Cr(n){return Math.pow(2,10*(n-1))}function zr(n){return 1-Math.sqrt(1-n*n)}function Lr(n,t){var e;return arguments.length<2&&(t=.45),arguments.length?e=t/Ua*Math.asin(1/n):(n=1,e=t/4),function(r){return 1+n*Math.pow(2,-10*r)*Math.sin((r-e)*Ua/t)}}function qr(n){return n||(n=1.70158),function(t){return t*t*((n+1)*t-n)}}function Tr(n){return 1/2.75>n?7.5625*n*n:2/2.75>n?7.5625*(n-=1.5/2.75)*n+.75:2.5/2.75>n?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}function Rr(n,t){n=oa.hcl(n),t=oa.hcl(t);var e=n.h,r=n.c,u=n.l,i=t.h-e,a=t.c-r,o=t.l-u;return isNaN(a)&&(a=0,r=isNaN(r)?t.c:r),isNaN(i)?(i=0,e=isNaN(e)?t.h:e):i>180?i-=360:-180>i&&(i+=360),function(n){return fn(e+i*n,r+a*n,u+o*n)+""}}function Dr(n,t){n=oa.hsl(n),t=oa.hsl(t);var e=n.h,r=n.s,u=n.l,i=t.h-e,a=t.s-r,o=t.l-u;return isNaN(a)&&(a=0,r=isNaN(r)?t.s:r),isNaN(i)?(i=0,e=isNaN(e)?t.h:e):i>180?i-=360:-180>i&&(i+=360),function(n){return cn(e+i*n,r+a*n,u+o*n)+""}}function Pr(n,t){n=oa.lab(n),t=oa.lab(t);var e=n.l,r=n.a,u=n.b,i=t.l-e,a=t.a-r,o=t.b-u;return function(n){return gn(e+i*n,r+a*n,u+o*n)+""}}function jr(n,t){return t-=n,function(e){return Math.round(n+t*e)}}function Ur(n){var t=[n.a,n.b],e=[n.c,n.d],r=Hr(t),u=Fr(t,e),i=Hr(Or(e,t,-u))||0;t[0]*e[1]<e[0]*t[1]&&(t[0]*=-1,t[1]*=-1,r*=-1,u*=-1),this.rotate=(r?Math.atan2(t[1],t[0]):Math.atan2(-e[0],e[1]))*Ia,this.translate=[n.e,n.f],this.scale=[r,i],this.skew=i?Math.atan2(u,i)*Ia:0}function Fr(n,t){return n[0]*t[0]+n[1]*t[1]}function Hr(n){var t=Math.sqrt(Fr(n,n));return t&&(n[0]/=t,n[1]/=t),t}function Or(n,t,e){return n[0]+=e*t[0],n[1]+=e*t[1],n}function Ir(n){return n.length?n.pop()+",":""}function Yr(n,t,e,r){if(n[0]!==t[0]||n[1]!==t[1]){var u=e.push("translate(",null,",",null,")");r.push({i:u-4,x:mr(n[0],t[0])},{i:u-2,x:mr(n[1],t[1])})}else(t[0]||t[1])&&e.push("translate("+t+")")}function Zr(n,t,e,r){n!==t?(n-t>180?t+=360:t-n>180&&(n+=360),r.push({i:e.push(Ir(e)+"rotate(",null,")")-2,x:mr(n,t)})):t&&e.push(Ir(e)+"rotate("+t+")")}function Vr(n,t,e,r){n!==t?r.push({i:e.push(Ir(e)+"skewX(",null,")")-2,x:mr(n,t)}):t&&e.push(Ir(e)+"skewX("+t+")")}function Xr(n,t,e,r){if(n[0]!==t[0]||n[1]!==t[1]){var u=e.push(Ir(e)+"scale(",null,",",null,")");r.push({i:u-4,x:mr(n[0],t[0])},{i:u-2,x:mr(n[1],t[1])})}else(1!==t[0]||1!==t[1])&&e.push(Ir(e)+"scale("+t+")")}function $r(n,t){var e=[],r=[];return n=oa.transform(n),t=oa.transform(t),Yr(n.translate,t.translate,e,r),Zr(n.rotate,t.rotate,e,r),Vr(n.skew,t.skew,e,r),Xr(n.scale,t.scale,e,r),n=t=null,function(n){for(var t,u=-1,i=r.length;++u<i;)e[(t=r[u]).i]=t.x(n);return e.join("")}}function Br(n,t){return t=(t-=n=+n)||1/t,function(e){return(e-n)/t}}function Wr(n,t){return t=(t-=n=+n)||1/t,function(e){return Math.max(0,Math.min(1,(e-n)/t))}}function Jr(n){for(var t=n.source,e=n.target,r=Kr(t,e),u=[t];t!==r;)t=t.parent,u.push(t);for(var i=u.length;e!==r;)u.splice(i,0,e),e=e.parent;return u}function Gr(n){for(var t=[],e=n.parent;null!=e;)t.push(n),n=e,e=e.parent;return t.push(n),t}function Kr(n,t){if(n===t)return n;for(var e=Gr(n),r=Gr(t),u=e.pop(),i=r.pop(),a=null;u===i;)a=u,u=e.pop(),i=r.pop();return a}function Qr(n){n.fixed|=2}function nu(n){n.fixed&=-7}function tu(n){n.fixed|=4,n.px=n.x,n.py=n.y}function eu(n){n.fixed&=-5}function ru(n,t,e){var r=0,u=0;if(n.charge=0,!n.leaf)for(var i,a=n.nodes,o=a.length,l=-1;++l<o;)i=a[l],null!=i&&(ru(i,t,e),n.charge+=i.charge,r+=i.charge*i.cx,u+=i.charge*i.cy);if(n.point){n.leaf||(n.point.x+=Math.random()-.5,n.point.y+=Math.random()-.5);var c=t*e[n.point.index];n.charge+=n.pointCharge=c,r+=c*n.point.x,u+=c*n.point.y}n.cx=r/n.charge,n.cy=u/n.charge}function uu(n,t){return oa.rebind(n,t,"sort","children","value"),n.nodes=n,n.links=su,n}function iu(n,t){for(var e=[n];null!=(n=e.pop());)if(t(n),(u=n.children)&&(r=u.length))for(var r,u;--r>=0;)e.push(u[r])}function au(n,t){for(var e=[n],r=[];null!=(n=e.pop());)if(r.push(n),(i=n.children)&&(u=i.length))for(var u,i,a=-1;++a<u;)e.push(i[a]);for(;null!=(n=r.pop());)t(n)}function ou(n){return n.children}function lu(n){return n.value}function cu(n,t){return t.value-n.value}function su(n){return oa.merge(n.map(function(n){return(n.children||[]).map(function(t){return{source:n,target:t}})}))}function fu(n){return n.x}function hu(n){return n.y}function gu(n,t,e){n.y0=t,n.y=e}function pu(n){return oa.range(n.length)}function vu(n){for(var t=-1,e=n[0].length,r=[];++t<e;)r[t]=0;return r}function du(n){for(var t,e=1,r=0,u=n[0][1],i=n.length;i>e;++e)(t=n[e][1])>u&&(r=e,u=t);return r}function mu(n){return n.reduce(yu,0)}function yu(n,t){return n+t[1]}function Mu(n,t){return xu(n,Math.ceil(Math.log(t.length)/Math.LN2+1))}function xu(n,t){for(var e=-1,r=+n[0],u=(n[1]-r)/t,i=[];++e<=t;)i[e]=u*e+r;return i}function bu(n){return[oa.min(n),oa.max(n)]}function _u(n,t){return n.value-t.value}function wu(n,t){var e=n._pack_next;n._pack_next=t,t._pack_prev=n,t._pack_next=e,e._pack_prev=t}function Su(n,t){n._pack_next=t,t._pack_prev=n}function ku(n,t){var e=t.x-n.x,r=t.y-n.y,u=n.r+t.r;return.999*u*u>e*e+r*r}function Nu(n){function t(n){s=Math.min(n.x-n.r,s),f=Math.max(n.x+n.r,f),h=Math.min(n.y-n.r,h),g=Math.max(n.y+n.r,g)}if((e=n.children)&&(c=e.length)){var e,r,u,i,a,o,l,c,s=1/0,f=-(1/0),h=1/0,g=-(1/0);if(e.forEach(Eu),r=e[0],r.x=-r.r,r.y=0,t(r),c>1&&(u=e[1],u.x=u.r,u.y=0,t(u),c>2))for(i=e[2],zu(r,u,i),t(i),wu(r,i),r._pack_prev=i,wu(i,u),u=r._pack_next,a=3;c>a;a++){zu(r,u,i=e[a]);var p=0,v=1,d=1;for(o=u._pack_next;o!==u;o=o._pack_next,v++)if(ku(o,i)){p=1;break}if(1==p)for(l=r._pack_prev;l!==o._pack_prev&&!ku(l,i);l=l._pack_prev,d++);p?(d>v||v==d&&u.r<r.r?Su(r,u=o):Su(r=l,u),a--):(wu(r,i),u=i,t(i))}var m=(s+f)/2,y=(h+g)/2,M=0;for(a=0;c>a;a++)i=e[a],i.x-=m,i.y-=y,M=Math.max(M,i.r+Math.sqrt(i.x*i.x+i.y*i.y));n.r=M,e.forEach(Au)}}function Eu(n){n._pack_next=n._pack_prev=n}function Au(n){delete n._pack_next,delete n._pack_prev}function Cu(n,t,e,r){var u=n.children;if(n.x=t+=r*n.x,n.y=e+=r*n.y,n.r*=r,u)for(var i=-1,a=u.length;++i<a;)Cu(u[i],t,e,r)}function zu(n,t,e){var r=n.r+e.r,u=t.x-n.x,i=t.y-n.y;if(r&&(u||i)){var a=t.r+e.r,o=u*u+i*i;a*=a,r*=r;var l=.5+(r-a)/(2*o),c=Math.sqrt(Math.max(0,2*a*(r+o)-(r-=o)*r-a*a))/(2*o);e.x=n.x+l*u+c*i,e.y=n.y+l*i-c*u}else e.x=n.x+r,e.y=n.y}function Lu(n,t){return n.parent==t.parent?1:2}function qu(n){var t=n.children;return t.length?t[0]:n.t}function Tu(n){var t,e=n.children;return(t=e.length)?e[t-1]:n.t}function Ru(n,t,e){var r=e/(t.i-n.i);t.c-=r,t.s+=e,n.c+=r,t.z+=e,t.m+=e}function Du(n){for(var t,e=0,r=0,u=n.children,i=u.length;--i>=0;)t=u[i],t.z+=e,t.m+=e,e+=t.s+(r+=t.c)}function Pu(n,t,e){return n.a.parent===t.parent?n.a:e}function ju(n){return 1+oa.max(n,function(n){return n.y})}function Uu(n){return n.reduce(function(n,t){return n+t.x},0)/n.length}function Fu(n){var t=n.children;return t&&t.length?Fu(t[0]):n}function Hu(n){var t,e=n.children;return e&&(t=e.length)?Hu(e[t-1]):n}function Ou(n){return{x:n.x,y:n.y,dx:n.dx,dy:n.dy}}function Iu(n,t){var e=n.x+t[3],r=n.y+t[0],u=n.dx-t[1]-t[3],i=n.dy-t[0]-t[2];return 0>u&&(e+=u/2,u=0),0>i&&(r+=i/2,i=0),{x:e,y:r,dx:u,dy:i}}function Yu(n){var t=n[0],e=n[n.length-1];return e>t?[t,e]:[e,t]}function Zu(n){return n.rangeExtent?n.rangeExtent():Yu(n.range())}function Vu(n,t,e,r){var u=e(n[0],n[1]),i=r(t[0],t[1]);return function(n){return i(u(n))}}function Xu(n,t){var e,r=0,u=n.length-1,i=n[r],a=n[u];return i>a&&(e=r,r=u,u=e,e=i,i=a,a=e),n[r]=t.floor(i),n[u]=t.ceil(a),n}function $u(n){return n?{floor:function(t){return Math.floor(t/n)*n},ceil:function(t){return Math.ceil(t/n)*n}}:wl}function Bu(n,t,e,r){var u=[],i=[],a=0,o=Math.min(n.length,t.length)-1;for(n[o]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++a<=o;)u.push(e(n[a-1],n[a])),i.push(r(t[a-1],t[a]));return function(t){var e=oa.bisect(n,t,1,o)-1;return i[e](u[e](t))}}function Wu(n,t,e,r){function u(){var u=Math.min(n.length,t.length)>2?Bu:Vu,l=r?Wr:Br;return a=u(n,t,l,e),o=u(t,n,l,Mr),i}function i(n){return a(n)}var a,o;return i.invert=function(n){return o(n)},i.domain=function(t){return arguments.length?(n=t.map(Number),u()):n},i.range=function(n){return arguments.length?(t=n,u()):t},i.rangeRound=function(n){return i.range(n).interpolate(jr)},i.clamp=function(n){return arguments.length?(r=n,u()):r},i.interpolate=function(n){return arguments.length?(e=n,u()):e},i.ticks=function(t){return Qu(n,t)},i.tickFormat=function(t,e){return ni(n,t,e)},i.nice=function(t){return Gu(n,t),u()},i.copy=function(){return Wu(n,t,e,r)},u()}function Ju(n,t){return oa.rebind(n,t,"range","rangeRound","interpolate","clamp")}function Gu(n,t){return Xu(n,$u(Ku(n,t)[2])),Xu(n,$u(Ku(n,t)[2])),n}function Ku(n,t){null==t&&(t=10);var e=Yu(n),r=e[1]-e[0],u=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),i=t/r*u;return.15>=i?u*=10:.35>=i?u*=5:.75>=i&&(u*=2),e[0]=Math.ceil(e[0]/u)*u,e[1]=Math.floor(e[1]/u)*u+.5*u,e[2]=u,e}function Qu(n,t){return oa.range.apply(oa,Ku(n,t))}function ni(n,t,e){var r=Ku(n,t);if(e){var u=so.exec(e);if(u.shift(),"s"===u[8]){var i=oa.formatPrefix(Math.max(Ma(r[0]),Ma(r[1])));return u[7]||(u[7]="."+ti(i.scale(r[2]))),u[8]="f",e=oa.format(u.join("")),function(n){return e(i.scale(n))+i.symbol}}u[7]||(u[7]="."+ei(u[8],r)),e=u.join("")}else e=",."+ti(r[2])+"f";return oa.format(e)}function ti(n){return-Math.floor(Math.log(n)/Math.LN10+.01)}function ei(n,t){var e=ti(t[2]);return n in Sl?Math.abs(e-ti(Math.max(Ma(t[0]),Ma(t[1]))))+ +("e"!==n):e-2*("%"===n)}function ri(n,t,e,r){function u(n){return(e?Math.log(0>n?0:n):-Math.log(n>0?0:-n))/Math.log(t)}function i(n){return e?Math.pow(t,n):-Math.pow(t,-n)}function a(t){return n(u(t))}return a.invert=function(t){return i(n.invert(t))},a.domain=function(t){return arguments.length?(e=t[0]>=0,n.domain((r=t.map(Number)).map(u)),a):r},a.base=function(e){return arguments.length?(t=+e,n.domain(r.map(u)),a):t},a.nice=function(){var t=Xu(r.map(u),e?Math:Nl);return n.domain(t),r=t.map(i),a},a.ticks=function(){var n=Yu(r),a=[],o=n[0],l=n[1],c=Math.floor(u(o)),s=Math.ceil(u(l)),f=t%1?2:t;if(isFinite(s-c)){if(e){for(;s>c;c++)for(var h=1;f>h;h++)a.push(i(c)*h);a.push(i(c))}else for(a.push(i(c));c++<s;)for(var h=f-1;h>0;h--)a.push(i(c)*h);for(c=0;a[c]<o;c++);for(s=a.length;a[s-1]>l;s--);a=a.slice(c,s)}return a},a.tickFormat=function(n,e){if(!arguments.length)return kl;arguments.length<2?e=kl:"function"!=typeof e&&(e=oa.format(e));var r=Math.max(1,t*n/a.ticks().length);return function(n){var a=n/i(Math.round(u(n)));return t-.5>a*t&&(a*=t),r>=a?e(n):""}},a.copy=function(){return ri(n.copy(),t,e,r)},Ju(a,n)}function ui(n,t,e){function r(t){return n(u(t))}var u=ii(t),i=ii(1/t);return r.invert=function(t){return i(n.invert(t))},r.domain=function(t){return arguments.length?(n.domain((e=t.map(Number)).map(u)),r):e},r.ticks=function(n){return Qu(e,n)},r.tickFormat=function(n,t){return ni(e,n,t)},r.nice=function(n){return r.domain(Gu(e,n))},r.exponent=function(a){return arguments.length?(u=ii(t=a),i=ii(1/t),n.domain(e.map(u)),r):t},r.copy=function(){return ui(n.copy(),t,e)},Ju(r,n)}function ii(n){return function(t){return 0>t?-Math.pow(-t,n):Math.pow(t,n)}}function ai(n,t){function e(e){return i[((u.get(e)||("range"===t.t?u.set(e,n.push(e)):NaN))-1)%i.length]}function r(t,e){return oa.range(n.length).map(function(n){return t+e*n})}var u,i,a;return e.domain=function(r){if(!arguments.length)return n;n=[],u=new c;for(var i,a=-1,o=r.length;++a<o;)u.has(i=r[a])||u.set(i,n.push(i));return e[t.t].apply(e,t.a)},e.range=function(n){return arguments.length?(i=n,a=0,t={t:"range",a:arguments},e):i},e.rangePoints=function(u,o){arguments.length<2&&(o=0);var l=u[0],c=u[1],s=n.length<2?(l=(l+c)/2,0):(c-l)/(n.length-1+o);return i=r(l+s*o/2,s),a=0,t={t:"rangePoints",a:arguments},e},e.rangeRoundPoints=function(u,o){arguments.length<2&&(o=0);var l=u[0],c=u[1],s=n.length<2?(l=c=Math.round((l+c)/2),0):(c-l)/(n.length-1+o)|0;return i=r(l+Math.round(s*o/2+(c-l-(n.length-1+o)*s)/2),s),a=0,t={t:"rangeRoundPoints",a:arguments},e},e.rangeBands=function(u,o,l){arguments.length<2&&(o=0),arguments.length<3&&(l=o);var c=u[1]<u[0],s=u[c-0],f=u[1-c],h=(f-s)/(n.length-o+2*l);return i=r(s+h*l,h),c&&i.reverse(),a=h*(1-o),t={t:"rangeBands",a:arguments},e},e.rangeRoundBands=function(u,o,l){arguments.length<2&&(o=0),arguments.length<3&&(l=o);var c=u[1]<u[0],s=u[c-0],f=u[1-c],h=Math.floor((f-s)/(n.length-o+2*l));return i=r(s+Math.round((f-s-(n.length-o)*h)/2),h),c&&i.reverse(),a=Math.round(h*(1-o)),t={t:"rangeRoundBands",a:arguments},e},e.rangeBand=function(){return a},e.rangeExtent=function(){return Yu(t.a[0])},e.copy=function(){return ai(n,t)},e.domain(n)}function oi(n,t){function i(){var e=0,r=t.length;for(o=[];++e<r;)o[e-1]=oa.quantile(n,e/r);return a}function a(n){return isNaN(n=+n)?void 0:t[oa.bisect(o,n)]}var o;return a.domain=function(t){return arguments.length?(n=t.map(r).filter(u).sort(e),i()):n},a.range=function(n){return arguments.length?(t=n,i()):t},a.quantiles=function(){return o},a.invertExtent=function(e){return e=t.indexOf(e),0>e?[NaN,NaN]:[e>0?o[e-1]:n[0],e<o.length?o[e]:n[n.length-1]]},a.copy=function(){return oi(n,t)},i()}function li(n,t,e){function r(t){return e[Math.max(0,Math.min(a,Math.floor(i*(t-n))))]}function u(){return i=e.length/(t-n),a=e.length-1,r}var i,a;return r.domain=function(e){return arguments.length?(n=+e[0],t=+e[e.length-1],u()):[n,t]},r.range=function(n){return arguments.length?(e=n,u()):e},r.invertExtent=function(t){return t=e.indexOf(t),t=0>t?NaN:t/i+n,[t,t+1/i]},r.copy=function(){return li(n,t,e)},u()}function ci(n,t){function e(e){return e>=e?t[oa.bisect(n,e)]:void 0}return e.domain=function(t){return arguments.length?(n=t,e):n},e.range=function(n){return arguments.length?(t=n,e):t},e.invertExtent=function(e){return e=t.indexOf(e),[n[e-1],n[e]]},e.copy=function(){return ci(n,t)},e}function si(n){function t(n){return+n}return t.invert=t,t.domain=t.range=function(e){return arguments.length?(n=e.map(t),t):n},t.ticks=function(t){return Qu(n,t)},t.tickFormat=function(t,e){return ni(n,t,e)},t.copy=function(){return si(n)},t}function fi(){return 0}function hi(n){return n.innerRadius}function gi(n){return n.outerRadius}function pi(n){return n.startAngle}function vi(n){return n.endAngle}function di(n){return n&&n.padAngle}function mi(n,t,e,r){return(n-e)*t-(t-r)*n>0?0:1}function yi(n,t,e,r,u){var i=n[0]-t[0],a=n[1]-t[1],o=(u?r:-r)/Math.sqrt(i*i+a*a),l=o*a,c=-o*i,s=n[0]+l,f=n[1]+c,h=t[0]+l,g=t[1]+c,p=(s+h)/2,v=(f+g)/2,d=h-s,m=g-f,y=d*d+m*m,M=e-r,x=s*g-h*f,b=(0>m?-1:1)*Math.sqrt(Math.max(0,M*M*y-x*x)),_=(x*m-d*b)/y,w=(-x*d-m*b)/y,S=(x*m+d*b)/y,k=(-x*d+m*b)/y,N=_-p,E=w-v,A=S-p,C=k-v;return N*N+E*E>A*A+C*C&&(_=S,w=k),[[_-l,w-c],[_*e/M,w*e/M]]}function Mi(n){function t(t){function a(){c.push("M",i(n(s),o))}for(var l,c=[],s=[],f=-1,h=t.length,g=En(e),p=En(r);++f<h;)u.call(this,l=t[f],f)?s.push([+g.call(this,l,f),+p.call(this,l,f)]):s.length&&(a(),s=[]);return s.length&&a(),c.length?c.join(""):null}var e=Ce,r=ze,u=zt,i=xi,a=i.key,o=.7;return t.x=function(n){return arguments.length?(e=n,t):e},t.y=function(n){return arguments.length?(r=n,t):r},t.defined=function(n){return arguments.length?(u=n,t):u},t.interpolate=function(n){return arguments.length?(a="function"==typeof n?i=n:(i=ql.get(n)||xi).key,t):a},t.tension=function(n){return arguments.length?(o=n,t):o},t}function xi(n){return n.length>1?n.join("L"):n+"Z"}function bi(n){return n.join("L")+"Z"}function _i(n){for(var t=0,e=n.length,r=n[0],u=[r[0],",",r[1]];++t<e;)u.push("H",(r[0]+(r=n[t])[0])/2,"V",r[1]);return e>1&&u.push("H",r[0]),u.join("")}function wi(n){for(var t=0,e=n.length,r=n[0],u=[r[0],",",r[1]];++t<e;)u.push("V",(r=n[t])[1],"H",r[0]);return u.join("")}function Si(n){for(var t=0,e=n.length,r=n[0],u=[r[0],",",r[1]];++t<e;)u.push("H",(r=n[t])[0],"V",r[1]);return u.join("")}function ki(n,t){return n.length<4?xi(n):n[1]+Ai(n.slice(1,-1),Ci(n,t))}function Ni(n,t){return n.length<3?bi(n):n[0]+Ai((n.push(n[0]),n),Ci([n[n.length-2]].concat(n,[n[1]]),t))}function Ei(n,t){return n.length<3?xi(n):n[0]+Ai(n,Ci(n,t))}function Ai(n,t){if(t.length<1||n.length!=t.length&&n.length!=t.length+2)return xi(n);var e=n.length!=t.length,r="",u=n[0],i=n[1],a=t[0],o=a,l=1;if(e&&(r+="Q"+(i[0]-2*a[0]/3)+","+(i[1]-2*a[1]/3)+","+i[0]+","+i[1],u=n[1],l=2),t.length>1){o=t[1],i=n[l],l++,r+="C"+(u[0]+a[0])+","+(u[1]+a[1])+","+(i[0]-o[0])+","+(i[1]-o[1])+","+i[0]+","+i[1];for(var c=2;c<t.length;c++,l++)i=n[l],o=t[c],r+="S"+(i[0]-o[0])+","+(i[1]-o[1])+","+i[0]+","+i[1]}if(e){var s=n[l];r+="Q"+(i[0]+2*o[0]/3)+","+(i[1]+2*o[1]/3)+","+s[0]+","+s[1]}return r}function Ci(n,t){for(var e,r=[],u=(1-t)/2,i=n[0],a=n[1],o=1,l=n.length;++o<l;)e=i,i=a,a=n[o],r.push([u*(a[0]-e[0]),u*(a[1]-e[1])]);return r}function zi(n){if(n.length<3)return xi(n);var t=1,e=n.length,r=n[0],u=r[0],i=r[1],a=[u,u,u,(r=n[1])[0]],o=[i,i,i,r[1]],l=[u,",",i,"L",Ri(Dl,a),",",Ri(Dl,o)];for(n.push(n[e-1]);++t<=e;)r=n[t],a.shift(),a.push(r[0]),o.shift(),o.push(r[1]),Di(l,a,o);return n.pop(),l.push("L",r),l.join("")}function Li(n){if(n.length<4)return xi(n);for(var t,e=[],r=-1,u=n.length,i=[0],a=[0];++r<3;)t=n[r],i.push(t[0]),a.push(t[1]);for(e.push(Ri(Dl,i)+","+Ri(Dl,a)),--r;++r<u;)t=n[r],i.shift(),i.push(t[0]),a.shift(),a.push(t[1]),Di(e,i,a);return e.join("")}function qi(n){for(var t,e,r=-1,u=n.length,i=u+4,a=[],o=[];++r<4;)e=n[r%u],a.push(e[0]),o.push(e[1]);for(t=[Ri(Dl,a),",",Ri(Dl,o)],--r;++r<i;)e=n[r%u],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),Di(t,a,o);return t.join("")}function Ti(n,t){var e=n.length-1;if(e)for(var r,u,i=n[0][0],a=n[0][1],o=n[e][0]-i,l=n[e][1]-a,c=-1;++c<=e;)r=n[c],u=c/e,r[0]=t*r[0]+(1-t)*(i+u*o),r[1]=t*r[1]+(1-t)*(a+u*l);return zi(n)}function Ri(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]+n[3]*t[3]}function Di(n,t,e){n.push("C",Ri(Tl,t),",",Ri(Tl,e),",",Ri(Rl,t),",",Ri(Rl,e),",",Ri(Dl,t),",",Ri(Dl,e))}function Pi(n,t){return(t[1]-n[1])/(t[0]-n[0])}function ji(n){for(var t=0,e=n.length-1,r=[],u=n[0],i=n[1],a=r[0]=Pi(u,i);++t<e;)r[t]=(a+(a=Pi(u=i,i=n[t+1])))/2;return r[t]=a,r}function Ui(n){for(var t,e,r,u,i=[],a=ji(n),o=-1,l=n.length-1;++o<l;)t=Pi(n[o],n[o+1]),Ma(t)<Da?a[o]=a[o+1]=0:(e=a[o]/t,r=a[o+1]/t,u=e*e+r*r,u>9&&(u=3*t/Math.sqrt(u),a[o]=u*e,a[o+1]=u*r));for(o=-1;++o<=l;)u=(n[Math.min(l,o+1)][0]-n[Math.max(0,o-1)][0])/(6*(1+a[o]*a[o])),i.push([u||0,a[o]*u||0]);return i}function Fi(n){return n.length<3?xi(n):n[0]+Ai(n,Ui(n))}function Hi(n){for(var t,e,r,u=-1,i=n.length;++u<i;)t=n[u],e=t[0],r=t[1]-Ha,t[0]=e*Math.cos(r),t[1]=e*Math.sin(r);return n}function Oi(n){function t(t){function l(){v.push("M",o(n(m),f),s,c(n(d.reverse()),f),"Z")}for(var h,g,p,v=[],d=[],m=[],y=-1,M=t.length,x=En(e),b=En(u),_=e===r?function(){
return g}:En(r),w=u===i?function(){return p}:En(i);++y<M;)a.call(this,h=t[y],y)?(d.push([g=+x.call(this,h,y),p=+b.call(this,h,y)]),m.push([+_.call(this,h,y),+w.call(this,h,y)])):d.length&&(l(),d=[],m=[]);return d.length&&l(),v.length?v.join(""):null}var e=Ce,r=Ce,u=0,i=ze,a=zt,o=xi,l=o.key,c=o,s="L",f=.7;return t.x=function(n){return arguments.length?(e=r=n,t):r},t.x0=function(n){return arguments.length?(e=n,t):e},t.x1=function(n){return arguments.length?(r=n,t):r},t.y=function(n){return arguments.length?(u=i=n,t):i},t.y0=function(n){return arguments.length?(u=n,t):u},t.y1=function(n){return arguments.length?(i=n,t):i},t.defined=function(n){return arguments.length?(a=n,t):a},t.interpolate=function(n){return arguments.length?(l="function"==typeof n?o=n:(o=ql.get(n)||xi).key,c=o.reverse||o,s=o.closed?"M":"L",t):l},t.tension=function(n){return arguments.length?(f=n,t):f},t}function Ii(n){return n.radius}function Yi(n){return[n.x,n.y]}function Zi(n){return function(){var t=n.apply(this,arguments),e=t[0],r=t[1]-Ha;return[e*Math.cos(r),e*Math.sin(r)]}}function Vi(){return 64}function Xi(){return"circle"}function $i(n){var t=Math.sqrt(n/ja);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}function Bi(n){return function(){var t,e,r;(t=this[n])&&(r=t[e=t.active])&&(r.timer.c=null,r.timer.t=NaN,--t.count?delete t[e]:delete this[n],t.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function Wi(n,t,e){return Sa(n,Il),n.namespace=t,n.id=e,n}function Ji(n,t,e,r){var u=n.id,i=n.namespace;return Y(n,"function"==typeof e?function(n,a,o){n[i][u].tween.set(t,r(e.call(n,n.__data__,a,o)))}:(e=r(e),function(n){n[i][u].tween.set(t,e)}))}function Gi(n){return null==n&&(n=""),function(){this.textContent=n}}function Ki(n){return null==n?"__transition__":"__transition_"+n+"__"}function Qi(n,t,e,r,u){function i(n){var t=v.delay;return s.t=t+l,n>=t?a(n-t):void(s.c=a)}function a(e){var u=p.active,i=p[u];i&&(i.timer.c=null,i.timer.t=NaN,--p.count,delete p[u],i.event&&i.event.interrupt.call(n,n.__data__,i.index));for(var a in p)if(r>+a){var c=p[a];c.timer.c=null,c.timer.t=NaN,--p.count,delete p[a]}s.c=o,qn(function(){return s.c&&o(e||1)&&(s.c=null,s.t=NaN),1},0,l),p.active=r,v.event&&v.event.start.call(n,n.__data__,t),g=[],v.tween.forEach(function(e,r){(r=r.call(n,n.__data__,t))&&g.push(r)}),h=v.ease,f=v.duration}function o(u){for(var i=u/f,a=h(i),o=g.length;o>0;)g[--o].call(n,a);return i>=1?(v.event&&v.event.end.call(n,n.__data__,t),--p.count?delete p[r]:delete n[e],1):void 0}var l,s,f,h,g,p=n[e]||(n[e]={active:0,count:0}),v=p[r];v||(l=u.time,s=qn(i,0,l),v=p[r]={tween:new c,time:l,timer:s,delay:u.delay,duration:u.duration,ease:u.ease,index:t},u=null,++p.count)}function na(n,t,e){n.attr("transform",function(n){var r=t(n);return"translate("+(isFinite(r)?r:e(n))+",0)"})}function ta(n,t,e){n.attr("transform",function(n){var r=t(n);return"translate(0,"+(isFinite(r)?r:e(n))+")"})}function ea(n){return n.toISOString()}function ra(n,t,e){function r(t){return n(t)}function u(n,e){var r=n[1]-n[0],u=r/e,i=oa.bisect(Gl,u);return i==Gl.length?[t.year,Ku(n.map(function(n){return n/31536e6}),e)[2]]:i?t[u/Gl[i-1]<Gl[i]/u?i-1:i]:[nc,Ku(n,e)[2]]}return r.invert=function(t){return ua(n.invert(t))},r.domain=function(t){return arguments.length?(n.domain(t),r):n.domain().map(ua)},r.nice=function(n,t){function e(e){return!isNaN(e)&&!n.range(e,ua(+e+1),t).length}var i=r.domain(),a=Yu(i),o=null==n?u(a,10):"number"==typeof n&&u(a,n);return o&&(n=o[0],t=o[1]),r.domain(Xu(i,t>1?{floor:function(t){for(;e(t=n.floor(t));)t=ua(t-1);return t},ceil:function(t){for(;e(t=n.ceil(t));)t=ua(+t+1);return t}}:n))},r.ticks=function(n,t){var e=Yu(r.domain()),i=null==n?u(e,10):"number"==typeof n?u(e,n):!n.range&&[{range:n},t];return i&&(n=i[0],t=i[1]),n.range(e[0],ua(+e[1]+1),1>t?1:t)},r.tickFormat=function(){return e},r.copy=function(){return ra(n.copy(),t,e)},Ju(r,n)}function ua(n){return new Date(n)}function ia(n){return JSON.parse(n.responseText)}function aa(n){var t=sa.createRange();return t.selectNode(sa.body),t.createContextualFragment(n.responseText)}var oa={version:"3.5.12"},la=[].slice,ca=function(n){return la.call(n)},sa=window.document;if(sa)try{ca(sa.documentElement.childNodes)[0].nodeType}catch(fa){ca=function(n){for(var t=n.length,e=new Array(t);t--;)e[t]=n[t];return e}}if(Date.now||(Date.now=function(){return+new Date}),sa)try{sa.createElement("DIV").style.setProperty("opacity",0,"")}catch(ha){var ga=this.Element.prototype,pa=ga.setAttribute,va=ga.setAttributeNS,da=this.CSSStyleDeclaration.prototype,ma=da.setProperty;ga.setAttribute=function(n,t){pa.call(this,n,t+"")},ga.setAttributeNS=function(n,t,e){va.call(this,n,t,e+"")},da.setProperty=function(n,t,e){ma.call(this,n,t+"",e)}}oa.ascending=e,oa.descending=function(n,t){return n>t?-1:t>n?1:t>=n?0:NaN},oa.min=function(n,t){var e,r,u=-1,i=n.length;if(1===arguments.length){for(;++u<i;)if(null!=(r=n[u])&&r>=r){e=r;break}for(;++u<i;)null!=(r=n[u])&&e>r&&(e=r)}else{for(;++u<i;)if(null!=(r=t.call(n,n[u],u))&&r>=r){e=r;break}for(;++u<i;)null!=(r=t.call(n,n[u],u))&&e>r&&(e=r)}return e},oa.max=function(n,t){var e,r,u=-1,i=n.length;if(1===arguments.length){for(;++u<i;)if(null!=(r=n[u])&&r>=r){e=r;break}for(;++u<i;)null!=(r=n[u])&&r>e&&(e=r)}else{for(;++u<i;)if(null!=(r=t.call(n,n[u],u))&&r>=r){e=r;break}for(;++u<i;)null!=(r=t.call(n,n[u],u))&&r>e&&(e=r)}return e},oa.extent=function(n,t){var e,r,u,i=-1,a=n.length;if(1===arguments.length){for(;++i<a;)if(null!=(r=n[i])&&r>=r){e=u=r;break}for(;++i<a;)null!=(r=n[i])&&(e>r&&(e=r),r>u&&(u=r))}else{for(;++i<a;)if(null!=(r=t.call(n,n[i],i))&&r>=r){e=u=r;break}for(;++i<a;)null!=(r=t.call(n,n[i],i))&&(e>r&&(e=r),r>u&&(u=r))}return[e,u]},oa.sum=function(n,t){var e,r=0,i=n.length,a=-1;if(1===arguments.length)for(;++a<i;)u(e=+n[a])&&(r+=e);else for(;++a<i;)u(e=+t.call(n,n[a],a))&&(r+=e);return r},oa.mean=function(n,t){var e,i=0,a=n.length,o=-1,l=a;if(1===arguments.length)for(;++o<a;)u(e=r(n[o]))?i+=e:--l;else for(;++o<a;)u(e=r(t.call(n,n[o],o)))?i+=e:--l;return l?i/l:void 0},oa.quantile=function(n,t){var e=(n.length-1)*t+1,r=Math.floor(e),u=+n[r-1],i=e-r;return i?u+i*(n[r]-u):u},oa.median=function(n,t){var i,a=[],o=n.length,l=-1;if(1===arguments.length)for(;++l<o;)u(i=r(n[l]))&&a.push(i);else for(;++l<o;)u(i=r(t.call(n,n[l],l)))&&a.push(i);return a.length?oa.quantile(a.sort(e),.5):void 0},oa.variance=function(n,t){var e,i,a=n.length,o=0,l=0,c=-1,s=0;if(1===arguments.length)for(;++c<a;)u(e=r(n[c]))&&(i=e-o,o+=i/++s,l+=i*(e-o));else for(;++c<a;)u(e=r(t.call(n,n[c],c)))&&(i=e-o,o+=i/++s,l+=i*(e-o));return s>1?l/(s-1):void 0},oa.deviation=function(){var n=oa.variance.apply(this,arguments);return n?Math.sqrt(n):n};var ya=i(e);oa.bisectLeft=ya.left,oa.bisect=oa.bisectRight=ya.right,oa.bisector=function(n){return i(1===n.length?function(t,r){return e(n(t),r)}:n)},oa.shuffle=function(n,t,e){(i=arguments.length)<3&&(e=n.length,2>i&&(t=0));for(var r,u,i=e-t;i;)u=Math.random()*i--|0,r=n[i+t],n[i+t]=n[u+t],n[u+t]=r;return n},oa.permute=function(n,t){for(var e=t.length,r=new Array(e);e--;)r[e]=n[t[e]];return r},oa.pairs=function(n){for(var t,e=0,r=n.length-1,u=n[0],i=new Array(0>r?0:r);r>e;)i[e]=[t=u,u=n[++e]];return i},oa.zip=function(){if(!(r=arguments.length))return[];for(var n=-1,t=oa.min(arguments,a),e=new Array(t);++n<t;)for(var r,u=-1,i=e[n]=new Array(r);++u<r;)i[u]=arguments[u][n];return e},oa.transpose=function(n){return oa.zip.apply(oa,n)},oa.keys=function(n){var t=[];for(var e in n)t.push(e);return t},oa.values=function(n){var t=[];for(var e in n)t.push(n[e]);return t},oa.entries=function(n){var t=[];for(var e in n)t.push({key:e,value:n[e]});return t},oa.merge=function(n){for(var t,e,r,u=n.length,i=-1,a=0;++i<u;)a+=n[i].length;for(e=new Array(a);--u>=0;)for(r=n[u],t=r.length;--t>=0;)e[--a]=r[t];return e};var Ma=Math.abs;oa.range=function(n,t,e){if(arguments.length<3&&(e=1,arguments.length<2&&(t=n,n=0)),(t-n)/e===1/0)throw new Error("infinite range");var r,u=[],i=o(Ma(e)),a=-1;if(n*=i,t*=i,e*=i,0>e)for(;(r=n+e*++a)>t;)u.push(r/i);else for(;(r=n+e*++a)<t;)u.push(r/i);return u},oa.map=function(n,t){var e=new c;if(n instanceof c)n.forEach(function(n,t){e.set(n,t)});else if(Array.isArray(n)){var r,u=-1,i=n.length;if(1===arguments.length)for(;++u<i;)e.set(u,n[u]);else for(;++u<i;)e.set(t.call(n,r=n[u],u),r)}else for(var a in n)e.set(a,n[a]);return e};var xa="__proto__",ba="\x00";l(c,{has:h,get:function(n){return this._[s(n)]},set:function(n,t){return this._[s(n)]=t},remove:g,keys:p,values:function(){var n=[];for(var t in this._)n.push(this._[t]);return n},entries:function(){var n=[];for(var t in this._)n.push({key:f(t),value:this._[t]});return n},size:v,empty:d,forEach:function(n){for(var t in this._)n.call(this,f(t),this._[t])}}),oa.nest=function(){function n(t,a,o){if(o>=i.length)return r?r.call(u,a):e?a.sort(e):a;for(var l,s,f,h,g=-1,p=a.length,v=i[o++],d=new c;++g<p;)(h=d.get(l=v(s=a[g])))?h.push(s):d.set(l,[s]);return t?(s=t(),f=function(e,r){s.set(e,n(t,r,o))}):(s={},f=function(e,r){s[e]=n(t,r,o)}),d.forEach(f),s}function t(n,e){if(e>=i.length)return n;var r=[],u=a[e++];return n.forEach(function(n,u){r.push({key:n,values:t(u,e)})}),u?r.sort(function(n,t){return u(n.key,t.key)}):r}var e,r,u={},i=[],a=[];return u.map=function(t,e){return n(e,t,0)},u.entries=function(e){return t(n(oa.map,e,0),0)},u.key=function(n){return i.push(n),u},u.sortKeys=function(n){return a[i.length-1]=n,u},u.sortValues=function(n){return e=n,u},u.rollup=function(n){return r=n,u},u},oa.set=function(n){var t=new m;if(n)for(var e=0,r=n.length;r>e;++e)t.add(n[e]);return t},l(m,{has:h,add:function(n){return this._[s(n+="")]=!0,n},remove:g,values:p,size:v,empty:d,forEach:function(n){for(var t in this._)n.call(this,f(t))}}),oa.behavior={},oa.rebind=function(n,t){for(var e,r=1,u=arguments.length;++r<u;)n[e=arguments[r]]=M(n,t,t[e]);return n};var _a=["webkit","ms","moz","Moz","o","O"];oa.dispatch=function(){for(var n=new _,t=-1,e=arguments.length;++t<e;)n[arguments[t]]=w(n);return n},_.prototype.on=function(n,t){var e=n.indexOf("."),r="";if(e>=0&&(r=n.slice(e+1),n=n.slice(0,e)),n)return arguments.length<2?this[n].on(r):this[n].on(r,t);if(2===arguments.length){if(null==t)for(n in this)this.hasOwnProperty(n)&&this[n].on(r,null);return this}},oa.event=null,oa.requote=function(n){return n.replace(wa,"\\$&")};var wa=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Sa={}.__proto__?function(n,t){n.__proto__=t}:function(n,t){for(var e in t)n[e]=t[e]},ka=function(n,t){return t.querySelector(n)},Na=function(n,t){return t.querySelectorAll(n)},Ea=function(n,t){var e=n.matches||n[x(n,"matchesSelector")];return(Ea=function(n,t){return e.call(n,t)})(n,t)};"function"==typeof Sizzle&&(ka=function(n,t){return Sizzle(n,t)[0]||null},Na=Sizzle,Ea=Sizzle.matchesSelector),oa.selection=function(){return oa.select(sa.documentElement)};var Aa=oa.selection.prototype=[];Aa.select=function(n){var t,e,r,u,i=[];n=A(n);for(var a=-1,o=this.length;++a<o;){i.push(t=[]),t.parentNode=(r=this[a]).parentNode;for(var l=-1,c=r.length;++l<c;)(u=r[l])?(t.push(e=n.call(u,u.__data__,l,a)),e&&"__data__"in u&&(e.__data__=u.__data__)):t.push(null)}return E(i)},Aa.selectAll=function(n){var t,e,r=[];n=C(n);for(var u=-1,i=this.length;++u<i;)for(var a=this[u],o=-1,l=a.length;++o<l;)(e=a[o])&&(r.push(t=ca(n.call(e,e.__data__,o,u))),t.parentNode=e);return E(r)};var Ca={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};oa.ns={prefix:Ca,qualify:function(n){var t=n.indexOf(":"),e=n;return t>=0&&"xmlns"!==(e=n.slice(0,t))&&(n=n.slice(t+1)),Ca.hasOwnProperty(e)?{space:Ca[e],local:n}:n}},Aa.attr=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node();return n=oa.ns.qualify(n),n.local?e.getAttributeNS(n.space,n.local):e.getAttribute(n)}for(t in n)this.each(z(t,n[t]));return this}return this.each(z(n,t))},Aa.classed=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node(),r=(n=T(n)).length,u=-1;if(t=e.classList){for(;++u<r;)if(!t.contains(n[u]))return!1}else for(t=e.getAttribute("class");++u<r;)if(!q(n[u]).test(t))return!1;return!0}for(t in n)this.each(R(t,n[t]));return this}return this.each(R(n,t))},Aa.style=function(n,e,r){var u=arguments.length;if(3>u){if("string"!=typeof n){2>u&&(e="");for(r in n)this.each(P(r,n[r],e));return this}if(2>u){var i=this.node();return t(i).getComputedStyle(i,null).getPropertyValue(n)}r=""}return this.each(P(n,e,r))},Aa.property=function(n,t){if(arguments.length<2){if("string"==typeof n)return this.node()[n];for(t in n)this.each(j(t,n[t]));return this}return this.each(j(n,t))},Aa.text=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.textContent=null==t?"":t}:null==n?function(){this.textContent=""}:function(){this.textContent=n}):this.node().textContent},Aa.html=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.innerHTML=null==t?"":t}:null==n?function(){this.innerHTML=""}:function(){this.innerHTML=n}):this.node().innerHTML},Aa.append=function(n){return n=U(n),this.select(function(){return this.appendChild(n.apply(this,arguments))})},Aa.insert=function(n,t){return n=U(n),t=A(t),this.select(function(){return this.insertBefore(n.apply(this,arguments),t.apply(this,arguments)||null)})},Aa.remove=function(){return this.each(F)},Aa.data=function(n,t){function e(n,e){var r,u,i,a=n.length,f=e.length,h=Math.min(a,f),g=new Array(f),p=new Array(f),v=new Array(a);if(t){var d,m=new c,y=new Array(a);for(r=-1;++r<a;)(u=n[r])&&(m.has(d=t.call(u,u.__data__,r))?v[r]=u:m.set(d,u),y[r]=d);for(r=-1;++r<f;)(u=m.get(d=t.call(e,i=e[r],r)))?u!==!0&&(g[r]=u,u.__data__=i):p[r]=H(i),m.set(d,!0);for(r=-1;++r<a;)r in y&&m.get(y[r])!==!0&&(v[r]=n[r])}else{for(r=-1;++r<h;)u=n[r],i=e[r],u?(u.__data__=i,g[r]=u):p[r]=H(i);for(;f>r;++r)p[r]=H(e[r]);for(;a>r;++r)v[r]=n[r]}p.update=g,p.parentNode=g.parentNode=v.parentNode=n.parentNode,o.push(p),l.push(g),s.push(v)}var r,u,i=-1,a=this.length;if(!arguments.length){for(n=new Array(a=(r=this[0]).length);++i<a;)(u=r[i])&&(n[i]=u.__data__);return n}var o=Z([]),l=E([]),s=E([]);if("function"==typeof n)for(;++i<a;)e(r=this[i],n.call(r,r.parentNode.__data__,i));else for(;++i<a;)e(r=this[i],n);return l.enter=function(){return o},l.exit=function(){return s},l},Aa.datum=function(n){return arguments.length?this.property("__data__",n):this.property("__data__")},Aa.filter=function(n){var t,e,r,u=[];"function"!=typeof n&&(n=O(n));for(var i=0,a=this.length;a>i;i++){u.push(t=[]),t.parentNode=(e=this[i]).parentNode;for(var o=0,l=e.length;l>o;o++)(r=e[o])&&n.call(r,r.__data__,o,i)&&t.push(r)}return E(u)},Aa.order=function(){for(var n=-1,t=this.length;++n<t;)for(var e,r=this[n],u=r.length-1,i=r[u];--u>=0;)(e=r[u])&&(i&&i!==e.nextSibling&&i.parentNode.insertBefore(e,i),i=e);return this},Aa.sort=function(n){n=I.apply(this,arguments);for(var t=-1,e=this.length;++t<e;)this[t].sort(n);return this.order()},Aa.each=function(n){return Y(this,function(t,e,r){n.call(t,t.__data__,e,r)})},Aa.call=function(n){var t=ca(arguments);return n.apply(t[0]=this,t),this},Aa.empty=function(){return!this.node()},Aa.node=function(){for(var n=0,t=this.length;t>n;n++)for(var e=this[n],r=0,u=e.length;u>r;r++){var i=e[r];if(i)return i}return null},Aa.size=function(){var n=0;return Y(this,function(){++n}),n};var za=[];oa.selection.enter=Z,oa.selection.enter.prototype=za,za.append=Aa.append,za.empty=Aa.empty,za.node=Aa.node,za.call=Aa.call,za.size=Aa.size,za.select=function(n){for(var t,e,r,u,i,a=[],o=-1,l=this.length;++o<l;){r=(u=this[o]).update,a.push(t=[]),t.parentNode=u.parentNode;for(var c=-1,s=u.length;++c<s;)(i=u[c])?(t.push(r[c]=e=n.call(u.parentNode,i.__data__,c,o)),e.__data__=i.__data__):t.push(null)}return E(a)},za.insert=function(n,t){return arguments.length<2&&(t=V(this)),Aa.insert.call(this,n,t)},oa.select=function(t){var e;return"string"==typeof t?(e=[ka(t,sa)],e.parentNode=sa.documentElement):(e=[t],e.parentNode=n(t)),E([e])},oa.selectAll=function(n){var t;return"string"==typeof n?(t=ca(Na(n,sa)),t.parentNode=sa.documentElement):(t=ca(n),t.parentNode=null),E([t])},Aa.on=function(n,t,e){var r=arguments.length;if(3>r){if("string"!=typeof n){2>r&&(t=!1);for(e in n)this.each(X(e,n[e],t));return this}if(2>r)return(r=this.node()["__on"+n])&&r._;e=!1}return this.each(X(n,t,e))};var La=oa.map({mouseenter:"mouseover",mouseleave:"mouseout"});sa&&La.forEach(function(n){"on"+n in sa&&La.remove(n)});var qa,Ta=0;oa.mouse=function(n){return J(n,k())};var Ra=window.navigator&&/WebKit/.test(window.navigator.userAgent)?-1:0;oa.touch=function(n,t,e){if(arguments.length<3&&(e=t,t=k().changedTouches),t)for(var r,u=0,i=t.length;i>u;++u)if((r=t[u]).identifier===e)return J(n,r)},oa.behavior.drag=function(){function n(){this.on("mousedown.drag",i).on("touchstart.drag",a)}function e(n,t,e,i,a){return function(){function o(){var n,e,r=t(h,v);r&&(n=r[0]-M[0],e=r[1]-M[1],p|=n|e,M=r,g({type:"drag",x:r[0]+c[0],y:r[1]+c[1],dx:n,dy:e}))}function l(){t(h,v)&&(m.on(i+d,null).on(a+d,null),y(p),g({type:"dragend"}))}var c,s=this,f=oa.event.target,h=s.parentNode,g=r.of(s,arguments),p=0,v=n(),d=".drag"+(null==v?"":"-"+v),m=oa.select(e(f)).on(i+d,o).on(a+d,l),y=W(f),M=t(h,v);u?(c=u.apply(s,arguments),c=[c.x-M[0],c.y-M[1]]):c=[0,0],g({type:"dragstart"})}}var r=N(n,"drag","dragstart","dragend"),u=null,i=e(b,oa.mouse,t,"mousemove","mouseup"),a=e(G,oa.touch,y,"touchmove","touchend");return n.origin=function(t){return arguments.length?(u=t,n):u},oa.rebind(n,r,"on")},oa.touches=function(n,t){return arguments.length<2&&(t=k().touches),t?ca(t).map(function(t){var e=J(n,t);return e.identifier=t.identifier,e}):[]};var Da=1e-6,Pa=Da*Da,ja=Math.PI,Ua=2*ja,Fa=Ua-Da,Ha=ja/2,Oa=ja/180,Ia=180/ja,Ya=Math.SQRT2,Za=2,Va=4;oa.interpolateZoom=function(n,t){var e,r,u=n[0],i=n[1],a=n[2],o=t[0],l=t[1],c=t[2],s=o-u,f=l-i,h=s*s+f*f;if(Pa>h)r=Math.log(c/a)/Ya,e=function(n){return[u+n*s,i+n*f,a*Math.exp(Ya*n*r)]};else{var g=Math.sqrt(h),p=(c*c-a*a+Va*h)/(2*a*Za*g),v=(c*c-a*a-Va*h)/(2*c*Za*g),d=Math.log(Math.sqrt(p*p+1)-p),m=Math.log(Math.sqrt(v*v+1)-v);r=(m-d)/Ya,e=function(n){var t=n*r,e=rn(d),o=a/(Za*g)*(e*un(Ya*t+d)-en(d));return[u+o*s,i+o*f,a*e/rn(Ya*t+d)]}}return e.duration=1e3*r,e},oa.behavior.zoom=function(){function n(n){n.on(L,f).on($a+".zoom",g).on("dblclick.zoom",p).on(R,h)}function e(n){return[(n[0]-k.x)/k.k,(n[1]-k.y)/k.k]}function r(n){return[n[0]*k.k+k.x,n[1]*k.k+k.y]}function u(n){k.k=Math.max(A[0],Math.min(A[1],n))}function i(n,t){t=r(t),k.x+=n[0]-t[0],k.y+=n[1]-t[1]}function a(t,e,r,a){t.__chart__={x:k.x,y:k.y,k:k.k},u(Math.pow(2,a)),i(d=e,r),t=oa.select(t),C>0&&(t=t.transition().duration(C)),t.call(n.event)}function o(){b&&b.domain(x.range().map(function(n){return(n-k.x)/k.k}).map(x.invert)),w&&w.domain(_.range().map(function(n){return(n-k.y)/k.k}).map(_.invert))}function l(n){z++||n({type:"zoomstart"})}function c(n){o(),n({type:"zoom",scale:k.k,translate:[k.x,k.y]})}function s(n){--z||(n({type:"zoomend"}),d=null)}function f(){function n(){o=1,i(oa.mouse(u),h),c(a)}function r(){f.on(q,null).on(T,null),g(o),s(a)}var u=this,a=D.of(u,arguments),o=0,f=oa.select(t(u)).on(q,n).on(T,r),h=e(oa.mouse(u)),g=W(u);Ol.call(u),l(a)}function h(){function n(){var n=oa.touches(p);return g=k.k,n.forEach(function(n){n.identifier in d&&(d[n.identifier]=e(n))}),n}function t(){var t=oa.event.target;oa.select(t).on(x,r).on(b,o),_.push(t);for(var e=oa.event.changedTouches,u=0,i=e.length;i>u;++u)d[e[u].identifier]=null;var l=n(),c=Date.now();if(1===l.length){if(500>c-M){var s=l[0];a(p,s,d[s.identifier],Math.floor(Math.log(k.k)/Math.LN2)+1),S()}M=c}else if(l.length>1){var s=l[0],f=l[1],h=s[0]-f[0],g=s[1]-f[1];m=h*h+g*g}}function r(){var n,t,e,r,a=oa.touches(p);Ol.call(p);for(var o=0,l=a.length;l>o;++o,r=null)if(e=a[o],r=d[e.identifier]){if(t)break;n=e,t=r}if(r){var s=(s=e[0]-n[0])*s+(s=e[1]-n[1])*s,f=m&&Math.sqrt(s/m);n=[(n[0]+e[0])/2,(n[1]+e[1])/2],t=[(t[0]+r[0])/2,(t[1]+r[1])/2],u(f*g)}M=null,i(n,t),c(v)}function o(){if(oa.event.touches.length){for(var t=oa.event.changedTouches,e=0,r=t.length;r>e;++e)delete d[t[e].identifier];for(var u in d)return void n()}oa.selectAll(_).on(y,null),w.on(L,f).on(R,h),N(),s(v)}var g,p=this,v=D.of(p,arguments),d={},m=0,y=".zoom-"+oa.event.changedTouches[0].identifier,x="touchmove"+y,b="touchend"+y,_=[],w=oa.select(p),N=W(p);t(),l(v),w.on(L,null).on(R,t)}function g(){var n=D.of(this,arguments);y?clearTimeout(y):(Ol.call(this),v=e(d=m||oa.mouse(this)),l(n)),y=setTimeout(function(){y=null,s(n)},50),S(),u(Math.pow(2,.002*Xa())*k.k),i(d,v),c(n)}function p(){var n=oa.mouse(this),t=Math.log(k.k)/Math.LN2;a(this,n,e(n),oa.event.shiftKey?Math.ceil(t)-1:Math.floor(t)+1)}var v,d,m,y,M,x,b,_,w,k={x:0,y:0,k:1},E=[960,500],A=Ba,C=250,z=0,L="mousedown.zoom",q="mousemove.zoom",T="mouseup.zoom",R="touchstart.zoom",D=N(n,"zoomstart","zoom","zoomend");return $a||($a="onwheel"in sa?(Xa=function(){return-oa.event.deltaY*(oa.event.deltaMode?120:1)},"wheel"):"onmousewheel"in sa?(Xa=function(){return oa.event.wheelDelta},"mousewheel"):(Xa=function(){return-oa.event.detail},"MozMousePixelScroll")),n.event=function(n){n.each(function(){var n=D.of(this,arguments),t=k;Fl?oa.select(this).transition().each("start.zoom",function(){k=this.__chart__||{x:0,y:0,k:1},l(n)}).tween("zoom:zoom",function(){var e=E[0],r=E[1],u=d?d[0]:e/2,i=d?d[1]:r/2,a=oa.interpolateZoom([(u-k.x)/k.k,(i-k.y)/k.k,e/k.k],[(u-t.x)/t.k,(i-t.y)/t.k,e/t.k]);return function(t){var r=a(t),o=e/r[2];this.__chart__=k={x:u-r[0]*o,y:i-r[1]*o,k:o},c(n)}}).each("interrupt.zoom",function(){s(n)}).each("end.zoom",function(){s(n)}):(this.__chart__=k,l(n),c(n),s(n))})},n.translate=function(t){return arguments.length?(k={x:+t[0],y:+t[1],k:k.k},o(),n):[k.x,k.y]},n.scale=function(t){return arguments.length?(k={x:k.x,y:k.y,k:null},u(+t),o(),n):k.k},n.scaleExtent=function(t){return arguments.length?(A=null==t?Ba:[+t[0],+t[1]],n):A},n.center=function(t){return arguments.length?(m=t&&[+t[0],+t[1]],n):m},n.size=function(t){return arguments.length?(E=t&&[+t[0],+t[1]],n):E},n.duration=function(t){return arguments.length?(C=+t,n):C},n.x=function(t){return arguments.length?(b=t,x=t.copy(),k={x:0,y:0,k:1},n):b},n.y=function(t){return arguments.length?(w=t,_=t.copy(),k={x:0,y:0,k:1},n):w},oa.rebind(n,D,"on")};var Xa,$a,Ba=[0,1/0];oa.color=on,on.prototype.toString=function(){return this.rgb()+""},oa.hsl=ln;var Wa=ln.prototype=new on;Wa.brighter=function(n){return n=Math.pow(.7,arguments.length?n:1),new ln(this.h,this.s,this.l/n)},Wa.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),new ln(this.h,this.s,n*this.l)},Wa.rgb=function(){return cn(this.h,this.s,this.l)},oa.hcl=sn;var Ja=sn.prototype=new on;Ja.brighter=function(n){return new sn(this.h,this.c,Math.min(100,this.l+Ga*(arguments.length?n:1)))},Ja.darker=function(n){return new sn(this.h,this.c,Math.max(0,this.l-Ga*(arguments.length?n:1)))},Ja.rgb=function(){return fn(this.h,this.c,this.l).rgb()},oa.lab=hn;var Ga=18,Ka=.95047,Qa=1,no=1.08883,to=hn.prototype=new on;to.brighter=function(n){return new hn(Math.min(100,this.l+Ga*(arguments.length?n:1)),this.a,this.b)},to.darker=function(n){return new hn(Math.max(0,this.l-Ga*(arguments.length?n:1)),this.a,this.b)},to.rgb=function(){return gn(this.l,this.a,this.b)},oa.rgb=yn;var eo=yn.prototype=new on;eo.brighter=function(n){n=Math.pow(.7,arguments.length?n:1);var t=this.r,e=this.g,r=this.b,u=30;return t||e||r?(t&&u>t&&(t=u),e&&u>e&&(e=u),r&&u>r&&(r=u),new yn(Math.min(255,t/n),Math.min(255,e/n),Math.min(255,r/n))):new yn(u,u,u)},eo.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),new yn(n*this.r,n*this.g,n*this.b)},eo.hsl=function(){return wn(this.r,this.g,this.b)},eo.toString=function(){return"#"+bn(this.r)+bn(this.g)+bn(this.b)};var ro=oa.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});ro.forEach(function(n,t){ro.set(n,Mn(t))}),oa.functor=En,oa.xhr=An(y),oa.dsv=function(n,t){function e(n,e,i){arguments.length<3&&(i=e,e=null);var a=Cn(n,t,null==e?r:u(e),i);return a.row=function(n){return arguments.length?a.response(null==(e=n)?r:u(n)):e},a}function r(n){return e.parse(n.responseText)}function u(n){return function(t){return e.parse(t.responseText,n)}}function i(t){return t.map(a).join(n)}function a(n){return o.test(n)?'"'+n.replace(/\"/g,'""')+'"':n}var o=new RegExp('["'+n+"\n]"),l=n.charCodeAt(0);return e.parse=function(n,t){var r;return e.parseRows(n,function(n,e){if(r)return r(n,e-1);var u=new Function("d","return {"+n.map(function(n,t){return JSON.stringify(n)+": d["+t+"]"}).join(",")+"}");r=t?function(n,e){return t(u(n),e)}:u})},e.parseRows=function(n,t){function e(){if(s>=c)return a;if(u)return u=!1,i;var t=s;if(34===n.charCodeAt(t)){for(var e=t;e++<c;)if(34===n.charCodeAt(e)){if(34!==n.charCodeAt(e+1))break;++e}s=e+2;var r=n.charCodeAt(e+1);return 13===r?(u=!0,10===n.charCodeAt(e+2)&&++s):10===r&&(u=!0),n.slice(t+1,e).replace(/""/g,'"')}for(;c>s;){var r=n.charCodeAt(s++),o=1;if(10===r)u=!0;else if(13===r)u=!0,10===n.charCodeAt(s)&&(++s,++o);else if(r!==l)continue;return n.slice(t,s-o)}return n.slice(t)}for(var r,u,i={},a={},o=[],c=n.length,s=0,f=0;(r=e())!==a;){for(var h=[];r!==i&&r!==a;)h.push(r),r=e();t&&null==(h=t(h,f++))||o.push(h)}return o},e.format=function(t){if(Array.isArray(t[0]))return e.formatRows(t);var r=new m,u=[];return t.forEach(function(n){for(var t in n)r.has(t)||u.push(r.add(t))}),[u.map(a).join(n)].concat(t.map(function(t){return u.map(function(n){return a(t[n])}).join(n)})).join("\n")},e.formatRows=function(n){return n.map(i).join("\n")},e},oa.csv=oa.dsv(",","text/csv"),oa.tsv=oa.dsv("	","text/tab-separated-values");var uo,io,ao,oo,lo=window[x(window,"requestAnimationFrame")]||function(n){setTimeout(n,17)};oa.timer=function(){qn.apply(this,arguments)},oa.timer.flush=function(){Rn(),Dn()},oa.round=function(n,t){return t?Math.round(n*(t=Math.pow(10,t)))/t:Math.round(n)};var co=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"].map(jn);oa.formatPrefix=function(n,t){var e=0;return(n=+n)&&(0>n&&(n*=-1),t&&(n=oa.round(n,Pn(n,t))),e=1+Math.floor(1e-12+Math.log(n)/Math.LN10),e=Math.max(-24,Math.min(24,3*Math.floor((e-1)/3)))),co[8+e/3]};var so=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,fo=oa.map({b:function(n){return n.toString(2)},c:function(n){return String.fromCharCode(n)},o:function(n){return n.toString(8)},x:function(n){return n.toString(16)},X:function(n){return n.toString(16).toUpperCase()},g:function(n,t){return n.toPrecision(t)},e:function(n,t){return n.toExponential(t)},f:function(n,t){return n.toFixed(t)},r:function(n,t){return(n=oa.round(n,Pn(n,t))).toFixed(Math.max(0,Math.min(20,Pn(n*(1+1e-15),t))))}}),ho=oa.time={},go=Date;Hn.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){po.setUTCDate.apply(this._,arguments)},setDay:function(){po.setUTCDay.apply(this._,arguments)},setFullYear:function(){po.setUTCFullYear.apply(this._,arguments)},setHours:function(){po.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){po.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){po.setUTCMinutes.apply(this._,arguments)},setMonth:function(){po.setUTCMonth.apply(this._,arguments)},setSeconds:function(){po.setUTCSeconds.apply(this._,arguments)},setTime:function(){po.setTime.apply(this._,arguments)}};var po=Date.prototype;ho.year=On(function(n){return n=ho.day(n),n.setMonth(0,1),n},function(n,t){n.setFullYear(n.getFullYear()+t)},function(n){return n.getFullYear()}),ho.years=ho.year.range,ho.years.utc=ho.year.utc.range,ho.day=On(function(n){var t=new go(2e3,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t},function(n,t){n.setDate(n.getDate()+t)},function(n){return n.getDate()-1}),ho.days=ho.day.range,ho.days.utc=ho.day.utc.range,ho.dayOfYear=function(n){var t=ho.year(n);return Math.floor((n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(n,t){t=7-t;var e=ho[n]=On(function(n){return(n=ho.day(n)).setDate(n.getDate()-(n.getDay()+t)%7),n},function(n,t){n.setDate(n.getDate()+7*Math.floor(t))},function(n){var e=ho.year(n).getDay();return Math.floor((ho.dayOfYear(n)+(e+t)%7)/7)-(e!==t)});ho[n+"s"]=e.range,ho[n+"s"].utc=e.utc.range,ho[n+"OfYear"]=function(n){var e=ho.year(n).getDay();return Math.floor((ho.dayOfYear(n)+(e+t)%7)/7)}}),ho.week=ho.sunday,ho.weeks=ho.sunday.range,ho.weeks.utc=ho.sunday.utc.range,ho.weekOfYear=ho.sundayOfYear;var vo={"-":"",_:" ",0:"0"},mo=/^\s*\d+/,yo=/^%/;oa.locale=function(n){return{numberFormat:Un(n),timeFormat:Yn(n)}};var Mo=oa.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],
shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});oa.format=Mo.numberFormat,oa.geo={},st.prototype={s:0,t:0,add:function(n){ft(n,this.t,xo),ft(xo.s,this.s,this),this.s?this.t+=xo.t:this.s=xo.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var xo=new st;oa.geo.stream=function(n,t){n&&bo.hasOwnProperty(n.type)?bo[n.type](n,t):ht(n,t)};var bo={Feature:function(n,t){ht(n.geometry,t)},FeatureCollection:function(n,t){for(var e=n.features,r=-1,u=e.length;++r<u;)ht(e[r].geometry,t)}},_o={Sphere:function(n,t){t.sphere()},Point:function(n,t){n=n.coordinates,t.point(n[0],n[1],n[2])},MultiPoint:function(n,t){for(var e=n.coordinates,r=-1,u=e.length;++r<u;)n=e[r],t.point(n[0],n[1],n[2])},LineString:function(n,t){gt(n.coordinates,t,0)},MultiLineString:function(n,t){for(var e=n.coordinates,r=-1,u=e.length;++r<u;)gt(e[r],t,0)},Polygon:function(n,t){pt(n.coordinates,t)},MultiPolygon:function(n,t){for(var e=n.coordinates,r=-1,u=e.length;++r<u;)pt(e[r],t)},GeometryCollection:function(n,t){for(var e=n.geometries,r=-1,u=e.length;++r<u;)ht(e[r],t)}};oa.geo.area=function(n){return wo=0,oa.geo.stream(n,ko),wo};var wo,So=new st,ko={sphere:function(){wo+=4*ja},point:b,lineStart:b,lineEnd:b,polygonStart:function(){So.reset(),ko.lineStart=vt},polygonEnd:function(){var n=2*So;wo+=0>n?4*ja+n:n,ko.lineStart=ko.lineEnd=ko.point=b}};oa.geo.bounds=function(){function n(n,t){M.push(x=[s=n,h=n]),f>t&&(f=t),t>g&&(g=t)}function t(t,e){var r=dt([t*Oa,e*Oa]);if(m){var u=yt(m,r),i=[u[1],-u[0],0],a=yt(i,u);bt(a),a=_t(a);var l=t-p,c=l>0?1:-1,v=a[0]*Ia*c,d=Ma(l)>180;if(d^(v>c*p&&c*t>v)){var y=a[1]*Ia;y>g&&(g=y)}else if(v=(v+360)%360-180,d^(v>c*p&&c*t>v)){var y=-a[1]*Ia;f>y&&(f=y)}else f>e&&(f=e),e>g&&(g=e);d?p>t?o(s,t)>o(s,h)&&(h=t):o(t,h)>o(s,h)&&(s=t):h>=s?(s>t&&(s=t),t>h&&(h=t)):t>p?o(s,t)>o(s,h)&&(h=t):o(t,h)>o(s,h)&&(s=t)}else n(t,e);m=r,p=t}function e(){b.point=t}function r(){x[0]=s,x[1]=h,b.point=n,m=null}function u(n,e){if(m){var r=n-p;y+=Ma(r)>180?r+(r>0?360:-360):r}else v=n,d=e;ko.point(n,e),t(n,e)}function i(){ko.lineStart()}function a(){u(v,d),ko.lineEnd(),Ma(y)>Da&&(s=-(h=180)),x[0]=s,x[1]=h,m=null}function o(n,t){return(t-=n)<0?t+360:t}function l(n,t){return n[0]-t[0]}function c(n,t){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}var s,f,h,g,p,v,d,m,y,M,x,b={point:n,lineStart:e,lineEnd:r,polygonStart:function(){b.point=u,b.lineStart=i,b.lineEnd=a,y=0,ko.polygonStart()},polygonEnd:function(){ko.polygonEnd(),b.point=n,b.lineStart=e,b.lineEnd=r,0>So?(s=-(h=180),f=-(g=90)):y>Da?g=90:-Da>y&&(f=-90),x[0]=s,x[1]=h}};return function(n){g=h=-(s=f=1/0),M=[],oa.geo.stream(n,b);var t=M.length;if(t){M.sort(l);for(var e,r=1,u=M[0],i=[u];t>r;++r)e=M[r],c(e[0],u)||c(e[1],u)?(o(u[0],e[1])>o(u[0],u[1])&&(u[1]=e[1]),o(e[0],u[1])>o(u[0],u[1])&&(u[0]=e[0])):i.push(u=e);for(var a,e,p=-(1/0),t=i.length-1,r=0,u=i[t];t>=r;u=e,++r)e=i[r],(a=o(u[1],e[0]))>p&&(p=a,s=e[0],h=u[1])}return M=x=null,s===1/0||f===1/0?[[NaN,NaN],[NaN,NaN]]:[[s,f],[h,g]]}}(),oa.geo.centroid=function(n){No=Eo=Ao=Co=zo=Lo=qo=To=Ro=Do=Po=0,oa.geo.stream(n,jo);var t=Ro,e=Do,r=Po,u=t*t+e*e+r*r;return Pa>u&&(t=Lo,e=qo,r=To,Da>Eo&&(t=Ao,e=Co,r=zo),u=t*t+e*e+r*r,Pa>u)?[NaN,NaN]:[Math.atan2(e,t)*Ia,tn(r/Math.sqrt(u))*Ia]};var No,Eo,Ao,Co,zo,Lo,qo,To,Ro,Do,Po,jo={sphere:b,point:St,lineStart:Nt,lineEnd:Et,polygonStart:function(){jo.lineStart=At},polygonEnd:function(){jo.lineStart=Nt}},Uo=Rt(zt,Ut,Ht,[-ja,-ja/2]),Fo=1e9;oa.geo.clipExtent=function(){var n,t,e,r,u,i,a={stream:function(n){return u&&(u.valid=!1),u=i(n),u.valid=!0,u},extent:function(o){return arguments.length?(i=Zt(n=+o[0][0],t=+o[0][1],e=+o[1][0],r=+o[1][1]),u&&(u.valid=!1,u=null),a):[[n,t],[e,r]]}};return a.extent([[0,0],[960,500]])},(oa.geo.conicEqualArea=function(){return Vt(Xt)}).raw=Xt,oa.geo.albers=function(){return oa.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},oa.geo.albersUsa=function(){function n(n){var i=n[0],a=n[1];return t=null,e(i,a),t||(r(i,a),t)||u(i,a),t}var t,e,r,u,i=oa.geo.albers(),a=oa.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),o=oa.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(n,e){t=[n,e]}};return n.invert=function(n){var t=i.scale(),e=i.translate(),r=(n[0]-e[0])/t,u=(n[1]-e[1])/t;return(u>=.12&&.234>u&&r>=-.425&&-.214>r?a:u>=.166&&.234>u&&r>=-.214&&-.115>r?o:i).invert(n)},n.stream=function(n){var t=i.stream(n),e=a.stream(n),r=o.stream(n);return{point:function(n,u){t.point(n,u),e.point(n,u),r.point(n,u)},sphere:function(){t.sphere(),e.sphere(),r.sphere()},lineStart:function(){t.lineStart(),e.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),e.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),e.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),e.polygonEnd(),r.polygonEnd()}}},n.precision=function(t){return arguments.length?(i.precision(t),a.precision(t),o.precision(t),n):i.precision()},n.scale=function(t){return arguments.length?(i.scale(t),a.scale(.35*t),o.scale(t),n.translate(i.translate())):i.scale()},n.translate=function(t){if(!arguments.length)return i.translate();var c=i.scale(),s=+t[0],f=+t[1];return e=i.translate(t).clipExtent([[s-.455*c,f-.238*c],[s+.455*c,f+.238*c]]).stream(l).point,r=a.translate([s-.307*c,f+.201*c]).clipExtent([[s-.425*c+Da,f+.12*c+Da],[s-.214*c-Da,f+.234*c-Da]]).stream(l).point,u=o.translate([s-.205*c,f+.212*c]).clipExtent([[s-.214*c+Da,f+.166*c+Da],[s-.115*c-Da,f+.234*c-Da]]).stream(l).point,n},n.scale(1070)};var Ho,Oo,Io,Yo,Zo,Vo,Xo={point:b,lineStart:b,lineEnd:b,polygonStart:function(){Oo=0,Xo.lineStart=$t},polygonEnd:function(){Xo.lineStart=Xo.lineEnd=Xo.point=b,Ho+=Ma(Oo/2)}},$o={point:Bt,lineStart:b,lineEnd:b,polygonStart:b,polygonEnd:b},Bo={point:Gt,lineStart:Kt,lineEnd:Qt,polygonStart:function(){Bo.lineStart=ne},polygonEnd:function(){Bo.point=Gt,Bo.lineStart=Kt,Bo.lineEnd=Qt}};oa.geo.path=function(){function n(n){return n&&("function"==typeof o&&i.pointRadius(+o.apply(this,arguments)),a&&a.valid||(a=u(i)),oa.geo.stream(n,a)),i.result()}function t(){return a=null,n}var e,r,u,i,a,o=4.5;return n.area=function(n){return Ho=0,oa.geo.stream(n,u(Xo)),Ho},n.centroid=function(n){return Ao=Co=zo=Lo=qo=To=Ro=Do=Po=0,oa.geo.stream(n,u(Bo)),Po?[Ro/Po,Do/Po]:To?[Lo/To,qo/To]:zo?[Ao/zo,Co/zo]:[NaN,NaN]},n.bounds=function(n){return Zo=Vo=-(Io=Yo=1/0),oa.geo.stream(n,u($o)),[[Io,Yo],[Zo,Vo]]},n.projection=function(n){return arguments.length?(u=(e=n)?n.stream||re(n):y,t()):e},n.context=function(n){return arguments.length?(i=null==(r=n)?new Wt:new te(n),"function"!=typeof o&&i.pointRadius(o),t()):r},n.pointRadius=function(t){return arguments.length?(o="function"==typeof t?t:(i.pointRadius(+t),+t),n):o},n.projection(oa.geo.albersUsa()).context(null)},oa.geo.transform=function(n){return{stream:function(t){var e=new ue(t);for(var r in n)e[r]=n[r];return e}}},ue.prototype={point:function(n,t){this.stream.point(n,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},oa.geo.projection=ae,oa.geo.projectionMutator=oe,(oa.geo.equirectangular=function(){return ae(ce)}).raw=ce.invert=ce,oa.geo.rotation=function(n){function t(t){return t=n(t[0]*Oa,t[1]*Oa),t[0]*=Ia,t[1]*=Ia,t}return n=fe(n[0]%360*Oa,n[1]*Oa,n.length>2?n[2]*Oa:0),t.invert=function(t){return t=n.invert(t[0]*Oa,t[1]*Oa),t[0]*=Ia,t[1]*=Ia,t},t},se.invert=ce,oa.geo.circle=function(){function n(){var n="function"==typeof r?r.apply(this,arguments):r,t=fe(-n[0]*Oa,-n[1]*Oa,0).invert,u=[];return e(null,null,1,{point:function(n,e){u.push(n=t(n,e)),n[0]*=Ia,n[1]*=Ia}}),{type:"Polygon",coordinates:[u]}}var t,e,r=[0,0],u=6;return n.origin=function(t){return arguments.length?(r=t,n):r},n.angle=function(r){return arguments.length?(e=ve((t=+r)*Oa,u*Oa),n):t},n.precision=function(r){return arguments.length?(e=ve(t*Oa,(u=+r)*Oa),n):u},n.angle(90)},oa.geo.distance=function(n,t){var e,r=(t[0]-n[0])*Oa,u=n[1]*Oa,i=t[1]*Oa,a=Math.sin(r),o=Math.cos(r),l=Math.sin(u),c=Math.cos(u),s=Math.sin(i),f=Math.cos(i);return Math.atan2(Math.sqrt((e=f*a)*e+(e=c*s-l*f*o)*e),l*s+c*f*o)},oa.geo.graticule=function(){function n(){return{type:"MultiLineString",coordinates:t()}}function t(){return oa.range(Math.ceil(i/d)*d,u,d).map(h).concat(oa.range(Math.ceil(c/m)*m,l,m).map(g)).concat(oa.range(Math.ceil(r/p)*p,e,p).filter(function(n){return Ma(n%d)>Da}).map(s)).concat(oa.range(Math.ceil(o/v)*v,a,v).filter(function(n){return Ma(n%m)>Da}).map(f))}var e,r,u,i,a,o,l,c,s,f,h,g,p=10,v=p,d=90,m=360,y=2.5;return n.lines=function(){return t().map(function(n){return{type:"LineString",coordinates:n}})},n.outline=function(){return{type:"Polygon",coordinates:[h(i).concat(g(l).slice(1),h(u).reverse().slice(1),g(c).reverse().slice(1))]}},n.extent=function(t){return arguments.length?n.majorExtent(t).minorExtent(t):n.minorExtent()},n.majorExtent=function(t){return arguments.length?(i=+t[0][0],u=+t[1][0],c=+t[0][1],l=+t[1][1],i>u&&(t=i,i=u,u=t),c>l&&(t=c,c=l,l=t),n.precision(y)):[[i,c],[u,l]]},n.minorExtent=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],o=+t[0][1],a=+t[1][1],r>e&&(t=r,r=e,e=t),o>a&&(t=o,o=a,a=t),n.precision(y)):[[r,o],[e,a]]},n.step=function(t){return arguments.length?n.majorStep(t).minorStep(t):n.minorStep()},n.majorStep=function(t){return arguments.length?(d=+t[0],m=+t[1],n):[d,m]},n.minorStep=function(t){return arguments.length?(p=+t[0],v=+t[1],n):[p,v]},n.precision=function(t){return arguments.length?(y=+t,s=me(o,a,90),f=ye(r,e,y),h=me(c,l,90),g=ye(i,u,y),n):y},n.majorExtent([[-180,-90+Da],[180,90-Da]]).minorExtent([[-180,-80-Da],[180,80+Da]])},oa.geo.greatArc=function(){function n(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),e||u.apply(this,arguments)]}}var t,e,r=Me,u=xe;return n.distance=function(){return oa.geo.distance(t||r.apply(this,arguments),e||u.apply(this,arguments))},n.source=function(e){return arguments.length?(r=e,t="function"==typeof e?null:e,n):r},n.target=function(t){return arguments.length?(u=t,e="function"==typeof t?null:t,n):u},n.precision=function(){return arguments.length?n:0},n},oa.geo.interpolate=function(n,t){return be(n[0]*Oa,n[1]*Oa,t[0]*Oa,t[1]*Oa)},oa.geo.length=function(n){return Wo=0,oa.geo.stream(n,Jo),Wo};var Wo,Jo={sphere:b,point:b,lineStart:_e,lineEnd:b,polygonStart:b,polygonEnd:b},Go=we(function(n){return Math.sqrt(2/(1+n))},function(n){return 2*Math.asin(n/2)});(oa.geo.azimuthalEqualArea=function(){return ae(Go)}).raw=Go;var Ko=we(function(n){var t=Math.acos(n);return t&&t/Math.sin(t)},y);(oa.geo.azimuthalEquidistant=function(){return ae(Ko)}).raw=Ko,(oa.geo.conicConformal=function(){return Vt(Se)}).raw=Se,(oa.geo.conicEquidistant=function(){return Vt(ke)}).raw=ke;var Qo=we(function(n){return 1/n},Math.atan);(oa.geo.gnomonic=function(){return ae(Qo)}).raw=Qo,Ne.invert=function(n,t){return[n,2*Math.atan(Math.exp(t))-Ha]},(oa.geo.mercator=function(){return Ee(Ne)}).raw=Ne;var nl=we(function(){return 1},Math.asin);(oa.geo.orthographic=function(){return ae(nl)}).raw=nl;var tl=we(function(n){return 1/(1+n)},function(n){return 2*Math.atan(n)});(oa.geo.stereographic=function(){return ae(tl)}).raw=tl,Ae.invert=function(n,t){return[-t,2*Math.atan(Math.exp(n))-Ha]},(oa.geo.transverseMercator=function(){var n=Ee(Ae),t=n.center,e=n.rotate;return n.center=function(n){return n?t([-n[1],n[0]]):(n=t(),[n[1],-n[0]])},n.rotate=function(n){return n?e([n[0],n[1],n.length>2?n[2]+90:90]):(n=e(),[n[0],n[1],n[2]-90])},e([0,0,90])}).raw=Ae,oa.geom={},oa.geom.hull=function(n){function t(n){if(n.length<3)return[];var t,u=En(e),i=En(r),a=n.length,o=[],l=[];for(t=0;a>t;t++)o.push([+u.call(this,n[t],t),+i.call(this,n[t],t),t]);for(o.sort(qe),t=0;a>t;t++)l.push([o[t][0],-o[t][1]]);var c=Le(o),s=Le(l),f=s[0]===c[0],h=s[s.length-1]===c[c.length-1],g=[];for(t=c.length-1;t>=0;--t)g.push(n[o[c[t]][2]]);for(t=+f;t<s.length-h;++t)g.push(n[o[s[t]][2]]);return g}var e=Ce,r=ze;return arguments.length?t(n):(t.x=function(n){return arguments.length?(e=n,t):e},t.y=function(n){return arguments.length?(r=n,t):r},t)},oa.geom.polygon=function(n){return Sa(n,el),n};var el=oa.geom.polygon.prototype=[];el.area=function(){for(var n,t=-1,e=this.length,r=this[e-1],u=0;++t<e;)n=r,r=this[t],u+=n[1]*r[0]-n[0]*r[1];return.5*u},el.centroid=function(n){var t,e,r=-1,u=this.length,i=0,a=0,o=this[u-1];for(arguments.length||(n=-1/(6*this.area()));++r<u;)t=o,o=this[r],e=t[0]*o[1]-o[0]*t[1],i+=(t[0]+o[0])*e,a+=(t[1]+o[1])*e;return[i*n,a*n]},el.clip=function(n){for(var t,e,r,u,i,a,o=De(n),l=-1,c=this.length-De(this),s=this[c-1];++l<c;){for(t=n.slice(),n.length=0,u=this[l],i=t[(r=t.length-o)-1],e=-1;++e<r;)a=t[e],Te(a,s,u)?(Te(i,s,u)||n.push(Re(i,a,s,u)),n.push(a)):Te(i,s,u)&&n.push(Re(i,a,s,u)),i=a;o&&n.push(n[0]),s=u}return n};var rl,ul,il,al,ol,ll=[],cl=[];Ye.prototype.prepare=function(){for(var n,t=this.edges,e=t.length;e--;)n=t[e].edge,n.b&&n.a||t.splice(e,1);return t.sort(Ve),t.length},tr.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},er.prototype={insert:function(n,t){var e,r,u;if(n){if(t.P=n,t.N=n.N,n.N&&(n.N.P=t),n.N=t,n.R){for(n=n.R;n.L;)n=n.L;n.L=t}else n.R=t;e=n}else this._?(n=ar(this._),t.P=null,t.N=n,n.P=n.L=t,e=n):(t.P=t.N=null,this._=t,e=null);for(t.L=t.R=null,t.U=e,t.C=!0,n=t;e&&e.C;)r=e.U,e===r.L?(u=r.R,u&&u.C?(e.C=u.C=!1,r.C=!0,n=r):(n===e.R&&(ur(this,e),n=e,e=n.U),e.C=!1,r.C=!0,ir(this,r))):(u=r.L,u&&u.C?(e.C=u.C=!1,r.C=!0,n=r):(n===e.L&&(ir(this,e),n=e,e=n.U),e.C=!1,r.C=!0,ur(this,r))),e=n.U;this._.C=!1},remove:function(n){n.N&&(n.N.P=n.P),n.P&&(n.P.N=n.N),n.N=n.P=null;var t,e,r,u=n.U,i=n.L,a=n.R;if(e=i?a?ar(a):i:a,u?u.L===n?u.L=e:u.R=e:this._=e,i&&a?(r=e.C,e.C=n.C,e.L=i,i.U=e,e!==a?(u=e.U,e.U=n.U,n=e.R,u.L=n,e.R=a,a.U=e):(e.U=u,u=e,n=e.R)):(r=n.C,n=e),n&&(n.U=u),!r){if(n&&n.C)return void(n.C=!1);do{if(n===this._)break;if(n===u.L){if(t=u.R,t.C&&(t.C=!1,u.C=!0,ur(this,u),t=u.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,ir(this,t),t=u.R),t.C=u.C,u.C=t.R.C=!1,ur(this,u),n=this._;break}}else if(t=u.L,t.C&&(t.C=!1,u.C=!0,ir(this,u),t=u.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,ur(this,t),t=u.L),t.C=u.C,u.C=t.L.C=!1,ir(this,u),n=this._;break}t.C=!0,n=u,u=u.U}while(!n.C);n&&(n.C=!1)}}},oa.geom.voronoi=function(n){function t(n){var t=new Array(n.length),r=o[0][0],u=o[0][1],i=o[1][0],a=o[1][1];return or(e(n),o).cells.forEach(function(e,o){var l=e.edges,c=e.site,s=t[o]=l.length?l.map(function(n){var t=n.start();return[t.x,t.y]}):c.x>=r&&c.x<=i&&c.y>=u&&c.y<=a?[[r,a],[i,a],[i,u],[r,u]]:[];s.point=n[o]}),t}function e(n){return n.map(function(n,t){return{x:Math.round(i(n,t)/Da)*Da,y:Math.round(a(n,t)/Da)*Da,i:t}})}var r=Ce,u=ze,i=r,a=u,o=sl;return n?t(n):(t.links=function(n){return or(e(n)).edges.filter(function(n){return n.l&&n.r}).map(function(t){return{source:n[t.l.i],target:n[t.r.i]}})},t.triangles=function(n){var t=[];return or(e(n)).cells.forEach(function(e,r){for(var u,i,a=e.site,o=e.edges.sort(Ve),l=-1,c=o.length,s=o[c-1].edge,f=s.l===a?s.r:s.l;++l<c;)u=s,i=f,s=o[l].edge,f=s.l===a?s.r:s.l,r<i.i&&r<f.i&&cr(a,i,f)<0&&t.push([n[r],n[i.i],n[f.i]])}),t},t.x=function(n){return arguments.length?(i=En(r=n),t):r},t.y=function(n){return arguments.length?(a=En(u=n),t):u},t.clipExtent=function(n){return arguments.length?(o=null==n?sl:n,t):o===sl?null:o},t.size=function(n){return arguments.length?t.clipExtent(n&&[[0,0],n]):o===sl?null:o&&o[1]},t)};var sl=[[-1e6,-1e6],[1e6,1e6]];oa.geom.delaunay=function(n){return oa.geom.voronoi().triangles(n)},oa.geom.quadtree=function(n,t,e,r,u){function i(n){function i(n,t,e,r,u,i,a,o){if(!isNaN(e)&&!isNaN(r))if(n.leaf){var l=n.x,s=n.y;if(null!=l)if(Ma(l-e)+Ma(s-r)<.01)c(n,t,e,r,u,i,a,o);else{var f=n.point;n.x=n.y=n.point=null,c(n,f,l,s,u,i,a,o),c(n,t,e,r,u,i,a,o)}else n.x=e,n.y=r,n.point=t}else c(n,t,e,r,u,i,a,o)}function c(n,t,e,r,u,a,o,l){var c=.5*(u+o),s=.5*(a+l),f=e>=c,h=r>=s,g=h<<1|f;n.leaf=!1,n=n.nodes[g]||(n.nodes[g]=hr()),f?u=c:o=c,h?a=s:l=s,i(n,t,e,r,u,a,o,l)}var s,f,h,g,p,v,d,m,y,M=En(o),x=En(l);if(null!=t)v=t,d=e,m=r,y=u;else if(m=y=-(v=d=1/0),f=[],h=[],p=n.length,a)for(g=0;p>g;++g)s=n[g],s.x<v&&(v=s.x),s.y<d&&(d=s.y),s.x>m&&(m=s.x),s.y>y&&(y=s.y),f.push(s.x),h.push(s.y);else for(g=0;p>g;++g){var b=+M(s=n[g],g),_=+x(s,g);v>b&&(v=b),d>_&&(d=_),b>m&&(m=b),_>y&&(y=_),f.push(b),h.push(_)}var w=m-v,S=y-d;w>S?y=d+w:m=v+S;var k=hr();if(k.add=function(n){i(k,n,+M(n,++g),+x(n,g),v,d,m,y)},k.visit=function(n){gr(n,k,v,d,m,y)},k.find=function(n){return pr(k,n[0],n[1],v,d,m,y)},g=-1,null==t){for(;++g<p;)i(k,n[g],f[g],h[g],v,d,m,y);--g}else n.forEach(k.add);return f=h=n=s=null,k}var a,o=Ce,l=ze;return(a=arguments.length)?(o=sr,l=fr,3===a&&(u=e,r=t,e=t=0),i(n)):(i.x=function(n){return arguments.length?(o=n,i):o},i.y=function(n){return arguments.length?(l=n,i):l},i.extent=function(n){return arguments.length?(null==n?t=e=r=u=null:(t=+n[0][0],e=+n[0][1],r=+n[1][0],u=+n[1][1]),i):null==t?null:[[t,e],[r,u]]},i.size=function(n){return arguments.length?(null==n?t=e=r=u=null:(t=e=0,r=+n[0],u=+n[1]),i):null==t?null:[r-t,u-e]},i)},oa.interpolateRgb=vr,oa.interpolateObject=dr,oa.interpolateNumber=mr,oa.interpolateString=yr;var fl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,hl=new RegExp(fl.source,"g");oa.interpolate=Mr,oa.interpolators=[function(n,t){var e=typeof t;return("string"===e?ro.has(t.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(t)?vr:yr:t instanceof on?vr:Array.isArray(t)?xr:"object"===e&&isNaN(t)?dr:mr)(n,t)}],oa.interpolateArray=xr;var gl=function(){return y},pl=oa.map({linear:gl,poly:Er,quad:function(){return Sr},cubic:function(){return kr},sin:function(){return Ar},exp:function(){return Cr},circle:function(){return zr},elastic:Lr,back:qr,bounce:function(){return Tr}}),vl=oa.map({"in":y,out:_r,"in-out":wr,"out-in":function(n){return wr(_r(n))}});oa.ease=function(n){var t=n.indexOf("-"),e=t>=0?n.slice(0,t):n,r=t>=0?n.slice(t+1):"in";return e=pl.get(e)||gl,r=vl.get(r)||y,br(r(e.apply(null,la.call(arguments,1))))},oa.interpolateHcl=Rr,oa.interpolateHsl=Dr,oa.interpolateLab=Pr,oa.interpolateRound=jr,oa.transform=function(n){var t=sa.createElementNS(oa.ns.prefix.svg,"g");return(oa.transform=function(n){if(null!=n){t.setAttribute("transform",n);var e=t.transform.baseVal.consolidate()}return new Ur(e?e.matrix:dl)})(n)},Ur.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var dl={a:1,b:0,c:0,d:1,e:0,f:0};oa.interpolateTransform=$r,oa.layout={},oa.layout.bundle=function(){return function(n){for(var t=[],e=-1,r=n.length;++e<r;)t.push(Jr(n[e]));return t}},oa.layout.chord=function(){function n(){var n,c,f,h,g,p={},v=[],d=oa.range(i),m=[];for(e=[],r=[],n=0,h=-1;++h<i;){for(c=0,g=-1;++g<i;)c+=u[h][g];v.push(c),m.push(oa.range(i)),n+=c}for(a&&d.sort(function(n,t){return a(v[n],v[t])}),o&&m.forEach(function(n,t){n.sort(function(n,e){return o(u[t][n],u[t][e])})}),n=(Ua-s*i)/n,c=0,h=-1;++h<i;){for(f=c,g=-1;++g<i;){var y=d[h],M=m[y][g],x=u[y][M],b=c,_=c+=x*n;p[y+"-"+M]={index:y,subindex:M,startAngle:b,endAngle:_,value:x}}r[y]={index:y,startAngle:f,endAngle:c,value:v[y]},c+=s}for(h=-1;++h<i;)for(g=h-1;++g<i;){var w=p[h+"-"+g],S=p[g+"-"+h];(w.value||S.value)&&e.push(w.value<S.value?{source:S,target:w}:{source:w,target:S})}l&&t()}function t(){e.sort(function(n,t){return l((n.source.value+n.target.value)/2,(t.source.value+t.target.value)/2)})}var e,r,u,i,a,o,l,c={},s=0;return c.matrix=function(n){return arguments.length?(i=(u=n)&&u.length,e=r=null,c):u},c.padding=function(n){return arguments.length?(s=n,e=r=null,c):s},c.sortGroups=function(n){return arguments.length?(a=n,e=r=null,c):a},c.sortSubgroups=function(n){return arguments.length?(o=n,e=null,c):o},c.sortChords=function(n){return arguments.length?(l=n,e&&t(),c):l},c.chords=function(){return e||n(),e},c.groups=function(){return r||n(),r},c},oa.layout.force=function(){function n(n){return function(t,e,r,u){if(t.point!==n){var i=t.cx-n.x,a=t.cy-n.y,o=u-e,l=i*i+a*a;if(l>o*o/m){if(v>l){var c=t.charge/l;n.px-=i*c,n.py-=a*c}return!0}if(t.point&&l&&v>l){var c=t.pointCharge/l;n.px-=i*c,n.py-=a*c}}return!t.charge}}function t(n){n.px=oa.event.x,n.py=oa.event.y,l.resume()}var e,r,u,i,a,o,l={},c=oa.dispatch("start","tick","end"),s=[1,1],f=.9,h=ml,g=yl,p=-30,v=Ml,d=.1,m=.64,M=[],x=[];return l.tick=function(){if((u*=.99)<.005)return e=null,c.end({type:"end",alpha:u=0}),!0;var t,r,l,h,g,v,m,y,b,_=M.length,w=x.length;for(r=0;w>r;++r)l=x[r],h=l.source,g=l.target,y=g.x-h.x,b=g.y-h.y,(v=y*y+b*b)&&(v=u*a[r]*((v=Math.sqrt(v))-i[r])/v,y*=v,b*=v,g.x-=y*(m=h.weight+g.weight?h.weight/(h.weight+g.weight):.5),g.y-=b*m,h.x+=y*(m=1-m),h.y+=b*m);if((m=u*d)&&(y=s[0]/2,b=s[1]/2,r=-1,m))for(;++r<_;)l=M[r],l.x+=(y-l.x)*m,l.y+=(b-l.y)*m;if(p)for(ru(t=oa.geom.quadtree(M),u,o),r=-1;++r<_;)(l=M[r]).fixed||t.visit(n(l));for(r=-1;++r<_;)l=M[r],l.fixed?(l.x=l.px,l.y=l.py):(l.x-=(l.px-(l.px=l.x))*f,l.y-=(l.py-(l.py=l.y))*f);c.tick({type:"tick",alpha:u})},l.nodes=function(n){return arguments.length?(M=n,l):M},l.links=function(n){return arguments.length?(x=n,l):x},l.size=function(n){return arguments.length?(s=n,l):s},l.linkDistance=function(n){return arguments.length?(h="function"==typeof n?n:+n,l):h},l.distance=l.linkDistance,l.linkStrength=function(n){return arguments.length?(g="function"==typeof n?n:+n,l):g},l.friction=function(n){return arguments.length?(f=+n,l):f},l.charge=function(n){return arguments.length?(p="function"==typeof n?n:+n,l):p},l.chargeDistance=function(n){return arguments.length?(v=n*n,l):Math.sqrt(v)},l.gravity=function(n){return arguments.length?(d=+n,l):d},l.theta=function(n){return arguments.length?(m=n*n,l):Math.sqrt(m)},l.alpha=function(n){return arguments.length?(n=+n,u?n>0?u=n:(e.c=null,e.t=NaN,e=null,c.end({type:"end",alpha:u=0})):n>0&&(c.start({type:"start",alpha:u=n}),e=qn(l.tick)),l):u},l.start=function(){function n(n,r){if(!e){for(e=new Array(u),l=0;u>l;++l)e[l]=[];for(l=0;c>l;++l){var i=x[l];e[i.source.index].push(i.target),e[i.target.index].push(i.source)}}for(var a,o=e[t],l=-1,s=o.length;++l<s;)if(!isNaN(a=o[l][n]))return a;return Math.random()*r}var t,e,r,u=M.length,c=x.length,f=s[0],v=s[1];for(t=0;u>t;++t)(r=M[t]).index=t,r.weight=0;for(t=0;c>t;++t)r=x[t],"number"==typeof r.source&&(r.source=M[r.source]),"number"==typeof r.target&&(r.target=M[r.target]),++r.source.weight,++r.target.weight;for(t=0;u>t;++t)r=M[t],isNaN(r.x)&&(r.x=n("x",f)),isNaN(r.y)&&(r.y=n("y",v)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(i=[],"function"==typeof h)for(t=0;c>t;++t)i[t]=+h.call(this,x[t],t);else for(t=0;c>t;++t)i[t]=h;if(a=[],"function"==typeof g)for(t=0;c>t;++t)a[t]=+g.call(this,x[t],t);else for(t=0;c>t;++t)a[t]=g;if(o=[],"function"==typeof p)for(t=0;u>t;++t)o[t]=+p.call(this,M[t],t);else for(t=0;u>t;++t)o[t]=p;return l.resume()},l.resume=function(){return l.alpha(.1)},l.stop=function(){return l.alpha(0)},l.drag=function(){return r||(r=oa.behavior.drag().origin(y).on("dragstart.force",Qr).on("drag.force",t).on("dragend.force",nu)),arguments.length?void this.on("mouseover.force",tu).on("mouseout.force",eu).call(r):r},oa.rebind(l,c,"on")};var ml=20,yl=1,Ml=1/0;oa.layout.hierarchy=function(){function n(u){var i,a=[u],o=[];for(u.depth=0;null!=(i=a.pop());)if(o.push(i),(c=e.call(n,i,i.depth))&&(l=c.length)){for(var l,c,s;--l>=0;)a.push(s=c[l]),s.parent=i,s.depth=i.depth+1;r&&(i.value=0),i.children=c}else r&&(i.value=+r.call(n,i,i.depth)||0),delete i.children;return au(u,function(n){var e,u;t&&(e=n.children)&&e.sort(t),r&&(u=n.parent)&&(u.value+=n.value)}),o}var t=cu,e=ou,r=lu;return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&&(iu(t,function(n){n.children&&(n.value=0)}),au(t,function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)})),t},n},oa.layout.partition=function(){function n(t,e,r,u){var i=t.children;if(t.x=e,t.y=t.depth*u,t.dx=r,t.dy=u,i&&(a=i.length)){var a,o,l,c=-1;for(r=t.value?r/t.value:0;++c<a;)n(o=i[c],e,l=o.value*r,u),e+=l}}function t(n){var e=n.children,r=0;if(e&&(u=e.length))for(var u,i=-1;++i<u;)r=Math.max(r,t(e[i]));return 1+r}function e(e,i){var a=r.call(this,e,i);return n(a[0],0,u[0],u[1]/t(a[0])),a}var r=oa.layout.hierarchy(),u=[1,1];return e.size=function(n){return arguments.length?(u=n,e):u},uu(e,r)},oa.layout.pie=function(){function n(a){var o,l=a.length,c=a.map(function(e,r){return+t.call(n,e,r)}),s=+("function"==typeof r?r.apply(this,arguments):r),f=("function"==typeof u?u.apply(this,arguments):u)-s,h=Math.min(Math.abs(f)/l,+("function"==typeof i?i.apply(this,arguments):i)),g=h*(0>f?-1:1),p=oa.sum(c),v=p?(f-l*g)/p:0,d=oa.range(l),m=[];return null!=e&&d.sort(e===xl?function(n,t){return c[t]-c[n]}:function(n,t){return e(a[n],a[t])}),d.forEach(function(n){m[n]={data:a[n],value:o=c[n],startAngle:s,endAngle:s+=o*v+g,padAngle:h}}),m}var t=Number,e=xl,r=0,u=Ua,i=0;return n.value=function(e){return arguments.length?(t=e,n):t},n.sort=function(t){return arguments.length?(e=t,n):e},n.startAngle=function(t){return arguments.length?(r=t,n):r},n.endAngle=function(t){return arguments.length?(u=t,n):u},n.padAngle=function(t){return arguments.length?(i=t,n):i},n};var xl={};oa.layout.stack=function(){function n(o,l){if(!(h=o.length))return o;var c=o.map(function(e,r){return t.call(n,e,r)}),s=c.map(function(t){return t.map(function(t,e){return[i.call(n,t,e),a.call(n,t,e)]})}),f=e.call(n,s,l);c=oa.permute(c,f),s=oa.permute(s,f);var h,g,p,v,d=r.call(n,s,l),m=c[0].length;for(p=0;m>p;++p)for(u.call(n,c[0][p],v=d[p],s[0][p][1]),g=1;h>g;++g)u.call(n,c[g][p],v+=s[g-1][p][1],s[g][p][1]);return o}var t=y,e=pu,r=vu,u=gu,i=fu,a=hu;return n.values=function(e){return arguments.length?(t=e,n):t},n.order=function(t){return arguments.length?(e="function"==typeof t?t:bl.get(t)||pu,n):e},n.offset=function(t){return arguments.length?(r="function"==typeof t?t:_l.get(t)||vu,n):r},n.x=function(t){return arguments.length?(i=t,n):i},n.y=function(t){return arguments.length?(a=t,n):a},n.out=function(t){return arguments.length?(u=t,n):u},n};var bl=oa.map({"inside-out":function(n){var t,e,r=n.length,u=n.map(du),i=n.map(mu),a=oa.range(r).sort(function(n,t){return u[n]-u[t]}),o=0,l=0,c=[],s=[];for(t=0;r>t;++t)e=a[t],l>o?(o+=i[e],c.push(e)):(l+=i[e],s.push(e));return s.reverse().concat(c)},reverse:function(n){return oa.range(n.length).reverse()},"default":pu}),_l=oa.map({silhouette:function(n){var t,e,r,u=n.length,i=n[0].length,a=[],o=0,l=[];for(e=0;i>e;++e){for(t=0,r=0;u>t;t++)r+=n[t][e][1];r>o&&(o=r),a.push(r)}for(e=0;i>e;++e)l[e]=(o-a[e])/2;return l},wiggle:function(n){var t,e,r,u,i,a,o,l,c,s=n.length,f=n[0],h=f.length,g=[];for(g[0]=l=c=0,e=1;h>e;++e){for(t=0,u=0;s>t;++t)u+=n[t][e][1];for(t=0,i=0,o=f[e][0]-f[e-1][0];s>t;++t){for(r=0,a=(n[t][e][1]-n[t][e-1][1])/(2*o);t>r;++r)a+=(n[r][e][1]-n[r][e-1][1])/o;i+=a*n[t][e][1]}g[e]=l-=u?i/u*o:0,c>l&&(c=l)}for(e=0;h>e;++e)g[e]-=c;return g},expand:function(n){var t,e,r,u=n.length,i=n[0].length,a=1/u,o=[];for(e=0;i>e;++e){for(t=0,r=0;u>t;t++)r+=n[t][e][1];if(r)for(t=0;u>t;t++)n[t][e][1]/=r;else for(t=0;u>t;t++)n[t][e][1]=a}for(e=0;i>e;++e)o[e]=0;return o},zero:vu});oa.layout.histogram=function(){function n(n,i){for(var a,o,l=[],c=n.map(e,this),s=r.call(this,c,i),f=u.call(this,s,c,i),i=-1,h=c.length,g=f.length-1,p=t?1:1/h;++i<g;)a=l[i]=[],a.dx=f[i+1]-(a.x=f[i]),a.y=0;if(g>0)for(i=-1;++i<h;)o=c[i],o>=s[0]&&o<=s[1]&&(a=l[oa.bisect(f,o,1,g)-1],a.y+=p,a.push(n[i]));return l}var t=!0,e=Number,r=bu,u=Mu;return n.value=function(t){return arguments.length?(e=t,n):e},n.range=function(t){return arguments.length?(r=En(t),n):r},n.bins=function(t){return arguments.length?(u="number"==typeof t?function(n){return xu(n,t)}:En(t),n):u},n.frequency=function(e){return arguments.length?(t=!!e,n):t},n},oa.layout.pack=function(){function n(n,i){var a=e.call(this,n,i),o=a[0],l=u[0],c=u[1],s=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(o.x=o.y=0,au(o,function(n){n.r=+s(n.value)}),au(o,Nu),r){var f=r*(t?1:Math.max(2*o.r/l,2*o.r/c))/2;au(o,function(n){n.r+=f}),au(o,Nu),au(o,function(n){n.r-=f})}return Cu(o,l/2,c/2,t?1:1/Math.max(2*o.r/l,2*o.r/c)),a}var t,e=oa.layout.hierarchy().sort(_u),r=0,u=[1,1];return n.size=function(t){return arguments.length?(u=t,n):u},n.radius=function(e){return arguments.length?(t=null==e||"function"==typeof e?e:+e,n):t},n.padding=function(t){return arguments.length?(r=+t,n):r},uu(n,e)},oa.layout.tree=function(){function n(n,u){var s=a.call(this,n,u),f=s[0],h=t(f);if(au(h,e),h.parent.m=-h.z,iu(h,r),c)iu(f,i);else{var g=f,p=f,v=f;iu(f,function(n){n.x<g.x&&(g=n),n.x>p.x&&(p=n),n.depth>v.depth&&(v=n)});var d=o(g,p)/2-g.x,m=l[0]/(p.x+o(p,g)/2+d),y=l[1]/(v.depth||1);iu(f,function(n){n.x=(n.x+d)*m,n.y=n.depth*y})}return s}function t(n){for(var t,e={A:null,children:[n]},r=[e];null!=(t=r.pop());)for(var u,i=t.children,a=0,o=i.length;o>a;++a)r.push((i[a]=u={_:i[a],parent:t,children:(u=i[a].children)&&u.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:a}).a=u);return e.children[0]}function e(n){var t=n.children,e=n.parent.children,r=n.i?e[n.i-1]:null;if(t.length){Du(n);var i=(t[0].z+t[t.length-1].z)/2;r?(n.z=r.z+o(n._,r._),n.m=n.z-i):n.z=i}else r&&(n.z=r.z+o(n._,r._));n.parent.A=u(n,r,n.parent.A||e[0])}function r(n){n._.x=n.z+n.parent.m,n.m+=n.parent.m}function u(n,t,e){if(t){for(var r,u=n,i=n,a=t,l=u.parent.children[0],c=u.m,s=i.m,f=a.m,h=l.m;a=Tu(a),u=qu(u),a&&u;)l=qu(l),i=Tu(i),i.a=n,r=a.z+f-u.z-c+o(a._,u._),r>0&&(Ru(Pu(a,n,e),n,r),c+=r,s+=r),f+=a.m,c+=u.m,h+=l.m,s+=i.m;a&&!Tu(i)&&(i.t=a,i.m+=f-s),u&&!qu(l)&&(l.t=u,l.m+=c-h,e=n)}return e}function i(n){n.x*=l[0],n.y=n.depth*l[1]}var a=oa.layout.hierarchy().sort(null).value(null),o=Lu,l=[1,1],c=null;return n.separation=function(t){return arguments.length?(o=t,n):o},n.size=function(t){return arguments.length?(c=null==(l=t)?i:null,n):c?null:l},n.nodeSize=function(t){return arguments.length?(c=null==(l=t)?null:i,n):c?l:null},uu(n,a)},oa.layout.cluster=function(){function n(n,i){var a,o=t.call(this,n,i),l=o[0],c=0;au(l,function(n){var t=n.children;t&&t.length?(n.x=Uu(t),n.y=ju(t)):(n.x=a?c+=e(n,a):0,n.y=0,a=n)});var s=Fu(l),f=Hu(l),h=s.x-e(s,f)/2,g=f.x+e(f,s)/2;return au(l,u?function(n){n.x=(n.x-l.x)*r[0],n.y=(l.y-n.y)*r[1]}:function(n){n.x=(n.x-h)/(g-h)*r[0],n.y=(1-(l.y?n.y/l.y:1))*r[1]}),o}var t=oa.layout.hierarchy().sort(null).value(null),e=Lu,r=[1,1],u=!1;return n.separation=function(t){return arguments.length?(e=t,n):e},n.size=function(t){return arguments.length?(u=null==(r=t),n):u?null:r},n.nodeSize=function(t){return arguments.length?(u=null!=(r=t),n):u?r:null},uu(n,t)},oa.layout.treemap=function(){function n(n,t){for(var e,r,u=-1,i=n.length;++u<i;)r=(e=n[u]).value*(0>t?0:t),e.area=isNaN(r)||0>=r?0:r}function t(e){var i=e.children;if(i&&i.length){var a,o,l,c=f(e),s=[],h=i.slice(),p=1/0,v="slice"===g?c.dx:"dice"===g?c.dy:"slice-dice"===g?1&e.depth?c.dy:c.dx:Math.min(c.dx,c.dy);for(n(h,c.dx*c.dy/e.value),s.area=0;(l=h.length)>0;)s.push(a=h[l-1]),s.area+=a.area,"squarify"!==g||(o=r(s,v))<=p?(h.pop(),p=o):(s.area-=s.pop().area,u(s,v,c,!1),v=Math.min(c.dx,c.dy),s.length=s.area=0,p=1/0);s.length&&(u(s,v,c,!0),s.length=s.area=0),i.forEach(t)}}function e(t){var r=t.children;if(r&&r.length){var i,a=f(t),o=r.slice(),l=[];for(n(o,a.dx*a.dy/t.value),l.area=0;i=o.pop();)l.push(i),l.area+=i.area,null!=i.z&&(u(l,i.z?a.dx:a.dy,a,!o.length),l.length=l.area=0);r.forEach(e)}}function r(n,t){for(var e,r=n.area,u=0,i=1/0,a=-1,o=n.length;++a<o;)(e=n[a].area)&&(i>e&&(i=e),e>u&&(u=e));return r*=r,t*=t,r?Math.max(t*u*p/r,r/(t*i*p)):1/0}function u(n,t,e,r){var u,i=-1,a=n.length,o=e.x,c=e.y,s=t?l(n.area/t):0;
if(t==e.dx){for((r||s>e.dy)&&(s=e.dy);++i<a;)u=n[i],u.x=o,u.y=c,u.dy=s,o+=u.dx=Math.min(e.x+e.dx-o,s?l(u.area/s):0);u.z=!0,u.dx+=e.x+e.dx-o,e.y+=s,e.dy-=s}else{for((r||s>e.dx)&&(s=e.dx);++i<a;)u=n[i],u.x=o,u.y=c,u.dx=s,c+=u.dy=Math.min(e.y+e.dy-c,s?l(u.area/s):0);u.z=!1,u.dy+=e.y+e.dy-c,e.x+=s,e.dx-=s}}function i(r){var u=a||o(r),i=u[0];return i.x=i.y=0,i.value?(i.dx=c[0],i.dy=c[1]):i.dx=i.dy=0,a&&o.revalue(i),n([i],i.dx*i.dy/i.value),(a?e:t)(i),h&&(a=u),u}var a,o=oa.layout.hierarchy(),l=Math.round,c=[1,1],s=null,f=Ou,h=!1,g="squarify",p=.5*(1+Math.sqrt(5));return i.size=function(n){return arguments.length?(c=n,i):c},i.padding=function(n){function t(t){var e=n.call(i,t,t.depth);return null==e?Ou(t):Iu(t,"number"==typeof e?[e,e,e,e]:e)}function e(t){return Iu(t,n)}if(!arguments.length)return s;var r;return f=null==(s=n)?Ou:"function"==(r=typeof n)?t:"number"===r?(n=[n,n,n,n],e):e,i},i.round=function(n){return arguments.length?(l=n?Math.round:Number,i):l!=Number},i.sticky=function(n){return arguments.length?(h=n,a=null,i):h},i.ratio=function(n){return arguments.length?(p=n,i):p},i.mode=function(n){return arguments.length?(g=n+"",i):g},uu(i,o)},oa.random={normal:function(n,t){var e=arguments.length;return 2>e&&(t=1),1>e&&(n=0),function(){var e,r,u;do e=2*Math.random()-1,r=2*Math.random()-1,u=e*e+r*r;while(!u||u>1);return n+t*e*Math.sqrt(-2*Math.log(u)/u)}},logNormal:function(){var n=oa.random.normal.apply(oa,arguments);return function(){return Math.exp(n())}},bates:function(n){var t=oa.random.irwinHall(n);return function(){return t()/n}},irwinHall:function(n){return function(){for(var t=0,e=0;n>e;e++)t+=Math.random();return t}}},oa.scale={};var wl={floor:y,ceil:y};oa.scale.linear=function(){return Wu([0,1],[0,1],Mr,!1)};var Sl={s:1,g:1,p:1,r:1,e:1};oa.scale.log=function(){return ri(oa.scale.linear().domain([0,1]),10,!0,[1,10])};var kl=oa.format(".0e"),Nl={floor:function(n){return-Math.ceil(-n)},ceil:function(n){return-Math.floor(-n)}};oa.scale.pow=function(){return ui(oa.scale.linear(),1,[0,1])},oa.scale.sqrt=function(){return oa.scale.pow().exponent(.5)},oa.scale.ordinal=function(){return ai([],{t:"range",a:[[]]})},oa.scale.category10=function(){return oa.scale.ordinal().range(El)},oa.scale.category20=function(){return oa.scale.ordinal().range(Al)},oa.scale.category20b=function(){return oa.scale.ordinal().range(Cl)},oa.scale.category20c=function(){return oa.scale.ordinal().range(zl)};var El=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(xn),Al=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(xn),Cl=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(xn),zl=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(xn);oa.scale.quantile=function(){return oi([],[])},oa.scale.quantize=function(){return li(0,1,[0,1])},oa.scale.threshold=function(){return ci([.5],[0,1])},oa.scale.identity=function(){return si([0,1])},oa.svg={},oa.svg.arc=function(){function n(){var n=Math.max(0,+e.apply(this,arguments)),c=Math.max(0,+r.apply(this,arguments)),s=a.apply(this,arguments)-Ha,f=o.apply(this,arguments)-Ha,h=Math.abs(f-s),g=s>f?0:1;if(n>c&&(p=c,c=n,n=p),h>=Fa)return t(c,g)+(n?t(n,1-g):"")+"Z";var p,v,d,m,y,M,x,b,_,w,S,k,N=0,E=0,A=[];if((m=(+l.apply(this,arguments)||0)/2)&&(d=i===Ll?Math.sqrt(n*n+c*c):+i.apply(this,arguments),g||(E*=-1),c&&(E=tn(d/c*Math.sin(m))),n&&(N=tn(d/n*Math.sin(m)))),c){y=c*Math.cos(s+E),M=c*Math.sin(s+E),x=c*Math.cos(f-E),b=c*Math.sin(f-E);var C=Math.abs(f-s-2*E)<=ja?0:1;if(E&&mi(y,M,x,b)===g^C){var z=(s+f)/2;y=c*Math.cos(z),M=c*Math.sin(z),x=b=null}}else y=M=0;if(n){_=n*Math.cos(f-N),w=n*Math.sin(f-N),S=n*Math.cos(s+N),k=n*Math.sin(s+N);var L=Math.abs(s-f+2*N)<=ja?0:1;if(N&&mi(_,w,S,k)===1-g^L){var q=(s+f)/2;_=n*Math.cos(q),w=n*Math.sin(q),S=k=null}}else _=w=0;if(h>Da&&(p=Math.min(Math.abs(c-n)/2,+u.apply(this,arguments)))>.001){v=c>n^g?0:1;var T=p,R=p;if(ja>h){var D=null==S?[_,w]:null==x?[y,M]:Re([y,M],[S,k],[x,b],[_,w]),P=y-D[0],j=M-D[1],U=x-D[0],F=b-D[1],H=1/Math.sin(Math.acos((P*U+j*F)/(Math.sqrt(P*P+j*j)*Math.sqrt(U*U+F*F)))/2),O=Math.sqrt(D[0]*D[0]+D[1]*D[1]);R=Math.min(p,(n-O)/(H-1)),T=Math.min(p,(c-O)/(H+1))}if(null!=x){var I=yi(null==S?[_,w]:[S,k],[y,M],c,T,g),Y=yi([x,b],[_,w],c,T,g);p===T?A.push("M",I[0],"A",T,",",T," 0 0,",v," ",I[1],"A",c,",",c," 0 ",1-g^mi(I[1][0],I[1][1],Y[1][0],Y[1][1]),",",g," ",Y[1],"A",T,",",T," 0 0,",v," ",Y[0]):A.push("M",I[0],"A",T,",",T," 0 1,",v," ",Y[0])}else A.push("M",y,",",M);if(null!=S){var Z=yi([y,M],[S,k],n,-R,g),V=yi([_,w],null==x?[y,M]:[x,b],n,-R,g);p===R?A.push("L",V[0],"A",R,",",R," 0 0,",v," ",V[1],"A",n,",",n," 0 ",g^mi(V[1][0],V[1][1],Z[1][0],Z[1][1]),",",1-g," ",Z[1],"A",R,",",R," 0 0,",v," ",Z[0]):A.push("L",V[0],"A",R,",",R," 0 0,",v," ",Z[0])}else A.push("L",_,",",w)}else A.push("M",y,",",M),null!=x&&A.push("A",c,",",c," 0 ",C,",",g," ",x,",",b),A.push("L",_,",",w),null!=S&&A.push("A",n,",",n," 0 ",L,",",1-g," ",S,",",k);return A.push("Z"),A.join("")}function t(n,t){return"M0,"+n+"A"+n+","+n+" 0 1,"+t+" 0,"+-n+"A"+n+","+n+" 0 1,"+t+" 0,"+n}var e=hi,r=gi,u=fi,i=Ll,a=pi,o=vi,l=di;return n.innerRadius=function(t){return arguments.length?(e=En(t),n):e},n.outerRadius=function(t){return arguments.length?(r=En(t),n):r},n.cornerRadius=function(t){return arguments.length?(u=En(t),n):u},n.padRadius=function(t){return arguments.length?(i=t==Ll?Ll:En(t),n):i},n.startAngle=function(t){return arguments.length?(a=En(t),n):a},n.endAngle=function(t){return arguments.length?(o=En(t),n):o},n.padAngle=function(t){return arguments.length?(l=En(t),n):l},n.centroid=function(){var n=(+e.apply(this,arguments)+ +r.apply(this,arguments))/2,t=(+a.apply(this,arguments)+ +o.apply(this,arguments))/2-Ha;return[Math.cos(t)*n,Math.sin(t)*n]},n};var Ll="auto";oa.svg.line=function(){return Mi(y)};var ql=oa.map({linear:xi,"linear-closed":bi,step:_i,"step-before":wi,"step-after":Si,basis:zi,"basis-open":Li,"basis-closed":qi,bundle:Ti,cardinal:Ei,"cardinal-open":ki,"cardinal-closed":Ni,monotone:Fi});ql.forEach(function(n,t){t.key=n,t.closed=/-closed$/.test(n)});var Tl=[0,2/3,1/3,0],Rl=[0,1/3,2/3,0],Dl=[0,1/6,2/3,1/6];oa.svg.line.radial=function(){var n=Mi(Hi);return n.radius=n.x,delete n.x,n.angle=n.y,delete n.y,n},wi.reverse=Si,Si.reverse=wi,oa.svg.area=function(){return Oi(y)},oa.svg.area.radial=function(){var n=Oi(Hi);return n.radius=n.x,delete n.x,n.innerRadius=n.x0,delete n.x0,n.outerRadius=n.x1,delete n.x1,n.angle=n.y,delete n.y,n.startAngle=n.y0,delete n.y0,n.endAngle=n.y1,delete n.y1,n},oa.svg.chord=function(){function n(n,o){var l=t(this,i,n,o),c=t(this,a,n,o);return"M"+l.p0+r(l.r,l.p1,l.a1-l.a0)+(e(l,c)?u(l.r,l.p1,l.r,l.p0):u(l.r,l.p1,c.r,c.p0)+r(c.r,c.p1,c.a1-c.a0)+u(c.r,c.p1,l.r,l.p0))+"Z"}function t(n,t,e,r){var u=t.call(n,e,r),i=o.call(n,u,r),a=l.call(n,u,r)-Ha,s=c.call(n,u,r)-Ha;return{r:i,a0:a,a1:s,p0:[i*Math.cos(a),i*Math.sin(a)],p1:[i*Math.cos(s),i*Math.sin(s)]}}function e(n,t){return n.a0==t.a0&&n.a1==t.a1}function r(n,t,e){return"A"+n+","+n+" 0 "+ +(e>ja)+",1 "+t}function u(n,t,e,r){return"Q 0,0 "+r}var i=Me,a=xe,o=Ii,l=pi,c=vi;return n.radius=function(t){return arguments.length?(o=En(t),n):o},n.source=function(t){return arguments.length?(i=En(t),n):i},n.target=function(t){return arguments.length?(a=En(t),n):a},n.startAngle=function(t){return arguments.length?(l=En(t),n):l},n.endAngle=function(t){return arguments.length?(c=En(t),n):c},n},oa.svg.diagonal=function(){function n(n,u){var i=t.call(this,n,u),a=e.call(this,n,u),o=(i.y+a.y)/2,l=[i,{x:i.x,y:o},{x:a.x,y:o},a];return l=l.map(r),"M"+l[0]+"C"+l[1]+" "+l[2]+" "+l[3]}var t=Me,e=xe,r=Yi;return n.source=function(e){return arguments.length?(t=En(e),n):t},n.target=function(t){return arguments.length?(e=En(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},oa.svg.diagonal.radial=function(){var n=oa.svg.diagonal(),t=Yi,e=n.projection;return n.projection=function(n){return arguments.length?e(Zi(t=n)):t},n},oa.svg.symbol=function(){function n(n,r){return(Pl.get(t.call(this,n,r))||$i)(e.call(this,n,r))}var t=Xi,e=Vi;return n.type=function(e){return arguments.length?(t=En(e),n):t},n.size=function(t){return arguments.length?(e=En(t),n):e},n};var Pl=oa.map({circle:$i,cross:function(n){var t=Math.sqrt(n/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(n){var t=Math.sqrt(n/(2*Ul)),e=t*Ul;return"M0,"+-t+"L"+e+",0 0,"+t+" "+-e+",0Z"},square:function(n){var t=Math.sqrt(n)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(n){var t=Math.sqrt(n/jl),e=t*jl/2;return"M0,"+e+"L"+t+","+-e+" "+-t+","+-e+"Z"},"triangle-up":function(n){var t=Math.sqrt(n/jl),e=t*jl/2;return"M0,"+-e+"L"+t+","+e+" "+-t+","+e+"Z"}});oa.svg.symbolTypes=Pl.keys();var jl=Math.sqrt(3),Ul=Math.tan(30*Oa);Aa.transition=function(n){for(var t,e,r=Fl||++Yl,u=Ki(n),i=[],a=Hl||{time:Date.now(),ease:Nr,delay:0,duration:250},o=-1,l=this.length;++o<l;){i.push(t=[]);for(var c=this[o],s=-1,f=c.length;++s<f;)(e=c[s])&&Qi(e,s,u,r,a),t.push(e)}return Wi(i,u,r)},Aa.interrupt=function(n){return this.each(null==n?Ol:Bi(Ki(n)))};var Fl,Hl,Ol=Bi(Ki()),Il=[],Yl=0;Il.call=Aa.call,Il.empty=Aa.empty,Il.node=Aa.node,Il.size=Aa.size,oa.transition=function(n,t){return n&&n.transition?Fl?n.transition(t):n:oa.selection().transition(n)},oa.transition.prototype=Il,Il.select=function(n){var t,e,r,u=this.id,i=this.namespace,a=[];n=A(n);for(var o=-1,l=this.length;++o<l;){a.push(t=[]);for(var c=this[o],s=-1,f=c.length;++s<f;)(r=c[s])&&(e=n.call(r,r.__data__,s,o))?("__data__"in r&&(e.__data__=r.__data__),Qi(e,s,i,u,r[i][u]),t.push(e)):t.push(null)}return Wi(a,i,u)},Il.selectAll=function(n){var t,e,r,u,i,a=this.id,o=this.namespace,l=[];n=C(n);for(var c=-1,s=this.length;++c<s;)for(var f=this[c],h=-1,g=f.length;++h<g;)if(r=f[h]){i=r[o][a],e=n.call(r,r.__data__,h,c),l.push(t=[]);for(var p=-1,v=e.length;++p<v;)(u=e[p])&&Qi(u,p,o,a,i),t.push(u)}return Wi(l,o,a)},Il.filter=function(n){var t,e,r,u=[];"function"!=typeof n&&(n=O(n));for(var i=0,a=this.length;a>i;i++){u.push(t=[]);for(var e=this[i],o=0,l=e.length;l>o;o++)(r=e[o])&&n.call(r,r.__data__,o,i)&&t.push(r)}return Wi(u,this.namespace,this.id)},Il.tween=function(n,t){var e=this.id,r=this.namespace;return arguments.length<2?this.node()[r][e].tween.get(n):Y(this,null==t?function(t){t[r][e].tween.remove(n)}:function(u){u[r][e].tween.set(n,t)})},Il.attr=function(n,t){function e(){this.removeAttribute(o)}function r(){this.removeAttributeNS(o.space,o.local)}function u(n){return null==n?e:(n+="",function(){var t,e=this.getAttribute(o);return e!==n&&(t=a(e,n),function(n){this.setAttribute(o,t(n))})})}function i(n){return null==n?r:(n+="",function(){var t,e=this.getAttributeNS(o.space,o.local);return e!==n&&(t=a(e,n),function(n){this.setAttributeNS(o.space,o.local,t(n))})})}if(arguments.length<2){for(t in n)this.attr(t,n[t]);return this}var a="transform"==n?$r:Mr,o=oa.ns.qualify(n);return Ji(this,"attr."+n,t,o.local?i:u)},Il.attrTween=function(n,t){function e(n,e){var r=t.call(this,n,e,this.getAttribute(u));return r&&function(n){this.setAttribute(u,r(n))}}function r(n,e){var r=t.call(this,n,e,this.getAttributeNS(u.space,u.local));return r&&function(n){this.setAttributeNS(u.space,u.local,r(n))}}var u=oa.ns.qualify(n);return this.tween("attr."+n,u.local?r:e)},Il.style=function(n,e,r){function u(){this.style.removeProperty(n)}function i(e){return null==e?u:(e+="",function(){var u,i=t(this).getComputedStyle(this,null).getPropertyValue(n);return i!==e&&(u=Mr(i,e),function(t){this.style.setProperty(n,u(t),r)})})}var a=arguments.length;if(3>a){if("string"!=typeof n){2>a&&(e="");for(r in n)this.style(r,n[r],e);return this}r=""}return Ji(this,"style."+n,e,i)},Il.styleTween=function(n,e,r){function u(u,i){var a=e.call(this,u,i,t(this).getComputedStyle(this,null).getPropertyValue(n));return a&&function(t){this.style.setProperty(n,a(t),r)}}return arguments.length<3&&(r=""),this.tween("style."+n,u)},Il.text=function(n){return Ji(this,"text",n,Gi)},Il.remove=function(){var n=this.namespace;return this.each("end.transition",function(){var t;this[n].count<2&&(t=this.parentNode)&&t.removeChild(this)})},Il.ease=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].ease:("function"!=typeof n&&(n=oa.ease.apply(oa,arguments)),Y(this,function(r){r[e][t].ease=n}))},Il.delay=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].delay:Y(this,"function"==typeof n?function(r,u,i){r[e][t].delay=+n.call(r,r.__data__,u,i)}:(n=+n,function(r){r[e][t].delay=n}))},Il.duration=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].duration:Y(this,"function"==typeof n?function(r,u,i){r[e][t].duration=Math.max(1,n.call(r,r.__data__,u,i))}:(n=Math.max(1,n),function(r){r[e][t].duration=n}))},Il.each=function(n,t){var e=this.id,r=this.namespace;if(arguments.length<2){var u=Hl,i=Fl;try{Fl=e,Y(this,function(t,u,i){Hl=t[r][e],n.call(t,t.__data__,u,i)})}finally{Hl=u,Fl=i}}else Y(this,function(u){var i=u[r][e];(i.event||(i.event=oa.dispatch("start","end","interrupt"))).on(n,t)});return this},Il.transition=function(){for(var n,t,e,r,u=this.id,i=++Yl,a=this.namespace,o=[],l=0,c=this.length;c>l;l++){o.push(n=[]);for(var t=this[l],s=0,f=t.length;f>s;s++)(e=t[s])&&(r=e[a][u],Qi(e,s,a,i,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),n.push(e)}return Wi(o,a,i)},oa.svg.axis=function(){function n(n){n.each(function(){var n,c=oa.select(this),s=this.__chart__||e,f=this.__chart__=e.copy(),h=null==l?f.ticks?f.ticks.apply(f,o):f.domain():l,g=null==t?f.tickFormat?f.tickFormat.apply(f,o):y:t,p=c.selectAll(".tick").data(h,f),v=p.enter().insert("g",".domain").attr("class","tick").style("opacity",Da),d=oa.transition(p.exit()).style("opacity",Da).remove(),m=oa.transition(p.order()).style("opacity",1),M=Math.max(u,0)+a,x=Zu(f),b=c.selectAll(".domain").data([0]),_=(b.enter().append("path").attr("class","domain"),oa.transition(b));v.append("line"),v.append("text");var w,S,k,N,E=v.select("line"),A=m.select("line"),C=p.select("text").text(g),z=v.select("text"),L=m.select("text"),q="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(n=na,w="x",k="y",S="x2",N="y2",C.attr("dy",0>q?"0em":".71em").style("text-anchor","middle"),_.attr("d","M"+x[0]+","+q*i+"V0H"+x[1]+"V"+q*i)):(n=ta,w="y",k="x",S="y2",N="x2",C.attr("dy",".32em").style("text-anchor",0>q?"end":"start"),_.attr("d","M"+q*i+","+x[0]+"H0V"+x[1]+"H"+q*i)),E.attr(N,q*u),z.attr(k,q*M),A.attr(S,0).attr(N,q*u),L.attr(w,0).attr(k,q*M),f.rangeBand){var T=f,R=T.rangeBand()/2;s=f=function(n){return T(n)+R}}else s.rangeBand?s=f:d.call(n,f,s);v.call(n,s,f),m.call(n,f,f)})}var t,e=oa.scale.linear(),r=Zl,u=6,i=6,a=3,o=[10],l=null;return n.scale=function(t){return arguments.length?(e=t,n):e},n.orient=function(t){return arguments.length?(r=t in Vl?t+"":Zl,n):r},n.ticks=function(){return arguments.length?(o=ca(arguments),n):o},n.tickValues=function(t){return arguments.length?(l=t,n):l},n.tickFormat=function(e){return arguments.length?(t=e,n):t},n.tickSize=function(t){var e=arguments.length;return e?(u=+t,i=+arguments[e-1],n):u},n.innerTickSize=function(t){return arguments.length?(u=+t,n):u},n.outerTickSize=function(t){return arguments.length?(i=+t,n):i},n.tickPadding=function(t){return arguments.length?(a=+t,n):a},n.tickSubdivide=function(){return arguments.length&&n},n};var Zl="bottom",Vl={top:1,right:1,bottom:1,left:1};oa.svg.brush=function(){function n(t){t.each(function(){var t=oa.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",i).on("touchstart.brush",i),a=t.selectAll(".background").data([0]);a.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),t.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var o=t.selectAll(".resize").data(v,y);o.exit().remove(),o.enter().append("g").attr("class",function(n){return"resize "+n}).style("cursor",function(n){return Xl[n]}).append("rect").attr("x",function(n){return/[ew]$/.test(n)?-3:null}).attr("y",function(n){return/^[ns]/.test(n)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),o.style("display",n.empty()?"none":null);var l,f=oa.transition(t),h=oa.transition(a);c&&(l=Zu(c),h.attr("x",l[0]).attr("width",l[1]-l[0]),r(f)),s&&(l=Zu(s),h.attr("y",l[0]).attr("height",l[1]-l[0]),u(f)),e(f)})}function e(n){n.selectAll(".resize").attr("transform",function(n){return"translate("+f[+/e$/.test(n)]+","+h[+/^s/.test(n)]+")"})}function r(n){n.select(".extent").attr("x",f[0]),n.selectAll(".extent,.n>rect,.s>rect").attr("width",f[1]-f[0])}function u(n){n.select(".extent").attr("y",h[0]),n.selectAll(".extent,.e>rect,.w>rect").attr("height",h[1]-h[0])}function i(){function i(){32==oa.event.keyCode&&(C||(M=null,L[0]-=f[1],L[1]-=h[1],C=2),S())}function v(){32==oa.event.keyCode&&2==C&&(L[0]+=f[1],L[1]+=h[1],C=0,S())}function d(){var n=oa.mouse(b),t=!1;x&&(n[0]+=x[0],n[1]+=x[1]),C||(oa.event.altKey?(M||(M=[(f[0]+f[1])/2,(h[0]+h[1])/2]),L[0]=f[+(n[0]<M[0])],L[1]=h[+(n[1]<M[1])]):M=null),E&&m(n,c,0)&&(r(k),t=!0),A&&m(n,s,1)&&(u(k),t=!0),t&&(e(k),w({type:"brush",mode:C?"move":"resize"}))}function m(n,t,e){var r,u,i=Zu(t),l=i[0],c=i[1],s=L[e],v=e?h:f,d=v[1]-v[0];return C&&(l-=s,c-=d+s),r=(e?p:g)?Math.max(l,Math.min(c,n[e])):n[e],C?u=(r+=s)+d:(M&&(s=Math.max(l,Math.min(c,2*M[e]-r))),r>s?(u=r,r=s):u=s),v[0]!=r||v[1]!=u?(e?o=null:a=null,v[0]=r,v[1]=u,!0):void 0}function y(){d(),k.style("pointer-events","all").selectAll(".resize").style("display",n.empty()?"none":null),oa.select("body").style("cursor",null),q.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),z(),w({type:"brushend"})}var M,x,b=this,_=oa.select(oa.event.target),w=l.of(b,arguments),k=oa.select(b),N=_.datum(),E=!/^(n|s)$/.test(N)&&c,A=!/^(e|w)$/.test(N)&&s,C=_.classed("extent"),z=W(b),L=oa.mouse(b),q=oa.select(t(b)).on("keydown.brush",i).on("keyup.brush",v);if(oa.event.changedTouches?q.on("touchmove.brush",d).on("touchend.brush",y):q.on("mousemove.brush",d).on("mouseup.brush",y),k.interrupt().selectAll("*").interrupt(),C)L[0]=f[0]-L[0],L[1]=h[0]-L[1];else if(N){var T=+/w$/.test(N),R=+/^n/.test(N);x=[f[1-T]-L[0],h[1-R]-L[1]],L[0]=f[T],L[1]=h[R]}else oa.event.altKey&&(M=L.slice());k.style("pointer-events","none").selectAll(".resize").style("display",null),oa.select("body").style("cursor",_.style("cursor")),w({type:"brushstart"}),d()}var a,o,l=N(n,"brushstart","brush","brushend"),c=null,s=null,f=[0,0],h=[0,0],g=!0,p=!0,v=$l[0];return n.event=function(n){n.each(function(){var n=l.of(this,arguments),t={x:f,y:h,i:a,j:o},e=this.__chart__||t;this.__chart__=t,Fl?oa.select(this).transition().each("start.brush",function(){a=e.i,o=e.j,f=e.x,h=e.y,n({type:"brushstart"})}).tween("brush:brush",function(){var e=xr(f,t.x),r=xr(h,t.y);return a=o=null,function(u){f=t.x=e(u),h=t.y=r(u),n({type:"brush",mode:"resize"})}}).each("end.brush",function(){a=t.i,o=t.j,n({type:"brush",mode:"resize"}),n({type:"brushend"})}):(n({type:"brushstart"}),n({type:"brush",mode:"resize"}),n({type:"brushend"}))})},n.x=function(t){return arguments.length?(c=t,v=$l[!c<<1|!s],n):c},n.y=function(t){return arguments.length?(s=t,v=$l[!c<<1|!s],n):s},n.clamp=function(t){return arguments.length?(c&&s?(g=!!t[0],p=!!t[1]):c?g=!!t:s&&(p=!!t),n):c&&s?[g,p]:c?g:s?p:null},n.extent=function(t){var e,r,u,i,l;return arguments.length?(c&&(e=t[0],r=t[1],s&&(e=e[0],r=r[0]),a=[e,r],c.invert&&(e=c(e),r=c(r)),e>r&&(l=e,e=r,r=l),(e!=f[0]||r!=f[1])&&(f=[e,r])),s&&(u=t[0],i=t[1],c&&(u=u[1],i=i[1]),o=[u,i],s.invert&&(u=s(u),i=s(i)),u>i&&(l=u,u=i,i=l),(u!=h[0]||i!=h[1])&&(h=[u,i])),n):(c&&(a?(e=a[0],r=a[1]):(e=f[0],r=f[1],c.invert&&(e=c.invert(e),r=c.invert(r)),e>r&&(l=e,e=r,r=l))),s&&(o?(u=o[0],i=o[1]):(u=h[0],i=h[1],s.invert&&(u=s.invert(u),i=s.invert(i)),u>i&&(l=u,u=i,i=l))),c&&s?[[e,u],[r,i]]:c?[e,r]:s&&[u,i])},n.clear=function(){return n.empty()||(f=[0,0],h=[0,0],a=o=null),n},n.empty=function(){return!!c&&f[0]==f[1]||!!s&&h[0]==h[1]},oa.rebind(n,l,"on")};var Xl={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},$l=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Bl=ho.format=Mo.timeFormat,Wl=Bl.utc,Jl=Wl("%Y-%m-%dT%H:%M:%S.%LZ");Bl.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?ea:Jl,ea.parse=function(n){var t=new Date(n);return isNaN(t)?null:t},ea.toString=Jl.toString,ho.second=On(function(n){return new go(1e3*Math.floor(n/1e3))},function(n,t){n.setTime(n.getTime()+1e3*Math.floor(t))},function(n){return n.getSeconds()}),ho.seconds=ho.second.range,ho.seconds.utc=ho.second.utc.range,ho.minute=On(function(n){return new go(6e4*Math.floor(n/6e4))},function(n,t){n.setTime(n.getTime()+6e4*Math.floor(t))},function(n){return n.getMinutes()}),ho.minutes=ho.minute.range,ho.minutes.utc=ho.minute.utc.range,ho.hour=On(function(n){var t=n.getTimezoneOffset()/60;return new go(36e5*(Math.floor(n/36e5-t)+t))},function(n,t){n.setTime(n.getTime()+36e5*Math.floor(t))},function(n){return n.getHours()}),ho.hours=ho.hour.range,ho.hours.utc=ho.hour.utc.range,ho.month=On(function(n){return n=ho.day(n),n.setDate(1),n},function(n,t){n.setMonth(n.getMonth()+t)},function(n){return n.getMonth()}),ho.months=ho.month.range,ho.months.utc=ho.month.utc.range;var Gl=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Kl=[[ho.second,1],[ho.second,5],[ho.second,15],[ho.second,30],[ho.minute,1],[ho.minute,5],[ho.minute,15],[ho.minute,30],[ho.hour,1],[ho.hour,3],[ho.hour,6],[ho.hour,12],[ho.day,1],[ho.day,2],[ho.week,1],[ho.month,1],[ho.month,3],[ho.year,1]],Ql=Bl.multi([[".%L",function(n){return n.getMilliseconds()}],[":%S",function(n){return n.getSeconds()}],["%I:%M",function(n){return n.getMinutes()}],["%I %p",function(n){return n.getHours()}],["%a %d",function(n){return n.getDay()&&1!=n.getDate()}],["%b %d",function(n){return 1!=n.getDate()}],["%B",function(n){return n.getMonth()}],["%Y",zt]]),nc={range:function(n,t,e){return oa.range(Math.ceil(n/e)*e,+t,e).map(ua)},floor:y,ceil:y};Kl.year=ho.year,ho.scale=function(){return ra(oa.scale.linear(),Kl,Ql)};var tc=Kl.map(function(n){return[n[0].utc,n[1]]}),ec=Wl.multi([[".%L",function(n){return n.getUTCMilliseconds()}],[":%S",function(n){return n.getUTCSeconds()}],["%I:%M",function(n){return n.getUTCMinutes()}],["%I %p",function(n){return n.getUTCHours()}],["%a %d",function(n){return n.getUTCDay()&&1!=n.getUTCDate()}],["%b %d",function(n){return 1!=n.getUTCDate()}],["%B",function(n){return n.getUTCMonth()}],["%Y",zt]]);tc.year=ho.year.utc,ho.scale.utc=function(){return ra(oa.scale.linear(),tc,ec)},oa.text=An(function(n){return n.responseText}),oa.json=function(n,t){return Cn(n,"application/json",ia,t)},oa.html=function(n,t){return Cn(n,"text/html",aa,t)},oa.xml=An(function(n){return n.responseXML}),"function"==typeof define&&define.amd?(define('d3v3',oa)):"object"==typeof module&&module.exports?module.exports=oa:this.d3v3=oa;window.d3v3=oa}();
/*! html2canvas 1.3.2 <https://html2canvas.hertzen.com> Copyright (c) 2021 Niklas von Hertzen <https://hertzen.com> Released under MIT License  */
!function(A,e){"object"==typeof exports&&"undefined"!=typeof module?A["html2canvasV1"]=e():"function"==typeof define&&define.amd?(A="undefined"!=typeof globalThis?globalThis:A||self).html2canvasV1=e():(A="undefined"!=typeof globalThis?globalThis:A||self).html2canvasV1=e()}(window,function(){"use strict";
var B=function(A,e){return(B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])})(A,e)};function A(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=A}B(A,e),A.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}var h=function(){return(h=Object.assign||function(A){for(var e,t=1,B=arguments.length;t<B;t++)for(var r in e=arguments[t])Object.prototype.hasOwnProperty.call(e,r)&&(A[r]=e[r]);return A}).apply(this,arguments)};function a(A,s,o,i){return new(o=o||Promise)(function(t,e){function B(A){try{n(i.next(A))}catch(A){e(A)}}function r(A){try{n(i.throw(A))}catch(A){e(A)}}function n(A){var e;A.done?t(A.value):((e=A.value)instanceof o?e:new o(function(A){A(e)})).then(B,r)}n((i=i.apply(A,s||[])).next())})}function H(t,B){var r,n,s,o={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},A={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(A[Symbol.iterator]=function(){return this}),A;function e(e){return function(A){return function(e){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(s=2&e[0]?n.return:e[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,e[1])).done)return s;switch(n=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return o.label++,{value:e[1],done:!1};case 5:o.label++,n=e[1],e=[0];continue;case 7:e=o.ops.pop(),o.trys.pop();continue;default:if(!(s=0<(s=o.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){o=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){o.label=e[1];break}if(6===e[0]&&o.label<s[1]){o.label=s[1],s=e;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(e);break}s[2]&&o.ops.pop(),o.trys.pop();continue}e=B.call(t,o)}catch(A){e=[6,A],n=0}finally{r=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,A])}}}function t(A,e,t){if(t||2===arguments.length)for(var B,r=0,n=e.length;r<n;r++)!B&&r in e||((B=B||Array.prototype.slice.call(e,0,r))[r]=e[r]);return A.concat(B||e)}var d=(r.prototype.add=function(A,e,t,B){return new r(this.left+A,this.top+e,this.width+t,this.height+B)},r.fromClientRect=function(A,e){return new r(e.left+A.windowBounds.left,e.top+A.windowBounds.top,e.width,e.height)},r.fromDOMRectList=function(A,e){e=e[0];return e?new r(e.x+A.windowBounds.left,e.y+A.windowBounds.top,e.width,e.height):r.EMPTY},r.EMPTY=new r(0,0,0,0),r);function r(A,e,t,B){this.left=A,this.top=e,this.width=t,this.height=B}for(var E=function(A,e){return d.fromClientRect(A,e.getBoundingClientRect())},Q=function(A){for(var e=[],t=0,B=A.length;t<B;){var r,n=A.charCodeAt(t++);55296<=n&&n<=56319&&t<B?56320==(64512&(r=A.charCodeAt(t++)))?e.push(((1023&n)<<10)+(1023&r)+65536):(e.push(n),t--):e.push(n)}return e},g=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var B=[],r=-1,n="";++r<t;){var s=A[r];s<=65535?B.push(s):(s-=65536,B.push(55296+(s>>10),s%1024+56320)),(r+1===t||16384<B.length)&&(n+=String.fromCharCode.apply(String,B),B.length=0)}return n},e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c="undefined"==typeof Uint8Array?[]:new Uint8Array(256),n=0;n<e.length;n++)c[e.charCodeAt(n)]=n;function s(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))}var o=(i.prototype.get=function(A){var e;if(0<=A){if(A<55296||56319<A&&A<=65535)return e=this.index[A>>5],this.data[e=(e<<2)+(31&A)];if(A<=65535)return e=this.index[2048+(A-55296>>5)],this.data[e=(e<<2)+(31&A)];if(A<this.highStart)return e=this.index[e=2080+(A>>11)],e=this.index[e+=A>>5&63],this.data[e=(e<<2)+(31&A)];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},i);function i(A,e,t,B,r,n){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=B,this.index=r,this.data=n}function w(A,e,t,B){var r=B[t];if(Array.isArray(A)?-1!==A.indexOf(r):A===r)for(var n=t;n<=B.length;){if((o=B[++n])===e)return 1;if(o!==p)break}if(r===p)for(n=t;0<n;){var s=B[--n];if(Array.isArray(A)?-1!==A.indexOf(s):A===s)for(var o,i=t;i<=B.length;){if((o=B[++i])===e)return 1;if(o!==p)break}if(s!==p)break}}function C(A,e){for(var t=A;0<=t;){var B=e[t];if(B!==p)return B;t--}return 0}function U(t,A){var e=(r=function(A,B){void 0===B&&(B="strict");var r=[],n=[],s=[];return A.forEach(function(A,e){var t=j.get(A);if(50<t?(s.push(!0),t-=50):s.push(!1),-1!==["normal","auto","loose"].indexOf(B)&&-1!==[8208,8211,12316,12448].indexOf(A))return n.push(e),r.push(16);if(4!==t&&11!==t)return n.push(e),31===t?r.push("strict"===B?R:J):t===W||29===t?r.push(G):43===t?131072<=A&&A<=196605||196608<=A&&A<=262141?r.push(J):r.push(G):void r.push(t);if(0===e)return n.push(e),r.push(G);t=r[e-1];return-1===tA.indexOf(t)?(n.push(n[e-1]),r.push(t)):(n.push(e),r.push(G))}),[n,r,s]}(t,(A=A||{lineBreak:"normal",wordBreak:"normal"}).lineBreak))[0],B=r[1],r=r[2];return[e,B="break-all"===A.wordBreak||"break-word"===A.wordBreak?B.map(function(A){return-1!==[T,G,W].indexOf(A)?J:A}):B,"keep-all"===A.wordBreak?r.map(function(A,e){return A&&19968<=t[e]&&t[e]<=40959}):void 0]}var l,F,u,f,I,p=10,y=13,K=15,L=17,m=18,D=19,b=20,R=21,O=22,S=24,T=25,v=26,M=27,N=28,G=30,x=32,V=33,P=34,k=35,J=37,X=38,_=39,Y=40,W=42,Z=[9001,65288],q="Ã—",j=(u=function(A){var e,t,B,r,n=.75*A.length,s=A.length,o=0;"="===A[A.length-1]&&(n--,"="===A[A.length-2]&&n--);for(var n=new("undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?ArrayBuffer:Array)(n),i=Array.isArray(n)?n:new Uint8Array(n),Q=0;Q<s;Q+=4)e=c[A.charCodeAt(Q)],t=c[A.charCodeAt(Q+1)],B=c[A.charCodeAt(Q+2)],r=c[A.charCodeAt(Q+3)],i[o++]=e<<2|t>>4,i[o++]=(15&t)<<4|B>>2,i[o++]=(3&B)<<6|63&r;return n}(l=" "),f=Array.isArray(u)?function(A){for(var e=A.length,t=[],B=0;B<e;B+=4)t.push(A[B+3]<<24|A[B+2]<<16|A[B+1]<<8|A[B]);return t}(u):new Uint32Array(u),I=Array.isArray(u)?function(A){for(var e=A.length,t=[],B=0;B<e;B+=2)t.push(A[B+1]<<8|A[B]);return t}(u):new Uint16Array(u),l=s(I,12,f[4]/2),F=2===f[5]?s(I,(24+f[4])/2):(u=f,I=Math.ceil((24+f[4])/4),u.slice?u.slice(I,F):new Uint32Array(Array.prototype.slice.call(u,I,F))),new o(f[0],f[1],f[2],f[3],l,F)),z=[G,36],$=[1,2,3,5],AA=[p,8],eA=[M,v],tA=$.concat(AA),BA=[X,_,Y,P,k],rA=[K,y],nA=(sA.prototype.slice=function(){return g.apply(void 0,this.codePoints.slice(this.start,this.end))},sA);function sA(A,e,t,B){this.codePoints=A,this.required="!"===e,this.start=t,this.end=B}function oA(A,e){var t=Q(A),B=(e=U(t,e))[0],r=e[1],n=e[2],s=t.length,o=0,i=0;return{next:function(){if(s<=i)return{done:!0,value:null};for(var A=q;i<s&&(A=function(A,e,t,B,r){if(0===t[B])return q;var n=B-1;if(Array.isArray(r)&&!0===r[n])return q;var s=n-1,o=1+n,i=e[n],B=0<=s?e[s]:0,r=e[o];if(2===i&&3===r)return q;if(-1!==$.indexOf(i))return"!";if(-1!==$.indexOf(r))return q;if(-1!==AA.indexOf(r))return q;if(8===C(n,e))return"Ã·";if(11===j.get(A[n]))return q;if((i===x||i===V)&&11===j.get(A[o]))return q;if(7===i||7===r)return q;if(9===i)return q;if(-1===[p,y,K].indexOf(i)&&9===r)return q;if(-1!==[L,m,D,S,N].indexOf(r))return q;if(C(n,e)===O)return q;if(w(23,O,n,e))return q;if(w([L,m],R,n,e))return q;if(w(12,12,n,e))return q;if(i===p)return"Ã·";if(23===i||23===r)return q;if(16===r||16===i)return"Ã·";if(-1!==[y,K,R].indexOf(r)||14===i)return q;if(36===B&&-1!==rA.indexOf(i))return q;if(i===N&&36===r)return q;if(r===b)return q;if(-1!==z.indexOf(r)&&i===T||-1!==z.indexOf(i)&&r===T)return q;if(i===M&&-1!==[J,x,V].indexOf(r)||-1!==[J,x,V].indexOf(i)&&r===v)return q;if(-1!==z.indexOf(i)&&-1!==eA.indexOf(r)||-1!==eA.indexOf(i)&&-1!==z.indexOf(r))return q;if(-1!==[M,v].indexOf(i)&&(r===T||-1!==[O,K].indexOf(r)&&e[1+o]===T)||-1!==[O,K].indexOf(i)&&r===T||i===T&&-1!==[T,N,S].indexOf(r))return q;if(-1!==[T,N,S,L,m].indexOf(r))for(var Q=n;0<=Q;){if((c=e[Q])===T)return q;if(-1===[N,S].indexOf(c))break;Q--}if(-1!==[M,v].indexOf(r))for(var c,Q=-1!==[L,m].indexOf(i)?s:n;0<=Q;){if((c=e[Q])===T)return q;if(-1===[N,S].indexOf(c))break;Q--}if(X===i&&-1!==[X,_,P,k].indexOf(r)||-1!==[_,P].indexOf(i)&&-1!==[_,Y].indexOf(r)||-1!==[Y,k].indexOf(i)&&r===Y)return q;if(-1!==BA.indexOf(i)&&-1!==[b,v].indexOf(r)||-1!==BA.indexOf(r)&&i===M)return q;if(-1!==z.indexOf(i)&&-1!==z.indexOf(r))return q;if(i===S&&-1!==z.indexOf(r))return q;if(-1!==z.concat(T).indexOf(i)&&r===O&&-1===Z.indexOf(A[o])||-1!==z.concat(T).indexOf(r)&&i===m)return q;if(41===i&&41===r){for(var a=t[n],g=1;0<a&&41===e[--a];)g++;if(g%2!=0)return q}return i===x&&r===V?q:"Ã·"}(t,r,B,++i,n))===q;);if(A===q&&i!==s)return{done:!0,value:null};var e=new nA(t,A,o,i);return o=i,{value:e,done:!1}}}}function iA(A){return 48<=A&&A<=57}function QA(A){return iA(A)||65<=A&&A<=70||97<=A&&A<=102}function cA(A){return 10===A||9===A||32===A}function aA(A){return 97<=(t=e=A)&&t<=122||65<=(e=e)&&e<=90||128<=A||95===A;var e,t}function gA(A){return aA(A)||iA(A)||45===A}function wA(A,e){return 92===A&&10!==e}function CA(A,e,t){return 45===A?aA(e)||wA(e,t):!!aA(A)||92===A&&10!==e}function UA(A,e,t){return 43===A||45===A?!!iA(e)||46===e&&iA(t):iA(46===A?e:A)}var lA={type:2},FA={type:3},uA={type:4},hA={type:13},dA={type:8},EA={type:21},HA={type:9},fA={type:10},IA={type:11},pA={type:12},yA={type:14},KA={type:23},LA={type:1},mA={type:25},DA={type:24},bA={type:26},RA={type:27},OA={type:28},SA={type:29},TA={type:31},vA={type:32},MA=(NA.prototype.write=function(A){this._value=this._value.concat(Q(A))},NA.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==vA;)A.push(e),e=this.consumeToken();return A},NA.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),B=this.peekCodePoint(2);if(gA(e)||wA(t,B)){var r=CA(e,t,B)?2:1;return{type:5,value:this.consumeName(),flags:r}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),hA;break;case 39:return this.consumeStringToken(39);case 40:return lA;case 41:return FA;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),yA;break;case 43:if(UA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 44:return uA;case 45:var B=A,r=this.peekCodePoint(0),n=this.peekCodePoint(1);if(UA(B,r,n))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(CA(B,r,n))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(45===r&&62===n)return this.consumeCodePoint(),this.consumeCodePoint(),DA;break;case 46:if(UA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var s=this.consumeCodePoint();if(42===s&&47===(s=this.consumeCodePoint()))return this.consumeToken();if(-1===s)return this.consumeToken()}break;case 58:return bA;case 59:return RA;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),mA;break;case 64:var n=this.peekCodePoint(0),o=this.peekCodePoint(1),i=this.peekCodePoint(2);if(CA(n,o,i))return{type:7,value:this.consumeName()};break;case 91:return OA;case 92:if(wA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case 93:return SA;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),dA;break;case 123:return IA;case 125:return pA;case 117:case 85:o=this.peekCodePoint(0),i=this.peekCodePoint(1);return 43!==o||!QA(i)&&63!==i||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),HA;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),EA;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),fA;break;case-1:return vA}return cA(A)?(this.consumeWhiteSpace(),TA):iA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):aA(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:g(A)}},NA.prototype.consumeCodePoint=function(){var A=this._value.shift();return void 0===A?-1:A},NA.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},NA.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},NA.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();QA(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var t=!1;63===e&&A.length<6;)A.push(e),e=this.consumeCodePoint(),t=!0;if(t)return{type:30,start:parseInt(g.apply(void 0,A.map(function(A){return 63===A?48:A})),16),end:parseInt(g.apply(void 0,A.map(function(A){return 63===A?70:A})),16)};var B=parseInt(g.apply(void 0,A),16);if(45===this.peekCodePoint(0)&&QA(this.peekCodePoint(1))){this.consumeCodePoint();for(var e=this.consumeCodePoint(),r=[];QA(e)&&r.length<6;)r.push(e),e=this.consumeCodePoint();return{type:30,start:B,end:parseInt(g.apply(void 0,r),16)}}return{type:30,start:B,end:B}},NA.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},NA.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};var e,t=this.peekCodePoint(0);if(39===t||34===t){t=this.consumeStringToken(this.consumeCodePoint());return 0===t.type&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),KA)}for(;;){var B=this.consumeCodePoint();if(-1===B||41===B)return{type:22,value:g.apply(void 0,A)};if(cA(B))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:g.apply(void 0,A)}):(this.consumeBadUrlRemnants(),KA);if(34===B||39===B||40===B||(0<=(e=B)&&e<=8||11===e||14<=e&&e<=31||127===e))return this.consumeBadUrlRemnants(),KA;if(92===B){if(!wA(B,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),KA;A.push(this.consumeEscapedCodePoint())}else A.push(B)}},NA.prototype.consumeWhiteSpace=function(){for(;cA(this.peekCodePoint(0));)this.consumeCodePoint()},NA.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(41===A||-1===A)return;wA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},NA.prototype.consumeStringSlice=function(A){for(var e="";0<A;){var t=Math.min(6e4,A);e+=g.apply(void 0,this._value.splice(0,t)),A-=t}return this._value.shift(),e},NA.prototype.consumeStringToken=function(A){for(var e="",t=0;;){var B,r=this._value[t];if(-1===r||void 0===r||r===A)return{type:0,value:e+=this.consumeStringSlice(t)};if(10===r)return this._value.splice(0,t),LA;92!==r||-1!==(B=this._value[t+1])&&void 0!==B&&(10===B?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):wA(r,B)&&(e+=this.consumeStringSlice(t),e+=g(this.consumeEscapedCodePoint()),t=-1)),t++}},NA.prototype.consumeNumber=function(){var A=[],e=4;for(43!==(t=this.peekCodePoint(0))&&45!==t||A.push(this.consumeCodePoint());iA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());var t=this.peekCodePoint(0),B=this.peekCodePoint(1);if(46===t&&iA(B))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;iA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var B=this.peekCodePoint(1),r=this.peekCodePoint(2);if((69===t||101===t)&&((43===B||45===B)&&iA(r)||iA(B)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;iA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[function(A){var e=0,t=1;43!==A[e]&&45!==A[e]||(45===A[e]&&(t=-1),e++);for(var B=[];iA(A[e]);)B.push(A[e++]);var r=B.length?parseInt(g.apply(void 0,B),10):0;46===A[e]&&e++;for(var n=[];iA(A[e]);)n.push(A[e++]);var s=n.length,o=s?parseInt(g.apply(void 0,n),10):0;69!==A[e]&&101!==A[e]||e++;var i=1;43!==A[e]&&45!==A[e]||(45===A[e]&&(i=-1),e++);for(var Q=[];iA(A[e]);)Q.push(A[e++]);var c=Q.length?parseInt(g.apply(void 0,Q),10):0;return t*(r+o*Math.pow(10,-s))*Math.pow(10,i*c)}(A),e]},NA.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],B=this.peekCodePoint(0),r=this.peekCodePoint(1),A=this.peekCodePoint(2);return CA(B,r,A)?{type:15,number:e,flags:t,unit:this.consumeName()}:37===B?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}},NA.prototype.consumeEscapedCodePoint=function(){var A,e=this.consumeCodePoint();if(QA(e)){for(var t=g(e);QA(this.peekCodePoint(0))&&t.length<6;)t+=g(this.consumeCodePoint());cA(this.peekCodePoint(0))&&this.consumeCodePoint();var B=parseInt(t,16);return 0===B||55296<=(A=B)&&A<=57343||1114111<B?65533:B}return-1===e?65533:e},NA.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(gA(e))A+=g(e);else{if(!wA(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=g(this.consumeEscapedCodePoint())}}},NA);function NA(){this._value=[]}var GA=(xA.create=function(A){var e=new MA;return e.write(A),new xA(e.read())},xA.parseValue=function(A){return xA.create(A).parseComponentValue()},xA.parseValues=function(A){return xA.create(A).parseComponentValues()},xA.prototype.parseComponentValue=function(){for(var A=this.consumeToken();31===A.type;)A=this.consumeToken();if(32===A.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);for(var e=this.consumeComponentValue();31===(A=this.consumeToken()).type;);if(32===A.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},xA.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(32===e.type)return A;A.push(e),A.push()}},xA.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},xA.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},t=this.consumeToken();;){if(32===t.type||re(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},xA.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(32===t.type||3===t.type)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},xA.prototype.consumeToken=function(){var A=this._tokens.shift();return void 0===A?vA:A},xA.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},xA);function xA(A){this._tokens=A}function VA(A){return 15===A.type}function PA(A){return 17===A.type}function kA(A){return 20===A.type}function JA(A){return 0===A.type}function XA(A,e){return kA(A)&&A.value===e}function _A(A){return 31!==A.type}function YA(A){return 31!==A.type&&4!==A.type}function WA(A){var e=[],t=[];return A.forEach(function(A){if(4===A.type){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(t),void(t=[])}31!==A.type&&t.push(A)}),t.length&&e.push(t),e}function ZA(A){return 17===A.type||15===A.type}function qA(A){return 16===A.type||ZA(A)}function jA(A){return 1<A.length?[A[0],A[1]]:[A[0]]}function zA(A,e,t){var B=A[0],A=A[1];return[ie(B,e),ie(void 0!==A?A:B,t)]}function $A(A){return 15===A.type&&("deg"===A.unit||"grad"===A.unit||"rad"===A.unit||"turn"===A.unit)}function Ae(A){switch(A.filter(kA).map(function(A){return A.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ne,ne];case"to top":case"bottom":return ce(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ne,oe];case"to right":case"left":return ce(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[oe,oe];case"to bottom":case"top":return ce(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[oe,ne];case"to left":case"right":return ce(270)}return 0}function ee(A){return 0==(255&A)}function te(A){var e=255&A,t=255&A>>8,B=255&A>>16,A=255&A>>24;return e<255?"rgba("+A+","+B+","+t+","+e/255+")":"rgb("+A+","+B+","+t+")"}function Be(A,e){if(17===A.type)return A.number;if(16!==A.type)return 0;var t=3===e?1:255;return 3===e?A.number/100*t:Math.round(A.number/100*t)}var re=function(A,e){return 11===e&&12===A.type||(28===e&&29===A.type||2===e&&3===A.type)},ne={type:17,number:0,flags:4},se={type:16,number:50,flags:4},oe={type:16,number:100,flags:4},ie=function(A,e){if(16===A.type)return A.number/100*e;if(VA(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},Qe=function(A,e){if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case"grad":return Math.PI/200*e.number;case"rad":return e.number;case"turn":return 2*Math.PI*e.number}throw new Error("Unsupported angle type")},ce=function(A){return Math.PI*A/180},ae=function(A,e){if(18===e.type){var t=ue[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(A,e.values)}if(5===e.type){if(3===e.value.length){var B=e.value.substring(0,1),r=e.value.substring(1,2),n=e.value.substring(2,3);return ge(parseInt(B+B,16),parseInt(r+r,16),parseInt(n+n,16),1)}if(4===e.value.length){var B=e.value.substring(0,1),r=e.value.substring(1,2),n=e.value.substring(2,3),s=e.value.substring(3,4);return ge(parseInt(B+B,16),parseInt(r+r,16),parseInt(n+n,16),parseInt(s+s,16)/255)}if(6===e.value.length){B=e.value.substring(0,2),r=e.value.substring(2,4),n=e.value.substring(4,6);return ge(parseInt(B,16),parseInt(r,16),parseInt(n,16),1)}if(8===e.value.length){B=e.value.substring(0,2),r=e.value.substring(2,4),n=e.value.substring(4,6),s=e.value.substring(6,8);return ge(parseInt(B,16),parseInt(r,16),parseInt(n,16),parseInt(s,16)/255)}}if(20===e.type){e=he[e.value.toUpperCase()];if(void 0!==e)return e}return he.TRANSPARENT},ge=function(A,e,t,B){return(A<<24|e<<16|t<<8|Math.round(255*B)<<0)>>>0},we=function(A,e){e=e.filter(YA);if(3===e.length){var t=e.map(Be),B=t[0],r=t[1],t=t[2];return ge(B,r,t,1)}if(4!==e.length)return 0;e=e.map(Be),B=e[0],r=e[1],t=e[2],e=e[3];return ge(B,r,t,e)};function Ce(A,e,t){return t<0&&(t+=1),1<=t&&--t,t<1/6?(e-A)*t*6+A:t<.5?e:t<2/3?6*(e-A)*(2/3-t)+A:A}function Ue(A,e){return ae(A,GA.create(e).parseComponentValue())}var le,Fe=function(A,e){var t=e.filter(YA),B=t[0],r=t[1],n=t[2],e=t[3],t=(17===B.type?ce(B.number):Qe(A,B))/(2*Math.PI),A=qA(r)?r.number/100:0,B=qA(n)?n.number/100:0,r=void 0!==e&&qA(e)?ie(e,1):1;if(0==A)return ge(255*B,255*B,255*B,1);n=B<=.5?B*(1+A):B+A-B*A,e=2*B-n,A=Ce(e,n,t+1/3),B=Ce(e,n,t),t=Ce(e,n,t-1/3);return ge(255*A,255*B,255*t,r)},ue={hsl:Fe,hsla:Fe,rgb:we,rgba:we},he={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199};(ve=le=le||{})[ve.BORDER_BOX=0]="BORDER_BOX",ve[ve.PADDING_BOX=1]="PADDING_BOX";function de(A,e){return A=ae(A,e[0]),(e=e[1])&&qA(e)?{color:A,stop:e}:{color:A,stop:null}}function Ee(A,t){var e=A[0],B=A[A.length-1];null===e.stop&&(e.stop=ne),null===B.stop&&(B.stop=oe);for(var r=[],n=0,s=0;s<A.length;s++){var o=A[s].stop;null!==o?(n<(o=ie(o,t))?r.push(o):r.push(n),n=o):r.push(null)}for(var i=null,s=0;s<r.length;s++){var Q=r[s];if(null===Q)null===i&&(i=s);else if(null!==i){for(var c=s-i,a=(Q-r[i-1])/(1+c),g=1;g<=c;g++)r[i+g-1]=a*g;i=null}}return A.map(function(A,e){return{color:A.color,stop:Math.max(Math.min(1,r[e]/t),0)}})}function He(A,e,t){var B="number"==typeof A?A:(s=e/2,B=(n=t)/2,s=ie((r=A)[0],e)-s,n=B-ie(r[1],n),(Math.atan2(n,s)+2*Math.PI)%(2*Math.PI)),r=Math.abs(e*Math.sin(B))+Math.abs(t*Math.cos(B)),n=e/2,s=t/2,e=r/2,t=Math.sin(B-Math.PI/2)*e,e=Math.cos(B-Math.PI/2)*e;return[r,n-e,n+e,s-t,s+t]}function fe(A,e){return Math.sqrt(A*A+e*e)}function Ie(A,e,r,n,s){return[[0,0],[0,e],[A,0],[A,e]].reduce(function(A,e){var t=e[0],B=e[1],B=fe(r-t,n-B);return(s?B<A.optimumDistance:B>A.optimumDistance)?{optimumCorner:e,optimumDistance:B}:A},{optimumDistance:s?1/0:-1/0,optimumCorner:null}).optimumCorner}var pe,ye={name:"background-clip",initialValue:"border-box",prefix:!(ve[ve.CONTENT_BOX=2]="CONTENT_BOX"),type:1,parse:function(A,e){return e.map(function(A){if(kA(A))switch(A.value){case"padding-box":return le.PADDING_BOX;case"content-box":return le.CONTENT_BOX}return le.BORDER_BOX})}},Ke={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Fe=function(t,A){var B=ce(180),r=[];return WA(A).forEach(function(A,e){if(0===e){e=A[0];if(20===e.type&&-1!==["top","left","right","bottom"].indexOf(e.value))return void(B=Ae(A));if($A(e))return void(B=(Qe(t,e)+ce(270))%ce(360))}A=de(t,A);r.push(A)}),{angle:B,stops:r,type:pe.LINEAR_GRADIENT}},Le="closest-side",me="farthest-side",De="closest-corner",be="farthest-corner",Re="ellipse",Oe="contain",we=function(B,A){var r=Se.CIRCLE,n=Te.FARTHEST_CORNER,s=[],o=[];return WA(A).forEach(function(A,e){var t=!0;0===e?t=A.reduce(function(A,e){if(kA(e))switch(e.value){case"center":return o.push(se),!1;case"top":case"left":return o.push(ne),!1;case"right":case"bottom":return o.push(oe),!1}else if(qA(e)||ZA(e))return o.push(e),!1;return A},t):1===e&&(t=A.reduce(function(A,e){if(kA(e))switch(e.value){case"circle":return r=Se.CIRCLE,!1;case Re:return r=Se.ELLIPSE,!1;case Oe:case Le:return n=Te.CLOSEST_SIDE,!1;case me:return n=Te.FARTHEST_SIDE,!1;case De:return n=Te.CLOSEST_CORNER,!1;case"cover":case be:return n=Te.FARTHEST_CORNER,!1}else if(ZA(e)||qA(e))return(n=!Array.isArray(n)?[]:n).push(e),!1;return A},t)),t&&(A=de(B,A),s.push(A))}),{size:n,shape:r,stops:s,position:o,type:pe.RADIAL_GRADIENT}};(ve=pe=pe||{})[ve.URL=0]="URL",ve[ve.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",ve[ve.RADIAL_GRADIENT=2]="RADIAL_GRADIENT";var Se,Te,ve;(ve=Se=Se||{})[ve.CIRCLE=0]="CIRCLE",ve[ve.ELLIPSE=1]="ELLIPSE",(ve=Te=Te||{})[ve.CLOSEST_SIDE=0]="CLOSEST_SIDE",ve[ve.FARTHEST_SIDE=1]="FARTHEST_SIDE",ve[ve.CLOSEST_CORNER=2]="CLOSEST_CORNER",ve[ve.FARTHEST_CORNER=3]="FARTHEST_CORNER";var Me=function(A,e){if(22===e.type){var t={url:e.value,type:pe.URL};return A.cache.addImage(e.value),t}if(18!==e.type)throw new Error("Unsupported image type "+e.type);t=Ge[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return t(A,e.values)};var Ne,Ge={"linear-gradient":function(t,A){var B=ce(180),r=[];return WA(A).forEach(function(A,e){if(0===e){e=A[0];if(20===e.type&&"to"===e.value)return void(B=Ae(A));if($A(e))return void(B=Qe(t,e))}A=de(t,A);r.push(A)}),{angle:B,stops:r,type:pe.LINEAR_GRADIENT}},"-moz-linear-gradient":Fe,"-ms-linear-gradient":Fe,"-o-linear-gradient":Fe,"-webkit-linear-gradient":Fe,"radial-gradient":function(r,A){var n=Se.CIRCLE,s=Te.FARTHEST_CORNER,o=[],i=[];return WA(A).forEach(function(A,e){var t,B=!0;0===e&&(t=!1,B=A.reduce(function(A,e){if(t)if(kA(e))switch(e.value){case"center":return i.push(se),A;case"top":case"left":return i.push(ne),A;case"right":case"bottom":return i.push(oe),A}else(qA(e)||ZA(e))&&i.push(e);else if(kA(e))switch(e.value){case"circle":return n=Se.CIRCLE,!1;case Re:return n=Se.ELLIPSE,!1;case"at":return!(t=!0);case Le:return s=Te.CLOSEST_SIDE,!1;case"cover":case me:return s=Te.FARTHEST_SIDE,!1;case Oe:case De:return s=Te.CLOSEST_CORNER,!1;case be:return s=Te.FARTHEST_CORNER,!1}else if(ZA(e)||qA(e))return(s=!Array.isArray(s)?[]:s).push(e),!1;return A},B)),B&&(A=de(r,A),o.push(A))}),{size:s,shape:n,stops:o,position:i,type:pe.RADIAL_GRADIENT}},"-moz-radial-gradient":we,"-ms-radial-gradient":we,"-o-radial-gradient":we,"-webkit-radial-gradient":we,"-webkit-gradient":function(B,A){var e=ce(180),r=[],n=pe.LINEAR_GRADIENT,t=Se.CIRCLE,s=Te.FARTHEST_CORNER;return WA(A).forEach(function(A,e){var t,A=A[0];if(0===e){if(kA(A)&&"linear"===A.value)return void(n=pe.LINEAR_GRADIENT);if(kA(A)&&"radial"===A.value)return void(n=pe.RADIAL_GRADIENT)}18===A.type&&("from"===A.name?(t=ae(B,A.values[0]),r.push({stop:ne,color:t})):"to"===A.name?(t=ae(B,A.values[0]),r.push({stop:oe,color:t})):"color-stop"!==A.name||2===(A=A.values.filter(YA)).length&&(t=ae(B,A[1]),A=A[0],PA(A)&&r.push({stop:{type:16,number:100*A.number,flags:A.flags},color:t})))}),n===pe.LINEAR_GRADIENT?{angle:(e+ce(180))%ce(360),stops:r,type:n}:{size:s,shape:t,stops:r,position:[],type:n}}},xe={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(0===A.length)return[];var t=A[0];return 20===t.type&&"none"===t.value?[]:A.filter(function(A){return YA(A)&&!(20===(A=A).type&&"none"===A.value||18===A.type&&!Ge[A.name])}).map(function(A){return Me(e,A)})}},Ve={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(A){if(kA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Pe={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return WA(e).map(function(A){return A.filter(qA)}).map(jA)}};(we=Ne=Ne||{})[we.REPEAT=0]="REPEAT",we[we.NO_REPEAT=1]="NO_REPEAT",we[we.REPEAT_X=2]="REPEAT_X";var ke,Je={name:"background-repeat",initialValue:"repeat",prefix:!(we[we.REPEAT_Y=3]="REPEAT_Y"),type:1,parse:function(A,e){return WA(e).map(function(A){return A.filter(kA).map(function(A){return A.value}).join(" ")}).map(Xe)}},Xe=function(A){switch(A){case"no-repeat":return Ne.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return Ne.REPEAT_X;case"repeat-y":case"no-repeat repeat":return Ne.REPEAT_Y;default:return Ne.REPEAT}};(we=ke=ke||{}).AUTO="auto",we.CONTAIN="contain";var _e,Ye={name:"background-size",initialValue:"0",prefix:!(we.COVER="cover"),type:1,parse:function(A,e){return WA(e).map(function(A){return A.filter(We)})}},We=function(A){return kA(A)||qA(A)},we=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Ze=we("top"),qe=we("right"),je=we("bottom"),ze=we("left"),we=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return jA(e.filter(qA))}}},$e=we("top-left"),At=we("top-right"),et=we("bottom-right"),tt=we("bottom-left");(we=_e=_e||{})[we.NONE=0]="NONE",we[we.SOLID=1]="SOLID",we[we.DASHED=2]="DASHED",we[we.DOTTED=3]="DOTTED",we[we.DOUBLE=4]="DOUBLE";var Bt,we=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return _e.NONE;case"dashed":return _e.DASHED;case"dotted":return _e.DOTTED;case"double":return _e.DOUBLE}return _e.SOLID}}},rt=we("top"),nt=we("right"),st=we("bottom"),ot=we("left"),we=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return VA(e)?e.number:0}}},it=we("top"),Qt=we("right"),ct=we("bottom"),at=we("left"),gt={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},wt={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){return"rtl"!==e?0:1}},Ct={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(kA).reduce(function(A,e){return A|Ut(e.value)},0)}},Ut=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0};(we=Bt=Bt||{})[we.NONE=0]="NONE",we[we.LEFT=1]="LEFT",we[we.RIGHT=2]="RIGHT",we[we.INLINE_START=3]="INLINE_START";function lt(A,e){return kA(A)&&"normal"===A.value?1.2*e:17===A.type?e*A.number:qA(A)?ie(A,e):e}var Ft,ut,ht={name:"float",initialValue:"none",prefix:!(we[we.INLINE_END=4]="INLINE_END"),type:2,parse:function(A,e){switch(e){case"left":return Bt.LEFT;case"right":return Bt.RIGHT;case"inline-start":return Bt.INLINE_START;case"inline-end":return Bt.INLINE_END}return Bt.NONE}},dt={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return!(20===e.type&&"normal"===e.value||17!==e.type&&15!==e.type)?e.number:0}},Et={name:"line-break",initialValue:(we=Ft=Ft||{}).NORMAL="normal",prefix:!(we.STRICT="strict"),type:2,parse:function(A,e){return"strict"!==e?Ft.NORMAL:Ft.STRICT}},Ht={name:"line-height",initialValue:"normal",prefix:!1,type:4},ft={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return 20===e.type&&"none"===e.value?null:Me(A,e)}};(we=ut=ut||{})[we.INSIDE=0]="INSIDE";var It,pt={name:"list-style-position",initialValue:"outside",prefix:!(we[we.OUTSIDE=1]="OUTSIDE"),type:2,parse:function(A,e){return"inside"!==e?ut.OUTSIDE:ut.INSIDE}};(we=It=It||{})[we.NONE=-1]="NONE",we[we.DISC=0]="DISC",we[we.CIRCLE=1]="CIRCLE",we[we.SQUARE=2]="SQUARE",we[we.DECIMAL=3]="DECIMAL",we[we.CJK_DECIMAL=4]="CJK_DECIMAL",we[we.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",we[we.LOWER_ROMAN=6]="LOWER_ROMAN",we[we.UPPER_ROMAN=7]="UPPER_ROMAN",we[we.LOWER_GREEK=8]="LOWER_GREEK",we[we.LOWER_ALPHA=9]="LOWER_ALPHA",we[we.UPPER_ALPHA=10]="UPPER_ALPHA",we[we.ARABIC_INDIC=11]="ARABIC_INDIC",we[we.ARMENIAN=12]="ARMENIAN",we[we.BENGALI=13]="BENGALI",we[we.CAMBODIAN=14]="CAMBODIAN",we[we.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",we[we.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",we[we.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",we[we.DEVANAGARI=18]="DEVANAGARI",we[we.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",we[we.GEORGIAN=20]="GEORGIAN",we[we.GUJARATI=21]="GUJARATI",we[we.GURMUKHI=22]="GURMUKHI",we[we.HEBREW=22]="HEBREW",we[we.HIRAGANA=23]="HIRAGANA",we[we.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",we[we.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",we[we.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",we[we.KANNADA=27]="KANNADA",we[we.KATAKANA=28]="KATAKANA",we[we.KATAKANA_IROHA=29]="KATAKANA_IROHA",we[we.KHMER=30]="KHMER",we[we.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",we[we.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",we[we.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",we[we.LAO=34]="LAO",we[we.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",we[we.MALAYALAM=36]="MALAYALAM",we[we.MONGOLIAN=37]="MONGOLIAN",we[we.MYANMAR=38]="MYANMAR",we[we.ORIYA=39]="ORIYA",we[we.PERSIAN=40]="PERSIAN",we[we.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",we[we.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",we[we.TAMIL=43]="TAMIL",we[we.TELUGU=44]="TELUGU",we[we.THAI=45]="THAI",we[we.TIBETAN=46]="TIBETAN",we[we.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",we[we.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",we[we.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",we[we.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN";var yt,Kt={name:"list-style-type",initialValue:"none",prefix:!(we[we.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"),type:2,parse:function(A,e){switch(e){case"disc":return It.DISC;case"circle":return It.CIRCLE;case"square":return It.SQUARE;case"decimal":return It.DECIMAL;case"cjk-decimal":return It.CJK_DECIMAL;case"decimal-leading-zero":return It.DECIMAL_LEADING_ZERO;case"lower-roman":return It.LOWER_ROMAN;case"upper-roman":return It.UPPER_ROMAN;case"lower-greek":return It.LOWER_GREEK;case"lower-alpha":return It.LOWER_ALPHA;case"upper-alpha":return It.UPPER_ALPHA;case"arabic-indic":return It.ARABIC_INDIC;case"armenian":return It.ARMENIAN;case"bengali":return It.BENGALI;case"cambodian":return It.CAMBODIAN;case"cjk-earthly-branch":return It.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return It.CJK_HEAVENLY_STEM;case"cjk-ideographic":return It.CJK_IDEOGRAPHIC;case"devanagari":return It.DEVANAGARI;case"ethiopic-numeric":return It.ETHIOPIC_NUMERIC;case"georgian":return It.GEORGIAN;case"gujarati":return It.GUJARATI;case"gurmukhi":return It.GURMUKHI;case"hebrew":return It.HEBREW;case"hiragana":return It.HIRAGANA;case"hiragana-iroha":return It.HIRAGANA_IROHA;case"japanese-formal":return It.JAPANESE_FORMAL;case"japanese-informal":return It.JAPANESE_INFORMAL;case"kannada":return It.KANNADA;case"katakana":return It.KATAKANA;case"katakana-iroha":return It.KATAKANA_IROHA;case"khmer":return It.KHMER;case"korean-hangul-formal":return It.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return It.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return It.KOREAN_HANJA_INFORMAL;case"lao":return It.LAO;case"lower-armenian":return It.LOWER_ARMENIAN;case"malayalam":return It.MALAYALAM;case"mongolian":return It.MONGOLIAN;case"myanmar":return It.MYANMAR;case"oriya":return It.ORIYA;case"persian":return It.PERSIAN;case"simp-chinese-formal":return It.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return It.SIMP_CHINESE_INFORMAL;case"tamil":return It.TAMIL;case"telugu":return It.TELUGU;case"thai":return It.THAI;case"tibetan":return It.TIBETAN;case"trad-chinese-formal":return It.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return It.TRAD_CHINESE_INFORMAL;case"upper-armenian":return It.UPPER_ARMENIAN;case"disclosure-open":return It.DISCLOSURE_OPEN;case"disclosure-closed":return It.DISCLOSURE_CLOSED;default:return It.NONE}}},we=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},Lt=we("top"),mt=we("right"),Dt=we("bottom"),bt=we("left");(we=yt=yt||{})[we.VISIBLE=0]="VISIBLE",we[we.HIDDEN=1]="HIDDEN",we[we.SCROLL=2]="SCROLL",we[we.CLIP=3]="CLIP";var Rt,Ot={name:"overflow",initialValue:"visible",prefix:!(we[we.AUTO=4]="AUTO"),type:1,parse:function(A,e){return e.filter(kA).map(function(A){switch(A.value){case"hidden":return yt.HIDDEN;case"scroll":return yt.SCROLL;case"clip":return yt.CLIP;case"auto":return yt.AUTO;default:return yt.VISIBLE}})}},St={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"break-word"!==e?"normal":"break-word"}},we=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Tt=we("top"),vt=we("right"),Mt=we("bottom"),Nt=we("left");(we=Rt=Rt||{})[we.LEFT=0]="LEFT",we[we.CENTER=1]="CENTER";var Gt,xt={name:"text-align",initialValue:"left",prefix:!(we[we.RIGHT=2]="RIGHT"),type:2,parse:function(A,e){switch(e){case"right":return Rt.RIGHT;case"center":case"justify":return Rt.CENTER;default:return Rt.LEFT}}};(we=Gt=Gt||{})[we.STATIC=0]="STATIC",we[we.RELATIVE=1]="RELATIVE",we[we.ABSOLUTE=2]="ABSOLUTE",we[we.FIXED=3]="FIXED";var Vt,Pt={name:"position",initialValue:"static",prefix:!(we[we.STICKY=4]="STICKY"),type:2,parse:function(A,e){switch(e){case"relative":return Gt.RELATIVE;case"absolute":return Gt.ABSOLUTE;case"fixed":return Gt.FIXED;case"sticky":return Gt.STICKY}return Gt.STATIC}},kt={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(n,A){return 1===A.length&&XA(A[0],"none")?[]:WA(A).map(function(A){for(var e={color:he.TRANSPARENT,offsetX:ne,offsetY:ne,blur:ne},t=0,B=0;B<A.length;B++){var r=A[B];ZA(r)?(0===t?e.offsetX=r:1===t?e.offsetY=r:e.blur=r,t++):e.color=ae(n,r)}return e})}};(we=Vt=Vt||{})[we.NONE=0]="NONE",we[we.LOWERCASE=1]="LOWERCASE",we[we.UPPERCASE=2]="UPPERCASE";var Jt,Xt={name:"text-transform",initialValue:"none",prefix:!(we[we.CAPITALIZE=3]="CAPITALIZE"),type:2,parse:function(A,e){switch(e){case"uppercase":return Vt.UPPERCASE;case"lowercase":return Vt.LOWERCASE;case"capitalize":return Vt.CAPITALIZE}return Vt.NONE}},_t={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,e){if(20===e.type&&"none"===e.value)return null;if(18!==e.type)return null;var t=Yt[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}},Yt={matrix:function(A){A=A.filter(function(A){return 17===A.type}).map(function(A){return A.number});return 6===A.length?A:null},matrix3d:function(A){var e=A.filter(function(A){return 17===A.type}).map(function(A){return A.number}),t=e[0],B=e[1];e[2],e[3];var r=e[4],n=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var s=e[12],A=e[13];return e[14],e[15],16===e.length?[t,B,r,n,s,A]:null}},we={type:16,number:50,flags:4},Wt=[we,we],Zt={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,e){e=e.filter(qA);return 2!==e.length?Wt:[e[0],e[1]]}};(we=Jt=Jt||{})[we.VISIBLE=0]="VISIBLE",we[we.HIDDEN=1]="HIDDEN";var qt,jt={name:"visible",initialValue:"none",prefix:!(we[we.COLLAPSE=2]="COLLAPSE"),type:2,parse:function(A,e){switch(e){case"hidden":return Jt.HIDDEN;case"collapse":return Jt.COLLAPSE;default:return Jt.VISIBLE}}};(we=qt=qt||{}).NORMAL="normal",we.BREAK_ALL="break-all";var zt,$t={name:"word-break",initialValue:"normal",prefix:!(we.KEEP_ALL="keep-all"),type:2,parse:function(A,e){switch(e){case"break-all":return qt.BREAK_ALL;case"keep-all":return qt.KEEP_ALL;default:return qt.NORMAL}}},AB={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,e){if(20===e.type)return{auto:!0,order:0};if(PA(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},eB=function(A,e){if(15===e.type)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")},tB={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,e){return PA(e)?e.number:1}},BB={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},rB={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,e){return e.filter(kA).map(function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(A){return 0!==A})}},nB={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,e){var t=[],B=[];return e.forEach(function(A){switch(A.type){case 20:case 0:t.push(A.value);break;case 17:t.push(A.number.toString());break;case 4:B.push(t.join(" ")),t.length=0}}),t.length&&B.push(t.join(" ")),B.map(function(A){return-1===A.indexOf(" ")?A:"'"+A+"'"})}},sB={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},oB={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,e){return PA(e)?e.number:!kA(e)||"bold"!==e.value?400:700}},iB={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.filter(kA).map(function(A){return A.value})}};(we=zt=zt||{}).NORMAL="normal",we.ITALIC="italic";function QB(A,e){return 0!=(A&e)}function cB(A,e,t){return(A=A&&A[Math.min(e,A.length-1)])?t?A.open:A.close:""}var aB,gB={name:"font-style",initialValue:"normal",prefix:!(we.OBLIQUE="oblique"),type:2,parse:function(A,e){switch(e){case"oblique":return zt.OBLIQUE;case"italic":return zt.ITALIC;default:return zt.NORMAL}}},wB={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(0===e.length)return[];var t=e[0];return 20===t.type&&"none"===t.value?[]:e}},CB={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return null;var t=e[0];if(20===t.type&&"none"===t.value)return null;for(var B=[],r=e.filter(_A),n=0;n<r.length;n++){var s=r[n],o=r[n+1];20===s.type&&(o=o&&PA(o)?o.number:1,B.push({counter:s.value,increment:o}))}return B}},UB={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return[];for(var t=[],B=e.filter(_A),r=0;r<B.length;r++){var n=B[r],s=B[r+1];kA(n)&&"none"!==n.value&&(s=s&&PA(s)?s.number:0,t.push({counter:n.value,reset:s}))}return t}},lB={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,A){return A.filter(VA).map(function(A){return eB(e,A)})}},FB={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return null;var t=e[0];if(20===t.type&&"none"===t.value)return null;var B=[],r=e.filter(JA);if(r.length%2!=0)return null;for(var n=0;n<r.length;n+=2){var s=r[n].value,o=r[n+1].value;B.push({open:s,close:o})}return B}},uB={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(n,A){return 1===A.length&&XA(A[0],"none")?[]:WA(A).map(function(A){for(var e={color:255,offsetX:ne,offsetY:ne,blur:ne,spread:ne,inset:!1},t=0,B=0;B<A.length;B++){var r=A[B];XA(r,"inset")?e.inset=!0:ZA(r)?(0===t?e.offsetX=r:1===t?e.offsetY=r:2===t?e.blur=r:e.spread=r,t++):e.color=ae(n,r)}return e})}};(we=aB=aB||{})[we.FILL=0]="FILL",we[we.STROKE=1]="STROKE";var hB={name:"paint-order",initialValue:"normal",prefix:!(we[we.MARKERS=2]="MARKERS"),type:1,parse:function(A,e){var t=[aB.FILL,aB.STROKE,aB.MARKERS],B=[];return e.filter(kA).forEach(function(A){switch(A.value){case"stroke":B.push(aB.STROKE);break;case"fill":B.push(aB.FILL);break;case"markers":B.push(aB.MARKERS)}}),t.forEach(function(A){-1===B.indexOf(A)&&B.push(A)}),B}},dB={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},EB={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return VA(e)?e.number:0}},HB=(fB.prototype.isVisible=function(){return 0<this.display&&0<this.opacity&&this.visibility===Jt.VISIBLE},fB.prototype.isTransparent=function(){return ee(this.backgroundColor)},fB.prototype.isTransformed=function(){return null!==this.transform},fB.prototype.isPositioned=function(){return this.position!==Gt.STATIC},fB.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},fB.prototype.isFloating=function(){return this.float!==Bt.NONE},fB.prototype.isInlineLevel=function(){return QB(this.display,4)||QB(this.display,33554432)||QB(this.display,268435456)||QB(this.display,536870912)||QB(this.display,67108864)||QB(this.display,134217728)},fB);function fB(A,e){this.animationDuration=yB(A,lB,e.animationDuration),this.backgroundClip=yB(A,ye,e.backgroundClip),this.backgroundColor=yB(A,Ke,e.backgroundColor),this.backgroundImage=yB(A,xe,e.backgroundImage),this.backgroundOrigin=yB(A,Ve,e.backgroundOrigin),this.backgroundPosition=yB(A,Pe,e.backgroundPosition),this.backgroundRepeat=yB(A,Je,e.backgroundRepeat),this.backgroundSize=yB(A,Ye,e.backgroundSize),this.borderTopColor=yB(A,Ze,e.borderTopColor),this.borderRightColor=yB(A,qe,e.borderRightColor),this.borderBottomColor=yB(A,je,e.borderBottomColor),this.borderLeftColor=yB(A,ze,e.borderLeftColor),this.borderTopLeftRadius=yB(A,$e,e.borderTopLeftRadius),this.borderTopRightRadius=yB(A,At,e.borderTopRightRadius),this.borderBottomRightRadius=yB(A,et,e.borderBottomRightRadius),this.borderBottomLeftRadius=yB(A,tt,e.borderBottomLeftRadius),this.borderTopStyle=yB(A,rt,e.borderTopStyle),this.borderRightStyle=yB(A,nt,e.borderRightStyle),this.borderBottomStyle=yB(A,st,e.borderBottomStyle),this.borderLeftStyle=yB(A,ot,e.borderLeftStyle),this.borderTopWidth=yB(A,it,e.borderTopWidth),this.borderRightWidth=yB(A,Qt,e.borderRightWidth),this.borderBottomWidth=yB(A,ct,e.borderBottomWidth),this.borderLeftWidth=yB(A,at,e.borderLeftWidth),this.boxShadow=yB(A,uB,e.boxShadow),this.color=yB(A,gt,e.color),this.direction=yB(A,wt,e.direction),this.display=yB(A,Ct,e.display),this.float=yB(A,ht,e.cssFloat),this.fontFamily=yB(A,nB,e.fontFamily),this.fontSize=yB(A,sB,e.fontSize),this.fontStyle=yB(A,gB,e.fontStyle),this.fontVariant=yB(A,iB,e.fontVariant),this.fontWeight=yB(A,oB,e.fontWeight),this.letterSpacing=yB(A,dt,e.letterSpacing),this.lineBreak=yB(A,Et,e.lineBreak),this.lineHeight=yB(A,Ht,e.lineHeight),this.listStyleImage=yB(A,ft,e.listStyleImage),this.listStylePosition=yB(A,pt,e.listStylePosition),this.listStyleType=yB(A,Kt,e.listStyleType),this.marginTop=yB(A,Lt,e.marginTop),this.marginRight=yB(A,mt,e.marginRight),this.marginBottom=yB(A,Dt,e.marginBottom),this.marginLeft=yB(A,bt,e.marginLeft),this.opacity=yB(A,tB,e.opacity);var t=yB(A,Ot,e.overflow);this.overflowX=t[0],this.overflowY=t[1<t.length?1:0],this.overflowWrap=yB(A,St,e.overflowWrap),this.paddingTop=yB(A,Tt,e.paddingTop),this.paddingRight=yB(A,vt,e.paddingRight),this.paddingBottom=yB(A,Mt,e.paddingBottom),this.paddingLeft=yB(A,Nt,e.paddingLeft),this.paintOrder=yB(A,hB,e.paintOrder),this.position=yB(A,Pt,e.position),this.textAlign=yB(A,xt,e.textAlign),this.textDecorationColor=yB(A,BB,null!==(t=e.textDecorationColor)&&void 0!==t?t:e.color),this.textDecorationLine=yB(A,rB,null!==(t=e.textDecorationLine)&&void 0!==t?t:e.textDecoration),this.textShadow=yB(A,kt,e.textShadow),this.textTransform=yB(A,Xt,e.textTransform),this.transform=yB(A,_t,e.transform),this.transformOrigin=yB(A,Zt,e.transformOrigin),this.visibility=yB(A,jt,e.visibility),this.webkitTextStrokeColor=yB(A,dB,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=yB(A,EB,e.webkitTextStrokeWidth),this.wordBreak=yB(A,$t,e.wordBreak),this.zIndex=yB(A,AB,e.zIndex)}for(var IB=function(A,e){this.content=yB(A,wB,e.content),this.quotes=yB(A,FB,e.quotes)},pB=function(A,e){this.counterIncrement=yB(A,CB,e.counterIncrement),this.counterReset=yB(A,UB,e.counterReset)},yB=function(A,e,t){var B=new MA,t=null!=t?t.toString():e.initialValue;B.write(t);var r=new GA(B.read());switch(e.type){case 2:var n=r.parseComponentValue();return e.parse(A,kA(n)?n.value:e.initialValue);case 0:return e.parse(A,r.parseComponentValue());case 1:return e.parse(A,r.parseComponentValues());case 4:return r.parseComponentValue();case 3:switch(e.format){case"angle":return Qe(A,r.parseComponentValue());case"color":return ae(A,r.parseComponentValue());case"image":return Me(A,r.parseComponentValue());case"length":var s=r.parseComponentValue();return ZA(s)?s:ne;case"length-percentage":s=r.parseComponentValue();return qA(s)?s:ne;case"time":return eB(A,r.parseComponentValue())}}},KB=function(A,e){A=function(A){switch(A.getAttribute("data-html2canvasV1-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(A);return 1===A||e===A},LB=function(A,e){this.context=A,this.textNodes=[],this.elements=[],this.flags=0,KB(e,3),this.styles=new HB(A,window.getComputedStyle(e,null)),en(e)&&(this.styles.animationDuration.some(function(A){return 0<A})&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=E(this.context,e),KB(e,4)&&(this.flags|=16)},mB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",DB="undefined"==typeof Uint8Array?[]:new Uint8Array(256),bB=0;bB<mB.length;bB++)DB[mB.charCodeAt(bB)]=bB;function RB(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))}var OB=(SB.prototype.get=function(A){var e;if(0<=A){if(A<55296||56319<A&&A<=65535)return e=this.index[A>>5],this.data[e=(e<<2)+(31&A)];if(A<=65535)return e=this.index[2048+(A-55296>>5)],this.data[e=(e<<2)+(31&A)];if(A<this.highStart)return e=this.index[e=2080+(A>>11)],e=this.index[e+=A>>5&63],this.data[e=(e<<2)+(31&A)];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},SB);function SB(A,e,t,B,r,n){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=B,this.index=r,this.data=n}for(var TB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vB="undefined"==typeof Uint8Array?[]:new Uint8Array(256),MB=0;MB<TB.length;MB++)vB[TB.charCodeAt(MB)]=MB;function NB(A){return zB.get(A)}function GB(A){var t=function(A){for(var e=[],t=0,B=A.length;t<B;){var r,n=A.charCodeAt(t++);55296<=n&&n<=56319&&t<B?56320==(64512&(r=A.charCodeAt(t++)))?e.push(((1023&n)<<10)+(1023&r)+65536):(e.push(n),t--):e.push(n)}return e}(A),B=t.length,r=0,n=0,s=t.map(NB);return{next:function(){if(B<=r)return{done:!0,value:null};for(var A=$B;r<B&&(A=function(A,e){var t=e-2,B=A[t],r=A[e-1],e=A[e];if(2===r&&3===e)return $B;if(2===r||3===r||4===r)return"Ã·";if(2===e||3===e||4===e)return"Ã·";if(r===WB&&-1!==[WB,ZB,qB,jB].indexOf(e))return $B;if(!(r!==qB&&r!==ZB||e!==ZB&&10!==e))return $B;if((r===jB||10===r)&&10===e)return $B;if(13===e||5===e)return $B;if(7===e)return $B;if(1===r)return $B;if(13===r&&14===e){for(;5===B;)B=A[--t];if(14===B)return $B}if(15===r&&15===e){for(var n=0;15===B;)n++,B=A[--t];if(n%2==0)return $B}return"Ã·"}(s,++r))===$B;);if(A===$B&&r!==B)return{done:!0,value:null};var e=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var B=[],r=-1,n="";++r<t;){var s=A[r];s<=65535?B.push(s):(s-=65536,B.push(55296+(s>>10),s%1024+56320)),(r+1===t||16384<B.length)&&(n+=String.fromCharCode.apply(String,B),B.length=0)}return n}.apply(null,t.slice(n,r));return n=r,{value:e,done:!1}}}}function xB(A){for(var e,t=GB(A),B=[];!(e=t.next()).done;)e.value&&B.push(e.value.slice());return B}function VB(A){return 0===A[0]&&255===A[1]&&0===A[2]&&255===A[3]}var PB,kB,JB,XB,_B,YB,WB=8,ZB=9,qB=11,jB=12,zB=(JB=function(A){var e,t,B,r,n=.75*A.length,s=A.length,o=0;"="===A[A.length-1]&&(n--,"="===A[A.length-2]&&n--);for(var n=new("undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?ArrayBuffer:Array)(n),i=Array.isArray(n)?n:new Uint8Array(n),Q=0;Q<s;Q+=4)e=DB[A.charCodeAt(Q)],t=DB[A.charCodeAt(Q+1)],B=DB[A.charCodeAt(Q+2)],r=DB[A.charCodeAt(Q+3)],i[o++]=e<<2|t>>4,i[o++]=(15&t)<<4|B>>2,i[o++]=(3&B)<<6|63&r;return n}(PB=" "),XB=Array.isArray(JB)?function(A){for(var e=A.length,t=[],B=0;B<e;B+=4)t.push(A[B+3]<<24|A[B+2]<<16|A[B+1]<<8|A[B]);return t}(JB):new Uint32Array(JB),_B=Array.isArray(JB)?function(A){for(var e=A.length,t=[],B=0;B<e;B+=2)t.push(A[B+1]<<8|A[B]);return t}(JB):new Uint16Array(JB),PB=RB(_B,12,XB[4]/2),kB=2===XB[5]?RB(_B,(24+XB[4])/2):(JB=XB,_B=Math.ceil((24+XB[4])/4),JB.slice?JB.slice(_B,kB):new Uint32Array(Array.prototype.slice.call(JB,_B,kB))),new OB(XB[0],XB[1],XB[2],XB[3],PB,kB)),$B="Ã—",Ar=function(A,e,t,B,r){var n="http://www.w3.org/2000/svg",s=document.createElementNS(n,"svg"),n=document.createElementNS(n,"foreignObject");return s.setAttributeNS(null,"width",A.toString()),s.setAttributeNS(null,"height",e.toString()),n.setAttributeNS(null,"width","100%"),n.setAttributeNS(null,"height","100%"),n.setAttributeNS(null,"x",t.toString()),n.setAttributeNS(null,"y",B.toString()),n.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(n),n.appendChild(r),s},er=function(B){return new Promise(function(A,e){var t=new Image;t.onload=function(){return A(t)},t.onerror=e,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(B))})},tr={get SUPPORT_RANGE_BOUNDS(){var A=function(A){if(A.createRange){var e=A.createRange();if(e.getBoundingClientRect){var t=A.createElement("boundtest");t.style.height="123px",t.style.display="block",A.body.appendChild(t),e.selectNode(t);e=e.getBoundingClientRect(),e=Math.round(e.height);if(A.body.removeChild(t),123===e)return!0}}return!1}(document);return Object.defineProperty(tr,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=tr.SUPPORT_RANGE_BOUNDS&&function(A){var e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);var B=A.createRange();e.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var r=e.firstChild,t=Q(r.data).map(function(A){return g(A)}),n=0,s={},t=t.every(function(A,e){B.setStart(r,n),B.setEnd(r,n+A.length);var t=B.getBoundingClientRect();n+=A.length;A=t.x>s.x||t.y>s.y;return s=t,0===e||A});return A.body.removeChild(e),t}(document);return Object.defineProperty(tr,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=function(A){var e=new Image,t=A.createElement("canvas"),A=t.getContext("2d");if(!A)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{A.drawImage(e,0,0),t.toDataURL()}catch(A){return!1}return!0}(document);return Object.defineProperty(tr,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"==typeof Array.from&&"function"==typeof window.fetch?function(t){var A=t.createElement("canvas"),B=100;A.width=B,A.height=B;var r=A.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,B,B);var e=new Image,n=A.toDataURL();e.src=n;e=Ar(B,B,0,0,e);return r.fillStyle="red",r.fillRect(0,0,B,B),er(e).then(function(A){r.drawImage(A,0,0);var e=r.getImageData(0,0,B,B).data;r.fillStyle="red",r.fillRect(0,0,B,B);A=t.createElement("div");return A.style.backgroundImage="url("+n+")",A.style.height="100px",VB(e)?er(Ar(B,B,0,0,A)):Promise.reject(!1)}).then(function(A){return r.drawImage(A,0,0),VB(r.getImageData(0,0,B,B).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(tr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=void 0!==(new Image).crossOrigin;return Object.defineProperty(tr,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(tr,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(tr,"SUPPORT_CORS_XHR",{value:A}),A}},Br=function(A,e){this.text=A,this.bounds=e},rr=function(A,e){var t=e.ownerDocument;if(t){var B=t.createElement("html2canvasV1wrapper");B.appendChild(e.cloneNode(!0));t=e.parentNode;if(t){t.replaceChild(B,e);A=E(A,B);return B.firstChild&&t.replaceChild(B.firstChild,B),A}}return d.EMPTY},nr=function(A,e,t){var B=A.ownerDocument;if(!B)throw new Error("Node has no owner document");B=B.createRange();return B.setStart(A,e),B.setEnd(A,e+t),B},sr=function(A,e,t,B){return d.fromClientRect(A,nr(e,t,B).getBoundingClientRect())},or=function(A,e){return 0!==e.letterSpacing?xB(A):Qr(A,e)},ir=[32,160,4961,65792,65793,4153,4241],Qr=function(A,e){for(var t,B=oA(A,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),r=[];!(t=B.next()).done;)!function(){var A,e;t.value&&(A=t.value.slice(),A=Q(A),e="",A.forEach(function(A){-1===ir.indexOf(A)?e+=g(A):(e.length&&r.push(e),r.push(g(A)),e="")}),e.length&&r.push(e))}();return r},cr=function(A,e,t){var B,r,n,s,o;this.text=ar(e.data,t.textTransform),this.textBounds=(B=A,A=this.text,n=e,A=or(A,r=t),s=[],o=0,A.forEach(function(A){var e;r.textDecorationLine.length||0<A.trim().length?tr.SUPPORT_RANGE_BOUNDS?tr.SUPPORT_WORD_BREAKING?s.push(new Br(A,sr(B,n,o,A.length))):s.push(new Br(A,d.fromDOMRectList(B,nr(n,o,A.length).getClientRects()))):(e=n.splitText(A.length),s.push(new Br(A,rr(B,n))),n=e):tr.SUPPORT_RANGE_BOUNDS||(n=n.splitText(A.length)),o+=A.length}),s)},ar=function(A,e){switch(e){case Vt.LOWERCASE:return A.toLowerCase();case Vt.CAPITALIZE:return A.replace(gr,wr);case Vt.UPPERCASE:return A.toUpperCase();default:return A}},gr=/(^|\s|:|-|\(|\))([a-z])/g,wr=function(A,e,t){return 0<A.length?e+t.toUpperCase():A},Cr=(A(Ur,YB=LB),Ur);function Ur(A,e){A=YB.call(this,A,e)||this;return A.src=e.currentSrc||e.src,A.intrinsicWidth=e.naturalWidth,A.intrinsicHeight=e.naturalHeight,A.context.cache.addImage(A.src),A}var lr,Fr=(A(ur,lr=LB),ur);function ur(A,e){A=lr.call(this,A,e)||this;return A.canvas=e,A.intrinsicWidth=e.width,A.intrinsicHeight=e.height,A}var hr,dr=(A(Er,hr=LB),Er);function Er(A,e){var t=hr.call(this,A,e)||this,B=new XMLSerializer,A=E(A,e);return e.setAttribute("width",A.width+"px"),e.setAttribute("height",A.height+"px"),t.svg="data:image/svg+xml,"+encodeURIComponent(B.serializeToString(e)),t.intrinsicWidth=e.width.baseVal.value,t.intrinsicHeight=e.height.baseVal.value,t.context.cache.addImage(t.svg),t}var Hr,fr=(A(Ir,Hr=LB),Ir);function Ir(A,e){A=Hr.call(this,A,e)||this;return A.value=e.value,A}var pr,yr=(A(Kr,pr=LB),Kr);function Kr(A,e){A=pr.call(this,A,e)||this;return A.start=e.start,A.reversed="boolean"==typeof e.reversed&&!0===e.reversed,A}var Lr,mr=[{type:15,flags:0,unit:"px",number:3}],Dr=[{type:16,flags:0,number:50}],br="checkbox",Rr="radio",Or="password",Sr=707406591,Tr=(A(vr,Lr=LB),vr);function vr(A,e){var t=Lr.call(this,A,e)||this;switch(t.type=e.type.toLowerCase(),t.checked=e.checked,t.value=0===(e=(A=e).type===Or?new Array(A.value.length+1).join("â€¢"):A.value).length?A.placeholder||"":e,t.type!==br&&t.type!==Rr||(t.styles.backgroundColor=3739148031,t.styles.borderTopColor=t.styles.borderRightColor=t.styles.borderBottomColor=t.styles.borderLeftColor=2779096575,t.styles.borderTopWidth=t.styles.borderRightWidth=t.styles.borderBottomWidth=t.styles.borderLeftWidth=1,t.styles.borderTopStyle=t.styles.borderRightStyle=t.styles.borderBottomStyle=t.styles.borderLeftStyle=_e.SOLID,t.styles.backgroundClip=[le.BORDER_BOX],t.styles.backgroundOrigin=[0],t.bounds=(e=t.bounds).width>e.height?new d(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new d(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e),t.type){case br:t.styles.borderTopRightRadius=t.styles.borderTopLeftRadius=t.styles.borderBottomRightRadius=t.styles.borderBottomLeftRadius=mr;break;case Rr:t.styles.borderTopRightRadius=t.styles.borderTopLeftRadius=t.styles.borderBottomRightRadius=t.styles.borderBottomLeftRadius=Dr}return t}var Mr,Nr=(A(Gr,Mr=LB),Gr);function Gr(A,e){A=Mr.call(this,A,e)||this,e=e.options[e.selectedIndex||0];return A.value=e&&e.text||"",A}var xr,Vr=(A(Pr,xr=LB),Pr);function Pr(A,e){A=xr.call(this,A,e)||this;return A.value=e.value,A}var kr,Jr=(A(Xr,kr=LB),Xr);function Xr(A,e){var t,B,r=kr.call(this,A,e)||this;r.src=e.src,r.width=parseInt(e.width,10)||0,r.height=parseInt(e.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement&&(r.tree=qr(A,e.contentWindow.document.documentElement),t=e.contentWindow.document.documentElement?Ue(A,getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):he.TRANSPARENT,B=e.contentWindow.document.body?Ue(A,getComputedStyle(e.contentWindow.document.body).backgroundColor):he.TRANSPARENT,r.backgroundColor=ee(t)?ee(B)?r.styles.backgroundColor:B:t)}catch(A){}return r}function _r(A){return"STYLE"===A.tagName}var Yr=["OL","UL","MENU"],Wr=function(e,A,t,B){for(var r=A.firstChild;r;r=s){var n,s=r.nextSibling;$r(r)&&0<r.data.trim().length?t.textNodes.push(new cr(e,r,t.styles)):An(r)&&(Cn(r)&&r.assignedNodes?r.assignedNodes().forEach(function(A){return Wr(e,A,t,B)}):(n=Zr(e,r)).styles.isVisible()&&(jr(r,n,B)?n.flags|=4:zr(n.styles)&&(n.flags|=2),-1!==Yr.indexOf(r.tagName)&&(n.flags|=8),t.elements.push(n),r.slot,r.shadowRoot?Wr(e,r.shadowRoot,n,B):gn(r)||sn(r)||wn(r)||Wr(e,r,n,B)))}},Zr=function(A,e){return new(cn(e)?Cr:Qn(e)?Fr:sn(e)?dr:Bn(e)?fr:rn(e)?yr:nn(e)?Tr:wn(e)?Nr:gn(e)?Vr:an(e)?Jr:LB)(A,e)},qr=function(A,e){var t=Zr(A,e);return t.flags|=4,Wr(A,e,t,t),t},jr=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||on(A)&&t.styles.isTransparent()},zr=function(A){return A.isPositioned()||A.isFloating()},$r=function(A){return A.nodeType===Node.TEXT_NODE},An=function(A){return A.nodeType===Node.ELEMENT_NODE},en=function(A){return An(A)&&void 0!==A.style&&!tn(A)},tn=function(A){return"object"==typeof A.className},Bn=function(A){return"LI"===A.tagName},rn=function(A){return"OL"===A.tagName},nn=function(A){return"INPUT"===A.tagName},sn=function(A){return"svg"===A.tagName},on=function(A){return"BODY"===A.tagName},Qn=function(A){return"CANVAS"===A.tagName},cn=function(A){return"IMG"===A.tagName},an=function(A){return"IFRAME"===A.tagName},gn=function(A){return"TEXTAREA"===A.tagName},wn=function(A){return"SELECT"===A.tagName},Cn=function(A){return"SLOT"===A.tagName},Un=(ln.prototype.getCounterValue=function(A){A=this.counters[A];return A&&A.length?A[A.length-1]:1},ln.prototype.getCounterValues=function(A){A=this.counters[A];return A||[]},ln.prototype.pop=function(A){var e=this;A.forEach(function(A){return e.counters[A].pop()})},ln.prototype.parse=function(A){var t=this,e=A.counterIncrement,A=A.counterReset,B=!0;null!==e&&e.forEach(function(A){var e=t.counters[A.counter];e&&0!==A.increment&&(B=!1,e.length||e.push(1),e[Math.max(0,e.length-1)]+=A.increment)});var r=[];return B&&A.forEach(function(A){var e=t.counters[A.counter];r.push(A.counter),(e=e||(t.counters[A.counter]=[])).push(A.reset)}),r},ln);function ln(){this.counters={}}function Fn(B,A,e,r,t,n){return B<A||e<B?Ln(B,t,0<n.length):r.integers.reduce(function(A,e,t){for(;e<=B;)B-=e,A+=r.values[t];return A},"")+n}function un(A,e,t,B){for(var r="";t||A--,r=B(A)+r,e<=(A/=e)*e;);return r}function hn(A,e,t,B,r){var n=t-e+1;return(A<0?"-":"")+(un(Math.abs(A),n,B,function(A){return g(Math.floor(A%n)+e)})+r)}function dn(A,e,t){void 0===t&&(t=". ");var B=e.length;return un(Math.abs(A),B,!1,function(A){return e[Math.floor(A%B)]})+t}function En(A,e,t,B,r,n){if(A<-9999||9999<A)return Ln(A,It.CJK_DECIMAL,0<r.length);var s=Math.abs(A),o=r;if(0===s)return e[0]+o;for(var i=0;0<s&&i<=4;i++){var Q=s%10;0==Q&&QB(n,1)&&""!==o?o=e[Q]+o:1<Q||1==Q&&0===i||1==Q&&1===i&&QB(n,2)||1==Q&&1===i&&QB(n,4)&&100<A||1==Q&&1<i&&QB(n,8)?o=e[Q]+(0<i?t[i-1]:"")+o:1==Q&&0<i&&(o=t[i-1]+o),s=Math.floor(s/10)}return(A<0?B:"")+o}var Hn,fn={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},In={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Õ”","Õ“","Õ’","Õ‘","Õ?","Õ?","ÕŽ","Õ?","ÕŒ","Õ‹","ÕŠ","Õ‰","Õˆ","Õ‡","Õ†","Õ…","Õ„","Õƒ","Õ‚","Õ?","Õ€","Ô¿","Ô¾","Ô½","Ô¼","Ô»","Ôº","Ô¹","Ô¸","Ô·","Ô¶","Ôµ","Ô´","Ô³","Ô²","Ô±"]},pn={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["×™×³","×˜×³","×—×³","×–×³","×•×³","×”×³","×“×³","×’×³","×‘×³","×?×³","×ª","×©","×¨","×§","×¦","×¤","×¢","×¡","× ","×ž","×œ","×›","×™×˜","×™×—","×™×–","×˜×–","×˜×•","×™","×˜","×—","×–","×•","×”","×“","×’","×‘","×?"]},yn={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["áƒµ","áƒ°","áƒ¯","áƒ´","áƒ®","áƒ­","áƒ¬","áƒ«","áƒª","áƒ©","áƒ¨","áƒ§","áƒ¦","áƒ¥","áƒ¤","áƒ³","áƒ¢","áƒ¡","áƒ ","áƒŸ","áƒž","áƒ?","áƒ²","áƒœ","áƒ›","áƒš","áƒ™","áƒ˜","áƒ—","áƒ±","áƒ–","áƒ•","áƒ”","áƒ“","áƒ’","áƒ‘","áƒ?"]},Kn="ë§ˆì?´ë„ˆìŠ¤",Ln=function(A,e,t){var B=t?". ":"",r=t?"ã€?":"",n=t?", ":"",s=t?" ":"";switch(e){case It.DISC:return"â€¢"+s;case It.CIRCLE:return"â—¦"+s;case It.SQUARE:return"â—¾"+s;case It.DECIMAL_LEADING_ZERO:var o=hn(A,48,57,!0,B);return o.length<4?"0"+o:o;case It.CJK_DECIMAL:return dn(A,"ã€‡ä¸€äºŒä¸‰å››äº”å…­ä¸ƒå…«ä¹?",r);case It.LOWER_ROMAN:return Fn(A,1,3999,fn,It.DECIMAL,B).toLowerCase();case It.UPPER_ROMAN:return Fn(A,1,3999,fn,It.DECIMAL,B);case It.LOWER_GREEK:return hn(A,945,969,!1,B);case It.LOWER_ALPHA:return hn(A,97,122,!1,B);case It.UPPER_ALPHA:return hn(A,65,90,!1,B);case It.ARABIC_INDIC:return hn(A,1632,1641,!0,B);case It.ARMENIAN:case It.UPPER_ARMENIAN:return Fn(A,1,9999,In,It.DECIMAL,B);case It.LOWER_ARMENIAN:return Fn(A,1,9999,In,It.DECIMAL,B).toLowerCase();case It.BENGALI:return hn(A,2534,2543,!0,B);case It.CAMBODIAN:case It.KHMER:return hn(A,6112,6121,!0,B);case It.CJK_EARTHLY_BRANCH:return dn(A,"å­?ä¸‘å¯…å?¯è¾°å·³å?ˆæœªç”³é…‰æˆŒäº¥",r);case It.CJK_HEAVENLY_STEM:return dn(A,"ç”²ä¹™ä¸™ä¸?æˆŠå·±åºšè¾›å£¬ç™¸",r);case It.CJK_IDEOGRAPHIC:case It.TRAD_CHINESE_INFORMAL:return En(A,"é›¶ä¸€äºŒä¸‰å››äº”å…­ä¸ƒå…«ä¹?","å??ç™¾å?ƒè?¬","è² ",r,14);case It.TRAD_CHINESE_FORMAL:return En(A,"é›¶å£¹è²³å?ƒè‚†ä¼?é™¸æŸ’æ?ŒçŽ–","æ‹¾ä½°ä»Ÿè?¬","è² ",r,15);case It.SIMP_CHINESE_INFORMAL:return En(A,"é›¶ä¸€äºŒä¸‰å››äº”å…­ä¸ƒå…«ä¹?","å??ç™¾å?ƒè?¬","è´Ÿ",r,14);case It.SIMP_CHINESE_FORMAL:return En(A,"é›¶å£¹è´°å??è‚†ä¼?é™†æŸ’æ?ŒçŽ–","æ‹¾ä½°ä»Ÿè?¬","è´Ÿ",r,15);case It.JAPANESE_INFORMAL:return En(A,"ã€‡ä¸€äºŒä¸‰å››äº”å…­ä¸ƒå…«ä¹?","å??ç™¾å?ƒä¸‡","ãƒžã‚¤ãƒŠã‚¹",r,0);case It.JAPANESE_FORMAL:return En(A,"é›¶å£±å¼?å?‚å››ä¼?å…­ä¸ƒå…«ä¹?","æ‹¾ç™¾å?ƒä¸‡","ãƒžã‚¤ãƒŠã‚¹",r,7);case It.KOREAN_HANGUL_FORMAL:return En(A,"ì˜?ì?¼ì?´ì‚¼ì‚¬ì˜¤ìœ¡ì¹ íŒ”êµ¬","ì‹­ë°±ì²œë§Œ",Kn,n,7);case It.KOREAN_HANJA_INFORMAL:return En(A,"é›¶ä¸€äºŒä¸‰å››äº”å…­ä¸ƒå…«ä¹?","å??ç™¾å?ƒè?¬",Kn,n,0);case It.KOREAN_HANJA_FORMAL:return En(A,"é›¶å£¹è²³å?ƒå››äº”å…­ä¸ƒå…«ä¹?","æ‹¾ç™¾å?ƒ",Kn,n,7);case It.DEVANAGARI:return hn(A,2406,2415,!0,B);case It.GEORGIAN:return Fn(A,1,19999,yn,It.DECIMAL,B);case It.GUJARATI:return hn(A,2790,2799,!0,B);case It.GURMUKHI:return hn(A,2662,2671,!0,B);case It.HEBREW:return Fn(A,1,10999,pn,It.DECIMAL,B);case It.HIRAGANA:return dn(A,"ã?‚ã?„ã?†ã?ˆã?Šã?‹ã??ã??ã?‘ã?“ã?•ã?—ã?™ã?›ã??ã?Ÿã?¡ã?¤ã?¦ã?¨ã?ªã?«ã?¬ã?­ã?®ã?¯ã?²ã?µã?¸ã?»ã?¾ã?¿ã‚€ã‚?ã‚‚ã‚„ã‚†ã‚ˆã‚‰ã‚Šã‚‹ã‚Œã‚?ã‚?ã‚?ã‚‘ã‚’ã‚“");case It.HIRAGANA_IROHA:return dn(A,"ã?„ã‚?ã?¯ã?«ã?»ã?¸ã?¨ã?¡ã‚Šã?¬ã‚‹ã‚’ã‚?ã?‹ã‚ˆã?Ÿã‚Œã??ã?¤ã?­ã?ªã‚‰ã‚€ã?†ã‚?ã?®ã?Šã??ã‚„ã?¾ã?‘ã?µã?“ã?ˆã?¦ã?‚ã?•ã??ã‚†ã‚?ã?¿ã?—ã‚‘ã?²ã‚‚ã?›ã?™");case It.KANNADA:return hn(A,3302,3311,!0,B);case It.KATAKANA:return dn(A,"ã‚¢ã‚¤ã‚¦ã‚¨ã‚ªã‚«ã‚­ã‚¯ã‚±ã‚³ã‚µã‚·ã‚¹ã‚»ã‚½ã‚¿ãƒ?ãƒ„ãƒ†ãƒˆãƒŠãƒ‹ãƒŒãƒ?ãƒŽãƒ?ãƒ’ãƒ•ãƒ˜ãƒ›ãƒžãƒŸãƒ ãƒ¡ãƒ¢ãƒ¤ãƒ¦ãƒ¨ãƒ©ãƒªãƒ«ãƒ¬ãƒ­ãƒ¯ãƒ°ãƒ±ãƒ²ãƒ³",r);case It.KATAKANA_IROHA:return dn(A,"ã‚¤ãƒ­ãƒ?ãƒ‹ãƒ›ãƒ˜ãƒˆãƒ?ãƒªãƒŒãƒ«ãƒ²ãƒ¯ã‚«ãƒ¨ã‚¿ãƒ¬ã‚½ãƒ„ãƒ?ãƒŠãƒ©ãƒ ã‚¦ãƒ°ãƒŽã‚ªã‚¯ãƒ¤ãƒžã‚±ãƒ•ã‚³ã‚¨ãƒ†ã‚¢ã‚µã‚­ãƒ¦ãƒ¡ãƒŸã‚·ãƒ±ãƒ’ãƒ¢ã‚»ã‚¹",r);case It.LAO:return hn(A,3792,3801,!0,B);case It.MONGOLIAN:return hn(A,6160,6169,!0,B);case It.MYANMAR:return hn(A,4160,4169,!0,B);case It.ORIYA:return hn(A,2918,2927,!0,B);case It.PERSIAN:return hn(A,1776,1785,!0,B);case It.TAMIL:return hn(A,3046,3055,!0,B);case It.TELUGU:return hn(A,3174,3183,!0,B);case It.THAI:return hn(A,3664,3673,!0,B);case It.TIBETAN:return hn(A,3872,3881,!0,B);default:It.DECIMAL;return hn(A,48,57,!0,B)}},mn="data-html2canvasV1-ignore",Dn=(bn.prototype.toIFrame=function(A,B){var e=this,r=On(A,B);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var t=A.defaultView.pageXOffset,n=A.defaultView.pageYOffset,s=r.contentWindow,o=s.document,A=Tn(r).then(function(){return a(e,void 0,void 0,function(){var e,t;return H(this,function(A){switch(A.label){case 0:return this.scrolledElements.forEach(xn),s&&(s.scrollTo(B.left,B.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||s.scrollY===B.top&&s.scrollX===B.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-B.left,s.scrollY-B.top,0,0))),e=this.options.onclone,void 0===(t=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:o.fonts&&o.fonts.ready?[4,o.fonts.ready]:[3,2];case 1:A.sent(),A.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Sn(o)]:[3,4];case 3:A.sent(),A.label=4;case 4:return"function"==typeof e?[2,Promise.resolve().then(function(){return e(o,t)}).then(function(){return r})]:[2,r]}})})});return o.open(),o.write(Nn(document.doctype)+"<html></html>"),Gn(this.referenceElement.ownerDocument,t,n),o.replaceChild(o.adoptNode(this.documentElement),o.documentElement),o.close(),A},bn.prototype.createElementClone=function(A){if(KB(A,2),Qn(A))return this.createCanvasClone(A);if(_r(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return cn(e)&&(cn(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),e},bn.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce(function(A,e){return e&&"string"==typeof e.cssText?A+e.cssText:A},""),B=A.cloneNode(!1);return B.textContent=t,B}}catch(A){if(this.context.logger.error("Unable to access cssRules property",A),"SecurityError"!==A.name)throw A}return A.cloneNode(!1)},bn.prototype.createCanvasClone=function(e){var A;if(this.options.inlineImages&&e.ownerDocument){var t=e.ownerDocument.createElement("img");try{return t.src=e.toDataURL(),t}catch(A){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}t=e.cloneNode(!1);try{t.width=e.width,t.height=e.height;var B,r,n=e.getContext("2d"),s=t.getContext("2d");return s&&(!this.options.allowTaint&&n?s.putImageData(n.getImageData(0,0,e.width,e.height),0,0):(!(B=null!==(A=e.getContext("webgl2"))&&void 0!==A?A:e.getContext("webgl"))||!1===(null==(r=B.getContextAttributes())?void 0:r.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e),s.drawImage(e,0,0))),t}catch(A){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return t},bn.prototype.cloneNode=function(A){if($r(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var e=A.ownerDocument.defaultView;if(e&&An(A)&&(en(A)||tn(A))){var t=this.createElementClone(A);t.style.transitionProperty="none";var B=e.getComputedStyle(A),r=e.getComputedStyle(A,":before"),n=e.getComputedStyle(A,":after");this.referenceElement===A&&en(t)&&(this.clonedReferenceElement=t),on(t)&&Jn(t);for(var e=this.counters.parse(new pB(this.context,B)),r=this.resolvePseudoContent(A,t,r,Hn.BEFORE),s=A.firstChild;s;s=s.nextSibling)An(s)&&("SCRIPT"===s.tagName||s.hasAttribute(mn)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(s))||this.options.copyStyles&&An(s)&&_r(s)||t.appendChild(this.cloneNode(s));r&&t.insertBefore(r,t.firstChild);n=this.resolvePseudoContent(A,t,n,Hn.AFTER);return n&&t.appendChild(n),this.counters.pop(e),B&&(this.options.copyStyles||tn(A))&&!an(A)&&Mn(B,t),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([t,A.scrollLeft,A.scrollTop]),(gn(A)||wn(A))&&(gn(t)||wn(t))&&(t.value=A.value),t}return A.cloneNode(!1)},bn.prototype.resolvePseudoContent=function(o,A,e,t){var i=this;if(e){var B=e.content,Q=A.ownerDocument;if(Q&&B&&"none"!==B&&"-moz-alt-content"!==B&&"none"!==e.display){this.counters.parse(new pB(this.context,e));var c=new IB(this.context,e),a=Q.createElement("html2canvasV1pseudoelement");Mn(e,a),c.content.forEach(function(A){if(0===A.type)a.appendChild(Q.createTextNode(A.value));else if(22===A.type){var e=Q.createElement("img");e.src=A.value,e.style.opacity="1",a.appendChild(e)}else if(18===A.type){var t,B,r,n,s;"attr"===A.name?(e=A.values.filter(kA)).length&&a.appendChild(Q.createTextNode(o.getAttribute(e[0].value)||"")):"counter"===A.name?(r=(B=A.values.filter(YA))[0],B=B[1],r&&kA(r)&&(t=i.counters.getCounterValue(r.value),s=B&&kA(B)?Kt.parse(i.context,B.value):It.DECIMAL,a.appendChild(Q.createTextNode(Ln(t,s,!1))))):"counters"===A.name&&(r=(t=A.values.filter(YA))[0],s=t[1],B=t[2],r&&kA(r)&&(r=i.counters.getCounterValues(r.value),n=B&&kA(B)?Kt.parse(i.context,B.value):It.DECIMAL,s=s&&0===s.type?s.value:"",s=r.map(function(A){return Ln(A,n,!1)}).join(s),a.appendChild(Q.createTextNode(s))))}else if(20===A.type)switch(A.value){case"open-quote":a.appendChild(Q.createTextNode(cB(c.quotes,i.quoteDepth++,!0)));break;case"close-quote":a.appendChild(Q.createTextNode(cB(c.quotes,--i.quoteDepth,!1)));break;default:a.appendChild(Q.createTextNode(A.value))}}),a.className=Vn+" "+Pn;t=t===Hn.BEFORE?" "+Vn:" "+Pn;return tn(A)?A.className.baseValue+=t:A.className+=t,a}}},bn.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},bn);function bn(A,e,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new Un,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement)}(we=Hn=Hn||{})[we.BEFORE=0]="BEFORE",we[we.AFTER=1]="AFTER";function Rn(e){return new Promise(function(A){!e.complete&&e.src?(e.onload=A,e.onerror=A):A()})}var On=function(A,e){var t=A.createElement("iframe");return t.className="html2canvasV1-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(mn,"true"),A.body.appendChild(t),t},Sn=function(A){return Promise.all([].slice.call(A.images,0).map(Rn))},Tn=function(r){return new Promise(function(e,A){var t=r.contentWindow;if(!t)return A("No window assigned for iframe");var B=t.document;t.onload=r.onload=function(){t.onload=r.onload=null;var A=setInterval(function(){0<B.body.childNodes.length&&"complete"===B.readyState&&(clearInterval(A),e(r))},50)}})},vn=["all","d","content"],Mn=function(A,e){for(var t=A.length-1;0<=t;t--){var B=A.item(t);-1===vn.indexOf(B)&&e.style.setProperty(B,A.getPropertyValue(B))}return e},Nn=function(A){var e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=A.internalSubset),A.publicId&&(e+='"'+A.publicId+'"'),A.systemId&&(e+='"'+A.systemId+'"'),e+=">"),e},Gn=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},xn=function(A){var e=A[0],t=A[1],A=A[2];e.scrollLeft=t,e.scrollTop=A},Vn="___html2canvasV1___pseudoelement_before",Pn="___html2canvasV1___pseudoelement_after",kn='{\n    content: "" !important;\n    display: none !important;\n}',Jn=function(A){Xn(A,"."+Vn+":before"+kn+"\n         ."+Pn+":after"+kn)},Xn=function(A,e){var t=A.ownerDocument;t&&((t=t.createElement("style")).textContent=e,A.appendChild(t))},_n=(Yn.getOrigin=function(A){var e=Yn._link;return e?(e.href=A,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},Yn.isSameOrigin=function(A){return Yn.getOrigin(A)===Yn._origin},Yn.setContext=function(A){Yn._link=A.document.createElement("a"),Yn._origin=Yn.getOrigin(A.location.href)},Yn._origin="about:blank",Yn);function Yn(){}var Wn=(Zn.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)||(Bs(A)||As(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),e},Zn.prototype.match=function(A){return this._cache[A]},Zn.prototype.loadImage=function(s){return a(this,void 0,void 0,function(){var e,B,t,r,n=this;return H(this,function(A){switch(A.label){case 0:return(e=_n.isSameOrigin(s),B=!es(s)&&!0===this._options.useCORS&&tr.SUPPORT_CORS_IMAGES&&!e,t=!es(s)&&!e&&!Bs(s)&&"string"==typeof this._options.proxy&&tr.SUPPORT_CORS_XHR&&!B,e||!1!==this._options.allowTaint||es(s)||Bs(s)||t||B)?(r=s,t?[4,this.proxy(r)]:[3,2]):[2];case 1:r=A.sent(),A.label=2;case 2:return this.context.logger.debug("Added image "+s.substring(0,256)),[4,new Promise(function(A,e){var t=new Image;t.onload=function(){return A(t)},t.onerror=e,(ts(r)||B)&&(t.crossOrigin="anonymous"),t.src=r,!0===t.complete&&setTimeout(function(){return A(t)},500),0<n._options.imageTimeout&&setTimeout(function(){return e("Timed out ("+n._options.imageTimeout+"ms) loading image")},n._options.imageTimeout)})];case 3:return[2,A.sent()]}})})},Zn.prototype.has=function(A){return void 0!==this._cache[A]},Zn.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Zn.prototype.proxy=function(s){var o=this,i=this._options.proxy;if(!i)throw new Error("No proxy defined");var Q=s.substring(0,256);return new Promise(function(e,t){var B=tr.SUPPORT_RESPONSE_TYPE?"blob":"text",r=new XMLHttpRequest;r.onload=function(){var A;200===r.status?"text"==B?e(r.response):((A=new FileReader).addEventListener("load",function(){return e(A.result)},!1),A.addEventListener("error",function(A){return t(A)},!1),A.readAsDataURL(r.response)):t("Failed to proxy resource "+Q+" with status code "+r.status)},r.onerror=t;var A,n=-1<i.indexOf("?")?"&":"?";r.open("GET",i+n+"url="+encodeURIComponent(s)+"&responseType="+B),"text"!=B&&r instanceof XMLHttpRequest&&(r.responseType=B),o._options.imageTimeout&&(A=o._options.imageTimeout,r.timeout=A,r.ontimeout=function(){return t("Timed out ("+A+"ms) proxying "+Q)}),r.send()})},Zn);function Zn(A,e){this.context=A,this._options=e,this._cache={}}var qn,jn=/^data:image\/svg\+xml/i,zn=/^data:image\/.*;base64,/i,$n=/^data:image\/.*/i,As=function(A){return tr.SUPPORT_SVG_DRAWING||!rs(A)},es=function(A){return $n.test(A)},ts=function(A){return zn.test(A)},Bs=function(A){return"blob"===A.substr(0,4)},rs=function(A){return"svg"===A.substr(-3).toLowerCase()||jn.test(A)};(we=qn=qn||{})[we.VECTOR=0]="VECTOR",we[we.BEZIER_CURVE=1]="BEZIER_CURVE";function ns(A,t){return A.length===t.length&&A.some(function(A,e){return A===t[e]})}var ss=(os.prototype.add=function(A,e){return new os(this.x+A,this.y+e)},os);function os(A,e){this.type=qn.VECTOR,this.x=A,this.y=e}function is(A,e,t){return new ss(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)}var Qs=(cs.prototype.subdivide=function(A,e){var t=is(this.start,this.startControl,A),B=is(this.startControl,this.endControl,A),r=is(this.endControl,this.end,A),n=is(t,B,A),B=is(B,r,A),A=is(n,B,A);return e?new cs(this.start,t,n,A):new cs(A,B,r,this.end)},cs.prototype.add=function(A,e){return new cs(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))},cs.prototype.reverse=function(){return new cs(this.end,this.endControl,this.startControl,this.start)},cs);function cs(A,e,t,B){this.type=qn.BEZIER_CURVE,this.start=A,this.startControl=e,this.endControl=t,this.end=B}function as(A){return A.type===qn.BEZIER_CURVE}var gs,ws=function(A){var e=A.styles,t=A.bounds,B=(l=zA(e.borderTopLeftRadius,t.width,t.height))[0],r=l[1],n=(F=zA(e.borderTopRightRadius,t.width,t.height))[0],s=F[1],o=(u=zA(e.borderBottomRightRadius,t.width,t.height))[0],i=u[1],Q=(h=zA(e.borderBottomLeftRadius,t.width,t.height))[0],c=h[1];(d=[]).push((B+n)/t.width),d.push((Q+o)/t.width),d.push((r+c)/t.height),d.push((s+i)/t.height),1<(E=Math.max.apply(Math,d))&&(B/=E,r/=E,n/=E,s/=E,o/=E,i/=E,Q/=E,c/=E);var a=t.width-n,g=t.height-i,w=t.width-o,C=t.height-c,U=e.borderTopWidth,l=e.borderRightWidth,F=e.borderBottomWidth,u=e.borderLeftWidth,h=ie(e.paddingTop,A.bounds.width),d=ie(e.paddingRight,A.bounds.width),E=ie(e.paddingBottom,A.bounds.width),A=ie(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=0<B||0<r?Fs(t.left+u/3,t.top+U/3,B-u/3,r-U/3,gs.TOP_LEFT):new ss(t.left+u/3,t.top+U/3),this.topRightBorderDoubleOuterBox=0<B||0<r?Fs(t.left+a,t.top+U/3,n-l/3,s-U/3,gs.TOP_RIGHT):new ss(t.left+t.width-l/3,t.top+U/3),this.bottomRightBorderDoubleOuterBox=0<o||0<i?Fs(t.left+w,t.top+g,o-l/3,i-F/3,gs.BOTTOM_RIGHT):new ss(t.left+t.width-l/3,t.top+t.height-F/3),this.bottomLeftBorderDoubleOuterBox=0<Q||0<c?Fs(t.left+u/3,t.top+C,Q-u/3,c-F/3,gs.BOTTOM_LEFT):new ss(t.left+u/3,t.top+t.height-F/3),this.topLeftBorderDoubleInnerBox=0<B||0<r?Fs(t.left+2*u/3,t.top+2*U/3,B-2*u/3,r-2*U/3,gs.TOP_LEFT):new ss(t.left+2*u/3,t.top+2*U/3),this.topRightBorderDoubleInnerBox=0<B||0<r?Fs(t.left+a,t.top+2*U/3,n-2*l/3,s-2*U/3,gs.TOP_RIGHT):new ss(t.left+t.width-2*l/3,t.top+2*U/3),this.bottomRightBorderDoubleInnerBox=0<o||0<i?Fs(t.left+w,t.top+g,o-2*l/3,i-2*F/3,gs.BOTTOM_RIGHT):new ss(t.left+t.width-2*l/3,t.top+t.height-2*F/3),this.bottomLeftBorderDoubleInnerBox=0<Q||0<c?Fs(t.left+2*u/3,t.top+C,Q-2*u/3,c-2*F/3,gs.BOTTOM_LEFT):new ss(t.left+2*u/3,t.top+t.height-2*F/3),this.topLeftBorderStroke=0<B||0<r?Fs(t.left+u/2,t.top+U/2,B-u/2,r-U/2,gs.TOP_LEFT):new ss(t.left+u/2,t.top+U/2),this.topRightBorderStroke=0<B||0<r?Fs(t.left+a,t.top+U/2,n-l/2,s-U/2,gs.TOP_RIGHT):new ss(t.left+t.width-l/2,t.top+U/2),this.bottomRightBorderStroke=0<o||0<i?Fs(t.left+w,t.top+g,o-l/2,i-F/2,gs.BOTTOM_RIGHT):new ss(t.left+t.width-l/2,t.top+t.height-F/2),this.bottomLeftBorderStroke=0<Q||0<c?Fs(t.left+u/2,t.top+C,Q-u/2,c-F/2,gs.BOTTOM_LEFT):new ss(t.left+u/2,t.top+t.height-F/2),this.topLeftBorderBox=0<B||0<r?Fs(t.left,t.top,B,r,gs.TOP_LEFT):new ss(t.left,t.top),this.topRightBorderBox=0<n||0<s?Fs(t.left+a,t.top,n,s,gs.TOP_RIGHT):new ss(t.left+t.width,t.top),this.bottomRightBorderBox=0<o||0<i?Fs(t.left+w,t.top+g,o,i,gs.BOTTOM_RIGHT):new ss(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=0<Q||0<c?Fs(t.left,t.top+C,Q,c,gs.BOTTOM_LEFT):new ss(t.left,t.top+t.height),this.topLeftPaddingBox=0<B||0<r?Fs(t.left+u,t.top+U,Math.max(0,B-u),Math.max(0,r-U),gs.TOP_LEFT):new ss(t.left+u,t.top+U),this.topRightPaddingBox=0<n||0<s?Fs(t.left+Math.min(a,t.width-l),t.top+U,a>t.width+l?0:Math.max(0,n-l),Math.max(0,s-U),gs.TOP_RIGHT):new ss(t.left+t.width-l,t.top+U),this.bottomRightPaddingBox=0<o||0<i?Fs(t.left+Math.min(w,t.width-u),t.top+Math.min(g,t.height-F),Math.max(0,o-l),Math.max(0,i-F),gs.BOTTOM_RIGHT):new ss(t.left+t.width-l,t.top+t.height-F),this.bottomLeftPaddingBox=0<Q||0<c?Fs(t.left+u,t.top+Math.min(C,t.height-F),Math.max(0,Q-u),Math.max(0,c-F),gs.BOTTOM_LEFT):new ss(t.left+u,t.top+t.height-F),this.topLeftContentBox=0<B||0<r?Fs(t.left+u+A,t.top+U+h,Math.max(0,B-(u+A)),Math.max(0,r-(U+h)),gs.TOP_LEFT):new ss(t.left+u+A,t.top+U+h),this.topRightContentBox=0<n||0<s?Fs(t.left+Math.min(a,t.width+u+A),t.top+U+h,a>t.width+u+A?0:n-u+A,s-(U+h),gs.TOP_RIGHT):new ss(t.left+t.width-(l+d),t.top+U+h),this.bottomRightContentBox=0<o||0<i?Fs(t.left+Math.min(w,t.width-(u+A)),t.top+Math.min(g,t.height+U+h),Math.max(0,o-(l+d)),i-(F+E),gs.BOTTOM_RIGHT):new ss(t.left+t.width-(l+d),t.top+t.height-(F+E)),this.bottomLeftContentBox=0<Q||0<c?Fs(t.left+u+A,t.top+C,Math.max(0,Q-(u+A)),c-(F+E),gs.BOTTOM_LEFT):new ss(t.left+u+A,t.top+t.height-(F+E))};(we=gs=gs||{})[we.TOP_LEFT=0]="TOP_LEFT",we[we.TOP_RIGHT=1]="TOP_RIGHT",we[we.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",we[we.BOTTOM_LEFT=3]="BOTTOM_LEFT";function Cs(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]}function Us(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]}function ls(A){return 1===A.type}var Fs=function(A,e,t,B,r){var n=(Math.sqrt(2)-1)/3*4,s=t*n,o=B*n,i=A+t,Q=e+B;switch(r){case gs.TOP_LEFT:return new Qs(new ss(A,Q),new ss(A,Q-o),new ss(i-s,e),new ss(i,e));case gs.TOP_RIGHT:return new Qs(new ss(A,e),new ss(A+s,e),new ss(i,Q-o),new ss(i,Q));case gs.BOTTOM_RIGHT:return new Qs(new ss(i,e),new ss(i,e+o),new ss(A+s,Q),new ss(A,Q));default:gs.BOTTOM_LEFT;return new Qs(new ss(i,Q),new ss(i-s,Q),new ss(A,e+o),new ss(A,e))}},us=function(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6},hs=function(A,e){this.path=A,this.target=e,this.type=1},ds=function(A){this.opacity=A,this.type=2,this.target=6},Es=function(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},Hs=(fs.prototype.getEffects=function(e){for(var A=-1===[Gt.ABSOLUTE,Gt.FIXED].indexOf(this.container.styles.position),t=this.parent,B=this.effects.slice(0);t;){var r,n,s=t.effects.filter(function(A){return!ls(A)});A||t.container.styles.position!==Gt.STATIC||!t.parent?(B.unshift.apply(B,s),A=-1===[Gt.ABSOLUTE,Gt.FIXED].indexOf(t.container.styles.position),t.container.styles.overflowX!==yt.VISIBLE&&(r=Cs(t.curves),n=Us(t.curves),ns(r,n)||B.unshift(new hs(n,6)))):B.unshift.apply(B,s),t=t.parent}return B.filter(function(A){return QB(A.target,e)})},fs);function fs(A,e){var t,B;this.container=A,this.parent=e,this.effects=[],this.curves=new ws(this.container),this.container.styles.opacity<1&&this.effects.push(new ds(this.container.styles.opacity)),null!==this.container.styles.transform&&(e=this.container.bounds.left+this.container.styles.transformOrigin[0].number,t=this.container.bounds.top+this.container.styles.transformOrigin[1].number,B=this.container.styles.transform,this.effects.push(new us(e,t,B))),this.container.styles.overflowX!==yt.VISIBLE&&(t=Cs(this.curves),B=Us(this.curves),ns(t,B)?this.effects.push(new hs(t,6)):(this.effects.push(new hs(t,2)),this.effects.push(new hs(B,4))))}function Is(A,e){switch(e){case 0:return Os(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return Os(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return Os(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);default:return Os(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}}function ps(A){var e=A.bounds,A=A.styles;return e.add(A.borderLeftWidth,A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth),-(A.borderTopWidth+A.borderBottomWidth))}function ys(A){var e=A.styles,t=A.bounds,B=ie(e.paddingLeft,t.width),r=ie(e.paddingRight,t.width),n=ie(e.paddingTop,t.width),A=ie(e.paddingBottom,t.width);return t.add(B+e.borderLeftWidth,n+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+B+r),-(e.borderTopWidth+e.borderBottomWidth+n+A))}function Ks(A,e,t){var B=(r=Ts(A.styles.backgroundOrigin,e),n=A,0===r?n.bounds:(2===r?ys:ps)(n)),r=(s=Ts(A.styles.backgroundClip,e),o=A,s===le.BORDER_BOX?o.bounds:(s===le.CONTENT_BOX?ys:ps)(o)),n=Ss(Ts(A.styles.backgroundSize,e),t,B),s=n[0],o=n[1],t=zA(Ts(A.styles.backgroundPosition,e),B.width-s,B.height-o);return[vs(Ts(A.styles.backgroundRepeat,e),t,n,B,r),Math.round(B.left+t[0]),Math.round(B.top+t[1]),s,o]}function Ls(A){return kA(A)&&A.value===ke.AUTO}function ms(A){return"number"==typeof A}var Ds=function(Q,c,a,g){Q.container.elements.forEach(function(A){var e=QB(A.flags,4),t=QB(A.flags,2),B=new Hs(A,Q);QB(A.styles.display,2048)&&g.push(B);var r,n,s,o,i=QB(A.flags,8)?[]:g;e||t?(r=e||A.styles.isPositioned()?a:c,t=new Es(B),A.styles.isPositioned()||A.styles.opacity<1||A.styles.isTransformed()?(n=A.styles.zIndex.order)<0?(s=0,r.negativeZIndex.some(function(A,e){return n>A.element.container.styles.zIndex.order?(s=e,!1):0<s}),r.negativeZIndex.splice(s,0,t)):0<n?(o=0,r.positiveZIndex.some(function(A,e){return n>=A.element.container.styles.zIndex.order?(o=e+1,!1):0<o}),r.positiveZIndex.splice(o,0,t)):r.zeroOrAutoZIndexOrTransformedOrOpacity.push(t):(A.styles.isFloating()?r.nonPositionedFloats:r.nonPositionedInlineLevel).push(t),Ds(B,t,e?t:a,i)):((A.styles.isInlineLevel()?c.inlineLevel:c.nonInlineLevel).push(B),Ds(B,c,a,i)),QB(A.flags,8)&&bs(A,i)})},bs=function(A,e){for(var t=A instanceof yr?A.start:1,B=A instanceof yr&&A.reversed,r=0;r<e.length;r++){var n=e[r];n.container instanceof fr&&"number"==typeof n.container.value&&0!==n.container.value&&(t=n.container.value),n.listValue=Ln(t,n.container.styles.listStyleType,!0),t+=B?-1:1}},Rs=function(A,e){var t=[];return as(A)?t.push(A.subdivide(.5,!1)):t.push(A),as(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},Os=function(A,e,t,B){var r=[];return as(A)?r.push(A.subdivide(.5,!1)):r.push(A),as(t)?r.push(t.subdivide(.5,!0)):r.push(t),as(B)?r.push(B.subdivide(.5,!0).reverse()):r.push(B),as(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r},Ss=function(A,e,t){var B=e[0],r=e[1],n=e[2],s=A[0],o=A[1];if(!s)return[0,0];if(qA(s)&&o&&qA(o))return[ie(s,t.width),ie(o,t.height)];var i=ms(n);if(kA(s)&&(s.value===ke.CONTAIN||s.value===ke.COVER))return ms(n)?t.width/t.height<n!=(s.value===ke.COVER)?[t.width,t.width/n]:[t.height*n,t.height]:[t.width,t.height];var Q=ms(B),e=ms(r),A=Q||e;if(Ls(s)&&(!o||Ls(o)))return Q&&e?[B,r]:i||A?A&&i?[Q?B:r*n,e?r:B/n]:[Q?B:t.width,e?r:t.height]:[t.width,t.height];if(i){var c=0,a=0;return qA(s)?c=ie(s,t.width):qA(o)&&(a=ie(o,t.height)),Ls(s)?c=a*n:o&&!Ls(o)||(a=c/n),[c,a]}c=null,a=null;if(qA(s)?c=ie(s,t.width):o&&qA(o)&&(a=ie(o,t.height)),null!==(c=null!==(a=null!==c&&(!o||Ls(o))?Q&&e?c/B*r:t.height:a)&&Ls(s)?Q&&e?a/r*B:t.width:c)&&null!==a)return[c,a];throw new Error("Unable to calculate background-size for element")},Ts=function(A,e){e=A[e];return void 0===e?A[0]:e},vs=function(A,e,t,B,r){var n=e[0],s=e[1],o=t[0],i=t[1];switch(A){case Ne.REPEAT_X:return[new ss(Math.round(B.left),Math.round(B.top+s)),new ss(Math.round(B.left+B.width),Math.round(B.top+s)),new ss(Math.round(B.left+B.width),Math.round(i+B.top+s)),new ss(Math.round(B.left),Math.round(i+B.top+s))];case Ne.REPEAT_Y:return[new ss(Math.round(B.left+n),Math.round(B.top)),new ss(Math.round(B.left+n+o),Math.round(B.top)),new ss(Math.round(B.left+n+o),Math.round(B.height+B.top)),new ss(Math.round(B.left+n),Math.round(B.height+B.top))];case Ne.NO_REPEAT:return[new ss(Math.round(B.left+n),Math.round(B.top+s)),new ss(Math.round(B.left+n+o),Math.round(B.top+s)),new ss(Math.round(B.left+n+o),Math.round(B.top+s+i)),new ss(Math.round(B.left+n),Math.round(B.top+s+i))];default:return[new ss(Math.round(r.left),Math.round(r.top)),new ss(Math.round(r.left+r.width),Math.round(r.top)),new ss(Math.round(r.left+r.width),Math.round(r.height+r.top)),new ss(Math.round(r.left),Math.round(r.height+r.top))]}},Ms="Hidden Text",Ns=(Gs.prototype.parseMetrics=function(A,e){var t=this._document.createElement("div"),B=this._document.createElement("img"),r=this._document.createElement("span"),n=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=e,t.style.margin="0",t.style.padding="0",n.appendChild(t),B.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",B.width=1,B.height=1,B.style.margin="0",B.style.padding="0",B.style.verticalAlign="baseline",r.style.fontFamily=A,r.style.fontSize=e,r.style.margin="0",r.style.padding="0",r.appendChild(this._document.createTextNode(Ms)),t.appendChild(r),t.appendChild(B);e=B.offsetTop-r.offsetTop+2;t.removeChild(r),t.appendChild(this._document.createTextNode(Ms)),t.style.lineHeight="normal",B.style.verticalAlign="super";B=B.offsetTop-t.offsetTop+2;return n.removeChild(t),{baseline:e,middle:B}},Gs.prototype.getMetrics=function(A,e){var t=A+" "+e;return void 0===this._data[t]&&(this._data[t]=this.parseMetrics(A,e)),this._data[t]},Gs);function Gs(A){this._data={},this._document=A}var xs,we=function(A,e){this.context=A,this.options=e},Vs=(A(Ps,xs=we),Ps.prototype.applyEffects=function(A){for(var e=this;this._activeEffects.length;)this.popEffect();A.forEach(function(A){return e.applyEffect(A)})},Ps.prototype.applyEffect=function(A){this.ctx.save(),2===A.type&&(this.ctx.globalAlpha=A.opacity),0===A.type&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),ls(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},Ps.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},Ps.prototype.renderStack=function(e){return a(this,void 0,void 0,function(){return H(this,function(A){switch(A.label){case 0:return e.element.container.styles.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:A.sent(),A.label=2;case 2:return[2]}})})},Ps.prototype.renderNode=function(e){return a(this,void 0,void 0,function(){return H(this,function(A){switch(A.label){case 0:return QB(e.container.flags,16),e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return A.sent(),[4,this.renderNodeContent(e)];case 2:A.sent(),A.label=3;case 3:return[2]}})})},Ps.prototype.renderTextWithLetterSpacing=function(t,A,B){var r=this;0===A?this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+B):xB(t.text).reduce(function(A,e){return r.ctx.fillText(e,A,t.bounds.top+B),A+r.ctx.measureText(e).width},t.bounds.left)},Ps.prototype.createFontStyle=function(A){var e=A.fontVariant.filter(function(A){return"normal"===A||"small-caps"===A}).join(""),t=A.fontFamily.join(", "),B=VA(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,e,A.fontWeight,B,t].join(" "),t,B]},Ps.prototype.renderTextNode=function(i,Q){return a(this,void 0,void 0,function(){var e,t,B,r,n,s,o=this;return H(this,function(A){return B=this.createFontStyle(Q),e=B[0],t=B[1],B=B[2],this.ctx.font=e,this.ctx.direction=1===Q.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",B=this.fontMetrics.getMetrics(t,B),r=B.baseline,n=B.middle,s=Q.paintOrder,i.textBounds.forEach(function(t){s.forEach(function(A){switch(A){case aB.FILL:o.ctx.fillStyle=te(Q.color),o.renderTextWithLetterSpacing(t,Q.letterSpacing,r);var e=Q.textShadow;e.length&&t.text.trim().length&&(e.slice(0).reverse().forEach(function(A){o.ctx.shadowColor=te(A.color),o.ctx.shadowOffsetX=A.offsetX.number*o.options.scale,o.ctx.shadowOffsetY=A.offsetY.number*o.options.scale,o.ctx.shadowBlur=A.blur.number,o.renderTextWithLetterSpacing(t,Q.letterSpacing,r)}),o.ctx.shadowColor="",o.ctx.shadowOffsetX=0,o.ctx.shadowOffsetY=0,o.ctx.shadowBlur=0),Q.textDecorationLine.length&&(o.ctx.fillStyle=te(Q.textDecorationColor||Q.color),Q.textDecorationLine.forEach(function(A){switch(A){case 1:o.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top+r),t.bounds.width,1);break;case 2:o.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top),t.bounds.width,1);break;case 3:o.ctx.fillRect(t.bounds.left,Math.ceil(t.bounds.top+n),t.bounds.width,1)}}));break;case aB.STROKE:Q.webkitTextStrokeWidth&&t.text.trim().length&&(o.ctx.strokeStyle=te(Q.webkitTextStrokeColor),o.ctx.lineWidth=Q.webkitTextStrokeWidth,o.ctx.lineJoin=window.chrome?"miter":"round",o.ctx.strokeText(t.text,t.bounds.left,t.bounds.top+r)),o.ctx.strokeStyle="",o.ctx.lineWidth=0,o.ctx.lineJoin="miter"}})}),[2]})})},Ps.prototype.renderReplacedElement=function(A,e,t){var B;t&&0<A.intrinsicWidth&&0<A.intrinsicHeight&&(B=ys(A),e=Us(e),this.path(e),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(t,0,0,A.intrinsicWidth,A.intrinsicHeight,B.left,B.top,B.width,B.height),this.ctx.restore())},Ps.prototype.renderNodeContent=function(w){return a(this,void 0,void 0,function(){var e,t,B,r,n,s,o,i,Q,c,a,g;return H(this,function(A){switch(A.label){case 0:this.applyEffects(w.getEffects(4)),e=w.container,t=w.curves,B=e.styles,r=0,n=e.textNodes,A.label=1;case 1:return r<n.length?(s=n[r],[4,this.renderTextNode(s,B)]):[3,4];case 2:A.sent(),A.label=3;case 3:return r++,[3,1];case 4:if(!(e instanceof Cr))return[3,8];A.label=5;case 5:return A.trys.push([5,7,,8]),[4,this.context.cache.match(e.src)];case 6:return Q=A.sent(),this.renderReplacedElement(e,t,Q),[3,8];case 7:return A.sent(),this.context.logger.error("Error loading image "+e.src),[3,8];case 8:if(e instanceof Fr&&this.renderReplacedElement(e,t,e.canvas),!(e instanceof dr))return[3,12];A.label=9;case 9:return A.trys.push([9,11,,12]),[4,this.context.cache.match(e.svg)];case 10:return Q=A.sent(),this.renderReplacedElement(e,t,Q),[3,12];case 11:return A.sent(),this.context.logger.error("Error loading svg "+e.svg.substring(0,255)),[3,12];case 12:return e instanceof Jr&&e.tree?[4,new Ps(this.context,{scale:this.options.scale,backgroundColor:e.backgroundColor,x:0,y:0,width:e.width,height:e.height}).render(e.tree)]:[3,14];case 13:s=A.sent(),e.width&&e.height&&this.ctx.drawImage(s,0,0,e.width,e.height,e.bounds.left,e.bounds.top,e.bounds.width,e.bounds.height),A.label=14;case 14:if(e instanceof Tr&&(i=Math.min(e.bounds.width,e.bounds.height),e.type===br?e.checked&&(this.ctx.save(),this.path([new ss(e.bounds.left+.39363*i,e.bounds.top+.79*i),new ss(e.bounds.left+.16*i,e.bounds.top+.5549*i),new ss(e.bounds.left+.27347*i,e.bounds.top+.44071*i),new ss(e.bounds.left+.39694*i,e.bounds.top+.5649*i),new ss(e.bounds.left+.72983*i,e.bounds.top+.23*i),new ss(e.bounds.left+.84*i,e.bounds.top+.34085*i),new ss(e.bounds.left+.39363*i,e.bounds.top+.79*i)]),this.ctx.fillStyle=te(Sr),this.ctx.fill(),this.ctx.restore()):e.type===Rr&&e.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(e.bounds.left+i/2,e.bounds.top+i/2,i/4,0,2*Math.PI,!0),this.ctx.fillStyle=te(Sr),this.ctx.fill(),this.ctx.restore())),Js(e)&&e.value.length){switch(c=this.createFontStyle(B),a=c[0],i=c[1],c=this.fontMetrics.getMetrics(a,i).baseline,this.ctx.font=a,this.ctx.fillStyle=te(B.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=_s(e.styles.textAlign),g=ys(e),o=0,e.styles.textAlign){case Rt.CENTER:o+=g.width/2;break;case Rt.RIGHT:o+=g.width}i=g.add(o,0,0,-g.height/2+1),this.ctx.save(),this.path([new ss(g.left,g.top),new ss(g.left+g.width,g.top),new ss(g.left+g.width,g.top+g.height),new ss(g.left,g.top+g.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Br(e.value,i),B.letterSpacing,c),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!QB(e.styles.display,2048))return[3,20];if(null===e.styles.listStyleImage)return[3,19];if((c=e.styles.listStyleImage).type!==pe.URL)return[3,18];Q=void 0,c=c.url,A.label=15;case 15:return A.trys.push([15,17,,18]),[4,this.context.cache.match(c)];case 16:return Q=A.sent(),this.ctx.drawImage(Q,e.bounds.left-(Q.width+10),e.bounds.top),[3,18];case 17:return A.sent(),this.context.logger.error("Error loading list-style-image "+c),[3,18];case 18:return[3,20];case 19:w.listValue&&e.styles.listStyleType!==It.NONE&&(a=this.createFontStyle(B)[0],this.ctx.font=a,this.ctx.fillStyle=te(B.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",g=new d(e.bounds.left,e.bounds.top+ie(e.styles.paddingTop,e.bounds.width),e.bounds.width,lt(B.lineHeight,B.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Br(w.listValue,g),B.letterSpacing,lt(B.lineHeight,B.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),A.label=20;case 20:return[2]}})})},Ps.prototype.renderStackContent=function(l){return a(this,void 0,void 0,function(){var e,t,B,r,n,s,o,i,Q,c,a,g,w,C,U;return H(this,function(A){switch(A.label){case 0:return QB(l.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(l.element)];case 1:A.sent(),e=0,t=l.negativeZIndex,A.label=2;case 2:return e<t.length?(U=t[e],[4,this.renderStack(U)]):[3,5];case 3:A.sent(),A.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(l.element)];case 6:A.sent(),B=0,r=l.nonInlineLevel,A.label=7;case 7:return B<r.length?(U=r[B],[4,this.renderNode(U)]):[3,10];case 8:A.sent(),A.label=9;case 9:return B++,[3,7];case 10:n=0,s=l.nonPositionedFloats,A.label=11;case 11:return n<s.length?(U=s[n],[4,this.renderStack(U)]):[3,14];case 12:A.sent(),A.label=13;case 13:return n++,[3,11];case 14:o=0,i=l.nonPositionedInlineLevel,A.label=15;case 15:return o<i.length?(U=i[o],[4,this.renderStack(U)]):[3,18];case 16:A.sent(),A.label=17;case 17:return o++,[3,15];case 18:Q=0,c=l.inlineLevel,A.label=19;case 19:return Q<c.length?(U=c[Q],[4,this.renderNode(U)]):[3,22];case 20:A.sent(),A.label=21;case 21:return Q++,[3,19];case 22:a=0,g=l.zeroOrAutoZIndexOrTransformedOrOpacity,A.label=23;case 23:return a<g.length?(U=g[a],[4,this.renderStack(U)]):[3,26];case 24:A.sent(),A.label=25;case 25:return a++,[3,23];case 26:w=0,C=l.positiveZIndex,A.label=27;case 27:return w<C.length?(U=C[w],[4,this.renderStack(U)]):[3,30];case 28:A.sent(),A.label=29;case 29:return w++,[3,27];case 30:return[2]}})})},Ps.prototype.mask=function(A){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(A.slice(0).reverse()),this.ctx.closePath()},Ps.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},Ps.prototype.formatPath=function(A){var B=this;A.forEach(function(A,e){var t=as(A)?A.start:A;0===e?B.ctx.moveTo(t.x,t.y):B.ctx.lineTo(t.x,t.y),as(A)&&B.ctx.bezierCurveTo(A.startControl.x,A.startControl.y,A.endControl.x,A.endControl.y,A.end.x,A.end.y)})},Ps.prototype.renderRepeat=function(A,e,t,B){this.path(A),this.ctx.fillStyle=e,this.ctx.translate(t,B),this.ctx.fill(),this.ctx.translate(-t,-B)},Ps.prototype.resizeImage=function(A,e,t){if(A.width===e&&A.height===t)return A;var B=(null!==(B=this.canvas.ownerDocument)&&void 0!==B?B:document).createElement("canvas");return B.width=Math.max(1,e),B.height=Math.max(1,t),B.getContext("2d").drawImage(A,0,0,A.width,A.height,0,0,e,t),B},Ps.prototype.renderBackgroundImage=function(E){return a(this,void 0,void 0,function(){var h,e,d,t,B,r;return H(this,function(A){switch(A.label){case 0:h=E.styles.backgroundImage.length-1,e=function(e){var t,B,r,n,s,o,i,Q,c,a,g,w,C,U,l,F,u;return H(this,function(A){switch(A.label){case 0:if(e.type!==pe.URL)return[3,5];t=void 0,B=e.url,A.label=1;case 1:return A.trys.push([1,3,,4]),[4,d.context.cache.match(B)];case 2:return t=A.sent(),[3,4];case 3:return A.sent(),d.context.logger.error("Error loading background-image "+B),[3,4];case 4:return t&&(r=Ks(E,h,[t.width,t.height,t.width/t.height]),o=r[0],g=r[1],w=r[2],c=r[3],a=r[4],s=d.ctx.createPattern(d.resizeImage(t,c,a),"repeat"),d.renderRepeat(o,s,g,w)),[3,6];case 5:e.type===pe.LINEAR_GRADIENT?(u=Ks(E,h,[null,null,null]),o=u[0],g=u[1],w=u[2],c=u[3],a=u[4],l=He(e.angle,c,a),U=l[0],r=l[1],i=l[2],F=l[3],Q=l[4],(u=document.createElement("canvas")).width=c,u.height=a,l=u.getContext("2d"),n=l.createLinearGradient(r,F,i,Q),Ee(e.stops,U).forEach(function(A){return n.addColorStop(A.stop,te(A.color))}),l.fillStyle=n,l.fillRect(0,0,c,a),0<c&&0<a&&(s=d.ctx.createPattern(u,"repeat"),d.renderRepeat(o,s,g,w))):e.type===pe.RADIAL_GRADIENT&&(F=Ks(E,h,[null,null,null]),o=F[0],i=F[1],Q=F[2],c=F[3],a=F[4],U=0===e.position.length?[se]:e.position,g=ie(U[0],c),w=ie(U[U.length-1],a),l=function(A,e,t,B,r){var n,s,o,i,Q=0,c=0;switch(A.size){case Te.CLOSEST_SIDE:A.shape===Se.CIRCLE?Q=c=Math.min(Math.abs(e),Math.abs(e-B),Math.abs(t),Math.abs(t-r)):A.shape===Se.ELLIPSE&&(Q=Math.min(Math.abs(e),Math.abs(e-B)),c=Math.min(Math.abs(t),Math.abs(t-r)));break;case Te.CLOSEST_CORNER:A.shape===Se.CIRCLE?Q=c=Math.min(fe(e,t),fe(e,t-r),fe(e-B,t),fe(e-B,t-r)):A.shape===Se.ELLIPSE&&(n=Math.min(Math.abs(t),Math.abs(t-r))/Math.min(Math.abs(e),Math.abs(e-B)),o=(s=Ie(B,r,e,t,!0))[0],i=s[1],c=n*(Q=fe(o-e,(i-t)/n)));break;case Te.FARTHEST_SIDE:A.shape===Se.CIRCLE?Q=c=Math.max(Math.abs(e),Math.abs(e-B),Math.abs(t),Math.abs(t-r)):A.shape===Se.ELLIPSE&&(Q=Math.max(Math.abs(e),Math.abs(e-B)),c=Math.max(Math.abs(t),Math.abs(t-r)));break;case Te.FARTHEST_CORNER:A.shape===Se.CIRCLE?Q=c=Math.max(fe(e,t),fe(e,t-r),fe(e-B,t),fe(e-B,t-r)):A.shape===Se.ELLIPSE&&(n=Math.max(Math.abs(t),Math.abs(t-r))/Math.max(Math.abs(e),Math.abs(e-B)),o=(s=Ie(B,r,e,t,!1))[0],i=s[1],c=n*(Q=fe(o-e,(i-t)/n)))}return Array.isArray(A.size)&&(Q=ie(A.size[0],B),c=2===A.size.length?ie(A.size[1],r):Q),[Q,c]}(e,g,w,c,a),u=l[0],F=l[1],0<u&&0<F&&(C=d.ctx.createRadialGradient(i+g,Q+w,0,i+g,Q+w,u),Ee(e.stops,2*u).forEach(function(A){return C.addColorStop(A.stop,te(A.color))}),d.path(o),d.ctx.fillStyle=C,u!==F?(U=E.bounds.left+.5*E.bounds.width,l=E.bounds.top+.5*E.bounds.height,u=1/(F=F/u),d.ctx.save(),d.ctx.translate(U,l),d.ctx.transform(1,0,0,F,0,0),d.ctx.translate(-U,-l),d.ctx.fillRect(i,u*(Q-l)+l,c,a*u),d.ctx.restore()):d.ctx.fill())),A.label=6;case 6:return h--,[2]}})},d=this,t=0,B=E.styles.backgroundImage.slice(0).reverse(),A.label=1;case 1:return t<B.length?(r=B[t],[5,e(r)]):[3,4];case 2:A.sent(),A.label=3;case 3:return t++,[3,1];case 4:return[2]}})})},Ps.prototype.renderSolidBorder=function(e,t,B){return a(this,void 0,void 0,function(){return H(this,function(A){return this.path(Is(B,t)),this.ctx.fillStyle=te(e),this.ctx.fill(),[2]})})},Ps.prototype.renderDoubleBorder=function(t,B,r,n){return a(this,void 0,void 0,function(){var e;return H(this,function(A){switch(A.label){case 0:return B<3?[4,this.renderSolidBorder(t,r,n)]:[3,2];case 1:return A.sent(),[2];case 2:return e=function(A,e){switch(e){case 0:return Os(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return Os(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return Os(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);default:return Os(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}}(n,r),this.path(e),this.ctx.fillStyle=te(t),this.ctx.fill(),e=function(A,e){switch(e){case 0:return Os(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return Os(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return Os(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);default:return Os(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}}(n,r),this.path(e),this.ctx.fill(),[2]}})})},Ps.prototype.renderNodeBackgroundAndBorders=function(c){return a(this,void 0,void 0,function(){var e,t,B,r,n,s,o,i,Q=this;return H(this,function(A){switch(A.label){case 0:return(this.applyEffects(c.getEffects(2)),e=c.container.styles,t=!ee(e.backgroundColor)||e.backgroundImage.length,B=[{style:e.borderTopStyle,color:e.borderTopColor,width:e.borderTopWidth},{style:e.borderRightStyle,color:e.borderRightColor,width:e.borderRightWidth},{style:e.borderBottomStyle,color:e.borderBottomColor,width:e.borderBottomWidth},{style:e.borderLeftStyle,color:e.borderLeftColor,width:e.borderLeftWidth}],r=Xs(Ts(e.backgroundClip,0),c.curves),t||e.boxShadow.length)?(this.ctx.save(),this.path(r),this.ctx.clip(),ee(e.backgroundColor)||(this.ctx.fillStyle=te(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(c.container)]):[3,2];case 1:A.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach(function(A){Q.ctx.save();var t,B,r,n,e=Cs(c.curves),s=A.inset?0:1e4,o=(t=-s+(A.inset?1:-1)*A.spread.number,B=(A.inset?1:-1)*A.spread.number,r=A.spread.number*(A.inset?-2:2),n=A.spread.number*(A.inset?-2:2),e.map(function(A,e){switch(e){case 0:return A.add(t,B);case 1:return A.add(t+r,B);case 2:return A.add(t+r,B+n);case 3:return A.add(t,B+n)}return A}));A.inset?(Q.path(e),Q.ctx.clip(),Q.mask(o)):(Q.mask(e),Q.ctx.clip(),Q.path(o)),Q.ctx.shadowOffsetX=A.offsetX.number+s,Q.ctx.shadowOffsetY=A.offsetY.number,Q.ctx.shadowColor=te(A.color),Q.ctx.shadowBlur=A.blur.number,Q.ctx.fillStyle=A.inset?te(A.color):"rgba(0,0,0,1)",Q.ctx.fill(),Q.ctx.restore()}),A.label=2;case 2:s=n=0,o=B,A.label=3;case 3:return s<o.length?(i=o[s]).style!==_e.NONE&&!ee(i.color)&&0<i.width?i.style!==_e.DASHED?[3,5]:[4,this.renderDashedDottedBorder(i.color,i.width,n,c.curves,_e.DASHED)]:[3,11]:[3,13];case 4:return A.sent(),[3,11];case 5:return i.style!==_e.DOTTED?[3,7]:[4,this.renderDashedDottedBorder(i.color,i.width,n,c.curves,_e.DOTTED)];case 6:return A.sent(),[3,11];case 7:return i.style!==_e.DOUBLE?[3,9]:[4,this.renderDoubleBorder(i.color,i.width,n,c.curves)];case 8:return A.sent(),[3,11];case 9:return[4,this.renderSolidBorder(i.color,n,c.curves)];case 10:A.sent(),A.label=11;case 11:n++,A.label=12;case 12:return s++,[3,3];case 13:return[2]}})})},Ps.prototype.renderDashedDottedBorder=function(g,w,C,U,l){return a(this,void 0,void 0,function(){var e,t,B,r,n,s,o,i,Q,c,a;return H(this,function(A){return this.ctx.save(),Q=function(A,e){switch(e){case 0:return Rs(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return Rs(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return Rs(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return Rs(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}}(U,C),e=Is(U,C),l===_e.DASHED&&(this.path(e),this.ctx.clip()),s=as(e[0])?(t=e[0].start.x,e[0].start.y):(t=e[0].x,e[0].y),o=as(e[1])?(B=e[1].end.x,e[1].end.y):(B=e[1].x,e[1].y),r=0===C||2===C?Math.abs(t-B):Math.abs(s-o),this.ctx.beginPath(),l===_e.DOTTED?this.formatPath(Q):this.formatPath(e.slice(0,2)),n=w<3?3*w:2*w,s=w<3?2*w:w,l===_e.DOTTED&&(s=n=w),o=!0,r<=2*n?o=!1:r<=2*n+s?(n*=i=r/(2*n+s),s*=i):(Q=Math.floor((r+s)/(n+s)),i=(r-Q*n)/(Q-1),s=(Q=(r-(Q+1)*n)/Q)<=0||Math.abs(s-i)<Math.abs(s-Q)?i:Q),o&&(l===_e.DOTTED?this.ctx.setLineDash([0,n+s]):this.ctx.setLineDash([n,s])),l===_e.DOTTED?(this.ctx.lineCap="round",this.ctx.lineWidth=w):this.ctx.lineWidth=2*w+1.1,this.ctx.strokeStyle=te(g),this.ctx.stroke(),this.ctx.setLineDash([]),l===_e.DASHED&&(as(e[0])&&(c=e[3],a=e[0],this.ctx.beginPath(),this.formatPath([new ss(c.end.x,c.end.y),new ss(a.start.x,a.start.y)]),this.ctx.stroke()),as(e[1])&&(c=e[1],a=e[2],this.ctx.beginPath(),this.formatPath([new ss(c.end.x,c.end.y),new ss(a.start.x,a.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},Ps.prototype.render=function(r){return a(this,void 0,void 0,function(){return H(this,function(A){switch(A.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=te(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=new Hs(e=r,null),B=new Es(t),Ds(t,B,B,e=[]),bs(t.container,e),[4,this.renderStack(B)];case 1:return A.sent(),this.applyEffects([]),[2,this.canvas]}var e,t,B})})},Ps);function Ps(A,e){A=xs.call(this,A,e)||this;return A._activeEffects=[],A.canvas=e.canvas||document.createElement("canvas"),A.ctx=A.canvas.getContext("2d"),e.canvas||(A.canvas.width=Math.floor(e.width*e.scale),A.canvas.height=Math.floor(e.height*e.scale),A.canvas.style.width=e.width+"px",A.canvas.style.height=e.height+"px"),A.fontMetrics=new Ns(document),A.ctx.scale(A.options.scale,A.options.scale),A.ctx.translate(-e.x,-e.y),A.ctx.textBaseline="bottom",A._activeEffects=[],A.context.logger.debug("Canvas renderer initialized ("+e.width+"x"+e.height+") with scale "+e.scale),A}var ks,Js=function(A){return A instanceof Vr||(A instanceof Nr||A instanceof Tr&&A.type!==Rr&&A.type!==br)},Xs=function(A,e){switch(A){case le.BORDER_BOX:return Cs(e);case le.CONTENT_BOX:return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox];default:le.PADDING_BOX;return Us(e)}},_s=function(A){switch(A){case Rt.CENTER:return"center";case Rt.RIGHT:return"right";default:Rt.LEFT;return"left"}},Ys=(A(Ws,ks=we),Ws.prototype.render=function(t){return a(this,void 0,void 0,function(){var e;return H(this,function(A){switch(A.label){case 0:return e=Ar(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,Zs(e)];case 1:return e=A.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=te(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(e,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},Ws);function Ws(A,e){A=ks.call(this,A,e)||this;return A.canvas=e.canvas||document.createElement("canvas"),A.ctx=A.canvas.getContext("2d"),A.options=e,A.canvas.width=Math.floor(e.width*e.scale),A.canvas.height=Math.floor(e.height*e.scale),A.canvas.style.width=e.width+"px",A.canvas.style.height=e.height+"px",A.ctx.scale(A.options.scale,A.options.scale),A.ctx.translate(-e.x,-e.y),A.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+e.width+"x"+e.height+" at "+e.x+","+e.y+") with scale "+e.scale),A}var Zs=function(B){return new Promise(function(A,e){var t=new Image;t.onload=function(){A(t)},t.onerror=e,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(B))})},qs=(js.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,t([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},js.prototype.getTime=function(){return Date.now()-this.start},js.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,t([this.id,this.getTime()+"ms"],A))},js.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,t([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},js.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,t([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},js.instances={},js);function js(A){var e=A.id,A=A.enabled;this.id=e,this.enabled=A,this.start=Date.now()}var zs=($s.instanceCount=1,$s);function $s(A,e){this.windowBounds=e,this.instanceName="#"+$s.instanceCount++,this.logger=new qs({id:this.instanceName,enabled:A.logging}),this.cache=null!==(e=A.cache)&&void 0!==e?e:new Wn(this,A)}"undefined"!=typeof window&&_n.setContext(window);var Ao=function(F,u){return a(void 0,void 0,void 0,function(){var e,t,B,r,n,s,o,i,Q,c,a,g,w,C,U,l;return H(this,function(A){switch(A.label){case 0:if(!F||"object"!=typeof F)return[2,Promise.reject("Invalid element provided as first argument")];if(!(e=F.ownerDocument))throw new Error("Element is not attached to a Document");if(!(t=e.defaultView))throw new Error("Document is not attached to a Window");return w={allowTaint:null!==(C=u.allowTaint)&&void 0!==C&&C,imageTimeout:null!==(c=u.imageTimeout)&&void 0!==c?c:15e3,proxy:u.proxy,useCORS:null!==(a=u.useCORS)&&void 0!==a&&a},C=h({logging:null===(g=u.logging)||void 0===g||g,cache:u.cache},w),c={windowWidth:null!==(c=u.windowWidth)&&void 0!==c?c:t.innerWidth,windowHeight:null!==(a=u.windowHeight)&&void 0!==a?a:t.innerHeight,scrollX:null!==(g=u.scrollX)&&void 0!==g?g:t.pageXOffset,scrollY:null!==(w=u.scrollY)&&void 0!==w?w:t.pageYOffset},a=new d(c.scrollX,c.scrollY,c.windowWidth,c.windowHeight),g=new zs(C,a),c=null!==(w=u.foreignObjectRendering)&&void 0!==w&&w,w={allowTaint:null!==(C=u.allowTaint)&&void 0!==C&&C,onclone:u.onclone,ignoreElements:u.ignoreElements,inlineImages:c,copyStyles:c},g.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),C=new Dn(g,F,w),(w=C.clonedReferenceElement)?[4,C.toIFrame(e,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return(B=A.sent(),U=on(w)||"HTML"===w.tagName?function(A){var e=A.body,t=A.documentElement;if(!e||!t)throw new Error("Unable to get document size");A=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),t=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new d(0,0,A,t)}(w.ownerDocument):E(g,w),r=U.width,n=U.height,s=U.left,o=U.top,i=eo(g,w,u.backgroundColor),U={canvas:u.canvas,backgroundColor:i,scale:null!==(U=null!==(U=u.scale)&&void 0!==U?U:t.devicePixelRatio)&&void 0!==U?U:1,x:(null!==(U=u.x)&&void 0!==U?U:0)+s,y:(null!==(U=u.y)&&void 0!==U?U:0)+o,width:null!==(U=u.width)&&void 0!==U?U:Math.ceil(r),height:null!==(U=u.height)&&void 0!==U?U:Math.ceil(n)},c)?(g.logger.debug("Document cloned, using foreign object rendering"),[4,new Ys(g,U).render(w)]):[3,3];case 2:return Q=A.sent(),[3,5];case 3:return g.logger.debug("Document cloned, element located at "+s+","+o+" with size "+r+"x"+n+" using computed rendering"),g.logger.debug("Starting DOM parsing"),l=qr(g,w),i===l.styles.backgroundColor&&(l.styles.backgroundColor=he.TRANSPARENT),g.logger.debug("Starting renderer for element at "+U.x+","+U.y+" with size "+U.width+"x"+U.height),[4,new Vs(g,U).render(l)];case 4:Q=A.sent(),A.label=5;case 5:return null!==(l=u.removeContainer)&&void 0!==l&&!l||Dn.destroy(B)||g.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore"),g.logger.debug("Finished rendering"),[2,Q]}})})},eo=function(A,e,t){var B=e.ownerDocument,r=B.documentElement?Ue(A,getComputedStyle(B.documentElement).backgroundColor):he.TRANSPARENT,n=B.body?Ue(A,getComputedStyle(B.body).backgroundColor):he.TRANSPARENT,t="string"==typeof t?Ue(A,t):null===t?he.TRANSPARENT:4294967295;return e===B.documentElement?ee(r)?ee(n)?t:n:r:t};return function(A,e){return Ao(A,e=void 0===e?{}:e)}});
/** @license jsPDF v2.5.1 | Copyright (c) 2010-2021 James Hall <james@parall.ax>, [https://github.com/parallax/jsPDF] | MIT License [https://github.com/parallax/jsPDF/blob/master/LICENSE] */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e((t=t||self).jspdf={}):"function"==typeof define&&define.amd?e((t=t||self).jspdf={}):e((t=t||self).jspdf={})}(window,(function(t){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=function(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this}();function n(){r.console&&"function"==typeof r.console.log&&r.console.log.apply(r.console,arguments)}var i={log:n,warn:function(t){r.console&&("function"==typeof r.console.warn?r.console.warn.apply(r.console,arguments):n.call(null,arguments))},error:function(t){r.console&&("function"==typeof r.console.error?r.console.error.apply(r.console,arguments):n(t))}};function a(t,e,r){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){l(n.response,e,r)},n.onerror=function(){i.error("could not download file")},n.send()}function o(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function s(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(r){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var c,u,l=r.saveAs||("object"!==("undefined"==typeof window?"undefined":e(window))||window!==r?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,n){var i=r.URL||r.webkitURL,c=document.createElement("a");e=e||t.name||"download",c.download=e,c.rel="noopener","string"==typeof t?(c.href=t,c.origin!==location.origin?o(c.href)?a(t,e,n):s(c,c.target="_blank"):s(c)):(c.href=i.createObjectURL(t),setTimeout((function(){i.revokeObjectURL(c.href)}),4e4),setTimeout((function(){s(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,r,n){if(r=r||t.name||"download","string"==typeof t)if(o(t))a(t,r,n);else{var c=document.createElement("a");c.href=t,c.target="_blank",setTimeout((function(){s(c)}))}else navigator.msSaveOrOpenBlob(function(t,r){return void 0===r?r={autoBom:!1}:"object"!==e(r)&&(i.warn("Deprecated: Expected third argument to be a object"),r={autoBom:!r}),r.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),r)}:function(t,n,i,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof t)return a(t,n,i);var s="application/octet-stream"===t.type,c=/constructor/i.test(r.HTMLElement)||r.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&c)&&"object"===("undefined"==typeof FileReader?"undefined":e(FileReader))){var l=new FileReader;l.onloadend=function(){var t=l.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=t:location=t,o=null},l.readAsDataURL(t)}else{var h=r.URL||r.webkitURL,f=h.createObjectURL(t);o?o.location=f:location.href=f,o=null,setTimeout((function(){h.revokeObjectURL(f)}),4e4)}});
/**
   * A class to parse color values
   * @author Stoyan Stefanov <sstoo@gmail.com>
   * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
   * @license Use it if you like it
   */function h(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6));t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],n=0;n<r.length;n++){var i=r[n].re,a=r[n].process,o=i.exec(t);o&&(e=a(o),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r}}
/**
   * @license
   * Joseph Myers does not specify a particular license for his work.
   *
   * Author: Joseph Myers
   * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
   *
   * Modified by: Owen Leong
   */
function f(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];r=p(r,n,i,a,e[0],7,-680876936),a=p(a,r,n,i,e[1],12,-389564586),i=p(i,a,r,n,e[2],17,606105819),n=p(n,i,a,r,e[3],22,-1044525330),r=p(r,n,i,a,e[4],7,-176418897),a=p(a,r,n,i,e[5],12,1200080426),i=p(i,a,r,n,e[6],17,-1473231341),n=p(n,i,a,r,e[7],22,-45705983),r=p(r,n,i,a,e[8],7,1770035416),a=p(a,r,n,i,e[9],12,-1958414417),i=p(i,a,r,n,e[10],17,-42063),n=p(n,i,a,r,e[11],22,-1990404162),r=p(r,n,i,a,e[12],7,1804603682),a=p(a,r,n,i,e[13],12,-40341101),i=p(i,a,r,n,e[14],17,-1502002290),r=g(r,n=p(n,i,a,r,e[15],22,1236535329),i,a,e[1],5,-165796510),a=g(a,r,n,i,e[6],9,-1069501632),i=g(i,a,r,n,e[11],14,643717713),n=g(n,i,a,r,e[0],20,-373897302),r=g(r,n,i,a,e[5],5,-701558691),a=g(a,r,n,i,e[10],9,38016083),i=g(i,a,r,n,e[15],14,-660478335),n=g(n,i,a,r,e[4],20,-405537848),r=g(r,n,i,a,e[9],5,568446438),a=g(a,r,n,i,e[14],9,-1019803690),i=g(i,a,r,n,e[3],14,-187363961),n=g(n,i,a,r,e[8],20,1163531501),r=g(r,n,i,a,e[13],5,-1444681467),a=g(a,r,n,i,e[2],9,-51403784),i=g(i,a,r,n,e[7],14,1735328473),r=m(r,n=g(n,i,a,r,e[12],20,-1926607734),i,a,e[5],4,-378558),a=m(a,r,n,i,e[8],11,-2022574463),i=m(i,a,r,n,e[11],16,1839030562),n=m(n,i,a,r,e[14],23,-35309556),r=m(r,n,i,a,e[1],4,-1530992060),a=m(a,r,n,i,e[4],11,1272893353),i=m(i,a,r,n,e[7],16,-155497632),n=m(n,i,a,r,e[10],23,-1094730640),r=m(r,n,i,a,e[13],4,681279174),a=m(a,r,n,i,e[0],11,-358537222),i=m(i,a,r,n,e[3],16,-722521979),n=m(n,i,a,r,e[6],23,76029189),r=m(r,n,i,a,e[9],4,-640364487),a=m(a,r,n,i,e[12],11,-421815835),i=m(i,a,r,n,e[15],16,530742520),r=v(r,n=m(n,i,a,r,e[2],23,-995338651),i,a,e[0],6,-198630844),a=v(a,r,n,i,e[7],10,1126891415),i=v(i,a,r,n,e[14],15,-1416354905),n=v(n,i,a,r,e[5],21,-57434055),r=v(r,n,i,a,e[12],6,1700485571),a=v(a,r,n,i,e[3],10,-1894986606),i=v(i,a,r,n,e[10],15,-1051523),n=v(n,i,a,r,e[1],21,-2054922799),r=v(r,n,i,a,e[8],6,1873313359),a=v(a,r,n,i,e[15],10,-30611744),i=v(i,a,r,n,e[6],15,-1560198380),n=v(n,i,a,r,e[13],21,1309151649),r=v(r,n,i,a,e[4],6,-145523070),a=v(a,r,n,i,e[11],10,-1120210379),i=v(i,a,r,n,e[2],15,718787259),n=v(n,i,a,r,e[9],21,-343485551),t[0]=S(r,t[0]),t[1]=S(n,t[1]),t[2]=S(i,t[2]),t[3]=S(a,t[3])}function d(t,e,r,n,i,a){return e=S(S(e,t),S(n,a)),S(e<<i|e>>>32-i,r)}function p(t,e,r,n,i,a,o){return d(e&r|~e&n,t,e,i,a,o)}function g(t,e,r,n,i,a,o){return d(e&n|r&~n,t,e,i,a,o)}function m(t,e,r,n,i,a,o){return d(e^r^n,t,e,i,a,o)}function v(t,e,r,n,i,a,o){return d(r^(e|~n),t,e,i,a,o)}function b(t){var e,r=t.length,n=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)f(n,y(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)i[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(f(n,i),e=0;e<16;e++)i[e]=0;return i[14]=8*r,f(n,i),n}function y(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return r}c=r.atob.bind(r),u=r.btoa.bind(r);var w="0123456789abcdef".split("");function N(t){for(var e="",r=0;r<4;r++)e+=w[t>>8*r+4&15]+w[t>>8*r&15];return e}function L(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function A(t){return function(t){return t.map(L).join("")}(b(t))}var x="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e<t.length;e++)t[e]=N(t[e]);return t.join("")}(b("hello"));function S(t,e){if(x){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}return t+e&4294967295}
/**
   * @license
   * FPDF is released under a permissive license: there is no usage restriction.
   * You may embed it freely in your application (commercial or not), with or
   * without modifications.
   *
   * Reference: http://www.fpdf.org/en/script/script37.php
   */function _(t,e){var r,n,i,a;if(t!==r){for(var o=(i=t,a=1+(256/t.length>>0),new Array(a+1).join(i)),s=[],c=0;c<256;c++)s[c]=c;var u=0;for(c=0;c<256;c++){var l=s[c];u=(u+l+o.charCodeAt(c))%256,s[c]=s[u],s[u]=l}r=t,n=s}else s=n;var h=e.length,f=0,d=0,p="";for(c=0;c<h;c++)d=(d+(l=s[f=(f+1)%256]))%256,s[f]=s[d],s[d]=l,o=s[(s[f]+s[d])%256],p+=String.fromCharCode(e.charCodeAt(c)^o);return p}
/**
   * @license
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   * Author: Owen Leong (@owenl131)
   * Date: 15 Oct 2020
   * References:
   * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
   * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
   * http://www.fpdf.org/en/script/script37.php
   */var P={print:4,modify:8,copy:16,"annot-forms":32};function k(t,e,r,n){this.v=1,this.r=2;var i=192;t.forEach((function(t){if(void 0!==P.perm)throw new Error("Invalid permission: "+t);i+=P[t]})),this.padding="(Â¿N^NuÂŠAd\0NVÃ¿Ãº\b..\0Â¶Ã?h>Â€/\fÂ©Ã¾dSiz";var a=(e+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=A(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=_(this.encryptionKey,this.padding)}function F(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",r=t.length,n=0;n<r;n++){var i=t.charCodeAt(n);if(i<33||35===i||37===i||40===i||41===i||47===i||60===i||62===i||91===i||93===i||123===i||125===i||i>126)e+="#"+("0"+i.toString(16)).slice(-2);else e+=t[n]}return e}function I(t){if("object"!==e(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var n={};this.subscribe=function(t,e,r){if(r=r||!1,"string"!=typeof t||"function"!=typeof e||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");n.hasOwnProperty(t)||(n[t]={});var i=Math.random().toString(35);return n[t][i]=[e,!!r],i},this.unsubscribe=function(t){for(var e in n)if(n[e][t])return delete n[e][t],0===Object.keys(n[e]).length&&delete n[e],!0;return!1},this.publish=function(e){if(n.hasOwnProperty(e)){var a=Array.prototype.slice.call(arguments,1),o=[];for(var s in n[e]){var c=n[e][s];try{c[0].apply(t,a)}catch(t){r.console&&i.error("jsPDF PubSub Error",t.message,t)}c[1]&&o.push(s)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return n}}function C(t){if(!(this instanceof C))return new C(t);var e="opacity,stroke-opacity".split(",");for(var r in t)t.hasOwnProperty(r)&&e.indexOf(r)>=0&&(this[r]=t[r]);this.id="",this.objectNumber=-1}function j(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function O(t,e,r,n,i){if(!(this instanceof O))return new O(t,e,r,n,i);this.type="axial"===t?2:3,this.coords=e,this.colors=r,j.call(this,n,i)}function B(t,e,r,n,i){if(!(this instanceof B))return new B(t,e,r,n,i);this.boundingBox=t,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,j.call(this,n,i)}function M(t){var n,a="string"==typeof arguments[0]?arguments[0]:"p",o=arguments[1],s=arguments[2],c=arguments[3],f=[],d=1,p=16,g="S",m=null;"object"===e(t=t||{})&&(a=t.orientation,o=t.unit||o,s=t.format||s,c=t.compress||t.compressPdf||c,null!==(m=t.encryption||null)&&(m.userPassword=m.userPassword||"",m.ownerPassword=m.ownerPassword||"",m.userPermissions=m.userPermissions||[]),d="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(n=t.precision),void 0!==t.floatPrecision&&(p=t.floatPrecision),g=t.defaultPathOperation||"S"),f=t.filters||(!0===c?["FlateEncode"]:f),o=o||"mm",a=(""+(a||"P")).toLowerCase();var v=t.putOnlyUsedFonts||!1,b={},y={internal:{},__private__:{}};y.__private__.PubSub=I;var w="1.3",N=y.__private__.getPdfVersion=function(){return w};y.__private__.setPdfVersion=function(t){w=t};var L={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};y.__private__.getPageFormats=function(){return L};var A=y.__private__.getPageFormat=function(t){return L[t]};s=s||"a4";var x={COMPAT:"compat",ADVANCED:"advanced"},S=x.COMPAT;function _(){this.saveGraphicsState(),ht(new Vt(_t,0,0,-_t,0,Rr()*_t).toString()+" cm"),this.setFontSize(this.getFontSize()/_t),g="n",S=x.ADVANCED}function P(){this.restoreGraphicsState(),g="S",S=x.COMPAT}var j=y.__private__.combineFontStyleAndFontWeight=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw new Error("Invalid Combination of fontweight and fontstyle");return e&&(t=400==e||"normal"===e?"italic"===t?"italic":"normal":700!=e&&"bold"!==e||"normal"!==t?(700==e?"bold":e)+""+t:"bold"),t};y.advancedAPI=function(t){var e=S===x.COMPAT;return e&&_.call(this),"function"!=typeof t||(t(this),e&&P.call(this)),this},y.compatAPI=function(t){var e=S===x.ADVANCED;return e&&P.call(this),"function"!=typeof t||(t(this),e&&_.call(this)),this},y.isAdvancedAPI=function(){return S===x.ADVANCED};var E,q=function(t){if(S!==x.ADVANCED)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},D=y.roundToPrecision=y.__private__.roundToPrecision=function(t,e){var r=n||e;if(isNaN(t)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(r).replace(/0+$/,"")};E=y.hpf=y.__private__.hpf="number"==typeof p?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return D(t,p)}:"smart"===p?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return D(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return D(t,16)};var R=y.f2=y.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return D(t,2)},T=y.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return D(t,3)},U=y.scale=y.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return S===x.COMPAT?t*_t:S===x.ADVANCED?t:void 0},z=function(t){return S===x.COMPAT?Rr()-t:S===x.ADVANCED?t:void 0},H=function(t){return U(z(t))};y.__private__.setPrecision=y.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(n=parseInt(t,10))};var W,V="00000000000000000000000000000000",G=y.__private__.getFileId=function(){return V},Y=y.__private__.setFileId=function(t){return V=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():V.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==m&&(Ye=new k(m.userPermissions,m.userPassword,m.ownerPassword,V)),V};y.setFileId=function(t){return Y(t),this},y.getFileId=function(){return G()};var J=y.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),r=e<0?"+":"-",n=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),a=[r,Q(n),"'",Q(i),"'"].join("");return["D:",t.getFullYear(),Q(t.getMonth()+1),Q(t.getDate()),Q(t.getHours()),Q(t.getMinutes()),Q(t.getSeconds()),a].join("")},X=y.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),r=parseInt(t.substr(6,2),10)-1,n=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),a=parseInt(t.substr(12,2),10),o=parseInt(t.substr(14,2),10);return new Date(e,r,n,i,a,o,0)},K=y.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=J(t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return W=e},Z=y.__private__.getCreationDate=function(t){var e=W;return"jsDate"===t&&(e=X(W)),e};y.setCreationDate=function(t){return K(t),this},y.getCreationDate=function(t){return Z(t)};var $,Q=y.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},tt=y.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},et=0,rt=[],nt=[],it=0,at=[],ot=[],st=!1,ct=nt,ut=function(){et=0,it=0,nt=[],rt=[],at=[],Qt=Kt(),te=Kt()};y.__private__.setCustomOutputDestination=function(t){st=!0,ct=t};var lt=function(t){st||(ct=t)};y.__private__.resetCustomOutputDestination=function(){st=!1,ct=nt};var ht=y.__private__.out=function(t){return t=t.toString(),it+=t.length+1,ct.push(t),ct},ft=y.__private__.write=function(t){return ht(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},dt=y.__private__.getArrayBuffer=function(t){for(var e=t.length,r=new ArrayBuffer(e),n=new Uint8Array(r);e--;)n[e]=t.charCodeAt(e);return r},pt=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];y.__private__.getStandardFonts=function(){return pt};var gt=t.fontSize||16;y.__private__.setFontSize=y.setFontSize=function(t){return gt=S===x.ADVANCED?t/_t:t,this};var mt,vt=y.__private__.getFontSize=y.getFontSize=function(){return S===x.COMPAT?gt:gt*_t},bt=t.R2L||!1;y.__private__.setR2L=y.setR2L=function(t){return bt=t,this},y.__private__.getR2L=y.getR2L=function(){return bt};var yt,wt=y.__private__.setZoomMode=function(t){var e=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t))mt=t;else if(isNaN(t)){if(-1===e.indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');mt=t}else mt=parseInt(t,10)};y.__private__.getZoomMode=function(){return mt};var Nt,Lt=y.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');yt=t};y.__private__.getPageMode=function(){return yt};var At=y.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');Nt=t};y.__private__.getLayoutMode=function(){return Nt},y.__private__.setDisplayMode=y.setDisplayMode=function(t,e,r){return wt(t),At(e),Lt(r),this};var xt={title:"",subject:"",author:"",keywords:"",creator:""};y.__private__.getDocumentProperty=function(t){if(-1===Object.keys(xt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return xt[t]},y.__private__.getDocumentProperties=function(){return xt},y.__private__.setDocumentProperties=y.setProperties=y.setDocumentProperties=function(t){for(var e in xt)xt.hasOwnProperty(e)&&t[e]&&(xt[e]=t[e]);return this},y.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(xt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return xt[t]=e};var St,_t,Pt,kt,Ft,It={},Ct={},jt=[],Ot={},Bt={},Mt={},Et={},qt=null,Dt=0,Rt=[],Tt=new I(y),Ut=t.hotfixes||[],zt={},Ht={},Wt=[],Vt=function t(e,r,n,i,a,o){if(!(this instanceof t))return new t(e,r,n,i,a,o);isNaN(e)&&(e=1),isNaN(r)&&(r=0),isNaN(n)&&(n=0),isNaN(i)&&(i=1),isNaN(a)&&(a=0),isNaN(o)&&(o=0),this._matrix=[e,r,n,i,a,o]};Object.defineProperty(Vt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Vt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Vt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Vt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Vt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Vt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Vt.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Vt.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Vt.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Vt.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Vt.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Vt.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Vt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Vt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Vt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Vt.prototype,"isIdentity",{get:function(){return 1===this.sx&&(0===this.shy&&(0===this.shx&&(1===this.sy&&(0===this.tx&&0===this.ty))))}}),Vt.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(E).join(t)},Vt.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,r=t.sx*this.shy+t.shy*this.sy,n=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,a=t.tx*this.sx+t.ty*this.shx+this.tx,o=t.tx*this.shy+t.ty*this.sy+this.ty;return new Vt(e,r,n,i,a,o)},Vt.prototype.decompose=function(){var t=this.sx,e=this.shy,r=this.shx,n=this.sy,i=this.tx,a=this.ty,o=Math.sqrt(t*t+e*e),s=(t/=o)*r+(e/=o)*n;r-=t*s,n-=e*s;var c=Math.sqrt(r*r+n*n);return s/=c,t*(n/=c)<e*(r/=c)&&(t=-t,e=-e,s=-s,o=-o),{scale:new Vt(o,0,0,c,0,0),translate:new Vt(1,0,0,1,i,a),rotate:new Vt(t,e,-e,t,0,0),skew:new Vt(1,0,s,1,0,0)}},Vt.prototype.toString=function(t){return this.join(" ")},Vt.prototype.inversed=function(){var t=this.sx,e=this.shy,r=this.shx,n=this.sy,i=this.tx,a=this.ty,o=1/(t*n-e*r),s=n*o,c=-e*o,u=-r*o,l=t*o;return new Vt(s,c,u,l,-s*i-u*a,-c*i-l*a)},Vt.prototype.applyToPoint=function(t){var e=t.x*this.sx+t.y*this.shx+this.tx,r=t.x*this.shy+t.y*this.sy+this.ty;return new Cr(e,r)},Vt.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),r=this.applyToPoint(new Cr(t.x+t.w,t.y+t.h));return new jr(e.x,e.y,r.x-e.x,r.y-e.y)},Vt.prototype.clone=function(){var t=this.sx,e=this.shy,r=this.shx,n=this.sy,i=this.tx,a=this.ty;return new Vt(t,e,r,n,i,a)},y.Matrix=Vt;var Gt=y.matrixMult=function(t,e){return e.multiply(t)},Yt=new Vt(1,0,0,1,0,0);y.unitMatrix=y.identityMatrix=Yt;var Jt=function(t,e){if(!Bt[t]){var r=(e instanceof O?"Sh":"P")+(Object.keys(Ot).length+1).toString(10);e.id=r,Bt[t]=r,Ot[r]=e,Tt.publish("addPattern",e)}};y.ShadingPattern=O,y.TilingPattern=B,y.addShadingPattern=function(t,e){return q("addShadingPattern()"),Jt(t,e),this},y.beginTilingPattern=function(t){q("beginTilingPattern()"),Br(t.boundingBox[0],t.boundingBox[1],t.boundingBox[2]-t.boundingBox[0],t.boundingBox[3]-t.boundingBox[1],t.matrix)},y.endTilingPattern=function(t,e){q("endTilingPattern()"),e.stream=ot[$].join("\n"),Jt(t,e),Tt.publish("endTilingPattern",e),Wt.pop().restore()};var Xt=y.__private__.newObject=function(){var t=Kt();return Zt(t,!0),t},Kt=y.__private__.newObjectDeferred=function(){return et++,rt[et]=function(){return it},et},Zt=function(t,e){return e="boolean"==typeof e&&e,rt[t]=it,e&&ht(t+" 0 obj"),t},$t=y.__private__.newAdditionalObject=function(){var t={objId:Kt(),content:""};return at.push(t),t},Qt=Kt(),te=Kt(),ee=y.__private__.decodeColorString=function(t){var e=t.split(" ");if(2!==e.length||"g"!==e[1]&&"G"!==e[1]){if(5===e.length&&("k"===e[4]||"K"===e[4])){e=[(1-e[0])*(1-e[3]),(1-e[1])*(1-e[3]),(1-e[2])*(1-e[3]),"r"]}}else{var r=parseFloat(e[0]);e=[r,r,r,"r"]}for(var n="#",i=0;i<3;i++)n+=("0"+Math.floor(255*parseFloat(e[i])).toString(16)).slice(-2);return n},re=y.__private__.encodeColorString=function(t){var r;"string"==typeof t&&(t={ch1:t});var n=t.ch1,i=t.ch2,a=t.ch3,o=t.ch4,s="draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var c=new h(n);if(c.ok)n=c.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var u=parseInt(n.substr(1),16);n=u>>16&255,i=u>>8&255,a=255&u}if(void 0===i||void 0===o&&n===i&&i===a)if("string"==typeof n)r=n+" "+s[0];else switch(t.precision){case 2:r=R(n/255)+" "+s[0];break;case 3:default:r=T(n/255)+" "+s[0]}else if(void 0===o||"object"===e(o)){if(o&&!isNaN(o.a)&&0===o.a)return r=["1.","1.","1.",s[1]].join(" ");if("string"==typeof n)r=[n,i,a,s[1]].join(" ");else switch(t.precision){case 2:r=[R(n/255),R(i/255),R(a/255),s[1]].join(" ");break;default:case 3:r=[T(n/255),T(i/255),T(a/255),s[1]].join(" ")}}else if("string"==typeof n)r=[n,i,a,o,s[2]].join(" ");else switch(t.precision){case 2:r=[R(n),R(i),R(a),R(o),s[2]].join(" ");break;case 3:default:r=[T(n),T(i),T(a),T(o),s[2]].join(" ")}return r},ne=y.__private__.getFilters=function(){return f},ie=y.__private__.putStream=function(t){var e=(t=t||{}).data||"",r=t.filters||ne(),n=t.alreadyAppliedFilters||[],i=t.addLength1||!1,a=e.length,o=t.objectId,s=function(t){return t};if(null!==m&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==m&&(s=Ye.encryptor(o,0));var c={};!0===r&&(r=["FlateEncode"]);var u=t.additionalKeyValues||[],l=(c=void 0!==M.API.processDataByFilters?M.API.processDataByFilters(e,r):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(n)?n.join(" "):n.toString());if(0!==c.data.length&&(u.push({key:"Length",value:c.data.length}),!0===i&&u.push({key:"Length1",value:a})),0!=l.length)if(l.split("/").length-1==1)u.push({key:"Filter",value:l});else{u.push({key:"Filter",value:"["+l+"]"});for(var h=0;h<u.length;h+=1)if("DecodeParms"===u[h].key){for(var f=[],d=0;d<c.reverseChain.split("/").length-1;d+=1)f.push("null");f.push(u[h].value),u[h].value="["+f.join(" ")+"]"}}ht("<<");for(var p=0;p<u.length;p++)ht("/"+u[p].key+" "+u[p].value);ht(">>"),0!==c.data.length&&(ht("stream"),ht(s(c.data)),ht("endstream"))},ae=y.__private__.putPage=function(t){var e=t.number,r=t.data,n=t.objId,i=t.contentsObjId;Zt(n,!0),ht("<</Type /Page"),ht("/Parent "+t.rootDictionaryObjId+" 0 R"),ht("/Resources "+t.resourceDictionaryObjId+" 0 R"),ht("/MediaBox ["+parseFloat(E(t.mediaBox.bottomLeftX))+" "+parseFloat(E(t.mediaBox.bottomLeftY))+" "+E(t.mediaBox.topRightX)+" "+E(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&ht("/CropBox ["+E(t.cropBox.bottomLeftX)+" "+E(t.cropBox.bottomLeftY)+" "+E(t.cropBox.topRightX)+" "+E(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&ht("/BleedBox ["+E(t.bleedBox.bottomLeftX)+" "+E(t.bleedBox.bottomLeftY)+" "+E(t.bleedBox.topRightX)+" "+E(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&ht("/TrimBox ["+E(t.trimBox.bottomLeftX)+" "+E(t.trimBox.bottomLeftY)+" "+E(t.trimBox.topRightX)+" "+E(t.trimBox.topRightY)+"]"),null!==t.artBox&&ht("/ArtBox ["+E(t.artBox.bottomLeftX)+" "+E(t.artBox.bottomLeftY)+" "+E(t.artBox.topRightX)+" "+E(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&ht("/UserUnit "+t.userUnit),Tt.publish("putPage",{objId:n,pageContext:Rt[e],pageNumber:e,page:r}),ht("/Contents "+i+" 0 R"),ht(">>"),ht("endobj");var a=r.join("\n");return S===x.ADVANCED&&(a+="\nQ"),Zt(i,!0),ie({data:a,filters:ne(),objectId:i}),ht("endobj"),n},oe=y.__private__.putPages=function(){var t,e,r=[];for(t=1;t<=Dt;t++)Rt[t].objId=Kt(),Rt[t].contentsObjId=Kt();for(t=1;t<=Dt;t++)r.push(ae({number:t,data:ot[t],objId:Rt[t].objId,contentsObjId:Rt[t].contentsObjId,mediaBox:Rt[t].mediaBox,cropBox:Rt[t].cropBox,bleedBox:Rt[t].bleedBox,trimBox:Rt[t].trimBox,artBox:Rt[t].artBox,userUnit:Rt[t].userUnit,rootDictionaryObjId:Qt,resourceDictionaryObjId:te}));Zt(Qt,!0),ht("<</Type /Pages");var n="/Kids [";for(e=0;e<Dt;e++)n+=r[e]+" 0 R ";ht(n+"]"),ht("/Count "+Dt),ht(">>"),ht("endobj"),Tt.publish("postPutPages")},se=function(t){Tt.publish("putFont",{font:t,out:ht,newObject:Xt,putStream:ie}),!0!==t.isAlreadyPutted&&(t.objectNumber=Xt(),ht("<<"),ht("/Type /Font"),ht("/BaseFont /"+F(t.postScriptName)),ht("/Subtype /Type1"),"string"==typeof t.encoding&&ht("/Encoding /"+t.encoding),ht("/FirstChar 32"),ht("/LastChar 255"),ht(">>"),ht("endobj"))},ce=function(){for(var t in It)It.hasOwnProperty(t)&&(!1===v||!0===v&&b.hasOwnProperty(t))&&se(It[t])},ue=function(t){t.objectNumber=Xt();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[E(t.x),E(t.y),E(t.x+t.width),E(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var r=t.pages[1].join("\n");ie({data:r,additionalKeyValues:e,objectId:t.objectNumber}),ht("endobj")},le=function(){for(var t in zt)zt.hasOwnProperty(t)&&ue(zt[t])},he=function(t,e){var r,n=[],i=1/(e-1);for(r=0;r<1;r+=i)n.push(r);if(n.push(1),0!=t[0].offset){var a={offset:0,color:t[0].color};t.unshift(a)}if(1!=t[t.length-1].offset){var o={offset:1,color:t[t.length-1].color};t.push(o)}for(var s="",c=0,u=0;u<n.length;u++){for(r=n[u];r>t[c+1].offset;)c++;var l=t[c].offset,h=(r-l)/(t[c+1].offset-l),f=t[c].color,d=t[c+1].color;s+=tt(Math.round((1-h)*f[0]+h*d[0]).toString(16))+tt(Math.round((1-h)*f[1]+h*d[1]).toString(16))+tt(Math.round((1-h)*f[2]+h*d[2]).toString(16))}return s.trim()},fe=function(t,e){e||(e=21);var r=Xt(),n=he(t.colors,e),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+e+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ie({data:n,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:r}),ht("endobj"),t.objectNumber=Xt(),ht("<< /ShadingType "+t.type),ht("/ColorSpace /DeviceRGB");var a="/Coords ["+E(parseFloat(t.coords[0]))+" "+E(parseFloat(t.coords[1]))+" ";2===t.type?a+=E(parseFloat(t.coords[2]))+" "+E(parseFloat(t.coords[3])):a+=E(parseFloat(t.coords[2]))+" "+E(parseFloat(t.coords[3]))+" "+E(parseFloat(t.coords[4]))+" "+E(parseFloat(t.coords[5])),ht(a+="]"),t.matrix&&ht("/Matrix ["+t.matrix.toString()+"]"),ht("/Function "+r+" 0 R"),ht("/Extend [true true]"),ht(">>"),ht("endobj")},de=function(t,e){var r=Kt(),n=Xt();e.push({resourcesOid:r,objectOid:n}),t.objectNumber=n;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+t.boundingBox.map(E).join(" ")+"]"}),i.push({key:"XStep",value:E(t.xStep)}),i.push({key:"YStep",value:E(t.yStep)}),i.push({key:"Resources",value:r+" 0 R"}),t.matrix&&i.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),ie({data:t.stream,additionalKeyValues:i,objectId:t.objectNumber}),ht("endobj")},pe=function(t){var e;for(e in Ot)Ot.hasOwnProperty(e)&&(Ot[e]instanceof O?fe(Ot[e]):Ot[e]instanceof B&&de(Ot[e],t))},ge=function(t){for(var e in t.objectNumber=Xt(),ht("<<"),t)switch(e){case"opacity":ht("/ca "+R(t[e]));break;case"stroke-opacity":ht("/CA "+R(t[e]))}ht(">>"),ht("endobj")},me=function(){var t;for(t in Mt)Mt.hasOwnProperty(t)&&ge(Mt[t])},ve=function(){for(var t in ht("/XObject <<"),zt)zt.hasOwnProperty(t)&&zt[t].objectNumber>=0&&ht("/"+t+" "+zt[t].objectNumber+" 0 R");Tt.publish("putXobjectDict"),ht(">>")},be=function(){Ye.oid=Xt(),ht("<<"),ht("/Filter /Standard"),ht("/V "+Ye.v),ht("/R "+Ye.r),ht("/U <"+Ye.toHexString(Ye.U)+">"),ht("/O <"+Ye.toHexString(Ye.O)+">"),ht("/P "+Ye.P),ht(">>"),ht("endobj")},ye=function(){for(var t in ht("/Font <<"),It)It.hasOwnProperty(t)&&(!1===v||!0===v&&b.hasOwnProperty(t))&&ht("/"+t+" "+It[t].objectNumber+" 0 R");ht(">>")},we=function(){if(Object.keys(Ot).length>0){for(var t in ht("/Shading <<"),Ot)Ot.hasOwnProperty(t)&&Ot[t]instanceof O&&Ot[t].objectNumber>=0&&ht("/"+t+" "+Ot[t].objectNumber+" 0 R");Tt.publish("putShadingPatternDict"),ht(">>")}},Ne=function(t){if(Object.keys(Ot).length>0){for(var e in ht("/Pattern <<"),Ot)Ot.hasOwnProperty(e)&&Ot[e]instanceof y.TilingPattern&&Ot[e].objectNumber>=0&&Ot[e].objectNumber<t&&ht("/"+e+" "+Ot[e].objectNumber+" 0 R");Tt.publish("putTilingPatternDict"),ht(">>")}},Le=function(){if(Object.keys(Mt).length>0){var t;for(t in ht("/ExtGState <<"),Mt)Mt.hasOwnProperty(t)&&Mt[t].objectNumber>=0&&ht("/"+t+" "+Mt[t].objectNumber+" 0 R");Tt.publish("putGStateDict"),ht(">>")}},Ae=function(t){Zt(t.resourcesOid,!0),ht("<<"),ht("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ye(),we(),Ne(t.objectOid),Le(),ve(),ht(">>"),ht("endobj")},xe=function(){var t=[];ce(),me(),le(),pe(t),Tt.publish("putResources"),t.forEach(Ae),Ae({resourcesOid:te,objectOid:Number.MAX_SAFE_INTEGER}),Tt.publish("postPutResources")},Se=function(){Tt.publish("putAdditionalObjects");for(var t=0;t<at.length;t++){var e=at[t];Zt(e.objId,!0),ht(e.content),ht("endobj")}Tt.publish("postPutAdditionalObjects")},_e=function(t){Ct[t.fontName]=Ct[t.fontName]||{},Ct[t.fontName][t.fontStyle]=t.id},Pe=function(t,e,r,n,i){var a={id:"F"+(Object.keys(It).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:r,encoding:n,isStandardFont:i||!1,metadata:{}};return Tt.publish("addFont",{font:a,instance:this}),It[a.id]=a,_e(a),a.id},ke=function(t){for(var e=0,r=pt.length;e<r;e++){var n=Pe.call(this,t[e][0],t[e][1],t[e][2],pt[e][3],!0);!1===v&&(b[n]=!0);var i=t[e][0].split("-");_e({id:n,fontName:i[0],fontStyle:i[1]||""})}Tt.publish("addFonts",{fonts:It,dictionary:Ct})},Fe=function(t){return t.foo=function(){try{return t.apply(this,arguments)}catch(t){var e=t.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var n="Error in function "+e.split("\n")[0].split("<")[0]+": "+t.message;if(!r.console)throw new Error(n);r.console.error(n,t),r.alert&&alert(n)}},t.foo.bar=t,t.foo},Ie=function(t,e){var r,n,i,a,o,s,c,u,l;if(i=(e=e||{}).sourceEncoding||"Unicode",o=e.outputEncoding,(e.autoencode||o)&&It[St].metadata&&It[St].metadata[i]&&It[St].metadata[i].encoding&&(a=It[St].metadata[i].encoding,!o&&It[St].encoding&&(o=It[St].encoding),!o&&a.codePages&&(o=a.codePages[0]),"string"==typeof o&&(o=a[o]),o)){for(c=!1,s=[],r=0,n=t.length;r<n;r++)(u=o[t.charCodeAt(r)])?s.push(String.fromCharCode(u)):s.push(t[r]),s[r].charCodeAt(0)>>8&&(c=!0);t=s.join("")}for(r=t.length;void 0===c&&0!==r;)t.charCodeAt(r-1)>>8&&(c=!0),r--;if(!c)return t;for(s=e.noBOM?[]:[254,255],r=0,n=t.length;r<n;r++){if((l=(u=t.charCodeAt(r))>>8)>>8)throw new Error("Character at position "+r+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(l),s.push(u-(l<<8))}return String.fromCharCode.apply(void 0,s)},Ce=y.__private__.pdfEscape=y.pdfEscape=function(t,e){return Ie(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},je=y.__private__.beginPage=function(t){ot[++Dt]=[],Rt[Dt]={objId:0,contentsObjId:0,userUnit:Number(d),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},Me(Dt),lt(ot[$])},Oe=function(t,e){var r,n,o;switch(a=e||a,"string"==typeof t&&(r=A(t.toLowerCase()),Array.isArray(r)&&(n=r[0],o=r[1])),Array.isArray(t)&&(n=t[0]*_t,o=t[1]*_t),isNaN(n)&&(n=s[0],o=s[1]),(n>14400||o>14400)&&(i.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),n=Math.min(14400,n),o=Math.min(14400,o)),s=[n,o],a.substr(0,1)){case"l":o>n&&(s=[o,n]);break;case"p":n>o&&(s=[o,n])}je(s),pr(fr),ht(Lr),0!==kr&&ht(kr+" J"),0!==Fr&&ht(Fr+" j"),Tt.publish("addPage",{pageNumber:Dt})},Be=function(t){t>0&&t<=Dt&&(ot.splice(t,1),Rt.splice(t,1),Dt--,$>Dt&&($=Dt),this.setPage($))},Me=function(t){t>0&&t<=Dt&&($=t)},Ee=y.__private__.getNumberOfPages=y.getNumberOfPages=function(){return ot.length-1},qe=function(t,e,r){var n,a=void 0;return r=r||{},t=void 0!==t?t:It[St].fontName,e=void 0!==e?e:It[St].fontStyle,n=t.toLowerCase(),void 0!==Ct[n]&&void 0!==Ct[n][e]?a=Ct[n][e]:void 0!==Ct[t]&&void 0!==Ct[t][e]?a=Ct[t][e]:!1===r.disableWarning&&i.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),a||r.noFallback||null==(a=Ct.times[e])&&(a=Ct.times.normal),a},De=y.__private__.putInfo=function(){var t=Xt(),e=function(t){return t};for(var r in null!==m&&(e=Ye.encryptor(t,0)),ht("<<"),ht("/Producer ("+Ce(e("jsPDF "+M.version))+")"),xt)xt.hasOwnProperty(r)&&xt[r]&&ht("/"+r.substr(0,1).toUpperCase()+r.substr(1)+" ("+Ce(e(xt[r]))+")");ht("/CreationDate ("+Ce(e(W))+")"),ht(">>"),ht("endobj")},Re=y.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||Qt;switch(Xt(),ht("<<"),ht("/Type /Catalog"),ht("/Pages "+e+" 0 R"),mt||(mt="fullwidth"),mt){case"fullwidth":ht("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ht("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ht("/OpenAction [3 0 R /Fit]");break;case"original":ht("/OpenAction [3 0 R /XYZ null null 1]");break;default:var r=""+mt;"%"===r.substr(r.length-1)&&(mt=parseInt(mt)/100),"number"==typeof mt&&ht("/OpenAction [3 0 R /XYZ null null "+R(mt)+"]")}switch(Nt||(Nt="continuous"),Nt){case"continuous":ht("/PageLayout /OneColumn");break;case"single":ht("/PageLayout /SinglePage");break;case"two":case"twoleft":ht("/PageLayout /TwoColumnLeft");break;case"tworight":ht("/PageLayout /TwoColumnRight")}yt&&ht("/PageMode /"+yt),Tt.publish("putCatalog"),ht(">>"),ht("endobj")},Te=y.__private__.putTrailer=function(){ht("trailer"),ht("<<"),ht("/Size "+(et+1)),ht("/Root "+et+" 0 R"),ht("/Info "+(et-1)+" 0 R"),null!==m&&ht("/Encrypt "+Ye.oid+" 0 R"),ht("/ID [ <"+V+"> <"+V+"> ]"),ht(">>")},Ue=y.__private__.putHeader=function(){ht("%PDF-"+w),ht("%ÂºÃŸÂ¬Ã ")},ze=y.__private__.putXRef=function(){var t="0000000000";ht("xref"),ht("0 "+(et+1)),ht("0000000000 65535 f ");for(var e=1;e<=et;e++){"function"==typeof rt[e]?ht((t+rt[e]()).slice(-10)+" 00000 n "):void 0!==rt[e]?ht((t+rt[e]).slice(-10)+" 00000 n "):ht("0000000000 00000 n ")}},He=y.__private__.buildDocument=function(){ut(),lt(nt),Tt.publish("buildDocument"),Ue(),oe(),Se(),xe(),null!==m&&be(),De(),Re();var t=it;return ze(),Te(),ht("startxref"),ht(""+t),ht("%%EOF"),lt(ot[$]),nt.join("\n")},We=y.__private__.getBlob=function(t){return new Blob([dt(t)],{type:"application/pdf"})},Ve=y.output=y.__private__.output=Fe((function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return He();case"save":y.save(e.filename);break;case"arraybuffer":return dt(He());case"blob":return We(He());case"bloburi":case"bloburl":if(void 0!==r.URL&&"function"==typeof r.URL.createObjectURL)return r.URL&&r.URL.createObjectURL(We(He()))||void 0;i.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",a=He();try{n=u(a)}catch(t){n=u(unescape(encodeURIComponent(a)))}return"data:application/pdf;filename="+e.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(r)){var o="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",s=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';e.pdfObjectUrl&&(o=e.pdfObjectUrl,s="");var c='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+o+'"'+s+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(e)+");<\/script></body></html>",l=r.open();return null!==l&&l.document.write(c),l}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(r)){var h='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(e.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+e.filename+'" width="500px" height="400px" /></body></html>',f=r.open();if(null!==f){f.document.write(h);var d=this;f.document.documentElement.querySelector("#pdfViewer").onload=function(){f.document.title=e.filename,f.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(d.output("bloburl"))}}return f}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(r))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var p='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",e)+'"></iframe></body></html>',g=r.open();if(null!==g&&(g.document.write(p),g.document.title=e.filename),g||"undefined"==typeof safari)return g;break;case"datauri":case"dataurl":return r.document.location.href=this.output("datauristring",e);default:return null}})),Ge=function(t){return!0===Array.isArray(Ut)&&Ut.indexOf(t)>-1};switch(o){case"pt":_t=1;break;case"mm":_t=72/25.4;break;case"cm":_t=72/2.54;break;case"in":_t=72;break;case"px":_t=1==Ge("px_scaling")?.75:96/72;break;case"pc":case"em":_t=12;break;case"ex":_t=6;break;default:if("number"!=typeof o)throw new Error("Invalid unit: "+o);_t=o}var Ye=null;K(),Y();var Je=function(t){return null!==m?Ye.encryptor(t,0):function(t){return t}},Xe=y.__private__.getPageInfo=y.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Rt[t].objId,pageNumber:t,pageContext:Rt[t]}},Ke=y.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var e in Rt)if(Rt[e].objId===t)break;return Xe(e)},Ze=y.__private__.getCurrentPageInfo=y.getCurrentPageInfo=function(){return{objId:Rt[$].objId,pageNumber:$,pageContext:Rt[$]}};y.addPage=function(){return Oe.apply(this,arguments),this},y.setPage=function(){return Me.apply(this,arguments),lt.call(this,ot[$]),this},y.insertPage=function(t){return this.addPage(),this.movePage($,t),this},y.movePage=function(t,e){var r,n;if(t>e){r=ot[t],n=Rt[t];for(var i=t;i>e;i--)ot[i]=ot[i-1],Rt[i]=Rt[i-1];ot[e]=r,Rt[e]=n,this.setPage(e)}else if(t<e){r=ot[t],n=Rt[t];for(var a=t;a<e;a++)ot[a]=ot[a+1],Rt[a]=Rt[a+1];ot[e]=r,Rt[e]=n,this.setPage(e)}return this},y.deletePage=function(){return Be.apply(this,arguments),this},y.__private__.text=y.text=function(t,r,n,i,a){var o,s,c,u,l,h,f,d,p,g=(i=i||{}).scope||this;if("number"==typeof t&&"number"==typeof r&&("string"==typeof n||Array.isArray(n))){var m=n;n=r,r=t,t=m}if(arguments[3]instanceof Vt==!1?(c=arguments[4],u=arguments[5],"object"===e(f=arguments[3])&&null!==f||("string"==typeof c&&(u=c,c=null),"string"==typeof f&&(u=f,f=null),"number"==typeof f&&(c=f,f=null),i={flags:f,angle:c,align:u})):(q("The transform parameter of text() with a Matrix value"),p=a),isNaN(r)||isNaN(n)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return g;var v="",y=!1,w="number"==typeof i.lineHeightFactor?i.lineHeightFactor:hr,N=g.internal.scaleFactor;function L(t){return t=t.split("\t").join(Array(i.TabLen||9).join(" ")),Ce(t,f)}function A(t){for(var e,r=t.concat(),n=[],i=r.length;i--;)"string"==typeof(e=r.shift())?n.push(e):Array.isArray(t)&&(1===e.length||void 0===e[1]&&void 0===e[2])?n.push(e[0]):n.push([e[0],e[1],e[2]]);return n}function _(t,e){var r;if("string"==typeof t)r=e(t)[0];else if(Array.isArray(t)){for(var n,i,a=t.concat(),o=[],s=a.length;s--;)"string"==typeof(n=a.shift())?o.push(e(n)[0]):Array.isArray(n)&&"string"==typeof n[0]&&(i=e(n[0],n[1],n[2]),o.push([i[0],i[1],i[2]]));r=o}return r}var P=!1,k=!0;if("string"==typeof t)P=!0;else if(Array.isArray(t)){var F=t.concat();s=[];for(var I,C=F.length;C--;)("string"!=typeof(I=F.shift())||Array.isArray(I)&&"string"!=typeof I[0])&&(k=!1);P=k}if(!1===P)throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');"string"==typeof t&&(t=t.match(/[\r?\n]/)?t.split(/\r\n|\r|\n/g):[t]);var j=gt/g.internal.scaleFactor,O=j*(w-1);switch(i.baseline){case"bottom":n-=O;break;case"top":n+=j-O;break;case"hanging":n+=j-2*O;break;case"middle":n+=j/2-O}if((h=i.maxWidth||0)>0&&("string"==typeof t?t=g.splitTextToSize(t,h):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(g.splitTextToSize(e,h))}),[]))),o={text:t,x:r,y:n,options:i,mutex:{pdfEscape:Ce,activeFontKey:St,fonts:It,activeFontSize:gt}},Tt.publish("preProcessText",o),t=o.text,c=(i=o.options).angle,p instanceof Vt==!1&&c&&"number"==typeof c){c*=Math.PI/180,0===i.rotationDirection&&(c=-c),S===x.ADVANCED&&(c=-c);var B=Math.cos(c),M=Math.sin(c);p=new Vt(B,M,-M,B,0,0)}else c&&c instanceof Vt&&(p=c);S!==x.ADVANCED||p||(p=Yt),void 0!==(l=i.charSpace||_r)&&(v+=E(U(l))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(d=i.horizontalScale)&&(v+=E(100*d)+" Tz\n");i.lang;var D=-1,R=void 0!==i.renderingMode?i.renderingMode:i.stroke,T=g.internal.getCurrentPageInfo().pageContext;switch(R){case 0:case!1:case"fill":D=0;break;case 1:case!0:case"stroke":D=1;break;case 2:case"fillThenStroke":D=2;break;case 3:case"invisible":D=3;break;case 4:case"fillAndAddForClipping":D=4;break;case 5:case"strokeAndAddPathForClipping":D=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":D=6;break;case 7:case"addToPathForClipping":D=7}var z=void 0!==T.usedRenderingMode?T.usedRenderingMode:-1;-1!==D?v+=D+" Tr\n":-1!==z&&(v+="0 Tr\n"),-1!==D&&(T.usedRenderingMode=D),u=i.align||"left";var H,W=gt*w,V=g.internal.pageSize.getWidth(),G=It[St];l=i.charSpace||_r,h=i.maxWidth||0,f=Object.assign({autoencode:!0,noBOM:!0},i.flags);var Y=[];if("[object Array]"===Object.prototype.toString.call(t)){var J;s=A(t),"left"!==u&&(H=s.map((function(t){return g.getStringUnitWidth(t,{font:G,charSpace:l,fontSize:gt,doKerning:!1})*gt/N})));var X,K=0;if("right"===u){r-=H[0],t=[],C=s.length;for(var Z=0;Z<C;Z++)0===Z?(X=br(r),J=yr(n)):(X=U(K-H[Z]),J=-W),t.push([s[Z],X,J]),K=H[Z]}else if("center"===u){r-=H[0]/2,t=[],C=s.length;for(var $=0;$<C;$++)0===$?(X=br(r),J=yr(n)):(X=U((K-H[$])/2),J=-W),t.push([s[$],X,J]),K=H[$]}else if("left"===u){t=[],C=s.length;for(var Q=0;Q<C;Q++)t.push(s[Q])}else{if("justify"!==u)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');t=[],C=s.length,h=0!==h?h:V;for(var tt=0;tt<C;tt++)J=0===tt?yr(n):-W,X=0===tt?br(r):0,tt<C-1?Y.push(E(U((h-H[tt])/(s[tt].split(" ").length-1)))):Y.push(0),t.push([s[tt],X,J])}}var et="boolean"==typeof i.R2L?i.R2L:bt;!0===et&&(t=_(t,(function(t,e,r){return[t.split("").reverse().join(""),e,r]}))),o={text:t,x:r,y:n,options:i,mutex:{pdfEscape:Ce,activeFontKey:St,fonts:It,activeFontSize:gt}},Tt.publish("postProcessText",o),t=o.text,y=o.mutex.isHex||!1;var rt=It[St].encoding;"WinAnsiEncoding"!==rt&&"StandardEncoding"!==rt||(t=_(t,(function(t,e,r){return[L(t),e,r]}))),s=A(t),t=[];for(var nt,it,at,ot=0,st=1,ct=Array.isArray(s[0])?st:ot,ut="",lt=function(t,e,r){var n="";return r instanceof Vt?(r="number"==typeof i.angle?Gt(r,new Vt(1,0,0,1,t,e)):Gt(new Vt(1,0,0,1,t,e),r),S===x.ADVANCED&&(r=Gt(new Vt(1,0,0,-1,0,0),r)),n=r.join(" ")+" Tm\n"):n=E(t)+" "+E(e)+" Td\n",n},ft=0;ft<s.length;ft++){switch(ut="",ct){case st:at=(y?"<":"(")+s[ft][0]+(y?">":")"),nt=parseFloat(s[ft][1]),it=parseFloat(s[ft][2]);break;case ot:at=(y?"<":"(")+s[ft]+(y?">":")"),nt=br(r),it=yr(n)}void 0!==Y&&void 0!==Y[ft]&&(ut=Y[ft]+" Tw\n"),0===ft?t.push(ut+lt(nt,it,p)+at):ct===ot?t.push(ut+at):ct===st&&t.push(ut+lt(nt,it,p)+at)}t=ct===ot?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var dt="BT\n/";return dt+=St+" "+gt+" Tf\n",dt+=E(gt*w)+" TL\n",dt+=xr+"\n",dt+=v,dt+=t,ht(dt+="ET"),b[St]=!0,g};var $e=y.__private__.clip=y.clip=function(t){return ht("evenodd"===t?"W*":"W"),this};y.clipEvenOdd=function(){return $e("evenodd")},y.__private__.discardPath=y.discardPath=function(){return ht("n"),this};var Qe=y.__private__.isValidStyle=function(t){var e=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(t)&&(e=!0),e};y.__private__.setDefaultPathOperation=y.setDefaultPathOperation=function(t){return Qe(t)&&(g=t),this};var tr=y.__private__.getStyle=y.getStyle=function(t){var e=g;switch(t){case"D":case"S":e="S";break;case"F":e="f";break;case"FD":case"DF":e="B";break;case"f":case"f*":case"B":case"B*":e=t}return e},er=y.close=function(){return ht("h"),this};y.stroke=function(){return ht("S"),this},y.fill=function(t){return rr("f",t),this},y.fillEvenOdd=function(t){return rr("f*",t),this},y.fillStroke=function(t){return rr("B",t),this},y.fillStrokeEvenOdd=function(t){return rr("B*",t),this};var rr=function(t,r){"object"===e(r)?ar(r,t):ht(t)},nr=function(t){null===t||S===x.ADVANCED&&void 0===t||(t=tr(t),ht(t))};function ir(t,e,r,n,i){var a=new B(e||this.boundingBox,r||this.xStep,n||this.yStep,this.gState,i||this.matrix);a.stream=this.stream;var o=t+"$$"+this.cloneIndex+++"$$";return Jt(o,a),a}var ar=function(t,e){var r=Bt[t.key],n=Ot[r];if(n instanceof O)ht("q"),ht(or(e)),n.gState&&y.setGState(n.gState),ht(t.matrix.toString()+" cm"),ht("/"+r+" sh"),ht("Q");else if(n instanceof B){var i=new Vt(1,0,0,-1,0,Rr());t.matrix&&(i=i.multiply(t.matrix||Yt),r=ir.call(n,t.key,t.boundingBox,t.xStep,t.yStep,i).id),ht("q"),ht("/Pattern cs"),ht("/"+r+" scn"),n.gState&&y.setGState(n.gState),ht(e),ht("Q")}},or=function(t){switch(t){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},sr=y.moveTo=function(t,e){return ht(E(U(t))+" "+E(H(e))+" m"),this},cr=y.lineTo=function(t,e){return ht(E(U(t))+" "+E(H(e))+" l"),this},ur=y.curveTo=function(t,e,r,n,i,a){return ht([E(U(t)),E(H(e)),E(U(r)),E(H(n)),E(U(i)),E(H(a)),"c"].join(" ")),this};y.__private__.line=y.line=function(t,e,r,n,i){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||!Qe(i))throw new Error("Invalid arguments passed to jsPDF.line");return S===x.COMPAT?this.lines([[r-t,n-e]],t,e,[1,1],i||"S"):this.lines([[r-t,n-e]],t,e,[1,1]).stroke()},y.__private__.lines=y.lines=function(t,e,r,n,i,a){var o,s,c,u,l,h,f,d,p,g,m,v;if("number"==typeof t&&(v=r,r=e,e=t,t=v),n=n||[1,1],a=a||!1,isNaN(e)||isNaN(r)||!Array.isArray(t)||!Array.isArray(n)||!Qe(i)||"boolean"!=typeof a)throw new Error("Invalid arguments passed to jsPDF.lines");for(sr(e,r),o=n[0],s=n[1],u=t.length,g=e,m=r,c=0;c<u;c++)2===(l=t[c]).length?(g=l[0]*o+g,m=l[1]*s+m,cr(g,m)):(h=l[0]*o+g,f=l[1]*s+m,d=l[2]*o+g,p=l[3]*s+m,g=l[4]*o+g,m=l[5]*s+m,ur(h,f,d,p,g,m));return a&&er(),nr(i),this},y.path=function(t){for(var e=0;e<t.length;e++){var r=t[e],n=r.c;switch(r.op){case"m":sr(n[0],n[1]);break;case"l":cr(n[0],n[1]);break;case"c":ur.apply(this,n);break;case"h":er()}}return this},y.__private__.rect=y.rect=function(t,e,r,n,i){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||!Qe(i))throw new Error("Invalid arguments passed to jsPDF.rect");return S===x.COMPAT&&(n=-n),ht([E(U(t)),E(H(e)),E(U(r)),E(U(n)),"re"].join(" ")),nr(i),this},y.__private__.triangle=y.triangle=function(t,e,r,n,i,a,o){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(a)||!Qe(o))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[r-t,n-e],[i-r,a-n],[t-i,e-a]],t,e,[1,1],o,!0),this},y.__private__.roundedRect=y.roundedRect=function(t,e,r,n,i,a,o){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(a)||!Qe(o))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return i=Math.min(i,.5*r),a=Math.min(a,.5*n),this.lines([[r-2*i,0],[i*s,0,i,a-a*s,i,a],[0,n-2*a],[0,a*s,-i*s,a,-i,a],[2*i-r,0],[-i*s,0,-i,-a*s,-i,-a],[0,2*a-n],[0,-a*s,i*s,-a,i,-a]],t+i,e,[1,1],o,!0),this},y.__private__.ellipse=y.ellipse=function(t,e,r,n,i){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||!Qe(i))throw new Error("Invalid arguments passed to jsPDF.ellipse");var a=4/3*(Math.SQRT2-1)*r,o=4/3*(Math.SQRT2-1)*n;return sr(t+r,e),ur(t+r,e-o,t+a,e-n,t,e-n),ur(t-a,e-n,t-r,e-o,t-r,e),ur(t-r,e+o,t-a,e+n,t,e+n),ur(t+a,e+n,t+r,e+o,t+r,e),nr(i),this},y.__private__.circle=y.circle=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||!Qe(n))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,r,r,n)},y.setFont=function(t,e,r){return r&&(e=j(e,r)),St=qe(t,e,{disableWarning:!1}),this};var lr=y.__private__.getFont=y.getFont=function(){return It[qe.apply(y,arguments)]};y.__private__.getFontList=y.getFontList=function(){var t,e,r={};for(t in Ct)if(Ct.hasOwnProperty(t))for(e in r[t]=[],Ct[t])Ct[t].hasOwnProperty(e)&&r[t].push(e);return r},y.addFont=function(t,e,r,n,i){var a=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==a.indexOf(arguments[3])?i=arguments[3]:arguments[3]&&-1==a.indexOf(arguments[3])&&(r=j(r,n)),i=i||"Identity-H",Pe.call(this,t,e,r,i)};var hr,fr=t.lineWidth||.200025,dr=y.__private__.getLineWidth=y.getLineWidth=function(){return fr},pr=y.__private__.setLineWidth=y.setLineWidth=function(t){return fr=t,ht(E(U(t))+" w"),this};y.__private__.setLineDash=M.API.setLineDash=M.API.setLineDashPattern=function(t,e){if(t=t||[],e=e||0,isNaN(e)||!Array.isArray(t))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return t=t.map((function(t){return E(U(t))})).join(" "),e=E(U(e)),ht("["+t+"] "+e+" d"),this};var gr=y.__private__.getLineHeight=y.getLineHeight=function(){return gt*hr};y.__private__.getLineHeight=y.getLineHeight=function(){return gt*hr};var mr=y.__private__.setLineHeightFactor=y.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(hr=t),this},vr=y.__private__.getLineHeightFactor=y.getLineHeightFactor=function(){return hr};mr(t.lineHeight);var br=y.__private__.getHorizontalCoordinate=function(t){return U(t)},yr=y.__private__.getVerticalCoordinate=function(t){return S===x.ADVANCED?t:Rt[$].mediaBox.topRightY-Rt[$].mediaBox.bottomLeftY-U(t)},wr=y.__private__.getHorizontalCoordinateString=y.getHorizontalCoordinateString=function(t){return E(br(t))},Nr=y.__private__.getVerticalCoordinateString=y.getVerticalCoordinateString=function(t){return E(yr(t))},Lr=t.strokeColor||"0 G";y.__private__.getStrokeColor=y.getDrawColor=function(){return ee(Lr)},y.__private__.setStrokeColor=y.setDrawColor=function(t,e,r,n){return Lr=re({ch1:t,ch2:e,ch3:r,ch4:n,pdfColorType:"draw",precision:2}),ht(Lr),this};var Ar=t.fillColor||"0 g";y.__private__.getFillColor=y.getFillColor=function(){return ee(Ar)},y.__private__.setFillColor=y.setFillColor=function(t,e,r,n){return Ar=re({ch1:t,ch2:e,ch3:r,ch4:n,pdfColorType:"fill",precision:2}),ht(Ar),this};var xr=t.textColor||"0 g",Sr=y.__private__.getTextColor=y.getTextColor=function(){return ee(xr)};y.__private__.setTextColor=y.setTextColor=function(t,e,r,n){return xr=re({ch1:t,ch2:e,ch3:r,ch4:n,pdfColorType:"text",precision:3}),this};var _r=t.charSpace,Pr=y.__private__.getCharSpace=y.getCharSpace=function(){return parseFloat(_r||0)};y.__private__.setCharSpace=y.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return _r=t,this};var kr=0;y.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},y.__private__.setLineCap=y.setLineCap=function(t){var e=y.CapJoinStyles[t];if(void 0===e)throw new Error("Line cap style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return kr=e,ht(e+" J"),this};var Fr=0;y.__private__.setLineJoin=y.setLineJoin=function(t){var e=y.CapJoinStyles[t];if(void 0===e)throw new Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Fr=e,ht(e+" j"),this},y.__private__.setLineMiterLimit=y.__private__.setMiterLimit=y.setLineMiterLimit=y.setMiterLimit=function(t){if(t=t||0,isNaN(t))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return ht(E(U(t))+" M"),this},y.GState=C,y.setGState=function(t){(t="string"==typeof t?Mt[Et[t]]:Ir(null,t)).equals(qt)||(ht("/"+t.id+" gs"),qt=t)};var Ir=function(t,e){if(!t||!Et[t]){var r=!1;for(var n in Mt)if(Mt.hasOwnProperty(n)&&Mt[n].equals(e)){r=!0;break}if(r)e=Mt[n];else{var i="GS"+(Object.keys(Mt).length+1).toString(10);Mt[i]=e,e.id=i}return t&&(Et[t]=e.id),Tt.publish("addGState",e),e}};y.addGState=function(t,e){return Ir(t,e),this},y.saveGraphicsState=function(){return ht("q"),jt.push({key:St,size:gt,color:xr}),this},y.restoreGraphicsState=function(){ht("Q");var t=jt.pop();return St=t.key,gt=t.size,xr=t.color,qt=null,this},y.setCurrentTransformationMatrix=function(t){return ht(t.toString()+" cm"),this},y.comment=function(t){return ht("#"+t),this};var Cr=function(t,e){var r=t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var n=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return n},set:function(t){isNaN(t)||(n=parseFloat(t))}});var i="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return i},set:function(t){i=t.toString()}}),this},jr=function(t,e,r,n){Cr.call(this,t,e),this.type="rect";var i=r||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}});var a=n||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return a},set:function(t){isNaN(t)||(a=parseFloat(t))}}),this},Or=function(){this.page=Dt,this.currentPage=$,this.pages=ot.slice(0),this.pagesContext=Rt.slice(0),this.x=Pt,this.y=kt,this.matrix=Ft,this.width=qr($),this.height=Rr($),this.outputDestination=ct,this.id="",this.objectNumber=-1};Or.prototype.restore=function(){Dt=this.page,$=this.currentPage,Rt=this.pagesContext,ot=this.pages,Pt=this.x,kt=this.y,Ft=this.matrix,Dr($,this.width),Tr($,this.height),ct=this.outputDestination};var Br=function(t,e,r,n,i){Wt.push(new Or),Dt=$=0,ot=[],Pt=t,kt=e,Ft=i,je([r,n])},Mr=function(t){if(Ht[t])Wt.pop().restore();else{var e=new Or,r="Xo"+(Object.keys(zt).length+1).toString(10);e.id=r,Ht[t]=r,zt[r]=e,Tt.publish("addFormObject",e),Wt.pop().restore()}};for(var Er in y.beginFormObject=function(t,e,r,n,i){return Br(t,e,r,n,i),this},y.endFormObject=function(t){return Mr(t),this},y.doFormObject=function(t,e){var r=zt[Ht[t]];return ht("q"),ht(e.toString()+" cm"),ht("/"+r.id+" Do"),ht("Q"),this},y.getFormObject=function(t){var e=zt[Ht[t]];return{x:e.x,y:e.y,width:e.width,height:e.height,matrix:e.matrix}},y.save=function(t,e){return t=t||"generated.pdf",(e=e||{}).returnPromise=e.returnPromise||!1,!1===e.returnPromise?(l(We(He()),t),"function"==typeof l.unload&&r.setTimeout&&setTimeout(l.unload,911),this):new Promise((function(e,n){try{var i=l(We(He()),t);"function"==typeof l.unload&&r.setTimeout&&setTimeout(l.unload,911),e(i)}catch(t){n(t.message)}}))},M.API)M.API.hasOwnProperty(Er)&&("events"===Er&&M.API.events.length?function(t,e){var r,n,i;for(i=e.length-1;-1!==i;i--)r=e[i][0],n=e[i][1],t.subscribe.apply(t,[r].concat("function"==typeof n?[n]:n))}(Tt,M.API.events):y[Er]=M.API[Er]);var qr=y.getPageWidth=function(t){return(Rt[t=t||$].mediaBox.topRightX-Rt[t].mediaBox.bottomLeftX)/_t},Dr=y.setPageWidth=function(t,e){Rt[t].mediaBox.topRightX=e*_t+Rt[t].mediaBox.bottomLeftX},Rr=y.getPageHeight=function(t){return(Rt[t=t||$].mediaBox.topRightY-Rt[t].mediaBox.bottomLeftY)/_t},Tr=y.setPageHeight=function(t,e){Rt[t].mediaBox.topRightY=e*_t+Rt[t].mediaBox.bottomLeftY};return y.internal={pdfEscape:Ce,getStyle:tr,getFont:lr,getFontSize:vt,getCharSpace:Pr,getTextColor:Sr,getLineHeight:gr,getLineHeightFactor:vr,getLineWidth:dr,write:ft,getHorizontalCoordinate:br,getVerticalCoordinate:yr,getCoordinateString:wr,getVerticalCoordinateString:Nr,collections:{},newObject:Xt,newAdditionalObject:$t,newObjectDeferred:Kt,newObjectDeferredBegin:Zt,getFilters:ne,putStream:ie,events:Tt,scaleFactor:_t,pageSize:{getWidth:function(){return qr($)},setWidth:function(t){Dr($,t)},getHeight:function(){return Rr($)},setHeight:function(t){Tr($,t)}},encryptionOptions:m,encryption:Ye,getEncryptor:Je,output:Ve,getNumberOfPages:Ee,pages:ot,out:ht,f2:R,f3:T,getPageInfo:Xe,getPageInfoByObjId:Ke,getCurrentPageInfo:Ze,getPDFVersion:N,Point:Cr,Rectangle:jr,Matrix:Vt,hasHotfix:Ge},Object.defineProperty(y.internal.pageSize,"width",{get:function(){return qr($)},set:function(t){Dr($,t)},enumerable:!0,configurable:!0}),Object.defineProperty(y.internal.pageSize,"height",{get:function(){return Rr($)},set:function(t){Tr($,t)},enumerable:!0,configurable:!0}),ke.call(y,pt),St="F1",Oe(s,a),Tt.publish("initialized"),y}k.prototype.lsbFirstWord=function(t){return String.fromCharCode(t>>0&255,t>>8&255,t>>16&255,t>>24&255)},k.prototype.toHexString=function(t){return t.split("").map((function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)})).join("")},k.prototype.hexToBytes=function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(String.fromCharCode(parseInt(t.substr(r,2),16)));return e.join("")},k.prototype.processOwnerPassword=function(t,e){return _(A(e).substr(0,5),t)},k.prototype.encryptor=function(t,e){var r=A(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(t){return _(r,t)}},C.prototype.equals=function(t){var r,n="id,objectNumber,equals";if(!t||e(t)!==e(this))return!1;var i=0;for(r in this)if(!(n.indexOf(r)>=0)){if(this.hasOwnProperty(r)&&!t.hasOwnProperty(r))return!1;if(this[r]!==t[r])return!1;i++}for(r in t)t.hasOwnProperty(r)&&n.indexOf(r)<0&&i--;return 0===i},M.API={events:[]},M.version="2.5.1";var E=M.API,q=1,D=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},R=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},T=function(t){return t.toFixed(2)},U=function(t){return t.toFixed(5)};E.__acroform__={};var z=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},H=function(t){return t*q},W=function(t){var e=new ct,r=Lt.internal.getHeight(t)||0,n=Lt.internal.getWidth(t)||0;return e.BBox=[0,0,Number(T(n)),Number(T(r))],e},V=E.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|=1<<e},G=E.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&=~(1<<e)},Y=E.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(t&1<<e)?0:1},J=E.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Y(t,e-1)},X=E.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return V(t,e-1)},K=E.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return G(t,e-1)},Z=E.__acroform__.calculateCoordinates=function(t,e){var r=e.internal.getHorizontalCoordinate,n=e.internal.getVerticalCoordinate,i=t[0],a=t[1],o=t[2],s=t[3],c={};return c.lowerLeft_X=r(i)||0,c.lowerLeft_Y=n(a+s)||0,c.upperRight_X=r(i+o)||0,c.upperRight_Y=n(a)||0,[Number(T(c.lowerLeft_X)),Number(T(c.lowerLeft_Y)),Number(T(c.upperRight_X)),Number(T(c.upperRight_Y))]},$=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],r=t._V||t.DV,n=Q(t,r),i=t.scope.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(t.scope.__private__.encodeColorString(t.color)),e.push("/"+i+" "+T(n.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(n.text),e.push("ET"),e.push("Q"),e.push("EMC");var a=W(t);return a.scope=t.scope,a.stream=e.join("\n"),a}},Q=function(t,e){var r=0===t.fontSize?t.maxFontSize:t.fontSize,n={text:"",fontSize:""},i=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" ");i=t.multiline?i.map((function(t){return t.split("\n")})):i.map((function(t){return[t]}));var a=r,o=Lt.internal.getHeight(t)||0;o=o<0?-o:o;var s=Lt.internal.getWidth(t)||0;s=s<0?-s:s;var c=function(e,r,n){if(e+1<i.length){var a=r+" "+i[e+1][0];return tt(a,t,n).width<=s-4}return!1};a++;t:for(;a>0;){e="",a--;var u,l,h=tt("3",t,a).height,f=t.multiline?o-a:(o-h)/2,d=f+=2,p=0,g=0,m=0;if(a<=0){e="(...) Tj\n",e+="% Width of Text: "+tt(e,t,a=12).width+", FieldWidth:"+s+"\n";break}for(var v="",b=0,y=0;y<i.length;y++)if(i.hasOwnProperty(y)){var w=!1;if(1!==i[y].length&&m!==i[y].length-1){if((h+2)*(b+2)+2>o)continue t;v+=i[y][m],w=!0,g=y,y--}else{v=" "==(v+=i[y][m]+" ").substr(v.length-1)?v.substr(0,v.length-1):v;var N=parseInt(y),L=c(N,v,a),A=y>=i.length-1;if(L&&!A){v+=" ",m=0;continue}if(L||A){if(A)g=N;else if(t.multiline&&(h+2)*(b+2)+2>o)continue t}else{if(!t.multiline)continue t;if((h+2)*(b+2)+2>o)continue t;g=N}}for(var x="",S=p;S<=g;S++){var _=i[S];if(t.multiline){if(S===g){x+=_[m]+" ",m=(m+1)%_.length;continue}if(S===p){x+=_[_.length-1]+" ";continue}}x+=_[0]+" "}switch(x=" "==x.substr(x.length-1)?x.substr(0,x.length-1):x,l=tt(x,t,a).width,t.textAlign){case"right":u=s-l-2;break;case"center":u=(s-l)/2;break;case"left":default:u=2}e+=T(u)+" "+T(d)+" Td\n",e+="("+D(x)+") Tj\n",e+=-T(u)+" 0 Td\n",d=-(a+2),l=0,p=w?g:g+1,b++,v=""}else;break}return n.text=e,n.fontSize=a,n},tt=function(t,e,r){var n=e.scope.internal.getFont(e.fontName,e.fontStyle),i=e.scope.getStringUnitWidth(t,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:e.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:i}},et={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},rt=function(t,e){var r={type:"reference",object:t};void 0===e.internal.getPageInfo(t.page).pageContext.annotations.find((function(t){return t.type===r.type&&t.object===r.object}))&&e.internal.getPageInfo(t.page).pageContext.annotations.push(r)},nt=function(t,r){for(var n in t)if(t.hasOwnProperty(n)){var i=n,a=t[n];r.internal.newObjectDeferredBegin(a.objId,!0),"object"===e(a)&&"function"==typeof a.putStream&&a.putStream(),delete t[i]}},it=function(t,r){if(r.scope=t,void 0!==t.internal&&(void 0===t.internal.acroformPlugin||!1===t.internal.acroformPlugin.isInitialized)){if(lt.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(et)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");q=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new ut,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",(function(){!function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0}(t)})),t.internal.events.subscribe("buildDocument",(function(){!function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];n.objId=void 0,n.hasAnnotation&&rt(n,t)}}(t)})),t.internal.events.subscribe("putCatalog",(function(){!function(t){if(void 0===t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(t)})),t.internal.events.subscribe("postPutPages",(function(r){!function(t,r){var n=!t;for(var i in t||(r.internal.newObjectDeferredBegin(r.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),r.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||r.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(i)){var a=t[i],o=[],s=a.Rect;if(a.Rect&&(a.Rect=Z(a.Rect,r)),r.internal.newObjectDeferredBegin(a.objId,!0),a.DA=Lt.createDefaultAppearanceStream(a),"object"===e(a)&&"function"==typeof a.getKeyValueListForStream&&(o=a.getKeyValueListForStream()),a.Rect=s,a.hasAppearanceStream&&!a.appearanceStreamContent){var c=$(a);o.push({key:"AP",value:"<</N "+c+">>"}),r.internal.acroformPlugin.xForms.push(c)}if(a.appearanceStreamContent){var u="";for(var l in a.appearanceStreamContent)if(a.appearanceStreamContent.hasOwnProperty(l)){var h=a.appearanceStreamContent[l];if(u+="/"+l+" ",u+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var i in h)if(h.hasOwnProperty(i)){var f=h[i];"function"==typeof f&&(f=f.call(r,a)),u+="/"+i+" "+f+" ",r.internal.acroformPlugin.xForms.indexOf(f)>=0||r.internal.acroformPlugin.xForms.push(f)}}else"function"==typeof(f=h)&&(f=f.call(r,a)),u+="/"+i+" "+f,r.internal.acroformPlugin.xForms.indexOf(f)>=0||r.internal.acroformPlugin.xForms.push(f);u+=">>"}o.push({key:"AP",value:"<<\n"+u+">>"})}r.internal.putStream({additionalKeyValues:o,objectId:a.objId}),r.internal.out("endobj")}n&&nt(r.internal.acroformPlugin.xForms,r)}(r,t)})),t.internal.acroformPlugin.isInitialized=!0}},at=E.__acroform__.arrayToPdfArray=function(t,r,n){var i=function(t){return t};if(Array.isArray(t)){for(var a="[",o=0;o<t.length;o++)switch(0!==o&&(a+=" "),e(t[o])){case"boolean":case"number":case"object":a+=t[o].toString();break;case"string":"/"!==t[o].substr(0,1)?(void 0!==r&&n&&(i=n.internal.getEncryptor(r)),a+="("+D(i(t[o].toString()))+")"):a+=t[o].toString()}return a+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")};var ot=function(t,e,r){var n=function(t){return t};return void 0!==e&&r&&(n=r.internal.getEncryptor(e)),(t=t||"").toString(),t="("+D(n(t))+")"},st=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};st.prototype.toString=function(){return this.objId+" 0 R"},st.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},st.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter((function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"scope"!=t&&"objId"!=t&&"_"!=t.substring(0,1)}));for(var r in e)if(!1===Object.getOwnPropertyDescriptor(this,e[r]).configurable){var n=e[r],i=this[n];i&&(Array.isArray(i)?t.push({key:n,value:at(i,this.objId,this.scope)}):i instanceof st?(i.scope=this.scope,t.push({key:n,value:i.objId+" 0 R"})):"function"!=typeof i&&t.push({key:n,value:i}))}return t};var ct=function(){st.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};z(ct,st);var ut=function(){st.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+D(e(t))+")"}},set:function(e){t=e}})};z(ut,st);var lt=function t(){st.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute F supplied.');e=t}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(e,3))},set:function(t){!0===Boolean(t)?this.F=X(e,3):this.F=K(e,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute Ff supplied.');r=t}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==n.length)return n},set:function(t){n=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(t){n[0]=t}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(t){n[1]=t}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(t){n[2]=t}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(t){n[3]=t}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=t;break;default:throw new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof bt)return;a="FieldObject"+t.FieldNum++}var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+D(e(a))+")"},set:function(t){a=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(t){a=t}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(t){o=t}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(t){s=t}});var c=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return c},set:function(t){c=t}});var u=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===u?50/q:u},set:function(t){u=t}});var l="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return l},set:function(t){l=t}});var h="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!h||this instanceof bt||this instanceof wt))return ot(h,this.objId,this.scope)},set:function(t){t=t.toString(),h=t}});var f=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof gt==!1?ot(f,this.objId,this.scope):f},set:function(t){t=t.toString(),f=this instanceof gt==!1?"("===t.substr(0,1)?R(t.substr(1,t.length-2)):R(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof gt==!0?R(f.substr(1,f.length-1)):f},set:function(t){t=t.toString(),f=this instanceof gt==!0?"/"+t:t}});var d=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(d)return d},set:function(t){this.V=t}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof gt==!1?ot(d,this.objId,this.scope):d},set:function(t){t=t.toString(),d=this instanceof gt==!1?"("===t.substr(0,1)?R(t.substr(1,t.length-2)):R(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof gt==!0?R(d.substr(1,d.length-1)):d},set:function(t){t=t.toString(),d=this instanceof gt==!0?"/"+t:t}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var p,g=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return g},set:function(t){t=Boolean(t),g=t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(p)return p},set:function(t){p=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,1):this.Ff=K(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,2):this.Ff=K(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,3):this.Ff=K(this.Ff,3)}});var m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==m)return m},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');m=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t;switch(m){case 0:default:t="left";break;case 1:t="center";break;case 2:t="right"}return t},configurable:!0,enumerable:!0,set:function(t){switch(t){case"right":case 2:m=2;break;case"center":case 1:m=1;break;case"left":case 0:default:m=0}}})};z(lt,st);var ht=function(){lt.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return at(e,this.objId,this.scope)},set:function(t){var r,n;n=[],"string"==typeof(r=t)&&(n=function(t,e,r){r||(r=1);for(var n,i=[];n=e.exec(t);)i.push(n[r]);return i}(r,/\((.*?)\)/g)),e=n}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,r){for(r=r||!1,t=(t=t||"").toString();-1!==e.indexOf(t)&&(e.splice(e.indexOf(t),1),!1!==r););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,18):this.Ff=K(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=X(this.Ff,19):this.Ff=K(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=X(this.Ff,20),e.sort()):this.Ff=K(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,22):this.Ff=K(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,23):this.Ff=K(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,27):this.Ff=K(this.Ff,27)}}),this.hasAppearanceStream=!1};z(ht,lt);var ft=function(){ht.call(this),this.fontName="helvetica",this.combo=!1};z(ft,ht);var dt=function(){ft.call(this),this.combo=!0};z(dt,ft);var pt=function(){dt.call(this),this.edit=!0};z(pt,dt);var gt=function(){lt.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,15):this.Ff=K(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,16):this.Ff=K(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,17):this.Ff=K(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,26):this.Ff=K(this.Ff,26)}});var t,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(r).length){var e,n=[];for(e in n.push("<<"),r)n.push("/"+e+" ("+D(t(r[e]))+")");return n.push(">>"),n.join("\n")}},set:function(t){"object"===e(t)&&(r=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(t){"string"==typeof t&&(r.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};z(gt,lt);var mt=function(){gt.call(this),this.pushButton=!0};z(mt,gt);var vt=function(){gt.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=void 0!==e?e:[]}})};z(vt,gt);var bt=function(){var t,r;lt.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t}});var n,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};this.scope&&(t=this.scope.internal.getEncryptor(this.objId));var e,r=[];for(e in r.push("<<"),i)r.push("/"+e+" ("+D(t(i[e]))+")");return r.push(">>"),r.join("\n")},set:function(t){"object"===e(t)&&(i=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(t){"string"==typeof t&&(i.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(t){n="/"+t}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Lt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};z(bt,lt),vt.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var r=this.Kids[e];r.appearanceStreamContent=t.createAppearanceStream(r.optionName),r.caption=t.getCA()}},vt.prototype.createOption=function(t){var e=new bt;return e.Parent=this,e.optionName=t,this.Kids.push(e),At.call(this.scope,e),e};var yt=function(){gt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Lt.CheckBox.createAppearanceStream()};z(yt,gt);var wt=function(){lt.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,13):this.Ff=K(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,21):this.Ff=K(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,23):this.Ff=K(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,24):this.Ff=K(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,25):this.Ff=K(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,26):this.Ff=K(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};z(wt,lt);var Nt=function(){wt.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,14):this.Ff=K(this.Ff,14)}}),this.password=!0};z(Nt,wt);var Lt={CheckBox:{createAppearanceStream:function(){return{N:{On:Lt.CheckBox.YesNormal},D:{On:Lt.CheckBox.YesPushDown,Off:Lt.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=W(t);e.scope=t.scope;var r=[],n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),a=Q(t,t.caption);return r.push("0.749023 g"),r.push("0 0 "+T(Lt.internal.getWidth(t))+" "+T(Lt.internal.getHeight(t))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+T(a.fontSize)+" Tf "+i),r.push("BT"),r.push(a.text),r.push("ET"),r.push("Q"),r.push("EMC"),e.stream=r.join("\n"),e},YesNormal:function(t){var e=W(t);e.scope=t.scope;var r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color),i=[],a=Lt.internal.getHeight(t),o=Lt.internal.getWidth(t),s=Q(t,t.caption);return i.push("1 g"),i.push("0 0 "+T(o)+" "+T(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+T(o-1)+" "+T(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+r+" "+T(s.fontSize)+" Tf "+n),i.push(s.text),i.push("ET"),i.push("Q"),e.stream=i.join("\n"),e},OffPushDown:function(t){var e=W(t);e.scope=t.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+T(Lt.internal.getWidth(t))+" "+T(Lt.internal.getHeight(t))+" re"),r.push("f"),e.stream=r.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:Lt.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=Lt.RadioButton.Circle.YesNormal,e.D[t]=Lt.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=W(t);e.scope=t.scope;var r=[],n=Lt.internal.getWidth(t)<=Lt.internal.getHeight(t)?Lt.internal.getWidth(t)/4:Lt.internal.getHeight(t)/4;n=Number((.9*n).toFixed(5));var i=Lt.internal.Bezier_C,a=Number((n*i).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+U(Lt.internal.getWidth(t)/2)+" "+U(Lt.internal.getHeight(t)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+a+" "+a+" "+n+" 0 "+n+" c"),r.push("-"+a+" "+n+" -"+n+" "+a+" -"+n+" 0 c"),r.push("-"+n+" -"+a+" -"+a+" -"+n+" 0 -"+n+" c"),r.push(a+" -"+n+" "+n+" -"+a+" "+n+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join("\n"),e},YesPushDown:function(t){var e=W(t);e.scope=t.scope;var r=[],n=Lt.internal.getWidth(t)<=Lt.internal.getHeight(t)?Lt.internal.getWidth(t)/4:Lt.internal.getHeight(t)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*Lt.internal.Bezier_C).toFixed(5)),o=Number((n*Lt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+U(Lt.internal.getWidth(t)/2)+" "+U(Lt.internal.getHeight(t)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),r.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),r.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),r.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+U(Lt.internal.getWidth(t)/2)+" "+U(Lt.internal.getHeight(t)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),r.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),r.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),r.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=W(t);e.scope=t.scope;var r=[],n=Lt.internal.getWidth(t)<=Lt.internal.getHeight(t)?Lt.internal.getWidth(t)/4:Lt.internal.getHeight(t)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*Lt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+U(Lt.internal.getWidth(t)/2)+" "+U(Lt.internal.getHeight(t)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),r.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),r.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),r.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:Lt.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=Lt.RadioButton.Cross.YesNormal,e.D[t]=Lt.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=W(t);e.scope=t.scope;var r=[],n=Lt.internal.calculateCross(t);return r.push("q"),r.push("1 1 "+T(Lt.internal.getWidth(t)-2)+" "+T(Lt.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(T(n.x1.x)+" "+T(n.x1.y)+" m"),r.push(T(n.x2.x)+" "+T(n.x2.y)+" l"),r.push(T(n.x4.x)+" "+T(n.x4.y)+" m"),r.push(T(n.x3.x)+" "+T(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},YesPushDown:function(t){var e=W(t);e.scope=t.scope;var r=Lt.internal.calculateCross(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+T(Lt.internal.getWidth(t))+" "+T(Lt.internal.getHeight(t))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+T(Lt.internal.getWidth(t)-2)+" "+T(Lt.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(T(r.x1.x)+" "+T(r.x1.y)+" m"),n.push(T(r.x2.x)+" "+T(r.x2.y)+" l"),n.push(T(r.x4.x)+" "+T(r.x4.y)+" m"),n.push(T(r.x3.x)+" "+T(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=W(t);e.scope=t.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+T(Lt.internal.getWidth(t))+" "+T(Lt.internal.getHeight(t))+" re"),r.push("f"),e.stream=r.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+r}};Lt.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=Lt.internal.getWidth(t),r=Lt.internal.getHeight(t),n=Math.min(e,r);return{x1:{x:(e-n)/2,y:(r-n)/2+n},x2:{x:(e-n)/2+n,y:(r-n)/2},x3:{x:(e-n)/2,y:(r-n)/2},x4:{x:(e-n)/2+n,y:(r-n)/2+n}}}},Lt.internal.getWidth=function(t){var r=0;return"object"===e(t)&&(r=H(t.Rect[2])),r},Lt.internal.getHeight=function(t){var r=0;return"object"===e(t)&&(r=H(t.Rect[3])),r};var At=E.addField=function(t){if(it(this,t),!(t instanceof lt))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};E.AcroFormChoiceField=ht,E.AcroFormListBox=ft,E.AcroFormComboBox=dt,E.AcroFormEditBox=pt,E.AcroFormButton=gt,E.AcroFormPushButton=mt,E.AcroFormRadioButton=vt,E.AcroFormCheckBox=yt,E.AcroFormTextField=wt,E.AcroFormPasswordField=Nt,E.AcroFormAppearance=Lt,E.AcroForm={ChoiceField:ht,ListBox:ft,ComboBox:dt,EditBox:pt,Button:gt,PushButton:mt,RadioButton:vt,CheckBox:yt,TextField:wt,PasswordField:Nt,Appearance:Lt},M.AcroForm={ChoiceField:ht,ListBox:ft,ComboBox:dt,EditBox:pt,Button:gt,PushButton:mt,RadioButton:vt,CheckBox:yt,TextField:wt,PasswordField:Nt,Appearance:Lt};var xt=M.AcroForm;function St(t){return t.reduce((function(t,e,r){return t[e]=r,t}),{})}!function(t){t.__addimage__={};var r="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=t.__addimage__.getImageFileTypeByImageData=function(t,e){var i,a,o,s,c,u=r;if("RGBA"===(e=e||r)||void 0!==t.data&&t.data instanceof Uint8ClampedArray&&"height"in t&&"width"in t)return"RGBA";if(x(t))for(c in n)for(o=n[c],i=0;i<o.length;i+=1){for(s=!0,a=0;a<o[i].length;a+=1)if(void 0!==o[i][a]&&o[i][a]!==t[a]){s=!1;break}if(!0===s){u=c;break}}else for(c in n)for(o=n[c],i=0;i<o.length;i+=1){for(s=!0,a=0;a<o[i].length;a+=1)if(void 0!==o[i][a]&&o[i][a]!==t.charCodeAt(a)){s=!1;break}if(!0===s){u=c;break}}return u===r&&e!==r&&(u=e),u},a=function t(e){for(var r=this.internal.write,n=this.internal.putStream,i=(0,this.internal.getFilters)();-1!==i.indexOf("FlateEncode");)i.splice(i.indexOf("FlateEncode"),1);e.objectId=this.internal.newObject();var a=[];if(a.push({key:"Type",value:"/XObject"}),a.push({key:"Subtype",value:"/Image"}),a.push({key:"Width",value:e.width}),a.push({key:"Height",value:e.height}),e.colorSpace===b.INDEXED?a.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(e.palette.length/3-1)+" "+("sMask"in e&&void 0!==e.sMask?e.objectId+2:e.objectId+1)+" 0 R]"}):(a.push({key:"ColorSpace",value:"/"+e.colorSpace}),e.colorSpace===b.DEVICE_CMYK&&a.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),a.push({key:"BitsPerComponent",value:e.bitsPerComponent}),"decodeParameters"in e&&void 0!==e.decodeParameters&&a.push({key:"DecodeParms",value:"<<"+e.decodeParameters+">>"}),"transparency"in e&&Array.isArray(e.transparency)){for(var o="",s=0,c=e.transparency.length;s<c;s++)o+=e.transparency[s]+" "+e.transparency[s]+" ";a.push({key:"Mask",value:"["+o+"]"})}void 0!==e.sMask&&a.push({key:"SMask",value:e.objectId+1+" 0 R"});var u=void 0!==e.filter?["/"+e.filter]:void 0;if(n({data:e.data,additionalKeyValues:a,alreadyAppliedFilters:u,objectId:e.objectId}),r("endobj"),"sMask"in e&&void 0!==e.sMask){var l="/Predictor "+e.predictor+" /Colors 1 /BitsPerComponent "+e.bitsPerComponent+" /Columns "+e.width,h={width:e.width,height:e.height,colorSpace:"DeviceGray",bitsPerComponent:e.bitsPerComponent,decodeParameters:l,data:e.sMask};"filter"in e&&(h.filter=e.filter),t.call(this,h)}if(e.colorSpace===b.INDEXED){var f=this.internal.newObject();n({data:_(new Uint8Array(e.palette)),objectId:f}),r("endobj")}},o=function(){var t=this.internal.collections.addImage_images;for(var e in t)a.call(this,t[e])},s=function(){var t,e=this.internal.collections.addImage_images,r=this.internal.write;for(var n in e)r("/I"+(t=e[n]).index,t.objectId,"0","R")},u=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",s))},l=function(){var t=this.internal.collections.addImage_images;return u.call(this),t},h=function(){return Object.keys(this.internal.collections.addImage_images).length},f=function(e){return"function"==typeof t["process"+e.toUpperCase()]},d=function(t){return"object"===e(t)&&1===t.nodeType},p=function(e,r){if("IMG"===e.nodeName&&e.hasAttribute("src")){var n=""+e.getAttribute("src");if(0===n.indexOf("data:image/"))return c(unescape(n).split("base64,").pop());var i=t.loadFile(n,!0);if(void 0!==i)return i}if("CANVAS"===e.nodeName){if(0===e.width||0===e.height)throw new Error("Given canvas must have data. Canvas width: "+e.width+", height: "+e.height);var a;switch(r){case"PNG":a="image/png";break;case"WEBP":a="image/webp";break;case"JPEG":case"JPG":default:a="image/jpeg"}return c(e.toDataURL(a,1).split("base64,").pop())}},g=function(t){var e=this.internal.collections.addImage_images;if(e)for(var r in e)if(t===e[r].alias)return e[r]},m=function(t,e,r){return t||e||(t=-96,e=-96),t<0&&(t=-1*r.width*72/t/this.internal.scaleFactor),e<0&&(e=-1*r.height*72/e/this.internal.scaleFactor),0===t&&(t=e*r.width/r.height),0===e&&(e=t*r.height/r.width),[t,e]},v=function(t,e,r,n,i,a){var o=m.call(this,r,n,i),s=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString,u=l.call(this);if(r=o[0],n=o[1],u[i.index]=i,a){a*=Math.PI/180;var h=Math.cos(a),f=Math.sin(a),d=function(t){return t.toFixed(4)},p=[d(h),d(f),d(-1*f),d(h),0,0,"cm"]}this.internal.write("q"),a?(this.internal.write([1,"0","0",1,s(t),c(e+n),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([s(r),"0","0",s(n),"0","0","cm"].join(" "))):this.internal.write([s(r),"0","0",s(n),s(t),c(e+n),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+i.index+" Do"),this.internal.write("Q")},b=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var y=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},w=t.__addimage__.sHashCode=function(t){var e,r,n=0;if("string"==typeof t)for(r=t.length,e=0;e<r;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;else if(x(t))for(r=t.byteLength/2,e=0;e<r;e++)n=(n<<5)-n+t[e],n|=0;return n},N=t.__addimage__.validateStringAsBase64=function(t){(t=t||"").toString().trim();var e=!0;return 0===t.length&&(e=!1),t.length%4!=0&&(e=!1),!1===/^[A-Za-z0-9+/]+$/.test(t.substr(0,t.length-2))&&(e=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(t.substr(-2))&&(e=!1),e},L=t.__addimage__.extractImageFromDataUrl=function(t){var e=(t=t||"").split("base64,"),r=null;if(2===e.length){var n=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(e[0]);Array.isArray(n)&&(r={mimeType:n[1],charset:n[2],data:e[1]})}return r},A=t.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};t.__addimage__.isArrayBuffer=function(t){return A()&&t instanceof ArrayBuffer};var x=t.__addimage__.isArrayBufferView=function(t){return A()&&"undefined"!=typeof Uint32Array&&(t instanceof Int8Array||t instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)},S=t.__addimage__.binaryStringToUint8Array=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++)r[n]=t.charCodeAt(n);return r},_=t.__addimage__.arrayBufferToBinaryString=function(t){for(var e="",r=x(t)?t:new Uint8Array(t),n=0;n<r.length;n+=8192)e+=String.fromCharCode.apply(null,r.subarray(n,n+8192));return e};t.addImage=function(){var t,n,i,a,o,s,c,l,h;if("number"==typeof arguments[1]?(n=r,i=arguments[1],a=arguments[2],o=arguments[3],s=arguments[4],c=arguments[5],l=arguments[6],h=arguments[7]):(n=arguments[1],i=arguments[2],a=arguments[3],o=arguments[4],s=arguments[5],c=arguments[6],l=arguments[7],h=arguments[8]),"object"===e(t=arguments[0])&&!d(t)&&"imageData"in t){var f=t;t=f.imageData,n=f.format||n||r,i=f.x||i||0,a=f.y||a||0,o=f.w||f.width||o,s=f.h||f.height||s,c=f.alias||c,l=f.compression||l,h=f.rotation||f.angle||h}var p=this.internal.getFilters();if(void 0===l&&-1!==p.indexOf("FlateEncode")&&(l="SLOW"),isNaN(i)||isNaN(a))throw new Error("Invalid coordinates passed to jsPDF.addImage");u.call(this);var g=P.call(this,t,n,c,l);return v.call(this,i,a,o,s,g,h),this};var P=function(e,n,a,o){var s,c,u;if("string"==typeof e&&i(e)===r){e=unescape(e);var l=k(e,!1);(""!==l||void 0!==(l=t.loadFile(e,!0)))&&(e=l)}if(d(e)&&(e=p(e,n)),n=i(e,n),!f(n))throw new Error("addImage does not support files of type '"+n+"', please ensure that a plugin for '"+n+"' support is added.");if((null==(u=a)||0===u.length)&&(a=function(t){return"string"==typeof t||x(t)?w(t):x(t.data)?w(t.data):null}(e)),(s=g.call(this,a))||(A()&&(e instanceof Uint8Array||"RGBA"===n||(c=e,e=S(e))),s=this["process"+n.toUpperCase()](e,h.call(this),a,function(e){return e&&"string"==typeof e&&(e=e.toUpperCase()),e in t.image_compression?e:y.NONE}(o),c)),!s)throw new Error("An unknown error occurred whilst processing the image.");return s},k=t.__addimage__.convertBase64ToBinaryString=function(t,e){var r;e="boolean"!=typeof e||e;var n,i="";if("string"==typeof t){n=null!==(r=L(t))?r.data:t;try{i=c(n)}catch(t){if(e)throw N(n)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return i};t.getImageProperties=function(e){var n,a,o="";if(d(e)&&(e=p(e)),"string"==typeof e&&i(e)===r&&(""===(o=k(e,!1))&&(o=t.loadFile(e)||""),e=o),a=i(e),!f(a))throw new Error("addImage does not support files of type '"+a+"', please ensure that a plugin for '"+a+"' support is added.");if(!A()||e instanceof Uint8Array||(e=S(e)),!(n=this["process"+a.toUpperCase()](e)))throw new Error("An unknown error occurred whilst processing the image");return n.fileType=a,n}}(M.API),
/**
   * @license
   * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){var e=function(t){if(void 0!==t&&""!=t)return!0};M.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(t){for(var r,n,i,a=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,s=this.internal.getPageInfoByObjId(t.objId),c=t.pageContext.annotations,u=!1,l=0;l<c.length&&!u;l++)switch((r=c[l]).type){case"link":(e(r.options.url)||e(r.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(0!=u){this.internal.write("/Annots [");for(var h=0;h<c.length;h++){r=c[h];var f=this.internal.pdfEscape,d=this.internal.getEncryptor(t.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var p=this.internal.newAdditionalObject(),g=this.internal.newAdditionalObject(),m=this.internal.getEncryptor(p.objId),v=r.title||"Note";i="<</Type /Annot /Subtype /Text "+(n="/Rect ["+a(r.bounds.x)+" "+o(r.bounds.y+r.bounds.h)+" "+a(r.bounds.x+r.bounds.w)+" "+o(r.bounds.y)+"] ")+"/Contents ("+f(m(r.contents))+")",i+=" /Popup "+g.objId+" 0 R",i+=" /P "+s.objId+" 0 R",i+=" /T ("+f(m(v))+") >>",p.content=i;var b=p.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+a(r.bounds.x+30)+" "+o(r.bounds.y+r.bounds.h)+" "+a(r.bounds.x+r.bounds.w+30)+" "+o(r.bounds.y)+"] ")+" /Parent "+b,r.open&&(i+=" /Open true"),i+=" >>",g.content=i,this.internal.write(p.objId,"0 R",g.objId,"0 R");break;case"freetext":n="/Rect ["+a(r.bounds.x)+" "+o(r.bounds.y)+" "+a(r.bounds.x+r.bounds.w)+" "+o(r.bounds.y+r.bounds.h)+"] ";var y=r.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+f(d(r.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+y+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(r.options.name){var w=this.annotations._nameMap[r.options.name];r.options.pageNumber=w.page,r.options.top=w.y}else r.options.top||(r.options.top=0);if(n="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",i="",r.options.url)i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+f(d(r.options.url))+") >>";else if(r.options.pageNumber){switch(i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,i+=" /FitV "+r.options.left+"]";break;case"XYZ":default:var N=o(r.options.top);r.options.left=r.options.left||0,void 0===r.options.zoom&&(r.options.zoom=0),i+=" /XYZ "+r.options.left+" "+N+" "+r.options.zoom+"]"}}""!=i&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),t.createAnnotation=function(t){var e=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":e.pageContext.annotations.push(t)}},t.link=function(t,e,r,n,i){var a=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;a.pageContext.annotations.push({finalBounds:{x:o(t),y:s(e),w:o(t+r),h:s(e+n)},options:i,type:"link"})},t.textWithLink=function(t,e,r,n){var i,a,o=this.getTextWidth(t),s=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==n.maxWidth){a=n.maxWidth;var c=this.splitTextToSize(t,a).length;i=Math.ceil(s*c)}else a=o,i=s;return this.text(t,e,r,n),r+=.2*s,"center"===n.align&&(e-=o/2),"right"===n.align&&(e-=o),this.link(e,r-s,a,i,n),o},t.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor}}(M.API),
/**
   * @license
   * Copyright (c) 2017 Aras Abbasi
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];t.__arabicParser__={};var a=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==e[t.charCodeAt(0)]},o=t.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},s=t.__arabicParser__.isArabicEndLetter=function(t){return o(t)&&a(t)&&e[t.charCodeAt(0)].length<=2},c=t.__arabicParser__.isArabicAlfLetter=function(t){return o(t)&&i.indexOf(t.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return o(t)&&a(t)&&e[t.charCodeAt(0)].length>=1};var u=t.__arabicParser__.arabicLetterHasFinalForm=function(t){return o(t)&&a(t)&&e[t.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(t){return o(t)&&a(t)&&e[t.charCodeAt(0)].length>=3};var l=t.__arabicParser__.arabicLetterHasMedialForm=function(t){return o(t)&&a(t)&&4==e[t.charCodeAt(0)].length},h=t.__arabicParser__.resolveLigatures=function(t){var e=0,n=r,i="",a=0;for(e=0;e<t.length;e+=1)void 0!==n[t.charCodeAt(e)]?(a++,"number"==typeof(n=n[t.charCodeAt(e)])&&(i+=String.fromCharCode(n),n=r,a=0),e===t.length-1&&(n=r,i+=t.charAt(e-(a-1)),e-=a-1,a=0)):(n=r,i+=t.charAt(e-a),e-=a,a=0);return i};t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==n[t.charCodeAt(0)]};var f=t.__arabicParser__.getCorrectForm=function(t,e,r){return o(t)?!1===a(t)?-1:!u(t)||!o(e)&&!o(r)||!o(r)&&s(e)||s(t)&&!o(e)||s(t)&&c(e)||s(t)&&s(e)?0:l(t)&&o(e)&&!s(e)&&o(r)&&u(r)?3:s(t)||!o(r)?1:2:-1},d=function(t){var r=0,n=0,i=0,a="",s="",c="",u=(t=t||"").split("\\s+"),l=[];for(r=0;r<u.length;r+=1){for(l.push(""),n=0;n<u[r].length;n+=1)a=u[r][n],s=u[r][n-1],c=u[r][n+1],o(a)?(i=f(a,s,c),l[r]+=-1!==i?String.fromCharCode(e[a.charCodeAt(0)][i]):a):l[r]+=a;l[r]=h(l[r])}return l.join(" ")},p=t.__arabicParser__.processArabic=t.processArabic=function(){var t,e="string"==typeof arguments[0]?arguments[0]:arguments[0].text,r=[];if(Array.isArray(e)){var n=0;for(r=[],n=0;n<e.length;n+=1)Array.isArray(e[n])?r.push([d(e[n][0]),e[n][1],e[n][2]]):r.push([d(e[n])]);t=r}else t=d(e);return"string"==typeof arguments[0]?t:(arguments[0].text=t,arguments[0])};t.events.push(["preProcessText",p])}(M.API),
/** @license
   * jsPDF Autoprint Plugin
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){t.autoPrint=function(t){var e;switch((t=t||{}).variant=t.variant||"non-conform",t.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+e+" 0 R")}))}return this}}(M.API),
/**
   * @license
   * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){var e=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(e){t=e}});var e=150;Object.defineProperty(this,"width",{get:function(){return e},set:function(t){e=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var r=300;Object.defineProperty(this,"height",{get:function(){return r},set:function(t){r=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=r+1)}});var n=[];Object.defineProperty(this,"childNodes",{get:function(){return n},set:function(t){n=t}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(t){i=t}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,e){var r;if("2d"!==(t=t||"2d"))return null;for(r in e)this.pdf.context2d.hasOwnProperty(r)&&(this.pdf.context2d[r]=e[r]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(M.API),function(t){var r={left:0,top:0,bottom:0,right:0},n=!1,i=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},r),this.internal.__cell__.margins.width=this.getPageWidth(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var t=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var e=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var r=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return r},set:function(t){r=t}});var n=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return n},set:function(t){n=t}});var i=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return i},set:function(t){i=t}});var a=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return a},set:function(t){a=t}});var o=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return o},set:function(t){o=t}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(t){return i.call(this),this.internal.__cell__.headerFunction="function"==typeof t?t:void 0,this},t.getTextDimensions=function(t,e){i.call(this);var r=(e=e||{}).fontSize||this.getFontSize(),n=e.font||this.getFont(),a=e.scaleFactor||this.internal.scaleFactor,o=0,s=0,c=0,u=this;if(!Array.isArray(t)&&"string"!=typeof t){if("number"!=typeof t)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");t=String(t)}var l=e.maxWidth;l>0?"string"==typeof t?t=this.splitTextToSize(t,l):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(u.splitTextToSize(e,l))}),[])):t=Array.isArray(t)?t:[t];for(var h=0;h<t.length;h++)o<(c=this.getStringUnitWidth(t[h],{font:n})*r)&&(o=c);return 0!==o&&(s=t.length),{w:o/=a,h:Math.max((s*r*this.getLineHeightFactor()-r*(this.getLineHeightFactor()-1))/a,0)}},t.cellAddPage=function(){i.call(this),this.addPage();var t=this.internal.__cell__.margins||r;return this.internal.__cell__.lastCell=new o(t.left,t.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=t.cell=function(){var t;t=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),i.call(this);var e=this.internal.__cell__.lastCell,a=this.internal.__cell__.padding,s=this.internal.__cell__.margins||r,c=this.internal.__cell__.tableHeaderRow,u=this.internal.__cell__.printHeaders;return void 0!==e.lineNumber&&(e.lineNumber===t.lineNumber?(t.x=(e.x||0)+(e.width||0),t.y=e.y||0):e.y+e.height+t.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),t.y=s.top,u&&c&&(this.printHeaderRow(t.lineNumber,!0),t.y+=c[0].height)):t.y=e.y+e.height||t.y),void 0!==t.text[0]&&(this.rect(t.x,t.y,t.width,t.height,!0===n?"FD":void 0),"right"===t.align?this.text(t.text,t.x+t.width-a,t.y+a,{align:"right",baseline:"top"}):"center"===t.align?this.text(t.text,t.x+t.width/2,t.y+a,{align:"center",baseline:"top",maxWidth:t.width-a-a}):this.text(t.text,t.x+a,t.y+a,{align:"left",baseline:"top",maxWidth:t.width-a-a})),this.internal.__cell__.lastCell=t,this};t.table=function(t,n,u,l,h){if(i.call(this),!u)throw new Error("No data for PDF table.");var f,d,p,g,m=[],v=[],b=[],y={},w={},N=[],L=[],A=(h=h||{}).autoSize||!1,x=!1!==h.printHeaders,S=h.css&&void 0!==h.css["font-size"]?16*h.css["font-size"]:h.fontSize||12,_=h.margins||Object.assign({width:this.getPageWidth()},r),P="number"==typeof h.padding?h.padding:3,k=h.headerBackgroundColor||"#c8c8c8",F=h.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=x,this.internal.__cell__.margins=_,this.internal.__cell__.table_font_size=S,this.internal.__cell__.padding=P,this.internal.__cell__.headerBackgroundColor=k,this.internal.__cell__.headerTextColor=F,this.setFontSize(S),null==l)v=m=Object.keys(u[0]),b=m.map((function(){return"left"}));else if(Array.isArray(l)&&"object"===e(l[0]))for(m=l.map((function(t){return t.name})),v=l.map((function(t){return t.prompt||t.name||""})),b=l.map((function(t){return t.align||"left"})),f=0;f<l.length;f+=1)w[l[f].name]=l[f].width*(19.049976/25.4);else Array.isArray(l)&&"string"==typeof l[0]&&(v=m=l,b=m.map((function(){return"left"})));if(A||Array.isArray(l)&&"string"==typeof l[0])for(f=0;f<m.length;f+=1){for(y[g=m[f]]=u.map((function(t){return t[g]})),this.setFont(void 0,"bold"),N.push(this.getTextDimensions(v[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),d=y[g],this.setFont(void 0,"normal"),p=0;p<d.length;p+=1)N.push(this.getTextDimensions(d[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);w[g]=Math.max.apply(null,N)+P+P,N=[]}if(x){var I={};for(f=0;f<m.length;f+=1)I[m[f]]={},I[m[f]].text=v[f],I[m[f]].align=b[f];var C=c.call(this,I,w);L=m.map((function(e){return new o(t,n,w[e],C,I[e].text,void 0,I[e].align)})),this.setTableHeaderRow(L),this.printHeaderRow(1,!1)}var j=l.reduce((function(t,e){return t[e.name]=e.align,t}),{});for(f=0;f<u.length;f+=1){"rowStart"in h&&h.rowStart instanceof Function&&h.rowStart({row:f,data:u[f]},this);var O=c.call(this,u[f],w);for(p=0;p<m.length;p+=1){var B=u[f][m[p]];"cellStart"in h&&h.cellStart instanceof Function&&h.cellStart({row:f,col:p,data:B},this),s.call(this,new o(t,n,w[m[p]],O,B,f+2,j[m[p]]))}}return this.internal.__cell__.table_x=t,this.internal.__cell__.table_y=n,this};var c=function(t,e){var r=this.internal.__cell__.padding,n=this.internal.__cell__.table_font_size,i=this.internal.scaleFactor;return Object.keys(t).map((function(n){var i=t[n];return this.splitTextToSize(i.hasOwnProperty("text")?i.text:i,e[n]-r-r)}),this).map((function(t){return this.getLineHeightFactor()*t.length*n/i+r+r}),this).reduce((function(t,e){return Math.max(t,e)}),0)};t.setTableHeaderRow=function(t){i.call(this),this.internal.__cell__.tableHeaderRow=t},t.printHeaderRow=function(t,e){if(i.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var r;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var a=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(a[0],a[1],a[2],a[3],void 0,-1)}this.setFont(void 0,"bold");for(var c=[],u=0;u<this.internal.__cell__.tableHeaderRow.length;u+=1){r=this.internal.__cell__.tableHeaderRow[u].clone(),e&&(r.y=this.internal.__cell__.margins.top||0,c.push(r)),r.lineNumber=t;var l=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,r),this.setTextColor(l)}c.length>0&&this.setTableHeaderRow(c),this.setFont(void 0,"normal"),n=!1}}(M.API);var _t={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Pt=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],kt=St(Pt),Ft=[100,200,300,400,500,600,700,800,900],It=St(Ft);function Ct(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),r=function(t){return _t[t=t||"normal"]?t:"normal"}(t.style),n=function(t){if(!t)return 400;if("number"==typeof t)return t>=100&&t<=900&&t%100==0?t:400;if(/^\d00$/.test(t))return parseInt(t);switch(t){case"bold":return 700;case"normal":default:return 400}}(t.weight),i=function(t){return"number"==typeof kt[t=t||"normal"]?t:"normal"}(t.stretch);return{family:e,style:r,weight:n,stretch:i,src:t.src||[],ref:t.ref||{name:e,style:[i,r,n].join(" ")}}}function jt(t,e,r,n){var i;for(i=r;i>=0&&i<e.length;i+=n)if(t[e[i]])return t[e[i]];for(i=r;i>=0&&i<e.length;i-=n)if(t[e[i]])return t[e[i]]}var Ot={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Bt={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Mt(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function Et(t,e,r){for(var n=(r=r||{}).defaultFontFamily||"times",i=Object.assign({},Ot,r.genericFontFamilies||{}),a=null,o=null,s=0;s<e.length;++s)if(i[(a=Ct(e[s])).family]&&(a.family=i[a.family]),t.hasOwnProperty(a.family)){o=t[a.family];break}if(!(o=o||t[n]))throw new Error("Could not find a font-family for the rule '"+Mt(a)+"' and default family '"+n+"'.");if(o=function(t,e){if(e[t])return e[t];var r=kt[t],n=r<=kt.normal?-1:1,i=jt(e,Pt,r,n);if(!i)throw new Error("Could not find a matching font-stretch value for "+t);return i}(a.stretch,o),o=function(t,e){if(e[t])return e[t];for(var r=_t[t],n=0;n<r.length;++n)if(e[r[n]])return e[r[n]];throw new Error("Could not find a matching font-style for "+t)}(a.style,o),!(o=function(t,e){if(e[t])return e[t];if(400===t&&e[500])return e[500];if(500===t&&e[400])return e[400];var r=It[t],n=jt(e,Ft,r,t<400?-1:1);if(!n)throw new Error("Could not find a matching font-weight for value "+t);return n}(a.weight,o)))throw new Error("Failed to resolve a font for the rule '"+Mt(a)+"'.");return o}function qt(t){return t.trimLeft()}function Dt(t,e){for(var r=0;r<t.length;){if(t.charAt(r)===e)return[t.substring(0,r),t.substring(r+1)];r+=1}return null}function Rt(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===e?null:[e[0],t.substring(e[0].length)]}var Tt=["times"];!function(t){var r,n,a,o,s,c,u,l,f,d=function(t){return t=t||{},this.isStrokeTransparent=t.isStrokeTransparent||!1,this.strokeOpacity=t.strokeOpacity||1,this.strokeStyle=t.strokeStyle||"#000000",this.fillStyle=t.fillStyle||"#000000",this.isFillTransparent=t.isFillTransparent||!1,this.fillOpacity=t.fillOpacity||1,this.font=t.font||"10px sans-serif",this.textBaseline=t.textBaseline||"alphabetic",this.textAlign=t.textAlign||"left",this.lineWidth=t.lineWidth||1,this.lineJoin=t.lineJoin||"miter",this.lineCap=t.lineCap||"butt",this.path=t.path||[],this.transform=void 0!==t.transform?t.transform.clone():new l,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new c,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new c,this.lineDashOffset=t.lineDashOffset||0,this.lineDash=t.lineDash||[],this.margin=t.margin||[0,0,0,0],this.prevPageLastElemOffset=t.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof t.ignoreClearRect||t.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new p(this),r=this.internal.f2,n=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,o=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate,c=this.internal.Point,u=this.internal.Rectangle,l=this.internal.Matrix,f=new d}]);var p=function(t){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var e=t;Object.defineProperty(this,"pdf",{get:function(){return e}});var r=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return r},set:function(t){r=Boolean(t)}});var n=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return n},set:function(t){n=Boolean(t)}});var i=0;Object.defineProperty(this,"posX",{get:function(){return i},set:function(t){isNaN(t)||(i=t)}});var a=0;Object.defineProperty(this,"posY",{get:function(){return a},set:function(t){isNaN(t)||(a=t)}}),Object.defineProperty(this,"margin",{get:function(){return f.margin},set:function(t){var e;"number"==typeof t?e=[t,t,t,t]:((e=new Array(4))[0]=t[0],e[1]=t.length>=2?t[1]:e[0],e[2]=t.length>=3?t[2]:e[0],e[3]=t.length>=4?t[3]:e[1]),f.margin=e}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(t){o=t}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(t){s=t}});var c=[];Object.defineProperty(this,"pageBreaks",{get:function(){return c},set:function(t){c=t}}),Object.defineProperty(this,"ctx",{get:function(){return f},set:function(t){t instanceof d&&(f=t)}}),Object.defineProperty(this,"path",{get:function(){return f.path},set:function(t){f.path=t}});var u=[];Object.defineProperty(this,"ctxStack",{get:function(){return u},set:function(t){u=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=g(t),this.ctx.fillStyle=e.style,this.ctx.isFillTransparent=0===e.a,this.ctx.fillOpacity=e.a,this.pdf.setFillColor(e.r,e.g,e.b,{a:e.a}),this.pdf.setTextColor(e.r,e.g,e.b,{a:e.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(t){var e=g(t);this.ctx.strokeStyle=e.style,this.ctx.isStrokeTransparent=0===e.a,this.ctx.strokeOpacity=e.a,0===e.a?this.pdf.setDrawColor(255,255,255):(e.a,this.pdf.setDrawColor(e.r,e.g,e.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(t){-1!==["butt","round","square"].indexOf(t)&&(this.ctx.lineCap=t,this.pdf.setLineCap(t))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(t){isNaN(t)||(this.ctx.lineWidth=t,this.pdf.setLineWidth(t))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(t){-1!==["bevel","round","miter"].indexOf(t)&&(this.ctx.lineJoin=t,this.pdf.setLineJoin(t))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(t){isNaN(t)||(this.ctx.miterLimit=t,this.pdf.setMiterLimit(t))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(t){this.ctx.textBaseline=t}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(t){-1!==["right","end","center","left","start"].indexOf(t)&&(this.ctx.textAlign=t)}});var l=null;function h(t,e){if(null===l){var r=function(t){var e=[];return Object.keys(t).forEach((function(r){t[r].forEach((function(t){var n=null;switch(t){case"bold":n={family:r,weight:"bold"};break;case"italic":n={family:r,style:"italic"};break;case"bolditalic":n={family:r,weight:"bold",style:"italic"};break;case"":case"normal":n={family:r}}null!==n&&(n.ref={name:r,style:t},e.push(n))}))})),e}(t.getFontList());l=function(t){for(var e={},r=0;r<t.length;++r){var n=Ct(t[r]),i=n.family,a=n.stretch,o=n.style,s=n.weight;e[i]=e[i]||{},e[i][a]=e[i][a]||{},e[i][a][o]=e[i][a][o]||{},e[i][a][o][s]=n}return e}(r.concat(e))}return l}var p=null;Object.defineProperty(this,"fontFaces",{get:function(){return p},set:function(t){l=null,p=t}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(t){var e;if(this.ctx.font=t,null!==(e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(t))){var r=e[1],n=(e[2],e[3]),i=e[4],a=(e[5],e[6]),o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];i="px"===o?Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor):"em"===o?Math.floor(parseFloat(i)*this.pdf.getFontSize()):Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(i);var s=function(t){var e,r,n=[],i=t.trim();if(""===i)return Tt;if(i in Bt)return[Bt[i]];for(;""!==i;){switch(r=null,e=(i=qt(i)).charAt(0)){case'"':case"'":r=Dt(i.substring(1),e);break;default:r=Rt(i)}if(null===r)return Tt;if(n.push(r[0]),""!==(i=qt(r[1]))&&","!==i.charAt(0))return Tt;i=i.replace(/^,/,"")}return n}(a);if(this.fontFaces){var c=Et(h(this.pdf,this.fontFaces),s.map((function(t){return{family:t,stretch:"normal",weight:n,style:r}})));this.pdf.setFont(c.ref.name,c.ref.style)}else{var u="";("bold"===n||parseInt(n,10)>=700||"bold"===r)&&(u="bold"),"italic"===r&&(u+="italic"),0===u.length&&(u="normal");for(var l="",f={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},d=0;d<s.length;d++){if(void 0!==this.pdf.internal.getFont(s[d],u,{noFallback:!0,disableWarning:!0})){l=s[d];break}if("bolditalic"===u&&void 0!==this.pdf.internal.getFont(s[d],"bold",{noFallback:!0,disableWarning:!0}))l=s[d],u="bold";else if(void 0!==this.pdf.internal.getFont(s[d],"normal",{noFallback:!0,disableWarning:!0})){l=s[d],u="normal";break}}if(""===l)for(var p=0;p<s.length;p++)if(f[s[p]]){l=f[s[p]];break}l=""===l?"Times":l,this.pdf.setFont(l,u)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(t){this.ctx.globalCompositeOperation=t}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(t){this.ctx.globalAlpha=t}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(t){this.ctx.lineDashOffset=t,T.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(t){this.ctx.lineDash=t,T.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};p.prototype.setLineDash=function(t){this.lineDash=t},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){A.call(this,"fill",!1)},p.prototype.stroke=function(){A.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw i.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var r=this.ctx.transform.applyToPoint(new c(t,e));this.path.push({type:"mt",x:r.x,y:r.y}),this.ctx.lastPoint=new c(t,e)},p.prototype.closePath=function(){var t=new c(0,0),r=0;for(r=this.path.length-1;-1!==r;r--)if("begin"===this.path[r].type&&"object"===e(this.path[r+1])&&"number"==typeof this.path[r+1].x){t=new c(this.path[r+1].x,this.path[r+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new c(t.x,t.y)},p.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw i.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var r=this.ctx.transform.applyToPoint(new c(t,e));this.path.push({type:"lt",x:r.x,y:r.y}),this.ctx.lastPoint=new c(r.x,r.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),A.call(this,null,!0)},p.prototype.quadraticCurveTo=function(t,e,r,n){if(isNaN(r)||isNaN(n)||isNaN(t)||isNaN(e))throw i.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var a=this.ctx.transform.applyToPoint(new c(r,n)),o=this.ctx.transform.applyToPoint(new c(t,e));this.path.push({type:"qct",x1:o.x,y1:o.y,x:a.x,y:a.y}),this.ctx.lastPoint=new c(a.x,a.y)},p.prototype.bezierCurveTo=function(t,e,r,n,a,o){if(isNaN(a)||isNaN(o)||isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw i.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var s=this.ctx.transform.applyToPoint(new c(a,o)),u=this.ctx.transform.applyToPoint(new c(t,e)),l=this.ctx.transform.applyToPoint(new c(r,n));this.path.push({type:"bct",x1:u.x,y1:u.y,x2:l.x,y2:l.y,x:s.x,y:s.y}),this.ctx.lastPoint=new c(s.x,s.y)},p.prototype.arc=function(t,e,r,n,a,o){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(a))throw i.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(o=Boolean(o),!this.ctx.transform.isIdentity){var s=this.ctx.transform.applyToPoint(new c(t,e));t=s.x,e=s.y;var u=this.ctx.transform.applyToPoint(new c(0,r)),l=this.ctx.transform.applyToPoint(new c(0,0));r=Math.sqrt(Math.pow(u.x-l.x,2)+Math.pow(u.y-l.y,2))}Math.abs(a-n)>=2*Math.PI&&(n=0,a=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:r,startAngle:n,endAngle:a,counterclockwise:o})},p.prototype.arcTo=function(t,e,r,n,i){throw new Error("arcTo not implemented.")},p.prototype.rect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw i.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+r,e),this.lineTo(t+r,e+n),this.lineTo(t,e+n),this.lineTo(t,e),this.lineTo(t+r,e),this.lineTo(t,e)},p.prototype.fillRect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw i.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!m.call(this)){var a={};"butt"!==this.lineCap&&(a.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(a.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,r,n),this.fill(),a.hasOwnProperty("lineCap")&&(this.lineCap=a.lineCap),a.hasOwnProperty("lineJoin")&&(this.lineJoin=a.lineJoin)}},p.prototype.strokeRect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw i.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");v.call(this)||(this.beginPath(),this.rect(t,e,r,n),this.stroke())},p.prototype.clearRect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw i.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,e,r,n))},p.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r<this.pdf.internal.getNumberOfPages();r++)this.pdf.setPage(r+1),this.pdf.internal.out("q");if(this.pdf.setPage(e),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var n=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=n}},p.prototype.restore=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r<this.pdf.internal.getNumberOfPages();r++)this.pdf.setPage(r+1),this.pdf.internal.out("Q");this.pdf.setPage(e),t&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},p.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var g=function(t){var e,r,n,i;if(!0===t.isCanvasGradient&&(t=t.getColor()),!t)return{r:0,g:0,b:0,a:0,style:t};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(t))e=0,r=0,n=0,i=0;else{var a=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==a)e=parseInt(a[1]),r=parseInt(a[2]),n=parseInt(a[3]),i=1;else if(null!==(a=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(t)))e=parseInt(a[1]),r=parseInt(a[2]),n=parseInt(a[3]),i=parseFloat(a[4]);else{if(i=1,"string"==typeof t&&"#"!==t.charAt(0)){var o=new h(t);t=o.ok?o.toHex():"#000000"}4===t.length?(e=t.substring(1,2),e+=e,r=t.substring(2,3),r+=r,n=t.substring(3,4),n+=n):(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7)),e=parseInt(e,16),r=parseInt(r,16),n=parseInt(n,16)}}return{r:e,g:r,b:n,a:i,style:t}},m=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},v=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};p.prototype.fillText=function(t,e,r,n){if(isNaN(e)||isNaN(r)||"string"!=typeof t)throw i.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(n=isNaN(n)?void 0:n,!m.call(this)){var a=q(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;C.call(this,{text:t,x:e,y:r,scale:o,angle:a,align:this.textAlign,maxWidth:n})}},p.prototype.strokeText=function(t,e,r,n){if(isNaN(e)||isNaN(r)||"string"!=typeof t)throw i.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!v.call(this)){n=isNaN(n)?void 0:n;var a=q(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;C.call(this,{text:t,x:e,y:r,scale:o,renderingMode:"stroke",angle:a,align:this.textAlign,maxWidth:n})}},p.prototype.measureText=function(t){if("string"!=typeof t)throw i.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var e=this.pdf,r=this.pdf.internal.scaleFactor,n=e.internal.getFontSize(),a=e.getStringUnitWidth(t)*n/e.internal.scaleFactor,o=function(t){var e=(t=t||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return e}}),this};return new o({width:a*=Math.round(96*r/72*1e4)/1e4})},p.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw i.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var r=new l(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(r)},p.prototype.rotate=function(t){if(isNaN(t))throw i.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new l(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},p.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw i.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var r=new l(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(r)},p.prototype.transform=function(t,e,r,n,a,o){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(a)||isNaN(o))throw i.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var s=new l(t,e,r,n,a,o);this.ctx.transform=this.ctx.transform.multiply(s)},p.prototype.setTransform=function(t,e,r,n,i,a){t=isNaN(t)?1:t,e=isNaN(e)?0:e,r=isNaN(r)?0:r,n=isNaN(n)?1:n,i=isNaN(i)?0:i,a=isNaN(a)?0:a,this.ctx.transform=new l(t,e,r,n,i,a)};var b=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(t,e,r,n,i,a,o,s,c){var h=this.pdf.getImageProperties(t),f=1,d=1,p=1,g=1;void 0!==n&&void 0!==s&&(p=s/n,g=c/i,f=h.width/n*s/n,d=h.height/i*c/i),void 0===a&&(a=e,o=r,e=0,r=0),void 0!==n&&void 0===s&&(s=n,c=i),void 0===n&&void 0===s&&(s=h.width,c=h.height);for(var m,v=this.ctx.transform.decompose(),w=q(v.rotate.shx),A=new l,S=(A=(A=(A=A.multiply(v.translate)).multiply(v.skew)).multiply(v.scale)).applyToRectangle(new u(a-e*p,o-r*g,n*f,i*d)),_=y.call(this,S),P=[],k=0;k<_.length;k+=1)-1===P.indexOf(_[k])&&P.push(_[k]);if(L(P),this.autoPaging)for(var F=P[0],I=P[P.length-1],C=F;C<I+1;C++){this.pdf.setPage(C);var j=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],O=1===C?this.posY+this.margin[0]:this.margin[0],B=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],M=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],E=1===C?0:B+(C-2)*M;if(0!==this.ctx.clip_path.length){var D=this.path;m=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=N(m,this.posX+this.margin[3],-E+O+this.ctx.prevPageLastElemOffset),x.call(this,"fill",!0),this.path=D}var R=JSON.parse(JSON.stringify(S));R=N([R],this.posX+this.margin[3],-E+O+this.ctx.prevPageLastElemOffset)[0];var T=(C>F||C<I)&&b.call(this);T&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],j,M,null).clip().discardPath()),this.pdf.addImage(t,"JPEG",R.x,R.y,R.w,R.h,null,null,w),T&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(t,"JPEG",S.x,S.y,S.w,S.h,null,null,w)};var y=function(t,e,r){var n=[];e=e||this.pdf.internal.pageSize.width,r=r||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var i=this.posY+this.ctx.prevPageLastElemOffset;switch(t.type){default:case"mt":case"lt":n.push(Math.floor((t.y+i)/r)+1);break;case"arc":n.push(Math.floor((t.y+i-t.radius)/r)+1),n.push(Math.floor((t.y+i+t.radius)/r)+1);break;case"qct":var a=D(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);n.push(Math.floor((a.y+i)/r)+1),n.push(Math.floor((a.y+a.h+i)/r)+1);break;case"bct":var o=R(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);n.push(Math.floor((o.y+i)/r)+1),n.push(Math.floor((o.y+o.h+i)/r)+1);break;case"rect":n.push(Math.floor((t.y+i)/r)+1),n.push(Math.floor((t.y+t.h+i)/r)+1)}for(var s=0;s<n.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<n[s];)w.call(this);return n},w=function(){var t=this.fillStyle,e=this.strokeStyle,r=this.font,n=this.lineCap,i=this.lineWidth,a=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=r,this.lineCap=n,this.lineWidth=i,this.lineJoin=a},N=function(t,e,r){for(var n=0;n<t.length;n++)switch(t[n].type){case"bct":t[n].x2+=e,t[n].y2+=r;case"qct":t[n].x1+=e,t[n].y1+=r;case"mt":case"lt":case"arc":default:t[n].x+=e,t[n].y+=r}return t},L=function(t){return t.sort((function(t,e){return t-e}))},A=function(t,e){for(var r,n,i=this.fillStyle,a=this.strokeStyle,o=this.lineCap,s=this.lineWidth,c=Math.abs(s*this.ctx.transform.scaleX),u=this.lineJoin,l=JSON.parse(JSON.stringify(this.path)),h=JSON.parse(JSON.stringify(this.path)),f=[],d=0;d<h.length;d++)if(void 0!==h[d].x)for(var p=y.call(this,h[d]),g=0;g<p.length;g+=1)-1===f.indexOf(p[g])&&f.push(p[g]);for(var m=0;m<f.length;m++)for(;this.pdf.internal.getNumberOfPages()<f[m];)w.call(this);if(L(f),this.autoPaging)for(var v=f[0],A=f[f.length-1],S=v;S<A+1;S++){this.pdf.setPage(S),this.fillStyle=i,this.strokeStyle=a,this.lineCap=o,this.lineWidth=c,this.lineJoin=u;var _=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],P=1===S?this.posY+this.margin[0]:this.margin[0],k=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],F=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],I=1===S?0:k+(S-2)*F;if(0!==this.ctx.clip_path.length){var C=this.path;r=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=N(r,this.posX+this.margin[3],-I+P+this.ctx.prevPageLastElemOffset),x.call(this,t,!0),this.path=C}if(n=JSON.parse(JSON.stringify(l)),this.path=N(n,this.posX+this.margin[3],-I+P+this.ctx.prevPageLastElemOffset),!1===e||0===S){var j=(S>v||S<A)&&b.call(this);j&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],_,F,null).clip().discardPath()),x.call(this,t,e),j&&this.pdf.restoreGraphicsState()}this.lineWidth=s}else this.lineWidth=c,x.call(this,t,e),this.lineWidth=s;this.path=l},x=function(t,e){if(("stroke"!==t||e||!v.call(this))&&("stroke"===t||e||!m.call(this))){for(var r,n,i=[],a=this.path,o=0;o<a.length;o++){var s=a[o];switch(s.type){case"begin":i.push({begin:!0});break;case"close":i.push({close:!0});break;case"mt":i.push({start:s,deltas:[],abs:[]});break;case"lt":var c=i.length;if(a[o-1]&&!isNaN(a[o-1].x)&&(r=[s.x-a[o-1].x,s.y-a[o-1].y],c>0))for(;c>=0;c--)if(!0!==i[c-1].close&&!0!==i[c-1].begin){i[c-1].deltas.push(r),i[c-1].abs.push(s);break}break;case"bct":r=[s.x1-a[o-1].x,s.y1-a[o-1].y,s.x2-a[o-1].x,s.y2-a[o-1].y,s.x-a[o-1].x,s.y-a[o-1].y],i[i.length-1].deltas.push(r);break;case"qct":var u=a[o-1].x+2/3*(s.x1-a[o-1].x),l=a[o-1].y+2/3*(s.y1-a[o-1].y),h=s.x+2/3*(s.x1-s.x),f=s.y+2/3*(s.y1-s.y),d=s.x,p=s.y;r=[u-a[o-1].x,l-a[o-1].y,h-a[o-1].x,f-a[o-1].y,d-a[o-1].x,p-a[o-1].y],i[i.length-1].deltas.push(r);break;case"arc":i.push({deltas:[],abs:[],arc:!0}),Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(s)}}n=e?null:"stroke"===t?"stroke":"fill";for(var g=!1,b=0;b<i.length;b++)if(i[b].arc)for(var y=i[b].abs,w=0;w<y.length;w++){var N=y[w];"arc"===N.type?P.call(this,N.x,N.y,N.radius,N.startAngle,N.endAngle,N.counterclockwise,void 0,e,!g):j.call(this,N.x,N.y),g=!0}else if(!0===i[b].close)this.pdf.internal.out("h"),g=!1;else if(!0!==i[b].begin){var L=i[b].start.x,A=i[b].start.y;O.call(this,i[b].deltas,L,A),g=!0}n&&k.call(this,n),e&&F.call(this)}},S=function(t){var e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,r=e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return t-r;case"top":return t+e-r;case"hanging":return t+e-2*r;case"middle":return t+e/2-r;case"ideographic":return t;case"alphabetic":default:return t}},_=function(t){return t+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var t=function(){};return t.colorStops=[],t.addColorStop=function(t,e){this.colorStops.push([t,e])},t.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},t.isCanvasGradient=!0,t},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var P=function(t,e,r,n,i,a,o,s,c){for(var u=M.call(this,r,n,i,a),l=0;l<u.length;l++){var h=u[l];0===l&&(c?I.call(this,h.x1+t,h.y1+e):j.call(this,h.x1+t,h.y1+e)),B.call(this,t,e,h.x2,h.y2,h.x3,h.y3,h.x4,h.y4)}s?F.call(this):k.call(this,o)},k=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},F=function(){this.pdf.clip(),this.pdf.discardPath()},I=function(t,e){this.pdf.internal.out(n(t)+" "+a(e)+" m")},C=function(t){var e;switch(t.align){case"right":case"end":e="right";break;case"center":e="center";break;case"left":case"start":default:e="left"}var r=this.pdf.getTextDimensions(t.text),n=S.call(this,t.y),i=_.call(this,n)-r.h,a=this.ctx.transform.applyToPoint(new c(t.x,n)),o=this.ctx.transform.decompose(),s=new l;s=(s=(s=s.multiply(o.translate)).multiply(o.skew)).multiply(o.scale);for(var h,f,d,p=this.ctx.transform.applyToRectangle(new u(t.x,n,r.w,r.h)),g=s.applyToRectangle(new u(t.x,i,r.w,r.h)),m=y.call(this,g),v=[],w=0;w<m.length;w+=1)-1===v.indexOf(m[w])&&v.push(m[w]);if(L(v),this.autoPaging)for(var A=v[0],P=v[v.length-1],k=A;k<P+1;k++){this.pdf.setPage(k);var F=1===k?this.posY+this.margin[0]:this.margin[0],I=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],C=this.pdf.internal.pageSize.height-this.margin[2],j=C-this.margin[0],O=this.pdf.internal.pageSize.width-this.margin[1],B=O-this.margin[3],M=1===k?0:I+(k-2)*j;if(0!==this.ctx.clip_path.length){var E=this.path;h=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=N(h,this.posX+this.margin[3],-1*M+F),x.call(this,"fill",!0),this.path=E}var q=N([JSON.parse(JSON.stringify(g))],this.posX+this.margin[3],-M+F+this.ctx.prevPageLastElemOffset)[0];t.scale>=.01&&(f=this.pdf.internal.getFontSize(),this.pdf.setFontSize(f*t.scale),d=this.lineWidth,this.lineWidth=d*t.scale);var D="text"!==this.autoPaging;if(D||q.y+q.h<=C){if(D||q.y>=F&&q.x<=O){var R=D?t.text:this.pdf.splitTextToSize(t.text,t.maxWidth||O-q.x)[0],T=N([JSON.parse(JSON.stringify(p))],this.posX+this.margin[3],-M+F+this.ctx.prevPageLastElemOffset)[0],U=D&&(k>A||k<P)&&b.call(this);U&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],B,j,null).clip().discardPath()),this.pdf.text(R,T.x,T.y,{angle:t.angle,align:e,renderingMode:t.renderingMode}),U&&this.pdf.restoreGraphicsState()}}else q.y<C&&(this.ctx.prevPageLastElemOffset+=C-q.y);t.scale>=.01&&(this.pdf.setFontSize(f),this.lineWidth=d)}else t.scale>=.01&&(f=this.pdf.internal.getFontSize(),this.pdf.setFontSize(f*t.scale),d=this.lineWidth,this.lineWidth=d*t.scale),this.pdf.text(t.text,a.x+this.posX,a.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(f),this.lineWidth=d)},j=function(t,e,r,i){r=r||0,i=i||0,this.pdf.internal.out(n(t+r)+" "+a(e+i)+" l")},O=function(t,e,r){return this.pdf.lines(t,e,r,null,null)},B=function(t,e,n,i,a,c,u,l){this.pdf.internal.out([r(o(n+t)),r(s(i+e)),r(o(a+t)),r(s(c+e)),r(o(u+t)),r(s(l+e)),"c"].join(" "))},M=function(t,e,r,n){for(var i=2*Math.PI,a=Math.PI/2;e>r;)e-=i;var o=Math.abs(r-e);o<i&&n&&(o=i-o);for(var s=[],c=n?-1:1,u=e;o>1e-5;){var l=u+c*Math.min(o,a);s.push(E.call(this,t,u,l)),o-=Math.abs(l-u),u=l}return s},E=function(t,e,r){var n=(r-e)/2,i=t*Math.cos(n),a=t*Math.sin(n),o=i,s=-a,c=o*o+s*s,u=c+o*i+s*a,l=4/3*(Math.sqrt(2*c*u)-u)/(o*a-s*i),h=o-l*s,f=s+l*o,d=h,p=-f,g=n+e,m=Math.cos(g),v=Math.sin(g);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:h*m-f*v,y2:h*v+f*m,x3:d*m-p*v,y3:d*v+p*m,x4:t*Math.cos(r),y4:t*Math.sin(r)}},q=function(t){return 180*t/Math.PI},D=function(t,e,r,n,i,a){var o=t+.5*(r-t),s=e+.5*(n-e),c=i+.5*(r-i),l=a+.5*(n-a),h=Math.min(t,i,o,c),f=Math.max(t,i,o,c),d=Math.min(e,a,s,l),p=Math.max(e,a,s,l);return new u(h,d,f-h,p-d)},R=function(t,e,r,n,i,a,o,s){var c,l,h,f,d,p,g,m,v,b,y,w,N,L,A=r-t,x=n-e,S=i-r,_=a-n,P=o-i,k=s-a;for(l=0;l<41;l++)v=(g=(h=t+(c=l/40)*A)+c*((d=r+c*S)-h))+c*(d+c*(i+c*P-d)-g),b=(m=(f=e+c*x)+c*((p=n+c*_)-f))+c*(p+c*(a+c*k-p)-m),0==l?(y=v,w=b,N=v,L=b):(y=Math.min(y,v),w=Math.min(w,b),N=Math.max(N,v),L=Math.max(L,b));return new u(Math.round(y),Math.round(w),Math.round(N-y),Math.round(L-w))},T=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var t,e,r=(t=this.ctx.lineDash,e=this.ctx.lineDashOffset,JSON.stringify({lineDash:t,lineDashOffset:e}));this.prevLineDash!==r&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=r)}}}(M.API);var Ut=Uint8Array,zt=Uint16Array,Ht=Uint32Array,Wt=new Ut([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Vt=new Ut([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Gt=new Ut([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Yt=function(t,e){for(var r=new zt(31),n=0;n<31;++n)r[n]=e+=1<<t[n-1];var i=new Ht(r[30]);for(n=1;n<30;++n)for(var a=r[n];a<r[n+1];++a)i[a]=a-r[n]<<5|n;return[r,i]},Jt=Yt(Wt,2),Xt=Jt[0],Kt=Jt[1];Xt[28]=258,Kt[258]=28;for(var Zt=Yt(Vt,0),$t=Zt[0],Qt=Zt[1],te=new zt(32768),ee=0;ee<32768;++ee){var re=(43690&ee)>>>1|(21845&ee)<<1;re=(61680&(re=(52428&re)>>>2|(13107&re)<<2))>>>4|(3855&re)<<4,te[ee]=((65280&re)>>>8|(255&re)<<8)>>>1}var ne=function(t,e,r){for(var n=t.length,i=0,a=new zt(e);i<n;++i)++a[t[i]-1];var o,s=new zt(e);for(i=0;i<e;++i)s[i]=s[i-1]+a[i-1]<<1;if(r){o=new zt(1<<e);var c=15-e;for(i=0;i<n;++i)if(t[i])for(var u=i<<4|t[i],l=e-t[i],h=s[t[i]-1]++<<l,f=h|(1<<l)-1;h<=f;++h)o[te[h]>>>c]=u}else for(o=new zt(n),i=0;i<n;++i)o[i]=te[s[t[i]-1]++]>>>15-t[i];return o},ie=new Ut(288);for(ee=0;ee<144;++ee)ie[ee]=8;for(ee=144;ee<256;++ee)ie[ee]=9;for(ee=256;ee<280;++ee)ie[ee]=7;for(ee=280;ee<288;++ee)ie[ee]=8;var ae=new Ut(32);for(ee=0;ee<32;++ee)ae[ee]=5;var oe=ne(ie,9,0),se=ne(ie,9,1),ce=ne(ae,5,0),ue=ne(ae,5,1),le=function(t){for(var e=t[0],r=1;r<t.length;++r)t[r]>e&&(e=t[r]);return e},he=function(t,e,r){var n=e/8>>0;return(t[n]|t[n+1]<<8)>>>(7&e)&r},fe=function(t,e){var r=e/8>>0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>>(7&e)},de=function(t){return(t/8>>0)+(7&t&&1)},pe=function(t,e,r){(null==e||e<0)&&(e=0),(null==r||r>t.length)&&(r=t.length);var n=new(t instanceof zt?zt:t instanceof Ht?Ht:Ut)(r-e);return n.set(t.subarray(e,r)),n},ge=function(t,e,r){r<<=7&e;var n=e/8>>0;t[n]|=r,t[n+1]|=r>>>8},me=function(t,e,r){r<<=7&e;var n=e/8>>0;t[n]|=r,t[n+1]|=r>>>8,t[n+2]|=r>>>16},ve=function(t,e){for(var r=[],n=0;n<t.length;++n)t[n]&&r.push({s:n,f:t[n]});var i=r.length,a=r.slice();if(!i)return[new Ut(0),0];if(1==i){var o=new Ut(r[0].s+1);return o[r[0].s]=1,[o,1]}r.sort((function(t,e){return t.f-e.f})),r.push({s:-1,f:25001});var s=r[0],c=r[1],u=0,l=1,h=2;for(r[0]={s:-1,f:s.f+c.f,l:s,r:c};l!=i-1;)s=r[r[u].f<r[h].f?u++:h++],c=r[u!=l&&r[u].f<r[h].f?u++:h++],r[l++]={s:-1,f:s.f+c.f,l:s,r:c};var f=a[0].s;for(n=1;n<i;++n)a[n].s>f&&(f=a[n].s);var d=new zt(f+1),p=be(r[l-1],d,0);if(p>e){n=0;var g=0,m=p-e,v=1<<m;for(a.sort((function(t,e){return d[e.s]-d[t.s]||t.f-e.f}));n<i;++n){var b=a[n].s;if(!(d[b]>e))break;g+=v-(1<<p-d[b]),d[b]=e}for(g>>>=m;g>0;){var y=a[n].s;d[y]<e?g-=1<<e-d[y]++-1:++n}for(;n>=0&&g;--n){var w=a[n].s;d[w]==e&&(--d[w],++g)}p=e}return[new Ut(d),p]},be=function(t,e,r){return-1==t.s?Math.max(be(t.l,e,r+1),be(t.r,e,r+1)):e[t.s]=r},ye=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new zt(++e),n=0,i=t[0],a=1,o=function(t){r[n++]=t},s=1;s<=e;++s)if(t[s]==i&&s!=e)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=t[s]}return[r.subarray(0,n),e]},we=function(t,e){for(var r=0,n=0;n<e.length;++n)r+=t[n]*e[n];return r},Ne=function(t,e,r){var n=r.length,i=de(e+2);t[i]=255&n,t[i+1]=n>>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<n;++a)t[i+a+4]=r[a];return 8*(i+4+n)},Le=function(t,e,r,n,i,a,o,s,c,u,l){ge(e,l++,r),++i[256];for(var h=ve(i,15),f=h[0],d=h[1],p=ve(a,15),g=p[0],m=p[1],v=ye(f),b=v[0],y=v[1],w=ye(g),N=w[0],L=w[1],A=new zt(19),x=0;x<b.length;++x)A[31&b[x]]++;for(x=0;x<N.length;++x)A[31&N[x]]++;for(var S=ve(A,7),_=S[0],P=S[1],k=19;k>4&&!_[Gt[k-1]];--k);var F,I,C,j,O=u+5<<3,B=we(i,ie)+we(a,ae)+o,M=we(i,f)+we(a,g)+o+14+3*k+we(A,_)+(2*A[16]+3*A[17]+7*A[18]);if(O<=B&&O<=M)return Ne(e,l,t.subarray(c,c+u));if(ge(e,l,1+(M<B)),l+=2,M<B){F=ne(f,d,0),I=f,C=ne(g,m,0),j=g;var E=ne(_,P,0);ge(e,l,y-257),ge(e,l+5,L-1),ge(e,l+10,k-4),l+=14;for(x=0;x<k;++x)ge(e,l+3*x,_[Gt[x]]);l+=3*k;for(var q=[b,N],D=0;D<2;++D){var R=q[D];for(x=0;x<R.length;++x){var T=31&R[x];ge(e,l,E[T]),l+=_[T],T>15&&(ge(e,l,R[x]>>>5&127),l+=R[x]>>>12)}}}else F=oe,I=ie,C=ce,j=ae;for(x=0;x<s;++x)if(n[x]>255){T=n[x]>>>18&31;me(e,l,F[T+257]),l+=I[T+257],T>7&&(ge(e,l,n[x]>>>23&31),l+=Wt[T]);var U=31&n[x];me(e,l,C[U]),l+=j[U],U>3&&(me(e,l,n[x]>>>5&8191),l+=Vt[U])}else me(e,l,F[n[x]]),l+=I[n[x]];return me(e,l,F[256]),l+I[256]},Ae=new Ht([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),xe=new Ut(0),Se=function(t,e,r,n,i){return function(t,e,r,n,i,a){var o=t.length,s=new Ut(n+o+5*(1+Math.floor(o/7e3))+i),c=s.subarray(n,s.length-i),u=0;if(!e||o<8)for(var l=0;l<=o;l+=65535){var h=l+65535;h<o?u=Ne(c,u,t.subarray(l,h)):(c[l]=a,u=Ne(c,u,t.subarray(l,o)))}else{for(var f=Ae[e-1],d=f>>>13,p=8191&f,g=(1<<r)-1,m=new zt(32768),v=new zt(g+1),b=Math.ceil(r/3),y=2*b,w=function(e){return(t[e]^t[e+1]<<b^t[e+2]<<y)&g},N=new Ht(25e3),L=new zt(288),A=new zt(32),x=0,S=0,_=(l=0,0),P=0,k=0;l<o;++l){var F=w(l),I=32767&l,C=v[F];if(m[I]=C,v[F]=I,P<=l){var j=o-l;if((x>7e3||_>24576)&&j>423){u=Le(t,c,0,N,L,A,S,_,k,l-k,u),_=x=S=0,k=l;for(var O=0;O<286;++O)L[O]=0;for(O=0;O<30;++O)A[O]=0}var B=2,M=0,E=p,q=I-C&32767;if(j>2&&F==w(l-q))for(var D=Math.min(d,j)-1,R=Math.min(32767,l),T=Math.min(258,j);q<=R&&--E&&I!=C;){if(t[l+B]==t[l+B-q]){for(var U=0;U<T&&t[l+U]==t[l+U-q];++U);if(U>B){if(B=U,M=q,U>D)break;var z=Math.min(q,U-2),H=0;for(O=0;O<z;++O){var W=l-q+O+32768&32767,V=W-m[W]+32768&32767;V>H&&(H=V,C=W)}}}q+=(I=C)-(C=m[I])+32768&32767}if(M){N[_++]=268435456|Kt[B]<<18|Qt[M];var G=31&Kt[B],Y=31&Qt[M];S+=Wt[G]+Vt[Y],++L[257+G],++A[Y],P=l+B,++x}else N[_++]=t[l],++L[t[l]]}}u=Le(t,c,a,N,L,A,S,_,k,l-k,u),a||(u=Ne(c,u,xe))}return pe(s,0,n+de(u)+i)}(t,null==e.level?6:e.level,null==e.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,r,n,!i)};function _e(t,e){void 0===e&&(e={});var r=function(){var t=1,e=0;return{p:function(r){for(var n=t,i=e,a=r.length,o=0;o!=a;){for(var s=Math.min(o+5552,a);o<s;++o)i+=n+=r[o];n%=65521,i%=65521}t=n,e=i},d:function(){return(t>>>8<<16|(255&e)<<8|e>>>8)+2*((255&t)<<23)}}}();r.p(t);var n=Se(t,e,2,4);return function(t,e){var r=e.level,n=0==r?0:r<6?1:9==r?3:2;t[0]=120,t[1]=n<<6|(n?32-2*n:1)}(n,e),function(t,e,r){for(;r;++e)t[e]=r,r>>>=8}(n,n.length-4,r.d()),n}function Pe(t,e){return function(t,e,r){var n=t.length,i=!e||r,a=!r||r.i;r||(r={}),e||(e=new Ut(3*n));var o=function(t){var r=e.length;if(t>r){var n=new Ut(Math.max(2*r,t));n.set(e),e=n}},s=r.f||0,c=r.p||0,u=r.b||0,l=r.l,h=r.d,f=r.m,d=r.n,p=8*n;do{if(!l){r.f=s=he(t,c,1);var g=he(t,c+1,3);if(c+=3,!g){var m=t[(P=de(c)+4)-4]|t[P-3]<<8,v=P+m;if(v>n){if(a)throw"unexpected EOF";break}i&&o(u+m),e.set(t.subarray(P,v),u),r.b=u+=m,r.p=c=8*v;continue}if(1==g)l=se,h=ue,f=9,d=5;else{if(2!=g)throw"invalid block type";var b=he(t,c,31)+257,y=he(t,c+10,15)+4,w=b+he(t,c+5,31)+1;c+=14;for(var N=new Ut(w),L=new Ut(19),A=0;A<y;++A)L[Gt[A]]=he(t,c+3*A,7);c+=3*y;var x=le(L),S=(1<<x)-1;if(!a&&c+w*(x+7)>p)break;var _=ne(L,x,1);for(A=0;A<w;){var P,k=_[he(t,c,S)];if(c+=15&k,(P=k>>>4)<16)N[A++]=P;else{var F=0,I=0;for(16==P?(I=3+he(t,c,3),c+=2,F=N[A-1]):17==P?(I=3+he(t,c,7),c+=3):18==P&&(I=11+he(t,c,127),c+=7);I--;)N[A++]=F}}var C=N.subarray(0,b),j=N.subarray(b);f=le(C),d=le(j),l=ne(C,f,1),h=ne(j,d,1)}if(c>p)throw"unexpected EOF"}i&&o(u+131072);for(var O=(1<<f)-1,B=(1<<d)-1,M=f+d+18;a||c+M<p;){var E=(F=l[fe(t,c)&O])>>>4;if((c+=15&F)>p)throw"unexpected EOF";if(!F)throw"invalid length/literal";if(E<256)e[u++]=E;else{if(256==E){l=null;break}var q=E-254;if(E>264){var D=Wt[A=E-257];q=he(t,c,(1<<D)-1)+Xt[A],c+=D}var R=h[fe(t,c)&B],T=R>>>4;if(!R)throw"invalid distance";c+=15&R;j=$t[T];if(T>3){D=Vt[T];j+=fe(t,c)&(1<<D)-1,c+=D}if(c>p)throw"unexpected EOF";i&&o(u+131072);for(var U=u+q;u<U;u+=4)e[u]=e[u-j],e[u+1]=e[u+1-j],e[u+2]=e[u+2-j],e[u+3]=e[u+3-j];u=U}}r.l=l,r.p=c,r.b=u,l&&(s=1,r.m=f,r.d=h,r.n=d)}while(!s);return u==e.length?e:pe(e,0,u)}((function(t){if(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(32&t[1])throw"invalid zlib data: preset dictionaries not supported"}(t),t.subarray(2,-4)),e)}
/**
   * @license
   * jsPDF filters PlugIn
   * Copyright (c) 2014 Aras Abbasi
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */!function(t){var e=function(t){var e,r,n,i,a,o,s,c,u,l;for(/[^\x00-\xFF]/.test(t),r=[],n=0,i=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;i>n;n+=4)0!==(a=(t.charCodeAt(n)<<24)+(t.charCodeAt(n+1)<<16)+(t.charCodeAt(n+2)<<8)+t.charCodeAt(n+3))?(o=(a=((a=((a=((a=(a-(l=a%85))/85)-(u=a%85))/85)-(c=a%85))/85)-(s=a%85))/85)%85,r.push(o+33,s+33,c+33,u+33,l+33)):r.push(122);return function(t,e){for(var r=e;r>0;r--)t.pop()}(r,e.length),String.fromCharCode.apply(String,r)+"~>"},r=function(t){var e,r,n,i,a,o=String,s="length",c=255,u="charCodeAt",l="slice",h="replace";for(t[l](-2),t=t[l](0,-2)[h](/\s/g,"")[h]("z","!!!!!"),n=[],i=0,a=(t+=e="uuuuu"[l](t[s]%5||5))[s];a>i;i+=5)r=52200625*(t[u](i)-33)+614125*(t[u](i+1)-33)+7225*(t[u](i+2)-33)+85*(t[u](i+3)-33)+(t[u](i+4)-33),n.push(c&r>>24,c&r>>16,c&r>>8,c&r);return function(t,e){for(var r=e;r>0;r--)t.pop()}(n,e[s]),o.fromCharCode.apply(o,n)},n=function(t){var e=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(t=t.replace(/\s/g,"")).indexOf(">")&&(t=t.substr(0,t.indexOf(">"))),t.length%2&&(t+="0"),!1===e.test(t))return"";for(var r="",n=0;n<t.length;n+=2)r+=String.fromCharCode("0x"+(t[n]+t[n+1]));return r},i=function(t){for(var e=new Uint8Array(t.length),r=t.length;r--;)e[r]=t.charCodeAt(r);return t=(e=_e(e)).reduce((function(t,e){return t+String.fromCharCode(e)}),"")};t.processDataByFilters=function(t,a){var o=0,s=t||"",c=[];for("string"==typeof(a=a||[])&&(a=[a]),o=0;o<a.length;o+=1)switch(a[o]){case"ASCII85Decode":case"/ASCII85Decode":s=r(s),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":s=e(s),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":s=n(s),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":s=s.split("").map((function(t){return("0"+t.charCodeAt().toString(16)).slice(-2)})).join("")+">",c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":s=i(s),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[o]+'" is not implemented')}return{data:s,reverseChain:c.reverse().join(" ")}}}(M.API),
/**
   * @license
   * jsPDF fileloading PlugIn
   * Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){t.loadFile=function(t,e,r){return function(t,e,r){e=!1!==e,r="function"==typeof r?r:function(){};var n=void 0;try{n=function(t,e,r){var n=new XMLHttpRequest,i=0,a=function(t){var e=t.length,r=[],n=String.fromCharCode;for(i=0;i<e;i+=1)r.push(n(255&t.charCodeAt(i)));return r.join("")};if(n.open("GET",t,!e),n.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(n.onload=function(){200===n.status?r(a(this.responseText)):r(void 0)}),n.send(null),e&&200===n.status)return a(n.responseText)}(t,e,r)}catch(t){}return n}(t,e,r)},t.loadImageFile=t.loadFile}(M.API),function(n){function i(){return(r.html2canvasV1?Promise.resolve(r.html2canvasV1):Promise.reject(new Error("Could not load html2canvas"))).catch((function(t){return Promise.reject(new Error("Could not load html2canvas: "+t))})).then((function(t){return t.default?t.default:t}))}function a(){return(r.DOMPurify?Promise.resolve(r.DOMPurify):Promise.reject(new Error("Could not load dompurify"))).catch((function(t){return Promise.reject(new Error("Could not load dompurify: "+t))})).then((function(t){return t.default?t.default:t}))}var o=function(t){var r=e(t);return"undefined"===r?"undefined":"string"===r||t instanceof String?"string":"number"===r||t instanceof Number?"number":"function"===r||t instanceof Function?"function":t&&t.constructor===Array?"array":t&&1===t.nodeType?"element":"object"===r?"object":"unknown"},s=function(t,e){var r=document.createElement(t);for(var n in e.className&&(r.className=e.className),e.innerHTML&&e.dompurify&&(r.innerHTML=e.dompurify.sanitize(e.innerHTML)),e.style)r.style[n]=e.style[n];return r},c=function t(e){var r=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),n=t.convert(Promise.resolve(),r);return n=(n=n.setProgress(1,t,1,[t])).set(e)};(c.prototype=Object.create(Promise.prototype)).constructor=c,c.convert=function(t,e){return t.__proto__=e||c.prototype,t},c.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},c.prototype.from=function(t,e){return this.then((function(){switch(e=e||function(t){switch(o(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(t)){case"string":return this.then(a).then((function(e){return this.set({src:s("div",{innerHTML:t,dompurify:e})})}));case"element":return this.set({src:t});case"canvas":return this.set({canvas:t});case"img":return this.set({img:t});default:return this.error("Unknown source type.")}}))},c.prototype.to=function(t){switch(t){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},c.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var t={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},e=function t(e,r){for(var n=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),i=e.firstChild;i;i=i.nextSibling)!0!==r&&1===i.nodeType&&"SCRIPT"===i.nodeName||n.appendChild(t(i,r));return 1===e.nodeType&&("CANVAS"===e.nodeName?(n.width=e.width,n.height=e.height,n.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(n.value=e.value),n.addEventListener("load",(function(){n.scrollTop=e.scrollTop,n.scrollLeft=e.scrollLeft}),!0)),n}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===e.tagName&&(t.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=s("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=s("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(e),this.prop.container.firstChild.appendChild(s("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},c.prototype.toCanvas=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(i).then((function(t){var e=Object.assign({},this.opt.html2canvas);return delete e.onrendered,t(this.prop.container,e)})).then((function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},c.prototype.toContext2d=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(i).then((function(t){var e=this.opt.jsPDF,r=this.opt.fontFaces,n="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,i=Object.assign({async:!0,allowTaint:!0,scale:n,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete i.onrendered,e.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,e.context2d.posX=this.opt.x,e.context2d.posY=this.opt.y,e.context2d.margin=this.opt.margin,e.context2d.fontFaces=r,r)for(var a=0;a<r.length;++a){var o=r[a],s=o.src.find((function(t){return"truetype"===t.format}));s&&e.addFont(s.url,o.ref.name,o.ref.style)}return i.windowHeight=i.windowHeight||0,i.windowHeight=0==i.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):i.windowHeight,e.context2d.save(!0),t(this.prop.container,i)})).then((function(t){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},c.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var t=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=t}))},c.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},c.prototype.output=function(t,e,r){return"img"===(r=r||"pdf").toLowerCase()||"image"===r.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},c.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(t,e)}))},c.prototype.outputImg=function(t){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(t){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+t+'" is not supported.'}}))},c.prototype.save=function(t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(t?{filename:t}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},c.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},c.prototype.set=function(t){if("object"!==o(t))return this;var e=Object.keys(t||{}).map((function(e){if(e in c.template.prop)return function(){this.prop[e]=t[e]};switch(e){case"margin":return this.setMargin.bind(this,t.margin);case"jsPDF":return function(){return this.opt.jsPDF=t.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,t.pageSize);default:return function(){this.opt[e]=t[e]}}}),this);return this.then((function(){return this.thenList(e)}))},c.prototype.get=function(t,e){return this.then((function(){var r=t in c.template.prop?this.prop[t]:this.opt[t];return e?e(r):r}))},c.prototype.setMargin=function(t){return this.then((function(){switch(o(t)){case"number":t=[t,t,t,t];case"array":if(2===t.length&&(t=[t[0],t[1],t[0],t[1]]),4===t.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=t})).then(this.setPageSize)},c.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then((function(){(t=t||M.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(t.inner={width:t.width-this.opt.margin[1]-this.opt.margin[3],height:t.height-this.opt.margin[0]-this.opt.margin[2]},t.inner.px={width:e(t.inner.width,t.k),height:e(t.inner.height,t.k)},t.inner.ratio=t.inner.height/t.inner.width),this.prop.pageSize=t}))},c.prototype.setProgress=function(t,e,r,n){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=r&&(this.progress.n=r),null!=n&&(this.progress.stack=n),this.progress.ratio=this.progress.val/this.progress.state,this},c.prototype.updateProgress=function(t,e,r,n){return this.setProgress(t?this.progress.val+t:null,e||null,r?this.progress.n+r:null,n?this.progress.stack.concat(n):null)},c.prototype.then=function(t,e){var r=this;return this.thenCore(t,e,(function(t,e){return r.updateProgress(null,null,1,[t]),Promise.prototype.then.call(this,(function(e){return r.updateProgress(null,t),e})).then(t,e).then((function(t){return r.updateProgress(1),t}))}))},c.prototype.thenCore=function(t,e,r){r=r||Promise.prototype.then;t&&(t=t.bind(this)),e&&(e=e.bind(this));var n=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:c.convert(Object.assign({},this),Promise.prototype),i=r.call(n,t,e);return c.convert(i,this.__proto__)},c.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},c.prototype.thenList=function(t){var e=this;return t.forEach((function(t){e=e.thenCore(t)})),e},c.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return c.convert(e,this)},c.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},c.prototype.error=function(t){return this.then((function(){throw new Error(t)}))},c.prototype.using=c.prototype.set,c.prototype.saveAs=c.prototype.save,c.prototype.export=c.prototype.output,c.prototype.run=c.prototype.then,M.getPageSize=function(t,r,n){if("object"===e(t)){var i=t;t=i.orientation,r=i.unit||r,n=i.format||n}r=r||"mm",n=n||"a4",t=(""+(t||"P")).toLowerCase();var a,o=(""+n).toLowerCase(),s={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(r){case"pt":a=1;break;case"mm":a=72/25.4;break;case"cm":a=72/2.54;break;case"in":a=72;break;case"px":a=.75;break;case"pc":case"em":a=12;break;case"ex":a=6;break;default:throw"Invalid unit: "+r}var c,u=0,l=0;if(s.hasOwnProperty(o))u=s[o][1]/a,l=s[o][0]/a;else try{u=n[1],l=n[0]}catch(t){throw new Error("Invalid format: "+n)}if("p"===t||"portrait"===t)t="p",l>u&&(c=l,l=u,u=c);else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",u>l&&(c=l,l=u,u=c)}return{width:l,height:u,unit:r,k:a,orientation:t}},n.html=function(t,e){(e=e||{}).callback=e.callback||function(){},e.html2canvas=e.html2canvas||{},e.html2canvas.canvas=e.html2canvas.canvas||this.canvas,e.jsPDF=e.jsPDF||this,e.fontFaces=e.fontFaces?e.fontFaces.map(Ct):null;var r=new c(e);return e.worker?r:r.from(t).doCallback()}}(M.API),
/**
   * @license
   * ====================================================================
   * Copyright (c) 2013 Youssef Beddad, youssef.beddad@gmail.com
   *
   * Permission is hereby granted, free of charge, to any person obtaining
   * a copy of this software and associated documentation files (the
   * "Software"), to deal in the Software without restriction, including
   * without limitation the rights to use, copy, modify, merge, publish,
   * distribute, sublicense, and/or sell copies of the Software, and to
   * permit persons to whom the Software is furnished to do so, subject to
   * the following conditions:
   *
   * The above copyright notice and this permission notice shall be
   * included in all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
   * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
   * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
   * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
   * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   * ====================================================================
   */
function(t){var e,r,n;t.addJS=function(t){return n=t,this.internal.events.subscribe("postPutResources",(function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(e+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),r=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+n+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==e&&void 0!==r&&this.internal.out("/Names <</JavaScript "+e+" 0 R>>")})),this}}(M.API),
/**
   * @license
   * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){var e;t.events.push(["postPutResources",function(){var t=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=t.outline.render().split(/\r\n/),i=0;i<n.length;i++){var a=n[i],o=r.exec(a);if(null!=o){var s=o[1];t.internal.newObjectDeferredBegin(s,!1)}t.internal.write(a)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,u=[];for(i=0;i<c;i++){var l=t.internal.newObject();u.push(l);var h=t.internal.getPageInfo(i+1);t.internal.write("<< /D["+h.objId+" 0 R /XYZ null null null]>> endobj")}var f=t.internal.newObject();t.internal.write("<< /Names [ ");for(i=0;i<u.length;i++)t.internal.write("(page_"+(i+1)+")"+u[i]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+f+" 0 R"),t.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(t,e,r){var n={title:e,options:r,children:[]};return null==t&&(t=this.root),t.children.push(n),n},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(e){e.id=t.internal.newObjectDeferred();for(var r=0;r<e.children.length;r++)this.genIds_r(e.children[r])},t.outline.renderRoot=function(t){this.objStart(t),this.line("/Type /Outlines"),t.children.length>0&&(this.line("/First "+this.makeRef(t.children[0])),this.line("/Last "+this.makeRef(t.children[t.children.length-1]))),this.line("/Count "+this.count_r({count:0},t)),this.objEnd()},t.outline.renderItems=function(e){for(var r=this.ctx.pdf.internal.getVerticalCoordinateString,n=0;n<e.children.length;n++){var i=e.children[n];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(e)),n>0&&this.line("/Prev "+this.makeRef(e.children[n-1])),n<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[n+1])),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var a=this.count=this.count_r({count:0},i);if(a>0&&this.line("/Count "+a),i.options&&i.options.pageNumber){var o=t.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+r(0)+" 0]")}this.objEnd()}for(var s=0;s<e.children.length;s++)this.renderItems(e.children[s])},t.outline.line=function(t){this.ctx.val+=t+"\r\n"},t.outline.makeRef=function(t){return t.id+" 0 R"},t.outline.makeString=function(e){return"("+t.internal.pdfEscape(e)+")"},t.outline.objStart=function(t){this.ctx.val+="\r\n"+t.id+" 0 obj\r\n<<\r\n"},t.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},t.outline.count_r=function(t,e){for(var r=0;r<e.children.length;r++)t.count++,this.count_r(t,e.children[r]);return t.count}}])}(M.API),
/**
   * @license
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(t,r,n,i,a,o){var s,c=this.decode.DCT_DECODE,u=null;if("string"==typeof t||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=a||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(s=function(t){for(var r,n=256*t.charCodeAt(4)+t.charCodeAt(5),i=t.length,a={width:0,height:0,numcomponents:1},o=4;o<i;o+=2){if(o+=n,-1!==e.indexOf(t.charCodeAt(o+1))){r=256*t.charCodeAt(o+5)+t.charCodeAt(o+6),a={width:256*t.charCodeAt(o+7)+t.charCodeAt(o+8),height:r,numcomponents:t.charCodeAt(o+9)};break}n=256*t.charCodeAt(o+2)+t.charCodeAt(o+3)}return a}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;case 3:o=this.color_spaces.DEVICE_RGB}u={data:t,width:s.width,height:s.height,colorSpace:o,bitsPerComponent:8,filter:c,index:r,alias:n}}return u}}(M.API);var ke,Fe,Ie,Ce,je,Oe=function(){var t,e,n;function i(t){var e,r,n,i,a,o,s,c,u,l,h,f,d,p;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},o=null;;){switch(e=this.readUInt32(),u=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(String.fromCharCode(this.data[this.pos++]));return e}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(e);break;case"fcTL":o&&this.animation.frames.push(o),this.pos+=4,o={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},a=this.readUInt16(),i=this.readUInt16()||100,o.delay=1e3*a/i,o.disposeOp=this.data[this.pos++],o.blendOp=this.data[this.pos++],o.data=[];break;case"IDAT":case"fdAT":for("fdAT"===u&&(this.pos+=4,e-=4),t=(null!=o?o.data:void 0)||this.imgData,f=0;0<=e?f<e:f>e;0<=e?++f:--f)t.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(n=this.palette.length/3,this.transparency.indexed=this.read(e),this.transparency.indexed.length>n)throw new Error("More transparent colors than palette size");if((l=n-this.transparency.indexed.length)>0)for(d=0;0<=l?d<l:d>l;0<=l?++d:--d)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(e)[0];break;case 2:this.transparency.rgb=this.read(e)}break;case"tEXt":s=(h=this.read(e)).indexOf(0),c=String.fromCharCode.apply(String,h.slice(0,s)),this.text[c]=String.fromCharCode.apply(String,h.slice(s+1));break;case"IEND":return o&&this.animation.frames.push(o),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(p=this.colorType)||6===p,r=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*r,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}i.prototype.read=function(t){var e,r;for(r=[],e=0;0<=t?e<t:e>t;0<=t?++e:--e)r.push(this.data[this.pos++]);return r},i.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.decodePixels=function(t){var e=this.pixelBitlength/8,r=new Uint8Array(this.width*this.height*e),n=0,i=this;if(null==t&&(t=this.imgData),0===t.length)return new Uint8Array(0);function a(a,o,s,c){var u,l,h,f,d,p,g,m,v,b,y,w,N,L,A,x,S,_,P,k,F,I=Math.ceil((i.width-a)/s),C=Math.ceil((i.height-o)/c),j=i.width==I&&i.height==C;for(L=e*I,w=j?r:new Uint8Array(L*C),p=t.length,N=0,l=0;N<C&&n<p;){switch(t[n++]){case 0:for(f=S=0;S<L;f=S+=1)w[l++]=t[n++];break;case 1:for(f=_=0;_<L;f=_+=1)u=t[n++],d=f<e?0:w[l-e],w[l++]=(u+d)%256;break;case 2:for(f=P=0;P<L;f=P+=1)u=t[n++],h=(f-f%e)/e,A=N&&w[(N-1)*L+h*e+f%e],w[l++]=(A+u)%256;break;case 3:for(f=k=0;k<L;f=k+=1)u=t[n++],h=(f-f%e)/e,d=f<e?0:w[l-e],A=N&&w[(N-1)*L+h*e+f%e],w[l++]=(u+Math.floor((d+A)/2))%256;break;case 4:for(f=F=0;F<L;f=F+=1)u=t[n++],h=(f-f%e)/e,d=f<e?0:w[l-e],0===N?A=x=0:(A=w[(N-1)*L+h*e+f%e],x=h&&w[(N-1)*L+(h-1)*e+f%e]),g=d+A-x,m=Math.abs(g-d),b=Math.abs(g-A),y=Math.abs(g-x),v=m<=b&&m<=y?d:b<=y?A:x,w[l++]=(u+v)%256;break;default:throw new Error("Invalid filter algorithm: "+t[n-1])}if(!j){var O=((o+N*c)*i.width+a)*e,B=N*L;for(f=0;f<I;f+=1){for(var M=0;M<e;M+=1)r[O++]=w[B++];O+=(s-1)*e}}N++}}return t=Pe(t),1==i.interlaceMethod?(a(0,0,8,8),a(4,0,8,8),a(0,4,4,8),a(2,0,4,4),a(0,2,2,4),a(1,0,2,2),a(0,1,1,2)):a(0,0,1,1),r},i.prototype.decodePalette=function(){var t,e,r,n,i,a,o,s,c;for(r=this.palette,a=this.transparency.indexed||[],i=new Uint8Array((a.length||0)+r.length),n=0,t=0,e=o=0,s=r.length;o<s;e=o+=3)i[n++]=r[e],i[n++]=r[e+1],i[n++]=r[e+2],i[n++]=null!=(c=a[t++])?c:255;return i},i.prototype.copyToImageData=function(t,e){var r,n,i,a,o,s,c,u,l,h,f;if(n=this.colors,l=null,r=this.hasAlphaChannel,this.palette.length&&(l=null!=(f=this._decodedPalette)?f:this._decodedPalette=this.decodePalette(),n=4,r=!0),u=(i=t.data||t).length,o=l||e,a=s=0,1===n)for(;a<u;)c=l?4*e[a/4]:s,h=o[c++],i[a++]=h,i[a++]=h,i[a++]=h,i[a++]=r?o[c++]:255,s=c;else for(;a<u;)c=l?4*e[a/4]:s,i[a++]=o[c++],i[a++]=o[c++],i[a++]=o[c++],i[a++]=r?o[c++]:255,s=c},i.prototype.decode=function(){var t;return t=new Uint8Array(this.width*this.height*4),this.copyToImageData(t,this.decodePixels()),t};var a=function(){if("[object Window]"===Object.prototype.toString.call(r)){try{e=r.document.createElement("canvas"),n=e.getContext("2d")}catch(t){return!1}return!0}return!1};return a(),t=function(t){var r;if(!0===a())return n.width=t.width,n.height=t.height,n.clearRect(0,0,t.width,t.height),n.putImageData(t,0,0),(r=new Image).src=e.toDataURL(),r;throw new Error("This method requires a Browser with Canvas-capability.")},i.prototype.decodeFrames=function(e){var r,n,i,a,o,s,c,u;if(this.animation){for(u=[],n=o=0,s=(c=this.animation.frames).length;o<s;n=++o)r=c[n],i=e.createImageData(r.width,r.height),a=this.decodePixels(new Uint8Array(r.data)),this.copyToImageData(i,a),r.imageData=i,u.push(r.image=t(i));return u}},i.prototype.renderFrame=function(t,e){var r,n,i;return r=(n=this.animation.frames)[e],i=n[e-1],0===e&&t.clearRect(0,0,this.width,this.height),1===(null!=i?i.disposeOp:void 0)?t.clearRect(i.xOffset,i.yOffset,i.width,i.height):2===(null!=i?i.disposeOp:void 0)&&t.putImageData(i.imageData,i.xOffset,i.yOffset),0===r.blendOp&&t.clearRect(r.xOffset,r.yOffset,r.width,r.height),t.drawImage(r.image,r.xOffset,r.yOffset)},i.prototype.animate=function(t){var e,r,n,i,a,o,s=this;return r=0,o=this.animation,i=o.numFrames,n=o.frames,a=o.numPlays,(e=function(){var o,c;if(o=r++%i,c=n[o],s.renderFrame(t,o),i>1&&r/i<a)return s.animation._timeout=setTimeout(e,c.delay)})()},i.prototype.stopAnimation=function(){var t;return clearTimeout(null!=(t=this.animation)?t._timeout:void 0)},i.prototype.render=function(t){var e,r;return t._png&&t._png.stopAnimation(),t._png=this,t.width=this.width,t.height=this.height,e=t.getContext("2d"),this.animation?(this.decodeFrames(e),this.animate(e)):(r=e.createImageData(this.width,this.height),this.copyToImageData(r,this.decodePixels()),e.putImageData(r,0,0))},i}();
/**
   * @license
   *
   * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
   *
   * Permission is hereby granted, free of charge, to any person obtaining
   * a copy of this software and associated documentation files (the
   * "Software"), to deal in the Software without restriction, including
   * without limitation the rights to use, copy, modify, merge, publish,
   * distribute, sublicense, and/or sell copies of the Software, and to
   * permit persons to whom the Software is furnished to do so, subject to
   * the following conditions:
   *
   * The above copyright notice and this permission notice shall be
   * included in all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
   * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
   * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
   * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
   * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   * ====================================================================
   */
/**
   * @license
   * (c) Dean McNamee <dean@gmail.com>, 2013.
   *
   * https://github.com/deanm/omggif
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to
   * deal in the Software without restriction, including without limitation the
   * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
   * sell copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
   * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
   * IN THE SOFTWARE.
   *
   * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
   * including animation and compression.  It does not rely on any specific
   * underlying system, so should run in the browser, Node, or Plask.
   */
function Be(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw new Error("Invalid GIF 87a/89a header.");var r=t[e++]|t[e++]<<8,n=t[e++]|t[e++]<<8,i=t[e++],a=i>>7,o=1<<(7&i)+1;t[e++];t[e++];var s=null,c=null;a&&(s=e,c=o,e+=3*o);var u=!0,l=[],h=0,f=null,d=0,p=null;for(this.width=r,this.height=n;u&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,p=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((P=t[e++])>=0))throw Error("Invalid block size");if(0===P)break;e+=P}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var g=t[e++];h=t[e++]|t[e++]<<8,f=t[e++],0==(1&g)&&(f=null),d=g>>2&7,e++;break;case 254:for(;;){if(!((P=t[e++])>=0))throw Error("Invalid block size");if(0===P)break;e+=P}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var m=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,w=t[e++],N=w>>6&1,L=1<<(7&w)+1,A=s,x=c,S=!1;if(w>>7){S=!0;A=e,x=L,e+=3*L}var _=e;for(e++;;){var P;if(!((P=t[e++])>=0))throw Error("Invalid block size");if(0===P)break;e+=P}l.push({x:m,y:v,width:b,height:y,has_local_palette:S,palette_offset:A,palette_size:x,data_offset:_,data_length:e-_,transparent_index:f,interlaced:!!N,delay:h,disposal:d});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return p},this.frameInfo=function(t){if(t<0||t>=l.length)throw new Error("Frame index out of range.");return l[t]},this.decodeAndBlitFrameBGRA=function(e,n){var i=this.frameInfo(e),a=i.width*i.height,o=new Uint8Array(a);Me(t,i.data_offset,o,a);var s=i.palette_offset,c=i.transparent_index;null===c&&(c=256);var u=i.width,l=r-u,h=u,f=4*(i.y*r+i.x),d=4*((i.y+i.height)*r+i.x),p=f,g=4*l;!0===i.interlaced&&(g+=4*r*7);for(var m=8,v=0,b=o.length;v<b;++v){var y=o[v];if(0===h&&(h=u,(p+=g)>=d&&(g=4*l+4*r*(m-1),p=f+(u+l)*(m<<1),m>>=1)),y===c)p+=4;else{var w=t[s+3*y],N=t[s+3*y+1],L=t[s+3*y+2];n[p++]=L,n[p++]=N,n[p++]=w,n[p++]=255}--h}},this.decodeAndBlitFrameRGBA=function(e,n){var i=this.frameInfo(e),a=i.width*i.height,o=new Uint8Array(a);Me(t,i.data_offset,o,a);var s=i.palette_offset,c=i.transparent_index;null===c&&(c=256);var u=i.width,l=r-u,h=u,f=4*(i.y*r+i.x),d=4*((i.y+i.height)*r+i.x),p=f,g=4*l;!0===i.interlaced&&(g+=4*r*7);for(var m=8,v=0,b=o.length;v<b;++v){var y=o[v];if(0===h&&(h=u,(p+=g)>=d&&(g=4*l+4*r*(m-1),p=f+(u+l)*(m<<1),m>>=1)),y===c)p+=4;else{var w=t[s+3*y],N=t[s+3*y+1],L=t[s+3*y+2];n[p++]=w,n[p++]=N,n[p++]=L,n[p++]=255}--h}}}function Me(t,e,r,n){for(var a=t[e++],o=1<<a,s=o+1,c=s+1,u=a+1,l=(1<<u)-1,h=0,f=0,d=0,p=t[e++],g=new Int32Array(4096),m=null;;){for(;h<16&&0!==p;)f|=t[e++]<<h,h+=8,1===p?p=t[e++]:--p;if(h<u)break;var v=f&l;if(f>>=u,h-=u,v!==o){if(v===s)break;for(var b=v<c?v:m,y=0,w=b;w>o;)w=g[w]>>8,++y;var N=w;if(d+y+(b!==v?1:0)>n)return void i.log("Warning, gif stream longer than expected.");r[d++]=N;var L=d+=y;for(b!==v&&(r[d++]=N),w=b;y--;)w=g[w],r[--L]=255&w,w>>=8;null!==m&&c<4096&&(g[c++]=m<<8|N,c>=l+1&&u<12&&(++u,l=l<<1|1)),m=v}else c=s+1,l=(1<<(u=a+1))-1,m=null}return d!==n&&i.log("Warning, gif stream shorter than expected."),r}
/**
   * @license
    Copyright (c) 2008, Adobe Systems Incorporated
    All rights reserved.

    Redistribution and use in source and binary forms, with or without 
    modification, are permitted provided that the following conditions are
    met:

    * Redistributions of source code must retain the above copyright notice, 
      this list of conditions and the following disclaimer.
    
    * Redistributions in binary form must reproduce the above copyright
      notice, this list of conditions and the following disclaimer in the 
      documentation and/or other materials provided with the distribution.
    
    * Neither the name of Adobe Systems Incorporated nor the names of its 
      contributors may be used to endorse or promote products derived from 
      this software without specific prior written permission.

    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
    IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
    THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
    CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
    EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
    LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
    NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */function Ee(t){var e,r,n,i,a,o=Math.floor,s=new Array(64),c=new Array(64),u=new Array(64),l=new Array(64),h=new Array(65535),f=new Array(65535),d=new Array(64),p=new Array(64),g=[],m=0,v=7,b=new Array(64),y=new Array(64),w=new Array(64),N=new Array(256),L=new Array(2048),A=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],x=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],S=[0,1,2,3,4,5,6,7,8,9,10,11],_=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],P=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],k=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],F=[0,1,2,3,4,5,6,7,8,9,10,11],I=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],C=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function j(t,e){for(var r=0,n=0,i=new Array,a=1;a<=16;a++){for(var o=1;o<=t[a];o++)i[e[n]]=[],i[e[n]][0]=r,i[e[n]][1]=a,n++,r++;r*=2}return i}function O(t){for(var e=t[0],r=t[1]-1;r>=0;)e&1<<r&&(m|=1<<v),r--,--v<0&&(255==m?(B(255),B(0)):B(m),v=7,m=0)}function B(t){g.push(t)}function M(t){B(t>>8&255),B(255&t)}function E(t,e,r,n,i){for(var a,o=i[0],s=i[240],c=function(t,e){var r,n,i,a,o,s,c,u,l,h,f=0;for(l=0;l<8;++l){r=t[f],n=t[f+1],i=t[f+2],a=t[f+3],o=t[f+4],s=t[f+5],c=t[f+6];var p=r+(u=t[f+7]),g=r-u,m=n+c,v=n-c,b=i+s,y=i-s,w=a+o,N=a-o,L=p+w,A=p-w,x=m+b,S=m-b;t[f]=L+x,t[f+4]=L-x;var _=.707106781*(S+A);t[f+2]=A+_,t[f+6]=A-_;var P=.382683433*((L=N+y)-(S=v+g)),k=.5411961*L+P,F=1.306562965*S+P,I=.707106781*(x=y+v),C=g+I,j=g-I;t[f+5]=j+k,t[f+3]=j-k,t[f+1]=C+F,t[f+7]=C-F,f+=8}for(f=0,l=0;l<8;++l){r=t[f],n=t[f+8],i=t[f+16],a=t[f+24],o=t[f+32],s=t[f+40],c=t[f+48];var O=r+(u=t[f+56]),B=r-u,M=n+c,E=n-c,q=i+s,D=i-s,R=a+o,T=a-o,U=O+R,z=O-R,H=M+q,W=M-q;t[f]=U+H,t[f+32]=U-H;var V=.707106781*(W+z);t[f+16]=z+V,t[f+48]=z-V;var G=.382683433*((U=T+D)-(W=E+B)),Y=.5411961*U+G,J=1.306562965*W+G,X=.707106781*(H=D+E),K=B+X,Z=B-X;t[f+40]=Z+Y,t[f+24]=Z-Y,t[f+8]=K+J,t[f+56]=K-J,f++}for(l=0;l<64;++l)h=t[l]*e[l],d[l]=h>0?h+.5|0:h-.5|0;return d}(t,e),u=0;u<64;++u)p[A[u]]=c[u];var l=p[0]-r;r=p[0],0==l?O(n[0]):(O(n[f[a=32767+l]]),O(h[a]));for(var g=63;g>0&&0==p[g];)g--;if(0==g)return O(o),r;for(var m,v=1;v<=g;){for(var b=v;0==p[v]&&v<=g;)++v;var y=v-b;if(y>=16){m=y>>4;for(var w=1;w<=m;++w)O(s);y&=15}a=32767+p[v],O(i[(y<<4)+f[a]]),O(h[a]),v++}return 63!=g&&O(o),r}function q(t){(t=Math.min(Math.max(t,1),100),a!=t)&&(!function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],r=0;r<64;r++){var n=o((e[r]*t+50)/100);n=Math.min(Math.max(n,1),255),s[A[r]]=n}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],a=0;a<64;a++){var h=o((i[a]*t+50)/100);h=Math.min(Math.max(h,1),255),c[A[a]]=h}for(var f=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d=0,p=0;p<8;p++)for(var g=0;g<8;g++)u[d]=1/(s[A[d]]*f[p]*f[g]*8),l[d]=1/(c[A[d]]*f[p]*f[g]*8),d++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),a=t)}this.encode=function(t,a){a&&q(a),g=new Array,m=0,v=7,M(65496),M(65504),M(16),B(74),B(70),B(73),B(70),B(0),B(1),B(1),B(0),M(1),M(1),B(0),B(0),function(){M(65499),M(132),B(0);for(var t=0;t<64;t++)B(s[t]);B(1);for(var e=0;e<64;e++)B(c[e])}(),function(t,e){M(65472),M(17),B(8),M(e),M(t),B(3),B(1),B(17),B(0),B(2),B(17),B(1),B(3),B(17),B(1)}(t.width,t.height),function(){M(65476),M(418),B(0);for(var t=0;t<16;t++)B(x[t+1]);for(var e=0;e<=11;e++)B(S[e]);B(16);for(var r=0;r<16;r++)B(_[r+1]);for(var n=0;n<=161;n++)B(P[n]);B(1);for(var i=0;i<16;i++)B(k[i+1]);for(var a=0;a<=11;a++)B(F[a]);B(17);for(var o=0;o<16;o++)B(I[o+1]);for(var s=0;s<=161;s++)B(C[s])}(),M(65498),M(12),B(3),B(1),B(0),B(2),B(17),B(3),B(17),B(0),B(63),B(0);var o=0,h=0,f=0;m=0,v=7,this.encode.displayName="_encode_";for(var d,p,N,A,j,D,R,T,U,z=t.data,H=t.width,W=t.height,V=4*H,G=0;G<W;){for(d=0;d<V;){for(j=V*G+d,R=-1,T=0,U=0;U<64;U++)D=j+(T=U>>3)*V+(R=4*(7&U)),G+T>=W&&(D-=V*(G+1+T-W)),d+R>=V&&(D-=d+R-V+4),p=z[D++],N=z[D++],A=z[D++],b[U]=(L[p]+L[N+256>>0]+L[A+512>>0]>>16)-128,y[U]=(L[p+768>>0]+L[N+1024>>0]+L[A+1280>>0]>>16)-128,w[U]=(L[p+1280>>0]+L[N+1536>>0]+L[A+1792>>0]>>16)-128;o=E(b,u,o,e,n),h=E(y,l,h,r,i),f=E(w,l,f,r,i),d+=32}G+=8}if(v>=0){var Y=[];Y[1]=v+1,Y[0]=(1<<v+1)-1,O(Y)}return M(65497),new Uint8Array(g)},t=t||50,function(){for(var t=String.fromCharCode,e=0;e<256;e++)N[e]=t(e)}(),e=j(x,S),r=j(k,F),n=j(_,P),i=j(I,C),function(){for(var t=1,e=2,r=1;r<=15;r++){for(var n=t;n<e;n++)f[32767+n]=r,h[32767+n]=[],h[32767+n][1]=r,h[32767+n][0]=n;for(var i=-(e-1);i<=-t;i++)f[32767+i]=r,h[32767+i]=[],h[32767+i][1]=r,h[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)L[t]=19595*t,L[t+256>>0]=38470*t,L[t+512>>0]=7471*t+32768,L[t+768>>0]=-11059*t,L[t+1024>>0]=-21709*t,L[t+1280>>0]=32768*t+8421375,L[t+1536>>0]=-27439*t,L[t+1792>>0]=-5329*t}(),q(t)}
/**
   * @license
   * Copyright (c) 2017 Aras Abbasi
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */function qe(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function De(t){function e(t){if(!t)throw Error("assert :P")}function r(t,e,r){for(var n=0;4>n;n++)if(t[e+n]!=r.charCodeAt(n))return!0;return!1}function n(t,e,r,n,i){for(var a=0;a<i;a++)t[e+a]=r[n+a]}function i(t,e,r,n){for(var i=0;i<n;i++)t[e+i]=r}function a(t){return new Int32Array(t)}function o(t,e){for(var r=[],n=0;n<t;n++)r.push(new e);return r}function s(t,e){var r=[];return function t(r,n,i){for(var a=i[n],o=0;o<a&&(r.push(i.length>n+1?[]:new e),!(i.length<n+1));o++)t(r[o],n+1,i)}(r,0,t),r}var c=function(){var t=this;function c(t,e){for(var r=1<<e-1>>>0;t&r;)r>>>=1;return r?(t&r-1)+r:t}function u(t,r,n,i,a){e(!(i%n));do{t[r+(i-=n)]=a}while(0<i)}function l(t,r,n,i,o){if(e(2328>=o),512>=o)var s=a(512);else if(null==(s=a(o)))return 0;return function(t,r,n,i,o,s){var l,f,d=r,p=1<<n,g=a(16),m=a(16);for(e(0!=o),e(null!=i),e(null!=t),e(0<n),f=0;f<o;++f){if(15<i[f])return 0;++g[i[f]]}if(g[0]==o)return 0;for(m[1]=0,l=1;15>l;++l){if(g[l]>1<<l)return 0;m[l+1]=m[l]+g[l]}for(f=0;f<o;++f)l=i[f],0<i[f]&&(s[m[l]++]=f);if(1==m[15])return(i=new h).g=0,i.value=s[0],u(t,d,1,p,i),p;var v,b=-1,y=p-1,w=0,N=1,L=1,A=1<<n;for(f=0,l=1,o=2;l<=n;++l,o<<=1){if(N+=L<<=1,0>(L-=g[l]))return 0;for(;0<g[l];--g[l])(i=new h).g=l,i.value=s[f++],u(t,d+w,o,A,i),w=c(w,l)}for(l=n+1,o=2;15>=l;++l,o<<=1){if(N+=L<<=1,0>(L-=g[l]))return 0;for(;0<g[l];--g[l]){if(i=new h,(w&y)!=b){for(d+=A,v=1<<(b=l)-n;15>b&&!(0>=(v-=g[b]));)++b,v<<=1;p+=A=1<<(v=b-n),t[r+(b=w&y)].g=v+n,t[r+b].value=d-r-b}i.g=l-n,i.value=s[f++],u(t,d+(w>>n),o,A,i),w=c(w,l)}}return N!=2*m[15]-1?0:p}(t,r,n,i,o,s)}function h(){this.value=this.g=0}function f(){this.value=this.g=0}function d(){this.G=o(5,h),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Dr,f)}function p(t,r,n,i){e(null!=t),e(null!=r),e(2147483648>i),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=r,t.pa=n,t.Jd=r,t.Yc=n+i,t.Zc=4<=i?n+i-4+1:n,_(t)}function g(t,e){for(var r=0;0<e--;)r|=k(t,128)<<e;return r}function m(t,e){var r=g(t,e);return P(t)?-r:r}function v(t,r,n,i){var a,o=0;for(e(null!=t),e(null!=r),e(4294967288>i),t.Sb=i,t.Ra=0,t.u=0,t.h=0,4<i&&(i=4),a=0;a<i;++a)o+=r[n+a]<<8*a;t.Ra=o,t.bb=i,t.oa=r,t.pa=n}function b(t){for(;8<=t.u&&t.bb<t.Sb;)t.Ra>>>=8,t.Ra+=t.oa[t.pa+t.bb]<<Ur-8>>>0,++t.bb,t.u-=8;A(t)&&(t.h=1,t.u=0)}function y(t,r){if(e(0<=r),!t.h&&r<=Tr){var n=L(t)&Rr[r];return t.u+=r,b(t),n}return t.h=1,t.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function N(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function L(t){return t.Ra>>>(t.u&Ur-1)>>>0}function A(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>Ur}function x(t,e){t.u=e,t.h=A(t)}function S(t){t.u>=zr&&(e(t.u>=zr),b(t))}function _(t){e(null!=t&&null!=t.oa),t.pa<t.Zc?(t.I=(t.oa[t.pa++]|t.I<<8)>>>0,t.b+=8):(e(null!=t&&null!=t.oa),t.pa<t.Yc?(t.b+=8,t.I=t.oa[t.pa++]|t.I<<8):t.Ka?t.b=0:(t.I<<=8,t.b+=8,t.Ka=1))}function P(t){return g(t,1)}function k(t,e){var r=t.Ca;0>t.b&&_(t);var n=t.b,i=r*e>>>8,a=(t.I>>>n>i)+0;for(a?(r-=i,t.I-=i+1<<n>>>0):r=i+1,n=r,i=0;256<=n;)i+=8,n>>=8;return n=7^i+Hr[n],t.b-=n,t.Ca=(r<<n)-1,a}function F(t,e,r){t[e+0]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=r>>0&255}function I(t,e){return t[e+0]<<0|t[e+1]<<8}function C(t,e){return I(t,e)|t[e+2]<<16}function j(t,e){return I(t,e)|I(t,e+2)<<16}function O(t,r){var n=1<<r;return e(null!=t),e(0<r),t.X=a(n),null==t.X?0:(t.Mb=32-r,t.Xa=r,1)}function B(t,r){e(null!=t),e(null!=r),e(t.Xa==r.Xa),n(r.X,0,t.X,0,1<<r.Xa)}function M(){this.X=[],this.Xa=this.Mb=0}function E(t,r,n,i){e(null!=n),e(null!=i);var a=n[0],o=i[0];return 0==a&&(a=(t*o+r/2)/r),0==o&&(o=(r*a+t/2)/t),0>=a||0>=o?0:(n[0]=a,i[0]=o,1)}function q(t,e){return t+(1<<e)-1>>>e}function D(t,e){return((4278255360&t)+(4278255360&e)>>>0&4278255360)+((16711935&t)+(16711935&e)>>>0&16711935)>>>0}function R(e,r){t[r]=function(r,n,i,a,o,s,c){var u;for(u=0;u<o;++u){var l=t[e](s[c+u-1],i,a+u);s[c+u]=D(r[n+u],l)}}}function T(){this.ud=this.hd=this.jd=0}function U(t,e){return((4278124286&(t^e))>>>1)+(t&e)>>>0}function z(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function H(t,e){return z(t+(t-e+.5>>1))}function W(t,e,r){return Math.abs(e-r)-Math.abs(t-r)}function V(t,e,r,n,i,a,o){for(n=a[o-1],r=0;r<i;++r)a[o+r]=n=D(t[e+r],n)}function G(t,e,r,n,i){var a;for(a=0;a<r;++a){var o=t[e+a],s=o>>8&255,c=16711935&(c=(c=16711935&o)+((s<<16)+s));n[i+a]=(4278255360&o)+c>>>0}}function Y(t,e){e.jd=t>>0&255,e.hd=t>>8&255,e.ud=t>>16&255}function J(t,e,r,n,i,a){var o;for(o=0;o<n;++o){var s=e[r+o],c=s>>>8,u=s,l=255&(l=(l=s>>>16)+((t.jd<<24>>24)*(c<<24>>24)>>>5));u=255&(u=(u=u+((t.hd<<24>>24)*(c<<24>>24)>>>5))+((t.ud<<24>>24)*(l<<24>>24)>>>5));i[a+o]=(4278255360&s)+(l<<16)+u}}function X(e,r,n,i,a){t[r]=function(t,e,r,n,o,s,c,u,l){for(n=c;n<u;++n)for(c=0;c<l;++c)o[s++]=a(r[i(t[e++])])},t[e]=function(e,r,o,s,c,u,l){var h=8>>e.b,f=e.Ea,d=e.K[0],p=e.w;if(8>h)for(e=(1<<e.b)-1,p=(1<<h)-1;r<o;++r){var g,m=0;for(g=0;g<f;++g)g&e||(m=i(s[c++])),u[l++]=a(d[m&p]),m>>=h}else t["VP8LMapColor"+n](s,c,d,p,u,l,r,o,f)}}function K(t,e,r,n,i){for(r=e+r;e<r;){var a=t[e++];n[i++]=a>>16&255,n[i++]=a>>8&255,n[i++]=a>>0&255}}function Z(t,e,r,n,i){for(r=e+r;e<r;){var a=t[e++];n[i++]=a>>16&255,n[i++]=a>>8&255,n[i++]=a>>0&255,n[i++]=a>>24&255}}function $(t,e,r,n,i){for(r=e+r;e<r;){var a=(o=t[e++])>>16&240|o>>12&15,o=o>>0&240|o>>28&15;n[i++]=a,n[i++]=o}}function Q(t,e,r,n,i){for(r=e+r;e<r;){var a=(o=t[e++])>>16&248|o>>13&7,o=o>>5&224|o>>3&31;n[i++]=a,n[i++]=o}}function tt(t,e,r,n,i){for(r=e+r;e<r;){var a=t[e++];n[i++]=a>>0&255,n[i++]=a>>8&255,n[i++]=a>>16&255}}function et(t,e,r,i,a,o){if(0==o)for(r=e+r;e<r;)F(i,((o=t[e++])[0]>>24|o[1]>>8&65280|o[2]<<8&16711680|o[3]<<24)>>>0),a+=32;else n(i,a,t,e,r)}function rt(e,r){t[r][0]=t[e+"0"],t[r][1]=t[e+"1"],t[r][2]=t[e+"2"],t[r][3]=t[e+"3"],t[r][4]=t[e+"4"],t[r][5]=t[e+"5"],t[r][6]=t[e+"6"],t[r][7]=t[e+"7"],t[r][8]=t[e+"8"],t[r][9]=t[e+"9"],t[r][10]=t[e+"10"],t[r][11]=t[e+"11"],t[r][12]=t[e+"12"],t[r][13]=t[e+"13"],t[r][14]=t[e+"0"],t[r][15]=t[e+"0"]}function nt(t){return t==Hn||t==Wn||t==Vn||t==Gn}function it(){this.eb=[],this.size=this.A=this.fb=0}function at(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ot(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new it,this.f.kb=new at,this.sd=null}function st(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ct(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ut(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function lt(t,e){var r=t.T,i=e.ba.f.RGBA,a=i.eb,o=i.fb+t.ka*i.A,s=vi[e.ba.S],c=t.y,u=t.O,l=t.f,h=t.N,f=t.ea,d=t.W,p=e.cc,g=e.dc,m=e.Mc,v=e.Nc,b=t.ka,y=t.ka+t.T,w=t.U,N=w+1>>1;for(0==b?s(c,u,null,null,l,h,f,d,l,h,f,d,a,o,null,null,w):(s(e.ec,e.fc,c,u,p,g,m,v,l,h,f,d,a,o-i.A,a,o,w),++r);b+2<y;b+=2)p=l,g=h,m=f,v=d,h+=t.Rc,d+=t.Rc,o+=2*i.A,s(c,(u+=2*t.fa)-t.fa,c,u,p,g,m,v,l,h,f,d,a,o-i.A,a,o,w);return u+=t.fa,t.j+y<t.o?(n(e.ec,e.fc,c,u,w),n(e.cc,e.dc,l,h,N),n(e.Mc,e.Nc,f,d,N),r--):1&y||s(c,u,null,null,l,h,f,d,l,h,f,d,a,o+i.A,null,null,w),r}function ht(t,r,n){var i=t.F,a=[t.J];if(null!=i){var o=t.U,s=r.ba.S,c=s==Tn||s==Vn;r=r.ba.f.RGBA;var u=[0],l=t.ka;u[0]=t.T,t.Kb&&(0==l?--u[0]:(--l,a[0]-=t.width),t.j+t.ka+t.T==t.o&&(u[0]=t.o-t.j-l));var h=r.eb;l=r.fb+l*r.A;t=Sn(i,a[0],t.width,o,u,h,l+(c?0:3),r.A),e(n==u),t&&nt(s)&&An(h,l,c,o,u,r.A)}return 0}function ft(t){var e=t.ma,r=e.ba.S,n=11>r,i=r==qn||r==Rn||r==Tn||r==Un||12==r||nt(r);if(e.memory=null,e.Ib=null,e.Jb=null,e.Nd=null,!Mr(e.Oa,t,i?11:12))return 0;if(i&&nt(r)&&br(),t.da)alert("todo:use_scaling");else{if(n){if(e.Ib=ut,t.Kb){if(r=t.U+1>>1,e.memory=a(t.U+2*r),null==e.memory)return 0;e.ec=e.memory,e.fc=0,e.cc=e.ec,e.dc=e.fc+t.U,e.Mc=e.cc,e.Nc=e.dc+r,e.Ib=lt,br()}}else alert("todo:EmitYUV");i&&(e.Jb=ht,n&&mr())}if(n&&!Ci){for(t=0;256>t;++t)ji[t]=89858*(t-128)+_i>>Si,Mi[t]=-22014*(t-128)+_i,Bi[t]=-45773*(t-128),Oi[t]=113618*(t-128)+_i>>Si;for(t=Pi;t<ki;++t)e=76283*(t-16)+_i>>Si,Ei[t-Pi]=Vt(e,255),qi[t-Pi]=Vt(e+8>>4,15);Ci=1}return 1}function dt(t){var r=t.ma,n=t.U,i=t.T;return e(!(1&t.ka)),0>=n||0>=i?0:(n=r.Ib(t,r),null!=r.Jb&&r.Jb(t,r,n),r.Dc+=n,1)}function pt(t){t.ma.memory=null}function gt(t,e,r,n){return 47!=y(t,8)?0:(e[0]=y(t,14)+1,r[0]=y(t,14)+1,n[0]=y(t,1),0!=y(t,3)?0:!t.h)}function mt(t,e){if(4>t)return t+1;var r=t-2>>1;return(2+(1&t)<<r)+y(e,r)+1}function vt(t,e){return 120<e?e-120:1<=(r=((r=$n[e-1])>>4)*t+(8-(15&r)))?r:1;var r}function bt(t,e,r){var n=L(r),i=t[e+=255&n].g-8;return 0<i&&(x(r,r.u+8),n=L(r),e+=t[e].value,e+=n&(1<<i)-1),x(r,r.u+t[e].g),t[e].value}function yt(t,r,n){return n.g+=t.g,n.value+=t.value<<r>>>0,e(8>=n.g),t.g}function wt(t,r,n){var i=t.xc;return e((r=0==i?0:t.vc[t.md*(n>>i)+(r>>i)])<t.Wb),t.Ya[r]}function Nt(t,r,i,a){var o=t.ab,s=t.c*r,c=t.C;r=c+r;var u=i,l=a;for(a=t.Ta,i=t.Ua;0<o--;){var h=t.gc[o],f=c,d=r,p=u,g=l,m=(l=a,u=i,h.Ea);switch(e(f<d),e(d<=h.nc),h.hc){case 2:Gr(p,g,(d-f)*m,l,u);break;case 0:var v=f,b=d,y=l,w=u,N=(_=h).Ea;0==v&&(Wr(p,g,null,null,1,y,w),V(p,g+1,0,0,N-1,y,w+1),g+=N,w+=N,++v);for(var L=1<<_.b,A=L-1,x=q(N,_.b),S=_.K,_=_.w+(v>>_.b)*x;v<b;){var P=S,k=_,F=1;for(Vr(p,g,y,w-N,1,y,w);F<N;){var I=(F&~A)+L;I>N&&(I=N),(0,Zr[P[k++]>>8&15])(p,g+ +F,y,w+F-N,I-F,y,w+F),F=I}g+=N,w+=N,++v&A||(_+=x)}d!=h.nc&&n(l,u-m,l,u+(d-f-1)*m,m);break;case 1:for(m=p,b=g,N=(p=h.Ea)-(w=p&~(y=(g=1<<h.b)-1)),v=q(p,h.b),L=h.K,h=h.w+(f>>h.b)*v;f<d;){for(A=L,x=h,S=new T,_=b+w,P=b+p;b<_;)Y(A[x++],S),$r(S,m,b,g,l,u),b+=g,u+=g;b<P&&(Y(A[x++],S),$r(S,m,b,N,l,u),b+=N,u+=N),++f&y||(h+=v)}break;case 3:if(p==l&&g==u&&0<h.b){for(b=l,p=m=u+(d-f)*m-(w=(d-f)*q(h.Ea,h.b)),g=l,y=u,v=[],w=(N=w)-1;0<=w;--w)v[w]=g[y+w];for(w=N-1;0<=w;--w)b[p+w]=v[w];Yr(h,f,d,l,m,l,u)}else Yr(h,f,d,p,g,l,u)}u=a,l=i}l!=i&&n(a,i,u,l,s)}function Lt(t,r){var n=t.V,i=t.Ba+t.c*t.C,a=r-t.C;if(e(r<=t.l.o),e(16>=a),0<a){var o=t.l,s=t.Ta,c=t.Ua,u=o.width;if(Nt(t,a,n,i),a=c=[c],e((n=t.C)<(i=r)),e(o.v<o.va),i>o.o&&(i=o.o),n<o.j){var l=o.j-n;n=o.j;a[0]+=l*u}if(n>=i?n=0:(a[0]+=4*o.v,o.ka=n-o.j,o.U=o.va-o.v,o.T=i-n,n=1),n){if(c=c[0],11>(n=t.ca).S){var h=n.f.RGBA,f=(i=n.S,a=o.U,o=o.T,l=h.eb,h.A),d=o;for(h=h.fb+t.Ma*h.A;0<d--;){var p=s,g=c,m=a,v=l,b=h;switch(i){case En:Qr(p,g,m,v,b);break;case qn:tn(p,g,m,v,b);break;case Hn:tn(p,g,m,v,b),An(v,b,0,m,1,0);break;case Dn:nn(p,g,m,v,b);break;case Rn:et(p,g,m,v,b,1);break;case Wn:et(p,g,m,v,b,1),An(v,b,0,m,1,0);break;case Tn:et(p,g,m,v,b,0);break;case Vn:et(p,g,m,v,b,0),An(v,b,1,m,1,0);break;case Un:en(p,g,m,v,b);break;case Gn:en(p,g,m,v,b),xn(v,b,m,1,0);break;case zn:rn(p,g,m,v,b);break;default:e(0)}c+=u,h+=f}t.Ma+=o}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=n.height)}}t.C=r,e(t.C<=t.i)}function At(t){var e;if(0<t.ua)return 0;for(e=0;e<t.Wb;++e){var r=t.Ya[e].G,n=t.Ya[e].H;if(0<r[1][n[1]+0].g||0<r[2][n[2]+0].g||0<r[3][n[3]+0].g)return 0}return 1}function xt(t,r,n,i,a,o){if(0!=t.Z){var s=t.qd,c=t.rd;for(e(null!=mi[t.Z]);r<n;++r)mi[t.Z](s,c,i,a,i,a,o),s=i,c=a,a+=o;t.qd=s,t.rd=c}}function St(t,r){var n=t.l.ma,i=0==n.Z||1==n.Z?t.l.j:t.C;i=t.C<i?i:t.C;if(e(r<=t.l.o),r>i){var a=t.l.width,o=n.ca,s=n.tb+a*i,c=t.V,u=t.Ba+t.c*i,l=t.gc;e(1==t.ab),e(3==l[0].hc),Xr(l[0],i,r,c,u,o,s),xt(n,i,r,o,s,a)}t.C=t.Ma=r}function _t(t,r,n,i,a,o,s){var c=t.$/i,u=t.$%i,l=t.m,h=t.s,f=n+t.$,d=f;a=n+i*a;var p=n+i*o,g=280+h.ua,m=t.Pb?c:16777216,v=0<h.ua?h.Wa:null,b=h.wc,y=f<p?wt(h,u,c):null;e(t.C<o),e(p<=a);var w=!1;t:for(;;){for(;w||f<p;){var N=0;if(c>=m){var _=f-n;e((m=t).Pb),m.wd=m.m,m.xd=_,0<m.s.ua&&B(m.s.Wa,m.s.vb),m=c+ti}if(u&b||(y=wt(h,u,c)),e(null!=y),y.Qb&&(r[f]=y.qb,w=!0),!w)if(S(l),y.jc){N=l,_=r;var P=f,k=y.pd[L(N)&Dr-1];e(y.jc),256>k.g?(x(N,N.u+k.g),_[P]=k.value,N=0):(x(N,N.u+k.g-256),e(256<=k.value),N=k.value),0==N&&(w=!0)}else N=bt(y.G[0],y.H[0],l);if(l.h)break;if(w||256>N){if(!w)if(y.nd)r[f]=(y.qb|N<<8)>>>0;else{if(S(l),w=bt(y.G[1],y.H[1],l),S(l),_=bt(y.G[2],y.H[2],l),P=bt(y.G[3],y.H[3],l),l.h)break;r[f]=(P<<24|w<<16|N<<8|_)>>>0}if(w=!1,++f,++u>=i&&(u=0,++c,null!=s&&c<=o&&!(c%16)&&s(t,c),null!=v))for(;d<f;)N=r[d++],v.X[(506832829*N&4294967295)>>>v.Mb]=N}else if(280>N){if(N=mt(N-256,l),_=bt(y.G[4],y.H[4],l),S(l),_=vt(i,_=mt(_,l)),l.h)break;if(f-n<_||a-f<N)break t;for(P=0;P<N;++P)r[f+P]=r[f+P-_];for(f+=N,u+=N;u>=i;)u-=i,++c,null!=s&&c<=o&&!(c%16)&&s(t,c);if(e(f<=a),u&b&&(y=wt(h,u,c)),null!=v)for(;d<f;)N=r[d++],v.X[(506832829*N&4294967295)>>>v.Mb]=N}else{if(!(N<g))break t;for(w=N-280,e(null!=v);d<f;)N=r[d++],v.X[(506832829*N&4294967295)>>>v.Mb]=N;N=f,e(!(w>>>(_=v).Xa)),r[N]=_.X[w],w=!0}w||e(l.h==A(l))}if(t.Pb&&l.h&&f<a)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&B(t.s.vb,t.s.Wa);else{if(l.h)break t;null!=s&&s(t,c>o?o:c),t.a=0,t.$=f-n}return 1}return t.a=3,0}function Pt(t){e(null!=t),t.vc=null,t.yc=null,t.Ya=null;var r=t.Wa;null!=r&&(r.X=null),t.vb=null,e(null!=t)}function kt(){var e=new or;return null==e?null:(e.a=0,e.xb=gi,rt("Predictor","VP8LPredictors"),rt("Predictor","VP8LPredictors_C"),rt("PredictorAdd","VP8LPredictorsAdd"),rt("PredictorAdd","VP8LPredictorsAdd_C"),Gr=G,$r=J,Qr=K,tn=Z,en=$,rn=Q,nn=tt,t.VP8LMapColor32b=Jr,t.VP8LMapColor8b=Kr,e)}function Ft(t,r,n,s,c){var u=1,f=[t],p=[r],g=s.m,m=s.s,v=null,b=0;t:for(;;){if(n)for(;u&&y(g,1);){var w=f,N=p,A=s,_=1,P=A.m,k=A.gc[A.ab],F=y(P,2);if(A.Oc&1<<F)u=0;else{switch(A.Oc|=1<<F,k.hc=F,k.Ea=w[0],k.nc=N[0],k.K=[null],++A.ab,e(4>=A.ab),F){case 0:case 1:k.b=y(P,3)+2,_=Ft(q(k.Ea,k.b),q(k.nc,k.b),0,A,k.K),k.K=k.K[0];break;case 3:var I,C=y(P,8)+1,j=16<C?0:4<C?1:2<C?2:3;if(w[0]=q(k.Ea,j),k.b=j,I=_=Ft(C,1,0,A,k.K)){var B,M=C,E=k,R=1<<(8>>E.b),T=a(R);if(null==T)I=0;else{var U=E.K[0],z=E.w;for(T[0]=E.K[0][0],B=1;B<1*M;++B)T[B]=D(U[z+B],T[B-1]);for(;B<4*R;++B)T[B]=0;E.K[0]=null,E.K[0]=T,I=1}}_=I;break;case 2:break;default:e(0)}u=_}}if(f=f[0],p=p[0],u&&y(g,1)&&!(u=1<=(b=y(g,4))&&11>=b)){s.a=3;break t}var H;if(H=u)e:{var W,V,G,Y=s,J=f,X=p,K=b,Z=n,$=Y.m,Q=Y.s,tt=[null],et=1,rt=0,nt=Qn[K];r:for(;;){if(Z&&y($,1)){var it=y($,3)+2,at=q(J,it),ot=q(X,it),st=at*ot;if(!Ft(at,ot,0,Y,tt))break r;for(tt=tt[0],Q.xc=it,W=0;W<st;++W){var ct=tt[W]>>8&65535;tt[W]=ct,ct>=et&&(et=ct+1)}}if($.h)break r;for(V=0;5>V;++V){var ut=Xn[V];!V&&0<K&&(ut+=1<<K),rt<ut&&(rt=ut)}var lt=o(et*nt,h),ht=et,ft=o(ht,d);if(null==ft)var dt=null;else e(65536>=ht),dt=ft;var pt=a(rt);if(null==dt||null==pt||null==lt){Y.a=1;break r}var gt=lt;for(W=G=0;W<et;++W){var mt=dt[W],vt=mt.G,bt=mt.H,wt=0,Nt=1,Lt=0;for(V=0;5>V;++V){ut=Xn[V],vt[V]=gt,bt[V]=G,!V&&0<K&&(ut+=1<<K);n:{var At,xt=ut,St=Y,kt=pt,It=gt,Ct=G,jt=0,Ot=St.m,Bt=y(Ot,1);if(i(kt,0,0,xt),Bt){var Mt=y(Ot,1)+1,Et=y(Ot,1),qt=y(Ot,0==Et?1:8);kt[qt]=1,2==Mt&&(kt[qt=y(Ot,8)]=1);var Dt=1}else{var Rt=a(19),Tt=y(Ot,4)+4;if(19<Tt){St.a=3;var Ut=0;break n}for(At=0;At<Tt;++At)Rt[Zn[At]]=y(Ot,3);var zt=void 0,Ht=void 0,Wt=St,Vt=Rt,Gt=xt,Yt=kt,Jt=0,Xt=Wt.m,Kt=8,Zt=o(128,h);i:for(;l(Zt,0,7,Vt,19);){if(y(Xt,1)){var $t=2+2*y(Xt,3);if((zt=2+y(Xt,$t))>Gt)break i}else zt=Gt;for(Ht=0;Ht<Gt&&zt--;){S(Xt);var Qt=Zt[0+(127&L(Xt))];x(Xt,Xt.u+Qt.g);var te=Qt.value;if(16>te)Yt[Ht++]=te,0!=te&&(Kt=te);else{var ee=16==te,re=te-16,ne=Jn[re],ie=y(Xt,Yn[re])+ne;if(Ht+ie>Gt)break i;for(var ae=ee?Kt:0;0<ie--;)Yt[Ht++]=ae}}Jt=1;break i}Jt||(Wt.a=3),Dt=Jt}(Dt=Dt&&!Ot.h)&&(jt=l(It,Ct,8,kt,xt)),Dt&&0!=jt?Ut=jt:(St.a=3,Ut=0)}if(0==Ut)break r;if(Nt&&1==Kn[V]&&(Nt=0==gt[G].g),wt+=gt[G].g,G+=Ut,3>=V){var oe,se=pt[0];for(oe=1;oe<ut;++oe)pt[oe]>se&&(se=pt[oe]);Lt+=se}}if(mt.nd=Nt,mt.Qb=0,Nt&&(mt.qb=(vt[3][bt[3]+0].value<<24|vt[1][bt[1]+0].value<<16|vt[2][bt[2]+0].value)>>>0,0==wt&&256>vt[0][bt[0]+0].value&&(mt.Qb=1,mt.qb+=vt[0][bt[0]+0].value<<8)),mt.jc=!mt.Qb&&6>Lt,mt.jc){var ce,ue=mt;for(ce=0;ce<Dr;++ce){var le=ce,he=ue.pd[le],fe=ue.G[0][ue.H[0]+le];256<=fe.value?(he.g=fe.g+256,he.value=fe.value):(he.g=0,he.value=0,le>>=yt(fe,8,he),le>>=yt(ue.G[1][ue.H[1]+le],16,he),le>>=yt(ue.G[2][ue.H[2]+le],0,he),yt(ue.G[3][ue.H[3]+le],24,he))}}}Q.vc=tt,Q.Wb=et,Q.Ya=dt,Q.yc=lt,H=1;break e}H=0}if(!(u=H)){s.a=3;break t}if(0<b){if(m.ua=1<<b,!O(m.Wa,b)){s.a=1,u=0;break t}}else m.ua=0;var de=s,pe=f,ge=p,me=de.s,ve=me.xc;if(de.c=pe,de.i=ge,me.md=q(pe,ve),me.wc=0==ve?-1:(1<<ve)-1,n){s.xb=pi;break t}if(null==(v=a(f*p))){s.a=1,u=0;break t}u=(u=_t(s,v,0,f,p,p,null))&&!g.h;break t}return u?(null!=c?c[0]=v:(e(null==v),e(n)),s.$=0,n||Pt(m)):Pt(m),u}function It(t,r){var n=t.c*t.i,i=n+r+16*r;return e(t.c<=r),t.V=a(i),null==t.V?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+n+r,1)}function Ct(t,r){var n=t.C,i=r-n,a=t.V,o=t.Ba+t.c*n;for(e(r<=t.l.o);0<i;){var s=16<i?16:i,c=t.l.ma,u=t.l.width,l=u*s,h=c.ca,f=c.tb+u*n,d=t.Ta,p=t.Ua;Nt(t,s,a,o),_n(d,p,h,f,l),xt(c,n,n+s,h,f,u),i-=s,a+=s*t.c,n+=s}e(n==r),t.C=t.Ma=r}function jt(){this.ub=this.yd=this.td=this.Rb=0}function Ot(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Bt(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function Mt(){this.Yb=function(){var t=[];return function t(e,r,n){for(var i=n[r],a=0;a<i&&(e.push(n.length>r+1?[]:0),!(n.length<r+1));a++)t(e[a],r+1,n)}(t,0,[3,11]),t}()}function Et(){this.jb=a(3),this.Wc=s([4,8],Mt),this.Xc=s([4,17],Mt)}function qt(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Dt(){this.ld=this.La=this.dd=this.tc=0}function Rt(){this.Na=this.la=0}function Tt(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ut(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function zt(){this.uc=this.M=this.Nb=0,this.wa=Array(new Dt),this.Y=0,this.ya=Array(new Ut),this.aa=0,this.l=new Gt}function Ht(){this.y=a(16),this.f=a(8),this.ea=a(8)}function Wt(){this.cb=this.a=0,this.sc="",this.m=new w,this.Od=new jt,this.Kc=new Ot,this.ed=new qt,this.Qa=new Bt,this.Ic=this.$c=this.Aa=0,this.D=new zt,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,w),this.ia=0,this.pb=o(4,Tt),this.Pa=new Et,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ht),this.Hd=0,this.rb=Array(new Rt),this.sb=0,this.wa=Array(new Dt),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Ut),this.L=this.aa=0,this.gd=s([4,2],Dt),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Vt(t,e){return 0>t?0:t>e?e:t}function Gt(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Yt(){var t=new Wt;return null!=t&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,ni||(ni=Zt)),t}function Jt(t,e,r){return 0==t.a&&(t.a=e,t.sc=r,t.cb=0),0}function Xt(t,e,r){return 3<=r&&157==t[e+0]&&1==t[e+1]&&42==t[e+2]}function Kt(t,r){if(null==t)return 0;if(t.a=0,t.sc="OK",null==r)return Jt(t,2,"null VP8Io passed to VP8GetHeaders()");var n=r.data,a=r.w,o=r.ha;if(4>o)return Jt(t,7,"Truncated header.");var s=n[a+0]|n[a+1]<<8|n[a+2]<<16,c=t.Od;if(c.Rb=!(1&s),c.td=s>>1&7,c.yd=s>>4&1,c.ub=s>>5,3<c.td)return Jt(t,3,"Incorrect keyframe parameters.");if(!c.yd)return Jt(t,4,"Frame not displayable.");a+=3,o-=3;var u=t.Kc;if(c.Rb){if(7>o)return Jt(t,7,"cannot parse picture header");if(!Xt(n,a,o))return Jt(t,3,"Bad code word");u.c=16383&(n[a+4]<<8|n[a+3]),u.Td=n[a+4]>>6,u.i=16383&(n[a+6]<<8|n[a+5]),u.Ud=n[a+6]>>6,a+=7,o-=7,t.za=u.c+15>>4,t.Ub=u.i+15>>4,r.width=u.c,r.height=u.i,r.Da=0,r.j=0,r.v=0,r.va=r.width,r.o=r.height,r.da=0,r.ib=r.width,r.hb=r.height,r.U=r.width,r.T=r.height,i((s=t.Pa).jb,0,255,s.jb.length),e(null!=(s=t.Qa)),s.Cb=0,s.Bb=0,s.Fb=1,i(s.Zb,0,0,s.Zb.length),i(s.Lb,0,0,s.Lb)}if(c.ub>o)return Jt(t,7,"bad partition length");p(s=t.m,n,a,c.ub),a+=c.ub,o-=c.ub,c.Rb&&(u.Ld=P(s),u.Kd=P(s)),u=t.Qa;var l,h=t.Pa;if(e(null!=s),e(null!=u),u.Cb=P(s),u.Cb){if(u.Bb=P(s),P(s)){for(u.Fb=P(s),l=0;4>l;++l)u.Zb[l]=P(s)?m(s,7):0;for(l=0;4>l;++l)u.Lb[l]=P(s)?m(s,6):0}if(u.Bb)for(l=0;3>l;++l)h.jb[l]=P(s)?g(s,8):255}else u.Bb=0;if(s.Ka)return Jt(t,3,"cannot parse segment header");if((u=t.ed).zd=P(s),u.Tb=g(s,6),u.wb=g(s,3),u.Pc=P(s),u.Pc&&P(s)){for(h=0;4>h;++h)P(s)&&(u.vd[h]=m(s,6));for(h=0;4>h;++h)P(s)&&(u.od[h]=m(s,6))}if(t.L=0==u.Tb?0:u.zd?1:2,s.Ka)return Jt(t,3,"cannot parse filter header");var f=o;if(o=l=a,a=l+f,u=f,t.Xb=(1<<g(t.m,2))-1,f<3*(h=t.Xb))n=7;else{for(l+=3*h,u-=3*h,f=0;f<h;++f){var d=n[o+0]|n[o+1]<<8|n[o+2]<<16;d>u&&(d=u),p(t.Jc[+f],n,l,d),l+=d,u-=d,o+=3}p(t.Jc[+h],n,l,u),n=l<a?0:5}if(0!=n)return Jt(t,n,"cannot parse partitions");for(n=g(l=t.m,7),o=P(l)?m(l,4):0,a=P(l)?m(l,4):0,u=P(l)?m(l,4):0,h=P(l)?m(l,4):0,l=P(l)?m(l,4):0,f=t.Qa,d=0;4>d;++d){if(f.Cb){var v=f.Zb[d];f.Fb||(v+=n)}else{if(0<d){t.pb[d]=t.pb[0];continue}v=n}var b=t.pb[d];b.Sc[0]=ei[Vt(v+o,127)],b.Sc[1]=ri[Vt(v+0,127)],b.Eb[0]=2*ei[Vt(v+a,127)],b.Eb[1]=101581*ri[Vt(v+u,127)]>>16,8>b.Eb[1]&&(b.Eb[1]=8),b.Qc[0]=ei[Vt(v+h,117)],b.Qc[1]=ri[Vt(v+l,127)],b.lc=v+l}if(!c.Rb)return Jt(t,4,"Not a key frame.");for(P(s),c=t.Pa,n=0;4>n;++n){for(o=0;8>o;++o)for(a=0;3>a;++a)for(u=0;11>u;++u)h=k(s,ui[n][o][a][u])?g(s,8):si[n][o][a][u],c.Wc[n][o].Yb[a][u]=h;for(o=0;17>o;++o)c.Xc[n][o]=c.Wc[n][li[o]]}return t.kc=P(s),t.kc&&(t.Bd=g(s,8)),t.cb=1}function Zt(t,e,r,n,i,a,o){var s=e[i].Yb[r];for(r=0;16>i;++i){if(!k(t,s[r+0]))return i;for(;!k(t,s[r+1]);)if(s=e[++i].Yb[0],r=0,16==i)return 16;var c=e[i+1].Yb;if(k(t,s[r+2])){var u=t,l=0;if(k(u,(f=s)[(h=r)+3]))if(k(u,f[h+6])){for(s=0,h=2*(l=k(u,f[h+8]))+(f=k(u,f[h+9+l])),l=0,f=ii[h];f[s];++s)l+=l+k(u,f[s]);l+=3+(8<<h)}else k(u,f[h+7])?(l=7+2*k(u,165),l+=k(u,145)):l=5+k(u,159);else l=k(u,f[h+4])?3+k(u,f[h+5]):2;s=c[2]}else l=1,s=c[1];c=o+ai[i],0>(u=t).b&&_(u);var h,f=u.b,d=(h=u.Ca>>1)-(u.I>>f)>>31;--u.b,u.Ca+=d,u.Ca|=1,u.I-=(h+1&d)<<f,a[c]=((l^d)-d)*n[(0<i)+0]}return 16}function $t(t){var e=t.rb[t.sb-1];e.la=0,e.Na=0,i(t.zc,0,0,t.zc.length),t.ja=0}function Qt(t,r){if(null==t)return 0;if(null==r)return Jt(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!Kt(t,r))return 0;if(e(t.cb),null==r.ac||r.ac(r)){r.ob&&(t.L=0);var s=Ri[t.L];if(2==t.L?(t.yb=0,t.zb=0):(t.yb=r.v-s>>4,t.zb=r.j-s>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=r.o+15+s>>4,t.Hb=r.va+15+s>>4,t.Hb>t.za&&(t.Hb=t.za),t.Va>t.Ub&&(t.Va=t.Ub),0<t.L){var c=t.ed;for(s=0;4>s;++s){var u;if(t.Qa.Cb){var l=t.Qa.Lb[s];t.Qa.Fb||(l+=c.Tb)}else l=c.Tb;for(u=0;1>=u;++u){var h=t.gd[s][u],f=l;if(c.Pc&&(f+=c.vd[0],u&&(f+=c.od[0])),0<(f=0>f?0:63<f?63:f)){var d=f;0<c.wb&&((d=4<c.wb?d>>2:d>>1)>9-c.wb&&(d=9-c.wb)),1>d&&(d=1),h.dd=d,h.tc=2*f+d,h.ld=40<=f?2:15<=f?1:0}else h.tc=0;h.La=u}}}s=0}else Jt(t,6,"Frame setup failed"),s=t.a;if(s=0==s){if(s){t.$c=0,0<t.Aa||(t.Ic=Ui);t:{s=t.Ic;c=4*(d=t.za);var p=32*d,g=d+1,m=0<t.L?d*(0<t.Aa?2:1):0,v=(2==t.Aa?2:1)*d;if((h=c+832+(u=3*(16*s+Ri[t.L])/2*p)+(l=null!=t.Fa&&0<t.Fa.length?t.Kc.c*t.Kc.i:0))!=h)s=0;else{if(h>t.Vb){if(t.Vb=0,t.Ec=a(h),t.Fc=0,null==t.Ec){s=Jt(t,1,"no memory during frame initialization.");break t}t.Vb=h}h=t.Ec,f=t.Fc,t.Ac=h,t.Bc=f,f+=c,t.Gd=o(p,Ht),t.Hd=0,t.rb=o(g+1,Rt),t.sb=1,t.wa=m?o(m,Dt):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0<t.Aa&&(t.D.Y+=d),e(!0),t.oc=h,t.pc=f,f+=832,t.ya=o(v,Ut),t.aa=0,t.D.ya=t.ya,t.D.aa=t.aa,2==t.Aa&&(t.D.aa+=d),t.R=16*d,t.B=8*d,d=(p=Ri[t.L])*t.R,p=p/2*t.B,t.sa=h,t.ta=f+d,t.qa=t.sa,t.ra=t.ta+16*s*t.R+p,t.Ha=t.qa,t.Ia=t.ra+8*s*t.B+p,t.$c=0,f+=u,t.mb=l?h:null,t.nb=l?f:null,e(f+l<=t.Fc+t.Vb),$t(t),i(t.Ac,t.Bc,0,c),s=1}}if(s){if(r.ka=0,r.y=t.sa,r.O=t.ta,r.f=t.qa,r.N=t.ra,r.ea=t.Ha,r.Vd=t.Ia,r.fa=t.R,r.Rc=t.B,r.F=null,r.J=0,!Cn){for(s=-255;255>=s;++s)Pn[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)kn[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)Fn[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)In[255+s]=0>s?0:255<s?255:s;Cn=1}an=ue,on=ae,cn=oe,un=se,ln=ce,sn=ie,hn=Je,fn=Xe,dn=$e,pn=Qe,gn=Ke,mn=Ze,vn=tr,bn=er,yn=ze,wn=He,Nn=We,Ln=Ve,fi[0]=xe,fi[1]=he,fi[2]=Le,fi[3]=Ae,fi[4]=Se,fi[5]=Pe,fi[6]=_e,fi[7]=ke,fi[8]=Ie,fi[9]=Fe,hi[0]=ve,hi[1]=de,hi[2]=pe,hi[3]=ge,hi[4]=be,hi[5]=ye,hi[6]=we,di[0]=Be,di[1]=fe,di[2]=Ce,di[3]=je,di[4]=Ee,di[5]=Me,di[6]=qe,s=1}else s=0}s&&(s=function(t,r){for(t.M=0;t.M<t.Va;++t.M){var o,s=t.Jc[t.M&t.Xb],c=t.m,u=t;for(o=0;o<u.za;++o){var l=c,h=u,f=h.Ac,d=h.Bc+4*o,p=h.zc,g=h.ya[h.aa+o];if(h.Qa.Bb?g.$b=k(l,h.Pa.jb[0])?2+k(l,h.Pa.jb[2]):k(l,h.Pa.jb[1]):g.$b=0,h.kc&&(g.Ad=k(l,h.Bd)),g.Za=!k(l,145)+0,g.Za){var m=g.Ob,v=0;for(h=0;4>h;++h){var b,y=p[0+h];for(b=0;4>b;++b){y=ci[f[d+b]][y];for(var w=oi[k(l,y[0])];0<w;)w=oi[2*w+k(l,y[w])];y=-w,f[d+b]=y}n(m,v,f,d,4),v+=4,p[0+h]=y}}else y=k(l,156)?k(l,128)?1:3:k(l,163)?2:0,g.Ob[0]=y,i(f,d,y,4),i(p,0,y,4);g.Dd=k(l,142)?k(l,114)?k(l,183)?1:3:2:0}if(u.m.Ka)return Jt(t,7,"Premature end-of-partition0 encountered.");for(;t.ja<t.za;++t.ja){if(u=s,l=(c=t).rb[c.sb-1],f=c.rb[c.sb+c.ja],o=c.ya[c.aa+c.ja],d=c.kc?o.Ad:0)l.la=f.la=0,o.Za||(l.Na=f.Na=0),o.Hc=0,o.Gc=0,o.ia=0;else{var N,L;l=f,f=u,d=c.Pa.Xc,p=c.ya[c.aa+c.ja],g=c.pb[p.$b];if(h=p.ad,m=0,v=c.rb[c.sb-1],y=b=0,i(h,m,0,384),p.Za)var A=0,x=d[3];else{w=a(16);var S=l.Na+v.Na;if(S=ni(f,d[1],S,g.Eb,0,w,0),l.Na=v.Na=(0<S)+0,1<S)an(w,0,h,m);else{var _=w[0]+3>>3;for(w=0;256>w;w+=16)h[m+w]=_}A=1,x=d[0]}var P=15&l.la,F=15&v.la;for(w=0;4>w;++w){var I=1&F;for(_=L=0;4>_;++_)P=P>>1|(I=(S=ni(f,x,S=I+(1&P),g.Sc,A,h,m))>A)<<7,L=L<<2|(3<S?3:1<S?2:0!=h[m+0]),m+=16;P>>=4,F=F>>1|I<<7,b=(b<<8|L)>>>0}for(x=P,A=F>>4,N=0;4>N;N+=2){for(L=0,P=l.la>>4+N,F=v.la>>4+N,w=0;2>w;++w){for(I=1&F,_=0;2>_;++_)S=I+(1&P),P=P>>1|(I=0<(S=ni(f,d[2],S,g.Qc,0,h,m)))<<3,L=L<<2|(3<S?3:1<S?2:0!=h[m+0]),m+=16;P>>=2,F=F>>1|I<<5}y|=L<<4*N,x|=P<<4<<N,A|=(240&F)<<N}l.la=x,v.la=A,p.Hc=b,p.Gc=y,p.ia=43690&y?0:g.ia,d=!(b|y)}if(0<c.L&&(c.wa[c.Y+c.ja]=c.gd[o.$b][o.Za],c.wa[c.Y+c.ja].La|=!d),u.Ka)return Jt(t,7,"Premature end-of-file encountered.")}if($t(t),c=r,u=1,o=(s=t).D,l=0<s.L&&s.M>=s.zb&&s.M<=s.Va,0==s.Aa)t:{if(o.M=s.M,o.uc=l,Or(s,o),u=1,o=(L=s.D).Nb,l=(y=Ri[s.L])*s.R,f=y/2*s.B,w=16*o*s.R,_=8*o*s.B,d=s.sa,p=s.ta-l+w,g=s.qa,h=s.ra-f+_,m=s.Ha,v=s.Ia-f+_,F=0==(P=L.M),b=P>=s.Va-1,2==s.Aa&&Or(s,L),L.uc)for(I=(S=s).D.M,e(S.D.uc),L=S.yb;L<S.Hb;++L){A=L,x=I;var C=(j=(U=S).D).Nb;N=U.R;var j=j.wa[j.Y+A],O=U.sa,B=U.ta+16*C*N+16*A,M=j.dd,E=j.tc;if(0!=E)if(e(3<=E),1==U.L)0<A&&wn(O,B,N,E+4),j.La&&Ln(O,B,N,E),0<x&&yn(O,B,N,E+4),j.La&&Nn(O,B,N,E);else{var q=U.B,D=U.qa,R=U.ra+8*C*q+8*A,T=U.Ha,U=U.Ia+8*C*q+8*A;C=j.ld;0<A&&(fn(O,B,N,E+4,M,C),pn(D,R,T,U,q,E+4,M,C)),j.La&&(mn(O,B,N,E,M,C),bn(D,R,T,U,q,E,M,C)),0<x&&(hn(O,B,N,E+4,M,C),dn(D,R,T,U,q,E+4,M,C)),j.La&&(gn(O,B,N,E,M,C),vn(D,R,T,U,q,E,M,C))}}if(s.ia&&alert("todo:DitherRow"),null!=c.put){if(L=16*P,P=16*(P+1),F?(c.y=s.sa,c.O=s.ta+w,c.f=s.qa,c.N=s.ra+_,c.ea=s.Ha,c.W=s.Ia+_):(L-=y,c.y=d,c.O=p,c.f=g,c.N=h,c.ea=m,c.W=v),b||(P-=y),P>c.o&&(P=c.o),c.F=null,c.J=null,null!=s.Fa&&0<s.Fa.length&&L<P&&(c.J=hr(s,c,L,P-L),c.F=s.mb,null==c.F&&0==c.F.length)){u=Jt(s,3,"Could not decode alpha data.");break t}L<c.j&&(y=c.j-L,L=c.j,e(!(1&y)),c.O+=s.R*y,c.N+=s.B*(y>>1),c.W+=s.B*(y>>1),null!=c.F&&(c.J+=c.width*y)),L<P&&(c.O+=c.v,c.N+=c.v>>1,c.W+=c.v>>1,null!=c.F&&(c.J+=c.v),c.ka=L-c.j,c.U=c.va-c.v,c.T=P-L,u=c.put(c))}o+1!=s.Ic||b||(n(s.sa,s.ta-l,d,p+16*s.R,l),n(s.qa,s.ra-f,g,h+8*s.B,f),n(s.Ha,s.Ia-f,m,v+8*s.B,f))}if(!u)return Jt(t,6,"Output aborted.")}return 1}(t,r)),null!=r.bc&&r.bc(r),s&=1}return s?(t.cb=0,s):0}function te(t,e,r,n,i){i=t[e+r+32*n]+(i>>3),t[e+r+32*n]=-256&i?0>i?0:255:i}function ee(t,e,r,n,i,a){te(t,e,0,r,n+i),te(t,e,1,r,n+a),te(t,e,2,r,n-a),te(t,e,3,r,n-i)}function re(t){return(20091*t>>16)+t}function ne(t,e,r,n){var i,o=0,s=a(16);for(i=0;4>i;++i){var c=t[e+0]+t[e+8],u=t[e+0]-t[e+8],l=(35468*t[e+4]>>16)-re(t[e+12]),h=re(t[e+4])+(35468*t[e+12]>>16);s[o+0]=c+h,s[o+1]=u+l,s[o+2]=u-l,s[o+3]=c-h,o+=4,e++}for(i=o=0;4>i;++i)c=(t=s[o+0]+4)+s[o+8],u=t-s[o+8],l=(35468*s[o+4]>>16)-re(s[o+12]),te(r,n,0,0,c+(h=re(s[o+4])+(35468*s[o+12]>>16))),te(r,n,1,0,u+l),te(r,n,2,0,u-l),te(r,n,3,0,c-h),o++,n+=32}function ie(t,e,r,n){var i=t[e+0]+4,a=35468*t[e+4]>>16,o=re(t[e+4]),s=35468*t[e+1]>>16;ee(r,n,0,i+o,t=re(t[e+1]),s),ee(r,n,1,i+a,t,s),ee(r,n,2,i-a,t,s),ee(r,n,3,i-o,t,s)}function ae(t,e,r,n,i){ne(t,e,r,n),i&&ne(t,e+16,r,n+4)}function oe(t,e,r,n){on(t,e+0,r,n,1),on(t,e+32,r,n+128,1)}function se(t,e,r,n){var i;for(t=t[e+0]+4,i=0;4>i;++i)for(e=0;4>e;++e)te(r,n,e,i,t)}function ce(t,e,r,n){t[e+0]&&un(t,e+0,r,n),t[e+16]&&un(t,e+16,r,n+4),t[e+32]&&un(t,e+32,r,n+128),t[e+48]&&un(t,e+48,r,n+128+4)}function ue(t,e,r,n){var i,o=a(16);for(i=0;4>i;++i){var s=t[e+0+i]+t[e+12+i],c=t[e+4+i]+t[e+8+i],u=t[e+4+i]-t[e+8+i],l=t[e+0+i]-t[e+12+i];o[0+i]=s+c,o[8+i]=s-c,o[4+i]=l+u,o[12+i]=l-u}for(i=0;4>i;++i)s=(t=o[0+4*i]+3)+o[3+4*i],c=o[1+4*i]+o[2+4*i],u=o[1+4*i]-o[2+4*i],l=t-o[3+4*i],r[n+0]=s+c>>3,r[n+16]=l+u>>3,r[n+32]=s-c>>3,r[n+48]=l-u>>3,n+=64}function le(t,e,r){var n,i=e-32,a=Bn,o=255-t[i-1];for(n=0;n<r;++n){var s,c=a,u=o+t[e-1];for(s=0;s<r;++s)t[e+s]=c[u+t[i+s]];e+=32}}function he(t,e){le(t,e,4)}function fe(t,e){le(t,e,8)}function de(t,e){le(t,e,16)}function pe(t,e){var r;for(r=0;16>r;++r)n(t,e+32*r,t,e-32,16)}function ge(t,e){var r;for(r=16;0<r;--r)i(t,e,t[e-1],16),e+=32}function me(t,e,r){var n;for(n=0;16>n;++n)i(e,r+32*n,t,16)}function ve(t,e){var r,n=16;for(r=0;16>r;++r)n+=t[e-1+32*r]+t[e+r-32];me(n>>5,t,e)}function be(t,e){var r,n=8;for(r=0;16>r;++r)n+=t[e-1+32*r];me(n>>4,t,e)}function ye(t,e){var r,n=8;for(r=0;16>r;++r)n+=t[e+r-32];me(n>>4,t,e)}function we(t,e){me(128,t,e)}function Ne(t,e,r){return t+2*e+r+2>>2}function Le(t,e){var r,i=e-32;i=new Uint8Array([Ne(t[i-1],t[i+0],t[i+1]),Ne(t[i+0],t[i+1],t[i+2]),Ne(t[i+1],t[i+2],t[i+3]),Ne(t[i+2],t[i+3],t[i+4])]);for(r=0;4>r;++r)n(t,e+32*r,i,0,i.length)}function Ae(t,e){var r=t[e-1],n=t[e-1+32],i=t[e-1+64],a=t[e-1+96];F(t,e+0,16843009*Ne(t[e-1-32],r,n)),F(t,e+32,16843009*Ne(r,n,i)),F(t,e+64,16843009*Ne(n,i,a)),F(t,e+96,16843009*Ne(i,a,a))}function xe(t,e){var r,n=4;for(r=0;4>r;++r)n+=t[e+r-32]+t[e-1+32*r];for(n>>=3,r=0;4>r;++r)i(t,e+32*r,n,4)}function Se(t,e){var r=t[e-1+0],n=t[e-1+32],i=t[e-1+64],a=t[e-1-32],o=t[e+0-32],s=t[e+1-32],c=t[e+2-32],u=t[e+3-32];t[e+0+96]=Ne(n,i,t[e-1+96]),t[e+1+96]=t[e+0+64]=Ne(r,n,i),t[e+2+96]=t[e+1+64]=t[e+0+32]=Ne(a,r,n),t[e+3+96]=t[e+2+64]=t[e+1+32]=t[e+0+0]=Ne(o,a,r),t[e+3+64]=t[e+2+32]=t[e+1+0]=Ne(s,o,a),t[e+3+32]=t[e+2+0]=Ne(c,s,o),t[e+3+0]=Ne(u,c,s)}function _e(t,e){var r=t[e+1-32],n=t[e+2-32],i=t[e+3-32],a=t[e+4-32],o=t[e+5-32],s=t[e+6-32],c=t[e+7-32];t[e+0+0]=Ne(t[e+0-32],r,n),t[e+1+0]=t[e+0+32]=Ne(r,n,i),t[e+2+0]=t[e+1+32]=t[e+0+64]=Ne(n,i,a),t[e+3+0]=t[e+2+32]=t[e+1+64]=t[e+0+96]=Ne(i,a,o),t[e+3+32]=t[e+2+64]=t[e+1+96]=Ne(a,o,s),t[e+3+64]=t[e+2+96]=Ne(o,s,c),t[e+3+96]=Ne(s,c,c)}function Pe(t,e){var r=t[e-1+0],n=t[e-1+32],i=t[e-1+64],a=t[e-1-32],o=t[e+0-32],s=t[e+1-32],c=t[e+2-32],u=t[e+3-32];t[e+0+0]=t[e+1+64]=a+o+1>>1,t[e+1+0]=t[e+2+64]=o+s+1>>1,t[e+2+0]=t[e+3+64]=s+c+1>>1,t[e+3+0]=c+u+1>>1,t[e+0+96]=Ne(i,n,r),t[e+0+64]=Ne(n,r,a),t[e+0+32]=t[e+1+96]=Ne(r,a,o),t[e+1+32]=t[e+2+96]=Ne(a,o,s),t[e+2+32]=t[e+3+96]=Ne(o,s,c),t[e+3+32]=Ne(s,c,u)}function ke(t,e){var r=t[e+0-32],n=t[e+1-32],i=t[e+2-32],a=t[e+3-32],o=t[e+4-32],s=t[e+5-32],c=t[e+6-32],u=t[e+7-32];t[e+0+0]=r+n+1>>1,t[e+1+0]=t[e+0+64]=n+i+1>>1,t[e+2+0]=t[e+1+64]=i+a+1>>1,t[e+3+0]=t[e+2+64]=a+o+1>>1,t[e+0+32]=Ne(r,n,i),t[e+1+32]=t[e+0+96]=Ne(n,i,a),t[e+2+32]=t[e+1+96]=Ne(i,a,o),t[e+3+32]=t[e+2+96]=Ne(a,o,s),t[e+3+64]=Ne(o,s,c),t[e+3+96]=Ne(s,c,u)}function Fe(t,e){var r=t[e-1+0],n=t[e-1+32],i=t[e-1+64],a=t[e-1+96];t[e+0+0]=r+n+1>>1,t[e+2+0]=t[e+0+32]=n+i+1>>1,t[e+2+32]=t[e+0+64]=i+a+1>>1,t[e+1+0]=Ne(r,n,i),t[e+3+0]=t[e+1+32]=Ne(n,i,a),t[e+3+32]=t[e+1+64]=Ne(i,a,a),t[e+3+64]=t[e+2+64]=t[e+0+96]=t[e+1+96]=t[e+2+96]=t[e+3+96]=a}function Ie(t,e){var r=t[e-1+0],n=t[e-1+32],i=t[e-1+64],a=t[e-1+96],o=t[e-1-32],s=t[e+0-32],c=t[e+1-32],u=t[e+2-32];t[e+0+0]=t[e+2+32]=r+o+1>>1,t[e+0+32]=t[e+2+64]=n+r+1>>1,t[e+0+64]=t[e+2+96]=i+n+1>>1,t[e+0+96]=a+i+1>>1,t[e+3+0]=Ne(s,c,u),t[e+2+0]=Ne(o,s,c),t[e+1+0]=t[e+3+32]=Ne(r,o,s),t[e+1+32]=t[e+3+64]=Ne(n,r,o),t[e+1+64]=t[e+3+96]=Ne(i,n,r),t[e+1+96]=Ne(a,i,n)}function Ce(t,e){var r;for(r=0;8>r;++r)n(t,e+32*r,t,e-32,8)}function je(t,e){var r;for(r=0;8>r;++r)i(t,e,t[e-1],8),e+=32}function Oe(t,e,r){var n;for(n=0;8>n;++n)i(e,r+32*n,t,8)}function Be(t,e){var r,n=8;for(r=0;8>r;++r)n+=t[e+r-32]+t[e-1+32*r];Oe(n>>4,t,e)}function Me(t,e){var r,n=4;for(r=0;8>r;++r)n+=t[e+r-32];Oe(n>>3,t,e)}function Ee(t,e){var r,n=4;for(r=0;8>r;++r)n+=t[e-1+32*r];Oe(n>>3,t,e)}function qe(t,e){Oe(128,t,e)}function De(t,e,r){var n=t[e-r],i=t[e+0],a=3*(i-n)+jn[1020+t[e-2*r]-t[e+r]],o=On[112+(a+4>>3)];t[e-r]=Bn[255+n+On[112+(a+3>>3)]],t[e+0]=Bn[255+i-o]}function Re(t,e,r,n){var i=t[e+0],a=t[e+r];return Mn[255+t[e-2*r]-t[e-r]]>n||Mn[255+a-i]>n}function Te(t,e,r,n){return 4*Mn[255+t[e-r]-t[e+0]]+Mn[255+t[e-2*r]-t[e+r]]<=n}function Ue(t,e,r,n,i){var a=t[e-3*r],o=t[e-2*r],s=t[e-r],c=t[e+0],u=t[e+r],l=t[e+2*r],h=t[e+3*r];return 4*Mn[255+s-c]+Mn[255+o-u]>n?0:Mn[255+t[e-4*r]-a]<=i&&Mn[255+a-o]<=i&&Mn[255+o-s]<=i&&Mn[255+h-l]<=i&&Mn[255+l-u]<=i&&Mn[255+u-c]<=i}function ze(t,e,r,n){var i=2*n+1;for(n=0;16>n;++n)Te(t,e+n,r,i)&&De(t,e+n,r)}function He(t,e,r,n){var i=2*n+1;for(n=0;16>n;++n)Te(t,e+n*r,1,i)&&De(t,e+n*r,1)}function We(t,e,r,n){var i;for(i=3;0<i;--i)ze(t,e+=4*r,r,n)}function Ve(t,e,r,n){var i;for(i=3;0<i;--i)He(t,e+=4,r,n)}function Ge(t,e,r,n,i,a,o,s){for(a=2*a+1;0<i--;){if(Ue(t,e,r,a,o))if(Re(t,e,r,s))De(t,e,r);else{var c=t,u=e,l=r,h=c[u-2*l],f=c[u-l],d=c[u+0],p=c[u+l],g=c[u+2*l],m=27*(b=jn[1020+3*(d-f)+jn[1020+h-p]])+63>>7,v=18*b+63>>7,b=9*b+63>>7;c[u-3*l]=Bn[255+c[u-3*l]+b],c[u-2*l]=Bn[255+h+v],c[u-l]=Bn[255+f+m],c[u+0]=Bn[255+d-m],c[u+l]=Bn[255+p-v],c[u+2*l]=Bn[255+g-b]}e+=n}}function Ye(t,e,r,n,i,a,o,s){for(a=2*a+1;0<i--;){if(Ue(t,e,r,a,o))if(Re(t,e,r,s))De(t,e,r);else{var c=t,u=e,l=r,h=c[u-l],f=c[u+0],d=c[u+l],p=On[112+((g=3*(f-h))+4>>3)],g=On[112+(g+3>>3)],m=p+1>>1;c[u-2*l]=Bn[255+c[u-2*l]+m],c[u-l]=Bn[255+h+g],c[u+0]=Bn[255+f-p],c[u+l]=Bn[255+d-m]}e+=n}}function Je(t,e,r,n,i,a){Ge(t,e,r,1,16,n,i,a)}function Xe(t,e,r,n,i,a){Ge(t,e,1,r,16,n,i,a)}function Ke(t,e,r,n,i,a){var o;for(o=3;0<o;--o)Ye(t,e+=4*r,r,1,16,n,i,a)}function Ze(t,e,r,n,i,a){var o;for(o=3;0<o;--o)Ye(t,e+=4,1,r,16,n,i,a)}function $e(t,e,r,n,i,a,o,s){Ge(t,e,i,1,8,a,o,s),Ge(r,n,i,1,8,a,o,s)}function Qe(t,e,r,n,i,a,o,s){Ge(t,e,1,i,8,a,o,s),Ge(r,n,1,i,8,a,o,s)}function tr(t,e,r,n,i,a,o,s){Ye(t,e+4*i,i,1,8,a,o,s),Ye(r,n+4*i,i,1,8,a,o,s)}function er(t,e,r,n,i,a,o,s){Ye(t,e+4,1,i,8,a,o,s),Ye(r,n+4,1,i,8,a,o,s)}function rr(){this.ba=new ot,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ct,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function nr(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function ir(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ar(){this.ua=0,this.Wa=new M,this.vb=new M,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new d,this.yc=new h}function or(){this.xb=this.a=0,this.l=new Gt,this.ca=new ot,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new N,this.Pb=0,this.wd=new N,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ar,this.ab=0,this.gc=o(4,ir),this.Oc=0}function sr(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Gt,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function cr(t,e,r,n,i,a,o){for(t=null==t?0:t[e+0],e=0;e<o;++e)i[a+e]=t+r[n+e]&255,t=i[a+e]}function ur(t,e,r,n,i,a,o){var s;if(null==t)cr(null,null,r,n,i,a,o);else for(s=0;s<o;++s)i[a+s]=t[e+s]+r[n+s]&255}function lr(t,e,r,n,i,a,o){if(null==t)cr(null,null,r,n,i,a,o);else{var s,c=t[e+0],u=c,l=c;for(s=0;s<o;++s)u=l+(c=t[e+s])-u,l=r[n+s]+(-256&u?0>u?0:255:u)&255,u=c,i[a+s]=l}}function hr(t,r,i,o){var s=r.width,c=r.o;if(e(null!=t&&null!=r),0>i||0>=o||i+o>c)return null;if(!t.Cc){if(null==t.ga){var u;if(t.ga=new sr,(u=null==t.ga)||(u=r.width*r.o,e(0==t.Gb.length),t.Gb=a(u),t.Uc=0,null==t.Gb?u=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,u=1),u=!u),!u){u=t.ga;var l=t.Fa,h=t.P,f=t.qc,d=t.mb,p=t.nb,g=h+1,m=f-1,b=u.l;if(e(null!=l&&null!=d&&null!=r),mi[0]=null,mi[1]=cr,mi[2]=ur,mi[3]=lr,u.ca=d,u.tb=p,u.c=r.width,u.i=r.height,e(0<u.c&&0<u.i),1>=f)r=0;else if(u.$a=l[h+0]>>0&3,u.Z=l[h+0]>>2&3,u.Lc=l[h+0]>>4&3,h=l[h+0]>>6&3,0>u.$a||1<u.$a||4<=u.Z||1<u.Lc||h)r=0;else if(b.put=dt,b.ac=ft,b.bc=pt,b.ma=u,b.width=r.width,b.height=r.height,b.Da=r.Da,b.v=r.v,b.va=r.va,b.j=r.j,b.o=r.o,u.$a)t:{e(1==u.$a),r=kt();e:for(;;){if(null==r){r=0;break t}if(e(null!=u),u.mc=r,r.c=u.c,r.i=u.i,r.l=u.l,r.l.ma=u,r.l.width=u.c,r.l.height=u.i,r.a=0,v(r.m,l,g,m),!Ft(u.c,u.i,1,r,null))break e;if(1==r.ab&&3==r.gc[0].hc&&At(r.s)?(u.ic=1,l=r.c*r.i,r.Ta=null,r.Ua=0,r.V=a(l),r.Ba=0,null==r.V?(r.a=1,r=0):r=1):(u.ic=0,r=It(r,u.c)),!r)break e;r=1;break t}u.mc=null,r=0}else r=m>=u.c*u.i;u=!r}if(u)return null;1!=t.ga.Lc?t.Ga=0:o=c-i}e(null!=t.ga),e(i+o<=c);t:{if(r=(l=t.ga).c,c=l.l.o,0==l.$a){if(g=t.rc,m=t.Vc,b=t.Fa,h=t.P+1+i*r,f=t.mb,d=t.nb+i*r,e(h<=t.P+t.qc),0!=l.Z)for(e(null!=mi[l.Z]),u=0;u<o;++u)mi[l.Z](g,m,b,h,f,d,r),g=f,m=d,d+=r,h+=r;else for(u=0;u<o;++u)n(f,d,b,h,r),g=f,m=d,d+=r,h+=r;t.rc=g,t.Vc=m}else{if(e(null!=l.mc),r=i+o,e(null!=(u=l.mc)),e(r<=u.i),u.C>=r)r=1;else if(l.ic||mr(),l.ic){l=u.V,g=u.Ba,m=u.c;var y=u.i,w=(b=1,h=u.$/m,f=u.$%m,d=u.m,p=u.s,u.$),N=m*y,L=m*r,x=p.wc,_=w<L?wt(p,f,h):null;e(w<=N),e(r<=y),e(At(p));e:for(;;){for(;!d.h&&w<L;){if(f&x||(_=wt(p,f,h)),e(null!=_),S(d),256>(y=bt(_.G[0],_.H[0],d)))l[g+w]=y,++w,++f>=m&&(f=0,++h<=r&&!(h%16)&&St(u,h));else{if(!(280>y)){b=0;break e}y=mt(y-256,d);var P,k=bt(_.G[4],_.H[4],d);if(S(d),!(w>=(k=vt(m,k=mt(k,d)))&&N-w>=y)){b=0;break e}for(P=0;P<y;++P)l[g+w+P]=l[g+w+P-k];for(w+=y,f+=y;f>=m;)f-=m,++h<=r&&!(h%16)&&St(u,h);w<L&&f&x&&(_=wt(p,f,h))}e(d.h==A(d))}St(u,h>r?r:h);break e}!b||d.h&&w<N?(b=0,u.a=d.h?5:3):u.$=w,r=b}else r=_t(u,u.V,u.Ba,u.c,u.i,r,Ct);if(!r){o=0;break t}}i+o>=c&&(t.Cc=1),o=1}if(!o)return null;if(t.Cc&&(null!=(o=t.ga)&&(o.mc=null),t.ga=null,0<t.Ga))return alert("todo:WebPDequantizeLevels"),null}return t.nb+i*s}function fr(t,e,r,n,i,a){for(;0<i--;){var o,s=t,c=e+(r?1:0),u=t,l=e+(r?0:3);for(o=0;o<n;++o){var h=u[l+4*o];255!=h&&(h*=32897,s[c+4*o+0]=s[c+4*o+0]*h>>23,s[c+4*o+1]=s[c+4*o+1]*h>>23,s[c+4*o+2]=s[c+4*o+2]*h>>23)}e+=a}}function dr(t,e,r,n,i){for(;0<n--;){var a;for(a=0;a<r;++a){var o=t[e+2*a+0],s=15&(u=t[e+2*a+1]),c=4369*s,u=(240&u|u>>4)*c>>16;t[e+2*a+0]=(240&o|o>>4)*c>>16&240|(15&o|o<<4)*c>>16>>4&15,t[e+2*a+1]=240&u|s}e+=i}}function pr(t,e,r,n,i,a,o,s){var c,u,l=255;for(u=0;u<i;++u){for(c=0;c<n;++c){var h=t[e+c];a[o+4*c]=h,l&=h}e+=r,o+=s}return 255!=l}function gr(t,e,r,n,i){var a;for(a=0;a<i;++a)r[n+a]=t[e+a]>>8}function mr(){An=fr,xn=dr,Sn=pr,_n=gr}function vr(r,n,i){t[r]=function(t,r,a,o,s,c,u,l,h,f,d,p,g,m,v,b,y){var w,N=y-1>>1,L=s[c+0]|u[l+0]<<16,A=h[f+0]|d[p+0]<<16;e(null!=t);var x=3*L+A+131074>>2;for(n(t[r+0],255&x,x>>16,g,m),null!=a&&(x=3*A+L+131074>>2,n(a[o+0],255&x,x>>16,v,b)),w=1;w<=N;++w){var S=s[c+w]|u[l+w]<<16,_=h[f+w]|d[p+w]<<16,P=L+S+A+_+524296,k=P+2*(S+A)>>3;x=k+L>>1,L=(P=P+2*(L+_)>>3)+S>>1,n(t[r+2*w-1],255&x,x>>16,g,m+(2*w-1)*i),n(t[r+2*w-0],255&L,L>>16,g,m+(2*w-0)*i),null!=a&&(x=P+A>>1,L=k+_>>1,n(a[o+2*w-1],255&x,x>>16,v,b+(2*w-1)*i),n(a[o+2*w+0],255&L,L>>16,v,b+(2*w+0)*i)),L=S,A=_}1&y||(x=3*L+A+131074>>2,n(t[r+y-1],255&x,x>>16,g,m+(y-1)*i),null!=a&&(x=3*A+L+131074>>2,n(a[o+y-1],255&x,x>>16,v,b+(y-1)*i)))}}function br(){vi[En]=bi,vi[qn]=wi,vi[Dn]=yi,vi[Rn]=Ni,vi[Tn]=Li,vi[Un]=Ai,vi[zn]=xi,vi[Hn]=wi,vi[Wn]=Ni,vi[Vn]=Li,vi[Gn]=Ai}function yr(t){return t&~Ii?0>t?0:255:t>>Fi}function wr(t,e){return yr((19077*t>>8)+(26149*e>>8)-14234)}function Nr(t,e,r){return yr((19077*t>>8)-(6419*e>>8)-(13320*r>>8)+8708)}function Lr(t,e){return yr((19077*t>>8)+(33050*e>>8)-17685)}function Ar(t,e,r,n,i){n[i+0]=wr(t,r),n[i+1]=Nr(t,e,r),n[i+2]=Lr(t,e)}function xr(t,e,r,n,i){n[i+0]=Lr(t,e),n[i+1]=Nr(t,e,r),n[i+2]=wr(t,r)}function Sr(t,e,r,n,i){var a=Nr(t,e,r);e=a<<3&224|Lr(t,e)>>3,n[i+0]=248&wr(t,r)|a>>5,n[i+1]=e}function _r(t,e,r,n,i){var a=240&Lr(t,e)|15;n[i+0]=240&wr(t,r)|Nr(t,e,r)>>4,n[i+1]=a}function Pr(t,e,r,n,i){n[i+0]=255,Ar(t,e,r,n,i+1)}function kr(t,e,r,n,i){xr(t,e,r,n,i),n[i+3]=255}function Fr(t,e,r,n,i){Ar(t,e,r,n,i),n[i+3]=255}function Vt(t,e){return 0>t?0:t>e?e:t}function Ir(e,r,n){t[e]=function(t,e,i,a,o,s,c,u,l){for(var h=u+(-2&l)*n;u!=h;)r(t[e+0],i[a+0],o[s+0],c,u),r(t[e+1],i[a+0],o[s+0],c,u+n),e+=2,++a,++s,u+=2*n;1&l&&r(t[e+0],i[a+0],o[s+0],c,u)}}function Cr(t,e,r){return 0==r?0==t?0==e?6:5:0==e?4:0:r}function jr(t,e,r,n,i){switch(t>>>30){case 3:on(e,r,n,i,0);break;case 2:sn(e,r,n,i);break;case 1:un(e,r,n,i)}}function Or(t,e){var r,a,o=e.M,s=e.Nb,c=t.oc,u=t.pc+40,l=t.oc,h=t.pc+584,f=t.oc,d=t.pc+600;for(r=0;16>r;++r)c[u+32*r-1]=129;for(r=0;8>r;++r)l[h+32*r-1]=129,f[d+32*r-1]=129;for(0<o?c[u-1-32]=l[h-1-32]=f[d-1-32]=129:(i(c,u-32-1,127,21),i(l,h-32-1,127,9),i(f,d-32-1,127,9)),a=0;a<t.za;++a){var p=e.ya[e.aa+a];if(0<a){for(r=-1;16>r;++r)n(c,u+32*r-4,c,u+32*r+12,4);for(r=-1;8>r;++r)n(l,h+32*r-4,l,h+32*r+4,4),n(f,d+32*r-4,f,d+32*r+4,4)}var g=t.Gd,m=t.Hd+a,v=p.ad,b=p.Hc;if(0<o&&(n(c,u-32,g[m].y,0,16),n(l,h-32,g[m].f,0,8),n(f,d-32,g[m].ea,0,8)),p.Za){var y=c,w=u-32+16;for(0<o&&(a>=t.za-1?i(y,w,g[m].y[15],4):n(y,w,g[m+1].y,0,4)),r=0;4>r;r++)y[w+128+r]=y[w+256+r]=y[w+384+r]=y[w+0+r];for(r=0;16>r;++r,b<<=2)y=c,w=u+Di[r],fi[p.Ob[r]](y,w),jr(b,v,16*+r,y,w)}else if(y=Cr(a,o,p.Ob[0]),hi[y](c,u),0!=b)for(r=0;16>r;++r,b<<=2)jr(b,v,16*+r,c,u+Di[r]);for(r=p.Gc,y=Cr(a,o,p.Dd),di[y](l,h),di[y](f,d),b=v,y=l,w=h,255&(p=r>>0)&&(170&p?cn(b,256,y,w):ln(b,256,y,w)),p=f,b=d,255&(r>>=8)&&(170&r?cn(v,320,p,b):ln(v,320,p,b)),o<t.Ub-1&&(n(g[m].y,0,c,u+480,16),n(g[m].f,0,l,h+224,8),n(g[m].ea,0,f,d+224,8)),r=8*s*t.B,g=t.sa,m=t.ta+16*a+16*s*t.R,v=t.qa,p=t.ra+8*a+r,b=t.Ha,y=t.Ia+8*a+r,r=0;16>r;++r)n(g,m+r*t.R,c,u+32*r,16);for(r=0;8>r;++r)n(v,p+r*t.B,l,h+32*r,8),n(b,y+r*t.B,f,d+32*r,8)}}function Br(t,n,i,a,o,s,c,u,l){var h=[0],f=[0],d=0,p=null!=l?l.kd:0,g=null!=l?l:new nr;if(null==t||12>i)return 7;g.data=t,g.w=n,g.ha=i,n=[n],i=[i],g.gb=[g.gb];t:{var m=n,b=i,y=g.gb;if(e(null!=t),e(null!=b),e(null!=y),y[0]=0,12<=b[0]&&!r(t,m[0],"RIFF")){if(r(t,m[0]+8,"WEBP")){y=3;break t}var w=j(t,m[0]+4);if(12>w||4294967286<w){y=3;break t}if(p&&w>b[0]-8){y=7;break t}y[0]=w,m[0]+=12,b[0]-=12}y=0}if(0!=y)return y;for(w=0<g.gb[0],i=i[0];;){t:{var L=t;b=n,y=i;var A=h,x=f,S=m=[0];if((k=d=[d])[0]=0,8>y[0])y=7;else{if(!r(L,b[0],"VP8X")){if(10!=j(L,b[0]+4)){y=3;break t}if(18>y[0]){y=7;break t}var _=j(L,b[0]+8),P=1+C(L,b[0]+12);if(2147483648<=P*(L=1+C(L,b[0]+15))){y=3;break t}null!=S&&(S[0]=_),null!=A&&(A[0]=P),null!=x&&(x[0]=L),b[0]+=18,y[0]-=18,k[0]=1}y=0}}if(d=d[0],m=m[0],0!=y)return y;if(b=!!(2&m),!w&&d)return 3;if(null!=s&&(s[0]=!!(16&m)),null!=c&&(c[0]=b),null!=u&&(u[0]=0),c=h[0],m=f[0],d&&b&&null==l){y=0;break}if(4>i){y=7;break}if(w&&d||!w&&!d&&!r(t,n[0],"ALPH")){i=[i],g.na=[g.na],g.P=[g.P],g.Sa=[g.Sa];t:{_=t,y=n,w=i;var k=g.gb;A=g.na,x=g.P,S=g.Sa;P=22,e(null!=_),e(null!=w),L=y[0];var F=w[0];for(e(null!=A),e(null!=S),A[0]=null,x[0]=null,S[0]=0;;){if(y[0]=L,w[0]=F,8>F){y=7;break t}var I=j(_,L+4);if(4294967286<I){y=3;break t}var O=8+I+1&-2;if(P+=O,0<k&&P>k){y=3;break t}if(!r(_,L,"VP8 ")||!r(_,L,"VP8L")){y=0;break t}if(F[0]<O){y=7;break t}r(_,L,"ALPH")||(A[0]=_,x[0]=L+8,S[0]=I),L+=O,F-=O}}if(i=i[0],g.na=g.na[0],g.P=g.P[0],g.Sa=g.Sa[0],0!=y)break}i=[i],g.Ja=[g.Ja],g.xa=[g.xa];t:if(k=t,y=n,w=i,A=g.gb[0],x=g.Ja,S=g.xa,_=y[0],L=!r(k,_,"VP8 "),P=!r(k,_,"VP8L"),e(null!=k),e(null!=w),e(null!=x),e(null!=S),8>w[0])y=7;else{if(L||P){if(k=j(k,_+4),12<=A&&k>A-12){y=3;break t}if(p&&k>w[0]-8){y=7;break t}x[0]=k,y[0]+=8,w[0]-=8,S[0]=P}else S[0]=5<=w[0]&&47==k[_+0]&&!(k[_+4]>>5),x[0]=w[0];y=0}if(i=i[0],g.Ja=g.Ja[0],g.xa=g.xa[0],n=n[0],0!=y)break;if(4294967286<g.Ja)return 3;if(null==u||b||(u[0]=g.xa?2:1),c=[c],m=[m],g.xa){if(5>i){y=7;break}u=c,p=m,b=s,null==t||5>i?t=0:5<=i&&47==t[n+0]&&!(t[n+4]>>5)?(w=[0],k=[0],A=[0],v(x=new N,t,n,i),gt(x,w,k,A)?(null!=u&&(u[0]=w[0]),null!=p&&(p[0]=k[0]),null!=b&&(b[0]=A[0]),t=1):t=0):t=0}else{if(10>i){y=7;break}u=m,null==t||10>i||!Xt(t,n+3,i-3)?t=0:(p=t[n+0]|t[n+1]<<8|t[n+2]<<16,b=16383&(t[n+7]<<8|t[n+6]),t=16383&(t[n+9]<<8|t[n+8]),1&p||3<(p>>1&7)||!(p>>4&1)||p>>5>=g.Ja||!b||!t?t=0:(c&&(c[0]=b),u&&(u[0]=t),t=1))}if(!t)return 3;if(c=c[0],m=m[0],d&&(h[0]!=c||f[0]!=m))return 3;null!=l&&(l[0]=g,l.offset=n-l.w,e(4294967286>n-l.w),e(l.offset==l.ha-i));break}return 0==y||7==y&&d&&null==l?(null!=s&&(s[0]|=null!=g.na&&0<g.na.length),null!=a&&(a[0]=c),null!=o&&(o[0]=m),0):y}function Mr(t,e,r){var n=e.width,i=e.height,a=0,o=0,s=n,c=i;if(e.Da=null!=t&&0<t.Da,e.Da&&(s=t.cd,c=t.bd,a=t.v,o=t.j,11>r||(a&=-2,o&=-2),0>a||0>o||0>=s||0>=c||a+s>n||o+c>i))return 0;if(e.v=a,e.j=o,e.va=a+s,e.o=o+c,e.U=s,e.T=c,e.da=null!=t&&0<t.da,e.da){if(!E(s,c,r=[t.ib],a=[t.hb]))return 0;e.ib=r[0],e.hb=a[0]}return e.ob=null!=t&&t.ob,e.Kb=null==t||!t.Sd,e.da&&(e.ob=e.ib<3*n/4&&e.hb<3*i/4,e.Kb=0),1}function Er(t){if(null==t)return 2;if(11>t.S){var e=t.f.RGBA;e.fb+=(t.height-1)*e.A,e.A=-e.A}else e=t.f.kb,t=t.height,e.O+=(t-1)*e.fa,e.fa=-e.fa,e.N+=(t-1>>1)*e.Ab,e.Ab=-e.Ab,e.W+=(t-1>>1)*e.Db,e.Db=-e.Db,null!=e.F&&(e.J+=(t-1)*e.lb,e.lb=-e.lb);return 0}function qr(t,e,r,n){if(null==n||0>=t||0>=e)return 2;if(null!=r){if(r.Da){var i=r.cd,o=r.bd,s=-2&r.v,c=-2&r.j;if(0>s||0>c||0>=i||0>=o||s+i>t||c+o>e)return 2;t=i,e=o}if(r.da){if(!E(t,e,i=[r.ib],o=[r.hb]))return 2;t=i[0],e=o[0]}}n.width=t,n.height=e;t:{var u=n.width,l=n.height;if(t=n.S,0>=u||0>=l||!(t>=En&&13>t))t=2;else{if(0>=n.Rd&&null==n.sd){s=o=i=e=0;var h=(c=u*zi[t])*l;if(11>t||(o=(l+1)/2*(e=(u+1)/2),12==t&&(s=(i=u)*l)),null==(l=a(h+2*o+s))){t=1;break t}n.sd=l,11>t?((u=n.f.RGBA).eb=l,u.fb=0,u.A=c,u.size=h):((u=n.f.kb).y=l,u.O=0,u.fa=c,u.Fd=h,u.f=l,u.N=0+h,u.Ab=e,u.Cd=o,u.ea=l,u.W=0+h+o,u.Db=e,u.Ed=o,12==t&&(u.F=l,u.J=0+h+2*o),u.Tc=s,u.lb=i)}if(e=1,i=n.S,o=n.width,s=n.height,i>=En&&13>i)if(11>i)t=n.f.RGBA,e&=(c=Math.abs(t.A))*(s-1)+o<=t.size,e&=c>=o*zi[i],e&=null!=t.eb;else{t=n.f.kb,c=(o+1)/2,h=(s+1)/2,u=Math.abs(t.fa);l=Math.abs(t.Ab);var f=Math.abs(t.Db),d=Math.abs(t.lb),p=d*(s-1)+o;e&=u*(s-1)+o<=t.Fd,e&=l*(h-1)+c<=t.Cd,e=(e&=f*(h-1)+c<=t.Ed)&u>=o&l>=c&f>=c,e&=null!=t.y,e&=null!=t.f,e&=null!=t.ea,12==i&&(e&=d>=o,e&=p<=t.Tc,e&=null!=t.F)}else e=0;t=e?0:2}}return 0!=t||null!=r&&r.fd&&(t=Er(n)),t}var Dr=64,Rr=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Tr=24,Ur=32,zr=8,Hr=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];R("Predictor0","PredictorAdd0"),t.Predictor0=function(){return 4278190080},t.Predictor1=function(t){return t},t.Predictor2=function(t,e,r){return e[r+0]},t.Predictor3=function(t,e,r){return e[r+1]},t.Predictor4=function(t,e,r){return e[r-1]},t.Predictor5=function(t,e,r){return U(U(t,e[r+1]),e[r+0])},t.Predictor6=function(t,e,r){return U(t,e[r-1])},t.Predictor7=function(t,e,r){return U(t,e[r+0])},t.Predictor8=function(t,e,r){return U(e[r-1],e[r+0])},t.Predictor9=function(t,e,r){return U(e[r+0],e[r+1])},t.Predictor10=function(t,e,r){return U(U(t,e[r-1]),U(e[r+0],e[r+1]))},t.Predictor11=function(t,e,r){var n=e[r+0];return 0>=W(n>>24&255,t>>24&255,(e=e[r-1])>>24&255)+W(n>>16&255,t>>16&255,e>>16&255)+W(n>>8&255,t>>8&255,e>>8&255)+W(255&n,255&t,255&e)?n:t},t.Predictor12=function(t,e,r){var n=e[r+0];return(z((t>>24&255)+(n>>24&255)-((e=e[r-1])>>24&255))<<24|z((t>>16&255)+(n>>16&255)-(e>>16&255))<<16|z((t>>8&255)+(n>>8&255)-(e>>8&255))<<8|z((255&t)+(255&n)-(255&e)))>>>0},t.Predictor13=function(t,e,r){var n=e[r-1];return(H((t=U(t,e[r+0]))>>24&255,n>>24&255)<<24|H(t>>16&255,n>>16&255)<<16|H(t>>8&255,n>>8&255)<<8|H(t>>0&255,n>>0&255))>>>0};var Wr=t.PredictorAdd0;t.PredictorAdd1=V,R("Predictor2","PredictorAdd2"),R("Predictor3","PredictorAdd3"),R("Predictor4","PredictorAdd4"),R("Predictor5","PredictorAdd5"),R("Predictor6","PredictorAdd6"),R("Predictor7","PredictorAdd7"),R("Predictor8","PredictorAdd8"),R("Predictor9","PredictorAdd9"),R("Predictor10","PredictorAdd10"),R("Predictor11","PredictorAdd11"),R("Predictor12","PredictorAdd12"),R("Predictor13","PredictorAdd13");var Vr=t.PredictorAdd2;X("ColorIndexInverseTransform","MapARGB","32b",(function(t){return t>>8&255}),(function(t){return t})),X("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(t){return t}),(function(t){return t>>8&255}));var Gr,Yr=t.ColorIndexInverseTransform,Jr=t.MapARGB,Xr=t.VP8LColorIndexInverseTransformAlpha,Kr=t.MapAlpha,Zr=t.VP8LPredictorsAdd=[];Zr.length=16,(t.VP8LPredictors=[]).length=16,(t.VP8LPredictorsAdd_C=[]).length=16,(t.VP8LPredictors_C=[]).length=16;var $r,Qr,tn,en,rn,nn,an,on,sn,cn,un,ln,hn,fn,dn,pn,gn,mn,vn,bn,yn,wn,Nn,Ln,An,xn,Sn,_n,Pn=a(511),kn=a(2041),Fn=a(225),In=a(767),Cn=0,jn=kn,On=Fn,Bn=In,Mn=Pn,En=0,qn=1,Dn=2,Rn=3,Tn=4,Un=5,zn=6,Hn=7,Wn=8,Vn=9,Gn=10,Yn=[2,3,7],Jn=[3,3,11],Xn=[280,256,256,256,40],Kn=[0,1,1,1,0],Zn=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],$n=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Qn=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ti=8,ei=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],ri=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ni=null,ii=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],ai=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],oi=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],si=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],ci=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],ui=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],li=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],hi=[],fi=[],di=[],pi=1,gi=2,mi=[],vi=[];vr("UpsampleRgbLinePair",Ar,3),vr("UpsampleBgrLinePair",xr,3),vr("UpsampleRgbaLinePair",Fr,4),vr("UpsampleBgraLinePair",kr,4),vr("UpsampleArgbLinePair",Pr,4),vr("UpsampleRgba4444LinePair",_r,2),vr("UpsampleRgb565LinePair",Sr,2);var bi=t.UpsampleRgbLinePair,yi=t.UpsampleBgrLinePair,wi=t.UpsampleRgbaLinePair,Ni=t.UpsampleBgraLinePair,Li=t.UpsampleArgbLinePair,Ai=t.UpsampleRgba4444LinePair,xi=t.UpsampleRgb565LinePair,Si=16,_i=1<<Si-1,Pi=-227,ki=482,Fi=6,Ii=(256<<Fi)-1,Ci=0,ji=a(256),Oi=a(256),Bi=a(256),Mi=a(256),Ei=a(ki-Pi),qi=a(ki-Pi);Ir("YuvToRgbRow",Ar,3),Ir("YuvToBgrRow",xr,3),Ir("YuvToRgbaRow",Fr,4),Ir("YuvToBgraRow",kr,4),Ir("YuvToArgbRow",Pr,4),Ir("YuvToRgba4444Row",_r,2),Ir("YuvToRgb565Row",Sr,2);var Di=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ri=[0,2,8],Ti=[8,7,6,4,4,2,2,2,1,1,1,1],Ui=1;this.WebPDecodeRGBA=function(t,r,n,i,a){var o=qn,s=new rr,c=new ot;s.ba=c,c.S=o,c.width=[c.width],c.height=[c.height];var u=c.width,l=c.height,h=new st;if(null==h||null==t)var f=2;else e(null!=h),f=Br(t,r,n,h.width,h.height,h.Pd,h.Qd,h.format,null);if(0!=f?u=0:(null!=u&&(u[0]=h.width[0]),null!=l&&(l[0]=h.height[0]),u=1),u){c.width=c.width[0],c.height=c.height[0],null!=i&&(i[0]=c.width),null!=a&&(a[0]=c.height);t:{if(i=new Gt,(a=new nr).data=t,a.w=r,a.ha=n,a.kd=1,r=[0],e(null!=a),(0==(t=Br(a.data,a.w,a.ha,null,null,null,r,null,a))||7==t)&&r[0]&&(t=4),0==(r=t)){if(e(null!=s),i.data=a.data,i.w=a.w+a.offset,i.ha=a.ha-a.offset,i.put=dt,i.ac=ft,i.bc=pt,i.ma=s,a.xa){if(null==(t=kt())){s=1;break t}if(function(t,r){var n=[0],i=[0],a=[0];e:for(;;){if(null==t)return 0;if(null==r)return t.a=2,0;if(t.l=r,t.a=0,v(t.m,r.data,r.w,r.ha),!gt(t.m,n,i,a)){t.a=3;break e}if(t.xb=gi,r.width=n[0],r.height=i[0],!Ft(n[0],i[0],1,t,null))break e;return 1}return e(0!=t.a),0}(t,i)){if(i=0==(r=qr(i.width,i.height,s.Oa,s.ba))){e:{i=t;r:for(;;){if(null==i){i=0;break e}if(e(null!=i.s.yc),e(null!=i.s.Ya),e(0<i.s.Wb),e(null!=(n=i.l)),e(null!=(a=n.ma)),0!=i.xb){if(i.ca=a.ba,i.tb=a.tb,e(null!=i.ca),!Mr(a.Oa,n,Rn)){i.a=2;break r}if(!It(i,n.width))break r;if(n.da)break r;if((n.da||nt(i.ca.S))&&mr(),11>i.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=i.ca.f.kb.F&&mr()),i.Pb&&0<i.s.ua&&null==i.s.vb.X&&!O(i.s.vb,i.s.Wa.Xa)){i.a=1;break r}i.xb=0}if(!_t(i,i.V,i.Ba,i.c,i.i,n.o,Lt))break r;a.Dc=i.Ma,i=1;break e}e(0!=i.a),i=0}i=!i}i&&(r=t.a)}else r=t.a}else{if(null==(t=new Yt)){s=1;break t}if(t.Fa=a.na,t.P=a.P,t.qc=a.Sa,Kt(t,i)){if(0==(r=qr(i.width,i.height,s.Oa,s.ba))){if(t.Aa=0,n=s.Oa,e(null!=(a=t)),null!=n){if(0<(u=0>(u=n.Md)?0:100<u?255:255*u/100)){for(l=h=0;4>l;++l)12>(f=a.pb[l]).lc&&(f.ia=u*Ti[0>f.lc?0:f.lc]>>3),h|=f.ia;h&&(alert("todo:VP8InitRandom"),a.ia=1)}a.Ga=n.Id,100<a.Ga?a.Ga=100:0>a.Ga&&(a.Ga=0)}Qt(t,i)||(r=t.a)}}else r=t.a}0==r&&null!=s.Oa&&s.Oa.fd&&(r=Er(s.ba))}s=r}o=0!=s?null:11>o?c.f.RGBA.eb:c.f.kb.y}else o=null;return o};var zi=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(t,e){for(var r="",n=0;n<4;n++)r+=String.fromCharCode(t[e++]);return r}function l(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16)>>>0}function h(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}new c;var f=[0],d=[0],p=[],g=new c,m=t,v=function(t,e){var r={},n=0,i=!1,a=0,o=0;if(r.frames=[],!
/** @license
     * Copyright (c) 2017 Dominik Homberger
    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    https://webpjs.appspot.com
    WebPRiffParser dominikhlbg@gmail.com
    */
function(t,e,r,n){for(var i=0;i<n;i++)if(t[e+i]!=r.charCodeAt(i))return!0;return!1}(t,e,"RIFF",4)){var s,c;h(t,e+=4);for(e+=8;e<t.length;){var f=u(t,e),d=h(t,e+=4);e+=4;var p=d+(1&d);switch(f){case"VP8 ":case"VP8L":void 0===r.frames[n]&&(r.frames[n]={});(v=r.frames[n]).src_off=i?o:e-8,v.src_size=a+d+8,n++,i&&(i=!1,a=0,o=0);break;case"VP8X":(v=r.header={}).feature_flags=t[e];var g=e+4;v.canvas_width=1+l(t,g);g+=3;v.canvas_height=1+l(t,g);g+=3;break;case"ALPH":i=!0,a=p+8,o=e-8;break;case"ANIM":(v=r.header).bgcolor=h(t,e);g=e+4;v.loop_count=(s=t)[(c=g)+0]<<0|s[c+1]<<8;g+=2;break;case"ANMF":var m,v;(v=r.frames[n]={}).offset_x=2*l(t,e),e+=3,v.offset_y=2*l(t,e),e+=3,v.width=1+l(t,e),e+=3,v.height=1+l(t,e),e+=3,v.duration=l(t,e),e+=3,m=t[e++],v.dispose=1&m,v.blend=m>>1&1}"ANMF"!=f&&(e+=p)}return r}}(m,0);v.response=m,v.rgbaoutput=!0,v.dataurl=!1;var b=v.header?v.header:null,y=v.frames?v.frames:null;if(b){b.loop_counter=b.loop_count,f=[b.canvas_height],d=[b.canvas_width];for(var w=0;w<y.length&&0!=y[w].blend;w++);}var N=y[0],L=g.WebPDecodeRGBA(m,N.src_off,N.src_size,d,f);N.rgba=L,N.imgwidth=d[0],N.imgheight=f[0];for(var A=0;A<d[0]*f[0]*4;A++)p[A]=L[A];return this.width=d,this.height=f,this.data=p,this}!function(t){var e=function(){return!0},r=function(e,r,i,u){var l=4,h=o;switch(u){case t.image_compression.FAST:l=1,h=a;break;case t.image_compression.MEDIUM:l=6,h=s;break;case t.image_compression.SLOW:l=9,h=c}var f=_e(e=n(e,r,i,h),{level:l});return t.__addimage__.arrayBufferToBinaryString(f)},n=function(t,e,r,n){for(var i,a,o,s=t.length/e,c=new Uint8Array(t.length+s),u=l(),f=0;f<s;f+=1){if(o=f*e,i=t.subarray(o,o+e),n)c.set(n(i,r,a),o+f);else{for(var d,p=u.length,g=[];d<p;d+=1)g[d]=u[d](i,r,a);var m=h(g.concat());c.set(g[m],o+f)}a=i}return c},i=function(t){var e=Array.apply([],t);return e.unshift(0),e},a=function(t,e){var r,n=[],i=t.length;n[0]=1;for(var a=0;a<i;a+=1)r=t[a-e]||0,n[a+1]=t[a]-r+256&255;return n},o=function(t,e,r){var n,i=[],a=t.length;i[0]=2;for(var o=0;o<a;o+=1)n=r&&r[o]||0,i[o+1]=t[o]-n+256&255;return i},s=function(t,e,r){var n,i,a=[],o=t.length;a[0]=3;for(var s=0;s<o;s+=1)n=t[s-e]||0,i=r&&r[s]||0,a[s+1]=t[s]+256-(n+i>>>1)&255;return a},c=function(t,e,r){var n,i,a,o,s=[],c=t.length;s[0]=4;for(var l=0;l<c;l+=1)n=t[l-e]||0,i=r&&r[l]||0,a=r&&r[l-e]||0,o=u(n,i,a),s[l+1]=t[l]-o+256&255;return s},u=function(t,e,r){if(t===e&&e===r)return t;var n=Math.abs(e-r),i=Math.abs(t-r),a=Math.abs(t+e-r-r);return n<=i&&n<=a?t:i<=a?e:r},l=function(){return[i,a,o,s,c]},h=function(t){var e=t.map((function(t){return t.reduce((function(t,e){return t+Math.abs(e)}),0)}));return e.indexOf(Math.min.apply(null,e))};t.processPNG=function(n,i,a,o){var s,c,u,l,h,f,d,p,g,m,v,b,y,w,N,L=this.decode.FLATE_DECODE,A="";if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){if(n=(u=new Oe(n)).imgData,c=u.bits,s=u.colorSpace,h=u.colors,-1!==[4,6].indexOf(u.colorType)){if(8===u.bits){g=(p=32==u.pixelBitlength?new Uint32Array(u.decodePixels().buffer):16==u.pixelBitlength?new Uint16Array(u.decodePixels().buffer):new Uint8Array(u.decodePixels().buffer)).length,v=new Uint8Array(g*u.colors),m=new Uint8Array(g);var x,S=u.pixelBitlength-u.bits;for(w=0,N=0;w<g;w++){for(y=p[w],x=0;x<S;)v[N++]=y>>>x&255,x+=u.bits;m[w]=y>>>x&255}}if(16===u.bits){g=(p=new Uint32Array(u.decodePixels().buffer)).length,v=new Uint8Array(g*(32/u.pixelBitlength)*u.colors),m=new Uint8Array(g*(32/u.pixelBitlength)),b=u.colors>1,w=0,N=0;for(var _=0;w<g;)y=p[w++],v[N++]=y>>>0&255,b&&(v[N++]=y>>>16&255,y=p[w++],v[N++]=y>>>0&255),m[_++]=y>>>16&255;c=8}o!==t.image_compression.NONE&&e()?(n=r(v,u.width*u.colors,u.colors,o),d=r(m,u.width,1,o)):(n=v,d=m,L=void 0)}if(3===u.colorType&&(s=this.color_spaces.INDEXED,f=u.palette,u.transparency.indexed)){var P=u.transparency.indexed,k=0;for(w=0,g=P.length;w<g;++w)k+=P[w];if((k/=255)===g-1&&-1!==P.indexOf(0))l=[P.indexOf(0)];else if(k!==g){for(p=u.decodePixels(),m=new Uint8Array(p.length),w=0,g=p.length;w<g;w++)m[w]=P[p[w]];d=r(m,u.width,1)}}var F=function(e){var r;switch(e){case t.image_compression.FAST:r=11;break;case t.image_compression.MEDIUM:r=13;break;case t.image_compression.SLOW:r=14;break;default:r=12}return r}(o);return L===this.decode.FLATE_DECODE&&(A="/Predictor "+F+" "),A+="/Colors "+h+" /BitsPerComponent "+c+" /Columns "+u.width,(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(d&&this.__addimage__.isArrayBuffer(d)||this.__addimage__.isArrayBufferView(d))&&(d=this.__addimage__.arrayBufferToBinaryString(d)),{alias:a,data:n,index:i,filter:L,decodeParameters:A,transparency:l,palette:f,sMask:d,predictor:F,width:u.width,height:u.height,bitsPerComponent:c,colorSpace:s}}}}(M.API),function(t){t.processGIF89A=function(e,r,n,i){var a=new Be(e),o=a.width,s=a.height,c=[];a.decodeAndBlitFrameRGBA(0,c);var u={data:c,width:o,height:s},l=new Ee(100).encode(u,100);return t.processJPEG.call(this,l,r,n,i)},t.processGIF87A=t.processGIF89A}(M.API),qe.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:n,blue:r,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},qe.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(t){i.log("bit decode error:"+t)}},qe.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),r=e%4;for(t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,i=0;i<e;i++)for(var a=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var c=this.palette[a>>7-s&1];this.data[o+4*s]=c.blue,this.data[o+4*s+1]=c.green,this.data[o+4*s+2]=c.red,this.data[o+4*s+3]=255}0!==r&&(this.pos+=4-r)}},qe.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<t;i++){var a=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+2*i*4,s=a>>4,c=15&a,u=this.palette[s];if(this.data[o]=u.blue,this.data[o+1]=u.green,this.data[o+2]=u.red,this.data[o+3]=255,2*i+1>=this.width)break;u=this.palette[c],this.data[o+4]=u.blue,this.data[o+4+1]=u.green,this.data[o+4+2]=u.red,this.data[o+4+3]=255}0!==e&&(this.pos+=4-e)}},qe.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+4*n;if(i<this.palette.length){var o=this.palette[i];this.data[a]=o.red,this.data[a+1]=o.green,this.data[a+2]=o.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}0!==t&&(this.pos+=4-t)}},qe.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(a&e)/e*255|0,s=(a>>5&e)/e*255|0,c=(a>>10&e)/e*255|0,u=a>>15?255:0,l=n*this.width*4+4*i;this.data[l]=c,this.data[l+1]=s,this.data[l+2]=o,this.data[l+3]=u}this.pos+=t}},qe.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&e)/e*255|0,c=(o>>5&r)/r*255|0,u=(o>>11)/e*255|0,l=i*this.width*4+4*a;this.data[l]=u,this.data[l+1]=c,this.data[l+2]=s,this.data[l+3]=255}this.pos+=t}},qe.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*r;this.data[o]=a,this.data[o+1]=i,this.data[o+2]=n,this.data[o+3]=255}this.pos+=this.width%4}},qe.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*r;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=n,this.data[s+3]=o}},qe.prototype.getData=function(){return this.data},
/**
   * @license
   * Copyright (c) 2018 Aras Abbasi
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){t.processBMP=function(e,r,n,i){var a=new qe(e,!1),o=a.width,s=a.height,c={data:a.getData(),width:o,height:s},u=new Ee(100).encode(c,100);return t.processJPEG.call(this,u,r,n,i)}}(M.API),De.prototype.getData=function(){return this.data},
/**
   * @license
   * Copyright (c) 2019 Aras Abbasi
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){t.processWEBP=function(e,r,n,i){var a=new De(e,!1),o=a.width,s=a.height,c={data:a.getData(),width:o,height:s},u=new Ee(100).encode(c,100);return t.processJPEG.call(this,u,r,n,i)}}(M.API),
/**
   * @license
   *
   * Copyright (c) 2021 Antti Palola, https://github.com/Pantura
   *
   * Permission is hereby granted, free of charge, to any person obtaining
   * a copy of this software and associated documentation files (the
   * "Software"), to deal in the Software without restriction, including
   * without limitation the rights to use, copy, modify, merge, publish,
   * distribute, sublicense, and/or sell copies of the Software, and to
   * permit persons to whom the Software is furnished to do so, subject to
   * the following conditions:
   *
   * The above copyright notice and this permission notice shall be
   * included in all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
   * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
   * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
   * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
   * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   * ====================================================================
   */
function(t){t.processRGBA=function(t,e,r){for(var n=t.data,i=n.length,a=new Uint8Array(i/4*3),o=new Uint8Array(i/4),s=0,c=0,u=0;u<i;u+=4){var l=n[u],h=n[u+1],f=n[u+2],d=n[u+3];a[s++]=l,a[s++]=h,a[s++]=f,o[c++]=d}var p=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:p,index:e,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}}}(M.API),
/**
   * @license
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){t.setLanguage=function(t){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]&&(this.internal.languageSettings.languageCode=t,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this}}(M.API),ke=M.API,Fe=ke.getCharWidthsArray=function(t,r){var n,i,a=(r=r||{}).font||this.internal.getFont(),o=r.fontSize||this.internal.getFontSize(),s=r.charSpace||this.internal.getCharSpace(),c=r.widths?r.widths:a.metadata.Unicode.widths,u=c.fof?c.fof:1,l=r.kerning?r.kerning:a.metadata.Unicode.kerning,h=l.fof?l.fof:1,f=!1!==r.doKerning,d=0,p=t.length,g=0,m=c[0]||u,v=[];for(n=0;n<p;n++)i=t.charCodeAt(n),"function"==typeof a.metadata.widthOfString?v.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(i))+s*(1e3/o)||0)/1e3):(d=f&&"object"===e(l[i])&&!isNaN(parseInt(l[i][g],10))?l[i][g]/h:0,v.push((c[i]||m)/u+d)),g=i;return v},Ie=ke.getStringUnitWidth=function(t,e){var r=(e=e||{}).fontSize||this.internal.getFontSize(),n=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return ke.processArabic&&(t=ke.processArabic(t)),"function"==typeof n.metadata.widthOfString?n.metadata.widthOfString(t,r,i)/r:Fe.apply(this,arguments).reduce((function(t,e){return t+e}),0)},Ce=function(t,e,r,n){for(var i=[],a=0,o=t.length,s=0;a!==o&&s+e[a]<r;)s+=e[a],a++;i.push(t.slice(0,a));var c=a;for(s=0;a!==o;)s+e[a]>n&&(i.push(t.slice(c,a)),s=0,c=a),s+=e[a],a++;return c!==a&&i.push(t.slice(c,a)),i},je=function(t,e,r){r||(r={});var n,i,a,o,s,c,u,l=[],h=[l],f=r.textIndent||0,d=0,p=0,g=t.split(" "),m=Fe.apply(this,[" ",r])[0];if(c=-1===r.lineIndent?g[0].length+2:r.lineIndent||0){var v=Array(c).join(" "),b=[];g.map((function(t){(t=t.split(/\s*\n/)).length>1?b=b.concat(t.map((function(t,e){return(e&&t.length?"\n":"")+t}))):b.push(t[0])})),g=b,c=Ie.apply(this,[v,r])}for(a=0,o=g.length;a<o;a++){var y=0;if(n=g[a],c&&"\n"==n[0]&&(n=n.substr(1),y=1),f+d+(p=(i=Fe.apply(this,[n,r])).reduce((function(t,e){return t+e}),0))>e||y){if(p>e){for(s=Ce.apply(this,[n,i,e-(f+d),e]),l.push(s.shift()),l=[s.pop()];s.length;)h.push([s.shift()]);p=i.slice(n.length-(l[0]?l[0].length:0)).reduce((function(t,e){return t+e}),0)}else l=[n];h.push(l),f=p+c,d=m}else l.push(n),f+=d+p,d=m}return u=c?function(t,e){return(e?v:"")+t.join(" ")}:function(t){return t.join(" ")},h.map(u)},ke.splitTextToSize=function(t,e,r){var n,i=(r=r||{}).fontSize||this.internal.getFontSize(),a=function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var e=this.internal.getFont(t.fontName,t.fontStyle);return e.metadata.Unicode?{widths:e.metadata.Unicode.widths||{0:1},kerning:e.metadata.Unicode.kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,r);n=Array.isArray(t)?t:String(t).split(/\r?\n/);var o=1*this.internal.scaleFactor*e/i;a.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=r.lineIndent;var s,c,u=[];for(s=0,c=n.length;s<c;s++)u=u.concat(je.apply(this,[n[s],o,a]));return u},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var r="klmnopqrstuvwxyz",n={},i={},a=0;a<r.length;a++)n[r[a]]="0123456789abcdef"[a],i["0123456789abcdef"[a]]=r[a];var o=function(t){return"0x"+parseInt(t,10).toString(16)},s=t.__fontmetrics__.compress=function(t){var r,n,a,c,u=["{"];for(var l in t){if(r=t[l],isNaN(parseInt(l,10))?n="'"+l+"'":(l=parseInt(l,10),n=(n=o(l).slice(2)).slice(0,-1)+i[n.slice(-1)]),"number"==typeof r)r<0?(a=o(r).slice(3),c="-"):(a=o(r).slice(2),c=""),a=c+a.slice(0,-1)+i[a.slice(-1)];else{if("object"!==e(r))throw new Error("Don't know what to do with value type "+e(r)+".");a=s(r)}u.push(n+a)}return u.push("}"),u.join("")},c=t.__fontmetrics__.uncompress=function(t){if("string"!=typeof t)throw new Error("Invalid argument passed to uncompress.");for(var e,r,i,a,o={},s=1,c=o,u=[],l="",h="",f=t.length-1,d=1;d<f;d+=1)"'"==(a=t[d])?e?(i=e.join(""),e=void 0):e=[]:e?e.push(a):"{"==a?(u.push([c,i]),c={},i=void 0):"}"==a?((r=u.pop())[0][r[1]]=c,i=void 0,c=r[0]):"-"==a?s=-1:void 0===i?n.hasOwnProperty(a)?(l+=n[a],i=parseInt(l,16)*s,s=1,l=""):l+=a:n.hasOwnProperty(a)?(h+=n[a],c[i]=parseInt(h,16)*s,s=1,i=void 0,h=""):h+=a;return o},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},l={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},h={Unicode:{"Courier-Oblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":c("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":c("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:c("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:c("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":c("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":c("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(t){var e=t.font,r=h.Unicode[e.postScriptName];r&&(e.metadata.Unicode={},e.metadata.Unicode.widths=r.widths,e.metadata.Unicode.kerning=r.kerning);var n=l.Unicode[e.postScriptName];n&&(e.metadata.Unicode.encoding=n,e.encoding=n.codePages[0])}])}(M.API),
/**
   * @license
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++)r[n]=t.charCodeAt(n);return r};t.API.events.push(["addFont",function(r){var n=void 0,i=r.font,a=r.instance;if(!i.isStandardFont){if(void 0===a)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if("string"!=typeof(n=!1===a.existsFileInVFS(i.postScriptName)?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");!function(r,n){n=/^\x00\x01\x00\x00/.test(n)?e(n):e(c(n)),r.metadata=t.API.TTFFont.open(n),r.metadata.Unicode=r.metadata.Unicode||{encoding:{},kerning:{},widths:[]},r.metadata.glyIdsUsed=[0]}(i,n)}}])}(M),function(n){function a(){return(r.canvg?Promise.resolve(r.canvg):Promise.reject(new Error("Could not load canvg"))).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}n.addSvgAsImage=function(t,e,r,n,o,s,c,u){if(isNaN(e)||isNaN(r))throw i.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(n)||isNaN(o))throw i.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=n,l.height=o;var h=l.getContext("2d");h.fillStyle="#fff",h.fillRect(0,0,l.width,l.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return a().then((function(e){return e.fromString(h,t,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(f)})).then((function(){d.addImage(l.toDataURL("image/jpeg",1),e,r,n,o,c,u)}))}}(M.API),
/**
   * @license
   * ====================================================================
   * Copyright (c) 2013 Eduardo Menezes de Morais, eduardo.morais@usp.br
   *
   * Permission is hereby granted, free of charge, to any person obtaining
   * a copy of this software and associated documentation files (the
   * "Software"), to deal in the Software without restriction, including
   * without limitation the rights to use, copy, modify, merge, publish,
   * distribute, sublicense, and/or sell copies of the Software, and to
   * permit persons to whom the Software is furnished to do so, subject to
   * the following conditions:
   *
   * The above copyright notice and this permission notice shall be
   * included in all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
   * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
   * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
   * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
   * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   * ====================================================================
   */
function(t){t.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,r);return this}}(M.API),function(t){t.viewerPreferences=function(t,r){var n;t=t||{},r=r||!1;var i,a,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},c=Object.keys(s),u=[],l=0,h=0,f=0;function d(t,e){var r,n=!1;for(r=0;r<t.length;r+=1)t[r]===e&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===t||!0===r){var p=c.length;for(f=0;f<p;f+=1)n[c[f]].value=n[c[f]].defaultValue,n[c[f]].explicitSet=!1}if("object"===e(t))for(a in t)if(o=t[a],d(c,a)&&void 0!==o){if("boolean"===n[a].type&&"boolean"==typeof o)n[a].value=o;else if("name"===n[a].type&&d(n[a].valueSet,o))n[a].value=o;else if("integer"===n[a].type&&Number.isInteger(o))n[a].value=o;else if("array"===n[a].type){for(l=0;l<o.length;l+=1)if(i=!0,1===o[l].length&&"number"==typeof o[l][0])u.push(String(o[l]-1));else if(o[l].length>1){for(h=0;h<o[l].length;h+=1)"number"!=typeof o[l][h]&&(i=!1);!0===i&&u.push([o[l][0]-1,o[l][1]-1].join(" "))}n[a].value="["+u.join(" ")+"]"}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this}}(M.API),
/** ====================================================================
   * @license
   * jsPDF XMP metadata plugin
   * Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
   *
   * Permission is hereby granted, free of charge, to any person obtaining
   * a copy of this software and associated documentation files (the
   * "Software"), to deal in the Software without restriction, including
   * without limitation the rights to use, copy, modify, merge, publish,
   * distribute, sublicense, and/or sell copies of the Software, and to
   * permit persons to whom the Software is furnished to do so, subject to
   * the following conditions:
   *
   * The above copyright notice and this permission notice shall be
   * included in all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
   * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
   * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
   * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
   * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   * ====================================================================
   */
function(t){var e=function(){var t='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),r=unescape(encodeURIComponent(t)),n=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),i=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),a=unescape(encodeURIComponent("</x:xmpmeta>")),o=r.length+n.length+i.length+e.length+a.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+o+" >>"),this.internal.write("stream"),this.internal.write(e+r+n+i+a),this.internal.write("endstream"),this.internal.write("endobj")},r=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.addMetadata=function(t,n){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:t,namespaceuri:n||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",r),this.internal.events.subscribe("postPutResources",e)),this}}(M.API),function(t){var e=t.API,r=e.pdfEscape16=function(t,e){for(var r,n=e.metadata.Unicode.widths,i=["","0","00","000","0000"],a=[""],o=0,s=t.length;o<s;++o){if(r=e.metadata.characterToGlyph(t.charCodeAt(o)),e.metadata.glyIdsUsed.push(r),e.metadata.toUnicode[r]=t.charCodeAt(o),-1==n.indexOf(r)&&(n.push(r),n.push([parseInt(e.metadata.widthOfGlyph(r),10)])),"0"==r)return a.join("");r=r.toString(16),a.push(i[4-r.length],r)}return a.join("")},n=function(t){var e,r,n,i,a,o,s;for(a="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",n=[],o=0,s=(r=Object.keys(t).sort((function(t,e){return t-e}))).length;o<s;o++)e=r[o],n.length>=100&&(a+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar",n=[]),void 0!==t[e]&&null!==t[e]&&"function"==typeof t[e].toString&&(i=("0000"+t[e].toString(16)).slice(-4),e=("0000"+(+e).toString(16)).slice(-4),n.push("<"+e+"><"+i+">"));return n.length&&(a+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar\n"),a+="endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};e.events.push(["putFont",function(e){!function(e){var r=e.font,i=e.out,a=e.newObject,o=e.putStream;if(r.metadata instanceof t.API.TTFFont&&"Identity-H"===r.encoding){for(var s=r.metadata.Unicode.widths,c=r.metadata.subset.encode(r.metadata.glyIdsUsed,1),u="",l=0;l<c.length;l++)u+=String.fromCharCode(c[l]);var h=a();o({data:u,addLength1:!0,objectId:h}),i("endobj");var f=a();o({data:n(r.metadata.toUnicode),addLength1:!0,objectId:f}),i("endobj");var d=a();i("<<"),i("/Type /FontDescriptor"),i("/FontName /"+F(r.fontName)),i("/FontFile2 "+h+" 0 R"),i("/FontBBox "+t.API.PDFObject.convert(r.metadata.bbox)),i("/Flags "+r.metadata.flags),i("/StemV "+r.metadata.stemV),i("/ItalicAngle "+r.metadata.italicAngle),i("/Ascent "+r.metadata.ascender),i("/Descent "+r.metadata.decender),i("/CapHeight "+r.metadata.capHeight),i(">>"),i("endobj");var p=a();i("<<"),i("/Type /Font"),i("/BaseFont /"+F(r.fontName)),i("/FontDescriptor "+d+" 0 R"),i("/W "+t.API.PDFObject.convert(s)),i("/CIDToGIDMap /Identity"),i("/DW 1000"),i("/Subtype /CIDFontType2"),i("/CIDSystemInfo"),i("<<"),i("/Supplement 0"),i("/Registry (Adobe)"),i("/Ordering ("+r.encoding+")"),i(">>"),i(">>"),i("endobj"),r.objectNumber=a(),i("<<"),i("/Type /Font"),i("/Subtype /Type0"),i("/ToUnicode "+f+" 0 R"),i("/BaseFont /"+F(r.fontName)),i("/Encoding /"+r.encoding),i("/DescendantFonts ["+p+" 0 R]"),i(">>"),i("endobj"),r.isAlreadyPutted=!0}}(e)}]);e.events.push(["putFont",function(e){!function(e){var r=e.font,i=e.out,a=e.newObject,o=e.putStream;if(r.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===r.encoding){for(var s=r.metadata.rawData,c="",u=0;u<s.length;u++)c+=String.fromCharCode(s[u]);var l=a();o({data:c,addLength1:!0,objectId:l}),i("endobj");var h=a();o({data:n(r.metadata.toUnicode),addLength1:!0,objectId:h}),i("endobj");var f=a();i("<<"),i("/Descent "+r.metadata.decender),i("/CapHeight "+r.metadata.capHeight),i("/StemV "+r.metadata.stemV),i("/Type /FontDescriptor"),i("/FontFile2 "+l+" 0 R"),i("/Flags 96"),i("/FontBBox "+t.API.PDFObject.convert(r.metadata.bbox)),i("/FontName /"+F(r.fontName)),i("/ItalicAngle "+r.metadata.italicAngle),i("/Ascent "+r.metadata.ascender),i(">>"),i("endobj"),r.objectNumber=a();for(var d=0;d<r.metadata.hmtx.widths.length;d++)r.metadata.hmtx.widths[d]=parseInt(r.metadata.hmtx.widths[d]*(1e3/r.metadata.head.unitsPerEm));i("<</Subtype/TrueType/Type/Font/ToUnicode "+h+" 0 R/BaseFont/"+F(r.fontName)+"/FontDescriptor "+f+" 0 R/Encoding/"+r.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(r.metadata.hmtx.widths)+">>"),i("endobj"),r.isAlreadyPutted=!0}}(e)}]);var i=function(t){var e,n=t.text||"",i=t.x,a=t.y,o=t.options||{},s=t.mutex||{},c=s.pdfEscape,u=s.activeFontKey,l=s.fonts,h=u,f="",d=0,p="",g=l[h].encoding;if("Identity-H"!==l[h].encoding)return{text:n,x:i,y:a,options:o,mutex:s};for(p=n,h=u,Array.isArray(n)&&(p=n[0]),d=0;d<p.length;d+=1)l[h].metadata.hasOwnProperty("cmap")&&(e=l[h].metadata.cmap.unicode.codeMap[p[d].charCodeAt(0)]),e||p[d].charCodeAt(0)<256&&l[h].metadata.hasOwnProperty("Unicode")?f+=p[d]:f+="";var m="";return parseInt(h.slice(1))<14||"WinAnsiEncoding"===g?m=c(f,h).split("").map((function(t){return t.charCodeAt(0).toString(16)})).join(""):"Identity-H"===g&&(m=r(f,l[h])),s.isHex=!0,{text:m,x:i,y:a,options:o,mutex:s}};e.events.push(["postProcessText",function(t){var e=t.text||"",r=[],n={text:e,x:t.x,y:t.y,options:t.options,mutex:t.mutex};if(Array.isArray(e)){var a=0;for(a=0;a<e.length;a+=1)Array.isArray(e[a])&&3===e[a].length?r.push([i(Object.assign({},n,{text:e[a][0]})).text,e[a][1],e[a][2]]):r.push(i(Object.assign({},n,{text:e[a]})).text);t.text=r}else t.text=i(Object.assign({},n,{text:e})).text}])}(M),
/**
   * @license
   * jsPDF virtual FileSystem functionality
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){var e=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]},t.addFileToVFS=function(t,r){return e.call(this),this.internal.vFS[t]=r,this},t.getFileFromVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null}}(M.API),
/**
   * @license
   * Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
   * MIT License
   */
function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(t){var r,n,i,a,o,s,c,u=e,l=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],f={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},d={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","Â«","Â»","Â«","â€¹","â€º","â€¹","â?…","â?†","â?…","â?½","â?¾","â?½","â‚?","â‚Ž","â‚?","â‰¤","â‰¥","â‰¤","âŒ©","âŒª","âŒ©","ï¹™","ï¹š","ï¹™","ï¹›","ï¹œ","ï¹›","ï¹?","ï¹ž","ï¹?","ï¹¤","ï¹¥","ï¹¤"],g=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),m=!1,v=0;this.__bidiEngine__={};var b=function(t){var e=t.charCodeAt(),r=e>>8,n=d[r];return void 0!==n?u[256*n+(255&e)]:252===r||253===r?"AL":g.test(r)?"L":8===r?"R":"N"},y=function(t){for(var e,r=0;r<t.length;r++){if("L"===(e=b(t.charAt(r))))return!1;if("R"===e)return!0}return!1},w=function(t,e,o,s){var c,u,l,h,f=e[s];switch(f){case"L":case"R":m=!1;break;case"N":case"AN":break;case"EN":m&&(f="AN");break;case"AL":m=!0,f="R";break;case"WS":f="N";break;case"CS":s<1||s+1>=e.length||"EN"!==(c=o[s-1])&&"AN"!==c||"EN"!==(u=e[s+1])&&"AN"!==u?f="N":m&&(u="AN"),f=u===c?u:"N";break;case"ES":f="EN"===(c=s>0?o[s-1]:"B")&&s+1<e.length&&"EN"===e[s+1]?"EN":"N";break;case"ET":if(s>0&&"EN"===o[s-1]){f="EN";break}if(m){f="N";break}for(l=s+1,h=e.length;l<h&&"ET"===e[l];)l++;f=l<h&&"EN"===e[l]?"EN":"N";break;case"NSM":if(i&&!a){for(h=e.length,l=s+1;l<h&&"NSM"===e[l];)l++;if(l<h){var d=t[s],p=d>=1425&&d<=2303||64286===d;if(c=e[l],p&&("R"===c||"AL"===c)){f="R";break}}}f=s<1||"B"===(c=e[s-1])?"N":o[s-1];break;case"B":m=!1,r=!0,f=v;break;case"S":n=!0,f="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":m=!1;break;case"BN":f="N"}return f},N=function(t,e,r){var n=t.split("");return r&&L(n,r,{hiLevel:v}),n.reverse(),e&&e.reverse(),n.join("")},L=function(t,e,i){var a,o,s,c,u,d=-1,p=t.length,g=0,y=[],N=v?h:l,L=[];for(m=!1,r=!1,n=!1,o=0;o<p;o++)L[o]=b(t[o]);for(s=0;s<p;s++){if(u=g,y[s]=w(t,L,y,s),a=240&(g=N[u][f[y[s]]]),g&=15,e[s]=c=N[g][5],a>0)if(16===a){for(o=d;o<s;o++)e[o]=1;d=-1}else d=-1;if(N[g][6])-1===d&&(d=s);else if(d>-1){for(o=d;o<s;o++)e[o]=c;d=-1}"B"===L[s]&&(e[s]=0),i.hiLevel|=c}n&&function(t,e,r){for(var n=0;n<r;n++)if("S"===t[n]){e[n]=v;for(var i=n-1;i>=0&&"WS"===t[i];i--)e[i]=v}}(L,e,p)},A=function(t,e,n,i,a){if(!(a.hiLevel<t)){if(1===t&&1===v&&!r)return e.reverse(),void(n&&n.reverse());for(var o,s,c,u,l=e.length,h=0;h<l;){if(i[h]>=t){for(c=h+1;c<l&&i[c]>=t;)c++;for(u=h,s=c-1;u<s;u++,s--)o=e[u],e[u]=e[s],e[s]=o,n&&(o=n[u],n[u]=n[s],n[s]=o);h=c}h++}}},x=function(t,e,r){var n=t.split(""),i={hiLevel:v};return r||(r=[]),L(n,r,i),function(t,e,r){if(0!==r.hiLevel&&c)for(var n,i=0;i<t.length;i++)1===e[i]&&(n=p.indexOf(t[i]))>=0&&(t[i]=p[n+1])}(n,r,i),A(2,n,e,r,i),A(1,n,e,r,i),n.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,r){if(function(t,e){if(e)for(var r=0;r<t.length;r++)e[r]=r;void 0===a&&(a=y(t)),void 0===s&&(s=y(t))}(t,e),i||!o||s)if(i&&o&&a^s)v=a?1:0,t=N(t,e,r);else if(!i&&o&&s)v=a?1:0,t=x(t,e,r),t=N(t,e);else if(!i||a||o||s){if(i&&!o&&a^s)t=N(t,e),a?(v=0,t=x(t,e,r)):(v=1,t=x(t,e,r),t=N(t,e));else if(i&&a&&!o&&s)v=1,t=x(t,e,r),t=N(t,e);else if(!i&&!o&&a^s){var n=c;a?(v=1,t=x(t,e,r),v=0,c=!1,t=x(t,e,r),c=n):(v=0,t=x(t,e,r),t=N(t,e),v=1,c=!1,t=x(t,e,r),c=n,t=N(t,e))}}else v=0,t=x(t,e,r);else v=a?1:0,t=x(t,e,r);return t},this.__bidiEngine__.setOptions=function(t){t&&(i=t.isInputVisual,o=t.isOutputVisual,a=t.isInputRtl,s=t.isOutputRtl,c=t.isSymmetricSwapping)},this.__bidiEngine__.setOptions(t),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],r=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(t){var e=t.text,n=(t.x,t.y,t.options||{}),i=(t.mutex,n.lang,[]);if(n.isInputVisual="boolean"!=typeof n.isInputVisual||n.isInputVisual,r.setOptions(n),"[object Array]"===Object.prototype.toString.call(e)){var a=0;for(i=[],a=0;a<e.length;a+=1)"[object Array]"===Object.prototype.toString.call(e[a])?i.push([r.doBidiReorder(e[a][0]),e[a][1],e[a][2]]):i.push([r.doBidiReorder(e[a])]);t.text=i}else t.text=r.doBidiReorder(e);r.setOptions({isInputVisual:!0})}])}(M),M.API.TTFFont=function(){function t(t){var e;if(this.rawData=t,e=this.contents=new Te(t),this.contents.pos=4,"ttcf"===e.readString(4))throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new ar(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new Ue(this.contents),this.head=new We(this),this.name=new Ze(this),this.cmap=new Ge(this),this.toUnicode={},this.hhea=new Ye(this),this.maxp=new $e(this),this.hmtx=new Qe(this),this.post=new Xe(this),this.os2=new Je(this),this.loca=new ir(this),this.glyf=new er(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var t,e,r,n,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,r,n,i;for(i=[],e=0,r=(n=this.bbox).length;e<r;e++)t=n[e],i.push(Math.round(t*this.scaleFactor));return i}.call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),0!=(32768&(e=n>>16))&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(i=this.familyClass)||2===i||3===i||4===i||5===i||7===i,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},t.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},t.prototype.widthOfString=function(t,e,r){var n,i,a,o;for(a=0,i=0,o=(t=""+t).length;0<=o?i<o:i>o;i=0<=o?++i:--i)n=t.charCodeAt(i),a+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/e)||0;return a*(e/1e3)},t.prototype.lineHeight=function(t,e){var r;return null==e&&(e=!1),r=e?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},t}();var Re,Te=function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},t.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,r;for(r=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)r[e]=String.fromCharCode(this.readByte());return r.join("")},t.prototype.writeString=function(t){var e,r,n;for(n=[],e=0,r=t.length;0<=r?e<r:e>r;e=0<=r?++e:--e)n.push(this.writeByte(t.charCodeAt(e)));return n},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,r,n,i,a,o,s;return t=this.readByte(),e=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),o=this.readByte(),s=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^i)+65536*(255^a)+256*(255^o)+(255^s)+1):72057594037927940*t+281474976710656*e+1099511627776*r+4294967296*n+16777216*i+65536*a+256*o+s},t.prototype.writeLongLong=function(t){var e,r;return e=Math.floor(t/4294967296),r=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,r;for(e=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)e.push(this.readByte());return e},t.prototype.write=function(t){var e,r,n,i;for(i=[],r=0,n=t.length;r<n;r++)e=t[r],i.push(this.writeByte(e));return i},t}(),Ue=function(){var t;function e(t){var e,r,n;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},r=0,n=this.tableCount;0<=n?r<n:r>n;r=0<=n?++r:--r)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}return e.prototype.encode=function(e){var r,n,i,a,o,s,c,u,l,h,f,d,p;for(p in f=Object.keys(e).length,s=Math.log(2),l=16*Math.floor(Math.log(f)/s),a=Math.floor(l/s),u=16*f-l,(n=new Te).writeInt(this.scalarType),n.writeShort(f),n.writeShort(l),n.writeShort(a),n.writeShort(u),i=16*f,c=n.pos+i,o=null,d=[],e)for(h=e[p],n.writeString(p),n.writeInt(t(h)),n.writeInt(c),n.writeInt(h.length),d=d.concat(h),"head"===p&&(o=c),c+=h.length;c%4;)d.push(0),c++;return n.write(d),r=2981146554-t(n.data),n.pos=o+8,n.writeUInt32(r),n.data},t=function(t){var e,r,n,i;for(t=tr.call(t);t.length%4;)t.push(0);for(n=new Te(t),r=0,e=0,i=t.length;e<i;e=e+=4)r+=n.readUInt32();return 4294967295&r},e}(),ze={}.hasOwnProperty,He=function(t,e){for(var r in e)ze.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},We=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return He(e,t),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var e;return(e=new Te).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(t),e.writeShort(this.glyphDataFormat),e.data},e}(Re=function(){function t(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}()),Ve=function(){function t(t,e){var r,n,i,a,o,s,c,u,l,h,f,d,p,g,m,v,b;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),l=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=t.readByte();break;case 4:for(f=t.readUInt16(),h=f/2,t.pos+=6,i=function(){var e,r;for(r=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)r.push(t.readUInt16());return r}(),t.pos+=2,p=function(){var e,r;for(r=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)r.push(t.readUInt16());return r}(),c=function(){var e,r;for(r=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)r.push(t.readUInt16());return r}(),u=function(){var e,r;for(r=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)r.push(t.readUInt16());return r}(),n=(this.length-t.pos+this.offset)/2,o=function(){var e,r;for(r=[],s=e=0;0<=n?e<n:e>n;s=0<=n?++e:--e)r.push(t.readUInt16());return r}(),s=m=0,b=i.length;m<b;s=++m)for(g=i[s],r=v=d=p[s];d<=g?v<=g:v>=g;r=d<=g?++v:--v)0===u[s]?a=r+c[s]:0!==(a=o[u[s]/2+(r-d)-(h-s)]||0)&&(a+=c[s]),this.codeMap[r]=65535&a}t.pos=l}return t.encode=function(t,e){var r,n,i,a,o,s,c,u,l,h,f,d,p,g,m,v,b,y,w,N,L,A,x,S,_,P,k,F,I,C,j,O,B,M,E,q,D,R,T,U,z,H,W,V,G,Y;switch(F=new Te,a=Object.keys(t).sort((function(t,e){return t-e})),e){case"macroman":for(p=0,g=function(){var t=[];for(d=0;d<256;++d)t.push(0);return t}(),v={0:0},i={},I=0,B=a.length;I<B;I++)null==v[W=t[n=a[I]]]&&(v[W]=++p),i[n]={old:t[n],new:v[t[n]]},g[n]=v[t[n]];return F.writeUInt16(1),F.writeUInt16(0),F.writeUInt32(12),F.writeUInt16(0),F.writeUInt16(262),F.writeUInt16(0),F.write(g),{charMap:i,subtable:F.data,maxGlyphID:p+1};case"unicode":for(P=[],l=[],b=0,v={},r={},m=c=null,C=0,M=a.length;C<M;C++)null==v[w=t[n=a[C]]]&&(v[w]=++b),r[n]={old:w,new:v[w]},o=v[w]-n,null!=m&&o===c||(m&&l.push(m),P.push(n),c=o),m=n;for(m&&l.push(m),l.push(65535),P.push(65535),S=2*(x=P.length),A=2*Math.pow(Math.log(x)/Math.LN2,2),h=Math.log(A/2)/Math.LN2,L=2*x-A,s=[],N=[],f=[],d=j=0,E=P.length;j<E;d=++j){if(_=P[d],u=l[d],65535===_){s.push(0),N.push(0);break}if(_-(k=r[_].new)>=32768)for(s.push(0),N.push(2*(f.length+x-d)),n=O=_;_<=u?O<=u:O>=u;n=_<=u?++O:--O)f.push(r[n].new);else s.push(k-_),N.push(0)}for(F.writeUInt16(3),F.writeUInt16(1),F.writeUInt32(12),F.writeUInt16(4),F.writeUInt16(16+8*x+2*f.length),F.writeUInt16(0),F.writeUInt16(S),F.writeUInt16(A),F.writeUInt16(h),F.writeUInt16(L),z=0,q=l.length;z<q;z++)n=l[z],F.writeUInt16(n);for(F.writeUInt16(0),H=0,D=P.length;H<D;H++)n=P[H],F.writeUInt16(n);for(V=0,R=s.length;V<R;V++)o=s[V],F.writeUInt16(o);for(G=0,T=N.length;G<T;G++)y=N[G],F.writeUInt16(y);for(Y=0,U=f.length;Y<U;Y++)p=f[Y],F.writeUInt16(p);return{charMap:r,subtable:F.data,maxGlyphID:b+1}}},t}(),Ge=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return He(e,t),e.prototype.tag="cmap",e.prototype.parse=function(t){var e,r,n;for(t.pos=this.offset,this.version=t.readUInt16(),n=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)e=new Ve(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},e.encode=function(t,e){var r,n;return null==e&&(e="macroman"),r=Ve.encode(t,e),(n=new Te).writeUInt16(0),n.writeUInt16(1),r.table=n.data.concat(r.subtable),r},e}(Re),Ye=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return He(e,t),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(Re),Je=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return He(e,t),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var e,r;for(r=[],e=0;e<10;++e)r.push(t.readByte());return r}(),this.charRange=function(){var e,r;for(r=[],e=0;e<4;++e)r.push(t.readInt());return r}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var e,r;for(r=[],e=0;e<2;e=++e)r.push(t.readInt());return r}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(Re),Xe=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return He(e,t),e.prototype.tag="post",e.prototype.parse=function(t){var e,r,n;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:break;case 131072:var i;for(r=t.readUInt16(),this.glyphNameIndex=[],i=0;0<=r?i<r:i>r;i=0<=r?++i:--i)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],n=[];t.pos<this.offset+this.length;)e=t.readByte(),n.push(this.names.push(t.readString(e)));return n;case 151552:return r=t.readUInt16(),this.offsets=t.read(r);case 196608:break;case 262144:return this.map=function(){var e,r,n;for(n=[],i=e=0,r=this.file.maxp.numGlyphs;0<=r?e<r:e>r;i=0<=r?++e:--e)n.push(t.readUInt32());return n}.call(this)}},e}(Re),Ke=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},Ze=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return He(e,t),e.prototype.tag="name",e.prototype.parse=function(t){var e,r,n,i,a,o,s,c,u,l,h;for(t.pos=this.offset,t.readShort(),e=t.readShort(),o=t.readShort(),r=[],i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)r.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+o+t.readShort()});for(s={},i=u=0,l=r.length;u<l;i=++u)n=r[i],t.pos=n.offset,c=t.readString(n.length),a=new Ke(c,n),null==s[h=n.nameID]&&(s[h]=[]),s[n.nameID].push(a);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(t){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},e}(Re),$e=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return He(e,t),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(Re),Qe=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return He(e,t),e.prototype.tag="hmtx",e.prototype.parse=function(t){var e,r,n,i,a,o,s;for(t.pos=this.offset,this.metrics=[],e=0,o=this.file.hhea.numberOfMetrics;0<=o?e<o:e>o;e=0<=o?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var r,i;for(i=[],e=r=0;0<=n?r<n:r>n;e=0<=n?++r:--r)i.push(t.readInt16());return i}(),this.widths=function(){var t,e,r,n;for(n=[],t=0,e=(r=this.metrics).length;t<e;t++)i=r[t],n.push(i.advance);return n}.call(this),r=this.widths[this.widths.length-1],s=[],e=a=0;0<=n?a<n:a>n;e=0<=n?++a:--a)s.push(this.widths.push(r));return s},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(Re),tr=[].slice,er=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return He(e,t),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var e,r,n,i,a,o,s,c,u,l;return t in this.cache?this.cache[t]:(i=this.file.loca,e=this.file.contents,r=i.indexOf(t),0===(n=i.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+r,a=(o=new Te(e.read(n))).readShort(),c=o.readShort(),l=o.readShort(),s=o.readShort(),u=o.readShort(),this.cache[t]=-1===a?new nr(o,c,l,s,u):new rr(o,a,c,l,s,u),this.cache[t]))},e.prototype.encode=function(t,e,r){var n,i,a,o,s;for(a=[],i=[],o=0,s=e.length;o<s;o++)n=t[e[o]],i.push(a.length),n&&(a=a.concat(n.encode(r)));return i.push(a.length),{table:a,offsets:i}},e}(Re),rr=function(){function t(t,e,r,n,i,a){this.raw=t,this.numberOfContours=e,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=a,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),nr=function(){function t(t,e,r,n,i){var a,o;for(this.raw=t,this.xMin=e,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],a=this.raw;o=a.readShort(),this.glyphOffsets.push(a.pos),this.glyphIDs.push(a.readUInt16()),32&o;)a.pos+=1&o?4:2,128&o?a.pos+=8:64&o?a.pos+=4:8&o&&(a.pos+=2)}return 1,8,32,64,128,t.prototype.encode=function(){var t,e,r;for(e=new Te(tr.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)e.pos=this.glyphOffsets[t];return e.data},t}(),ir=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return He(e,t),e.prototype.tag="loca",e.prototype.parse=function(t){var e,r;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,n;for(n=[],r=0,e=this.length;r<e;r+=2)n.push(2*t.readUInt16());return n}.call(this):function(){var e,n;for(n=[],r=0,e=this.length;r<e;r+=4)n.push(t.readUInt32());return n}.call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,e){for(var r=new Uint32Array(this.offsets.length),n=0,i=0,a=0;a<r.length;++a)if(r[a]=n,i<e.length&&e[i]==a){++i,r[a]=n;var o=this.offsets[a],s=this.offsets[a+1]-o;s>0&&(n+=s)}for(var c=new Array(4*r.length),u=0;u<r.length;++u)c[4*u+3]=255&r[u],c[4*u+2]=(65280&r[u])>>8,c[4*u+1]=(16711680&r[u])>>16,c[4*u]=(4278190080&r[u])>>24;return c},e}(Re),ar=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,r,n,i;for(e in n=this.font.cmap.tables[0].codeMap,t={},i=this.subset)r=i[e],t[e]=n[r];return t},t.prototype.glyphsFor=function(t){var e,r,n,i,a,o,s;for(n={},a=0,o=t.length;a<o;a++)n[i=t[a]]=this.font.glyf.glyphFor(i);for(i in e=[],n)(null!=(r=n[i])?r.compound:void 0)&&e.push.apply(e,r.glyphIDs);if(e.length>0)for(i in s=this.glyphsFor(e))r=s[i],n[i]=r;return n},t.prototype.encode=function(t,e){var r,n,i,a,o,s,c,u,l,h,f,d,p,g,m;for(n in r=Ge.encode(this.generateCmap(),"unicode"),a=this.glyphsFor(t),f={0:0},m=r.charMap)f[(s=m[n]).old]=s.new;for(d in h=r.maxGlyphID,a)d in f||(f[d]=h++);return u=function(t){var e,r;for(e in r={},t)r[t[e]]=e;return r}(f),l=Object.keys(u).sort((function(t,e){return t-e})),p=function(){var t,e,r;for(r=[],t=0,e=l.length;t<e;t++)o=l[t],r.push(u[o]);return r}(),i=this.font.glyf.encode(a,p,f),c=this.font.loca.encode(i.offsets,p),g={cmap:this.font.cmap.raw(),glyf:i.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},t}();M.API.PDFObject=function(){var t;function e(){}return t=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},e.convert=function(r){var n,i,a,o;if(Array.isArray(r))return"["+function(){var t,i,a;for(a=[],t=0,i=r.length;t<i;t++)n=r[t],a.push(e.convert(n));return a}().join(" ")+"]";if("string"==typeof r)return"/"+r;if(null!=r?r.isString:void 0)return"("+r+")";if(r instanceof Date)return"(D:"+t(r.getUTCFullYear(),4)+t(r.getUTCMonth(),2)+t(r.getUTCDate(),2)+t(r.getUTCHours(),2)+t(r.getUTCMinutes(),2)+t(r.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(r)){for(i in a=["<<"],r)o=r[i],a.push("/"+i+" "+e.convert(o));return a.push(">>"),a.join("\n")}return""+r},e}(),t.AcroForm=xt,t.AcroFormAppearance=Lt,t.AcroFormButton=gt,t.AcroFormCheckBox=yt,t.AcroFormChoiceField=ht,t.AcroFormComboBox=dt,t.AcroFormEditBox=pt,t.AcroFormListBox=ft,t.AcroFormPasswordField=Nt,t.AcroFormPushButton=mt,t.AcroFormRadioButton=vt,t.AcroFormTextField=wt,t.GState=C,t.ShadingPattern=O,t.TilingPattern=B,t.default=M,t.jsPDF=M,Object.defineProperty(t,"__esModule",{value:!0})}));

/**
 * A JavaScript implementation of the SHA family of hashes - defined in FIPS PUB 180-4, FIPS PUB 202,
 * and SP 800-185 - as well as the corresponding HMAC implementation as defined in FIPS PUB 198-1.
 *
 * Copyright 2008-2020 Brian Turek, 1998-2009 Paul Johnston & Contributors
 * Distributed under the BSD License
 * See http://caligatio.github.com/jsSHA/ for more information
 *
 * Two ECMAScript polyfill functions carry the following license:
 *
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED,
 * INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
 * MERCHANTABLITY OR NON-INFRINGEMENT.
 *
 * See the Apache Version 2.0 License for specific language governing permissions and limitations under the License.
 */
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?t["jsSHA"]=r():"function"==typeof define&&define.amd?define(r):(t="undefined"!=typeof globalThis?globalThis:t||self).jsSHA=r()}(window,(function(){"use strict";var t=function(r,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])})(r,n)};var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function n(t,r,n,i){var e,o,s,u=r||[0],f=(n=n||0)>>>3,h=-1===i?3:0;for(e=0;e<t.length;e+=1)o=(s=e+f)>>>2,u.length<=o&&u.push(0),u[o]|=t[e]<<8*(h+i*(s%4));return{value:u,binLen:8*t.length+n}}function i(t,i,e){switch(i){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(t){case"HEX":return function(t,r,n){return function(t,r,n,i){var e,o,s,u;if(0!=t.length%2)throw new Error("String of HEX type must be in byte increments");var f=r||[0],h=(n=n||0)>>>3,a=-1===i?3:0;for(e=0;e<t.length;e+=2){if(o=parseInt(t.substr(e,2),16),isNaN(o))throw new Error("String of HEX type contains invalid characters");for(s=(u=(e>>>1)+h)>>>2;f.length<=s;)f.push(0);f[s]|=o<<8*(a+i*(u%4))}return{value:f,binLen:4*t.length+n}}(t,r,n,e)};case"TEXT":return function(t,r,n){return function(t,r,n,i,e){var o,s,u,f,h,a,c,w,E=0,v=n||[0],A=(i=i||0)>>>3;if("UTF8"===r)for(c=-1===e?3:0,u=0;u<t.length;u+=1)for(s=[],128>(o=t.charCodeAt(u))?s.push(o):2048>o?(s.push(192|o>>>6),s.push(128|63&o)):55296>o||57344<=o?s.push(224|o>>>12,128|o>>>6&63,128|63&o):(u+=1,o=65536+((1023&o)<<10|1023&t.charCodeAt(u)),s.push(240|o>>>18,128|o>>>12&63,128|o>>>6&63,128|63&o)),f=0;f<s.length;f+=1){for(h=(a=E+A)>>>2;v.length<=h;)v.push(0);v[h]|=s[f]<<8*(c+e*(a%4)),E+=1}else for(c=-1===e?2:0,w="UTF16LE"===r&&1!==e||"UTF16LE"!==r&&1===e,u=0;u<t.length;u+=1){for(o=t.charCodeAt(u),!0===w&&(o=(f=255&o)<<8|o>>>8),h=(a=E+A)>>>2;v.length<=h;)v.push(0);v[h]|=o<<8*(c+e*(a%4)),E+=2}return{value:v,binLen:8*E+i}}(t,i,r,n,e)};case"B64":return function(t,n,i){return function(t,n,i,e){var o,s,u,f,h,a,c=0,w=n||[0],E=(i=i||0)>>>3,v=-1===e?3:0,A=t.indexOf("=");if(-1===t.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(t=t.replace(/=/g,""),-1!==A&&A<t.length)throw new Error("Invalid '=' found in base-64 string");for(o=0;o<t.length;o+=4){for(f=t.substr(o,4),u=0,s=0;s<f.length;s+=1)u|=r.indexOf(f.charAt(s))<<18-6*s;for(s=0;s<f.length-1;s+=1){for(h=(a=c+E)>>>2;w.length<=h;)w.push(0);w[h]|=(u>>>16-8*s&255)<<8*(v+e*(a%4)),c+=1}}return{value:w,binLen:8*c+i}}(t,n,i,e)};case"BYTES":return function(t,r,n){return function(t,r,n,i){var e,o,s,u,f=r||[0],h=(n=n||0)>>>3,a=-1===i?3:0;for(o=0;o<t.length;o+=1)e=t.charCodeAt(o),s=(u=o+h)>>>2,f.length<=s&&f.push(0),f[s]|=e<<8*(a+i*(u%4));return{value:f,binLen:8*t.length+n}}(t,r,n,e)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(t){throw new Error("ARRAYBUFFER not supported by this environment")}return function(t,r,i){return function(t,r,i,e){return n(new Uint8Array(t),r,i,e)}(t,r,i,e)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(t){throw new Error("UINT8ARRAY not supported by this environment")}return function(t,r,i){return n(t,r,i,e)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function e(t,n,i,e){switch(t){case"HEX":return function(t){return function(t,r,n,i){var e,o,s="",u=r/8,f=-1===n?3:0;for(e=0;e<u;e+=1)o=t[e>>>2]>>>8*(f+n*(e%4)),s+="0123456789abcdef".charAt(o>>>4&15)+"0123456789abcdef".charAt(15&o);return i.outputUpper?s.toUpperCase():s}(t,n,i,e)};case"B64":return function(t){return function(t,n,i,e){var o,s,u,f,h,a="",c=n/8,w=-1===i?3:0;for(o=0;o<c;o+=3)for(f=o+1<c?t[o+1>>>2]:0,h=o+2<c?t[o+2>>>2]:0,u=(t[o>>>2]>>>8*(w+i*(o%4))&255)<<16|(f>>>8*(w+i*((o+1)%4))&255)<<8|h>>>8*(w+i*((o+2)%4))&255,s=0;s<4;s+=1)a+=8*o+6*s<=n?r.charAt(u>>>6*(3-s)&63):e.b64Pad;return a}(t,n,i,e)};case"BYTES":return function(t){return function(t,r,n){var i,e,o="",s=r/8,u=-1===n?3:0;for(i=0;i<s;i+=1)e=t[i>>>2]>>>8*(u+n*(i%4))&255,o+=String.fromCharCode(e);return o}(t,n,i)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(t){throw new Error("ARRAYBUFFER not supported by this environment")}return function(t){return function(t,r,n){var i,e=r/8,o=new ArrayBuffer(e),s=new Uint8Array(o),u=-1===n?3:0;for(i=0;i<e;i+=1)s[i]=t[i>>>2]>>>8*(u+n*(i%4))&255;return o}(t,n,i)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(t){throw new Error("UINT8ARRAY not supported by this environment")}return function(t){return function(t,r,n){var i,e=r/8,o=-1===n?3:0,s=new Uint8Array(e);for(i=0;i<e;i+=1)s[i]=t[i>>>2]>>>8*(o+n*(i%4))&255;return s}(t,n,i)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function o(t){var r={outputUpper:!1,b64Pad:"=",outputLen:-1},n=t||{},i="Output length must be a multiple of 8";if(r.outputUpper=n.outputUpper||!1,n.b64Pad&&(r.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(i);r.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(i);r.outputLen=n.shakeLen}if("boolean"!=typeof r.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof r.b64Pad)throw new Error("Invalid b64Pad formatting option");return r}function s(t,r){return t<<r|t>>>32-r}function u(t,r,n){return t^r^n}function f(t,r,n){return t&r^t&n^r&n}function h(t,r){var n=(65535&t)+(65535&r);return(65535&(t>>>16)+(r>>>16)+(n>>>16))<<16|65535&n}function a(t,r,n,i,e){var o=(65535&t)+(65535&r)+(65535&n)+(65535&i)+(65535&e);return(65535&(t>>>16)+(r>>>16)+(n>>>16)+(i>>>16)+(e>>>16)+(o>>>16))<<16|65535&o}function c(t){return[1732584193,4023233417,2562383102,271733878,3285377520]}function w(t,r){var n,i,e,o,c,w,E,v,A=[];for(n=r[0],i=r[1],e=r[2],o=r[3],c=r[4],E=0;E<80;E+=1)A[E]=E<16?t[E]:s(A[E-3]^A[E-8]^A[E-14]^A[E-16],1),w=E<20?a(s(n,5),(v=i)&e^~v&o,c,1518500249,A[E]):E<40?a(s(n,5),u(i,e,o),c,1859775393,A[E]):E<60?a(s(n,5),f(i,e,o),c,2400959708,A[E]):a(s(n,5),u(i,e,o),c,3395469782,A[E]),c=o,o=e,e=s(i,30),i=n,n=w;return r[0]=h(n,r[0]),r[1]=h(i,r[1]),r[2]=h(e,r[2]),r[3]=h(o,r[3]),r[4]=h(c,r[4]),r}function E(t,r,n,i){for(var e,o=15+(r+65>>>9<<4),s=r+n;t.length<=o;)t.push(0);for(t[r>>>5]|=128<<24-r%32,t[o]=4294967295&s,t[o-1]=s/4294967296|0,e=0;e<t.length;e+=16)i=w(t.slice(e,e+16),i);return i}return function(r){function n(t,n,e){var o=this;if("SHA-1"!==t)throw new Error("Chosen SHA variant is not supported");var s=e||{};return(o=r.call(this,t,n,e)||this).t=!0,o.i=o.o,o.s=-1,o.u=i(o.h,o.v,o.s),o.A=w,o.p=function(t){return t.slice()},o.l=c,o.R=E,o.U=[1732584193,4023233417,2562383102,271733878,3285377520],o.T=512,o.m=160,o.F=!1,s.hmacKey&&o.B(function(t,r,n,e){var o=t+" must include a value and format";if(!r){if(!e)throw new Error(o);return e}if(void 0===r.value||!r.format)throw new Error(o);return i(r.format,r.encoding||"UTF8",n)(r.value)}("hmacKey",s.hmacKey,o.s)),o}return function(r,n){function i(){this.constructor=r}t(r,n),r.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(n,r),n}(function(){function t(t,r,n){var i=n||{};if(this.h=r,this.v=i.encoding||"UTF8",this.numRounds=i.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.g=t,this.Y=[],this.I=0,this.C=!1,this.H=0,this.L=!1,this.N=[],this.S=[]}return t.prototype.update=function(t){var r,n=0,i=this.T>>>5,e=this.u(t,this.Y,this.I),o=e.binLen,s=e.value,u=o>>>5;for(r=0;r<u;r+=i)n+this.T<=o&&(this.U=this.A(s.slice(r,r+i),this.U),n+=this.T);this.H+=n,this.Y=s.slice(n>>>5),this.I=o%this.T,this.C=!0},t.prototype.getHash=function(t,r){var n,i,s=this.m,u=o(r);if(this.F){if(-1===u.outputLen)throw new Error("Output length must be specified in options");s=u.outputLen}var f=e(t,s,this.s,u);if(this.L&&this.i)return f(this.i(u));for(i=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),s),n=1;n<this.numRounds;n+=1)this.F&&s%32!=0&&(i[i.length-1]&=16777215>>>24-s%32),i=this.R(i,s,0,this.l(this.g),s);return f(i)},t.prototype.setHMACKey=function(t,r,n){if(!this.t)throw new Error("Variant does not support HMAC");if(this.C)throw new Error("Cannot set MAC key after calling update");var e=i(r,(n||{}).encoding||"UTF8",this.s);this.B(e(t))},t.prototype.B=function(t){var r,n=this.T>>>3,i=n/4-1;if(1!==this.numRounds)throw new Error("Cannot set numRounds with MAC");if(this.L)throw new Error("MAC key already set");for(n<t.binLen/8&&(t.value=this.R(t.value,t.binLen,0,this.l(this.g),this.m));t.value.length<=i;)t.value.push(0);for(r=0;r<=i;r+=1)this.N[r]=909522486^t.value[r],this.S[r]=1549556828^t.value[r];this.U=this.A(this.N,this.U),this.H=this.T,this.L=!0},t.prototype.getHMAC=function(t,r){var n=o(r);return e(t,this.m,this.s,n)(this.o())},t.prototype.o=function(){var t;if(!this.L)throw new Error("Cannot call getHMAC without first setting MAC key");var r=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),this.m);return t=this.A(this.S,this.l(this.g)),t=this.R(r,this.m,this.T,t,this.m)},t}())}));

var FlexmonsterToolbar=function(a,b,c,d,k,h){this.pivot=b;this.pivotContainer=a;this.width="number"==typeof d||0>d.indexOf("px")&&0>d.indexOf("%")?d+"px":d;this.Labels=k;this.dataSourceType=h||5;this.singleAggregationFormatting=this.showShareReportTab=!1};
FlexmonsterToolbar.prototype.getTabs=function(){var a=[],b=this.Labels;a.push({title:b.connect,id:"fm-tab-connect",icon:this.icons.connect,menu:[{title:b.connect_local_csv,id:"fm-tab-connect-local-csv",handler:this.connectLocalCSVHandler,mobile:!1,icon:this.icons.connect_csv},{title:b.connect_local_json,id:"fm-tab-connect-local-json",handler:this.connectLocalJSONHandler,mobile:!1,icon:this.icons.connect_json},{title:this.osUtils.isMobile?b.connect_remote_csv_mobile:b.connect_remote_csv,id:"fm-tab-connect-remote-csv",
handler:this.connectRemoteCSV,icon:this.icons.connect_csv_remote},{title:this.osUtils.isMobile?b.connect_remote_json_mobile:b.connect_remote_json,id:"fm-tab-connect-remote-json",handler:this.connectRemoteJSON,icon:this.icons.connect_json_remote},{title:this.osUtils.isMobile?b.connect_olap_mobile:b.connect_olap,id:"fm-tab-connect-olap",handler:this.connectOLAP,flat:!1,icon:this.icons.connect_olap},{title:this.osUtils.isMobile?b.connect_elastic_mobile:b.connect_elastic,id:"fm-tab-connect-elastic",handler:this.connectElastic,
flat:!1,icon:this.icons.connect_elastic}]});a.push({title:b.open,id:"fm-tab-open",icon:this.icons.open,menu:[{title:b.local_report,id:"fm-tab-open-local-report",handler:this.openLocalReport,mobile:!1,icon:this.icons.open_local},{title:this.osUtils.isMobile?b.remote_report_mobile:b.remote_report,id:"fm-tab-open-remote-report",handler:this.openRemoteReport,icon:this.icons.open_remote}]});a.push({title:b.save,id:"fm-tab-save",handler:this.saveHandler,mobile:!1,icon:this.icons.save});a.push({title:b.export,
id:"fm-tab-export",mobile:!1,icon:this.icons.export,menu:[{title:b.export_print,id:"fm-tab-export-print",handler:this.printHandler,icon:this.icons.export_print},{title:b.export_html,id:"fm-tab-export-html",handler:this.exportHandler,args:"html",icon:this.icons.export_html},{title:b.export_csv,id:"fm-tab-export-csv",handler:this.exportHandler,args:"csv",icon:this.icons.export_csv},{title:b.export_excel,id:"fm-tab-export-excel",handler:this.exportHandler,args:"excel",icon:this.icons.export_excel},{title:b.export_image,
id:"fm-tab-export-image",handler:this.exportHandler,args:"image",icon:this.icons.export_image},{title:b.export_pdf,id:"fm-tab-export-pdf",handler:this.exportHandler,args:"pdf",icon:this.icons.export_pdf}]});a.push({title:b.share,id:"fm-tab-share",handler:this.shareReportHandler,icon:this.icons.share,visible:this.showShareReportTab});a.push({divider:!0});a.push({title:b.grid,id:"fm-tab-grid",handler:this.gridHandler,icon:this.icons.grid});a.push({title:b.charts,id:"fm-tab-charts",onShowHandler:this.checkChartMultipleMeasures,
icon:this.icons.charts,menu:[{title:b.charts_column,id:"fm-tab-charts-column",handler:this.chartsHandler,args:"column",icon:this.icons.charts},{title:b.charts_bar_horizontal,id:"fm-tab-charts-bar-horizontal",handler:this.chartsHandler,args:"bar_h",icon:this.icons.charts_bar},{title:b.charts_line,id:"fm-tab-charts-line",handler:this.chartsHandler,args:"line",icon:this.icons.charts_line},{title:b.charts_scatter,id:"fm-tab-charts-scatter",handler:this.chartsHandler,args:"scatter",icon:this.icons.charts_scatter},
{title:b.charts_pie,id:"fm-tab-charts-pie",handler:this.chartsHandler,args:"pie",icon:this.icons.charts_pie},{title:b.charts_stacked_column,id:"fm-tab-charts-stacked-column",handler:this.chartsHandler,args:"stacked_column",flat:!1,icon:this.icons.charts_stacked_column},{title:b.charts_column_line,id:"fm-tab-charts-column-line",handler:this.chartsHandler,args:"column_line",icon:this.icons.charts_column_line},{title:b.charts_multiple,id:"fm-tab-charts-multiple",handler:this.chartsMultipleHandler,flat:!1,
mobile:!1,type:"checkbox"}]});a.push({divider:!0});a.push({title:b.format,id:"fm-tab-format",icon:this.icons.format,rightGroup:!0,menu:[{title:this.osUtils.isMobile?b.format_cells_mobile:b.format_cells,id:"fm-tab-format-cells",handler:this.formatCellsHandler,icon:this.icons.format_number},{title:this.osUtils.isMobile?b.conditional_formatting_mobile:b.conditional_formatting,id:"fm-tab-format-conditional",handler:this.conditionalFormattingHandler,icon:this.icons.format_conditional}]});a.push({title:b.options,
id:"fm-tab-options",handler:this.optionsHandler,icon:this.icons.options,rightGroup:!0});a.push({title:b.fields,id:"fm-tab-fields",handler:this.fieldsHandler,icon:this.icons.fields,rightGroup:!0});void 0!=document.addEventListener&&(a.push({divider:!0,rightGroup:!0}),a.push({title:b.fullscreen,id:"fm-tab-fullscreen",handler:this.fullscreenHandler,mobile:!1,icon:this.icons.fullscreen,rightGroup:!0}));return a};
FlexmonsterToolbar.prototype.create=function(){this.popupManager=new FlexmonsterToolbar.PopupManager(this);this.dataProvider=this.getTabs();5!=this.dataSourceType&&this.filterConnectMenu();this.init()};FlexmonsterToolbar.prototype.dispose=function(){this.dataProvider=this.Labels=this.pivotContainer=this.pivot=this.popupManager=null;window.removeEventListener("resize",this._redrawToolbar);this.toolbarWrapper.remove();this.toolbarWrapper=null};FlexmonsterToolbar.prototype.responsiveBreakpoints=[700];
FlexmonsterToolbar.prototype.applyToolbarLayoutClasses=function(){if(!this.osUtils.isMobile){var a=this;(function(){if(a.toolbarWrapper){var b=a.toolbarWrapper.getBoundingClientRect().width;0!=b&&a.responsiveBreakpoints.forEach(function(c){b<c?a.toolbarWrapper.classList.add("fm-layout-"+c):a.toolbarWrapper.classList.remove("fm-layout-"+c)})}})()}};
FlexmonsterToolbar.prototype.init=function(){var a=this;this.container=this.pivotContainer;var b=function(){a.container.style.position=""==a.container.style.position?"relative":a.container.style.position;a.container.querySelector("#fm-toolbar-wrapper")||(a.toolbarWrapper=document.createElement("div"),a.toolbarWrapper.id="fm-toolbar-wrapper");a.listWrapper=document.createElement("div");a.listWrapper.classList.add("fm-list-wrapper");a.listWrapper.style.width="100%";a.toolbarWrapper.style.width="100%";
a.toolbarWrapper.appendChild(a.listWrapper);a.toolbar=document.createElement("ul");a.toolbar.setAttribute("role","menubar");a.toolbar.setAttribute("aria-orientation","horizontal");a.addClass(a.toolbarWrapper,"fm-toolbar-ui");a.toolbar.id="fm-toolbar";if(!a.osUtils.isMobile){var k=document.createElement("div");k.classList.add("fm-toolbar-group-left");a.toolbar.appendChild(k);var h=document.createElement("div");h.classList.add("fm-toolbar-group-right");a.toolbar.appendChild(h)}c(k,h,a.toolbar);a.listWrapper.appendChild(a.toolbar);
a.container.insertBefore(a.toolbarWrapper,a.container.firstChild);a.applyToolbarLayoutClasses();!a.osUtils.isMobile&&k.clientWidth+h.clientWidth>a.toolbar.clientWidth&&(a.toolbar.removeChild(k),a.toolbar.removeChild(h),c(null,null,a.toolbar),a.toolbar.classList.add("fm-scroll-toolbar"));a.updateLabels(a.Labels);a.pivot.on("numberformatting",function(e){a.formatCellsHandler(e.measureName,e.aggregation)});a.pivot.on("conditionalformatting",function(e){a.conditionalFormattingHandler(e.measureName)});
a.osUtils.isMobile&&a.addClass(a.listWrapper,"fm-mobile")},c=function(k,h,e){for(var f=0;f<a.dataProvider.length;f++)if(!a.isDisabled(a.dataProvider[f]))if(a.osUtils.isMobile&&null!=a.dataProvider[f].menu&&1!=a.dataProvider[f].collapse)for(var t=0;t<a.dataProvider[f].menu.length;t++)a.isDisabled(a.dataProvider[f].menu[t])||e.appendChild(a.createTab(a.dataProvider[f].menu[t]));else t=a.dataProvider[f].divider?a.createDivider(a.dataProvider[f]):a.createTab(a.dataProvider[f]),h&&a.dataProvider[f].rightGroup?
h.appendChild(t):k?k.appendChild(t):e.appendChild(t)},d=function(){if(20<a.toolbar.scrollWidth-a.toolbar.clientWidth){a.leftScrollButton=document.createElement("div");a.leftScrollButton.classList.add("fm-left-scroll-button");a.rightScrollButton=document.createElement("div");a.rightScrollButton.classList.add("fm-right-scroll-button");a.addClass(a.rightScrollButton,"fm-scroll-arrow");a.addClass(a.listWrapper,"fm-one-arrow-scroll");var k=function(f){"add"==f?(a.listWrapper.classList.remove("fm-one-arrow-scroll"),
a.listWrapper.classList.add("fm-two-arrow-scroll")):(a.listWrapper.classList.remove("fm-two-arrow-scroll"),a.listWrapper.classList.add("fm-one-arrow-scroll"))},h=function(){var f=a.toolbar.scrollWidth-a.toolbar.clientWidth;0<a.toolbar.scrollLeft&&!a.leftScrollButton.classList.contains("fm-scroll-arrow")?(k("add"),a.addClass(a.leftScrollButton,"fm-scroll-arrow")):0>=a.toolbar.scrollLeft-12&&a.leftScrollButton.classList.contains("fm-scroll-arrow")&&(k("remove"),a.leftScrollButton.classList.remove("fm-scroll-arrow"));
a.toolbar.scrollLeft+12>=f&&a.rightScrollButton.classList.contains("fm-scroll-arrow")?(k("remove"),a.rightScrollButton.classList.remove("fm-scroll-arrow")):a.toolbar.scrollLeft+12<f&&!a.rightScrollButton.classList.contains("fm-scroll-arrow")&&(k("add"),a.addClass(a.rightScrollButton,"fm-scroll-arrow"))},e=function(f){"left"==f?a.toolbar.scrollLeft-=40:"right"==f&&(a.toolbar.scrollLeft+=40);h()};a.toolbar.onscroll=function(){h()};a.leftScrollButton.onclick=function(){e("left")};a.rightScrollButton.onclick=
function(){e("right")};a.toolbarWrapper.insertBefore(a.leftScrollButton,a.toolbarWrapper.firstChild);a.toolbarWrapper.appendChild(a.rightScrollButton)}};a._redrawToolbar=function(){if(a.toolbarWrapper){for(var k=[],h=a.toolbarWrapper.childNodes,e=0;e<h.length;e++){var f=h[e].classList;f.contains("fm-popup")||f.contains("fm-modal-overlay")||f.contains("fm-popup-modal-overlay")||k.push(h[e])}for(e=0;e<k.length;e++)a.toolbarWrapper.removeChild(k[e])}b();d();if(k=a.pivotContainer.querySelector("#fm-tab-fullscreen"))h=
a.isFullscreen(),k.querySelector(".fm-svg-icon").innerHTML=a.toTrustedHtml(h?a.icons.minimize:a.icons.fullscreen),a.setText(k.querySelector(".fm-tab-label"),h?a.Labels.minimize:a.Labels.fullscreen)};a._redrawToolbar();window.addEventListener("resize",a._redrawToolbar)};
FlexmonsterToolbar.prototype.updateLabels=function(a){a=this.Labels=a;this.setText(this.pivotContainer.querySelector("#fm-tab-connect .fm-tab-label"),a.connect);this.setText(this.pivotContainer.querySelector("#fm-tab-connect-local-csv .fm-tab-label"),a.connect_local_csv);this.setText(this.pivotContainer.querySelector("#fm-tab-connect-local-json .fm-tab-label"),a.connect_local_json);this.setText(this.pivotContainer.querySelector("#fm-tab-connect-remote-csv .fm-tab-label"),this.osUtils.isMobile?a.connect_remote_csv_mobile:
a.connect_remote_csv);this.setText(this.pivotContainer.querySelector("#fm-tab-connect-remote-json .fm-tab-label"),this.osUtils.isMobile?a.connect_remote_json_mobile:a.connect_remote_json);this.setText(this.pivotContainer.querySelector("#fm-tab-connect-olap .fm-tab-label"),this.osUtils.isMobile?a.connect_olap_mobile:a.connect_olap);this.setText(this.pivotContainer.querySelector("#fm-tab-connect-elastic .fm-tab-label"),this.osUtils.isMobile?a.connect_elastic_mobile:a.connect_elastic);this.setText(this.pivotContainer.querySelector("#fm-tab-open .fm-tab-label"),
a.open);this.setText(this.pivotContainer.querySelector("#fm-tab-open-local-report .fm-tab-label"),a.local_report);this.setText(this.pivotContainer.querySelector("#fm-tab-open-remote-report .fm-tab-label"),this.osUtils.isMobile?a.remote_report_mobile:a.remote_report);this.setText(this.pivotContainer.querySelector("#fm-tab-save .fm-tab-label"),a.save);this.setText(this.pivotContainer.querySelector("#fm-tab-share .fm-tab-label"),a.share);this.setText(this.pivotContainer.querySelector("#fm-tab-grid .fm-tab-label"),
a.grid);this.setText(this.pivotContainer.querySelector("#fm-tab-charts .fm-tab-label"),a.charts);this.setText(this.pivotContainer.querySelector("#fm-tab-charts-column .fm-tab-label"),a.charts_column);this.setText(this.pivotContainer.querySelector("#fm-tab-charts-bar-horizontal .fm-tab-label"),a.charts_bar_horizontal);this.setText(this.pivotContainer.querySelector("#fm-tab-charts-line .fm-tab-label"),a.charts_line);this.setText(this.pivotContainer.querySelector("#fm-tab-charts-scatter .fm-tab-label"),
a.charts_scatter);this.setText(this.pivotContainer.querySelector("#fm-tab-charts-pie .fm-tab-label"),a.charts_pie);this.setText(this.pivotContainer.querySelector("#fm-tab-charts-stacked-column .fm-tab-label"),a.charts_stacked_column);this.setText(this.pivotContainer.querySelector("#fm-tab-charts-column-line .fm-tab-label"),a.charts_column_line);this.setText(this.pivotContainer.querySelector("#fm-tab-charts-multiple .fm-tab-label"),a.charts_multiple);this.setText(this.pivotContainer.querySelector("#fm-tab-format .fm-tab-label"),
a.format);this.setText(this.pivotContainer.querySelector("#fm-tab-format-cells .fm-tab-label"),this.osUtils.isMobile?a.format_cells_mobile:a.format_cells);this.setText(this.pivotContainer.querySelector("#fm-tab-format-conditional .fm-tab-label"),this.osUtils.isMobile?a.conditional_formatting_mobile:a.conditional_formatting);this.setText(this.pivotContainer.querySelector("#fm-tab-options .fm-tab-label"),a.options);this.setText(this.pivotContainer.querySelector("#fm-tab-fullscreen .fm-tab-label"),a.fullscreen);
this.setText(this.pivotContainer.querySelector("#fm-tab-export .fm-tab-label"),a.export);this.setText(this.pivotContainer.querySelector("#fm-tab-export-print .fm-tab-label"),a.export_print);this.setText(this.pivotContainer.querySelector("#fm-tab-export-html .fm-tab-label"),a.export_html);this.setText(this.pivotContainer.querySelector("#fm-tab-export-csv .fm-tab-label"),a.export_csv);this.setText(this.pivotContainer.querySelector("#fm-tab-export-excel .fm-tab-label"),a.export_excel);this.setText(this.pivotContainer.querySelector("#fm-tab-export-image .fm-tab-label"),
a.export_image);this.setText(this.pivotContainer.querySelector("#fm-tab-export-pdf .fm-tab-label"),a.export_pdf);this.setText(this.pivotContainer.querySelector("#fm-tab-fields .fm-tab-label"),a.fields)};
FlexmonsterToolbar.prototype.icons={connect:'<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M25 20.9C31.9036 20.9 37.5 18.5719 37.5 15.7C37.5 12.8281 31.9036 10.5 25 10.5C18.0964 10.5 12.5 12.8281 12.5 15.7C12.5 18.5719 18.0964 20.9 25 20.9Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13 34.3002C13 34.8519 13.264 35.4186 13.8337 35.9799C14.4056 36.5434 15.2589 37.0721 16.3539 37.5258C18.5418 38.4323 21.5987 39.0002 25 39.0002C28.4013 39.0002 31.4582 38.4323 33.6461 37.5258C34.7411 37.0721 35.5944 36.5434 36.1663 35.9799C36.736 35.4186 37 34.8519 37 34.3002V15.7004C37 15.7004 37 15.7002 37.5 15.7002C38 15.7002 38 15.7004 38 15.7004V34.3002C38 35.1985 37.564 36.0067 36.8681 36.6923C36.1744 37.3757 35.1964 37.9658 34.0289 38.4496C31.6918 39.418 28.4987 40.0002 25 40.0002C21.5013 40.0002 18.3082 39.418 15.9711 38.4496C14.8036 37.9658 13.8256 37.3757 13.1319 36.6923C12.436 36.0067 12 35.1985 12 34.3002V15.7004C12 15.7004 12 15.7002 12.5 15.7002C13 15.7002 13 15.7004 13 15.7004V34.3002Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.8329 14.0324C13.2627 14.5933 13 15.1569 13 15.7004C13 16.2439 13.2627 16.8067 13.8329 17.3676C14.4049 17.9302 15.2583 18.4598 16.3532 18.9153C18.5408 19.8254 21.5976 20.4 25 20.4C28.4024 20.4 31.4592 19.8254 33.6468 18.9153C34.7417 18.4598 35.5951 17.9302 36.1671 17.3676C36.7373 16.8067 37 16.2439 37 15.7004C37 15.1569 36.7373 14.5933 36.1671 14.0324C35.5951 13.4698 34.7417 12.9402 33.6468 12.4847C31.4592 11.5746 28.4024 11 25 11C21.5976 11 18.5408 11.5746 16.3532 12.4847C15.2583 12.9402 14.4049 13.4698 13.8329 14.0324ZM15.9691 11.5614C18.3056 10.5894 21.4988 10 25 10C28.5012 10 31.6944 10.5894 34.0309 11.5614C35.198 12.0469 36.1752 12.6378 36.8683 13.3194C37.5631 14.0028 38 14.808 38 15.7004C38 16.5928 37.5631 17.3972 36.8683 18.0806C36.1752 18.7622 35.198 19.3531 34.0309 19.8386C31.6944 20.8106 28.5012 21.4 25 21.4C21.4988 21.4 18.3056 20.8106 15.9691 19.8386C14.802 19.3531 13.8248 18.7622 13.1317 18.0806C12.4369 17.3972 12 16.5928 12 15.7004C12 14.808 12.4369 14.0028 13.1317 13.3194C13.8248 12.6378 14.802 12.0469 15.9691 11.5614Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16.3561 31.5894C18.5448 32.5084 21.6015 33.1004 25 33.1004C28.4013 33.1004 31.4582 32.5325 33.6461 31.626C34.7411 31.1723 35.5944 30.6436 36.1663 30.0801C36.736 29.5188 37 28.9521 37 28.4004H38C38 29.2987 37.564 30.1069 36.8681 30.7925C36.1744 31.4759 35.1964 32.066 34.0289 32.5498C31.6918 33.5182 28.4987 34.1004 25 34.1004C21.4985 34.1004 18.3052 33.4924 15.9689 32.5114C14.802 32.0214 13.8257 31.4287 13.1333 30.7516C12.4403 30.0741 12 29.2782 12 28.4004H13C13 28.9226 13.2597 29.4767 13.8324 30.0366C14.4056 30.5971 15.2605 31.1294 16.3561 31.5894Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16.3539 25.126C18.5418 26.0325 21.5987 26.6004 25 26.6004C28.4013 26.6004 31.4582 26.0325 33.6461 25.126C34.7411 24.6722 35.5944 24.1436 36.1663 23.5801C36.736 23.0188 37 22.4521 37 21.9004H38C38 22.7987 37.564 23.6069 36.8681 24.2925C36.1744 24.9759 35.1964 25.566 34.0289 26.0498C31.6918 27.0182 28.4987 27.6004 25 27.6004C21.5013 27.6004 18.3082 27.0182 15.9711 26.0498C14.8036 25.566 13.8256 24.9759 13.1319 24.2925C12.436 23.6069 12 22.7987 12 21.9004H13C13 22.4521 13.264 23.0188 13.8337 23.5801C14.4056 24.1436 15.2589 24.6722 16.3539 25.126Z" class="fill-border"/></svg>',connect_olap:'<svg width="50" height="51" viewBox="0 0 50 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18.7 29.1004V22.1004L24.9 25.9004V32.8004L18.7 29.1004Z" class="fill-background"/><path d="M37.5 32.8004V25.8004L31.3 29.6004V36.5004L37.5 32.8004Z" class="fill-background"/><path d="M31.2 14.8004L24.8 11.4004L18.7 14.8004L24.7 18.4004L31.2 14.8004Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M24.9 25.4004C25.1762 25.4004 25.4 25.6242 25.4 25.9004V40.4004C25.4 40.6765 25.1762 40.9004 24.9 40.9004C24.6239 40.9004 24.4 40.6765 24.4 40.4004V25.9004C24.4 25.6242 24.6239 25.4004 24.9 25.4004Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.8 22.1006V36.6006H30.8V22.1006H31.8Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M19.2 22.1006V36.6006H18.2V22.1006H19.2Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.0715 18.2423C12.2139 18.0057 12.5211 17.9293 12.7577 18.0716L25.0577 25.4716C25.2943 25.614 25.3707 25.9212 25.2284 26.1578C25.086 26.3945 24.7788 26.4709 24.5422 26.3285L12.2422 18.9285C12.0056 18.7862 11.9292 18.4789 12.0715 18.2423Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M24.5499 10.9674C24.702 10.8796 24.8889 10.878 25.0424 10.9632L37.8424 18.0632C38.0024 18.1519 38.1012 18.3209 38.0999 18.5038L37.9999 33.0038C37.9987 33.1805 37.9043 33.3434 37.7516 33.4324L25.0516 40.8324C24.8944 40.924 24.6999 40.923 24.5437 40.8297L12.1437 33.4297C11.9914 33.3389 11.8987 33.1742 11.8999 32.9969L11.9999 18.4969C12.0011 18.3195 12.0963 18.1561 12.2499 18.0674L24.5499 10.9674ZM24.8048 11.9749L12.9979 18.7902L12.9019 32.7177L24.8029 39.8199L37.0019 32.7119L37.0979 18.7937L24.8048 11.9749Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M37.9302 18.2454C38.0709 18.483 37.9923 18.7897 37.7547 18.9303L25.2547 26.3303C25.017 26.471 24.7104 26.3924 24.5697 26.1548C24.429 25.9172 24.5076 25.6105 24.7452 25.4698L37.2452 18.0698C37.4829 17.9291 37.7895 18.0077 37.9302 18.2454Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M18.4453 21.7701L30.9453 14.3701L31.4547 15.2306L18.9547 22.6306L18.4453 21.7701Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M18.9547 14.3701L25.2047 18.0701L31.4547 21.7701L30.9453 22.6306L18.4453 15.2306L18.9547 14.3701Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.6547 24.9697L25.1547 32.3697L24.6453 33.2302L12.1453 25.8302L12.6547 24.9697Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M37.6562 25.8294L25.2562 33.2294L24.7438 32.3707L37.1438 24.9707L37.6562 25.8294Z" class="fill-border"/></svg>',
connect_csv:'<svg width="50" height="51" viewBox="0 0 50 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M36.5 18.6502H29.3V11.4502" class="fill-background"/><path d="M27.9 36.4502H9.5C8.4 36.4502 7.5 35.5502 7.5 34.4502V27.9502C7.5 26.8502 8.4 25.9502 9.5 25.9502H27.9C29 25.9502 29.9 26.8502 29.9 27.9502V34.4502C29.9 35.5502 29 36.4502 27.9 36.4502Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M18.2998 15.4502C18.0362 15.4502 17.7776 15.5403 17.5838 15.7341C17.3899 15.928 17.2998 16.1866 17.2998 16.4502V20.6502C17.2998 20.9138 17.3899 21.1724 17.5838 21.3662C17.7776 21.5601 18.0362 21.6502 18.2998 21.6502H21.1998V22.8506H20.3998C20.1236 22.8506 19.8998 23.0744 19.8998 23.3506C19.8998 23.6267 20.1236 23.8506 20.3998 23.8506H22.9998C23.2759 23.8506 23.4998 23.6267 23.4998 23.3506C23.4998 23.0744 23.2759 22.8506 22.9998 22.8506H22.1998V21.6502H24.9998C25.248 21.6502 25.5221 21.5701 25.7291 21.389C25.9403 21.2041 26.0722 20.9131 25.9998 20.5848V16.4502C25.9998 16.1866 25.9097 15.928 25.7159 15.7341C25.522 15.5403 25.2634 15.4502 24.9998 15.4502H18.2998ZM18.2998 20.6502V16.4502H24.9998V20.6502H18.2998Z" class="fill-border"/><path d="M23.9286 29.3014C24.0106 29.0962 24.2434 28.9965 24.4485 29.0785C24.6537 29.1606 24.7534 29.3934 24.6714 29.5985L23.2714 33.0985C23.2113 33.2487 23.0666 33.3479 22.9049 33.3499C22.7431 33.3519 22.5961 33.2562 22.5323 33.1075L21.0323 29.6075C20.9453 29.4044 21.0394 29.1693 21.2424 29.0823C21.4455 28.9952 21.6806 29.0893 21.7676 29.2923L22.8872 31.9047L23.9286 29.3014Z" class="fill-border"/><path d="M13.6 31.2498C13.6 30.7432 13.7662 30.4028 13.9896 30.1884C14.217 29.97 14.5377 29.8498 14.9 29.8498C15.17 29.8498 15.4733 29.9888 15.7172 30.2326C15.8734 30.3889 16.1267 30.3889 16.2829 30.2326C16.4391 30.0764 16.4391 29.8232 16.2829 29.667C15.9268 29.3108 15.4301 29.0498 14.9 29.0498C14.3624 29.0498 13.8331 29.2296 13.4355 29.6112C13.0339 29.9968 12.8 30.5564 12.8 31.2498C12.8 31.9278 12.9994 32.4898 13.3922 32.8826C13.7842 33.2746 14.3207 33.4498 14.9 33.4498C15.5172 33.4498 16.0161 33.1994 16.3829 32.8326C16.5391 32.6764 16.5391 32.4232 16.3829 32.267C16.2267 32.1108 15.9734 32.1108 15.8172 32.267C15.584 32.5002 15.2829 32.6498 14.9 32.6498C14.4794 32.6498 14.1659 32.525 13.9579 32.317C13.7507 32.1098 13.6 31.7718 13.6 31.2498Z" class="fill-border"/><path d="M18.8 29.6506C18.2146 29.6506 18 29.9646 18 30.1506C18 30.3815 18.0548 30.4754 18.1245 30.5358C18.2181 30.6169 18.4172 30.7056 18.8442 30.753C18.8557 30.7543 18.8671 30.7561 18.8785 30.7584C19.3939 30.8614 19.813 30.9999 20.1092 31.2138C20.4338 31.4482 20.6 31.7666 20.6 32.1506C20.6 32.5497 20.395 32.8913 20.0634 33.1182C19.7403 33.3392 19.304 33.4506 18.8 33.4506C18.0977 33.4506 17.6213 33.2122 17.2781 32.9834C17.0943 32.8609 17.0447 32.6125 17.1672 32.4287C17.2897 32.2449 17.5381 32.1952 17.7219 32.3178C17.9788 32.489 18.3023 32.6506 18.8 32.6506C19.196 32.6506 19.4597 32.5619 19.6116 32.458C19.755 32.3598 19.8 32.2515 19.8 32.1506C19.8 32.0345 19.7662 31.9529 19.6408 31.8624C19.4888 31.7526 19.2125 31.6423 18.738 31.5461C18.2727 31.4928 17.8784 31.3812 17.6005 31.1404C17.2952 30.8758 17.2 30.5197 17.2 30.1506C17.2 29.3366 17.9854 28.8506 18.8 28.8506C19.3769 28.8506 19.7383 28.9725 20.1789 29.1928C20.3765 29.2916 20.4566 29.5319 20.3578 29.7295C20.259 29.9271 20.0187 30.0072 19.8211 29.9084C19.4617 29.7286 19.2231 29.6506 18.8 29.6506Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M15.5 10.9502C14.1068 10.9502 13.1 12.0913 13.1 13.3502V25.4502H9.5C8.12386 25.4502 7 26.5741 7 27.9502V34.4502C7 35.8263 8.12386 36.9502 9.5 36.9502H13.1V38.4502C13.1 39.8433 14.2411 40.8502 15.5 40.8502H34.5C35.8931 40.8502 36.9 39.709 36.9 38.4502V18.4451L29.5091 10.9502H15.5ZM14.1 36.9502V38.4502C14.1 39.2571 14.7588 39.8502 15.5 39.8502H34.5C35.3069 39.8502 35.9 39.1913 35.9 38.4502V19.1502H29.3C29.0239 19.1502 28.8 18.9263 28.8 18.6502V11.9502H15.5C14.6931 11.9502 14.1 12.609 14.1 13.3502V25.4502H27.9C29.2761 25.4502 30.4 26.5741 30.4 27.9502V34.4502C30.4 35.8263 29.2761 36.9502 27.9 36.9502H14.1ZM29.8 18.1502V12.6694L35.2047 18.1502H29.8ZM8 27.9502C8 27.1263 8.67614 26.4502 9.5 26.4502H27.9C28.7239 26.4502 29.4 27.1263 29.4 27.9502V34.4502C29.4 35.2741 28.7239 35.9502 27.9 35.9502H9.5C8.67614 35.9502 8 35.2741 8 34.4502V27.9502Z" class="fill-border"/></svg>',
connect_json:'<svg width="50" height="51" viewBox="0 0 50 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M36.5 18.6502H29.3V11.4502" class="fill-background"/><path d="M27.9 36.4502H9.5C8.4 36.4502 7.5 35.5502 7.5 34.4502V27.9502C7.5 26.8502 8.4 25.9502 9.5 25.9502H27.9C29 25.9502 29.9 26.8502 29.9 27.9502V34.4502C29.9 35.5502 29 36.4502 27.9 36.4502Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M18.2998 14.4502C18.0362 14.4502 17.7776 14.5403 17.5838 14.7341C17.3899 14.928 17.2998 15.1866 17.2998 15.4502V19.6502C17.2998 19.9138 17.3899 20.1724 17.5838 20.3662C17.7776 20.5601 18.0362 20.6502 18.2998 20.6502H21.1997V21.8506H20.3999C20.1238 21.8506 19.8999 22.0744 19.8999 22.3506C19.8999 22.6267 20.1238 22.8506 20.3999 22.8506H22.9999C23.276 22.8506 23.4999 22.6267 23.4999 22.3506C23.4999 22.0744 23.276 21.8506 22.9999 21.8506H22.1997V20.6502H24.9998C25.248 20.6502 25.5221 20.5701 25.7291 20.389C25.9403 20.2041 26.0722 19.9131 25.9998 19.5848V15.4502C25.9998 15.1866 25.9097 14.928 25.7159 14.7341C25.522 14.5403 25.2634 14.4502 24.9998 14.4502H18.2998ZM18.2998 19.6502V15.4502H24.9998V19.6502H18.2998Z" class="fill-border"/><path d="M15 30.1496C15 29.9636 15.2146 29.6496 15.8 29.6496C16.2231 29.6496 16.4617 29.7277 16.8211 29.9074C17.0187 30.0062 17.259 29.9261 17.3578 29.7285C17.4566 29.5309 17.3765 29.2906 17.1789 29.1918C16.7383 28.9715 16.3769 28.8496 15.8 28.8496C14.9854 28.8496 14.2 29.3356 14.2 30.1496C14.2 30.5187 14.2952 30.8748 14.6005 31.1394C14.8784 31.3802 15.2727 31.4918 15.738 31.5451C16.2125 31.6413 16.4888 31.7516 16.6408 31.8614C16.7662 31.952 16.8 32.0336 16.8 32.1496C16.8 32.2505 16.755 32.3589 16.6116 32.457C16.4597 32.561 16.196 32.6496 15.8 32.6496C15.3023 32.6496 14.9788 32.488 14.7219 32.3168C14.5381 32.1943 14.2897 32.2439 14.1672 32.4277C14.0447 32.6115 14.0943 32.8599 14.2781 32.9824C14.6213 33.2112 15.0977 33.4496 15.8 33.4496C16.304 33.4496 16.7403 33.3383 17.0634 33.1172C17.395 32.8903 17.6 32.5487 17.6 32.1496C17.6 31.7657 17.4338 31.4473 17.1092 31.2128C16.813 30.9989 16.3939 30.8605 15.8785 30.7574C15.8671 30.7551 15.8557 30.7533 15.8442 30.7521C15.4172 30.7046 15.2181 30.616 15.1245 30.5348C15.0548 30.4744 15 30.3805 15 30.1496Z" class="fill-border"/><path d="M13.0001 29.0498C13.221 29.0498 13.4001 29.2289 13.4001 29.4498V31.8498C13.4001 32.6932 12.6978 33.3498 11.8001 33.3498C11.2835 33.3498 10.7505 33.0966 10.4672 32.6717C10.3447 32.4879 10.3944 32.2395 10.5782 32.117C10.762 31.9944 11.0103 32.0441 11.1329 32.2279C11.2496 32.403 11.5166 32.5498 11.8001 32.5498C12.3023 32.5498 12.6001 32.2064 12.6001 31.8498V29.4498C12.6001 29.2289 12.7792 29.0498 13.0001 29.0498Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M20.2 29.0498C19.0189 29.0498 18.1 30.0566 18.1 31.2498C18.1 32.443 19.0189 33.4498 20.2 33.4498C21.381 33.4498 22.3 32.443 22.3 31.2498C22.3 30.0566 21.381 29.0498 20.2 29.0498ZM18.9 31.2498C18.9 30.4548 19.5032 29.8498 20.2 29.8498C20.8967 29.8498 21.5 30.4548 21.5 31.2498C21.5 32.0449 20.8967 32.6498 20.2 32.6498C19.5032 32.6498 18.9 32.0449 18.9 31.2498Z" class="fill-border"/><path d="M23.265 29.1729C23.424 29.1159 23.6016 29.1648 23.7089 29.2952L25.8001 31.8345V29.5494C25.8001 29.3285 25.9792 29.1494 26.2001 29.1494C26.421 29.1494 26.6001 29.3285 26.6001 29.5494V32.9494C26.6001 33.1183 26.4941 33.2689 26.3352 33.3259C26.1763 33.383 25.9987 33.334 25.8914 33.2037L23.8001 30.6644V32.9494C23.8001 33.1703 23.621 33.3494 23.4001 33.3494C23.1792 33.3494 23.0001 33.1703 23.0001 32.9494V29.5494C23.0001 29.3806 23.1061 29.2299 23.265 29.1729Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.1001 13.3502C13.1001 12.0913 14.107 10.9502 15.5001 10.9502H29.5093L36.9001 18.4451V38.4502C36.9001 39.709 35.8932 40.8502 34.5001 40.8502H15.5001C14.2413 40.8502 13.1001 39.8433 13.1001 38.4502V36.9502H9.5C8.12386 36.9502 7 35.8263 7 34.4502V27.9502C7 26.5741 8.12386 25.4502 9.5 25.4502H13.1001V13.3502ZM14.1001 38.4502V36.9502H27.9C29.2761 36.9502 30.4 35.8263 30.4 34.4502V27.9502C30.4 26.5741 29.2761 25.4502 27.9 25.4502H14.1001V13.3502C14.1001 12.609 14.6932 11.9502 15.5001 11.9502H28.8V18.6502C28.8 18.9263 29.0239 19.1502 29.3 19.1502H35.9001V38.4502C35.9001 39.1913 35.307 39.8502 34.5001 39.8502H15.5001C14.7589 39.8502 14.1001 39.2571 14.1001 38.4502ZM29.8 12.6693V18.1502H35.2048L29.8 12.6693ZM9.5 26.4502C8.67614 26.4502 8 27.1263 8 27.9502V34.4502C8 35.2741 8.67614 35.9502 9.5 35.9502H27.9C28.7239 35.9502 29.4 35.2741 29.4 34.4502V27.9502C29.4 27.1263 28.7239 26.4502 27.9 26.4502H9.5Z" class="fill-border"/></svg>',
connect_csv_remote:'<svg width="50" height="51" viewBox="0 0 50 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M36.5 18.6512H29.3V11.4512" class="fill-background"/><path d="M27.9 36.4512H9.5C8.4 36.4512 7.5 35.5512 7.5 34.4512V27.9512C7.5 26.8512 8.4 25.9512 9.5 25.9512H27.9C29 25.9512 29.9 26.8512 29.9 27.9512V34.4512C29.9 35.5512 29 36.4512 27.9 36.4512Z" class="fill-background"/><path d="M22.5 21.6514C22.5 22.2037 22.0523 22.6514 21.5 22.6514C20.9477 22.6514 20.5 22.2037 20.5 21.6514C20.5 21.0991 20.9477 20.6514 21.5 20.6514C22.0523 20.6514 22.5 21.0991 22.5 21.6514Z" class="fill-border"/><path d="M21.5 15.8516C19.7236 15.8516 18.1536 16.505 17.0535 17.6051C16.8582 17.8004 16.5417 17.8004 16.3464 17.6051C16.1511 17.4099 16.1511 17.0933 16.3464 16.898C17.6463 15.5981 19.4763 14.8516 21.5 14.8516C23.4276 14.8516 25.2563 15.6008 26.5535 16.898C26.7488 17.0933 26.7488 17.4099 26.5535 17.6051C26.3582 17.8004 26.0417 17.8004 25.8464 17.6051C24.7436 16.5023 23.1723 15.8516 21.5 15.8516Z" class="fill-border"/><path d="M18.4323 18.9251C19.2672 18.1829 20.3539 17.6514 21.5001 17.6514C22.6708 17.6514 23.7542 18.1018 24.5679 18.8251C24.7743 19.0085 25.0903 18.9899 25.2738 18.7835C25.4573 18.5772 25.4387 18.2611 25.2323 18.0777C24.246 17.2009 22.9294 16.6514 21.5001 16.6514C20.0463 16.6514 18.733 17.3198 17.7679 18.1777C17.5615 18.3611 17.5429 18.6772 17.7264 18.8835C17.9099 19.0899 18.2259 19.1085 18.4323 18.9251Z" class="fill-border"/><path d="M21.4999 19.4512C20.8353 19.4512 20.2454 19.6975 19.72 20.1353C19.5079 20.3121 19.1926 20.2834 19.0158 20.0713C18.839 19.8591 18.8677 19.5438 19.0798 19.3671C19.7544 18.8049 20.5645 18.4512 21.4999 18.4512C22.4283 18.4512 23.2568 18.8009 23.8535 19.3976C24.0487 19.5929 24.0487 19.9095 23.8535 20.1047C23.6582 20.3 23.3416 20.3 23.1464 20.1047C22.7431 19.7014 22.1715 19.4512 21.4999 19.4512Z" class="fill-border"/><path d="M24.7698 29.403C24.8539 29.1987 24.7565 28.9649 24.5523 28.8808C24.348 28.7967 24.1142 28.8941 24.0301 29.0984L22.9873 31.6309L21.8659 29.0892C21.7768 28.8871 21.5406 28.7956 21.3385 28.8847C21.1364 28.9739 21.0448 29.21 21.134 29.4121L22.634 32.8121C22.6987 32.9588 22.8447 33.0527 23.0049 33.0507C23.1652 33.0487 23.3088 32.9512 23.3698 32.803L24.7698 29.403Z" class="fill-border"/><path d="M14.0895 29.9891C13.8661 30.2036 13.7 30.544 13.7 31.0506C13.7 31.5726 13.8507 31.9105 14.0579 32.1177C14.2659 32.3258 14.5794 32.4506 15 32.4506C15.3828 32.4506 15.684 32.301 15.9172 32.0677C16.0734 31.9115 16.3267 31.9115 16.4829 32.0677C16.6391 32.224 16.6391 32.4772 16.4829 32.6334C16.1161 33.0002 15.6172 33.2506 15 33.2506C14.4206 33.2506 13.8842 33.0754 13.4922 32.6834C13.0994 32.2906 12.9 31.7286 12.9 31.0506C12.9 30.3572 13.1339 29.7976 13.5355 29.412C13.933 29.0304 14.4624 28.8506 15 28.8506C15.5301 28.8506 16.0267 29.1116 16.3829 29.4677C16.5391 29.624 16.5391 29.8772 16.3829 30.0334C16.2267 30.1896 15.9734 30.1896 15.8172 30.0334C15.5733 29.7896 15.2699 29.6506 15 29.6506C14.6377 29.6506 14.317 29.7708 14.0895 29.9891Z" class="fill-border"/><path d="M18.2 29.9504C18.2 29.7644 18.4146 29.4504 19 29.4504C19.4231 29.4504 19.6617 29.5285 20.0211 29.7082C20.2187 29.807 20.4589 29.7269 20.5577 29.5293C20.6565 29.3317 20.5764 29.0914 20.3789 28.9926C19.9383 28.7723 19.5769 28.6504 19 28.6504C18.1854 28.6504 17.4 29.1364 17.4 29.9504C17.4 30.3195 17.4952 30.6756 17.8005 30.9402C18.0784 31.181 18.4727 31.2926 18.9379 31.3459C19.4125 31.4421 19.6888 31.5524 19.8408 31.6622C19.9662 31.7527 20 31.8343 20 31.9504C20 32.0513 19.955 32.1597 19.8116 32.2578C19.6596 32.3617 19.396 32.4504 19 32.4504C18.5023 32.4504 18.1787 32.2888 17.9218 32.1176C17.738 31.995 17.4897 32.0447 17.3671 32.2285C17.2446 32.4123 17.2943 32.6607 17.4781 32.7832C17.8212 33.012 18.2977 33.2504 19 33.2504C19.504 33.2504 19.9403 33.139 20.2633 32.918C20.5949 32.6911 20.8 32.3495 20.8 31.9504C20.8 31.5664 20.6337 31.248 20.3092 31.0136C20.0129 30.7997 19.5938 30.6612 19.0784 30.5582C19.0671 30.5559 19.0556 30.5541 19.0441 30.5528C18.6172 30.5054 18.418 30.4167 18.3244 30.3356C18.2547 30.2752 18.2 30.1813 18.2 29.9504Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.1001 13.3512C13.1001 12.0923 14.107 10.9512 15.5001 10.9512H29.3001C29.4339 10.9512 29.5622 11.0048 29.6561 11.1001L36.7561 18.3001C36.8484 18.3937 36.9001 18.5198 36.9001 18.6512V38.4512C36.9001 39.71 35.8932 40.8512 34.5001 40.8512H15.5001C14.2413 40.8512 13.1001 39.8443 13.1001 38.4512V36.9512H9.5C8.12386 36.9512 7 35.8273 7 34.4512V27.9512C7 26.575 8.12386 25.4512 9.5 25.4512H13.1001V13.3512ZM14.1001 38.4512V36.9512H27.9C29.2761 36.9512 30.4 35.8273 30.4 34.4512V27.9512C30.4 26.575 29.2761 25.4512 27.9 25.4512H14.1001V13.3512C14.1001 12.61 14.6932 11.9512 15.5001 11.9512H28.8V18.6512C28.8 18.9273 29.0239 19.1512 29.3 19.1512H35.9001V38.4512C35.9001 39.1923 35.307 39.8512 34.5001 39.8512H15.5001C14.7589 39.8512 14.1001 39.258 14.1001 38.4512ZM29.8 12.6703V18.1512H35.2048L29.8 12.6703ZM9.5 26.4512C8.67614 26.4512 8 27.1273 8 27.9512V34.4512C8 35.275 8.67614 35.9512 9.5 35.9512H27.9C28.7239 35.9512 29.4 35.275 29.4 34.4512V27.9512C29.4 27.1273 28.7239 26.4512 27.9 26.4512H9.5Z" class="fill-border"/></svg>',
connect_json_remote:'<svg width="50" height="51" viewBox="0 0 50 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M36.5 18.6502H29.3V11.4502" class="fill-background"/><path d="M27.9 36.4502H9.5C8.4 36.4502 7.5 35.5502 7.5 34.4502V27.9502C7.5 26.8502 8.4 25.9502 9.5 25.9502H27.9C29 25.9502 29.9 26.8502 29.9 27.9502V34.4502C29.9 35.5502 29 36.4502 27.9 36.4502Z" class="fill-background"/><path d="M21.5 22.6504C22.0523 22.6504 22.5 22.2027 22.5 21.6504C22.5 21.0981 22.0523 20.6504 21.5 20.6504C20.9477 20.6504 20.5 21.0981 20.5 21.6504C20.5 22.2027 20.9477 22.6504 21.5 22.6504Z" class="fill-border"/><path d="M17.0535 17.6041C18.1536 16.504 19.7236 15.8506 21.5 15.8506C23.1723 15.8506 24.7436 16.5014 25.8464 17.6041C26.0417 17.7994 26.3582 17.7994 26.5535 17.6041C26.7488 17.4089 26.7488 17.0923 26.5535 16.897C25.2563 15.5998 23.4276 14.8506 21.5 14.8506C19.4763 14.8506 17.6463 15.5971 16.3464 16.897C16.1511 17.0923 16.1511 17.4089 16.3464 17.6041C16.5417 17.7994 16.8582 17.7994 17.0535 17.6041Z" class="fill-border"/><path d="M21.5 17.6504C20.3538 17.6504 19.2671 18.1819 18.4322 18.9241C18.2258 19.1076 17.9097 19.089 17.7263 18.8826C17.5428 18.6762 17.5614 18.3601 17.7678 18.1767C18.7328 17.3189 20.0462 16.6504 21.5 16.6504C22.9292 16.6504 24.2459 17.2 25.2322 18.0767C25.4386 18.2601 25.4571 18.5762 25.2737 18.7826C25.0902 18.989 24.7742 19.0076 24.5678 18.8241C23.7541 18.1008 22.6707 17.6504 21.5 17.6504Z" class="fill-border"/><path d="M19.7201 20.1343C20.2455 19.6965 20.8354 19.4502 21.5 19.4502C22.1717 19.4502 22.7432 19.7005 23.1465 20.1037C23.3417 20.299 23.6583 20.299 23.8536 20.1037C24.0489 19.9085 24.0489 19.5919 23.8536 19.3966C23.2569 18.7999 22.4284 18.4502 21.5 18.4502C20.5647 18.4502 19.7546 18.8039 19.0799 19.3661C18.8678 19.5429 18.8391 19.8581 19.0159 20.0703C19.1927 20.2824 19.508 20.3111 19.7201 20.1343Z" class="fill-border"/><path d="M15.8 29.6506C15.2146 29.6506 15 29.9646 15 30.1506C15 30.3815 15.0548 30.4754 15.1245 30.5358C15.2181 30.6169 15.4172 30.7056 15.8442 30.753C15.8557 30.7543 15.8671 30.7561 15.8785 30.7584C16.3939 30.8614 16.813 30.9999 17.1092 31.2138C17.4338 31.4482 17.6 31.7666 17.6 32.1506C17.6 32.5497 17.395 32.8913 17.0634 33.1182C16.7403 33.3392 16.304 33.4506 15.8 33.4506C15.0977 33.4506 14.6213 33.2122 14.2781 32.9834C14.0943 32.8609 14.0447 32.6125 14.1672 32.4287C14.2897 32.2449 14.5381 32.1952 14.7219 32.3178C14.9788 32.489 15.3023 32.6506 15.8 32.6506C16.196 32.6506 16.4597 32.5619 16.6116 32.458C16.755 32.3598 16.8 32.2515 16.8 32.1506C16.8 32.0345 16.7662 31.9529 16.6408 31.8624C16.4888 31.7526 16.2125 31.6423 15.738 31.5461C15.2727 31.4928 14.8784 31.3812 14.6005 31.1404C14.2952 30.8758 14.2 30.5197 14.2 30.1506C14.2 29.3366 14.9854 28.8506 15.8 28.8506C16.3769 28.8506 16.7383 28.9725 17.1789 29.1928C17.3765 29.2916 17.4566 29.5319 17.3578 29.7295C17.259 29.9271 17.0187 30.0072 16.8211 29.9084C16.4617 29.7286 16.2231 29.6506 15.8 29.6506Z" class="fill-border"/><path d="M13.3999 29.4498C13.3999 29.2289 13.2209 29.0498 12.9999 29.0498C12.779 29.0498 12.5999 29.2289 12.5999 29.4498V31.8498C12.5999 32.2064 12.3022 32.5498 11.7999 32.5498C11.5165 32.5498 11.2495 32.403 11.1328 32.2279C11.0102 32.0441 10.7619 31.9944 10.5781 32.117C10.3943 32.2395 10.3446 32.4879 10.4671 32.6717C10.7504 33.0966 11.2834 33.3498 11.7999 33.3498C12.6977 33.3498 13.3999 32.6932 13.3999 31.8498V29.4498Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M18.1 31.2498C18.1 30.0566 19.0189 29.0498 20.2 29.0498C21.381 29.0498 22.3 30.0566 22.3 31.2498C22.3 32.443 21.381 33.4498 20.2 33.4498C19.0189 33.4498 18.1 32.443 18.1 31.2498ZM20.2 29.8498C19.5032 29.8498 18.9 30.4548 18.9 31.2498C18.9 32.0449 19.5032 32.6498 20.2 32.6498C20.8967 32.6498 21.5 32.0449 21.5 31.2498C21.5 30.4548 20.8967 29.8498 20.2 29.8498Z" class="fill-border"/><path d="M23.7088 29.2961C23.6014 29.1658 23.4238 29.1169 23.2649 29.1739C23.106 29.2309 23 29.3816 23 29.5504V32.9504C23 33.1713 23.1791 33.3504 23.4 33.3504C23.6209 33.3504 23.8 33.1713 23.8 32.9504V30.6653L25.8912 33.2047C25.9986 33.335 26.1762 33.3839 26.3351 33.3269C26.494 33.2699 26.6 33.1192 26.6 32.9504V29.5504C26.6 29.3295 26.4209 29.1504 26.2 29.1504C25.9791 29.1504 25.8 29.3295 25.8 29.5504V31.8355L23.7088 29.2961Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M15.5 10.9502C14.1068 10.9502 13.1 12.0913 13.1 13.3502V25.4502H9.5C8.12386 25.4502 7 26.5741 7 27.9502V34.4502C7 35.8263 8.12386 36.9502 9.5 36.9502H13.1V38.4502C13.1 39.8433 14.2411 40.8502 15.5 40.8502H34.5C35.8931 40.8502 36.9 39.709 36.9 38.4502V18.4451L29.5091 10.9502H15.5ZM14.1 36.9502V38.4502C14.1 39.2571 14.7588 39.8502 15.5 39.8502H34.5C35.3069 39.8502 35.9 39.1913 35.9 38.4502V19.1502H29.3C29.0239 19.1502 28.8 18.9263 28.8 18.6502V11.9502H15.5C14.6931 11.9502 14.1 12.609 14.1 13.3502V25.4502H27.9C29.2761 25.4502 30.4 26.5741 30.4 27.9502V34.4502C30.4 35.8263 29.2761 36.9502 27.9 36.9502H14.1ZM29.8 18.1502V12.6694L35.2047 18.1502H29.8ZM8 27.9502C8 27.1263 8.67614 26.4502 9.5 26.4502H27.9C28.7239 26.4502 29.4 27.1263 29.4 27.9502V34.4502C29.4 35.2741 28.7239 35.9502 27.9 35.9502H9.5C8.67614 35.9502 8 35.2741 8 34.4502V27.9502Z" class="fill-border"/></svg>',
connect_elastic:'<svg width="50" height="50" viewBox="-14 -14 150 150" xmlns="http://www.w3.org/2000/svg"><path d="m53.2 68h-32.4c-1.2-3.8-1.8-7.8-1.8-12s0.6-8.2 1.8-12h53.2c6.7 0 12 5.4 12 12s-5.3 12-11.9 12h-20.9zm-1.5 4h-29.4c3.1 7.1 8.2 13.2 14.7 17.4 6.3 4.2 13.9 6.6 22 6.6 13.9 0 26.1-7.1 33.3-17.8-3.7-3.8-8.9-6.2-14.6-6.2h-26zm26-32c5.7 0 10.9-2.4 14.6-6.2-7.2-10.7-19.4-17.8-33.3-17.8-8.1 0-15.7 2.4-22 6.6-6.4 4.2-11.5 10.3-14.7 17.4h55.4z" class="fill-border" /></svg>',open:'<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M34.6 20.9H15.6V18.8C15.6 17.9 16.3 17.2 17.2 17.2H33C33.9 17.2 34.6 17.9 34.6 18.8V20.9Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.8 12V20.4031C10.7554 20.459 9.87391 21.386 10.0029 22.5542L10.0031 22.5556L11.8502 40.0004H38.1499L39.997 22.5556L39.9971 22.5543C40.1303 21.3489 39.1877 20.4004 38.1 20.4004L38.1 15.2C38.1 14.045 37.1969 13.1 36.1 13.1H23.9981L20.6981 10H13.7C12.5801 10 11.8 10.9698 11.8 12ZM13.7 11C13.22 11 12.8 11.4302 12.8 12V20.4004H15.1V18.8002C15.1 17.6241 16.0238 16.7002 17.2 16.7002H33C34.1761 16.7002 35.1 17.6241 35.1 18.8002V20.4004H37.1V15.2C37.1 14.555 36.6032 14.1 36.1 14.1H23.602L20.302 11H13.7ZM11.9 21.4004C11.3881 21.4004 10.931 21.8512 10.997 22.4452L10.9973 22.4477L12.7499 39.0004H37.2502L39.0028 22.4477L39.0031 22.4452C39.0691 21.8512 38.612 21.4004 38.1 21.4004H11.9ZM16.1 18.8002C16.1 18.1763 16.5761 17.7002 17.2 17.7002H33C33.6238 17.7002 34.1 18.1763 34.1 18.8002V20.4002H16.1V18.8002Z" class="fill-border"/></svg>',
open_local:'<svg width="50" height="51" viewBox="0 0 50 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.4 18.1004V12.9004C12.4 12.1004 13 11.4004 13.8 11.4004H20.6L23.9 14.5004H36.2C37 14.5004 37.7 15.2004 37.7 16.1004V18.2004" class="fill-background"/><path d="M32.1 30.9004V32.2004C32.1 32.9004 31.5 33.5004 30.8 33.5004H19.2C18.5 33.5004 17.9 32.9004 17.9 32.2004V30.9004H32.1Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M24.5001 33.5006H19.2001C18.2239 33.5006 17.4001 32.6767 17.4001 31.7006V23.9006C17.4001 22.9244 18.2239 22.1006 19.2001 22.1006H30.8001C31.7762 22.1006 32.6001 22.9244 32.6001 23.9006V31.7006C32.6001 32.6767 31.7762 33.5006 30.8001 33.5006H25.5001V35.6006H27.4001C27.6762 35.6006 27.9001 35.8244 27.9001 36.1006C27.9001 36.3767 27.6762 36.6006 27.4001 36.6006H22.6001C22.3239 36.6006 22.1001 36.3767 22.1001 36.1006C22.1001 35.8244 22.3239 35.6006 22.6001 35.6006H24.5001V33.5006ZM19.2001 23.1006C18.7762 23.1006 18.4001 23.4767 18.4001 23.9006V30.4004H31.6001V23.9006C31.6001 23.4767 31.2239 23.1006 30.8001 23.1006H19.2001ZM18.4001 31.7006V31.4004H31.6001V31.7006C31.6001 32.1244 31.2239 32.5006 30.8001 32.5006H25.0245C25.0164 32.5002 25.0083 32.5 25.0001 32.5C24.9919 32.5 24.9837 32.5002 24.9756 32.5006H19.2001C18.7762 32.5006 18.4001 32.1244 18.4001 31.7006Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.9001 12.9004V17.6006C10.8139 17.6006 9.87241 18.5465 10.0024 19.7495L11.8416 40.9006H38.1584L39.9977 19.7495C40.1237 18.5836 39.2433 17.6592 38.2001 17.6033V16.1004C38.2001 14.9454 37.2969 14.0004 36.2001 14.0004H24.0981L20.7981 10.9004H13.8001C12.6802 10.9004 11.9001 11.8702 11.9001 12.9004ZM13.8001 11.9004C13.32 11.9004 12.9001 12.3306 12.9001 12.9004V17.6006H37.2001V16.1004C37.2001 15.4554 36.7032 15.0004 36.2001 15.0004H23.7021L20.4021 11.9004H13.8001ZM11.9 18.6006C11.3881 18.6006 10.931 19.0514 10.997 19.6454L10.9983 19.6573L12.7584 39.9006H37.2416L39.003 19.6454C39.069 19.0513 38.612 18.6006 38.1 18.6006H11.9Z" class="fill-border"/></svg>',
open_remote:'<svg width="50" height="51" viewBox="0 0 50 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.4 18.1005V12.9005C12.4 12.1005 13 11.4005 13.8 11.4005H20.6L23.9 14.5005H36.2C37 14.5005 37.7 15.2005 37.7 16.1005V18.2005" class="fill-background"/><path d="M25.0999 36.1004C26.094 36.1004 26.8999 35.2945 26.8999 34.3004C26.8999 33.3063 26.094 32.5004 25.0999 32.5004C24.1058 32.5004 23.2999 33.3063 23.2999 34.3004C23.2999 35.2945 24.1058 36.1004 25.0999 36.1004Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M22.7999 34.3C22.7999 33.0297 23.8296 32 25.0999 32C26.3702 32 27.3999 33.0297 27.3999 34.3C27.3999 35.5703 26.3702 36.6 25.0999 36.6C23.8296 36.6 22.7999 35.5703 22.7999 34.3ZM25.0999 33C24.3819 33 23.7999 33.582 23.7999 34.3C23.7999 35.018 24.3819 35.6 25.0999 35.6C25.8179 35.6 26.3999 35.018 26.3999 34.3C26.3999 33.582 25.8179 33 25.0999 33Z" class="fill-border"/><path d="M17.1616 26.646C19.1675 24.5446 21.9369 23.3008 25.0999 23.3008C28.1617 23.3008 30.9361 24.5441 32.9463 26.5543C33.1416 26.7496 33.4582 26.7496 33.6535 26.5543C33.8487 26.3591 33.8487 26.0425 33.6535 25.8472C31.4637 23.6575 28.4381 22.3008 25.0999 22.3008C21.6628 22.3008 18.6323 23.657 16.4382 25.9555C16.2475 26.1553 16.2549 26.4718 16.4547 26.6625C16.6544 26.8531 16.9709 26.8458 17.1616 26.646Z" class="fill-border"/><path d="M24.9999 26.5C22.8464 26.5 20.87 27.437 19.4535 28.8536C19.2582 29.0488 18.9416 29.0488 18.7464 28.8536C18.5511 28.6583 18.5511 28.3417 18.7464 28.1464C20.3298 26.563 22.5534 25.5 24.9999 25.5C27.428 25.5 29.6639 26.4501 31.1654 28.0588C31.3539 28.2607 31.3429 28.5771 31.1411 28.7655C30.9392 28.9539 30.6228 28.943 30.4344 28.7412C29.1359 27.3499 27.1718 26.5 24.9999 26.5Z" class="fill-border"/><path d="M21.8535 31.2539C22.666 30.4414 23.8412 29.9004 25.0999 29.9004C26.3481 29.9004 27.4256 30.4332 28.2464 31.2539C28.4416 31.4492 28.7582 31.4492 28.9535 31.2539C29.1487 31.0587 29.1487 30.7421 28.9535 30.5468C27.9742 29.5676 26.6517 28.9004 25.0999 28.9004C23.5586 28.9004 22.1338 29.5594 21.1464 30.5468C20.9511 30.7421 20.9511 31.0587 21.1464 31.2539C21.3416 31.4492 21.6582 31.4492 21.8535 31.2539Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.8999 17.6006V12.9004C11.8999 11.8702 12.68 10.9004 13.7999 10.9004H20.7979L24.0979 14.0004H36.1999C37.2968 14.0004 38.1999 14.9454 38.1999 16.1004V17.6033C39.2431 17.6591 40.1236 18.5836 39.9975 19.7495L38.1583 40.9006H11.8415L10.0023 19.7495C9.87228 18.5465 10.8138 17.6006 11.8999 17.6006ZM12.8999 12.9004C12.8999 12.3306 13.3198 11.9004 13.7999 11.9004H20.4019L23.7019 15.0004H36.1999C36.703 15.0004 37.1999 15.4554 37.1999 16.1004V17.6006H12.8999V12.9004ZM10.9969 19.6454C10.9309 19.0514 11.388 18.6006 11.8999 18.6006H38.0999C38.6119 18.6006 39.0688 19.0513 39.0028 19.6454L37.2415 39.9006H12.7583L10.9982 19.6573L10.9969 19.6454Z" class="fill-border"/></svg>',
grid:'<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M39.5 20.2H10.5V12.6C10.5 11.4 11.4 10.5 12.6 10.5H37.4C38.6 10.5 39.5 11.4 39.5 12.6V20.2V20.2Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10 12.6V37.4C10 38.8761 11.1239 40 12.6 40H37.4C38.8761 40 40 38.8761 40 37.4V12.6C40 11.1239 38.8761 10 37.4 10H12.6C11.1239 10 10 11.1239 10 12.6ZM12.6 11C11.6761 11 11 11.6761 11 12.6V19.7H39V12.6C39 11.6761 38.3239 11 37.4 11H12.6ZM39 29.5996V20.7H30.3V29.5996H39ZM29.3 29.5996H20.7V20.7H29.3V29.5996ZM29.3 30.5996V39H20.7V30.5996H29.3ZM30.3 39V30.5996H39V37.4C39 38.3239 38.3239 39 37.4 39H30.3ZM19.7 29.5996V20.7H11V29.5996H19.7ZM11 30.5996H19.7V39H12.6C11.6761 39 11 38.3239 11 37.4V30.5996Z" class="fill-border"/></svg>',
save:'<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M29.9496 18.5H20.9496C20.0496 18.5 19.3496 17.8 19.3496 16.9V10.5H31.5496V16.9C31.5496 17.8 30.8496 18.5 29.9496 18.5Z" class="fill-background"/><path d="M35.9496 39.5H14.8496V25.9C14.8496 24.6 15.9496 23.5 17.2496 23.5H33.4496C34.7496 23.5 35.8496 24.6 35.8496 25.9V39.5H35.9496Z" class="fill-background"/><path d="M31.55 29.4004H19.25V28.4004H31.55V29.4004Z" class="fill-border"/><path d="M19.25 34.5996H31.55V33.5996H19.25V34.5996Z" class="fill-border"/><path d="M28.5498 12.4004V16.4004H29.5498V12.4004H28.5498Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.7498 10C11.7737 10 10.0498 11.7239 10.0498 13.7V36.2C10.0498 38.2862 11.7839 39.9 13.7498 39.9H14.3496V40H35.9496V39.9H36.2498C38.336 39.9 39.9498 38.166 39.9498 36.2V17C39.9498 16.8757 39.9035 16.7559 39.82 16.6639L33.92 10.1639C33.8253 10.0595 33.6908 10 33.5498 10H13.7498ZM15.3496 38.9H35.3496V25.9C35.3496 24.8761 34.4735 24 33.4496 24H17.2496C16.2258 24 15.3496 24.8761 15.3496 25.9V38.9ZM36.3496 25.9V38.8982C37.8154 38.844 38.9498 37.6024 38.9498 36.2V17.1931L33.3284 11H32.0496V16.9C32.0496 18.0761 31.1258 19 29.9496 19H20.9496C19.7735 19 18.8496 18.0761 18.8496 16.9V11H13.7498C12.3259 11 11.0498 12.2761 11.0498 13.7V36.2C11.0498 37.7138 12.3158 38.9 13.7498 38.9H14.3496V25.9C14.3496 24.3239 15.6735 23 17.2496 23H33.4496C35.0257 23 36.3496 24.3239 36.3496 25.9ZM31.0496 11H19.8496V16.9C19.8496 17.5239 20.3258 18 20.9496 18H29.9496C30.5735 18 31.0496 17.5239 31.0496 16.9V11Z" class="fill-border"/></svg>',
"export":'<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M33.6998 19.2L24.9998 10.5L16.2998 19.2H21.1998V31.8H28.7998V19.2H33.6998Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M25.3534 10.1464C25.1581 9.95118 24.8415 9.95118 24.6463 10.1464L15.9463 18.8464C15.8033 18.9894 15.7605 19.2045 15.8379 19.3913C15.9153 19.5782 16.0976 19.7 16.2998 19.7H20.6998V23H12.1C10.9239 23 10 23.9239 10 25.1V37.9C10 39.0761 10.9239 40 12.1 40H37.9C39.0761 40 40 39.0761 40 37.9V25.1C40 23.9239 39.0761 23 37.9 23H29.2998V19.7H33.6998C33.9021 19.7 34.0844 19.5782 34.1618 19.3913C34.2392 19.2045 34.1964 18.9894 34.0534 18.8464L25.3534 10.1464ZM29.2998 24V31.8C29.2998 32.0761 29.076 32.3 28.7998 32.3H21.1998C20.9237 32.3 20.6998 32.0761 20.6998 31.8V24H12.1C11.4761 24 11 24.4761 11 25.1V37.9C11 38.5239 11.4761 39 12.1 39H37.9C38.5239 39 39 38.5239 39 37.9V25.1C39 24.4761 38.5239 24 37.9 24H29.2998ZM17.5069 18.7L24.9998 11.2071L32.4927 18.7H28.7998C28.5237 18.7 28.2998 18.9239 28.2998 19.2V31.3H21.6998V19.2C21.6998 18.9239 21.476 18.7 21.1998 18.7H17.5069Z" class="fill-border"/></svg>',
export_print:'<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M32.9462 33.5002H38.0463C39.1463 33.5002 40.0463 32.5002 39.9463 31.5002V22.2002C39.9463 21.1002 39.0463 20.2002 37.9463 20.2002H13.0463C11.9463 20.2002 11.0463 21.1002 11.0463 22.2002V31.5002C11.0463 32.6002 11.9463 33.5002 13.0463 33.5002H18.1462V27.8008H32.9462V33.5002Z" class="fill-background"/><path d="M32.9463 16.0004H28.3463V11.4004L32.9463 16.0004Z" class="fill-background"/><path d="M15.4462 22C15.1701 22 14.9462 22.2239 14.9462 22.5C14.9462 22.7761 15.1701 23 15.4462 23H18.1462C18.4224 23 18.6462 22.7761 18.6462 22.5C18.6462 22.2239 18.4224 22 18.1462 22H15.4462Z" class="fill-border"/><path d="M20.7463 33.5C20.7463 33.2239 20.9701 33 21.2463 33H29.9463C30.2224 33 30.4463 33.2239 30.4463 33.5C30.4463 33.7761 30.2224 34 29.9463 34H21.2463C20.9701 34 20.7463 33.7761 20.7463 33.5Z" class="fill-border"/><path d="M21.2463 35.7002C20.9701 35.7002 20.7463 35.9241 20.7463 36.2002C20.7463 36.4763 20.9701 36.7002 21.2463 36.7002H29.9463C30.2224 36.7002 30.4463 36.4763 30.4463 36.2002C30.4463 35.9241 30.2224 35.7002 29.9463 35.7002H21.2463Z" class="fill-border"/><path d="M20.7463 30.7002C20.7463 30.4241 20.9701 30.2002 21.2463 30.2002H29.9463C30.2224 30.2002 30.4463 30.4241 30.4463 30.7002C30.4463 30.9763 30.2224 31.2002 29.9463 31.2002H21.2463C20.9701 31.2002 20.7463 30.9763 20.7463 30.7002Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M17.6462 12.7004C17.6462 11.7242 18.4701 10.9004 19.4462 10.9004L22.3618 11.9004H19.4462C19.0224 11.9004 18.6462 12.2765 18.6462 12.7004V19.7002H32.4462V16.5004H28.3463C28.0701 16.5004 27.8463 16.2765 27.8463 16.0004V13.7815L28.8463 14.1245V15.5004H31.7391L31.1552 14.9165L33.3075 15.6547C33.3964 15.7476 33.4462 15.8714 33.4462 16.0004V19.7002H37.9463C39.3224 19.7002 40.4463 20.8241 40.4463 22.2002V31.477C40.5592 32.7766 39.4174 34.0002 38.0463 34.0002H33.4462V40.4008C33.4462 40.6769 33.2224 40.9008 32.9462 40.9008H18.1462C17.8701 40.9008 17.6462 40.6769 17.6462 40.4008V34.0002H13.0463C11.6701 34.0002 10.5463 32.8763 10.5463 31.5002V22.2002C10.5463 20.8241 11.6701 19.7002 13.0463 19.7002H17.6462V12.7004ZM38.0463 33.0002H33.4462V28.3008H35.7462C36.0224 28.3008 36.2462 28.0769 36.2462 27.8008C36.2462 27.5246 36.0224 27.3008 35.7462 27.3008H15.4462C15.1701 27.3008 14.9462 27.5246 14.9462 27.8008C14.9462 28.0769 15.1701 28.3008 15.4462 28.3008H17.6462V33.0002H13.0463C12.2224 33.0002 11.5463 32.3241 11.5463 31.5002V22.2002C11.5463 21.3763 12.2224 20.7002 13.0463 20.7002H37.9463C38.7701 20.7002 39.4463 21.3763 39.4463 22.2002V31.5002C39.4463 31.5168 39.4471 31.5334 39.4487 31.5499C39.5178 32.2405 38.8658 33.0002 38.0463 33.0002ZM18.6462 28.3008V39.9008H32.4462V28.3008H18.6462Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.1485 14.9098L33.2998 15.6468L28.6998 11.0469C28.686 11.0331 28.6716 11.0202 28.6564 11.0083C28.6201 10.9795 28.58 10.956 28.5376 10.9385C28.5219 10.9319 28.5059 10.9262 28.4896 10.9214C28.4513 10.9099 28.4115 10.903 28.371 10.901C28.3628 10.9006 28.3545 10.9004 28.3462 10.9004H19.4462L22.365 11.9004H22.3618L27.8463 13.7815V13.7784L28.8463 14.121V14.1245L31.1552 14.9165L31.1485 14.9098ZM31.1485 14.9098L28.8463 12.6075V14.121L31.1485 14.9098ZM27.8463 13.7784L22.365 11.9004H27.8463V13.7784Z" class="fill-border"/></svg>',
export_csv:'<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M37 18.6502H29.8V11.4502" class="fill-background"/><path d="M28.4 36.4502H10C8.9 36.4502 8 35.5502 8 34.4502V27.9502C8 26.8502 8.9 25.9502 10 25.9502H28.4C29.5 25.9502 30.4 26.8502 30.4 27.9502V34.4502C30.4 35.5502 29.5 36.4502 28.4 36.4502Z" class="fill-background"/><path d="M25.5699 29.7028C25.654 29.4985 25.5566 29.2647 25.3523 29.1806C25.148 29.0965 24.9142 29.1939 24.8301 29.3982L23.7873 31.9308L22.666 29.389C22.5768 29.1869 22.3407 29.0954 22.1385 29.1845C21.9364 29.2737 21.8449 29.5098 21.934 29.712L23.434 33.112C23.4987 33.2586 23.6447 33.3525 23.805 33.3505C23.9652 33.3485 24.1088 33.251 24.1699 33.1028L25.5699 29.7028Z" class="fill-border"/><path d="M14.8895 30.1884C14.6661 30.4028 14.5 30.7432 14.5 31.2498C14.5 31.7718 14.6507 32.1098 14.8579 32.317C15.0659 32.525 15.3794 32.6498 15.8 32.6498C16.1828 32.6498 16.4839 32.5002 16.7172 32.267C16.8734 32.1108 17.1266 32.1108 17.2829 32.267C17.4391 32.4232 17.4391 32.6764 17.2829 32.8326C16.9161 33.1994 16.4172 33.4498 15.8 33.4498C15.2206 33.4498 14.6842 33.2746 14.2922 32.8826C13.8994 32.4898 13.7 31.9278 13.7 31.2498C13.7 30.5564 13.9339 29.9968 14.3355 29.6112C14.733 29.2296 15.2623 29.0498 15.8 29.0498C16.3301 29.0498 16.8267 29.3108 17.1829 29.667C17.3391 29.8232 17.3391 30.0764 17.1829 30.2326C17.0266 30.3889 16.7734 30.3889 16.6172 30.2326C16.3733 29.9888 16.0699 29.8498 15.8 29.8498C15.4377 29.8498 15.117 29.97 14.8895 30.1884Z" class="fill-border"/><path d="M19 30.1506C19 29.9646 19.2146 29.6506 19.8 29.6506C20.2231 29.6506 20.4617 29.7286 20.8211 29.9084C21.0187 30.0072 21.259 29.9271 21.3578 29.7295C21.4566 29.5319 21.3765 29.2916 21.1789 29.1928C20.7383 28.9725 20.3769 28.8506 19.8 28.8506C18.9854 28.8506 18.2 29.3366 18.2 30.1506C18.2 30.5197 18.2952 30.8758 18.6005 31.1404C18.8784 31.3812 19.2727 31.4928 19.738 31.5461C20.2125 31.6423 20.4888 31.7526 20.6408 31.8624C20.7662 31.9529 20.8 32.0345 20.8 32.1506C20.8 32.2515 20.755 32.3598 20.6116 32.458C20.4597 32.5619 20.196 32.6506 19.8 32.6506C19.3023 32.6506 18.9788 32.489 18.7219 32.3178C18.5381 32.1952 18.2897 32.2449 18.1672 32.4287C18.0447 32.6125 18.0943 32.8609 18.2781 32.9834C18.6213 33.2122 19.0977 33.4506 19.8 33.4506C20.304 33.4506 20.7403 33.3392 21.0634 33.1182C21.395 32.8913 21.6 32.5497 21.6 32.1506C21.6 31.7666 21.4338 31.4482 21.1092 31.2138C20.813 30.9999 20.3939 30.8614 19.8785 30.7584C19.8671 30.7561 19.8557 30.7543 19.8442 30.753C19.4172 30.7056 19.2181 30.6169 19.1245 30.5358C19.0548 30.4754 19 30.3815 19 30.1506Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.6001 13.3502C13.6001 12.0913 14.607 10.9502 16.0001 10.9502H30.0093L37.4001 18.4451V38.4502C37.4001 39.709 36.3932 40.8502 35.0001 40.8502H16.0001C14.7413 40.8502 13.6001 39.8433 13.6001 38.4502V36.9502H10C8.62386 36.9502 7.5 35.8263 7.5 34.4502V27.9502C7.5 26.5741 8.62386 25.4502 10 25.4502H13.6001V13.3502ZM14.6001 38.4502V36.9502H28.4C29.7761 36.9502 30.9 35.8263 30.9 34.4502V27.9502C30.9 26.5741 29.7761 25.4502 28.4 25.4502H14.6001V13.3502C14.6001 12.609 15.1932 11.9502 16.0001 11.9502H29.3V18.6502C29.3 18.9263 29.5238 19.1502 29.8 19.1502H36.4001V38.4502C36.4001 39.1913 35.807 39.8502 35.0001 39.8502H16.0001C15.2589 39.8502 14.6001 39.2571 14.6001 38.4502ZM30.3 12.6692V18.1502H35.7048L30.3 12.6692ZM10 26.4502C9.17614 26.4502 8.5 27.1263 8.5 27.9502V34.4502C8.5 35.2741 9.17614 35.9502 10 35.9502H28.4C29.2239 35.9502 29.9 35.2741 29.9 34.4502V27.9502C29.9 27.1263 29.2239 26.4502 28.4 26.4502H10Z" class="fill-border"/></svg>',
export_excel:'<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M37 18.6502H29.8V11.4502" class="fill-background"/><path d="M28.4 36.4502H10C8.9 36.4502 8 35.5502 8 34.4502V27.9502C8 26.8502 8.9 25.9502 10 25.9502H28.4C29.5 25.9502 30.4 26.8502 30.4 27.9502V34.4502C30.4 35.5502 29.5 36.4502 28.4 36.4502Z" class="fill-background"/><path d="M22.7 29.55C22.1146 29.55 21.9 29.864 21.9 30.05C21.9 30.2809 21.9548 30.3748 22.0245 30.4352C22.1181 30.5163 22.3172 30.605 22.7442 30.6524C22.7557 30.6537 22.7671 30.6555 22.7784 30.6578C23.2938 30.7608 23.7129 30.8993 24.0092 31.1132C24.3338 31.3476 24.5 31.666 24.5 32.05C24.5 32.4491 24.295 32.7907 23.9634 33.0176C23.6403 33.2387 23.204 33.35 22.7 33.35C21.9977 33.35 21.5212 33.1116 21.1781 32.8828C20.9943 32.7603 20.9446 32.5119 21.0672 32.3281C21.1897 32.1443 21.4381 32.0946 21.6219 32.2172C21.8787 32.3884 22.2023 32.55 22.7 32.55C23.096 32.55 23.3597 32.4613 23.5116 32.3574C23.655 32.2593 23.7 32.1509 23.7 32.05C23.7 31.934 23.6662 31.8524 23.5408 31.7618C23.3888 31.652 23.1125 31.5417 22.638 31.4455C22.1727 31.3922 21.7784 31.2806 21.5005 31.0398C21.1952 30.7752 21.1 30.4191 21.1 30.05C21.1 29.236 21.8854 28.75 22.7 28.75C23.2769 28.75 23.6383 28.8719 24.0789 29.0922C24.2765 29.191 24.3565 29.4313 24.2578 29.6289C24.159 29.8265 23.9187 29.9066 23.7211 29.8078C23.3617 29.6281 23.1231 29.55 22.7 29.55Z" class="fill-border"/><path d="M18.6 29.2506C18.6 29.0297 18.4209 28.8506 18.2 28.8506C17.9791 28.8506 17.8 29.0297 17.8 29.2506V32.7506C17.8 32.9715 17.9791 33.1506 18.2 33.1506H20.2C20.4209 33.1506 20.6 32.9715 20.6 32.7506C20.6 32.5297 20.4209 32.3506 20.2 32.3506H18.6V29.2506Z" class="fill-border"/><path d="M13.8556 28.9339C14.0306 28.799 14.2817 28.8314 14.4167 29.0063L15.45 30.3457L16.4833 29.0063C16.6182 28.8314 16.8694 28.799 17.0443 28.9339C17.2192 29.0688 17.2516 29.32 17.1167 29.4949L15.9552 31.0006L17.1167 32.5063C17.2516 32.6812 17.2192 32.9324 17.0443 33.0673C16.8694 33.2023 16.6182 33.1698 16.4833 32.9949L15.45 31.6555L14.4167 32.9949C14.2817 33.1698 14.0306 33.2023 13.8556 33.0673C13.6807 32.9324 13.6483 32.6812 13.7833 32.5063L14.9448 31.0006L13.7833 29.4949C13.6483 29.32 13.6807 29.0688 13.8556 28.9339Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16.0001 10.9502C14.607 10.9502 13.6001 12.0913 13.6001 13.3502V25.4502H10C8.62386 25.4502 7.5 26.5741 7.5 27.9502V34.4502C7.5 35.8263 8.62386 36.9502 10 36.9502H13.6001V38.4502C13.6001 39.8433 14.7413 40.8502 16.0001 40.8502H35.0001C36.3932 40.8502 37.4001 39.709 37.4001 38.4502V18.4451L30.0093 10.9502H16.0001ZM14.6001 36.9502V38.4502C14.6001 39.2571 15.2589 39.8502 16.0001 39.8502H35.0001C35.807 39.8502 36.4001 39.1913 36.4001 38.4502V19.1502H29.8C29.5238 19.1502 29.3 18.9263 29.3 18.6502V11.9502H16.0001C15.1932 11.9502 14.6001 12.609 14.6001 13.3502V25.4502H28.4C29.7761 25.4502 30.9 26.5741 30.9 27.9502V34.4502C30.9 35.8263 29.7761 36.9502 28.4 36.9502H14.6001ZM30.3 18.1502V12.6692L35.7048 18.1502H30.3ZM8.5 27.9502C8.5 27.1263 9.17614 26.4502 10 26.4502H28.4C29.2239 26.4502 29.9 27.1263 29.9 27.9502V34.4502C29.9 35.2741 29.2239 35.9502 28.4 35.9502H10C9.17614 35.9502 8.5 35.2741 8.5 34.4502V27.9502Z" class="fill-border"/></svg>',
export_html:'<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M37 18.6502H29.8V11.4502" class="fill-background"/><path d="M28.4 36.4502H10C8.9 36.4502 8 35.5502 8 34.4502V27.9502C8 26.8502 8.9 25.9502 10 25.9502H28.4C29.5 25.9502 30.4 26.8502 30.4 27.9502V34.4502C30.4 35.5502 29.5 36.4502 28.4 36.4502Z" class="fill-background"/><path d="M25.4 28.75C25.6209 28.75 25.8 28.9291 25.8 29.15V32.25H27.4C27.6209 32.25 27.8 32.4291 27.8 32.65C27.8 32.8709 27.6209 33.05 27.4 33.05H25.4C25.1791 33.05 25 32.8709 25 32.65V29.15C25 28.9291 25.1791 28.75 25.4 28.75Z" class="fill-border"/><path d="M20.1411 28.941C20.0475 28.7883 19.8638 28.7164 19.6914 28.7651C19.5191 28.8137 19.4 28.9709 19.4 29.15V32.65C19.4 32.8709 19.5791 33.05 19.8 33.05C20.0209 33.05 20.2 32.8709 20.2 32.65V30.5681L21.3537 32.4505C21.373 32.4838 21.3973 32.5147 21.4263 32.5418C21.4545 32.5683 21.4861 32.5902 21.5198 32.6072C21.6276 32.6614 21.7576 32.6658 21.8719 32.6113C21.9056 32.5953 21.9373 32.5744 21.9658 32.549C21.9959 32.5223 22.0213 32.4917 22.0416 32.4584L23.3 30.5079V32.65C23.3 32.8709 23.4791 33.05 23.7 33.05C23.9209 33.05 24.1 32.8709 24.1 32.65V29.15C24.1 28.9727 23.9832 28.8165 23.813 28.7663C23.6429 28.7162 23.46 28.7841 23.3639 28.9332L21.7087 31.4987L20.1411 28.941Z" class="fill-border"/><path d="M14.7 29.15C14.7 28.9291 14.5209 28.75 14.3 28.75C14.0791 28.75 13.9 28.9291 13.9 29.15V30.4502H12.1V29.15C12.1 28.9291 11.9209 28.75 11.7 28.75C11.4791 28.75 11.3 28.9291 11.3 29.15V32.65C11.3 32.8709 11.4791 33.05 11.7 33.05C11.9209 33.05 12.1 32.8709 12.1 32.65V31.2502H13.9V32.65C13.9 32.8709 14.0791 33.05 14.3 33.05C14.5209 33.05 14.7 32.8709 14.7 32.65V29.15Z" class="fill-border"/><path d="M17.4 29.55H18.3C18.5209 29.55 18.7 29.3709 18.7 29.15C18.7 28.9291 18.5209 28.75 18.3 28.75H15.7C15.4791 28.75 15.3 28.9291 15.3 29.15C15.3 29.3709 15.4791 29.55 15.7 29.55H16.6V32.65C16.6 32.8709 16.7791 33.05 17 33.05C17.2209 33.05 17.4 32.8709 17.4 32.65V29.55Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16.0001 10.9502C14.607 10.9502 13.6001 12.0913 13.6001 13.3502V25.4502H10C8.62386 25.4502 7.5 26.5741 7.5 27.9502V34.4502C7.5 35.8263 8.62386 36.9502 10 36.9502H13.6001V38.4502C13.6001 39.8433 14.7413 40.8502 16.0001 40.8502H35.0001C36.3932 40.8502 37.4001 39.709 37.4001 38.4502V18.4451L30.0093 10.9502H16.0001ZM14.6001 36.9502V38.4502C14.6001 39.2571 15.2589 39.8502 16.0001 39.8502H35.0001C35.807 39.8502 36.4001 39.1913 36.4001 38.4502V19.1502H29.8C29.5238 19.1502 29.3 18.9263 29.3 18.6502V11.9502H16.0001C15.1932 11.9502 14.6001 12.609 14.6001 13.3502V25.4502H28.4C29.7761 25.4502 30.9 26.5741 30.9 27.9502V34.4502C30.9 35.8263 29.7761 36.9502 28.4 36.9502H14.6001ZM30.3 18.1502V12.6692L35.7048 18.1502H30.3ZM8.5 27.9502C8.5 27.1263 9.17614 26.4502 10 26.4502H28.4C29.2239 26.4502 29.9 27.1263 29.9 27.9502V34.4502C29.9 35.2741 29.2239 35.9502 28.4 35.9502H10C9.17614 35.9502 8.5 35.2741 8.5 34.4502V27.9502Z" class="fill-border"/></svg>',
export_image:'<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.9 33.9512H17.5V19.8506C17.5 18.7506 18.4 17.8506 19.5 17.8506H33.5V13.3512C33.5 12.3512 32.7 11.4512 31.6 11.4512H12.9C11.9 11.4512 11 12.2512 11 13.3512V32.0512C11 33.0512 11.8 33.9512 12.9 33.9512Z" class="fill-background"/><path d="M33.5 25.6508C34.7702 25.6508 35.7999 24.621 35.7999 23.3508C35.7999 22.0805 34.7702 21.0508 33.5 21.0508C32.2297 21.0508 31.2 22.0805 31.2 23.3508C31.2 24.621 32.2297 25.6508 33.5 25.6508Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M33.5 20.5508C31.9536 20.5508 30.7 21.8044 30.7 23.3508C30.7 24.8972 31.9536 26.1508 33.5 26.1508C35.0464 26.1508 36.3 24.8972 36.3 23.3508C36.3 21.8044 35.0464 20.5508 33.5 20.5508ZM31.7 23.3508C31.7 22.3567 32.5059 21.5508 33.5 21.5508C34.4941 21.5508 35.3 22.3567 35.3 23.3508C35.3 24.3449 34.4941 25.1508 33.5 25.1508C32.5059 25.1508 31.7 24.3449 31.7 23.3508Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.9 34.4512H17V38.3506C17 39.7267 18.1239 40.8506 19.5 40.8506H38C39.3761 40.8506 40.5 39.7267 40.5 38.3506V19.8506C40.5 18.4744 39.3761 17.3506 38 17.3506H34V13.3512C34 12.0923 32.9931 10.9512 31.6 10.9512H12.9C11.6412 10.9512 10.5 11.958 10.5 13.3512V32.0512C10.5 33.31 11.5069 34.4512 12.9 34.4512ZM12.9 11.9512C12.1588 11.9512 11.5 12.5443 11.5 13.3512V32.0512C11.5 32.7923 12.0931 33.4512 12.9 33.4512H17V19.8506C17 18.4744 18.1239 17.3506 19.5 17.3506H33V13.3512C33 12.61 32.4069 11.9512 31.6 11.9512H12.9ZM19.5 18.3506C18.6761 18.3506 18 19.0267 18 19.8506V32.8735L25.7528 25.3912C25.9427 25.2079 26.2424 25.2038 26.4373 25.3818L33.4607 31.7989L36.1521 29.1917C36.3461 29.0037 36.6544 29.0038 36.8482 29.192L39.5 31.7658V19.8506C39.5 19.0267 38.8239 18.3506 38 18.3506H19.5ZM39.5 37.3169L34.2003 32.4747L36.4997 30.2472L39.5 33.1593V37.3169ZM39.4707 38.6447L26.1094 26.4368L18 34.2633V38.3506C18 39.1744 18.6761 39.8506 19.5 39.8506H38C38.7233 39.8506 39.3327 39.3294 39.4707 38.6447Z" class="fill-border"/></svg>',
export_pdf:'<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M37 18.6502H29.8V11.4502" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M30.3 18.1502V11.4502H29.3V18.6502C29.3 18.9263 29.5239 19.1502 29.8 19.1502H37V18.1502H30.3Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.6001 13.3502C13.6001 12.0913 14.607 10.9502 16.0001 10.9502H30.0093L37.4001 18.4451V38.4502C37.4001 39.709 36.3932 40.8502 35.0001 40.8502H16.0001C14.7413 40.8502 13.6001 39.8433 13.6001 38.4502V13.3502ZM16.0001 11.9502C15.1932 11.9502 14.6001 12.609 14.6001 13.3502V38.4502C14.6001 39.2571 15.2589 39.8502 16.0001 39.8502H35.0001C35.807 39.8502 36.4001 39.1913 36.4001 38.4502V18.8553L29.5909 11.9502H16.0001Z" class="fill-border"/><path d="M28.4 36.4502H10C8.9 36.4502 8 35.5502 8 34.4502V27.9502C8 26.8502 8.9 25.9502 10 25.9502H28.4C29.5 25.9502 30.4 26.8502 30.4 27.9502V34.4502C30.4 35.5502 29.5 36.4502 28.4 36.4502Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10 26.4502C9.17614 26.4502 8.5 27.1263 8.5 27.9502V34.4502C8.5 35.2741 9.17614 35.9502 10 35.9502H28.4C29.2239 35.9502 29.9 35.2741 29.9 34.4502V27.9502C29.9 27.1263 29.2239 26.4502 28.4 26.4502H10ZM7.5 27.9502C7.5 26.5741 8.62386 25.4502 10 25.4502H28.4C29.7761 25.4502 30.9 26.5741 30.9 27.9502V34.4502C30.9 35.8263 29.7761 36.9502 28.4 36.9502H10C8.62386 36.9502 7.5 35.8263 7.5 34.4502V27.9502Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M18.1 28.8502C18.3209 28.8502 18.5 29.0293 18.5 29.2502V32.6502C18.5 32.8711 18.3209 33.0502 18.1 33.0502C17.879 33.0502 17.7 32.8711 17.7 32.6502V29.2502C17.7 29.0293 17.879 28.8502 18.1 28.8502Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M22.1 29.2502C22.1 29.0293 22.2791 28.8502 22.5 28.8502H24.3C24.5209 28.8502 24.7 29.0293 24.7 29.2502C24.7 29.4711 24.5209 29.6502 24.3 29.6502H22.9V32.6502C22.9 32.8711 22.7209 33.0502 22.5 33.0502C22.2791 33.0502 22.1 32.8711 22.1 32.6502V29.2502Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3 28.8502C14.5209 28.8502 14.7 29.0293 14.7 29.2502V32.6502C14.7 32.8711 14.5209 33.0502 14.3 33.0502C14.0791 33.0502 13.9 32.8711 13.9 32.6502V29.2502C13.9 29.0293 14.0791 28.8502 14.3 28.8502Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M22.1 30.9502C22.1 30.7293 22.2791 30.5502 22.5 30.5502H24.3C24.5209 30.5502 24.7 30.7293 24.7 30.9502C24.7 31.1711 24.5209 31.3502 24.3 31.3502H22.5C22.2791 31.3502 22.1 31.1711 22.1 30.9502Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.9 29.1502C13.9 28.9293 14.0791 28.7502 14.3 28.7502H15.6C16.3097 28.7502 16.882 29.3114 16.8996 30.0166C16.9568 30.4095 16.8569 30.7768 16.6056 31.0474C16.3525 31.32 15.9871 31.4502 15.6 31.4502H14.3C14.0791 31.4502 13.9 31.2711 13.9 31.0502V29.1502ZM14.7 29.5502V30.6502H15.6C15.8129 30.6502 15.9476 30.5803 16.0194 30.503C16.0863 30.4309 16.138 30.3109 16.1055 30.1159C16.1018 30.0942 16.1 30.0722 16.1 30.0502C16.1 29.7711 15.8791 29.5502 15.6 29.5502H14.7Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M17.6 29.2502C17.6 29.0293 17.7791 28.8502 18 28.8502H19C20.1209 28.8502 21.1 29.8293 21.1 30.9502C21.1 32.0556 20.2361 33.0502 19 33.0502H18C17.7791 33.0502 17.6 32.8711 17.6 32.6502V29.2502ZM18.4 29.6502V32.2502H19C19.7638 32.2502 20.3 31.6449 20.3 30.9502C20.3 30.2711 19.6791 29.6502 19 29.6502H18.4Z" class="fill-border"/></svg>',
share:'<svg width="51" height="51" viewBox="0 0 51 51" xmlns="http://www.w3.org/2000/svg"><rect x="31.171" y="10.055" width="8.0442" height="8.0442" rx="4.0221" class="fill-background"/><rect x="10.055" y="21.116" width="8.0442" height="8.0442" rx="4.0221" class="fill-background"/><rect x="31.171" y="32.177" width="8.0442" height="8.0442" rx="4.0221" class="fill-background"/><path d="m35.194 9.5525c-2.4991 0-4.5249 2.0259-4.5249 4.5249 0 0.5791 0.1088 1.1328 0.3071 1.6418l-13.148 6.8869c-0.8133-1.2024-2.1897-1.9928-3.7506-1.9928-2.499 0-4.5249 2.0259-4.5249 4.5249s2.0259 4.5248 4.5249 4.5248c1.5609 0 2.9372-0.7903 3.7505-1.9926l13.148 6.8869c-0.1982 0.5089-0.307 1.0626-0.307 1.6417 0 2.499 2.0258 4.5248 4.5249 4.5248 2.499 0 4.5248-2.0258 4.5248-4.5248s-2.0258-4.5249-4.5248-4.5249c-1.561 0-2.9373 0.7904-3.7507 1.9928l-13.148-6.8869c0.1983-0.509 0.3071-1.0627 0.3071-1.6418s-0.1088-1.1328-0.3071-1.6417l13.148-6.8869c0.8134 1.2023 2.1897 1.9927 3.7506 1.9927 2.499 0 4.5248-2.0259 4.5248-4.5249s-2.0258-4.5249-4.5248-4.5249zm-3.5194 4.5249c0-1.9437 1.5757-3.5194 3.5194-3.5194 1.9436 0 3.5193 1.5757 3.5193 3.5194s-1.5757 3.5193-3.5193 3.5193c-1.9437 0-3.5194-1.5756-3.5194-3.5193zm-21.116 11.061c0-1.9437 1.5757-3.5194 3.5194-3.5194s3.5193 1.5757 3.5193 3.5194-1.5756 3.5193-3.5193 3.5193-3.5194-1.5756-3.5194-3.5193zm24.636 7.5414c-1.9437 0-3.5194 1.5757-3.5194 3.5194s1.5757 3.5193 3.5194 3.5193c1.9436 0 3.5193-1.5756 3.5193-3.5193s-1.5757-3.5194-3.5193-3.5194z" clip-rule="evenodd" class="fill-border" fill-rule="evenodd"/></svg>',
charts:'<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18.7001 27.0996H14.6001V39.4996H18.7001V27.0996Z" class="fill-background"/><path d="M26.9999 14.5996H22.8999V39.4996H26.9999V14.5996Z" class="fill-background"/><path d="M35.2999 22.9004H31.2V39.5004H35.2999V22.9004Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5 10C11.1239 10 10 11.1239 10 12.5V37.5C10 38.8761 11.1239 40 12.5 40H31.18C31.1866 40.0003 31.1933 40.0004 31.2 40.0004H35.2999C35.3066 40.0004 35.3133 40.0003 35.3199 40H37.5C38.8761 40 40 38.8761 40 37.5V12.5C40 11.1239 38.8761 10 37.5 10H12.5ZM35.7999 39H37.5C38.3239 39 39 38.3239 39 37.5V12.5C39 11.6761 38.3239 11 37.5 11H12.5C11.6761 11 11 11.6761 11 12.5V37.5C11 38.3239 11.6761 39 12.5 39H14.1001V27.0996C14.1001 26.8235 14.324 26.5996 14.6001 26.5996H18.7001C18.9762 26.5996 19.2001 26.8235 19.2001 27.0996V39H22.3999V14.5996C22.3999 14.3235 22.6238 14.0996 22.8999 14.0996H26.9999C27.276 14.0996 27.4999 14.3235 27.4999 14.5996V39H30.7V22.9004C30.7 22.6242 30.9238 22.4004 31.2 22.4004H35.2999C35.5761 22.4004 35.7999 22.6242 35.7999 22.9004V39ZM34.7999 39H31.7V23.4004H34.7999V39ZM15.1001 38.9996V27.5996H18.2001V38.9996H15.1001ZM23.3999 15.0996V38.9996H26.4999V15.0996H23.3999Z" class="fill-border"/></svg>',
charts_bar:'<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.5 33.9004H11V37.2004H17.5V33.9004Z" class="fill-background"/><path d="M27.1 27.6004H11V30.8004H27.1V27.6004Z" class="fill-background"/><path d="M33.5 21.0004H11V24.3004H33.5V21.0004Z" class="fill-background"/><path d="M23.8 14.6004H11V17.9004H23.8V14.6004Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.5 13.4004C10.5 12.0242 11.6239 10.9004 13 10.9004H38C39.3761 10.9004 40.5 12.0242 40.5 13.4004V38.4004C40.5 39.7765 39.3761 40.9004 38 40.9004H13C11.6239 40.9004 10.5 39.7765 10.5 38.4004V13.4004ZM13 11.9004C12.1761 11.9004 11.5 12.5765 11.5 13.4004V14.1006H23.8C24.0761 14.1006 24.3 14.3244 24.3 14.6006V17.9006C24.3 18.1767 24.0761 18.4006 23.8 18.4006H11.5V20.5H33.5C33.7761 20.5 34 20.7239 34 21V24.3C34 24.5761 33.7761 24.8 33.5 24.8H11.5V27.1006H27.1C27.3761 27.1006 27.6 27.3244 27.6 27.6006V30.8006C27.6 31.0767 27.3761 31.3006 27.1 31.3006H11.5V33.4004H17.5C17.7761 33.4004 18 33.6242 18 33.9004V37.2004C18 37.4765 17.7761 37.7004 17.5 37.7004H11.5V38.4004C11.5 39.2242 12.1761 39.9004 13 39.9004H38C38.8239 39.9004 39.5 39.2242 39.5 38.4004V13.4004C39.5 12.5765 38.8239 11.9004 38 11.9004H13ZM11.5 17.4006H23.3V15.1006H11.5V17.4006ZM11.5 23.8V21.5H33V23.8H11.5ZM11.5 30.3006H26.6V28.1006H11.5V30.3006ZM11.5 36.7004V34.4004H17V36.7004H11.5Z" class="fill-border"/></svg>',
charts_column_line:'<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.5 37.2005H14.2V40.4005H17.5V37.2005Z" class="fill-background"/><path d="M23.8001 27.6005H20.6001V40.4005H23.8001V27.6005Z" class="fill-background"/><path d="M30.4001 30.7005H27.1001V40.4005H30.4001V30.7005Z" class="fill-background"/><path d="M36.8 24.4005H33.5V40.4005H36.8V24.4005Z" class="fill-background"/><path d="M15.9 30.7005C16.7837 30.7005 17.5 29.9841 17.5 29.1005C17.5 28.2168 16.7837 27.5005 15.9 27.5005C15.0164 27.5005 14.3 28.2168 14.3 29.1005C14.3 29.9841 15.0164 30.7005 15.9 30.7005Z" class="fill-background"/><path d="M22.3 21.0005C23.1836 21.0005 23.9 20.2841 23.9 19.4005C23.9 18.5168 23.1836 17.8005 22.3 17.8005C21.4163 17.8005 20.7 18.5168 20.7 19.4005C20.7 20.2841 21.4163 21.0005 22.3 21.0005Z" class="fill-background"/><path d="M28.7999 24.3005C29.6836 24.3005 30.4 23.5841 30.4 22.7005C30.4 21.8168 29.6836 21.1005 28.7999 21.1005C27.9163 21.1005 27.2 21.8168 27.2 22.7005C27.2 23.5841 27.9163 24.3005 28.7999 24.3005Z" class="fill-background"/><path d="M35.2001 17.8005C36.0838 17.8005 36.8001 17.0841 36.8001 16.2005C36.8001 15.3168 36.0838 14.6005 35.2001 14.6005C34.3164 14.6005 33.6001 15.3168 33.6001 16.2005C33.6001 17.0841 34.3164 17.8005 35.2001 17.8005Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M17.4095 27.6411C17.7751 28.019 18 28.5337 18 29.101C18 30.2608 17.0598 31.201 15.9 31.201C14.7402 31.201 13.8 30.2608 13.8 29.101C13.8 27.9412 14.7402 27.001 15.9 27.001C16.1317 27.001 16.3546 27.0385 16.5631 27.1078L20.7712 20.8404C20.417 20.4645 20.2 19.958 20.2 19.4008C20.2 18.241 21.1402 17.3008 22.3 17.3008C23.4598 17.3008 24.4 18.241 24.4 19.4008C24.4 19.575 24.3788 19.7443 24.3388 19.9061L27.2272 21.3091C27.6119 20.8745 28.174 20.6006 28.8 20.6006C29.1725 20.6006 29.5224 20.6976 29.8258 20.8677L33.404 17.2895C33.2111 16.972 33.1 16.5992 33.1 16.2006C33.1 15.0408 34.0402 14.1006 35.2 14.1006C36.3598 14.1006 37.3 15.0408 37.3 16.2006C37.3 17.3604 36.3598 18.3006 35.2 18.3006C34.8013 18.3006 34.4286 18.1895 34.1111 17.9966L30.5573 21.5504C30.774 21.8808 30.9 22.276 30.9 22.7006C30.9 23.8604 29.9598 24.8006 28.8 24.8006C27.6402 24.8006 26.7 23.8604 26.7 22.7006C26.7 22.5261 26.7213 22.3566 26.7614 22.1946L23.8733 20.7918C23.4886 21.2266 22.9263 21.5008 22.3 21.5008C22.0583 21.5008 21.8262 21.46 21.6101 21.3848L17.4095 27.6411ZM14.8 29.101C14.8 28.4935 15.2925 28.001 15.9 28.001C16.0323 28.001 16.1592 28.0243 16.2767 28.0672C16.3128 28.1247 16.3613 28.1757 16.4213 28.2159C16.4928 28.264 16.5723 28.2911 16.6525 28.2987C16.8664 28.4993 17 28.7846 17 29.101C17 29.7085 16.5075 30.201 15.9 30.201C15.2925 30.201 14.8 29.7085 14.8 29.101ZM22.3 18.3008C21.6925 18.3008 21.2 18.7933 21.2 19.4008C21.2 20.0083 21.6925 20.5008 22.3 20.5008C22.9075 20.5008 23.4 20.0083 23.4 19.4008C23.4 18.7933 22.9075 18.3008 22.3 18.3008ZM27.7 22.7006C27.7 22.0931 28.1925 21.6006 28.8 21.6006C29.4075 21.6006 29.9 22.0931 29.9 22.7006C29.9 23.3081 29.4075 23.8006 28.8 23.8006C28.1925 23.8006 27.7 23.3081 27.7 22.7006ZM35.2 15.1006C34.5925 15.1006 34.1 15.5931 34.1 16.2006C34.1 16.8081 34.5925 17.3006 35.2 17.3006C35.8075 17.3006 36.3 16.8081 36.3 16.2006C36.3 15.5931 35.8075 15.1006 35.2 15.1006Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13 10.9004C11.6239 10.9004 10.5 12.0242 10.5 13.4004V38.4004C10.5 39.7765 11.6239 40.9004 13 40.9004H20.5859L20.6 40.9006H23.8L23.8141 40.9004H38C39.3761 40.9004 40.5 39.7765 40.5 38.4004V13.4004C40.5 12.0242 39.3761 10.9004 38 10.9004H13ZM36.3 39.9004H34V24.9004H36.3V39.9004ZM37.3 24.4004V39.9004H38C38.8239 39.9004 39.5 39.2242 39.5 38.4004V13.4004C39.5 12.5765 38.8239 11.9004 38 11.9004H13C12.1761 11.9004 11.5 12.5765 11.5 13.4004V38.4004C11.5 39.2242 12.1761 39.9004 13 39.9004H13.7V37.2002C13.7 36.9241 13.9239 36.7002 14.2 36.7002H17.5C17.7762 36.7002 18 36.9241 18 37.2002V39.9004H20.1V27.6006C20.1 27.3244 20.3239 27.1006 20.6 27.1006H23.8C24.0761 27.1006 24.3 27.3244 24.3 27.6006V39.9004H26.6V30.7002C26.6 30.4241 26.8239 30.2002 27.1 30.2002H30.4C30.6761 30.2002 30.9 30.4241 30.9 30.7002V39.9004H33V24.4004C33 24.1242 33.2239 23.9004 33.5 23.9004H36.8C37.0761 23.9004 37.3 24.1242 37.3 24.4004ZM21.1 39.9004H23.3V28.1006H21.1V39.9004ZM14.7 39.9002V37.7002H17V39.9002H14.7ZM27.6 39.9002V31.2002H29.9V39.9002H27.6Z" class="fill-border"/></svg>',
charts_stacked_column:'<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.5 30.8004H14.2V40.4004H17.5V30.8004Z" class="fill-background"/><path d="M23.8001 24.3004H20.6001V40.4004H23.8001V24.3004Z" class="fill-background"/><path d="M30.4001 17.8004H27.1001V40.4004H30.4001V17.8004Z" class="fill-background"/><path d="M36.8 27.6004H33.5V40.4004H36.8V27.6004Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13 10.9004C11.6239 10.9004 10.5 12.0242 10.5 13.4004V38.4004C10.5 39.7765 11.6239 40.9004 13 40.9004H14.1801C14.1867 40.9007 14.1933 40.9008 14.2 40.9008H17.5C17.5067 40.9008 17.5133 40.9007 17.52 40.9004H20.58C20.5867 40.9007 20.5933 40.9008 20.6 40.9008H23.8C23.8067 40.9008 23.8133 40.9007 23.82 40.9004H27.08C27.0867 40.9007 27.0933 40.9008 27.1 40.9008H30.4L30.412 40.9006L30.42 40.9004H33.4859L33.5 40.9006H36.8L36.8141 40.9004H38C39.3761 40.9004 40.5 39.7765 40.5 38.4004V13.4004C40.5 12.0242 39.3761 10.9004 38 10.9004H13ZM34 39.9004H36.3V31.2002H34V39.9004ZM33 39.9004H30.9V30.7026L30.9 30.7002L30.9 30.6978V17.8008C30.9 17.5246 30.6761 17.3008 30.4 17.3008H27.1C26.8239 17.3008 26.6 17.5246 26.6 17.8008V39.9004H24.3V24.3008C24.3 24.0246 24.0761 23.8008 23.8 23.8008H20.6C20.3239 23.8008 20.1 24.0246 20.1 24.3008V39.9004H18V30.8008C18 30.5246 17.7762 30.3008 17.5 30.3008H14.2C13.9239 30.3008 13.7 30.5246 13.7 30.8008V39.9004H13C12.1761 39.9004 11.5 39.2242 11.5 38.4004V13.4004C11.5 12.5765 12.1761 11.9004 13 11.9004H38C38.8239 11.9004 39.5 12.5765 39.5 13.4004V38.4004C39.5 39.2242 38.8239 39.9004 38 39.9004H37.3V27.6006C37.3 27.5836 37.2992 27.5668 37.2975 27.5503C37.2992 27.5338 37.3 27.517 37.3 27.5C37.3 27.2239 37.0761 27 36.8 27H33.5C33.2239 27 33 27.2239 33 27.5C33 27.517 33.0008 27.5338 33.0025 27.5503C33.0008 27.5668 33 27.5836 33 27.6006V39.9004ZM29.9 30.2002V24.8008H27.6V30.2002H29.9ZM27.6 31.2002V39.9004H29.9V31.2002H27.6ZM21.1 28.1006V39.9004H23.3V28.1006H21.1ZM23.3 27.1006H21.1V24.8008H23.3V27.1006ZM29.9 23.8008H27.6V21.5H29.9V23.8008ZM29.9 18.3008V20.5H27.6V18.3008H29.9ZM34 30.2002V28.1006H36.3V30.2002H34ZM17 39.9004H14.7V34.5H17V39.9004ZM14.7 33.5V31.3008H17V33.5H14.7Z" class="fill-border"/></svg>',
charts_line:'<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.9 34.8004C16.7837 34.8004 17.5 34.0841 17.5 33.2004C17.5 32.3167 16.7837 31.6004 15.9 31.6004C15.0164 31.6004 14.3 32.3167 14.3 33.2004C14.3 34.0841 15.0164 34.8004 15.9 34.8004Z" class="fill-background"/><path d="M22.3 25.1004C23.1836 25.1004 23.9 24.384 23.9 23.5004C23.9 22.6167 23.1836 21.9004 22.3 21.9004C21.4163 21.9004 20.7 22.6167 20.7 23.5004C20.7 24.384 21.4163 25.1004 22.3 25.1004Z" class="fill-background"/><path d="M28.7999 28.3004C29.6836 28.3004 30.4 27.5841 30.4 26.7004C30.4 25.8167 29.6836 25.1004 28.7999 25.1004C27.9163 25.1004 27.2 25.8167 27.2 26.7004C27.2 27.5841 27.9163 28.3004 28.7999 28.3004Z" class="fill-background"/><path d="M35.2001 21.9004C36.0838 21.9004 36.8001 21.184 36.8001 20.3004C36.8001 19.4167 36.0838 18.7004 35.2001 18.7004C34.3164 18.7004 33.6001 19.4167 33.6001 20.3004C33.6001 21.184 34.3164 21.9004 35.2001 21.9004Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M15.9 31.1006C14.7402 31.1006 13.8 32.0408 13.8 33.2006C13.8 34.3604 14.7402 35.3006 15.9 35.3006C17.0598 35.3006 18 34.3604 18 33.2006C18 32.6334 17.7751 32.1187 17.4097 31.7408L21.6103 25.4845C21.8263 25.5596 22.0584 25.6004 22.3 25.6004C22.9561 25.6004 23.542 25.2995 23.9271 24.8281L26.7429 26.2762C26.7148 26.4133 26.7 26.5552 26.7 26.7006C26.7 27.8604 27.6402 28.8006 28.8 28.8006C29.9598 28.8006 30.9 27.8604 30.9 26.7006C30.9 26.2995 30.7876 25.9247 30.5925 25.606L34.0513 22.0585C34.3814 22.2746 34.776 22.4002 35.2 22.4002C36.3598 22.4002 37.3 21.46 37.3 20.3002C37.3 19.1404 36.3598 18.2002 35.2 18.2002C34.0402 18.2002 33.1 19.1404 33.1 20.3002C33.1 20.6732 33.1973 21.0235 33.3678 21.3271L29.8831 24.9011C29.5669 24.7103 29.1963 24.6006 28.8 24.6006C28.1439 24.6006 27.558 24.9015 27.1729 25.3729L24.3571 23.9248C24.3852 23.7877 24.4 23.6458 24.4 23.5004C24.4 22.3406 23.4598 21.4004 22.3 21.4004C21.1402 21.4004 20.2 22.3406 20.2 23.5004C20.2 24.0577 20.4171 24.5643 20.7713 24.9402L16.5633 31.2075C16.3548 31.1381 16.1318 31.1006 15.9 31.1006ZM14.8 33.2006C14.8 32.5931 15.2925 32.1006 15.9 32.1006C16.5075 32.1006 17 32.5931 17 33.2006C17 33.8081 16.5075 34.3006 15.9 34.3006C15.2925 34.3006 14.8 33.8081 14.8 33.2006ZM22.3 22.4004C21.6925 22.4004 21.2 22.8929 21.2 23.5004C21.2 24.1079 21.6925 24.6004 22.3 24.6004C22.9075 24.6004 23.4 24.1079 23.4 23.5004C23.4 22.8929 22.9075 22.4004 22.3 22.4004ZM27.7 26.7006C27.7 26.0931 28.1925 25.6006 28.8 25.6006C29.4075 25.6006 29.9 26.0931 29.9 26.7006C29.9 27.3081 29.4075 27.8006 28.8 27.8006C28.1925 27.8006 27.7 27.3081 27.7 26.7006ZM35.2 19.2002C34.5925 19.2002 34.1 19.6927 34.1 20.3002C34.1 20.9077 34.5925 21.4002 35.2 21.4002C35.8075 21.4002 36.3 20.9077 36.3 20.3002C36.3 19.6927 35.8075 19.2002 35.2 19.2002Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13 10.9004C11.6239 10.9004 10.5 12.0242 10.5 13.4004V38.4004C10.5 39.7765 11.6239 40.9004 13 40.9004H38C39.3761 40.9004 40.5 39.7765 40.5 38.4004V13.4004C40.5 12.0242 39.3761 10.9004 38 10.9004H13ZM11.5 13.4004C11.5 12.5765 12.1761 11.9004 13 11.9004H38C38.8239 11.9004 39.5 12.5765 39.5 13.4004V38.4004C39.5 39.2242 38.8239 39.9004 38 39.9004H13C12.1761 39.9004 11.5 39.2242 11.5 38.4004V13.4004Z" class="fill-border"/></svg>',
charts_pie:'<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M25.5 16.7004V25.9004L18 31.3004C19.7 33.6004 22.4 35.1004 25.5 35.1004C30.6 35.1004 34.7 31.0004 34.7 25.9004C34.7 20.9004 30.6 16.7004 25.5 16.7004Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M15.8 25.9002C15.8 20.543 20.1428 16.2002 25.5 16.2002C30.8572 16.2002 35.2 20.543 35.2 25.9002C35.2 31.2574 30.8572 35.6002 25.5 35.6002C20.1428 35.6002 15.8 31.2574 15.8 25.9002ZM25 17.2143C22.9265 17.3318 21.0472 18.1754 19.6124 19.4949L25 24.7192V17.2143ZM26 17.2143V25.9002C26 26.0733 25.9121 26.2258 25.7784 26.3156L18.7431 31.381C20.3382 33.3451 22.7725 34.6002 25.5 34.6002C30.3049 34.6002 34.2 30.7051 34.2 25.9002C34.2 21.2631 30.5722 17.4734 26 17.2143ZM16.8 25.9002C16.8 23.7259 17.5976 21.7379 18.9162 20.2128L24.7228 25.8434L18.1581 30.5699C17.2982 29.2208 16.8 27.6187 16.8 25.9002Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.5 13.4004C10.5 12.0242 11.6239 10.9004 13 10.9004H38C39.3761 10.9004 40.5 12.0242 40.5 13.4004V38.4004C40.5 39.7765 39.3761 40.9004 38 40.9004H13C11.6239 40.9004 10.5 39.7765 10.5 38.4004V13.4004ZM13 11.9004C12.1761 11.9004 11.5 12.5765 11.5 13.4004V38.4004C11.5 39.2242 12.1761 39.9004 13 39.9004H38C38.8239 39.9004 39.5 39.2242 39.5 38.4004V13.4004C39.5 12.5765 38.8239 11.9004 38 11.9004H13Z" class="fill-border"/></svg>',
charts_scatter:'<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.9 34.0004C16.7837 34.0004 17.5 33.2841 17.5 32.4004C17.5 31.5168 16.7837 30.8004 15.9 30.8004C15.0164 30.8004 14.3 31.5168 14.3 32.4004C14.3 33.2841 15.0164 34.0004 15.9 34.0004Z" class="fill-background"/><path d="M22.3 24.3004C23.1836 24.3004 23.9 23.5841 23.9 22.7004C23.9 21.8167 23.1836 21.1004 22.3 21.1004C21.4163 21.1004 20.7 21.8167 20.7 22.7004C20.7 23.5841 21.4163 24.3004 22.3 24.3004Z" class="fill-background"/><path d="M28.7999 27.5004C29.6836 27.5004 30.4 26.7841 30.4 25.9004C30.4 25.0168 29.6836 24.3004 28.7999 24.3004C27.9163 24.3004 27.2 25.0168 27.2 25.9004C27.2 26.7841 27.9163 27.5004 28.7999 27.5004Z" class="fill-background"/><path d="M35.2001 21.1004C36.0838 21.1004 36.8001 20.384 36.8001 19.5004C36.8001 18.6167 36.0838 17.9004 35.2001 17.9004C34.3164 17.9004 33.6001 18.6167 33.6001 19.5004C33.6001 20.384 34.3164 21.1004 35.2001 21.1004Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.8 32.4008C13.8 31.241 14.7402 30.3008 15.9 30.3008C17.0598 30.3008 18 31.241 18 32.4008C18 33.5606 17.0598 34.5008 15.9 34.5008C14.7402 34.5008 13.8 33.5606 13.8 32.4008ZM15.9 31.3008C15.2925 31.3008 14.8 31.7933 14.8 32.4008C14.8 33.0083 15.2925 33.5008 15.9 33.5008C16.5075 33.5008 17 33.0083 17 32.4008C17 31.7933 16.5075 31.3008 15.9 31.3008Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M22.3 20.6006C21.1402 20.6006 20.2 21.5408 20.2 22.7006C20.2 23.8604 21.1402 24.8006 22.3 24.8006C23.4598 24.8006 24.4 23.8604 24.4 22.7006C24.4 21.5408 23.4598 20.6006 22.3 20.6006ZM21.2 22.7006C21.2 22.0931 21.6925 21.6006 22.3 21.6006C22.9075 21.6006 23.4 22.0931 23.4 22.7006C23.4 23.3081 22.9075 23.8006 22.3 23.8006C21.6925 23.8006 21.2 23.3081 21.2 22.7006Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M26.7 25.9008C26.7 24.741 27.6402 23.8008 28.8 23.8008C29.9598 23.8008 30.9 24.741 30.9 25.9008C30.9 27.0606 29.9598 28.0008 28.8 28.0008C27.6402 28.0008 26.7 27.0606 26.7 25.9008ZM28.8 24.8008C28.1925 24.8008 27.7 25.2933 27.7 25.9008C27.7 26.5083 28.1925 27.0008 28.8 27.0008C29.4075 27.0008 29.9 26.5083 29.9 25.9008C29.9 25.2933 29.4075 24.8008 28.8 24.8008Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M35.2 17.4004C34.0402 17.4004 33.1 18.3406 33.1 19.5004C33.1 20.6602 34.0402 21.6004 35.2 21.6004C36.3598 21.6004 37.3 20.6602 37.3 19.5004C37.3 18.3406 36.3598 17.4004 35.2 17.4004ZM34.1 19.5004C34.1 18.8929 34.5925 18.4004 35.2 18.4004C35.8075 18.4004 36.3 18.8929 36.3 19.5004C36.3 20.1079 35.8075 20.6004 35.2 20.6004C34.5925 20.6004 34.1 20.1079 34.1 19.5004Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.5 13.4004C10.5 12.0242 11.6239 10.9004 13 10.9004H38C39.3761 10.9004 40.5 12.0242 40.5 13.4004V38.4004C40.5 39.7765 39.3761 40.9004 38 40.9004H13C11.6239 40.9004 10.5 39.7765 10.5 38.4004V13.4004ZM13 11.9004C12.1761 11.9004 11.5 12.5765 11.5 13.4004V38.4004C11.5 39.2242 12.1761 39.9004 13 39.9004H38C38.8239 39.9004 39.5 39.2242 39.5 38.4004V13.4004C39.5 12.5765 38.8239 11.9004 38 11.9004H13Z" class="fill-border"/></svg>',
format:'<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.9126 23.5371H26.5126V28.04L22.0125 23.6377L20.8125 29.3377L26.5126 28.1584V31.5371H10.9126V23.5371Z" class="fill-background"/><path d="M22.0125 23.6375L24.4037 26.0787L26.5125 28.1375L38.5125 16.1375C39.8125 14.8375 39.8125 12.8375 38.5125 11.5375C37.2125 10.2375 35.2125 10.2375 33.9125 11.5375L22.0125 23.6375Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M33.559 11.1839C35.0542 9.68868 37.3708 9.68868 38.8661 11.1839C40.3613 12.6792 40.3613 14.9958 38.8661 16.4911L34.9125 20.4447V37.317C35.0262 38.8372 33.7568 39.9367 32.4125 39.9367H12.6125C11.1363 39.9367 10.0125 38.8129 10.0125 37.3367V17.7367C10.0125 16.2606 11.1363 15.1367 12.6125 15.1367H29.6715L33.556 11.1869L33.559 11.1839ZM28.688 16.1367H12.6125C11.6886 16.1367 11.0125 16.8129 11.0125 17.7367V23.0367H21.9021L28.688 16.1367ZM21.4175 24.0367H19.0125V31.2373H26.0125V28.7537L20.9155 29.8268C20.7502 29.8616 20.5784 29.8105 20.459 29.6911C20.3395 29.5716 20.2884 29.3998 20.3232 29.2345L21.4175 24.0367ZM27.0125 28.3447V31.2373H33.9125V24.0367H31.3204L27.0125 28.3447ZM32.3204 23.0367H33.9125V21.4447L32.3204 23.0367ZM34.2675 11.8897L22.7204 23.6307L26.558 27.3849L38.159 15.7839C39.2637 14.6792 39.2637 12.9958 38.159 11.8911C37.0547 10.7868 35.3722 10.7863 34.2675 11.8897ZM21.4597 28.6903L22.3141 24.6321L25.5765 27.8236L21.4597 28.6903ZM26.0125 32.2373V38.9367H19.0125V32.2373H26.0125ZM27.0125 38.9367V32.2373H33.9125V37.3367C33.9125 37.3506 33.913 37.3644 33.9142 37.3782C33.9866 38.2467 33.2616 38.9367 32.4125 38.9367H27.0125ZM18.0125 31.2373V24.0367H11.0125V31.2373H18.0125ZM11.0125 32.2373H18.0125V38.9367H12.6125C11.6886 38.9367 11.0125 38.2606 11.0125 37.3367V32.2373Z" class="fill-border"/></svg>',
format_number:'<svg width="50" height="51" viewBox="0 0 50 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M29.6001 11.4005H37.5001C38.6001 11.4005 39.5001 12.3005 39.5001 13.4005V38.3005C39.5001 39.4005 38.6001 40.3005 37.5001 40.3005H29.6001V11.4005Z" class="fill-background"/><path d="M16.9 22.6008C16.9 21.994 17.2189 21.4325 17.8066 21.0051C18.3972 20.5756 19.2407 20.3008 20.2 20.3008C21.1501 20.3008 21.9936 20.5955 22.5887 21.0392C23.1866 21.4849 23.5 22.0498 23.5 22.6008C23.5 22.8769 23.7239 23.1008 24 23.1008C24.2761 23.1008 24.5 22.8769 24.5 22.6008C24.5 21.6518 23.9634 20.8167 23.1863 20.2374C22.521 19.7414 21.6542 19.41 20.7 19.3234V17.1006C20.7 16.8244 20.4761 16.6006 20.2 16.6006C19.9239 16.6006 19.7 16.8244 19.7 17.1006V19.3219C18.7527 19.4023 17.8867 19.7104 17.2184 20.1964C16.431 20.769 15.9 21.6075 15.9 22.6008C15.9 23.6826 16.2794 24.5368 17.0539 25.1442C17.7968 25.7269 18.8528 26.042 20.1334 26.1964C21.4344 26.3899 22.2766 26.7428 22.7871 27.1804C23.2773 27.6006 23.5 28.1309 23.5 28.8008C23.5 29.3518 23.1866 29.9167 22.5887 30.3624C21.9936 30.806 21.1501 31.1008 20.2 31.1008C19.2407 31.1008 18.3972 30.826 17.8066 30.3964C17.2189 29.969 16.9 29.4075 16.9 28.8008C16.9 28.5246 16.6761 28.3008 16.4 28.3008C16.1239 28.3008 15.9 28.5246 15.9 28.8008C15.9 29.794 16.431 30.6325 17.2184 31.2052C17.8867 31.6912 18.7527 31.9992 19.7 32.0797V34.4002C19.7 34.6763 19.9239 34.9002 20.2 34.9002C20.4761 34.9002 20.7 34.6763 20.7 34.4002V32.0782C21.6542 31.9916 22.521 31.6602 23.1863 31.1642C23.9634 30.5849 24.5 29.7498 24.5 28.8008C24.5 27.8707 24.1727 27.051 23.4379 26.4212C22.7243 25.8095 21.6685 25.4129 20.2733 25.2062L20.2596 25.2043C19.0433 25.0584 18.2018 24.7736 17.6711 24.3574C17.1706 23.9648 16.9 23.419 16.9 22.6008Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.6 10.9004C11.1239 10.9004 10 12.0242 10 13.5004V38.3004C10 39.7765 11.1239 40.9004 12.6 40.9004H37.4C38.8761 40.9004 40 39.7765 40 38.3004V13.5004C40 12.0242 38.8761 10.9004 37.4 10.9004H12.6ZM11 13.5004C11 12.5765 11.6761 11.9004 12.6 11.9004H29.3V39.9004H12.6C11.6761 39.9004 11 39.2242 11 38.3004V13.5004ZM30.3 18.2002V11.9004H37.4C38.3239 11.9004 39 12.5765 39 13.5004V18.2002H30.3ZM30.3 25.4004V19.2002H39V25.4004H30.3ZM30.3 32.6006V26.4004H39V32.6006H30.3ZM30.3 39.9004V33.6006H39V38.3004C39 39.2242 38.3239 39.9004 37.4 39.9004H30.3Z" class="fill-border"/></svg>',
format_conditional:'<svg width="50" height="51" viewBox="0 0 50 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.2 40.4004H12.6C11.4 40.4004 10.5 39.5004 10.5 38.3004V13.5004C10.5 12.3004 11.4 11.4004 12.6 11.4004H37.4C38.6 11.4004 39.5 12.3004 39.5 13.5004L39.5 18.6006H20.2V40.4004Z" class="fill-background"/><path d="M28.8721 23.9195C29.1038 23.7693 29.1698 23.4596 29.0195 23.228C28.8692 22.9963 28.5596 22.9303 28.3279 23.0806L24.6279 25.4806C24.4858 25.5728 24.4 25.7307 24.4 25.9001C24.4 26.0695 24.4858 26.2274 24.6279 26.3195L28.3279 28.7195C28.5596 28.8698 28.8692 28.8038 29.0195 28.5722C29.1698 28.3405 29.1038 28.0309 28.8721 27.8806L25.8188 25.9001L28.8721 23.9195Z" class="fill-border"/><path d="M30.5773 30.4333C30.7247 30.1998 31.0335 30.1301 31.267 30.2775L35.067 32.6775C35.2107 32.7682 35.2984 32.9257 35.3 33.0956C35.3016 33.2655 35.2168 33.4246 35.0748 33.518L31.2748 36.018C31.0441 36.1697 30.7341 36.1058 30.5823 35.8751C30.4305 35.6444 30.4945 35.3343 30.7252 35.1826L33.8772 33.1088L30.733 31.123C30.4995 30.9755 30.4298 30.6667 30.5773 30.4333Z" class="fill-border"/><path d="M24.9 31.7002C24.6239 31.7002 24.4 31.9241 24.4 32.2002C24.4 32.4763 24.6239 32.7002 24.9 32.7002H28.6C28.8761 32.7002 29.1 32.4763 29.1 32.2002C29.1 31.9241 28.8761 31.7002 28.6 31.7002H24.9Z" class="fill-border"/><path d="M24.4 34.1006C24.4 33.8244 24.6239 33.6006 24.9 33.6006H28.6C28.8761 33.6006 29.1 33.8244 29.1 34.1006C29.1 34.3767 28.8761 34.6006 28.6 34.6006H24.9C24.6239 34.6006 24.4 34.3767 24.4 34.1006Z" class="fill-border"/><path d="M31 24.5C30.7239 24.5 30.5 24.7239 30.5 25C30.5 25.2761 30.7239 25.5 31 25.5H32.4629L32.1277 26.3008H31C30.7239 26.3008 30.5 26.5246 30.5 26.8008C30.5 27.0769 30.7239 27.3008 31 27.3008H31.7091L31.5388 27.7076C31.4321 27.9624 31.5522 28.2553 31.8069 28.3619C32.0617 28.4686 32.3546 28.3485 32.4612 28.0938L32.7932 27.3008H34.8C35.0761 27.3008 35.3 27.0769 35.3 26.8008C35.3 26.5246 35.0761 26.3008 34.8 26.3008H33.2118L33.547 25.5H34.8C35.0761 25.5 35.3 25.2761 35.3 25C35.3 24.7239 35.0761 24.5 34.8 24.5H33.9656L34.2612 23.7938C34.3678 23.5391 34.2478 23.2461 33.9931 23.1395C33.7383 23.0329 33.4454 23.1529 33.3388 23.4076L32.8815 24.5H31Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10 13.5004C10 12.0242 11.1239 10.9004 12.6 10.9004H37.4C38.8761 10.9004 40 12.0242 40 13.5004V38.3004C40 39.7765 38.8761 40.9004 37.4 40.9004H12.6C11.1239 40.9004 10 39.7765 10 38.3004V13.5004ZM12.6 11.9004C11.6761 11.9004 11 12.5765 11 13.5004V18.1006H19.7V11.9004H12.6ZM20.7 11.9004V18.1006H29.3V11.9004H20.7ZM39 18.1006H30.3V11.9004H37.4C38.3239 11.9004 39 12.5765 39 13.5004V18.1006ZM19.7 19.1006H11V25.4004H19.7V19.1006ZM19.7 26.4004H11V32.6006H19.7V26.4004ZM19.7 33.6006H11V38.3004C11 39.2242 11.6761 39.9004 12.6 39.9004H19.7V33.6006ZM20.7 39.9004V19.1006H39V38.3004C39 39.2242 38.3239 39.9004 37.4 39.9004H20.7Z" class="fill-border"/></svg>',
options:'<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M39 28.75C37.2 28.55 35.6 26.95 35.6 24.85C35.6 23.05 37.2 21.45 39 21.25C38.3 18.95 37.2 16.75 35.4 14.85C34.3 16.25 32 16.65 30.4 15.75C28.6 14.85 28.1 12.75 28.8 10.95C26.3 10.25 23.8 10.25 21.3 10.95C22 12.75 21.3 14.85 19.7 15.75C17.9 16.65 15.8 16.25 14.7 14.85C13.8 15.75 13.1 16.65 12.4 17.85C11.7 19.05 11.3 20.15 11 21.25C12.8 21.45 14.4 23.05 14.4 25.15C14.4 26.95 12.8 28.55 11 28.75C11.7 31.05 12.8 33.25 14.6 35.15C15.7 33.75 18 33.35 19.6 34.25C21.4 35.15 21.9 37.25 21.2 39.05C23.7 39.75 26.2 39.75 28.7 39.05C28 37.25 28.7 35.15 30.3 34.25C32.1 33.35 34.2 33.75 35.3 35.15C36.2 34.25 36.9 33.35 37.6 32.15C38.3 31.05 38.7 29.95 39 28.75ZM22.2 28.95C19.9 27.55 19 24.65 20.4 22.35C21.8 20.05 24.7 19.35 27.2 20.55C29.5 21.95 30.4 24.85 29 27.15C27.6 29.65 24.4 30.35 22.2 28.95Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M21.1652 10.4685C23.7534 9.74382 26.3466 9.74382 28.9348 10.4685C29.0707 10.5066 29.1842 10.6002 29.2473 10.7265C29.3103 10.8527 29.3171 10.9997 29.266 11.1312C28.6349 12.7541 29.1108 14.5464 30.6236 15.3028C30.6309 15.3064 30.6381 15.3102 30.6451 15.3142C31.3307 15.6998 32.1854 15.8153 32.9998 15.6702C33.8149 15.5251 34.5463 15.1273 35.0068 14.5411C35.0966 14.4268 35.2317 14.3572 35.3769 14.3505C35.5221 14.3438 35.663 14.4006 35.763 14.5061C37.6282 16.4749 38.7614 18.7488 39.4783 21.1044C39.5216 21.2467 39.4994 21.4008 39.4176 21.525C39.3358 21.6492 39.203 21.7305 39.0552 21.7469C37.476 21.9224 36.1 23.3361 36.1 24.85C36.1 26.6883 37.5015 28.0804 39.0552 28.253C39.1986 28.269 39.3281 28.3461 39.4105 28.4645C39.4929 28.583 39.5201 28.7313 39.4851 28.8713C39.1772 30.1026 38.7611 31.2543 38.027 32.4102C37.3073 33.6426 36.5823 34.5748 35.6536 35.5035C35.5524 35.6046 35.4129 35.6576 35.2702 35.6491C35.1274 35.6406 34.9952 35.5713 34.9068 35.4589C33.9761 34.2743 32.1507 33.8896 30.5346 34.6917C29.1756 35.4637 28.5507 37.2865 29.166 38.8688C29.2171 39.0003 29.2103 39.1473 29.1473 39.2735C29.0842 39.3997 28.9707 39.4934 28.8348 39.5315C26.2466 40.2562 23.6534 40.2562 21.0652 39.5315C20.9293 39.4934 20.8158 39.3997 20.7527 39.2735C20.6897 39.1473 20.6829 39.0003 20.734 38.8688C21.3651 37.2459 20.8892 35.4536 19.3764 34.6972C19.3734 34.6957 19.3703 34.6941 19.3673 34.6926C19.3631 34.6904 19.359 34.6881 19.3549 34.6858C18.6693 34.3001 17.8146 34.1847 17.0002 34.3297C16.1851 34.4749 15.4537 34.8727 14.9932 35.4589C14.9034 35.5732 14.7683 35.6427 14.6231 35.6495C14.4779 35.6562 14.337 35.5994 14.237 35.4939C12.3718 33.5251 11.2386 31.2512 10.5217 28.8956C10.4784 28.7533 10.5006 28.5992 10.5824 28.475C10.6642 28.3508 10.797 28.2695 10.9448 28.253C12.524 28.0776 13.9 26.6639 13.9 25.15C13.9 23.3117 12.4985 21.9196 10.9448 21.7469C10.7995 21.7308 10.6686 21.6519 10.5865 21.531C10.5043 21.4102 10.4792 21.2594 10.5176 21.1184C10.826 19.9878 11.2408 18.8449 11.9681 17.5981C12.6894 16.3616 13.4156 15.4273 14.3464 14.4964C14.4476 14.3953 14.5871 14.3423 14.7298 14.3509C14.8726 14.3594 15.0048 14.4286 15.0932 14.5411C16.0239 15.7256 17.8493 16.1104 19.4654 15.3083C20.8244 14.5363 21.4493 12.7135 20.834 11.1312C20.7829 10.9997 20.7897 10.8527 20.8527 10.7265C20.9158 10.6002 21.0293 10.5066 21.1652 10.4685ZM21.9353 11.301C22.4071 13.1847 21.6194 15.244 19.9451 16.1858C19.9381 16.1898 19.9309 16.1936 19.9236 16.1972C18.1275 17.0952 16.0133 16.8371 14.6898 15.5796C13.9903 16.3281 13.4129 17.1059 12.8319 18.1019C12.2686 19.0676 11.9069 19.9659 11.6329 20.8604C13.4284 21.3305 14.9 23.0137 14.9 25.15C14.9 27.0295 13.4193 28.6657 11.6481 29.1355C12.2818 31.0261 13.2088 32.8211 14.6038 34.4121C15.2148 33.8485 16.0063 33.491 16.8248 33.3452C17.8315 33.166 18.9222 33.2988 19.8344 33.8082C21.7292 34.7624 22.3295 36.8439 21.8389 38.6998C23.9153 39.2003 25.9883 39.2 28.0646 38.699C27.5929 36.8152 28.3806 34.7559 30.0549 33.8142C30.0597 33.8115 30.0646 33.8089 30.0695 33.8063C30.0718 33.8051 30.0741 33.8039 30.0764 33.8028C31.8725 32.9047 33.9867 33.1628 35.3102 34.4204C36.0097 33.6719 36.5871 32.8941 37.1681 31.8981C37.1706 31.8938 37.1731 31.8897 37.1757 31.8855C37.1765 31.8842 37.1773 31.8829 37.1782 31.8815C37.7421 30.9954 38.1032 30.1061 38.3779 29.1424C36.5775 28.6762 35.1 26.9906 35.1 24.85C35.1 22.9704 36.5807 21.3342 38.3519 20.8644C37.7183 18.9739 36.7912 17.1789 35.3962 15.5879C34.7852 16.1514 33.9937 16.509 33.1752 16.6547C32.1685 16.834 31.0778 16.7012 30.1655 16.1917C28.2708 15.2376 27.6705 13.156 28.1611 11.3001C26.0848 10.7997 24.0117 10.7999 21.9353 11.301ZM26.9612 20.99C24.6685 19.902 22.0729 20.5632 20.8271 22.61C19.5891 24.6438 20.3644 27.2473 22.46 28.5229L22.4685 28.5281L22.4684 28.5282C24.4276 29.7749 27.3049 29.1536 28.5637 26.9057C28.5667 26.9004 28.5698 26.8952 28.5729 26.89C29.8067 24.863 29.0408 22.2702 26.9612 20.99ZM19.9729 22.09C21.523 19.5434 24.7145 18.8023 27.4164 20.0992C27.4313 20.1064 27.4458 20.1143 27.46 20.1229C29.9619 21.6458 30.987 24.8374 29.4318 27.4022C27.8892 30.1463 24.3741 30.9227 21.9358 29.3745C19.4344 27.849 18.4118 24.6547 19.9729 22.09Z" class="fill-border"/></svg>',
fields:'<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M34.2 18.4002H10.5V12.6002C10.5 11.4002 11.4 10.5002 12.6 10.5002H32.1C33.3 10.5002 34.2 11.4002 34.2 12.6002V18.4002V18.4002Z" class="fill-background"/><path d="M39.5 33.1998C38.4 33.0998 37.5 32.0998 37.5 30.9998C37.5 29.8998 38.4 28.9998 39.5 28.8998C39.1 27.5998 38.4 26.2998 37.4 25.1998C36.7 25.9998 35.4 26.2998 34.5 25.6998C33.4 25.1998 33.2 23.9998 33.6 22.8998C32.1 22.4998 30.7 22.4998 29.2 22.8998C29.6 23.9998 29.2 25.0998 28.3 25.6998C27.2 26.1998 26 25.9998 25.4 25.1998C24.9 25.6998 24.5 26.2998 24.1 26.8998C23.7 27.5998 23.4 28.1998 23.3 28.8998C24.4 28.9998 25.3 29.9998 25.3 31.0998C25.3 32.1998 24.4 33.0998 23.3 33.1998C23.7 34.4998 24.4 35.7998 25.4 36.8998C26.1 36.0998 27.4 35.7998 28.3 36.3998C29.4 36.8998 29.6 38.0998 29.2 39.1998C30.7 39.5998 32.1 39.5998 33.6 39.1998C33.2 38.0998 33.6 36.9998 34.5 36.3998C35.6 35.8998 36.8 36.0998 37.4 36.8998C37.9 36.3998 38.3 35.7998 38.7 35.1998C39.1 34.5998 39.2 33.8998 39.5 33.1998ZM29.7 33.3998C28.4 32.5998 27.8 30.8998 28.6 29.5998C29.4 28.2998 31.1 27.8998 32.6 28.4998C33.9 29.2998 34.5 30.9998 33.7 32.2998C32.9 33.7998 31 34.1998 29.7 33.3998Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10 12.6V32C10 33.4761 11.1239 34.6 12.6 34.6H23.299C23.7242 35.5321 24.3009 36.4338 25.0301 37.2359C25.126 37.3414 25.2623 37.4009 25.4048 37.3996C25.5473 37.3982 25.6825 37.3361 25.7763 37.2289C26.345 36.579 27.3716 36.3816 28.0227 36.8156C28.0451 36.8306 28.0687 36.8437 28.0931 36.8548C28.5015 37.0404 28.7303 37.3431 28.8304 37.7072C28.9346 38.0858 28.9032 38.553 28.7302 39.0287C28.6822 39.1606 28.6919 39.3064 28.7567 39.4308C28.8216 39.5552 28.9357 39.6466 29.0712 39.6827C30.6556 40.1052 32.1445 40.1052 33.7289 39.6827C33.8644 39.6466 33.9785 39.5552 34.0434 39.4308C34.1082 39.3064 34.1179 39.1606 34.0699 39.0287C33.7551 38.1628 34.0562 37.3168 34.7444 36.8381C35.6838 36.4275 36.5859 36.6474 37.0001 37.1996C37.087 37.3156 37.22 37.3881 37.3646 37.3984C37.5092 37.4086 37.6511 37.3557 37.7536 37.2532C38.2888 36.718 38.7119 36.0833 39.1032 35.4963L39.1161 35.477C39.3542 35.1198 39.4959 34.7431 39.6119 34.3952C39.6436 34.3 39.673 34.2085 39.7017 34.1194C39.7824 33.8681 39.8569 33.6362 39.9596 33.3966C40.0227 33.2495 40.0115 33.081 39.9295 32.9436C39.8476 32.8061 39.7047 32.7162 39.5453 32.7017C38.7063 32.6254 38.0001 31.8445 38.0001 30.9996C38.0001 30.1834 38.6769 29.4765 39.5453 29.3976C39.6954 29.3839 39.8313 29.3033 39.9153 29.1781C39.9992 29.053 40.0223 28.8966 39.9779 28.7526C39.5579 27.3874 38.8229 26.0215 37.77 24.8633C37.6741 24.7578 37.5378 24.6983 37.3953 24.6996C37.2528 24.701 37.1176 24.7631 37.0238 24.8704C36.4551 25.5202 35.4285 25.7176 34.7774 25.2836C34.755 25.2687 34.7315 25.2556 34.707 25.2444C34.7046 25.2434 34.7023 25.2423 34.7 25.2412V12.6C34.7 11.1239 33.5761 10 32.1 10H12.6C11.1239 10 10 11.1239 10 12.6ZM33.7 22.4088V18.9H26.8V25.4528C27.1789 25.508 27.6132 25.4545 28.0557 25.2611C28.7439 24.7824 29.045 23.9364 28.7302 23.0705C28.6822 22.9387 28.6919 22.7928 28.7567 22.6684C28.8216 22.544 28.9357 22.4526 29.0712 22.4165C30.646 21.9966 32.1264 21.994 33.7 22.4088ZM25.8 24.8996V18.9H18.9V25.9004H24.176C24.4367 25.5342 24.7209 25.1717 25.0465 24.8461C25.149 24.7436 25.2909 24.6906 25.4355 24.7009C25.5801 24.7111 25.713 24.7836 25.8 24.8996ZM23.5258 26.9004H18.9V33.6H22.9037C22.8753 33.5156 22.8482 33.4311 22.8222 33.3467C22.7778 33.2026 22.8009 33.0463 22.8848 32.9211C22.9688 32.7959 23.1047 32.7153 23.2548 32.7017C24.1232 32.6227 24.8001 31.9158 24.8001 31.0996C24.8001 30.2548 24.0938 29.4738 23.2548 29.3976C23.1183 29.3851 22.9929 29.3173 22.9079 29.2098C22.8229 29.1023 22.7857 28.9646 22.8051 28.8289C22.906 28.1227 23.1846 27.5178 23.5258 26.9004ZM12.6 11C11.6761 11 11 11.6761 11 12.6V17.9H33.7V12.6C33.7 11.6761 33.0239 11 32.1 11H12.6ZM17.9 25.9004V18.9H11V25.9004H17.9ZM11 26.9004H17.9V33.6H12.6C11.6761 33.6 11 32.9239 11 32V26.9004ZM28.5774 26.1156C29.5177 25.4888 30.0071 24.4028 29.8133 23.2675C30.8842 23.0442 31.9076 23.0436 32.9782 23.2657C32.8835 23.7315 32.8825 24.2103 33.0054 24.6572C33.1772 25.2818 33.5867 25.821 34.2568 26.1379C35.2293 26.7624 36.4935 26.5657 37.357 25.9167C38.0085 26.7202 38.5052 27.6166 38.8457 28.5282C37.7977 28.8736 37.0001 29.8334 37.0001 30.9996C37.0001 32.1403 37.775 33.1845 38.8319 33.5603C38.799 33.6588 38.7681 33.755 38.7386 33.847C38.7126 33.9279 38.6877 34.0056 38.6632 34.079C38.5542 34.4062 38.4459 34.6794 38.284 34.9223C37.9831 35.3737 37.6996 35.7973 37.3855 36.1735C36.562 35.5206 35.3451 35.4663 34.2931 35.9444C34.2687 35.9556 34.2451 35.9687 34.2227 35.9836C33.2824 36.6104 32.793 37.6964 32.9868 38.8317C31.9159 39.055 30.8925 39.0556 29.8219 38.8335C29.9166 38.3677 29.9176 37.889 29.7947 37.442C29.6229 36.8174 29.2134 36.2782 28.5433 35.9613C27.5708 35.3368 26.3066 35.5335 25.4431 36.1825C24.7916 35.379 24.2949 34.4826 23.9544 33.571C25.0024 33.2256 25.8001 32.2659 25.8001 31.0996C25.8001 29.933 24.9894 28.8672 23.8956 28.5143C24.022 28.0896 24.2363 27.6699 24.5257 27.1626C24.8231 26.7165 25.1039 26.2979 25.4146 25.9258C26.2381 26.5786 27.4551 26.6329 28.507 26.1548C28.5315 26.1437 28.555 26.1306 28.5774 26.1156ZM29.0259 29.8617C29.6646 28.8238 31.0596 28.4412 32.374 28.948C33.4669 29.6448 33.8912 31.0349 33.2742 32.0376C33.2688 32.0463 33.2637 32.0552 33.2589 32.0643C32.6016 33.2966 31.0296 33.6307 29.9621 32.9738C28.8425 32.2848 28.4021 30.8752 29.0259 29.8617ZM32.7857 28.0354C31.1118 27.3658 29.129 27.7861 28.1742 29.3376C27.198 30.924 27.9576 32.9144 29.438 33.8254C30.9665 34.7661 33.1871 34.305 34.134 32.5484C35.0979 30.9642 34.3384 28.9823 32.8621 28.0738C32.8378 28.0588 32.8122 28.046 32.7857 28.0354Z" class="fill-border"/></svg>',
fullscreen:'<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M29.9 20.2002H20.2V29.9002H29.9V20.2002Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M18.7 10H10.5C10.2239 10 10 10.2239 10 10.5V18.7C10 18.9022 10.1218 19.0845 10.3087 19.1619C10.4955 19.2393 10.7106 19.1966 10.8536 19.0536L14.6002 15.3069L19.7 20.4066V29.5929L14.6001 34.6928L10.8536 30.9463C10.7106 30.8033 10.4955 30.7605 10.3087 30.8379C10.1218 30.9153 10 31.0976 10 31.2998V39.4998C10 39.776 10.2239 39.9998 10.5 39.9998H18.7C18.9022 39.9998 19.0845 39.878 19.1619 39.6912C19.2393 39.5043 19.1966 39.2893 19.0536 39.1463L15.3072 35.3999L20.3069 30.4002H29.6933L34.6929 35.3998L30.9465 39.1463C30.8035 39.2893 30.7607 39.5043 30.8381 39.6912C30.9155 39.878 31.0978 39.9998 31.3001 39.9998H39.5001C39.7762 39.9998 40.0001 39.776 40.0001 39.4998V31.2998C40.0001 31.0976 39.8782 30.9153 39.6914 30.8379C39.5046 30.7605 39.2895 30.8033 39.1465 30.9463L35.4 34.6927L30.4 29.6926V20.3069L35.3999 15.3069L39.1465 19.0536C39.2895 19.1966 39.5046 19.2393 39.6914 19.1619C39.8782 19.0845 40.0001 18.9022 40.0001 18.7V10.5C40.0001 10.2239 39.7762 10 39.5001 10H31.3001C31.0978 10 30.9155 10.1218 30.8381 10.3087C30.7607 10.4955 30.8035 10.7106 30.9465 10.8536L34.6928 14.5998L29.5924 19.7002H20.4078L15.3073 14.5998L19.0536 10.8536C19.1966 10.7106 19.2393 10.4955 19.1619 10.3087C19.0845 10.1218 18.9022 10 18.7 10ZM11 17.4929V11H17.4929L11 17.4929ZM20.7 20.7002V29.4002H29.4V20.7002H20.7ZM32.5072 38.9998H39.0001V32.5069L32.5072 38.9998ZM32.5072 11L39.0001 17.4929V11H32.5072ZM11 38.9998V32.5069L17.4929 38.9998H11Z" class="fill-border"/></svg>',
minimize:'<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.95 22.15H22.15V13.95L13.95 22.15Z" class="fill-background"/><path d="M36.0499 27.8504H27.8499V36.0504L36.0499 27.8504Z" class="fill-background"/><path d="M22.15 36.0504V27.8504H13.95L22.15 36.0504Z" class="fill-background"/><path d="M27.8499 13.95V22.15H36.0499L27.8499 13.95Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.8035 12.0966C12.6082 11.9014 12.2917 11.9014 12.0964 12.0966C11.9011 12.2919 11.9011 12.6085 12.0964 12.8037L17.3428 18.0502L13.5964 21.7967C13.4534 21.9397 13.4106 22.1547 13.488 22.3416C13.5654 22.5284 13.7477 22.6502 13.9499 22.6502H22.1499C22.4261 22.6502 22.6499 22.4264 22.6499 22.1502V13.9502C22.6499 13.748 22.5281 13.5657 22.3413 13.4883C22.1544 13.4109 21.9394 13.4537 21.7964 13.5967L18.05 17.3431L12.8035 12.0966ZM18.4043 18.4029L18.4035 18.4037L18.4027 18.4046L15.157 21.6502H21.6499V15.1573L18.4043 18.4029Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M32.6572 31.9503L36.4034 28.2041C36.5464 28.0611 36.5892 27.8461 36.5118 27.6592C36.4344 27.4724 36.2521 27.3506 36.0499 27.3506H27.8499C27.5737 27.3506 27.3499 27.5744 27.3499 27.8506V36.0506C27.3499 36.2528 27.4717 36.4351 27.6585 36.5125C27.8453 36.5899 28.0604 36.5471 28.2034 36.4041L31.9501 32.6574L37.1964 37.9037C37.3917 38.099 37.7082 38.099 37.9035 37.9037C38.0988 37.7085 38.0988 37.3919 37.9035 37.1966L32.6572 31.9503ZM31.5863 31.6071L28.3499 34.8435V28.3506H34.8427L31.6068 31.5865L31.5964 31.5966L31.5863 31.6071Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M17.3426 31.9504L12.0964 37.1966C11.9011 37.3919 11.9011 37.7085 12.0964 37.9037C12.2917 38.099 12.6082 38.099 12.8035 37.9037L18.0497 32.6575L21.7964 36.4041C21.9394 36.5471 22.1544 36.5899 22.3413 36.5125C22.5281 36.4351 22.6499 36.2528 22.6499 36.0506V27.8506C22.6499 27.5744 22.4261 27.3506 22.1499 27.3506H13.9499C13.7477 27.3506 13.5654 27.4724 13.488 27.6592C13.4106 27.8461 13.4534 28.0611 13.5964 28.2041L17.3426 31.9504ZM18.4154 31.609L18.4035 31.5966L18.3912 31.5847L15.157 28.3506H21.6499V34.8435L18.4154 31.609Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M37.9035 12.0966C38.0988 12.2919 38.0988 12.6085 37.9035 12.8037L32.657 18.0503L36.4034 21.7967C36.5464 21.9397 36.5892 22.1547 36.5118 22.3416C36.4344 22.5284 36.2521 22.6502 36.0499 22.6502H27.8499C27.5737 22.6502 27.3499 22.4264 27.3499 22.1502V13.9502C27.3499 13.748 27.4717 13.5657 27.6585 13.4883C27.8453 13.4109 28.0604 13.4537 28.2034 13.5967L31.9499 17.3431L37.1964 12.0966C37.3917 11.9014 37.7082 11.9014 37.9035 12.0966ZM28.3499 21.6502V15.1573L34.8427 21.6502H28.3499Z" class="fill-border"/></svg>'};
FlexmonsterToolbar.prototype.icons_v26={connect:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><style>.a{fill:none;}</style><path d="M9.9 18.4c2.1 0.9 5 1.4 8.1 1.4 3.1 0 6-0.5 8.1-1.4C27.9 17.7 29 16.7 29 15.8v-3.9c-1 0.5-1.3 0.9-2.1 1.2 -2.4 1.1-5.5 1.7-8.9 1.7 -3.3 0-6.5-0.6-8.9-1.7C8.3 12.8 8 12.3 7 11.9v3.9c0 0 0 0 0 0C7 16.7 8.1 17.7 9.9 18.4z" class="a"/><path d="M9.9 24.5c2.1 0.9 5 1.4 8.1 1.4 3.1 0 6-0.5 8.1-1.4C27.9 23.7 29 21.8 29 20.9v-2.7c-1 0.4-1.3 0.8-2.1 1.2 -2.4 1-5.5 1.6-8.9 1.6 -3.3 0-6.5-0.6-8.9-1.6C8.3 19 8 18.6 7 18.1v3.7c0 0 0 0 0 0C7 22.8 8.1 23.7 9.9 24.5z" class="a"/><path d="M29 24.2c-0.6 0.4-1.3 0.8-2.1 1.2 -2.4 1-5.5 1.6-8.9 1.6 -3.3 0-6.5-0.6-8.9-1.6C8.3 25 8 24.6 7 24.2v3.7c0 0.9 1.1 1.9 2.9 2.6 2.1 0.9 5 1.4 8.1 1.4 3.1 0 6-0.5 8.1-1.4C27.9 29.8 29 28.8 29 27.9h0V24.2z" class="a"/><path d="M26.9 4.7C24.5 3.6 21.3 3 18 3c-3.3 0-6.5 0.6-8.9 1.7C6.5 5.9 6 7.5 6 9.4c0 0 0 0 0 0C6 9.5 6 9.5 6 9.5v18.5c0 1.8 0.5 2.4 3.1 3.5C11.5 32.4 14.7 33 18 33c3.3 0 6.5-0.6 8.9-1.6C29.5 30.3 30 29.7 30 27.9V9.4c0 0 0 0 0 0C30 7.5 29.5 5.9 26.9 4.7zM7 15.8v-3.9c1 0.5 1.3 0.9 2.1 1.3 2.4 1.1 5.5 1.7 8.9 1.7 3.3 0 6.5-0.6 8.9-1.7C27.7 12.8 28 12.3 29 11.9v3.9c0 0.9-1.1 1.9-2.9 2.6 -2.1 0.9-5 1.4-8.1 1.4 -3.1 0-5.9-0.5-8.1-1.4C8.1 17.7 7 16.7 7 15.8 7 15.8 7 15.8 7 15.8zM7 18.1c1 0.4 1.3 0.8 2.1 1.2 2.4 1 5.5 1.6 8.9 1.6 3.3 0 6.5-0.6 8.9-1.6C27.7 19 28 18.6 29 18.1v2.7c0 0.9-1.1 2.9-2.9 3.6 -2.1 0.9-5 1.4-8.1 1.4 -3.1 0-6-0.5-8.1-1.4 -1.8-0.8-2.9-1.8-2.9-2.6 0 0 0 0 0 0V18.1zM26.1 30.6c-2.1 0.9-5 1.4-8.1 1.4 -3.1 0-5.9-0.5-8.1-1.4C8.1 29.8 7 28.8 7 27.9v-3.7c1 0.4 1.3 0.8 2.1 1.2 2.4 1 5.5 1.6 8.9 1.6 3.3 0 6.5-0.6 8.9-1.6 0.8-0.3 1.5-0.7 2.1-1.2v3.7h0C29 28.8 27.9 29.8 26.1 30.6z"/></svg>',
connect_olap:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M30 10.9c0 0-0.1-0.3-0.2-0.3 0 0 0 0-0.1 0 0 0 0 0 0 0L17.8 4.1c-0.2-0.1-0.3-0.1-0.5 0L5.3 10.5c0 0 0 0 0 0C5.1 10.6 5 10.8 5 11V27l12 5c0 0 0.4-0.1 0.4-0.1 0.1 0.1 0.3 0.1 0.5 0C17.8 31.9 18 32 18 32l12-5 0-16L30 10.9zM22.4 7.7l-4.8 2.4 -4.8-2.4 4.8-2.4L22.4 7.7zM11 21l-5-2V12l5 3V21zM6.3 10.9l4.8-2.4L16 11l-5 2L6.3 10.9zM17 31l-5-2v-6l5 2V31zM17 24l-5-2v-6l5 2V24zM17.6 16.5L12 14l6-2 5 2L17.6 16.5zM23 29l-5 2v-6l5-2V29zM23 22l-5 2v-6l5-2V22zM29 26l-5 2v-6l5-2V26zM29 19l-5 2v-6l5-2V19z"/></svg>',
connect_csv:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M11 24l6 0V27h-6V24z"/><path d="M12.8 22L12.8 22l1.2-2.5L15.1 22h1.9l-2-3.9L16.9 14h-1.8l-1 2.5L12.9 14h-1.8l1.9 3.9L11 22H12.8z"/><path d="M19 19h6v3h-6V19z"/><path d="M19 14h6v3L19 17V14z"/><path d="M19 24h6v3h-6V24z"/><path d="M23 4H7v28h22V11L23 4zM8 31V5h14v7h6v19H8L8 31z"/></svg>',connect_json:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M23 4H7v28h22V11L23 4zM8 31V5h14v7h6v19H8L8 31z"/><path d="M19 24c0 0.6-0.4 1-1 1 -0.6 0-1-0.4-1-1v-2c0-0.6 0.4-1 1-1 0.6 0 1 0.4 1 1V24zM21 18v-2c0-0.6-0.4 0-1 0 -0.6 0-1-0.4-1-1 0-0.6 0.4-1 1-1 1.7 0 3 0.3 3 2v2c0 1.1 0.9 2 2 2 0.6 0 1 0.4 1 1 0 0.6-0.4 1-1 1 -1.1 0-2 0.9-2 2v2c0 1.7-1.3 2-3 2 -0.6 0-1-0.4-1-1s0.4-1 1-1c0.6 0 1 0.6 1 0v-2c0-1.2 0.5-2.3 1.4-3C21.5 20.3 21 19.2 21 18zM11 20c1.1 0 2-0.9 2-2v-2c0-1.7 1.3-2 3-2 0.6 0 1 0.4 1 1 0 0.6-0.4 1-1 1 -0.6 0-1-0.6-1 0v2c0 1.2-0.5 2.3-1.4 3 0.8 0.7 1.4 1.8 1.4 3v2c0 0.6 0.4 0 1 0 0.6 0 1 0.4 1 1s-0.4 1-1 1c-1.7 0-3-0.3-3-2v-2c0-1.1-0.9-2-2-2 -0.6 0-1-0.4-1-1C10 20.4 10.4 20 11 20z"/><path d="M18 17c0.6 0 1 0.4 1 1s-0.4 1-1 1 -1-0.4-1-1S17.4 17 18 17z"/></svg>',
connect_csv_remote:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M11 24l6 0V27h-6V24z"/><path d="M12.8 22L12.8 22l1.2-2.5L15.1 22h1.9l-2-3.9L16.9 14h-1.8l-1 2.5L12.9 14h-1.8l1.9 3.9L11 22H12.8z"/><path d="M19 19h6v3h-6V19z"/><path d="M19 14h6v3L19 17V14z"/><path d="M19 24h6v3h-6V24z"/><path d="M23 4H7v28h22V11L23 4zM8 31V5h14v7h6v19H8L8 31z"/></svg>',connect_json_remote:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M23 4H7v28h22V11L23 4zM8 31V5h14v7h6v19H8L8 31z"/><path d="M19 24c0 0.6-0.4 1-1 1 -0.6 0-1-0.4-1-1v-2c0-0.6 0.4-1 1-1 0.6 0 1 0.4 1 1V24zM21 18v-2c0-0.6-0.4 0-1 0 -0.6 0-1-0.4-1-1 0-0.6 0.4-1 1-1 1.7 0 3 0.3 3 2v2c0 1.1 0.9 2 2 2 0.6 0 1 0.4 1 1 0 0.6-0.4 1-1 1 -1.1 0-2 0.9-2 2v2c0 1.7-1.3 2-3 2 -0.6 0-1-0.4-1-1s0.4-1 1-1c0.6 0 1 0.6 1 0v-2c0-1.2 0.5-2.3 1.4-3C21.5 20.3 21 19.2 21 18zM11 20c1.1 0 2-0.9 2-2v-2c0-1.7 1.3-2 3-2 0.6 0 1 0.4 1 1 0 0.6-0.4 1-1 1 -0.6 0-1-0.6-1 0v2c0 1.2-0.5 2.3-1.4 3 0.8 0.7 1.4 1.8 1.4 3v2c0 0.6 0.4 0 1 0 0.6 0 1 0.4 1 1s-0.4 1-1 1c-1.7 0-3-0.3-3-2v-2c0-1.1-0.9-2-2-2 -0.6 0-1-0.4-1-1C10 20.4 10.4 20 11 20z"/><path d="M18 17c0.6 0 1 0.4 1 1s-0.4 1-1 1 -1-0.4-1-1S17.4 17 18 17z"/></svg>',
connect_elastic:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 112 112"><style type="text/css">.st0{fill:#FFFFFF;}.st1{fill:#00A9E5;}.st2{fill:#353535;}.st3{fill:#00BFB3;}.st4{fill:#019B8F;}.st5{fill:#F9B110;}.st6{fill:#FED10A;}</style><path d="m53.2 68h-32.4c-1.2-3.8-1.8-7.8-1.8-12s0.6-8.2 1.8-12h53.2c6.7 0 12 5.4 12 12s-5.3 12-11.9 12h-20.9zm-1.5 4h-29.4c3.1 7.1 8.2 13.2 14.7 17.4 6.3 4.2 13.9 6.6 22 6.6 13.9 0 26.1-7.1 33.3-17.8-3.7-3.8-8.9-6.2-14.6-6.2h-26zm26-32c5.7 0 10.9-2.4 14.6-6.2-7.2-10.7-19.4-17.8-33.3-17.8-8.1 0-15.7 2.4-22 6.6-6.4 4.2-11.5 10.3-14.7 17.4h55.4z"/></svg>',
open:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M34.4 16.5C34.3 16.4 34.7 16 34.5 16H31V8C32 7.4 31.1 6 29.5 6h-15l-2-2c-0.1-0.2-0.7 0-1 0h-6C4.9 4 4 5.3 4 6V16H1.5c-0.2 0 0.2 0.4 0.1 0.5 -0.1 0.1-0.2 0.3-0.1 0.5l3.2 14.5C4.8 31.8 5.2 32 5.5 32h25c0.3 0 1 0.3 1 0l3-15C34.5 16.8 34.5 16.7 34.4 16.5zM5 5h6.5l1.9 1.7C13.5 7 14.2 7 14.5 7H30v9h-4v-5H9v5H5V5zM25 16H10v-4h15V16z"/></svg>',open_local:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><style>.a{fill:none;}</style><path d="M30.9 10.6C30.8 10.4 30.2 10 30 10h-1V8c0-0.4-0.6-1-1-1H15l-1-2H8C7.6 5 7 5.6 7 6v4H6c-0.2 0-0.8 0.4-0.9 0.6 -0.1 0.1-0.2 0.3-0.1 0.5l2.1 19.5C7.2 30.8 7.7 31 8 31h20c0.3 0 0.8-0.2 0.9-0.5l2.1-19.5C31 10.9 31 10.7 30.9 10.6zM28 30H8L6 11h24L28 30z"/><line x1="11" y1="23" x2="11" y2="23" class="a"/><line x1="25" y1="23" x2="25" y2="23" class="a"/><polygon points="11 15 11 23 17 23 17 25 14 25 14 26 22 26 22 25 19 25 19 23 25 23 25 15 "/></svg>',
open_remote:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M30.9 10.6C30.8 10.4 30.2 10 30 10h-1V8c0-0.4-0.6-1-1-1H15l-1-2H8C7.6 5 7 5.6 7 6v4H6c-0.2 0-0.8 0.4-0.9 0.6 -0.1 0.1-0.2 0.3-0.1 0.5l2.1 19.5C7.2 30.8 7.7 31 8 31h20c0.3 0 0.8-0.2 0.9-0.5l2.1-19.5C31 10.9 31 10.7 30.9 10.6zM28 30H8L6 11h24L28 30z"/><path d="M24.8 18.1l-0.8 1.5c-0.2 0.2-0.5 0.2-0.8 0 -1.3-1.2-3.2-1.9-5.3-1.9 -2.1 0-4 0.7-5.3 1.9 -0.2 0.2-0.5 0.2-0.8 0l-0.8-1.5c-0.1-0.1-0.2-0.2-0.2-0.3 0-0.1 0.1-0.2 0.2-0.3 1.7-1.5 4.1-2.5 6.8-2.5 2.7 0 5.1 0.9 6.8 2.5 0.1 0 0.2 0.2 0.2 0.3C25 17.9 24.9 18 24.8 18.1zM18 19.6c1.5 0 2.8 0.5 3.8 1.4 0.2 0.2 0.2 0.5 0 0.7l-0.8 1.5c-0.2 0.2-0.5 0.2-0.8 0 -0.6-0.5-1.4-0.8-2.3-0.8 -0.9 0-1.7 0.3-2.3 0.8 -0.2 0.2-0.5 0.2-0.8 0l-0.8-1.5c-0.2-0.2-0.2-0.5 0-0.7C15.2 20.1 16.5 19.6 18 19.6zM18 23.4c0.8 0 1.4 0.6 1.4 1.3 0 0.7-0.6 1.3-1.4 1.3 -0.8 0-1.4-0.6-1.4-1.3C16.6 24 17.2 23.4 18 23.4z"/></svg>',
grid:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><style>.a{fill:none;}</style><polygon points="30 15 23 15 23 22 30 22 30 15 " class="a"/><polygon points="14 22 14 15 7 15 7 22 14 22 " class="a"/><polygon points="14 23 7 23 7 30 14 30 14 23 " class="a"/><polygon points="22 15 15 15 15 22 22 22 22 15 " class="a"/><polygon points="30 23 23 23 23 30 30 30 30 23 " class="a"/><polygon points="22 23 15 23 15 30 22 30 22 23 " class="a"/><path d="M30.5 6l-0.2 0L30 6H7L6.7 6 6.5 6 6 6.5v24L6.5 31l0.2 0L7 31h23.1l0.3 0L30.5 31l0.5-0.5v-24L30.5 6 30.5 6zM14 15v7H7v-7H14L14 15zM15 15h7v7h-7V15L15 15zM23 15h7v7h-7V15L23 15zM7 23h7v7H7V23L7 23zM15 23h7v7h-7V23L15 23zM23 23h7v7h-7V23L23 23z"/></svg>',
save:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M30 10.9l-6-5.2 0 0 0 0 0 0L24 5.5l-0.1 0 0 0.2L23.8 6H6.1L5 6.1v23.7V31h24.5l0.1-0.3L30 29.5v-18L30 10.9 30 10.9zM22 26h-9v-2h9V26L22 26zM29 30h-3V19h-0.5 -15H9v11H6V7h6v5.5l1.5 1.5h9l0.5-1.5v-6l6 5V30L29 30z"/></svg>',export:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><polygon points="14 27 22 27 22 15 27 15 18 5 9 15 14 15 "/><path d="M32.5 21h-5c-0.3 0-0.5 0.2-0.5 0.5s0.2 0.5 0.5 0.5H32v10H4V22h4.5C8.8 22 9 21.8 9 21.5S8.8 21 8.5 21h-5C3.2 21 3 21.2 3 21.5v11C3 32.8 3.2 33 3.5 33h29c0.3 0 0.5-0.2 0.5-0.5v-11C33 21.2 32.8 21 32.5 21z"/></svg>',
export_print:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M23 23H13v1h10V23L23 23z"/><path d="M13 25v1h10v-1H13z"/><path d="M26 12V5H10v7H6v14h3v4h18v-4h3V12H26zM11 6h14v6H11V6zM26 29H10v-9h16V29zM26 17.8c-1.1 0-2-0.9-2-2s0.9-2 2-2c1.1 0 2 0.9 2 2S27.1 17.8 26 17.8z"/><path d="M26 14.6c0.7 0 1.2 0.5 1.2 1.2 0 0.7-0.5 1.2-1.2 1.2 -0.7 0-1.2-0.5-1.2-1.2C24.8 15.1 25.3 14.6 26 14.6z"/></svg>',export_excel:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M24.4 15h-3.8L18 18.6 15.3 15h-3.8l4.5 5.2L11 27h7.3L18 25h-2l2-3L21.1 27H25l-5.1-6.8L24.4 15z"/><path d="M23 4H7v28h22V11L23 4zM8 31V5h14v7h6v19H8L8 31z"/></svg>',
export_html:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M25.7 20.8l-2.3-2.5c-0.2-0.2-0.4-0.3-0.6-0.3 -0.2 0-0.4 0.1-0.6 0.3 -0.3 0.4-0.3 1 0 1.4l1.7 1.9 -1.7 1.9c-0.2 0.2-0.3 0.4-0.3 0.7 0 0.3 0.1 0.5 0.3 0.7 0.2 0.2 0.4 0.3 0.6 0.3 0.2 0 0.4-0.1 0.6-0.3l2.3-2.5C26.1 21.8 26.1 21.2 25.7 20.8z"/><path d="M14 24c0-0.3-0.1-0.5-0.3-0.7l-1.7-1.9 1.7-1.9c0.3-0.4 0.3-1 0-1.4 -0.2-0.2-0.4-0.3-0.6-0.3 -0.2 0-0.4 0.1-0.6 0.3l-2.3 2.5c-0.3 0.4-0.3 1 0 1.4l2.3 2.5c0.2 0.2 0.4 0.3 0.6 0.3 0.2 0 0.4-0.1 0.6-0.3C13.9 24.5 14 24.3 14 24z"/><path d="M20.4 15.1c-0.1 0-0.2-0.1-0.3-0.1 -0.4 0-0.8 0.3-0.9 0.6l-4.1 11.1c-0.1 0.2-0.1 0.5 0 0.7 0.1 0.2 0.3 0.4 0.5 0.5C15.7 28 15.8 28 16 28c0.4 0 0.8-0.3 0.9-0.6l4.1-11.1C21.1 15.8 20.9 15.2 20.4 15.1z"/><path d="M23 4H7v28h22V11L23 4zM8 31V5h14v7h6v19H8L8 31z"/></svg>',
export_image:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M25 21.5c0 1.9 0 3.7 0 5.6 0 0.5-0.4 0.9-1 0.9C20 28 16 28 12 28 11.4 28 11 27.7 11 27.1c0-3.2 0-6.4 0-9.5 0-0.6 0-1.1 0-1.7 0-0.4 0.3-0.7 0.7-0.8C11.8 15 11.9 15 11.9 15c4.1 0 8.1 0 12.2 0C24.6 15 25 15.3 25 15.9 25 17.7 25 19.6 25 21.5zM14 26h8c0 0-1.4-3.7-2.2-5.3 -0.8 1.1-1.5 2.1-2.3 3.2 -0.4-0.5-0.8-1-1.2-1.5C15.4 23.4 14 26 14 26zM14.5 17c-0.8 0-1.5 0.7-1.5 1.5 0 0.8 0.7 1.5 1.5 1.5C15.3 20 16 19.3 16 18.5 16 17.7 15.3 17 14.5 17z"/><path d="M23 4H7v28h22V11L23 4zM8 31V5h14v7h6v19H8L8 31z"/></svg>',
export_pdf:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M17.2 17.1L17.2 17.1C17.3 17.1 17.3 17.1 17.2 17.1c0.1-0.5 0.2-0.7 0.2-1V15.8c0.1-0.6 0.1-1 0-1.1 0 0 0 0 0-0.1l-0.1-0.1 0 0 0 0c0 0 0 0.1-0.1 0.1C16.9 15.2 16.9 16 17.2 17.1L17.2 17.1zM13.8 24.8c-0.2 0.1-0.4 0.2-0.6 0.3 -0.8 0.7-1.3 1.5-1.5 1.8l0 0 0 0 0 0C12.5 26.9 13.1 26.2 13.8 24.8 13.9 24.8 13.9 24.8 13.8 24.8 13.9 24.8 13.8 24.8 13.8 24.8zM24.1 23.1c-0.1-0.1-0.6-0.5-2.1-0.5 -0.1 0-0.1 0-0.2 0l0 0c0 0 0 0 0 0.1 0.8 0.3 1.6 0.6 2.1 0.6 0.1 0 0.1 0 0.2 0l0 0h0.1c0 0 0 0 0-0.1l0 0C24.2 23.3 24.1 23.3 24.1 23.1zM24.6 24c-0.2 0.1-0.6 0.2-1 0.2 -0.9 0-2.2-0.2-3.4-0.8 -1.9 0.2-3.4 0.5-4.5 0.9 -0.1 0-0.1 0-0.2 0.1 -1.3 2.4-2.5 3.5-3.4 3.5 -0.2 0-0.3 0-0.4-0.1l-0.6-0.3v-0.1c-0.1-0.2-0.1-0.3-0.1-0.6 0.1-0.6 0.8-1.6 2.1-2.4 0.2-0.1 0.6-0.3 1-0.6 0.3-0.6 0.7-1.2 1.1-2 0.6-1.1 0.9-2.3 1.2-3.3l0 0c-0.4-1.4-0.7-2.1-0.2-3.7 0.1-0.5 0.4-0.9 0.9-0.9h0.2c0.2 0 0.4 0.1 0.7 0.2 0.8 0.8 0.4 2.6 0 4.1 0 0.1 0 0.1 0 0.1 0.4 1.2 1.1 2.3 1.8 2.9 0.3 0.2 0.6 0.5 1 0.7 0.6 0 1-0.1 1.5-0.1 1.3 0 2.2 0.2 2.6 0.8 0.1 0.2 0.1 0.5 0.1 0.7C24.9 23.5 24.8 23.8 24.6 24zM17.3 19.6c-0.2 0.8-0.7 1.7-1.1 2.7 -0.2 0.5-0.4 0.8-0.7 1.2h0.1 0.1l0 0c1.5-0.6 2.8-0.9 3.7-1 -0.2-0.1-0.3-0.2-0.4-0.3C18.4 21.6 17.7 20.7 17.3 19.6z"/><path d="M23 4H7v28h22V11L23 4zM8 31V5h14v7h6v19H8L8 31z"/></svg>',
export_csv:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M11 24l6 0V27h-6V24z"/><path d="M12.8 22L12.8 22l1.2-2.5L15.1 22h1.9l-2-3.9L16.9 14h-1.8l-1 2.5L12.9 14h-1.8l1.9 3.9L11 22H12.8z"/><path d="M19 19h6v3h-6V19z"/><path d="M19 14h6v3L19 17V14z"/><path d="M19 24h6v3h-6V24z"/><path d="M23 4H7v28h22V11L23 4zM8 31V5h14v7h6v19H8L8 31z"/></svg>',charts:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><polygon points="28 30 28 22 23 22 23 30 21 30 21 9 16 9 16 30 14 30 14 17 9 17 9 30 5 30 5 5 4 5 4 31 32 31 32 30 "/></svg>',
charts_bar:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><polygon points="32 30 5 30 5 26 18 26 18 21 5 21 5 19 26 19 26 14 5 14 5 12 13 12 13 7 5 7 5 3 4 3 4 31 32 31 "/></svg>',charts_column_line:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><polygon points="32 30 29 30 29 17 26 17 26 30 23 30 23 19 20 19 20 30 17 30 17 14 14 14 14 30 11 30 11 20 8 20 8 30 5 30 5 3 4 3 4 31 32 31 32 30 "/><path d="M8.7 12.5c1 0 1.7-0.8 1.7-1.7 0-0.3 0-0.5-0.1-0.8l4.3-3.9c0.3 0.3 0.5 0.3 0.9 0.3 0.2 0 0.5 0 0.6-0.1l4.8 6c-0.3 0.3-0.4 0.6-0.4 1 0 0.9 0.7 1.6 1.8 1.6 0.9 0 1.7-0.8 1.7-1.6 0-0.3-0.1-0.5-0.3-0.8l4.3-3.8c0.3 0.2 0.6 0.3 0.9 0.3 1.1 0 1.8-0.8 1.8-1.7 0-0.4-0.2-0.9-0.5-1.2C30.2 6 30 5.8 29.6 5.8c0 0-0.2-0.1-0.4-0.1 -0.9 0-1.7 0.8-1.7 1.7 0 0.3 0.1 0.5 0.3 0.8l-4.3 3.7c-0.3-0.1-0.5-0.3-0.9-0.3 -0.3 0-0.5 0.1-0.7 0.2l-4.8-6.1c0.2-0.3 0.4-0.6 0.4-0.9 0-1-0.8-1.7-1.7-1.7 -0.9 0-1.7 0.8-1.7 1.7 0 0.3 0.1 0.6 0.1 0.8l-4.3 3.9C9.4 9.2 9.1 9.1 8.7 9.1c-0.9 0-1.7 0.7-1.7 1.6C7 11.7 7.8 12.5 8.7 12.5z"/></svg>',
charts_stacked_column:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><polygon points="32 30 28 30 28 27 23 27 23 30 21 30 21 14 16 14 16 30 14 30 14 22 9 22 9 30 5 30 5 3 4 3 4 31 32 31 32 30 "/><polygon points="14 15 9 15 9 21 14 21 14 15 "/><polygon points="21 9 16 9 16 13 21 13 21 9 "/><polygon points="28 22 23 22 23 26 28 26 28 22 "/></svg>',charts_line:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><polygon points="32 30 5 30 5 3 4 3 4 31 32 31 32 30 "/><path d="M9.4 24c1.3 0 2.4-1.1 2.4-2.3 0-0.7-0.3-1.3-0.8-1.8l2.8-4.3c0.4 0.1 0.6 0.2 1 0.2 0.8 0 1.4-0.3 1.9-0.7l2.8 2.6c-0.2 0.4-0.2 0.6-0.2 0.9 0 1.2 1 2.2 2.1 2.2 1.3 0 2.2-1 2.2-2.2 0-0.2 0-0.5-0.1-0.8l2.9-8c0.6 0.5 1.3 0.7 2.1 0.7 1.6 0 3-1.3 3-3.1 0-1.7-1.3-3.1-3-3.1 -1.7 0-3.1 1.4-3.1 3.1 0 0.6 0.2 1.1 0.4 1.6l-2.8 8c-0.4-0.5-0.9-0.7-1.6-0.7 -0.5 0-1 0.2-1.4 0.6l-2.8-2.7c0.1-0.4 0.2-0.8 0.2-1.2 0-1.6-1.1-2.8-2.7-2.8 -1.4 0-2.7 1.3-2.7 2.8 0 0.8 0.4 1.5 0.9 2.1l-2.8 4.2c-0.2-0.1-0.5-0.1-0.8-0.1C8.1 19.2 7 20.3 7 21.7 7 22.9 8.1 24 9.4 24z"/></svg>',
charts_pie:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M25.2 28.8c3.3-2.2 5.5-5.8 5.8-9.8h-12L25.2 28.8z"/><path d="M17 18v-13c-7 0.4-12 6.1-12 13 0 7.2 5.9 13 13 13 2.1 0 4-0.5 5.8-1.4C23.8 29.6 17 18.2 17 18z"/><path d="M18 5V18h13l0-0.9C30.6 10.6 25 5.4 18 5z"/></svg>',charts_scatter:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><polygon points="32 30 5 30 5 3 4 3 4 31 32 31 "/><path d="M9.5 20c1.4 0 2.5 1.1 2.5 2.5 0 1.4-1.1 2.5-2.5 2.5S7 23.9 7 22.5C7 21.1 8.1 20 9.5 20z"/><path d="M21.5 17c1.4 0 2.5 1.1 2.5 2.5 0 1.4-1.1 2.5-2.5 2.5S19 20.9 19 19.5C19 18.1 20.1 17 21.5 17z"/><path d="M14 11c1.7 0 3 1.3 3 3s-1.3 3-3 3 -3-1.3-3-3S12.3 11 14 11z"/><path d="M28 6c1.7 0 3 1.3 3 3 0 1.7-1.3 3-3 3s-3-1.3-3-3C25 7.3 26.3 6 28 6z"/></svg>',
format:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><rect x="18.8" y="12.9" transform="matrix(-0.7073 -0.7069 0.7069 -0.7073 21.6275 41.9551)" width="1.3" height="7.1" fill="none"/><polygon points="24 25 23 25 23 32 4 32 4 13 11 13 11 12 3 12 3 33 24 33 "/><path d="M28.3 3.5c-0.9 0-1.8 0.3-2.5 0.8l-1.7 1.7 5.9 5.9 1.7-1.7c0.5-0.7 0.8-1.6 0.8-2.5C32.5 5.4 30.6 3.5 28.3 3.5z"/><path d="M11.2 18.9L9.5 26.5l7.6-1.7 11.6-11.6 -5.9-5.9L11.2 18.9zM17.4 19.5l-0.9-0.9 5.1-5 0.9 0.9L17.4 19.5z"/></svg>',
format_number:'<svg xmlns="http://www.w3.org/2000/svg" width="52" height="36" viewBox="0 0 52 36"><path d="M31 19.2v-3.4l2.5-0.4c0.2-0.7 0.5-1.4 0.9-2.1l-1.4-2 2.4-2.4 2 1.4c0.7-0.4 1.4-0.7 2.1-0.9l0.4-2.5h3.4l0.4 2.5c0.7 0.2 1.4 0.5 2.1 0.9l2-1.4 2.4 2.4 -1.4 2c0.4 0.7 0.7 1.4 0.9 2.1L52 15.8v3.4l-2.5 0.4c-0.2 0.7-0.5 1.4-0.9 2.1l1.4 2 -2.4 2.4 -2-1.5c-0.7 0.4-1.4 0.7-2.1 0.9l-0.4 2.5h-3.4l-0.4-2.5c-0.7-0.2-1.4-0.5-2.1-0.9l-2 1.5 -2.4-2.4 1.4-2c-0.4-0.7-0.7-1.4-0.9-2.1L31 19.2zM41.5 21c1.9 0 3.5-1.6 3.5-3.5 0-1.9-1.6-3.5-3.5-3.5 -1.9 0-3.5 1.6-3.5 3.5C38 19.4 39.6 21 41.5 21z"/><path d="M38 30H1V6h36V5H0v26h38V30L38 30z"/><path d="M9.4 21.1c-0.3 0.3-0.7 0.4-1.2 0.4 -0.5 0-0.9-0.2-1.2-0.5s-0.4-0.8-0.4-1.4H5c0 0.9 0.2 1.7 0.7 2.2 0.5 0.6 1.2 0.9 2 1v1.3h1.1v-1.4c0.8-0.1 1.5-0.4 1.9-0.9 0.5-0.5 0.7-1.1 0.7-1.9 0-0.4-0.1-0.8-0.2-1.1 -0.1-0.3-0.3-0.6-0.5-0.8 -0.2-0.2-0.5-0.4-0.8-0.6 -0.3-0.2-0.8-0.4-1.4-0.6 -0.6-0.2-1-0.4-1.2-0.7s-0.4-0.6-0.4-1c0-0.4 0.1-0.8 0.4-1 0.2-0.2 0.6-0.4 1-0.4 0.4 0 0.8 0.2 1 0.5 0.3 0.3 0.4 0.8 0.4 1.4h1.6c0-0.9-0.2-1.6-0.6-2.2 -0.4-0.6-1-0.9-1.8-1v-1.5H7.9v1.5C7.1 12.6 6.5 12.9 6 13.4s-0.7 1.1-0.7 1.9c0 1.1 0.5 2 1.6 2.6 0.3 0.2 0.8 0.4 1.3 0.6 0.6 0.2 1 0.4 1.2 0.7s0.4 0.6 0.4 1C9.8 20.5 9.7 20.8 9.4 21.1z"/><path d="M16.3 12.6h-0.2l-3.8 1.5v1.4l2.4-0.8v8.1h1.6V12.6z"/><path d="M19.9 23.8c0.2-0.5 0.4-1 0.4-1.5l0-1.2h-1.5v1.3c0 0.3-0.1 0.6-0.2 1 -0.1 0.3-0.3 0.7-0.5 1.1l0.9 0.5C19.3 24.7 19.6 24.3 19.9 23.8z"/><path d="M27 16.7c0-1.4-0.3-2.5-0.8-3.2s-1.3-1.1-2.4-1.1c-1.1 0-1.9 0.4-2.4 1.1 -0.5 0.7-0.8 1.8-0.8 3.3v1.8c0 1.4 0.3 2.5 0.8 3.2s1.3 1.1 2.4 1.1c1.1 0 1.9-0.4 2.4-1.1 0.5-0.7 0.8-1.8 0.8-3.3V16.7zM25.4 18.9c0 0.9-0.1 1.6-0.4 2 -0.2 0.4-0.6 0.6-1.2 0.6 -0.5 0-0.9-0.2-1.2-0.7 -0.3-0.5-0.4-1.2-0.4-2.1v-2.3c0-0.9 0.1-1.5 0.4-2 0.3-0.4 0.6-0.6 1.2-0.6 0.5 0 0.9 0.2 1.2 0.7 0.3 0.4 0.4 1.1 0.4 2.1V18.9z"/></svg>',
format_conditional:'<svg xmlns="http://www.w3.org/2000/svg" width="52" height="36" viewBox="0 0 52 36"><polygon points="38 5 0 5 0 31 26 31 26 30 1 30 1 6 37 6 37 10 38 10 "/><path d="M9 13H8.6L5 14.4v1.4l2-0.8V23h2V13z"/><path d="M17 22h-4l2.4-2.9c0.6-0.7 1-1.3 1.3-1.8 0.3-0.5 0.4-1.1 0.4-1.5 0-0.8-0.3-1.5-0.8-2 -0.5-0.5-1.2-0.7-2.2-0.7 -0.6 0-1.2 0.1-1.7 0.4s-0.9 0.6-1.1 1C11.1 14.9 11 16 11 16h1.6c0 0 0.1-0.9 0.4-1.3s0.7-0.4 1.2-0.4c0.4 0 0.8 0.2 1 0.5 0.3 0.3 0.4 0.7 0.4 1.1 0 0.4-0.1 0.7-0.3 1.1 -0.2 0.4-0.6 0.8-1.1 1.3L11 21.9V23h6V22z"/><path d="M21 19h0.8c0.6 0 1-0.1 1.3 0.2 0.3 0.3 0.4 0.6 0.4 1.1 0 0.5-0.1 0.8-0.4 1.1 -0.3 0.3-0.6 0.4-1.1 0.4 -0.5 0-0.8-0.3-1.1-0.5C20.6 20.9 20.5 21 20.5 20h-1.5c0 1 0.3 1.6 0.8 2.1s1.3 0.8 2.1 0.8c0.9 0 1.6-0.2 2.2-0.7 0.6-0.5 0.8-1.2 0.8-2.1 0-0.5-0.1-1-0.4-1.4 -0.3-0.4-0.6-0.7-1.1-0.9 0.4-0.2 0.7-0.5 1-0.9 0.3-0.4 0.4-0.8 0.4-1.2 0-0.9-0.3-1.5-0.8-2 -0.5-0.5-1.2-0.7-2.1-0.7 -0.5 0-1 0.1-1.5 0.3 -0.4 0.2-0.8 0.7-1 1.1S19.1 15 19.1 16h1.5c0-1 0.1-0.9 0.4-1.1 0.3-0.3 0.6-0.5 1-0.5 0.5 0 0.8 0.1 1 0.3s0.3 0.6 0.3 1.1c0 0.5-0.1 0.7-0.4 1C22.7 17 22.3 17 21.9 17H21V19z"/><path d="M47.8 7C50.1 7 52 8.9 52 11.2c0 1-0.3 1.8-0.8 2.5l-1.7 1.7L43.6 9.5l1.7-1.7C46 7.3 46.8 7 47.8 7zM30.7 22.4L29 30l7.6-1.7 11.6-11.6 -5.9-5.9L30.7 22.4zM42 17.9l-5.1 5.1 -0.9-0.9 5.1-5L42 17.9z"/></svg>',
options:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M19.8 34.5h-3.5c-0.5 0-0.7 0-2.5-4.5l-1.4-0.6c-3.7 1.7-4.2 1.7-4.3 1.7H7.9l-0.2-0.2 -2.5-2.5c-0.4-0.4-0.5-0.5 1.4-5l-0.6-1.4c-4.5-1.7-4.5-1.8-4.5-2.4v-3.5c0-0.5 0-0.7 4.5-2.5l0.6-1.4C4.5 8.1 4.7 8 5.1 7.6l2.6-2.6 0.3 0c0.4 0 1.9 0.6 4.4 1.6l1.4-0.6c1.7-4.5 1.9-4.5 2.4-4.5h3.5c0.5 0 0.7 0 2.5 4.5l1.4 0.6c3.7-1.7 4.2-1.7 4.3-1.7h0.3l0.2 0.2 2.5 2.5c0.4 0.4 0.5 0.5-1.4 5l0.6 1.4c4.5 1.6 4.5 1.8 4.5 2.4v3.5c0 0.5 0 0.7-4.5 2.5l-0.6 1.4c2 4.4 1.9 4.5 1.5 4.9l-2.7 2.7 -0.3 0c-0.4 0-1.9-0.6-4.4-1.6l-1.4 0.6C20.5 34.5 20.3 34.5 19.8 34.5zM16.7 33.1h2.7c0.3-0.7 1-2.4 1.5-3.9l0.1-0.3 2.5-1 0.3 0.1c1.5 0.6 3.2 1.4 3.9 1.6l1.9-1.9c-0.2-0.7-1-2.4-1.7-3.8l-0.1-0.3 1-2.5 0.3-0.1c1.5-0.6 3.2-1.3 3.9-1.6v-2.7c-0.7-0.3-2.4-1-3.9-1.5l-0.3-0.1 -1-2.5 0.1-0.3c0.6-1.5 1.3-3.2 1.6-3.9l-1.9-1.9c-0.6 0.2-2.4 1-3.8 1.7l-0.3 0.1L21.1 7.1l-0.1-0.3c-0.6-1.5-1.3-3.2-1.7-3.9h-2.7c-0.3 0.7-1 2.4-1.5 3.9l-0.1 0.3 -2.5 1 -0.3-0.1c-1.5-0.6-3.2-1.4-3.9-1.6l-1.9 1.9c0.2 0.7 1 2.4 1.6 3.8l0.1 0.3 -1 2.5 -0.3 0.1c-1.5 0.6-3.2 1.3-3.9 1.6v2.7c0.7 0.3 2.4 1 3.9 1.5l0.3 0.1 1 2.5 -0.1 0.3c-0.6 1.5-1.3 3.2-1.6 3.9l1.9 1.9c0.6-0.2 2.4-1 3.8-1.7l0.3-0.1 2.5 1 0.1 0.3C15.6 30.7 16.4 32.4 16.7 33.1zM18 23.8c-3.2 0-5.8-2.6-5.8-5.8 0-3.2 2.6-5.8 5.8-5.8 3.2 0 5.8 2.6 5.8 5.8C23.8 21.2 21.2 23.8 18 23.8z"/></svg>',
fields:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><style>.a{fill:none;}</style><path d="M2 25.2v-3.4l2.5-0.4c0.2-0.7 0.5-1.4 0.9-2.1l-1.4-2 2.4-2.4 2 1.4c0.7-0.4 1.4-0.7 2.1-0.9L10.8 13h3.4l0.4 2.5c0.7 0.2 1.4 0.5 2.1 0.9l2-1.4 2.4 2.4 -1.4 2c0.4 0.7 0.7 1.4 0.9 2.1L23 21.8v3.4l-2.5 0.4c-0.2 0.7-0.5 1.4-0.9 2.1l1.4 2 -2.4 2.4 -2-1.5c-0.7 0.4-1.4 0.7-2.1 0.9L14.2 34h-3.4l-0.4-2.5c-0.7-0.2-1.4-0.5-2.1-0.9l-2 1.5 -2.4-2.4 1.4-2c-0.4-0.7-0.7-1.4-0.9-2.1L2 25.2zM12.5 27c1.9 0 3.5-1.6 3.5-3.5 0-1.9-1.6-3.5-3.5-3.5S9 21.6 9 23.5C9 25.4 10.6 27 12.5 27z"/><polygon points="24 18.9 24 12 17.3 12 24 18.9 " class="a"/><polygon points="32 27 32 20 25 20 25 24 25 27 32 27 " class="a"/><polygon points="16 4 9 4 9 11 12.5 11 16 11 16 4 " class="a"/><polygon points="17 11 24 11 24 4 17 4 17 11 " class="a"/><polygon points="25 19 32 19 32 12 25 12 25 19 " class="a"/><polygon points="25 11 32 11 32 4 25 4 25 11 " class="a"/><path d="M33 3H8v8.9L11 11H9V4h7v7h-2l3.3 1H24v6.9L25 22v-2h7v7h-7v-2l-1 3h9V3zM24 11h-7V4h7V11L24 11zM32 19h-7v-7h7V19L32 19zM32 11h-7V4h7V11L32 11z"/></svg>',
fullscreen:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><polygon points="31 13 31 5 23 5 23 6 29.3 6 22.3 13 13.7 13 6.7 6 13 6 13 5 5 5 5 13 6 13 6 6.7 13 13.7 13 22.3 6 29.3 6 23 5 23 5 31 13 31 13 30 6.7 30 13.7 23 22.3 23 29.3 30 23 30 23 31 31 31 31 23 30 23 30 29.3 23 22.3 23 13.7 30 6.7 30 13 "/></svg>',minimize:'<svg xmlns="http://www.w3.org/2000/svg" width="36px" height="36px" enable-background="new -0.5 0.5 36 36" version="1.1" viewBox="-0.5 0.5 36 36" xml:space="preserve"><polygon points="10.796 12.499 4.5 12.5 4.5 13.5 12.496 13.5 12.5 5.5 11.5 5.5 11.497 11.799 4.628 4.924 3.925 5.622"/><rect x="12.5" y="13.5" width="10" height="10"/><line x1="13" x2="13" y1="13.7" y2="13.7"/><line x1="13.7" x2="13.7" y1="13" y2="13"/><polygon points="11.492 25.2 11.5 31.497 12.5 31.496 12.491 23.5 4.491 23.506 4.492 24.506 10.791 24.501 3.924 31.378 4.623 32.08"/><polygon points="24.2 24.506 30.497 24.5 30.496 23.5 22.5 23.506 22.502 31.506 23.502 31.505 23.5 25.206 30.373 32.076 31.076 31.378"/><polygon points="23.506 11.8 23.5 5.503 22.5 5.504 22.506 13.5 30.506 13.498 30.505 12.498 24.206 12.5 31.076 5.627 30.378 4.924"/></svg>'};
FlexmonsterToolbar.prototype.connectLocalCSVHandler=function(){this.pivot.connectTo({type:"csv",browseForFile:!0})};FlexmonsterToolbar.prototype.connectLocalJSONHandler=function(){this.pivot.connectTo({type:"json",browseForFile:!0})};FlexmonsterToolbar.prototype.connectRemoteCSV=function(){this.showConnectToRemoteCSVDialog()};FlexmonsterToolbar.prototype.connectRemoteJSON=function(){this.showConnectToRemoteJsonDialog()};FlexmonsterToolbar.prototype.connectOLAP=function(){this.showConnectToOLAPDialog()};
FlexmonsterToolbar.prototype.connectElastic=function(){this.showConnectToElasticDialog()};FlexmonsterToolbar.prototype.openLocalReport=function(){this.pivot.open()};FlexmonsterToolbar.prototype.openRemoteReport=function(){this.showOpenRemoteReportDialog()};FlexmonsterToolbar.prototype.saveHandler=function(){this.pivot.save("report.json","file")};FlexmonsterToolbar.prototype.gridHandler=function(){this.pivot.showGrid()};
FlexmonsterToolbar.prototype.chartsHandler=function(a){var b=((this.pivot.getOptions()||{}).chart||{}).multipleMeasures,c=this.getElementById("fm-tab-charts-multiple");null!=c&&this.disableMultipleValues(a,b,c);this.pivot.showCharts(a,b)};
FlexmonsterToolbar.prototype.chartsMultipleHandler=function(){var a=(this.pivot.getOptions()||{}).chart||{},b=a.type;a=!a.multipleMeasures;var c=this.getElementById("fm-tab-charts-multiple");a?this.addClass(c,"fm-selected"):this.removeClass(c,"fm-selected");"pie"==b||"stacked_column"==b||"column_line"==b?this.removeClass(c,"fm-selected"):this.pivot.showCharts(b,a)};
FlexmonsterToolbar.prototype.checkChartMultipleMeasures=function(){var a=(this.pivot.getOptions()||{}).chart||{},b=a.multipleMeasures,c=this.getElementById("fm-tab-charts-multiple");null!=c&&this.disableMultipleValues(a.type,b,c)};
FlexmonsterToolbar.prototype.disableMultipleValues=function(a,b,c){var d=this.Labels;if("pie"==a||"stacked_column"==a||"column_line"==a){b="";switch(a){case "pie":b=d.charts_pie;break;case "stacked_column":b=d.charts_stacked_column;break;case "column_line":b=d.charts_column_line}c.classList.remove("fm-selected");c.classList.add("fm-ui-disabled");c.setAttribute("aria-checked","false");c.setAttribute("aria-disavled","true");c.setAttribute("title",d.charts_multiple_disabled+b.toLocaleLowerCase()+" "+
d.charts.toLocaleLowerCase())}else b?(c.classList.add("fm-selected"),c.classList.remove("fm-ui-disabled"),c.removeAttribute("title"),c.setAttribute("aria-checked","true")):(c.classList.remove("fm-ui-disabled"),c.removeAttribute("title"),c.setAttribute("aria-checked","false"))};FlexmonsterToolbar.prototype.formatCellsHandler=function(a,b){this.showFormatCellsDialog(a,b)};FlexmonsterToolbar.prototype.conditionalFormattingHandler=function(a){this.showConditionalFormattingDialog(a)};
FlexmonsterToolbar.prototype.optionsHandler=function(){this.showOptionsDialog()};FlexmonsterToolbar.prototype.fieldsHandler=function(){this.pivot.openFieldsList()};FlexmonsterToolbar.prototype.printHandler=function(){this.pivot.print()};FlexmonsterToolbar.prototype.exportHandler=function(a){"pdf"==a?this.showExportPdfDialog():this.pivot.exportTo(a)};FlexmonsterToolbar.prototype.shareReportHandler=function(){this.pivot.shareReport()};FlexmonsterToolbar.prototype.fullscreenHandler=function(){this.toggleFullscreen()};
FlexmonsterToolbar.prototype.defaults={};
FlexmonsterToolbar.prototype.showConnectToRemoteCSVDialog=function(){var a=this,b=this.Labels,c=this.popupManager.createPopup();c.content.classList.add("fm-popup-w500");c.setTitle(b.open_remote_csv);c.setToolbar([{id:"fm-btn-open",label:b.open,handler:function(){0<d.value.length&&a.pivot.connectTo({filename:d.value,type:"csv"})},isPositive:!0},{id:"fm-btn-cancel",label:b.cancel}]);b=document.createElement("div");var d=document.createElement("input");d.classList.add("fm-inp-file-url");d.type="text";
d.value="https://cdn.flexmonster.com/data/data.csv";d.setAttribute("aria-label","URL");b.appendChild(d);c.setContent(b);c.initialFocusAt=d;this.popupManager.addPopup(c)};
FlexmonsterToolbar.prototype.showConnectToRemoteJsonDialog=function(){var a=this,b=this.Labels,c=this.popupManager.createPopup();c.content.classList.add("fm-popup-w500");c.setTitle(b.open_remote_json);c.setToolbar([{id:"fm-btn-open",label:b.open,handler:function(){0<d.value.length&&a.pivot.connectTo({filename:d.value,type:"json"})},isPositive:!0},{id:"fm-btn-cancel",label:b.cancel}]);b=document.createElement("div");var d=document.createElement("input");d.classList.add("fm-inp-file-url");d.type="text";
d.value="https://cdn.flexmonster.com/data/data.json";d.setAttribute("aria-label","URL");b.appendChild(d);c.setContent(b);c.initialFocusAt=d;this.popupManager.addPopup(c)};
FlexmonsterToolbar.prototype.showConnectToElasticDialog=function(){var a=this,b=this.Labels,c=function(g,q){g?a.popupManager.removePopup():(q=q.filter(function(u){return 0!=u.indexOf("z_test_")}),m.setDataProvider(q),m.setEnabled(!0))},d=this.popupManager.createPopup();d.content.classList.add("fm-popup-olap");d.content.classList.add("fm-popup-w570");d.setTitle(b.connect_elastic_title);d.setToolbar([{id:"fm-btn-open",label:b.ok,handler:function(){a.pivot.connectTo({type:"elasticsearch",host:f.value,
index:m.getValue()})},disabled:!0,isPositive:!0},{id:"fm-btn-cancel",label:b.cancel}]);var k=document.createElement("div"),h=document.createElement("div");h.classList.add("fm-inp-group");k.appendChild(h);var e=document.createElement("div");e.classList.add("fm-inp-row");e.classList.add("fm-ir-horizontal");h.appendChild(e);var f=document.createElement("input");f.type="text";f.classList.add("fm-inp");f.classList.add("fm-inp-proxy-url");f.id=this.guid();f.value="https://olap.flexmonster.com:9200";var t=
document.createElement("label");t.setAttribute("for",f.id);this.setText(t,b.host_url);var l=document.createElement("button");l.setAttribute("type","button");l.classList.add("fm-ui-btn");l.classList.add("fm-ui-btn-dark");l.classList.add("fm-btn-connect");this.setText(l,b.connect);l.onclick=function(){0!=f.value.length&&a.pivot.getElasticIndices({host:f.value},c)};e.appendChild(t);e.appendChild(f);e.appendChild(l);e=document.createElement("div");e.classList.add("fm-inp-row");e.classList.add("fm-ir-horizontal");
h.appendChild(e);var m=this.createSelect([],b.select_index);m.onchange=function(){a.setEnabled(a.getElementById("fm-btn-open"),!0)};m.setEnabled(!1);t=document.createElement("label");t.id=this.guid();m.dropdownButton.setAttribute("aria-labelledby",t.id);this.setText(t,b.index_name);e.appendChild(t);e.appendChild(m);d.setContent(k);d.initialFocusAt=f;this.popupManager.addPopup(d)};
FlexmonsterToolbar.prototype.showConnectToOLAPDialog=function(){var a=this,b=this.Labels,c=this,d=function(n){null!=n&&0<n.length?(u.setDataProvider(n),u.setEnabled(!0)):0==n.length&&c.popupManager.removePopup()},k=function(n){null!=n&&0<n.length&&(y.setDataProvider(n),y.setEnabled(!0))},h=function(n){null!=n&&0<n.length&&(z.setDataProvider(n),z.setEnabled(!0))},e=this.popupManager.createPopup();e.content.classList.add("fm-popup-olap");e.content.classList.add("fm-popup-w570");e.setTitle(this.osUtils.isMobile?
b.connect_olap_mobile:b.olap_connection_tool);e.setToolbar([{id:"fm-btn-open",label:b.ok,handler:function(){var n=a.pivot.getXMLAProviderName(m.value,"");a.pivot.connectTo({type:n,proxyUrl:m.value,dataSourceInfo:u.getValue(),catalog:y.getValue(),cube:z.getValue()})},disabled:!0,isPositive:!0},{id:"fm-btn-cancel",label:b.cancel}]);var f=document.createElement("div"),t=document.createElement("div");t.classList.add("fm-inp-group");f.appendChild(t);var l=document.createElement("div");l.classList.add("fm-inp-row");
l.classList.add("fm-ir-horizontal");t.appendChild(l);var m=document.createElement("input");m.type="text";m.id=this.guid();m.classList.add("fm-inp");m.classList.add("fm-inp-proxy-url");m.value="https://olap.flexmonster.com/olap/msmdpump.dll";var g=document.createElement("label");g.setAttribute("for",m.id);this.setText(g,b.proxy_url);var q=document.createElement("button");q.setAttribute("type","button");q.classList.add("fm-ui-btn");q.classList.add("fm-ui-btn-dark");q.classList.add("fm-btn-connect");
this.setText(q,b.connect);q.onclick=function(){0!=m.value.length&&a.pivot.getXMLADataSources(m.value,d)};l.appendChild(g);l.appendChild(m);l.appendChild(q);l=document.createElement("div");l.classList.add("fm-inp-row");l.classList.add("fm-ir-horizontal");t.appendChild(l);var u=this.createSelect([],b.select_data_source);u.setEnabled(!1);u.onchange=function(){a.pivot.getXMLACatalogs(m.value,u.getValue(),k)};g=document.createElement("label");g.id=this.guid();u.dropdownButton.setAttribute("aria-labelledby",
g.id);this.setText(g,b.data_source_info);l.appendChild(g);l.appendChild(u);l=document.createElement("div");l.classList.add("fm-inp-row");l.classList.add("fm-ir-horizontal");t.appendChild(l);var y=this.createSelect([],b.select_catalog);y.setEnabled(!1);y.onchange=function(){a.pivot.getXMLACubes(m.value,u.getValue(),y.getValue(),h)};g=document.createElement("label");g.id=this.guid();y.dropdownButton.setAttribute("aria-labelledby",g.id);this.setText(g,b.catalog);l.appendChild(g);l.appendChild(y);l=document.createElement("div");
l.classList.add("fm-inp-row");l.classList.add("fm-ir-horizontal");t.appendChild(l);var z=this.createSelect([],b.select_cube);z.setEnabled(!1);z.onchange=function(){a.setEnabled(a.getElementById("fm-btn-open"),!0)};g=document.createElement("label");g.id=this.guid();z.dropdownButton.setAttribute("aria-labelledby",g.id);this.setText(g,b.cube);l.appendChild(g);l.appendChild(z);e.setContent(f);e.initialFocusAt=m;this.popupManager.addPopup(e)};
FlexmonsterToolbar.prototype.showOpenRemoteReportDialog=function(){var a=this,b=this.Labels,c=this.popupManager.createPopup();c.content.classList.add("fm-popup-w500");c.setTitle(b.open_remote_report);c.setToolbar([{id:"fm-btn-open",label:b.open,handler:function(){0<d.value.length&&a.pivot.load(d.value)},isPositive:!0},{id:"fm-btn-cancel",label:b.cancel}]);b=document.createElement("div");var d=document.createElement("input");d.type="text";d.setAttribute("aria-label","URL");var k=a.pivot.getOptions()||
{};d.value=k.grid&&"flat"==k.grid.type?"https://cdn.flexmonster.com/reports/report-flat.json":"https://cdn.flexmonster.com/reports/report.json";b.appendChild(d);c.setContent(b);c.initialFocusAt=d;this.popupManager.addPopup(c)};
FlexmonsterToolbar.prototype.defaults.numberFormatting={textAligns:[{label:"align_left",value:"left"},{label:"align_right",value:"right"},{label:"align_center",value:"center"}],thousandsSeparators:[{label:"none",value:""},{label:"space",value:" "},{label:",",value:","},{label:".",value:"."}],decimalSeparators:[{label:",",value:","},{label:".",value:"."}],decimalPlaces:[{label:"none",value:-1},{label:"0",value:0},{label:"1",value:1},{label:"2",value:2},{label:"3",value:3},{label:"4",value:4},{label:"5",
value:5},{label:"6",value:6},{label:"7",value:7},{label:"8",value:8},{label:"9",value:9}],positiveCurrencyFormats:[{label:"$1",value:"$1"},{label:"1$",value:"1$"}],negativeCurrencyFormats:[{label:"-$1",value:"-$1"},{label:"-1$",value:"-1$"},{label:"$-1",value:"$-1"},{label:"$1-",value:"$1-"},{label:"1-$",value:"1-$"},{label:"1$-",value:"1$-"},{label:"($1)",value:"($1)"},{label:"(1$)",value:"(1$)"},{label:"$(1)",value:"$(1)"},{label:"(1)$",value:"(1)$"},{label:"1$",value:"1$"},{label:"$1",value:"$1"}],
negativeNumberFormats:[{label:"-1",value:"-1"},{label:"- 1",value:"- 1"},{label:"1-",value:"1-"},{label:"1 -",value:"1 -"},{label:"(1)",value:"(1)"},{label:"1",value:"1"}],isPercent:[{label:"true_value",value:!0},{label:"false_value",value:!1}]};FlexmonsterToolbar.prototype.ConfirmationPopUp=function(){};
FlexmonsterToolbar.prototype.showFormatCellsDialog=function(a,b){function c(p,B){B=B.replace(/\$/g,"$$$$");return p.map(function(G){return{label:G.label.replace(/\$/g,B),value:G.value}})}function d(p){t.textAlign!=C.getValue()&&(p.textAlign=C.getValue());t.thousandsSeparator!=A.getValue()&&(p.thousandsSeparator=A.getValue());t.decimalSeparator!=K.getValue()&&(p.decimalSeparator=K.getValue());t.decimalPlaces!=F.getValue()&&(p.decimalPlaces=F.getValue());t.currencySymbol!=H.value&&(p.currencySymbol=
H.value);t.positiveCurrencyFormat!=I.getValue()&&""!=I.getValue()&&(p.positiveCurrencyFormat=I.getValue());t.negativeCurrencyFormat!=J.getValue()&&""!=J.getValue()&&(p.negativeCurrencyFormat=J.getValue());t.negativeNumberFormat!=R.getValue()&&""!=R.getValue()&&(p.negativeNumberFormat=R.getValue());t.nullValue!=Q.value&&(p.nullValue=Q.value);t.isPercent!=T.getValue()&&(p.isPercent=T.getValue());return p}function k(){}function h(p){return p.map(function(B){return{label:void 0!==f[B.label]?f[B.label]:
B.label,value:B.value}})}var e=this,f=this.Labels,t=void 0;k.prototype.createPopUp=function(){null==this.dialog&&(this.dialog=e.popupManager.createPopup(this),this.dialog.content.style.zIndex=152)};k.prototype.addPopUp=function(){var p=this.dialog.content;this.modalOverlay=this.createModalOverlay();e.toolbarWrapper.appendChild(p);e.toolbarWrapper.appendChild(this.modalOverlay);e.popupManager.addLayoutClasses(p);e.popupManager.centerPopup(p);var B=this;p.resizeHandler=function(){p&&(B.addLayoutClasses(p),
B.centerPopup(p))};window.addEventListener("resize",p.resizeHandler)};k.prototype.initializePopUp=function(){this.dialog.setTitle(f.confirm_title);y.dialog.setToolbar([{id:"fm-btn-apply",label:f.ok,handler:g,isPositive:!0},{id:"fm-btn-cancel",label:f.cancel,handler:m}],!1,this.removePopUp);var p=document.createElement("div"),B=document.createElement("label");B.innerHTML=e.toTrustedHtml(f.confirm_message);B.style.fontSize="14px";p.appendChild(B);this.dialog.setContent(p)};k.prototype.removePopUp=function(p){p=
p||y.dialog.content;null!=y.modalOverlay&&(e.toolbarWrapper.removeChild(y.modalOverlay),y.modalOverlay=null);null!=p&&(e.toolbarWrapper.removeChild(p),y.dialog=null,window.removeEventListener("resize",p.resizeHandler))};k.prototype.createModalOverlay=function(){var p=document.createElement("div");p.style.zIndex=151;p.classList.add("fm-modal-overlay");p.classList.add("fm-popup-confirm-modal-overlay");var B=this;p.addEventListener("click",function(G){B.removePopUp(B.dialog.content);m()});return p};
var l=void 0,m=function(){x.setValue(l)},g=function(){var p=null!=x.getValue();C.setEnabled(p);A.setEnabled(p);K.setEnabled(p);F.setEnabled(p);I.setEnabled(p);J.setEnabled(p);R.setEnabled(p);T.setEnabled(p);e.setEnabled(H,p);e.setEnabled(Q,p);t=p=(p=(l=x.getValue())?l[0].split("_@@_@@_@@_",2):null)?e.pivot.getFormat(p[0],p[1]):e.pivot.getFormat(null);if("flat"===e.pivot.getOptions({withDefaults:!0}).grid.type&&l&&0<l.length){var B=e.pivot.getMeasures();for(var G=null,L=0;L<B.length;L++)-1!==l.indexOf(B[L].uniqueName)&&
(G=B[L]);B=null!=G&&"number"!=G.type}else B=!1;B?(D.classList.add("fm-hide"),M.classList.add("fm-hide"),N.classList.add("fm-hide"),U.classList.add("fm-hide"),O.classList.add("fm-hide"),P.classList.add("fm-hide"),V.classList.add("fm-hide"),W.classList.add("fm-hide")):(D.classList.remove("fm-hide"),M.classList.remove("fm-hide"),N.classList.remove("fm-hide"),U.classList.remove("fm-hide"),O.classList.remove("fm-hide"),P.classList.remove("fm-hide"),V.classList.remove("fm-hide"),W.classList.remove("fm-hide"));
C.setValue(void 0!==p.textAlign?p.textAlign:"right");A.setValue(p.thousandsSeparator);K.setValue(p.decimalSeparator);F.setValue(p.decimalPlaces);H.value=p.currencySymbol;I.setDataProvider(c(e.defaults.numberFormatting.positiveCurrencyFormats,p.currencySymbol));I.setValue(p.positiveCurrencyFormat);J.setDataProvider(c(e.defaults.numberFormatting.negativeCurrencyFormats,p.currencySymbol));J.setValue(p.negativeCurrencyFormat);R.setValue(p.negativeNumberFormat);Q.value=p.nullValue;T.setValue(1==p.isPercent?
!0:!1);""==p.currencySymbol||null==p.currencySymbol?(O.classList.add("fm-hide"),P.classList.add("fm-hide"),S.classList.remove("fm-hide")):(O.classList.remove("fm-hide"),P.classList.remove("fm-hide"),S.classList.add("fm-hide"))},q=function(p){var B=p.availableAggregations.indexOf(p.aggregation);B=-1===B||"none"===p.aggregation||p.calculated?null:p.availableAggregationsCaptions[B];return null===B||e.singleAggregationFormatting?p.name:p.name+" ("+B+")"},u=this.popupManager.createPopup(),y=new k;u.content.classList.add("fm-popup-format-cells");
u.setTitle(this.osUtils.isMobile?f.format:f.format_cells);u.setToolbar([{id:"fm-btn-apply",label:f.apply,handler:function(){var p=""!=t.name||""==x.getValue()[0]?e.pivot.getReport():{},B=void 0;if(p.hasOwnProperty("formats")&&0<p.formats.length)for(var G=0;G<p.formats.length;G++)if(t.name==p.formats[G].name){B=p.formats[G];break}void 0===B&&(B={});""===x.getValue()[0]&&(B.name="");B.name&&""!==B.name&&delete B.name;d(B);t=void 0;p=x.getValue();for(G=0;G<p.length;G++){var L=p[G].split("_@@_@@_@@_",
2);e.pivot.setFormat(B,""==L[0]?null:L[0],e.singleAggregationFormatting?void 0:L[1])}e.pivot.refresh()},isPositive:!0},{id:"fm-btn-cancel",label:f.cancel}],!0);var z=document.createElement("div"),n=document.createElement("div");n.classList.add("fm-inp-group");z.appendChild(n);for(var E=[{value:"",label:f.default_value}],w={},r=e.pivot.getMeasures(),v=0;v<r.length;v++)if(!w[r[v].uniqueName]||w[r[v].uniqueName]&&!w[r[v].uniqueName][r[v].aggregation]&&!this.singleAggregationFormatting)w[r[v].uniqueName]||
(w[r[v].uniqueName]={}),w[r[v].uniqueName][r[v].aggregation]=!0,E.push({value:r[v].uniqueName+"_@@_@@_@@_"+r[v].aggregation,label:q(r[v])});var x=this.createSelect(E,f.choose_value,!0);x.onchange=function(){var p={};p=d(p);(p.hasOwnProperty("textAlign")||p.hasOwnProperty("thousandsSeparator")||p.hasOwnProperty("decimalSeparator")||p.hasOwnProperty("decimalPlaces")||p.hasOwnProperty("currencySymbol")||p.hasOwnProperty("positiveCurrencyFormat")||p.hasOwnProperty("negativeCurrencyFormat")||p.hasOwnProperty("nullValue")||
p.hasOwnProperty("isPercent"))&&l&&0<l.length?(y.createPopUp(),y.initializePopUp(),y.addPopUp()):g()};a&&b&&x.setValue([a+"_@@_@@_@@_"+b]);a=this.createInputRow(f.choose_value,x);a.querySelector("label").classList.add("fm-uc");n.appendChild(a);n=document.createElement("div");n.classList.add("fm-inp-group");z.appendChild(n);var C=this.createSelect(h(this.defaults.numberFormatting.textAligns));n.appendChild(this.createInputRow(f.text_align,C));var A=this.createSelect(h(this.defaults.numberFormatting.thousandsSeparators)),
D=this.createInputRow(f.thousands_separator,A);n.appendChild(D);var K=this.createSelect(h(this.defaults.numberFormatting.decimalSeparators)),M=this.createInputRow(f.decimal_separator,K);n.appendChild(M);var F=this.createSelect(h(this.defaults.numberFormatting.decimalPlaces)),N=this.createInputRow(f.decimal_places,F);n.appendChild(N);var H=document.createElement("input");H.classList.add("fm-inp");H.type="text";var U=this.createInputRow(f.currency_symbol,H);n.appendChild(U);var I=this.createSelect(),
O=this.createInputRow(f.positive_currency_format,I);O.classList.add("fm-popup-format-cells-positive-currency");n.appendChild(O);var J=this.createSelect(),P=this.createInputRow(f.negative_currency_format,J);P.classList.add("fm-popup-format-cells-negative-currency");n.appendChild(P);var R=this.createSelect(h(this.defaults.numberFormatting.negativeNumberFormats)),S=this.createInputRow(f.negative_number_format,R);S.classList.add("fm-popup-format-cells-negative-number");n.appendChild(S);H.addEventListener("input",
function(p){p=H.value;if(p.trim()){O.classList.remove("fm-hide");P.classList.remove("fm-hide");S.classList.add("fm-hide");var B=I.getValue();I.setDataProvider(c(e.defaults.numberFormatting.positiveCurrencyFormats,p));I.setValue(B);B=J.getValue();J.setDataProvider(c(e.defaults.numberFormatting.negativeCurrencyFormats,p));J.setValue(B)}else O.classList.add("fm-hide"),P.classList.add("fm-hide"),S.classList.remove("fm-hide")});var Q=document.createElement("input");Q.classList.add("fm-inp");Q.type="text";
var V=this.createInputRow(f.null_value,Q);n.appendChild(V);var T=this.createSelect(h(this.defaults.numberFormatting.isPercent)),W=this.createInputRow(f.is_percent,T);n.appendChild(W);u.setContent(z);u.initialFocusAt=x.dropdownButton;this.popupManager.addPopup(u);g()};
FlexmonsterToolbar.prototype.showConditionalFormattingDialog=function(a){var b=this;a=this.Labels;var c=this.pivot.getAllConditions(),d=this.pivot.getReport().dataSource.type,k="microsoft analysis services"===d||"mondrian"===d,h=b.pivot.getAllMeasures(),e=b.pivot.getMeasures(),f={},t=[],l={},m=[],g=function(n){return n.uniqueName+"_@@_@@_@@_"+n.aggregation};for(d=0;d<c.length;d++)f[c[d].measure]=1;for(d=0;d<h.length;d++){var q=k?h[d].uniqueName:g(h[d]);1===f[h[d].uniqueName]&&void 0===l[q]&&(l[q]=
1,t.push(h[d].uniqueName),m.push(h[d]))}for(d=0;d<e.length;d++)if(q=k?e[d].uniqueName:g(e[d]),("number"===e[d].type||"float"===e[d].type||"long"===e[d].type)&&void 0===l[q]||void 0===e[d].type&&void 0===l[q])l[q]=1,m.push(e[d]);l=t=f=e=h=void 0;d=function(){var n=b.defaults.defaultConditionalFormat?JSON.parse(JSON.stringify(b.defaults.defaultConditionalFormat)):{fontFamily:"Arial",fontSize:"12px",color:"#000000",backgroundColor:"#FFFFFF"};n={sign:"<",value1:"0",measures:m,format:n};c.unshift(n);n=
b.createConditionalFormattingItem(n,c,k);y.insertBefore(n,y.firstChild);n.focus();y.scrollTop=0;0<c.length&&(z.style.display="none");b.popupManager.centerPopup(u.content)};h=function(n){for(var E=[],w=!1,r="",v=0;v<n.length;v++)'"'==n[v]||"'"==n[v]?(w?E.push(r):r="",w=!w):w&&(r+=n[v]);w=n.match(/\W\d+\.*\d*/g);if(w){r=[];for(v=0;v<w.length;v++)isNaN(Number(w[v]))||r.push(w[v]);w=r}n=n.match(/<=|>=|<|>|=|=|!=|isNaN/g);return null==w&&null==E?{}:{value1:null!=w?w[0].replace(/\s/,""):E[0],value2:null!=
w&&1<w.length?w[1].replace(/\s/,""):"",sign:n?n.join(""):""}};var u=this.popupManager.createPopup();u.content.classList.add("fm-popup-conditional");u.setTitle(this.osUtils.isMobile?a.conditional:a.conditional_formatting);u.setToolbar([{id:"fm-btn-apply",label:a.apply,handler:function(){b.pivot.removeAllConditions();for(var n=0;n<c.length;n++){var E=c[n].sign;var w=c[n].value1,r=c[n].value2,v="",x=null==r||0==r.length,C="><"===E,A="isNaN"===E;(null==w||0==w.length)&&!A||C&&x||(C&&!x?v="AND(#value > "+
w+", #value < "+r+")":A?v="isNaN(#value)":(isNaN(parseFloat(w))&&(w="'"+w+"'"),v="#value "+E+" "+w));E=v;if(null==E)return;c[n].formula=E;b.pivot.addCondition(c[n])}b.pivot.refresh()},isPositive:!0},{id:"fm-btn-cancel",label:a.cancel}],!0);e=document.createElement("button");e.setAttribute("type","button");e.classList.add("fm-ui-btn");e.classList.add("fm-ui-btn-light");e.classList.add("fm-button-add");e.onclick=d;e.setAttribute("title",a.tooltips.add_condition);f=document.createElement("span");f.classList.add("fm-icon");
f.classList.add("fm-icon-act_add");e.appendChild(f);u.toolbar.insertBefore(e,u.toolbar.firstChild);var y=document.createElement("div");y.classList.add("fm-popup-content");y.onclick=function(n){n.target.classList.contains("fm-cr-delete")&&(0==c.length&&(z.style.display="block"),b.popupManager.centerPopup(u.content))};var z=document.createElement("div");z.classList.add("fm-popup-placeholder");y.appendChild(z);f=document.createElement("div");f.classList.add("fm-popup-placeholder-text");b.setText(f,a.no_active_conditions);
z.appendChild(f);t=document.createElement("button");t.setAttribute("type","button");t.classList.add("fm-ui-btn");t.classList.add("fm-ui-btn-light");t.classList.add("fm-button-add-large");t.onclick=d;b.setText(t,a.add_condition_button);f=document.createElement("span");f.classList.add("fm-icon");f.classList.add("fm-icon-act_add");t.insertBefore(f,t.firstChild);z.appendChild(t);for(d=0;d<c.length;d++)a=h(c[d].formula),c[d].value1=a.value1,c[d].value2=a.value2,c[d].sign=a.sign,c[d].measures=m,y.appendChild(b.createConditionalFormattingItem(c[d],
c,k));0<c.length&&(z.style.display="none");u.initialFocusAt=e;u.setContent(y);this.popupManager.addPopup(u)};FlexmonsterToolbar.prototype.defaults.defaultConditionalFormat={fontFamily:"Arial",fontSize:"12px",color:"#000000",backgroundColor:"#FFFFFF"};FlexmonsterToolbar.prototype.defaults.fontSizes="8px 9px 10px 11px 12px 13px 14px".split(" ");FlexmonsterToolbar.prototype.defaults.fonts="Arial;Lucida Sans Unicode;Verdana;Courier New;Palatino Linotype;Tahoma;Impact;Trebuchet MS;Georgia;Times New Roman".split(";");
FlexmonsterToolbar.prototype.defaults.conditions=[{label:"less_than",value:"<"},{label:"less_than_or_equal",value:"<="},{label:"greater_than",value:">"},{label:"greater_than_or_equal",value:">="},{label:"equal_to",value:"="},{label:"not_equal_to",value:"!="},{label:"between",value:"><"},{label:"is_empty",value:"isNaN"}];
FlexmonsterToolbar.prototype.createConditionalFormattingItem=function(a,b,c){function d(A,D,K){var M=k.pivot.getOptions()||{},F=A.filter(function(H){return H.uniqueName===D}).pop();M=M.grid&&"flat"==M.grid.type;var N=[{label:h.all_values,value:""}];D&&""===K&&F&&!F.calculated&&!c&&(F=A.filter(function(H){return H.uniqueName===D}),N.push({label:0<F.length?F[0].name+" ("+h.all+")":D+" ("+h.all+")",value:D}));for(F=0;F<A.length;F++)M&&7==A[F].type||(N.push({label:f(A[F]),value:e(A[F].uniqueName,A[F].aggregation)}),
D=="[Measures].["+A[F].uniqueName+"]"&&(D=A[F].uniqueName));y.setDataProvider(N);y.setValue(D&&void 0!==K?e(D,K):D?D:N[0].value)}var k=this,h=this.Labels,e=function(A,D){return c||"none"===D||""===D?A:A+"_@@_@@_@@_"+D},f=function(A){var D=A.availableAggregations.indexOf(A.aggregation);D=-1===D||"none"===A.aggregation||A.calculated?null:A.availableAggregationsCaptions[D];return null===D||c?A.name:A.name+" ("+D+")"},t=function(){"sign"in a&&"><"===a.sign?(n.classList.remove("fm-width120"),n.classList.add("fm-width50"),
n.style.display="inline-block",w.value="value2"in a?a.value2:"0",w.style.display="inline-block",E.style.display="inline-block"):("sign"in a&&"isNaN"===a.sign?n.style.display="none":(n.classList.add("fm-width120"),n.classList.remove("fm-width50"),n.style.display="inline-block"),w.style.display="none",E.style.display="none")},l=function(){var A=a.format;null!=A&&(C.style.backgroundColor=A.backgroundColor||"#fff",C.style.color=A.color||"#000",C.style.fontFamily=A.fontFamily||"Arial",C.style.fontSize=
A.fontSize||"12px")},m=document.createElement("div");m.classList.add("fm-condition-row");var g=document.createElement("div");m.appendChild(g);var q=document.createElement("div");q.classList.add("fm-cr-inner");g.appendChild(q);var u=document.createElement("div");u.classList.add("fm-cr-lbl");u.classList.add("fm-width50");k.setText(u,h.value+":");q.appendChild(u);var y=this.createSelect();y.classList.add("fm-values");a.measures&&0<a.measures.length?d(a.measures,a.measure,a.aggregation):y.setEnabled(!1);
y.onchange=function(){var A=y.getValue().split("_@@_@@_@@_",2);a.measure=A[0];a.aggregation=A[1]};y.setAttribute("title",h.value);y.dropdownButton.setAttribute("aria-label",h.value);q.appendChild(y);var z=this.createSelect(function(A){return A.map(function(D){return{label:void 0!==h[D.label]?h[D.label]:D.label,value:D.value}})}(this.defaults.conditions));z.classList.add("fm-conditions");z.setValue(a.sign);z.onchange=function(){a.sign=z.getValue();"sign"in a&&"><"===a.sign?a.value2=0:("sign"in a&&
"isNaN"===a.sign&&delete a.value1,delete a.value2);t()};z.setAttribute("title",h.tooltips.condition);z.dropdownButton.setAttribute("aria-label",h.tooltips.condition);q.appendChild(z);var n=document.createElement("input");n.classList.add("fm-number-inp");n.classList.add("fm-width50");n.type="number";n.value="value1"in a?a.value1:"0";n.onchange=function(){a.value1=0==n.value.length?"0":n.value};q.appendChild(n);var E=document.createElement("span");E.classList.add("fm-and-label");E.classList.add("fm-width20");
k.setText(E,h.and_symbole);q.appendChild(E);var w=document.createElement("input");w.classList.add("fm-number-inp");w.classList.add("fm-width50");w.type="number";w.value="value2"in a?a.value2:"0";w.onchange=function(){a.value2=0==w.value.length?"0":w.value};q.appendChild(w);t();q=document.createElement("div");q.classList.add("fm-cr-inner");g.appendChild(q);u=document.createElement("div");u.classList.add("fm-cr-lbl");u.classList.add("fm-width50");k.setText(u,h.format+":");q.appendChild(u);var r=this.createSelect(this.defaults.fonts);
r.classList.add("fm-font-family");r.setValue(a.hasOwnProperty("format")&&a.format.hasOwnProperty("fontFamily")?a.format.fontFamily:this.defaults.fonts[0]);r.onchange=function(){null!=a.format&&(a.format.fontFamily=r.getValue(),l())};r.setAttribute("title",h.tooltips.font);r.dropdownButton.setAttribute("aria-label",h.tooltips.font);q.appendChild(r);var v=this.createSelect(this.defaults.fontSizes);v.classList.add("fm-font-size");v.setValue(a.hasOwnProperty("format")&&a.format.hasOwnProperty("fontSize")?
a.format.fontSize:"12px");v.onchange=function(){null!=a.format&&(a.format.fontSize=v.getValue(),l())};v.setAttribute("title",h.tooltips.font_size);v.dropdownButton.setAttribute("aria-label",h.tooltips.font_size);q.appendChild(v);var x=new FlexmonsterToolbar.ColorPicker(this,m);x.setColor(a.hasOwnProperty("format")&&a.format.hasOwnProperty("backgroundColor")?a.format.backgroundColor:"0xFFFFFF","bg");x.setColor(a.hasOwnProperty("format")&&a.format.hasOwnProperty("color")?a.format.color:"0x000000","font");
x.changeHandler=function(){null!=a.format&&(C.style.color=x.fontColor||"#000",C.style.backgroundColor=x.backgroundColor||"#fff")};x.applyHandler=function(){null!=a.format&&(a.format.color=x.fontColor,a.format.backgroundColor=x.backgroundColor,l())};x.cancelHandler=function(){null!=a.format&&(x.setColor(a.format.hasOwnProperty("backgroundColor")?a.format.backgroundColor:"0xFFFFFF","bg"),x.setColor(a.format.hasOwnProperty("color")?a.format.color:"0x000000","font"));l()};q.appendChild(x.element);var C=
document.createElement("input");C.setAttribute("tabindex","-1");C.classList.add("fm-sample");C.classList.add("fm-inp");C.type="number";C.value="73.93";C.style.pointerEvents="none";q.appendChild(C);l();q=document.createElement("div");q.style.position="relative";g.appendChild(q);g=document.createElement("a");g.classList.add("fm-cr-delete");g.classList.add("fm-icon");g.classList.add("fm-icon-act_trash");g.onclick=function(){var A=b.indexOf(a);-1<A&&b.splice(A,1);m.parentNode.removeChild(m)};g.setAttribute("title",
h.tooltips.remove_condition);g.setAttribute("role","button");q.appendChild(g);this.makeSelectableByKeyboard(g);return m};
FlexmonsterToolbar.prototype.showOptionsDialog=function(){var a=this,b=this.Labels,c=this.popupManager.createPopup();c.content.classList.add("fm-popup-options");c.setTitle(this.osUtils.isMobile?b.options:b.layout_options);c.setToolbar([{id:"fm-btn-apply",label:b.apply,handler:function(){var q=a.pivot.getOptions(),u=q.viewType,y=q.grid.type;q={grid:{showGrandTotals:f.getValue(),showTotals:g.getValue(),type:m.getValue()}};q.viewType=y!=q.grid.type&&"charts"==u?"grid":u;a.pivot.setOptions(q);a.pivot.refresh()},
isPositive:!0},{id:"fm-btn-cancel",label:b.cancel}],!0);var d=document.createElement("div");d.classList.add("fm-popup-content");var k=document.createElement("div");k.classList.add("fm-ui-row");d.appendChild(k);var h=document.createElement("div");h.classList.add("fm-ui-col-2");k.appendChild(h);var e=document.createElement("div");e.id=this.guid();e.classList.add("fm-title-2");a.setText(e,b.grand_totals);h.appendChild(e);var f=this.createRadioGroup([{label:b.grand_totals_off,value:"off"},{label:b.grand_totals_on,
value:"on"},{label:b.grand_totals_on_rows,value:"rows"},{label:b.grand_totals_on_columns,value:"columns"}]);f.setAttribute("aria-labelledby",e.id);h.appendChild(f);e=document.createElement("div");e.id=this.guid();e.classList.add("fm-title-2");a.setText(e,b.layout);h.appendChild(e);var t=[{label:b.compact_view,value:"compact"},{label:b.classic_view,value:"classic"}],l=a.pivot.getReport({withDefaults:!0,withGlobals:!0});null!=l&&l.hasOwnProperty("dataSource")&&"microsoft analysis services"!=l.dataSource.type&&
"mondrian"!=l.dataSource.type&&"elasticsearch"!=l.dataSource.type&&t.push({label:b.flat_view,value:"flat"});var m=this.createRadioGroup(t);m.setAttribute("aria-labelledby",e.id);h.appendChild(m);h=document.createElement("div");h.classList.add("fm-ui-col-2");k.appendChild(h);e=document.createElement("div");e.id=this.guid();e.classList.add("fm-title-2");a.setText(e,b.subtotals);h.appendChild(e);var g=this.createRadioGroup([{label:b.subtotals_off,value:"off"},{label:b.subtotals_on,value:"on"},{label:b.subtotals_on_rows,
value:"rows"},{label:b.subtotals_on_columns,value:"columns"}]);m.setAttribute("aria-labelledby",e.id);h.appendChild(g);c.setContent(d);c.initialFocusAt=f.querySelector("li");this.popupManager.addPopup(c);l=a.pivot.getOptions()||{};b=l.grid||{};f.setValue(b.showGrandTotals||"on");g.setValue(b.showTotals||"on");m.setValue(b.type||"compact")};
FlexmonsterToolbar.prototype.showExportPdfDialog=function(){var a=this,b=this.Labels,c=this.popupManager.createPopup();c.setTitle(b.choose_page_orientation);c.setToolbar([{id:"fm-btn-apply",label:b.apply,handler:function(){a.pivot.exportTo("pdf",{pageOrientation:k.getValue()})},isPositive:!0},{id:"fm-btn-cancel",label:b.cancel}]);var d=document.createElement("div"),k=this.createRadioGroup([{label:b.portrait,value:"portrait",checked:!0},{label:b.landscape,value:"landscape"}]);d.appendChild(k);c.setContent(d);
c.initialFocusAt=k.querySelector("li");this.popupManager.addPopup(c)};FlexmonsterToolbar.prototype.toggleFullscreen=function(){this.isFullscreen()?this.exitFullscreen():this.enterFullscreen(this.container)};FlexmonsterToolbar.prototype.isFullscreen=function(){return void 0!=document.fullScreenElement||void 0!=document.mozFullScreenElement||void 0!=document.webkitFullscreenElement||void 0!=document.msFullscreenElement};
FlexmonsterToolbar.prototype.enterFullscreen=function(a){if(a.requestFullscreen||a.webkitRequestFullScreen||a.mozRequestFullScreen||a.msRequestFullscreen&&window==top){var b=this;if(a.requestFullscreen)a.requestFullscreen().then(function(){var k=function(){if(b.isFullscreen())b.onFullscreenEntered();else b.exitFullscreen(),a.removeEventListener("fullscreenchange",k)}.bind(b);a.addEventListener("fullscreenchange",k,!1)}).catch(function(){b.onFullscreenError()});else if(a.webkitRequestFullScreen){var c=
navigator.userAgent;-1<c.indexOf("Safari")&&-1==c.indexOf("Chrome")?a.webkitRequestFullScreen():a.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);var d=function(){if(this.isFullscreen())this.onFullscreenEntered();else this.exitFullscreen(),a.removeEventListener("webkitfullscreenchange",d)}.bind(this);a.addEventListener("webkitfullscreenchange",d,!1)}else a.mozRequestFullScreen?(a.mozRequestFullScreen(),d=function(){if(this.isFullscreen())this.onFullscreenEntered();else this.exitFullscreen(),
document.removeEventListener("mozfullscreenchange",d)}.bind(this),document.addEventListener("mozfullscreenchange",d,!1)):a.msRequestFullscreen&&(a.msRequestFullscreen(),d=function(){if(this.isFullscreen())this.onFullscreenEntered();else this.exitFullscreen(),document.removeEventListener("MSFullscreenChange",d)}.bind(this),document.addEventListener("MSFullscreenChange",d,!1))}else a.msRequestFullscreen&&window!==top&&alert("Fullscreen mode in IE11 is not supported when Pivot is embedded in IFrame.")};
FlexmonsterToolbar.prototype.onFullscreenEntered=function(){this.containerStyle={width:this.container.style.width,height:this.container.style.height,position:this.container.style.position,top:this.container.style.top,bottom:this.container.style.bottom,left:this.container.style.left,right:this.container.style.right,marginTop:this.container.style.marginTop,marginLeft:this.container.style.marginLeft,zIndex:this.container.style.zIndex};this.container.style.width="100%";this.container.style.height="100%";
this.container.style.position="fixed";this.container.style.top="0px";this.container.style.left="0px";this.container.style.zIndex=2147483647;this.toolbarWrapper.style.width="100%";this._redrawToolbar()};FlexmonsterToolbar.prototype.onFullscreenError=function(){this.pivot.alert({title:this.Labels.fullscreenErrorTitle,message:this.Labels.fullscreenErrorMessage})};
FlexmonsterToolbar.prototype.exitFullscreen=function(){this.container.style.width=this.containerStyle.width;this.container.style.height=this.containerStyle.height;this.container.style.position=this.containerStyle.position;this.container.style.top=this.containerStyle.top;this.container.style.left=this.containerStyle.left;this.container.style.marginTop=this.containerStyle.marginTop;this.container.style.marginLeft=this.containerStyle.marginLeft;this.container.style.zIndex=this.containerStyle.zIndex;
document.exitFullscreen&&document.fullScreenElement?document.exitFullscreen():document.cancelFullscreen&&document.fullScreenElement?document.cancelFullscreen():document.mozCancelFullScreen&&document.mozFullScreenElement?document.mozCancelFullScreen():document.webkitExitFullScreen&&document.webkitFullscreenElement?document.webkitExitFullScreen():document.webkitCancelFullScreen&&document.webkitFullscreenElement?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msFullscreenElement&&
document.msExitFullscreen();this._redrawToolbar()};FlexmonsterToolbar.prototype.nullOrUndefined=function(a){return"undefined"===typeof a||null===a};FlexmonsterToolbar.prototype.hasClass=function(a,b){return a.className.match(new RegExp("(\\s|^)"+b+"(\\s|$)"))};FlexmonsterToolbar.prototype.addClass=function(a,b){this.hasClass(a,b)||(a.className+=" "+b)};FlexmonsterToolbar.prototype.removeClass=function(a,b){this.hasClass(a,b)&&(a.className=a.className.replace(new RegExp("(\\s|^)"+b+"(\\s|$)")," "))};
FlexmonsterToolbar.prototype.setEnabled=function(a,b){b?(this.removeClass(a,"fm-ui-disabled"),a.setAttribute("tabindex","0"),a.removeAttribute("aria-disabled")):(this.addClass(a,"fm-ui-disabled"),a.setAttribute("tabindex","-1"),a.setAttribute("aria-disabled","true"))};FlexmonsterToolbar.prototype.setText=function(a,b){a&&(void 0!==a.innerText&&(a.innerText=b),void 0!==a.textContent&&(a.textContent=b))};
FlexmonsterToolbar.prototype.toTrustedHtml=function(a){return window.flexmonsterTrustedTypesPolicy?window.flexmonsterTrustedTypesPolicy.createHTML(a):a};FlexmonsterToolbar.prototype.makeSelectableByKeyboard=function(a){a.setAttribute("tabindex","0");a.addEventListener("keyup",function(b){document.activeElement!==a||13!=b.which&&32!=b.which||(a.click(),(b=a.querySelector("input"))&&b.click())})};
FlexmonsterToolbar.prototype.createRadioGroup=function(a,b){function c(m){if(m=m.target.querySelector("input"))m.checked=!0;d()}function d(){for(var m=k.childNodes,g=0;g<m.length;g++){var q=m.item(g),u=q.querySelector("input");q.setAttribute("aria-checked",u.checked?"true":"false")}}var k=document.createElement("ul");k.setAttribute("role","radiogroup");k.classList.add("fm-radiobtn-list");void 0===b&&(b=this.guid());for(var h=0;h<a.length;h++){var e=a[h],f=document.createElement("li");f.classList.add("fm-radio-wrap");
f.setAttribute("role","radio");f.setAttribute("aria-checked",e.checked?"true":"false");f.addEventListener("click",c);this.makeSelectableByKeyboard(f);var t=document.createElement("input");t.id=this.guid();t.type="radio";t.name=b;t.value=e.value;t.checked=e.checked;f.appendChild(t);var l=document.createElement("label");l.setAttribute("for",t.id);this.setText(l,e.label);f.appendChild(l);k.appendChild(f)}k.getValue=function(){for(var m=k.childNodes,g=0;g<m.length;g++){var q=m.item(g).querySelector("input");
if(q.checked)return q.value}return null};k.setValue=function(m){for(var g=k.childNodes,q=0;q<g.length;q++){var u=g.item(q).querySelector("input");if(u.value==m){u.checked=!0;d();break}}};return k};FlexmonsterToolbar.prototype.guid=function(){return"fm-"+Math.random().toString(36).substr(2,9)};
FlexmonsterToolbar.prototype.createInputRow=function(a,b){var c=document.createElement("div");c.classList.add("fm-inp-row");c.classList.add("fm-ir-horizontal");var d=document.createElement("label");d.id=this.guid();this.setText(d,a);c.appendChild(d);b.dropdownButton?b.dropdownButton.setAttribute("aria-labelledby",d.id):b.setAttribute("aria-labelledby",d.id);c.appendChild(b);return c};
FlexmonsterToolbar.prototype.createSelect=function(a,b,c){function d(r){c?k(r.target):(h(r.target),t());if(z.onchange)z.onchange()}function k(r,v){void 0===v&&(v=!r.classList.contains("fm-selected"));var x=parseInt(r.getAttribute("data-index"));v?(r.classList.add("fm-selected"),r.setAttribute("aria-selected","true"),0>q.indexOf(x)&&q.push(x)):(r.classList.remove("fm-selected"),r.setAttribute("aria-selected","false"),v=q.indexOf(x),0<=v&&q.splice(v,1));x=parseInt(r.getAttribute("data-index"));f(x);
e()}function h(r){for(var v=w.children,x=0;x<v.length;x++)v.item(x).classList.remove("fm-selected"),v.item(x).setAttribute("aria-selected","false");r.classList.add("fm-selected");r.setAttribute("aria-selected","true");v=parseInt(r.getAttribute("data-index"));q=[v];f(v);n.setAttribute("aria-activedescendant",r.id);e()}function e(){var r=b;if(0<q.length)if(c){q.sort();r=[];for(var v=0;v<q.length;v++){var x=g[q[v]];r.push("string"===typeof x?x:x.label)}r=r.join(", ")}else x=g[q[0]],r="string"===typeof x?
x:x.label;n.innerHTML=m.toTrustedHtml(r)}function f(r){u=Math.max(0,Math.min(w.children.length-1,r));r=w.children;for(var v=0;v<r.length;v++)r.item(v).classList.remove("fm-current");w.children.item(u).classList.add("fm-current")}function t(){y&&(y=!1,z.classList.remove("fm-opened"),n.setAttribute("aria-expanded","false"))}function l(){if(0==y){y=!0;z.classList.add("fm-opened");n.setAttribute("aria-expanded","true");var r=n,v=void 0;void 0===v&&(v=r.offsetParent);var x=0,C=0;if(r.offsetParent){x=r.offsetLeft;
C=r.offsetTop;for(var A=r;(A=A.parentNode)&&A!=v;){var D=A.scrollTop?A.scrollTop:0;x-=0;C-=D}for(;(r=r.offsetParent)&&r!=v;)x+=r.offsetLeft,C+=r.offsetTop}E.style.top=C+n.clientHeight+"px";E.style.left=x+"px";E.style.width=n.clientWidth+2+"px";0<q.length&&f(q[0])}}void 0===a&&(a=[]);void 0===b&&(b="");var m=this,g=a,q=[],u=-1,y=!1,z=document.createElement("div");z.classList.add("fm-ui");z.classList.add("fm-ui-element");z.classList.add("fm-ui-dropdown");var n=document.createElement("a");n.classList.add("fm-ui");
n.classList.add("fm-ui-element");n.classList.add("fm-ui-toggle-btn");n.classList.add("fm-ui-dropdown-btn");n.setAttribute("tabindex","0");n.setAttribute("role","combobox");n.setAttribute("aria-haspopup","listbox");n.setAttribute("aria-expanded","false");n.addEventListener("click",function(){y?t():l()});n.addEventListener("keydown",function(r){!y||38!=r.keyCode&&40!=r.keyCode||(f(40==r.keyCode?u+1:u-1),r.preventDefault());if(13==r.keyCode||32==r.keyCode){if(y){if(-1!=u&&(c?k(w.children.item(u)):(h(w.children.item(u)),
t()),z.onchange))z.onchange()}else l();r.preventDefault()}y&&27==r.keyCode&&(t(),r.stopImmediatePropagation())});n.addEventListener("blur",t);n.innerHTML=m.toTrustedHtml(b);z.appendChild(n);z.dropdownButton=n;var E=document.createElement("div");E.classList.add("fm-ui");E.classList.add("fm-ui-element");E.classList.add("fm-ui-dropdown-list");E.addEventListener("mouseleave",t);z.appendChild(E);var w=document.createElement("ul");w.id=this.guid();w.classList.add("fm-ui");w.classList.add("fm-ui-element");
w.classList.add("fm-ui-list");w.setAttribute("role","listbox");E.appendChild(w);n.setAttribute("aria-controls",w.id);z.setDataProvider=function(r){g=r;q.length=0;w.innerHTML=m.toTrustedHtml("");for(var v=0;v<r.length;v++){var x=r[v],C=document.createElement("li");C.id=w.id+v;C.innerHTML=m.toTrustedHtml("string"===typeof x?x:x.label);C.classList.add("fm-ui");C.classList.add("fm-ui-element");C.setAttribute("role","option");C.setAttribute("data-index",v);C.setAttribute("aria-selected","false");C.addEventListener("mousedown",
d);w.appendChild(C)}w.firstChild&&(n.setAttribute("aria-activedescendant",w.firstChild.id),f(0))};z.setEnabled=function(r){r?(z.classList.remove("fm-ui-disabled"),z.removeAttribute("aria-disabled"),n.setAttribute("tabindex","0")):(z.classList.add("fm-ui-disabled"),z.setAttribute("aria-disabled","true"),n.setAttribute("tabindex","-1"))};z.getValue=function(){return 0==q.length?null:c?(q.sort(),q.map(function(r){return"string"===typeof g[r]?g[r]:g[r].value})):"string"===typeof g[q[0]]?g[q[0]]:g[q[0]].value};
z.setValue=function(r){var v=function(A){for(var D=0;D<g.length;D++)if("string"===typeof g[D]&&g[D]==A||"object"===typeof g[D]&&g[D].value==A)return D;return-1};if(c)for(var x=0;x<r.length;x++){var C=v(r[x]);0<=C&&k(w.children.item(C),!0)}else C=v(r),0<=C&&h(w.children.item(C))};a&&z.setDataProvider(a);return z};FlexmonsterToolbar.prototype.createDivider=function(a){a=document.createElement("li");a.className="fm-divider";a.setAttribute("aria-hidden","true");return a};
FlexmonsterToolbar.prototype.createTab=function(a,b){b=document.createElement("li");b.id=a.id;var c=document.createElement("a");c.setAttribute("role","menuitem");c.tabIndex=0;a.hasOwnProperty("class_attr")&&c.setAttribute("class",a.class_attr);c.setAttribute("href","#");if(a.icon){var d=document.createElement("div");d.classList.add("fm-svg-icon");d.setAttribute("aria-hidden","true");d.innerHTML=this.toTrustedHtml(a.icon);c.appendChild(d)}d=document.createElement("span");d.classList.add("fm-tab-label");
this.setText(d,a.title);c.appendChild(d);var k=this,h="function"==typeof a.handler?a.handler:this[a.handler],e=a.args;d="function"==typeof a.onShowHandler?a.onShowHandler:this[a.onShowHandler];this.nullOrUndefined(h)||(c.onclick=function(f){f.preventDefault();h.call(k,e)},c.onkeydown=function(f){if("Enter"==f.key||"Space"==f.code)f.preventDefault(),h.call(k,e)});this.nullOrUndefined(d)||(c.onmouseover=function(f){return function(){f.call(k)}}(d));b.appendChild(c);null==a.menu||this.osUtils.isMobile&&
1!=a.collapse||(a=this.createTabMenu(a.menu,b),a.querySelector("ul").id=this.guid(),c.setAttribute("aria-haspopup","true"),c.setAttribute("aria-controls",a.querySelector("ul").id),b.appendChild(a));return b};
FlexmonsterToolbar.prototype.createSubmenuItem=function(a,b){var c=document.createElement("li");c.setAttribute("role","menuitem");c.id=a.id;a.hasOwnProperty("class_attr")&&c.setAttribute("class",a.class_attr);var d=this,k="function"==typeof a.handler?a.handler:this[a.handler];this.nullOrUndefined(k)||c.addEventListener("mousedown",function(h,e){return function(){h.call(d,e);b.classList.remove("fm-opened")}}(k,a.args));a.icon&&(k=document.createElement("span"),k.classList.add("fm-svg-icon"),k.setAttribute("aria-hidden",
"true"),k.innerHTML=d.toTrustedHtml(a.icon),c.appendChild(k));"checkbox"===a.type&&(k=document.createElement("span"),k.setAttribute("aria-hidden","true"),k.classList.add("fm-tab-checkbox"),c.appendChild(k),c.setAttribute("role","menuitemcheckbox"));k=document.createElement("span");k.classList.add("fm-tab-label");this.setText(k,a.title);c.appendChild(k);return c};
FlexmonsterToolbar.prototype.createTabMenu=function(a,b){function c(){b.classList.add("fm-opened");e.classList.remove("fm-dropdown-scrollable-left");e.classList.remove("fm-dropdown-scrollable-right");h.style.right=h.style.left=null;var m=h.getBoundingClientRect(),g=b.getBoundingClientRect(),q=l.toolbarWrapper.getBoundingClientRect(),u=l.container.querySelector(".fm-left-scroll-button"),y=u?u.getBoundingClientRect():null,z=l.container.querySelector(".fm-right-scroll-button");u=(u?u.offsetWidth:0)+
(z?z.offsetWidth:0);(m.left>g.right-u||m.left<g.left+u)&&g.right+m.width<q.right&&0<l.toolbar.scrollLeft?(h.style.left=0,m=h.getBoundingClientRect(),m=Math.round(g.right-m.left-.6*g.width),h.style.left=m+"px",e.classList.add("fm-dropdown-scrollable-left")):m.right>q.right-u&&0<g.left+g.width/2-m.width?(h.style.right=0,m=h.getBoundingClientRect(),m=Math.round(m.right-g.left-.6*g.width),h.style.right=m+"px",e.classList.add("fm-dropdown-scrollable-right")):y&&g.left<y.right&&(h.style.left=0,e.classList.add("fm-dropdown-scrollable-left"));
k(-2);b.querySelector("a").setAttribute("aria-activedescendant",e.children.item(0).id)}function d(){b.classList.remove("fm-opened")}function k(m){for(var g=e.children,q=0;q<g.length;q++)g.item(q).classList.remove("fm-current");-1<=m?(t=Math.max(0,Math.min(e.children.length-1,m)),e.children.item(t).classList.add("fm-current")):t=-1}var h=document.createElement("div");h.className="fm-dropdown fm-shadow-container";var e=document.createElement("ul");e.setAttribute("role","menu");e.setAttribute("aria-orientation",
"vertical");e.className="fm-dropdown-content";for(var f=0;f<a.length;f++)this.isDisabled(a[f])||e.appendChild(a[f].divider?this.createMenuDivider():this.createSubmenuItem(a[f],b));h.appendChild(e);var t=-1;b.querySelector("a").addEventListener("click",function(m){m.preventDefault();b.classList.contains("fm-opened")?d():c()});b.querySelector("a").addEventListener("keydown",function(m){var g=b.classList.contains("fm-opened");!g||38!=m.keyCode&&40!=m.keyCode||(k(40==m.keyCode?t+1:t-1),m.preventDefault());
if(13==m.keyCode||32==m.keyCode){if(g){if(0<=t){var q=a[t],u="function"==typeof q.handler?q.handler:l[q.handler];l.nullOrUndefined(u)||u.call(l,q.args)}}else c();m.preventDefault()}g&&27==m.keyCode&&(d(),m.stopImmediatePropagation())});b.querySelector("a").addEventListener("blur",d);b.addEventListener("mouseover",c);b.addEventListener("mouseleave",d);var l=this;return h};
FlexmonsterToolbar.prototype.createMenuDivider=function(){var a=document.createElement("li");a.className="fm-v-divider";a.setAttribute("aria-hidden","true");return a};FlexmonsterToolbar.prototype.isDisabled=function(a){return this.nullOrUndefined(a)?!0:!1===a.visible||!1===a.ios&&this.osUtils.isIOS||!1===a.android&&this.osUtils.isAndroid||!1===a.mobile&&this.osUtils.isMobile};
FlexmonsterToolbar.prototype.filterConnectMenu=function(){var a=[],b=this.Labels;1==this.dataSourceType||2==this.dataSourceType?(a.push({title:b.connect_local_csv,id:"fm-tab-connect-local-csv",handler:this.connectLocalCSVHandler,mobile:!1,icon:this.icons.connect_csv}),a.push({title:b.connect_local_json,id:"fm-tab-connect-local-json",handler:this.connectLocalJSONHandler,mobile:!1,icon:this.icons.connect_json}),a.push({title:this.osUtils.isMobile?b.connect_remote_csv_mobile:b.connect_remote_csv,id:"fm-tab-connect-remote-csv",
handler:this.connectRemoteCSV,icon:this.icons.connect_csv}),a.push({title:this.osUtils.isMobile?b.connect_remote_json_mobile:b.connect_remote_json,id:"fm-tab-connect-remote-json",handler:this.connectRemoteJSON,icon:this.icons.connect_json})):3==this.dataSourceType||4==this.dataSourceType?a.push({title:this.osUtils.isMobile?b.connect_olap_mobile:b.connect_olap,id:"fm-tab-connect-olap",handler:this.connectOLAP,flat:!1,icon:this.icons.connect_olap}):6==this.dataSourceType&&a.push({title:this.osUtils.isMobile?
b.connect_elastic_mobile:b.connect_elastic,id:"fm-tab-connect-elastic",handler:this.connectElastic,flat:!1,icon:this.icons.connect_elastic});0!=this.dataSourceType&&this.dataProvider[0]&&"fm-tab-connect"==this.dataProvider[0].id&&(this.dataProvider[0].menu=a)};FlexmonsterToolbar.prototype.getElementById=function(a,b){var c=function(d,k){for(var h=0;h<d.childNodes.length;h++){var e=d.childNodes[h];if(e.id==k)return e;e=c(e,k);if(null!=e)return e}return null};return c(b||this.toolbarWrapper,a)};
FlexmonsterToolbar.prototype.osUtils={isIOS:navigator.userAgent.match(/iPhone|iPad|iPod/i)||navigator.platform.match(/iPhone|iPad|iPod/i)?!0:!1,isMac:/Mac/i.test(navigator.platform),isAndroid:navigator.userAgent.match(/Android/i)?!0:!1,isBlackBerry:/BlackBerry/i.test(navigator.platform),isReactNative:/ReactNative/i.test(navigator.product),isMobile:navigator.userAgent.match(/iPhone|iPad|iPod/i)||navigator.platform.match(/iPhone|iPad|iPod/i)||navigator.userAgent.match(/Android/i)||/BlackBerry/i.test(navigator.platform)||
/ReactNative/i.test(navigator.product)};FlexmonsterToolbar.PopupManager=function(a){this.toolbar=a;this.activePopup=null};FlexmonsterToolbar.PopupManager.prototype.createPopup=function(){return new FlexmonsterToolbar.PopupManager.PopupWindow(this)};
FlexmonsterToolbar.PopupManager.prototype.addPopup=function(a){if(null!=a){this.removePopup();this.modalOverlay=this.createModalOverlay();this.activePopup=a;this.toolbar.toolbarWrapper.appendChild(a.content);this.toolbar.toolbarWrapper.appendChild(this.modalOverlay);this.addLayoutClasses(a.content);this.centerPopup(a.content);var b=this;a.resizeHandler=function(){a&&(b.addLayoutClasses(a.content),b.centerPopup(a.content))};window.addEventListener("resize",a.resizeHandler);a.initialFocusAt&&(a.prevActiveElement=
document.activeElement,a.initialFocusAt.focus({preventScroll:!0}))}};FlexmonsterToolbar.PopupManager.prototype.addLayoutClasses=function(a){a.classList.remove("fm-layout-tablet");a.classList.remove("fm-layout-mobile");a.classList.remove("fm-layout-mobile-small");var b=this.getBoundingRect(this.toolbar.container);768>b.width&&a.classList.add("fm-layout-tablet");580>b.width&&a.classList.add("fm-layout-mobile");460>b.width&&a.classList.add("fm-layout-mobile-small")};
FlexmonsterToolbar.PopupManager.prototype.centerPopup=function(a){if(null!=this.modalOverlay){var b=this.getBoundingRect(this.toolbar.container),c=this.getBoundingRect(a),d=this.getBoundingRect(this.toolbar.toolbarWrapper);a.style.zIndex=parseInt(this.modalOverlay.style.zIndex)+1;this.modalOverlay.style.height=b.height+"px";a.style.left=Math.max(0,(d.width-c.width)/2)+"px";a.style.top=Math.max(d.height,(b.height-d.height-c.height)/2+d.height)+"px"}};
FlexmonsterToolbar.PopupManager.prototype.removePopup=function(a){a=a||this.activePopup;null!=this.modalOverlay&&this.toolbar.toolbarWrapper.contains(this.modalOverlay)&&(this.toolbar.toolbarWrapper.removeChild(this.modalOverlay),this.modalOverlay=null);null!=a&&this.toolbar.toolbarWrapper.contains(a.content)&&(this.toolbar.toolbarWrapper.removeChild(a.content),this.activePopup=null,window.removeEventListener("resize",a.resizeHandler),a.prevActiveElement&&a.prevActiveElement.focus&&a.prevActiveElement.focus({preventScroll:!0}))};
FlexmonsterToolbar.PopupManager.prototype.getBoundingRect=function(a){var b=a.getBoundingClientRect();return{left:b.left,right:b.right,top:b.top,bottom:b.bottom,width:b.width||a.clientWidth,height:b.height||a.clientHeight}};FlexmonsterToolbar.PopupManager.prototype.createModalOverlay=function(){var a=document.createElement("div");a.classList.add("fm-modal-overlay");a.classList.add("fm-popup-modal-overlay");var b=this;a.addEventListener("click",function(c){b.removePopup(b.activePopup)});return a};
FlexmonsterToolbar.PopupManager.PopupWindow=function(a){function b(l){l.relatedTarget&&l.relatedTarget.focus&&l.relatedTarget.focus()}this.popupManager=a;var c=document.createElement("div");c.className="fm-panel-content";var d=document.createElement("div");d.className="fm-title-bar";var k=document.createElement("div");k.className="fm-title-text";k.id="fm-popup-title-text";var h=document.createElement("div");h.className="fm-toolbox";h.style.clear="both";this.content=document.createElement("div");this.content.className=
"fm-popup fm-panel fm-toolbar-ui fm-ui";this.content.setAttribute("role","dialog");this.content.setAttribute("aria-labelledby","fm-popup-title-text");this.content.appendChild(c);this.content.addEventListener("keydown",function(l){27==l.keyCode&&a.removePopup()});c.appendChild(d);d.appendChild(k);var e=this,f=document.createElement("div");f.setAttribute("tabindex","0");f.addEventListener("focus",b);c.insertBefore(f,c.firstChild);var t=document.createElement("div");t.setAttribute("tabindex","0");t.addEventListener("focus",
b);this.setTitle=function(l){FlexmonsterToolbar.prototype.setText(k,l)};this.setContent=function(l){c.insertBefore(l,d.nextSibling);c.appendChild(t)};this.setToolbar=function(l,m,g){h.innerHTML=FlexmonsterToolbar.prototype.toTrustedHtml("");for(var q=l.length-1;0<=q;q--){var u=document.createElement("button");u.setAttribute("type","button");u.className="fm-ui-btn"+(l[q].isPositive?" fm-ui-btn-dark":"");l[q].id&&(u.id=l[q].id);FlexmonsterToolbar.prototype.setText(u,l[q].label);u.onclick=function(y){return function(){null!=
y&&y.call();void 0!=g?g.call():e.popupManager.removePopup()}}(l[q].handler,g);FlexmonsterToolbar.prototype.setEnabled(u,!0!==l[q].disabled);l[q].isPositive&&(FlexmonsterToolbar.prototype.osUtils.isMac||FlexmonsterToolbar.prototype.osUtils.isIOS)?h.appendChild(u):h.insertBefore(u,h.firstChild)}m?(h.classList.add("fm-ui-col"),d.appendChild(h),d.classList.add("fm-ui-row"),k.classList.add("fm-ui-col")):c.appendChild(h)};this.toolbar=h;this.titleBar=d;this.title=k;return this};
FlexmonsterToolbar.ColorPicker=function(a,b){function c(g){g.relatedTarget&&g.relatedTarget.focus&&g.relatedTarget.focus()}function d(g){g=g.target.getAttribute("data-c");e.drawShades(e.colors[g]);e.setColor(g,e.currentType,!0)}function k(g){g=g.target.getAttribute("data-c");e.setColor(g,e.currentType,!0)}function h(g){e.currentType=g;f.classList.remove("fm-current");t.classList.remove("fm-current");"bg"==g?(t.classList.add("fm-current"),e.setColor(e.backgroundColor,g,!1)):(f.classList.add("fm-current"),
e.setColor(e.fontColor,g,!1))}var e=this;this.toolbar=a;this.element=document.createElement("div");this.element.classList.add("fm-colorpick-wrap");this.element.classList.add("fm-width40");this.colorPickerButton=document.createElement("div");this.colorPickerButton.classList.add("fm-colorpick-btn");this.colorPickerButton.setAttribute("title",a.Labels.tooltips.cp_text_color);this.element.appendChild(this.colorPickerButton);this.colorPickerIcon=document.createElement("span");this.colorPickerIcon.classList.add("fm-icon");
this.colorPickerIcon.classList.add("fm-ui-icon-vam");this.colorPickerIcon.classList.add("fm-icon-act_font");this.colorPickerButton.appendChild(this.colorPickerIcon);a.makeSelectableByKeyboard(this.colorPickerButton);this.popup=document.createElement("div");this.popup.classList.add("fm-colorpick-popup");this.popup.addEventListener("click",function(g){g.stopPropagation()});this.popup.addEventListener("keydown",function(g){27==g.keyCode&&(e.closePopup(e.cancelHandler),g.stopImmediatePropagation())});
b.appendChild(this.popup);b=document.createElement("div");b.setAttribute("tabindex","0");b.addEventListener("focus",c);this.popup.insertBefore(b,this.popup.firstChild);b=document.createElement("div");b.classList.add("fm-color-targ-switch");this.popup.appendChild(b);var f=document.createElement("button");f.setAttribute("type","button");f.classList.add("fm-cts-item");f.classList.add("fm-current");f.innerHTML=FlexmonsterToolbar.prototype.toTrustedHtml(a.Labels.cp_text);f.onclick=function(){h("font")};
b.appendChild(f);var t=document.createElement("button");t.setAttribute("type","button");t.classList.add("fm-cts-item");t.innerHTML=FlexmonsterToolbar.prototype.toTrustedHtml(a.Labels.cp_highlight);t.onclick=function(){h("bg")};b.appendChild(t);b=document.createElement("div");b.classList.add("fm-cp-sett-row");this.popup.appendChild(b);this.colorInput=document.createElement("input");this.colorInput.type="text";this.colorInput.setAttribute("aria-label",a.Labels.cp_hex_value);this.colorInput.classList.add("fm-inp");
this.colorInput.classList.add("fm-cp-2-colors-width");this.colorInput.classList.add("fm-tac");this.colorInput.onchange=function(){var g=e.colorInput.value;e.isColor(g)&&e.setColor(g,e.currentType,!0)};b.appendChild(this.colorInput);this.colorPreview=document.createElement("div");this.colorPreview.classList.add("fm-cp-curr-color");this.colorPreview.classList.add("fm-cp-2-colors-width");b.appendChild(this.colorPreview);this.mainColors=document.createElement("div");this.mainColors.classList.add("fm-row-10colors");
this.popup.appendChild(this.mainColors);for(var l in this.colors){b=document.createElement("div");b.classList.add("fm-r10c-item");b.style.backgroundColor=l;b.setAttribute("tabindex","0");b.setAttribute("role","checkbox");b.setAttribute("aria-label",this.colorLabels[l]);this.toolbar.makeSelectableByKeyboard(b);b.setAttribute("data-c",l);b.addEventListener("click",d);this.mainColors.appendChild(b);var m=document.createElement("span");m.classList.add("fm-cp-currentmark");m.classList.add("fm-icon");m.classList.add("fm-icon-act_check");
b.appendChild(m);m=document.createElement("span");"#FFFFFF"==l?b.classList.add("fm-r10c-white-arrow"):m.classList.add("fm-r10c-arrow");m.style.borderTopColor=l;b.appendChild(m)}this.shadeColors=document.createElement("div");this.shadeColors.classList.add("fm-row-4colors");this.popup.appendChild(this.shadeColors);for(l=0;8>l;l++)b=document.createElement("div"),b.classList.add("fm-r4c-item"),b.addEventListener("click",k),b.setAttribute("tabindex","0"),b.setAttribute("role","checkbox"),this.toolbar.makeSelectableByKeyboard(b),
this.shadeColors.appendChild(b),m=document.createElement("span"),m.classList.add("fm-cp-currentmark"),m.classList.add("fm-icon"),m.classList.add("fm-icon-act_check"),b.appendChild(m);this.drawShades("#000000");b=document.createElement("div");b.classList.add("fm-cp-btns-row");this.popup.appendChild(b);l=document.createElement("button");l.setAttribute("type","button");l.innerHTML=FlexmonsterToolbar.prototype.toTrustedHtml(a.Labels.apply);l.classList.add("fm-ui-btn");l.classList.add("fm-ui-btn-dark");
l.addEventListener("click",function(g){e.closePopup(e.applyHandler)});m=document.createElement("button");m.setAttribute("type","button");m.innerHTML=FlexmonsterToolbar.prototype.toTrustedHtml(a.Labels.cancel);m.classList.add("fm-ui-btn");m.addEventListener("click",function(g){e.closePopup(e.cancelHandler)});FlexmonsterToolbar.prototype.osUtils.isMac||FlexmonsterToolbar.prototype.osUtils.isIOS?(b.appendChild(m),b.appendChild(l)):(b.appendChild(l),b.appendChild(m));a=document.createElement("div");a.setAttribute("tabindex",
"0");a.addEventListener("focus",c);this.popup.appendChild(a);this.currentType="font";this.colorPickerButton.addEventListener("click",function(g){g.stopPropagation();e.isOpened()?e.closePopup(e.cancelHandler):e.openPopup()});document.body.addEventListener("click",function(g){e.isOpened()&&e.closePopup(e.cancelHandler)})};
FlexmonsterToolbar.ColorPicker.prototype.colors={"#000000":"#000000 #262626 #424242 #616161 #757575 #9E9E9E #BDBDBD #DEDEDE".split(" "),"#FFFFFF":"#FFFFFF #E6E6E6 #B5B5B5 #8F8F8F #737373 #525252 #404040 #383838".split(" "),"#F44336":"#D32F2F #E53935 #F44336 #EF5350 #E57373 #EF9A9A #FFCDD2 #FFEBEE".split(" "),"#FF9800":"#F57C00 #FB8C00 #FF9800 #FFA726 #FFB74D #FFCC80 #FFE0B2 #FFF3E0".split(" "),"#FFEB3B":"#FBC02D #FDD835 #FFEB3B #FFEE58 #FFF176 #FFF59D #FFF9C4 #FFFDE7".split(" "),"#8BC34A":"#689F38 #7CB342 #8BC34A #9CCC65 #AED581 #C5E1A5 #DCEDC8 #F1F8E9".split(" "),
"#009688":"#00796B #00897B #009688 #26A69A #4DB6AC #80CBC4 #B2DFDB #E0F2F1".split(" "),"#03A9F4":"#0288D1 #039BE5 #03A9F4 #29B6F6 #4FC3F7 #81D4FA #B3E5FC #E1F5FE".split(" "),"#3F51B5":"#303F9F #3949AB #3F51B5 #5C6BC0 #7986CB #9FA8DA #C5CAE9 #E8EAF6".split(" "),"#9C27B0":"#7B1FA2 #8E24AA #9C27B0 #AB47BC #BA68C8 #CE93D8 #E1BEE7 #F3E5F5".split(" ")};
FlexmonsterToolbar.ColorPicker.prototype.colorLabels={"#000000":"black","#FFFFFF":"white","#F44336":"red","#FF9800":"orange","#FFEB3B":"yellow","#8BC34A":"green","#009688":"teal","#03A9F4":"cyan","#3F51B5":"blue","#9C27B0":"purple"};FlexmonsterToolbar.ColorPicker.prototype.isOpened=function(){return this.popup.parentElement&&this.popup.parentElement.classList.contains("fm-popup-opened")};
FlexmonsterToolbar.ColorPicker.prototype.drawShades=function(a){var b=this.colors[a];if(b)for(var c=this.shadeColors.children,d=0;d<c.length;d++){var k=c[d];k.setAttribute("aria-label",this.colorLabels[a]+" "+this.toolbar.Labels.cp_shade+" "+(d+1));k.setAttribute("data-c",b[d]);k.style.backgroundColor=b[d];"#FFFFFF"==b[d]&&k.classList.add("fm-white-shade")}};
FlexmonsterToolbar.ColorPicker.prototype.setColor=function(a,b,c){"string"===typeof a&&0==a.indexOf("0x")&&(a="#"+a.substr(2));"bg"==b?(this.backgroundColor=a,this.colorPickerButton.style.backgroundColor=a):(this.fontColor=a,this.colorPickerIcon.style.color=a);this.colorInput.value=a;this.colorPreview.style.backgroundColor=a;this.drawSelected();c&&this.changeHandler&&this.changeHandler()};
FlexmonsterToolbar.ColorPicker.prototype.drawSelected=function(){var a="bg"==this.currentType?this.backgroundColor:this.fontColor,b=this.findMain(a);this.drawShades(b);for(var c=this.mainColors.children,d=0;d<c.length;d++)c[d].classList.remove("fm-current"),c[d].removeAttribute("aria-checked");if(b=this.mainColors.querySelector("[data-c='"+b+"']"))b.classList.add("fm-current"),b.setAttribute("aria-checked","true");c=this.shadeColors.children;for(d=0;d<c.length;d++)c[d].classList.remove("fm-current"),
c[d].removeAttribute("aria-checked");if(a=this.shadeColors.querySelector("[data-c='"+a+"']"))a.classList.add("fm-current"),a.setAttribute("aria-checked","true")};FlexmonsterToolbar.ColorPicker.prototype.findMain=function(a){"string"===typeof a&&0==a.indexOf("0x")&&(a="#"+a.substr(2));for(var b in this.colors)if(0<=this.colors[b].indexOf(a))return b};FlexmonsterToolbar.ColorPicker.prototype.isColor=function(a){return a.match(/^#?[0-9A-Fa-f]{6}$/g)};
FlexmonsterToolbar.ColorPicker.prototype.closePopup=function(a){if(this.popup.parentElement){this.popup.parentElement.classList.remove("fm-popup-opened");this.justClosed=!0;var b=this;setTimeout(function(){b.justClosed=!1},100);a&&a();this.colorPickerButton.focus()}};
FlexmonsterToolbar.ColorPicker.prototype.openPopup=function(){if(!this.justClosed){for(var a=this.toolbar.toolbarWrapper.querySelectorAll(".fm-colorpick-popup"),b=0;b<a.length;b++)a[b].parentElement.classList.remove("fm-popup-opened");this.popup.parentElement&&(this.popup.parentElement.classList.add("fm-popup-opened"),a=this.toolbar.toolbarWrapper.querySelector(".fm-popup-conditional .fm-panel-content"),b=this.getWhere(this.colorPickerButton,a),0>this.getWhere(this.colorPickerButton,document.body).top-
this.popup.clientHeight?(this.popup.classList.remove("fm-arrow-down"),this.popup.classList.add("fm-arrow-up"),this.popup.style.top=this.colorPickerButton.clientHeight+b.top+11+"px",this.popup.style.bottom=""):(this.popup.classList.add("fm-arrow-down"),this.popup.classList.remove("fm-arrow-up"),this.popup.style.bottom=a.clientHeight-b.top+5+"px",this.popup.style.top=""),this.popup.style.left=b.left+"px",this.popup.querySelector("button").focus())}};
FlexmonsterToolbar.ColorPicker.prototype.getWhere=function(a,b){var c=0,d=0;if(a.offsetParent){c=a.offsetLeft;d=a.offsetTop;for(var k=a;(k=k.parentNode)&&k!=b;){var h=k.scrollTop?k.scrollTop:0;c-=0;d-=h}for(;(a=a.offsetParent)&&a!=b;)c+=a.offsetLeft,d+=a.offsetTop}return{top:d+0,left:c+0}};

            if("object"===typeof module&&module.exports){module.exports=Flexmonster;}
        
// SIG // Begin signature block
// SIG // MIIY1QYJKoZIhvcNAQcCoIIYxjCCGMICAQExDzANBglg
// SIG // hkgBZQMEAgEFADB3BgorBgEEAYI3AgEEoGkwZzAyBgor
// SIG // BgEEAYI3AgEeMCQCAQEEEBDgyQbOONQRoqMAEEvTUJAC
// SIG // AQACAQACAQACAQACAQAwMTANBglghkgBZQMEAgEFAAQg
// SIG // mGeLPwh/eOx6YcogcfHJsTJiikgQrhwH2E3k8/iJ1yyg
// SIG // ggeZMIIDgjCCAwmgAwIBAgIQbt1PJecxfTmBVzE0z8Hc
// SIG // oDAKBggqhkjOPQQDAzB/MQswCQYDVQQGEwJVUzEOMAwG
// SIG // A1UECAwFVGV4YXMxEDAOBgNVBAcMB0hvdXN0b24xGDAW
// SIG // BgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjE0MDIGA1UEAwwr
// SIG // U1NMLmNvbSBFViBSb290IENlcnRpZmljYXRpb24gQXV0
// SIG // aG9yaXR5IEVDQzAeFw0xOTAzMDcxOTM3NDVaFw0zNDAz
// SIG // MDMxOTM3NDVaMHsxCzAJBgNVBAYTAlVTMQ4wDAYDVQQI
// SIG // DAVUZXhhczEQMA4GA1UEBwwHSG91c3RvbjERMA8GA1UE
// SIG // CgwIU1NMIENvcnAxNzA1BgNVBAMMLlNTTC5jb20gRVYg
// SIG // Q29kZSBTaWduaW5nIEludGVybWVkaWF0ZSBDQSBFQ0Mg
// SIG // UjIwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQ60OHak+K8
// SIG // VtFJNLiBLDRE0hslk6Ky/0+05B8zwSb7THpAhtrs5VRv
// SIG // 6JFzU5Apim4F0e63Drg7IAnoY4ygUaAU+xbjMiuOQqRB
// SIG // QHtQ6qKW53l4g1ywGcy/DiOgs+UUqbGjggFMMIIBSDAS
// SIG // BgNVHRMBAf8ECDAGAQH/AgEAMB8GA1UdIwQYMBaAFFvK
// SIG // XuXe0oGqzagtZFG22XKbl+ZPMHsGCCsGAQUFBwEBBG8w
// SIG // bTBJBggrBgEFBQcwAoY9aHR0cDovL3d3dy5zc2wuY29t
// SIG // L3JlcG9zaXRvcnkvU1NMY29tLVJvb3RDQS1FVi1FQ0Mt
// SIG // Mzg0LVIxLmNydDAgBggrBgEFBQcwAYYUaHR0cDovL29j
// SIG // c3BzLnNzbC5jb20wEQYDVR0gBAowCDAGBgRVHSAAMBMG
// SIG // A1UdJQQMMAoGCCsGAQUFBwMDMD0GA1UdHwQ2MDQwMqAw
// SIG // oC6GLGh0dHA6Ly9jcmxzLnNzbC5jb20vc3NsLmNvbS1F
// SIG // VmVjYy1Sb290Q0EuY3JsMB0GA1UdDgQWBBQBiZS5/rQz
// SIG // XfDx+oX5JEaEo1dpXjAOBgNVHQ8BAf8EBAMCAYYwCgYI
// SIG // KoZIzj0EAwMDZwAwZAIwSlvqgJ+6NpLPjDHt7KWZ7jIn
// SIG // vMMX64ePV1AwBb91lfc8+T8ZUoM0IOERVu45PrfuAjAC
// SIG // tbjZ+HgSR8HARf8V9qBmu0PiT0MOWHeXpKJVNCSEWlYZ
// SIG // z6ZVIBvZEJpTAPuJXnAwggQPMIIDlqADAgECAhBgEBmn
// SIG // vbyFqr6zS8J2Fwv3MAoGCCqGSM49BAMDMHsxCzAJBgNV
// SIG // BAYTAlVTMQ4wDAYDVQQIDAVUZXhhczEQMA4GA1UEBwwH
// SIG // SG91c3RvbjERMA8GA1UECgwIU1NMIENvcnAxNzA1BgNV
// SIG // BAMMLlNTTC5jb20gRVYgQ29kZSBTaWduaW5nIEludGVy
// SIG // bWVkaWF0ZSBDQSBFQ0MgUjIwHhcNMjQwMTE1MTEzMjAw
// SIG // WhcNMjYwMTE0MTEzMjAwWjCB7zELMAkGA1UEBhMCVVMx
// SIG // EzARBgNVBAgMCkNhbGlmb3JuaWExGDAWBgNVBAcMD1Jh
// SIG // bmNobyBTYW50YSBGZTElMCMGA1UECgwcTm9ydGggQW1l
// SIG // cmljYW4gUmVzZWxsZXJzIExMQzEVMBMGA1UEBRMMTDA5
// SIG // MDAwMDU3MjExMSUwIwYDVQQDDBxOb3J0aCBBbWVyaWNh
// SIG // biBSZXNlbGxlcnMgTExDMR0wGwYDVQQPDBRQcml2YXRl
// SIG // IE9yZ2FuaXphdGlvbjEYMBYGCysGAQQBgjc8AgECDAdG
// SIG // bG9yaWRhMRMwEQYLKwYBBAGCNzwCAQMTAlVTMFkwEwYH
// SIG // KoZIzj0CAQYIKoZIzj0DAQcDQgAEZj2Ce35misOd8hDG
// SIG // YvpX5EOTMoO5YpmqlT0v5BqWyVlQDI6kaRsH0cqOoXTt
// SIG // 4MODEqlMAYmSHS4AkAf3J5ysY6OCAYUwggGBMAwGA1Ud
// SIG // EwEB/wQCMAAwHwYDVR0jBBgwFoAUAYmUuf60M13w8fqF
// SIG // +SRGhKNXaV4wWgYIKwYBBQUHAQEETjBMMEoGCCsGAQUF
// SIG // BzAChj5odHRwOi8vY2VydC5zc2wuY29tL1NTTGNvbS1T
// SIG // dWJDQS1FVi1jb2RlU2lnbmluZy1FQ0MtMzg0LVIyLmNl
// SIG // cjBfBgNVHSAEWDBWMAcGBWeBDAEDMA0GCyqEaAGG9ncC
// SIG // BQEHMDwGDCsGAQQBgqkwAQMDAjAsMCoGCCsGAQUFBwIB
// SIG // Fh5odHRwczovL3d3dy5zc2wuY29tL3JlcG9zaXRvcnkw
// SIG // EwYDVR0lBAwwCgYIKwYBBQUHAwMwTwYDVR0fBEgwRjBE
// SIG // oEKgQIY+aHR0cDovL2NybHMuc3NsLmNvbS9TU0xjb20t
// SIG // U3ViQ0EtRVYtY29kZVNpZ25pbmctRUNDLTM4NC1SMi5j
// SIG // cmwwHQYDVR0OBBYEFIICUYXtNuOAaALIaTVlG9TYqIjP
// SIG // MA4GA1UdDwEB/wQEAwIHgDAKBggqhkjOPQQDAwNnADBk
// SIG // AjAJ/24hyIjFy7AIlpMM2jAeKBhSYCLDP68g10+rsZsT
// SIG // uHOMxOiclZ9M1rphsYM/PO8CMH5iYRBxcJEsXhoXw7oD
// SIG // XmVBtGGhMKiJDKJhf+p6Jgmq1t/AT9auLIL0ohJ/rF78
// SIG // oTGCEJQwghCQAgEBMIGPMHsxCzAJBgNVBAYTAlVTMQ4w
// SIG // DAYDVQQIDAVUZXhhczEQMA4GA1UEBwwHSG91c3RvbjER
// SIG // MA8GA1UECgwIU1NMIENvcnAxNzA1BgNVBAMMLlNTTC5j
// SIG // b20gRVYgQ29kZSBTaWduaW5nIEludGVybWVkaWF0ZSBD
// SIG // QSBFQ0MgUjICEGAQGae9vIWqvrNLwnYXC/cwDQYJYIZI
// SIG // AWUDBAIBBQCgfDAQBgorBgEEAYI3AgEMMQIwADAZBgkq
// SIG // hkiG9w0BCQMxDAYKKwYBBAGCNwIBBDAcBgorBgEEAYI3
// SIG // AgELMQ4wDAYKKwYBBAGCNwIBFTAvBgkqhkiG9w0BCQQx
// SIG // IgQghYm2s5HwcyucV2urSpUAjumnDp089naSULeLmXR3
// SIG // mkEwCwYHKoZIzj0CAQUABEYwRAIgTQ858TIdRXnY8imn
// SIG // bbxFWZONiRlQrkW3cyMGdwys+vsCIEj0uBuO+35VfgZY
// SIG // ZmgDTEHGapNNbb6icUKNEVOa98L5oYIPFTCCDxEGCisG
// SIG // AQQBgjcDAwExgg8BMIIO/QYJKoZIhvcNAQcCoIIO7jCC
// SIG // DuoCAQMxDTALBglghkgBZQMEAgEwdwYLKoZIhvcNAQkQ
// SIG // AQSgaARmMGQCAQEGDCsGAQQBgqkwAQMGATAxMA0GCWCG
// SIG // SAFlAwQCAQUABCCgXTaR4WxdMM0ZkVgT4R6D8iK/m8EQ
// SIG // NkOigQ/pUYn29wIIJ3ko2Nzt/vcYDzIwMjQwOTE2MDgx
// SIG // ODI5WjADAgEBoIIMADCCBPwwggLkoAMCAQICEFparOga
// SIG // NW60YoaNV33gPccwDQYJKoZIhvcNAQELBQAwczELMAkG
// SIG // A1UEBhMCVVMxDjAMBgNVBAgMBVRleGFzMRAwDgYDVQQH
// SIG // DAdIb3VzdG9uMREwDwYDVQQKDAhTU0wgQ29ycDEvMC0G
// SIG // A1UEAwwmU1NMLmNvbSBUaW1lc3RhbXBpbmcgSXNzdWlu
// SIG // ZyBSU0EgQ0EgUjEwHhcNMjQwMjE5MTYxODE5WhcNMzQw
// SIG // MjE2MTYxODE4WjBuMQswCQYDVQQGEwJVUzEOMAwGA1UE
// SIG // CAwFVGV4YXMxEDAOBgNVBAcMB0hvdXN0b24xETAPBgNV
// SIG // BAoMCFNTTCBDb3JwMSowKAYDVQQDDCFTU0wuY29tIFRp
// SIG // bWVzdGFtcGluZyBVbml0IDIwMjQgRTEwWTATBgcqhkjO
// SIG // PQIBBggqhkjOPQMBBwNCAASnYXL1MOl6xIMUlgVC49zo
// SIG // nduUbdkyb0piy2i8t3JlQEwA74cjK8g9mRC8GH1cAAVM
// SIG // Ir8M2HdZpVgkV1LXBLB8o4IBWjCCAVYwHwYDVR0jBBgw
// SIG // FoAUDJ0QJY6apxuZh0PPCH7hvYGQ9M8wUQYIKwYBBQUH
// SIG // AQEERTBDMEEGCCsGAQUFBzAChjVodHRwOi8vY2VydC5z
// SIG // c2wuY29tL1NTTC5jb20tdGltZVN0YW1waW5nLUktUlNB
// SIG // LVIxLmNlcjBRBgNVHSAESjBIMDwGDCsGAQQBgqkwAQMG
// SIG // ATAsMCoGCCsGAQUFBwIBFh5odHRwczovL3d3dy5zc2wu
// SIG // Y29tL3JlcG9zaXRvcnkwCAYGZ4EMAQQCMBYGA1UdJQEB
// SIG // /wQMMAoGCCsGAQUFBwMIMEYGA1UdHwQ/MD0wO6A5oDeG
// SIG // NWh0dHA6Ly9jcmxzLnNzbC5jb20vU1NMLmNvbS10aW1l
// SIG // U3RhbXBpbmctSS1SU0EtUjEuY3JsMB0GA1UdDgQWBBRQ
// SIG // TySs77U+YxMjCZIm7Lo6luRdIjAOBgNVHQ8BAf8EBAMC
// SIG // B4AwDQYJKoZIhvcNAQELBQADggIBAJigjwMAkbyrxGRB
// SIG // f0Ih4r+rbCB57lTuwViC6nH2fZSciMogpqSzrSeVZ2eI
// SIG // b5vhj9rT7jqWXZn02Fncs4YTrA1QyxJW36yjC4jl5/bs
// SIG // FCaWuXzGXt2Y6Ifp//A3Z0sNTMWTTBobmceM3sqnovdX
// SIG // 9ToRFP+29r5yQnPcgRTI2PvrVSqLxY9Eyk9/0cviM3W2
// SIG // 9YBl080ENblRcu3Y8RsfzRtVT/2snuDocRxvRYmd0TPa
// SIG // MgIj2xII651QnPp1hiq9xU0AyovLzbsi5wlR5Ip4i/i8
// SIG // +x+HwYJNety5cYtdWJ7uQP6YaZtW/jNoHp76qNftq/Il
// SIG // Sx6xEYBRjFBxHSq2fzhUQ5oBawk2OsZ2j0wOf7q7AqjC
// SIG // t6t/+fbmWjrAWYWZGj/RLjltqdFPBpIKqdhjVIxaGgzV
// SIG // haE/xHKBg4k4DfFZkBYJ9BWuP93Tm+paWBDwXI7Fg3al
// SIG // GsboErWPWlvwMAmpeJUjeKLZY26JPLt9ZWceTVWuIyuj
// SIG // erqb5IMmeqLJm5iFq/Qy4YPGyPiolw5w1k9OeO4ErmS2
// SIG // FKvk1ejvw4SWR+S1VyWnktY442WaoStxBCCVWZdMWFeB
// SIG // +EpL8uoQNq1MhSt/sIUjUudkyZLIbMVQjj7b6gPXnD6m
// SIG // S8FgWiCAhuM1a/hgA+6o1sJWizHdmcpYDhyNzorf9KVR
// SIG // E6iR7rcmMIIG/DCCBOSgAwIBAgIQbVIYcIfoI02FYADQ
// SIG // gI+TVjANBgkqhkiG9w0BAQsFADB8MQswCQYDVQQGEwJV
// SIG // UzEOMAwGA1UECAwFVGV4YXMxEDAOBgNVBAcMB0hvdXN0
// SIG // b24xGDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjExMC8G
// SIG // A1UEAwwoU1NMLmNvbSBSb290IENlcnRpZmljYXRpb24g
// SIG // QXV0aG9yaXR5IFJTQTAeFw0xOTExMTMxODUwMDVaFw0z
// SIG // NDExMTIxODUwMDVaMHMxCzAJBgNVBAYTAlVTMQ4wDAYD
// SIG // VQQIDAVUZXhhczEQMA4GA1UEBwwHSG91c3RvbjERMA8G
// SIG // A1UECgwIU1NMIENvcnAxLzAtBgNVBAMMJlNTTC5jb20g
// SIG // VGltZXN0YW1waW5nIElzc3VpbmcgUlNBIENBIFIxMIIC
// SIG // IjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEArlEQ
// SIG // E9L5PCCgIIXeyVAcZMnh/cXpNP8KfzFI6HJaxV6oYf3x
// SIG // h/dRXPu35tDBwhOwPsJjoqgY/Tg6yQGBqt65t94wpx0r
// SIG // AgTVgEGMqGri6vCI6rEtSZVy9vagzTDHcGfFDc0Eu71m
// SIG // TAyeNCUhjaYTBkyANqp9m6IRrYEXOKdd/eREsqVDmhry
// SIG // d7dBTS9wbipm+mHLTHEFBdrKqKDM3fPYdBOro3bwQ6Om
// SIG // cDZ1qMY+2Jn1o0l4N9wORrmPcpuEGTOThFYKPHm8/wfo
// SIG // MocgizTYYeDG/+MbwkwjFZjWKwb4hoHT2WK8pvGW/OE0
// SIG // Apkrl9CZSy2ulitWjuqpcCEm2/W1RofOunpCm5Qv10T9
// SIG // tIALtQo73GHIlIDU6xhYPH/ACYEDzgnNfwgnWiUmMISa
// SIG // UnYXijp0IBEoDZmGT4RTguiCmjAFF5OVNbY03BQoBb7w
// SIG // K17SuGswFlDjtWN33ZXSAS+i45My1AmCTZBV6obAVXDz
// SIG // LgdJ1A1ryyXz4prLYyfJReEuhAsVp5VouzhJVcE57dRr
// SIG // UanmPcnb7xi57VPhXnCuw26hw1Hd+ulK3jJEgbc3rwHP
// SIG // WqqGT541TI7xaldaWDo85k4lR2bQHPNGwHxXuSy3yczy
// SIG // Og57TcqqG6cE3r0KR6jwzfaqjTvN695GsPAPY/h2YksN
// SIG // gF+XBnUD9JBtL4c34AcCAwEAAaOCAYEwggF9MBIGA1Ud
// SIG // EwEB/wQIMAYBAf8CAQAwHwYDVR0jBBgwFoAU3QQJB6L1
// SIG // en1SUxKSle44gCUNplkwgYMGCCsGAQUFBwEBBHcwdTBR
// SIG // BggrBgEFBQcwAoZFaHR0cDovL3d3dy5zc2wuY29tL3Jl
// SIG // cG9zaXRvcnkvU1NMY29tUm9vdENlcnRpZmljYXRpb25B
// SIG // dXRob3JpdHlSU0EuY3J0MCAGCCsGAQUFBzABhhRodHRw
// SIG // Oi8vb2NzcHMuc3NsLmNvbTA/BgNVHSAEODA2MDQGBFUd
// SIG // IAAwLDAqBggrBgEFBQcCARYeaHR0cHM6Ly93d3cuc3Ns
// SIG // LmNvbS9yZXBvc2l0b3J5MBMGA1UdJQQMMAoGCCsGAQUF
// SIG // BwMIMDsGA1UdHwQ0MDIwMKAuoCyGKmh0dHA6Ly9jcmxz
// SIG // LnNzbC5jb20vc3NsLmNvbS1yc2EtUm9vdENBLmNybDAd
// SIG // BgNVHQ4EFgQUDJ0QJY6apxuZh0PPCH7hvYGQ9M8wDgYD
// SIG // VR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEBCwUAA4ICAQCS
// SIG // GXUNplpCzxkH2fL8lPrAm/AV6USWWi9xM91Q5RN7mZN3
// SIG // D8T7cm1Xy7qmnItFukgdtiUzLbQokDJyFTrF1pyLgGw/
// SIG // 2hU3FJEywSN8crPsBGo812lyWFgAg0uOwUYw7WJQ1teI
// SIG // CycX/Fug0KB94xwxhsvJBiRTpQyhu/2Kyu1Bnx7QQBA1
// SIG // XupcmfhbQrK5O3Q/yIi//kN0OkhQEiS0NlyPPYoRboHW
// SIG // C++wogzV6yNjBbKUBrMFxABqR7mkA0x1Kfy3Ud08qyLC
// SIG // 5Z86C7JFBrMBfyhfPpKVlIiiTQuKz1rTa8ZW12ERoHRH
// SIG // cfEjI1EwwpZXXK5J5RcW6h7FZq/cZE9kLRZhvnRKtb+X
// SIG // 7CCtLx2h61ozDJmifYvuKhiUg9LLWH0Or9D3XU+xKRsR
// SIG // nfOuwHWuhWch8G7kEmnTG9CtD9Dgtq+68KgVHtAWjKk2
// SIG // ui1s1iLYAYxnDm13jMZm0KpRM9mLQHBK5Gb4dFgAQwxO
// SIG // FPBslf99hXWgLyYE33vTIi9p0gYqGHv4OZh1ElgGsvyK
// SIG // dUUJkAr5hfbDX6pYScJI8v9VNYm1JEyFAV9x4MpskL6k
// SIG // E2Sy8rOqS9rQnVnIyPWLi8N9K4GZvPit/Oy+8nFL6q5k
// SIG // N2SZbox5d69YYFe+rN1sDD4CpNWwBBTI/q0V4pkgvhL9
// SIG // 9IV2XasjHZf4peSrHdL4RjGCAlcwggJTAgEBMIGHMHMx
// SIG // CzAJBgNVBAYTAlVTMQ4wDAYDVQQIDAVUZXhhczEQMA4G
// SIG // A1UEBwwHSG91c3RvbjERMA8GA1UECgwIU1NMIENvcnAx
// SIG // LzAtBgNVBAMMJlNTTC5jb20gVGltZXN0YW1waW5nIElz
// SIG // c3VpbmcgUlNBIENBIFIxAhBaWqzoGjVutGKGjVd94D3H
// SIG // MAsGCWCGSAFlAwQCAaCCAWEwGgYJKoZIhvcNAQkDMQ0G
// SIG // CyqGSIb3DQEJEAEEMBwGCSqGSIb3DQEJBTEPFw0yNDA5
// SIG // MTYwODE4MjlaMCgGCSqGSIb3DQEJNDEbMBkwCwYJYIZI
// SIG // AWUDBAIBoQoGCCqGSM49BAMCMC8GCSqGSIb3DQEJBDEi
// SIG // BCAl5r8V7pjQMSHOBDe5WDhRq0OWl782NhAk57IgB2kx
// SIG // tTCByQYLKoZIhvcNAQkQAi8xgbkwgbYwgbMwgbAEIJ1x
// SIG // f43CN2Wqzl5KsOH1ddeaF9Qc7tj9r+8D/T29iUfnMIGL
// SIG // MHekdTBzMQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4
// SIG // YXMxEDAOBgNVBAcMB0hvdXN0b24xETAPBgNVBAoMCFNT
// SIG // TCBDb3JwMS8wLQYDVQQDDCZTU0wuY29tIFRpbWVzdGFt
// SIG // cGluZyBJc3N1aW5nIFJTQSBDQSBSMQIQWlqs6Bo1brRi
// SIG // ho1XfeA9xzAKBggqhkjOPQQDAgRGMEQCIGDbaBJOkt4m
// SIG // ABF91Lp5ukhG+SL76aZpSF4iH8uakBa+AiAA2uQr0+V7
// SIG // N8W4D0u+OUgMNtv33R3SjDB4rY+FFk3oNA==
// SIG // End signature block
