/** 
 * Flexmonster Pivot Table & Charts [https://www.flexmonster.com/]
 * April 2022 (v. 2.9.22)
 * Copyright (c) 2022 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(f){return"undefined"===typeof f||null===f}class h{constructor(){}static FR(f,b){if(f==b)return 0;f=f.split(".");b=b.split(".");if(f.length<b.length)return-1;if(f.length>b.length)return 1;for(var a=0;a<f.length;a++){var c=parseInt(f[a]),d=parseInt(b[a]);if(c<d)return-1;if(c>d)return 1}return 0}static Zc(f){return void 0!==f&&null!==f&&("true"==f.toLowerCase()||"on"==f.toLowerCase())}static NL(){var f=(new Date).getTime()-(new Date(2012,2,8)).getTime()*Math.round(123456789*Math.random());
if(h.ECa==f)return f.toString(35)+(h.Zea++).toString();h.ECa=f;h.Zea=0;return f.toString(35)}static bind(f,...b){if(l(f))return f;for(var a=0;a<b.length;a++)f=f.replace(new RegExp("\\{"+a+"\\}","gi"),null==b[a]?"":b[a].toString());return f}static Cx(f,b=null){return isNaN(f)?e.model.B.j.Qn:u.zh.iya(f,b)}static Bx(f,b,a){void 0===b&&(b="dd/MM/yyyy");if(isNaN(f)||0===f)return e.model.B.j.Qn;f=new Date(f);return isNaN(f.getTime())?"":u.zh.format(f,b,a)}static ON(f,b,a){void 0===b&&(b="dd/MM/yyyy HH:mm:ss");
return h.Bx(f,b,a)}static HT(f){return Date.parse(f)&&this.jDa(f)}static jDa(f){return this.xCa.test(f)}static Bo(f){if(l(f))return 0;if("#"===f.substr(0,1))return parseInt(f.substr(1),16);"transparent"==f&&(f="rgb(255,255,255)");f=f.replace(/[^\d,]/g,"");f=f.split(",");var b=parseInt(f[0]),a=parseInt(f[1]),c=parseInt(f[2]);0===parseInt(f[3])&&(b=a=c=255);return c|a<<8|b<<16}static c5(f){for(var b=new Uint8Array(f.length),a=0,c=f.length;a<c;++a)b[a]=f.charCodeAt(a);return b}static uba(f){f=-1!==f.split(",")[0].indexOf("base64")?
atob(f.split(",")[1]):decodeURI(f.split(",")[1]);return h.c5(f)}static Awa(f){for(var b=f.length,a=Array(b);b--;)a[b]=String.fromCharCode(f[b]);return a.join("")}static contains(f,b){return l(f)?!1:-1<f.toLowerCase().indexOf(b)}static j5(f){if(null==f)return NaN;if("number"===typeof f)return f;"string"!==typeof f&&(f=f.toString());","==e.model.ec.gj.RS().kf&&(f=f.replace(/,/gi,""));f=f.replace(",",".");f=f.replace(/[^[,|\.|\-|\d|e]]*/gi,"");return parseFloat(f)}static trim(f,b=null){if(null==f)return"";
for(var a=0;h.c2(f.charAt(a),b);)++a;for(var c=f.length-1;h.c2(f.charAt(c),b);)--c;return c>=a?f.slice(a,c+1):""}static trimLeft(f,b=null){if(null==f)return"";for(var a=0;h.c2(f.charAt(a),b);)++a;b=f.length-1;return b>=a?f.slice(a,b+1):""}static c2(f,b=null){if(null!=b&&f==b)return!1;switch(f){case " ":case "\t":case "\r":case "\n":case "\f":return!0}return!1}static NBa(f){for(var b in h.CL)if(h.CL[b]==f)return!0;return!1}static PG(f){return"string"!==typeof f||"="!=f.charAt(0)&&"@"!=f.charAt(0)?
f:"'"+f}static yxa(f){return f.replace(/[\s]{2,}/g,function(b){let a="";var c=0;for(b=b.length;c<b;c++)a+="&nbsp;";return a})}static zo(f,b=!1,a=!1){if(l(f))return"";a&&(f=h.yxa(""+f));return b?f.replace(/[<>"'\/]/g,c=>h.CL[c]):f.replace(/[&<>"'\/]/g,c=>h.CL[c])}static zxa(f){if(l(f))return"";f=f.replace(/[&<>"']/g,b=>h.CL[b]);return f.replace(/[\s]{2,}/g,b=>{let a="";var c=0;for(b=b.length;c<b;c++)a+=" ";return a})}static cza(){return new Uint8Array([239,187,191])}static wba(f){h.xba.innerHTML=f;
return h.xba.value}}h.Zea=0;h.xCa=/^(?:[\+-]?\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)?)?)?)?$/;h.CL={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&sol;"};h.xba=document.createElement("textarea");e.P=h;e.v=l;e.Fg=function(f){return"function"===typeof f};
e.ia=function(f){if(l(f))return!0;"string"!==typeof f&&(f=""+f);return 0===f.trim().length};e.mOa=function(f){return f.replace(/\|/g,"{%7C}")};e.lOa=function(f){return f.replace(/{%7C}/g,"|")};e.CK=function(f,b){var a=new Date(f.getTime()),c=b.match(/year|y|quarter|q|month|M|week|w|day|d|hour|h|minute|m|second|s/);if(!c)return a;c=c[0];if("year"==c||"y"==c)return a.setUTCFullYear(f.getUTCFullYear()+1),a;if("quarter"==c||"q"==c)return a.setUTCMonth(f.getUTCMonth()+3),a;if("month"==c||"M"==c)return a.setUTCMonth(f.getUTCMonth()+
1),a;if("week"==c||"w"==c)return a.setUTCDate(f.getUTCDate()+7),a;if("day"==c||"d"==c)return a.setUTCDate(f.getUTCDate()+1),a;b=parseInt(b)||1;if("hour"==c||"h"==c)return a.setUTCHours(f.getUTCHours()+b),a;if("minute"==c||"m"==c)return a.setUTCMinutes(f.getUTCMinutes()+b),a;"second"!=c&&"s"!=c||a.setUTCSeconds(f.getUTCSeconds()+b);return a};e.sHa=function(f){var b=document.createElement("a");b.href=f;f={protocol:b.protocol,host:b.host,hostname:b.hostname,port:b.port,pathname:b.pathname,search:b.search,
hash:b.hash};-1<f.protocol.indexOf(":")&&(f.protocol=f.protocol.substr(0,f.protocol.length-1));return f}})(q||(q={}));
(function(e){class l{constructor(h,f={}){this.hi=0;this.yi=this.$h=!1;const b=void 0===f.wy?!0:f.wy;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.ia(h)||"null"===h?(b?this.yi=!0:this.$h=!0,h=NaN):"number"===typeof h?isNaN(h)&&(this.$h=!0):"string"===typeof h?(e.ia(f.format)?this.$Ba(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.OGa(h,f.format),isNaN(h)&&(this.$h=!0)):(this.yi=!0,h=NaN);this.Dc=isNaN(h)?new Date(NaN):new Date(h);this.Aj(this.Dc.getTimezoneOffset())}$Ba(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.ia(h)){var f=h.match(/[s|M|m|w|q|h|d|y]$/);h=parseFloat(h.substr(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.Kia();break;case "M":this.qI();break;case "q":this.Jia();break;case "y":this.Lia()}void 0!==b&&(b*=1E3,this.Dc.setTime(Math.floor(this.Dc.getTime()/b)*b))}}}getDate(){if(!this.yi&&!this.$h)return this.Dc.getUTCDate()}setDate(h){if(!this.yi&&!this.$h)return this.Dc.setUTCDate(h),this}getDay(){if(!this.yi&&!this.$h)return this.Dc.getUTCDay()}getFullYear(){if(!this.yi&&!this.$h)return this.Dc.getUTCFullYear()}setFullYear(h,f=null,b=null){if(!this.yi&&!this.$h)return e.v(f)?this.Dc.setUTCFullYear(h):
e.v(b)?this.Dc.setUTCFullYear(h,f):this.Dc.setUTCFullYear(h,f,b),this}getHours(){if(!this.yi&&!this.$h)return this.Dc.getUTCHours()}setHours(h,f=null,b=null,a=null){if(!this.yi&&!this.$h)return e.v(f)?this.Dc.setUTCHours(h):e.v(b)?this.Dc.setUTCHours(h,f):e.v(a)?this.Dc.setUTCHours(h,f,b):this.Dc.setUTCHours(h,f,b,a),this}getMilliseconds(){if(!this.yi&&!this.$h)return this.Dc.getUTCMilliseconds()}setMilliseconds(h){if(!this.yi&&!this.$h)return this.Dc.setUTCMilliseconds(h),this}getMinutes(){if(!this.yi&&
!this.$h)return this.Dc.getUTCMinutes()}setMinutes(h,f=null,b=null){if(!this.yi&&!this.$h)return e.v(f)?this.Dc.setUTCMinutes(h):e.v(b)?this.Dc.setUTCMinutes(h,f):this.Dc.setUTCMinutes(h,f,b),this}getMonth(){if(!this.yi&&!this.$h)return this.Dc.getUTCMonth()}setMonth(h,f=null){if(!this.yi&&!this.$h)return e.v(f)?this.Dc.setUTCMonth(h):this.Dc.setUTCMonth(h,f),this}getSeconds(){if(!this.yi&&!this.$h)return this.Dc.getUTCSeconds()}setSeconds(h,f=null){if(!this.yi&&!this.$h)return e.v(f)?this.Dc.setUTCSeconds(h):
this.Dc.setUTCSeconds(h,f),this}getTimezoneOffset(){if(!this.yi&&!this.$h)return this.hi}Aj(h,f=!0){if(!this.yi&&!this.$h){if(isNaN(h)||e.v(h))return this;0!=h&&60>Math.abs(h)&&(h*=-60);h!==this.hi&&(f&&this.Dc.setUTCMinutes(this.Dc.getUTCMinutes()+(this.hi-h)),this.hi=h);return this}}getTime(){return this.yi||this.$h?NaN:this.Dc.getTime()+6E4*this.hi}qZ(h){this.setDate(this.getDate()+h);return this}Jsa(h){this.setMonth(this.getMonth()+h)}Lia(){this.setMonth(0,1);this.Ln()}Jia(){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.Ln()}qI(){this.setDate(1);this.Ln();return this}Kia(h=1){this.setDate(this.getDate()-(this.getDay()-h+7)%7);this.Ln()}Ln(){this.setHours(0,0,0,0);return this}m5(h,f=1){"day"==h?this.Ln():"week"==h?this.Kia(f):"month"==h?this.qI():"quarter"==h?this.Jia():"year"==h&&this.Lia()}eKa(){this.setMonth(11,31);this.eA();return this}cKa(){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.F_(this.getMonth(),this.getFullYear()));this.eA();return this}bKa(){this.setDate(l.F_(this.getMonth(),this.getFullYear()));this.eA();return this}dKa(h=1){this.setDate(this.getDate()+(6-this.getDay()+h)%7);this.eA();return this}eA(){this.setHours(23,59,59,999);return this}i5(h,f=1){return"day"==h?this.eA():"week"==h?this.dKa(f):"month"==h?this.bKa():"quarter"==h?this.cKa():
"year"==h?this.eKa():this}Ug(){return this.yi||this.$h?!1:!isNaN(this.Dc.getTime())}format(h){return this.$h?e.model.B.j.Qn:this.yi?"":this.lCa(h)?u.zh.format(this.Bx(),h):u.zh.format(this.Dc,"UTC:"+h)}lCa(h){return null!==u.zh.lg(h)}toString(){return this.format("yyyy-MM-dd HH:mm:ss")}Bx(){return new Date(this.getTime())}clone(){var h=new l;this.$h||this.yi||(h.Dc=new Date(this.Dc.getTime()));h.hi=this.hi;return h}OGa(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.ia(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.ia(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 F_(h,f){return l.ira[h]+(1==h&&0==f%4?1:0)}static d0(h,f){return h&&f?h.getTime()==f.getTime():h==f}}l.ira={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.Zg=l})(q||(q=
{}));
(function(e){class l{constructor(){(this.isNative=e.Fg(Set))?this.NB=new Set:this.hy=[]}add(h){if(this.isNative)return this.NB.add(h),this;0>this.hy.indexOf(h)&&this.hy.push(h);return this}clear(){if(this.isNative)return this.NB.clear();this.hy.length=0}delete(h){if(this.isNative)return this.NB.delete(h);h=this.hy.indexOf(h);if(0>h)return!1;this.hy.splice(h,1);return!0}has(h){return this.isNative?this.NB.has(h):0<=this.hy.indexOf(h)}get size(){return this.isNative?this.NB.size:this.hy.length}Nc(){if(this.isNative){if(e.Fg(Array.from))return Array.from(this.NB);const h=
[];this.NB.forEach(f=>h.push(f));return h}return this.hy}}e.XE=l})(q||(q={}));
(function(e){class l{constructor(){this.fl={}}get target(){return null}hG(c,d){return c.type===d.type&&c.Jb===d.Jb&&c.w5===d.w5}o1(c,d){if(e.v(this.fl[c]))return!1;for(var g=0;g<this.fl[c].length;g++)if(this.hG(this.fl[c][g],d))return!0;return!1}addEventListener(c,d,g){var k={type:c,Jb:d,w5:g};this.o1(c,k)||(e.v(this.fl[c])&&(this.fl[c]=[]),this.fl[c].push(k),this.target.addEventListener(c,d,g))}removeEventListener(c,d,g){d={type:c,Jb:d,w5:g};for(c in this.fl){for(var k=[],m=0;m<this.fl[c].length;m++)this.hG(this.fl[c][m],
d)?"boolean"===typeof g?this.target.removeEventListener(c,this.fl[c][m].Jb,g):this.target.removeEventListener(c,this.fl[c][m].Jb):k.push(this.fl[c][m]);this.fl[c]=k}}dispose(){for(var c in this.fl)for(var d=0;d<this.fl[c].length;d++)this.target.removeEventListener(c,this.fl[c][d].Jb,!0),this.target.removeEventListener(c,this.fl[c][d].Jb,!1);this.fl={}}}class h extends l{static V(){null===h.instance&&(h.instance=new h);return h.instance}get target(){return document.body}}h.instance=null;class f extends l{static V(){null===
f.instance&&(f.instance=new f);return f.instance}get target(){return document}}f.instance=null;class b extends l{static V(){null===b.instance&&(b.instance=new b);return b.instance}get target(){return window}}b.instance=null;class a{static dispose(){for(;0<a.NN.length;)clearTimeout(a.NN.pop());for(;0<a.xM.length;)clearInterval(a.xM.pop())}}a.NN=[];a.xM=[];e.lqa=a;e.Ce=function(c,d){c=setTimeout(c,d);a.NN.push(c);return c};e.ts=function(c){clearTimeout(c);a.NN.splice(a.NN.indexOf(c),1)};e.Eca=function(c,
d){c=setInterval(c,d);a.xM.push(c);return c};e.p0=function(c){clearInterval(c);a.xM.splice(a.xM.indexOf(c),1)};e.Dn=h.V();e.vk=f.V();e.JL=b.V()})(q||(q={}));var u;
(function(e){class l{constructor(){}static YBa(h){return null!=h&&(0==h.indexOf("http://")||0==h.indexOf("https://"))}static zBa(h){return null!=h&&0==h.indexOf("blob:http")}static sH(h,f=!1){if(!h)return"()";h=h.trim();if(0==h.length)return"()";if(l.zBa(h))return h;f&&(h+=(-1<h.indexOf("?")?"&":"?")+Math.round(Date.now()/3600));if(l.YBa(h)||0==h.indexOf("file")||"/"==h.substr(0,1)||"./"==h.substr(0,2))return h;if(-1!=h.indexOf("..")){f=l.g_.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.g_+h}static Tsa(h){return h+=(-1<h.indexOf("?")?"&":"?")+Math.round(Date.now()/3600)}}l.g_="";e.ey=l})(u||(u={}));
(function(e){class l{constructor(){}static format(h,f,b){var a=!1,c=this.lg(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.In(b),
ddd:l.Hu.AG[c],dddd:l.Hu.AG[c+7],D:b,DD:l.In(b),DDD:l.Hu.AG[c],DDDD:l.Hu.AG[c+7],M:g+1,MM:l.In(g+1),MMM:l.Hu.yU[g],MMMM:l.Hu.yU[g+12],yy:String(k).slice(2),yyyy:k,YY:String(k).slice(2),YYYY:k,h:m%12||12,hh:l.In(m%12||12),H:m,HH:l.In(m),k:0==m?24:m,kk:0==m?24:l.In(m),m:n,mm:l.In(n),s:p,ss:l.In(p),l:l.In(d,3),L:l.In(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.XJa)||[""]).pop().replace(l.YJa,""),o:(0<t?"-":"+")+l.In(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.Pia,function(w){return w in r?r[w]:w.slice(1,w.length-1)})}static iya(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.Wo?"d'd' "+this.Eba:this.Eba: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.In(a),H:g,HH:l.In(g),HHH:h,m:d,mm:l.In(d),s:c,ss:l.In(c)};return f.replace(l.Pia,function(m){return m in
k?k[m]:m.slice(1,m.length-1)})}static lg(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.pI.hasOwnProperty(h.slice(0,2))?this.pI[h.slice(0,2)]:this.pI.hasOwnProperty(h.slice(0,3))?this.pI[h.slice(0,3)]:this.pI.hasOwnProperty(h.slice(0,4))?this.pI[h.slice(0,4)]:null}static In(h,f){h=""+h;for(f=f||2;h.length<f;)h="0"+h;return h}static bJa(h,f){l.Hu.AG=f.concat(h)}static nJa(h,f){l.Hu.yU=f.concat(h)}static Cza(){return l.Hu.AG.slice(7,
14)}static eAa(){return l.Hu.yU.slice(12,24)}}l.Eba="HH:mm:ss";l.pI={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.Pia=/d{1,4}|D{1,4}|m{1,4}|M{1,4}|yy(?:yy)?|YY(?:YY)?|H{1,3}|([HhkMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g;l.XJa=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g;l.YJa=/[^-+\dA-Z]/g;l.Hu={AG:"Sun Mon Tue Wed Thu Fri Sat Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
yU:"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.zh=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.ia(k))return-1;if(e.ia(g))return 1;if(void 0!==b){g=b(g);k=b(k);if(e.ia(k))return-1;if(e.ia(g))return 1}return l.localeCompare(g,k)}:(g,k)=>{if(e.ia(k))return-1;if(e.ia(g))return 1;if(void 0!==b){g=b(g);k=b(k);if(e.ia(k))return-1;if(e.ia(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 vr(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 se(h,f,b){if(b>=h.length)return l.vr(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 wr(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 F2(h,f,b){h.splice(b,0,h.splice(f,1)[0])}}l.Lx=1;l.ep=2;l.Bv=8;l.Ki=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)}Bsa(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)}DK(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))}h4(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)}Hb(h){return this.values.has(h)}getItem(h){return this.values.get(h)}ea(h){return this.values.get(this.keys[h])}Jh(h){return this.keys[h]}YS(){return this.values.get(this.keys[this.keys.length-1])}G2(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.ea(a+h))||b.Ta(this.Jh(a+h),this.ea(a+
h)));return b}concat(h,f=!0){if(!f)return this.fra(h),null;var b=new l;for(f=0;f<this.length;f++)b.Ta(this.Jh(f),this.ea(f));for(f=0;f<h.length;f++)b.Ta(h.Jh(f),h.ea(f));return b}fra(h){var f,b=h.length;for(f=0;f<b;f++)this.Ta(h.Jh(f),h.ea(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.Jh(a),this.ea(a));return b}reverse(){var h,f=new l;for(h=this.length-1;-1<h;h--)f.Ta(this.Jh(h),this.ea(h));return f}Nc(h=
!1){if(h)return this.keys.slice(0);h=[];for(var f=0;f<this.length;f++)h.push(this.ea(f));return h}toString(){var h=[],f;for(f in this.keys){var b="{"+f+": "+this.getItem(f)+"}";h.push(b)}return h.join(", ")}Qa(){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.tb=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.w$(h);p=p[1][0]}catch(t){return null}return p}w$(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.w$(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.UY(b[c],f));return[a,h]}UY(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[d.trim(),[this.UY(c[0],f),this.UY(c[1],f)],!0]}return this.Sra(h,f)}Sra(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;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.rJ=l})(u||(u={}));
(function(e){class l{static get Ho(){return/Mac/i.test(navigator.platform)}static get vD(){return/(iPhone|iPod|iPad)/i.test(navigator.platform)||/(iPhone|iPod|iPad)/i.test(navigator.userAgent)}}e.hj=l})(u||(u={}));
(function(e){class l{constructor(f=!0){this.values=[];this.iR=[];this.root=new h("");this.nR=f}get length(){return this.values.length}add(f,b){if(q.v(f)||0===f.length)return void 0===this.Zy&&(this.Zy=this.values.length,this.values.push(f)),this.Zy;f=""+f;if(this.nR){const a=/[^\u0000-\u007F]+/.test(f)?f.toLocaleLowerCase():f.toLowerCase();return this.root.P$(f,a,a===f,this.values,this.iR,b)}return this.root.Q$(f,this.values,b)}get(f){return this.nR?this.iR[f]||this.values[f]:this.values[f]}find(f){if(q.v(f)||
0===f.length)return void 0!==this.Zy?this.Zy:-1;f=""+f;const b=/[^\u0000-\u007F]+/.test(f);this.nR&&(f=b?f.toLocaleLowerCase():f.toLowerCase());return this.root.find(f,0,this.values,b)}sort(){var f=this.root.sort(l.d_);void 0!==this.Zy&&f.unshift(this.Zy);return f}clone(){var f=new l(this.nR);f.values=this.values.slice();f.iR=this.iR.slice();f.Zy=this.Zy;f.root=this.root.clone();return f}static d_(f,b){return f&&f.localeCompare?f.localeCompare(b):f==b?0:f>b?1:-1}}e.HP=l;class h{constructor(f){this.Qg=
[];this.prefix=f}Q$(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).Q$(f,b,a);for(var d=0;d<this.Qg.length;d++){c=b[this.Qg[d]];if(f<c)return this.UP(f,b,a,d);if(f===c){if(void 0===a)return this.Qg[d];b[a]=f;this.Qg.splice(d,0,a);return a}}return this.UP(f,b,a)}P$(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).P$(f,b,a,c,d,g);for(var m=0;m<this.Qg.length;m++){k=c[this.Qg[m]];if(b<k)return a?this.UP(f,c,g,m):this.x9(f,b,c,d,g,m);if(b===k){if(void 0===g)return this.Qg[m];c[g]=b;a||(d[g]=f);this.Qg.splice(m,0,g);return g}}return a?this.UP(f,c,g):this.x9(f,b,c,d,g)}x9(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.Qg.push(d):this.Qg.splice(g,0,d);this.Qg.length>h.Y7&&this.J$(a);return d}UP(f,b,a,c=-1){void 0===a?(a=b.length,b.push(f)):
b[a]=f;-1===c?this.Qg.push(a):this.Qg.splice(c,0,a);this.Qg.length>h.Y7&&this.J$(b);return a}J$(f){if(!this.children){this.children=new Map;for(var b,a=this.prefix.length,c=-1,d=0,g=0;g<this.Qg.length;g++)b=f[this.Qg[g]],b.length===a?c=this.Qg[g]:(b=b[a],this.children.has(b)||(this.children.set(b,new h(this.prefix+b)),d++),this.children.get(b).Qg.push(this.Qg[g]));this.Qg=-1===c?[]:[c]}}sort(f){var b=0<this.Qg.length?this.Qg.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.tra(f,a,c)}tra(f,b,a){for(let d=0;d<this.Qg.length;d++){var c=b[this.Qg[d]];if(a){if(c=c.localeCompare(f),0===c)return this.Qg[d]}else if(f===c)return this.Qg[d]}return-1}clone(){var f=new h(this.prefix);f.Qg=this.Qg.slice();void 0!==this.children&&
(f.children=new Map(this.children));return f}}h.Y7=16})(u||(u={}));
(function(e){class l{static Eg(h){for(var f in h)if(!q.v(h[f]))return!1;return!0}static xG(h){var f={},b;for(b in h)f[b]=h[b];return f}static nj(h,f){if(q.v(h))return null;if(Array.isArray(h))return l.Bwa(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.nj(h[a]);return b}static Bwa(h){for(var f=[],b=0;b<h.length;b++)f[b]="object"!=typeof h[b]?h[b]:l.nj(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.Sc=l})(u||(u={}));var v;
(function(e){class l{constructor(f,b=null,a=null){this.i$=!1;this.type=f;this.target=b;this.data=a}static Gea(f){return-1<"fullscreenchange mozfullscreenchange webkitfullscreenchange MSFullscreenChange focusin focusout touchstart touchmove touchend touchenter touchleave touchcancel".split(" ").indexOf(f)}stopPropagation(){this.i$=!0}get mCa(){return this.i$}}l.Oc="event_complete";l.vA="event_connected";l.ue="event_progress";l.np="event_select";l.$d="event_change";l.Aa="event_error";l.OPENED="event_opened";
l.CLOSED="event_closed";l.BW="event_cancel";l.OPEN="event_open";l.h6="event_close";l.HX="event_resize";l.cp="event_clear";e.fa=l;class h{constructor(){this.cS=!1;this.qh=[];this.gn=[];this.Dt=[]}hG(f,b){return f.type==b.type&&f.Jb==b.Jb}n1(f){return!q.v(this.qh[f])}o1(f,b){if(q.v(this.qh[f]))return!1;for(var a=0;a<this.qh[f].length;a++)if(this.hG(this.qh[f][a],b))return!0;return!1}N(f,b,a=0){b={type:f,Jb:b,priority:a};if(!this.o1(f,b))if(this.cS)q.v(this.gn[f])&&(this.gn[f]=[]),this.gn[f].push(b);
else if(q.v(this.qh[f])&&(this.qh[f]=[]),0==this.qh[f].length)this.qh[f].push(b);else{this.qh[f][this.qh[f].length-1].priority>=a&&this.qh[f].push(b);for(var c=0;c<this.qh[f].length;c++)if(this.qh[f][c].priority<a){this.qh[f].splice(c,0,b);break}}}sb(f,b){if(!q.v(this.qh[f])){b={type:f,Jb:b};for(var a=this.qh[f].slice(0),c=[],d=0;d<a.length;d++)this.hG(a[d],b)?this.cS&&(q.v(this.Dt[f])&&(this.Dt[f]=[]),this.Dt[f].push(a[d])):c.push(a[d]);this.qh[f]=c}}Yd(f){void 0===f?(this.qh=[],this.gn=[],this.Dt=
[]):(q.v(this.qh)||(this.qh[f]=[]),q.v(this.gn)||(this.gn[f]=[]),q.v(this.Dt)||(this.Dt[f]=[]))}Fa(f){if(!q.v(this.qh[f.type])){this.cS=!0;for(var b=this.qh[f.type].slice(0),a=0;a<b.length;a++){if(!q.v(this.Dt[f.type])){var c=!1,d;for(d in this.Dt[f.type])this.hG(b[a],this.Dt[f.type][d])&&(c=!0);if(c)continue}f instanceof q.model.cd?b[a].Jb.call(this,f.data):f instanceof l&&f.mCa||b[a].Jb.call(this,f)}delete this.Dt[f.type];for(var g in this.gn){if(q.v(this.qh[g]))b=[];else if(Array.isArray(this.qh[g]))b=
this.qh[g].slice(0);else continue;if(!q.v(this.gn[g]))for(a=0;a<this.gn[g].length;a++)if(0==b.length)b.push(this.gn[g][a]);else for(b[b.length-1].priority==this.gn[g][a].priority&&b.push(this.gn[g][a]),f=0;f<b.length;f++)if(b[f].priority<this.gn[g][a].priority){b.splice(f,0,this.gn[g][a]);break}this.qh[g]=b;this.gn[g]=[]}this.cS=!1}}$a(f,b,a){f=new e.fa(f,null==b?this:b,a);this.Fa(f)}}e.Ah=h})(v||(v={}));
(function(e){e.requestIdleCallback=function(h,f=null,b=!1){if(window.requestIdleCallback&&!b)return window.requestIdleCallback(h,f);var a,c=e.Qf(),d;return q.Ce(()=>{h({didTimeout:!1,timeRemaining:()=>void 0===a?(a=e.Qf(),d=Math.min(350,e.Qf()-c+50)):Math.max(0,d-(e.Qf()-a))})},1)};e.cancelIdleCallback=function(h){if(window.cancelIdleCallback)return window.cancelIdleCallback(h);q.ts(h)};class l{constructor(){throw Error("Singleton");}static eo(h){l.aI.push(h);l.pg()}static pg(){q.v(l.UK)&&0<l.aI.length&&
(3<l.B1&&(l.aea=!1),l.UK=e.requestIdleCallback(l.yIa,{timeout:100},!l.aea))}static yIa(h){if(h.didTimeout)l.B1++,l.jha();else for(l.B1=0;0<h.timeRemaining()&&0<l.aI.length&&!l.jha(););l.UK=null;l.pg()}static jha(){var h=l.aI.shift(),f=h.Uo(h.LZ);f?h&&h.$e&&q.Ce(h.$e,1):l.aI.push(h);return f}static cancel(){null!=l.UK&&(e.cancelIdleCallback(l.UK),l.UK=null);l.aI=[]}}l.aI=[];l.aea=!0;l.B1=0;e.Cl=l})(u||(u={}));
(function(e){function l(){var h=navigator.userAgent.toLowerCase(),f={};f.BM=/mozilla/.test(h)&&/firefox/.test(h);f.DT=/webkit/.test(h)&&/chrome/.test(h)&&!/edge/.test(h);f.L1=/edge/.test(h);f.rCa=/applewebkit/.test(h)&&/safari/.test(h)&&!/chrome/.test(h);f.Jea=/opera/.test(h);f.Xi=/msie/.test(h);f.oCa=/ReactNative/i.test(navigator.product);f.Mm=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i.test(h)||/iPad|iPhone|iPod|BlackBerry/i.test(navigator.platform)||f.oCa;f.version=NaN;f.Xi||f.BM||
f.DT||f.rCa||f.Jea||!/trident/.test(h)||(f.Xi=!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.Kd=function(){return l()};e.aS=l;e.PT=function(){return null!=document.fullscreenElement||null!=document.mozFullScreenElement||null!=document.webkitFullscreenElement||null!=document.msFullscreenElement};e.Q1=function(){return window!=top};e.sea=
function(){try{return!q.v(window.process.versions.electron)}catch(h){return!1}};e.VBa=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.cOa=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.hOa=function(h,f){var b=new Date;b.setDate(b.getDate()+1825);f=encodeURI(f)+"; expires="+b.toUTCString();document.cookie=h+"="+f};e.dOa=function(){return screen.orientation&&-1<screen.orientation.type.indexOf("landscape")};e.eOa=function(){return screen.orientation&&-1<screen.orientation.type.indexOf("portrait")};
e.oOa=function(){return Math.max(document.documentElement.clientWidth)};e.nOa=function(){return Math.max(document.documentElement.clientHeight)}})(u||(u={}));
(function(e){class l extends v.Ah{constructor(f,b=0){super();this.eQ=0;this.pK=!1;this.kra=f;this.D$=b}vGa(){this.eQ++;this.Fa(new v.fa(h.Al));0<this.D$&&this.eQ>=this.D$&&(this.stop(),this.Fa(new v.fa(h.Bl)))}start(){this.pK||(this.e$=q.Eca(()=>this.vGa(),this.kra),this.pK=!0)}stop(){this.pK&&!q.v(this.e$)&&(q.p0(this.e$),this.pK=!1)}reset(){this.eQ=0;this.stop()}set tw(f){}get tw(){return this.eQ}set pl(f){}get pl(){return this.pK}}e.wt=l;class h{}h.Al="timer";h.Bl="complete";e.pf=h;e.Qf=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.NZ);this.JH.push(f);f.Jb=b;f.ab=a;f.load()}static m2(f,b,a){null==b&&(b={});f=new h(f,l.NZ);this.JH.push(f);f.QK=b.QK;f.pj=b.pj;f.Jb=a;f.ab=void 0;f.load()}static uKa(){var f=document.querySelector("link[data-fm-hc-theme]");f&&(f.disabled=!0)}static dispose(){for(let f=0;f<this.JH.length;f++)this.JH[f].dispose();this.JH.length=0;this.JH=null}}l.NZ="";l.JH=[];e.Zn=l;class h{constructor(f,b){this.QK=null;this.pj=
!1;this.total=this.loaded=0;this.errors=[];this.l2=this.tN=null;this.url=f;this.baseURI=b;this.total="string"==typeof this.url?1:this.url.length}load(){0==this.total&&this.wj();if("string"==typeof this.url)this.iK(this.url,this.QK);else for(var f=this.url,b=0;b<f.length;b++)this.iK(f[b],this.QK)}wj(){this.loaded++;if(this.loaded==this.total||0==this.total)0==this.errors.length?this.Jb&&this.Jb():this.ab&&this.ab(this.errors),this.ab=this.Jb=null}iK(f,b){f=this.baseURI+f;f.lastIndexOf(".js")==f.length-
3?this.SCa(f):f.lastIndexOf(".css")==f.length-4?this.m2(f,b):this.wj()}SCa(f){if(null==this.zca(f)){const a=this.tN=document.createElement("script");a.type="text/javascript";a.src=f+"?"+q.ph.ft;a.async=!0;var b=()=>{a.readystate="loaded";this.wj();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.wj()};document.head.appendChild(a)}else b=
this.tN=this.zca(f),"error"==b.readystate?(this.errors.push(f),this.wj()):!0===b.async&&"loaded"!=b.readystate?(null==b.onloadedlisteners&&(b.onloadedlisteners=[]),b.onloadedlisteners.push(()=>this.wj())):this.wj()}m2(f,b=null){const a=this.l2=document.createElement("link");a.href=f+"?"+q.ph.ft;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.Sb(f);a.onreadystatechange=()=>this.wj();a.onload=()=>this.wj();this.pj?document.body.appendChild(a):
document.head.appendChild(a)}zca(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}Sb(f){this.errors.push(f);this.wj()}dispose(){this.ab=this.Jb=this.l2=this.tN=null}}})(u||(u={}));
(function(e){class l extends v.Ah{constructor(f){super();this.EY=!1;this.Era=b=>this.cq(b);this.Fra=b=>this.h3(b);this.CCa=1E3;this.buffer=[];this.cea=()=>this.fFa();this.TP=null;if(null!=l.ze)throw Error("KeyboardListener is singleton");e.Kd().Mm||(q.vk.addEventListener("keydown",this.Era),q.vk.addEventListener("keyup",this.Fra),this.IF=new x.Ea("div"),this.IF.R("position","fixed").R("left","0px").R("top","0px").R("opacity","0").R("width","0px").R("height","0px"),this.IF.eb(),this.Oq=new x.Hv,this.Oq.G.R("width",
"1px").R("height","1px").R("padding","0px"),this.Oq.N("focusin",()=>{this.EY=!0}),this.Oq.N("focusout",()=>{this.EY=!1}),this.IF.append(this.Oq.G),f.append(this.IF))}static V(){null==l.ze&&(l.ze=new l(q.K.Mb.Fb.G));return l.ze}get wea(){return this.EY}h3(f){this.$$(f.key,f.type)}cq(f){var b=new h(h.UO);b.keyCode=f.keyCode;b.altKey=f.altKey;b.ctrlKey=f.ctrlKey;b.metaKey=f.metaKey;b.shiftKey=f.shiftKey;b.gq=f;this.Fa(b);this.$$(f.key,f.type)}$$(f,b){f=f.toLowerCase();const a=Date.now();a-this.FCa>this.CCa&&
(this.buffer.length=0);20<this.buffer.length&&this.buffer.splice(0,this.buffer.length-6);this.buffer.push({key:f,type:b});this.FCa=a;this.lua()&&(this.buffer.length=0,this.$a(h.g9))}lua(){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}fFa(){this.IF.eb();this.Oq.zj("");this.Oq.G.blur();this.Oq.sb("keyup",this.cea);null!=this.TP&&(this.TP.focus({preventScroll:!0}),this.TP=null)}xG(f){this.TP=document.activeElement;
this.IF.show();this.Oq.zj(f);this.Oq.G.focus({preventScroll:!0});this.Oq.selectAll();this.Oq.G.focus({preventScroll:!0});this.Oq.N("keyup",this.cea)}static dispose(){l.ze=null}}e.VO=l;class h extends v.fa{constructor(f){super(f)}}h.UO="event_keydown";h.g9="event_tripple_shift";e.KeyboardEvent=h;(function(f){f[f.$Ka=8]="BACKSPACE";f[f.NNa=9]="TAB";f[f.LLa=13]="ENTER";f[f.INa=16]="SHIFT";f[f.BLa=17]="CTRL";f[f.VKa=18]="ALT";f[f.xNa=19]="PAUSE";f[f.wLa=20]="CAPS_LOCK";f[f.NLa=27]="ESCAPE";f[f.KNa=32]=
"SPACE";f[f.wNa=33]="PAGE_UP";f[f.vNa=34]="PAGE_DOWN";f[f.CA=35]="END";f[f.oMa=36]="HOME";f[f.aNa=37]="LEFT_ARROW";f[f.WNa=38]="UP_ARROW";f[f.ANa=39]="RIGHT_ARROW";f[f.JLa=40]="DOWN_ARROW";f[f.pMa=45]="INSERT";f[f.G6=46]="DELETE";f[f.rMa=48]="KEY_0";f[f.sMa=49]="KEY_1";f[f.tMa=50]="KEY_2";f[f.uMa=51]="KEY_3";f[f.vMa=52]="KEY_4";f[f.wMa=53]="KEY_5";f[f.xMa=54]="KEY_6";f[f.yMa=55]="KEY_7";f[f.zMa=56]="KEY_8";f[f.AMa=57]="KEY_9";f[f.BMa=65]="KEY_A";f[f.CMa=66]="KEY_B";f[f.DMa=67]="KEY_C";f[f.EMa=68]=
"KEY_D";f[f.FMa=69]="KEY_E";f[f.GMa=70]="KEY_F";f[f.HMa=71]="KEY_G";f[f.IMa=72]="KEY_H";f[f.JMa=73]="KEY_I";f[f.KMa=74]="KEY_J";f[f.LMa=75]="KEY_K";f[f.MMa=76]="KEY_L";f[f.NMa=77]="KEY_M";f[f.OMa=78]="KEY_N";f[f.PMa=79]="KEY_O";f[f.QMa=80]="KEY_P";f[f.RMa=81]="KEY_Q";f[f.SMa=82]="KEY_R";f[f.TMa=83]="KEY_S";f[f.UMa=84]="KEY_T";f[f.VMa=85]="KEY_U";f[f.WMa=86]="KEY_V";f[f.XMa=87]="KEY_W";f[f.YMa=88]="KEY_X";f[f.ZMa=89]="KEY_Y";f[f.$Ma=90]="KEY_Z";f[f.bNa=91]="LEFT_META";f[f.BNa=92]="RIGHT_META";f[f.np=
93]="SELECT";f[f.jNa=96]="NUMPAD_0";f[f.kNa=97]="NUMPAD_1";f[f.lNa=98]="NUMPAD_2";f[f.mNa=99]="NUMPAD_3";f[f.nNa=100]="NUMPAD_4";f[f.oNa=101]="NUMPAD_5";f[f.pNa=102]="NUMPAD_6";f[f.qNa=103]="NUMPAD_7";f[f.rNa=104]="NUMPAD_8";f[f.sNa=105]="NUMPAD_9";f[f.oP=106]="MULTIPLY";f[f.bO=107]="ADD";f[f.EP=109]="SUBTRACT";f[f.GLa=110]="DECIMAL";f[f.UI=111]="DIVIDE";f[f.PLa=112]="F1";f[f.TLa=113]="F2";f[f.ULa=114]="F3";f[f.VLa=115]="F4";f[f.WLa=116]="F5";f[f.XLa=117]="F6";f[f.YLa=118]="F7";f[f.ZLa=119]="F8";
f[f.$La=120]="F9";f[f.QLa=121]="F10";f[f.RLa=122]="F11";f[f.SLa=123]="F12";f[f.tNa=144]="NUM_LOCK";f[f.DNa=145]="SCROLL_LOCK";f[f.GNa=186]="SEMICOLON";f[f.MLa=187]="EQUALS";f[f.zLa=188]="COMMA";f[f.FLa=189]="DASH";f[f.yNa=190]="PERIOD";f[f.jMa=191]="FORWARD_SLASH";f[f.nMa=192]="GRAVE_ACCENT";f[f.uNa=219]="OPEN_BRACKET";f[f.aLa=220]="BACK_SLASH";f[f.yLa=221]="CLOSE_BRACKET";f[f.JNa=222]="SINGLE_QUOTE"})(e.cna||(e.cna={}))})(u||(u={}));
(function(e){class l extends v.Ah{constructor(f){super();this.bZ=()=>this.GIa();this.jQ=()=>this.jQ();this.QF="__FMResizeTriggersStorage__";this.Gl=f;this.pBa();this.Sq=new h(this.Gl.element,this.QF);this.QJa(this.Gl.element)}pBa(){!q.v(this.Gl)&&q.v(this.Gl.element[this.QF])&&(this.Gl.element[this.QF]={})}refresh(){this.j4(this.Sq)}j4(f){var b=f.o4;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}kua(f){return f.offsetWidth!=this.Sq.m4.width||f.offsetHeight!=this.Sq.m4.height}GIa(){if(this.Gl&&this.Gl.element&&!q.v(this.Gl.element[this.QF])){const f=this.Gl.element,b=this.Sq.m4;this.j4(this.Sq);this.Sq.pV&&this.Gl.cancelAnimationFrame(this.Sq.pV);this.Sq.pV=this.Gl.requestAnimationFrame(()=>{q.v(b.width)&&(b.width=f.offsetWidth);q.v(b.height)&&(b.height=f.offsetHeight);this.kua(f)&&(b.width=f.offsetWidth,
b.height=f.offsetHeight,this.Owa())})}}Owa(){this.$a(v.fa.HX)}QJa(f){f.attachEvent?f.attachEvent("onresize",this.jQ):q.v(f)||("static"==getComputedStyle(f).position&&(f.style.position="relative"),f.appendChild(this.Sq.o4),this.j4(this.Sq),f.addEventListener("scroll",this.bZ,!0))}SJa(f){f.detachEvent?f.detachEvent("onresize",this.jQ):f.removeEventListener("scroll",this.bZ,!0)}Aua(){const f=this.Gl.element[this.QF],b=Object.keys(f);for(let a=0;a<b.length;a++)if(!q.v(f[b[a]]))return;this.Gl.element[this.QF]=
null}dispose(){this.Gl&&this.Gl.element&&(this.SJa(this.Gl.element),this.Sq.dispose(),this.Sq=null,this.Aua());this.jQ=this.bZ=this.Gl=null}}e.spa=l;class h{constructor(f,b){this.ZY="__resizeLast__";this.F$="__resizeListeners__";this.mK="__resizeTriggers__";this.SQ="__resizeRAF__";this.ora="__resizeTrigger";this.QD=f;this.Z4=b;this.iS=this.Tya();q.v(this.QD)||this.nBa(this.Z4)}get o4(){return this.eM()[this.mK]}get m4(){return this.eM()[this.ZY]}get pV(){return this.eM()[this.SQ]}set pV(f){this.eM()[this.SQ]=
f}Tya(){return this.ora+q.K.Mb.Fb.gf.id}nBa(f){this.QD[f][this.iS]={};f=this.QD[f][this.iS];f[this.ZY]={};f[this.F$]=[];f[this.mK]=document.createElement("div");f[this.mK].className="fm-resize-triggers";f[this.mK].innerHTML='<div class="fm-expand-trigger"><div></div></div><div class="fm-contract-trigger"></div>';f[this.SQ]=null}eM(){return this.QD[this.Z4][this.iS]}dispose(){if(!q.v(this.QD)){this.QD.removeChild(this.o4);const f=this.eM();f[this.ZY]=null;f[this.F$]=null;f[this.SQ]=null;f[this.mK]=
null;this.QD[this.Z4][this.iS]=null}}}e.CNa=h})(u||(u={}));(function(e){class l{constructor(){this.g5=[]}add(h,...f){this.g5.push({Jb:h,LZ:f})}pg(h){var f=()=>{if(0==this.g5.length)h();else{var b=this.g5.shift();e.requestIdleCallback(()=>b.Jb(f,...b.LZ),{timeout:100})}};f()}}e.MJ=l})(u||(u={}));
(function(e){function l(D,E,G){var F=0,J=[],H=0,M,K,Q,N=!1,W=[],O=[],V=!1;G=G||{};var ca=G.encoding||"UTF8";var fa=G.fOa||1;if(fa!==parseInt(fa,10)||1>fa)throw Error("numRounds must a integer >= 1");if(0===D.lastIndexOf("SHA-",0))if(M=function(R,P){return I(R,P,D)},K=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=I(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.kG;P=P.value;var Z=U>>>3;ba=Z/4-1;if(Z<R/8){for(P=K(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=M(W,ha);F=U;N=!0};this.update=function(R){var P,ba=0,Z=U>>>5;var X=ka(R,J,H);R=X.kG;var ja=X.value;X=R>>>5;for(P=0;P<X;P+=Z)ba+U<=R&&(ha=M(ja.slice(P,P+Z),ha),
ba+=U);F+=ba;J=ja.slice(ba>>>5);H=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=K(J.slice(),H,F,Q(ha));for(P=1;P<fa;P+=1)Z=K(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=K(J.slice(),H,F,Q(ha));var Z=M(O,B(D));Z=K(P,aa,U,Z);return R(Z)}}function h(){}function f(D,E,G){var F="";E/=8;var J;for(J=0;J<E;J+=1){var H=D[J>>>2]>>>8*(3+J%4*-1);F+="0123456789abcdef".charAt(H>>>4&15)+"0123456789abcdef".charAt(H&15)}return G.WU?F.toUpperCase():F}function b(D,E,G){var F="",J=E/8,H;for(H=0;H<J;H+=3){var M=H+1<J?D[H+1>>>2]:0;var K=H+2<J?D[H+2>>>2]:0;K=(D[H>>>2]>>>8*(3+H%4*-1)&255)<<16|(M>>>8*(3+(H+1)%
4*-1)&255)<<8|K>>>8*(3+(H+2)%4*-1)&255;for(M=0;4>M;M+=1)8*H+6*M<=E?F+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(K>>>6*(3-M)&63):F+=G.lR}return F}function a(D,E){var G="";E/=8;var F;for(F=0;F<E;F+=1){var J=D[F>>>2]>>>8*(3+F%4*-1)&255;G+=String.fromCharCode(J)}return G}function c(D,E){E/=8;var G,F=new ArrayBuffer(E);var J=new Uint8Array(F);for(G=0;G<E;G+=1)J[G]=D[G>>>2]>>>8*(3+G%4*-1)&255;return F}function d(D){var E={WU:!1,lR:"=",iOa:-1};D=D||{};E.WU=D.WU||!1;!0===D.hasOwnProperty("b64Pad")&&
(E.lR=D.lR);if("boolean"!==typeof E.WU)throw Error("Invalid outputUpper formatting option");if("string"!==typeof E.lR)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,J){var H=G.length,M,K;if(0!==H%2)throw Error("String of HEX type must be in byte increments");F=F||[0];J=J||0;var Q=J>>>3;for(M=0;M<H;M+=2){var N=parseInt(G.substr(M,
2),16);if(isNaN(N))throw Error("String of HEX type contains invalid characters");var W=(M>>>1)+Q;for(K=W>>>2;F.length<=K;)F.push(0);F[K]|=N<<8*(3+W%4*-1)}return{value:F,kG:4*H+J}};break;case "TEXT":D=function(G,F,J){var H=0,M,K,Q;F=F||[0];J=J||0;var N=J>>>3;if("UTF8"===E){var W=3;for(M=0;M<G.length;M+=1){var O=G.charCodeAt(M);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):(M+=1,O=65536+((O&1023)<<10|G.charCodeAt(M)&1023),
V.push(240|O>>>18,128|O>>>12&63,128|O>>>6&63,128|O&63));for(K=0;K<V.length;K+=1){var ca=H+N;for(Q=ca>>>2;F.length<=Q;)F.push(0);F[Q]|=V[K]<<8*(W+ca%4*-1);H+=1}}}else if("UTF16BE"===E||"UTF16LE"===E)for(W=2,V="UTF16LE"===E&&!0||"UTF16LE"!==E&&!1,M=0;M<G.length;M+=1){O=G.charCodeAt(M);!0===V&&(K=O&255,O=K<<8|O>>>8);ca=H+N;for(Q=ca>>>2;F.length<=Q;)F.push(0);F[Q]|=O<<8*(W+ca%4*-1);H+=2}return{value:F,kG:8*H+J}};break;case "B64":D=function(G,F,J){var H=0,M,K;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];J=J||0;var N=J>>>3;for(Q=0;Q<G.length;Q+=4){var W=G.substr(Q,4);for(M=K=0;M<W.length;M+=1){var O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(W[M]);K|=O<<18-6*M}for(M=0;M<W.length-1;M+=1){var V=H+N;for(O=V>>>2;F.length<=O;)F.push(0);F[O]|=(K>>>16-8*M&255)<<8*(3+V%4*-1);H+=1}}return{value:F,kG:8*H+J}};break;case "BYTES":D=function(G,F,J){var H;F=
F||[0];J=J||0;var M=J>>>3;for(H=0;H<G.length;H+=1){var K=G.charCodeAt(H);var Q=H+M;var N=Q>>>2;F.length<=N&&F.push(0);F[N]|=K<<8*(3+Q%4*-1)}return{value:F,kG:8*G.length+J}};break;case "ARRAYBUFFER":try{D=new ArrayBuffer(0)}catch(G){throw Error("ARRAYBUFFER not supported by this environment");}D=function(G,F,J){var H;F=F||[0];J=J||0;var M=J>>>3;var K=new Uint8Array(G);for(H=0;H<G.byteLength;H+=1){var Q=H+M;var N=Q>>>2;F.length<=N&&F.push(0);F[N]|=K[H]<<8*(3+Q%4*-1)}return{value:F,kG:8*G.byteLength+
J}};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 w(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 J=(D&
65535)+(E&65535)+(G&65535)+(F&65535);return((D>>>16)+(E>>>16)+(G>>>16)+(F>>>16)+(J>>>16)&65535)<<16|J&65535}function C(D,E,G,F,J){var H=(D&65535)+(E&65535)+(G&65535)+(F&65535)+(J&65535);return((D>>>16)+(E>>>16)+(G>>>16)+(F>>>16)+(J>>>16)+(H>>>16)&65535)<<16|H&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 I(D,E,G){var F,J,H,M=[];if("SHA-224"===G||"SHA-256"===G){var K=64;var Q=1;var N=Number;var W=y;var O=A;var V=C;var ca=r;var fa=w;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(H=0;H<K;H+=1)16>H?(J=H*Q,F=D.length<=J?0:D[J],J=D.length<=J+1?0:D[J+1],M[H]=new N(F,J)):M[H]=O(fa(M[H-2]),M[H-7],ca(M[H-15]),M[H-16]),F=V(va,aa(X),ha(X,ja,sa),R[H],M[H]),J=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,J);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 L{static hash(D){var E=new l("SHA-256",
"TEXT");E.update(D);return E.getHash("HEX")}}e.ypa=L;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.qBa=h;this.rL=new e.tb;this.dHa(this.qBa)}get(h){return this.has(h)?this.rL.getItem(h)[0]:null}has(h){return this.rL.Hb(h)}dHa(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.Oga(this.decode(b.slice(0,a)),this.decode(b.slice(a+1))):b&&this.Oga(this.decode(b),"")}}Oga(h,f){this.rL.Hb(h)?this.rL.getItem(h).push(f):this.rL.Ta(h,[f])}decode(h){return h.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/ig,
function(f){return decodeURIComponent(f)})}}e.vma=l})(q||(q={}));(function(e){class l{static Yca(){return getComputedStyle(document.documentElement).getPropertyValue("--fm-version").trim().replace(/"/g,"")}static $ta(h){return l.Yca()===h}}e.u6=l})(u||(u={}));var x;
(function(e){(function(l){class h{constructor(){this.distance=15;this.BQ=!1;this.zB=null;this.vE=!0;q.vk.addEventListener("mousemove",f=>this.lx(f));q.vk.addEventListener("touchmove",f=>this.G3(f),!1);q.vk.addEventListener("mouseup",f=>this.lr(f));q.vk.addEventListener("touchend",f=>this.UU(f));q.vk.addEventListener("touchcancel",f=>this.UU(f))}get LBa(){return this.BQ}static V(){h.instance||(h.instance=new h);return h.instance}static dispose(){h.instance=null}dDa(f,b){f.$("fm-draggable");var a=c=>
{b.lT&&!c.target.matches(b.lT)||this.Nd==f||(null!=this.Nd&&this.Y4(b,c),this.Nd=f,this.wo=b,this.sia=this.e1(c),this.tia=this.f1(c),this.B5=!1)};f.N("mousedown",a);f.N("touchstart",a)}e1(f){return f instanceof MouseEvent?f.clientX:f.changedTouches[0].clientX}f1(f){return f instanceof MouseEvent?f.clientY:f.changedTouches[0].clientY}lx(f){1==f.which&&this.Nd&&(this.Mg&&this.Nd.Rc("fm-dragging")?(this.EV(f.clientX,f.clientY),this.wo.N2&&this.wo.N2(this.Nd,f),f.preventDefault(),window.getSelection().removeAllRanges()):
q.v(this.wo.jx)||this.wo.jx(this.Nd,f)?(this.BQ=!0,this.Mg=this.wo.ro(this.Nd),this.Mg.R("opacity",0),q.K.Mb.Fb.G.W(this.Mg),this.EV(f.clientX,f.clientY,!0),this.Nd.$("fm-dragging")):(this.Nd=null,q.v(this.Mg)||(this.Mg.Gg(!0),this.Mg=null)))}oea(f,b){return Math.abs(this.sia-f)>this.distance||Math.abs(this.tia-b)>this.distance?!0:!1}EV(f,b,a=!1){if(null!=this.Mg){const d=q.K.Mb.Fb.G.lg();this.Mg.R("margin-left");this.Mg.R("margin-top");if(a&&null!=this.Nd){var c=this.Nd.lg();a=Math.max(0,Math.min(this.Nd.height,
b-c.top));c=Math.max(0,Math.min(this.Nd.width,this.Mg.width,f-c.left));this.Mg.R("margin-top",-a+"px");this.Mg.R("margin-left",-c+"px")}this.Mg.position({top:b-d.top,left:f-d.left});this.oea(f,b)&&(this.Mg.R("opacity",1),this.Nd.$("fm-dragging-move"),!this.B5&&q.Fg(this.wo.GU)&&this.wo.GU(this.Nd),this.B5=!0)}}G3(f){if(this.Nd){var b=f.touches[0];if(this.Mg&&this.Nd.Rc("fm-dragging")){this.EV(b.clientX,b.clientY);this.wo.N2&&this.wo.N2(this.Nd,f);f.preventDefault();b=f.changedTouches[0];var a=e.Ea.Vb(document.elementFromPoint(b.clientX,
b.clientY));if(a){var c=a.closest(".fm-droppable");c&&!0===c.nu.scroll&&this.Nda(c,b.clientY);c&&c.nu&&c.nu.Om&&(c.nu.Om(this.Nd,this.Mg,c,f),this.zB=c)}(null==a||null==c)&&null!=this.zB&&this.zB.nu&&this.zB.nu.Zl&&this.zB.nu.Zl(this.Nd,this.Mg,this.zB,f)}else q.v(this.wo.jx)||this.wo.jx(this.Nd,f)?(this.BQ=!0,this.Mg=this.wo.ro(this.Nd),this.Mg.R("opacity",0),q.K.Mb.Fb.G.W(this.Mg),this.EV(b.clientX,b.clientY,!0),this.Nd.$("fm-dragging")):(this.Nd=null,this.Mg.Gg(!0),this.Mg=null)}}lr(f){this.Y4(this.wo,
f)}UU(f){for(var b=f.changedTouches[0],a=b=e.Ea.Vb(document.elementFromPoint(b.clientX,b.clientY));b;){if(b.Rc("fm-droppable")){q.ia(b.nu.zz)||(a=a.closest(b.nu.zz));b.nu.Pm(this.Nd,b,a,f);break}b=b.parent}this.Y4(this.wo,f)}Y4(f,b){this.BQ=!1;null!=this.Mg&&(this.Mg.Gg(!0),this.Mg=null);if(null!=this.Nd){this.Nd.Fd("fm-dragging");this.Nd.Fd("fm-dragging-move");if(this.B5&&this.Nd&&this.Nd.element){var a=this.Nd,c=d=>{q.v(a)||(a.sb("click",c),a=null,d.stopImmediatePropagation())};this.Nd.N("click",
c)}f.$u&&this.oea(this.e1(b),this.f1(b))&&f.$u(this.Nd,b);this.Nd=null}this.zB=null;this.tia=this.sia=NaN;this.vE=!0;clearTimeout(this.pha)}eDa(f,b,a){f.Rc("fm-droppable")||(f.$("fm-droppable"),f.N("mouseenter",c=>{null!=this.Nd&&1==c.which&&a.O2&&a.O2(this.Nd,this.Mg,b,c)}),f.N("mouseleave",c=>{this.vE=!0;null!=this.Nd&&1==c.which&&a.Zl&&a.Zl(this.Nd,this.Mg,b,c)}),f.N("mouseover",c=>{this.vE=!0;null!=this.Nd&&1==c.which&&(!0===a.scroll&&this.Nda(f,c.clientY),a.Om&&a.Om(this.Nd,this.Mg,b,c))}),f.N("mouseup",
c=>{this.vE=!0;if(null!=this.Nd&&1==c.which){var d=e.Ea.Vb(c.target);q.ia(a.zz)||(d=d.closest(a.zz));a.Pm(this.Nd,f,d,c)}}))}Nda(f,b){const a=f.element.getBoundingClientRect(),c=Math.max(0,a.bottom-b);b=Math.max(0,b-a.top);30>c?(this.vE=!1,this.t4(f,Math.min(30/c,4))):30>b&&(this.vE=!1,this.t4(f,Math.min(-30/b,4)))}t4(f,b){clearTimeout(this.pha);q.v(f)||(f.wx(f.element.scrollTop+b),0==this.vE&&(this.pha=setTimeout(()=>this.t4(f,b),20)))}}l.xO=h})(e.vL||(e.vL={}))})(x||(x={}));
(function(e){class l extends v.Ah{constructor(h="div",f=""){super();this.G=new e.Ea(h);this.G.$("fm-ui "+f);u.Kd().Mm&&this.G.$("fm-ui-mobile");this.validate()}validate(){this.E1={}}oe(h="all"){this.E1[h]=!0;this.kb()}zs(...h){if(this.E1.all)return!0;for(var f=0;f<h.length;f++)if(this.E1[h[f]])return!0;return!1}kb(){this.validate()}yr(){this.oe()}show(){this.G.show()}eb(){this.G.eb()}P0(){return this.G.attr("id")}Mha(h){this.G.attr("id",h)}Uha(){this.Mha("fm-"+Math.random().toString(36).substr(2,
9))}ZC(){return this.name}Ie(h=0){this.G.Ie(h)}Ik(h){this.G.Ik(h)}get Km(){return this.G.Km}get i1(){return this.G.i1}html(h){if(void 0===h)return this.G.html();this.G.html(h);return this}fi(h){this.G.attr("title",h)}oq(h){this.Bta(!h);this.G.Wa("fm-ui-disabled",!h)}WL(){return!this.G.Rc("fm-ui-disabled")}$(h=""){this.G.$(h)}Fd(h){this.G.Fd(h)}Wa(h,f){this.G.Wa(h,f)}Rc(h){return this.G.Rc(h)}get padding(){return this.G.padding}set padding(h){}uf(h){return this.G.uf(h)}Xj(h){this.uf()!==h&&(this.G.Xj(h),
this.oe("size"))}xd(h=!1){return this.G.xd(h)}pq(h){this.xd()!==h&&(this.G.pq(h),this.oe("size"))}isVisible(h){void 0!==h&&(h?this.show():this.eb());return this.G.visible}position(){return this.G.position()}W(h,f=!1){f?this.G.prepend(h.G):this.G.append(h.G)}Gg(h=!1){h?this.G.remove():this.G.detach()}e1(){return this.G.left}f1(){return this.G.top}N(h,f){this.G.N(h,f)}sb(h,f){this.G.sb(h,f)}Fa(h){this.G.Fa(h)}$a(h,f,b){this.G.$a(h,f,b)}TB(h=!1){h=h?this.uf(!0):q.K.Mb.gv;this.G.Wa("fm-layout-tablet",
768>h);this.G.Wa("fm-layout-mobile",580>h);this.G.Wa("fm-layout-mobile-small",460>h)}focus(h=null){this.G.focus(h)}blur(){this.G.blur()}zg(h,f){return this.G.zg(h,f)}mc(h){return this.G.zg("label",h)}vn(){this.G.zg("hidden","true")}Bta(h){this.G.zg("disabled",void 0===h?void 0:`${h}`)}vaa(h){this.G.zg("selected",void 0===h?void 0:`${h}`)}Ata(h){this.G.zg("checked",void 0===h?void 0:`${h}`)}uaa(h){this.G.zg("expanded",void 0===h?void 0:`${h}`)}Cta(h){this.G.zg("haspopup ",void 0===h?void 0:`${h}`)}}
e.Ma=l})(x||(x={}));
(function(e){class l extends v.Ah{constructor(h="div",f="",b=!0){super();this.display="block";this.frames=[];this.Kq={};this.element="string"==typeof h?document.createElement(h):h;b&&this.$("fm-ui-element");this.$(f)}set element(h){(this.CF=h)&&(this.CF.uielement=this)}get element(){return this.CF}get id(){return this.element.id}set id(h){this.element.id=h}get parent(){return l.Vb(this.element.parentElement)}get nodeName(){return this.CF.nodeName.toLowerCase()}W(h){this.element.appendChild(h.element)}children(){for(var h=this.element.firstElementChild,
f=[];h;)f.push(l.Vb(h)),h=h.nextElementSibling;return f}contains(h){return this.element.contains(h.element)}JR(h){let f=this.n_(h.target);!f&&h.path&&(f=this.n_(h.path[0]));!f&&h.composedPath&&(h=h.composedPath())&&(f=this.n_(h[0]));return f}n_(h){if(null==h)return!1;for(;h!=this.element&&(h=h.parentElement,null!=h););return null!=h}append(h){h&&this.W(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}RB(h){this.element.appendChild(h.G.element)}Gg(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}}ox(){for(;this.element&&this.element.firstChild;){var h=l.Vb(this.element.firstChild);h&&h.dispose&&h.dispose();this.element.removeChild(this.element.firstChild)}}clone(){return l.Vb(this.element.cloneNode(!0))}static Vb(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.Vb(this.element.querySelector(h));
h=this.element.querySelectorAll(h);f=[];for(var b=0;b<h.length;b++)f.push(l.Vb(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.Vb(f)}else if(f.msMatchesSelector&&f.msMatchesSelector(h))return f==this.element?this:l.Vb(f);f=f.parentElement}return null}$(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.aS().Xi?(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}Fd(h){if(this.element&&(h=h.trim(),0<h.length))if(u.aS().Xi){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)}Wa(h,
f){f?this.$(h):this.Fd(h)}Rc(h){return this.element.classList.contains(h)}Ol(){this.$("fm-noselect")}vxa(){this.$("fm-selectable")}uf(h=!1){if(!this.element)return 0;var f=this.My;return this.element.clientWidth-(h?0:(parseFloat(f.paddingLeft)||0)+(parseFloat(f.paddingRight)||0))}Xj(h){"number"===typeof h?this.element.style.width=h+"px":"string"===typeof h&&(this.element.style.width=h);return this}get width(){return this.uf()}set width(h){this.Xj(h)}get padding(){var h=this.My;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.My;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}}xd(h=!1){if(!this.element)return 0;var f=this.My;h=h?0:(parseFloat(f.paddingTop)||0)+(parseFloat(f.paddingBottom)||0);return 0>
this.element.clientHeight-h?0:this.element.clientHeight-h}pq(h){"number"===typeof h?this.element.style.height=h+"px":"string"===typeof h&&(this.element.style.height=h)}get height(){return this.xd()}set height(h){this.pq(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=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}eb(){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.lg();this.R("left",h.left+"px");this.R("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}d4(h){this.element.removeAttribute(h)}R(h,f){if(void 0===f)return this.My[l.Eia(h)];this.element.style[l.Eia(h)]=f;return this}zg(h,f){if(void 0===f)return this.attr(`aria-${h}`);this.attr(`aria-${h}`,f)}static Eia(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}WN(){return"input"==this.element.tagName.toLowerCase()||"textarea"==this.element.tagName.toLowerCase()?this.element.value:
this.element.textContent}get My(){q.v(this.hY)&&(this.hY=window.getComputedStyle(this.element));return this.hY}set My(h){this.hY=h}requestAnimationFrame(h){var f=0;this.My=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.My=
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.eb()}get visible(){return this.element&&"none"!=this.R("display")}lg(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}}wx(h){this.element.scrollTop=h}pJa(){this.element.scrollLeft=0}N(h,f,b){"undefined"!==typeof this.element["on"+h]||v.fa.Gea(h)?(q.v(this.Kq[h])&&(this.Kq[h]=[]),this.Kq[h][f.toString()]=a=>{f(a)},this.element.addEventListener(h,this.Kq[h][f.toString()],b)):super.N(h,f,b)}sb(h,f){"undefined"!==typeof this.element["on"+
h]||v.fa.Gea(h)?this.Kq[h]&&this.element.removeEventListener(h,this.Kq[h][f.toString()],void 0):super.sb(h,f)}Fa(h){super.Fa(h)}Yd(h){for(var f in this.Kq)if(void 0===h||h==f)for(var b in this.Kq[f])if(this.Kq[f].hasOwnProperty(b))try{this.element.removeEventListener(f,this.Kq[f][b],!0),this.element.removeEventListener(f,this.Kq[f][b],!1)}catch(a){console.error(a)}this.Kq={};super.Yd(f)}dispose(){this.Yd();this.ox();this.CF&&(this.CF=this.CF.uielement=null);for(var h=0;h<this.frames.length;h++)this.cancelAnimationFrame(this.frames[h]);
this.frames.length=0;this.E$&&this.E$.dispose()}refresh(){this.html(this.html())}draggable(h){e.vL.xO.V().dDa(this,h)}ps(h,f){this.mra=h;e.vL.xO.V().eDa(this,f?f:this,h)}get nu(){return this.mra}index(){for(var h=0,f=this.element;f=f.previousElementSibling;)h++;return h}Zi(h){this.E$=new e.Zi.rpa(this,h)}Ie(h=0){this.attr("tabindex",h)}Ik(h){this.attr("role",h)}get Km(){return document.activeElement==this.element}get i1(){let h=document.activeElement;for(;null!=h;){if(h==this.element)return!0;h=h.parentElement}return!1}}
e.Ea=l})(x||(x={}));
(function(e){class l extends e.Ma{constructor(h="",f="a"){super(f,"fm-ui-btn");this.E2=0;this.dIa=50;this.$(h);this.G.N("click",b=>this.Dk(b));this.G.N("mousedown",()=>this.kx());this.G.N("mouseup",()=>this.lr());this.G.N("mouseout",()=>this.IFa());this.G.N("keydown",b=>this.cq(b));this.G.display="inline-block";this.Ik("button");this.Ie(0)}Dk(h){this.WL()&&this.$a(l.mf,this,h);h instanceof MouseEvent&&h.stopImmediatePropagation()}cq(h){if(13==h.keyCode||32==h.keyCode)this.Dk(h),h.preventDefault()}kx(){this.G.Wa("fm-ui-pressed",
!0);this.E2=q.Eca(()=>this.Mwa(),this.dIa)}Mwa(){this.Fa(new v.fa(l.ooa,this))}lr(){this.G.Wa("fm-ui-pressed",!1);q.p0(this.E2)}IFa(){this.G.Wa("fm-ui-pressed",!1);q.p0(this.E2)}J(){return this.label}cb(h){this.label!=h&&(this.label=h,this.G.text(this.label))}}l.ooa="buttonmousedown";l.mf="buttonclick";e.Md=l})(x||(x={}));(function(e){class l extends e.Md{constructor(h=""){super(h,"button");this.G.attr("type","button")}}e.Kg=l})(x||(x={}));
(function(e){class l extends e.Ma{constructor(h=""){super("span","fm-ui fm-ui-label");this.G.display="inline-block";this.cb(h)}J(){return this.label}cb(h,f=!1){this.label!=h&&(this.label=h,f?this.G.html(this.label):this.G.text(this.label))}KV(h){h?this.G.vxa():this.G.Ol()}}e.Uc=l})(x||(x={}));
(function(e){class l extends e.Ma{constructor(){super("textarea","fm-ui-text-area");this.G.N("keypress",h=>this.g3(h));this.G.N("keyup",h=>this.h3(h));this.G.N("paste",()=>this.d3());this.G.N("blur",()=>this.UAa())}h3(){this.tL()}d3(){this.tL()}UAa(){this.$a(l.RW)}tL(){this.Fa(new v.fa(e.Hj.Mx,this))}Ti(){return this.G.WN()}zj(h){this.Ti()!=h&&(this.G.element.value=h,this.tL())}clear(){this.zj("")}qz(h){var f=this.G.element.selectionStart,b=this.G.element.selectionEnd,a=this.Ti();this.zj(a.substr(0,
f)+h+a.substr(f));this.Af(f+h.length,b+h.length)}Af(h,f=-1){this.G.element.focus();this.G.element.setSelectionRange(h,0>f?h:f)}selectAll(){this.Af(0,this.Ti().length)}g3(h){h.ctrlKey?(this.$a(l.QW),h.preventDefault()):13==h.keyCode&&(this.$a(l.DA),h.preventDefault())}}l.RW="focus_off";l.DA="ntr";l.QW="ntl";e.Hv=l})(x||(x={}));
(function(e){class l extends e.Ma{constructor(){super("input","fm-ui-text-input");this.prompt=this.text="";this.QZ=0;this.RZ=!0;this.G.display="inline-block";this.G.attr("type","text");this.G.attr("data-placeholder","");this.G.N("change",()=>this.zGa());this.G.N("focusin",()=>this.U2());this.G.N("focusout",()=>this.REa());this.G.N("input",()=>this.AGa());this.G.N("keypress",h=>this.g3(h));this.G.N("paste",()=>this.d3())}static fza(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}g3(h){13==h.keyCode&&this.$a(l.DA);if(!(q.v(this.cha)||h.ctrlKey||h.altKey||h.metaKey)){var f=l.fza(h);null!=f&&!1===this.cha.test(f)&&h.preventDefault()}}h1(){this.G.WN()!==this.text&&(this.text=this.G.WN(),this.tL())}zGa(){this.h1()}AGa(){this.h1()}d3(){this.h1()}tL(){0<this.QZ?this.RZ&&(this.RZ=!1,q.Ce(()=>this.nY(),this.QZ)):this.nY()}nY(){this.RZ=!0;this.Fa(new v.fa(l.Mx,this,this.text))}U2(){0==this.text.length&&(this.G.text(""),
this.ou(!1))}REa(){this.ou(0==this.text.length)}Ti(){return this.text=this.G.WN()==this.prompt?this.text:this.G.WN()}zj(h){this.text!=h&&(this.text=h,this.G.text(this.text),this.ou(0==this.text.length))}clear(h=!0){this.zj("");h&&this.nY();this.$a(l.T6)}kE(h){h!=this.prompt&&(this.prompt=h,this.G.attr("data-placeholder",this.prompt),this.ou(0==this.text.length))}ou(h){this.G.text(h?this.prompt:this.text);this.G.Wa("fm-ui-prompt",h)}lE(h){this.cha=h}yV(h){this.QZ=h}tJa(){this.G.attr("type","number")}}
l.Mx="_";l.DA="ntr";l.T6="clr";e.Hj=l})(x||(x={}));(function(e){class l extends e.Hj{constructor(){super();this.lE(l.jpa);this.tJa()}Ha(){return parseFloat(this.Ti())}gi(h){this.zj(h.toString())}}l.jpa=/^\d+$/;l.oF=/[-\.\d]/;e.Jq=l})(x||(x={}));
(function(e){(function(h){h[h.ENa=1]="SELECTED";h[h.VNa=0]="UNSELECTED";h[h.HNa=-1]="SEMI_SELECTED"})(e.qqa||(e.qqa={}));class l extends e.Md{constructor(){super();this.G.display="inline-block";this.G.Rc("fm-ui-btn")&&this.G.Fd("fm-ui-btn");this.G.$("fm-ui-toggle-btn");this.selected=0}Dk(h){this.WL()&&(this.toggle(),this.$a(v.fa.$d,this,h));h instanceof MouseEvent&&h.stopImmediatePropagation()}toggle(){this.Af(1==this.selected?0:1)}Af(h){!0===h&&(h=1);!1===h&&(h=0);this.selected==h||1<h||-1>h||(this.selected=
h,this.G.Wa("fm-selected",1==this.selected),1==this.selected?this.zg("checked","true"):-1==this.selected?this.zg("checked","mixed"):this.zg("checked","false"))}getSelection(){return this.selected}}e.WX=l})(x||(x={}));
(function(e){class l extends e.Kg{constructor(){super();this.Ik("switch");this.G.display="inline-block";this.G.Rc("fm-ui-btn")&&this.G.Fd("fm-ui-btn");this.G.$("fm-ui-toggle-btn");this.Af(0)}Dk(h){this.WL()&&(this.toggle(),this.$a(v.fa.$d,this,h))}toggle(){this.Af(1==this.selected?0:1)}Af(h){!0===h&&(h=1);!1===h&&(h=0);this.selected==h||1<h||-1>h||(this.selected=h,this.G.Wa("fm-selected",1==this.selected),this.Ata(1==this.selected))}getSelection(){return this.selected}}e.NP=l})(x||(x={}));
(function(e){class l extends e.WX{constructor(){super();this.G.display="inline-block";this.G.Rc("fm-ui-toggle-btn")&&this.G.Fd("fm-ui-toggle-btn");this.G.$("fm-ui-checkbox");this.CH=new e.Uc("Label");this.G.append(this.CH.G);this.Ik("checkbox")}toggle(){super.toggle();this.G.Wa("fm-ui-semi-selected",-1==this.getSelection())}cb(h,f=!1){null!=this.CH&&this.CH.cb(h,f)}J(){return null!=this.CH?this.CH.J():""}Af(h){!0===h&&(h=1);!1===h&&(h=0);this.getSelection()==h||1<h||-1>h||(super.Af(h),this.G.Wa("fm-ui-semi-selected",
-1==this.getSelection()))}get checked(){return 1==this.getSelection()}set checked(h){this.Af(h?1:0)}fi(h){this.CH.fi(h)}}e.NJ=l})(x||(x={}));
(function(e){class l extends e.Ma{constructor(){super("div","fm-ui-divider");this.Ffa=h=>this.lx(h);this.yDa=h=>this.kx(h);this.zDa=h=>this.lr(h);this.direction=l.lJ;this.N("mousedown",this.yDa);q.vk.addEventListener("mouseup",this.zDa);this.G.Ol()}kx(h){this.Ht=this.direction==l.lJ?this.xd():this.uf();this.hB=this.G.parent.lg();q.vk.addEventListener("mousemove",this.Ffa);h.preventDefault();h.stopImmediatePropagation()}lx(h){if(this.direction==l.lJ){var f=h.clientY-this.hB.top;if(this.zF&&(f<this.zF[1]||
f>this.zF[3]))return;this.G.R("top",f-this.Ht/2+"px");this.$a(l.SW,this,{top:f})}this.direction==l.YX&&(h=h.clientX-this.hB.left,this.zF&&(h<this.zF[0]||h>this.zF[2])||(this.G.R("left",h-this.Ht/2+"px"),this.$a(l.SW,this,{left:h})))}lr(){q.vk.removeEventListener("mousemove",this.Ffa)}get direction(){return this.mY}set direction(h){this.mY=h;this.G.Wa("fm-ui-horizontal",this.mY==l.lJ);this.G.Wa("fm-ui-vertical",this.mY==l.YX);this.G.R("position","absolute")}set zva(h){this.zF=h}}l.lJ=0;l.YX=1;l.SW=
"divider_moved_event";e.MP=l})(x||(x={}));(function(e){class l extends e.Ma{constructor(){super("div","fm-ui-modal-overlay")}oJa(h){this.G.Wa("fm-ui-transparent",!1);this.G.Wa("fm-ui-opaque",h)}}e.pqa=l})(x||(x={}));
(function(e){(function(l){class h extends e.Ma{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)}uf(){return this.G.width}xd(){return this.G.height}ox(){for(var f=this.G.children(),b=f.length-1;0<=b;b--)f[b].Gg()}}l.dk=h})(e.be||(e.be={}))})(x||(x={}));(function(e){(function(l){class h extends l.dk{constructor(){super("fm-ui-border-container")}}l.h9=h})(e.be||(e.be={}))})(x||(x={}));
(function(e){(function(l){class h extends l.dk{constructor(){super();this.G.$("fm-ui-window");this.eb()}setPosition(f,b){this.G.offset({left:Math.floor(f),top:Math.floor(b)});this.G.R("position","absolute")}}l.sqa=h})(e.be||(e.be={}))})(x||(x={}));(function(e){(function(l){class h extends l.dk{constructor(){super("fm-ui-hgroup")}}l.QNa=h})(e.be||(e.be={}))})(x||(x={}));(function(e){(function(l){class h extends l.dk{constructor(){super("fm-ui-vgroup")}}l.UNa=h})(e.be||(e.be={}))})(x||(x={}));
(function(e){(function(l){class h extends l.dk{constructor(){super("fm-ui-panel")}}l.RNa=h})(e.be||(e.be={}))})(x||(x={}));
(function(e){(function(l){class h extends l.sqa{constructor(f){super();this.Vv=!1;this.u$=()=>this.t3();this.aha=b=>this.H3(b);this.ZF=this.T1=!1;this.OY=f;this.G.$("fm-ui-popup");this.Ik("dialog");this.eb();this.Qq=new e.pqa;this.Qq.vn();this.Qq.N("click",this.u$);this.Qq.eb();this.OY&&this.OY.W(this.Qq.G);this.Xra=new e.cG.B7;this.Wqa=new e.cG.B7}get Pu(){return this.Vv}H3(f){f.target===window&&(this.G.requestAnimationFrame(()=>this.zp()),this.TB())}t3(){this.close()}open(){q.JL.addEventListener("resize",
this.aha);this.Qq.G.Wa("fm-ui-opaque",this.T1);this.show();this.zp();this.$a(v.fa.OPENED);this.TB();this.Vv=!0;this.Yv=document.activeElement;this.G.prepend(this.Xra);this.G.append(this.Wqa)}show(){super.show();this.Qq&&this.Qq.show()}eb(){super.eb();this.Qq&&this.Qq.eb()}get rI(){return this.ZF}set rI(f){this.ZF=f;this.G.R("opacity",f?0:null);this.Qq&&this.Qq.G.R("opacity",f?0:null)}close(){q.JL.removeEventListener("resize",this.aha);this.eb();this.$a(v.fa.CLOSED);this.Vv=!1;this.Yv&&(this.Yv.focus(),
this.Yv=null)}zp(){var f=this.OY,b=q.K.Mb.Fb.G.borderWidth,a=b?Math.round(b.left):0;b=b?Math.round(b.top):0;if(f){var c=Math.max(a,(f.uf(!0)-this.G.uf(!0))/2);f=Math.max(b,(f.xd(!0)-this.G.xd(!0))/2);this.setPosition(c==a?-1*c:c,f==b?-1*f:f)}}get OD(){return this.Qq}}l.ay=h})(e.be||(e.be={}))})(x||(x={}));(function(e){(function(l){class h extends l.dk{constructor(){super("fm-ui-toolbar")}}l.SNa=h})(e.be||(e.be={}))})(x||(x={}));
(function(e){(function(l){class h extends l.dk{constructor(){super("fm-ui-toolbar-mobile");this.s1=new e.Uc;this.s1.$("fm-ui-header-display");this.W(this.s1)}hJa(f){this.Ui!=f&&(this.Ui=f,this.s1.cb(f))}}l.TNa=h})(e.be||(e.be={}))})(x||(x={}));
(function(e){(function(l){class h{constructor(){this.items=[];this.KK=[]}GV(f){this.KK=f}S0(f,b){if(0>f||b>this.KK.length+1)return[];for(this.items.length=0;f<b;f++)this.items.push(this.KK[f]);return this.items}getItem(f){return this.KK[f]}jH(){return this.KK.length}}l.MNa=h})(e.wwa||(e.wwa={}))})(x||(x={}));
(function(e){(function(l){class h extends e.Ma{constructor(){super("ul","fm-ui-list");this.rV=NaN;this.H_=u.Kd().Mm?h.Vka:h.Uka;this.fI=[];this.hE=[];this.ni=0;this.hl=!1;this.useCache=!0;this.uF=!1;this.I=[];this.Xea=[];this.mh=[];this.df="label";this.Su=this.Ewa;this.$Q=this.G;this.Ik("list");this.ql=null;this.selectedIndex=-1;this.B4()}B4(){this.G.N("click",b=>this.NU(b));this.G.N("mousedown",b=>this.OU(b));this.G.N("keydown",b=>this.ID(b))}Vd(){isNaN(this.rV)&&0<this.mh.length&&(this.rV=this.mh[0].xd(!0)+
parseInt(this.mh[0].G.R("border-top-width"))+parseInt(this.mh[0].G.R("border-bottom-width")));return isNaN(this.rV)?this.H_:this.rV}cJa(){this.H_=37}Mw(){return 0}mH(){return this.I.length}kb(){this.zs("data")&&this.cxa();this.validate()}cxa(){this.UHa();for(var b,a=this.zc(),c=0;c<a.length;c++)b=this.getItem(a[c],c),c==this.ni&&(this.$Q.zg("activedescendant",b.P0()),b.G.$("fm-ui-active")),this.Ta(b);this.Wa("fm-ui-empty",0==a.length);this.dya&&this.G.prepend(this.dya);this.cya&&this.G.append(this.cya);
this.G.requestAnimationFrame(()=>{0<this.mh.length&&(this.H_=this.mh[0].xd())})}getItem(b,a){if(this.useCache&&0<this.Xea.length){var c=this.Xea.pop();c.setData(b);c.Tm(a)}else c=this.Su(b,a),this.df&&c.qg(this.df),this.Ww&&c.HV(this.Ww),this.xp&&c.xN(this.xp);c.Uha();return c}Ta(b){this.mh.push(b);this.W(b)}UHa(){for(;0<this.mh.length;)this.B$(this.mh.pop())}removeItem(b){for(var a=0;a<this.mh.length;a++)if(this.mh[a]===b){this.mh.splice(a,1);break}this.B$(b)}B$(b){null!=this.G.find(b.G.element.nodeName)&&
b.G.remove()}ID(b){if(32==b.keyCode||13==b.keyCode)this.PU(this.ni,b),b.preventDefault();40==b.keyCode&&(this.Ei(this.ni+1),b.preventDefault());38==b.keyCode&&(this.Ei(this.ni-1),b.preventDefault())}Ei(b){this.ni=Math.max(0,Math.min(this.mh.length-1,b));for(var a of this.mh)a.Fd("fm-ui-active");this.$Q.zg("activedescendant","");if(b=this.mh[this.ni]){this.$Q.zg("activedescendant",b.P0());b.$("fm-ui-active");a=this.G.parent.getBoundingClientRect();const c=b.G.getBoundingClientRect().top+this.G.parent.element.scrollTop,
d=c+b.xd();c<a.top?b.G.element.scrollIntoView(!0):d>a.bottom&&b.G.element.scrollIntoView(!1)}}IC(b){if(b=e.Ea.Vb(b).closest("li")){const a=parseInt(b.attr("data-index"));return isNaN(a)?null:{element:b,index:a,data:this.zc()[a]}}return null}Au(){const b=this.Mw()+this.ni;return 0<=b?q.v(this.zc()[b])||q.v(this.mh[b])?null:{index:b,data:this.zc()[b],element:this.mh[b].G}:null}OU(b){(b=this.IC(b.target))&&this.Ei(b.index)}NU(b){const a=this.IC(b.target);a&&this.PU(a.index,b)}PU(b,a){if(!(0>b)){var c=
this.Mw()+b,d=this.ql,g=this.selectedIndex;this.Jk(b);var k=new f;k.data={ql:this.ql,selectedIndex:this.selectedIndex,TIa:this.mh[b].G,gq:a,NHa:c,EHa:d,DHa:g};this.Fa(k)}}zc(){return this.I}Wf(b,a=!0){this.I=b;this.ni=0;a&&this.oe("data")}HV(b){this.Ww!=b&&(this.Ww=b,this.oe("data"))}er(){return this.df}qg(b){this.df!=b&&(this.df=b,this.oe("data"))}XG(){return this.xp}xN(b){this.xp!=b&&(this.xp=b,this.oe("data"))}ei(b){this.Su=b;this.oe("data")}bt(b){-1<b&&b<this.mh.length&&this.mh[b].yr()}xr(b){for(var a,
c=0;c<this.mh.length;c++)if(a=this.mh[c].getData(),q.Fg(b)){if(b(a)){this.mh[c].yr();break}}else if(a===b){this.mh[c].yr();break}}qH(){return this.selectedIndex}Jk(b){var a=this.zc();-1<b&&b<a.length?this.jW(a[b],b):this.jW(null,-1)}Kh(){return this.ql}Ws(b){var a=this.zc();if(q.Fg(b))for(var c=0;c<a.length;c++){if(!q.v(a[c])&&b(a[c])){this.jW(a[c],c);break}}else a=a.indexOf(b),-1<a&&this.jW(b,a)}jW(b,a){if(this.fo){var c=-1<this.hE.indexOf(a);!(c=!c)&&2>this.hE.length||(c?(this.hE.push(a),this.fI.push(b)):
(this.hE.splice(this.hE.indexOf(a),1),this.fI.splice(this.fI.indexOf(b),1)),this.hl&&(b.isSelected=c,this.bt(a)))}else this.hl&&null!=this.ql&&(this.ql.isSelected=!1,this.bt(this.selectedIndex)),this.ql=b,this.selectedIndex=a,this.hl&&null!=this.ql&&(this.ql.isSelected=!0,this.bt(this.selectedIndex))}Ewa(b,a){var c=new e.Ci.cB;c.setData(b);c.Tm(a);return c}$L(){return this.Vd()*this.zc().length}set fo(b){this.uF=b}get fo(){return this.uF}BN(b){this.hE=b;this.fI.length=0;b=this.zc();for(var a=0;a<
b.length;a++)-1<this.hE.indexOf(a)?(this.fI.push(b[a]),this.hl&&(b[a].isSelected=!0,this.bt(a))):this.hl&&(b[a].isSelected=!1,this.bt(a))}hM(){return this.fI}ps(b){this.G.ps(b,this)}vN(b){var a=this.Vd();b*=a;a=b+a;const c=this.G.element.scrollTop,d=this.G.xd();c>b?this.G.wx(b):c+d<a&&this.G.wx(a-d)}}h.Uka=21;h.Vka=31;l.ij=h;class f extends v.fa{constructor(){super(v.fa.$d)}}l.oqa=f})(e.zd||(e.zd={}))})(x||(x={}));
(function(e){(function(l){class h extends e.Ma{constructor(){super("div","fm-ui-dropdown");this.prompt="Choose item";this.uF=this.IY=this.Vv=!1;this.G.display="inline-block";this.Ql=new l.nqa;this.Ql.N("click",()=>this.Pu?this.close():this.open());this.Ql.N("keydown",b=>this.PDa(b));this.Ql.N("blur",()=>this.close());this.xL=new e.Ma("div","fm-ui-dropdown-list");this.xL.eb();this.af=new f(this,this.Ql);this.af.Uha();this.af.hl=!0;this.af.ei(this.Su);this.af.N(v.fa.$d,b=>this.av(b));this.xL.W(this.af);
this.Ql.zg("controls",this.af.P0());this.W(this.Ql);this.W(this.xL)}get Pu(){return this.Vv}Su(b,a){var c=new e.Ci.SX;c.setData(b);c.Tm(a);return c}av(b){this.ou(null==b.data.ql);this.$a(v.fa.$d,this,b.data);this.Ql.focus({preventScroll:!0});this.fo||this.close()}PDa(b){27==b.keyCode&&(this.close(),b.stopImmediatePropagation())}ou(b){var a=this.af.Kh();const c=b||this.fo||null==a?this.prompt:a[this.er()];a=b||this.fo||null==a||q.ia(this.af.XG())||q.v(a[this.XG()])?"":a[this.XG()];this.Ql.cb(c);q.ia(a)||
(this.Ql.JM.mc(a),this.Ql.JM.fi(a));this.G.Wa("fm-ui-prompt",b)}kE(b){this.prompt!==b&&(this.prompt=b,this.ou(!0))}open(){!this.Vv&&this.WL()&&(this.Vv=!0,this.xL.show(),this.Ql.Af(1))}close(){0!=this.Vv&&this.WL()&&(this.Vv=!1,this.xL.eb(),this.Ql.Af(0))}zc(){return this.af.zc()}Wf(b){const a=this.Au();this.af.Wf(b);this.IY&&a&&this.Ei(a.index)}er(){return this.af.er()}qg(b){this.af.qg(b)}XG(){return this.af.XG()}xN(b){this.af.xN(b)}ei(b){this.af.ei(b)}yr(){this.af.yr()}bt(b){this.af.bt(b)}qH(){return this.af.qH()}Jk(b){this.af.Jk(b);
this.ou(null==this.af.Kh())}BN(b){this.af.BN(b);this.ou(!0)}Kh(){return this.af.Kh()}Ws(b){this.af.Ws(b);this.ou(null==this.af.Kh())}hM(){return this.af.hM()}show(){super.show()}Vd(){return this.af.Vd()}mH(){return this.af.mH()}xr(){}$L(){return 0}set fo(b){this.uF=b;this.af.fo=b;this.uF?this.af.G.$("fm-ui-dropdown-multiple-selection-list"):this.af.G.Fd("fm-ui-dropdown-multiple-selection-list")}get fo(){return this.uF}set hl(b){this.af.hl=b}get Yea(){return this.IY}set Yea(b){this.IY=b}Au(){return this.af.Au()}Ei(b){this.af.Ei(b)}mc(b){return this.Ql.mc(b)}}
l.Mr=h;class f extends l.ij{constructor(b,a){super();this.parent=b;this.Ql=a;this.$Q=this.Ql.G;this.B4();this.Ik("listbox")}B4(){this.Ql&&(this.N("mousedown",b=>this.NU(b)),this.Ql.N("keydown",b=>this.ID(b)))}ID(b){if(this.parent.Pu)super.ID(b);else if(13==b.keyCode||32==b.keyCode)this.parent.open(),b.preventDefault()}}})(e.zd||(e.zd={}))})(x||(x={}));
(function(e){(function(l){class h extends e.Ma{constructor(){super();this.ni=0;this.$("fm-ui-vlist");this.mi=new f;this.mi.cJa();this.mi.N(v.fa.$d,b=>this.av(b));this.W(this.mi);this.Kt=new e.Ma("div","fm-ui-vlist-placeholder");this.W(this.Kt);this.N("scroll",()=>this.C3());this.N("mousedown",b=>this.OU(b));this.N("keydown",b=>this.ID(b))}OU(b){(b=this.mi.IC(b.target))&&this.Ei(this.Mw()+b.index)}ID(b){if(32==b.keyCode||13==b.keyCode)this.PU(this.ni,b),b.preventDefault();40==b.keyCode&&(this.Ei(this.ni+
1),this.vN(this.ni),b.preventDefault());38==b.keyCode&&(this.Ei(this.ni-1),this.vN(this.ni),b.preventDefault())}vN(b){var a=this.Vd();b*=a;a=b+a;const c=this.G.element.scrollTop,d=this.G.xd();c>b?this.G.wx(b):c+d<a&&this.G.wx(a-d)}Ei(b){this.ni=Math.max(0,Math.min(this.jh().jH()-1,b));this.ni>=this.Mw()&&this.ni<this.lda()&&this.mi.Ei(this.ni-this.Mw())}Au(){return this.mi.Au()}PU(b,a){if(!(0>b)){var c=this.Kh(),d=this.qH();this.Jk(b);var g=new l.oqa;g.data={ql:this.Kh(),selectedIndex:this.qH(),gq:a,
NHa:b,EHa:c,DHa:d};this.Fa(g)}}av(b){this.Fa(b)}C3(){this.oe("data")}kb(){this.Kt.pq(Math.min(this.$L(),h.dP));if(this.zs("data")){this.mi.Wf(this.zc());const b=this.Mw()*this.Vd()*this.oH()-this.Dda();this.mi.G.top=Math.min(b,this.Kt.xd()-this.mi.G.height);this.Ei(this.ni)}this.validate()}oH(){return this.$L()>h.dP?h.dP/this.$L():1}Mw(){return 1!=this.oH()?Math.floor((this.G.element.scrollTop+this.Dda())/this.oH()/this.Vd()):Math.max(0,Math.floor(this.G.element.scrollTop/this.Vd())-1)}lda(){return this.Mw()+
this.mH()}Dda(){return 1!=this.oH()?(this.xd()/this.oH()-this.xd())*(this.G.element.scrollTop/h.dP)*this.oH():0}get fo(){return this.mi.fo}set fo(b){this.mi.fo=b}er(){return this.mi.er()}qg(b){this.mi.qg(b)}ei(b){this.mi.ei(b)}bt(b){this.mi.bt(b)}xr(b){this.mi.xr(b)}Vd(){return this.mi.Vd()}mH(){return 0<this.Vd()?Math.ceil(this.xd()/this.Vd())+3:0}qH(){return this.mi.qH()}Jk(b){this.mi.Jk(b)}BN(b){this.mi.BN(b)}Kh(){return this.mi.Kh()}Ws(b){this.mi.Ws(b)}hM(){return this.mi.hM()}$L(){return this.Vd()*
this.jh().jH()}jh(){return this.EJa}D4(b){this.EJa=b}qJa(){this.G.wx(0)}Wf(b){this.jh()&&(this.jh().GV(b),this.qJa(),this.oe("data"))}zc(){return this.jh()?this.jh().S0(this.Mw(),this.lda()):[]}}h.dP=1E6;l.rqa=h;class f extends l.ij{constructor(){super();this.ni=-1}OU(){}ID(){}Wf(b,a=!0){this.I=b;this.ni=-1;a&&this.oe("data")}Ei(b){this.ni=Math.max(0,Math.min(this.mh.length-1,b));for(const a of this.mh)a.Fd("fm-ui-active");(b=this.mh[this.ni])&&b.$("fm-ui-active")}}})(e.zd||(e.zd={}))})(x||(x={}));
(function(e){(function(l){class h extends e.WX{constructor(){super();this.$("fm-ui-dropdown-btn");this.JM=new e.Uc;this.W(this.JM);this.G.Yd();this.Ik("combobox");this.zg("haspopup","listbox");this.uaa(!1)}cb(f){this.JM.cb(f,!0);this.JM.fi(f)}}l.nqa=h})(e.zd||(e.zd={}))})(x||(x={}));
(function(e){(function(l){class h extends e.Ma{constructor(){super("li");this.df="label";this.Ik("option")}getData(){return this.data}setData(f){null!=f&&(this.data=f,this.oe("data"))}Tm(f){this.G.attr("data-index",f)}er(){return this.df}qg(f){this.df!=f&&(this.df=f,this.oe("data"))}XG(){return this.xp}xN(f){this.xp!=f&&(this.xp=f,this.oe("data"))}HV(f){this.Ww!=f&&(this.Ww=f,this.oe("data"))}J(){return this.Ww?this.Ww(this.data):this.data[this.df]}kb(){this.zs("data")&&(this.G.text(this.data[this.df]),
q.ia(this.xp)||q.v(this.data[this.xp])||this.mc(this.data[this.xp]));this.validate()}}l.cB=h})(e.Ci||(e.Ci={}))})(x||(x={}));
(function(e){(function(l){class h extends l.cB{kb(){var f=this.getData();null==this.label&&(this.label=new e.Uc,this.label.$("fm-text-display"),this.G.append(this.label.G));this.label.cb(f[this.er()],!0);this.vaa(!0===f.isSelected);this.G.Wa("fm-selected",!0===f.isSelected);this.G.Wa("fm-not-selected",!0!==f.isSelected);q.ia(this.xp)||q.v(this.data[this.xp])||this.label.mc(this.data[this.xp])}}l.SX=h})(e.Ci||(e.Ci={}))})(x||(x={}));var da=x||(x={}),ea=da.Zi||(da.Zi={}),ia=ea.ji||(ea.ji={});
ia.ck="top";ia.Hi="bottom";ia.YE="left";ia.pF="right";
(function(e){(function(l){class h{constructor(f,b){this.kK=a=>this.kx(a);this.It=a=>this.lr(a);this.FB=a=>this.lx(a);this.target=f;this.options=b;this.$va()}$va(){for(var f=0;f<this.options.QV.length;f++)this.iu(this.options.QV[f])}iu(f){var b=new e.Ea("div","fm-resizable-handle");b.$("fm-"+f);b.N("mousedown",this.kK);this.target.W(b);return b}kx(f){f=e.Ea.Vb(f.target);f.Rc("fm-left")?this.ky=l.ji.YE:f.Rc("fm-right")?this.ky=l.ji.pF:f.Rc("fm-top")?this.ky=l.ji.ck:f.Rc("fm-bottom")&&(this.ky=l.ji.Hi);
this.KN()}lr(f){this.cga(f.clientX,f.clientY);this.LN()}lx(f){this.cga(f.clientX,f.clientY)}cga(f,b){this.WJ&&(f=Math.min(Math.max(this.WJ.left,f),this.WJ.right),b=Math.max(this.WJ.top,b),!0!==this.options.FZ&&(b=Math.min(this.WJ.bottom,b)));var a={left:this.HB.left,top:this.HB.top},c={width:this.RY.width,height:this.RY.height};this.ky==l.ji.YE&&(a.left=f,c.width+=this.HB.left-a.left);this.ky==l.ji.pF&&(c.width=f-this.HB.left);this.ky==l.ji.ck&&(a.top=b,c.height+=this.HB.top-a.top);this.ky==l.ji.Hi&&
(c.height=b-this.HB.top);this.options.resize&&this.options.resize({sE:this.ky,gOa:this.HB,J3:this.RY,position:a,size:c})}KN(){document.addEventListener("mousemove",this.FB);document.addEventListener("mouseup",this.It);this.RY={width:this.target.uf(!0),height:this.target.xd(!0)};this.HB={left:this.target.lg().left,top:this.target.lg().top};this.WJ=this.options.KR?this.options.KR.getBoundingClientRect():null}LN(){document.removeEventListener("mousemove",this.FB);document.removeEventListener("mouseup",
this.It);this.options.complete&&this.options.complete()}dispose(){document.removeEventListener("mousemove",this.FB);document.removeEventListener("mouseup",this.It)}}l.rpa=h})(e.Zi||(e.Zi={}))})(x||(x={}));(function(e){(function(l){class h extends e.Ci.SX{kb(){super.kb();const f=this.data.submenu&&0<this.data.submenu.length;this.G.Wa("fm-has-submenu",f);this.Cta(f)}}l.i9=h})(e.$q||(e.$q={}))})(x||(x={}));
(function(e){(function(l){class h extends e.be.h9{constructor(b){super();this.ZV=a=>this.sGa(a);this.parent=b;this.$("fm-ui-context-menu");this.list=new e.zd.ij;this.list.ei((a,c)=>this.Su(a,c));this.list.qg("caption");this.list.Ie();this.list.N(v.fa.$d,a=>this.av(a));this.W(this.list);this.dA=new f(this);this.dA.list.N(v.fa.$d,a=>this.av(a));this.dA.eb();this.W(this.dA);this.G.Ol();this.G.N("mouseleave",()=>{this.Laa=setTimeout(()=>this.close(),500)});this.G.N("mouseover",()=>{clearTimeout(this.Laa)});
this.G.N("keydown",a=>{27==a.keyCode&&(this.close(),a.stopImmediatePropagation())})}Po(b,a,c,d=null,g=null){0!=a.length&&(this.IK=g,this.setData(a),this.show(),this.Yv=document.activeElement,this.list.focus({preventScroll:!0}),b=b.lg(),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.Kd().Mm?q.K.Mb.Fb.N("touchstart",this.ZV):q.K.Mb.Fb.N("mousedown",this.ZV),this.bea=!0,q.Ce(()=>{this.bea=!1},100))}sGa(b){this.G.JR(b)||this.close()}close(b=null){clearTimeout(this.Laa);if(this.G.visible){this.eb();this.dA.eb();q.K.Mb.Fb.sb("mousedown",this.ZV);q.K.Mb.Fb.sb("touchstart",this.ZV);var a=b&&!0===b.preventFocusRestore?!1:!0;this.IK&&(a=this.IK(b),this.IK=null);this.Yv&&!1!==a&&this.Yv.focus({preventScroll:!0})}}setData(b){this.list.Wf(b.slice())}av(b){const a=
b.data.ql;a.submenu&&0<a.submenu.length?(this.dA.Po(b.data.TIa,a),this.dA.list.focus()):(null!=a.handler&&a.handler(a.data),b.data.gq&&b.data.gq.stopImmediatePropagation(),this.close(a))}Su(b,a){var c=new l.i9;c.setData(b);c.Tm(a);q.ia(b["class"])||c.$(b["class"]);c.N("mouseover",()=>this.JFa(c,b));return c}JFa(b,a){this.bea||(a.submenu&&0<a.submenu.length?this.dA.Po(b.G,a):this.dA.eb())}focus(b=null){this.list.focus(b)}}l.sF=h;class f extends e.be.h9{constructor(b){super();this.parent=b;this.$("fm-ui-context-submenu");
this.N("keydown",a=>this.cq(a));this.list=new e.zd.ij;this.list.ei((a,c)=>this.UJa(a,c));this.list.qg("caption");this.list.Ie();this.W(this.list)}cq(b){27==b.keyCode&&(this.parent&&this.parent.focus(),this.eb(),b.stopImmediatePropagation())}UJa(b,a){var c=new l.i9;c.setData(b);c.Tm(a);q.ia(b["class"])||c.$(b["class"]);return c}Po(b,a){if(a!=this.jga){this.jga=a;this.list.Wf(a.submenu.slice());a=b.lg(this.parent.G.element);this.G.top=a.top-1;this.G.left=b.uf(!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.xd(!0)+1,0>this.G.top&&(this.G.top=-this.G.top))}}eb(){super.eb();this.jga=null}}})(e.$q||(e.$q={}))})(x||(x={}));
(function(e){(function(l){class h{constructor(f){this.target=f;u.Kd().Mm?(new e.cG.ona(this.target)).NCa((b,a)=>this.o3(b,a)):q.vk.addEventListener("contextmenu",b=>this.Ora(b))}o3(){}B3(){}Ora(f){this.target.JR(f)&&this.B3(f)}}l.tpa=h})(e.$q||(e.$q={}))})(x||(x={}));
(function(e){(function(l){class h extends e.Ma{constructor(){super("div","fm-ui-datepicker-input");this.ec="dd/MM/yyyy";this.Ira=1900;this.Gra=2100;this.fga=b=>this.OFa(b);this.Ry=new e.Hj;this.Ry.G.N("click",()=>this.open());this.Ry.N(e.Hj.Mx,b=>this.dFa(b));this.Ry.N(e.Hj.DA,()=>this.eFa());this.W(this.Ry);var f=new e.Ea("i","fm-ui-datepicker-icon");f.N("click",()=>this.cFa());this.G.W(f);this.Zba=new e.Ea("div","fm-ui-datepicker-dropdown");this.G.W(this.Zba);this.Fp=new l.mqa;this.Fp.N(v.fa.$d,
()=>this.zEa());this.Zba.W(this.Fp.G);this.oe()}kb(){this.zs("all","date")&&(this.Fp.gE?this.Ry.zj(this.Fp.gE.format(this.ec)):this.Ry.zj(""));this.zs("timezone")&&this.Ry.kE(this.Sza());super.kb()}open(){this.G.Wa("fm-opened",!0);this.Fp.reset();document.body.addEventListener("mousedown",this.fga)}close(){this.G.Wa("fm-opened",!1);document.body.removeEventListener("mousedown",this.fga);this.oe("date")}get Dc(){return this.Fp.gE}set Dc(f){this.Fp.gE=f;this.oe("date")}sJa(){this.Dc=(new q.Zg).Aj(this.hi)}TGa(f){var b=
"MM/dd/yyyy"==this.ec,a=f.split("/");f=parseInt(a[2]);isNaN(f)||(f=Math.min(this.Gra,Math.max(this.Ira,f)));var c=parseInt(a[b?0:1])-1;isNaN(c)||(c=Math.min(11,Math.max(0,c)));b=parseInt(a[b?1:0]);isNaN(b)||(b=Math.min(q.Zg.F_(c,f),Math.max(1,b)));b=(new q.Zg).Aj(this.hi).setFullYear(f,c,b);return b.Ug()?b:null}cFa(){this.G.Rc("fm-opened")?this.close():this.open()}dFa(f){f=this.TGa(f.data);q.v(f)||(this.Fp.gE=f,this.$a(v.fa.$d,this,this.Dc))}eFa(){this.oe("date");this.close()}OFa(f){this.G.JR(f)||
this.close()}zEa(){this.$a(v.fa.$d,this,this.Dc);this.oe("date");this.close()}get Hx(){return this.Fp.Hx}set Hx(f){this.Fp.Hx=f}get hi(){return this.Fp.hi}set hi(f){this.Fp.hi=f;this.oe("timezone")}set mR(f){this.Fp.mR=f}get E_(){return this.ec}set E_(f){"dd/MM/yyyy"!=f&&"MM/dd/yyyy"!=f||this.ec==f||(this.ec=f,this.yr())}Sza(){var f=new q.Zg;f.Aj(this.hi);return f.format(this.ec)}mc(f){return this.Ry.mc(f)}}l.j9=h})(e.pL||(e.pL={}))})(x||(x={}));
(function(e){(function(l){class h{}h.Dr=0;h.vJ=1;h.SJ=2;class f extends e.Ma{constructor(){super();this.MKa=u.zh.Cza();this.Dfa=u.zh.eAa();this.Tq=this.jn=null;this.yK=0;this.K=h.Dr;this.lZ=1;this.jZ=null;this.$("fm-ui-datepicker");this.$("fm-noselect");this.jn=(new q.Zg).Aj(this.hi).qI();var b=new e.Ea("div","fm-ui-dp-header");this.G.W(b);this.Caa=new e.Kg("fm-prev-btn");this.Caa.N(e.Md.mf,()=>this.Mfa(-1));b.W(this.Caa.G);this.WM=new e.Uc;this.WM.$("fm-ui-dp-month");this.WM.N("click",()=>this.HFa());
b.W(this.WM.G);this.AI=new e.Uc;this.AI.$("fm-ui-dp-year");this.AI.N("click",()=>this.GGa());b.W(this.AI.G);this.Baa=new e.Kg("fm-next-btn");this.Baa.N(e.Md.mf,()=>this.Mfa(1));b.W(this.Baa.G);this.C5=new e.Ea("div","fm-ui-dp-week");this.G.W(this.C5);this.Sy=new e.Ea("div","fm-ui-dp-dates");this.Sy.N("click",a=>this.wEa(a));this.G.W(this.Sy);b=new e.Ea("div","fm-ui-dp-footer");this.G.W(b);this.Ne=new e.Md("fm-ui-link-btn");this.Ne.$("fm-cancel-btn");this.Ne.$("fm-muted");this.Ne.Fd("fm-ui-btn");this.Ne.cb("Cancel");
this.Ne.N(e.Md.mf,()=>this.Is());b.W(this.Ne.G);this.oe()}kb(){this.zs("all")&&this.lxa();this.zs("date","view")&&this.fxa();this.zs("date","view")&&this.K==h.Dr&&this.Vwa();this.zs("view")&&this.K==h.vJ&&this.gxa();this.zs("view")&&this.K==h.SJ&&this.mxa();super.kb()}get gE(){return this.Tq}set gE(b){q.v(b)?null!=this.Tq&&(this.Tq=null,this.oe("date")):(b.Aj(this.hi),b.setHours(0,0,0,0),this.J1(this.Tq,b)||(this.Tq=b,this.jn=b.clone().qI(),this.oe("date")))}get view(){return this.K}set view(b){this.K!=
b&&(this.K=b,this.G.Wa("fm-ui-dp-view-dates",this.view==h.Dr),this.G.Wa("fm-ui-dp-view-months",this.view==h.vJ),this.G.Wa("fm-ui-dp-view-years",this.view==h.SJ),this.oe("view"))}reset(){this.jn=this.Tq?this.Tq.clone().qI():(new q.Zg).Aj(this.hi).qI();this.yK=0;this.view=h.Dr;this.oe("view")}fxa(){if(this.view==h.Dr||this.view==h.vJ)this.WM.cb(this.Dfa[this.jn.getMonth()]),this.AI.cb(this.jn.getFullYear().toString());if(this.view==h.SJ){var b=this.Lda();this.AI.cb(b+" \u2013 "+(b+19))}this.AI.G.Wa("fm-disabled",
this.view!=h.Dr);this.WM.G.Wa("fm-disabled",this.view!=h.Dr)}Lda(){for(var b=this.jn.getFullYear()-10;0!=b%10;)b++;return b+=20*this.yK}lxa(){this.C5.empty();for(var b=0;7>b;b++){var a=new e.Uc(this.MKa[(b+this.Hx)%7].substr(0,2));a.$("fm-ui-dp-day-title");a.$("fm-ui-dp-col-7");this.C5.W(a.G)}}mxa(){var b=this.Lda();this.Sy.empty();for(var a=0;20>a;a++){var c=new e.Uc(b.toString());c.$("fm-ui-dp-date-label");c.$("fm-ui-dp-col-5");this.Tq?this.Tq.getFullYear()==b&&c.$("fm-selected"):this.jn.getFullYear()==
b&&c.$("fm-highlighted");c.G.attr("data-year",b);this.Sy.W(c.G);b++}}gxa(){this.Sy.empty();this.Dfa.forEach((b,a)=>{b=new e.Uc(b);b.$("fm-ui-dp-date-label");b.$("fm-ui-dp-col-3");this.Tq?this.Tq.getMonth()==a&&b.$("fm-selected"):this.jn.getMonth()==a&&b.$("fm-highlighted");b.G.attr("data-month",a);this.Sy.W(b.G)})}Vwa(){var b=this.jn.getDay()-this.Hx;0>b&&(b+=7);b=this.jn.clone().qZ(-b);var a=(new q.Zg).Aj(this.hi);this.Sy.empty();for(var c=0;42>c;c++){var d=new e.Uc(b.getDate().toString());d.$("fm-ui-dp-date-label");
d.$("fm-ui-dp-col-7");b.getMonth()!=this.jn.getMonth()&&d.$("fm-muted");this.J1(this.Tq,b)&&d.$("fm-selected");this.J1(a,b)&&d.$("fm-highlighted");d.G.attr("data-date",b.getTime()/1E3);this.Sy.W(d.G);b.qZ(1)}}J1(b,a){return q.v(b)||q.v(a)?!1:b.getFullYear()==a.getFullYear()&&b.getMonth()==a.getMonth()&&b.getDate()==a.getDate()?!0:!1}HFa(){this.view=h.vJ}GGa(){this.view!=h.vJ&&(this.view=h.SJ)}wEa(b){b=e.Ea.Vb(b.target);var a=b.attr("data-date");q.v(a)||(this.gE=new q.Zg(1E3*parseInt(a)),this.$a(v.fa.$d));
a=b.attr("data-month");q.v(a)||(this.jn.setMonth(parseInt(a),1),this.view=h.Dr);b=b.attr("data-year");q.v(b)||(this.jn.setFullYear(parseInt(b),this.jn.getMonth(),1),this.view=h.Dr,this.yK=0)}Mfa(b){this.view==h.Dr?this.jn.Jsa(b):this.view==h.SJ&&(this.yK+=b);this.oe("view")}Is(){this.view=h.Dr}get Hx(){return this.lZ}set Hx(b){this.lZ!=b&&(this.lZ=b,this.oe("all"))}get hi(){return this.jZ}set hi(b){this.jZ!=b&&(this.jZ=b,this.oe("all"))}set mR(b){this.Ne.cb(b)}}l.mqa=f})(e.pL||(e.pL={}))})(x||(x=
{}));
(function(e){(function(l){class h{constructor(f,b=1E3){this.Ria=a=>this.xGa(a);this.Qia=a=>this.UU(a);this.target=f;this.delay=b}NCa(f){this.Jb=f;this.target.N("touchstart",this.Ria);this.target.N("touchend",this.Qia)}stop(){this.target.sb("touchstart",this.Ria);this.target.sb("touchend",this.Qia)}xGa(f){this.timer=q.Ce(()=>this.Uta(f),this.delay)}UU(){this.timer&&q.ts(this.timer)}Uta(f){e.Ea.Vb(f.target).Rc("fm-dragging")||this.Jb(f,f&&0<f.changedTouches.length?f.changedTouches[0]:null)}}l.ona=h})(e.cG||
(e.cG={}))})(x||(x={}));(function(e){(function(l){class h extends e.Ea{constructor(){super();this.Ie();this.zg("hidden","true");this.element.addEventListener("focus",f=>this.T2(f))}T2(f){f.relatedTarget&&f.relatedTarget.focus()}}l.B7=h})(e.cG||(e.cG={}))})(x||(x={}));
(function(e){class l{constructor(m,n=0,p=l.fna){this.nra=!0;this.iy=0;this.jB=n;this.buffer=m;this.position=0;this.wxa=p}get byteOffset(){return this.jB}set byteOffset(m){this.jB=m;this.kY=new DataView(this.Lq,this.jB);this.iy=this.Lq.byteLength}get byteLength(){return this.iy-this.jB}get buffer(){this.Zra();return this.Lq}set buffer(m){this.Lq=m;this.kY=0==this.jB?new DataView(this.Lq):new DataView(this.Lq,this.jB);this.iy=this.Lq.byteLength}seek(m){m=Math.max(0,Math.min(this.byteLength,m));this.position=
isNaN(m)||!isFinite(m)?0:m}PKa(m){this.RKa(h.encode(m))}QKa(m){this.WY(1);this.kY.setUint8(this.position,m);this.position+=1}RKa(m){this.WY(1*m.length);if(m instanceof Uint8Array&&0==this.byteOffset+this.position%m.BYTES_PER_ELEMENT)this.qDa(this.Lq,this.byteOffset+this.position,m.buffer,m.byteLength),this.sfa(m.length);else for(var n=0;n<m.length;n++)this.QKa(m[n])}jV(m){return f.decode(this.sfa(m))}Rga(){var m=this.kY.getUint32(this.position,this.wxa);this.position+=4;return m}sfa(m){this.WY(1*
m);var n=new Uint8Array(this.Lq,this.byteOffset+this.position,m);this.position+=1*m;return n}WY(m){if(this.nra){m=this.jB+this.position+m;var n=this.Lq.byteLength;if(m<=n)m>this.iy&&(this.iy=m);else{for(1>n&&(n=1);m>n;)n*=2;n=new ArrayBuffer(n);var p=new Uint8Array(this.Lq);(new Uint8Array(n,0,p.length)).set(p);this.buffer=n;this.iy=m}}}Zra(){if(this.iy!=this.Lq.byteLength){var m=new ArrayBuffer(this.iy),n=new Uint8Array(m),p=new Uint8Array(this.Lq,0,n.length);n.set(p);this.buffer=m}}qDa(m,n,p,t){m=
new Uint8Array(m,n,t);p=new Uint8Array(p,0,t);m.set(p)}}l.HI=!1;l.fna=!0;e.Er=l;class h{static encode(m){m=m?String(m):"";var n=[],p=new d(n);m=new g(m);null==h.c0&&(h.c0=new a);for(;m.get()!==h.bn;)h.c0.encode(p,m);do var t=h.c0.encode(p,m);while(t!==h.Fr);return new Uint8Array(n)}}h.Fr=-1;h.bn=-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.G_&&(f.G_=new b);for(;m.get()!==f.Fr;){var p=f.G_.decode(m);
null!==p&&p!==f.bn&&n.MG(p)}do p=f.G_.decode(m),null!==p&&p!==f.bn&&n.MG(p);while(p!==f.bn);return n.$v}}f.Fr=-1;f.bn=-1;e.TextDecoder=f;class b{constructor(){this.bn=this.Fr=-1;this.yI=this.xI=this.Gx=this.kv=0}decode(m){var n=m.get();if(n===this.Fr)return this.bn;m.offset(1);if(0===this.Gx){if(this.inRange(n,0,127))return n;if(this.inRange(n,194,223))this.Gx=1,this.yI=128,this.kv=n-192;else if(this.inRange(n,224,239))this.Gx=2,this.yI=2048,this.kv=n-224;else if(this.inRange(n,240,244))this.Gx=3,
this.yI=65536,this.kv=n-240;else return this.bn;this.kv*=Math.pow(64,this.Gx);return null}if(!this.inRange(n,128,191))return this.yI=this.xI=this.Gx=this.kv=0,m.offset(-1),this.bn;this.xI+=1;this.kv+=(n-128)*Math.pow(64,this.Gx-this.xI);if(this.xI!==this.Gx)return null;m=this.kv;n=this.yI;this.yI=this.xI=this.Gx=this.kv=0;return this.inRange(m,n,1114111)&&!this.inRange(m,55296,57343)?m:this.bn}inRange(m,n,p){return n<=m&&m<=p}}e.XNa=b;class a{constructor(){this.bn=this.Fr=-1}inRange(m,n,p){return n<=
m&&m<=p}Oba(m,n){return Math.floor(m/n)}encode(m,n){var p=n.get();if(p===this.bn)return this.Fr;n.offset(1);if(this.inRange(p,55296,57343))return this.bn;if(this.inRange(p,0,127))return m.MG(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.MG(this.Oba(p,Math.pow(64,t))+r);0<t;)n=m.MG(128+this.Oba(p,Math.pow(64,t-1))%64),--t;return n}}e.YNa=a;class c{constructor(m){this.Fr=-1;this.bm=0;this.XB=m}get(){return this.bm>=
this.XB.length?this.Fr:Number(this.XB[this.bm])}offset(m){this.bm+=m;if(0>this.bm)throw Error("Seeking past start of the buffer");if(this.bm>this.XB.length)throw Error("Seeking past EOF");}match(m){if(m.length>this.bm+this.XB.length)return!1;var n;for(n=0;n<m.length;n+=1)if(Number(this.XB[this.bm+n])!==m[n])return!1;return!0}}e.bLa=c;class d{constructor(m){this.Fr=-1;this.bm=0;this.XB=m}MG(m){var n=this.Fr,p;for(p=0;p<arguments.length;++p)n=Number(arguments[p]),this.XB[this.bm++]=n;return n}}e.cLa=
d;class g{constructor(m){this.bm=0;this.bn=-1;this.$v=m;this.s_=this.tza(this.$v)}tza(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 w=m.charCodeAt(p+1);this.inRange(w,56320,57343)?(r&=1023,w&=1023,p+=1,n.push(65536+(r<<10)+w)):n.push(65533)}else n.push(r);p+=1}return n}inRange(m,n,p){return n<=m&&m<=p}offset(m){this.bm+=m;if(0>this.bm)throw Error("Seeking past start of the buffer");
if(this.bm>this.s_.length)throw Error("Seeking past EOF");}get(){return this.bm>=this.s_.length?this.bn:this.s_[this.bm]}}e.CLa=g;class k{constructor(){this.$v=""}MG(m){65535>=m?this.$v+=String.fromCharCode(m):(m-=65536,this.$v+=String.fromCharCode(55296+(m>>10&1023)),this.$v+=String.fromCharCode(56320+(m&1023)))}}e.DLa=k})(q||(q={}));var z;
(function(e){class l extends v.Ah{constructor(){super(...arguments);this.responseType="arraybuffer";this.connected=!1;this.sc=[]}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.eq(f);this.xhr.onerror=f=>this.Sb(f);this.xhr.onreadystatechange=f=>this.bv(f);this.PK();this.xhr.send()}qza(){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"}}kr(){this.response=this.xhr.response;this.$a(v.fa.Oc)}eq(h){this.$a(v.fa.ue,this,h)}Sb(){q.v(this.xhr)||(this.response=this.xhr.response||this.xhr.responseText||this.xhr.statusText);this.Fa(new v.fa(v.fa.Aa,this))}bv(){null!=this.xhr&&4===this.xhr.readyState&&(200===this.xhr.status?this.kr():this.$a(v.fa.Aa,this,this.xhr.statusText));null!=this.xhr&&3>this.xhr.readyState&&!this.connected&&(this.connected=!0,this.$a(v.fa.vA))}PK(){if(!q.v(this.sc))for(var h=0;h<
this.sc.length;h++)try{this.xhr.setRequestHeader(this.sc[h].Ui,this.sc[h].value)}catch(f){console.error("Request headers error:",f),q.Za(f.message||f,q.model.B.j.Aa,q.xb.Aa)}}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.sc=this.xhr=null}}e.l9=l})(z||(z={}));
(function(e){class l extends v.Ah{constructor(){super();this.dataType=h.aB;this.contentType=f.Xpa;this.rr=b.fX;this.M$=this.connected=!1;this.KY=0;this.AB=null;this.Kga=0;this.sc=[];this.data={};this.Pi=0}load(d){q.ia(d)||(this.url=d);this.Pi=0;this.connected=!1;this.close();this.xhr=new XMLHttpRequest;try{this.xhr.open(this.rr,this.url,!0)}catch(g){this.Sb(g);return}this.xhr.withCredentials=this.M$;this.xhr.onerror=g=>this.Sb(g);this.xhr.onreadystatechange=g=>this.bv(g);this.xhr.onprogress=g=>this.eq(g);
this.rr==b.zv&&!1!==this.contentType&&this.xhr.setRequestHeader("Content-type",this.contentType);this.PK();this.xhr.send(this.data)}retry(){this.load(this.url)}set withCredentials(d){this.M$=d}PK(){if(!q.v(this.sc))for(var d=0;d<this.sc.length;d++)try{this.xhr.setRequestHeader(this.sc[d].Ui,this.sc[d].value)}catch(g){console.error("Request headers error:",g),q.Za(g.message||g,q.model.B.j.Aa,q.xb.Aa)}}Qh(d){if(!q.v(d)){this.sc=[];for(let g in d)d.hasOwnProperty(g)&&this.sc.push(new e.m9(g,d[g]))}}oI(){this.response=
this.xhr.response||this.xhr.responseText;this.Pi=this.AB?this.AB.loaded:this.response.length;null!=this.AB&&this.$a(v.fa.ue,this,this.AB);this.Fa(new v.fa(v.fa.Oc,this))}bv(d){null!=this.xhr&&4===this.xhr.readyState&&(200===this.xhr.status?this.oI():this.Sb(d));null!=this.xhr&&3>this.xhr.readyState&&!this.connected&&(this.connected=!0,this.Fa(new v.fa(v.fa.vA)))}eq(d){u.Qf()-this.KY>this.Kga?(this.response=this.xhr.response||this.xhr.responseText,this.Pi=d.loaded,this.$a(v.fa.ue,this,d),this.KY=u.Qf(),
this.AB=null):this.AB=d}Sb(){q.v(this.xhr)||(this.response=this.xhr.response||this.xhr.responseText||this.xhr.statusText);this.Fa(new v.fa(v.fa.Aa,this))}close(){null!=this.xhr&&(this.xhr.onprogress=null,this.xhr.onreadystatechange=null,this.xhr.abort())}dispose(){this.data=this.response=null;this.sc=[];null!=this.xhr&&(this.xhr.abort(),this.xhr.onprogress=null,this.xhr.onreadystatechange=null);this.KY=this.AB=this.xhr=null}}e.ek=l;class h{}h.aB="text";h.ba="xml";h.vv="html";h.JSON="json";e.zA=h;
class f{}f.Xpa="text/plain";f.IP="text/xml";f.K5="application/json";f.yja="application/x-www-form-urlencoded";e.yA=f;class b{}b.zv="POST";b.fX="GET";e.xt=b;class a{constructor(d,g){this.Ui=d;this.value=g}}e.m9=a;class c{constructor(){this.data={}}toString(){var d=[],g;for(g in this.data)this.data.hasOwnProperty(g)&&d.push(g+"="+this.data[g]);return d.join("&")}}e.vqa=c})(z||(z={}));
(function(e){class l extends v.Ah{constructor(){super();this.bS=!1;this.ija=()=>this.T2();this.Z3=!1}zaa(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.UDa());this.bS=!0;this.Z3=window.location!==window.parent.location;q.JL.addEventListener("focus",this.ija);this.input.click()}UDa(){this.bS=!1;q.v(this.input.files)||
q.v(this.input.files[0])||(this.file=this.input.files[0],this.$a(v.fa.np))}T2(){this.Z3?this.Z3=!1:this.bS&&q.Ce(()=>{(q.v(this.input.files)||q.v(this.input.files[0]))&&this.$a(v.fa.BW);this.bS=!1},500)}load(f=h.aB){null!=this.file&&(this.XD=new FileReader,this.XD.onload=()=>this.nFa(),this.XD.onprogress=b=>this.eq(b),this.XD.onerror=b=>this.Sb(b),f==h.ARRAY_BUFFER?this.XD.readAsArrayBuffer(this.file):this.XD.readAsText(this.file))}nFa(){this.response=this.XD.result;this.Fa(new v.fa(v.fa.Oc,this))}eq(f){this.$a(v.fa.ue,
this,f)}Sb(f){this.Fa(f)}dispose(){this.XD=this.file=this.response=null;q.JL.removeEventListener("focus",this.ija)}}e.x7=l;class h{}h.aB="TEXT";h.ARRAY_BUFFER="ARRAY_BUFFER";e.ppa=h;e.mha=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.Ce(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.Vb(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.ZNa=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.ia(b))return this;(b instanceof CDATASection||""!=b.textContent)&&this.appendChild(b);return this}nb(){return""==this.text()}find(b){b=this.querySelectorAll(b);for(var a=new l,c=0;c<b.length;c++)a[c]=h.Vb(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}hza(){for(var b=new l,a=this.firstElementChild;a;)a.nodeType===Node.ELEMENT_NODE&&
b.push(h.Vb(a)),a=a.nextElementSibling;return b}get length(){return this.childNodes.length}static Vb(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.nb;b.getChildren=h.prototype.hza;return b}}e.$X=h;class f{constructor(){throw Error("Singleton");}static create(b){if(null==b.firstChild){b=(new DOMParser).parseFromString(b,"text/xml");if(f.kCa(b))return null;b=b.firstElementChild?b.firstElementChild:b.firstChild}else b=b.firstChild;
return h.Vb(b)}static kCa(b){return b.getElementsByTagName("parsererror")&&b.getElementsByTagName("parsererror")[0]?0<b.getElementsByTagNameNS(b.getElementsByTagName("parsererror")[0].namespaceURI,"parsererror").length:!1}static Vh(b){return f.Qwa.createCDATASection(b)}static Ic(b,a=!1){null==f.zha&&(f.zha=new XMLSerializer);b=f.zha.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.Qwa=(new DOMParser).parseFromString("<tmp/>","text/xml");e.ba=f})(z||
(z={}));
(function(e){class l{static print(h,f="",b=""){var a="printer-"+(new Date).getTime(),c=(new x.Ea("iframe")).attr("name",a);c.R("width","1px").R("height","1px").R("position","absolute").R("left","-9999px");q.K.Mb.Fb.G.append(c);a=window.frames[a];var d=a.document;d.open();d.write("<!DOCTYPE html>");d.write("<html>");d.write("<head>");d.write("<title>");d.write(b);d.write("</title>");d.write("<style>");d.write(f+"body{-webkit-print-color-adjust:exact;}");d.write("</style>");d.write("</head>");d.write("<body>");
d.write(h);d.write("</body>");d.write("</html>");d.close();a.focus();a.print();q.Ce(()=>{c.remove()},2E3)}}e.I8=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]}tva(f){var b=[],a=0,c=0,d;for(d in f)if(f.hasOwnProperty(d)){var g=f[d],k=this.d5(g);g=this.rKa(k);g={tKa:k.length,t_:this.t_(k),Vaa:g.length,uva:g,wva:"\x00\x00",Dc:new Date};k=this.Uya(d,g,a);a+=k.qca.length+g.Vaa;c+=k.Lba.length;
b.push(k)}f=l.Uja+"\x00\x00\x00\x00"+this.Em(b.length,2)+this.Em(b.length,2)+this.Em(c,4)+this.Em(a,4)+this.Em(0,2);a=new h(a+c+f.length);for(c=0;c<b.length;c++)a.append(b[c].qca),a.append(b[c].vva.uva);for(c=0;c<b.length;c++)a.append(b[c].Lba);a.append(f);return a.getData()}t_(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}Em(f,b){for(var a="",c=0;c<b;c++)a+=String.fromCharCode(f&255),f>>>=8;return a}Uya(f,b,a){var c=b.Dc,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.wva;c+=this.Em(d,2);c+=this.Em(g,2);c+=this.Em(b.t_,4);c+=this.Em(b.Vaa,4);c+=this.Em(b.tKa,4);c+=this.Em(f.length,2);c+=this.Em(0,2);return{qca:l.gna+c+f,Lba:l.Vja+this.Em(20,2)+c+this.Em(0,2)+"\x00\x00\x00\x00"+this.Em(0,4)+this.Em(a,4)+f,vva:b}}d5(f){var b=this.Mva(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}Mva(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}rKa(f){var b=[],a=f.length,c=0;for(new Uint8Array(0);c<
a;)b.push(String.fromCharCode.apply(null,f.subarray(c,Math.min(c+65536,a)))),c+=65536;return b.join("")}}l.gna="PK\u0003\u0004";l.Vja="PK\u0001\u0002";l.Uja="PK\u0005\u0006";e.yma=l;class h{constructor(f){this.data=new Uint8Array(f);this.index=0}append(f){0!==f.length&&(f=this.d5(f),this.data.set(f,this.index),this.index+=f.length)}getData(){return this.data}d5(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.K1&&(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.K1=!1;var f=[],b,a=()=>{!1!==e.K1&&(b&&e.ts(b),b=e.Ce(l,1E3))};a();e.debug=function(...c){if(!1!==e.K1){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.Qf(),values:d})}};e.bOa=l;e.kOa=function(){var c=Error();return c&&c.stack?"[Stack trace] "+c.stack.substr(79):""}})(q||(q={}));(function(e){e.Za=function(h,f="",b=l.vl,a=null,c=null,d=!1){e.K.hO.V().Ns(h,f,b,a,c,d)};class l{}l.vl="alert";l.Ym="confirmation";l.Aa="error";l.RO="info";e.xb=l})(q||(q={}));
(function(e){e.sKa=function(l=null){e.K.epa.V().Ns("Please enter group name:",l)}})(q||(q={}));(function(e){e.Ca=function(l=!0,h,f,b,a){e.K.dpa.V().show(l,h,f,b,a)}})(q||(q={}));
(function(e){(function(l){class h extends v.Ah{constructor(){super();if(null!=h.instance)throw Error("Singleton");this.ha=e.u.Ra.V();this.Ia=new l.jc.Rpa;this.zI=e.u.external.Eb.cj.q9.V();this.oaa=e.u.external.pc.H5.V()}static V(){null==this.instance&&(this.instance=new h);return this.instance}pD(f){this.Kb=f;h.id=f.id?f.id:"";l.Ua.gJa(f);l.B.NA.V().reset();e.K.Y.X.ke.uw=f.customizeCell;e.K.Bd.ov.tC=f.customizeChartElement;e.K.Y.rO.oL=f.customizeContextMenu;e.u.external.pc.oA.nL=f.customizeAPIRequest;
e.K.pd.gp.pS=f.sortFieldsList;const b=new e.vma(location.search);if(b.has("flexmonsterreport")){const a=this.Y9(f);a?this.oaa.XCa("string"===typeof a?{url:a.toLowerCase(),Qo:!1}:a,b.get("flexmonsterreport"),c=>{void 0!==c&&(f.report=c);this.Ia.pD(f)}):(e.Za(e.P.bind(l.B.j.f8,"The URL to the server hasn't been found."),l.B.j.Aa,e.xb.Aa),console.error("Can't load the shared file. The URL to the server hasn't been found."),this.Ia.pD(f))}else this.Ia.pD(f)}Y9(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.Ia.open()}load(f,b){this.Ia.load(f,b)}save(f,b=null,a,c,d=!1){return this.Ia.save(f,b,a,c,d)}ux(f){this.Ia.ux(f)}ws(f={}){return this.Ia.ws(f)}LV(f){f=l.hb.Gv.zb(l.hb.Gv.fm(f));l.size.vd.clear();l.size.vd.KZ(f);this.refresh();this.bb()}rH(){return l.size.vd.rH().Qa(this.ha.ua.n5())}clear(f=!1){this.Ia&&this.Ia.clear(f)}Gaa(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}wG(f){this.Ia.wG(this.Gaa(f))}Qd(f,b){b.partial?
this.Ia.yKa(f.data,b):this.Ia.Qd(this.Gaa(f),b)}getData(f,b,a){if(l.Ga.uc.Gp||l.Ga.uc.iq||l.Ga.uc.By)if(null!=a&&(e.ph.instance.on("update",function(){e.ph.instance.getData(f,a)}),this.N(l.ec.D7.w7,function(){e.ph.instance.getData(f,a)})),null!=f&&null!=f.slice){var c=f.slice instanceof l.hb.pp?f.slice:l.hb.pp.zb(f.slice);l.qD.SO.V().PIa(c,b)}else c=l.qD.SO.V().getData(),l.qD.SO.V().Nba(b,c);else e.Za(l.Ga.pa.J(l.Ga.pa.SZ),l.Ga.pa.J(l.Ga.pa.BD))}B0(){return l.va.Zm.jAa()}F0(f){return(f=l.va.Zm.get(f))?
f.Qa():null}aR(f){l.va.Zm.add(l.va.X.B6.zb(f))}lV(f){l.va.Zm.remove(f)}kV(){l.va.Zm.c4()}Vt(f){this.ha.Vt(f)}Qz(f){this.ha.Qz(f)}YD(){this.ha.YD()}kS(f=!0){this.ha.Qc(!0,f);e.u.sf.Fj.dispose();this.refresh();this.bb()}BR(){this.ha.Qc(!1,!1);e.u.sf.Fj.dispose();this.refresh();this.$a("reset_grid");this.bb()}qq(f){null!=f.chartActiveMeasure&&delete f.chartActiveMeasure;null!=f.chartActiveTupleIndex&&delete f.chartActiveTupleIndex;null!=f.zoom&&delete f.zoom;f.flatView&&this.Ia.ga.Gc&&this.Ia.ga.Da!==
e.u.i.qa.API&&delete f.flatView;if(!e.v(f.useOlapFormatting)&&this.Ia.ga.Gc&&l.C.F.vq!=f.useOlapFormatting){var b=this.ws({withDefaults:!0});b.options.FD(f);this.ux({report:b})}else{b=l.C.F.rc;const a=l.C.F.Ys,c=l.C.F.je;l.C.F.qq(l.C.Eq.zb(f),!1);a!=l.C.F.Ys&&this.Ia&&this.Ia.ga&&!this.Ia.ga.Gc&&this.I.load();!e.v(this.Ia)&&this.Ia.ga.Da==e.u.i.qa.API&&(b!=l.C.F.rc||l.C.F.rc&&c!=l.C.F.je)&&(b=this.ws({withDefaults:!0}),b.options.FD(f),e.v(this.Ia.ga.sc)||(b.ma.sc=this.Ia.ga.sc),this.clear(!0),this.ux({report:b}))}}print(f){l.Rs.jF.V().print(f)}tk(f,
b=null,a=null){l.Ac.Sn.tk(f,b,a)}eD(f,b){return this.zI.eD(f,b)}tH(f,b){this.zI.bda(f,b)}lM(f,b,a){this.zI.dza(f,b,a)}mM(f,b,a,c){this.zI.uza(f,b,a,c)}xR(f,b,a,c,d){this.zI.vR(f,b,a,c,d)}async CN(f){return new Promise((b,a)=>{var c=d=>{let g;e.v(d)?this.Ia.ga&&this.Ia.ga.Da==e.u.i.qa.API&&(g=this.Ia.ga.Iw()):g=new e.u.external.pc.oA(d);e.v(g)&&(d=this.Y9(this.Kb),e.v(d)||("string"===typeof d&&(d={url:d}),g=new e.u.external.pc.oA(d)));g?this.oaa.CN(g,this.ws()).then(k=>{b(k)}):(e.Za(e.P.bind(l.B.j.g8,
"Can't find the valid connection options"),l.B.j.Aa,e.xb.Aa),a("Can't find the valid connection options"))};null==this.ha||null==this.ha.O?this.Ia.N(l.jc.nd.ii,()=>c(f)):c(f)})}Hm(f){return null==this.ha||null==this.ha.O?[]:(f=this.ha.O.wc(!1).getItem(f))&&f.filter.wh?f.filter.Qa():null}em(f,b){f=e.u.ye.Pg(f);if(f=this.ha.O.wc(!1).getItem(f)){f.eu();f.filter=l.hb.JA.zb(b,f);if(f.filter.xi&&(f.filter.query.va==e.u.i.yc.ck||f.filter.query.va==e.u.i.yc.Hi))if(l.C.F.rc)this.ha.ua.ih=[{sort:f.filter.query.va==
e.u.i.yc.ck?e.u.i.za.Kc:e.u.i.za.ic,measure:this.ha.O.gd(f.filter.measure.A)}];else{b=this.ha.ua.ce(e.u.i.ja.La);var a=this.ha.ua.ce(e.u.i.ja.Xa);b=-1!=b.Oa.indexOf(f.A)?a:b;b.Um=[];b.$f=f.filter.query.va==e.u.i.yc.ck?e.u.i.za.Kc:e.u.i.za.ic;b.Yf=this.ha.ua.vi(f.filter.measure)}this.$a("reset_grid");this.ha.filter();this.bb()}}eu(f){f=e.u.ye.Pg(f);if(f=this.ha.O.wc(!1).getItem(f))f.eu(),this.ha.select(),this.bb()}nH(){if(null==this.ha||null==this.ha.ua)return[];const f=[],b=this.ha.ua.rows;for(let a=
0;a<b.length;a++)f.push(b.ea(a).bj());return f}cH(){if(null==this.ha||null==this.ha.ua)return[];const f=[],b=this.ha.ua.Ka;for(let a=0;a<b.length;a++)f.push(b.ea(a).bj());return f}$C(){if(null==this.ha||null==this.ha.ua)return[];const f=[],b=this.ha.ua.ob;for(let a=0;a<b.length;a++)f.push(b.ea(a).bj());return f}hd(){if(null==this.ha||null==this.ha.ua)return[];var f=[];if(l.C.F.rc){for(var b=this.ha.ua.flatten(),a,c=0;c<b.length;c++)a=b.ea(c),(a=this.ha.O.cf(a.A))&&f.push(a.bj());b=this.ha.ua.hd();
for(c=0;c<b.length;c++)b[c].Na&&f.push(b[c].bj())}else for(b=this.ha.ua.hd(),c=0;c<b.length;c++)f.push(b[c].bj());return f}us(){if(null==this.ha||null==this.ha.O)return[];for(var f=[],b=this.ha.O.Ba,a=0;a<b.length;a++)f.push(b.ea(a).bj());return f}oV(f){this.ha.O.wc(!1).getItem(f.name).label=f.caption}WG(){if(null==this.ha||null==this.ha.O)return[];const f=[],b=this.ha.O.wc(!1);for(let a=0;a<b.length;a++)f.push(b.ea(a).bj());return f}XV(f,b,a,c){c="string"==typeof c?new l.hb.ah(e.u.ye.Pg(c)):l.hb.ah.zb(c);
f=this.ha.ua.axes.getItem(f);if(null!=f){if(b==e.u.i.za.fd)f.gC();else if(c=this.ha.ua.vi(c))f.$f=b,f.Um=a,f.Yf=c;this.ha.sort();this.bb()}}nE(f,b){f=e.u.ye.Pg(f);if(f=this.ha.O.wc(!1).getItem(f)){var a=this.ha.ua.axes.getItem(e.u.i.ja.Xa),c=this.ha.ua.axes.getItem(e.u.i.ja.La);-1!=a.Oa.indexOf(f.A)?c.gC():-1!=c.Oa.indexOf(f.A)&&a.gC();f.Zf=b;l.C.F.rc&&(this.ha.ua.ih=[{sort:b,measure:this.ha.O.cf(f.A)}]);this.bb()}this.ha.select()}DV(f){this.ha.ua.ih=e.u.O.Lr.Bca(f,this.ha.ua.Yc);this.bb();this.ha.select()}bb(){l.Ua.V().Fa(new l.cd(l.Ua.GJ))}UV(f){e.K.pd.gp.pS=
f}YV(f,b){f=e.u.ye.Pg(f);if(f=this.ha.O.wc(!1).getItem(f))f.ex=b;this.Ia.kc&&this.ha.select()}Z0(f){if(null==this.ha||null==this.ha.O)return"";f=this.ha.O.wc(!1).getItem(f);return null!=f?f.Zf:""}N0(){return null==this.ha||null==this.ha.O?null:this.ha.ua.Cca()}Pj(f,b,a){if(null==this.ha||null==this.ha.O)return[];var c=[],d=this.ha.O.wc(!1).getItem(f);null==b&&(b="");d&&(this.Ia.ga.Gc?(f=""==b?d.Ad:d.Ib(b),null==a||null==f&&""!=b||(f&&f.children&&0<f.children.length&&!f.vf?(c=this.IS(d,b),a(c)):this.ha.Bk(d,
f,()=>{c=this.IS(d,b);a(c)}))):(c=this.A0(d.Ad),null!=a&&a(c)));return c}W0(f,b){return new Promise((a,c)=>{var d=(g,k)=>{var m=[],n=this.ha.O.wc(!1).getItem(g);e.v(k)&&(k="");if(n){if(this.Ia.ga.Gc)if(g=""===k?n.Ad:n.Ib(k),null!=g)if(g&&g.children&&0<g.children.length&&!g.vf)m=this.IS(n,k),a(m);else{this.ha.Bk(n,g,()=>{m=this.IS(n,k);a(m)});return}else c(`Member "${k}" is not found!`);else m=this.A0(n.Ad);a(m)}else c(`Hierarchy "${g}" is not found!`)};null==this.ha||null==this.ha.O?this.Ia.N(l.jc.nd.ii,
()=>d(f,b)):d(f,b)})}IS(f,b){var a=[];b=""==b?f.Ad.children:f.Ib(b).children;for(var c=0;c<b.length;c++){var d=f.ya(b[c]),g=d.Qa();g.isLeaf=d.level.wb==d.hierarchy.ta.length-1;g.parentMember=d.parent.Zb?d.hierarchy.Ad.qj:d.parent.qj;d.A!=f.wm&&a.push(g)}return a}A0(f){for(var b=[],a=f.hierarchy.Yj(f,!1),c=0;c<a.length;c++){var d=f.hierarchy.ya(a[c]),g=d.Qa();g.isLeaf=d.level.wb==d.hierarchy.ta.length-1;g.uniqueName=d.qj;g.parentMember=d.parent.Zb?d.hierarchy.Ad.qj:d.parent.qj;if(1!=d.children.length||
d.hierarchy.ya(d.children[0]).caption!=l.B.j.zl)g.children=this.A0(d);b.push(g)}return b}rN(f){this.Ia.ne(e.u.O.Lr.zb(f,e.u.Ra.V().O))}ne(f){this.Ia.ne(f)}Kw(){var f=l.C.F.Kw(!0,!0).Qa();null!=f.chartActiveMeasure&&delete f.chartActiveMeasure;null!=f.chartActiveTupleIndex&&delete f.chartActiveTupleIndex;return f}Yh(f,b){const a=this.ha&&this.ha.O?this.ha.O.gd(f):null;b=a&&void 0===b?a.xm:b;const c=a&&l.C.F.rc&&e.u.i.Pa.xc==a.type;return(a?a.Yh(f,b,c):l.ec.gj.RS()).Qa(!0)}jE(f,b,a){f.hasOwnProperty("name")||
(f.name=e.P.NL());try{l.ec.gj.jE(f)}catch(d){e.Za("Can't add format. Component's configuration requires more parameters.");return}try{let d=this.ha.O.gd(b);d&&void 0===a&&l.ec.gj.eI(f.name,d.A,"");d&&d.aa===a&&(d.format=f.name,l.ec.gj.eI(f.name,d.A,a),f.label&&(d.label=f.label));if(""!=f.name&&(""==b||null==b))for(var c=0;c<this.ha.O.Ba.length;c++)d=this.ha.O.Ba.ea(c),l.ec.gj.eI(f.name,d.A,""),d.format=f.name;const g=this.ha.ua.hd();for(c=0;c<g.length;c++)if(b===g[c].A&&a===g[c].aa||void 0===a&&b===
g[c].A)g[c].format=f.name,l.ec.gj.eI(f.name,g[c].A,g[c].aa),f.label&&(d.label=f.label)}catch(d){e.Za("List of measures is empty. There is nothing to format.");return}this.Fa(new v.fa(l.ec.D7.w7));this.bb()}refresh(){this.ha.filter()}b4(){var f=e.ph.instance.ws();e.ph.instance.clear();e.ph.instance.ux(f)}dispose(){e.u.sf.Fj.dispose();e.K.Y.X.ke.uw=null;e.K.Bd.ov.tC=null;e.K.Y.rO.oL=null;e.u.external.pc.oA.nL=null;e.u.Ra.dispose();this.Ia&&this.Ia.dispose();this.zI=this.I=this.Ia=this.ha=null;h.instance=
null}K0(f,b){e.u.external.Qe.rla.V().Q0(f,(a,c)=>{e.Fg(b)&&b(a,c)})}}h.id="flexmonster";l.Va=h})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){class h{constructor(b,a=null){this.type=b;this.data=a}}l.cd=h;class f extends v.Ah{constructor(){super();if(null!=f.instance)throw Error("Singleton");}static V(){null==f.instance&&(f.instance=new f);return f.instance}static dispose(){f.instance=null}static Mia(b){return f.b2(b)?b:""}static b2(b){return-1<f.types.indexOf(b)}N(b,a,c=0){b=f.Mia(b);f.b2(b)&&super.N(b,a,c)}sb(b,a){b=f.Mia(b);f.b2(b)&&super.sb(b,a)}static gJa(b){for(var a=0;a<f.types.length;a++){var c=f.types[a];
f.fJa(c,b[c])}}static fJa(b,a){if(a){"string"==typeof a&&(a=f.qda(a));var c=a;b!=f.sW&&b!=f.Jx&&b!=f.$o&&b!=f.qW&&(c=function(...d){e.Ce(function(){a.apply(null,d)},1)});f.V().N(b,c)}}static qda(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.hF="openingreportfile";f.Tx="loadingreportfile";f.Xn="reportfileloaded";f.HJ="reportfileerror";f.Kr="reportfilecancelled";f.ZE="loadingdata";f.QI="dataloaded";f.NI="dataerror";f.OI="datafilecancelled";
f.D6="datachanged";f.T7="loadingolapstructure";f.C8="olapstructureloaded";f.B8="olapstructureerror";f.OJ="unauthorizederror";f.XA="runningquery";f.Pk="querycomplete";f.vt="queryerror";f.$E="loadinglocalization";f.aF="localizationloaded";f.qJ="localizationerror";f.ii="reportcomplete";f.GJ="reportchange";f.W6="exportstart";f.oh="exportcomplete";f.F8="printstart";f.VA="printcomplete";f.L8="ready";f.k9="update";f.Jx="beforegriddraw";f.$o="aftergriddraw";f.qW="afterchartdraw";f.f6="chartclick";f.e6="cellclick";
f.jO="celldoubleclick";f.Qx="filteropen";f.aX="filterclose";f.VE="fieldslistopen";f.YI="fieldslistclose";f.v8="numberformatting";f.l6="conditionalformatting";f.sW="beforetoolbarcreated";f.M6="drillthroughopen";f.K6="drillthroughclose";f.types=[f.L8,f.hF,f.Tx,f.Xn,f.HJ,f.Kr,f.ZE,f.QI,f.NI,f.OI,f.D6,f.T7,f.C8,f.B8,f.OJ,f.XA,f.Pk,f.vt,f.$E,f.aF,f.qJ,f.ii,f.GJ,f.F8,f.VA,f.W6,f.oh,f.k9,f.Jx,f.$o,f.qW,f.f6,f.e6,f.jO,f.Qx,f.aX,f.VE,f.YI,f.v8,f.l6,f.sW,f.M6,f.K6];l.Ua=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.zo(f,b)}}l.Tb=h})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){}static V(){null==f.instance&&(f.instance=new f);return f.instance}static dispose(){f.instance=null}getData(){if(l.Ga.uc.Gp||l.Ga.uc.iq||l.Ga.uc.By){var b=e.u.sf.Fj.D0(l.C.F.pR);return this.GR(b)}e.Za(l.Ga.pa.J(l.Ga.pa.SZ),l.Ga.pa.J(l.Ga.pa.BD))}PIa(b,a){if(l.Ga.uc.Gp||l.Ga.uc.iq||l.Ga.uc.By){var c=e.u.Ra.V();if(void 0!=c.ga&&!c.ga.Gc){b=e.u.O.Lr.zb(b,c.O,!0);var d=e.u.local.aP.clone(c.ra);d.slice=b;d.select();c=new e.u.sf.Dla;c.reset();
c.ra=d;c.slice=b;c.load();b=this.GR(c);this.Nba(a,b);c.reset()}}else e.Za(l.Ga.pa.J(l.Ga.pa.SZ),l.Ga.pa.J(l.Ga.pa.BD))}Nba(b,a){a.PBa()?b({},a.OG.Qa()):b(a.Qa())}GR(b){var a=new h.Joa;if(void 0==b.slice)return a;a.slice=b.slice.Qa();a.gx={caption:l.C.F.zm,vAmount:b.slice.hd().length,formats:[]};var c=0,d=0;if(b.ri&&!b.nb){var g="on"==l.C.F.Bf||"rows"==l.C.F.Bf?b.Dd-1:b.Dd;var k="on"==l.C.F.Bf||"columns"==l.C.F.Bf?b.Cd-1:b.Cd;a.data=[];var m=[];var n=[];var p={};for(var t=0;t<b.Ba.length;t++){var r=
b.Ba[t];a.gx["v"+t+"Name"]=r.caption;var w=l.Va.V().Yh(r.A,r.aa);a.gx.formats.push(w);r=b.Ha(m,n,r);p["v"+t]=r}a.data.push(p);for(w=0;w<k;w++)if(m=b.Fn(w),!e.v(m)&&0!=m.length){p={};c=Math.max(c,m.length);n=[];t=b.yb;for(r=0;r<m.length;r++){var y=r;var A=t.ea(y);var C=m[r];C=A.ya(C);a.gx["r"+y+"Name"]=A.caption;var B=this.HS(C);p["r"+y]=B;p[`r${y}_full`]=C.qj}for(t=0;t<b.Ba.length;t++)r=b.Ba[t],r=b.Ha(m,n,r),p["v"+t]=r;a.data.push(p)}for(var I=0;I<g;I++)if(n=b.Nj(I),!e.v(n)&&0!=n.length){p={};m=[];
d=Math.max(d,n.length);t=b.Db;for(r=0;r<n.length;r++)B=r,A=t.ea(B),C=n[r],C=A.ya(C),a.gx["c"+B+"Name"]=A.caption,A=this.HS(C),p["c"+B]=A,p[`c${B}_full`]=C.qj;for(t=0;t<b.Ba.length;t++)r=b.Ba[t],r=b.Ha(m,n,r),p["v"+t]=r;a.data.push(p)}var L=!1,Y=u.Qf();if(0<b.Db.length&&0<b.yb.length)for(w=0;w<k;w++){m=b.Fn(w);c=Math.max(c,m.length);for(I=0;I<g;I++){if(1E4<u.Qf()-Y){L=!0;break}n=b.Nj(I);d=Math.max(d,n.length);p={};t=b.yb;for(r=0;r<m.length;r++)y=r,A=t.ea(y),C=m[r],C=A.ya(C),B=this.HS(C),p["r"+y]=B,
p[`r${y}_full`]=C.qj;t=b.Db;for(r=0;r<n.length;r++)B=r,A=t.ea(B),C=n[r],C=A.ya(C),A=this.HS(C),p["c"+B]=A,p[`c${y}_full`]=C.qj;for(t=0;t<b.Ba.length;t++)r=b.Ba[t],r=b.Ha(m,n,r),p["v"+t]=r;a.data.push(p)}if(L)break}}L?(a.data=[],a.gx={},a.OG=new h.Cla,a.OG.Cd=k,a.OG.Dd=g,a.OG.errorMessage=l.B.j.e8+". "+l.B.j.d8):(a.gx.rAmount=c,a.gx.cAmount=d);return a}HS(b){return b.level.type==e.u.i.ib.jb||b.level.type==e.u.i.ib.dc?b.fc:b.level.type==e.u.i.ib.Jc?b.fc:b.level.type==e.u.i.ib.$m?isNaN(parseFloat(b.caption))?
b.caption:parseFloat(b.caption):b.caption}}h.SO=f})(l.qD||(l.qD={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.slice={};this.gx={};this.data=[];this.OG=null}Qa(){var a={};a.meta=this.gx;a.data=this.data;return a}PBa(){return null!=this.OG}}h.Joa=f;class b{constructor(){this.errorMessage=null}Qa(){var a={};a.errorMessage=this.errorMessage;a.dataH=this.Cd;a.dataW=this.Dd;return a}}h.Cla=b})(l.qD||(l.qD={}))})(e.model||(e.model={}))})(q||(q={}));var la=q||(q={}),ma=la.model||(la.model={}),na=ma.B||(ma.B={});class oa{}oa.JW="Flexmonster Pivot Table";
na.j=oa;
(function(e){(function(l){(function(h){class f{load(b,a,c){this.Nb=a;this.ab=c;this.xhr=new XMLHttpRequest;this.xhr.open("GET",b,!0);this.xhr.onerror=d=>this.Sb(d);this.xhr.onreadystatechange=d=>this.bv(d);this.xhr.send()}bv(){null!=this.xhr&&4===this.xhr.readyState&&(200===this.xhr.status?this.oI():this.ab())}oI(){this.xhr.response&&null==this.xhr.response.error?null!=this.Nb&&this.wj(this.xhr.response):this.ab&&this.ab()}Sb(){null!=this.ab&&this.ab()}wj(b){try{var a=JSON.parse(b);this.Nb(h.ZO.zb(a))}catch(c){console.error(c),this.ab()}}close(){null!=
this.xhr&&(this.xhr.onprogress=null,this.xhr.onreadystatechange=null,this.xhr.abort())}}h.ina=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.mu=new h.ZO;this.mu.iE()}static V(){null==f.instance&&(f.instance=new f);return f.instance}static dispose(){null!==this.Az&&(this.Az.close(),this.Az=null);h.j.Hr=null;h.j.Vx=null;h.j.dB=null;h.j.eB=null;h.j.K8=null;f.instance.mu=null;f.instance.jT=null;f.instance.KH=null;f.instance=null}updateLabels(){h.j.k7=this.J("fieldsList/flatHierarchyBox");h.j.HA=this.J("fieldsList/values");h.j.GA=
this.J("fieldsList/addCalculatedMeasure");h.j.Hla=this.J("fieldsList/expandAll");h.j.j7=this.J("fieldsList/collapseAll");h.j.l7=this.J("fieldsList/formulasGroupName");h.j.rv=this.J("fieldsList/allFields");h.j.WE=this.J("fieldsList/rows");h.j.UE=this.J("fieldsList/columns");h.j.Gr=this.J("fieldsList/filters");h.j.Nx=this.J("fieldsList/dropField");h.j.Ox=this.J("fieldsList/title");h.j.n7=this.J("fieldsList/subtitle");h.j.CO=this.J("fieldsList/search");h.j.m7=this.J("fieldsList/searchClose");h.j.YI=
this.J("fieldsList/close");h.j.VE=this.J("fieldsList/open");h.j.Gla=this.J("fieldsList/actions/select");h.j.YW=this.J("fieldsList/actions/deselect");h.j.Fla=this.J("fieldsList/actions/expand");h.j.Ela=this.J("fieldsList/actions/collapse");h.j.g7=this.J("fieldsList/actions/move_to_rows");h.j.e7=this.J("fieldsList/actions/move_to_columns");h.j.f7=this.J("fieldsList/actions/move_to_filters");h.j.h7=this.J("fieldsList/actions/move_to_values");h.j.i7=this.J("fieldsList/actions/move_up");h.j.d7=this.J("fieldsList/actions/move_down");
h.j.ZW=this.J("fieldsList/actions/edit_calculated_value");h.j.XW=this.J("fieldsList/actions/aggregation");h.j.aJ=this.J("filter/all");h.j.gJ=this.J("filter/multipleItems");h.j.tv=this.J("filter/selectAll");h.j.lma=this.J("filter/selectAllResults");h.j.ema=this.J("filter/top");h.j.Wla=this.J("filter/bottom");h.j.o7=this.J("filter/ascSort");h.j.p7=this.J("filter/ascSortTooltip");h.j.r7=this.J("filter/descSort");h.j.s7=this.J("filter/descSortTooltip");h.j.bX=this.J("filter/search");h.j.Jla=this.J("filter/amountSelected");
h.j.Ila=this.J("filter/amountFound");h.j.mma=this.J("filter/sort");h.j.IA=this.J("filter/filterBy");h.j.KO=this.J("filter/labelsFilter");h.j.t7=this.J("filter/numbersFilter");h.j.v7=this.J("filter/valuesFilter");h.j.q7=this.J("filter/datesFilter");h.j.u7=this.J("filter/timeFilter");h.j.cJ=this.J("filter/equal");h.j.eJ=this.J("filter/notEqual");h.j.Tla=this.J("filter/before");h.j.Ula=this.J("filter/beforeEqual");h.j.Rla=this.J("filter/after");h.j.Sla=this.J("filter/afterEqual");h.j.bJ=this.J("filter/between");
h.j.dJ=this.J("filter/notBetween");h.j.$la=this.J("filter/last");h.j.Yla=this.J("filter/current");h.j.ama=this.J("filter/next");h.j.Vla=this.J("filter/begin");h.j.bma=this.J("filter/notBegin");h.j.Zla=this.J("filter/end");h.j.dma=this.J("filter/notEnd");h.j.Xla=this.J("filter/contain");h.j.cma=this.J("filter/notContain");h.j.GO=this.J("filter/greater");h.j.HO=this.J("filter/greaterEqual");h.j.IO=this.J("filter/less");h.j.JO=this.J("filter/lessEqual");h.j.tma=this.J("filter/seconds");h.j.rma=this.J("filter/minutes");
h.j.pma=this.J("filter/hours");h.j.nma=this.J("filter/days");h.j.uma=this.J("filter/secondsFull");h.j.sma=this.J("filter/minutesFull");h.j.qma=this.J("filter/hoursFull");h.j.oma=this.J("filter/daysFull");h.j.gma=this.J("filter/day");h.j.jma=this.J("filter/week");h.j.hma=this.J("filter/month");h.j.ima=this.J("filter/quarter");h.j.kma=this.J("filter/year");h.j.Kla=this.J("filter/clearDateFilter");h.j.Lla=this.J("filter/clearLabelFilter");h.j.Mla=this.J("filter/clearNumberFilter");h.j.Nla=this.J("filter/clearTimeFilter");
h.j.Ola=this.J("filter/clearValueFilter");h.j.fma=this.J("filter/noAvailableValues");h.j.FO=this.J("filter/condition");h.j.Px=this.J("filter/conditionValue");h.j.Pla=this.J("filter/conditionMeasure");h.j.Qla=this.J("filter/conditionTimeInterval");h.j.gla=this.J("drillThrough/title");h.j.fla=this.J("drillThrough/row");h.j.ela=this.J("drillThrough/column");h.j.hla=this.J("drillThrough/value");h.j.AW=this.J("calculatedView/title");h.j.b6=this.J("calculatedView/measureBox");h.j.zW=this.J("calculatedView/measureName");
h.j.iO=this.J("calculatedView/formula");h.j.a6=this.J("calculatedView/formulaPrompt");h.j.Z5=this.J("calculatedView/calculateIndividualValues");h.j.d6=this.J("calculatedView/removeValue");h.j.Tja=this.J("calculatedView/removeValueTitle");h.j.Sja=this.J("calculatedView/removeValueMessage");h.j.Rja=this.J("calculatedView/allValues");h.j.Qja=this.J("calculatedView/actions/add_to_formula");h.j.eLa=this.J("calculatedView/func/add");h.j.vLa=this.J("calculatedView/func/subtract");h.j.pLa=this.J("calculatedView/func/multiply");
h.j.gLa=this.J("calculatedView/func/divide");h.j.sLa=this.J("calculatedView/func/power");h.j.hLa=this.J("calculatedView/func/equal");h.j.lLa=this.J("calculatedView/func/less");h.j.mLa=this.J("calculatedView/func/less_equal");h.j.iLa=this.J("calculatedView/func/greater");h.j.jLa=this.J("calculatedView/func/greater_equal");h.j.uLa=this.J("calculatedView/func/strict_equal");h.j.qLa=this.J("calculatedView/func/not_equal");h.j.rLa=this.J("calculatedView/func/or");h.j.fLa=this.J("calculatedView/func/and");
h.j.kLa=this.J("calculatedView/func/if");h.j.dLa=this.J("calculatedView/func/abs");h.j.tLa=this.J("calculatedView/func/round");h.j.oLa=this.J("calculatedView/func/min");h.j.nLa=this.J("calculatedView/func/max");h.j.hX=this.J("grid/total");h.j.Jma=this.J("grid/totals");h.j.gX=this.J("grid/grandTotal");h.j.zl=this.J("grid/blankMember");h.j.IW=this.J("grid/dateNullCaption");h.j.Qn=this.J("grid/dateInvalidCaption");h.j.Ala=this.J("grid/reportInformation");h.j.Yja=this.J("charts/showLegend");h.j.Wja=this.J("charts/hideLegend");
h.j.Xja=this.J("charts/selectMeasures");h.j.g6=this.J("charts/noDataTitle");h.j.Zja=this.J("charts/noMeasuresTitle");h.j.$ja=this.J("charts/bigDataSetWarning");h.j.LP=this.J("tooltips/fieldList");h.j.f9=this.J("tooltips/selectAggregation");h.j.d9=this.J("tooltips/editCalculatedMeasure");h.j.dqa=this.J("tooltips/row");h.j.cqa=this.J("tooltips/headerResize");h.j.e9=this.J("tooltips/headerFit");h.j.bB=this.J("tooltips/filterIcon");h.j.VX=this.J("tooltips/filtered");h.j.KP=this.J("tooltips/expandIcon");
h.j.JP=this.J("tooltips/collapseIcon");h.j.aqa=this.J("tooltips/drillDown");h.j.bqa=this.J("tooltips/drillUp");h.j.gqa=this.J("tooltips/sortIcon");h.j.fqa=this.J("tooltips/sortedDescIcon");h.j.eqa=this.J("tooltips/sortedAscIcon");h.j.hqa=this.J("tooltips/unsortedIcon");h.j.$pa=this.J("tooltips/close");h.j.Z8=this.J("aggregations/sum/caption");h.j.LJ=this.J("aggregations/sum/totalCaption");h.j.Jpa=this.J("aggregations/sum/grandTotalCaption");h.j.s6=this.J("aggregations/count/caption");h.j.kO=this.J("aggregations/count/totalCaption");
h.j.Cka=this.J("aggregations/count/grandTotalCaption");h.j.ala=this.J("aggregations/distinctCount/caption");h.j.uO=this.J("aggregations/distinctCount/totalCaption");h.j.bla=this.J("aggregations/distinctCount/grandTotalCaption");h.j.kpa=this.J("aggregations/runningTotalsOfColumn/caption");h.j.vP=this.J("aggregations/runningTotalsOfColumn/totalCaption");h.j.lpa=this.J("aggregations/runningTotalsOfColumn/grandTotalCaption");h.j.mpa=this.J("aggregations/runningTotalsOfRow/caption");h.j.xP=this.J("aggregations/runningTotalsOfRow/totalCaption");
h.j.npa=this.J("aggregations/runningTotalsOfRow/grandTotalCaption");h.j.Xka=this.J("aggregations/differenceOfColumn/caption");h.j.SI=this.J("aggregations/differenceOfColumn/totalCaption");h.j.Yka=this.J("aggregations/differenceOfColumn/grandTotalCaption");h.j.Zka=this.J("aggregations/differenceOfRow/caption");h.j.TI=this.J("aggregations/differenceOfRow/totalCaption");h.j.$ka=this.J("aggregations/differenceOfRow/grandTotalCaption");h.j.Noa=this.J("aggregations/percentDifferenceOfColumn/caption");h.j.AJ=
this.J("aggregations/percentDifferenceOfColumn/totalCaption");h.j.Ooa=this.J("aggregations/percentDifferenceOfColumn/grandTotalCaption");h.j.Poa=this.J("aggregations/percentDifferenceOfRow/caption");h.j.BJ=this.J("aggregations/percentDifferenceOfRow/totalCaption");h.j.Qoa=this.J("aggregations/percentDifferenceOfRow/grandTotalCaption");h.j.N5=this.J("aggregations/average/caption");h.j.fO=this.J("aggregations/average/totalCaption");h.j.Eja=this.J("aggregations/average/grandTotalCaption");h.j.Lna=this.J("aggregations/median/caption");
h.j.rX=this.J("aggregations/median/totalCaption");h.j.Mna=this.J("aggregations/median/grandTotalCaption");h.j.Epa=this.J("aggregations/stdevp/caption");h.j.CP=this.J("aggregations/stdevp/totalCaption");h.j.Fpa=this.J("aggregations/stdevp/grandTotalCaption");h.j.Gpa=this.J("aggregations/stdevs/caption");h.j.DP=this.J("aggregations/stdevs/totalCaption");h.j.Hpa=this.J("aggregations/stdevs/grandTotalCaption");h.j.Yoa=this.J("aggregations/product/caption");h.j.uP=this.J("aggregations/product/totalCaption");
h.j.Zoa=this.J("aggregations/product/grandTotalCaption");h.j.moa=this.J("aggregations/min/caption");h.j.nP=this.J("aggregations/min/totalCaption");h.j.noa=this.J("aggregations/min/grandTotalCaption");h.j.qna=this.J("aggregations/max/caption");h.j.eP=this.J("aggregations/max/totalCaption");h.j.rna=this.J("aggregations/max/grandTotalCaption");h.j.Koa=this.J("aggregations/percent/caption");h.j.FJ=this.J("aggregations/percent/totalCaption");h.j.Roa=this.J("aggregations/percent/grandTotalCaption");h.j.Loa=
this.J("aggregations/percentOfColumn/caption");h.j.zJ=this.J("aggregations/percentOfColumn/totalCaption");h.j.Moa=this.J("aggregations/percentOfColumn/grandTotalCaption");h.j.Woa=this.J("aggregations/percentOfRow/caption");h.j.EJ=this.J("aggregations/percentOfRow/totalCaption");h.j.Xoa=this.J("aggregations/percentOfRow/grandTotalCaption");h.j.Soa=this.J("aggregations/percentOfParentColumnTotal/caption");h.j.CJ=this.J("aggregations/percentOfParentColumnTotal/totalCaption");h.j.Toa=this.J("aggregations/percentOfParentColumnTotal/grandTotalCaption");
h.j.Uoa=this.J("aggregations/percentOfParentRowTotal/caption");h.j.DJ=this.J("aggregations/percentOfParentRowTotal/totalCaption");h.j.Voa=this.J("aggregations/percentOfParentRowTotal/grandTotalCaption");h.j.Pma=this.J("aggregations/index/caption");h.j.mJ=this.J("aggregations/index/totalCaption");h.j.Qma=this.J("aggregations/index/grandTotalCaption");h.j.xoa=this.J("aggregations/none/caption");h.j.Aa=this.J("messages/error");h.j.o9=this.J("messages/warning");h.j.XO=this.J("messages/limitation");h.j.Kja=
this.J("messages/browse");h.j.Ym=this.J("messages/confirmation");h.j.Vna=this.J("messages/api/incorrectUrl");h.j.Una=this.J("messages/api/errorZeroStatus");h.j.Pna=this.J("messages/api/error404Status");h.j.Ona=this.J("messages/api/error400Status");h.j.Qna=this.J("messages/api/error500Status");h.j.c8=this.J("messages/api/selectRequestError");h.j.Rna=this.J("messages/api/selectDrillThroughError");h.j.cNa=this.J("messages/api/clientOutdated");h.j.Tna=this.J("messages/api/serverOutdated");h.j.Sna=this.J("messages/api/fieldsRequestError");
h.j.b8=this.J("messages/api/membersRequestError");h.j.sX=this.J("messages/api/noGridChartsMode");h.j.dF=this.J("messages/loading");h.j.bg=this.J("messages/loadingData");h.j.xX=this.J("messages/loadingMapping");h.j.qt=this.J("messages/waiting");h.j.yX=this.J("messages/progress");h.j.eF=this.J("messages/progressKnown");h.j.jm=this.J("messages/progressUnknown");h.j.goa=this.J("messages/sortingMembers");h.j.gP=this.J("messages/analyzing");h.j.hP=this.J("messages/analyzingProgress");h.j.a8=this.J("messages/analyzingRecords");
h.j.Nna=this.J("messages/analyzingRecordsWithAmount");h.j.n8=this.J("messages/saving");h.j.tJ=this.J("messages/loadingDimensions");h.j.vX=this.J("messages/loadingHierarchies");h.j.kP=this.J("messages/loadingMeasures");h.j.k8=this.J("messages/loadingKPIs");h.j.Un=this.J("messages/loadingMembers");h.j.wX=this.J("messages/loadingLevels");h.j.l8=this.J("messages/loadingProperties");h.j.Ux=this.J("messages/exportProgress");h.j.pt=this.J("messages/exportError");h.j.fF=this.J("messages/pleaseWait");h.j.m8=
this.J("messages/pagesWereGenerated");h.j.o8=this.J("messages/uploading");h.j.iP=this.J("messages/cantSaveFile");h.j.tX=this.J("messages/cantSaveFileNoDetails");h.j.eoa=this.J("messages/saveReportToFile");h.j.doa=this.J("messages/saveReportForSharing");h.j.g8=this.J("messages/cantSaveReportForSharing");h.j.f8=this.J("messages/cantLoadSharedReport");h.j.cF=this.J("messages/invalidDataSource");h.j.Xna=this.J("messages/dataStreamError");h.j.uJ=this.J("messages/unableToOpenFile");h.j.jP=this.J("messages/errorTextMessage");
h.j.boa=this.J("messages/inappropriateFileFormat");h.j.sJ=this.J("messages/invalidJSONdata");h.j.joa=this.J("messages/wrongFormulaEmpty");h.j.p8=this.J("messages/wrongFormulaFormat");h.j.loa=this.J("messages/wrongUniqueName");h.j.ioa=this.J("messages/wrongFormulaAggregation");h.j.koa=this.J("messages/wrongFormulaRecursive");h.j.Zna=this.J("messages/excelCsvChartsExportError");h.j.xv=this.J("messages/noDataAvailable");h.j.uX=this.J("messages/dataWasUpdated");h.j.Wna=this.J("messages/cantConnectToAccelerator");
h.j.coa=this.J("messages/ocsvIncompatible");h.j.lP=this.J("messages/unknownError");h.j.i8=this.J("messages/invalidReportFormat");h.j.j8=this.J("messages/invalidReportFormat2");h.j.h8=this.J("messages/csvHeaderParsingError");h.j.hoa=this.J("messages/tooManyColumnsInClassicMode");h.j.d8=this.J("messages/cantExpand");h.j.e8=this.J("messages/cantExpandTitle");h.j.foa=this.J("messages/selectFile");h.j.aoa=this.J("messages/flatTableIsNotSupported");h.j.$na=this.J("messages/exportFontLoadingError");h.j.Yna=
this.J("messages/elastic/errorConnection");h.j.Sx=this.J("kpis/kpis");h.j.O7=this.J("kpis/value");h.j.K7=this.J("kpis/goal");h.j.N7=this.J("kpis/trend");h.j.M7=this.J("kpis/status");h.j.uW=this.J("buttons/ok");h.j.T5=this.J("buttons/copy");h.j.Kx=this.J("buttons/apply");h.j.wl=this.J("buttons/cancel");h.j.V5=this.J("buttons/save");h.j.Lja=this.J("buttons/select");h.j.IE=this.J("buttons/yes");h.j.U5=this.J("buttons/no");h.j.n6=this.J("contextMenu/clearSorting");h.j.eka=this.J("contextMenu/collapse");
h.j.o6=this.J("contextMenu/drillThrough");h.j.jka=this.J("contextMenu/expand");h.j.hka=this.J("contextMenu/drillUp");h.j.gka=this.J("contextMenu/drillDown");h.j.q6=this.J("contextMenu/openFilter");h.j.kka=this.J("contextMenu/filterBy");h.j.r6=this.J("contextMenu/removeField");h.j.tka=this.J("contextMenu/removeMeasure");h.j.wka=this.J("contextMenu/sortColumnAsc");h.j.xka=this.J("contextMenu/sortColumnDesc");h.j.yka=this.J("contextMenu/sortRowAsc");h.j.zka=this.J("contextMenu/sortRowDesc");h.j.m6=this.J("contextMenu/aggregation");
h.j.ska=this.J("contextMenu/properties");h.j.ika=this.J("contextMenu/editFormula");h.j.qka=this.J("contextMenu/moveToRows");h.j.oka=this.J("contextMenu/moveToColumns");h.j.pka=this.J("contextMenu/moveToReportFilters");h.j.rka=this.J("contextMenu/numberFormatting");h.j.fka=this.J("contextMenu/conditionalFormatting");h.j.uka=this.J("contextMenu/showProperty");h.j.mka=this.J("contextMenu/hideProperty");h.j.lka=this.J("contextMenu/groupMembers");h.j.Aka=this.J("contextMenu/ungroupMembers");h.j.vka=this.J("contextMenu/showSubtotals");
h.j.nka=this.J("contextMenu/hideSubtotals");h.j.Dl=this.J("date/year");h.j.ut=this.J("date/quarter");h.j.$g=this.J("date/month");h.j.$m=this.J("date/day");h.j.K8=[this.J("quarters/q1"),this.J("quarters/q2"),this.J("quarters/q3"),this.J("quarters/q4")];h.j.Hr=[this.J("months/january"),this.J("months/february"),this.J("months/march"),this.J("months/april"),this.J("months/may"),this.J("months/june"),this.J("months/july"),this.J("months/august"),this.J("months/september"),this.J("months/october"),this.J("months/november"),
this.J("months/december")];h.j.Vx=[this.J("monthsShort/january"),this.J("monthsShort/february"),this.J("monthsShort/march"),this.J("monthsShort/april"),this.J("monthsShort/may"),this.J("monthsShort/june"),this.J("monthsShort/july"),this.J("monthsShort/august"),this.J("monthsShort/september"),this.J("monthsShort/october"),this.J("monthsShort/november"),this.J("monthsShort/december")];h.j.dB=[this.J("weekdays/first"),this.J("weekdays/second"),this.J("weekdays/third"),this.J("weekdays/fourth"),this.J("weekdays/fifth"),
this.J("weekdays/sixth"),this.J("weekdays/seventh")];h.j.eB=[this.J("weekdaysShort/first"),this.J("weekdaysShort/second"),this.J("weekdaysShort/third"),this.J("weekdaysShort/fourth"),this.J("weekdaysShort/fifth"),this.J("weekdaysShort/sixth"),this.J("weekdaysShort/seventh")];u.zh.bJa(h.j.dB,h.j.eB);u.zh.nJa(h.j.Hr,h.j.Vx)}J(b){if(!e.v(this.KH)){var a=this.KH.J(b);if(!e.v(a))return a}return e.v(this.jT)||(a=this.jT.J(b),e.v(a))?this.mu.J(b):a}reset(){this.KH=null;this.updateLabels()}load(b,a,c=!1){"string"!==
typeof b||e.ia(b)?(b instanceof Object?this.Wfa(h.ZO.zb(b),c):this.reset(),null!=a&&a(!0)):(null!==f.Az&&(f.Az.close(),f.Az=null),f.Az=new h.ina,f.Az.load(u.ey.sH(b,!0),d=>{this.Wfa(d,c);null!=a&&a(!0)},()=>{null!=a&&a(!1)}))}Wfa(b,a=!1){a?this.jT=b:this.KH=b;this.updateLabels()}Zca(){var b=new h.ZO;b.iE();b.merge(this.jT);this.KH&&b.merge(this.KH);return b.Qa().toolbar}}f.Az=null;h.NA=f})(l.B||(l.B={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.labels={}}J(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}cb(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}iE(){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.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.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.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.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.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.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["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"}merge(b){e.v(b)||(this.Ifa(b.labels,this.labels),this.validate())}Qa(){return this.labels}static zb(b){var a=new f;a.labels=b;return a}Ifa(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.Ifa(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.ZO=f})(l.B||(l.B={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{}f.Xn="load";f.IJ="loading_report";f.Av="fail";f.Kr="cancel";h.Eh=f;class b extends v.fa{constructor(c){super(f.Xn);this.hb=c}}h.P8=b;class a extends v.fa{constructor(c,d=""){super(f.Av);this.errorMessage="";this.message=c;this.errorMessage=d}}h.zP=a})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends v.Ah{constructor(){super();this.JSON="json";this.ba="xml";this.Dwa="report.";this.vV=null}open(){this.hr=new h.nna;this.hr.N(h.Eh.IJ,()=>this.y3());this.hr.N(h.Eh.Xn,b=>this.MD(b));this.hr.N(h.Eh.Av,b=>this.bN(b));this.hr.N(h.Eh.Kr,()=>this.aN());this.hr.load()}load(b,a){e.Ca(!0,l.B.j.dF);this.jv=new h.wqa;this.jv.N(h.Eh.Xn,c=>this.MD(c));this.jv.N(h.Eh.Av,c=>this.bN(c));this.jv.load(u.ey.Tsa(b),a)}cancel(){this.hr&&(this.hr.Yd(h.Eh.Xn),this.hr.Yd(h.Eh.Av),
this.hr=null);this.jv&&(this.jv.Yd(h.Eh.Xn),this.jv.Yd(h.Eh.Av),this.jv=null);this.Yd(h.Eh.Xn);this.Yd(h.Eh.Av);this.Yd(h.Eh.IJ);this.Yd(h.Eh.Kr)}MD(b){this.Fa(new h.P8(b.hb))}bN(b){e.Za(b.message+b.errorMessage,l.B.j.Aa,e.xb.Aa);this.$a(h.Eh.Av)}y3(){this.$a(h.Eh.IJ)}aN(){this.$a(h.Eh.Kr)}save(b,a=null,c,d,g=!1,k){this.vV=c;c=!1;let m="string"==typeof b?b:null,n=d,p=this.JSON;d=g;let t=null;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));if(null==m||""==m)m=this.Dwa,m=p==this.ba?m+this.ba:m+this.JSON;k.ma.Da!=e.u.i.qa.Sh&&k.ma.Da!=e.u.i.qa.Dq||!(k.ma instanceof e.u.local.$O&&k.ma.Td||k.ma instanceof e.u.local.csv.gF&&k.ma.sk||d)||k.options.U("gridType")==e.K.Y.te.Bh||(b=new e.u.local.json.TO,k.ma=b,c=!0);a=null==a?h.fp.DO:a.toLowerCase();switch(a){case h.fp.MX:c?
(new e.u.local.json.mX).getData(r=>{k.ma.data=r;this.xV(n,m,k,p,t)}):this.xV(n,m,k,p,t);break;case h.fp.UA:c?(new e.u.local.json.mX).getData(r=>{k.ma.data=r;this.yC(k.Qa())}):this.yC(k.Qa());break;default:c?(new e.u.local.json.mX).getData(r=>{k.ma.data=r;this.sN(m,k,p)}):this.sN(m,k,p)}}yC(b=null,a=null){null!==this.vV&&this.vV(b,a)}Gba(b,a,c=!1){switch(b){case this.JSON:b=JSON.stringify(a.Qa(),null,4);break;case this.ba:b=z.ba.Ic(a.Yo(),!0);break;default:b=JSON.stringify(a.Qa(),null,4)}c&&(b=encodeURIComponent(b));
return b}sN(b,a,c){const d=[this.Gba(c,a)];try{const g=this;e.Za(l.B.j.eoa,l.B.j.Ym,e.xb.Ym,[l.B.j.V5,l.B.j.wl],[function(){z.mha(new Blob(d,{type:"text/js;charset=utf-8"}),b);g.yC({report:a.Qa()})},function(){g.yC(null,{message:l.B.j.tX})}])}catch(g){e.Za(l.B.j.tX,l.B.j.Aa,e.xb.Aa),this.yC(null,{message:l.B.j.tX})}}xV(b,a,c,d,g){e.ia(b)&&e.Za("Report cannot be saved. Save report url is empty.",l.B.j.o9,e.xb.Aa);const k=new z.vqa;k.data.name=a;k.data.report=this.Gba(d,c,!0);k.data.type=d;a=new z.ek;
a.data=k.toString();a.contentType=z.yA.yja;a.rr=z.xt.zv;a.N(v.fa.Oc,m=>this.fGa(m,c.Qa()));a.N(v.fa.Aa,m=>this.Sb(m));a.Qh(g);this.l5=a;a.load(b);e.Ca(!0,l.B.j.o8)}static Gga(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==v.fa.Aa&&(c.message=l.B.j.iP);b.type!=v.fa.Aa&&null!=a&&(c.report=a);return c}fGa(b,a){e.Ca(!1);this.yC(f.Gga(b,a))}Sb(b){e.Ca(!1);b=f.Gga(b);let a=
b.hasOwnProperty("response")?l.Tb.validate(b.response):"";a=700<a.length?a.substr(0,700):a;e.Za(e.P.bind(b.message,a),l.B.j.Aa,e.xb.Aa);this.yC(null,b)}dispose(){this.vV=null;this.hr&&this.hr.dispose();this.jv&&this.jv.dispose();this.l5&&this.l5.dispose();this.l5=this.jv=this.hr=null}}h.qpa=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.lA=!1;this.ma=new e.u.O.FA;this.slice=new h.pp;this.options=new l.C.Eq;this.De=[];this.Xc=[];this.Dm=[];this.Ax=new h.Gv;this.labels={};this.Ge=null;this.mL=this.version=""}static zb(a){if(null==a)return null;a=f.fm(a);var c=new f;c.ma=e.u.O.kt.zb(a.connectionInfo?a.connectionInfo:a);c.options=l.C.Eq.zb(a.options?a.options:a);c.slice=h.pp.zb(a.slice?a.slice:a,c.ma,c.options.U("gridType")==e.K.Y.te.Bh);null!=a.formats&&a.formats.length&&
(c.De=a.formats);null!=a.conditions&&a.conditions.length&&(c.Xc=a.conditions);null!=a.customFields&&(c.Dm=a.customFields);c.Ax=h.Gv.zb(a.tableSizes);null!=a.localization&&(c.Ge=a.localization);null!=c.Ge&&null!=c.Ge.toolbar&&(null!=c.Ge.toolbar.charts_bar_stack&&(c.Ge.toolbar.charts_stacked_column=c.Ge.toolbar.charts_bar_stack,delete c.Ge.toolbar.charts_bar_stack),null!=c.Ge.toolbar.charts_bar_line&&(c.Ge.toolbar.charts_column_line=c.Ge.toolbar.charts_bar_line,delete c.Ge.toolbar.charts_bar_line),
null!=c.Ge.toolbar.charts_bar&&(c.Ge.toolbar.charts_column=c.Ge.toolbar.charts_bar,delete c.Ge.toolbar.charts_bar));null!=a.version&&0<a.version.length&&(c.version=a.version);null!=a.creationDate&&0<a.creationDate.length&&(c.mL=a.creationDate);return c}static wk(a){var c=new f;if(null==a)return c;c.ma=e.u.O.kt.wk(a);c.slice=h.pp.wk(a);c.options=l.C.Eq.wk(a);c.De=f.jya(a.find("format"));c.Xc=f.yva(a.find("conditions condition"));c.Ax=h.Gv.wk(a);c.Dm=f.owa(a.find("customFields").children());c.labels=
f.DCa(a.find("labels"));c.Ge=f.$Ca(a.find("params"));return c}static owa(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 jya(a){for(var c=[],d=0;d<a.length;d++){var g=f.gya(a[d]);c.push(g)}return c}static gya(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 DCa(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 yva(a){for(var c=[],d=0;d<a.length;d++){var g=f.xva(a[d]);c.push(g)}return c}static xva(a){var c={};
c.id=e.P.NL();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 $Ca(a){if(0!=a.find("param[name=localization]").length)return a.find("param[name=localization]").text()}hva(){for(var a=z.ba.create("<labels/>"),c=e.u.Ra.V().O,d,g=z.ba.create("<hierarchies/>"),k=c.wc(),m=0;m<k.length;m++){var n=k.ea(m);n.p1&&(d=z.ba.create("<label/>").text(n.label),d.attr("name",n.A),g.append(d))}0==g.nb()&&a.append(g);g=z.ba.create("<measures/>");c=c.Ba;for(m=0;m<c.length;m++)k=c.ea(m),
k.p1&&(d=z.ba.create("<label/>").text(k.label),d.attr("name",k.A),g.append(d));0==g.nb()&&a.append(g);return a}Pua(){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.Vh(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.Sc.Eg(d.format)){var k=z.ba.create("<trueStyle/>");k.append(z.ba.Vh(JSON.stringify(d.format)));g.append(k)}a.append(g)}return a}bva(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.Vh(a.thousandsSeparator)));a.hasOwnProperty("decimalSeparator")&&c.append(z.ba.create("<param/>").attr("name","decimalSeparator").append(z.ba.Vh(a.decimalSeparator)));
a.hasOwnProperty("currencySymbol")&&c.append(z.ba.create("<param/>").attr("name","currencySymbol").append(z.ba.Vh(a.currencySymbol)));a.hasOwnProperty("nullValue")&&c.append(z.ba.create("<param/>").attr("name","nullValue").append(z.ba.Vh(a.nullValue)));a.hasOwnProperty("infinityValue")&&c.append(z.ba.create("<param/>").attr("name","infinityValue").append(z.ba.Vh(a.infinityValue)));a.hasOwnProperty("divideByZeroValue")&&c.append(z.ba.create("<param/>").attr("name","divideByZeroValue").append(z.ba.Vh(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}Yo(){var a=z.ba.create("<config/>"),c=this.ma.Yo(this.lA);0==c.nb()&&a.append(c);c=this.slice.Yo(this.lA);0==c.nb()&&a.append(c);c=this.Ax.Yo();0==c.nb()&&a.append(c);c=this.hva();0==c.nb()&&a.append(c);c=this.options.Yo();"string"==typeof this.Ge&&c.append(z.ba.create("<param/>").attr("name",
"localization").append(z.ba.Vh(this.Ge)));a.append(c);c=this.Pua();0==c.nb()&&a.append(c);if(null!=this.De){c=!l.C.F.uV&&20<this.De.length;for(var d=0;d<this.De.length;d++){var g=this.De[d];(""==g.name||this.slice.En.Hb(g.name)&&(!c||this.slice.En.getItem(g.name)))&&a.append(this.bva(g))}}return a}Qa(){const a={};var c=this.ma.Qa(this.lA);u.Sc.Eg(c)||(a.dataSource=c);c=this.slice.Qa(this.lA,this.ma.mapping);u.Sc.Eg(c)||(a.slice=c);c=this.options.Qa();u.Sc.Eg(c)||(a.options=c);c=this.Oua();0<c.length&&
(a.conditions=c);if(null!=this.De&&0!=this.De.length){c=[];const d=!l.C.F.uV&&20<this.De.length;for(let g=0;g<this.De.length;g++){const k=this.De[g];(""==k.name||this.slice.En.Hb(k.name)&&(!d||this.slice.En.getItem(k.name)))&&c.push(k)}a.formats=c}c=this.Ax.Qa(this.slice);u.Sc.Eg(c)||(a.tableSizes=c);null!=this.Dm&&0!=this.Dm.length&&(a.customFields=this.Dm);null!=this.Ge&&""!=this.Ge&&(a.localization=this.Ge);null!=this.version&&0<this.version.length&&(a.version=this.version);null!=this.mL&&0<this.mL.length&&
(a.creationDate=this.mL);return a}Oua(){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.Sc.Eg(d.format)&&
(g.format=d.format);a.push(g)}return a}static fm(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.kt.fm(a.connectionInfo?
a.connectionInfo:a);c.slice=h.pp.fm(a.slice?a.slice:a);c.options=l.C.Eq.fm(a.options?a.options:a);c.tableSizes=h.Gv.fm(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.fm(a);var c=f.fm(this),d;for(d in a)a.hasOwnProperty(d)&&("connectionInfo"==d?e.u.O.kt.zb(a.connectionInfo).nb||(c[d]=a[d]):"options"==d?(this.options.FD(a[d]),c[d]=l.C.Eq.fm(this.options)):c[d]=a[d]);return f.zb(c)}get nb(){return e.v(this.ma)||this.ma.nb}}h.Yx=f;class b{}b.Dm=[];h.MI=b})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends v.Ah{Mba(b){b?this.Fa(new h.P8(b)):this.Fa(new h.zP(l.B.j.i8))}rga(b){try{var a=-1;if(-1<(a=b.indexOf("</config>"))){var c=z.ba.create(b.substring(0,a+9));return c?h.Yx.wk(c):null}a=b.indexOf("/**----**");return JSON.parse(-1<a?b.substring(0,a):b)}catch(d){return console.error(d),null}}gT(b){var a=new e.Er(new ArrayBuffer(0),0,e.Er.HI);a.PKa(b);return a.byteLength}}h.Q8=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.qb.NONE;this.zea=!1;this.fg=[];this.Sk=[];this.wB=[];this.g$=this.DF=this.MF=!1;this.Cc=b}clear(){this.eC();this.xua()}eC(){this.type=e.u.i.qb.NONE;this.query=this.measure=null;this.wB=[]}xua(){this.fg=[];this.Sk=[];this.DF=this.MF=!1;this.IB=[];this.OQ=!1}Pj(b=!1){if(b)return this.MF&&(this.Sk=[],0<this.fg.length&&(this.Sk=this.iba(this.fg)),this.MF=!1),this.Sk;this.DF&&(this.fg=[],0<this.Sk.length&&(this.fg=this.iba(this.Sk)),
this.DF=!1);return this.fg}mJa(b,a=!1){var c=this.Cc.ta.ea(1);c=this.Cc.Vu(c.A);a?(this.V1(b,c)&&(b=[]),this.DF=!0,this.Sk=b,this.fg=[]):(this.V1(b,c)&&(b=[]),this.MF=!0,this.fg=b,this.Sk=[])}get O1(){return 0<this.Sk.length}get wh(){return this.wi||this.xi||this.mz||this.Qw||this.tM||this.tT}get wi(){return 0<this.fg.length||0<this.Sk.length}get oz(){return this.xi||this.mz||this.Qw||this.tM||this.tT}get xi(){return this.type===e.u.i.qb.$n}get mz(){return this.type===e.u.i.qb.Sa}get Qw(){return this.type===
e.u.i.qb.Ok}get tM(){return this.type===e.u.i.qb.jb}get tT(){return this.type===e.u.i.qb.dc}get I1(){return this.g$}set I1(b){this.g$=b}clone(){var b=new f(this.Cc);b.type=this.type;b.measure=this.measure;b.query=this.query&&this.query.clone?this.query.clone():u.Sc.nj(this.query);e.v(this.fg)||(b.fg=this.fg.slice());b.MF=this.MF;e.v(this.Sk)||(b.Sk=this.Sk.slice());b.DF=this.DF;e.v(this.IB)||(b.IB=this.IB.slice());b.OQ=this.OQ;return b}Qa(){var b={};this.wi&&(this.I1?this.O1?b.exclude=this.Cc.vs(this.Pj(!0)):
b.members=this.Cc.vs(this.Pj()):this.Pj().length<this.Cc.Ri/2?b.members=this.Cc.vs(this.Pj()):b.exclude=this.Cc.vs(this.Pj(!0)));!e.v(this.measure)&&this.xi&&(b.measure=this.measure.Qa());!e.v(this.query)&&this.oz&&(b.query=this.query.Qa());0<this.wB.length&&this.oz&&(b.include=this.Cc.vs(this.wB));return b}static zb(b,a,c=!1){if(e.v(b))return null;f.Ita(b);var d=new f(a);d.I1=c;d.type=f.Jwa(b,a);d.type==e.u.i.qb.$n?f.tHa(b,d):d.type==e.u.i.qb.Sa?f.UGa(b,d,a.getTimezoneOffset()):d.type==e.u.i.qb.Ok?
f.fHa(b,d):d.type==e.u.i.qb.jb?f.mHa(b,d):d.type==e.u.i.qb.dc&&f.rHa(b,d);f.lHa(b,d,a);!e.v(b.include)&&d.oz&&(d.wB=f.M3(b.include,a));return d}static Ita(b){if("top"==b.type||"bottom"==b.type)b.query={[b.type]:b.quantity},b.type=e.u.i.qb.$n,delete b.quantity;!e.v(b.members)&&b.negation&&(b.exclude=b.members,delete b.members,delete b.negation)}static Jwa(b,a){return e.v(b.type)?e.v(b.query)?e.u.i.qb.NONE:e.v(b.measure)?f.WS(a):e.u.i.qb.$n:e.u.i.qb.validate(b.type)}static M3(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.ye.Ds(g);g=a.iz(g);-1<g&&c.push(g)}return c}static WS(b){if(e.u.Ra.V().ga.Gc&&e.u.Ra.V().ga.Da!==e.u.i.qa.Tc&&e.u.Ra.V().ga.Da!==e.u.i.qa.API&&e.u.Ra.V().ga.Da!==e.u.i.qa.ag)return e.u.i.qb.NONE;if(e.u.Ra.V().ga.Da===e.u.i.qa.API||e.u.Ra.V().ga.Da===e.u.i.qa.ag)return b.type===e.u.i.Lc.Cq?e.u.i.qb.jb:b.type===e.u.i.Lc.Sa?e.u.i.qb.Sa:e.u.i.qb.Ok;var a=b.ta.ea(1).type;
return b.type===e.u.i.Lc.Sa?2!=b.ta.length||a!==e.u.i.ib.Dl&&a!==e.u.i.ib.$g&&a!==e.u.i.ib.fn?e.u.i.qb.Sa:e.u.i.qb.NONE:a===e.u.i.ib.$c||e.u.Ra.V().ga.Gc?e.u.i.qb.Ok:a===e.u.i.ib.jb?e.u.i.qb.jb:a===e.u.i.ib.dc?e.u.i.qb.dc:e.u.i.qb.NONE}static lHa(b,a,c){const d=b.members||b.exclude;if(!e.v(d)){var g=[],k=[];b=e.v(b.members);for(let m=0;m<d.length;m++){if("number"==typeof d[m]&&-1<d[m]){g.push(d[m]);continue}let n="string"===typeof d[m]?d[m]:d[m].A;n=e.u.ye.Ds(n);k.push(n);const p=c.bha(n);-1<p&&!g.some(t=>
t==p)?g.push(p):c.Wd&&(c.Wd=!1,console.warn("Error in predefined filter or members have not been loaded yet: "+n))}e.u.Ra.V().ga.Gc&&(a.YH=b,a.cm=k.length>g.length?k:[]);a.mJa(g,b)}}static tHa(b,a){a.query=h.im.zb(b.query,e.u.i.qb.$n);a.measure="string"==typeof b.measure?new h.ah(e.u.ye.Pg(b.measure)):h.ah.zb(b.measure);if(e.v(a.query)||e.v(a.measure))a.type=e.u.i.qb.NONE,a.measure=null}static UGa(b,a,c){a.query=h.im.zb(b.query,e.u.i.qb.Sa,c);e.v(a.query)&&(a.type=e.u.i.qb.NONE)}static fHa(b,a){a.query=
h.im.zb(b.query,e.u.i.qb.Ok);e.v(a.query)&&(a.type=e.u.i.qb.NONE)}static mHa(b,a){a.query=h.im.zb(b.query,e.u.i.qb.jb);e.v(a.query)&&(a.type=e.u.i.qb.NONE)}static rHa(b,a){a.query=h.im.zb(b.query,e.u.i.qb.dc);e.v(a.query)&&(a.type=e.u.i.qb.NONE)}V1(b,a){return 0==a.length?!1:a.reduce((c,d)=>{if(b.some(k=>k==d))return c;const g=this.Cc.ya(d).children;return c&&this.V1(b,g)},!0)}iba(b){const a=new e.XE;for(var c=1;c<this.Cc.Qm;c++)a.add(c);for(c=0;c<b.length;c++){const d=this.Cc.ya(b[c]);a.delete(d.ordinal);
this.nV(a,d);this.Xga(a,d.parent)}this.Haa(a,this.Cc.Ad);this.Cc.As&&this.YHa(a);return a.Nc()}YHa(b){for(let a=b.size-1;0<=a;a--){const c=this.Cc.ya(b[a]);c.parent||b.delete(c.ordinal)}}Haa(b,a){for(let c=0;c<a.children.length;c++){const d=this.Cc.ya(a.children[c]);0<d.children.length&&(b.has(d.ordinal)?b.has(d.children[0])&&this.nV(b,d):this.Haa(b,d))}}nV(b,a){if(a){a=a.children;for(var c=0;c<a.length;c++)b.delete(a[c]),this.nV(b,this.Cc.ya(a[c]))}}Xga(b,a){a&&!a.Zb&&(b.delete(a.ordinal),a.parent&&
this.Xga(b,a.parent))}Nxa(){var b=null;this.mz&&(b=this.Kxa(this.query));this.Qw&&(b=this.Qxa(this.query));this.tM&&(b=this.Oxa(this.query));this.tT&&(b=this.Rxa(this.query));if(!e.v(b)&&0<this.wB.length)for(var a=0;a<this.wB.length;a++)b.add(this.wB[a]);if(!e.v(b)&&0<this.Sk.length)for(a=0;a<this.Sk.length;a++)b.delete(this.Sk[a]),this.nV(b,this.Cc.ya(this.Sk[a]));return b.Nc()}Kxa(b){b=b.LR(this.Cc.getTimezoneOffset());var a=new e.XE,c=0<this.fg.length,d=2<this.Cc.ta.length,g=c?this.fg:null;c&&
d&&(g=this.wda(g));for(var k=c?g.length:this.Cc.Ri,m=0;m<k;m++){var n=c?g[m]:m;if(d){var p=this.Cc.ya(n);if(p.level.type===e.u.i.ib.Dl||p.level.type===e.u.i.ib.ut||p.level.type===e.u.i.ib.$g)continue}b.va===e.u.i.Bb.On?this.A2(this.Cc.XC(n).toLowerCase(),b)&&a.add(n):this.pDa(this.Cc.cM(n),b)&&a.add(n)}return a}Qxa(b){var a=new e.XE,c=this.Cc.oc?this.Cc.oc.wb:1,d=0<this.fg.length,g=2<this.Cc.ta.length,k=d?this.fg:null;d&&g&&(k=this.wda(k));for(var m=d?k.length:this.Cc.Ri,n=0;n<m;n++){var p=d?k[n]:
n;1<c&&g&&this.Cc.ya(d?k[n]:n).level.wb<c||this.A2(this.Cc.XC(p).toLowerCase(),b)&&a.add(p)}return a}Oxa(b){for(var a=new e.XE,c=0<this.fg.length,d=c?this.fg:null,g=c?d.length:this.Cc.Ri,k=0;k<g;k++){var m=c?d[k]:k;this.wU(this.Cc.cM(m),b)&&a.add(m)}return a}Rxa(b){b=b.Cva();for(var a=new e.XE,c=0<this.fg.length,d=c?this.fg:null,g=c?d.length:this.Cc.Ri,k=0;k<g;k++){var m=c?d[k]:k;b.va==e.u.i.Bb.On?this.A2(this.Cc.XC(m).toLowerCase(),b)&&a.add(m):this.wU(this.Cc.cM(m),b)&&a.add(m)}return a}A2(b,a){if(e.v(a.value))return!1;
if(a.va===e.u.i.Bb.EQUAL)return b===a.value.toLowerCase();if(a.va===e.u.i.Bb.cg)return b!==a.value.toLowerCase();if(a.va===e.u.i.Bb.HE)return 0==b.indexOf(a.value.toLowerCase());if(a.va===e.u.i.Bb.PA)return 0!=b.indexOf(a.value.toLowerCase());if(a.va===e.u.i.Bb.CA){var c=b.lastIndexOf(a.value.toLowerCase());return 0<=c&&c+a.value.length==b.length}if(a.va===e.u.i.Bb.RA)return c=b.lastIndexOf(a.value.toLowerCase()),0>c||c+a.value.length!=b.length;if(a.va===e.u.i.Bb.On)return c=b.indexOf(a.value.toLowerCase()),
0<=c;if(a.va===e.u.i.Bb.QA)return c=b.indexOf(a.value.toLowerCase()),0>c;if(a.va===e.u.i.Bb.GREATER)return b>a.value.toLowerCase();if(a.va===e.u.i.Bb.xl)return b>=a.value.toLowerCase();if(a.va===e.u.i.Bb.LESS)return b<a.value.toLowerCase();if(a.va===e.u.i.Bb.yl)return b<=a.value.toLowerCase();if(a.va===e.u.i.Bb.nh)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.Bb.bh)return c=a.value[0].toLowerCase(),a=a.value[1].toLowerCase(),c<a?b<c||b>a:b<
a||b>c}wU(b,a){if(e.v(a.value))return!1;if(a.va===e.u.i.Jg.EQUAL)return b===a.value;if(a.va===e.u.i.Jg.cg)return b!==a.value;if(a.va===e.u.i.Jg.GREATER)return b>a.value;if(a.va===e.u.i.Jg.xl)return b>=a.value;if(a.va===e.u.i.Jg.LESS)return b<a.value;if(a.va===e.u.i.Jg.yl)return b<=a.value;if(a.va===e.u.i.Jg.nh){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.Jg.bh)return c=Math.min(a.value[0],a.value[1]),a=Math.max(a.value[0],a.value[1]),b<
c||b>a}pDa(b,a){if(e.v(a.value))return!1;if(a.va===e.u.i.$b.FE){var c=a.value.getTime();return b<c}if(a.va===e.u.i.$b.GE)return c=a.value.getTime(),b<c+864E5;if(a.va===e.u.i.$b.CE)return c=a.value.getTime(),b>=c+864E5;if(a.va===e.u.i.$b.DE)return c=a.value.getTime(),b>=c;if(a.va===e.u.i.$b.nh)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.$b.bh)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 cm(b){this.IB=b}get cm(){null==this.IB&&(this.IB=[]);return this.IB}get YH(){return this.OQ}set YH(b){this.OQ=b}pw(){if(0<this.cm.length){for(var b,a=0;a<this.cm.length;a++){if(this.Cc.type!==e.u.i.Lc.Sa||this.Cc.ta.ea(1).type!==e.u.i.ib.Sa&&this.Cc.ta.ea(1).type!==e.u.i.ib.Jc)b=this.Cc.Ib(this.cm[a]);else{if(l.C.F.br&&"null"===this.cm[a])b=null;else if(8>this.cm[a].length||/\D+/.test(this.cm[a].slice(1))){b=this.Cc.ta.ea(1).type===
e.u.i.ib.Jc?l.C.F.rk:l.C.F.Ep;b=this.Cc.mapping.Ha(this.Cc.A,"format",b);const c=new e.Zg(this.cm[a],{wy:!1,format:b});c.Aj(u.zh.lg(b));b=c.getTime()}else b=parseInt(this.cm[a]);b=this.Cc.vu(b)}null!=b&&(this.YH?this.Sk.push(b.ordinal):this.fg.push(b.ordinal))}this.cm=[]}}wda(b){for(var a=[],c=0;c<b.length;c++)a.push(b[c]),this.Nga(a,this.Cc.ya(b[c]));return a}Nga(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.Nga(b,this.Cc.ya(a[c]))}}}h.JA=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 zb(b,a,c=null){if(e.v(b))return null;let d=null;a==e.u.i.qb.$n?(e.u.i.yc.ki.some(g=>{if(!e.v(b[g]))return d=new f(g,parseFloat(b[g])),!0}),e.u.i.yc.If.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.qb.Sa?(e.u.i.$b.ki.some(g=>{if(!e.v(b[g])){const k=new e.Zg(b[g]);k.Aj(c,!1);d=new f(g,k);return!0}}),e.u.i.$b.If.some(g=>
{if(!e.v(b[g])){const k=new e.Zg(b[g][0]);k.Aj(c,!1);const m=new e.Zg(b[g][1]);m.Aj(c,!1);if(k&&m)return d=new f(g,k.getTime()<m.getTime()?[k,m]:[m,k]),d.value[1]=d.value[1].i5("day",l.C.F.Gw),!0}}),e.u.i.$b.Wx.some(g=>{if(e.u.i.AA.Ug(b[g]))return d=new f(g,b[g].toLowerCase()),!0}),e.v(b[e.u.i.Bb.On])||(d=new f(e.u.i.Bb.On,b[e.u.i.Bb.On]))):a==e.u.i.qb.Ok?(e.u.i.Bb.ki.some(g=>{if(!e.v(b[g]))return d=new f(g,b[g]),!0}),e.u.i.Bb.If.some(g=>{if(!e.v(b[g]))return d=new f(g,[b[g][0],b[g][1]]),!0})):a==
e.u.i.qb.jb?(e.u.i.Jg.ki.some(g=>{if(!e.v(b[g]))return d=new f(g,parseFloat(b[g])),!0}),e.u.i.Jg.If.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.qb.dc&&(e.u.i.Qk.ki.some(g=>{if(!e.v(b[g]))return d=new f(g,b[g]),!0}),e.u.i.Qk.If.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.Bb.On])||(d=new f(e.u.i.Bb.On,b[e.u.i.Bb.On])));return d}Qa(){let b=this.value;b instanceof e.Zg&&(b=b.format("yyyy-MM-dd"));Array.isArray(b)&&b[0]instanceof
e.Zg&&(b=[b[0].format("yyyy-MM-dd"),b[1].format("yyyy-MM-dd")]);return{[this.va]:b}}LR(b){if(this.va==e.u.i.$b.EQUAL||this.va==e.u.i.$b.cg){b=this.value.clone().Ln();var a=this.value.clone().eA();return new f(this.va==e.u.i.$b.cg?e.u.i.$b.bh:e.u.i.$b.nh,[b,a])}return 0<=e.u.i.$b.Wx.indexOf(this.va)&&e.u.i.AA.Ug(this.value)?(b=(new e.Zg).Aj(b),this.va==e.u.i.$b.mO?b.m5(this.value,l.C.F.Gw):this.va==e.u.i.$b.pP?(b.i5(this.value,l.C.F.Gw),b.setMilliseconds(1E3)):this.va==e.u.i.$b.WO&&(b.m5(this.value,
l.C.F.Gw),b.setMilliseconds(-1),b.m5(this.value,l.C.F.Gw)),a=b.clone().i5(this.value,l.C.F.Gw),new f(e.u.i.$b.nh,[b,a])):this}Cva(){return 0<=e.u.i.Qk.ki.indexOf(this.va)?new f(this.va,this.k5(this.value)):0<=e.u.i.Qk.If.indexOf(this.va)?new f(this.va,[this.k5(this.value[0]),this.k5(this.value[1])]):this}k5(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.im=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.Q8{constructor(){super();this.$_="\x3c!--";this.aca="/**----**"}load(b,a){this.url=b;this.oa=new z.ek;this.oa.dataType=z.zA.aB;this.oa.N(v.fa.ue,c=>this.eq(c));this.oa.N(v.fa.Oc,()=>this.wj());this.oa.N(v.fa.Aa,()=>this.Sb());this.oa.Qh(a);this.oa.load(b)}eq(){var b=0;null!=this.oa&&-1<(b=this.oa.response.indexOf("</config>"))&&b+this.aca.length+1<this.oa.response.length&&this.wj()}wj(){if(null!=this.oa){this.oa.Yd(v.fa.Oc);var b=this.rga(this.oa.response);
if(b instanceof h.Yx){if(b.ma instanceof e.u.local.csv.gF&&1==b.ma.sk){var a=b.ma;a.filename=this.oa.url;a.embeddedDataOffset=this.gT(this.oa.response.substring(0,this.oa.response.indexOf("</config>")+9)+"\n");var c=this.oa.response.indexOf(this.$_);a.isOCSV2Data=this.oa.response.substring(c,c+this.$_.length)==this.$_;b.ma=a}}else e.v(b)||e.v(b.dataSource)?l.C.F.A5&&this.Sb(l.B.j.j8):1==b.dataSource.embedded&&(b.dataSource.filename=this.oa.url,b.dataSource.embeddedDataOffset=this.gT(this.oa.response.substring(0,
this.oa.response.indexOf(this.aca))),b.dataSource.isOCSV2Data=!0);this.Mba(b);this.dispose()}}Sb(b=""){this.oa.Yd(v.fa.ue);this.oa.Yd(v.fa.Oc);this.oa.Yd(v.fa.Aa);if(e.ia(b)){var a="";null!=this.oa&&null!=this.oa.response&&""!=this.oa.response&&(a=l.Tb.validate(this.oa.response),a=700<a.length?a.substr(0,700):a,a=e.P.bind(l.B.j.jP,a).replace(/'/g,""));b=l.Tb.valid(this.url)?this.url:l.Tb.validate(this.url);b=e.P.bind(l.B.j.uJ,b);this.Fa(new h.zP(b,a))}else this.Fa(new h.zP(b));this.dispose()}dispose(){null!=
this.oa&&(this.oa.Yd(),this.oa.dispose(),this.oa=null)}}h.wqa=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.Q8{constructor(){super()}load(){this.file=new z.x7;this.file.N(v.fa.np,()=>this.mGa());this.file.N(v.fa.Oc,()=>this.wj());this.file.N(v.fa.BW,()=>this.DU());this.file.N(v.fa.Aa,()=>this.Sb());this.file.zaa([".json",".js",".xml"])}mGa(){null!=this.file&&this.file.load(z.ppa.ARRAY_BUFFER)}wj(){try{this.Nwa();var b=new e.Er(this.file.response,0,e.Er.HI),a=b.jV(b.byteLength),c=this.rga(a);if(c instanceof h.Yx){if(c.ma instanceof e.u.local.csv.gF&&
1==c.ma.sk){var d=c.ma;d.bca=this.file.response;d.Z_=this.gT(a.substring(0,a.indexOf("</config>")+9)+"\n");c.ma=d}}else e.v(c)||e.v(c.dataSource)?l.C.F.A5&&this.Sb(l.B.j.j8):1==c.dataSource.sk&&(c.dataSource.embeddedDataToLoad=this.file.response,c.dataSource.embeddedDataOffset=this.gT(a.substring(0,a.indexOf("/**----**"))));this.Mba(c);this.dispose()}catch(g){console.error(g),this.Sb()}}Sb(b=""){e.ia(b)&&(b=e.P.bind(l.B.j.uJ,""));this.Fa(new h.zP(b));this.dispose()}Nwa(){this.$a(h.Eh.IJ)}DU(){this.$a(h.Eh.Kr);
this.dispose()}dispose(){null!=this.file&&(this.file.Yd(),this.file.dispose(),this.file=null)}}h.nna=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));(function(e){(function(l){(function(h){class f{static iA(b){return b==f.DO||b==f.MX||b==f.S5||b==f.UA}}f.DO="file";f.MX="server";f.S5="binary";f.UA="plain";h.fp=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(a,c,d){this.fk=this.A="";this.index=-1;this.label="";void 0!=a&&(this.A=a);void 0!=c&&(this.aa=c);void 0!=d&&(this.index=d)}get aa(){return this.fk}set aa(a){e.u.i.da.iA(a)&&(this.fk=a)}static zb(a){if(null==a)return null;var c=new f;void 0!=a.uniqueName&&(c.A=a.uniqueName);void 0!=a.aggregation&&(c.aa=a.aggregation);void 0!=a.index&&(c.index=a.index);void 0!=a.label&&(c.label=a.label);return c}Qa(){var a={};a.uniqueName=this.A;""!==this.aa&&
(a.aggregation=this.aa);return a}}h.ah=f;class b{constructor(){this.rows=[];this.Ka=[];this.ob=[];this.Ba=[];this.Wj={};this.Lj={};this.Ew=[];this.Dw=[];this.Bw=[];this.Aw=[];this.kd=this.Qc=!1;this.Ng=[];this.ih=null;this.bd=[];this.Rj=[];this.En=new e.tb}static Jfa(a){if(0<=b.gd(a.rows)){var c=b.gd(a.Ka);0<=c&&(a.Ka[c]=a.Ka[0],a.Ka.shift())}}static gd(a){for(var c=0;c<a.length;c++)if("[Measures]"==a[c].uniqueName)return c;return-1}static iV(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 hV(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 wR(a,c){if(!e.v(c)&&!c.nb)for(let g=0;g<a.length;g++){var d=a[g].uniqueName;let k=c.Ha(d,"caption");
e.v(k)||delete a[g].caption;d=c.Ha(d,"aggregations");e.v(d)||delete a[g].availableAggregations}}static zb(a,c=null){if(null==a)return null;a instanceof b||(a=b.fm(a));var d=new b;null!=a.measures&&a.measures.length&&(d.Ba=a.measures);null==c&&(c=l.Va.V().Ia.ga);null!=a.pages&&a.pages.length&&(d.ob=b.u1(a.pages));null!=a.columns&&a.columns.length&&(d.Ka=b.u1(a.columns));null!=a.rows&&a.rows.length&&(d.rows=b.u1(a.rows));null!=a.flatOrder&&a.flatOrder.length&&(d.Ng=a.flatOrder);null!=a.flatSort&&a.flatSort.length&&
(d.ih=a.flatSort);null!=a.drillThrough&&a.drillThrough.length&&(d.bd=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.Rj)&&(d.Rj={}),d.Rj[k.levelName]=k.properties)}b.Jfa(d);b.wR(d.Ba,c.mapping);b.wR(d.ob,c.mapping);b.wR(d.Ka,c.mapping);b.wR(d.rows,c.mapping);null!=a.rowSorting&&(d.Wj=a.rowSorting);null!=a.columnSorting&&(d.Lj=a.columnSorting);null!=a.expandAll&&(d.Qc=a.expandAll);
null!=a.expandedRows&&a.expandedRows.length&&(d.Ew=a.expandedRows);null!=a.expandedColumns&&a.expandedColumns.length&&(d.Dw=a.expandedColumns);null!=a.drillAll&&(d.kd=a.drillAll);null!=a.drilledRows&&a.drilledRows.length&&(d.Bw=a.drilledRows);null!=a.drilledColumns&&a.drilledColumns.length&&(d.Aw=a.drilledColumns);return d}static u1(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 wk(a){var c=new b,d=a.find("defaultSlice axes axis[name=rows]");
c.rows=b.v1(d.find("hierarchy"));c.Wj=b.oia(d.find("sort"));c.Ew=b.jca(d.find("expanded tuple"));c.Bw=b.Xba(d.find("drilled tuple"));d=a.find("defaultSlice axes axis[name=columns]");c.Ka=b.v1(d.find("hierarchy"));c.Lj=b.oia(d.find("sort"));c.Dw=b.jca(d.find("expanded tuple"));c.Aw=b.Xba(d.find("drilled tuple"));b.Jfa(c);d=a.find("defaultSlice axes axis[name=pages]");c.ob=b.v1(d.find("hierarchy"));c.Ba=b.oDa(a.find("defaultSlice measures measure"));c.Ng=b.$xa(a.find("defaultSlice flatOrder hierarchyName"));
d=a.find("params");0!=d.find("param[name=expandAll]").length&&(c.Qc=e.P.Zc(d.find("param[name=expandAll]").text()));0!=d.find("param[name=drillAll]").length&&(c.kd=e.P.Zc(d.find("param[name=drillAll]").text()));a=a.find("defaultSlice");0!=a.find("expandAll").length&&(c.Qc=e.P.Zc(a.find("expandAll").text()));0!=a.find("drillAll").length&&(c.kd=e.P.Zc(a.find("drillAll").text()));return c}static v1(a){for(var c=[],d=0;d<a.length;d++){var g=b.gBa(a[d]);c.push(g)}return c}static gBa(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.qb.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.qb.NONE||0<g.length)c.filter={};0<g.length&&(c.filter.members=g,c.filter.negation=m);k!=e.u.i.qb.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 oia(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.aa=a.attr("measureAggregation")));return c}static jca(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.aa=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 Xba(a){var c=[];if(0<a.length)for(var d=0;d<a.length;d++){var g=a[d],k=b.hKa(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.aa=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 hKa(a){for(var c=0;c<a.length;c++)a[c]=parseInt(a[c]);return a}static oDa(a){for(var c=[],d=0;d<a.length;d++){var g=b.kDa(a[d]);c.push(g)}return c}static $xa(a){for(var c=[],d=0;d<a.length;d++)c.push(a[d].text());return c}static kDa(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}Yo(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.A1(this.rows[k],a));null!=this.Wj&&null!=this.Wj.type&&this.Wj.type!=e.u.i.za.fd&&(k=z.ba.create("<sort/>").text(this.Wj.type),k.attr("tuple",this.Wj.tuple.join(",")),k.attr("measure",this.Wj.measure.A),""!=this.Wj.measure.aa&&k.attr("measureAggregation",this.Wj.measure.aa),g.append(k));if(0<this.Ew.length){var m=z.ba.create("<expanded/>");
for(k=0;k<this.Ew.length;k++){var n=this.Ew[k].slice(0);var p=n.shift();0!=n.length&&(n=z.ba.create("<tuple/>").append(z.ba.Vh(n.toString())),p&&(n.attr("measure",p.A),""!=p.aa&&n.attr("measureAggregation",p.aa)),m.append(n))}g.append(m)}if(0<this.Bw.length){var t=z.ba.create("<drilled/>");for(k=0;k<this.Bw.length;k++){n=this.Bw[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.aa&&n.attr("measureAggregation",p.aa)),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.A1(this.Ka[k],a));null!=this.Lj&&this.Lj.type&&this.Lj.type!=e.u.i.za.fd&&(k=z.ba.create("<sort/>").text(this.Lj.type),k.attr("tuple",this.Lj.tuple.join(",")),k.attr("measure",this.Lj.measure.A),""!=this.Lj.measure.aa&&k.attr("measureAggregation",this.Lj.measure.aa),m.append(k));
if(0<this.Dw.length){r=z.ba.create("<expanded/>");for(k=0;k<this.Dw.length;k++)n=this.Dw[k].slice(0),p=n.shift(),0!=n.length&&(n=z.ba.create("<tuple/>").append(z.ba.Vh(n.toString())),p&&(n.attr("measure",p.A),""!=p.aa&&n.attr("measureAggregation",p.aa)),r.append(n));m.append(r)}if(0<this.Aw.length){t=z.ba.create("<drilled/>");for(k=0;k<this.Aw.length;k++)n=this.Aw[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.aa&&n.attr("measureAggregation",p.aa)),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.ob.length;k++)p.append(this.A1(this.ob[k],a));this.En.clear();n=z.ba.create("<measures/>");for(k=0;k<this.Ba.length;k++)r=this.Ba[k],t=z.ba.create("<measure/>").text(r.A),null!=r.ve&&""!=r.ve?(t=z.ba.create("<measure/>").append(z.ba.Vh(r.ve)),r.cl&&t.attr("individual","true"),t.attr("caption",r.caption)):(a||r.aa!=e.u.i.da.NONE)&&t.attr("aggregation",
r.aa),(a||0==r.active)&&t.attr("active",r.active),null!=r.format&&""!=r.format&&(t.attr("format",r.format),r.active?this.En.Ta(r.format,!0):this.En.Hb(r.format)&&!0===this.En.getItem(r.format)||this.En.Ta(r.format,!1)),null!=r.Wc&&0<r.Wc.length&&t.attr("availableAggregations",r.Wc.join(",")),n.append(t);0==g.nb()&&d.append(g);0==m.nb()&&d.append(m);0==p.nb()&&d.append(p);0==d.nb()&&c.append(d);0==n.nb()&&c.append(n);if(0<this.Ng.length){d=z.ba.create("<flatOrder/>");for(k=0;k<this.Ng.length;k++)d.append(z.ba.create("<hierarchyName/>").text(this.Ng[k]));
c.append(d)}(a||this.Qc)&&c.append(z.ba.create("<expandAll/>").text(this.Qc));(a||this.kd)&&c.append(z.ba.create("<drillAll/>").text(this.kd));return c}Qa(a=!1,c=null){var d={},g,k=[];for(g=0;g<this.ob.length;g++)k.push(this.z1(this.ob[g],a,c));0<k.length&&(d.reportFilters=k);k=[];for(g=0;g<this.rows.length;g++)k.push(this.z1(this.rows[g],a,c));0<k.length&&(d.rows=k);k=[];for(g=0;g<this.Ka.length;g++)k.push(this.z1(this.Ka[g],a,c));0<k.length&&(d.columns=k);k=[];const m=new e.tb,n=l.ec.gj.Oza();this.En.clear();
for(g=0;g<this.Ba.length;g++){var p=this.vfa(this.Ba[g],a,c);m.Hb(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.ea(g);p=n.Jh(g);t=t.keys();for(var r of t)t=n.getItem(p).get(r),(!m.Hb(p)||m.Hb(p)&&!m.getItem(p).has(r))&&l.C.F.uV&&(k.push({uniqueName:p,aggregation:r,active:!1,format:t}),this.En.Ta(t,!1))}0<k.length&&(d.measures=k);if(null!=this.Wj&&null!=this.Wj.type&&this.Wj.type!=e.u.i.za.fd||null!=this.Lj&&this.Lj.type&&
this.Lj.type!=e.u.i.za.fd)d.sorting={},null!=this.Wj&&null!=this.Wj.type&&this.Wj.type!=e.u.i.za.fd&&(d.sorting.row=this.Wj),null!=this.Lj&&this.Lj.type&&this.Lj.type!=e.u.i.za.fd&&(d.sorting.column=this.Lj);r={};if(a||this.Qc)r.expandAll=this.Qc;if(e.u.Ra.V().ua){var w=e.u.Ra.V().ua.yb;var y=e.u.Ra.V().ua.Db}0<this.Ew.length&&w&&(r.rows=this.ica(this.Ew,w,a,c));0<this.Dw.length&&y&&(r.columns=this.ica(this.Dw,y,a,c));u.Sc.Eg(r)||(d.expands=r);c={};if(a||this.kd)c.drillAll=this.kd;0<this.Bw.length&&
(c.rows=this.Wba(this.Bw,w));0<this.Aw.length&&(c.columns=this.Wba(this.Aw,y));u.Sc.Eg(c)||(d.drills=c);0<this.Ng.length&&(d.flatOrder=this.Ng);this.ih&&0<this.ih.length&&(d.flatSort=this.ih);0<this.bd.length&&(d.drillThrough=this.bd);if(this.Rj){a=[];for(var A in this.Rj)a.push({levelName:A,properties:this.Rj[A]});0<a.length&&(d.memberProperties=a)}return d}ica(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=[],w=0;w<n.length;w++){var y=
c.ea(w).Ib(n[w]);r.push(y.qj)}m.tuple=r;p&&(m.measure=this.vfa(p.uniqueName?p:p.Qa(),d,g));k.push(m)}return k}Wba(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 w=c.ea(r).Ib(m[r]);if(w)t.push(w.qj);else continue a}k.tuple=t;p&&(k.measure=p.uniqueName?p:p.Qa());""!==n&&(k.level=n);d.push(k)}}return d}dCa(a){return e.u.Ra.V().ga.Da===e.u.i.qa.Tc||e.u.Ra.V().ga.Da===e.u.i.qa.le?"[Measures].["+
a.name+"]"!=a.uniqueName:e.u.Ra.V().O instanceof e.u.local.O.cP&&void 0!==e.u.Ra.V().O.Mz[a.uniqueName]?!1:a.name!=a.uniqueName}xBa(a){if(e.u.Ra.V().ga.Da==e.u.i.qa.API)return!1;if(a.Zj.length!==a.Wc.length)return!0;for(var c=0;c<a.Wc.length;c++)if(a.Wc[c]!==a.Zj[c])return!0;return!1}vfa(a,c,d=null){var g={};g.uniqueName=a.uniqueName;if(e.ia(a.formula)){if(c||a.aggregation!=e.u.i.da.NONE)g.aggregation=a.aggregation;var k=e.u.Ra.V().O.bx(a);if(c||this.xBa(k))e.v(d)||d.nb?g.availableAggregations=a.availableAggregations:
null==d.Ha(a.uniqueName,"aggregations")&&d.gi(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.dCa(a)&&(e.v(d)||d.nb?g.caption=a.name:null==d.Ha(a.uniqueName,"caption")&&void 0===a.formula&&d.gi(a.uniqueName,"caption",a.name));e.u.O.Br.O0(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.En.Ta(a.format,!0):this.En.Hb(a.format)&&!0===this.En.getItem(a.format)||this.En.Ta(a.format,!1));a.filter&&(g.filter=a.filter);return g}WBa(a){return"[Measures]"==a.uniqueName?!1:e.u.Ra.V().ga.Da==e.u.i.qa.Tc||e.u.Ra.V().ga.Da==e.u.i.qa.le?a.dimensionName+".["+a.caption+"]"!=a.uniqueName:e.u.Ra.V().O instanceof e.u.local.O.cP&&void 0!==e.u.Ra.V().O.Mz[a.uniqueName]?
!1:a.uniqueName!=a.caption}z1(a,c,d=null){var g={};g.uniqueName=a.uniqueName;this.WBa(a)&&(e.v(d)||d.nb?g.caption=a.caption:null==d.Ha(a.uniqueName,"caption")&&d.gi(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.Sc.Eg(a.groups)||(g.groups=a.groups);"[Measures]"!=a.uniqueName&&a.sortName&&(c||a.sortName!=e.u.O.ht.RI)&&(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}A1(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.qb.NONE&&d.append(this.Sxa(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.xca(g,d.find("filter")[0]):d.append(this.xca(g)),!0===a.filter.negation&&d.find("filter").attr("negation",a.filter.negation))}a.customSorting&&0<a.customSorting.length&&
d.append(this.rwa(a.customSorting));a.groups&&this.WAa(a.groups,d);a.filterEnabled||d.attr("filterEnabled","true");"[Measures]"!=a.uniqueName&&a.sortName&&(c||a.sortName!=e.u.O.ht.RI)&&d.attr("sort",a.sortName);"[Measures]"!=a.uniqueName&&a.sortAs&&d.attr("sortAs",a.sortAs);return d}Sxa(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}xca(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.Vh(g)))}return c}rwa(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.Vh(g)))}return c}WAa(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.Vh(m)))}c.append(g)}}static fm(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.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.rows&&(c.expandedRows=b.iV(a.expands.rows)),null!=a.expands.columns&&(c.expandedColumns=b.iV(a.expands.columns)));null!=a.drillAll&&(c.drillAll=
a.drillAll);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.rows&&(c.drilledRows=b.hV(a.drills.rows)),null!=a.drills.columns&&(c.drilledColumns=b.hV(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.iV(a.expands.rows)),null!=a.expands.columns&&(c.expandedColumns=b.iV(a.expands.columns))),null!=a.drills&&(null!=a.drills.drillAll&&(c.drillAll=a.drills.drillAll),null!=a.drills.rows&&(c.drilledRows=b.hV(a.drills.rows)),null!=a.drills.columns&&(c.drilledColumns=b.hV(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}XBa(a){for(var c=0;c<this.ob.length;c++)if(this.ob[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.pp=b})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.Vf={};this.Lf={};this.Xg=[];this.Lg=[];this.Uj={};this.Zk={};this.kh=[];this.uE=0}static zb(b){const a=new f;if(null==b)return a;null!=b.columnSizes&&"string"!=typeof b.columnSizes&&(a.Lf=b.columnSizes);null!=b.rowSizes&&"string"!=typeof b.rowSizes&&(a.Vf=b.rowSizes);null!=b.columnHeaderSizes&&"string"!=typeof b.columnHeaderSizes&&(a.Lg=b.columnHeaderSizes);null!=b.rowHeaderSizes&&"string"!=typeof b.rowHeaderSizes&&(a.Xg=b.rowHeaderSizes);
null!=b.rowFilterSizes&&"string"!=typeof b.rowFilterSizes&&(a.kh=b.rowFilterSizes);null!=b.columnSizesByIdx&&(a.Zk=b.columnSizesByIdx);null!=b.rowSizesByIdx&&(a.Uj=b.rowSizesByIdx);return a}static fm(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}Qa(b){const a={};if(null!=this.Lg&&!u.Sc.Eg(this.Lg)||null!=this.Lf&&!u.Sc.Eg(this.Lf)){a.columns=[];if(null!=this.Lg&&!u.Sc.Eg(this.Lg))for(var c=0;c<this.Lg.length;c++)null!=this.Lg[c]&&a.columns.push({idx:c,width:this.Lg[c]});if(null!=this.Zk&&!u.Sc.Eg(this.Zk))for(var d in this.Zk)c=
parseInt(d),this.Zk.hasOwnProperty(d)&&!isNaN(c)&&a.columns.push({idx:c,width:this.Zk[d]});d=h.pp.gd(b.Ka);if(null!=this.Lf&&!u.Sc.Eg(this.Lf))for(var g in this.Lf)if(c=g.split(","),0<=d&&1<c.length){const m=c.pop(),n=c.pop();a.columns.push({tuple:c,measure:(new h.ah(n,m)).Qa(),width:this.Lf[g]})}else a.columns.push({tuple:c,width:this.Lf[g]})}if(null!=this.kh&&!u.Sc.Eg(this.kh)||null!=this.Xg&&!u.Sc.Eg(this.Xg)||null!=this.Vf&&!u.Sc.Eg(this.Vf)){a.rows=[];if(null!=this.kh&&!u.Sc.Eg(this.kh))for(g=
0;g<this.kh.length;g++)null!=this.kh[g]&&a.rows.push({idx:g,height:this.kh[g]});if(null!=this.Xg&&!u.Sc.Eg(this.Xg))for(g=0;g<this.Xg.length;g++)null!=this.Xg[g]&&a.rows.push({idx:g,height:this.Xg[g]});if(null!=this.Uj&&!u.Sc.Eg(this.Uj))for(var k in this.Uj)g=parseInt(k),this.Uj.hasOwnProperty(k)&&!isNaN(g)&&a.rows.push({idx:g,width:this.Uj[k]});b=h.pp.gd(b.rows);if(null!=this.Vf&&!u.Sc.Eg(this.Vf))for(const m in this.Vf)k=m.split(","),0<=b&&1<k.length?(g=k.pop(),d=k.pop(),a.rows.push({tuple:k,measure:(new h.ah(d,
g)).Qa(),height:this.Vf[m]})):a.rows.push({tuple:k,height:this.Vf[m]})}return a}Yo(){var b=z.ba.create("<view/>"),a;if(null!=this.Lg)for(a in this.Lg)if(null!=this.Lg[a]){var c=z.ba.create("<column/>").text(this.Lg[a]);c.attr("headerIdx",a);b.append(c)}if(null!=this.Lf)for(a in this.Lf)null!=this.Lf[a]&&(c=z.ba.create("<column/>").append(z.ba.Vh(this.Lf[a])),b.append(c));if(null!=this.kh)for(a in this.kh)null!=this.kh[a]&&(c=z.ba.create("<row/>").text(this.kh[a]),c.attr("filterIdx",a),b.append(c));
if(null!=this.Xg)for(a in this.Xg)null!=this.Xg[a]&&(c=z.ba.create("<row/>").text(this.Xg[a]),c.attr("headerIdx",a),b.append(c));if(null!=this.Vf)for(a in this.Vf)null!=this.Vf[a]&&(c=z.ba.create("<row/>").append(z.ba.Vh(this.Vf[a])),b.append(c));return b}clone(){const b=new f;var a={};for(const n in this.Lf)a[n]=this.Lf[n];b.Lf=a;a={};for(var c in this.Zk)a[c]=this.Zk[c];b.Zk=a;c=[];for(var d in this.Lg)c[parseInt(d)]=this.Lg[d];b.Lg=c;d={};for(var g in this.Vf)d[g]=this.Vf[g];b.Vf=d;g={};for(var k in this.Uj)g[k]=
this.Uj[k];b.Uj=g;k=[];for(var m in this.Xg)k[parseInt(m)+this.uE]=this.Xg[m];b.Xg=k;m=[];if(0!=this.uE)for(const n in this.kh)m[parseInt(n)]=this.kh[n];b.kh=m;return b}static wk(b){const a=new f;a.Lg=f.Wda(b.find("view column[headerIdx]"));a.Lf=f.jia(b.find("view column"));a.Xg=f.Wda(b.find("view row[headerIdx]"));a.Vf=f.jia(b.find("view row"));a.kh=f.Pxa(b.find("view row[filterIdx]"));return a}static Wda(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 Pxa(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 jia(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.Gv=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.De=new e.tb;this.Xc=new e.tb;this.Ax=new l.hb.Gv;this.Ge=null;this.labels={};this.OKa=this.lA=!1;this.Dm=[]}static kKa(a){if(null===a)return null;var c=new l.hb.Yx;c.lA=a.lA;c.ma=a.Ab.clone();a.Qb&&(c.slice=a.Qb.n5());c.options=a.C;var d=[];for(var g=0;g<a.De.length;g++)d[g]=a.De.ea(g).Qa();c.De=d;d=[];for(g=0;g<a.Xc.length;g++)d[g]=a.Xc.ea(g).Qa();c.Xc=d;c.Dm=a.Dm;c.labels=a.labels;c.Ax=a.Ax.clone();c.Ge=a.Ge;c.version=
e.ph.ft;c.mL=(new Date).toISOString();return c}}f.c9=b})(h.X||(h.X={}))})(l.jc||(l.jc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.pna=35;this.RQ=!1;this.Qra="a4";this.Hga=()=>this.bga();this.q0=this.t1=0}static V(){null==f.ze&&(f.ze=new f);return f.ze}static dispose(){f.ze=null}print(b=null){this.RQ||(this.RQ=!0,this.C=b||new l.Rs.J8,l.Va.V().N(e.vg.VA,this.Hga),l.Va.V().$a(e.vg.CX))}bga(){l.Va.V().sb(e.vg.VA,this.Hga);this.RQ=!1}pg(b,a=""){this.Y=b;this.la=null!=b?b.la:null;this.Yta=a||"";this.start()}start(){this.ll=0;var b=l.Ac.Xx.lH(this.Qra);this.LQ=b.NAa();
this.SY=b.Pza();this.ob=new x.Ea("div");this.$s=[];this.dI=this.oo=0;u.Cl.eo({Uo:()=>this.Xya(),$e:()=>this.finish()})}clear(){this.RQ=!1;this.oo=this.ll=this.dI=0;this.ob=this.Qs=null;this.q0=this.t1=0}Xya(){return this.isa()}isa(){if(null==this.Qs)this.Qs=this.jba(),this.dV=this.Qs.find("table");else if(!(this.Qs.uf(!0)<=this.LQ&&0!=this.oo)&&(this.Qs.uf(!0)>this.LQ&&(this.oo--,this.ZHa(this.Qs)),this.caa(),this.Qs=this.jba(),this.dV=this.Qs.find("table"),0==this.Y.Vi)){var b=this.oo;0!=this.oo&&
0<this.Y.op&&(this.oo=0,this.S$(),this.oo=b,this.oo+1<=this.la.coords.Kl&&(this.oo+=1))}this.S$();if(1==this.shift())this.caa();else return!1;return!0}ZHa(b){b=b.find("td:last-child",!0);for(let a=0;a<b.length;a++)b[a].remove()}jba(){var b=(new x.Ea("div")).$("page");b.R("position","absolute").R("left","-9999px");if(null!=this.C.Ui){var a=this.jL(this.C.Ui);b.append(a)}var c=new x.Ea("table");0==this.ll&&0<l.C.F.Pp.length&&c.append((new x.Ea("caption")).text(l.C.F.Pp));b.append(c);if(null!=this.C.pj){var d=
this.jL(this.C.pj);b.append(d)}this.Y.G.append(b);this.t1=null!=a?a.xd():0;this.q0=null!=d?d.xd():0;return b}jL(b){var a=new x.Ea("div");b=b.replace(/##PAGE-NUMBER##/gi,(this.ll+1).toString());b=b.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());a.html(b);return a}caa(){this.ll++;e.Ca(!0,l.B.j.fF,this.ll+" "+l.B.j.m8,!0);this.Qs.detach();this.Qs.R("position","").R("left","").R("padding-top",this.pna.toString()+"px");this.ob.append(this.Qs)}shift(){++this.oo;this.oo>=this.Y.ug+this.la.coords.Kl&&
(this.oo=0,this.dI+=this.Jf-this.Y.nf+1);return 1E3<=this.ll||this.dI>=this.la.coords.Dp?!0:!1}S$(){this.sV=0;var b=this.Y.op+this.oo;if(!this.la.coords.Fo(NaN,b)){var a=this.SY-this.t1-this.q0;for(this.Jf=this.Y.Mi;this.sV<=a&&this.Jf<this.la.coords.Dp+this.Y.nf-this.dI;this.Jf++)if(this.rowIndex=this.Jf<this.Y.nf?this.Jf:this.Jf+this.dI,!this.la.coords.Fo(this.rowIndex,b)){var c=this.la.kg(this.rowIndex,b,!0);this.sV+=this.hsa(this.Jf,c);if(this.sV>=a)break}}}hsa(b,a){const c=e.K.Y.sheet.Ch.jt;
var d=this.dV.find("tr",!0);for(d=0<d.length?d[b]:null;null==d;)this.dV.append(new x.Ea("tr")),d=this.dV.find("tr",!0)[b];d.height=e.K.Y.sheet.Ch.mv;b="<td {0}>"+(a?a.J(!0):"")+"</td>";if(null==a)b=e.P.bind(b,"class='cell' style='width:"+c+"'");else{var g="",k="";a.Ku&&null!=a.style&&(k=a.style.hT(),g=a.style.PS(),this.IZ(a.style.sC));g=a.zi?g+(" rowHeaderCell level"+a.level):a.Nh?g+" columnHeaderCell":a.el?g+" filterHeaderCell":a.sz&&a.Ak&&""!=a.J(!0)?g+" grandTotalCell":a.Ak&&""!=a.J(!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+=b;return d.xd(!0)}IZ(b){for(var a=0;a<b.length;a++)0>this.$s.indexOf(b[a])&&this.$s.push(b[a])}finish(){e.Ca(!0,l.B.j.fF,"Sending pages to printer...",!1,!0);z.I8.print(this.Yta+this.ob.html(),this.y0(),l.C.F.Pp);e.Ca(!1);l.Va.V().$a(e.vg.VA);this.clear()}y0(){var b="",a=x.Ea.Vb(this.la.element),c=a.find(".fm-data-sheet");b+=e.P.bind("table{width:100%;border-collapse:collapse;{0}}\n",
e.K.Y.X.ed.dz(a,["font-family","font-size"]));b+=e.P.bind("caption{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.UX,a));b+=e.P.bind("td{white-space:nowrap;{0}}\n",u.Kd().DT?"":"border: 1px solid #eee;");b+=e.P.bind(".cell{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.Le,c));b+=e.P.bind(".totalCell{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.Fv,c));b+=e.P.bind(".grandTotalCell{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.Fv+" "+e.K.Y.X.wa.jJ,c));b+=e.P.bind(".rowHeaderCell{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.Le+" "+
e.K.Y.X.wa.bk+" "+e.K.Y.X.wa.uv,a));b+=e.P.bind(".columnHeaderCell{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.bk+" "+e.K.Y.X.wa.KA,a));b+=e.P.bind(".filterHeaderCell{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.bk+" "+e.K.Y.X.wa.zq,a));for(c=1;20>=c;c++)b+=e.P.bind(".level{0}{{1}}\n",c,e.K.Y.X.ed.bl(e.K.Y.X.wa.uv+" "+e.K.Y.X.wa.Hf+c,a,["padding-left"]));for(c=0;c<this.$s.length;c++)b+=e.P.bind(".{0}{{1}}\n",this.$s[c],e.K.Y.X.ed.bl(this.$s[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.jF=f})(l.Rs||(l.Rs={}))})(e.model||(e.model={}))})(q||(q={}));(function(e){(function(l){(function(h){class f{static zb(b){var a=new f;null!=b&&(null!=b.header&&(a.Ui=b.header),null!=b.footer&&(a.pj=b.footer));return a}}h.J8=f})(l.Rs||(l.Rs={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends v.Ah{constructor(){super();f.Sd=new h.Eq;f.Sd.iE();f.C=new h.Eq;if(f.instance)throw Error("Singleton");}static V(){e.v(f.instance)&&(f.instance=new f);return f.instance}static dispose(){f.rB&&(f.rB.Sd=null);f.rB=null;f.C=null;f.Sd=null;f.instance=null}static eJa(b){f.rB=b}static Kw(b=!1,a=!1){const c=new h.Eq;b&&c.FD(f.Sd);a&&c.FD(f.rB);c.FD(f.C);!b&&c.pua();return c}static clear(){this.C=new h.Eq}static qq(b,a=!0,c=!0){if(e.v(f.C)||a)a=f.yn,
f.C=new h.Eq,f.C.na("configuratorOpened",a);b=h.Eq.fm(b);a=!1;f.M_=!0;const d=f.Kw(!0,!0);for(let g in b)if(void 0!=d[g]&&b[g]!=d[g]&&(a=!0,f.Lz(g))){f.cv=!0;break}f.C.FD(b);e.u.O.ht.RI=f.Bba;f.M_=!1;a&&c&&f.bb()}static Lz(b){return-1<f.Pra.indexOf(b)}static U(b){return f.C&&null!=f.C[b]?f.C[b]:f.rB&&null!=f.rB[b]?f.rB[b]:f.Sd?f.Sd[b]:null}static get yn(){return f.C.U("configuratorOpened")}static set yn(b){f.C.na("configuratorOpened",b)}static get pC(){return f.U("configuratorActive")}static set pC(b){if(f.C.U("configuratorActive")!=
b){const a=!e.v(f.C.U("configuratorActive"));f.C.na("configuratorOpened",b);f.C.na("configuratorActive",b);a&&f.bb()}}static get IR(){return this.readOnly?this.JB.configuratorButton:f.U("configuratorButton")}static set IR(b){if(f.C.U("configuratorButton")!=b){const a=!e.v(f.C.U("configuratorButton"));f.C.na("configuratorButton",b);a&&f.bb()}}static get je(){return f.U("viewType")}static set je(b){if(f.C.U("viewType")!=b){b=e.K.Id.Ug(b)?b:f.Sd.U("viewType");const a=!(e.v(f.C.U("viewType"))&&f.Sd.U("viewType")==
b);f.C.na("viewType",b);a&&f.bb()}}static get zm(){return f.U("chartTitle")}static set zm(b){if(f.C.U("chartTitle")!=b){const a=!e.v(f.C.U("chartTitle"));f.C.na("chartTitle",b);a&&f.bb()}}static get pk(){return f.U("gridType")==e.K.Y.te.nv}static set pk(b){f.C.U("gridType")!=e.K.Y.te.nv&&(b=!e.v(f.C.U("gridType")),f.C.na("gridType",e.K.Y.te.nv),f.cv=f.Lz("gridType"),b&&f.bb())}static get rc(){return f.U("gridType")==e.K.Y.te.Bh}static set rc(b){if(1==b&&f.C.U("gridType")!=e.K.Y.te.Bh){const a=!e.v(f.C.U("gridType"));
f.C.na("gridType",e.K.Y.te.Bh);f.cv=f.Lz("gridType");a&&f.bb()}0==b&&f.C.U("gridType")==e.K.Y.te.Bh&&(f.C.na("gridType",e.K.Y.te.uA),f.cv=f.Lz("gridType"),f.bb())}static get hD(){return f.U("gridType")}static set hD(b){if(f.C.U("gridType")!=b){const a=!e.v(f.C.U("gridType"));f.C.na("gridType",b);a&&f.bb()}}static get Pp(){return f.U("gridTitle")}static set Pp(b){if(f.C.U("gridTitle")!=b){const a=!e.v(f.C.U("gridTitle"));f.C.na("gridTitle",b);a&&f.bb()}}static get WK(){return f.U("chartType")}static set WK(b){b=
e.K.Bd.Me.validate(b);if(f.C.U("chartType")!=b){const a=!e.v(f.C.U("chartType"));f.C.na("chartType",b);a&&f.bb()}}static get ko(){return f.U("chartOneLevel")}static set ko(b){if(f.C.U("chartOneLevel")!=b){const a=!e.v(f.C.U("chartOneLevel"));f.C.na("chartOneLevel",b);a&&f.bb()}}static get du(){return f.U("chartOneLevelTuple")}static set du(b){if(f.C.U("chartOneLevelTuple")!=b){const a=!e.v(f.C.U("chartOneLevelTuple"));f.C.na("chartOneLevelTuple",b);a&&f.bb()}}static get cC(){return f.U("chartOneLevelColumnTuple")}static set cC(b){if(f.C.U("chartOneLevelColumnTuple")!=
b){const a=!e.v(f.C.U("chartOneLevelColumnTuple"));f.C.na("chartOneLevelColumnTuple",b);a&&f.bb()}}static get pG(){return f.U("chartMultipleMeasures")}static set pG(b){if(f.C.U("chartMultipleMeasures")!=b){const a=!e.v(f.C.U("chartMultipleMeasures"));f.C.na("chartMultipleMeasures",b);a&&f.bb()}}static get oG(){return f.U("chartActiveMeasures")}static set oG(b){if(f.C.U("chartActiveMeasures")!=b){const a=!e.v(f.C.U("chartActiveMeasures"));f.C.na("chartActiveMeasures",b);a&&f.bb()}}static get io(){return f.U("chartActiveMeasure")}static set io(b){if(f.C.U("chartActiveMeasure")!=
b){const a=!e.v(f.C.U("chartActiveMeasures"));f.C.na("chartActiveMeasure",b);a&&f.bb()}}static get VK(){return f.U("chartActiveTupleIndex")}static set VK(b){if(f.C.U("chartActiveTupleIndex")!=b){const a=!e.v(f.C.U("chartActiveTupleIndex"));f.C.na("chartActiveTupleIndex",b);a&&f.bb()}}static get Iy(){return f.U("chartPosition")}static set Iy(b){if(f.C.U("chartPosition")!=b){const a=!e.v(f.C.U("chartPosition"));f.C.na("chartPosition",b);a&&f.bb()}}static get pR(){return f.U("chartReversedAxes")}static set pR(b){if(f.C.U("chartReversedAxes")!=
b){const a=!e.v(f.C.U("chartReversedAxes"));f.C.na("chartReversedAxes",b);a&&f.bb()}}static get cu(){return f.U("chartAutoRange")}static set cu(b){if(f.C.U("chartAutoRange")!=b){const a=!e.v(f.C.U("chartAutoRange"));f.C.na("chartAutoRange",b);a&&f.bb()}}static get bC(){return f.U("chartAxisShortNumberFormat")}static set bC(b){if(f.C.U("chartAxisShortNumberFormat")!=b){const a=!e.v(f.C.U("chartAxisShortNumberFormat"));f.C.na("chartAxisShortNumberFormat",b);a&&f.bb()}}static get yx(){return this.readOnly?
this.JB.showFilter:f.U("showFilter")}static set yx(b){if(f.C.U("showFilter")!=b){const a=!e.v(f.C.U("showFilter"));f.C.na("showFilter",b);a&&f.bb()}}static get dia(){return this.readOnly?this.JB.showFilterInCharts:f.U("showFilterInCharts")}static set dia(b){if(f.C.U("showFilterInCharts")!=b){const a=!e.v(f.C.U("showFilterInCharts"));f.C.na("showFilterInCharts",b);a&&f.bb()}}static get K4(){return f.U("showDefaultSlice")}static set K4(b){if(f.C.U("showDefaultSlice")!=b){const a=!e.v(f.C.U("showDefaultSlice"));
f.C.na("showDefaultSlice",b);a&&f.bb()}}static get vq(){return f.U("useOlapFormatting")}static set vq(b){if(f.C.U("useOlapFormatting")!=b){const a=!e.v(f.C.U("useOlapFormatting"));f.C.na("useOlapFormatting",b);a&&f.bb()}}static get jI(){return f.U("showMemberProperties")}static set jI(b){if(f.C.U("showMemberProperties")!=b){const a=!e.v(f.C.U("showMemberProperties"));f.C.na("showMemberProperties",b);a&&f.bb()}}static get pE(){return f.U("showEmptyData")}static set pE(b){if(f.C.U("showEmptyData")!=
b){const a=!e.v(f.C.U("showEmptyData"));f.C.na("showEmptyData",b);a&&f.bb()}}static get Yha(){return f.U("showChartDataLabels")}static set Yha(b){if(f.C.U("showChartDataLabels")!=b){const a=!e.v(f.C.U("showChartDataLabels"));f.C.na("showChartDataLabels",b);a&&f.bb()}}static get Wha(){return f.U("showAllChartLabels")}static set Wha(b){if(f.C.U("showAllChartLabels")!=b){const a=!e.v(f.C.U("showAllChartLabels"));f.C.na("showAllChartLabels",b);a&&f.bb()}}static get rl(){return f.U("showAggregations")}static set rl(b){if(f.C.U("showAggregations")!=
b){const a=!e.v(f.C.U("showAggregations"));f.C.na("showAggregations",b);a&&f.bb()}}static get Zs(){return f.U("showHierarchyCaptions")}static set Zs(b){if(f.C.U("showHierarchyCaptions")!=b){const a=!e.v(f.C.U("showHierarchyCaptions"));f.C.na("showHierarchyCaptions",b);a&&f.bb()}}static get LG(){return f.U("drillthroughMaxRows")}static set LG(b){if(f.C.U("drillthroughMaxRows")!=b){const a=!e.v(f.C.U("drillthroughMaxRows"));f.C.na("drillthroughMaxRows",b);a&&f.bb()}}static get F4(){return f.U("showAllFieldsDrillThrough")}static set F4(b){if(f.C.U("showAllFieldsDrillThrough")!=
b){const a=!e.v(f.C.U("showAllFieldsDrillThrough"));f.C.na("showAllFieldsDrillThrough",b);a&&f.bb()}}static get L4(){return f.U("showFieldListSearch")}static set L4(b){if(f.C.U("showFieldListSearch")!=b){const a=!e.v(f.C.U("showFieldListSearch"));f.C.na("showFieldListSearch",b);a&&f.bb()}}static get iI(){return f.U("showExtraTotalLabels")}static set iI(b){if(f.C.U("showExtraTotalLabels")!=b){const a=!e.v(f.C.U("showExtraTotalLabels"));f.C.na("showExtraTotalLabels",b);a&&f.bb()}}static get sl(){return f.U("showHeaders")}static set sl(b){if(f.C.U("showHeaders")!=
b){const a=!e.v(f.C.U("showHeaders"));f.C.na("showHeaders",b);a&&f.bb()}}static get Bj(){return this.readOnly?this.JB.sorting:f.U("sorting")}static set Bj(b){if(f.C.U("sorting")!=b){const a=!e.v(f.C.U("sorting"));f.C.na("sorting",b);a&&f.bb()}}static get kT(){return e.u.Ra.V().ga.Da===e.u.i.qa.API||e.u.Ra.V().ga.Gc?!1:f.U("grouping")}static set kT(b){if(f.C.U("grouping")!=b){const a=!e.v(f.C.U("grouping"));f.C.na("grouping",b);a&&f.bb()}}static get EC(){return f.U("editing")}static set EC(b){if(f.C.U("editing")!=
b){const a=!e.v(f.C.U("editing"));f.C.na("editing",b);a&&f.bb()}}static get bd(){return this.readOnly?this.JB.drillThrough:f.U("drillThrough")}static set bd(b){if(f.C.U("drillThrough")!=b){const a=!e.v(f.C.U("drillThrough"));f.C.na("drillThrough",b);a&&f.bb()}}static get cia(){return f.U("showDrillThroughConfigurator")}static set cia(b){if(f.C.U("showDrillThroughConfigurator")!=b){const a=!e.v(f.C.U("showDrillThroughConfigurator"));f.C.na("showDrillThroughConfigurator",b);a&&f.bb()}}static get qE(){return f.U("showHierarchies")}static set qE(b){if(f.C.U("showHierarchies")!=
b){const a=!e.v(f.C.U("showHierarchies"));f.C.na("showHierarchies",b);a&&f.bb()}}static get aia(){return f.U("showChartsWarning")}static set aia(b){if(f.C.U("showChartsWarning")!=b){const a=!e.v(f.C.U("showChartsWarning"));f.C.na("showChartsWarning",b);a&&f.bb()}}static get Zha(){return f.U("showChartLegend")}static set Zha(b){if(f.C.U("showChartLegend")!=b){const a=!e.v(f.C.U("showChartLegend"));f.C.na("showChartLegend",b);a&&f.bb()}}static get H4(){return f.U("showChartLegendButton")}static set H4(b){if(f.C.U("showChartLegendButton")!=
b){const a=!e.v(f.C.U("showChartLegendButton"));f.C.na("showChartLegendButton",b);a&&f.bb()}}static get uV(){return f.U("saveAllFormats")}static set uV(b){if(f.C.U("saveAllFormats")!=b){const a=!e.v(f.C.U("saveAllFormats"));f.C.na("saveAllFormats",b);a&&f.bb()}}static get bu(){return f.U("calculatedValuesOLAP")}static set bu(b){if(f.C.U("calculatedValuesOLAP")!=b){const a=!e.v(f.C.U("calculatedValuesOLAP"));f.C.na("calculatedValuesOLAP",b);a&&f.bb()}}static get C1(){return f.U("includeEmptySubtotalsOLAP")}static set C1(b){if(f.C.U("includeEmptySubtotalsOLAP")!=
b){const a=!e.v(f.C.U("includeEmptySubtotalsOLAP"));f.C.na("includeEmptySubtotalsOLAP",b);a&&f.bb()}}static get I4(){return f.U("showChartOneMeasureSelection")}static set I4(b){if(f.C.U("showChartOneMeasureSelection")!=b){const a=!e.v(f.C.U("showChartOneMeasureSelection"));f.C.na("showChartOneMeasureSelection",b);a&&f.bb()}}static get $ha(){return this.readOnly?this.JB.showChartMeasures:f.U("showChartMeasures")}static set $ha(b){if(f.C.U("showChartMeasures")!=b){const a=!e.v(f.C.U("showChartMeasures"));
f.C.na("showChartMeasures",b);a&&f.bb()}}static get Cf(){return f.U("showTotals")}static set Cf(b){if(f.C.U("showTotals")!=b){const a=!e.v(f.C.U("showTotals"));f.C.na("showTotals",b);f.cv=f.Lz("showTotals");a&&f.bb()}}static get Xha(){return f.U("showAutoCalculationBar")}static set Xha(b){if(f.C.U("showAutoCalculationBar")!=b){const a=!e.v(f.C.U("showAutoCalculationBar"));f.C.na("showAutoCalculationBar",b);a&&f.bb()}}static get Bf(){return f.U("showGrandTotals")}static set Bf(b){if(f.C.U("showGrandTotals")!=
b){const a=!e.v(f.C.U("showGrandTotals"));f.C.na("showGrandTotals",b);f.cv=f.Lz("showGrandTotals");a&&f.bb()}}static get Je(){return f.U("strictDataTypes")}static set Je(b){if(f.C.U("strictDataTypes")!==b){const a=!e.v(f.C.U("strictDataTypes"));f.C.na("strictDataTypes",b);a&&f.bb()}}static get qL(){return f.U("defaultDateType")}static set qL(b){if(f.C.U("defaultDateType")!=b&&e.u.i.input.sa.valid(b)){const a=!e.v(f.C.U("defaultDateType"));f.C.na("defaultDateType",b);a&&f.bb()}}static get Ep(){return f.U("datePattern")}static set Ep(b){if(f.C.U("datePattern")!=
b){const a=!e.v(f.C.U("datePattern"));f.C.na("datePattern",b);a&&f.bb()}}static get rk(){return f.U("dateTimePattern")}static set rk(b){if(f.C.U("dateTimePattern")!=b){const a=!e.v(f.C.U("dateTimePattern"));f.C.na("dateTimePattern",b);a&&f.bb()}}static get Wo(){return f.U("timePattern")}static set Wo(b){if(f.C.U("timePattern")!=b){const a=!e.v(f.C.U("timePattern"));f.C.na("timePattern",b);a&&f.bb()}}static get Mj(){return f.U("dateTimezoneOffset")}static set Mj(b){if(f.C.U("dateTimezoneOffset")!=
b){const a=!e.v(f.C.U("dateTimezoneOffset"));f.C.na("dateTimezoneOffset",b);a&&f.bb()}}static get G4(){return f.U("showCalculatedValuesButton")}static set G4(b){if(f.C.U("showCalculatedValuesButton")!=b){const a=!e.v(f.C.U("showCalculatedValuesButton"));f.C.na("showCalculatedValuesButton",b);a&&f.bb()}}static get PV(){return f.U("showOutdatedDataAlert")}static set PV(b){if(f.C.U("showOutdatedDataAlert")!=b){const a=!e.v(f.C.U("showOutdatedDataAlert"));f.C.na("showOutdatedDataAlert",b);a&&f.bb()}}static get Bba(){return f.U("defaultHierarchySortName")}static set Bba(b){if(f.C.U("defaultHierarchySortName")!=
b){const a=!e.v(f.C.U("defaultHierarchySortName"));f.C.na("defaultHierarchySortName",b);a&&f.bb()}}static get xx(){return f.U("showAggregationLabels")}static set xx(b){if(f.C.U("showAggregationLabels")!=b){const a=!e.v(f.C.U("showAggregationLabels"));f.C.na("showAggregationLabels",b);a&&f.bb()}}static get uH(){return f.U("grandTotalsPosition")}static set uH(b){if(f.C.U("grandTotalsPosition")!=b){const a=!e.v(f.C.U("grandTotalsPosition"));f.C.na("grandTotalsPosition",b);f.cv=f.Lz("grandTotalsPosition");
a&&f.bb()}}static get $K(){return f.U("columnTotalsPosition")}static set $K(b){if(f.C.U("columnTotalsPosition")!=b){const a=!e.v(f.C.U("columnTotalsPosition"));f.C.na("columnTotalsPosition",b);f.cv=f.Lz("columnTotalsPosition");a&&f.bb()}}static get kI(){return f.U("showReportFiltersArea")}static set kI(b){if(f.C.U("showReportFiltersArea")!=b){const a=!e.v(f.C.U("showReportFiltersArea"));f.C.na("showReportFiltersArea",b);a&&f.bb()}}static get Uy(){return this.readOnly?this.JB.dragging:f.U("dragging")}static set Uy(b){if(f.C.U("dragging")!=
b){const a=!e.v(f.C.U("dragging"));f.C.na("dragging",b);a&&f.bb()}}static get Gw(){return f.U("filterWeekOffset")}static set Gw(b){if(f.C.U("filterWeekOffset")!=b){const a=!e.v(f.C.U("filterWeekOffset"));f.C.na("filterWeekOffset",b);a&&f.bb()}}static get n0(){return f.U("filterDateFormat")}static set n0(b){if(f.C.U("filterDateFormat")!=b){const a=!e.v(f.C.U("filterDateFormat"));f.C.na("filterDateFormat",b);a&&f.bb()}}static get vS(){return f.U("filterLiveSearch")}static set vS(b){if(f.C.U("filterLiveSearch")!=
b){const a=!e.v(f.C.U("filterLiveSearch"));f.C.na("filterLiveSearch",b);a&&f.bb()}}static get Nm(){return f.U("liveFiltering")}static set Nm(b){if(f.C.U("liveFiltering")!=b){const a=!e.v(f.C.U("liveFiltering"));f.C.na("liveFiltering",b);a&&f.bb()}}static get FC(){return f.U("fieldListPosition")}static set FC(b){if(f.C.U("fieldListPosition")!=b){const a=!e.v(f.C.U("fieldListPosition"));f.C.na("fieldListPosition",b);a&&f.bb()}}static get YN(){return f.U("validateFormulas")}static set YN(b){if(f.C.U("validateFormulas")!=
b){const a=!e.v(f.C.U("validateFormulas"));f.C.na("validateFormulas",b);a&&f.bb()}}static get jw(){return f.U("caseSensitiveMembers")}static set jw(b){if(f.C.U("caseSensitiveMembers")!=b){const a=!e.v(f.C.U("caseSensitiveMembers"));f.C.na("caseSensitiveMembers",b);a&&f.bb()}}static get iia(){return f.U("simplifyFieldListFolders")}static set iia(b){if(f.C.U("simplifyFieldListFolders")!=b){const a=!e.v(f.C.U("simplifyFieldListFolders"));f.C.na("simplifyFieldListFolders",b);a&&f.bb()}}static get A5(){return f.U("validateReportFiles")}static set A5(b){if(f.C.U("validateReportFiles")!=
b){const a=!e.v(f.C.U("validateReportFiles"));f.C.na("validateReportFiles",b);a&&f.bb()}}static get hR(){return f.U("allowBrowsersCache")}static set hR(b){if(f.C.U("allowBrowsersCache")!=b){const a=!e.v(f.C.U("allowBrowsersCache"));f.C.na("allowBrowsersCache",b);a&&f.bb()}}static get Ys(){return f.U("showEmptyValues")}static set Ys(b){if(f.C.U("showEmptyValues")!=b){const a=!e.v(f.C.U("showEmptyValues"));f.C.na("showEmptyValues",b);a&&f.bb()}}static get br(){return f.U("distinguishNullUndefinedEmpty")}static set br(b){if(f.C.U("distinguishNullUndefinedEmpty")!=
b){const a=!e.v(f.C.U("distinguishNullUndefinedEmpty"));f.C.na("distinguishNullUndefinedEmpty",b);a&&f.bb()}}static get lW(){return f.U("useCaptionsInCalculatedValueEditor")}static set lW(b){if(f.C.U("useCaptionsInCalculatedValueEditor")!=b){const a=!e.v(f.C.U("useCaptionsInCalculatedValueEditor"));f.C.na("useCaptionsInCalculatedValueEditor",b);a&&f.bb()}}static get mS(){return f.U("expandExecutionTimeout")}static set mS(b){if(f.C.U("expandExecutionTimeout")!=b){const a=!e.v(f.C.U("expandExecutionTimeout"));
f.C.na("expandExecutionTimeout",b);a&&f.bb()}}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.na("readOnly",b);a&&f.bb()}}static bb(){f.M_||f.V().Fa(new v.fa(l.jc.nd.dn))}}f.cv=!1;f.M_=!1;f.Pra=["gridType","showTotals","showGrandTotals","grandTotalsPosition","columnTotalsPosition"];f.JB={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.Sd={configuratorActive:!1,configuratorOpened:!1,configuratorButton:!0,viewType:e.K.Id.ot,chartTitle:"",gridType:e.K.Y.te.uA,gridTitle:"",chartType:e.K.Bd.Me.tA,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.Sa,datePattern:"dd/MM/yyyy",dateTimePattern:"dd/MM/yyyy HH:mm:ss",dateTimezoneOffset:null,timePattern:null,showCalculatedValuesButton:!0,showOutdatedDataAlert:!1,defaultHierarchySortName:e.u.i.za.ic,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}}na(b,a){this[b]=a}U(b){return this[b]}iE(){for(var b in this.Sd)this[b]=this.Sd[b]}pua(){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.Sd[a]||"object"==typeof this[a]&&u.Sc.Eg(this[a])&&u.Sc.Eg(this.Sd[a]))&&(this[a]=void 0)}else for(a in this.Sd)if(this[a]==this.Sd[a]||"object"==typeof this[a]&&u.Sc.Eg(this[a])&&u.Sc.Eg(this.Sd[a]))this[a]=void 0}static zb(b){var a=new f;if(void 0==b)return a;null!=b.options&&(b=b.options);b instanceof f||(b=f.fm(b));null!=b.configuratorActive&&a.na("configuratorActive",b.configuratorActive);null!=b.configuratorButton&&a.na("configuratorButton",b.configuratorButton);null!=
b.viewType&&e.K.Id.Ug(b.viewType)&&a.na("viewType",b.viewType);null!=b.chartTitle&&a.na("chartTitle",b.chartTitle);null!=b.gridTitle&&a.na("gridTitle",b.gridTitle);null!=b.chartType&&a.na("chartType",e.K.Bd.Me.validate(b.chartType));null!=b.chartOneLevel&&a.na("chartOneLevel",b.chartOneLevel);null!=b.chartOneLevelTuple&&a.na("chartOneLevelTuple",b.chartOneLevelTuple);null!=b.chartOneLevelColumnTuple&&a.na("chartOneLevelColumnTuple",b.chartOneLevelColumnTuple);null!=b.chartActiveMeasure&&a.na("chartActiveMeasure",
b.chartActiveMeasure);null!=b.chartActiveMeasures&&a.na("chartActiveMeasures",b.chartActiveMeasures);null!=b.chartActiveTupleIndex&&a.na("chartActiveTupleIndex",b.chartActiveTupleIndex);null!=b.chartAutoRange&&a.na("chartAutoRange",b.chartAutoRange);null!=b.chartReversedAxes&&a.na("chartReversedAxes",b.chartReversedAxes);null!=b.chartPosition&&a.na("chartPosition",b.chartPosition);null!=b.chartAxisShortNumberFormat&&a.na("chartAxisShortNumberFormat",b.chartAxisShortNumberFormat);null!=b.classicView&&
1==b.classicView&&a.na("gridType",e.K.Y.te.nv);null!=b.tableType&&b.tableType==e.K.Y.te.Bh&&a.na("gridType",e.K.Y.te.Bh);null!=b.flatView&&1==b.flatView&&a.na("gridType",e.K.Y.te.Bh);null!=b.gridType&&a.na("gridType",b.gridType);null!=b.showAutoCalculationBar&&a.na("showAutoCalculationBar",b.showAutoCalculationBar);null!=b.liveFiltering&&a.na("liveFiltering",b.liveFiltering);null!=b.fieldListPosition&&a.na("fieldListPosition",b.fieldListPosition);null!=b.showFilter&&a.na("showFilter",b.showFilter);
null!=b.showDefaultSlice&&a.na("showDefaultSlice",b.showDefaultSlice);null!=b.useOlapFormatting&&a.na("useOlapFormatting",b.useOlapFormatting);null!=b.showMemberProperties&&a.na("showMemberProperties",b.showMemberProperties);null!=b.showEmptyData&&a.na("showEmptyData",b.showEmptyData);null!=b.showFilterInCharts&&a.na("showFilterInCharts",b.showFilterInCharts);null!=b.showAggregations&&a.na("showAggregations",b.showAggregations);null!=b.showHierarchyCaptions&&a.na("showHierarchyCaptions",b.showHierarchyCaptions);
null!=b.drillthroughMaxRows&&a.na("drillthroughMaxRows",b.drillthroughMaxRows);null!=b.showAllFieldsDrillThrough&&a.na("showAllFieldsDrillThrough",b.showAllFieldsDrillThrough);null!=b.showFieldListSearch&&a.na("showFieldListSearch",b.showFieldListSearch);null!=b.showChartDataLabels&&a.na("showChartDataLabels",b.showChartDataLabels);null!=b.showAllChartLabels&&a.na("showAllChartLabels",b.showAllChartLabels);null!=b.chartMultipleMeasures&&a.na("chartMultipleMeasures",b.chartMultipleMeasures);null!=
b.showHeaders&&a.na("showHeaders",b.showHeaders);null!=b.showReportFiltersArea&&a.na("showReportFiltersArea",b.showReportFiltersArea);null!=b.showExtraTotalLabels&&a.na("showExtraTotalLabels",b.showExtraTotalLabels);null!=b.grouping&&a.na("grouping",b.grouping);null!=b.editing&&a.na("editing",b.editing);null!=b.drillThrough&&a.na("drillThrough",b.drillThrough);null!=b.showDrillThroughConfigurator&&a.na("showDrillThroughConfigurator",b.showDrillThroughConfigurator);null!=b.sorting&&(a.na("sorting",
b.sorting),"true"==a.U("sorting").toString().toLowerCase()&&a.na("sorting","on"),"false"==a.U("sorting").toString().toLowerCase()&&a.na("sorting","off"));null!=b.dragging&&a.na("dragging",b.dragging);null!=b.showHierarchies&&a.na("showHierarchies",b.showHierarchies);null!=b.showChartsWarning&&a.na("showChartsWarning",b.showChartsWarning);null!=b.showChartLegend&&a.na("showChartLegend",b.showChartLegend);null!=b.showChartLegendButton&&a.na("showChartLegendButton",b.showChartLegendButton);null!=b.saveAllFormats&&
a.na("saveAllFormats",b.saveAllFormats);null!=b.calculatedValuesOLAP&&a.na("calculatedValuesOLAP",b.calculatedValuesOLAP);null!=b.includeEmptySubtotalsOLAP&&a.na("includeEmptySubtotalsOLAP",b.includeEmptySubtotalsOLAP);null!=b.showChartOneMeasureSelection&&a.na("showChartOneMeasureSelection",b.showChartOneMeasureSelection);null!=b.showChartMeasures&&a.na("showChartMeasures",b.showChartMeasures);null!=b.showTotals&&(a.na("showTotals",b.showTotals),"true"==a.U("showTotals").toString().toLowerCase()&&
a.na("showTotals","on"),"false"==a.U("showTotals").toString().toLowerCase()&&a.na("showTotals","off"));null!=b.showGrandTotals&&(a.na("showGrandTotals",b.showGrandTotals),"true"==a.U("showGrandTotals").toString().toLowerCase()&&a.na("showGrandTotals","on"),"false"==a.U("showGrandTotals").toString().toLowerCase()&&a.na("showGrandTotals","off"));null!=b.defaultDateType&&a.na("defaultDateType",b.defaultDateType);null!=b.strictDataTypes&&a.na("strictDataTypes",b.strictDataTypes);null!=b.datePattern&&
a.na("datePattern",b.datePattern);null!=b.dateTimePattern&&a.na("dateTimePattern",b.dateTimePattern);null!=b.dateTimezoneOffset&&a.na("dateTimezoneOffset",b.dateTimezoneOffset);null!=b.timePattern&&a.na("timePattern",b.timePattern);null!=b.showCalculatedValuesButton&&a.na("showCalculatedValuesButton",b.showCalculatedValuesButton);null!=b.showOutdatedDataAlert&&a.na("showOutdatedDataAlert",b.showOutdatedDataAlert);null!=b.defaultHierarchySortName&&a.na("defaultHierarchySortName",b.defaultHierarchySortName);
null!=b.showAggregationLabels&&a.na("showAggregationLabels",b.showAggregationLabels);null!=b.grandTotalsPosition&&a.na("grandTotalsPosition",b.grandTotalsPosition);null!=b.columnTotalsPosition&&a.na("columnTotalsPosition",b.columnTotalsPosition);e.v(b.filterWeekOffset)||a.na("filterWeekOffset",b.filterWeekOffset);e.v(b.filterDateFormat)||a.na("filterDateFormat",b.filterDateFormat);e.v(b.filterLiveSearch)||a.na("filterLiveSearch",b.filterLiveSearch);e.v(b.caseSensitiveMembers)||a.na("caseSensitiveMembers",
b.caseSensitiveMembers);e.v(b.validateFormulas)||a.na("validateFormulas",b.validateFormulas);e.v(b.simplifyFieldListFolders)||a.na("simplifyFieldListFolders",b.simplifyFieldListFolders);e.v(b.validateReportFiles)||a.na("validateReportFiles",b.validateReportFiles);e.v(b.allowBrowsersCache)||a.na("allowBrowsersCache",b.allowBrowsersCache);e.v(b.showEmptyValues)||a.na("showEmptyValues",b.showEmptyValues);e.v(b.distinguishNullUndefinedEmpty)||a.na("distinguishNullUndefinedEmpty",b.distinguishNullUndefinedEmpty);
e.v(b.useCaptionsInCalculatedValueEditor)||a.na("useCaptionsInCalculatedValueEditor",b.useCaptionsInCalculatedValueEditor);!e.v(b.expandExecutionTimeout)&&b.expandExecutionTimeout>a.Sd.expandExecutionTimeout&&a.na("expandExecutionTimeout",parseInt(b.expandExecutionTimeout));e.v(b.readOnly)||a.na("readOnly",b.readOnly);return a}static fm(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.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.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.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.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)}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.ah(k[d].uniqueName);null!=k[d].aggregation&&(g.aa=k[d].aggregation);a.chartActiveMeasures.push(g)}else a.chartActiveMeasures.push(new l.hb.ah(k[d]))}else a.chartActiveMeasure=new l.hb.ah,null!=c.activeMeasure.uniqueName?(a.chartActiveMeasure.A=c.activeMeasure.uniqueName,null!=c.activeMeasure.aggregation&&(a.chartActiveMeasure.aa=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));return a}Qa(){var b={};null!=this.viewType&&(b.viewType=this.viewType);var a={};this.gridType===e.K.Y.te.uA?a.type=e.K.Y.te.uA:
this.gridType===e.K.Y.te.nv?a.type=e.K.Y.te.nv:this.gridType===e.K.Y.te.Bh&&(a.type=e.K.Y.te.Bh);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);u.Sc.Eg(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.Id.Tn&&null!=this.chartPosition&&(a.position=this.chartPosition);this.chartType==e.K.Bd.Me.yv&&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].aa&&""!==this.chartActiveMeasures[d].aa&&(g.aggregation=this.chartActiveMeasures[d].aa);c.push(g)}0<c.length&&(a.activeMeasure=c)}}else null!=this.chartActiveMeasure&&(g={},g.uniqueName=this.chartActiveMeasure.A,null!=this.chartActiveMeasure.aa&&""!=this.chartActiveMeasure.aa&&(g.aggregation=this.chartActiveMeasure.aa),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.Sc.Eg(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);u.Sc.Eg(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.Sd.expandExecutionTimeout&&(b.expandExecutionTimeout=this.expandExecutionTimeout);e.v(this.readOnly)||(b.readOnly=this.readOnly);return b}static wk(b){var a=b.find("params"),c=new f;0!=a.find("param[name=configuratorActive]").length&&c.na("configuratorActive",
e.P.Zc(a.find("param[name=configuratorActive]").text()));0!=a.find("param[name=configuratorButton]").length&&c.na("configuratorButton",e.P.Zc(a.find("param[name=configuratorButton]").text()));0!=a.find("param[name=viewType]").length&&c.na("viewType",a.find("param[name=viewType]").text());0!=a.find("param[name=gridTitle]").length&&c.na("gridTitle",a.find("param[name=gridTitle]").text());0!=a.find("param[name=showFilter]").length&&c.na("showFilter",e.P.Zc(a.find("param[name=showFilter]").text()));0!=
a.find("param[name=showFilterInCharts]").length&&c.na("showFilterInCharts",e.P.Zc(a.find("param[name=showFilterInCharts]").text()));0!=a.find("param[name=showAggregations]").length&&c.na("showAggregations",e.P.Zc(a.find("param[name=showAggregations]").text()));0!=a.find("param[name=showHierarchyCaptions]").length&&c.na("showHierarchyCaptions",e.P.Zc(a.find("param[name=showHierarchyCaptions]").text()));0!=a.find("param[name=showHeaders]").length&&c.na("showHeaders",e.P.Zc(a.find("param[name=showHeaders]").text()));
0!=a.find("param[name=showReportFiltersArea]").length&&c.na("showReportFiltersArea",e.P.Zc(a.find("param[name=showReportFiltersArea]").text()));0!=a.find("param[name=showExtraTotalLabels]").length&&c.na("showExtraTotalLabels",e.P.Zc(a.find("param[name=showExtraTotalLabels]").text()));0!=a.find("param[name=editing]").length&&c.na("editing",e.P.Zc(a.find("param[name=editing]").text()));0!=a.find("param[name=grouping]").length&&c.na("grouping",e.P.Zc(a.find("param[name=grouping]").text()));0!=a.find("param[name=drillThrough]").length&&
c.na("drillThrough",e.P.Zc(a.find("param[name=drillThrough]").text()));0!=a.find("param[name=showDrillThroughConfigurator]").length&&c.na("showDrillThroughConfigurator",e.P.Zc(a.find("param[name=showDrillThroughConfigurator]").text()));0!=a.find("param[name=sorting]").length&&c.na("sorting",a.find("param[name=sorting]").text());0!=a.find("param[name=showHierarchies]").length&&c.na("showHierarchies",e.P.Zc(a.find("param[name=showHierarchies]").text()));0!=a.find("param[name=showTotals]").length&&(c.na("showTotals",
a.find("param[name=showTotals]").text()),"true"==c.U("showTotals").toString().toLowerCase()&&c.na("showTotals","on"),"false"==c.U("showTotals").toString().toLowerCase()&&c.na("showTotals","off"));0!=a.find("param[name=showGrandTotals]").length&&(c.na("showGrandTotals",a.find("param[name=showGrandTotals]").text()),"true"==c.U("showGrandTotals").toString().toLowerCase()&&c.na("showGrandTotals","on"),"false"==c.U("showGrandTotals").toString().toLowerCase()&&c.na("showGrandTotals","off"));0!=a.find("param[name=showDefaultSlice]").length&&
c.na("showDefaultSlice",e.P.Zc(a.find("param[name=showDefaultSlice]").text()));0!=a.find("param[name=useOlapFormatting]").length&&c.na("useOlapFormatting",e.P.Zc(a.find("param[name=useOlapFormatting]").text()));0!=a.find("param[name=showMemberProperties]").length&&c.na("showMemberProperties",e.P.Zc(a.find("param[name=showMemberProperties]").text()));0!=a.find("param[name=showEmptyData]").length&&c.na("showEmptyData",e.P.Zc(a.find("param[name=showEmptyData]").text()));0!=a.find("param[name=showChartDataLabels]").length&&
c.na("showChartDataLabels",e.P.Zc(a.find("param[name=showChartDataLabels]").text()));0!=a.find("param[name=showAllChartLabels]").length&&c.na("showAllChartLabels",e.P.Zc(a.find("param[name=showAllChartLabels]").text()));0!=a.find("param[name=strictDataTypes]").length&&c.na("strictDataTypes",e.P.Zc(a.find("param[name=strictDataTypes]").text()));0!=a.find("param[name=defaultDateType]").length&&c.na("defaultDateType",a.find("param[name = defaultDateType]").text());0!=a.find("param[name=datePattern]").length&&
c.na("datePattern",a.find("param[name = datePattern]").text());0!=a.find("param[name=dateTimePattern]").length&&c.na("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.na("gridType",e.K.Y.te.nv);b=b.find("dataSource");void 0!==b.attr("tableType")&&b.attr("tableType")==e.K.Y.te.Bh&&c.na("gridType",e.K.Y.te.Bh);0!=a.find("param[name=flatView]").length&&1==e.P.Zc(a.find("param[name=flatView]").text())&&
c.na("gridType",e.K.Y.te.Bh);0!=a.find("param[name=defaultHierarchySortName]").length?c.na("defaultHierarchySortName",e.u.i.za.Ug(a.find("param[name = defaultHierarchySortName]").text())?a.find("param[name=defaultHierarchySortName]").text():e.u.i.za.ic):c.na("defaultHierarchySortName",c.U("gridType")==e.K.Y.te.Bh?e.u.i.za.fd:e.u.i.za.ic);0!=a.find("param[name=showCalculatedValuesButton]").length&&c.na("showCalculatedValuesButton",e.P.Zc(a.find("param[name = showCalculatedValuesButton]").text()));
0!=a.find("param[name=showOutdatedDataAlert]").length&&c.na("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.na("chartType",d.text());if(void 0!==d.attr("activeMeasure")){c.na("chartActiveMeasure",new l.hb.ah(d.attr("activeMeasure")));void 0!==d.attr("activeMeasureAggregation")&&c.na("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.ah(k[b]);m[b]&&(n.aa=m[b]);g.push(n)}0<g.length&&c.na("chartActiveMeasures",g)}void 0!==d.attr("pieDataIndex")&&c.na("chartActiveTupleIndex",parseInt(d.attr("pieDataIndex")));void 0!==d.attr("position")&&c.na("chartPosition",d.attr("position"));if(void 0!==d.attr("chartOneLevelTuple")){d=d.attr("chartOneLevelTuple").split(",");c.na("chartOneLevelTuple",[]);g=[];for(b=
0;b<d.length;b++)g[b]=parseInt(d[b]);c.na("chartOneLevelTuple",g)}}0!=a.find("param[name=chartOneLevel]").length&&c.na("chartOneLevel",e.P.Zc(a.find("param[name=chartOneLevel]").text()));0!=a.find("param[name=chartTitle]").length&&c.na("chartTitle",a.find("param[name=chartTitle]").text());0!=a.find("param[name=chartMultipleMeasures]").length&&c.na("chartMultipleMeasures",e.P.Zc(a.find("param[name=chartMultipleMeasures]").text()));0!=a.find("param[name=chartAutoRange]").length&&c.na("chartAutoRange",
e.P.Zc(a.find("param[name=chartAutoRange]").text()));0!=a.find("param[name=chartReversedAxes]").length&&c.na("chartReversedAxes",e.P.Zc(a.find("param[name=chartReversedAxes]").text()));0!=a.find("param[name=showChartsWarning]").length&&c.na("showChartsWarning",e.P.Zc(a.find("param[name=showChartsWarning]").text()));0!=a.find("param[name=showChartOneMeasureSelection]").length&&c.na("showChartOneMeasureSelection",e.P.Zc(a.find("param[name=showChartOneMeasureSelection]").text()));0!=a.find("param[name=showChartMeasures]").length&&
c.na("showChartMeasures",e.P.Zc(a.find("param[name=showChartMeasures]").text()));0!=a.find("param[name=showChartLegendButton]").length&&c.na("showChartLegendButton",e.P.Zc(a.find("param[name=showChartLegendButton]").text()));0!=a.find("param[name=saveAllFormats]").length&&c.na("saveAllFormats",e.P.Zc(a.find("param[name=saveAllFormats]").text()));0!=a.find("param[name=calculatedValuesOLAP]").length&&c.na("calculatedValuesOLAP",e.P.Zc(a.find("param[name=calculatedValuesOLAP]").text()));0!=a.find("param[name=includeEmptySubtotalsOLAP]").length&&
c.na("includeEmptySubtotalsOLAP",e.P.Zc(a.find("param[name=includeEmptySubtotalsOLAP]").text()));return c}Yo(){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.te.nv&&b.append(z.ba.create("<param/>").attr("name","classicView").text(!0));null!=this.U("gridType")&&this.U("gridType")==e.K.Y.te.Bh&&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.Sd.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].aa);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").aa&&""!=this.U("chartActiveMeasure").aa&&a.attr("activeMeasureAggregation",this.U("chartActiveMeasure").aa));this.U("chartOneLevel")&&0<this.U("chartOneLevelTuple").length&&a.attr("chartOneLevelTuple",this.U("chartOneLevelTuple").join(","));
b.append(a);return b}FD(b){for(var a in b)this.Sd.hasOwnProperty(a)&&void 0!=b[a]&&(this[a]=b[a])}}h.Eq=f})(l.C||(l.C={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends v.Ah{constructor(){super();if(null!=f.instance)throw Error("Singleton");}static V(){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.bb())}static get(b){return f.Xc.getItem(b)}static remove(b){f.Xc.removeItem(b);this.bb()}static c4(){f.Xc=new e.tb;this.bb()}static jAa(){for(var b=[],a=0;a<f.Xc.length;a++){var c=f.Xc.ea(a);c.Y1||b.push(c.Qa())}return b}static bb(){f.V().$a(l.jc.nd.dn)}}
f.Xc=new e.tb;h.Zm=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.hu=this.Ss=-1;this.ve=this.hierarchy=this.bc=this.aa=this.measure="";this.Xd=[];this.TG=null}get Y1(){return-1<this.ve.toLowerCase().indexOf(e.u.i.nc.OP)||-1<this.ve.toLowerCase().indexOf(e.u.i.nc.PP)}Qa(){var c={};c.id=this.id;c.row=this.Ss;c.column=this.hu;void 0!==this.Ak&&(c.isTotal=this.Ak);c.measure=this.measure;c.aggregation=this.aa;c.member=this.bc;c.hierarchy=this.hierarchy;c.formula=this.ve;null!=this.format&&
(c.format=this.format.Qa(),c.formatCSS=this.format.toString());return c}static zb(c){var d=new b;d.id=null!=c.id?c.id:e.P.NL();null!=c.row&&(d.Ss=c.row);null!=c.column&&(d.hu=c.column);if(null!=c.isTotal){if(1==c.isTotal||1==c.isTotal)d.Ak=!0;if(0==c.isTotal||0==c.isTotal)d.Ak=!1}null!=c.measure&&(d.measure=c.measure);null!=c.aggregation&&(d.aa=c.aggregation);null!=c.member&&(d.bc=e.u.ye.Ds(c.member));null!=c.hierarchy&&(d.hierarchy=e.u.ye.Pg(c.hierarchy));d.ve=c.formula;null!=c.format&&(d.format=
"string"===typeof c.format?a.DS(c.format):a.zb(c.format));c=new u.rJ;d.Xd=c.parse(d.ve);return null==d.Xd?null:d}}f.B6=b;class a{static zb(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 DS(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.zb(d)}Qa(){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}Dia(){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.Dia(),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.ALa=a})(h.X||(h.X={}))})(l.va||(l.va={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){var h;(function(f){class b extends v.Ah{constructor(){super();if(null!=b.instance)throw Error("Singleton");}static V(){null==b.instance&&(b.instance=new b);return b.instance}static dispose(){b.kh=null;b.Xg=null;b.Vf=null;b.Uj=null;b.UQ=null;b.TF=null;b.Lg=null;b.Lf=null;b.Zk=null;b.bQ=null;b.yF=null;b.instance=null}static get eha(){return this.UQ=b.Qa(e.u.i.ja.La)}static get Paa(){return this.bQ=b.Qa(e.u.i.ja.Xa)}static clear(){b.Vf={};b.Lf={};b.TF={};b.UQ={};b.yF={};b.bQ=
{};b.Uj={};b.Zk={};b.Xg=[];b.Lg=[];b.kh=[]}static KZ(a){if(b.xaa(a.Vf)||b.xaa(a.Lf))b.TF=b.Yaa(a.Vf),b.yF=b.Yaa(a.Lf),b.Iga();else if(b.yaa(a.Vf)||b.yaa(a.Lf))b.TF=a.Vf,b.yF=a.Lf,b.Iga();b.Uj=a.Uj;b.Zk=a.Zk;b.Xg=a.Xg;b.Lg=a.Lg;b.kh=a.kh}static Iga(){l.Va.V().Ia.aE==l.jc.nd.ii?this.aq():e.u.Ra.V().N(e.u.tg.Pk,b.aq,1)}static xaa(a){var c=/[A-Za-z]+/,d;for(d in a)if(-1<a[d].toString().search(c))return!0;return!1}static yaa(a){var c=/[A-Za-z]+/,d;for(d in a)if(-1<d.toString().search(c))return!0;return!1}static Yaa(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 aq(){e.u.Ra.V().sb(e.u.tg.Pk,b.aq);b.Vf=b.zb(e.u.i.ja.La);b.TF={};b.Lf=b.zb(e.u.i.ja.Xa);b.yF={}}static zb(a){var c={},d=a==e.u.i.ja.La?b.TF:b.yF,g=e.u.Ra.V().ua.hd(),k;for(k in d){var m=k.split(","),n=d[k],p=e.u.Ra.V().ua.axes.getItem(a).Ya;if(p&&!l.C.F.rc)if(e.u.i.da.iA(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.ah(m[m.length-2],m[m.length-1]);m.splice(m.length-2,2)}else t=new l.hb.ah(m[m.length-1]),m.splice(m.length-1,1);for(var r=!1,w=[],y=0;y<m.length;y++)if(l.C.F.rc)if(a==e.u.i.ja.La)w.push(m[y]);else{var A=m[y];A=e.u.Ra.V().ra.xe.indexOf(A);if(-1==A){r=!0;break}w.push(A)}else{A=e.u.ye.Ds(m[y]);var C=a==e.u.i.ja.La?e.u.Ra.V().ua.yb.ea(y):e.u.Ra.V().ua.Db.ea(y);if(void 0==C){r=!0;break}A=C.Ib(A);if(null==A){r=!0;break}A.Zb?w.push(""):w.push(A.ordinal.toString())}if(!r){if(p&&!l.C.F.rc){p=(p=e.u.Ra.V().ua.vi(t))?
p.index:-1;if(-1==p&&""!=t.A)continue;w.push(p)}c[w.toString()]=n}}return c}static Qa(a){var c={},d=a==e.u.i.ja.La?b.Vf:b.Lf,g=e.v(e.u.Ra.V().ua)?[]:e.u.Ra.V().ua.hd(),k;for(k in d){var m=k.split(","),n=d[k],p=e.u.Ra.V().ua.axes.getItem(a).Ya;if(p&&!l.C.F.rc){var t=parseInt(m[m.length-1]);m.splice(m.length-1,1)}for(var r=!1,w=[],y=0;y<m.length;y++)if(l.C.F.rc)if(a==e.u.i.ja.La)w.push(m[y]);else{var A=""===m[y]?0:parseInt(m[y]);A=e.u.Ra.V().ra.xe[A];if(null==A){r=!0;break}w.push(A)}else{A=""===m[y]?
0:parseInt(m[y]);var C=a==e.u.i.ja.La?e.u.Ra.V().ua.yb.ea(y):e.u.Ra.V().ua.Db.ea(y);if(null==C){r=!0;break}A=C.ya(A);if(null==A){r=!0;break}w.push(A.qj)}if(!r){if(p&&!l.C.F.rc){if(t>=g.length)continue;-1==t&&1==g.length&&(t=0);m=g[t];w.push(m?m.A:"");w.push(m?m.aa:"")}c[w.toString()]=n}}return c}static rH(){const a=new l.hb.Gv;a.Vf=h.vd.eha;a.Lf=h.vd.Paa;a.Xg=h.vd.Xg;a.Lg=h.vd.Lg;a.Uj=h.vd.Uj;a.Zk=h.vd.Zk;a.kh=h.vd.kh;a.uE=h.vd.uE;return a}}b.Vf={};b.Lf={};b.uE=0;b.Uj={};b.Zk={};b.Xg=[];b.Lg=[];b.kh=
[];b.TF={};b.UQ={};b.yF={};b.bQ={};f.vd=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.zS[b]))return a(null,f.zS[b]);var c=new z.l9;c.N(v.fa.Oc,()=>{try{var d=e.P.Awa(new Uint8Array(c.response)),g=window.btoa(d);f.zS[b]={name:b.substring(b.lastIndexOf("/")+1,b.lastIndexOf(".")),filename:b.substr(b.lastIndexOf("/")+1),content:g};a(null,f.zS[b])}catch(k){a(k)}});c.N(v.fa.Aa,()=>{a({message:l.B.j.$na,name:null})});c.load(b)}}f.zS={};h.C7=f})(l.Ac||(l.Ac={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b,a){this.LQ=b;this.SY=a}get Fk(){return this.LQ}get xh(){return this.SY}NAa(){return Math.round(this.Fk*f.J9/f.t$)}Pza(){return Math.round(this.xh*f.J9/f.t$)}static get Fwa(){return f.jra}static eja(b){return void 0!=b&&f.v$.hasOwnProperty(b.toLocaleLowerCase())?b.toLocaleLowerCase():f.Fwa}static lH(b){return this.v$[b]}}f.t$=25.4;f.jra="a4";f.J9=72;f.v$={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.Xx=f})(l.Ac||(l.Ac={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){throw Error("Singleton");}static pg(b,a,c=!1,d=null){switch(a.type){case h.ej.vv:f.nS(b,a,c,d);break;case h.ej.LA:f.nca(b,a,c,d);break;case h.ej.TA:f.Exa(b,a,c,d)}}static r_(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.X.ed.dz(a[c],["fill","stroke","shape-rendering","stroke-width"]);u.Kd().Xi&&(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].R("font-size")),a[c].attr("style",e.K.Y.X.ed.dz(a[c],"font-family font-weight fill color text-anchor text-rendering".split(" "))+"white-space:nowrap;"),a[c].attr("font-size",b),a[c].attr("class","")}static JZ(b,a){b.R("font-family",a.R("font-family"));b.R("font-size",a.R("font-size"));b.R("color",a.R("color"));b.R("border-top",a.R("border-top"));b.R("background",a.R("background"));b.R("padding-top",a.R("padding-top"));b.R("padding-left",
a.R("padding-left"));b.R("padding-right",a.R("padding-right"));b.R("padding-bottom",a.R("padding-bottom"));b.R("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].R("display",c.R("display")),d[g].R("width",c.R("width")),d[g].R("height",c.R("height")),d[g].R("margin-right",c.R("margin-right")),d[g].R("vertical-align",c.R("vertical-align")),d[g].R("border-radius",c.R("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].R("color",c.R("color")),d[g].R("font-family",c.R("font-family")),d[g].R("font-size",c.R("font-size")),d[g].R("vertical-align",c.R("vertical-align")),d[g].R("margin-bottom",c.R("margin-bottom")||0);c=a.find("ul");d=b.find("ul",!0);for(g=0;g<d.length;g++)d[g].R("list-style-type",c.R("list-style-type")),d[g].R("padding-top",c.R("padding-top")||0),d[g].R("padding-right",c.R("padding-right")||0),d[g].R("padding-bottom",c.R("padding-bottom")||0),d[g].R("padding-left",c.R("padding-left")||
0),d[g].R("margin-top",c.R("margin-top")||0),d[g].R("margin-right",c.R("margin-right")||0),d[g].R("margin-bottom",c.R("margin-bottom")||0),d[g].R("margin-left",c.R("margin-left")||0);c=a.find("td");d=b.find("td",!0);for(g=0;g<d.length;g++)d[g].R("padding-top",c.R("padding-top")),d[g].R("padding-right",c.R("padding-right")),d[g].R("padding-bottom",c.R("padding-bottom")),d[g].R("padding-left",c.R("padding-left")),d[g].R("vertical-align",c.R("vertical-align"));a=a.find("li",!0);d=b.find("li",!0);for(g=
0;g<d.length;g++)d[g].R("padding-left",a[g].R("padding-left")),d[g].R("padding-top",a[g].R("padding-top")),d[g].R("padding-bottom",a[g].R("padding-bottom")),d[g].R("white-space","nowrap");b.find("table").R("width","initial")}static jL(b){var a="";e.ia(b)||(a=b.replace(/##PAGE-NUMBER##/gi,f.ll++ +""),a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()));return a}static nS(b,a,c=!1,d=null){var g=b.Am.es.G.find("svg").clone();try{c||f.uy(l.C.F.zm,g,b.Am.tq.G);c&&(g.attr("viewBox","0 0 "+g.attr("width")+
" "+g.attr("height")),g.R("width","100%"));b.G.append(g);f.r_(g);g.d4("class");var k=z.ba.Ic(z.$X.Vb(g.element));g.remove();if(b.Am.ff){var m=b.Am.ff.G.clone();f.JZ(m,b.Am.ff.G);c&&(m.R("max-width",""),m.R("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.ia(a.Ui)||(m=a.Ui,m=m.replace(/##PAGE-NUMBER##/gi,""),m=m.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()));
var n="";e.ia(a.pj)||(n=a.pj,n=n.replace(/##PAGE-NUMBER##/gi,""),n=n.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()));b=e.P.bind(b,e.ia(l.C.F.zm)?l.B.j.JW:l.C.F.zm,m,k,n);b=z.ba.format(b);0==a.filename.length&&(a.filename="pivotchart.html");h.Sn.save(b,a);l.Va.V().Fa(new v.fa(e.vg.oh))}catch(p){console.error("Export Charts error:",p);g.remove();e.Za(l.B.j.pt,l.B.j.Aa,e.xb.Aa);if(c)return null!=d&&d(""),"";l.Va.V().Fa(new v.fa(e.vg.oh))}}static QR(b){if(null==b)return null;b=b.replace(/##PAGE-NUMBER##/gi,
"");b=b.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());return(new x.Ea("div")).R("background","white").R("text-align","left").R("z-index",-1).html(b)}static nca(b,a,c=!1,d=null){const g=["lib/html2canvas.v1.min.js","lib/canvg.min.js"];u.Kd().Xi&&g.unshift("lib/promise.min.js");u.Zn.load(g,()=>{var k=document.createElement("canvas"),m=b.Am.es.G.find("svg").clone();try{f.uy(l.C.F.zm,m,b.Am.tq.G);m.prepend((new x.Ea("rect")).R("width","100%").R("height","100%").R("fill","white"));f.Uga(m);
b.G.append(m);f.r_(m);canvg(k,z.ba.Ic(z.$X.Vb(m.element)));m.remove();var n=(new x.Ea("img")).attr("src",k.toDataURL());c&&n.R("max-width","100%");var p=new x.Ea("div");e.ia(a.Ui)||p.append(this.QR(a.Ui));p.append(n);p.R("padding-top","10px");p.R("padding-bottom","10px");if(b.Am.ff){var t=b.Am.ff.G.clone();t.width=b.Am.width;f.JZ(t,b.Am.ff.G);c&&(t.Xj("100%"),t.R("max-width",""));p.append(t)}e.ia(a.pj)||p.append(this.QR(a.pj));if(c)return null!=d&&(p.R("position",b.G.R("position")),p.R("top",b.G.R("top")),
p.R("bottom",b.G.R("bottom")),p.R("left",b.G.R("left")),p.R("right",b.G.R("right")),p.width=b.uf(),d(p)),p.html();p.R("position","absolute").R("top",0).R("left",0).R("overflow","hidden").R("text-align","center").R("background","white").R("z-index",-1).Xj(e.K.Mb.gv);e.K.Mb.Fb.G.prepend(p);p.R("left",-p.left-p.width+"px");html2canvasV1(p.element).then(r=>{p.remove();a.xC==l.hb.fp.UA?h.Sn.save(r,a):(r=e.P.uba(r.toDataURL()),0==a.filename.length&&(a.filename="pivotchart.png"),h.Sn.save(r,a));l.Va.V().Fa(new v.fa(e.vg.oh))})}catch(r){console.error("Export Charts error:",
r),m.remove(),null!=p&&p.remove(),e.Za(l.B.j.pt,l.B.j.Aa,e.xb.Aa),c&&null!=d?d(""):l.Va.V().Fa(new v.fa(e.vg.oh))}})}static uy(b,a,c){if(0<b.length){var d=e.K.Y.X.ed.dz(c,["font-family","font-size","font-weight","color"]);b=(new x.Ea("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 LC(){var b=
h.Xx.lH(f.nr);return"portrait"===f.rb.PD?b.xh:b.Fk}static get MC(){var b=h.Xx.lH(f.nr);return"portrait"===f.rb.PD?b.Fk:b.xh}static Exa(b,a,c=!1,d=null){e.Ca(!0,l.B.j.fF,"...",!0,!0);const g=["lib/html2canvas.v1.min.js","lib/jspdf.min.js"];u.Kd().Xi&&g.unshift("lib/promise.min.js");u.Zn.load(g,()=>{f.rb=a;f.nr=h.Xx.eja(a.nr);f.Ld=new jspdf.jsPDF(a.PD,"mm",f.nr,!u.Kd().Xi);f.$e=d;f.es=b;f.W3=c;f.xh=f.LC-2*f.Th;f.Fk=f.MC-2*f.Th;f.ig=f.Th;try{f.t2(()=>{f.SR(this.rb.Ui,this.rb.pj,()=>this.X2())})}catch(k){console.error("Export PDF error:",
k),e.Za(l.B.j.pt,l.B.j.Aa,e.xb.Aa),e.Ca(!1),l.Va.V().Fa(new v.fa(e.vg.oh)),f.clear()}})}static t2(b){e.v(f.rb.yS)?b():h.C7.load(f.rb.yS,(a,c)=>{e.v(a)?e.v(c)||(f.font=c,f.Ld.addFileToVFS(c.filename,c.content),f.Ld.addFont(c.filename,c.name,"normal")):e.Za(a.message,l.B.j.Aa,e.xb.Aa);b()})}static SR(b,a,c){var d=null==b,g=null==a;if(d&&g)c();else{if(!d){b=b.replace(/##PAGE-NUMBER##/gi,(f.ll+1).toString());b=b.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());var k=new x.Ea("div");k.R("position",
"absolute");k.R("background","white");k.Xj(h.Xe.Fz(f.MC-2*f.Ii));k.html(b);e.K.Mb.Fb.G.prepend(k);html2canvasV1(k.element,{scale:h.Xe.Dh}).then(n=>{k.remove();f.Im=n;d=!0;g&&c()})}if(!g){a=a.replace(/##PAGE-NUMBER##/gi,(f.ll+1).toString());a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());var m=new x.Ea("div");m.R("position","absolute");m.R("background","white");m.Xj(h.Xe.Fz(f.MC-2*f.Ii));m.html(a);e.K.Mb.Fb.G.prepend(m);html2canvasV1(m.element,{scale:h.Xe.Dh}).then(n=>{m.remove();f.Lp=
n;g=!0;d&&c()})}}}static uZ(b,a){b.addImage(a,"JPEG",f.Ii,f.Ii,h.Xe.Uf(a.width/h.Xe.Dh),h.Xe.Uf(a.height/h.Xe.Dh))}static tZ(b,a){b.addImage(a,"JPEG",f.Ii,f.LC-h.Xe.Uf(f.Lp.height/h.Xe.Dh)-f.Ii,h.Xe.Uf(a.width/h.Xe.Dh),h.Xe.Uf(a.height/h.Xe.Dh))}static dR(){null!=f.Im&&f.uZ(f.Ld,f.Im);null!=f.Lp&&f.tZ(f.Ld,f.Lp);f.xh=f.LC;f.xh-=e.v(f.Im)?f.Th:h.Xe.Uf(f.Im.height/h.Xe.Dh)+2*f.Ii;f.xh-=e.v(f.Lp)?f.Th:h.Xe.Uf(f.Lp.height/h.Xe.Dh)+2*f.Ii;f.ig=e.v(f.Im)?f.Th:h.Xe.Uf(f.Im.height/h.Xe.Dh)+2*f.Ii}static X2(){f.dR();
f.wIa()}static Xta(b){var a=f.es.Am.es.G.find("svg").clone(),c=document.createElement("canvas");a.prepend((new x.Ea("rect")).R("width","100%").R("height","100%").R("fill","white"));f.Uga(a);a.attr("width",parseInt(a.attr("width"))*h.Xe.Dh);a.attr("height",parseInt(a.attr("height"))*h.Xe.Dh);f.es.G.append(a);f.r_(a);canvg(c,z.ba.Ic(z.$X.Vb(a.element)),{scaleWidth:a.width*h.Xe.Dh,scaleHeight:a.height*h.Xe.Dh});a.detach();b(c)}static GCa(b){if(e.v(f.es.Am.ff))b(null);else{var a=f.es.Am.ff.G.clone();
a.width=f.es.Am.width;f.JZ(a,f.es.Am.ff.G);a.R("border","none").R("position","absolute").R("top",0).R("left",0).R("overflow","hidden").R("background","white").R("z-index",-1);f.W3&&a.R("width","100%").R("max-width","");e.K.Mb.Fb.G.prepend(a);html2canvasV1(a.element,{scale:h.Xe.Dh}).then(c=>{a.remove();b(c)})}}static wIa(){const b=["lib/html2canvas.v1.min.js","lib/canvg.min.js"];u.Kd().Xi&&b.unshift("lib/promise.min.js");u.Zn.load(b,()=>{try{f.Xta(a=>{f.GCa(c=>{var d=document.createElement("canvas");
d.width=a.width;d.height=a.height+(c?h.Xe.Fz(f.Th)/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);f.W3&&null!=f.$e?(l.C.F.je==e.K.Id.dj&&0==f.rb.filename.length&&(f.rb.filename="pivotcharts.pdf"),f.$e(d)):(f.ig+=h.Xe.uy(l.C.F.zm,f.Ld,f.ig,f.font),c=f.oha(h.Xe.Uf(d.width),h.Xe.Uf(d.height),f.Fk,f.xh),f.Ld.addImage(d,"JPEG",f.Th+c.x,f.ig,c.width,c.height),0==f.rb.filename.length&&(f.rb.filename="pivotcharts.pdf"),
f.rb.xC==l.hb.fp.UA?h.Sn.save(f.Ld,f.rb):h.Sn.save(e.P.c5(f.Ld.output()),f.rb),f.clear(),l.Va.V().Fa(new v.fa(e.vg.oh)))})})}catch(a){console.error("Export Charts error:",a),e.Za(l.B.j.pt,l.B.j.Aa,e.xb.Aa),f.W3&&null!=f.$e?f.$e(null):l.Va.V().Fa(new v.fa(e.vg.oh)),f.clear()}})}static clear(){f.es=null;f.rb=null;f.Ld=null;f.ig=0;f.xh=0;f.Fk=0;f.ll=0;f.Im=null;f.Lp=null}static Uga(b){b=b.find("title",!0);for(var a=0;a<b.length;a++)b[a].remove()}static oha(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.$e=null;f.Ii=5;f.Th=15;f.nr="a4";f.ll=0;h.xA=f})(l.Ac||(l.Ac={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){throw Error("Singleton");}static pg(b,a,c=null){const d=["lib/html2canvas.v1.min.js"];u.Kd().Xi&&d.unshift("lib/promise.min.js");u.Zn.load(d,()=>{f.rb=a;this.Xva();const g=b.G.clone(),k=this.QR(g,c);e.K.Mb.Fb.G.prepend(k);null==c?k.pq(g.height+this.rda()):k.pq(e.K.Mb.Fb.hq()+this.rda());k.R("left",-k.left-k.width+"px");try{html2canvasV1(k.element).then(m=>{f.RDa(m);k.Gg()})}catch(m){console.error("Export Image error:",m),e.Za(l.B.j.pt,l.B.j.Aa,
e.xb.Aa),k.Gg(),l.Va.V().Fa(new v.fa(e.vg.oh)),f.clear()}},()=>{l.Va.V().Fa(new v.fa(e.vg.oh));f.clear()})}static QR(b,a){a=(new x.Ea("div")).R("position","absolute").R("top","0px").R("left","0px").R("overflow","hidden").R("text-align","center").R("background","white").Xj(e.K.Mb.gv).R("z-index",-1).append(a);null!=f.Fu&&a.append(f.Fu);a.append(b.R("position","relative"));null!=f.wu&&a.append(f.wu);return a}static rda(){return(null==this.Fu?0:this.Fu.height)+(null==this.wu?0:this.wu.height)}static Xva(){const b=
h.Xx.lH("a4");let a=this.rb.Ui,c=this.rb.pj,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.Fu=new x.Ea("div"),this.Fu.R("background","white"),this.Fu.R("text-align","left"),this.Fu.R("z-index",-1),this.Fu.Xj(h.Xe.Fz(b.Fk-2*this.Ii)),this.Fu.html(a)),g||(c=c.replace(/##PAGE-NUMBER##/gi,""),c=c.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()),this.wu=new x.Ea("div"),this.wu.R("background","white"),this.wu.R("text-align",
"left"),this.wu.R("z-index",-1),this.wu.Xj(h.Xe.Fz(b.Fk-2*this.Ii)),this.wu.html(c)))}static RDa(b){if(f.rb.xC==l.hb.fp.UA)h.Sn.save(b,f.rb);else try{var a=e.P.uba(b.toDataURL());0==f.rb.filename.length&&(f.rb.filename="pivotgrid.png");e.v(a)||h.Sn.save(a,f.rb)}catch(c){e.Za("Due to security reason export to image cannot be completed when you run the component from the local folder.",l.B.j.Aa,e.xb.Aa)}l.Va.V().Fa(new v.fa(e.vg.oh));f.clear()}static clear(){f.rb=null;f.Fu=null;f.wu=null}}f.Ii=5;h.Z6=
f})(l.Ac||(l.Ac={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static pg(b,a,c,d,g=null){e.Ca(!0,l.B.j.fF,"...",!0,!0);const k=["lib/html2canvas.v1.min.js","lib/jspdf.min.js"];u.Kd().Xi&&k.unshift("lib/promise.min.js");u.Zn.load(k,()=>{f.clear();f.zH=l.C.F.rc;f.LT=b instanceof e.K.Nf.SE;f.Y=b;f.Cd=d;f.Dd=c;f.coords=b.la.coords;f.rb=a;f.nr=h.Xx.eja(a.nr);f.Ld=new jspdf.jsPDF(a.PD,"mm",f.nr,!u.Kd().Xi);f.lw=g;f.I3=null!=g&&l.C.F.je==e.K.Id.dj;f.xh=f.LC-2*f.Th;f.Fk=f.MC-2*f.Th;f.q5=f.Y.ug+c;f.r5=f.Y.nf+d;f.kA={};f.ig=
f.Th;try{f.Daa(),f.$0(),f.t2(()=>{f.SR(f.rb.Ui,f.rb.pj,()=>this.X2())})}catch(m){console.error("Export PDF error:",m),e.Za(l.B.j.pt,l.B.j.Aa,e.xb.Aa),e.Ca(!1),l.Va.V().Fa(new v.fa(e.vg.oh)),f.clear()}})}static t2(b){e.v(f.rb.yS)?b():h.C7.load(f.rb.yS,(a,c)=>{e.v(a)?e.v(c)||(f.font=c,f.Ld.addFileToVFS(c.filename,c.content),f.Ld.addFont(c.filename,c.name,"normal")):e.Za(a.message,l.B.j.Aa,e.xb.Aa);b()})}static SR(b,a,c){let d=null==b||null!=f.Im&&-1==b.search(f.rP),g=null==a||null!=f.Lp&&-1==a.search(f.rP);
if(d&&g)c();else{if(!d){b=b.replace(f.rP,(f.ll+1).toString());b=b.replace(f.v6,(new Date).toLocaleString());var k=new x.Ea("div");k.R("position","absolute");k.R("background","white");k.Xj(f.Fz(f.MC-2*f.Ii));k.html(b);e.K.Mb.Fb.G.prepend(k);html2canvasV1(k.element,{scale:f.Dh}).then(n=>{k.remove();f.Im=n;d=!0;g&&c()})}if(!g){a=a.replace(f.rP,(f.ll+1).toString());a=a.replace(f.v6,(new Date).toLocaleString());var m=new x.Ea("div");m.R("position","absolute");m.R("background","white");m.Xj(f.Fz(f.MC-2*
f.Ii));m.html(a);e.K.Mb.Fb.G.prepend(m);html2canvasV1(m.element,{scale:f.Dh}).then(n=>{m.remove();f.Lp=n;g=!0;d&&c()})}}}static uZ(b,a){b.addImage(a,"JPEG",f.Ii,f.Ii,f.Uf(a.width/f.Dh),f.Uf(a.height/f.Dh))}static tZ(b,a){b.addImage(a,"JPEG",f.Ii,f.LC-f.Uf(a.height/f.Dh)-f.Ii,f.Uf(a.width/f.Dh),f.Uf(a.height/f.Dh))}static dR(){null!=f.Im&&f.uZ(f.Ld,f.Im);null!=f.Lp&&f.tZ(f.Ld,f.Lp);f.xh=f.LC;f.xh-=e.v(f.Im)?f.Th:f.Uf(f.Im.height/f.Dh)+2*f.Ii;f.xh-=e.v(f.Lp)?f.Th:f.Uf(f.Lp.height/f.Dh)+2*f.Ii;f.ig=
e.v(f.Im)?f.Th:f.Uf(f.Im.height/f.Dh)+2*f.Ii}static get LC(){var b=h.Xx.lH(f.nr);return"portrait"===f.rb.PD?b.xh:b.Fk}static get MC(){var b=h.Xx.lH(f.nr);return"portrait"===f.rb.PD?b.Fk:b.xh}static X2(){f.dR();if(null!=f.lw){f.ig+=f.uy(l.C.F.zm,f.Ld,f.ig,f.font);var b=h.xA.oha(f.Uf(f.lw.width),f.Uf(f.lw.height),f.Fk,f.xh),a=e.ia(l.C.F.zm)?f.ig:f.ig+5;f.Ld.addImage(f.lw,"JPEG",f.Th,a,b.width,b.height);f.I3||this.baa()}f.I3?f.aga():(f.ig+=f.uy(l.C.F.Pp,f.Ld,f.ig,f.font),f.BHa(),l.C.F.kI&&f.ML(),u.Cl.eo({Uo:()=>
f.x0(),$e:()=>f.aga()}))}static uy(b,a,c,d){if(e.ia(b))return 0;e.v(d)?(d=a.getFont(),a.setFont(d.eya,"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.Uf(12)}static Raa(b,a,c){var d=.8*Math.max(f.Uf(30),6),g=.9*f.XH(f.Aba);b=f.Ld.splitTextToSize(b,g,f.Cu(c));a=f.Ld.splitTextToSize(a,g,f.Cu(c));c=1<b.length?f.Uf(b.length*(11+2*f.Li)-2*f.Li):f.Uf(11*b.length-f.Li);
a=1<a.length?f.Uf(a.length*(11+2*f.Li)-2*f.Li):f.Uf(11*a.length-f.Li);a=(c>a?c:a)/d;return 1>a?d:(a+1)*d}static ML(){if(!(f.Y instanceof e.K.Nf.SE||0==e.u.Ra.V().ua.ob.length)){var b=l.Va.V().ha.ua.wc(),a=e.u.Ra.V().ua.ob,c=f.Th,d=.9*f.XH(f.Aba);var g=!0;var k=f.Y.la.kg(0,0,!0),m=f.tS.clone();m=f.Wz(k,m);for(var n=m.fontSize,p=0;p<b.length;p++){var t=b.ea(p);if(a.Hb(t.A)&&t.filter.wh){var r=f.gz(t);g&&(g=f.Raa("",l.B.j.Gr,m),f.LL(f.Ld.splitTextToSize("",d,f.Cu(m)),k,m,c,d,g),c+=d,m.fontSize=n,f.LL(f.Ld.splitTextToSize(l.B.j.Gr,
d,f.Cu(m)),k,m,c,d,g),m.fontSize=n,c=f.Th,f.ig+=g,f.Ts+=g);g=f.Raa(t.caption,r,m);f.LL(f.Ld.splitTextToSize(f.y5(t.caption),d,f.Cu(m)),k,m,c,d,g);c+=d;m.fontSize=n;f.LL(f.Ld.splitTextToSize(f.y5(r),d,f.Cu(m)),k,m,c,d,g);m.fontSize=n;c=f.Th;f.ig+=g;f.Ts+=g;g=!1}}f.ig=f.ig>f.Th?f.ig+2*f.XH(f.zba):f.ig;f.Ts=f.ig>f.Th?f.Ts+2*f.XH(f.zba):f.Ts}}static y5(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 LL(b,a,c,d,g,k){var m=b.length,n=1<m?f.Uf(b.length*(c.fontSize+2*f.Li)-2*f.Li):f.Uf(b.length*c.fontSize-f.Li);n>f.xh/2&&(n=(f.xh-20)/2,m=Math.floor(f.Fz(n)/(c.fontSize+2*f.Li)));c.fontSize*=.7;var p=e.K.Y.X.ed.O3(c.backgroundColor);f.Ld.setFillColor(p[0],p[1],p[2],0!=p[3]?void 0:0);p=e.K.Y.X.ed.O3(c.borderColor);f.Ld.setDrawColor(p[0],p[1],p[2],0!=p[3]?void 0:0);p=e.K.Y.X.ed.O3(c.color);f.Ld.setTextColor(p[0],p[1],p[2]);e.v(f.font)?(p=f.Ld.getFont(),f.Ld.setFont(p.eya,
"bold"===c.fontWeight?"bold":"normal")):f.Ld.setFont(f.font.name,"normal");f.Ld.setFontSize(c.fontSize);f.Ld.rect(d,f.ig,g,k,"FD");k=f.ig+(k-n)/2+f.Li;if("right"==c.textAlign)if(1<b.length)for(c=0;c<m;c++)f.Ld.text(b[c],d+g-f.Li,k,{align:"right"}),k+=2*f.Li;else f.Ld.text(b[0],d+g-f.Li+("("==b[0].charAt(0)&&")"==b[0].charAt(b[0].length-1)?1.5:0),k,{align:"right"});else if(1<b.length)for(c=0;c<m;c++)g=!l.C.F.pk&&null!=a&&0<a.level?(a.level+1)*f.Li:f.Li,f.Ld.text(b[c],d+g,k),k+=2*f.Li;else g=!l.C.F.pk&&
null!=a&&0<a.level?(a.level+1)*f.Li:f.Li,f.Ld.text(b[0],d+g,k)}static gz(b){var a=l.B.j.aJ;b.filter.wh&&(a=1==b.gb.length?b.ya(b.gb[0]).caption:l.B.j.gJ);return a}static $0(){var b=f.Y.la,a=b.find(".fm-data-sheet");f.oR=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le,a);f.p5=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.Fv,a);f.g1=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.Fv+" "+e.K.Y.X.wa.jJ,a);f.p4=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.bk+" "+e.K.Y.X.wa.uv,x.Ea.Vb(b.element));f.c_=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le+" "+
e.K.Y.X.wa.bk+" "+e.K.Y.X.wa.KA,x.Ea.Vb(b.element));f.tS=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.bk+" "+e.K.Y.X.wa.zq,x.Ea.Vb(b.element))}static bH(b){b=f.XH(f.Y.la.coords.vh(b));b=b<f.Fk?b:f.Fk-1;return.9*b}static Wz(b,a){null!=b&&b.Ku&&null!=b.style&&(b=0<b.style.sC.length?e.K.Y.X.ed.Sl(b.style.PS()):e.K.Y.X.ed.DS(b.style.hT()),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 Cu(b){return{fontSize:.85*b.fontSize,fontName:null==b.fontFamily?f.wma:b.fontFamily,fontStyle:e.K.Y.X.Gma.Mza(parseFloat(b.fontWeight))}}static BHa(){f.uT=Array(f.r5);for(var b,a=0,c,d;a<f.r5;){f.Y.la.coords.Fo(a,NaN)&&(f.uT[a]=0,a++);c=b=0;for(var g=.8*Math.max(f.Uf(f.coords.Vd(a)),6);b<f.q5;){f.Y.la.coords.Fo(NaN,b)&&(f.kA[b]=0,b++);d=f.Y.la.kg(a,b,!0);new e.K.Y.X.ed;var k=f.oR.clone();k=f.Wz(d,k);if(null!=
d){var m=d.J();"number"===typeof m&&(d.value=m,m+="",d.numeric=!0);m=m.replace(/<(?:.|\n)*?>/gi,"");d=f.Ld.splitTextToSize(m,null!=f.kA&&null!=f.kA[b]?f.kA[b]:f.bH(b),f.Cu(k));d=(1<d.length?f.Uf(d.length*(11+2*f.Li)-2*f.Li):f.Uf(11*d.length-f.Li))/g;d=1>d?g:(d+1)*g;d=d>f.xh/2?(f.xh-1)/2:d;c=d>c?d:c}b++}f.uT[a]=c;a++}}static x0(){if(f.VP)return!1;for(var b=0;b<f.Ar;b++){if(f.gN&&(f.baa(),f.VP))return!1;var a,c=f.Th,d=f.ks-f.VR<f.Y.nf&&f.ks>f.Y.op?f.ks-f.VR:f.ks;if(f.Y.la.coords.Fo(d,NaN))f.ks++;else{var g=
f.uT[d];for(f.ju=f.ls;f.ju<f.Oy+f.ls;){var k=(a=f.zH||f.LT?!1:f.ju==f.ls&&f.ju>f.Y.op)?f.Y.op:f.ju;if(f.Y.la.coords.Fo(NaN,k))f.ju++;else if(!f.LK()&&f.Ts+g<=f.xh){a=null!=f.kA&&null!=f.kA[k]?f.kA[k]:f.bH(k);if(.9*(c+a)>f.Fk)break;k=f.Y.la.kg(d,k,!0);var m=e.v(k)?"":k.J();"number"===typeof m&&(k.value=m,m+="",k.numeric=!0);m=f.y5(m);var n=[m];new e.K.Y.X.ed;if(null!=k&&k.zi){var p=f.p4.clone();p=f.Wz(k,p);n=f.Ld.splitTextToSize(m,a,f.Cu(p))}else null!=k&&k.Nh?(p=f.c_.clone(),p=f.Wz(k,p),n=f.Ld.splitTextToSize(m,
a,f.Cu(p))):null!=k&&k.el?(p=f.tS.clone(),p=f.Wz(k,p)):null!=k&&k.sz&&k.Ak&&""!=k.J()?(p=f.g1.clone(),p=f.Wz(k,p)):null!=k&&k.Ak&&""!=k.J()?(p=f.p5.clone(),p=f.Wz(k,p)):(p=f.oR.clone(),p=f.Wz(k,p),n=f.Ld.splitTextToSize(m,a,f.Cu(p)));f.LL(n,k,p,c,a,g);f.ju++;c+=a}else{f.gN=!0;break}}f.gN||(f.ig+=g,f.Ts+=g,f.ks++);if(f.gR()&&f.LK())break}}return f.gR()&&f.LK()}static gR(){return f.ls+f.Oy>=f.Dd+f.Y.ug}static LK(){return f.ks>=f.Cd+f.Y.nf}static baa(){f.Ld.addPage();f.ll++;f.gN=!1;f.VP=!0;f.SR(f.rb.Ui,
f.rb.pj,()=>{f.VP=!1;f.dR()});f.Ts=0;if(null==f.lw||1<f.ll)f.vJa(),f.uJa();e.Ca(!0,l.B.j.fF,f.ll+1+" "+l.B.j.m8,!0)}static vJa(){f.gR()&&!f.LK()?(f.ks-=f.Y.nf,f.VR=f.ks):f.ks=f.VR}static uJa(){f.gR()?f.LK()||(f.ls=0,f.ju=0):(f.ls+=f.Oy,f.ju=f.ls);f.Daa()}static Daa(){f.Oy=0;var b=f.ls,a=0;if(f.zH||f.LT?0:f.ls>=f.Y.ug){var c=f.bH(f.Y.op);a+=c;f.Oy++;f.ls--;f.ju--}for(;b<f.q5;)if(c=f.bH(b),c>f.Fk/2-f.Th&&(c=(f.Fk+f.Th)/2,f.kA[b]=c),a+=c,a<=f.Fk)f.Oy++,b++;else{0==f.Oy&&(f.Oy=1);break}}static aga(){0==
f.rb.filename.length&&(f.rb.filename="pivot.pdf");if(f.rb.xC==l.hb.fp.UA)h.Sn.save(f.Ld,f.rb);else{var b=f.Ld.output();b=e.P.c5(b);h.Sn.save(b,f.rb)}f.clear();l.Va.V().Fa(new v.fa(e.vg.oh))}static clear(){f.Y=null;f.rb=null;f.Ld=null;f.font=null;f.Dd=0;f.Cd=0;f.q5=0;f.r5=0;f.Oy=0;f.ju=0;f.ls=0;f.ks=0;f.VR=0;f.Ts=0;f.ig=0;f.gN=!1;f.ll=0;f.xh=0;f.Fk=0;f.Im=null;f.Lp=null;f.uT=null;f.zH=!1;f.LT=!1}static XH(b){return.264*b}static Fz(b){return 3.779*b}static Uf(b){return b/3.779}}f.Th=15;f.gN=!1;f.ll=
0;f.I3=!1;f.wma="Helvetica";f.font=null;f.nr="a4";f.Aba=100;f.zba=30;f.rP=/##PAGE-NUMBER##/gi;f.v6=/##CURRENT-DATE##/gi;f.zH=!1;f.LT=!1;f.Dh=4;f.Ii=5;f.VP=!1;f.Ar=5;f.Li=f.XH(8);h.Xe=f})(l.Ac||(l.Ac={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){throw Error("Singleton");}static pg(b,a,c,d,g=""){f.Y=b;f.Dd=c;f.Cd=d;f.rb=a;f.lw=g||"";try{f.nS()}catch(k){console.error("Export HTML error:",k),e.Za(l.B.j.pt,l.B.j.Aa,e.xb.Aa),e.Ca(!1),l.Va.V().Fa(new v.fa(e.vg.oh)),f.clear()}}static nS(){e.Ca(!0,l.B.j.Ux);f.Fm=u.Qf();f.Gu="";f.lb=f.Y.Mi;f.$s=[];l.C.F.kI&&f.ML();u.Cl.eo({Uo:()=>f.x0(),$e:()=>f.ZEa()})}static y0(){var b="",a=f.Y.la,c=a.find(".fm-data-sheet");b+=e.P.bind("body{{0}}\n",e.K.Y.X.ed.dz(x.Ea.Vb(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.X.ed.dz(x.Ea.Vb(a.element),["font-family","font-size","color"]));b+=e.P.bind(".title{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.UX,x.Ea.Vb(a.element)));b+=e.P.bind(".cell{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.Le,c));b+=e.P.bind(".totalCell{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.Fv,c));b+=e.P.bind(".grandTotalCell{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.Fv+
" "+e.K.Y.X.wa.jJ,c));b+=e.P.bind(".rowHeaderCell{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.bk+" "+e.K.Y.X.wa.uv,x.Ea.Vb(a.element)));b+=e.P.bind(".columnHeaderCell{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.bk+" "+e.K.Y.X.wa.KA,x.Ea.Vb(a.element)));b+=e.P.bind(".filterHeaderCell{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.bk+" "+e.K.Y.X.wa.zq,x.Ea.Vb(a.element)));for(c=1;20>=c;c++)b+=e.P.bind(".level{0}{{1}}\n",c,e.K.Y.X.ed.bl(e.K.Y.X.wa.uv+" "+e.K.Y.X.wa.Hf+c,x.Ea.Vb(a.element),
["padding-left"]));for(c=0;c<f.$s.length;c++)b+=e.P.bind(".{0}{{1}}\n",f.$s[c],e.K.Y.X.ed.bl(f.$s[c],x.Ea.Vb(a.element)));return b}static IZ(b){for(var a=0;a<b.length;a++)0>f.$s.indexOf(b[a])&&f.$s.push(b[a])}static ML(){if(!(f.Y instanceof e.K.Nf.SE||0==e.u.Ra.V().ua.ob.length))for(var b=l.Va.V().ha.ua.wc(),a=e.u.Ra.V().ua.ob,c,d,g=!0,k,m="style='min-width:"+f.vDa+"px;'",n=0;n<b.length;n++)d=b.ea(n),k="",a.Hb(d.A)&&d.filter.wh&&(c=f.gz(d),g&&(k+="<td {0}></td>",k=e.P.bind(k,"class='filterHeaderCell' "+
m),k+="<td {0}>"+l.B.j.Gr+"</td>",k=e.P.bind(k,"class='filterHeaderCell' "+m),f.HC+="<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.HC+="<tr>"+k+"</tr>",g=!1)}static gz(b){var a=l.B.j.aJ;b.filter.wh&&(a=1==b.gb.length?b.ya(b.gb[0]).caption:l.B.j.gJ);return a}static x0(){var b="";if(f.Y.la.coords.Fo(f.lb,NaN))return f.lb++>=f.Cd+f.Y.nf;for(var a=f.Y.op;a<f.Dd+f.Y.ug;a++)if(!f.Y.la.coords.Fo(NaN,
a)){var c=f.Y.la.kg(f.lb,a,!0);b+="<td {0}>"+(c?c.J(!0):"")+"</td>";if(null==c)b=e.P.bind(b,"class='cell'");else{var d="",g="";c.Ku&&null!=c.style&&(g=c.style.hT(),d=c.style.PS(),f.IZ(c.style.sC));d=c.zi?d+(" rowHeaderCell level"+c.level):c.Nh?d+" columnHeaderCell":c.el?d+" filterHeaderCell":c.sz&&c.Ak&&""!=c.J(!0)?d+" grandTotalCell":c.Ak&&""!=c.J(!0)?d+" totalCell":d+" cell";null!=c&&c.el&&(d+=" level"+c.level);""!=d.trim()&&(d="class='"+d.trim()+"'");g+="width:"+f.Y.la.coords.vh(a)+"px;";""!=g.trim()&&
(g="style='"+g.trim()+"'");b=e.P.bind(b,d+" "+g)}}f.pN+="<tr>"+b+"</tr>";200<u.Qf()-f.Fm&&(e.Ca(!0,l.B.j.Ux,e.P.bind("{0}%",(f.lb/(f.Cd+f.Y.nf)*100).toFixed(0))),f.Fm=u.Qf());return++f.lb>=f.Cd+f.Y.nf}static ZEa(){e.Ca(!1);f.BIa();f.clear()}static BIa(){0==f.rb.filename.length&&(f.rb.filename="pivotgrid.html");var b="";if(!e.ia(f.rb.Ui)){var a=f.rb.Ui;a=a.replace(/##PAGE-NUMBER##/gi,"");a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());b+=a}e.ia(f.lw)||(e.ia(l.C.F.zm)||(b+="<div class='title'>"+
l.C.F.zm+"</div>"),b+=f.lw);b+="<div class='title'>"+l.C.F.Pp+"</div>";b+=0<f.HC.length?"<table class='grid'>"+f.HC+"</table><br><br><table class='grid'>"+f.pN+"</table>":"<table class='grid'>"+f.pN+"</table>";e.ia(f.rb.pj)||(a=f.rb.pj,a=a.replace(/##PAGE-NUMBER##/gi,""),a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()),b+=a);f.Gu="<!DOCTYPE html><html><head><meta charset='UTF-8'/>";f.Gu+="<title>"+(e.ia(l.C.F.Pp)?l.B.j.JW:l.C.F.Pp)+"</title>";f.Gu+="<style>"+f.y0()+"</style></head>";
f.Gu+="<body>"+b+"</body></html>";h.Sn.save(f.Gu,f.rb);l.Va.V().Fa(new v.fa(e.vg.oh))}static clear(){f.lb=0;f.Gu="";f.HC="";f.pN="";f.Dd=0;f.Cd=0;f.Y=null;f.rb=null;f.lw=""}}f.lb=0;f.Fm=0;f.Gu="";f.HC="";f.pN="";f.vDa=100;f.Ar=10;h.Y6=f})(l.Ac||(l.Ac={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){throw Error("Singleton");}static pg(b,a,c,d){f.Y=b;f.Dd=c;f.Cd=d;f.rb=a;try{f.Fxa()}catch(g){console.error("Export XLS error:",g),e.Za(l.B.j.pt,l.B.j.Aa,e.xb.Aa),e.Ca(!1),l.Va.V().Fa(new v.fa(e.vg.oh))}}static Fxa(){e.Ca(!0,l.B.j.Ux);f.lb=f.Y.Mi;f.Ke=0;f.Fm=u.Qf();f.qN=[];f.Ff=new S.Hqa;var b=l.B.j.JW;e.ia(f.rb.e0)?e.ia(l.C.F.Pp)||(b=l.C.F.Pp):b=f.rb.e0;b=new S.Iqa(b);f.Ff.Yg.push(b);f.$0();this.rb.Ui?f.Y$(this.rb.Ui):f.Vsa();f.uy();l.C.F.kI&&
f.vsa();u.Cl.eo({Uo:()=>f.Yya(),$e:()=>f.FGa()})}static $0(){var b=f.Y.la.element;f.oR=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le,x.Ea.Vb(b),!1);f.p5=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.Fv,x.Ea.Vb(b),!1);f.g1=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.Fv+" "+e.K.Y.X.wa.jJ,x.Ea.Vb(b),!1);f.p4=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.bk+" "+e.K.Y.X.wa.uv,x.Ea.Vb(b),!1);f.c_=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.bk+" "+e.K.Y.X.wa.KA,x.Ea.Vb(b),!1);f.tS=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.bk+" "+
e.K.Y.X.wa.zq,x.Ea.Vb(b),!1);for(var a=1;20>=a;a++)f.r4[a]=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.bk+" "+e.K.Y.X.wa.uv+" "+e.K.Y.X.wa.Hf+a,x.Ea.Vb(b),!1)}static FGa(){f.Y$(this.rb.pj,!0);f.uDa();e.Ca(!1);f.FIa()}static FIa(){f.lb=f.Y.Mi;0==f.rb.filename.length&&(f.rb.filename="pivot.xlsx");h.Sn.save(f.Ff.nKa(),f.rb);f.Ff=null;f.rb=null;l.Va.V().Fa(new v.fa(e.vg.oh))}static GKa(b){return e.v(b)||e.v(b.measure)||b.measure.type!=e.u.i.Pa.Sa?!1:e.u.i.da.AE(b.measure.aa)||l.C.F.hD==e.K.Y.te.Bh&&!b.Ak?
!0:!1}static AE(b){return e.v(b)||e.v(b.measure)||b.measure.type!=e.u.i.Pa.Jc?!1:e.u.i.da.AE(b.measure.aa)||l.C.F.hD==e.K.Y.te.Bh&&!b.Ak?!0:!1}static Zo(b){return e.v(b)||e.v(b.measure)||b.measure.type!=e.u.i.Pa.dc?!1:e.u.i.da.Zo(b.measure.aa)||l.C.F.hD==e.K.Y.te.Bh&&!b.Ak?!0:!1}static Yya(){for(var b=f.Cd+f.Y.nf,a=f.Y.op;a<f.Dd+f.Y.ug;a++){var c=f.Y.la.kg(f.lb,a,!0);let r=e.v(c)?"":c.J();r=r?r:"";let w;var d=f.GKa(c);const y=f.AE(c),A=f.Zo(c);e.v(c)||isNaN(c.value)||(d?w=f.Eva(c.value,c.hierarchy.getTimezoneOffset()):
y?w=f.Fva(c.value,c.hierarchy.getTimezoneOffset()):A&&(w=f.Gva(c.value)));"number"===typeof r&&(c.value=r,r+="",c.numeric=!0);var g=null!=c&&(c.zi||c.Nh);f.rb.fca&&""==r&&null!=c&&null!=c.bc&&(r=c.bc.caption);if(""!=r.trim()||g){new e.K.Y.X.ed;g=null!=c&&c.zi?0<c.level&&f.r4[c.level]?f.r4[c.level].clone():f.p4.clone():null!=c&&c.Nh?f.c_.clone():null!=c&&c.el?f.tS.clone():null!=c&&c.sz&&c.Ak&&""!=c.J()?f.g1.clone():null!=c&&c.Ak&&""!=c.J()?f.p5.clone():f.oR.clone();if(null!=c&&c.Ku&&null!=c.style){var k=
0<c.style.sC.length?e.K.Y.X.ed.Sl(c.style.PS()):e.K.Y.X.ed.DS(c.style.hT());k.merge(g);g=k}g.color=g.color||"rgb(0,0,0)";"rgb(33, 33, 33)"==g.backgroundColor&&(g.color="rgb(242, 242, 242)");g.backgroundColor=g.backgroundColor||"rgb(255,255,255)";g.fontSize=g.fontSize?f.MHa(g.fontSize):8;var m=new S.ud.fonts.Iv(e.v(g.fontFamily)?"Tahoma":g.fontFamily,g.fontSize,e.P.Bo(g.color));m.bold="bold"==g.fontWeight||700<=parseInt(g.fontWeight);m.AD=!1;var n=null,p=k=!1;if(c.numeric){if(null!=c.measure){n=c.measure.Yh(c.measure.A,
c.measure.aa);p=""!=n.GD?!0:p;k=e.u.i.da.de(c.measure.aa)||c.measure.Na&&-1<c.measure.ve.indexOf("percent");var t=n.Nia();if(k||n.de)n=n.clone(),n.rd="%",t=n.Nia();n=new S.ud.format.yt(""==t?0:-1,t)}}else d||y?n=c.measure.type==e.u.i.Pa.Jc?new S.ud.format.yt(164,"dd.mm.yyyy h:mm:ss"):new S.ud.format.yt(14,""):A&&(0<=w?n=new S.ud.format.yt(165,f.Wo):(w=Math.abs(w),n=new S.ud.format.yt(166,"-"+f.Wo)));n&&f.Ff.styleSheet.wsa(n);m=new S.ud.fB(m,e.P.Bo(g.backgroundColor),n,c.Ku&&void 0==g.textAlign&&c.ci?
"right":g.textAlign);!l.C.F.pk&&c&&c.zi&&0<c.level&&(m.textIndent=c.level);f.Ff.styleSheet.cw(m);n=null!=c.measure?c.measure.Yh(c.measure.A,c.measure.aa):null;r=e.P.PG(r);c.numeric?null==n||c.label!=n.oD&&c.label!=n.zC?c.Ku&&f.FBa()&&f.rb.cja?(d=c.J(),f.Ff.Yg[0].Fi(f.lb-f.Y.Mi+f.Ke,a,!isNaN(c.value)&&c.label==d&&c.numeric?f.Ica(c.value,n,k):e.P.PG(d),m)):(w=f.Ica(c.value,n,k),f.Ff.Yg[0].Fi(f.lb-f.Y.Mi+f.Ke,a,isNaN(c.value)&&p?c.J():w,m)):f.Ff.Yg[0].Fi(f.lb-f.Y.Mi+f.Ke,a,c.J(),m):f.rb.hA||!c.ci||null==
c.measure||c.measure.type!=e.u.i.Pa.Sa&&c.measure.type!=e.u.i.Pa.Jc?!f.rb.hA&&c.ci&&null!=c.measure&&c.measure.aa==e.u.i.da.NONE?f.Ff.Yg[0].Fi(f.lb-f.Y.Mi+f.Ke,a,c.value,m):!f.rb.hA&&c.ci&&null!=c.measure&&c.measure.type==e.u.i.Pa.dc?A?f.Ff.Yg[0].Fi(f.lb-f.Y.Mi+f.Ke,a,w,m):f.Ff.Yg[0].Fi(f.lb-f.Y.Mi+f.Ke,a,c.value,m):f.Ff.Yg[0].Fi(f.lb-f.Y.Mi+f.Ke,a,r,m):d||y?f.Ff.Yg[0].Fi(f.lb-f.Y.Mi+f.Ke,a,w,m):f.Ff.Yg[0].Fi(f.lb-f.Y.Mi+f.Ke,a,c.value,m);null!=c&&(0==f.Ff.Yg[0].bH(a)&&f.Ff.Yg[0].Dha(a,f.Dva(f.Y.la.coords.vh(a))),
a!=f.Y.op||f.Y.la.coords.qCa(f.lb)||(c=f.hL(f.Y.la.coords.Vd(f.lb)),f.Ff.Yg[0].vx(f.lb+f.Ke,c)),r.length>g.width&&f.Ff.Yg[0].Dha(a,f.hL(r.length+f.cellPadding)>f.hL(f.E6)?f.hL(f.E6):f.hL(r.length+f.cellPadding)))}}200<u.Qf()-f.Fm&&(e.Ca(!0,l.B.j.Ux,e.P.bind("{1}% ("+l.B.j.yX+")",f.lb.toString(),(f.lb/b*100).toFixed(0))),f.Fm=u.Qf());return f.lb++>=b}static Ica(b,a,c){return null==a||!c&&"%"!=a.rd?b:b/100}static Eva(b,a){b=-f.Sca(b,a)+b;return Math.floor(b/864E5)}static Fva(b,a){return(-f.Sca(b,a)+
b)/864E5}static Sca(b,a){return null!=a?Date.parse("1899-12-30")-36E5*a:Date.parse("1899-12-30")+36E5*((new Date(b)).getTimezoneOffset()/60)}static Gva(b){return 1E3*b/864E5}static MHa(b){return.75*b}static hL(b){return 0>=b?0:f.Cwa/f.yba*b*(f.yba/e.K.Y.sheet.Ch.mv)}static Dva(b){return 0>=b?0:((b-5)/7*100+.5)/100}static Vsa(){var b=l.hb.MI.Dm;if(0<b.length){var a=getComputedStyle(e.K.Mb.Fb.G.find("."+e.K.Y.X.wa.KA).element),c=new S.ud.fonts.Iv(a.fontFamily,parseInt(a.fontSize)-2,e.P.Bo(a.color));
c.bold="bold"===a.fontWeight;c.AD="italic"===a.fontStyle;c=new S.ud.fB(c,e.P.Bo(a.backgroundColor));c.textAlign=a.textAlign;f.Ff.styleSheet.cw(c);f.Ff.Yg[0].Fi(f.Ke,0,l.B.j.Ala,c);f.Ff.Yg[0].Fi(f.Ke,1,"",c);a=getComputedStyle(e.K.Mb.Fb.G.find("."+e.K.Y.X.wa.Le).element);var d=new S.ud.fonts.Iv(a.fontFamily,parseInt(a.fontSize)-2,e.P.Bo(a.color));d.bold="bold"===a.fontWeight;d.AD="italic"===a.fontStyle;d=new S.ud.fB(d,e.P.Bo(a.backgroundColor));d.textAlign=a.textAlign;f.Ff.styleSheet.cw(d);for(a=0;a<
b.length;a++)f.Ff.Yg[0].Fi(a+1+f.Ke,0,e.P.PG(String(b[a].name)),c),f.Ff.Yg[0].Fi(a+1+f.Ke,1,e.P.PG(String(b[a].value)),c)}f.Ke+=0==b.length?0:b.length+2}static Y$(b,a=!1){if(null!=b&&0!=b.length){var c=0;a&&(f.Ke+=1,c=f.Cd+f.Y.nf);b=b.split("\n");var d=getComputedStyle(e.K.Mb.Fb.G.find("."+e.K.Y.X.wa.KA).element),g=new S.ud.fonts.Iv(d.fontFamily,parseInt(d.fontSize)-2,e.P.Bo(d.color));g.bold="bold"===d.fontWeight;g.AD="italic"===d.fontStyle;g=new S.ud.fB(g,e.P.Bo(d.backgroundColor));g.textAlign=d.textAlign;
f.Ff.styleSheet.cw(g);d=f.Ff.Yg[0];for(var k=0;k<b.length;k++){const m=c+k+f.Ke;d.Fi(m,0,e.P.PG(String(b[k])),g);f.qN.push(m)}f.Ke+=b.length+(a?0:1)}}static uy(){var b=l.C.F.Pp;if(0!=b.length){var a=getComputedStyle(e.K.Mb.Fb.G.find("."+e.K.Y.X.wa.UX).element),c=new S.ud.fonts.Iv(a.fontFamily,parseInt(a.fontSize)-2,e.P.Bo(a.color));c.bold="bold"===a.fontWeight;c.AD="italic"===a.fontStyle;a=new S.ud.fB(c,e.P.Bo(a.backgroundColor));a.textAlign="center";f.Ff.styleSheet.cw(a);c=f.Ke;f.Ff.Yg[0].Fi(c,0,
b,a);f.qN.push(c);f.Ke+=1}}static uDa(){const b=f.Ff.Yg[0];for(var a=0;a<f.qN.length;a++)b.zfa(f.qN[a],0,Math.min(b.Jua,10))}static FBa(){return!e.v(e.K.Y.X.ke.uw)}static vsa(){if(!(f.Y instanceof e.K.Nf.SE||0==e.u.Ra.V().ua.ob.length)){var b=l.Va.V().ha.ua.wc(),a=e.u.Ra.V().ua.ob,c=!0,d=getComputedStyle(e.K.Mb.Fb.G.find("."+e.K.Y.X.wa.bk).element),g=new S.ud.fonts.Iv(d.fontFamily,parseInt(d.fontSize)-2,e.P.Bo(d.color));g.bold="bold"===d.fontWeight;g.AD="italic"===d.fontStyle;g=new S.ud.fB(g,e.P.Bo(d.backgroundColor));
g.textAlign=d.textAlign;f.Ff.styleSheet.cw(g);d=getComputedStyle(e.K.Mb.Fb.G.find("."+e.K.Y.X.wa.Le).element);var k=new S.ud.fonts.Iv(d.fontFamily,parseInt(d.fontSize)-2,e.P.Bo("rgb(0,0,0)"));k.bold="bold"===d.fontWeight;k.AD="italic"===d.fontStyle;d=new S.ud.fB(k,e.P.Bo(d.backgroundColor));d.textAlign="left";f.Ff.styleSheet.cw(d);k=f.Ff.Yg[0];var m=0;for(let t=0;t<b.length;t++){var n=b.ea(t);var p=n.si.type==e.u.i.BA.OA;(a.Hb(n.A)||f.rb.MV)&&n.filter.wh&&(p=p?f.Vua(n):f.rb.MV?f.nda(n):f.gz(n),c&&
(k.Fi(m+f.Ke,0,"",g),k.Fi(m+f.Ke,1,l.B.j.Gr,g),m++),k.Fi(m+f.Ke,0,n.caption,g),k.Fi(m+f.Ke,1,p,d),m++,c=!1)}if(l.C.F.hD==e.K.Y.te.Bh)for(b=l.Va.V().ha.ua.Kf,a=0;a<b.length;a++)(n=l.Va.V().ha.ua.Ck(b[a].A))&&n.filter.wh&&(p=f.rb.MV?f.nda(n):f.gz(n),c&&(k.Fi(m+f.Ke,0,"",g),k.Fi(m+f.Ke,1,"Filters",g),m++),k.Fi(m+f.Ke,0,n.caption,g),k.Fi(m+f.Ke,1,p,d),m++,c=!1);f.Ke+=c?0:m+1}}static nda(b){for(var a=[],c=0;c<b.gb.length;c++)a.push(b.XC(b.gb[c]));return a.join(", ")}static gz(b){var a=l.B.j.aJ;b.filter.wh&&
(a=1==b.gb.length?b.ya(b.gb[0]).caption:l.B.j.gJ);return a}static Vua(b){var a,c=[];null!=f.bA&&(f.bA.length=0);f.nia(b.Ad);for(var d=f.$ua(b),g=!1,k=0;k<f.bA.length;k++){var m=b.ya(f.bA[k]);var n=k==f.bA.length-1;if(!g&&-1<b.gb.indexOf(m.ordinal)){g=!0;var p=m}g&&(-1<b.gb.indexOf(m.ordinal)&&(a=m),-1<d.indexOf(m.ordinal)&&!n||(a=null!=a?a:p,m=f.Taa(p),n=a.A!=p.A?":"+f.Taa(a,!0):"",a=p=null,g=!1,c.push(m+n)))}return c.join(", ")}static nia(b){null==f.bA&&(f.bA=[]);b.Zb||f.bA.push(b.ordinal);for(var a=
b.hierarchy.Yj(b,!1,e.u.i.za.ic),c=a.length,d,g=0;g<c;g++)d=b.hierarchy.ya(a[g]),0<d.children.length?f.nia(d):f.bA.push(d.ordinal)}static Taa(b,a=!1){var c=b,d=[];for(d.push(b.caption);c&&c.A!=b.A&&!c.level.Nu&&0<c.children.length;)d.push(c.caption),c=c.hierarchy.Yj(c,!1,e.u.i.za.ic),c=b.hierarchy.ya(a?c[c.length-1]:c[0]);for(c=b.parent;c&&!c.Zb;)d.unshift(c.caption),c=c.parent;return d.join("-")}static $ua(b){for(var a=[],c=b.gb,d,g=0;g<c.length;g++)if(d=b.ya(c[g]),a.push(d.ordinal),a=a.concat(d.ww),
!(d.parent&&!d.parent.Zb&&-1<a.indexOf(d.parent.ordinal)))for(;d.parent&&!d.parent.Zb;)d=d.parent,a.push(d.ordinal);return a}}f.lb=0;f.Ke=0;f.cellPadding=3;f.E6=100;f.Wo="[h]:mm:ss";f.r4=[];f.Cwa=14.3;f.yba=38;f.qN=[];h.c7=f})(l.Ac||(l.Ac={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){}static tk(c,d=null,g=null){f.uY?this.L_.push({type:c,options:d,$e:g}):(c=c.toLowerCase(),c=a.iA(c)?c:a.Sh,l.C.F.je==e.K.Id.dj&&c==a.JSON?(e.Za(l.B.j.Zna,l.B.j.Aa),this.via()):(l.Va.V().N(e.vg.oh,f.lca),f.uY=!0,f.yp=g,e.v(d)&&(d=new h.b7),d.type=c,c=new b(c,d,g),l.Va.V().Fa(c)))}static via(){e.Ca(!1);l.Va.V().sb(e.vg.oh,f.lca);f.uY=!1}static JEa(){f.via();if(0<f.L_.length){var c=f.L_.shift();this.tk(c.type,c.options,c.$e)}}static save(c,
d){switch(d.xC.toLowerCase()){case l.hb.fp.DO:f.sN(c,d);break;case l.hb.fp.MX:f.xV(c,d);break;case l.hb.fp.S5:break;case l.hb.fp.UA:f.DIa(c,d);break;default:f.sN(c,d)}}static xV(c,d){switch(d.type){case a.vv:case a.TE:case a.TA:case a.LA:case a.JSON:case a.Sh:f.EIa(c,d);break;default:c=l.Tb.validate(d.type),e.Za("Unknown type of export: '"+c+"'",l.B.j.Aa)}}static sN(c,d){switch(d.type){case a.vv:var g="text/html;charset=utf-8";d.filename=f.NK(d.filename,".html");break;case a.TE:g="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
d.filename=f.NK(d.filename,".xlsx");break;case a.TA:g="application/pdf";d.filename=f.NK(d.filename,".pdf");break;case a.LA:g="image/png";d.filename=f.NK(d.filename,".png");break;case a.Sh:g="text/csv;charset=utf-8";d.filename=f.NK(d.filename,".csv");break;default:g="text/plain;charset=utf-8"}var k=[c];d.type==a.Sh&&k.unshift(e.P.cza());try{z.mha(new Blob(k,{type:g}),d.filename),f.QN({data:c,filename:d.filename,type:d.type})}catch(m){e.Za(l.B.j.iP,l.B.j.Aa,e.xb.Aa),f.QN(null,{message:l.B.j.iP})}}static NK(c,
d){c.indexOf(d)!=c.length-d.length&&(c+=d);return c}static zHa(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.iP;return d}static EIa(c,d){var g=new u.wt(500);g.N(u.pf.Al,function(){e.Ca(!0,l.B.j.o8,(g.tw/10).toString()+" sec")});var k=new z.ek;k.N(v.fa.Aa,t=>{t=f.zHa(t);var r=t.hasOwnProperty("response")?l.Tb.validate(t.response):"";r=700<r.length?r.substr(0,700):r;
e.Za(e.P.bind(t.message,r),l.B.j.Aa,e.xb.Aa);g.stop();e.Ca(!1);f.QN(null,t)});k.N(v.fa.Oc,function(){g.stop();e.Ca(!1);f.QN({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.k0)n.append(p,d.k0[p]);k.rr=z.xt.zv;k.data=n;k.contentType=!1;k.Qh(d.sc);k.load(d.url);g.start()}static DIa(c,d){f.QN({data:c,filename:d.filename,type:d.type})}static QN(c=null,d=null){null!=f.yp&&
f.yp.call(null,c,d)}}f.uY=!1;f.L_=[];f.lca=()=>f.JEa();h.Sn=f;class b extends v.fa{constructor(c,d,g){super(e.vg.VW);this.ru=c;this.rb=d;this.yp=g}}h.OLa=b;class a{static iA(c){return c===a.LA||c===a.TE||c===a.vv||c===a.Sh||c===a.JSON||c===a.TA}}a.LA="image";a.TE="excel";a.vv="html";a.Sh="csv";a.JSON="json";a.TA="pdf";h.ej=a})(l.Ac||(l.Ac={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b="file"){this.sl=!0;this.xC=e.model.hb.fp.DO;this.filename="";this.url="()";this.sc=null;this.type=h.ej.vv;this.PD="portrait";this.e0="";this.MV=this.fca=!1;this.hA=!0;this.k0={};this.Pf=",";this.cja=!0;this.naa=!1;this.xC=b}static zb(b){var a=new f;if(e.v(b))return a;e.v(b.showHeaders)||(a.sl="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.e0=b.excelSheetName);
e.v(b.excelExportAll)||(a.fca=b.excelExportAll);e.v(b.pageOrientation)||"portrait"!==b.pageOrientation.toLowerCase()&&"landscape"!==b.pageOrientation.toLowerCase()||(a.PD=b.pageOrientation.toLowerCase());!e.v(b.destinationType)&&e.model.hb.fp.iA(b.destinationType.toString().toLowerCase())&&(a.xC=b.destinationType.toString().toLowerCase());e.ia(b.pageFormat)||(a.nr=b.pageFormat);e.ia(b.fieldSeparator)||(a.Pf=b.fieldSeparator);e.v(b.showFilters)||(a.MV=b.showFilters);e.v(b.useOlapFormattingInExcel)||
(a.hA=b.useOlapFormattingInExcel);e.v(b.extendedParameters)||(a.k0=b.extendedParameters);e.v(b.header)||(a.Ui=b.header);e.v(b.footer)||(a.pj=b.footer);e.v(b.fontUrl)||(a.yS=b.fontUrl);e.v(b.useCustomizeCellForData)||(a.cja=b.useCustomizeCellForData);e.v(b.requestHeader)||(a.sc=b.requestHeader);e.v(b.requestHeaders)||(a.sc=b.requestHeaders);e.v(b.alwaysEnclose)||(a.naa=b.alwaysEnclose);return a}}h.b7=f})(l.Ac||(l.Ac={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){throw Error("Singleton");}static pg(b,a,c,d,g=null){if(!e.v(b)){f.Y=b;f.Dd=c;f.Cd=d;f.rb=a;f.yp=g;try{f.Cxa()}catch(k){console.error("Export CSV error:",k),e.Za(l.B.j.pt,l.B.j.Aa,e.xb.Aa),e.Ca(!1),l.Va.V().Fa(new v.fa(e.vg.oh)),f.clear()}}}static Oca(b,a){if(null!=b&&0!=b.length){0<f.ar.length&&f.ar.push([].join(f.rb.Pf));b=b.split("\n");for(let d=0;d<b.length;d++){var c=[];c.push('"'+b[d]+'"');f.ar.push(c.join(f.rb.Pf))}0<f.ar.length&&
!a&&f.ar.push([].join(f.rb.Pf))}}static ML(){if(!(f.Y instanceof e.K.Nf.SE||0==e.u.Ra.V().ua.ob.length)){for(var b,a=l.Va.V().ha.ua.wc(),c=e.u.Ra.V().ua.ob,d,g,k=!0,m=0;m<a.length;m++)g=a.ea(m),b=[],c.Hb(g.A)&&g.filter.wh&&(d=f.gz(g),k&&(b.push('""'),b.push('"'+l.B.j.Gr+'"'),f.ar.push(b.join(f.rb.Pf)),b=[]),b.push('"'+g.caption+'"'),b.push('"'+d+'"'),f.ar.push(b.join(f.rb.Pf)),k=!1);0<f.ar.length&&f.ar.push([].join(f.rb.Pf))}}static gz(b){var a=l.B.j.aJ;b.filter.wh&&(a=1==b.gb.length?b.ya(b.gb[0]).caption:
l.B.j.gJ);return a}static Cxa(){e.Ca(!0,l.B.j.Ux);f.lb=0;f.Fm=u.Qf();f.Oca(this.rb.Ui);l.C.F.kI&&f.ML();u.Cl.eo({Uo:()=>f.Rya(),$e:()=>f.QDa()})}static Rya(){if(f.Y.la.coords.Fo(f.lb,NaN))return f.lb>=f.Cd+f.Y.nf;var b=[];for(var a=0;a<f.Dd+f.Y.ug;a++)if(!f.Y.la.coords.Fo(NaN,a))for(b=[],a=0;a<f.Dd+f.Y.ug;a++){if(f.Y.la.coords.Fo(NaN,a))continue;let c="";const d=f.Y.la.kg(f.lb,a,!0);d&&(c=d.J());"number"===typeof c&&(d.value=c,c+="",d.numeric=!0);c=e.P.PG(c);0<=c.indexOf(f.rb.Pf)||this.rb.naa||-1<
c.search(/\n|\r/gi)?(c=c.replace(/["]/gi,'""'),b.push(`"${c}"`)):b.push(c)}f.ar.push(b.join(f.rb.Pf));200<u.Qf()-f.Fm&&(b=f.lb/(f.Cd+f.Y.nf)*100,100<b&&(b=100),e.Ca(!0,l.B.j.Ux,e.P.bind("{1}% ("+l.B.j.yX+")",f.lb.toString(),b.toFixed(0))),f.Fm=u.Qf());return++f.lb>=f.Cd+f.Y.nf}static zIa(){var b=f.ar.join("\r\n");0==f.rb.filename.length&&(f.rb.filename="pivot.csv");h.Sn.save(b,f.rb);l.Va.V().Fa(new v.fa(e.vg.oh));f.clear()}static QDa(){e.Ca(!1);f.Oca(this.rb.pj,!0);f.zIa()}static clear(){f.Y=null;
f.lb=0;f.Fm=0;f.ar=[];f.rb=null;f.yp=null;f.Dd=0;f.Cd=0}}f.lb=0;f.Fm=0;f.ar=[];h.X6=f})(l.Ac||(l.Ac={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){throw Error("Singleton");}static pg(b,a,c,d,g=null){if(!e.v(b)){f.Y=b;f.Dd=c;f.Cd=d;f.rb=a;f.yp=g;try{f.Dxa()}catch(k){console.error("Export JSON error:",k),e.Za(l.B.j.pt,l.B.j.Aa,e.xb.Aa),e.Ca(!1),l.Va.V().Fa(new v.fa(e.vg.oh)),f.clear()}}}static Dxa(){e.Ca(!0,l.B.j.Ux);f.qc=0;f.Fm=f.startTime=u.Qf();u.Cl.eo({Uo:()=>f.Vya(),$e:()=>()=>f.gFa()})}static Vya(){for(var b=Math.min(f.qc+f.Ar,f.Dd+f.Y.ug),a;f.qc<b;f.qc++){a=[];for(var c=0;c<f.Cd+
f.Y.nf;c++){var d="",g=f.Y.la.kg(c,f.qc,!0);g&&(d=g.label);a.push(d)}f.d2.push(JSON.stringify(a))}if(50<u.Qf()-f.Fm){b=f.qc/(f.Dd+f.Y.ug)*100;if(100<b)return!0;f.yJa(b);f.Fm=u.Qf()}return f.qc>=f.Dd+f.Y.ug}static yJa(b){e.Ca(!0,l.B.j.Ux,e.P.bind("{0}% ({1} rows)",b.toFixed(0),f.qc.toString()))}static CIa(){var b="["+f.d2.join(",\n")+"]";0==f.rb.filename.length&&(f.rb.filename="pivot.json");h.Sn.save(b,f.rb);l.Va.V().Fa(new v.fa(e.vg.oh));f.clear()}static gFa(){e.Ca(!1);f.CIa()}static clear(){f.Y=
null;f.qc=0;f.startTime=0;f.Fm=0;f.Dd=0;f.Cd=0;f.d2=[];f.cells=[];f.rb=null;f.yp=null}}f.qc=0;f.startTime=0;f.Fm=0;f.cells=[];f.d2=[];f.Ar=10;h.a7=f})(l.Ac||(l.Ac={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{}f.w7="formatchange";h.D7=f;class b{static Yh(a,c){a=b.zu.Hb(a)?b.zu.getItem(a).get(c):void 0;return b.X9(a)}static eI(a,c,d){b.zu.Hb(c)||b.zu.Ta(c,new Map);b.zu.getItem(c).set(d,a)}static jE(a){const c=h.X.Gf.zb(a);b.uR.Ta(c.name,c);if(null!=b.CG&&""!=c.name)c.Afa(b.CG);else if(""==c.name)for(b.CG=a,a=0;a<b.De.length;a++)b.De.ea(a).Afa(b.CG);b.De.Ta(c.name,c)}static X9(a){return b.De.Hb(a)?b.De.getItem(a):""!=a&&b.De.Hb("")?b.De.getItem(""):b.Tca()}static $ya(){return b.uR.slice()}static clear(){b.De=
new e.tb;b.uR=new e.tb;b.CG=null;b.zu=new e.tb}static RS(){return b.X9("")}static Tca(){return new h.X.Gf}static fya(a,c){return b.zu.Hb(a)&&b.zu.getItem(a).has(c)}static Oza(){return b.zu}static dispose(){b.De=null;b.uR=null;b.CG=null;b.zu=null}}b.De=new e.tb;b.uR=new e.tb;b.zu=new e.tb;b.CG=null;h.gj=b})(l.ec||(l.ec={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a=""){this.name="";this.Kb={};this.Sd={thousandsSeparator:" ",decimalSeparator:".",decimalPlaces:-1,maxDecimalPlaces:-1,maxSymbols:20,currencySymbol:"",positiveCurrencyFormat:b.Nz.$1,negativeCurrencyFormat:b.Hs["-$1"],negativeNumberFormat:b.Xu["-1"],nullValue:"",infinityValue:"Infinity",divideByZeroValue:"Infinity",textAlign:b.textAlign.RIGHT,isPercent:!1,isCount:!1,beautifyFloatingPoint:!0};this.name=a}get Xd(){return this.Kb}get kf(){return void 0!=
this.Kb.thousandsSeparator?this.Kb.thousandsSeparator:this.Sd.thousandsSeparator}set kf(a){this.Kb.thousandsSeparator=a}get wC(){return void 0!=this.Kb.decimalSeparator?this.Kb.decimalSeparator:this.Sd.decimalSeparator}set wC(a){this.Kb.decimalSeparator=a}get Ml(){return void 0!=this.Kb.decimalPlaces?this.Kb.decimalPlaces:this.Sd.decimalPlaces}set Ml(a){this.Kb.decimalPlaces=a}get Uu(){return void 0!=this.Kb.maxDecimalPlaces?this.Kb.maxDecimalPlaces:this.Sd.maxDecimalPlaces}set Uu(a){this.Kb.maxDecimalPlaces=
a}get ax(){return void 0!=this.Kb.maxSymbols?this.Kb.maxSymbols:this.Sd.maxSymbols}set ax(a){this.Kb.maxSymbols=a}get rd(){return void 0!=this.Kb.currencySymbol?this.Kb.currencySymbol:this.Sd.currencySymbol}set rd(a){this.Kb.currencySymbol=a}get Ps(){return void 0!=this.Kb.positiveCurrencyFormat?this.Kb.positiveCurrencyFormat:this.Sd.positiveCurrencyFormat}set Ps(a){this.Kb.positiveCurrencyFormat=a}get Gs(){return void 0!=this.Kb.negativeCurrencyFormat?this.Kb.negativeCurrencyFormat:this.Sd.negativeCurrencyFormat}set Gs(a){this.Kb.negativeCurrencyFormat=
a}get Zp(){return void 0!=this.Kb.negativeNumberFormat?this.Kb.negativeNumberFormat:this.Sd.negativeNumberFormat}set Zp(a){this.Kb.negativeNumberFormat=a}get GD(){return void 0!=this.Kb.nullValue?this.Kb.nullValue:this.Sd.nullValue}set GD(a){this.Kb.nullValue=a}get oD(){return void 0!=this.Kb.infinityValue?this.Kb.infinityValue:this.Sd.infinityValue}set oD(a){this.Kb.infinityValue=a}get zC(){return void 0!=this.Kb.divideByZeroValue?this.Kb.divideByZeroValue:this.Sd.divideByZeroValue}set zC(a){this.Kb.divideByZeroValue=
a}get textAlign(){return void 0!=this.Kb.textAlign?this.Kb.textAlign:this.Sd.textAlign}set textAlign(a){this.Kb.textAlign=a}get de(){return void 0!=this.Kb.isPercent?this.Kb.isPercent:this.Sd.isPercent}set de(a){this.Kb.isPercent=a}get Rf(){return void 0!=this.Kb.isCount?this.Kb.isCount:this.Sd.isCount}set Rf(a){this.Kb.isCount=a}get jG(){return void 0!=this.Kb.beautifyFloatingPoint?this.Kb.beautifyFloatingPoint:this.Sd.beautifyFloatingPoint}set jG(a){this.Kb.beautifyFloatingPoint=a}set C_(a){}get C_(){return 1<
this.rd.length&&"&"==this.rd.charAt(0)&&";"==this.rd.charAt(this.rd.length-1)?1:this.rd.length}Nia(){var a,c="";if(-1==this.Ml&&""==this.rd){if(this.Zp==b.Xu["- 1"]||this.Zp==b.Xu["1-"]||this.Zp==b.Xu["1 -"]||this.Zp==b.Xu["(1)"])c=""!=this.kf?"#,##0.0#########":"###0.0#########",c=c+";"+u.Yb.BS(c,this.Zp);return c}if("%"==this.rd){var d=-1==this.Ml?0:this.Ml;c=0<d?"0.":"0";for(a=0;a<d;a++)c+="0";return c+=this.rd}c=""!=this.kf?"#,##0":"###0";if(0<this.Ml)for(c+=".",a=0;a<this.Ml;a++)c+="0";""!=this.rd?
(a=this.rd,c=1<a.length?this.Ps==b.Nz.$1?"[$"+a+"]\\ "+c+";"+u.Yb.KL(c,"[$"+a+"]",this.Gs):c+"\\ [$"+a+"];"+u.Yb.KL(c,"[$"+a+"]",this.Gs):this.Ps==b.Nz.$1?"\\"+this.rd+c+";"+u.Yb.KL(c,this.rd,this.Gs):c+"\\"+this.rd+";"+u.Yb.KL(c,this.rd,this.Gs)):""==this.rd&&(c=c+";"+u.Yb.BS(c,this.Zp));return c}Qa(a=!1){var c={};c.name=this.name;if(a)c.thousandsSeparator=this.kf,c.decimalSeparator=this.wC,c.decimalPlaces=this.Ml,c.maxDecimalPlaces=this.Uu,c.maxSymbols=this.ax,c.currencySymbol=this.rd,c.positiveCurrencyFormat=
this.Ps,c.negativeCurrencyFormat=this.Gs,c.negativeNumberFormat=this.Zp,c.nullValue=this.GD,c.infinityValue=this.oD,c.divideByZeroValue=this.zC,c.textAlign=""!==this.textAlign?this.textAlign:b.textAlign.RIGHT,c.isPercent=this.de,c.isCount=this.Rf,c.beautifyFloatingPoint=this.jG;else for(var d in this.Kb)c[d]="textAlign"===d?""===this.textAlign?b.textAlign.RIGHT:this.textAlign:this.Kb[d];return c}static zb(a){var c=new b;null!=a.name&&(c.name=a.name);null!=a.thousandsSeparator&&l.Tb.valid(a.thousandsSeparator)&&
(c.kf=l.Tb.validate(a.thousandsSeparator,!0));null!=a.decimalSeparator&&l.Tb.valid(a.decimalSeparator)&&(c.wC=l.Tb.validate(a.decimalSeparator,!0));null!=a.decimalPlaces&&-1<=parseInt(a.decimalPlaces)&&(c.Ml=isNaN(parseInt(a.decimalPlaces))?-1:parseInt(a.decimalPlaces));null!=a.maxDecimalPlaces&&-1<=parseInt(a.maxDecimalPlaces)&&(c.Uu=isNaN(parseInt(a.maxDecimalPlaces))?-1:parseInt(a.maxDecimalPlaces));null!=a.maxSymbols&&1<=parseInt(a.maxSymbols)&&(c.ax=a.maxSymbols);null!=a.currencySymbol&&l.Tb.valid(a.currencySymbol)&&
(c.rd=l.Tb.validate(a.currencySymbol,!0));if(null!=a.currencySymbolAlign&&l.Tb.valid(a.currencySymbolAlign)){var d=l.Tb.validate(a.currencySymbolAlign);d==b.pba.LEFT?c.Ps=b.Nz.$1:d==b.pba.RIGHT&&(c.Ps=b.Nz["1$"])}null!=a.positiveCurrencyFormat&&l.Tb.valid(a.positiveCurrencyFormat)&&(c.Ps=l.Tb.validate(a.positiveCurrencyFormat,!0));null!=a.negativeCurrencyFormat&&l.Tb.valid(a.negativeCurrencyFormat)&&(c.Gs=l.Tb.validate(a.negativeCurrencyFormat,!0));null!=a.negativeNumberFormat&&l.Tb.valid(a.negativeNumberFormat)&&
(c.Zp=l.Tb.validate(a.negativeNumberFormat));null!=a.nullValue&&l.Tb.valid(a.nullValue)&&(c.GD=l.Tb.validate(a.nullValue,!0));null!=a.infinityValue&&l.Tb.valid(a.infinityValue)&&(c.oD=l.Tb.validate(a.infinityValue,!0));null!=a.divideByZeroValue&&l.Tb.valid(a.divideByZeroValue)&&(c.zC=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.Rf=1==a.isCount);null!=a.beautifyFloatingPoint&&
(c.jG=1==a.beautifyFloatingPoint);return c}clone(){var a=new b;a.name=this.name;this.Kb.hasOwnProperty("thousandsSeparator")&&(a.kf=this.kf);this.Kb.hasOwnProperty("decimalSeparator")&&(a.wC=this.wC);this.Kb.hasOwnProperty("decimalPlaces")&&(a.Ml=this.Ml);this.Kb.hasOwnProperty("maxDecimalPlaces")&&(a.Uu=this.Uu);this.Kb.hasOwnProperty("maxSymbols")&&(a.ax=this.ax);this.Kb.hasOwnProperty("currencySymbol")&&(a.rd=this.rd);this.Kb.hasOwnProperty("positiveCurrencyFormat")&&(a.Ps=this.Ps);this.Kb.hasOwnProperty("negativeCurrencyFormat")&&
(a.Gs=this.Gs);this.Kb.hasOwnProperty("negativeNumberFormat")&&(a.Zp=this.Zp);this.Kb.hasOwnProperty("nullValue")&&(a.GD=this.GD);this.Kb.hasOwnProperty("infinityValue")&&(a.oD=this.oD);this.Kb.hasOwnProperty("divideByZeroValue")&&(a.zC=this.zC);this.Kb.hasOwnProperty("textAlign")&&(a.textAlign=this.textAlign);this.Kb.hasOwnProperty("isPercent")&&(a.de=this.de);this.Kb.hasOwnProperty("isPercent")&&(a.Rf=this.Rf);this.Kb.hasOwnProperty("beautifyFloatingPoint")&&(a.jG=this.jG);var c={},d;for(d in this.Sd)c[d]=
this.Sd[d];a.Sd=c;return a}Afa(a){for(var c in a)this.Sd[c]=a[c]}}b.pba={LEFT:"left",RIGHT:"right"};b.Hs={"-$1":"-$1","-1$":"-1$","$-1":"$-1","$1-":"$1-","1-$":"1-$","1$-":"1$-","($1)":"($1)","(1$)":"(1$)"};b.Nz={$1:"$1","1$":"1$"};b.Xu={"-1":"-1","- 1":"- 1","1-":"1-","1 -":"1 -","(1)":"(1)"};b.textAlign={LEFT:"left",CENTER:"center",RIGHT:"right"};f.Gf=b})(h.X||(h.X={}))})(l.ec||(l.ec={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static valid(b){return b==f.ag||b==f.Tc||b==f.le||b==f.API||b==f.JSON||b==f.Sh||b==f.Dq||b==f.EMPTY}static Gc(b){return this.valid(b)&&(b==f.le||b==f.Tc||b==f.ag||b==f.API)}static J(b){return b==f.Sh?"CSV":b==f.Dq?"OCSV":b==f.JSON?"JSON":b==f.Tc?"Microsoft Analysis Services":b==f.le?"Mondrian":b==f.ag?"Elasticsearch":b==f.API?"Flexmonster Custom API":""}}f.Tc="microsoft analysis services";f.le="mondrian";f.Sh="csv";f.Dq="ocsv";f.JSON="json";f.ag="elasticsearch";
f.API="api";f.EMPTY="";h.qa=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static validate(m){if(e.ia(m))return f.NONE;m=m.toLowerCase();return 0<=f.types.indexOf(m)?m:f.NONE}static hea(m,n){switch(m){case h.ib.$c:return c.Ug(n);case h.ib.jb:return b.Ug(n);case h.ib.Sa:return d.Ug(n)}return!1}}f.NONE="none";f.Ok="label";f.Sa="date";f.jb="number";f.$n="value";f.dc="time";f.types=[f.NONE,f.Ok,f.Sa,f.jb,f.$n,f.dc];h.qb=f;class b{static Ug(m){return e.v(m)?!1:0<=b.wq.indexOf(m.toLowerCase())}}b.EQUAL="equal";b.cg="not_equal";b.GREATER=
"greater";b.xl="greater_equal";b.LESS="less";b.yl="less_equal";b.nh="between";b.bh="not_between";b.ki=[b.EQUAL,b.cg,b.GREATER,b.xl,b.LESS,b.yl];b.If=[b.nh,b.bh];b.wq=[b.EQUAL,b.cg,b.GREATER,b.xl,b.LESS,b.yl,b.nh,b.bh];h.Jg=b;class a extends b{}h.Qk=a;class c{static Ug(m){return e.v(m)?!1:0<=c.wq.indexOf(m.toLowerCase())}}c.EQUAL="equal";c.cg="not_equal";c.HE="begin";c.PA="not_begin";c.CA="end";c.RA="not_end";c.On="contain";c.QA="not_contain";c.GREATER="greater";c.xl="greater_equal";c.LESS="less";
c.yl="less_equal";c.nh="between";c.bh="not_between";c.ki=[c.EQUAL,c.cg,c.HE,c.PA,c.CA,c.RA,c.On,c.QA,c.GREATER,c.xl,c.LESS,c.yl];c.If=[c.nh,c.bh];c.wq=[c.EQUAL,c.cg,c.HE,c.PA,c.CA,c.RA,c.On,c.QA,c.GREATER,c.xl,c.LESS,c.yl,c.nh,c.bh];h.Bb=c;class d{static Ug(m){return e.v(m)?!1:0<=d.wq.indexOf(m.toLowerCase())}}d.EQUAL="equal";d.cg="not_equal";d.FE="before";d.GE="before_equal";d.CE="after";d.DE="after_equal";d.nh="between";d.bh="not_between";d.WO="last";d.mO="current";d.pP="next";d.ki=[d.EQUAL,d.cg,
d.FE,d.GE,d.CE,d.DE];d.If=[d.nh,d.bh];d.Wx=[d.WO,d.mO,d.pP];d.wq=[d.EQUAL,d.cg,d.FE,d.GE,d.CE,d.DE,d.nh,d.bh,d.WO,d.mO,d.pP];h.$b=d;class g{static Ug(m){return e.v(m)?!1:0<=g.types.indexOf(m.toLowerCase())}}g.$m="day";g.QJ="week";g.$g="month";g.ut="quarter";g.Dl="year";g.types=[g.$m,g.QJ,g.$g,g.ut,g.Dl];h.AA=g;class k extends b{static Ug(m){return e.v(m)?!1:0<=k.wq.indexOf(m.toLowerCase())}}k.ck="top";k.Hi="bottom";k.ki=[k.ck,k.Hi,k.EQUAL,k.cg,k.GREATER,k.xl,k.LESS,k.yl];k.If=[k.nh,k.bh];k.wq=[k.ck,
k.Hi,k.EQUAL,k.cg,k.GREATER,k.xl,k.LESS,k.yl,k.nh,k.bh];h.yc=k})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){class f{static Ug(b){return b==f.fd||b==f.ic||b==f.Kc}static $S(b="",a=!1,c=!1){return c?b==l.i.za.ic?a?l.i.za.fd:l.i.za.Kc:b==l.i.za.Kc?a?l.i.za.ic:l.i.za.fd:a?l.i.za.Kc:l.i.za.ic:b==l.i.za.Kc?l.i.za.ic:l.i.za.Kc}}f.fd="unsorted";f.ic="asc";f.Kc="desc";f.Aoa="numericRange";h.za=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){}}f.La="rows";f.Xa="columns";f.rt="pages";h.ja=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.OA=1;ta.fP=2;ra.BA=ta;
(function(e){(function(l){(function(h){class f{static JC(b){var a=f.pv;switch(b){case h.input.yf.J7.fP:a=f.Cq;break;case h.input.yf.J7.OA:a=f.Sa}return a}static u0(b){return 0<=h.Pa.zL.indexOf(b)?f.Cq:"date"==b?f.Sa:f.pv}static t0(b){var a=f.pv;switch(b){case h.input.sa.jb:case h.input.sa.dc:a=f.Cq;break;case h.input.sa.Dj:case h.input.sa.Bq:case h.input.sa.hp:case h.input.sa.Jc:case h.input.sa.Sa:a=f.Sa}return a}static wE(b){var a=h.input.sa.$c;switch(b){case f.Cq:a=h.input.sa.jb;break;case f.Sa:a=
h.input.sa.Sa}return a}}f.pv=0;f.Sa=1;f.Cq=2;f.zL=["keyword","date","boolean"];h.Lc=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static JC(b){switch(b){case h.input.yf.MA.$c:case h.input.yf.MA.xqa:return f.$c;case h.input.yf.MA.bp:return f.bp;case h.input.yf.MA.Sa:return f.Sa;case h.input.yf.MA.Jc:return f.Jc;case h.input.yf.MA.Zpa:return f.dc;case h.input.yf.MA.xc:return f.xc}return f.jb}static sya(b){b=b.toLowerCase();switch(b){case "string":return f.Sa;case "integer":case "number":case "double":return f.jb;default:return f.jb}}static pya(b){switch(b){case 13:return f.dc;case 15:return f.Jc;
case 3:return f.bp;case 12:return f.jb}return f.xc}static rya(b){var a=f.xc;switch(b){case "number":a=f.jb;break;case "string":a=f.$c;break;case "boolean":a=f.bp;break;case "date":a=f.Sa;break;case "timestamp":a=f.dc;break;case "count":a=f.xc}return a}static u0(b){return 0<=h.Lc.zL.indexOf(b)?f.xc:f.jb}static wE(b){switch(b){case f.$c:return h.input.sa.$c;case f.bp:return h.input.sa.bp;case f.Sa:return h.input.sa.Sa;case f.Jc:return h.input.sa.Jc;case f.dc:return h.input.sa.dc;case f.xc:return h.input.sa.$c}return h.input.sa.jb}}
f.jb=1;f.$c=2;f.bp=3;f.Sa=4;f.dc=5;f.Jc=6;f.xc=7;f.zL="long integer short byte double float half_float scaled_float".split(" ");h.Pa=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static VT(b){return b===f.jb||b===f.Dl||b===f.$m||b===f.PO||b===f.mP||b===f.LX||b===f.q8||b===f.Jc||b===f.dc||b===f.Sa}static HBa(b){return b===f.Sa||b===f.Jc||b===f.Dj}static qya(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 JC(b,a=!1,c=0){if(a)return f.qya(c);switch(b){case h.input.yf.Nk.sna:return f.qja;case h.input.yf.Nk.tna:case 4178:case 4561:case 4562:return f.jb;
case h.input.yf.Nk.una:case h.input.yf.Nk.Gna:return f.dc;case h.input.yf.Nk.yna:case h.input.yf.Nk.xna:case h.input.yf.Nk.zna:return f.$m;case h.input.yf.Nk.Ana:case 4385:case 4328:case 4329:return f.iX;case h.input.yf.Nk.Bna:return f.PO;case h.input.yf.Nk.Cna:return f.mP;case h.input.yf.Nk.Dna:return f.$g;case h.input.yf.Nk.Ena:case 4336:case 4337:case 4578:return f.ut;case h.input.yf.Nk.Fna:return f.LX;case h.input.yf.Nk.Hna:case 4345:case h.input.yf.Nk.Ina:case 4344:return f.QJ;case h.input.yf.Nk.Jna:case 4759:case 4345:case 4346:return f.Dl;
case h.input.yf.Nk.wna:case h.input.yf.Nk.vna:case 4657:case 4659:case 4292:case 4294:return f.Sa}return f.$c}static wE(b){switch(b){case f.jb:case f.PO:case f.mP:case f.LX:case f.q8:return h.input.sa.jb;case f.Sa:case f.Dl:case f.Dl:case f.$m:return h.input.sa.Sa;case f.bp:return h.input.sa.bp;case f.$g:return h.input.sa.$g;case f.fn:return h.input.sa.fn;case f.dc:return h.input.sa.dc;case f.Jc:return h.input.sa.Jc;case f.Dj:return h.input.sa.Dj;default:return h.input.sa.$c}}static t0(b){switch(b){case h.input.sa.$c:return f.$c;
case h.input.sa.jb:return f.jb;case h.input.sa.bp:return f.bp;case h.input.sa.$g:return f.$g;case h.input.sa.fn:return f.fn;case h.input.sa.Sa:case h.input.sa.Bq:case h.input.sa.hp:return f.Sa;case h.input.sa.Dj:return f.Dj;case h.input.sa.dc:return f.dc;case h.input.sa.Jc:return f.Jc;default:return f.$c}}}f.qja=0;f.$c=1;f.jb=2;f.bp=3;f.Sa=4;f.dc=5;f.Dl=6;f.iX=7;f.ut=8;f.$g=9;f.QJ=10;f.fn=11;f.$m=12;f.PO=13;f.mP=14;f.LX=15;f.q8=16;f.Jc=17;f.Dj=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.yf||(e.yf={});class l{}l.OA=1;l.fP=2;e.J7=l})(q||(q={}));(function(e){e=e.u||(e.u={});e=e.i||(e.i={});e=e.input||(e.input={});e=e.yf||(e.yf={});class l{}l.jb=1;l.$c=2;l.bp=3;l.Sa=4;l.xqa=5;l.Zpa=6;l.xc=7;l.Jc=8;e.MA=l})(q||(q={}));
(function(e){e=e.u||(e.u={});e=e.i||(e.i={});e=e.input||(e.input={});e=e.yf||(e.yf={});class l{}l.sna=1;l.tna=2;l.una=4;l.wna=516;l.Ana=36;l.Bna=772;l.Cna=1028;l.Dna=132;l.Ena=68;l.Fna=2052;l.Gna=4100;l.Hna=260;l.Jna=20;l.vna=4289;l.xna=4296;l.yna=4301;l.zna=4302;l.Ina=4759;e.Nk=l})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{static valid(a){return-1<b.MK.indexOf(a)}static t5(a){return""===a?b.$c:"number"!=typeof a&&isNaN(Number(a))?e.P.HT(a)?e.model.C.F.qL:b.$c:b.jb}static nya(a){a=a.trim();var c=b.$c;"+"==a.charAt(0)?c=b.$c:"t+"==a.substr(0,2)?c=b.dc:"dt+"==a.substr(0,3)?c=b.Jc:"n+"==a.substr(0,2)?c=b.jb:"-"==a.charAt(0)?c=b.jb:"ds+"==a.substr(0,3)?c=b.Dj:"d+"==a.substr(0,2)?c=b.Sa:"m+"==a.substr(0,2)?c=b.$g:"w+"==a.substr(0,2)?c=b.fn:"D+"==a.substr(0,2)?c=
b.Bq:"D4+"==a.substr(0,3)?c=b.hp:"id+"==a.substr(0,3)&&(c=b.Rx);return c}}b.jb="number";b.$c="string";b.bp="boolean";b.Hf="level";b.$g="month";b.fn="weekday";b.Sa="date";b.Dj="date string";b.Bq="year/month/day";b.hp="year/quarter/month/day";b.dc="time";b.Jc="datetime";b.Rx="id";b.G6="delete";b.I7="hidden";b.iF="property";b.DI="any";b.MK="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 CI(){return f.mA.concat(f.nA)}static get Dja(){0===f.eY.length&&(f.eY=f.nja.concat(f.nA));return f.eY}static get Aja(){0===f.dY.length&&(f.dY=f.mja);return f.dY}static get M5(){0===f.cY.length&&(f.cY=[f.NONE].concat(f.nA));return f.cY}static fG(b){return b===f.Iq?e.model.B.j.Z8:b===f.xc?e.model.B.j.s6:b===f.Ej||b===f.tO?e.model.B.j.ala:b===f.xq?e.model.B.j.N5:b===f.wv?e.model.B.j.Lna:b===f.Cv?e.model.B.j.Epa:b===f.Dv?e.model.B.j.Gpa:b===f.st?
e.model.B.j.Yoa:b===f.MIN?e.model.B.j.moa:b===f.MAX?e.model.B.j.qna:b===f.Ir?e.model.B.j.Koa:b===f.lp||b===f.sP?e.model.B.j.Loa:b===f.Hq?e.model.B.j.Woa:b===f.Fq?e.model.B.j.Soa:b===f.Gq?e.model.B.j.Uoa:b===f.Ji?e.model.B.j.Pma:b===f.Rn||b===f.sO?e.model.B.j.Xka:b===f.an?e.model.B.j.Zka:b===f.Wn||b===f.tP?e.model.B.j.Noa:b===f.cn?e.model.B.j.Poa:b===f.en||b===f.wP?e.model.B.j.kpa:b===f.Yn?e.model.B.j.mpa:b===f.NONE?e.model.B.j.xoa:b}static EZ(b=null){var a=[];b=b?b:f.CI;for(var c=0;c<b.length;c++)a.push(f.fG(b[c]));
return a}static laa(b=null){var a=[];b=b?b:f.CI;for(var c=0;c<b.length;c++)b[c]===f.Iq?a.push(e.model.B.j.LJ):b[c]===f.xc?a.push(e.model.B.j.kO):b[c]===f.Ej||b[c]===f.tO?a.push(e.model.B.j.uO):b[c]===f.xq?a.push(e.model.B.j.fO):b[c]===f.wv?a.push(e.model.B.j.rX):b[c]===f.Cv?a.push(e.model.B.j.CP):b[c]===f.Dv?a.push(e.model.B.j.DP):b[c]===f.st?a.push(e.model.B.j.uP):b[c]===f.MIN?a.push(e.model.B.j.nP):b[c]===f.MAX?a.push(e.model.B.j.eP):b[c]===f.Ir?a.push(e.model.B.j.FJ):b[c]===f.lp||b[c]===f.sP?a.push(e.model.B.j.zJ):
b[c]===f.Hq?a.push(e.model.B.j.EJ):b[c]===f.Fq?a.push(e.model.B.j.CJ):b[c]===f.Gq?a.push(e.model.B.j.DJ):b[c]===f.Ji?a.push(e.model.B.j.mJ):b[c]===f.Rn||b[c]===f.sO?a.push(e.model.B.j.SI):b[c]===f.an?a.push(e.model.B.j.TI):b[c]===f.Wn||b[c]===f.tP?a.push(e.model.B.j.AJ):b[c]===f.cn?a.push(e.model.B.j.BJ):b[c]===f.en||b[c]===f.wP?a.push(e.model.B.j.vP):b[c]===f.Yn?a.push(e.model.B.j.xP):b[c]===f.NONE?a.push("{0}"):-1<f.mA.indexOf(b[c])&&a.push(`{0} (${b[c]})`);return a}static iA(b){return-1!==f.CI.indexOf(b)||
b===f.NONE}static HKa(b){return-1!==f.M5.indexOf(b)}static AE(b){return-1!==f.kja.indexOf(b)||b===f.NONE}static Zo(b){return-1!==f.lja.indexOf(b)||b===f.NONE}static Rf(b){return-1!==f.oja.indexOf(b)}static de(b){return-1!==f.pja.indexOf(b)}static zM(b){return b===f.Rn||b===f.an||b===f.Wn||b===f.cn}static GM(b){return b===f.en||b===f.Yn}static Ty(b){return b===f.tO||b===f.sP||b===f.sO||b===f.tP||b===f.wP}static cz(b){switch(b){case f.tO:return f.Ej;case f.sP:return f.lp;case f.sO:return f.Rn;case f.tP:return f.Wn;
case f.wP:return f.en;default:return""}}static zT(b){return-1!==f.mA.indexOf(b)||b===f.NONE}}f.Iq="sum";f.xc="count";f.Ej="distinctcount";f.tO="distinct count";f.xq="average";f.wv="median";f.Cv="stdevp";f.Dv="stdevs";f.Ir="percent";f.lp="percentofcolumn";f.Hq="percentofrow";f.Fq="percentofparentcolumntotal";f.Gq="percentofparentrowtotal";f.sP="percent of column";f.st="product";f.Ji="index";f.en="runningtotalsofcolumn";f.Yn="runningtotalsofrow";f.wP="runningtotals";f.MIN="min";f.MAX="max";f.NONE="none";
f.Rn="differenceofcolumn";f.an="differenceofrow";f.sO="difference";f.Wn="%differenceofcolumn";f.cn="%differenceofrow";f.tP="%difference";f.mA=[f.Iq,f.xc,f.Ej,f.xq,f.wv,f.st,f.MIN,f.MAX,f.Cv,f.Dv];f.nA=[f.Ir,f.lp,f.Hq,f.Fq,f.Gq,f.Ji,f.Rn,f.an,f.Wn,f.cn,f.en,f.Yn];f.nO=[];f.nja=[f.xc,f.Ej];f.eY=[];f.mja=[f.MAX,f.MIN,f.xc,f.Ej];f.dY=[];f.cY=[];f.Bja=[f.Iq,f.xc,f.Ej,f.xq,f.MIN,f.MAX];f.Cja=[f.xc,f.Ej];f.oja=[f.xc,f.Ej];f.pja=[f.Ir,f.lp,f.Hq,f.Fq,f.Gq,f.Wn,f.cn];f.kja=[f.Iq,f.xq,f.wv,f.st,f.MIN,f.MAX];
f.lja=[f.Iq,f.xq,f.wv,f.st,f.MIN,f.MAX,f.Cv,f.Dv,f.Rn,f.an,f.en,f.Yn];h.da=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.bO="+";ya.EP="-";ya.oP="*";ya.UI="/";ya.BX="^";ya.LESS="<";ya.GREATER=">";ya.EQUAL="=";ya.qla="==";ya.cg="!=";ya.R7="<=";ya.E7=">=";ya.E8="or";ya.E5="and";ya.QO="if";ya.pW="abs";ya.IX="round";ya.MIN="min";ya.MAX="max";ya.Ija="isnan";ya.zoa="!isnan";ya.$n="value";ya.OP="updatedifference";ya.PP="updatepercent";
xa.nc=ya;var za=q||(q={}),Aa=za.u||(za.u={}),Ba=Aa.i||(Aa.i={});class Ca{}Ca.np="select";Ca.EA="expand";Ca.i6="collapse";Ca.MW="drillUp";Ca.qv="drillDown";Ca.KW="drillDownTo";Ca.VI="drillThrough";Ca.EO="filter";Ca.KX="search";Ba.Rd=Ca;var Da=q||(q={}),Ea=Da.u||(Da.u={}),Fa=Ea.i||(Ea.i={});class Ga{}Ga.vO=Number.NEGATIVE_INFINITY;Fa.wO=Ga;
(function(e){(function(l){(function(h){class f{constructor(){this.tl=()=>this.Ls();this.Cj=()=>this.fq()}TCa(b,a,c){try{this.dispose(),this.Nb=c,this.vC=this.nk=0,this.$w=u.ey.sH(b),this.JN(this.$w,a)}catch(d){this.Sb(d)}}kr(){e.Ca(!1);let b;try{b=JSON.parse(this.oa.response)}catch(a){b=null}null!=this.Nb&&(this.Nb(b),this.dispose())}jEa(){e.Ca(!0,e.model.B.j.xX,"")}eq(b){const a=b.data;if(404==a.target.status)this.Sb(b);else if(!e.v(this.oa))try{const d=this.oa.response;if(null!=d&&0!=d.length&&
(this.nk!=a.loaded||this.vC!=d.length)){this.nk=a.loaded;this.vC=d.length;var c=0==a.total?e.P.bind(e.model.B.j.jm,u.Yb.Og(a.loaded)):e.P.bind(e.model.B.j.eF,u.Yb.Og(a.loaded),u.Yb.Og(a.total),(a.loaded/a.total*100).toFixed(0));e.Ca(!0,e.model.B.j.xX,c)}}catch(d){console.error(d.stack),this.Sb(d)}}Sb(){e.Ca(!1);null!=this.Nb&&(this.Nb(null),this.dispose())}JN(b,a){this.timer=new u.wt(100,1E5);this.timer.N(u.pf.Al,this.tl);this.timer.N(u.pf.Bl,this.Cj);this.timer.start();var c=new z.ek;c.dataType=
z.zA.aB;c.N(v.fa.Oc,()=>this.kr());c.N(v.fa.vA,()=>this.jEa());c.N(v.fa.ue,d=>this.eq(d));c.N(v.fa.Aa,d=>this.Sb(d));c.Qh(a);c.load(b);this.oa=c}Ls(){0<this.nk?this.rg():null!=this.timer&&this.timer.pl&&e.Ca(!0,e.model.B.j.xX,e.P.bind(e.model.B.j.qt,u.Yb.format(this.timer.tw/10,new e.model.ec.X.Gf,!1,!1,1)))}fq(){this.timer.pl&&this.rg()}rg(){this.timer&&this.timer.pl&&(this.timer.stop(),this.timer.sb(u.pf.Al,this.tl),this.timer.sb(u.pf.Bl,this.Cj))}dispose(){this.rg();null!=this.oa&&(this.oa.Yd(),
this.oa.dispose(),this.oa=null);this.Nb=null}}h.poa=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(b){b.hMa="visible";b.bMa="caption";b.TYPE="type";b.jX="hierarchy";b.Hf="level";b.fMa="parent";b.aMa="aggregations";b.cMa="format";b.dMa="interval";b.gMa="time_zone";b.eMa="min_doc_count";b.qMa="isMeasure";b.iMa="filters"})(h.qoa||(h.qoa={}));class f{constructor(b=null){this.$w=this.mapping=null;this.mu={};this.tU=null;"string"==typeof b?this.$w=b:(this.mapping=b,this.mW());this.mu.filters=!0}mW(){for(var b in this.mapping)if("aggregations"===b)this.up=
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.t5(this.mapping[b]);this.mapping[b]={uniqueName:b,caption:b,type:a}}}Ha(b,a,c=null){b=u.Sc.resolve(b,this.mapping);var d=null;e.v(b)||(d=b[a]);e.v(d)&&(d=c);e.v(d)&&(d=this.mu[a]);return d}gi(b,a,c){var d=u.Sc.resolve(b,this.mapping);e.v(d)&&(this.mapping[b]={},d=this.mapping[b]);e.v(d)||(d[a]=c)}Qa(b=!1){if(b&&this.Jo)return this.$w;b&&this.up&&(this.mapping.aggregations=this.up);
return this.mapping}fDa(b){switch(b){case l.i.qa.API:b=new l.external.pc.dO;break;case l.i.qa.ag:b=new l.external.Qe.zO;break;case l.i.qa.le:case l.i.qa.Tc:new l.external.Eb.qP;default:b=new f}return b}clone(b=""){b=this.fDa(b);b.mapping=u.Sc.nj(this.mapping);b.$w=this.$w;b.up=this.up;return b}isEqual(b){return JSON.stringify(this.Qa(!0))===JSON.stringify(b.Qa(!0))&&b.Jo||JSON.stringify(this.mapping)===JSON.stringify(b.Qa())}get nb(){return!this.uea&&e.v(this.up)}get uea(){return!e.v(this.mapping)&&
0<Object.keys(this.mapping).length}get Jo(){return null!==this.$w&&0<this.$w.length}UCa(b,a){this.$e=a;this.Jo&&this.nb?(this.tU=new h.poa,this.tU.TCa(this.$w,b,c=>this.sFa(c))):(this.$e(),this.$e=null)}sFa(b){null!==b&&(this.mapping=b,this.mW());this.$e();this.$e=null;this.tU.dispose();this.tU=null}static UT(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.UT(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}B2(b,a){const c=u.Sc.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.q$(c[n],a),e.ia(m.uniqueName)&&(m.uniqueName=b),e.ia(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.q$(c,a)}q$(b,a){a=u.Sc.nj(a);for(var c in b)a[c]=b[c],"aggregations"===c&&(a.availableAggregations=b[c]);return a}}h.km=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.sc=null;this.withCredentials=!1;this.ao=l.i.qa.EMPTY;this.vCa=!1}get Da(){return this.ao}set Da(b){this.ao=b.toLowerCase()}get Gc(){return l.i.qa.Gc(this.ao)}set Gc(b){}get DM(){return!1}set DM(b){}isEqual(b){return b&&this.Da==b.Da&&this.withCredentials==b.withCredentials}get nb(){return this.ao==l.i.qa.EMPTY}set nb(b){}get yM(){return this.ao===l.i.qa.Sh&&"this"===this.filename}get Mu(){return!1}set Mu(b){}get AH(){return!0}get KT(){return!0}get JT(){return!0}static zb(b){if(void 0==
b||e.model.Ga.uc.Oj()==e.model.Ga.ip.lm)return new h.FA;e.v(b.connectionInfo)||(b=b.connectionInfo);b instanceof f||b instanceof l.local.csv.lO||b instanceof l.local.csv.gF||b instanceof l.local.json.TO||b instanceof l.external.Eb.kp||b instanceof l.external.Qe.Q6||b instanceof l.external.pc.G5||(b=f.fm(b));e.v(b.dataSourceType)||(b.dataSourceType=b.dataSourceType.toLowerCase());b.dataSourceType&&-1<b.dataSourceType.indexOf("pentaho")&&(b.dataSourceType=l.i.qa.le);"msolap"==b.dataSourceType&&(b.dataSourceType=
l.i.qa.Tc);!l.i.qa.valid(b.dataSourceType)&&b.proxyUrl&&(b.dataSourceType=l.i.qa.Tc);if("es"==b.dataSourceType||"elastic"==b.dataSourceType)b.dataSourceType=l.i.qa.ag;!l.i.qa.valid(b.dataSourceType)&&(b.host||b.node)&&b.index&&(b.dataSourceType=l.i.qa.ag);!l.i.qa.valid(b.dataSourceType)&&(b.url||b.discover&&b.select)&&(b.dataSourceType=l.i.qa.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.qa.Sh:".ocsv"==a.substr(-5)?
l.i.qa.Dq:".json"==a.substr(-5)||".js"==a.substr(-3)?l.i.qa.JSON:l.i.qa.Sh}!e.v(b.data)&&Array.isArray(b.data)&&(b.dataSourceType=l.i.qa.JSON,b.data=b.data.slice());if(b.dataSourceType==l.i.qa.ag&&e.model.Ga.uc.Oj()!=e.model.Ga.ip.ag&&e.model.Ga.uc.Oj()!=e.model.Ga.ip.yO)return e.model.Ga.uc.Oj()!=e.model.Ga.ip.lm&&e.Za(e.model.Ga.pa.J(e.model.Ga.pa.Axa),e.model.Ga.pa.J(e.model.Ga.pa.BD)),new h.FA;if(b.dataSourceType==l.i.qa.Tc&&e.model.Ga.uc.Oj()!=e.model.Ga.ip.rja&&e.model.Ga.uc.Oj()!=e.model.Ga.ip.yO)return e.model.Ga.uc.Oj()!=
e.model.Ga.ip.lm&&e.Za(e.model.Ga.pa.J(e.model.Ga.pa.FDa),e.model.Ga.pa.J(e.model.Ga.pa.BD)),new h.FA;if(b.dataSourceType==l.i.qa.le&&e.model.Ga.uc.Oj()!=e.model.Ga.ip.le&&e.model.Ga.uc.Oj()!=e.model.Ga.ip.yO)return e.model.Ga.uc.Oj()!=e.model.Ga.ip.lm&&e.Za(e.model.Ga.pa.J(e.model.Ga.pa.xDa),e.model.Ga.pa.J(e.model.Ga.pa.BD)),new h.FA;if((b.dataSourceType==l.i.qa.Sh||b.dataSourceType==l.i.qa.Dq||b.dataSourceType==l.i.qa.JSON)&&e.model.Ga.uc.Oj()!=e.model.Ga.ip.Dka&&e.model.Ga.uc.Oj()!=e.model.Ga.ip.yO)return e.model.Ga.uc.Oj()!=
e.model.Ga.ip.lm&&e.Za(e.model.Ga.pa.J(e.model.Ga.pa.JDa),e.model.Ga.pa.J(e.model.Ga.pa.BD)),new h.FA;switch(b.dataSourceType){case l.i.qa.Dq:return l.local.csv.gF.zb(b);case l.i.qa.Sh:return l.local.csv.lO.zb(b);case l.i.qa.JSON:return l.local.json.TO.zb(b);case l.i.qa.Tc:case l.i.qa.le:return l.external.Eb.kp.zb(b);case l.i.qa.ag:return l.external.Qe.Q6.zb(b);case l.i.qa.API:return l.external.pc.G5.zb(b);default:return new h.FA}}static fm(b){var a={};e.ia(b.type)||(a.dataSourceType=b.type);e.ia(b.dataSourceType)||
(a.dataSourceType=b.dataSourceType);e.ia(b.filename)||(a.filename=b.filename);e.ia(b.requestHeader)||(a.requestHeaders=b.requestHeader);e.ia(b.requestHeaders)||(a.requestHeaders=b.requestHeaders);e.ia(b.browseForFile)||(a.browseForFile=b.browseForFile);e.ia(b.requestPermission)||(a.requestPermission=b.requestPermission);e.ia(b.thousandSeparator)||(a.thousandsSeparator=b.thousandSeparator);e.ia(b.thousandsSeparator)||(a.thousandsSeparator=b.thousandsSeparator);e.ia(b.fieldSeparator)||(a.fieldSeparator=
b.fieldSeparator);e.ia(b.recordsetDelimiter)||(a.recordsetDelimiter=b.recordsetDelimiter);e.ia(b.ignoreQuotedLineBreaks)||(a.ignoreQuotedLineBreaks=b.ignoreQuotedLineBreaks);e.ia(b.embedded)||(a.embedded=b.embedded);e.ia(b.embeddedDataOffset)||(a.embeddedDataOffset=b.embeddedDataOffset);e.ia(b.embeddedDataToLoad)||(a.embeddedDataToLoad=b.embeddedDataToLoad);e.ia(b.isOCSV2Data)||(a.isOCSV2Data=b.isOCSV2Data);e.v(b.data)||(a.data=b.data);e.ia(b.checkUpdates)||(a.checkUpdates=b.checkUpdates);e.ia(b.proxyUrl)||
(a.proxyUrl=b.proxyUrl);e.ia(b.dataSourceInfo)||(a.dataSourceInfo=b.dataSourceInfo);e.ia(b.catalog)||(a.catalog=b.catalog);e.ia(b.cube)||(a.cube=b.cube);e.ia(b.subquery)||(a.subquery=b.subquery);e.ia(b.binary)||(a.binary=b.binary);e.ia(b.withCredentials)||(a.withCredentials=b.withCredentials);e.ia(b.roles)||(a.roles=b.roles);e.ia(b.localeIdentifier)||(a.localeIdentifier=b.localeIdentifier);e.ia(b.effectiveUserName)||(a.effectiveUserName=b.effectiveUserName);e.ia(b.customData)||(a.customData=b.customData);
e.ia(b.url)||(a.url=b.url);e.ia(b.handshakingUrl)||(a.handshakingUrl=b.handshakingUrl);e.ia(b.dimensionsUrl)||(a.dimensionsUrl=b.dimensionsUrl);e.ia(b.hierarchiesUrl)||(a.hierarchiesUrl=b.hierarchiesUrl);e.ia(b.levelsUrl)||(a.levelsUrl=b.levelsUrl);e.ia(b.measuresUrl)||(a.measuresUrl=b.measuresUrl);e.ia(b.membersUrl)||(a.membersUrl=b.membersUrl);e.ia(b.dataUrl)||(a.dataUrl=b.dataUrl);e.ia(b.drillThroughUrl)||(a.drillThroughUrl=b.drillThroughUrl);e.ia(b.host)||(a.host=b.host);e.ia(b.node)||(a.node=
b.node);e.ia(b.connection)||(a.connection=b.connection);e.ia(b.index)||(a.index=b.index);e.ia(b.mapping)||(a.mapping=b.mapping);e.ia(b.singleEndpoint)||(a.singleEndpoint=b.singleEndpoint);e.ia(b.useSockets)||(a.useSockets=b.useSockets);e.ia(b.useStreamLoader)||(a.useStreamLoader=b.useStreamLoader);e.ia(b.useGranularityNamesForDateFilters)||(a.useGranularityNamesForDateFilters=b.useGranularityNamesForDateFilters);e.ia(b.hash)||(a.hash=b.hash);e.ia(b.username)||(a.username=b.username);e.ia(b.password)||
(a.password=b.password);e.ia(b.dataSource)||(b=b.dataSource,e.ia(b.type)||(a.dataSourceType=b.type),e.ia(b.dataSourceType)||(a.dataSourceType=b.dataSourceType),e.ia(b.filename)||(a.filename=b.filename),e.ia(b.requestHeader)||(a.requestHeaders=b.requestHeader),e.ia(b.requestHeaders)||(a.requestHeaders=b.requestHeaders),e.ia(b.browseForFile)||(a.browseForFile=b.browseForFile),e.ia(b.requestPermission)||(a.requestPermission=b.requestPermission),e.ia(b.fieldSeparator)||(a.fieldSeparator=b.fieldSeparator),
e.ia(b.thousandSeparator)||(a.thousandsSeparator=b.thousandSeparator),e.ia(b.thousandsSeparator)||(a.thousandsSeparator=b.thousandsSeparator),e.ia(b.recordsetDelimiter)||(a.recordsetDelimiter=b.recordsetDelimiter),e.ia(b.ignoreQuotedLineBreaks)||(a.ignoreQuotedLineBreaks=b.ignoreQuotedLineBreaks),e.ia(b.embedded)||(a.embedded=b.embedded),e.ia(b.embeddedDataOffset)||(a.embeddedDataOffset=b.embeddedDataOffset),e.ia(b.embeddedDataToLoad)||(a.embeddedDataToLoad=b.embeddedDataToLoad),e.ia(b.isOCSV2Data)||
(a.isOCSV2Data=b.isOCSV2Data),e.v(b.data)||(a.data=b.data),e.ia(b.proxyUrl)||(a.proxyUrl=b.proxyUrl),e.ia(b.dataSourceInfo)||(a.dataSourceInfo=b.dataSourceInfo),e.ia(b.catalog)||(a.catalog=b.catalog),e.ia(b.cube)||(a.cube=b.cube),e.ia(b.subquery)||(a.subquery=b.subquery),e.ia(b.binary)||(a.binary=b.binary),e.ia(b.withCredentials)||(a.withCredentials=b.withCredentials),e.ia(b.roles)||(a.roles=b.roles),e.ia(b.localeIdentifier)||(a.localeIdentifier=b.localeIdentifier),e.ia(b.effectiveUserName)||(a.effectiveUserName=
b.effectiveUserName),e.ia(b.customData)||(a.customData=b.customData),e.ia(b.url)||(a.url=b.url),e.ia(b.handshakingUrl)||(a.handshakingUrl=b.handshakingUrl),e.ia(b.dimensionsUrl)||(a.dimensionsUrl=b.dimensionsUrl),e.ia(b.hierarchiesUrl)||(a.hierarchiesUrl=b.hierarchiesUrl),e.ia(b.levelsUrl)||(a.levelsUrl=b.levelsUrl),e.ia(b.measuresUrl)||(a.measuresUrl=b.measuresUrl),e.ia(b.membersUrl)||(a.membersUrl=b.membersUrl),e.ia(b.dataUrl)||(a.dataUrl=b.dataUrl),e.ia(b.drillThroughUrl)||(a.drillThroughUrl=b.drillThroughUrl),
e.ia(b.host)||(a.host=b.host),e.ia(b.node)||(a.node=b.node),e.ia(b.connection)||(a.connection=b.connection),e.ia(b.index)||(a.index=b.index),e.ia(b.mapping)||(a.mapping=b.mapping),e.ia(b.singleEndpoint)||(a.singleEndpoint=b.singleEndpoint),e.ia(b.useStreamLoader)||(a.useStreamLoader=b.useStreamLoader),e.ia(b.useGranularityNamesForDateFilters)||(a.useGranularityNamesForDateFilters=b.useGranularityNamesForDateFilters),b=b.credentials,null!=b&&(e.ia(b.hash)||(a.hash=b.hash),e.ia(b.username)||(a.username=
b.username),e.ia(b.password)||(a.password=b.password)));return a}static wk(b){var a=b.find("dataSource"),c=a.attr("type");void 0!==c&&(c=c.toLowerCase());"msolap"==c&&(c=l.i.qa.Tc);c&&-1<c.indexOf("pentaho")&&(c=l.i.qa.le);var d=a.find("filename");if(!l.i.qa.valid(c)){var g=a.find("proxyUrl");0<g.length&&0<g.text().length&&(c=l.i.qa.Tc);0<d.length&&0<d.text().length&&(c=l.i.qa.Sh)}0<d.length&&0<d.text().length&&".ocsv"==d.text().toLocaleLowerCase().substr(-5)&&(c=l.i.qa.Dq);0<d.length&&0<d.text().length&&
".json"==d.text().toLocaleLowerCase().substr(-5)&&(c=l.i.qa.JSON);0<d.length&&0<d.text().length&&".csv"==d.text().toLocaleLowerCase().substr(-4)&&(c=l.i.qa.Sh);switch(c){case l.i.qa.Dq:return l.local.csv.gF.wk(a[0]);case l.i.qa.Sh:return l.local.csv.lO.wk(b);case l.i.qa.JSON:return l.local.json.TO.wk(a[0]);case l.i.qa.Tc:case l.i.qa.le:return l.external.Eb.kp.wk(b);default:return l.local.csv.lO.wk(b)}}Yo(){var b=z.ba.create("<dataSource/>");this.Da!=l.i.qa.EMPTY&&b.attr("type",this.Da);return b}}
h.kt=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h{constructor(f){this.ub=[];this.Fc=[];this.rh=[];this.gb=[];this.Gd=[];this.Ud=[];this.xe=[];this.ta=[];this.Pl=[];this.uh=[];this.sg=[];this.up=[];this.Ey=[];this.nD=[];this.Gn=[];this.Boa=0;this.gga=[];this.lj=[];this.Ph=[];this.sizes=[];this.filters=[];this.zx=[];this.su=[];this.values=[];this.tQ=[];this.xa=f}sG(){this.Gn=[];this.gb=[];this.ub=[];this.Fc=[];this.Pl=[];this.ta=[];this.values=[];this.rh=[];this.filters=[]}$Z(){this.xe=[];this.uh=[];this.sg=[];this.up=
[];this.Ey=[];this.nD=[]}fs(){this.sG();this.$Z();this.Gd=[];this.Ud=[];this.sizes=[];this.rh=[]}get slice(){return null!=this.Qb?this.Qb:this.xa.ua}set slice(f){this.Qb=f}Kya(f){return isNaN(f[0])}Mya(f){return!isNaN(f[0])}yya(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]}Qya(f){return f[0]-f[1]}Jya(f){return f[0]*f[1]}Aya(f){return 0==
f[1]||isNaN(f[1])?l.i.wO.vO:f[0]/f[1]}Oya(f){return Math.pow(f[0],f[1])}Fya(f){return f[0]<f[1]}Cya(f){return f[0]>f[1]}Bya(f){return f[0]==f[1]}Lya(f){return f[0]!=f[1]}Gya(f){return f[0]<=f[1]}Dya(f){return f[0]>=f[1]}Nya(f){return f[0]||f[1]}zya(f){return f[0]&&f[1]}Eya(f){return f[0]?f[1]:f[2]}xya(f){return Math.abs(f[0])}Pya(f){return Math.round(f[0])}Iya(f){return Math.min(f[0],f[1])}Hya(f){return Math.max(f[0],f[1])}ds(f,b){for(var a=1,c=0,d,g,k=this.lj.length-1;0<=k;k--)g=this.sizes[this.Ph.length+
k],0<g&&(d=void 0===b[k]?0:b[k],c+=d*a,a*=g);for(b=this.Ph.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}b1(f,b){for(var a=0,c=!0,d=0;d<f.length;d++){var g=this.Fc[b][f[d]];isNaN(g)||(a+=g,c=!1)}return c?NaN:a}dAa(f,b){for(var a=Number.MAX_VALUE,c=!0,d=0;d<f.length;d++){var g=this.Fc[b][f[d]];isNaN(g)||(g<a&&(a=g),c=!1)}return c?NaN:a}Xza(f,b){for(var a=Number.NEGATIVE_INFINITY,c=!0,d=0;d<f.length;d++){var g=
this.Fc[b][f[d]];isNaN(g)||(g>a&&(a=g),c=!1)}return c?NaN:a}sAa(f,b){for(var a=1,c=!0,d=0;d<f.length;d++){var g=this.Fc[b][f[d]];isNaN(g)||(a*=g,c=!1)}return c?NaN:a}Rca(f,b){let a=0,c=0;for(let d=0;d<f.length;d++){const g=this.Fc[b][f[d]];isNaN(g)||(a+=g,c++)}return 0==c?NaN:a/c}aAa(f,b){for(var a=[],c=0;c<f.length;c++){var d=this.Fc[b][f[c]];isNaN(d)||a.push(d)}if(0===a.length)return NaN;e.Ja.sort(a,e.Ja.Ki);if(1===a.length%2)return a[Math.floor(a.length/2)];f=a.length/2;return(a[f]+a[f-1])/2}eda(f,
b){for(var a=this.Rca(f,b),c=0,d=0,g=0;g<f.length;g++){var k=this.Fc[b][f[g]];isNaN(k)||(c+=Math.pow(k-a,2),d++)}return{Iba:c,count:d}}IAa(f,b){f=this.eda(f,b);return 0==f.count?NaN:Math.sqrt(f.Iba/f.count)}JAa(f,b){f=this.eda(f,b);return 0==f.count?NaN:1==f.count?0:Math.sqrt(f.Iba/(f.count-1))}oAa(f,b){null==this.tQ[b]&&(this.tQ[b]=this.b1(this.gb,b));return Math.abs(100*this.b1(f,b)/this.tQ[b])}sza(f,b){for(var a=0,c=0;c<f.length;c++){var d=this.Fc[b][f[c]];isNaN(d)||this.Fc[b]instanceof Uint8Array&&
0==d||a++}return a}Dza(f,b,a){return l.sf.Fj.zc("",!1).Ha(f,b,a)}pAa(f,b,a){return l.sf.Fj.zc("",!1).Ha(f,b,a)}ld(f,b){for(var a=0;a<f.length;a++){if(void 0===b)return;b=b[f[a]]}return b}BV(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.Gd,this.Ud]}set result(f){}bi(f,b){if(0===f.length)return!0;var a=-1;void 0!==b&&(a="number"===typeof b?-1===b?-1:this.su[b]:this.Zh(b));f=this.ld(f,this.Gd);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.sg.length]:f[0][3][a]}Zh(f,b,a){"string"!==typeof f&&(b=f.aa,f=f.A);if(e.model.C.F.rc&&!a||void 0===b||b===l.i.da.NONE)for(a=0;a<this.sg.length;a++){if(this.sg[a]===f)return a}else for(a=0;a<this.sg.length;a++)if(this.sg[a]===f&&(void 0===this.up[a]||this.up[a]===b))return a;return-1}zk(f,b){if(0===f.length)return!0;var a=-1;void 0!==b&&(a="number"===typeof b?this.su[b]:this.Zh(b));f=this.ld(f,this.Ud);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.sg.length]:f[0][3][a]}collapse(f,b,a){0===this.Gd.length&&(this.Gd=[[this.gb,[],[],void 0,void 0]]);0===this.Ud.length&&(this.Ud=[[this.gb,[],[],void 0,void 0]]);1===this.su.length&&(a=void 0);b===l.i.ja.La&&this.Hua(f,a);b===l.i.ja.Xa&&this.Fua(f,a)}Hua(f,b){this.G9(this.ld(f,this.Gd),b)}Fua(f,b){this.G9(this.ld(f,this.Ud),b)}G9(f,b){void 0!==f&&(void 0===f[0][3]&&(f[0][3]=[]),void 0!==b?f[0][3][this.Zh(b)]=!1:f[0][3][this.sg.length]=
!1)}expand(f,b,a){0!==this.gb.length&&(1===this.su.length&&(a=void 0),0===this.Gd.length&&(this.Gd=[[this.gb,[],[],void 0,void 0]],this.i0([],a)),0===this.Ud.length&&(this.Ud=[[this.gb,[],[],void 0,void 0]],this.f0([],a)),b===l.i.ja.La&&this.i0(f,a),b===l.i.ja.Xa&&this.f0(f,a))}i0(f,b){var a=this.ld(f,this.Gd);void 0===a&&this.UB()&&(a=this.BV(f,this.Gd));if(void 0!==a){var c=this.Ph[f.length];f.length<this.Ph.length&&this.mB(a,c,b)}}f0(f,b){var a=this.ld(f,this.Ud);void 0===a&&this.gG()&&(a=this.BV(f,
this.Ud));if(void 0!==a){var c=this.lj[f.length];f.length<this.lj.length&&this.mB(a,c,b)}}mB(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.ta[b][1]<this.ub.length?this.ub[this.ta[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.sg.length]=!0:f[0][3][this.Zh(a)]=!0;f[0][5]=!0}}Ip(f,b,a,c){1===this.su.length&&
(c=void 0);a===l.i.ja.La&&this.sxa(f,c);a===l.i.ja.Xa&&this.rxa(f,c)}sxa(f,b){var a=this.ld(f,this.Gd);f=f.slice(0,-1);this.qY(this.ld(f,this.Gd),a,b)}rxa(f,b){var a=this.ld(f,this.Ud);f=f.slice(0,-1);this.qY(this.ld(f,this.Ud),a,b)}Mf(f,b,a,c){0!==b.children.length&&(1===this.su.length&&(c=void 0),0===this.Gd.length&&(this.Gd=[[this.gb,[],[],void 0,void 0]],this.i0([],c)),0===this.Ud.length&&(this.Ud=[[this.gb,[],[],void 0,void 0]],this.f0([],c)),a===l.i.ja.La&&this.oxa(f,b,c),a===l.i.ja.Xa&&this.nxa(f,
b,c))}oxa(f,b,a){var c=this.ld(f,this.Gd);void 0===c&&this.UB()&&(c=this.BV(f,this.Gd));if(void 0!==c){f=f.slice(0,-1);var d=this.Ph[f.length];this.kQ(this.ld(f,this.Gd),c,d,this.ta[d][b.level.wb+1],a)}}kQ(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.ub[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.Pl[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.sg.length]=!0:b[0][4][this.Zh(d)]=!0}}nxa(f,b,a){var c=this.ld(f,this.Ud);void 0===c&&this.gG()&&(c=this.BV(f,this.Ud));f=f.slice(0,-1);var d=this.lj[f.length];this.kQ(this.ld(f,this.Ud),c,d,this.ta[d][b.level.wb+1],a)}qY(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.qY(f,f[g],a);f[g]=void 0}b[0][2]=
[];b[0][4][this.sg.length]=!1;void 0!==a&&(b[0][4][this.Zh(a)]=!1)}ai(f,b,a){b=this.sg.length;void 0!==a&&(b="number"===typeof a?-1===a?-1:this.su[a]:this.Zh(a));-1===b&&(b=this.sg.length);f=this.ld(f,this.Gd);return void 0!==f&&void 0!==f[0]&&void 0!==f[0][4]&&(f[0][4][b]||f[0][4][this.sg.length])}yk(f,b,a){b=this.sg.length;void 0!==a&&(b="number"===typeof a?-1===a?-1:this.su[a]:this.Zh(a));-1===b&&(b=this.sg.length);f=this.ld(f,this.Ud);return void 0!==f&&void 0!==f[0]&&void 0!==f[0][4]&&(f[0][4][b]||
f[0][4][this.sg.length])}wM(f,b,a){var c=this.xe.indexOf(b.hierarchy.A),d=b.Zb?f.slice(0,-1):f.slice(0);const g=a===l.i.ja.La?this.ld(d,this.Gd):this.ld(d,this.Ud);1<f.length?(d=f.slice(0,-1),f=(a===l.i.ja.La?this.ld(d,this.Gd):this.ld(d,this.Ud))[0][0]):f=this.gb;c=this.ta[c][b.level.wb+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.Ao(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])}Ao(f,
b,a){for(let k=0;k<b.length;k++){const m=b[k];var c=a[k];if(e.model.C.F.kT){var d=this.slice.wc().getItem(this.xe[c]),g=d.ya(m);e.v(d.kz)||e.v(this.ta)||e.v(a[k])||e.v(this.ta[a[k]])||(c=this.ta[a[k]][g.level.wb])}c=e.v(this.Pl[c])||e.v(this.Pl[c][m])?c:this.Pl[c][m];d=[];for(g=0;g<f.length;g++)e.v(this.ub[c])||this.ub[c][f[g]]!==m||d.push(f[g]);f=d}return f}Cda(f,b,a){return a.aa===l.i.da.en?this.CAa(f,b,a):a.aa===l.i.da.Yn?this.DAa(f,b,a):NaN}CAa(f,b,a){var c=a.Na?this.slice.hd().findIndex(r=>r.A===
a.A)+this.sg.length:this.Zh(a);null==this.values[c]&&(this.values[c]=[]);var d=this.ds(f,b);if(null==this.values[c][d]){a.aa=a.xm;if(f&&0!=f.length){var g=this.slice.yb.ea(f.length-1),k=g.ya(f[f.length-1]);if(null==k||null==k.parent)return null;g=null==g.oc||k.level.wb>g.oc.wb?g.Yj(k.parent,!0):g.Vu(g.gg);f=f.slice(0,-1);k=this.ld(f,this.Gd);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.ds(f,b);if(null==this.values[c][p]){var t=this.Ha(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.Ha(f,b,a);a.aa=l.i.da.en}return this.values[c][d]}DAa(f,b,a){var c=a.Na?this.slice.hd().findIndex(r=>r.A===a.A)+this.sg.length:this.Zh(a);null==this.values[c]&&(this.values[c]=[]);var d=this.ds(f,b);if(null==this.values[c][d]){a.aa=a.xm;if(0===b.length)this.values[c][d]=this.Ha(f,b,a);else{var g=this.slice.Db.ea(b.length-1),k=g.ya(b[b.length-1]);if(null===k||null===k.parent)return null;g=null===g.oc||k.level.wb>
g.oc.wb?g.Yj(k.parent,!0):g.Vu(g.gg);b=b.slice(0,-1);k=this.ld(b,this.Ud);if(k[0]&&k[0][1])for(var m=0,n=0;n<g.length;n++){var p=g[n];if(void 0!==k[p]){b.push(p);p=this.ds(f,b);if(null==this.values[c][p]){var t=this.Ha(f,b,a);isNaN(t)||(m+=t);this.values[c][p]=m}else m=this.values[c][p];b.pop()}}}a.aa=l.i.da.Yn}return this.values[c][d]}ida(f,b,a,c,d,g){if(!e.v(f)&&0!=f.length)if(this.Ph.length==b.length)this.I0(f,a,c,d,g);else{for(var k=[],m=[],n=this.Ph[b.length],p=0;p<f.length;p++){var t=this.ub[n][f[p]];
m[t]||0==t||(k.push(t),m[t]=!0)}for(p=0;p<k.length;p++)m=b.slice(0),m.push(k[p]),n=this.Ao(f,m,this.Ph),this.ida(n,m,a,c,d,g)}}hda(f,b,a,c){var d=[];this.ida(f,b,a,c,d,[]);return d.length}SS(f,b){if(e.v(f)||0==f.length)return 0;var a=this.xa.O.Ck(b.A);a=this.xe.indexOf(2<a.ta.length?a.ta.Jh(a.ta.length-1):a.A);b=this.uh.indexOf(b.A);for(var c=[],d=[],g,k=0;k<f.length;k++)g=this.ub[a][f[k]],d[g]||(d[g]=!0,this.Fc[b]&&isNaN(this.Fc[b][f[k]])||this.Fc[b]instanceof Uint8Array&&0==this.Fc[b][f[k]]||c.push(g));
return c.length}gw(f,b,a,c){var d=this.ld(f,this.Gd),g=this.ld(b,this.Ud),k=[];d&&0<d.length&&g&&0<g.length&&(k=f.length*g[0][0].length<b.length*d[0][0].length?this.Ao(g[0][0],f,this.Ph):this.Ao(d[0][0],b,this.lj));return this.dr(k,a,!1,c)}Ota(f,b,a){return this.dr([this.gb[f[0]]],b,!1,a)}Rza(f,b,a=0,c=null,d=null){for(var g=0,k=!0,m=0;m<f.length;m++)a=this.dr([f[m]],b,!1,a,c,d,!0),isNaN(a)||(g+=a,k=!1);return k?NaN:g}dr(f,b,a=!1,c=0,d=null,g=null,k=!0){if(a)return this.Rza(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.dr(f,p,a,c,d,g,k),t=isNaN(t)&&k&&(b[0]===l.i.nc.bO||b[0]===l.i.nc.EP||b[0]===l.i.nc.oP||b[0]===l.i.nc.BX||b[0]===l.i.nc.UI)?this.Boa:t);m.push(t)}if(b[0]===l.i.nc.$n||b[0]===l.i.nc.PP||b[0]===l.i.nc.OP)return c;if(b[0]===l.i.nc.Ija)return this.Kya(m);if(b[0]===l.i.nc.zoa)return this.Mya(m);if(b[0]===l.i.nc.bO)return this.yya(m);if(b[0]===l.i.nc.EP)return this.Qya(m);if(b[0]===l.i.nc.oP)return this.Jya(m);if(b[0]===l.i.nc.BX)return this.Oya(m);
if(b[0]===l.i.nc.UI)return this.Aya(m);if(b[0]===l.i.nc.LESS)return this.Fya(m);if(b[0]===l.i.nc.GREATER)return this.Cya(m);if(b[0]===l.i.nc.EQUAL||b[0]==l.i.nc.qla)return this.Bya(m);if(b[0]===l.i.nc.cg)return this.Lya(m);if(b[0]===l.i.nc.R7)return this.Gya(m);if(b[0]===l.i.nc.E7)return this.Dya(m);if(b[0]===l.i.nc.E5)return this.zya(m);if(b[0]===l.i.nc.E8)return this.Nya(m);if(b[0]===l.i.nc.QO)return this.Eya(m);if(b[0]===l.i.nc.IX)return this.Pya(m);if(b[0]===l.i.nc.pW)return this.xya(m);if(b[0]===
l.i.nc.MIN)return this.Iya(m);if(b[0]===l.i.nc.MAX)return this.Hya(m)}else{a=this.L0(b[1][0],b[0]);if(void 0!==this.Ey[a])return this.dr(f,this.Ey[a],this.nD[a],0,d,g,k);k=b[0];l.i.da.Ty(k)&&(k=l.i.da.cz(k));switch(k){case l.i.da.lp:if(null!=g)return c=this.xa.O.gd(b[1][0]),f=this.Ha([],g,c),c=this.Ha(d,g,c),100*c/f;break;case l.i.da.Hq:if(null!=d)return c=this.xa.O.gd(b[1][0]),f=this.Ha(d,[],c),c=this.Ha(d,g,c),100*c/f;break;case l.i.da.Ji:if(null!=d&&null!=g)return c=this.xa.O.gd(b[1][0]),f=this.Ha([],
[],c),b=this.Ha(d,[],c),k=this.Ha([],g,c),c=this.Ha(d,g,c),Math.abs(f*c/(k*b));break;case l.i.da.en:case l.i.da.Yn:return c=this.xa.O.gd(b[1][0]),f=c.aa,c.aa=k,d=this.Cda(d,g,c),c.aa=f,d;case l.i.da.Ej:c=this.xa.O.gd(b[1][0]);if(c.type==l.i.Pa.xc)return this.SS(f,c);break;case l.i.da.Rn:case l.i.da.an:case l.i.da.Wn:case l.i.da.cn:return c=this.xa.O.gd(b[1][0]),f=c.aa,c.aa=k,d=this.Dza(d,g,c),c.aa=f,d;case l.i.da.Fq:case l.i.da.Gq:return c=this.xa.O.gd(b[1][0]),f=c.aa,c.aa=k,d=this.pAa(d,g,c),c.aa=
f,d}return this.qB(f,a,k)}}L0(f){var b=this.uh.indexOf(f);-1===b&&-1!=f.indexOf("[Measures]")&&(f=f.slice(12,-1),b=this.uh.indexOf(f));return b}filter(){}select(f=!0){this.ZH();this.filter();var b;this.gga=[];this.Ph=[];this.lj=[];this.sizes=[];this.Pl=[];this.su=[];this.VH=this.slice.axes.getItem(l.i.ja.rt);this.cc=this.slice.axes.getItem(l.i.ja.La);this.Rb=this.slice.axes.getItem(l.i.ja.Xa);for(b=0;b<this.cc.Oa.length;b++){var a=this.cc.Oa.ea(b);if(!a.Se){var c=this.xe.indexOf(a.A);this.Ph.push(c);
this.sizes.push(a.Qm);this.Pl[c]=[]}}this.ml=this.Ph.length;for(b=0;b<this.Rb.Oa.length;b++)a=this.Rb.Oa.ea(b),a.Se||(c=this.xe.indexOf(a.A),this.lj.push(c),this.sizes.push(a.Qm),this.Pl[c]=[]);this.Yk=this.lj.length;if(f)for(b=0;b<this.VH.Oa.length;b++)a=this.VH.Oa.ea(b),c=this.xe.indexOf(a.A),this.gga.push(c);else this.gb=this.rh;f=this.slice.hd();for(b=0;b<f.length;b++)c=this.Zh(f[b]),this.su.push(c)}BF(f,b,a,c){try{if(0===b.children.length||1===b.children.length&&(b.hierarchy.ya(b.children[0]).caption===
e.model.B.j.zl||b.hierarchy.ya(b.children[0]).caption===e.model.B.j.Qn))return;this.wM(f,b,c);this.Mf(f,b,c,void 0)}catch(p){}for(var d=this.ld(f,this.Gd),g=0;g<b.children.length;g++){var k=b.hierarchy.ya(b.children[g]);try{if(k.Oh){f.length<this.Ph.length&&this.mB(d,this.Ph[a],void 0);var m=f.slice(0);m[m.length-1]=k.ordinal;this.tY(m,a+1,!0)}else{var n=f.slice(0,-1);n.push(k.ordinal);this.BF(n,k,a,c)}}catch(p){}}}Qc(f){if(0===this.Gd.length||0<this.Gd.length&&this.Gd[0][0].length!==this.gb.length)this.Gd=
[[this.gb,[],[],void 0,void 0]];if(0===this.Ud.length||0<this.Ud.length&&this.Ud[0][0].length!==this.gb.length)this.Ud=[[this.gb,[],[],void 0,void 0]];this.Q9([],0,f);this.tY([],0,f)}tY(f,b,a){if(void 0!==this.Ph[b]){var c=this.Ph[b],d=this.ld(f,this.Gd),g;f.length<this.Ph.length&&this.mB(d,c,void 0);a&&(g=this.cc.Oa.getItem(this.xe[c]));if(a&&g&&g.mg){var k=g.Ad.children;for(d=0;d<k.length;d++)a=g.ya(k[d]),c=f.slice(0),c.push(a.ordinal),this.BF(c,a,b,l.i.ja.La)}else for(g=d[0][1],d=0;d<g.length;d++)c=
f.slice(0),c.push(g[d]),this.tY(c,b+1,a)}}Q9(f,b,a){if(void 0!==this.lj[b]){var c=this.lj[b],d=this.ld(f,this.Ud),g;f.length<this.lj.length&&this.mB(d,c,void 0);a&&(g=this.Rb.Oa.getItem(this.xe[c]));if(a&&g.mg)for(c=0;c<g.Ad.children.length;c++)a=g.ya(g.Ad.children[c]),d=f.slice(0),d.push(a.ordinal),this.BF(d,a,b,l.i.ja.Xa);else for(g=d[0][1],c=0;c<g.length;c++)d=f.slice(0),d.push(g[c]),this.Q9(d,b+1,a)}}xo(f,b,a,c){0===this.Gd.length&&(this.expand([],l.i.ja.La,void 0),this.expand([],l.i.ja.Xa,void 0));
try{if(0!=b.children.length&&(1!=b.children.length||b.hierarchy.ya(b.children[0]).caption!=e.model.B.j.zl&&b.hierarchy.ya(b.children[0]).caption!=e.model.B.j.Qn)){this.wM(f,b,a);b.Zb||this.Mf(f,b,a,void 0);for(var d=b.hierarchy.ta.getItem(c),g=0;g<b.children.length;g++){var k=b.hierarchy.ya(b.children[g]);if(!k.Oh&&k.level.wb<d.wb){var m=f.slice(0,-1);m.push(k.ordinal);var n=this.ld(m,a===l.i.ja.Xa?this.Ud:this.Gd);void 0!==n&&void 0!==n[0]&&this.xo(m,k,a,c)}}}}catch(p){}}Ha(){return 0}qB(f,b){return this.values&&
this.values[f[0]]?this.values[f[0]][b]:NaN}I0(){}mH(){return this.gb.length}get Ex(){return this.ub&&this.ub[0]?this.ub[0].length:this.ub[1]?this.ub[1].length:0}um(f,b){if(-1!==this.xe.indexOf(f))return this.xe.indexOf(f);if(void 0===b)this.ta[this.xe.length]=[-1,this.xe.length];else{var a=this.xe.indexOf(b);if(-1===a)return this.um(b),this.um(f,b);this.ta[a]?this.ta[a].push(this.xe.length):this.ta[this.xe.length]=[-1,this.xe.length]}this.xe.push(f);return this.xe.length-1}BK(f){-1===this.uh.indexOf(f.A)&&
this.uh.push(f.A)}vy(f,b){var a=!1;if("string"===typeof f)var c=f;else if(c=f.A,b=f.aa,a=f.Na){var d=f.Xd;var g=f.cl}f=this.sg.indexOf(c);if(-1!==f){if(void 0!==b&&b!==l.i.da.NONE){if(this.up[f]===b)return;f=this.sg.length;this.up[f]=b;this.sg[f]=c}}else f=this.sg.length,void 0!==b&&b!==l.i.da.NONE&&(this.up[f]=b),this.sg.push(c);a&&(this.Ey[f]=d,this.nD[f]=g)}UB(){return!0===e.model.C.F.Ys||"rows"===e.model.C.F.Ys}gG(){return!0===e.model.C.F.Ys||"columns"===e.model.C.F.Ys}}l.W5=h})(e.u||(e.u={}))})(q||
(q={}));
(function(e){(function(l){class h{constructor(){}static MAa(f){var b=null;switch(f.Da){case l.i.qa.Tc:b=f.wn?new l.external.Eb.tp.P5(f):new l.external.Eb.tE.Cpa(f);break;case l.i.qa.le:b=f.wn?new l.external.Eb.tp.P5(f):new l.external.Eb.Yp.woa(f);break;case l.i.qa.Sh:b=new l.local.csv.GW;break;case l.i.qa.Dq:b=new l.local.csv.Doa;break;case l.i.qa.JSON:b=!f.wI||f.Mu||f.Td?new l.local.json.Rma:new l.local.json.Sma;break;case l.i.qa.ag:b=new l.external.Qe.zla(f);break;case l.i.qa.API:b=new l.external.pc.xja(f)}return b}}l.Upa=
h})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){class h{constructor(f=""){this.type=f;this.Yt=l.i.ja.La;this.lf=[]}}l.kF=h})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){class h{static UC(f,b){switch(b.Da){case l.i.qa.ag:f=new l.external.Qe.xla(f,b);break;case l.i.qa.API:f=new l.external.pc.wja(f,b);break;case l.i.qa.le:f=new l.external.Eb.Yp.qX(f,b);break;default:f=new l.external.Eb.tE.qX(f,b)}return f}}l.WA=h})(e.u||(e.u={}))})(q||(q={}));var Ha=q||(q={}),Ia=Ha.u||(Ha.u={});
class Ja{}Ja.bF="members";Ja.L5="ascendants";Ja.Wka="descendants";Ja.X8="siblings";Ja.KX="search";Ia.jp=Ja;(function(e){(function(l){class h{constructor(){}static H0(f){var b=null;switch(f.Da){case l.i.qa.ag:b=new l.external.Qe.sla;break;case l.i.qa.API:b=new l.external.pc.sja;break;case l.i.qa.Tc:b=f.wn?new l.external.Eb.tp.O5:new l.external.Eb.cj.s9;break;case l.i.qa.le:b=f.wn?new l.external.Eb.tp.O5:new l.external.Eb.cj.s9}return b}}l.OW=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 V(){null==h.instance&&(h.instance=new h);return h.instance}static dispose(){h.instance=null}gi(f){var b=this.values.indexOf(f);-1==b&&(b=this.values.push(f)-1);return b}Ha(f){return f>=this.values.length?"out of bounce: "+f+" of "+this.values.length:this.values[f]}}l.TX=h})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h{}h.QX="STRUCTURE_CONNECTED";h.Ev="STRUCTURE_LOADED";h.PX="STRUCTURE_CANCELLED";h.RX="STRUCTURE_LOADING_FAILED";h.GI="BEFORE_QUERY";h.Pk="QUERY_COMPLETE";h.vt="QUERY_ERROR";l.tg=h;class f extends v.fa{constructor(a){super(h.GI);this.kq=a}}l.LE=f;class b extends v.fa{constructor(a){super(h.Pk);this.kq=a}}l.EX=b})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h{constructor(){this.AU=[NaN];this.mI=[""];if(null!=h.instance)throw Error("Singleton");}static V(){null==h.instance&&(h.instance=new h);return h.instance}static dispose(){h.instance=null}aA(f,b){var a=this.mI.indexOf(f);-1==a&&(this.mI.push(f),a=this.AU.push(b)-1);return a}KAa(f){return isNaN(f)||f>=this.mI.length||void 0==this.mI[f]?"":this.mI[f]}iAa(f){return isNaN(f)||f>=this.AU.length?NaN:this.AU[f]}clear(){this.AU.length=1;this.mI.length=1}}l.xJ=h})(e.u||(e.u=
{}))})(q||(q={}));
(function(e){(function(l){class h{static Pg(f,b){if(f===b)return f;if(h.yE&&"["===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 Cs(f){if("["==f.slice(0,1)&&"]"==f.slice(-1)&&h.yE){var b=f.split("].");if(2>b.length)return h.vI&&!e.model.C.F.jw?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.vI&&!e.model.C.F.jw?f.toLocaleLowerCase():f}static Ds(f){if("[Measures]"==f.slice(0,10))return h.Cs(f,void 0);h.yE&&(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.vI&&!e.model.C.F.jw?f.toLocaleLowerCase():f}static type(f){return l.i.input.sa.valid(f)?
f:"hierarchical date"===f?l.i.input.sa.Bq:"measure"===f?l.i.input.sa.jb:l.i.input.sa.$c}}h.yE=!1;h.vI=!1;l.ye=h})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends v.Ah{constructor(){super();this.Lb=[];this.xg=[];this.ad=[];this.eg=[];this.Hc=[];this.Bc=[];this.Di=[];this.Ec=[];this.Yy=[];this.tV=[];this.AR=[];this.GB="";this.Fe=!1;this.nN=[];this.Zv=[];this.aL=[];this.Bt=[];this.Pz=b=>this.LD(b);this.SK=b=>this.K2(b);this.MN=()=>this.mr();this.qn=new e.tb;this.TQ=[];this.aQ=[];this.om=new e.tb;this.MQ=new e.tb;this.mb=[];this.Jj=0;this.AF=!1;this.DB=this.jy=this.RF=0;this.kq=l.i.Rd.np;this.WQ=!1;this.wY=
0;f.counter++;this.ha=l.Ra.V()}static V(){null==f.instance&&(f.instance=new f,f.instance.GB="grid"+f.counter);return f.instance}cR(){this.ha.N(l.tg.Pk,this.Pz,1);this.ha.N(l.tg.GI,this.SK);this.ha.N(l.tg.Ev,this.MN,1)}Rz(){this.ha.sb(l.tg.Pk,this.Pz);this.ha.sb(l.tg.GI,this.SK);this.ha.sb(l.tg.Ev,this.MN)}get ra(){return null!=this.bK?this.bK:this.ha.ra}set ra(b){this.bK=b}get slice(){return null!=this.Qb?this.Qb:this.ha.ua}set slice(b){this.Qb=b}get sj(){return e.model.C.F.pk}set sj(b){}get rows(){return this.qn}set rows(b){}get yb(){return this.slice.yb}set yb(b){}get ol(){return this.TQ}set ol(b){}get iC(){return this.aQ}set iC(b){}get Ka(){return this.om}set Ka(b){}get Db(){return this.slice.Db}set Db(b){}get ob(){return this.MQ}set ob(b){}get Ba(){return this.mb}set Ba(b){}get ie(){return this.Jj}set ie(b){}get ri(){return this.slice&&
this.AF}set ri(b){this.AF=b}get cI(){return this.RF}set cI(b){}get xn(){return this.jy}set xn(b){}get Dz(){return this.DB}set Dz(b){}get cc(){return this.Pb}set cc(b){}get Rb(){return this.Ob}set Rb(b){}get ml(){return this.Pb?this.Pb.Ya?this.Pb.Oa.length-1:this.Pb.Oa.length:0}set ml(b){}get Yk(){return this.Ob?this.Ob.Ya?this.Ob.Oa.length-1:this.Ob.Oa.length:0}set Yk(b){}get Yl(){return 1<this.mb.length||this.Ob.Ya&&e.model.C.F.iI}set Yl(b){}YL(){return this.Pb&&!this.slice.Qc?this.Pb.Ed:[]}Lha(b){this.Pb&&
!this.slice.Qc&&(this.Pb.Ed=b)}XL(){return this.Ob&&!this.slice.Qc?this.Ob.Ed:[]}Kha(b){this.Ob&&!this.slice.Qc&&(this.Ob.Ed=b)}$G(){return this.Pb&&this.slice.Qc?this.Pb.Ed:[]}w4(b){this.Pb&&this.slice.Qc&&(this.Pb.Ed=b)}PC(){return this.Ob&&this.slice.Qc?this.Ob.Ed:[]}Cha(b){this.Ob&&this.slice.Qc&&(this.Ob.Ed=b)}gH(){return this.Pb&&!this.slice.kd?this.Pb.tf:[]}A4(b){this.Pb&&!this.slice.kd&&(this.Pb.tf=b)}fH(){return this.Ob&&!this.slice.kd?this.Ob.tf:[]}z4(b){this.Ob&&!this.slice.kd&&(this.Ob.tf=
b)}UL(){return this.Pb&&this.slice.kd?this.Pb.tf:[]}Iha(b){this.Pb&&this.slice.kd&&(this.Pb.tf=b)}TL(){return this.Ob&&this.slice.kd?this.Ob.tf:[]}Hha(b){this.Ob&&this.slice.kd&&(this.Ob.tf=b)}set Vj(b){this.Pb&&(this.Pb.$f=b)}get Vj(){var b=l.i.za.fd;this.Pb&&(b=this.Pb.$f,b==l.i.za.fd&&this.Pb.at&&this.Pb.ur!=l.i.za.fd&&(b=this.Pb.ur));return b}set yj(b){this.Pb&&(this.Pb.Um=b)}get yj(){if(this.Pb){var b=this.Pb.Um;this.Pb.$f==l.i.za.fd&&this.Pb.at&&this.Pb.ur!=l.i.za.fd&&(b=[])}return b}set Lo(b){this.Pb&&
(this.Pb.Yf=b)}get Lo(){if(this.Pb){var b=this.Pb.Yf;this.Pb.$f==l.i.za.fd&&this.Pb.at&&this.Pb.ur!=l.i.za.fd&&(b=this.Pb.at)}return b}get jD(){if(this.Vj==l.i.za.fd||null==this.yj)return!1;if(1>this.yj.length)return!0;var b=!1;try{b=this.bi(this.yj.slice(0,this.yj.length-1),this.Lo)}catch(a){}return b}set jD(b){}set Ih(b){this.Ob&&(this.Ob.$f=b)}get Ih(){var b=l.i.za.fd;this.Ob&&(b=this.Ob.$f,b==l.i.za.fd&&this.Ob.at&&this.Ob.ur!=l.i.za.fd&&(b=this.Ob.ur));return b}set Hl(b){this.Ob&&(this.Ob.Um=
b)}get Hl(){if(this.Ob){var b=this.Ob.Um;this.Ob.$f==l.i.za.fd&&this.Ob.at&&this.Ob.ur!=l.i.za.fd&&(b=[])}return b}set Zq(b){this.Ob&&(this.Ob.Yf=b)}get Zq(){if(this.Ob){var b=this.Ob.Yf;this.Ob.$f==l.i.za.fd&&this.Ob.at&&this.Ob.ur!=l.i.za.fd&&(b=this.Ob.at)}return b}get lz(){if(this.Ih==l.i.za.fd||null==this.Hl)return!1;if(1>this.Hl.length)return!0;var b=!1;try{b=this.zk(this.Hl.slice(0,this.Hl.length-1),this.Zq)}catch(a){}return b}set lz(b){}set sh(b){}get sh(){return null}MS(){return null}reset(b=
!0){this.Fe=this.ri=!1;this.mb=[];this.qn=new e.tb;this.om=new e.tb;this.MQ=new e.tb;this.TQ=[];this.aQ=[];this.xg=[];this.eg=[];this.Lb=[];this.ad=[];this.Hc=[];this.Bc=[];this.Ec=[];this.jy=this.RF=0;this.Di=[];this.Yy=[];this.tV=[];this.AR=[];b&&(this.Ob&&(this.Ob.Ed=[]),this.Pb&&(this.Pb.Ed=[]),this.Ob&&(this.Ob.tf=[]),this.Pb&&(this.Pb.tf=[]))}K2(b){b.kq!=l.i.Rd.VI&&(this.kq=b.kq,this.ri=!1,b.kq==l.i.Rd.np&&this.reset(),b.kq!=l.i.Rd.MW&&b.kq!=l.i.Rd.qv||this.reset(!1))}LD(b){b.kq!=l.i.Rd.VI&&
this.load()}mr(){this.ri=!1;this.Fe||this.reset()}load(){if(null==this.ra&&(this.ra=this.ha.ra,null==this.ra))return;if(this.slice){this.Ob=this.slice.ce(l.i.ja.Xa);this.Pb=this.slice.ce(l.i.ja.La);if(0==this.ad.length&&0==this.Lb.length||this.kq==l.i.Rd.EO)this.slice.Qc?this.ra.Qc(this.slice.kd):(this.ra.expand([],l.i.ja.La,void 0),this.ra.expand([],l.i.ja.Xa,void 0)),(0<this.gH().length||0<this.UL().length)&&this.M9(),(0<this.fH().length||0<this.TL().length)&&this.L9(),(0<this.YL().length||0<this.$G().length||
0<this.XL().length||0<this.PC().length)&&this.R9(),(0<this.gH().length||0<this.UL().length)&&this.M9(),(0<this.fH().length||0<this.TL().length)&&this.L9(),(0<this.YL().length||0<this.$G().length||0<this.XL().length||0<this.PC().length)&&this.R9();this.cV();this.ri=!0}else this.Pb=this.Ob=null}R9(){var b=this.slice.hd();if(this.kq==l.i.Rd.EO)if(this.slice.Qc){var a=this.$G();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.ra.collapse(g,l.i.ja.La,d)}catch(k){}a=
this.PC();if(0<this.PC().length)for(c=0;c<this.PC().length;c++)try{d=b[a[c][0]],g=a[c].slice(1),this.ra.collapse(g,l.i.ja.Xa,d)}catch(k){}}else{a=this.YL();if(0<a.length)for(c=0;c<a.length;c++)try{d=b[a[c][0]],g=a[c].slice(1),this.ra.expand(g,l.i.ja.La,d)}catch(k){}a=this.XL();if(0<a.length)for(c=0;c<a.length;c++)try{d=b[a[c][0]],g=a[c].slice(1),this.ra.expand(g,l.i.ja.Xa,d)}catch(k){}}}M9(){var b=this.cc.Oa.slice();b.removeItem("[Measures]");var a=this.slice.hd();if(this.slice.kd)for(var c=this.UL(),
d=0;d<c.length;d++)try{var g=a[c[d][0]];var k=c[d].slice(2);var m=b.ea(k.length-1);var n=m.Ib(c[d][1]);this.ra.ai(k,n,g)&&this.ra.Ip(k,n,l.i.ja.La,g)}catch(r){}else for(c=this.gH(),d=0;d<c.length;d++)try{if("string"==typeof c[d][0]){var p=c[d][0];g=a[c[d][1]];k=c[d].slice(3);m=b.ea(k.length-1);n=m.Ib(c[d][2])}else g=a[c[d][0]],k=c[d].slice(2),m=b.ea(k.length-1),n=m.Ib(c[d][1]);if(void 0!==p)if(m.uu(p).wb<n.level.wb){var t=this.Eta(n,p);k[k.length-1]=t.ordinal;m.Y_(t);this.ra.Ip(k,t,l.i.ja.La,g)}else this.ra.ai(k,
n,g)||(this.ra.wM(k,n,l.i.ja.La),this.ra.Mf(k,n,l.i.ja.La,g));else n.hierarchy.oc&&n.hierarchy.Ad&&this.ra.xo(k.slice(0,-1),n.hierarchy.Ad,l.i.ja.La,n.hierarchy.gg),this.ra.ai(k,n,g)||(this.ra.wM(k,n,l.i.ja.La),this.ra.Mf(k,n,l.i.ja.La,g))}catch(r){}}L9(){var b=this.Rb.Oa.slice();b.removeItem("[Measures]");var a=this.slice.hd();if(this.slice.kd)for(var c=this.TL(),d=0;d<c.length;d++)try{var g=a[c[d][0]];var k=c[d].slice(2);var m=b.ea(k.length-1);var n=m.Ib(c[d][1]);this.ra.yk(k,n,g)&&this.ra.Ip(k,
n,l.i.ja.Xa,g)}catch(p){}else for(c=this.fH(),d=0;d<c.length;d++)try{g=a[c[d][0]],k=c[d].slice(2),m=b.ea(k.length-1),n=m.Ib(c[d][1]),n.hierarchy.oc&&n.hierarchy.Ad&&this.ra.xo(k.slice(0,-1),n.hierarchy.Ad,l.i.ja.Xa,n.hierarchy.gg),this.ra.yk(k,n,g)||(this.ra.wM(k,n,l.i.ja.Xa),this.ra.Mf(k,n,l.i.ja.Xa,g))}catch(p){}}JBa(b){if(!b.Na)return!1;b=u.nt.bM(b.Xd,this.ha.O.Ba);const a=new Map;for(let c=0;c<b.length;c++)a.set(b[c].aa,!0);return a.has(l.i.da.an)||a.has(l.i.da.cn)}cV(){this.WQ=!1;this.slice?
(this.mb=this.slice.hd(),this.Jj=this.Pb.Ya?this.Pb.ie:this.Ob.ie,this.qn=this.slice.rows,this.om=this.slice.Ka,this.MQ=this.slice.ob):(this.mb=[],this.Jj=0,this.qn=new e.tb,this.om=new e.tb,this.MQ=new e.tb);this.TQ=[];this.aQ=[];this.Fe?(this.vKa(),this.Zv=this.Wq(this.xg),this.nN=this.Wq(this.Lb),this.Bt=this.Wq(this.eg),this.aL=this.Wq(this.ad)):(this.xg=[],this.Lb=[],this.eg=[],this.ad=[],this.Hc=[],this.Bc=[],this.Di=[],this.Ec=[]);this.Yy=[];this.jy=this.RF=0;this.tV=[];this.AR=[];if(!e.v(this.slice)&&
!this.slice.nb){this.DB=-1;e.v(this.Ob.Yf)||this.Ob.Yf.aa!==l.i.da.an&&this.Ob.Yf.aa!==l.i.da.cn&&!this.JBa(this.Rb.Yf)?(this.Fga(),this.Bga()):(this.Bga(),this.Fga());for(var b=0;b<this.Bc.length;b++)this.Bc[b]>this.RF&&(this.RF=this.Bc[b]);this.RF++;for(b=0;b<this.Ec.length;b++)this.Ec[b]>this.jy&&(this.jy=this.Ec[b]);0<this.ad.length&&this.jy++;!this.nb&&0<this.slice.Db.length&&this.Ob.Ya&&this.Yl&&this.jy++;-1==this.DB?this.DB=0==this.ie?0:this.jy:this.DB++;this.Fe&&(this.XHa(),this.WHa(),this.Zv=
[],this.nN=[],this.Bt=[],this.aL=[]);this.Fe||this.pack();this.WQ&&e.Za(e.model.B.j.d8,e.model.B.j.e8,e.xb.vl)}}WHa(){if(this.Ob.Ya){var b=this.eg[0].length;for(--b;0<=b;b--){var a=this.Nj(b,!0);if(null===a||0==a.length)continue;const c=this.Ha([],a,this.mb[0]);isNaN(c)&&(a=this.HL(this.ad,a),0<=a&&this.Sz(this.ad,a),this.Sz(this.eg,b),this.Ec=e.Ja.wr(this.Ec,b),this.Hc=e.Ja.wr(this.Hc,b))}}else for(b=this.ad[0].length,--b;0<=b;b--)a=this.Nj(b),null!==a&&0!=a.length&&(a=this.Ha([],a,this.mb[0]),isNaN(a)&&
(this.Sz(this.ad,b),this.Ec=e.Ja.wr(this.Ec,b)))}XHa(){if(this.Ob.Ya){var b=this.Lb[0].length;for(--b;0<=b;b--){var a=this.Fn(b);null!==a&&0!=a.length&&(a=this.Ha(a,[],this.mb[0]),isNaN(a)&&(this.Sz(this.Lb,b),this.Bc=e.Ja.wr(this.Bc,b),this.Di.splice(b,1)))}}else for(b=this.xg[0].length,--b;0<=b;b--){a=this.Fn(b,!0);if(null===a||0==a.length)continue;const c=this.Ha(a,[],this.mb[0]);isNaN(c)&&(a=this.HL(this.Lb,a),0<=a&&this.Sz(this.Lb,a),this.Sz(this.xg,b),this.Bc=e.Ja.wr(this.Bc,b),this.Hc=e.Ja.wr(this.Hc,
b),this.Di.splice(b,1))}}Sz(b,a){for(let c=0;c<b.length;c++)b[c]=e.Ja.wr(b[c],a)}Fga(){var b=this.ra.result[0];if(!this.Pb.Ya||1<this.qn.length||this.sj)this.m0(b,[],0),this.Fe&&this.cIa(this.Lb);if(this.J4||this.Pb.Ya&&1==this.qn.length){var a=this.yb.ea(0);if(!a||a.Mh)if(0==this.Lb.length&&(this.Lb[0]=[]),!this.Fe){for(a=0;a<this.Lb.length;a++)this.Lb[a].push(0);this.Bc.push(0)}}if(!this.sj)if(this.Pb.Ya&&this.Yl){this.Fe||(this.Bc=[],this.Di=[]);if(1<this.qn.length)for(0!=this.ie&&this.GL(b,[],
-1,0),a=0;a<this.mb.length;a++){if(this.J4)if(this.Fe){var c=this.rj(this.xg,[],this.Zv);0<=c&&(this.Bc=e.Ja.se(this.Bc,0,c),this.Hc=e.Ja.se(this.Hc,a,c))}else this.kj(this.xg,[],a),this.Bc.push(0);else 0!=this.Jj||"off"!=e.model.C.F.Bf&&"rows"!=e.model.C.F.Bf||(this.Fe?(c=this.rj(this.xg,[],this.Zv),0<=c&&(this.Bc=e.Ja.se(this.Bc,0,c),this.Hc=e.Ja.se(this.Hc,a,c))):(this.kj(this.xg,[],a),this.Bc.push(0)));0==this.ie&&this.GL(b,[],a,1)}if(0==this.ie&&(this.J4||this.Pb.Ya&&1==this.qn.length))for(b=
0;b<this.mb.length;b++)this.Fe?(a=this.rj(this.xg,[],this.Zv),0<=a&&(this.Bc=e.Ja.se(this.Bc,0,a),this.Hc=e.Ja.se(this.Hc,b,a))):(this.kj(this.xg,[],b),this.Bc.push(0))}else this.xg=this.Lb}Bga(){var b=this.ra.result[1];(!this.Ob.Ya||1<this.om.length)&&this.sca(b,[],0);if(this.Q4||this.Ob.Ya&&1==this.om.length){var a=this.Db.ea(0);if(!a||a.Mh)if(0==this.ad.length&&(this.ad[0]=[]),!this.Fe){for(a=0;a<this.ad.length;a++)this.ad[a].push(0);this.Ec.push(0)}}if(this.Ob.Ya&&this.Yl){this.Fe||(this.Ec=[]);
if(1<this.om.length)for(this.Yy=[],0!=this.Jj&&this.EL(b,[],-1,0),a=0;a<this.mb.length;a++){if(this.Q4)if(this.Fe){var c=this.rj(this.eg,[],this.Bt);0<=c&&(this.Ec=e.Ja.se(this.Ec,0,c),this.Hc=e.Ja.se(this.Hc,a,c))}else this.kj(this.eg,[],a),this.Ec.push(0);else 0!=this.Jj||"off"!=e.model.C.F.Bf&&"columns"!=e.model.C.F.Bf||(this.Fe?(c=this.rj(this.eg,[],this.Bt),0<=c&&(this.Ec=e.Ja.se(this.Ec,0,c),this.Hc=e.Ja.se(this.Hc,a,c))):(this.kj(this.eg,[],a),this.Ec.push(0)));0==this.Jj&&this.EL(b,[],a,0)}if(0==
this.Jj&&(this.Q4||this.Ob.Ya&&1==this.om.length))for(b=0;b<this.mb.length;b++)this.Fe?(a=this.rj(this.eg,[],this.Bt),0<=a&&(this.Ec=e.Ja.se(this.Ec,0,a),this.Hc=e.Ja.se(this.Hc,b,a))):(this.kj(this.eg,[],b),this.Ec.push(0))}else this.eg=this.ad}vKa(){this.iW(this.Lb);this.iW(this.xg);this.iW(this.ad);this.iW(this.eg);Array.isArray(this.Hc)||(this.Hc=Array.from(this.Hc));Array.isArray(this.Bc)||(this.Bc=Array.from(this.Bc));Array.isArray(this.Ec)||(this.Ec=Array.from(this.Ec))}iW(b){for(var a=0;a<
b.length;a++)Array.isArray(b[a])||(b[a]=Array.from(b[a]))}pack(){this.XU(this.Lb);this.XU(this.xg);this.XU(this.ad);this.XU(this.eg);15<this.Hc.length&&(this.Hc=new Int8Array(this.Hc));15<this.Bc.length&&(this.Bc=new Uint8Array(this.Bc));15<this.Ec.length&&"after"!==e.model.C.F.$K&&(this.Ec=new Uint8Array(this.Ec))}Wq(b){b=b.slice();for(let a=0;a<b.length;a++)b[a]=b[a].slice();return b}XU(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]))}}m0(b,a,c){var d=a.length;if(d=this.Pb.Ya&&a.length>=this.Jj?this.qn.ea(d+1):this.qn.ea(d))0==c&&(this.wY=Date.now()),this.sj?this.T9(d,d.Ad,b,a,c):this.uca(d,d.Ad,b,a,c)}Bea(b){if(0==b.hierarchy.gb.length)return!0;let a=b;for(;!e.v(a);){if(0<=b.hierarchy.gb.indexOf(a.ordinal))return!0;a=a.parent}for(const c of b.hierarchy.gb)if(0<=b.ww.indexOf(c))return!0;return!1}N1(b,a,c,d){if(this.ha.ga.Gc&&
this.ha.ga.Da!==l.i.qa.API||this.ha.ga.yM)return!1;if(!0===e.model.C.F.Ys||"rows"===e.model.C.F.Ys)return!this.Bea(a);if(void 0!==c&&void 0!==d&&!l.i.da.zM(d.aa)&&(d=d.clone(),d.aa=c.measure.aa,a=this.Ha(b,[],d),!c.wU(a,c.query)))return!0;for(c=0;c<this.Ba.length;c++)if(0===c&&this.Ba[c].Na||!isNaN(this.Ha(b,[],this.Ba[c]))||l.i.da.zM(this.Ba[c].aa))return!1;return!0}tea(b,a,c,d){if(this.ha.ga.Gc&&this.ha.ga.Da!==l.i.qa.API||this.ha.ga.yM)return!1;if(!0===e.model.C.F.Ys||"columns"===e.model.C.F.Ys)return!this.Bea(a);
if(void 0!==c&&void 0!==d&&!l.i.da.zM(d.aa)&&(d=d.clone(),d.aa=c.measure.aa,a=this.Ha([],b,d),!c.wU(a,c.query)))return!0;for(c=0;c<this.Ba.length;c++)if(0===c&&this.Ba[c].Na||!isNaN(this.Ha([],b,this.Ba[c]))||l.i.da.zM(this.Ba[c].aa))return!1;return!0}uca(b,a,c,d,g){if(null!=a){if(null!=b.oc&&!this.ra.ai(d,a)){if(0<d.length){var k=d.slice(0);k.push(a.ordinal)}else k=d.slice(0);this.ra.xo(k,a,l.i.ja.La,b.gg)}a=null==b.oc||a.level.wb>=b.oc.wb?b.Yj(a,!1,""):b.Vu(b.gg);a=this.V4(b,a,c,d);if(b.filter.xi&&
b.filter.query.va!=l.i.yc.ck&&b.filter.query.va!=l.i.yc.Hi){var m=b.filter;var n=this.slice.gd(m.measure.A)}k=this.yb.indexOf(b.A)<this.yb.length-1;for(var p=this.ra.UB(b),t=0;t<a.length;t++){var r=b.ya(a[t]);0===t&&this.vca(r);if(void 0===c[r.ordinal]&&!p||r.Zb)continue;var w=d.slice(0);w.push(r.ordinal);if(this.N1(w,r,m,n))continue;const y=k&&this.ra.bi(w),A=!r.Oh&&this.ra.ai(w,r);if(this.Fe){const C=this.rj(this.Lb,w,this.nN);0<=C&&!this.cc.Ya&&(this.Bc=e.Ja.se(this.Bc,g,C));y||this.cc.Ya||this.g4(this.Lb,
w)}else this.kj(this.Lb,w),this.Bc.push(g);if(Date.now()-this.wY<e.model.C.F.mS)A?this.uca(b,r,c,d,g+1):y&&this.m0(c[r.ordinal],w,g+1);else if(A||y)this.WQ=!0}}}g4(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.sj&&2==this.Di[c]&&(this.Di[c]=3):(this.Sz(b,c),this.Bc=e.Ja.wr(this.Bc,c),this.Di.splice(c,1),this.Pb.Ya&&(this.Hc=e.Ja.wr(this.Hc,c)))}}if(this.sj)for(b=b[0].length,
a=0;a<b;a++)3==this.Di[a]&&(this.Di[a]=1,this.Bc[a]=this.Wca(this.Lb,a))}cIa(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}}}Vga(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.Sz(b,c),this.Ec=e.Ja.wr(this.Ec,c),this.Ob.Ya&&(this.Hc=e.Ja.wr(this.Hc,c)))}}}kj(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.Hc.push(c)}rj(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.Xaa(null!==c?c:b,a)?-1:(c=this.Xxa(b,a)+d,this.sBa(b,
a,c),c)}Xxa(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}sBa(b,a,c){for(let d=0;d<b.length;d++)b[d]=e.Ja.se(b[d],void 0!==a[d]?a[d]:0,c)}Xaa(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.HL(b,
a)}HL(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}cD(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}GL(b,a,c,d){if(!this.sj){var g=a.length;(g=this.Pb.Ya&&a.length>=this.Jj?this.qn.ea(g+1):this.qn.ea(g))&&this.rS(g,g.Ad,b,a,c,d)}}rS(b,a,c,d,g,k){if(null!=a){if(null!=b.oc&&!this.ra.ai(d,a)){if(0<d.length){var m=
d.slice(0,-1);m.push(a.ordinal)}else m=d.slice(0);this.ra.xo(m,a,l.i.ja.La,b.gg)}m=d.length;a=null==b.oc||a.level.wb>=b.oc.wb?b.Yj(a,!1,""):b.Vu(b.gg);a=this.V4(b,a,c,d);if(b.filter.xi&&b.filter.query.va!=l.i.yc.ck&&b.filter.query.va!=l.i.yc.Hi){var n=b.filter;var p=this.slice.gd(n.measure.A)}for(var t,r,w=this.ra.UB(b),y=0;y<a.length;y++){t=b.ya(a[y]);if(null==c[t.ordinal]&&!w||t.Zb)continue;var A=d.slice(0);A.push(t.ordinal);if(this.N1(A,t,n,p))continue;var C=this.ra.bi(A,g);const B=this.ra.ai(A,
t);if(m<this.Jj)if(this.Fe?(r=this.rj(this.xg,A,this.Zv),0<=r&&(this.Bc=e.Ja.se(this.Bc,k,r),this.Hc=e.Ja.se(this.Hc,-1,r))):(this.kj(this.xg,A,-1),this.Bc.push(k)),m==this.Jj-1&&C)for(r=0;r<this.mb.length;r++)this.ra.ai(A,t,r)?this.rS(b,t,c,d,r,k+2):(this.Fe?(C=this.rj(this.xg,A,this.Zv),0<=C&&(this.Bc=e.Ja.se(this.Bc,k+1,C),this.Hc=e.Ja.se(this.Hc,r,C))):(this.kj(this.xg,A,r),this.Bc.push(k+1)),this.ra.bi(A)&&this.GL(c[t.ordinal],A,r,k+2));else{for(r=0;r<this.mb.length;r++)if(this.hia(b)||!C&&!B||
this.xu)if(this.Fe){const I=this.rj(this.xg,A,this.Zv);0<=I&&(this.Bc=e.Ja.se(this.Bc,k+1,I),this.Hc=e.Ja.se(this.Hc,r,I));C||this.g4(this.xg,A)}else this.kj(this.xg,A,r),this.Bc.push(k+1);this.ra.ai(A,t,g)?this.rS(b,t,c,d,g,k+2):this.ra.bi(A,g)&&this.GL(c[t.ordinal],A,g,k+2)}else this.Fe?(r=this.rj(this.xg,A,this.Zv),0<=r&&(this.Bc=e.Ja.se(this.Bc,k,r),this.Hc=e.Ja.se(this.Hc,g,r))):(this.kj(this.xg,A,g),this.Bc.push(k)),this.ra.ai(A,t,g)?this.rS(b,t,c,d,g,k+1):C&&this.GL(c[t.ordinal],A,g,k+1)}}}T9(b,
a,c,d,g){if(null!=a){if(null!=b.oc&&!this.ra.ai(d,a)){if(0<d.length){var k=d.slice(0);k.push(a.ordinal)}else k=d.slice(0);this.ra.xo(k,a,l.i.ja.La,b.gg)}a=null==b.oc||a.level.wb>=b.oc.wb?b.Yj(a,!1,""):b.Vu(a.hierarchy.gg);a=this.V4(b,a,c,d);if(b.filter.xi&&b.filter.query.va!=l.i.yc.ck&&b.filter.query.va!=l.i.yc.Hi){var m=b.filter;var n=this.slice.gd(m.measure.A)}k=this.ra.UB(b);for(var p=!1,t=0;t<a.length;t++){var r=b.ya(a[t]);0===t&&this.vca(r);if(null==c[r.ordinal]&&!k||r.Zb)continue;var w=d.slice(0);
w.push(r.ordinal);if(this.N1(w,r,m,n))continue;var y=this.ra.ai(w,r),A=this.ra.bi(w);r.Sg&&A&&!y&&(A=!1);var C=0<this.Lb.length?this.Lb[0].length:0;!this.Fe&&this.ml>w.length&&(this.Di[C]=1,void 0==this.Bc[C]&&(this.Bc[C]=g));const B=Date.now()-this.wY;if(B<e.model.C.F.mS||B>=e.model.C.F.mS&&0<g)y?this.T9(b,r,c,d,g+1):A&&this.m0(c[r.ordinal],w,g+1);else if(y||A)this.WQ=!0,0===g&&A&&(this.tIa(w,C),A=!1);y||A?(this.hia(b)&&(this.Fe?(A=this.rj(this.Lb,w,this.nN),0<=A?(this.Di.splice(A,0,2),this.Bc=e.Ja.se(this.Bc,
g,A)):(w=this.HL(this.Lb,w,!1),0<=w&&(this.Di[w]=2))):(this.kj(this.Lb,w),this.Bc[this.Lb[0].length-1]=g,this.Di[this.Lb[0].length-1]=2)),y&&this.Bc[C]>g&&(this.Bc[C]=g,this.Di[C]=0)):this.Fe?(y=1<w.length&&this.Ava(this.Lb,d),y=this.rj(this.Lb,w,this.nN,y?-1:0),0<=y&&(this.Di.splice(y,0,g==this.ml-1?0:1),this.Bc=e.Ja.se(this.Bc,g,y),1<w.length&&(0==t&&(this.Di[y]=1,this.Bc[y]=this.Wca(this.Lb,y)),0==p&&(y=d.slice(0),y.push(0),y=this.HL(this.Lb,y),0<=y&&2!=this.Di[y]&&(p=!0,this.Di[y]=2,this.Bc[y]=
g-1)))),A||this.cc.Ya||this.g4(this.Lb,w)):(this.kj(this.Lb,w),void 0==this.Di[this.Lb[0].length-1]&&(this.Di[this.Lb[0].length-1]=0,this.Bc[this.Lb[0].length-1]=g))}}}Wca(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}Ava(b,a){a=a.slice(0);a.push(0);let c=1;for(;c<a.length;){if(this.Xaa(b,a))return!0;c++;a[a.length-c]=0}return!1}tIa(b,a){this.Bc[a]=0;this.ra.collapse(b,this.Pb.A,void 0);b=[-1,b[0]];a=this.$G().slice(0);a.push(b);this.w4(a)}vca(b){this.tca(this.TQ,
b)}Hxa(b){this.tca(this.aQ,b)}tca(b,a){-1===b.indexOf(a.level.A)&&(1>=(null!=a.hierarchy.oc?a.level.wb-a.hierarchy.oc.wb+1:a.level.wb)?b.push(a.level.A):b.splice(b.indexOf(a.parent.level.A)+1,0,a.level.A))}Tea(b,a){for(let c=0;c<b.length;c++){const d=a.ea(c),g=this.Qza(d,b[c]);if(d.filter.wh){let k=-1;for(let m=0;m<g.length;m++){if(0>d.gb.indexOf(g[m])&&1===g.length)return!1;const n=d.gb.indexOf(g[m]);k=n>k?n:k}if(-1===k)return!1}}return!0}Qza(b,a){const c=[];for(b=b.ya(a);0!==b.ordinal;)c.push(b.ordinal),
b=b.parent;return c}V4(b,a,c,d){if(!this.lz)return a;var g=this.Hl;if(!this.Tea(g,this.Db))return a;for(var k=[],m=[],n=[],p=[],t,r=this.ra.UB(b),w=0;w<a.length;w++)if(t=b.ya(a[w]),(null!=c[t.ordinal]||r)&&!t.Zb){var y=d.slice(0);y.push(t.ordinal);y=this.Ha(y,g,this.Zq);isNaN(y)?n.push(t.ordinal):(k.push(y),m.push(t.ordinal))}b=this.Ih!==l.i.za.Kc?e.Ja.sort(k,e.Ja.Ki|e.Ja.Bv):e.Ja.sort(k,e.Ja.Ki|e.Ja.ep|e.Ja.Bv);for(w=0;w<b.length;w++)a=m[b[w]],null!=a&&p.push(a);for(w=0;w<n.length;w++)a=n[w],this.Ih==
l.i.za.Kc?p.push(a):p.splice(w,0,a);return p}mia(b,a,c,d){if(!this.jD)return a;var g=this.yj;if(!this.Tea(g,this.yb))return a;for(var k=[],m=[],n=[],p=[],t,r=this.ra.gG(b),w=0;w<a.length;w++)if(t=b.ya(a[w]),(null!=c[t.ordinal]||r)&&!t.Zb){var y=d.slice(0);y.push(t.ordinal);y=this.Ha(g,y,this.Lo);isNaN(y)?n.push(t.ordinal):(k.push(y),m.push(t.ordinal))}b=this.Vj!==l.i.za.Kc?e.Ja.sort(k,e.Ja.Ki|e.Ja.Bv):e.Ja.sort(k,e.Ja.Ki|e.Ja.ep|e.Ja.Bv);for(w=0;w<b.length;w++)a=m[b[w]],null!=a&&p.push(a);for(w=0;w<
n.length;w++)a=n[w],this.Vj==l.i.za.Kc?p.push(a):p.splice(w,0,a);return p}sca(b,a,c){var d=a.length;(d=this.Ob.Ya&&a.length>=this.Jj?this.om.ea(d+1):this.om.ea(d))&&this.rca(d,d.Ad,b,a,c)}rca(b,a,c,d,g){if(null!=b.oc&&!this.ra.yk(d,a)){if(0<d.length){var k=d.slice(0);k.push(a.ordinal)}else k=d.slice(0);this.ra.xo(k,a,l.i.ja.Xa,b.gg)}a=null==a.hierarchy.oc||a.level.wb>=b.oc.wb?b.Yj(a,!1,""):b.Vu(b.gg);a=this.mia(b,a,c,d);if(b.filter.xi&&b.filter.query.va!=l.i.yc.ck&&b.filter.query.va!=l.i.yc.Hi){var m=
b.filter;var n=this.slice.gd(m.measure.A)}k=this.ra.gG(b);for(var p=0;p<a.length;p++){var t=b.ya(a[p]);0==p&&this.Hxa(t);if(null==c[t.ordinal]&&!k||t.Zb)continue;var r=d.slice(0);r.push(t.ordinal);if(this.tea(r,t,m,n))continue;const w=this.ra.zk(r),y=this.ra.yk(r,t);if(this.hI(w,y)&&!y)this.SB(d.length);else if(this.Xs(b)||!w||this.xu)if(this.Fe){const A=this.rj(this.ad,r,this.aL);0<=A&&!this.Rb.Ya&&(this.Ec=e.Ja.se(this.Ec,g,A));w||this.Rb.Ya||this.Vga(this.ad,r)}else this.kj(this.ad,r),this.Ec.push(g);
else this.Xs(b)||this.SB(d.length);y?this.rca(b,t,c,d,g+1):w&&this.sca(c[t.ordinal],r,g+1);this.hI(w,y)&&(this.Xs(b)||!w||this.xu)&&(this.Fe?(t=this.rj(this.ad,r,this.aL),0<=t&&(this.Ec=e.Ja.se(this.Ec,-1,t))):(this.kj(this.ad,r),this.Ec.push(-1)))}}EL(b,a,c,d){var g=a.length;(g=this.Ob.Ya&&a.length>=this.Jj?this.om.ea(g+1):this.om.ea(g))&&this.qS(g,g.Ad,b,a,c,d)}get J4(){return"on"===e.model.C.F.Bf||"columns"===e.model.C.F.Bf||0===this.rows.length}get Q4(){return"on"===e.model.C.F.Bf||"rows"===e.model.C.F.Bf||
0===this.Ka.length}Xs(b){return e.model.C.F.pk&&void 0!==b&&void 0!==b.Cf?b.Cf:"on"===e.model.C.F.Cf||"columns"===e.model.C.F.Cf}hI(b,a){return!b&&!a||this.xu?!1:"after"===e.model.C.F.$K}hia(b){return e.model.C.F.pk&&void 0!==b&&void 0!==b.Cf?b.Cf:"on"===e.model.C.F.Cf||"rows"===e.model.C.F.Cf}get xu(){return!1}qS(b,a,c,d,g,k){if(null!=b.oc&&!this.ra.yk(d,a)){if(0<d.length){var m=d.slice(0,-1);m.push(a.ordinal)}else m=d.slice(0);this.ra.xo(m,a,l.i.ja.Xa,b.gg)}m=d.length;var n=null==b.oc||a.level.wb>=
b.oc.wb?b.Yj(a,!1,""):b.Vu(b.gg);n=this.mia(a.hierarchy,n,c,d);if(b.filter.xi&&b.filter.query.va!=l.i.yc.ck&&b.filter.query.va!=l.i.yc.Hi){var p=a.hierarchy.filter;var t=this.slice.gd(p.measure.A)}var r;a=this.ra.gG(b);for(var w=0;w<n.length;w++){var y=b.ya(n[w]);if((null!=c[y.ordinal]||a)&&!y.Zb){var A=d.slice(0);A.push(y.ordinal);if(!this.tea(A,y,p,t)){var C=this.ra.zk(A,g),B=this.ra.yk(A,y);if(m<this.Jj)if(this.Ob.Ya&&this.DB<k+1&&(this.DB=k+1),m==this.Jj-1&&C)if(B){for(r=0;r<this.mb.length;r++)this.Fe?
(C=this.rj(this.eg,A,this.Bt),0<=C&&(this.Ec=e.Ja.se(this.Ec,k,C),this.Hc=e.Ja.se(this.Hc,g,C))):(this.kj(this.eg,A,r),this.Ec.push(k));this.qS(b,y,c,d,g,k+1)}else for(r=0;r<this.mb.length;r++)this.Xs(b)||!C||this.xu?this.Fe?(B=this.rj(this.eg,A,this.Bt),0<=B&&(this.Ec=e.Ja.se(this.Ec,k,B),this.Hc=e.Ja.se(this.Hc,r,B))):(this.kj(this.eg,A,r),this.Ec.push(k)):this.Xs(b)||this.SB(m),this.ra.zk(A,r)&&this.EL(c[y.ordinal],A,r,k+1);else{if(this.hI(C,B)&&!B)this.SB(m);else if(this.Xs(b)||!C||this.xu)for(r=
0;r<this.mb.length;r++)if(this.Fe){const I=this.rj(this.eg,A,this.Bt);0<=I&&(this.Ec=e.Ja.se(this.Ec,k,I),this.Hc=e.Ja.se(this.Hc,r,I));C||this.Vga(this.eg,A)}else this.kj(this.eg,A,r),this.Ec.push(k);else this.Xs(b)||this.SB(m);this.ra.yk(A,y,g)?this.qS(b,y,c,d,g,k+1):C&&this.EL(c[y.ordinal],A,g,k+1);if(this.hI(C,B)&&(this.Xs(b)||!C||this.xu))for(r=0;r<this.mb.length;r++)this.Fe?(y=this.rj(this.eg,A,this.Bt),0<=y&&(this.Ec=e.Ja.se(this.Ec,-1,y),this.Hc=e.Ja.se(this.Hc,r,y))):(this.kj(this.eg,A,r),
this.Ec.push(-1))}else this.hI(C,B)&&!B?this.SB(m):this.Xs(b)||!C||this.xu?this.Fe?(r=this.rj(this.eg,A,this.Bt),0<=r&&(this.Ec=e.Ja.se(this.Ec,k,r),this.Hc=e.Ja.se(this.Hc,g,r))):(this.kj(this.eg,A,g),this.Ec.push(k)):this.Xs(b)||this.SB(m),this.ra.yk(A,y,g)?this.qS(b,y,c,d,g,k+1):C&&this.EL(c[y.ordinal],A,g,k+1),this.hI(C,B)&&(this.Xs(b)||!C||this.xu)&&(this.Fe?(A=this.rj(this.ad,A,this.aL),0<=A&&(this.Ec=e.Ja.se(this.Ec,-1,A))):(this.kj(this.ad,A),this.Ec.push(-1)))}}}}SB(b){void 0===this.Yy[this.Ec.length]&&
(this.Yy[this.Ec.length]=[]);-1==this.Yy[this.Ec.length].indexOf(b)&&this.Yy[this.Ec.length].push(b)}get nb(){return 0==this.ad.length&&0==this.Lb.length}set nb(b){}aT(b){return this.sj?this.Bc[this.Pb.Ya?Math.floor(b/this.mb.length):b]:this.Bc[b]}fT(b){return this.sj?this.Di[this.Pb.Ya?Math.floor(b/this.mb.length):b]:this.Di[b]}Hw(){return 1}RL(b){return this.Ec[b]}M1(b){return this.Yy[b]}cT(b){return this.Pb.Ya&&(b.length>this.Jj||0==this.Jj)?b.length:b.length-1}bT(b){return this.qn.ea(this.cT(b))}KS(b){return this.Ob.Ya&&
(b.length>this.Jj||0==this.Jj)?b.length:b.length-1}aH(b){return this.om.ea(this.KS(b))}get Dd(){return 0<this.ad.length?this.ad[0].length:0}set Dd(b){}get Cd(){return 0<this.Lb.length?this.Lb[0].length:0}set Cd(b){}get Cn(){return 0<this.eg.length?this.eg[0].length:0}set Cn(b){}get Bn(){return this.sj?(this.cc&&this.cc.Ya?this.mb.length:1)*(0<this.Lb.length?this.Lb[0].length:0):this.xg&&0<this.xg.length?this.xg[0].length:0}set Bn(b){}bi(b,a){return this.ra.bi(b,a)}zk(b,a){return this.ra.zk(b,a)}ai(b,
a,c){return this.ra.ai(b,a,c)}yk(b,a,c){return this.ra.yk(b,a,c)}QC(b,a=!0){b=b.slice(0);var c=(a=a&&this.Ob.Ya)?b.pop():-1,d=this.eg;if(0<d.length)for(var g=0;g<d[0].length;g++){var k=!0;if(!a||!this.Yl||c==this.Hc[g]){var m=this.cD(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}aD(b,a=!0){b=b.slice(0);var c=(a=a&&this.Pb.Ya)?b.pop():-1,d=this.sj?this.Lb:this.xg;if(0<d.length)for(var g=0;g<d[0].length;g++){var k=!0;if(!a||!this.Yl||c==this.Hc[g]){var m=
this.cD(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}Fn(b,a=!1){return 0>b||null==this.Pb||null==this.mb?null:a&&this.Pb.Ya&&this.Yl?this.sj?(b=Math.floor(b/this.mb.length),void 0==this.Lb[0][b]?null:this.cD(this.Lb,b)):void 0==this.xg[0][b]?null:this.cD(this.xg,b):e.v(this.Lb[0])||e.v(this.Lb[0][b])?null:this.cD(this.Lb,b)}Nj(b,a=!1){return 0>b||null==this.Ob||null==this.mb?null:a&&this.Ob.Ya&&this.Yl?void 0==this.eg[0][b]?null:this.cD(this.eg,
b):void 0==this.ad[0]?[0]:void 0==this.ad[0][b]?null:this.cD(this.ad,b)}E0(){return null}eT(b){return this.sj&&this.Pb.Ya?void 0==this.Lb[0][Math.floor(b/this.Ba.length)]?-1:b%this.mb.length:void 0==this.Hc[b]?-1:this.Pb.Ya&&this.Yl?this.Hc[b]:-1}LS(b){return void 0===this.Hc[b]?-1:this.Ob.Ya&&this.Yl?this.Hc[b]:-1}vi(b,a){if(void 0!==this.mb&&void 0!==this.Pb&&void 0!==this.Ob)return this.Yl?this.Pb.Ya?this.sj?(a=b%this.mb.length,void 0==this.Lb[0][Math.floor(b/this.Ba.length)]?this.mb[0]:this.mb[a]):
void 0===this.Hc[b]?this.mb[0]:this.mb[this.Hc[b]]:void 0===this.Hc[a]?this.mb[0]:this.mb[this.Hc[a]]:this.mb[0]}bd(b,a,c){return this.ra.bd(b,a,c)}save(b,a,c,d,g){return this.ra.save(b,a,c,d,g)}dD(b,a,c){return this.ra.dD(b,a,c)}Du(b,a){return this.ha.ga.Gc?null:null==b&&null==a?null:this.ra.uAa(b,a)}Ha(b,a,c){if(c.aa===l.i.da.Ir)return b=this.ra.Ha(b,a,c),c=this.ra.Ha([],[],c),isNaN(b)&&!isNaN(c)?0:Math.abs(100*b/c);if(c.aa===l.i.da.lp)return b=this.ra.Ha(b,a,c),c=this.ra.Ha([],a,c),isNaN(b)&&!isNaN(c)?
0:100*b/c;if(c.aa===l.i.da.Hq)return a=this.ra.Ha(b,a,c),c=this.ra.Ha(b,[],c),isNaN(a)&&!isNaN(c)?0:100*a/c;if(c.aa===l.i.da.Gq){var d=this.ra.Ha(b,a,c);b=b.slice(0,b.length-1);c=this.ra.Ha(b,a,c);return isNaN(d)&&!isNaN(c)?0:100*d/c}if(c.aa===l.i.da.Fq)return d=this.ra.Ha(b,a,c),a=a.slice(0,a.length-1),c=this.ra.Ha(b,a,c),isNaN(d)&&!isNaN(c)?0:100*d/c;if(c.aa===l.i.da.Ji){d=this.ra.Ha([],[],c);const g=this.ra.Ha(b,[],c),k=this.ra.Ha([],a,c);c=this.ra.Ha(b,a,c);return Math.abs(d*c/(k*g))}return c.aa===
l.i.da.Rn?this.fda(b,a,c,!1):c.aa===l.i.da.an?this.gda(b,a,c,!1):c.aa===l.i.da.Wn?this.fda(b,a,c,!0):c.aa===l.i.da.cn?this.gda(b,a,c,!0):c.aa===l.i.da.en||c.aa===l.i.da.Yn?this.ra.Cda(b,a,c):this.ha.ga.Da!==l.i.qa.Tc&&this.ha.ga.Da!==l.i.qa.le||!e.model.C.F.vq||c.aa!==l.i.da.NONE?this.ra.Ha(b,a,c):(c=this.ra.Ha(b,a,c),l.xJ.V().iAa(c))}gda(b,a,c,d){var g=-1;if(0<this.Ka.length){var k=this.Ob.Ya&&1<this.mb.length;g=a.slice();k&&g.push(0);g=this.QC(g,k);if(0==g||0==a.length)return NaN;if(0>g)return 0;
k=this.Nj(k&&a.length<=this.Ob.ie?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.qAa(g,a.length));if(null==k)return NaN;k=this.ra.Ha(b,k,c);isNaN(k)&&!d&&(k=0)}b=this.ra.Ha(b,a,c);isNaN(b)&&0<g&&!d&&(b=0);return d?(b-k)/k*100:b-k}fda(b,a,c,d){var g=-1;if(0<this.rows.length){var k=this.Pb.Ya&&1<this.mb.length;g=b.slice();k&&g.push(0);g=this.aD(g,k);if(0==g||0==b.length)return NaN;if(0>g)return 0;k=this.Fn(k&&b.length<=this.Pb.ie?
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.rAa(g,b.length));if(null==k)return NaN;k=this.ra.Ha(k,a,c);isNaN(k)&&!d&&(k=0)}b=this.ra.Ha(b,a,c);isNaN(b)&&0<g&&!d&&(b=0);return d?(b-k)/k*100:b-k}rAa(b,a){if(0>b||null==this.Pb||null==this.mb||e.v(this.Lb[0])||e.v(this.Lb[0][b]))return null;b=this.rha(this.Lb,a,b);return 0<=b&&0==this.Lb[a][b]?this.Ada(b,a,this.Lb):null}qAa(b,a){if(0>b||null==this.Pb||null==this.mb)return null;
if(void 0==this.ad[0])return[0];if(void 0==this.ad[0][b])return null;b=this.rha(this.ad,a,b);return 0<=b&&0==this.ad[a][b]?this.Ada(b,a,this.ad):null}Ada(b,a,c){let d=[];for(let g=0;g<a;g++)d.push(c[g][b]);return d}rha(b,a,c){if(b[a]&&0==b[a][c]){for(c--;0!=b[a][c]&&0<=c;)c--;return c}return-1}Np(b,a,c){b=this.ra.Ha(b,a,c);return l.xJ.V().KAa(b)}gw(b,a,c,d){return this.ra.gw(b,a,c,d)}Cw(b){this.ri&&(this.ha.ga.Gc||this.Bxa(b))}Bxa(b){var a=this.slice.rows.Hb(b.A)?l.i.ja.La:l.i.ja.Xa;b=a==l.i.ja.La?
this.slice.yb.indexOf(b.A):this.slice.Db.indexOf(b.A);if(b+1!=(a==l.i.ja.La?this.slice.yb.length:this.slice.Db.length)){var c=[],d=(a==l.i.ja.La?this.slice.yb:this.slice.Db).slice(0,b+1);this.kM([],d,c);d=a==this.slice.cs.A?this.slice.cs.ie:-1;for(var g=this.slice.hd(),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.ha.Fa(new l.EX(l.i.Rd.EA));this.ha.$a(e.model.jc.nd.dn)}}kM(b,
a,c,d=!0){if(0!=a.length){var g=a.ea(0);var k=g.filter.wi?g.gb.length:g.Ri;for(var m=0;m<k;m++){var n=g.filter.wi?g.ya(g.gb[m]):g.ya(m);if(!n.Zb){var p=b.slice(0);p.push(n.ordinal);(d||!d&&1==a.length)&&c.push(p.slice(0));this.kM(p.slice(0),a.slice(1),c,d)}}}}ow(b){this.ri&&(this.ha.ga.Gc||this.Gua(b))}Gua(b){var a=this.slice.rows.Hb(b.A)?l.i.ja.La:l.i.ja.Xa;b=a==l.i.ja.La?this.slice.yb.indexOf(b.A):this.slice.Db.indexOf(b.A);if(b+1!=(a==l.i.ja.La?this.slice.yb.length:this.slice.Db.length)){var c=
[],d=(a==l.i.ja.La?this.slice.yb:this.slice.Db).slice(0,b+1);this.kM([],d,c,!1);d=a==this.slice.cs.A?this.slice.cs.ie:-1;for(var g=this.slice.hd(),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.ha.Fa(new l.EX(l.i.Rd.i6));this.ha.$a(e.model.jc.nd.dn)}}Qc(){this.ri&&(this.ha.ga.Gc?this.ha.select():(this.reset(),this.slice.Qc?this.ra.Qc(this.slice.kd):
this.ha.select()))}sort(){this.Fe=!1;this.cV();this.ha.$a(e.model.jc.nd.dn)}get fU(){return this.o$}get eU(){return this.n$}expand(b,a,c,d=!0){a==l.i.ja.La&&(this.o$=b);a==l.i.ja.Xa&&(this.n$=b);var g=this.slice.ce(a),k=b.slice(0);k.unshift(c&&g.Ya?c.index:-1);if(this.slice.Qc)if(a==l.i.ja.La){g=this.$G();k=k.toString().toLocaleLowerCase();var m=-1;for(var n=0;n<g.length;n++)if(k===g[n].toString().toLocaleLowerCase()){m=n;break}0<=m&&g.splice(m,1);this.w4(g)}else{g=this.PC();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.Cha(g)}else a==l.i.ja.La?(g=this.YL().slice(0),g.push(k),this.Lha(g)):(g=this.XL().slice(0),g.push(k),this.Kha(g));this.ha.expand(b,a,c,d)}collapse(b,a,c,d=!0){a==l.i.ja.La&&(this.o$=b.slice(0,b.length-1));a==l.i.ja.Xa&&(this.n$=b.slice(0,b.length-1));var g=this.slice.ce(a),k=b.slice(0);k.unshift(c&&g.Ya?c.index:-1);if(this.slice.Qc)a==l.i.ja.La?(g=this.$G().slice(0),g.push(k),this.w4(g)):(g=
this.PC().slice(0),g.push(k),this.Cha(g));else if(a==l.i.ja.La){g=this.YL();k=k.toString().toLocaleLowerCase();var m=-1;for(var n=0;n<g.length;n++)if(k===g[n].toString().toLocaleLowerCase()){m=n;break}0<=m&&g.splice(m,1);this.Lha(g)}else{g=this.XL();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.Kha(g)}this.ha.collapse(b,a,c,d);d&&this.ha.$a(e.model.jc.nd.dn)}Ip(b,a,c,d){var g=this.slice.ce(c),k=[],m=b.slice(0);
m.unshift(a.A);m.unshift(d&&g.Ya?d.index:-1);if(this.slice.kd)c==l.i.ja.La?(k=this.UL().slice(0),k.push(m),this.Iha(k)):(k=this.TL().slice(0),k.push(m),this.Hha(k));else if(c==l.i.ja.La){var n=this.gH(),p;for(p in n)g=n[p],"string"==typeof g[0]&&(g=g.slice(1)),g.toString().toLocaleLowerCase()!=m.toString().toLocaleLowerCase()&&k.push(g);this.A4(k)}else{n=this.fH();for(p in n)g=n[p],"string"==typeof g[0]&&(g=g.slice(1)),g.toString().toLocaleLowerCase()!=m.toString().toLocaleLowerCase()&&k.push(g);
this.z4(k)}this.ha.Ip(b,a,c,d);this.ha.$a(e.model.jc.nd.dn)}Eta(b,a){for(;void 0!==b&&b.level.A!=a;)b=b.parent;return b}Mf(b,a,c,d){var g=this.slice.ce(c),k=[],m=b.slice(0);m.unshift(a.A);m.unshift(d&&g.Ya?d.index:-1);if(this.slice.kd)if(c==l.i.ja.La){var n=this.UL(),p;for(p in n)g=n[p],g.toString().toLocaleLowerCase()!=m.toString().toLocaleLowerCase()&&k.push(g);this.Iha(k)}else{n=this.TL();for(p in n)g=n[p],g.toString().toLocaleLowerCase()!=m.toString().toLocaleLowerCase()&&k.push(g);this.Hha(k)}else c==
l.i.ja.La?(k=this.gH().slice(0),k.push(m),this.A4(k)):(k=this.fH().slice(0),k.push(m),this.z4(k));this.ha.Mf(b,a,c,d);this.ha.$a(e.model.jc.nd.dn)}xo(b,a,c,d,g){var k=this.slice.ce(c),m=b.slice(0);m.unshift(a.A);m.unshift(d&&k.Ya?d.index:-1);m.unshift(g);c==l.i.ja.La?(k=this.gH().slice(0),k.push(m),this.A4(k)):(k=this.fH().slice(0),k.push(m),this.z4(k));this.ha.xo(b,a,c,d,g)}W1(b){return!0===this.tV[b]}JV(b){this.tV[b]=!0}H1(b){return!0===this.AR[b]}x4(b){this.AR[b]=!0}static dispose(){f.instance&&
(f.instance.Rz(),f.instance.Yd());f.instance=null}}f.counter=0;h.QP=f})(l.sf||(l.sf={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static get vwa(){if(f.I)return f.I instanceof h.eX?"flat":f.I instanceof h.oO?"chart":"pivot"}static aKa(b){var a=b.U("gridType");return b.U("viewType")===e.K.Id.dj?"chart":a===e.K.Y.te.Bh?"flat":"pivot"}static zc(b="",a=!0){""==b&&(b=e.model.C.F.je==e.K.Id.dj?"chart":e.model.C.F.rc?"flat":"pivot");b="flat"==b?h.eX.V():"chart"==b?h.oO.V():h.QP.V();b.cR();f.I!=b?(f.I&&f.I.Rz(),b.load()):a&&e.model.C.F.cv&&(b.load(),e.model.C.F.cv=!1);f.I=b;return f.I}static D0(b){f.zc("chart");
return b?h.T8.V(f.I):f.I}static dispose(){h.eX.dispose();h.oO.dispose();h.QP.dispose();h.T8.dispose();f.I=null}}f.I=null;h.Fj=f;(function(b){b.zNa="pivot";b.Bh="flat";b.xLa="chart"})(h.ila||(h.ila={}))})(l.sf||(l.sf={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends v.Ah{constructor(){super();this.mb=[];this.AF=!1;this.Pz=()=>this.LD();this.Iu=[];this.Xk=[];this.xa=l.Ra.V()}get ra(){return null!=this.bK?this.bK:this.xa.ra}set ra(b){this.bK=b}get slice(){return null!=this.Qb?this.Qb:this.xa.ua}set slice(b){this.Qb=b}get Ba(){return this.mb}set Ba(b){}get Yl(){return 1<this.mb.length}set Yl(b){}get ri(){return this.slice&&this.AF}set ri(b){}static V(){null==f.instance&&(f.instance=new f);return f.instance}cR(){this.xa.N(l.tg.Pk,
this.Pz,1)}Rz(){this.xa.sb(l.tg.Pk,this.Pz)}load(){if(null==this.ra&&(this.ra=this.xa.ra,null==this.ra))return;this.slice&&(this.xa.ga.Gc||(this.ra.expand([],l.i.ja.La,void 0),this.ra.expand([],l.i.ja.Xa,void 0)),this.cV(),this.AF=!0)}LD(){this.reset();this.load()}cV(){var b,a=this.slice?this.slice.flatten(!0,!0):new e.tb;this.Xk.length=0;this.ZK=new e.tb;this.wc=this.xa.O.wc();this.mb=[];for(b=0;b<a.length;b++){var c=a.ea(b);var d=a.ea(b)instanceof l.O.ht?this.xa.O.cf(c.A):a.ea(b);void 0===d&&(d=
this.xa.O.Uq.getItem(c.A));d&&this.mb.push(d);d=this.ra.uh.indexOf(c.A);if(c.mg)for(var g=1;g<c.ta.length;g++)this.Xk.push([d,g]),this.ZK.Ta(c.A,this.Xk.length-1);else this.Xk.push(d),this.ZK.Ta(c.A,this.Xk.length-1);this.sh=this.slice.ih}this.sort()}get ie(){return 0}set ie(b){}get cI(){return 0}set cI(b){}get xn(){return 0}set xn(b){}get Dz(){return 0}set Dz(b){}get rows(){return new e.tb}set rows(b){}get yb(){return new e.tb}set yb(b){}get ol(){return[]}set ol(b){}get iC(){return[]}set iC(b){}get Ka(){return new e.tb}set Ka(b){}get Db(){return new e.tb}set Db(b){}get ob(){return new e.tb}set ob(b){}get cc(){return new l.O.zr(l.i.ja.La)}set cc(b){}get Rb(){return new l.O.zr(l.i.ja.Xa)}set Rb(b){}get ml(){return 1}set ml(b){}get Yk(){return 0}set Yk(b){}set Vj(b){}get Vj(){return null}set yj(b){}get yj(){return null}set Lo(b){}get Lo(){return null}get jD(){return!1}set jD(b){}set Ih(b){}get Ih(){return null}set Hl(b){}get Hl(){return null}set Zq(b){}get Zq(){return null}get lz(){return!e.v(this.sh)&&
0<this.sh.length}set lz(b){}set sh(b){this.slice.ih=b}get sh(){return this.slice.ih}MS(b){if(e.v(this.sh))return null;for(var a=0;a<this.sh.length;a++){var c=this.sh[a];if(c.measure.A==b)return c}}reset(){this.AF=!1;this.mb=[];this.Iu.length=0;this.Xk.length=0;this.ZK=new e.tb;this.wc=null}get nb(){return 0==this.Xk.length}set nb(b){}M1(){return null}aT(){return 0}fT(){return 0}Hw(){return 0}RL(){return 1}cT(){return 0}bT(b){return this.aH(b)}KS(){return 0}aH(b){e.v(this.wc)&&(this.wc=this.xa.O.wc());
return this.wc.getItem(this.ra.uh[b[0]])}get Dd(){return this.Xk.length}set Dd(b){}get Cd(){return this.ra?this.ra.result[0]:0}set Cd(b){}get Cn(){return this.Xk.length}set Cn(b){}get Bn(){return this.ra.mH()}set Bn(b){}bi(){return!1}zk(){return!1}ai(){return!1}yk(){return!1}QC(b){for(var a=0;a<this.Xk.length;a++)if(this.Xk[a]instanceof Array){if(this.Xk[a][0].toString()==b.toString())return a}else if(this.Xk[a].toString()==b.toString())return a;return-1}aD(b){if(0<this.Iu.length&&b[0]<this.Iu.length)for(var a=
0;a<this.Iu.length;a++){if(this.Iu[a].toString()==b.toString())return a}else return b[0];return-1}Fn(b){return 0>b?null:0<this.Iu.length&&b<this.Iu.length?[this.Iu[b]]:[b]}Nj(b,a,c=!1){return 0>b?null:0<this.Xk.length&&b<this.Xk.length?!c&&this.Xk[b]instanceof Array?[this.Xk[b][0]]:[this.Xk[b]]:[b]}E0(b){b=this.ZK.getItem(b);return this.Nj(b,!1)}eT(){return 0}LS(){return 0}vi(b,a){b=this.Nj(a);var c=this.ra.uh[b[0]];return this.mb.find(d=>d.A===c)}dD(b,a,c){return null==b?this.ra.oda(null,c):this.ra.oda(b[0],
c)}Ha(b,a,c,d){if(null==a&&null==b)return this.ra.Ha([],[],c,!0);if(this.ra instanceof l.local.aP||this.ra instanceof l.external.pc.I5)return this.ra.US(b[0],a[0],c,c.type!=l.i.Pa.xc,d)}Du(b,a){return(null!=b||null!=a)&&this.ra instanceof l.local.aP?this.ra.Du(b[0]):null}sort(){this.eZ();this.xa.$a(e.model.jc.nd.dn)}eZ(){if(this.lz){for(var b=[],a=null,c=null,d=0;d<this.sh.length;d++){var g=this.sh[d];g.hierarchy=this.xa.O.Ck(g.measure.A);c=void 0!==g.hierarchy?g.hierarchy.A:g.measure.A;a=void 0!==
g.hierarchy?g.hierarchy.j1:!1;if(-1!=this.ZK.indexOf(c)){g.lf=this.E0(c);if(g.measure.type==l.i.Pa.xc||a)g.WR=this.Aza(g.hierarchy);b.push(g)}}this.sh=b;b=[];for(a=0;a<this.Bn;a++){c=[];for(d=0;d<this.sh.length;d++)g=this.sh[d],c[d]=this.AAa(a,g.lf,g.measure,g.hierarchy,!e.v(g.WR));b[a]=[c,a]}b.sort((k,m)=>this.IJa(k[0],m[0]));this.Iu=b.map(k=>k[1])}else this.Iu.length=0}Aza(b){var a=!1;b.type==l.i.Lc.Sa&&2<b.ta.length&&(a=!0);if(b.j1||!a){a={};const c=b.Yj(b.Ad,!1,l.i.za.ic);for(let d=0;d<c.length;d++){const g=
b.ya(c[d]);a[g.A]=d}return a}return null}AAa(b,a,c,d,g){if(null!=d&&d.type==l.i.Lc.Sa&&2<d.ta.length)return g=this.Ha([b],a,c,d.ta.length-1),d.ya(g).fc;b=this.Ha([b],a,c);if(c.type!=l.i.Pa.xc)return isNaN(b)?Number.NEGATIVE_INFINITY:b;d=d.ya(b);return g?d.A:d.caption}IJa(b,a){let c=0;for(let d=0;d<this.sh.length;d++){const g=this.sh[d];if(b[d]!=a[d]){c=e.v(g.WR)?"number"==typeof b[d]&&"number"==typeof a[d]?b[d]-a[d]:e.Ja.localeCompare(b[d],a[d]):g.WR[b[d]]-g.WR[a[d]];g.sort==l.i.za.Kc&&(c*=-1);break}}return c}gw(b,
a,c,d){return this.ra.Ota(b,c,d)}Np(){return null}Cw(){}ow(){}Qc(){}get fU(){return null}get eU(){return null}expand(){}collapse(){}Ip(){}Mf(){}bd(){return[]}save(b,a,c,d){return this.ra.AIa(b,a,c,d)}get sj(){return!1}set sj(b){}static dispose(){f.instance&&(f.instance.Yd(),f.instance.Rz());f.instance=null}W1(){return!1}JV(){}H1(){return!1}x4(){}}h.eX=f})(l.sf||(l.sf={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.QP{constructor(){super()}static V(){null==f.ze&&(f.ze=new f,f.ze.GB="chart"+h.QP.counter);return f.ze}get sj(){return!1}set sj(b){}get xu(){return!0}static dispose(){f.ze&&(f.ze.Rz(),f.ze.Yd());f.ze=null}}h.oO=f})(l.sf||(l.sf={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends v.Ah{constructor(b){super();this.I=b}static V(b){null==f.instance&&(f.instance=new f(b));return f.instance}static dispose(){f.instance&&(f.instance.Yd(),f.instance.Rz());f.instance=null}get ra(){return this.I.ra}set ra(b){this.I.ra=b}get slice(){return this.I.slice}set slice(b){this.I.slice=b}get Ba(){return this.I.Ba}set Ba(b){}get ri(){return this.I.ri}set ri(b){}cR(){this.I.cR()}Rz(){this.I.Rz()}load(){this.I.load()}get ie(){return this.I.ie}set ie(b){}get cI(){return this.I.xn}set cI(b){}get Yl(){return 1<
this.Ba.length}set Yl(b){}get xn(){return this.I.cI}set xn(b){}get Dz(){return this.I.Dz}set Dz(b){}get rows(){return this.I.Ka}set rows(b){}get yb(){return this.I.Db}set yb(b){}get ol(){return this.I.iC}set ol(b){}get iC(){return this.I.ol}set iC(b){}get Ka(){return this.I.rows}set Ka(b){}get Db(){return this.I.yb}set Db(b){}get ob(){return this.I.ob}set ob(b){}get cc(){return this.I.Rb}set cc(b){}get Rb(){return this.I.cc}set Rb(b){}get ml(){return this.I.Yk}set ml(b){}get Yk(){return this.I.ml}set Yk(b){}set Vj(b){}get Vj(){return this.I.Ih}set yj(b){}get yj(){return this.I.Hl}set Lo(b){}get Lo(){return this.I.Zq}get jD(){return this.I.lz}set jD(b){}set Ih(b){}get Ih(){return this.I.Vj}set Hl(b){}get Hl(){return this.I.yj}set Zq(b){}get Zq(){return this.I.Lo}get lz(){return this.I.jD}set lz(b){}set sh(b){}get sh(){return null}MS(){return null}reset(){}get nb(){return this.I.nb}set nb(b){}M1(){return null}aT(b){return this.I.RL(b)}fT(b){return this.I.Hw(b)}RL(b){return this.I.aT(b)}Hw(b){return this.I.fT(b)}cT(b){return this.I.cT(b)}bT(b){return this.I.bT(b)}KS(b){return this.I.KS(b)}aH(b){return this.I.aH(b)}get Dd(){return this.I.Cd}set Dd(b){}get Cd(){return this.I.Dd}set Cd(b){}get Cn(){return this.I.Bn}set Cn(b){}get Bn(){return this.I.Cn}set Bn(b){}bi(b,
a){return this.I.zk(b,a)}zk(b,a){return this.I.bi(b,a)}ai(b,a,c){return this.I.yk(b,a,c)}yk(b,a,c){return this.I.ai(b,a,c)}QC(b){return this.I.aD(b)}aD(b){return this.I.QC(b)}Fn(b,a=!1){return this.I.Nj(b,a)}Nj(b,a=!1){return this.I.Fn(b,a)}eT(b){return this.I.LS(b)}LS(b){return this.I.eT(b)}vi(b,a){return this.I.vi(b,a)}dD(b,a,c){return this.I.dD(b,a,c)}Du(){return null}Ha(b,a,c){return this.I.Ha(a,b,c)}sort(){return this.I.sort()}gw(b,a,c,d){return this.I.gw(b,a,c,d)}Np(b,a,c){return this.I.Np(b,
a,c)}Cw(b){this.I.Cw(b)}ow(b){this.I.ow(b)}Qc(){}get fU(){return null}get eU(){return null}expand(b,a,c,d=!0){a=a==l.i.ja.Xa?l.i.ja.La:l.i.ja.Xa;this.I.expand(b,a,c,d)}collapse(b,a,c,d=!0){a=a==l.i.ja.Xa?l.i.ja.La:l.i.ja.Xa;this.I.collapse(b,a,c,d)}Ip(b,a,c,d){c=c==l.i.ja.Xa?l.i.ja.La:l.i.ja.Xa;this.I.Ip(b,a,c,d)}Mf(b,a,c,d){c=c==l.i.ja.Xa?l.i.ja.La:l.i.ja.Xa;this.I.Mf(b,a,c,d)}bd(b,a,c){return this.I.bd(b,a,c)}save(b,a,c,d,g){return this.I.save(b,a,c,d,g)}E0(){return null}get sj(){return this.I.sj}set sj(b){}W1(){return!1}JV(){}H1(){return!1}x4(){}}
h.T8=f})(l.sf||(l.sf={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){class f extends h.oO{constructor(){super()}}h.Dla=f})(l.sf||(l.sf={}))})(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.Bi&&(this.Bi=b.Bi);void 0!==b.parent&&(this.parent=b.parent);void 0!==b.fc&&(this.fc=b.fc);void 0!==b.level&&(this.level=b.level);void 0!==b.ordinal&&(this.ordinal=b.ordinal);void 0!==b.Sg&&(this.Sg=b.Sg);void 0!==b.Zb&&(this.Zb=b.Zb);void 0!==b.vf&&(this.vf=b.vf);void 0!==b.value&&(this.value=b.value);void 0!==b.Ue&&(this.Ue=b.Ue)}get X1(){return void 0!==
this.parent||void 0!==this.Zb||void 0!==this.Ue||void 0!==this.Rg||void 0!==this.vf||void 0!==this.Sg?!1:!0}clone(){return new f(this)}}h.ae=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{pB(b){if(this.hk(b))return this.data[b]}Ot(b,a){this.data||(this.data={});this.data[b]=a}dra(){this.data&&delete this.data._descendants_}hk(b){return this.data&&this.data.hasOwnProperty(b)}zb(b){for(var a in b)null!=this[a]&&(this[a]=b[a])}}h.n9=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.n9{constructor(b,a){super();this.A=b;this.caption=a}set A(b){this.vK=b}get A(){return this.vK}set caption(b){e.v(b)&&(b="");b=""+b;""===b.trim()?this.vc=e.model.B.j.zl:this.vc=b}get caption(){return e.model.Tb.valid(this.vc)?this.vc:e.model.Tb.validate(this.vc)}get label(){return this.hk("_label")?this.pB("_label"):this.caption}set label(b){""!=b.trim()&&this.Ot("_label",b)}get p1(){return this.hk("_label")}toString(){return`{uniqueName: "${this.A}", caption: "${this.caption}"`}Qa(){var b=
{};b.uniqueName=this.A;b.caption=this.caption;return b}}h.JE=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){class f extends h.JE{constructor(b,a,c){super(b,a);this.w9=!1;this.XN=c}get XN(){return this.asa}set XN(b){this.asa=b}get active(){return this.w9}set active(b){this.w9=b}}h.xW=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.JE{constructor(b,a=""){super(b,a);this.yg=l.i.Lc.pv;this.KQ=0;this.Or=this.iQ=this.Gt="";this.tB=!0;this.Gh=f.RI;this.XQ=null;this.fg=[];this.El=new u.HP(!e.model.C.F.jw);this.Jv=new u.HP(!e.model.C.F.jw);this.St=[];this.Rq=[];this.xB=!1;this.ly={};this.nn=new e.tb;this.GY=!1;this.pQ=!0;this.FQ=this.EQ=!1;this.QQ=[];this.gQ=[];this.qy=[];this.sB={};this.PQ={};this.Ij=null;this.cache=[];this.Vk=[];this.FF=[]}set si(b){this.lY=b}get si(){return this.lY}get type(){return this.yg}set type(b){this.yg=
b}get origin(){return this.KQ}set origin(b){this.KQ=b;this.GY=1==(b&1)}get Qm(){return this.El.length}set Qm(b){}get Ri(){return this.El.length}get Wd(){return this.xB}set Wd(b){this.xB=b}get Mc(){return this.Gt}set Mc(b){"undefined"==b?this.Gt="":this.Gt=b}get Mh(){return this.tB}set Mh(b){}get mapping(){return l.Ra.V().ga.mapping}get ta(){return this.nn}set ta(b){}get Cf(){return this.dZ}set Cf(b){this.dZ=b}get description(){return this.Ij}set description(b){this.Ij=b}get HM(){const b=2<this.ta.length&&
this.type!==l.i.Lc.Sa?this.ta.ea(1).A:this.si.type===l.i.BA.OA?this.si.A:this.A;return e.model.Va.V().ha.ga.mapping.Ha(b,"filters")}Hh(b){b.hierarchy=this;this.tB||b.wb++;this.nn.Ta(b.A,b);this.ly[b.A]=[]}Dsa(b){b.hierarchy=this;this.tB||b.wb++;this.nn.DK(b.A,b,1);for(var a=2;a<this.nn.length;a++){var c=this.nn.ea(a);c&&c.wb++}this.ly[b.A]=[]}uu(b){return this.nn.getItem(b)}get mg(){return this.As||(this.Mh?2<this.ta.length:1<this.ta.length)}set mg(b){}get Se(){return"[Measures]"==this.A}set Se(b){}get As(){return this.EQ}set As(b){this.EQ=
b}get FM(){return this.FQ}set FM(b){this.FQ=b}get sS(){return this.pQ}set sS(b){this.pQ=b}Xy(b){null!=b&&(b.Rg=!0,this.ly[b.level.A].push(b.ordinal))}Y_(b){b.Rg=!1;this.ly[b.level.A].splice(b.ordinal,1);b=b.ww;for(var a=0;a<b.length;a++){var c=this.ya(b[a]);c.Rg&&this.Y_(c)}}CC(b){return this.ly[b.A]}get Vba(){for(var b=1;b<this.ta.length;b++){var a=this.ta.ea(b);if(!(this.oc&&a.wb<this.oc.wb)&&0===this.CC(a).length)return b}return 1}set Vba(b){}Osa(b){var a=void 0===b.ordinal?this.El.add(b.A):this.El.add(b.A,
b.ordinal);if(e.v(b.parent))if(e.v(b.Bi))var c=this.Ad;else c=this.Ib(b.Bi),null!==c?this.Rq[a]=c.ordinal:c=this.Ad;else c=b.parent,this.Rq[a]=c.ordinal;void 0!==b.fc&&(this.St[a]=b.fc);void 0!==b.caption&&b.caption!==b.A&&this.Jv.add(b.caption,a);c.W(a);this.wV(c);this.cache=[];this.Vk=[];return a}YC(){return new h.JI(this)}lc(b){if(b.X1){var a=this.Osa(b);return this.ya(a)}var c=this.YC();void 0!==b.parent&&(c.parent=b.parent);void 0===b.Zb&&void 0===c.parent&&(c.parent=e.ia(b.Bi)?this.Ad:this.Ib(b.Bi));
c.parent&&(e.v(c.level)||c.level.wb<=c.parent.level.wb)&&(a=c.parent.level.wb+1,a=new h.it(c.parent.level.A+" "+a,this.caption+" "+a,a),this.Hh(a),this.As=!0);void 0!==b.ordinal?(this.El.add(b.A,b.ordinal),c.ordinal=b.ordinal):(a=this.El.add(b.A),c.ordinal=a);void 0!==b.fc&&(this.St[c.ordinal]=b.fc,c.fc=b.fc);this.fg[c.ordinal]=c;void 0!==b.caption&&this.Jv.add(b.caption,c.ordinal);null!=c.parent&&(c.parent.W(c),this.Rq[c.ordinal]=c.parent.ordinal,this.wV(c.parent));e.v(b.Sg)||(c.Sg=b.Sg);this.cache=
[];this.Vk=[];return c}wV(b){this.fg[b.ordinal]=b}nha(b){null!=b&&void 0!==b.ordinal&&(void 0!==b.fc&&(this.St[b.ordinal]=b.fc),void 0!==b.caption&&this.Jv.add(b.caption,b.ordinal),void 0!==b.A&&this.El.add(b.A,b.ordinal))}wS(b){b=this.Jv.find(b);return-1===b?null:this.ya(b)}Ib(b){b=this.iz(""+b);return-1<b?this.ya(b):null}iz(b){var a=this.El.find(b);-1===a&&this.mg&&(a=this.El.find(`[${b}]`));return a}ya(b){if(void 0===this.fg[b]){var a=this.YC();a.ordinal=b;a.fc=this.St[b];a.parent=this.Rq[b]?this.ya(this.Rq[b]):
this.Ad;return a}return this.fg[b]}cM(b){return this.St[b]}vu(b){if(e.model.C.F.br&&(null===b||"null"===b))return b=this.iz("null"),0<=b?this.ya(b):null;"number"!==typeof b&&(b=parseFloat(b));if(isNaN(b))for(var a=1;a<this.St.length;a++)if(isNaN(this.St[a]))return this.ya(a);b=this.St.indexOf(b);return 0<=b?this.ya(b):null}vs(b){for(var a=[],c,d=0;d<b.length;d++)c=this.ya(b[d]),e.v(c)||e.ia(c.qj)||a.push(c.qj);return a}V0(b){return this.El.get(b)}XC(b){var a=this.Jv.get(b);void 0===a&&(a=this.El.get(b));
e.model.Tb.valid(a)||(a=e.model.Tb.validate(a));return a}bha(b){let a;a=this.type!==l.i.Lc.Sa||this.ta.ea(1).type!==l.i.ib.Sa&&this.ta.ea(1).type!==l.i.ib.Jc?this.ta.ea(1).type===l.i.ib.dc?this.rIa(b):this.iz(b):this.qIa(b);-1===a&&!e.v(b)&&0<b.indexOf(".")&&(b=b.substring(b.lastIndexOf(".")+1),a=this.iz(b));return a}qIa(b){if(e.model.C.F.br&&"null"===b)b=null;else if(8>b.length||/\D+/.test(b.slice(1))){var a=this.ta.ea(1).type===l.i.ib.Jc?e.model.C.F.rk:e.model.C.F.Ep;a=this.mapping.Ha(this.A,"format",
a);b=new e.Zg(b,{wy:!1,format:a});b.Aj(u.zh.lg(a));b=b.getTime()}else b=parseInt(b);b=this.vu(b);return null===b?-1:b.ordinal}rIa(b){if(e.model.C.F.br&&"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.vu(a);return null===b?-1:b.ordinal}XZ(){this.Zf=f.RI;this.tK=null}YZ(){this.cache=[]}get Zf(){return this.Gh}set Zf(b){this.Gh=b}get SV(){return this.XQ}set SV(b){this.XQ=b}sort(){return this.Yj(this.Ad)}Yj(b,a=!0,c=""){if(null==b)return[];l.i.za.Ug(c)||(c=this.Gh);if(a){if(null!=this.Vk[b.ordinal]){if(null!=this.Vk[b.ordinal][c])return this.Vk[b.ordinal][c];if(!this.mg){if(c==l.i.za.Kc&&null!=this.Vk[b.ordinal][l.i.za.ic])return a=this.Vk[b.ordinal][l.i.za.ic].slice(),this.Vk[b.ordinal][l.i.za.Kc]=
a.reverse(),this.Vk[b.ordinal][l.i.za.Kc];if(c==l.i.za.ic&&null!=this.Vk[b.ordinal][l.i.za.Kc])return a=this.Vk[b.ordinal][l.i.za.Kc].slice(),this.Vk[b.ordinal][l.i.za.ic]=a.reverse(),this.Vk[b.ordinal][l.i.za.ic]}}}else if(null!=this.cache[b.ordinal]){if(null!=this.cache[b.ordinal][c])return this.cache[b.ordinal][c];if(!this.mg){if(c==l.i.za.Kc&&null!=this.cache[b.ordinal][l.i.za.ic])return a=this.cache[b.ordinal][l.i.za.ic].slice(),this.cache[b.ordinal][l.i.za.Kc]=a.reverse(),this.cache[b.ordinal][l.i.za.Kc];
if(c==l.i.za.ic&&null!=this.cache[b.ordinal][l.i.za.Kc])return a=this.cache[b.ordinal][l.i.za.Kc].slice(),this.cache[b.ordinal][l.i.za.ic]=a.reverse(),this.cache[b.ordinal][l.i.za.ic]}}var d=this.Gh;this.Gh=c;if(this.Gh==l.i.za.fd){var g=a?b.ww:b.children;g=g.slice();0<g.length&&this.ya(g[0]).Zb&&g.splice(0,1)}else g=this.TV(b,a);a?(null==this.Vk[b.ordinal]&&(this.Vk[b.ordinal]=[]),this.Vk[b.ordinal][c]=g):(null==this.cache[b.ordinal]&&(this.cache[b.ordinal]=[]),this.cache[b.ordinal][c]=g);this.Gh=
d;return g}yra(b){for(var a=[[]],c,d=0;d<b.length;d++)0!==b[d]&&(c=this.Rq[b[d]],void 0===c?a[0].push(b[d]):(void 0===a[c]&&(a[c]=[]),a[c].push(b[d])));return a}Vra(b,a){if(e.v(this.tK)||void 0===this.tK[b.ordinal]||b.children.length!=this.tK[b.ordinal].length){var c=this.El.sort();this.tK=this.yra(c)}b=this.tK[b.ordinal];c=[];for(var d=0;d<b.length;d++){var g=this.ya(b[d]);c.push(g.ordinal);a&&!g.Oh&&(g=this.Yj(g),0<g.length&&(c=c.concat(g)))}return c}fua(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.ya(b.children[a]).caption.split(" ")[0];if(-1===e.model.B.j.Hr.indexOf(c)&&-1===e.model.B.j.Vx.indexOf(c))return!1}var d=b.hierarchy.ta.indexOf(b.level.A);if(b.hierarchy.ta.length<d+2)return!1;b.hierarchy.ta.ea(d+1).type=l.i.ib.$g;return!0}catch(g){}return!1}TV(b,a){var c=this.ta.ea(b.level.wb+1),d=c&&c.type===l.i.ib.Dl,g=c&&c.type===l.i.ib.iX,k=c&&c.type===l.i.ib.ut,m=c&&c.type===l.i.ib.$g,n=c&&c.type===l.i.ib.QJ,p=
c&&(c.type===l.i.ib.$m||c.type===l.i.ib.fn),t=c&&c.type===l.i.ib.PO,r=c&&c.type===l.i.ib.mP,w=c&&c.type===l.i.ib.jb,y=c&&c.type===l.i.ib.dc||c&&c.type===l.i.ib.Sa,A=c&&c.type===l.i.ib.Jc,C=this.SV===l.i.za.Aoa;if(!(k||m||n||y||p||t||r||w||A||0!==this.to.length||e.Fg(this.ex))){if(1E3<b.children.length)return this.Vra(b,a);this.fua(b)&&(m=!0)}var B=this.Hia(b.children);e.Fg(this.ex)?B=this.lia(B):k||m||n||p||t||r||A||g||d?B=this.KJa(B,c?c.type:-1):y?0<this.to.length?B.sort((I,L)=>this.qwa(I,L)):B=
this.HJa(B):0<this.to.length?B.sort((I,L)=>this.pwa(I,L)):w?(this.Gh===l.i.za.ic&&e.Ja.sort(B,e.Ja.Ki,I=>I.fc),this.Gh===l.i.za.Kc&&e.Ja.sort(B,e.Ja.ep|e.Ja.Ki,I=>I.fc)):C?B.sort(this.IDa):(this.Gh===l.i.za.ic&&e.Ja.sort(B,e.Ja.Lx,I=>I.caption),this.Gh===l.i.za.Kc&&e.Ja.sort(B,e.Ja.ep|e.Ja.Lx,I=>I.caption));c=[];g=B.length;for(k=0;k<g;k++)c.push(B[k].ordinal),a&&!b.Oh&&(d=this.Yj(B[k],a),0<d.length&&(c=c.concat(d)));return c}Hia(b){for(var a=[],c=0;c<b.length;c++)a.push(this.ya(b[c]));return a}KJa(b,
a){a===l.i.ib.$g?b=this.JJa(b):a===l.i.ib.$m||a===l.i.ib.fn?b=this.LJa(b):a===l.i.ib.ut||a===l.i.ib.iX||a===l.i.ib.Dl?(this.Zf===l.i.za.ic&&e.Ja.sort(b,e.Ja.Lx,c=>c.caption),this.Zf===l.i.za.Kc&&e.Ja.sort(b,e.Ja.ep|e.Ja.Lx,c=>c.caption)):(this.Zf===l.i.za.ic&&e.Ja.sort(b,e.Ja.Ki,c=>c.fc),this.Zf===l.i.za.Kc&&e.Ja.sort(b,e.Ja.ep|e.Ja.Ki,c=>c.fc));return b}JJa(b){for(var a=[],c=[],d=0;d<b.length;++d)this.ara(b[d].caption)?c.push(b[d]):a.push(b[d]);this.Zf===l.i.za.ic&&e.Ja.sort(a,e.Ja.Lx,g=>g.caption);
this.Zf===l.i.za.Kc&&e.Ja.sort(a,e.Ja.ep|e.Ja.Lx,g=>g.caption);c.sort((g,k)=>this.zwa(g,k));return c.concat(a)}LJa(b){for(var a=[],c=[],d=0;d<b.length;++d)this.bra(b[d].caption)?c.push(b[d]):a.push(b[d]);this.Zf===l.i.za.ic&&e.Ja.sort(a,e.Ja.Lx|e.Ja.Ki,g=>g.caption);this.Zf===l.i.za.Kc&&e.Ja.sort(a,e.Ja.ep|e.Ja.Lx|e.Ja.Ki,g=>g.caption);c.sort((g,k)=>this.LKa(g,k));return c.concat(a)}ara(b){return-1!==e.model.B.j.Hr.indexOf(b)||-1!==e.model.B.j.Vx.indexOf(b)}bra(b){return-1!==e.model.B.j.dB.indexOf(b)||
-1!==e.model.B.j.eB.indexOf(b)}zwa(b,a){var c=this.Zf===l.i.za.ic?e.model.B.j.Hr.indexOf(b.caption):e.model.B.j.Hr.indexOf(a.caption);-1===c&&(c=this.Zf==l.i.za.ic?e.model.B.j.Vx.indexOf(b.caption):e.model.B.j.Vx.indexOf(a.caption));var d=this.Zf===l.i.za.ic?e.model.B.j.Hr.indexOf(a.caption):e.model.B.j.Hr.indexOf(b.caption);-1===d&&(d=this.Zf===l.i.za.ic?e.model.B.j.Vx.indexOf(a.caption):e.model.B.j.Vx.indexOf(b.caption));return c>d?1:c<d?-1:0}LKa(b,a){var c=this.Zf===l.i.za.ic?e.model.B.j.dB.indexOf(b.caption):
e.model.B.j.dB.indexOf(a.caption);-1===c&&(c=this.Zf===l.i.za.ic?e.model.B.j.eB.indexOf(b.caption):e.model.B.j.eB.indexOf(a.caption));var d=this.Zf===l.i.za.ic?e.model.B.j.dB.indexOf(a.caption):e.model.B.j.dB.indexOf(b.caption);-1===d&&(d=this.Zf===l.i.za.ic?e.model.B.j.eB.indexOf(a.caption):e.model.B.j.eB.indexOf(b.caption));return c>d?1:c<d?-1:0}HJa(b){this.Gh===l.i.za.ic&&e.Ja.sort(b,e.Ja.Ki,a=>a.fc);this.Gh===l.i.za.Kc&&e.Ja.sort(b,e.Ja.Ki|e.Ja.ep,a=>a.fc);return b}XS(b){return e.model.C.F.jw?
this.to.indexOf(b):this.to.indexOf(b.toLocaleLowerCase())}pwa(b,a){const c=this.Gh===l.i.za.ic?this.XS(b.caption):this.XS(a.caption);b=this.Gh===l.i.za.ic?this.XS(a.caption):this.XS(b.caption);return c>b?1:c<b?-1:0}qwa(b,a){const c=this.Gh===l.i.za.ic?this.to.indexOf(b.fc.toString()):this.to.indexOf(a.fc.toString());b=this.Gh===l.i.za.ic?this.to.indexOf(a.fc.toString()):this.to.indexOf(b.fc.toString());return c>b?1:c<b?-1:0}lia(b){if(e.Fg(this.ex)){var a=this.Gh===l.i.za.Kc?-1:1;b.sort((c,d)=>this.ex(c.caption,
d.caption)*a)}return b}IDa(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}Vu(b){b=this.nn.getItem(b).wb;for(var a=[],c=this.sort(),d=0;d<c.length;d++){var g=this.ya(c[d]);g&&g.level.wb===b&&a.push(c[d])}return a}get filter(){e.v(this.Ov)&&(this.Ov=new e.model.hb.JA(this));return this.Ov}set filter(b){this.Ov=b;this.FF=[]}get gb(){return 0<
this.FF.length?this.FF:this.FF=this.filter.mz||this.filter.Qw||this.filter.tM||this.filter.tT?this.filter.Nxa():this.filter.Pj()}set gb(b){this.FF=b}eu(){this.filter.clear();this.gb=[]}eC(){this.filter.eC();this.gb=[]}Ixa(){for(var b=[],a=this.gb,c=0;c<a.length;c++){var d=this.ya(a[c]);1===d.level.wb&&b.push(d.ordinal)}return b}set wm(b){""!==b&&!e.v(b)||this.Se?this.Or=b:(this.Or=this.A+".[(All)]",this.Hh(new h.it(this.A,this.caption+" (All)")),this.lc(new h.ae({A:this.caption+" (All)",Zb:!0})),
this.tB=!1)}get wm(){return this.Or}vm(b="(Total)"){return b}get Ad(){this.bY||(this.bY=this.Ib(this.Or),this.Xy(this.bY));return this.bY}set Ad(b){}get ms(){return this.iQ}set ms(b){this.iQ=b}pw(){this.paa(this.T3);this.filter.pw()}Saa(){if(0<this.qy.length){for(var b=0;b<this.qy.length;b++){var a=this.ya(parseInt(this.qy[b]));null==a||a.Rg||this.Xy(a)}this.qy=[]}}set T3(b){this.PQ=b}get T3(){return this.PQ}set yga(b){this.QQ=b}get yga(){return this.QQ}set to(b){this.YZ();this.gQ=b}get to(){return this.gQ}set ev(b){this.qy=
b}get ev(){return this.qy}set groups(b){this.sB=b}get groups(){return this.sB}paa(b){if(this.groups)for(var a in this.groups)this.SN(a);for(a in b)this.X$(a,b[a])}SN(b){var a=this.Ib(this.vm("Others"));if((b="string"==typeof b?this.Ib(this.vm(b)):b)&&a){var c,d=b.children;for(c=0;c<d.length;c++){var g=this.ya(d[c]);a.W(g);this.Rq[g.ordinal]=a.ordinal}this.Ad.removeChild(b.ordinal);this.fg[b.ordinal]=null;delete this.sB[b.caption];if(1==this.Vu(this.kz.A).length){d=a.children;for(c=0;c<d.length;c++)g=
this.ya(d[c]),this.Ad.W(g),this.Rq[g.ordinal]=this.Ad.ordinal;this.Ad.removeChild(a.ordinal);this.fg[a.ordinal]=null;this.nn=this.nn.splice(1,1);for(c=1;c<this.nn.length;c++)this.nn.ea(c).wb--}this.cache=[];this.Vk=[]}}X$(b,a){null!=this.groups[b]&&this.SN(b);if(null==this.kz){var c=new h.it(this.caption+".groups","Groups",1);c.Sg=!0;this.Dsa(c);var d=this.Ad.children.slice(0),g=this.lc(new h.ae({A:"others",caption:"Others"}));for(c=0;c<d.length;c++){var k=this.ya(d[c]);this.Ad.removeChild(k.ordinal);
g.W(k.ordinal);k.parent=g;this.Rq[k.ordinal]=g.ordinal}}else this.ta.ea(1);d=this.lc(new h.ae({A:b,Sg:!0}));this.sB[b]=[];for(c=0;c<this.El.length;c++)g=this.ya(c),g.hierarchy=this,!g.Zb&&-1<a.indexOf(g.ordinal)&&(g.Sg?this.SN(g):(g.parent&&g.parent.removeChild(g.ordinal),d.W(g),this.sB[b].push(g.ordinal),this.Rq[g.ordinal]=d.ordinal));for(var m in this.groups)this.groups.hasOwnProperty(m)||(g=this.Ib(this.vm(m)))&&0==g.children.length&&this.SN(g);this.Xy(d);this.cache=[];this.Vk=[]}get kz(){for(var b=
0;b<this.ta.length;b++)if(this.ta.ea(b).Sg)return this.ta.ea(b);return null}set kz(b){}get nU(){for(var b=new e.tb,a=0;a<this.nn.length;a++){var c=this.nn.ea(a).Ue;b=b.concat(c)}return b}set nU(b){}set gg(b){this.TJ=b}get gg(){return this.TJ}set oc(b){}get oc(){return null!=this.TJ?this.uu(this.TJ):null}get ex(){return this.Hra}set ex(b){this.YZ();this.Hra=b}get j1(){return e.Fg(this.ex)||0<this.to.length}get bs(){for(var b=[],a=0;a<this.Ri;a++)b.push(a);return b}Qa(){var b={};b.uniqueName=this.A;
b.dimensionName=this.si.A;b.activeLevelName=this.gg;b.caption=this.caption;b.filterEnabled=this.sS;b.sortName=this.Zf;b.sortAs=this.SV;b.type=this.type;b.groups=this.groups;b.customSorting=this.to;this.filter.wh&&!this.filter.zea&&(b.filter=this.filter.Qa());void 0!==this.Cf&&(b.showTotals=this.Cf);return b}bj(){const b={};b.caption=this.caption;b.dimensionCaption=this.si.caption;b.dimensionUniqueName=this.si.A;b.folder=this.Mc;b.label=this.label;if(2<this.ta.length){b.levels=[];for(let a=1;a<this.ta.length;a++)b.levels.push(this.ta.ea(a).Qa())}b.sort=
this.Gh;b.uniqueName=this.A;return b}static zb(b,a=null){var c=b.uniqueName;c=l.ye.Pg(c,b.caption);null==a&&(a=new l.local.O.bP(c));b.hasOwnProperty("caption")&&(a.caption=b.caption);b.hasOwnProperty("groups")&&f.VAa(b.groups,a);b.hasOwnProperty("sortName")&&(a.Zf=b.sortName);b.hasOwnProperty("sortAs")&&(a.SV=b.sortAs);b.hasOwnProperty("filterEnabled")&&(a.sS=b.filterEnabled);b.hasOwnProperty("type")&&(a.type=b.type);b.hasOwnProperty("origin")&&(a.origin=b.origin);b.hasOwnProperty("folder")&&(a.Mc=
b.folder);b.hasOwnProperty("filter")&&(a.filter=e.model.hb.JA.zb(b.filter,a,!0));b.hasOwnProperty("defaultMemberName")&&(a.ms=b.defaultMemberName);b.hasOwnProperty("allMemberName")&&(a.wm=b.allMemberName);b.hasOwnProperty("activeLevelName")&&(a.gg=b.activeLevelName);b.hasOwnProperty("predefinedProperties")&&(a.yga=b.predefinedProperties);b.hasOwnProperty("customSorting")&&f.qba(b.customSorting,a);b.hasOwnProperty("sortOrder")&&f.qba(b.sortOrder,a);b.hasOwnProperty("showTotals")&&(a.Cf=!0===b.showTotals);
return a}static VAa(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.ye.Ds(g[k]);(m=a.Ib(m))&&c[d].push(m.ordinal)}}a.Wd?a.paa(c):a.T3=c}static qba(b,a){a.to=[];for(var c=0;c<b.length;c++)a.to.push(l.ye.Ds(b[c]))}clone(){var b=new f(this.A);b.data=this.data;b.vK=this.vK;b.lY=this.lY;b.yg=this.yg;b.KQ=this.KQ;b.Gt=this.Gt;b.iQ=this.iQ;b.Or=this.Or;b.tB=this.tB;b.Gh=this.Gh;b.XQ=this.XQ;e.v(this.Ov)||(b.Ov=this.Ov.clone());b.fg=this.fg.slice();b.El=this.El.clone();
b.Jv=this.Jv.clone();b.St=this.St.slice();b.Rq=this.Rq.slice();var a={},c;for(c in this.ly)a[c]=this.ly[c].slice();b.ly=a;b.nn=this.nn.slice();b.GY=this.GY;b.pQ=this.pQ;b.Wd=this.Wd;b.EQ=this.EQ;b.FQ=this.FQ;b.QQ=this.QQ.slice();b.gQ=this.gQ.slice();b.qy=this.qy.slice();b.TJ=this.TJ;b.sB=this.sB;b.PQ=this.PQ;b.dZ=this.dZ;return b}getTimezoneOffset(){return null}}f.RI="asc";h.ht=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.JE{constructor(b,a="",c=0){super(b,a);this.yg=l.i.ib.$c;this.y$=new e.tb;this.Ij=null;this.PY=c}set wb(b){this.PY=b}get wb(){return this.PY}set type(b){this.yg=b}get type(){return this.yg}set Sg(b){this.Ara=b}get Sg(){return this.Ara}get Nu(){return this.Cc.ta.length-1==this.PY}set Nu(b){}set hierarchy(b){this.Cc=b}get hierarchy(){return this.Cc}get Ue(){return this.y$}set Ue(b){}get description(){return this.Ij}set description(b){this.Ij=b}zZ(b){this.y$.Ta(b.A,
b)}}h.it=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.n9{constructor(b){super();this.QY=1;this.p$=0;this.JQ=-1;this.Cc=b}get ordinal(){return this.QY}set ordinal(b){this.QY=b}get fc(){return this.p$}set fc(b){this.p$=b}get hierarchy(){return this.Cc}set hierarchy(b){}get parent(){return this.Rra}set parent(b){this.Rra=b}get root(){if(2>this.level.wb)return this;var b=this;do b=b.parent;while(1<b.level.wb);return b}set root(b){}set caption(b){}get caption(){var b=this.Cc.XC(this.ordinal);if(this.level.type===
l.i.ib.Sa||this.level.type===l.i.ib.Dj||this.level.type===l.i.ib.Jc||this.level.type===l.i.ib.dc){let a=this.Cc.cM(this.ordinal);e.v(a)?b=e.model.B.j.IW:this.level.type===l.i.ib.Sa||this.level.type===l.i.ib.Dj?(b=this.hierarchy.rk||this.hierarchy.mapping.Ha(this.hierarchy.A,"format",e.model.C.F.Ep),b=e.P.Bx(a,b,e.model.C.F.Mj)):this.level.type===l.i.ib.Jc?(b=this.hierarchy.rk||this.hierarchy.mapping.Ha(this.hierarchy.A,"format",e.model.C.F.rk),b=e.P.ON(a,b,e.model.C.F.Mj)):this.level.type===l.i.ib.dc&&
(b=this.hierarchy.rk||this.hierarchy.mapping.Ha(this.hierarchy.A,"format",e.model.C.F.Wo),b=e.P.Cx(a,b))}return b}get A(){return this.ZC()}set A(b){}ZC(){return this.Cc.V0(this.ordinal)}get qj(){var b=this.Cc.mg?2>this.level.wb?`[${this.ZC()}]`:this.ZC():`[${this.ZC()}]`;return e.model.C.F.jw?`${this.hierarchy.A}.${b}`:`${this.hierarchy.A}.${b}`.toLocaleLowerCase()}get level(){return e.v(this.parent)?this.hierarchy.ta.ea(0):this.hierarchy.ta.ea(this.parent.level.wb+1)}set level(b){}get Zb(){return null!=
this.hierarchy.Ad&&this.hierarchy.Ad.ordinal==this.ordinal}set Zb(b){}set Rg(b){this.Ot("_isDrilledDown_",b)}get Rg(){return this.hk("_isDrilledDown_")?this.pB("_isDrilledDown_"):!1}set Sg(b){this.Ot("_isGroup_",b)}get Sg(){return this.hk("_isGroup_")?this.pB("_isGroup_"):!1}get children(){return this.hk("_children_")?this.pB("_children_"):[]}set children(b){}set ww(b){}get ww(){if(this.hk("_descendants_"))return this.pB("_descendants_");var b=[];b.push(this.ordinal);if(0==this.zU)return b;for(var a=
this.children.length,c,d=0;d<a;d++)c=this.hierarchy.ya(this.children[d]),c.Oh?b.push(c.ordinal):0<c.zU?b=b.concat(c.ww):b.push(c.ordinal);0<b.length&&this.Ot("_descendants_",b);return b}set zU(b){}get zU(){if(-1<this.JQ)return this.JQ;if(!this.hk("_children_"))return this.JQ=0;for(var b=this.children.length,a=b,c=0;c<b;c++){var d=this.hierarchy.ya(this.children[c]);a+=d.zU}return a}VZ(){this.hk("_descendants_")&&this.dra();this.parent&&this.parent.VZ()}W(b){var a=this.children;b.constructor===Number?
a.push(b):a.push(b.ordinal);this.Ot("_children_",a);b.constructor!==Number&&(b.parent=this);this.JQ=-1;this.VZ()}removeChild(b){var a=this.children.indexOf(b);-1<a&&this.children.splice(a,1);this.Ot("_children_",this.children);this.hierarchy.ya(b).parent=null;this.VZ()}toString(){return this.A+" : "+this.QY}set Ue(b){this.Ot("_properties_",b)}get Ue(){this.hk("_properties_")||(this.Ue=new e.tb);return this.pB("_properties_")}setProperty(b,a){this.Ue.Ta(b,a)}tAa(b){return this.Ue.getItem(b)}get Oh(){return!this.hk("_children_")||
0==this.children.length}set Oh(b){}get vf(){return this.hk("_hasMissingChildren_")?this.pB("_hasMissingChildren_"):!1}set vf(b){this.Ot("_hasMissingChildren_",b)}set iaa(b){}get iaa(){return this.hierarchy.As?this.A:this.A+".[(Total"+(0==this.ordinal?"":this.ordinal)+")]"}Ot(b,a){super.Ot(b,a);this.X1||e.v(this.hierarchy)||this.hierarchy.wV(this)}get X1(){if(this.hk("_children_")||this.hk("_descendants_")||this.hk("_caption_")||this.hk("_isDrilledDown_")||this.hk("_hasMissingChildren_")||this.hk("_properties_")||
this.hk("_isGroup_"))return!1}Qa(){var b={};b.uniqueName=this.A;b.caption=this.caption;b.dimensionName=this.hierarchy.si.A;b.hierarchyName=this.hierarchy.A;b.hierarchyCaption=this.hierarchy.caption;this.parent&&(b.parentMember=this.parent.A);0<this.Ue.length&&(b.properties=this.Ue.Qa());return b}NG(b){return e.v(b)?!1:e.model.C.F.jw?this.A==b:this.A.toLocaleLowerCase()==b.toLocaleLowerCase()}}h.JI=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.JE{constructor(b,a=""){super(b,a);this.ec=this.Gt=this.wQ="";this.yg=l.i.Pa.jb;this.fk=this.vF=this.Qv="";this.Kb=[];this.sQ="";this.xQ=this.yQ=!1;this.LF="";this.d$=-1;this.DQ=this.CQ=!1;this.WP=!0;this.Ij=this.Uv=null;this.hn=[]}get kl(){return this.vc}set kl(b){}get Dg(){return this.wQ}set Dg(b){this.wQ=b}get Mc(){return this.Gt}set Mc(b){this.Gt=b}get mapping(){return l.Ra.V().ga.mapping}get format(){return this.Yh(this.A,this.aa).name}set format(b){this.ec=
b}get cl(){return this.yQ}set cl(b){this.yQ=b}get hidden(){return this.xQ}set hidden(b){this.xQ=b}get index(){return this.d$}set index(b){this.d$=b}get type(){return this.yg}get Km(){return this.Uv}set Km(b){this.Uv=b}set type(b){this.yg=b}get description(){return this.Ij}set description(b){this.Ij=b}get Zj(){if(this.Na||this.Tg)return[];const b=this.mapping.up;if(e.v(b))return this.yg!=l.i.Pa.jb&&this.yg!=l.i.Pa.dc?this.yg==l.i.Pa.Sa||this.yg==l.i.Pa.Jc?l.i.da.Aja:l.i.da.Dja:l.i.da.CI;const a=l.i.Pa.wE(this.yg);
return void 0!==b[a]?b[a]:void 0!==b.any?b.any:Array.isArray(b)?b:l.i.da.CI}set Zj(b){}set Op(b){this.Qv=b}get Op(){return this.Qv?this.Qv:0==e.model.C.F.xx?this.vc:l.i.da.NONE===this.fk?this.vc:f.O0(this.aa,this.vc)}static O0(b,a){switch(b){case l.i.da.Iq:return e.P.bind(e.model.B.j.Jpa,a);case l.i.da.xc:return e.P.bind(e.model.B.j.Cka,a);case l.i.da.st:return e.P.bind(e.model.B.j.Zoa,a);case l.i.da.Ej:return e.P.bind(e.model.B.j.bla,a);case l.i.da.xq:return e.P.bind(e.model.B.j.Eja,a);case l.i.da.wv:return e.P.bind(e.model.B.j.Mna,
a);case l.i.da.Cv:return e.P.bind(e.model.B.j.Fpa,a);case l.i.da.Dv:return e.P.bind(e.model.B.j.Hpa,a);case l.i.da.MAX:return e.P.bind(e.model.B.j.rna,a);case l.i.da.MIN:return e.P.bind(e.model.B.j.noa,a);case l.i.da.Ir:return e.P.bind(e.model.B.j.Roa,a);case l.i.da.lp:return e.P.bind(e.model.B.j.Moa,a);case l.i.da.Hq:return e.P.bind(e.model.B.j.Xoa,a);case l.i.da.Fq:return e.P.bind(e.model.B.j.Toa,a);case l.i.da.Gq:return e.P.bind(e.model.B.j.Voa,a);case l.i.da.Ji:return e.P.bind(e.model.B.j.Qma,
a);case l.i.da.en:return e.P.bind(e.model.B.j.lpa,a);case l.i.da.Yn:return e.P.bind(e.model.B.j.npa,a);case l.i.da.Rn:return e.P.bind(e.model.B.j.Yka,a);case l.i.da.an:return e.P.bind(e.model.B.j.$ka,a);case l.i.da.Wn:return e.P.bind(e.model.B.j.Ooa,a);case l.i.da.cn:return e.P.bind(e.model.B.j.Qoa,a)}return a}get xm(){if(""==this.vF)if(l.i.da.zT(this.aa))this.vF=this.aa;else if(-1!=this.Wc.indexOf(l.i.da.Iq))this.vF=l.i.da.Iq;else for(let b=0;b<this.Wc.length;b++)if(l.i.da.zT(this.Wc[b])){this.vF=
this.Wc[b];break}return this.vF}get aa(){return""===this.fk?this.Wc[0]:this.fk}set aa(b){b&&b.toLowerCase()!==this.fk?(b=b.toLowerCase(),l.i.da.Ty(b)&&(b=l.i.da.cz(b)),l.i.da.iA(b)||this.Na&&b==l.i.da.NONE?(this.vF="",this.fk=b,this.Na||-1!=this.Wc.indexOf(b)||(this.fk=this.Wc[0])):this.qV()):""==b&&this.qV()}qV(){this.Qv=void 0;this.fk=this.Wc[0]}set Wc(b){if(e.v(b))this.hn=this.Zj;else{for(var a=[],c=0;c<b.length;c++){var d=b[c].trim().toLowerCase();l.i.da.Ty(d)&&(d=l.i.da.cz(d));-1!==this.Zj.indexOf(d)&&
a.push(d)}this.hn=0<a.length?a:this.Zj}}get Wc(){return 0<this.hn.length?this.hn:this.Zj}get Xd(){return this.Kb}set Xd(b){this.Kb=b}get Na(){return!e.ia(this.ve)}set Na(b){}get ve(){return this.sQ}set ve(b){this.sQ=b}get gr(){return this.LF}set gr(b){this.LF=b}get Tg(){return!e.v(this.LF)&&""!=this.LF}get uz(){return this.CQ}set uz(b){this.CQ=b}get vz(){return this.DQ}set vz(b){this.DQ=b}get ho(){return this.WP}set ho(b){this.WP=b}Qa(){var b={};b.uniqueName=this.A;b.name=this.kl;this.Na&&(b.formula=
this.ve.trim());b.format=this.format;b.individual=this.cl;b.supportedAggregations=this.Zj;b.availableAggregations=this.Wc;b.aggregation=this.aa;b.caption=this.caption;b.label=this.label;b.originalCaption=this.kl;b.grandTotalCaption=this.Op;b.groupName=this.Dg;b.folder=this.Mc;b.type=this.type;b.kpi=this.gr;b.calculated=this.Na;b.calculateNaN=this.ho;b.hidden=this.hidden;return b}m1(){var b=new f("","");return this.cl!==b.cl||this.ve!==b.ve||this.format!==b.format||!1===this.Km||""!==this.aa&&(this.Op!==
f.O0(this.aa,this.vc)&&e.model.C.F.xx||!e.model.C.F.xx&&this.Op!==this.caption)?!1:!0}Yh(b,a,c=!1){let d=e.model.ec.gj.Yh(b,a);e.model.ec.gj.fya(b,a)||(d=e.model.ec.gj.Yh(b,""));c&&e.v(d.Xd.textAlign)&&this.type!=l.i.Pa.jb&&this.type!=l.i.Pa.dc&&this.type!=l.i.Pa.Jc&&(d=d.clone(),d.textAlign=e.model.ec.X.Gf.textAlign.LEFT);return d}clone(){var b=new f(this.A);this.iL(b);return b}iL(b){b.data=this.data;b.vc=this.vc;b.wQ=this.wQ;b.Gt=this.Gt;b.ec=this.ec;b.yg=this.yg;void 0!=this.Qv&&(b.Qv=this.Qv);
b.fk=this.fk;b.hn=this.hn.slice();b.Kb=this.Kb.slice();b.sQ=this.sQ;b.yQ=this.yQ;b.xQ=this.xQ;b.LF=this.LF;b.CQ=this.CQ;b.DQ=this.DQ;b.WP=this.WP;b.Ij=this.Ij}Tw(){return 0<this.Wc.length||this.Na||this.Tg}bj(){const b={};b.aggregation=this.aa;b.availableAggregations=this.Wc;b.availableAggregationsCaptions=l.i.da.EZ(this.Wc);b.caption=this.caption;if(b.calculated=this.Na)b.calculateNaN=this.ho,b.formula=this.ve.trim(),b.individual=this.cl;b.folder=this.Mc;b.format=this.format;b.grandTotalCaption=
this.Op;b.label=this.label;b.name=this.kl;b.uniqueName=this.A;b.groupName=this.Dg;return b}}h.Br=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.JE{constructor(b,a=""){super(b,a);this.Ij=null}get value(){return this.xK}set value(b){this.xK=b}get status(){return this.Wra}set status(b){this.Wra=b}get Ow(){return this.xra}set Ow(b){this.xra=b}get Dx(){return this.Yra}set Dx(b){this.Yra=b}get description(){return this.Ij}set description(b){this.Ij=b}}h.Pja=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.JE{constructor(b,a=""){super(b,a);this.Ij=null;this.Oa=new e.tb}set Oa(b){this.vb=b}get Oa(){return this.vb}get type(){return this.yg}set type(b){this.yg=b}set fD(b){this.a$=b}get fD(){return this.a$?this.a$:[]}get Yc(){return this.O}set Yc(b){this.O=b}get description(){return this.Ij}set description(b){this.Ij=b}oi(b){b.si=this;this.vb.Ta(b.A,b)}fh(b){return this.vb.getItem(b)}static zb(b,a=null){var c=b.uniqueName;c=l.ye.Pg(c,b.caption);null==
a&&(a=new l.local.O.V7(c));e.ia(b.caption)?a.caption=b.uniqueName:a.caption=b.caption;return a}}h.pA=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.j$=this.xB=!1;this.K9=new e.tb;this.mb=new e.tb;this.JY=new e.tb;this.VG=new h.wW}get Wd(){return this.xB}set Wd(b){this.xB=b}get Qu(){return this.j$}set Qu(b){this.j$=b}get nb(){return 0<this.xw.length-(this.xw.Hb("[Measures]")?1:0)||0<this.Ba.length||0<this.e2.length?!1:!0}get xw(){return this.K9}set xw(b){}get Ba(){return this.mb}set Ba(b){}set Uq(b){}get Uq(){for(var b=new e.tb,a=0;a<this.mb.length;a++){var c=this.mb.ea(a);c.Na&&
b.Ta(c.A,c)}return b}set qr(b){}get qr(){for(var b=[],a=0;a<this.mb.length;a++){var c=this.mb.ea(a);c.Na||b.push(c)}return b}set NH(b){}get NH(){var b=this.Kp("[Measures]");null==b&&(b=this.xZ());return b.fh("[Measures]")}xZ(){var b=new h.ht("[Measures]","Measures"),a=new h.pA("[Measures]","Measures");a.type=l.i.BA.fP;a.oi(b);this.Wt(a);return a}Wt(b){null==this.Kp(b.A)&&(b.Yc=this,this.xw.Ta(b.A,b))}Kp(b){return this.xw.getItem(b)}wc(b=!1){for(var a=new e.tb,c=0;c<this.xw.length;c++){var d=this.xw.ea(c);
if(b||d.type!=l.i.BA.fP)a=a.concat(d.Oa)}return a}fh(b){for(let a=0;a<this.xw.length;a++){const c=this.xw.ea(a);if(c.Oa.Hb(b))return c.Oa.getItem(b)}}lk(b){this.Ba.Ta(b.A,b)}gd(b){return this.Ba.getItem(b)}ZD(b){this.Ba.removeItem(b)}clear(){this.K9=new e.tb;this.mb=new e.tb;this.JY=new e.tb;this.Wd=!1}Ck(){return null}cf(){return null}EK(){}get e2(){return this.JY}set e2(b){}vZ(b,a){this.JY.Ta(b.A,b);if(0==e.ia(b.value)){var c=new h.Br(b.value,this.hz(b.value,b.caption,e.model.B.j.O7,a));c.Dg=e.model.B.j.Sx;
c.Mc=b.caption;c.type=l.i.Pa.jb;c.gr=b.A;this.lk(c)}0==e.ia(b.Ow)&&(c=new h.Br(b.Ow,this.hz(b.Ow,b.caption,e.model.B.j.K7,a)),c.Dg=e.model.B.j.Sx,c.Mc=b.caption,c.type=l.i.Pa.jb,c.gr=b.A,this.lk(c));0==e.ia(b.status)&&(c=new h.Br(b.status,this.hz(b.status,b.caption,e.model.B.j.M7,a)),c.Dg=e.model.B.j.Sx,c.Mc=b.caption,c.type=l.i.Pa.jb,c.gr=b.A,c.uz=!0,this.lk(c));0==e.ia(b.Dx)&&(a=new h.Br(b.Dx,this.hz(b.Dx,b.caption,e.model.B.j.N7,a)),a.Dg=e.model.B.j.Sx,a.Mc=b.caption,a.type=l.i.Pa.jb,a.gr=b.A,
a.vz=!0,this.lk(a))}hz(b,a,c,d){d=d.Ha(b,"caption");return e.v(d)?0==b.indexOf("[Measures]")?b.substring(12,b.length-1):a+" "+c:d}bx(b,a=null,c=!1){c=e.v(a)||c;var d=b.uniqueName;e.ia(b.formula)&&(d=l.ye.Pg(d,b.caption));e.v(a)&&(a=new l.local.O.W7(d));b.hasOwnProperty("type")&&(a.type="string"===typeof b.type?l.i.Pa.pya(parseInt(b.type)):b.type);if(c||a.Na)b.hasOwnProperty("formula")&&(a.ve=b.formula),b.hasOwnProperty("individual")&&(a.cl=b.individual),b.hasOwnProperty("calculateNaN")&&(a.ho=b.calculateNaN);
b.hasOwnProperty("supportedAggregations")&&(a.Zj=b.supportedAggregations);b.hasOwnProperty("availableAggregations")&&(a.Wc=b.availableAggregations);if(b.hasOwnProperty("aggregation")){if(b.aggregation!==l.i.da.NONE||l.Ra.V().ga.Gc||a.Na)a.aa=b.aggregation}else a.aa=a.Na?l.i.da.NONE:"";b.hasOwnProperty("format")&&(a.format=b.format,e.model.ec.gj.eI(b.format,a.A,a.aa));b.hasOwnProperty("caption")&&(a.caption=b.caption);b.hasOwnProperty("name")&&(a.caption=b.name);b.hasOwnProperty("grandTotalCaption")&&
(a.Op=b.grandTotalCaption);b.hasOwnProperty("groupName")&&(a.Dg=b.groupName);b.hasOwnProperty("folder")&&(a.Mc=b.folder);b.hasOwnProperty("active")?a.Km=b.active:b.hasOwnProperty("uniqueName")&&b.hasOwnProperty("caption")&&b.uniqueName!=b.caption&&!b.hasOwnProperty("formula")&&(a.Km=!1);a.Na&&(!b.hasOwnProperty("caption")&&c&&(a.caption=a.A),b=new u.rJ,a.Xd=b.parse(a.ve));return a}lJa(b){this.mapping=b}}h.yW=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){}static LAa(b){switch(b){case l.i.qa.Tc:case l.i.qa.le:return new l.external.Eb.O.Ioa;case l.i.qa.ag:return new l.external.Qe.O.yla;case l.i.qa.API:return new l.external.pc.O.EI}return new l.local.O.cP}}h.Tpa=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.tb;this.ur=l.i.za.fd;this.Pt=this.SP=null;this.eK=[];this.oQ=[];this.mQ=[];this.lB=[];this.fZ=l.i.za.fd;this.GB=b}set Um(b){this.Pt=b;this.SP=null}get Um(){if(null!=this.SP)return this.SP;var b=null;if(null!=this.Pt){var a=0;b=[];for(var c=0;c<this.vb.length;c++){var d=this.Oa.ea(c);if(!d.Se){if(!this.Pt[a])break;if("number"==typeof this.Pt[a]){b=this.Pt;break}else{var g=this.Pt[a].toString().trim();if(!/\D/.test(g)){b=this.Pt;
break}}d=d.Ib(l.ye.Ds(this.Pt[a].toString().trim()));if(null!=d)b.push(d.ordinal);else if(this.Pt[a]){b=null;break}a++}}}return this.SP=b}set WV(b){this.Um=b}get WV(){var b=null,a=this.Um;if(null!=a){var c=0;b=[];for(var d=0;d<this.vb.length;d++){var g=this.Oa.ea(d);if(!g.Se){if(!a[c])break;g=g.ya(""===a[c]?0:parseInt(a[c]));if(null!=g)b.push(g.qj);else if(a[c]){b=null;break}c++}}}return b}get Ed(){return this.eK}set Ed(b){if(null==b)this.eK=[];else if(this.Ya)this.eK=b;else{this.eK=[];for(var a=
0;a<b.length;a++){var c=b[a];c[0]=-1;this.eK.push(c)}}}get kca(){for(var b=[],a,c,d,g,k,m=0;m<this.Ed.length;m++){a=this.Ed[m].slice(0);c=[];d=a.shift();g=null;-1<d&&(g=(g=this.vi(d))?g.Qa():null);for(var n=d=0;n<a.length;n++)k=this.Oa.ea(d),k.Se&&(d++,k=this.Oa.ea(d)),k&&k.ya(a[n])&&c.push(k.ya(a[n]).A),d++;c.unshift(g);b.push(c)}return b}oga(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.ah(g):e.model.hb.ah.zb(g);m=0;if(0<
this.Oa.length)for(var t=0;t<c.length;t++){n=this.Oa.ea(m);if(e.v(n))return[];if(!n.Wd&&!n.Se)return this.oQ=b.slice(0),[];n.Se&&(k=(k=this.vi(g))?k.index:-1,m++,n=this.Oa.ea(m));if(n)if(n=n.bha(c[t]),0>n){d=null;break}else d.push(n);m++}null!==d&&(d.unshift(k),a.push(d))}return a}L3(){0<this.oQ.length&&(this.Ed=this.oga(this.oQ),this.oQ=[]);0<this.mQ.length&&(this.tf=this.nga(this.mQ),this.mQ=[])}get tf(){return this.lB}set tf(b){if(e.v(b)||0===b.length)this.lB=[];else{if(this.Ya)this.lB=b;else{this.lB=
[];for(var a=0;a<b.length;a++){var c=b[a];"string"===typeof c[0]?c[1]=-1:c[0]=-1;this.lB.push(c)}}this.T4(this.lB);this.Oha(this.lB)}}T4(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})}Oha(b){var a=this.vb.slice();a.removeItem("[Measures]");for(var c,d=0;d<b.length;d++){var g=b[d].slice(0);"string"===typeof g[0]&&(c=g.shift());var k=a.ea(g.length-3);if(null==k)break;var m=g[1];if("string"===typeof g[1]){var n=k.Ib(m);!n&&!isNaN(parseInt(g[1]))&&
8>g[1].length&&(m=parseInt(g[1]))}"number"===typeof m&&(n=k.ya(m),null==n||n.Zb||(m=n.A));-1==k.ev.indexOf(m)&&k.ev.push([c,m])}}get Yba(){for(var b=[],a,c,d,g,k,m,n,p=0;p<this.tf.length;p++){a=this.tf[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.vi(g))?k.Qa():null);for(var t=g=0;t<a.length;t++)n=this.Oa.ea(g),n.Se&&(g++,n=this.Oa.ea(g)),(n=n.ya(a[t]))&&c.push(n.A),g++;c.unshift(m);c.unshift(k);c.unshift(d);b.push(c)}return b}nga(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.ah(m):e.model.hb.ah.zb(m);m=r.shift();n=0;if(0<this.Oa.length)for(var w=0;w<r.length;w++){p=this.Oa.ea(n);if(e.v(p))return[];p.Se&&(g=(g=this.vi(k))?g.index:-1,n++,p=this.Oa.ea(n));if(!p.Wd&&!p.Se)return this.mQ=b.slice(0),this.Oha(b),[];if(p){if(p.type!==l.i.Lc.Sa||p.ta.ea(1).type!==l.i.ib.Sa&&p.ta.ea(1).type!==l.i.ib.Jc)p=p.Ib(r[w]);else{if(e.model.C.F.br&&"null"===
r[w])var y=null;else if(8>r[w].length||/\D+/.test(r[w].slice(1))){y=p.ta.ea(1).type===l.i.ib.Jc?e.model.C.F.rk:e.model.C.F.Ep;y=p.mapping.Ha(p.A,"format",y);const C=new e.Zg(r[w],{wy:!1,format:y});C.Aj(u.zh.lg(y));y=C.getTime()}else y=parseInt(r[w]);p=p.vu(y)}p?c.push(p.ordinal):c.push(-1)}n++}if((p=this.Oa.ea(r.length-1))&&p.Wd&&null!==p.oc&&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 $f(b){b=b.toLowerCase();this.fZ=b==l.i.za.ic||b==l.i.za.Kc?b:l.i.za.fd}get $f(){return this.fZ}get A(){return this.GB}set A(b){this.GB=b}get caption(){return this.vc}set caption(b){this.vc=b}get Oa(){return this.vb}set Oa(b){this.Ed=[];this.tf=[];this.Pt=null;this.fZ=l.i.za.fd;this.Yf=null;this.vb=b}get ie(){return this.vb.indexOf("[Measures]")}set ie(b){}get NH(){return this.vb.getItem("[Measures]")}set NH(b){}get Ya(){return-1<
this.ie}set Ya(b){}get depth(){for(var b=0,a=0;a<this.vb.length;a++){var c=this.vb.ea(a);b+=c.Vba}return b}set depth(b){}toString(){return"[Axis:"+this.GB+" ]"}static aDa(b,a,c){"[Measures]"!==b.A&&(c=c.Ba.getItem(b.A),void 0===c||c.vc===b.caption&&!a.hasOwnProperty("caption")||(c.vc!==b.caption?a.caption=c.vc:a.hasOwnProperty("caption")&&a.caption!==c.vc&&(c.vc=a.caption)))}static zb(b,a,c,d,g,k,m=null,n=!1){b=new f(b);m&&(b.vi=t=>m(t));b.Oa=new e.tb;if(a)for(let t=0;t<a.length;t++)if(null!=a[t].uniqueName){a[t].uniqueName=
l.ye.Pg(a[t].uniqueName,a[t].caption);let r=k.fh(a[t].uniqueName);if(null!=r){n&&(r=r.clone(),r.YZ(),r.filter.clear());this.aDa(r,a[t],k);h.ht.zb(a[t],r);if(r.Se&&b.A===l.i.ja.rt)continue;const w=e.v(a[t].levelName)?e.v(a[t].activeLevelName)?null:a[t].activeLevelName:a[t].levelName;r.gg=w;b.Oa.Ta(r.A,r)}}if(c){if(null!=c.measure){a="string"===typeof c.measure?new e.model.hb.ah(l.ye.Pg(c.measure)):e.model.hb.ah.zb(c.measure);var p=b.vi(a)}null!=p&&null!=c.tuple?b.nE(p,c.tuple,c.type):b.jOa=c}if(d&&
0<d.length){c=[];for(a=0;a<d.length;a++){k=d[a];n=[];0<k.length&&n.push(f.Zda(k[0]));for(p=1;p<k.length;p++)n.push(f.yfa(k[p]));c.push(n)}d=c}b.Ed=d?b.oga(d):[];if(g&&0<g.length){d=[];for(c=0;c<g.length;c++){a=g[c];k=[];0<a.length&&k.push(f.Zda(a[0]));for(n=1;n<a.length;n++)k.push(f.yfa(a[n]));d.push(k)}g=d}b.tf=g?b.nga(g):[];return b}static Zda(b){if("string"===typeof b){const a=parseInt(b);if(isNaN(a)||a.toString()!==b)return l.ye.Pg(b)}return b}static yfa(b){if("string"===typeof b){const a=parseInt(b);
if(isNaN(a)||a.toString()!==b)return l.ye.Ds(b)}return b}Qa(){for(var b={},a=[],c=0;c<this.Oa.length;c++){var d=this.Oa.ea(c).Qa();a.push(d)}b.hierarchies=a;this.$f==l.i.za.fd||e.v(this.Um)||e.v(this.Yf)||(b.sort={type:this.$f,tuple:this.WV,measure:{uniqueName:this.Yf.A,aggregation:this.Yf.aa}});return b}nE(b,a,c){this.Yf=b;this.Um=a;this.$f=c;0==a.length&&(this.ur=this.$f,this.at=this.Yf)}gC(){this.Um=this.Yf=null;this.ur=this.$f=l.i.za.fd;this.at=null}clone(){var b=new f(this.GB);b.caption=this.caption;
b.Oa=this.Oa.slice(0);b.at=this.at;b.ur=this.ur;b.Yf=this.Yf;b.Um=this.Um;b.$f=this.$f;b.Ed=this.Wq(this.Ed);b.tf=this.Wq(this.tf);return b}Wq(b){for(var a=[],c=0;c<b.length;c++)a.push(b[c].slice());return a}}h.zr=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b){this.Pr=new e.tb;this.mb=[];this.BF=this.P9=!1;this.oB=[];this.qQ=[];this.lQ=[];this.Rj={};this.z2=!0;this.Yc=b;this.Ut(new l.O.zr(l.i.ja.La));this.Ut(new l.O.zr(l.i.ja.Xa));this.Ut(new l.O.zr(l.i.ja.rt))}get axes(){return this.Pr}set axes(b){}Ut(b){this.Pr.Ta(b.A,b);b.Ya&&(this.gB=b)}ce(b){return this.Pr.getItem(b)}Txa(b){if(-1!=this.cc.Oa.indexOf(b))return this.cc;if(-1!=this.Rb.Oa.indexOf(b))return this.Rb;if(-1!=this.VH.Oa.indexOf(b))return this.VH}set cs(b){}get cs(){this.dja();
return this.gB}dja(){if(null==this.gB){for(var b=0;b<this.Pr.length;b++){var a=this.Pr.ea(b);if(a.Ya){this.gB=a;break}}null==this.gB&&(this.gB=this.ce(l.i.ja.Xa))}this.gB.Ya||(b=this.Yc.NH)&&this.gB.Oa.Ta(b.A,b)}get qr(){const b=[],a={};for(var c=0;c<this.mb.length;c++){var d=this.mb[c];d.Na||void 0!==a[d.A]||(b.push(d),a[d.A]=1)}return b}set qr(b){}get Uq(){for(var b=new e.tb,a=0;a<this.mb.length;a++){var c=this.mb[a];c.Na&&b.Ta(c.A,c)}return b}set Uq(b){}get Kf(){return this.mb}set Kf(b){this.Zz(b)}hd(){for(var b=
[],a=0;a<this.mb.length;a++){var c=this.mb[a];c.hidden||b.push(c)}return b}Zz(b){this.mb=b}vi(b){for(var a=0;a<this.mb.length;a++)if(b.A==this.mb[a].A&&(""==b.aa||b.aa===this.mb[a].aa))return this.mb[a];return null}WC(b){return b instanceof e.model.hb.ah?this.vi(b):isNaN(b)?null:this.mb[b]}sda(b,a){for(var c=0;c<this.mb.length;c++)if(b==this.mb[c].A&&(void 0==a||a==this.mb[c].aa))return c;return-1}wc(b=!0,a=!0,c=!1,d=!1){let g=new e.tb;for(let k=0;k<this.Pr.length;k++){const m=this.Pr.ea(k);g=g.concat(m.Oa)}b||
g.removeItem(this.Yc.NH.A);if(!a)for(b=0;b<this.ob.length;b++)g.removeItem(this.ob.Jh(b));if(c)for(c=0;c<this.mb.length;c++)b=this.mb[c],b.Na||b.hidden&&!d||(b=this.Yc.Ck(b.A),e.v(b)||g.Ta(b.A,b));return g}clear(){for(var b=0;b<this.Pr.length;b++)this.Pr.ea(b).Oa=new e.tb;this.mb=[]}get rows(){return this.ce(l.i.ja.La).Oa}set rows(b){var a=this.ce(l.i.ja.La);null==a&&(a=new h.zr(l.i.ja.La));a.Oa=b;null==b&&(a.Oa=new e.tb);a.vi=c=>this.WC(c);this.Ut(a)}get Ka(){return this.ce(l.i.ja.Xa).Oa}set Ka(b){var a=
this.ce(l.i.ja.Xa);null==a&&(a=new h.zr(l.i.ja.Xa));a.Oa=b;null==b&&(a.Oa=new e.tb);a.vi=c=>this.WC(c);this.Ut(a)}get ob(){return this.ce(l.i.ja.rt).Oa}set ob(b){var a=this.ce(l.i.ja.rt);null==a&&(a=new h.zr(l.i.ja.rt));a.Oa=b;null==b&&(a.Oa=new e.tb);this.Ut(a)}set yb(b){}get yb(){return this.cs.A==l.i.ja.La?this.rows.splice(this.cs.ie,1):this.rows}set Db(b){}get Db(){return this.cs.A==l.i.ja.Xa?this.Ka.splice(this.cs.ie,1):this.Ka}clone(){var b=new f(this.Yc);b.rows=this.rows.slice();b.Ka=this.Ka.slice();
b.ob=this.ob.slice();b.Zz(this.hd());b.Ng=this.Ng.slice(0);b.ih=this.ih.slice(0);b.bd=this.bd.slice(0);b.Ut(this.cc.clone());b.cc.vi=a=>this.WC(a);b.Ut(this.Rb.clone());b.Rb.vi=a=>this.WC(a);b.Qc=this.Qc;b.kd=this.kd;return b}static taa(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.ea(d).A!=a.rows.ea(d).A){c=!0;break}return c}static saa(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.ea(d).A!=
a.Ka.ea(d).A){c=!0;break}return c}static yta(b,a){if(null==a)return!0;b=b.hd();a=a.hd();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 sta(b,a){void 0!==a.caption&&null!=b&&(b.caption=a.caption)}static eCa(b){return void 0===b.formula?!0:e.model.C.F.bu&&l.Ra.V().ga.Da===l.i.qa.Tc||!l.Ra.V().ga.Gc||l.Ra.V().ga.Da===l.i.qa.API}static zb(b,a,c=!1,d=!1){const g=new f(a);var k=[],m=a.wc(),n=b.Ba.map(r=>r.uniqueName);for(var p=0;p<b.Ba.length;p++)if(void 0!==
b.Ba[p].uniqueName&&this.eCa(b.Ba[p])){e.ia(b.Ba[p].formula)&&(a.gd(b.Ba[p].uniqueName)||(b.Ba[p].uniqueName=l.ye.Pg(b.Ba[p].uniqueName)));var t=a.Ba.getItem(b.Ba[p].uniqueName);if(null!=t||!e.ia(b.Ba[p].formula)){this.sta(m.getItem(b.Ba[p].uniqueName),b.Ba[p]);t=a.bx(b.Ba[p],t);t.hidden=!1;if(t.Na&&!a.Ba.Hb(t.A)){if(e.model.C.F.YN&&!g.IKa(t,n))continue;a.lk(t)}if(null==b.Ba[p].active||b.Ba[p].active)t=t.clone(),t.index=k.length,k.push(t)}e.model.C.F.rc&&!e.v(b.Ba[p].filter)&&(t=m.getItem(b.Ba[p].uniqueName),
e.v(t)||(t.filter=e.model.hb.JA.zb(b.Ba[p].filter,t)))}g.z5(k);k=l.O.zr.zb(l.i.ja.La,b.rows,b.Wj,b.Ew,b.Bw,a,r=>g.WC(r),c);m=l.O.zr.zb(l.i.ja.Xa,b.Ka,b.Lj,b.Dw,b.Aw,a,r=>g.WC(r),c);c=l.O.zr.zb(l.i.ja.rt,b.ob,null,[],[],a,null,c);g.rows=k.Oa;g.Ka=m.Oa;g.ob=c.Oa;g.Qc=b.Qc;g.kd=b.kd;if(l.Ra.V().ga&&l.Ra.V().ga.AH)if(g.Ng=b.Ng,e.v(b.ih))if(m.$f!=l.i.za.fd)g.ih=[{sort:m.$f,measure:m.Yf}];else for(n=b.rows.concat(b.Ka.concat(b.ob)),p=0;p<n.length;p++){if(c=n[p],!e.v(c.sortName)&&l.i.za.Ug(c.sortName)&&
c.sortName!=l.i.za.fd){g.ih=[{sort:c.sortName,measure:a.gd(c.uniqueName)}];break}}else g.ih=f.Bca(b.ih,a);g.bd=b.bd;g.Rj=b.Rj;g.Ut(k);g.Ut(m);g.dja();g.fja();d||g.sIa(g);return g}static Bca(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.gd(g&&g.uniqueName?g.uniqueName:g.measure.uniqueName);g=String(g.sort).toLowerCase();!e.v(k)&&l.i.za.Ug(g)&&c.push({measure:k,sort:g})}return c}fja(){const b=e.model.C.F.rc,a=this.mb.filter(k=>-1<l.i.da.nA.indexOf(k.aa));for(var c=
0;c<this.rows.length;c++){var d=this.rows.ea(c),g=d.filter.measure;b&&d.filter.xi&&!e.v(this.Yc.gd(g.A))||this.Vea(d,g,a)||d.filter.eC()}for(c=0;c<this.Ka.length;c++)d=this.Ka.ea(c),g=d.filter.measure,b&&d.filter.xi&&!e.v(this.Yc.gd(g.A))||this.Vea(d,g,a)||d.filter.eC()}Vea(b,a,c){c=c.find(d=>a&&d.A===a.A);return!(b.filter.xi&&null==this.gd(b.filter.measure.A)||a&&l.Ra.V().ga.Gc&&void 0!==c)}IKa(b,a){b=u.OO.qR(b.ve,b.A,a);return 0==b.Sw?(e.Za(b.errorMessage),!1):!0}sIa(b){if(null!=l.Ra.V().ua){var a=
l.Ra.V().ua.cs,c=b.cs;null!=a&&null!=c&&a.A!=c.A||null==a.Yf||null==b.vi(new e.model.hb.ah(a.Yf.A,a.Yf.aa,a.Yf.index))||null!=c.Yf||(c.Yf=a.Yf,c.WV=a.WV,c.Um=a.Um,c.$f=a.$f)}}n5(){const b=new e.model.hb.pp,a=this.ce(l.i.ja.La).Qa(),c=this.ce(l.i.ja.Xa).Qa();var d=this.ce(l.i.ja.rt).Qa();b.rows=a.hierarchies;b.Ka=c.hierarchies;b.ob=d.hierarchies;b.Ba=[];d=this.Yc.Ba;const g=this.hd();for(var k=0;k<g.length;k++){var m=g[k],n=m.Qa();n.caption=m.kl;n.active=!0;e.model.C.F.rc&&(m=this.Yc.Ck(m.A))&&m.filter.wh&&
!b.XBa(m.A)&&(n.filter=m.filter.Qa());b.Ba.push(n)}for(k=0;k<d.length;k++){const p=d.ea(k);p.hidden&&!p.Na||p.m1()||g.find(t=>t.A===p.A)||(n=p.Qa(),n.active=!1,b.Ba.push(n))}b.Wj=a.sort;b.Lj=c.sort;b.Qc=this.Qc;b.Ew=this.axes.getItem(l.i.ja.La).kca;b.Dw=this.axes.getItem(l.i.ja.Xa).kca;b.kd=this.kd;b.Bw=this.axes.getItem(l.i.ja.La).Yba;b.Aw=this.axes.getItem(l.i.ja.Xa).Yba;b.Ng=this.Ng;b.ih=this.Cca();b.bd=this.bd;b.Rj=this.Rj;return b}Cca(){if(e.v(this.ih))return null;const b=[];for(var a=0;a<this.ih.length;a++){var c=
this.ih[a];b.push({uniqueName:c.measure.A,sort:c.sort})}return b}Qa(){var b={};b.rows=[];for(var a=0;a<this.rows.length;a++){var c=this.rows.ea(a).Qa();b.rows[a]=c}b.columns=[];for(a=0;a<this.Ka.length;a++)c=this.Ka.ea(a).Qa(),b.columns[a]=c;b.pages=[];for(a=0;a<this.ob.length;a++)c=this.ob.ea(a).Qa(),b.pages[a]=c;b.measures=[];for(a=0;a<this.mb.length;a++)this.mb[a].hidden||(c=this.mb[a].Qa(),b.measures[a]=c);return b}L3(){for(var b=0;b<this.Pr.length;b++)this.Pr.ea(b).L3()}flatten(b=!1,a=!1){const c=
this.wc(!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.Pa.xc?c.Hb(g.A)||c.Ta(g.A,g):c.Ta(g.A,g);else{let k=this.Ck(g.A);null!=k&&c.Ta(k.A,k);g.Na&&b&&(k=new h.ht(g.A,g.caption),c.Ta(g.A,k))}}return this.kta(c,this.Ng)}kta(b,a){const c=new e.tb;for(let d=0;d<a.length;d++){const g=a[d];b.Hb(g)&&(c.Ta(g,b.getItem(g)),b.removeItem(g))}for(a=0;a<b.length;a++)c.Ta(b.Jh(a),b.ea(a));return c}isEqual(b){if(null==b)return!1;var a=this.hd(),c=b.hd();
if(this.ob.length!=b.ob.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.ob.length;d++)if(this.ob.Jh(d)!=b.ob.Jh(d))return!1;for(d=0;d<this.rows.length;d++)if(this.rows.Jh(d)!=b.rows.Jh(d))return!1;for(d=0;d<this.Ka.length;d++)if(this.Ka.Jh(d)!=b.Ka.Jh(d))return!1;for(d=0;d<a.length;d++)if(a[d].A!=c[d].A||a[d].aa!=c[d].aa)return!1;return!0}Ck(b){return this.Yc.Ck(b)}cf(b){return this.Yc.cf(b)}get nb(){return 0==this.wc(!1).length&&
0==this.mb.length}cDa(){if(e.model.C.F.rc){this.rows=new e.tb;this.Ka=new e.tb;this.ob=new e.tb;for(var b=[],a=[],c=0;c<this.Yc.Ba.length;c++){var d=this.Yc.Ba.ea(c);a.push(d.A);d.type==l.i.Pa.xc?(d=this.Yc.Ck(d.A))&&this.rows.Ta(d.A,d):(d.index=0,b.push(d))}if(e.v(this.oB)||0==this.oB.length)this.oB=a;this.mb=b}else{for(c=0;c<this.Yc.Ba.length&&(d=this.Yc.Ba.ea(c),d.type!=l.i.Pa.jb?null==a&&(a=this.Yc.Ck(d.A)):null==b&&(b=d),null==a||null==b);c++);null==b?b=this.Yc.Ba.ea(0):null==a?(d=this.Yc.Ba.ea(0),
a=this.Yc.Ck(d.A)):null==a&&null==b&&0<this.Yc.Ba.length&&(b=this.Yc.Ba.ea(0),a=this.Yc.Ck(b.A));null!=a&&null!=b&&(this.ob=new e.tb,this.rows=new e.tb,this.Ka=new e.tb,this.rows.Ta(a.A,a),c=[],b.index=0,c.push(b),this.mb=c)}}get Qc(){return this.P9}set Qc(b){this.P9=b}get kd(){return this.BF}set kd(b){this.BF=b}wua(){this.cc.Ed=[];this.Rb.Ed=[]}vua(){this.cc.tf=[];this.Rb.tf=[]}get Ng(){null==this.oB&&(this.oB=[]);return this.oB}set Ng(b){this.oB=b}get ih(){null==this.qQ&&(this.qQ=[]);return this.qQ}set ih(b){this.qQ=
b}get bd(){null==this.lQ&&(this.lQ=[]);return this.lQ}set bd(b){this.lQ=b}get cc(){return this.axes.getItem(l.i.ja.La)}get Rb(){return this.axes.getItem(l.i.ja.Xa)}get VH(){return this.axes.getItem(l.i.ja.rt)}z5(b){void 0===b&&(b=this.mb);const a=[];if(this.Yc instanceof l.external.pc.O.EI&&0<e.model.va.Zm.Xc.length)for(var c=0;c<e.model.va.Zm.Xc.length;c++){var d=e.model.va.Zm.Xc.ea(c);if((d=u.nt.bM(d.Xd,this.Yc.Ba))&&0<d.length)for(var g=0;g<d.length;g++){var k=d[g];let n=this.Yc.Ba.getItem(k.A);
if(null!=n){var m=b.find(p=>p.A===n.A);if(null==m||!m.Na&&m.aa!=k.aa)m=n.clone(),m.aa=k.aa,m.hidden=!0,a.push(m)}}}c=null;for(d=0;d<b.length;d++)if(c=b[d],c.format=this.Yc.Ba.getItem(c.A).format,a.push(c),c.Na){if((g=u.nt.bM(c.Xd,this.Yc.Ba))&&0<g.length)for(k=0;k<g.length;k++){m=g[k];let n=this.Yc.Ba.getItem(m.A);if(null!=n){let p=b.find(t=>t.A===n.A);if(null==p||!p.Na&&p.aa!=m.aa)p=n.clone(),p.aa=m.aa,p.hidden=!0,a.push(p)}}this.Yc instanceof l.external.pc.O.EI&&(c.Xd=u.nt.hH(c.Xd,this.Yc.Ba))}this.Zz(a)}sDa(b){e.v(b)||
(this.Qc=b.Qc,this.kd=b.kd,f.taa(this,b)?(this.cc.Ed=this.YR(b.cc.Ed,this.OS(this.cc.Oa,b.cc.Oa)),this.cc.tf=this.YR(b.cc.tf,this.OS(this.cc.Oa,b.cc.Oa)+2)):(this.cc.Ed=this.Wq(b.cc.Ed),this.cc.tf=this.Wq(b.cc.tf)),f.saa(this,b)?(this.Rb.Ed=this.YR(b.Rb.Ed,this.OS(this.Rb.Oa,b.Rb.Oa)),this.Rb.tf=this.YR(b.Rb.tf,this.OS(this.Rb.Oa,b.Rb.Oa)+2)):(this.Rb.Ed=this.Wq(b.Rb.Ed),this.Rb.tf=this.Wq(b.Rb.tf)))}ZD(b,a){const c=[];for(let d=0;d<this.mb.length;d++)(this.mb[d].A!==b||this.mb[d].aa!==a&&void 0!==
a)&&c.push(this.mb[d]);this.mb=c}Wga(b){this.mb[b.index].A===b.A&&this.mb[b.index].aa===b.aa?this.mb.splice(b.index,1):this.ZD(b.A,b.aa)}gd(b){for(var a=0;a<this.mb.length;a++)if(this.mb[a].A==b)return this.mb[a]}OS(b,a){for(var c=0,d=Math.min(b.length,a.length),g=0;g<d;g++){var k=b.ea(g),m=a.ea(g);if(k.A!=m.A)break;k.Se||c++}return c}YR(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}Wq(b){for(var a=[],c=0;c<b.length;c++)a.push(b[c].slice());return a}q_(b){return this.Zaa(b,
this.yb)}p_(b){return this.Zaa(b,this.Db)}Zaa(b,a){var c=[];if(e.v(b))return c;for(var d=0;d<b.length;d++){var g=a.ea(d);e.v(g)||(g=g.ya(b[d]),e.v(g)||c.push(g.Qa()))}return c}bBa(){let b=this.wc();for(let a=0;a<b.length;a++)if(b.ea(a).mg)return!0;return!1}}h.Lr=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{get JK(){return!0}set JK(c){}gaa(){throw"Not Implemented";}zsa(c,d){e.v(this.my)&&(this.my=new e.tb);this.my.Ta(c,d)}Gda(c,d){return!e.v(this.my)&&this.my.Hb(c.A)?this.OR(this.my.getItem(c.A),d):this.eH(d)}OR(c,d){if("boolean"===typeof c)return!0===c?this.eH(d):null;const g=new a;d=this.eH(d);e.v(c.md)||(g.md=c.md);e.v(c.query)||(g.query="boolean"===typeof c.query?!0===c.query?d.query:[]:c.query.slice());e.v(c.gm)||(g.gm="boolean"===typeof c.gm?!0===
c.gm?d.gm:[]:c.gm.slice());return g}eH(c){var d=new a;d.md=!0;d.gm=l.i.yc.wq;switch(c){case l.i.qb.Ok:d.query=l.i.Bb.wq;break;case l.i.qb.Sa:d.query=l.i.$b.wq;break;case l.i.qb.jb:d.query=l.i.Jg.wq;break;case l.i.qb.dc:d.query=l.i.Qk.wq}return d}}h.wW=f;class b{}h.Wpa=b;class a{get Dea(){return 1==this.md}get EM(){return!e.v(this.query)&&0<this.query.length}get Wea(){return!e.v(this.gm)&&0<this.gm.length}merge(c){void 0===this.md&&(this.md=c.md);void 0===this.query&&(this.query=c.query);void 0===
this.gm&&(this.gm=c.gm)}}h.Vpa=a})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){class f extends h.kt{isEqual(b){return b.Da==l.i.qa.EMPTY}clone(){return new f}Qa(){return{}}}h.FA=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends l.O.kt{constructor(){super(...arguments);this.requestPermission=this.Td=!1;this.mapping=new l.O.km}isEqual(b){return super.isEqual(b)&&this.filename===b.filename&&!1===this.Td&&!1===b.Td&&this.mapping.isEqual(b.mapping)}}h.$O=f})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends l.W5{constructor(){super(...arguments);this.yh=[];this.Mn=[];this.aY=[{value:"Chrome",kN:.76},{value:"Firefox",kN:.11},{value:"Safari",kN:.05},{value:"Edge/IE",kN:.06},{value:"Opera",kN:.02}]}sG(){super.sG();this.yh=[];this.Mn=[]}Bua(){this.yh=[];this.Mn=[];this.values=[]}static clone(b){var a=new f(b.xa);a.rh=b.rh.slice(0);a.Gn=b.Gn.slice(0);a.ub=b.ub.slice(0);a.Fc=b.Fc.slice(0);a.ta=b.ta.slice(0);a.xe=b.xe.slice(0);a.uh=b.uh.slice(0);a.sg=b.sg.slice(0);
a.Ey=b.Ey.slice(0);a.nD=b.nD.slice(0);return a}Iwa(b){var a=this.Gn.indexOf(b);if(!e.v(b)&&-1<a){for(b=0;b<this.uh.length;b++)void 0===this.yh[b]&&(this.yh[b]=[]),void 0!==this.Fc[b]?(this.Fc[b][a]=NaN,this.yh[b][a]={Hp:-this.Fc[b][a],Os:-1}):this.yh[b][a]={Hp:0,Os:0};this.rh=e.Ja.wr(this.rh,this.rh.indexOf(a));this.Gn[a]=null}}update(b,a,c){var d=this.Gn.indexOf(c);if(!e.v(c)&&-1<d){for(c=0;c<this.uh.length;c++)if(this.Fc[c]&&this.Fc[c][d]!==a[c]){var g=a[c]-this.Fc[c][d];isNaN(g)||(null==this.yh[c]&&
(this.yh[c]=[]),this.yh[c][d]={Hp:g,Os:g/this.Fc[c][d]})}for(c=0;c<a.length;c++)this.Fc[c][d]=a[c];for(c=0;c<b.length;c++)this.ub[c][d]=b[c]}else{d=this.Ex;e.v(c)||(this.Gn[d]=c);for(c=0;c<this.uh.length;c++)g=a[c],isNaN(g)||(null==this.yh[c]&&(this.yh[c]=[]),this.yh[c][d]={Hp:g,Os:1});this.rh=e.Ja.vr(this.rh,d);for(c=0;c<b.length;c++)this.ub[c]=e.Ja.vr(this.ub[c],b[c]);for(c=0;c<a.length;c++)this.Fc[c]=e.Ja.vr(this.Fc[c],a[c])}}insert(b,a,c){if(!(-1<b.indexOf(0))){var d;if(0===this.ub.length)for(d=
0;d<b.length;d++)this.ub[d]=[];this.rh=e.Ja.vr(this.rh,this.Ex);e.v(c)||(this.Gn[this.Ex]=c);for(d=0;d<b.length;d++)this.ub[d]=e.Ja.vr(this.ub[d],b[d]);if(0===this.Fc.length)for(d=0;d<a.length;d++)this.Fc[d]=[];for(d=0;d<a.length;d++)this.Fc[d]=e.Ja.vr(this.Fc[d],a[d])}}I0(b,a,c,d,g){if(0!=b.length){var k;for(k=0;k<b.length;k++){var m=this.Fc[c][b[k]];isNaN(m)||this.Fc[c]instanceof Uint8Array&&0==m||g[m]||(d.push(m),g[m]=!0)}if(this.lj.length!=a.length)for(k=0;k<d.length;k++){m=a.slice(0);m.push(d[k]);
var n=this.Ao(b,m,this.lj);this.I0(n,m,c,d,g)}}}AIa(b,a,c,d){b=this.gb[b[0]];a=a[0];var g=[];this.yh=[];this.yh[b]=[];this.values=[];this.Mn=[];if(null!=c){var k=c.wS(d);var m=this.yda(c.ya(this.ub[a][b]),"string"==typeof d);if(null==k)if(1==this.bba(a,this.ub[a][b])){k=c.ya(this.ub[a][b]);var n=this.J0(c,d);n.ordinal=k.ordinal;c.nha(n)}else k=null!=c.Ib(d)?c.lc(new l.O.ae({A:e.P.NL(),caption:d})):c.lc(new l.O.ae({A:d,caption:d}));this.ub[a][b]=k.ordinal;n=null!=this.Gn[b]?this.Gn[b]:b;g.push({id:n,
field:c.A,value:d,oldValue:m});c=parseFloat(d)-this.Fc[a][b];this.yh[b][a]={Hp:c,Os:c/this.Fc[a][b]};this.Fc[a][b]=parseFloat(d);0<g.length&&this.xa.yha(g);return k.ordinal}}yda(b,a){return null==b?"":a?b.caption:b.fc}save(b,a,c,d,g){var k=this.ld(b,this.Gd),m=this.ld(a,this.Ud);g=(b.length*m[0][0].length<a.length*k[0][0].length?this.Ao(m[0][0],b,this.Ph):this.Ao(k[0][0],a,this.lj))[g];b=[];a=this.uh.indexOf(this.xa.O.cf(c.A).A);this.yh=[];this.yh[a]=[];k=parseFloat(d)-this.Fc[a][g];this.yh[a][g]=
{Hp:k,Os:k/this.Fc[a][g]};this.Fc[a][g]=parseFloat(d);this.values=[];this.Mn=[];if(null!=c){m=this.xe.indexOf(c.A);var n=this.bba(m,this.ub[m][g]);k=c.wS(d);k=null===k?c.Ib(d):k;a=this.yda(c.ya(this.ub[m][g]),"string"==typeof d);null==k&&(1==n?(k=c.ya(this.ub[m][g]),n=this.J0(c,d),n.ordinal=k.ordinal,c.nha(n)):k=c.lc(this.J0(c,d)));k.fc=d;this.ub[m][g]=k.ordinal;g=null!=this.Gn[g]?this.Gn[g]:g;b.push({id:g,field:c.A,value:d,oldValue:a});0<b.length&&this.xa.yha(b);return k.ordinal}}J0(b,a){b=this.xa.O.cf(b.A);
l.i.Pa.Sa==b.type?(b=e.P.Bx(a,e.model.C.F.Ep,e.model.C.F.Mj),a=new l.O.ae({A:b,caption:b,fc:a})):l.i.Pa.xc==b.type?a=new l.O.ae({A:a.toString(),caption:a.toString()}):l.i.Pa.dc==b.type?(b=e.P.Cx(a,e.model.C.F.Wo),a=new l.O.ae({A:b,fc:a})):a=new l.O.ae({A:a.toString(),caption:a.toString(),fc:a});return a}bba(b,a){for(var c=0,d=0;d<this.Ex;d++)this.ub[b][d]==a&&c++;return c}bd(b,a){const c=[];c.push(this.xe);var d=this.ld(b,this.Gd);if(e.v(d)||e.v(d[0])||e.v(d[0][0]))return c;var g=this.ld(a,this.Ud);
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.Ao(g[0][0],b,this.Ph):this.Ao(d[0][0],a,this.lj);for(a=0;a<b.length;a++){d=[];for(g=0;g<this.ub.length;g++)d.push(this.ub[g][b[a]]);c.push(d)}return c}dD(b,a,c){b=this.ds(b,a);a=c.Na?this.slice.hd().findIndex(d=>d.A===c.A)+this.uh.length:this.uh.indexOf(c.A);return void 0==this.Mn[b]?null:this.Mn[b][a]}oda(b,a){if(a.Na)return null;a=this.uh.indexOf(a.A);return null==b?this.TZ(this.gb,a):void 0==this.Mn[b]?
null:this.Mn[b][a]}Du(b){return null==this.gb[b]||null==this.ub[0][this.gb[b]]||""==this.xa.O.id?null:this.Gn[this.gb[b]]}uAa(b,a){if(0==this.Gn.length)return null;var c=this.ld(b,this.Gd);if(e.v(c)||e.v(c[0])||e.v(c[0][0]))return null;const d=this.ld(a,this.Ud);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.Ao(d[0][0],b,this.Ph):this.Ao(c[0][0],a,this.lj);a=[];for(c=0;c<b.length;c++)a.push(this.Gn[b[c]]);return 0==a.length?null:a}US(b,a,c,d,
g){if(this.xa.ga.yM)return 0===this.ub[0][b]&&this.Sya(b),this.ub[a][b];if(null==this.gb[b]||null==this.ub[0][this.gb[b]])return NaN;if(d)return!c.Na&&this.yh.length&&(d=this.uh.indexOf(c.A),null==this.Mn[b]&&(this.Mn[b]=[]),this.Mn[b][d]=this.TZ([this.gb[b]],d)),c.Na?this.dr([this.gb[b]],c.Xd,c.cl,0,null,null,c.ho):this.Fc[a][this.gb[b]];this.Fc.length!=this.ub.length&&(a=this.xe.indexOf(this.uh[a]),void 0!==g&&(a=this.ta[a][g]));return this.ub[a][this.gb[b]]}Ha(b,a,c){var d=this.ds(b,a),g=this.Zh(c);
if(e.v(this.values[g])||-1==g)this.values[g]=[];g=this.values[g];if(!g[d]){var k=this.ld(b,this.Gd),m=this.ld(a,this.Ud);if(null==k||null==k[0]||null==m||null==m[0])return NaN;var n=[],p=this.uh.indexOf(c.A);0<m.length&&0<k.length&&b.length*m[0][0].length<a.length*k[0][0].length?n=this.Ao(m[0][0],b,this.Ph):0<k.length&&(n=this.Ao(k[0][0],a,this.lj));if(c.Na){if(b=this.dr(n,c.Xd,c.cl,0,b,a,c.ho),!0===b||!1===b)b=!0===b?1:0}else b=c.aa==l.i.da.Ej?c.type==l.i.Pa.xc?this.SS(n,c):this.hda(n,b,a,p):this.qB(n,
p,c.aa);g[d]=b;0<this.yh.length&&(null==this.Mn[d]&&(this.Mn[d]=[]),this.Mn[d][p]=this.TZ(n,p));return b}return g[d]}TZ(b,a){if(void 0==this.yh[a])return null;for(var c=!1,d={Hp:0,Os:0},g=0;g<b.length;g++)this.yh[a][b[g]]&&0!=this.yh[a][b[g]].Hp&&!isNaN(this.yh[a][b[g]].Hp)&&(d.Hp+=this.yh[a][b[g]].Hp,d.Os+=this.yh[a][b[g]].Os,c=!0);return c?d:null}pack(){if(!this.xa.ga.yM){var b=this.xa.O.wc(!1);65536>this.rh.length?this.rh=new Uint16Array(this.rh):4294967296>this.rh.length&&(this.rh=new Uint32Array(this.rh));
var a;for(a=0;a<b.length;a++){var c=b.ea(a),d=this.xe.indexOf(c.A);-1===d&&(d=this.xe.indexOf(c.caption));for(var g=1;g<this.ta[d].length;g++)256>c.Ri&&this.ub.hasOwnProperty(this.ta[d][g])?this.ub[this.ta[d][g]]=new Uint8Array(this.ub[this.ta[d][g]]):65536>c.Ri&&this.ub.hasOwnProperty(this.ta[d][g])?this.ub[this.ta[d][g]]=new Uint16Array(this.ub[this.ta[d][g]]):4294967296>c.Ri&&this.ub.hasOwnProperty(this.ta[d][g])&&(this.ub[this.ta[d][g]]=new Uint32Array(this.ub[this.ta[d][g]]))}for(a=0;a<this.uh.length;a++)c=
b.getItem(this.uh[a]),null!=c&&(c=this.xa.O.TC(c.A),c!==l.i.input.sa.jb&&c!==l.i.input.sa.Dj&&c!==l.i.input.sa.Jc&&c!==l.i.input.sa.dc&&(this.Fc[a]=new Uint8Array(this.Fc[a])))}}filter(){this.Ud=[];this.Gd=[];this.values=[];this.tQ=[];this.Pl=[];this.Mn=[];this.pta();this.pack();var b=e.model.C.F.rc&&e.model.C.F.je!=e.K.Id.dj,a=this.slice.wc(!1,!0,b),c=new e.tb,d=new e.tb,g,k,m=this.slice.hd();for(g=0;g<a.length;g++)(k=a.ea(g))&&k.filter.wh&&(k.filter.xi?(b?d.Ta(k.A,k):m.find(n=>n.A===k.filter.measure.A)&&
!this.slice.ob.Hb(k.A)&&d.Ta(k.A,k),k.filter.wi&&c.Ta(k.A,k)):c.Ta(k.A,k));this.Ov(c,this.rh);for(g=0;g<d.length;g++)k=d.ea(g),!b||k.filter.oz&&k.filter.measure&&this.xa.O.Uq.Hb(k.filter.measure.A)?this.xta(k):this.mta(k);this.Ov(d,this.gb)}Ov(b,a){for(var c=[],d=[],g=0;g<b.length;g++){var k=b.ea(g),m=this.xe.indexOf(k.A);if(k.filter.wh){c.push(m);d.push(k.Ixa().length/k.Ad.children.length);this.filters[m]=[];this.zx[m]=[];for(var n=0;n<k.gb.length;n++){var p=k.ya(k.gb[n]);1===p.level.wb?this.filters[m][p.ordinal]=
!0:(void 0===this.zx[m][p.root.ordinal]&&(this.zx[m][p.root.ordinal]=[]),void 0===this.zx[m][p.root.ordinal][p.level.wb]&&(this.zx[m][p.root.ordinal][p.level.wb]=[]),this.zx[m][p.root.ordinal][p.level.wb][p.ordinal]=!0)}}}d=e.Ja.sort(d,e.Ja.Bv|e.Ja.Ki);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.ub[this.ta[b][1]][a[m]],!0===this.filters[b][n])k.push(a[m]);else if(void 0!==this.zx[b][n])for(p=2;p<this.ta[b].length;p++)if(void 0!==this.zx[b][n][p]&&!0===this.zx[b][n][p][this.ub[this.ta[b][p]][a[m]]]){k.push(a[m]);
break}a=k}this.gb=a}Vqa(b){var a=this.xe.indexOf(b.kz.A),c=this.xe.indexOf(b.A);-1===a&&(a=this.um(b.kz.A,b.A),this.ta[c].pop(),this.ta[c].splice(1,0,a));var d=[],g;for(g in b.groups)for(var k=b.Ib(b.vm(g)),m=0;m<b.groups[g].length;m++){var n=b.ya(b.groups[g][m]);null!==n&&(d[n.ordinal]=k.ordinal)}b=b.Ib(b.vm("Others"));void 0===this.ub[a]&&(this.ub[a]=[]);for(g=0;g<this.Ex;g++)n=this.ub[c][g],this.ub[a][g]=void 0!==d[n]?d[n]:b.ordinal}cra(b){var a=this.xe.indexOf(b.A);if(this.ta[a]&&this.ta[a].length>
b.ta.length)for(var c=0;c<this.ta[a].length;c++)if(!b.ta.Hb(this.xe[this.ta[a][c]])){this.ta[a].splice(c,1);break}}pta(){var b,a,c=this.slice.wc(!1);for(b=0;b<c.length;b++)(a=c.ea(b))&&(null!=a.kz?this.Vqa(a):this.cra(a))}mta(b){if(b.filter.xi){var a=this.xa.O.Ba.getItem(b.filter.measure.A);if(void 0!==a){for(var c=[],d=[],g=this.uh.indexOf(a.A),k=0;k<this.gb.length;k++)c.push(this.US(k,g,a,!0)),d.push(this.US(k,g,a,!1));b.filter.query.va==l.i.yc.ck?b.gb=this.lta(c,d,b.filter.query.value):b.filter.query.va==
l.i.yc.Hi?b.gb=this.cta(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.EQUAL?b.gb=this.dta(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.cg?b.gb=this.jta(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.GREATER?b.gb=this.fta(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.xl?b.gb=this.eta(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.LESS?b.gb=this.hta(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.yl?b.gb=this.gta(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.nh?
b.gb=this.bta(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.yc.bh&&(b.gb=this.ita(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])))}}}lta(b,a,c){var d=[];b=e.Ja.sort(b,e.Ja.ep|e.Ja.Bv|e.Ja.Ki);c=Math.min(c,a.length);for(var g=0;g<c;g++)d.push(a[b[g]]);return d}cta(b,a,c){var d=[];b=e.Ja.sort(b,e.Ja.Bv|e.Ja.Ki);c=Math.min(c,a.length);
for(var g=0;g<c;g++)d.push(a[b[g]]);return d}dta(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]==c&&d.push(a[k]);return d}jta(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]!=c&&d.push(a[k]);return d}fta(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]>c&&d.push(a[k]);return d}eta(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]>=c&&d.push(a[k]);return d}hta(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]<c&&d.push(a[k]);return d}gta(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]<=c&&d.push(a[k]);
return d}bta(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}ita(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}xta(b){if(b.filter.xi){var a=this.slice.vi(b.filter.measure);if(void 0!==a){var c=[],d=[],g=[],k=this.xe.indexOf(b.A);k=this.ta[k][b.oc?b.oc.wb:1];if(this.Pl[k])for(var m in this.Pl[k])g.push(this.Pl[k][m]);else g=[k];k=[];for(m=0;m<g.length;m++)for(var n=0;n<this.gb.length;n++){var p=this.ub[g[m]][this.gb[n]];null==
k[p]&&(k[p]=[]);k[p].push(this.gb[n])}g=this.uh.indexOf(a.A);n=b.filter.wi?b.filter.Pj():b.bs;p=a.Na;var t=b.oc?b.oc.wb:1;for(m=0;m<n.length;m++){var r=b.ya(n[m]);if(!r.Zb&&r.level.wb==t&&void 0!==k[r.ordinal]){if(p){var w=e.v(this.Ey[g])?a.Xd:this.Ey[g];var y=e.v(this.nD[g])?a.cl:this.nD[g];w=this.dr(k[r.ordinal],w,y,0,null,null,a.ho)}else w=k[r.ordinal],w=a.aa==l.i.da.Ej?this.SS(w,a):this.qB(w,g,a.aa);isNaN(w)&&(w=Number.MIN_VALUE);c.push(w);d.push(r.ordinal)}}b.filter.query.va==l.i.yc.ck?b.gb=
this.wta(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.Hi?b.gb=this.Zsa(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.EQUAL?b.gb=this.$sa(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.cg?b.gb=this.uta(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.GREATER?b.gb=this.ota(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.xl?b.gb=this.nta(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.LESS?b.gb=this.rta(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.yl?b.gb=this.qta(c,
d,b.filter.query.value):b.filter.query.va==l.i.yc.nh?b.gb=this.Ysa(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.yc.bh&&(b.gb=this.tta(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])))}}}wta(b,a,c){var d=[];b=e.Ja.sort(b,e.Ja.ep|e.Ja.Bv|e.Ja.Ki);c=Math.min(c,a.length);for(var g=0;g<c;g++)d.push(a[b[g]]);return d}Zsa(b,a,c){var d=
[];b=e.Ja.sort(b,e.Ja.Bv|e.Ja.Ki);c=Math.min(c,a.length);for(var g=0;g<c;g++)d.push(a[b[g]]);return d}$sa(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]==c&&d.push(a[k]);return d}uta(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]!=c&&d.push(a[k]);return d}ota(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]>c&&d.push(a[k]);return d}nta(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]>=c&&d.push(a[k]);return d}rta(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]<c&&d.push(a[k]);return d}qta(b,a,c){for(var d=
[],g=a.length,k=0;k<g;k++)b[k]<=c&&d.push(a[k]);return d}Ysa(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}tta(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}qB(b,a,c){return null===b||-1===a?NaN:0===b.length?c===l.i.da.xc?0:NaN:c===l.i.da.NONE?this.Fc[a][b[0]]:c===l.i.da.xc?this.sza(b,a):c===l.i.da.Ej?this.hda(b,[],[],a):c===l.i.da.Ir?this.oAa(b,a):c===l.i.da.Cv?this.IAa(b,a):c===l.i.da.Dv?this.JAa(b,a):1===b.length?this.Fc&&
this.Fc[a]?this.Fc[a][b[0]]:NaN:c===l.i.da.Iq||c===l.i.da.lp||c===l.i.da.Hq||c===l.i.da.Fq||c===l.i.da.Gq||c===l.i.da.Ji||c===l.i.da.Rn||c===l.i.da.an||c===l.i.da.Wn||c===l.i.da.cn||c===l.i.da.en||c===l.i.da.Yn?this.b1(b,a):c===l.i.da.st?this.sAa(b,a):c===l.i.da.xq?this.Rca(b,a):c===l.i.da.wv?this.aAa(b,a):c===l.i.da.MAX?this.Xza(b,a):c===l.i.da.MIN?this.dAa(b,a):0}kM(){return this.ub}ZH(){this.$Z();for(var b,a=this.xa.O.G0(),c=0;c<a.length;c++){var d=a[c];b=this.xa.O.RC(d);if(b instanceof h.O.V7)l.i.BA.OA==
b.type?(this.um(d+".Year"),this.un(this.xa.O.cf(d+".Year")),this.um(d+".Month"),this.un(this.xa.O.cf(d+".Month")),this.um(d+".Day"),this.un(this.xa.O.cf(d+".Day"))):b.Oa.Hb(d)&&(this.um(d),this.un(this.xa.O.cf(d)));else if(b instanceof h.O.bP)for(this.um(d),this.un(this.xa.O.cf(d)),d=2;d<b.ta.length;d++){var g=b.ta.ea(d);this.um(g.A,b.A)}else b instanceof h.O.pX&&(1===b.wb?(this.um(b.hierarchy.A),this.un(this.xa.O.cf(b.hierarchy.A))):this.um(b.A,b.hierarchy.A))}if(this.slice){for(c=0;c<this.xa.O.Ba.length;c++)b=
this.xa.O.Ba.ea(c),this.um(b.A),this.un(b);for(c=0;c<this.slice.Kf.length;c++)b=this.slice.Kf[c],this.um(b.A),this.un(b)}}un(b){b&&(this.BK(b),this.vy(b))}W$(b){for(var a=this.xa.O.RC("Browser"),c=0;c<b.length;c++)a.lc(new l.O.ae({A:b[c].value}))}Sya(b){var a=this.uga(b,{from:0,Xo:500,hx:30})+1,c=this.uga(b,{from:0,Xo:30,hx:0})+1,d=.3>Math.abs(Math.sin(7*b))?1:0;this.ub[0][b]=this.uHa(5*b,this.aY)+1;this.ub[1][b]=a*(4>c?c:10>c?Math.round(c/3):Math.round(c/7));this.ub[2][b]=c;this.ub[3][b]=d}w0(b){this.W$(this.aY);
var a=u.Kd().Mm?5E5:1E6;this.ub=[];this.ub[0]=new Uint8Array(a);this.ub[1]=new Uint16Array(a);this.ub[2]=new Uint8Array(a);this.ub[3]=new Uint8Array(a);this.rh[a-1]=a;this.Gd=[];this.Gd=[[this.gb,[],[],void 0,void 0]];this.Ud=[[this.gb,[],[],void 0,void 0]];this.W$(this.aY);b()}uga(b,a){b=Math.abs(Math.sin(1.17*b))*(a.Xo-a.from)+a.from;if(b>=a.hx){var c=(b-a.hx)/(5*(a.Xo-a.hx));a=(b-a.hx)*c+a.hx}else c=(a.hx-b)/(5*(a.hx-a.from)),a=(a.hx-b)*c+a.from;return Math.round(a)}uHa(b,a){b=Math.abs(Math.sin(b));
for(var c=0,d=0;d<a.length;d++)if(c+=a[d].kN,c>b)return d;return a.length-1}}h.aP=f})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.ht{constructor(a,c=""){super(a,c);this.Je=e.model.C.F.Je;a=new f.pX(a+".[(all)]","All",0);this.Hh(a);this.ms=this.wm="(all member)";a=new l.O.ae({A:"(all member)",caption:"All",Zb:!0});super.lc(a)}lc(a,c){if(void 0===c)return super.lc(a);if(e.ia(a.value)||"null"===a.value||"undefined"===a.value)e.model.C.F.br?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.zl);if(c===l.i.input.sa.jb)c=this.Lsa(a);else if(c===l.i.input.sa.$c||c===l.i.input.sa.fn||c===l.i.input.sa.$g)c=this.faa(a);else if(c===l.i.input.sa.Sa)c=this.nsa(a);else if(c===l.i.input.sa.Hf)c=this.Esa(a,a.level);else if(c===l.i.input.sa.Bq)c=this.Z$(a,!1);else if(c===l.i.input.sa.hp)c=this.Z$(a,!0);else if(c===l.i.input.sa.Dj)c=this.psa(a);else if(c===l.i.input.sa.Jc)c=this.rsa(a);else if(c===l.i.input.sa.dc)c=this.Ssa(a);else{if(c===l.i.input.sa.Rx||
c===l.i.input.sa.I7||c===l.i.input.sa.iF)return null;c=this.faa(a)}void 0!==a.Ue&&c.Ue.Bsa(a.Ue);return c}YC(){return new f.mna(this)}vm(a="(Total)"){return a.toLocaleLowerCase()}get interval(){return this.type===l.i.Lc.Sa?this.AQ:null}set interval(a){if(this.type===l.i.Lc.Sa){const c=a.substr(-1);if("y"===c||"q"===c||"M"===c||"w"===c)a="1"+c;this.AQ=a}else this.AQ=null}get rk(){return this.hra}set rk(a){this.hra=a}getTimezoneOffset(){if(this.type!==l.i.Lc.Sa)return null;if(!e.v(this.rk))return u.zh.lg(this.rk);
var a=this.mapping.Ha(this.A,"format");if(!e.v(a))return u.zh.lg(a);a=this.ta.ea(1);if(a.type===l.i.ib.Sa||a.type===l.i.ib.Dj){if(a=u.zh.lg(e.model.C.F.Ep),null!==a)return a}else if(a.type===l.i.ib.Jc&&(a=u.zh.lg(e.model.C.F.rk),null!==a))return a;return e.v(e.model.C.F.Mj)||isNaN(e.model.C.F.Mj)?null:e.model.C.F.Mj}get inputType(){return this.zQ}set inputType(a){this.zQ=a}get Wd(){return!0}set Wd(a){}faa(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.lc(a));return d}Lsa(a){var c=void 0===a.A?a.value+"":a.A;if(!this.Je){var d=this.Ib(c);null===d&&(a.A=c,void 0===a.caption&&(a.caption=a.value+""),a.fc=e.model.C.F.br&&e.v(a.value)?a.value:e.P.j5(a.value),d=super.lc(a))}return d}rsa(a){var c=new e.Zg(a.value,{wy:!1});c.Aj(this.getTimezoneOffset());this instanceof l.external.pc.O.cO||c.round(this.interval);c=c.getTime();let d=a.A;if(void 0===a.A||e.v(a.parent)&&e.v(a.Bi))d=isNaN(c)?e.model.B.j.Qn:""+c;var g=this.Ib(d);null===g&&
(a.A=d,a.fc=c,g=super.lc(a));return g}Ssa(a){const c=parseFloat(a.value);var d=this.mapping.Ha(this.A,"format",e.model.C.F.Wo),g=isNaN(c)||""===String(a.value).trim()||c.toString()!==a.value.toString();d=g?"":e.P.Cx(c,d);g=g?"":`${c}`;let k=this.Ib(g);null===k&&(a.A=g,a.caption=d,a.fc=c,k=super.lc(a));return k}psa(a){var c=new e.Zg(a.value,{wy:!1});c.Aj(this.getTimezoneOffset());this instanceof l.external.pc.O.cO||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.Bi))g=isNaN(d)?e.model.B.j.Qn:""+d;!e.model.C.F.br||null!==a.value&&"null"!==a.value||(g="null",c=null);d=this.Ib(g);null===d&&(a.A=g,a.fc=c,d=super.lc(a));return d}Z$(a,c){var d=new e.Zg(a.value,{wy:!1});e.v(e.model.C.F.Mj)||d.Aj(e.model.C.F.Mj);var g="";if(null!=d&&!isNaN(d.getTime())&&d.Ug()){var k=e.model.B.j.K8[Math.floor(d.getMonth()/3)];var m=e.model.B.j.Hr[d.getMonth()];var n=d.getDate().toString();var p=d.getFullYear().toString();d=d.getTime()}else return n=e.model.B.j.Qn,p=this.Ib(n),
null===p&&(a.A=n,a.caption=n,p=super.lc(a)),p;var t=""+p,r=p;p=this.Ib(t);null===p&&(a.A=t,a.caption=r,p=super.lc(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.lc(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.lc(a));k=n;n=`${m}.[${n}]`;g=p;p=this.Ib(n);null===p&&(a.A=n,a.caption=k,a.parent=g,a.fc=d,p=super.lc(a));return p}nsa(a){var c=[],d=new e.Zg(a.value,{wy:!1});e.v(e.model.C.F.Mj)||d.Aj(e.model.C.F.Mj);
if(null!==d&&!isNaN(d.getTime())&&d.Ug()){var g=e.model.B.j.Hr[d.getMonth()];var k=d.getDate().toString();var m=d.getFullYear().toString();var n=d.getTime()}else{k=e.model.B.j.Qn;for(n=0;3>n;n++){a=this.si.Oa.ea(n);var p=a.Ib(k);null===p&&(p=a.lc(new l.O.ae({A:k})));c.push(p)}return c}a=this.si.Oa.ea(0);var t=this.cW(m);p=a.Ib(t);null===p&&(p=a.lc(new l.O.ae({A:m,caption:t,fc:d.getFullYear()})));c.push(p);a=this.si.Oa.ea(1);m=this.cW(g);p=a.Ib(m);null===p&&(p=a.lc(new l.O.ae({A:g,caption:m})));c.push(p);
a=this.si.Oa.ea(2);g=this.cW(k);p=a.Ib(g);null===p&&(p=a.lc(new l.O.ae({A:k,caption:g,fc:n})));c.push(p);return c}cW(a){return a&&0<a.length&&"NaN"!=a?a:e.model.B.j.Qn}Esa(a,c){var d=void 0===a.parent?this.Ib(a.Bi):a.parent;null===d&&void 0!==a.Bi&&(d=this.wS(a.Bi));var g=e.v(a.A)||!e.v(a.Bi)&&"["===a.Bi.substr(0,1)||!e.v(a.A)&&"["===a.A.substr(0,1)?a.value+"":a.A;if(1<c.wb){var k=c.hierarchy.ta.ea(c.wb-1);null===d&&(d=c.hierarchy.Ib(e.model.B.j.zl),null===d&&(d=k.hierarchy.lc(new l.O.ae({A:e.model.B.j.zl,
caption:e.model.B.j.zl}))));g=1===k.wb?`[${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.wb?d:void 0,k=this.lc(a,l.i.ib.wE(c.type)));return k}bj(){const a=super.bj();a.type=this.inputType;return a}clone(){var a=super.clone();a.AQ=this.AQ;return a}}f.bP=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.it{constructor(a,c="",d=0){super(a,c,d)}}f.pX=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.JI{Qa(){var a=super.Qa();a.uniqueName=this.qj;this.parent&&(a.parentMember=this.parent.qj);return a}}f.mna=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.Br{constructor(a,c=""){super(a,c)}get hc(){return e.model.Tb.valid(this.vc)?this.vc:e.model.Tb.validate(this.vc)}get caption(){if(!1===e.model.C.F.xx||this.Na)return this.hc;switch(this.aa){case l.i.da.xc:return e.P.bind(e.model.B.j.kO,this.hc);case l.i.da.st:return e.P.bind(e.model.B.j.uP,this.hc);case l.i.da.Ej:return e.P.bind(e.model.B.j.uO,this.hc);case l.i.da.xq:return e.P.bind(e.model.B.j.fO,this.hc);case l.i.da.wv:return e.P.bind(e.model.B.j.rX,
this.hc);case l.i.da.Cv:return e.P.bind(e.model.B.j.CP,this.hc);case l.i.da.Dv:return e.P.bind(e.model.B.j.DP,this.hc);case l.i.da.MAX:return e.P.bind(e.model.B.j.eP,this.hc);case l.i.da.MIN:return e.P.bind(e.model.B.j.nP,this.hc);case l.i.da.Ir:return e.P.bind(e.model.B.j.FJ,this.hc);case l.i.da.lp:return e.P.bind(e.model.B.j.zJ,this.hc);case l.i.da.Hq:return e.P.bind(e.model.B.j.EJ,this.hc);case l.i.da.Fq:return e.P.bind(e.model.B.j.CJ,this.hc);case l.i.da.Gq:return e.P.bind(e.model.B.j.DJ,this.hc);
case l.i.da.Ji:return e.P.bind(e.model.B.j.mJ,this.hc);case l.i.da.en:return e.P.bind(e.model.B.j.vP,this.hc);case l.i.da.Yn:return e.P.bind(e.model.B.j.xP,this.hc);case l.i.da.Rn:return e.P.bind(e.model.B.j.SI,this.hc);case l.i.da.an:return e.P.bind(e.model.B.j.TI,this.hc);case l.i.da.Wn:return e.P.bind(e.model.B.j.AJ,this.hc);case l.i.da.cn:return e.P.bind(e.model.B.j.BJ,this.hc);case l.i.da.NONE:return this.hc}return e.P.bind(e.model.B.j.LJ,this.hc)}set caption(a){this.vc=a}get kl(){return this.vc}set kl(a){}clone(){var a=
new b(this.A);this.iL(a);return a}bj(){const a=super.bj(),c=l.Ra.V().O.Ck(this.A);e.v(c)?a.type=l.i.input.sa.jb:a.type=c.inputType;return a}}f.W7=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.pA{constructor(a,c=""){super(a,c)}}f.V7=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.yW{constructor(){super();this.id=this.$R="";this.ta=[];this.l1=!1;this.EB={};this.uB={};this.xZ();this.bf=new e.tb;this.hw={};this.Mz={};this.Tk=new e.tb;this.types={};this.Ue=[];this.id=this.$R="";this.Je=e.model.C.F.Je}clear(){this.EB={};this.uB={};this.bf=new e.tb;this.hw={};this.Mz={};this.Tk=new e.tb;this.types={};this.id=this.$R="";super.clear()}Do(a,c){return new f.bP(a,c)}vda(a,c){return new f.W7(a,c)}Tl(a,c,d){return new f.pX(a,
c,d)}Ck(a){return this.EB[a]}cf(a){return this.uB[a]}TC(a){if(void 0!==this.types[a])return this.types[a];a=this.Mz[a];if(!e.v(a))return this.types[a]}ada(a){return this.Ue[a]}RC(a){let c=this.bf.getItem(a);if(e.v(c)){if(a=this.hw[a],Array.isArray(a)){let d=[];for(let g=0;g<a.length;g++)c=this.bf.getItem(a[g]),e.v(c)||d.push(c);return d}}else return c}G0(a=!0){let c=this.bf.Nc(!0);if(a||0===Object.keys(this.hw).length)return c;a=[];for(let d=0;d<c.length;d++)void 0!==this.Mz[c[d]]?-1===a.indexOf(this.Mz[c[d]])&&
a.push(this.Mz[c[d]]):a.push(c[d]);return a}EK(a,c){this.Je||(this.EB[a]=this.fh(c),this.uB[c]=this.gd(a))}qp(a,c,d,g){c=this.vda(a,c);c.type=d;g.hasOwnProperty("supportedAggregations")&&(c.Zj=g.supportedAggregations);c.Wc=g.availableAggregations;this.lk(c);this.EK(c.A,a);return c}eaa(a,c,d){var g=c.uniqueName,k=e.ia(c.caption)?d:c.caption,m=this.Do(g,k);m.type=l.i.Lc.pv;void 0!==c.folder&&(m.Mc=c.folder);a.oi(m);a=this.Tl(m.caption==e.model.B.j.zl?g+".[]":g,m.caption,1);a.type=l.i.ib.$c;m.Hh(a);
this.Je||this.qp(g,k,l.i.Pa.xc,c);this.bf.Ta(d,m);this.Tk.Ta(d,m);m.inputType=c.type}xsa(a,c,d){var g=c.uniqueName,k=e.ia(c.caption)?d:c.caption;a.type=l.i.BA.OA;var m=this.Do(g,k);m.type=l.i.Lc.Sa;void 0!==c.folder&&(m.Mc=c.folder);a.oi(m);var n=g+".Year";a=this.Tl(n,e.model.B.j.Dl,m.ta.length);a.type=l.i.ib.Dl;m.Hh(a);this.Tk.Ta(n,a);c.type==l.i.input.sa.hp&&(n=g+".Quarter",a=this.Tl(n,e.model.B.j.ut,m.ta.length),a.type=l.i.ib.ut,m.Hh(a),this.Tk.Ta(n,a));n=g+".Month";a=this.Tl(n,e.model.B.j.$g,
m.ta.length);a.type=l.i.ib.$g;m.Hh(a);this.Tk.Ta(n,a);n=g+".Day";a=this.Tl(n,e.model.B.j.$m,m.ta.length);a.type=l.i.ib.$m;m.Hh(a);this.Tk.Ta(n,a);this.Je||this.qp(g,k,l.i.Pa.xc,c);e.v(c.interval)?m.interval=this.mapping.Ha(g,"interval","1d"):m.interval=c.interval;this.bf.Ta(d,m);m.inputType=c.type}aaa(a,c,d){var g=c.hasOwnProperty("hierarchy")?c.hierarchy:c.uniqueName,k=a.fh(g);void 0===k&&(k=this.Do(g,g),void 0!==c.folder&&(k.Mc=c.folder),a.oi(k));var m=0;if(c.hasOwnProperty("parent")){m=k.uu(c.parent);
void 0===m&&(m=k.uu(c.parent.toLowerCase()));if(void 0===m){void 0===this.ta[k.A]&&(this.ta[k.A]=[]);this.ta[k.A][c.parent]=[c,d];return}m=k.ta.indexOf(m.A)}else k.type=l.i.Lc.t0(c.levelType);var n=c.hasOwnProperty("caption")?c.caption:c.hasOwnProperty("level")?c.level:d;m=this.Tl(d,n,m+1);m.type=l.i.ib.t0(c.levelType);k.Hh(m);this.Je||e.v(this.gd(g))&&this.qp(g,g,l.i.Pa.xc,c);this.bf.Ta(d,m);this.Tk.Ta(d,m);this.ta[k.A]&&this.ta[k.A][d]&&this.aaa(a,this.ta[k.A][d][0],this.ta[k.A][d][1]);e.v(k.inputType)&&
(k.inputType=c.type)}msa(a,c,d){var g=c.uniqueName,k=e.ia(c.caption)?d:c.caption;a.type=l.i.BA.OA;var m=g+".Year",n=k+"."+e.model.B.j.Dl;var p=this.Do(m,n);p.type=l.i.Lc.Sa;void 0!==c.folder&&(p.Mc=c.folder);e.v(c.interval)?p.interval=this.mapping.Ha(g,"interval","1d"):p.interval=c.interval;a.oi(p);var t=this.Tl(m+"."+n,n,1);t.type=l.i.ib.Dl;p.Hh(t);this.Tk.Ta(m,t);this.Je||this.qp(m,n,l.i.Pa.xc,c);p.inputType=c.type;m=g+".Month";n=k+"."+e.model.B.j.$g;p=this.Do(m,n);void 0!==c.folder&&(p.Mc=c.folder);
e.v(c.interval)?p.interval=this.mapping.Ha(g,"interval","1d"):p.interval=c.interval;a.oi(p);var r=this.Tl(m+"."+n,n,1);r.type=l.i.ib.$g;p.Hh(r);this.Tk.Ta(m,t);this.Je||this.qp(m,n,l.i.Pa.xc,c);p.inputType=c.type;m=g+".Day";k=k+"."+e.model.B.j.$m;p=this.Do(m,k);void 0!==c.folder&&(p.Mc=c.folder);e.v(c.interval)?p.interval=this.mapping.Ha(g,"interval","1d"):p.interval=c.interval;a.oi(p);g=this.Tl(m+"."+k,k,1);g.type=l.i.ib.$m;p.Hh(g);this.Tk.Ta(m,t);this.Je||this.qp(m,k,l.i.Pa.xc,c);p.inputType=c.type;
this.bf.Ta(d,a)}Ksa(a,c,d,g){var k=c.uniqueName;const m=e.ia(c.caption)?d:c.caption;this.Je?g?(k=this.qp(k,m,l.i.Pa.jb,c),e.ia(c.folder)?e.ia(c.dimensionCaption)?e.ia(c.dimensionUniqueName)||(k.Dg=c.dimensionUniqueName):k.Dg=c.dimensionCaption:k.Dg=c.folder,this.bf.Ta(d,k)):(g=this.Do(k,m),g.type=l.i.Lc.Cq,void 0!==c.folder&&(g.Mc=c.folder),a.oi(g),k=this.Tl(k,m,1),k.type=l.i.ib.jb,g.Hh(k),this.bf.Ta(d,g),this.Tk.Ta(d,g),g.inputType=c.type):(g=this.Do(k,m),g.type=l.i.Lc.Cq,void 0!==c.folder&&(g.Mc=
c.folder),a.oi(g),a=this.Tl(k,m,1),a.type=l.i.ib.jb,g.Hh(a),this.qp(k,m,l.i.Pa.jb,c),this.bf.Ta(d,g),this.Tk.Ta(d,g),g.inputType=c.type)}Isa(a,c,d){var g=c.uniqueName,k=e.ia(c.caption)?d:c.caption,m=this.Do(g,k);m.type=l.i.Lc.Sa;void 0!==c.folder&&(m.Mc=c.folder);a.oi(m);a=this.Tl(g,k,1);a.type=l.i.ib.$g;m.Hh(a);this.Je||this.qp(g,k,l.i.Pa.xc,c);this.bf.Ta(d,m);this.Tk.Ta(d,m);m.inputType=c.type}Usa(a,c,d){var g=c.uniqueName,k=e.ia(c.caption)?d:c.caption,m=this.Do(g,k);m.type=l.i.Lc.pv;void 0!==c.folder&&
(m.Mc=c.folder);a.oi(m);a=this.Tl(g,k,1);a.type=l.i.ib.$m;m.Hh(a);this.Je||this.qp(g,k,l.i.Pa.xc,c);this.bf.Ta(d,m);this.Tk.Ta(d,m);m.inputType=c.type}osa(a,c,d){var g=c.uniqueName,k=e.ia(c.caption)?d:c.caption,m=this.Do(g,k);m.type=l.i.Lc.Sa;void 0!==c.folder&&(m.Mc=c.folder);a.oi(m);a=this.Tl(g,k,1);a.type=l.i.ib.Sa;m.Hh(a);this.Je||this.qp(g,k,l.i.Pa.Sa,c);e.v(c.interval)?m.interval=this.mapping.Ha(g,"interval","1d"):m.interval=c.interval;e.v(c.format)||(m.rk=c.format);this.bf.Ta(d,m);this.Tk.Ta(d,
m);m.inputType=c.type}Rsa(a,c,d){var g=c.uniqueName,k=e.ia(c.caption)?d:c.caption,m=this.Do(g,k);m.type=l.i.Lc.Cq;void 0!==c.folder&&(m.Mc=c.folder);a.oi(m);a=this.Tl(g,k,1);a.type=l.i.ib.dc;m.Hh(a);this.Je||this.qp(g,k,l.i.Pa.dc,c);this.bf.Ta(d,m);this.Tk.Ta(d,m);m.inputType=c.type}qsa(a,c,d){var g=c.uniqueName,k=e.ia(c.caption)?d:c.caption,m=this.Do(g,k);m.type=l.i.Lc.Sa;void 0!==c.folder&&(m.Mc=c.folder);a.oi(m);a=this.Tl(g,k,1);a.type=l.i.ib.Jc;m.Hh(a);this.Je||this.qp(g,k,l.i.Pa.Jc,c);e.v(c.interval)?
m.interval=this.mapping.Ha(g,"interval","1s"):m.interval=c.interval;e.v(c.format)||(m.rk=c.format);this.bf.Ta(d,m);this.Tk.Ta(d,m);m.inputType=c.type}$qa(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}bR(a,c){if(a instanceof l.O.km){var d=a;a=a.mapping}else!e.v(c)&&l.O.km.UT(a)&&(d=new l.O.km(a));if(void 0!==d){var g={};if(Array.isArray(c)){if(this.$qa(c,a))for(var k=0;k<c.length;k++){const p=c[k];g[p]=d.B2(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.t5(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.oZ(m,l.i.input.sa.$c);else if(void 0===d&&g[m]instanceof Date)this.oZ(m,e.model.C.F.qL);else if(void 0===d&&Array.isArray(g[m]))this.sy(a[m],m);else if(g[m].hasOwnProperty("formula"))e.ia(g[m].formula)||this.Vt(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.ye.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.t5(g[m]),this.oZ(m,c);this.Wd=!0}Vt(a,c){c=new l.O.Br(c,void 0==a.caption?c:a.caption);c.ve=a.formula;c.ho=void 0==a.calculateNaN?c.ho:a.calculateNaN;a.hasOwnProperty("grandTotalCaption")&&
(c.Op=a.grandTotalCaption);e.model.C.F.YN&&(a=u.OO.qR(c.ve,c.A),0==a.Sw&&e.Za(a.errorMessage));e.model.Va.V().Vt(c)}oZ(a,c){this.sy({A:a,caption:a,sL: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);a=this.mapping.B2(c,d)}if(!a.hasOwnProperty("visible")||!1!==a.visible)if(Array.isArray(a))for(this.hw[c]=[],d=0;d<a.length;d++)void 0===a[d].uniqueName&&(a[d].uniqueName=`${c}.${d}`),this.y9(a[d]),this.hw[c].push(a[d].uniqueName),
this.Mz[a[d].uniqueName]=c;else this.y9(a)}y9(a){var c=a.uniqueName;"[Measures]"===c.substr(0,10)&&(l.ye.yE=!1);e.v(a.hierarchy)||a.type===l.i.input.sa.iF||(a.levelType=a.type===l.i.input.sa.Hf?l.i.input.sa.$c:a.type,a.type=l.i.input.sa.Hf);a.type===l.i.input.sa.Hf&&!1===l.external.pc.O.ap.sM&&(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.Kp(a.dimensionUniqueName):d===l.i.input.sa.Hf&&a.hasOwnProperty("hierarchy")&&(g=this.Kp(a.hierarchy));let k=!1;a.hasOwnProperty("isMeasure")&&(k=e.P.Zc(String(a.isMeasure).trim()));this.Je&&k||void 0!==g||(g=l.O.pA.zb(a),a.uniqueName=l.ye.Pg(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.Hf&&a.hasOwnProperty("hierarchy")&&!a.hasOwnProperty("dimensionUniqueName")&&
(g.A=a.hierarchy),this.Wt(g));this.types[c]=d;switch(d){case l.i.input.sa.$c:this.eaa(g,a,c);break;case l.i.input.sa.jb:this.Ksa(g,a,c,k);break;case l.i.input.sa.$g:this.Isa(g,a,c);break;case l.i.input.sa.fn:this.Usa(g,a,c);break;case l.i.input.sa.Sa:this.msa(g,a,c);break;case l.i.input.sa.Jc:this.qsa(g,a,c);break;case l.i.input.sa.dc:this.Rsa(g,a,c);break;case l.i.input.sa.Hf:this.aaa(g,a,c);break;case l.i.input.sa.Bq:case l.i.input.sa.hp:this.xsa(g,a,c);break;case l.i.input.sa.Dj:this.osa(g,a,c);
break;case l.i.input.sa.Rx:this.id=c;this.bf.Ta(c,null);break;case l.i.input.sa.G6:this.$R=c;break;case l.i.input.sa.I7:break;case l.i.input.sa.iF:this.lsa(a,c);break;default:this.eaa(g,a,c)}}lc(a,c,d,g,k){if(Array.isArray(this.hw[c]))for(d=0;d<this.hw[c].length;d++)this.z9(a,this.hw[c][d],this.TC(this.hw[c][d]),g,k);else return this.z9(a,c,d,g,k)}z9(a,c,d,g,k){a=a.clone();if(this.Je&&d===l.i.input.sa.jb)k.push(e.P.j5(a.value));else{var m=c=this.RC(c);if(!e.v(m)){switch(d){case l.i.input.sa.Sa:m=
c.Oa.ea(0);var n=m.lc(a,d);break;case l.i.input.sa.Hf:var p=c.hierarchy.ta.ea(c.wb-1);0<p.wb&&e.v(a.parent)&&e.v(a.Bi)&&(a.parent=c.hierarchy.ya(g[this.Tk.indexOf(p.A)]));a.level=c;p=c.hierarchy.lc(a,d);break;default:p=m.lc(a,d)}switch(d){case l.i.input.sa.jb:this.Je||g.push(p.ordinal);k.push(e.P.j5(a.value));break;case l.i.input.sa.Jc:case l.i.input.sa.Dj:g.push(p.ordinal);this.Je||k.push(p.fc);break;case l.i.input.sa.Bq:1===p.level.wb?(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.Je||k.push(1);break;case l.i.input.sa.hp:1===p.level.wb?(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.Je||k.push(1);break;case l.i.input.sa.Sa:for(d=0;d<n.length;d++)g.push(n[d].ordinal),this.Je||k.push(1);break;case l.i.input.sa.dc:g.push(p.ordinal);this.Je||k.push(p.fc);break;case l.i.input.sa.Hf:g.push(p.ordinal);this.Je||
1===p.level.wb&&k.push(1);break;default:g.push(p.ordinal),this.Je||(e.ia(a.value)?k.push(NaN):k.push(1))}return p}}}lsa(a,c){this.l1=!0;a=a.hierarchy;e.v(this.Ue[a])&&(this.Ue[a]=[]);this.bf.Ta(c,null);this.Ue[a].push(c)}}f.cP=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.LI=1048576;this.ST=!1;this.YB=this.nk=this.TK=0;this.encoding="UTF-8";this.Cia=()=>this.wGa();this.Cj=()=>this.fq()}JN(b,a){this.timer=new u.wt(100,1E5);this.timer.N(u.pf.Al,this.Cia);this.timer.N(u.pf.Bl,this.Cj);this.timer.start();this.oa=new z.l9;this.oa.responseType="blob";this.oa.N(v.fa.vA,()=>this.kEa());this.oa.N(v.fa.ue,c=>this.Mra(c));this.oa.N(v.fa.Oc,()=>this.Kra());this.oa.N(v.fa.Aa,c=>this.Lra(c));this.Qh(this.oa,a);this.oa.load(b)}Mra(b){const a=
b.data;404==a.target.status?this.m3(b):(this.nk=a.loaded,this.TK=a.total,this.qFa(a))}Kra(){if(!e.v(this.oa)&&!e.v(this.oa.response)){this.ST=!0;this.YB=0;this.TK=this.oa.response.size;this.encoding=this.oa.qza();var b=new FileReader;b.addEventListener("loadend",()=>c());var a=null,c=()=>{this.YFa(b.result,()=>{this.YB+=a.size;d()},a.size==this.TK)},d=()=>{this.YB>=this.TK?this.XFa():(a=this.oa.response.slice(this.YB,this.YB+this.LI),b.readAsText(a,this.encoding))};d()}}Lra(b){this.rg();this.m3(b)}Qh(b,
a){if(!e.v(a))for(var c in a)a.hasOwnProperty(c)&&b.sc.push(new z.m9(c,a[c]))}wGa(){0<this.nk||this.ST?this.rg():null!=this.timer&&e.Ca(!0,e.model.B.j.bg,e.P.bind(e.model.B.j.qt,u.Yb.format(this.timer.tw/10,new e.model.ec.X.Gf,!1,!1,1)))}fq(){this.timer.pl&&this.rg()}rg(){this.timer&&this.timer.pl&&(this.timer.stop(),this.timer.sb(u.pf.Al,this.Cia),this.timer.sb(u.pf.Bl,this.Cj))}}h.Spa=f})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.$O{constructor(){super();this.Pf=null;this.kf="";this.Rm="\n";this.Rp=!0;this.Da=l.i.qa.Sh}get nb(){return e.ia(this.filename)&&(null==this.Td||0==this.Td)}set nb(a){}get Mu(){return!e.v(this.data)}set Mu(a){}isEqual(a){return a==this?!0:super.isEqual(a)}static zb(a){var c=new b;e.v(a.browseForFile)||(c.Td=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.Pf=a.fieldSeparator);e.v(a.thousandSeparator)||(c.kf=a.thousandSeparator);e.v(a.thousandsSeparator)||(c.kf=a.thousandsSeparator);e.v(a.recordsetDelimiter)||(c.Rm=a.recordsetDelimiter);e.v(a.requestHeaders)||(c.sc=a.requestHeaders);e.v(a.ignoreQuotedLineBreaks)||(c.Rp=a.ignoreQuotedLineBreaks);e.v(a.mapping)||(c.mapping=a.mapping instanceof l.O.km?a.mapping:new l.O.km(a.mapping));e.v(a.withCredentials)||(c.withCredentials=a.withCredentials);return c}static wk(a){var c=
new b,d=a.find("params");0!=d.find("param[name=ignoreQuotedLineBreaks]").length&&(c.Rp=e.P.Zc(d.find("param[name=ignoreQuotedLineBreaks]").text()));a=a.find("dataSource");0!=a.find("browseForFile").length&&(c.Td=e.P.Zc(a.find("browseForFile").text()));0!=a.find("filename").length&&(c.filename=a.find("filename").text());0!=a.find("fieldSeparator").length&&(c.Pf=a.find("fieldSeparator").text());0!=a.find("thousandSeparator").length&&(c.kf=a.find("thousandSeparator").text());0!=a.find("thousandsSeparator").length&&
(c.kf=a.find("thousandsSeparator").text());0!=a.find("recordsetDelimiter").length&&(c.Rm=a.find("recordsetDelimiter").text());0!=a.find("ignoreQuotedLineBreaks").length&&(c.Rp=e.P.Zc(a.find("ignoreQuotedLineBreaks").text()));return c}Yo(a=!1){var c=z.ba.create("<dataSource/>");c.attr("type",this.Da);(a||this.Td)&&c.append(z.ba.create("<browseForFile/>").text(this.Td));this.filename&&c.append(z.ba.create("<filename/>").append(z.ba.Vh(this.filename)));this.Pf&&c.append(z.ba.create("<fieldSeparator/>").append(z.ba.Vh(this.Pf)));
this.kf&&c.append(z.ba.create("<thousandsSeparator/>").append(z.ba.Vh(this.kf)));this.Rm&&"\n"!=this.Rm&&c.append(z.ba.create("<recordsetDelimiter/>").append(z.ba.Vh(this.Rm)));(a||0==this.Rp)&&c.append(z.ba.create("<ignoreQuotedLineBreaks/>").text(this.Rp));return c}Qa(a=!1){var c={};c.type=this.Da;if(a||this.Td)c.browseForFile=this.Td;this.filename&&(c.filename=this.filename);this.Pf&&(c.fieldSeparator=this.Pf);this.kf&&(c.thousandsSeparator=this.kf);this.Rm&&"\n"!=this.Rm&&(c.recordsetDelimiter=
this.Rm);if(a||0==this.Rp)c.ignoreQuotedLineBreaks=this.Rp;if(!this.mapping.nb||this.mapping.Jo)c.mapping=this.mapping.Qa(!0);if(a||this.withCredentials)c.withCredentials=this.withCredentials;return c}clone(){var a=new b;a.Da=this.Da;this.Td&&(a.Td=this.Td);this.filename&&(a.filename=this.filename);this.Pf&&(a.Pf=this.Pf);this.kf&&(a.kf=this.kf);this.Rm&&"\n"!=this.Rm&&(a.Rm=this.Rm);0==this.Rp&&(a.Rp=this.Rp);if(!this.mapping.nb||this.mapping.Jo)a.mapping=this.mapping.clone(this.Da);this.withCredentials&&
(a.withCredentials=this.withCredentials);return a}}f.lO=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.$O{constructor(){super();this.Iea=this.sk=!1;this.Z_=0;this.Da=l.i.qa.Dq}get nb(){return e.ia(this.filename)&&(null==this.Td||0==this.Td)&&(null==this.sk||0==this.sk)}set nb(a){}get Mu(){return this.sk}set Mu(a){}isEqual(a){return super.isEqual(a)&&0==this.sk&&0==a.sk}static zb(a){var c=new b;e.v(a.browseForFile)||(c.Td=a.browseForFile);e.v(a.filename)||""==a.filename||(c.filename=a.filename);e.v(a.requestHeaders)||(c.sc=a.requestHeaders);
e.v(a.embedded)||(c.sk=a.embedded);e.v(a.embeddedDataOffset)||(c.Z_=a.embeddedDataOffset);e.v(a.embeddedDataToLoad)||(c.bca=a.embeddedDataToLoad);e.v(a.isOCSV2Data)||(c.Iea=a.isOCSV2Data);e.v(a.mapping)||(c.mapping=a.mapping instanceof l.O.km?a.mapping:new l.O.km(a.mapping));return c}Yo(a=!1){var c=z.ba.create("<dataSource/>");c.attr("type",this.Da);(a||this.Td)&&c.append(z.ba.create("<browseForFile/>").text(this.Td));this.filename&&c.append(z.ba.create("<filename/>").append(z.ba.Vh(this.filename)));
this.sk&&c.append(z.ba.create("<embedded/>").text(this.sk));return c}static wk(a){var c=new b;0!=a.find("browseForFile").length&&(c.Td=e.P.Zc(a.find("browseForFile").text()));0!=a.find("filename").length&&(c.filename=a.find("filename").text());0!=a.find("embedded").length&&(c.sk=e.P.Zc(a.find("embedded").text()));return c}Qa(a=!1){var c={};c.type=this.Da;if(a||this.Td)c.browseForFile=this.Td;this.filename&&(c.filename=this.filename);this.sk&&(c.embedded=this.sk);return c}clone(){var a=new b;a.Da=
this.Da;this.Td&&(a.Td=this.Td);this.filename&&(a.filename=this.filename);this.sk&&(a.sk=this.sk);return a}}f.gF=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.kf="";this.l0=[".csv"];this.Twa=RegExp('""',"g");this.Nea=!1;this.Jta=()=>this.C9();this.tl=()=>this.Ls();this.Cj=()=>this.fq();this.di=0;this.Ru=!1;this.h5=null;this.Aga=0;this.xa=l.Ra.V();this.l0=[".csv"]}clear(){this.data=[];this.mw=this.di=this.vC=this.nk=0;this.Rm="\n";this.oS='"';this.jC=[];this.Se=[];this.uM=this.AM=this.Go=this.QT=!1;this.pe="";this.lb=0;this.Ar=100;null!=this.oa&&(this.oa.Yd(),this.oa.dispose(),
this.oa=null);this.rg();e.Ca(!1)}load(c,d,g,k,m){try{this.clear(),this.filename=c.filename,this.Nb=d,this.ab=g,this.Oe=k,this.nG=m,this.Pf=c.Pf,this.kf=c.kf,this.Rp=c.Rp,c.yM?this.w0():(void 0!==this.filename&&""!=this.filename&&"()"!=this.filename.substr(-2)||!1!==c.Td?this.filename=u.ey.sH(this.filename,!e.model.C.F.hR):this.$l(),!0===c.Td?this.Aaa(c):(e.Ca(!0,e.model.B.j.bg),this.s2(this.filename,c.sc,c.withCredentials)))}catch(n){console.error(n.stack),this.$l()}}w0(){this.Vs();this.Pf=",";this.RD("Browser, Duration, Page Views, New Session",
"Chrome, 100, 3, true",new l.O.km({Browser:{type:"string"},Duration:{type:"time"},"Page Views":{type:"number"},"New Session":{type:"number"}}));this.QT=!0;this.xa.ra.w0(()=>{this.Iz()})}requestPermission(){e.Za(e.model.B.j.foa,e.model.B.j.Kja,e.xb.RO,[e.model.B.j.wl,e.model.B.j.Lja],[this.Jta])}Aaa(c){!0===c.requestPermission?this.requestPermission():this.C9()}C9(){this.Fw=new z.x7;this.Fw.N(v.fa.np,()=>this.NEa());this.Fw.N(v.fa.Oc,()=>this.YM());this.Fw.N(v.fa.ue,c=>this.ZM(c));this.Fw.N(v.fa.BW,
()=>this.LEa());this.Fw.N(v.fa.Aa,()=>this.$l());this.Fw.zaa(this.l0)}NEa(){e.Ca(!0,e.model.B.j.bg,"",!0,!0);this.oa=this.Fw;this.Fw.load();this.Fw=null}s2(c,d=null,g=!1){this.timer=new u.wt(100,1E5);this.timer.N(u.pf.Al,this.tl);this.timer.N(u.pf.Bl,this.Cj);this.timer.start();var k=new z.ek;k.dataType=z.zA.aB;k.N(v.fa.Oc,()=>this.YM());k.N(v.fa.vA,()=>this.S2());k.N(v.fa.ue,m=>this.ZM(m));k.N(v.fa.Aa,m=>this.$l(m));k.Qh(d);k.withCredentials=g;k.load(c);this.oa=k}Ls(){0<this.nk||this.Go||this.AM?
this.rg():null!=this.timer&&e.Ca(!0,e.model.B.j.bg,e.P.bind(e.model.B.j.qt,u.Yb.format(this.timer.tw/10,new e.model.ec.X.Gf,!1,!1,1)))}fq(){this.timer.pl&&this.rg()}rg(){this.timer&&this.timer.pl&&(this.timer.stop(),this.timer.sb(u.pf.Al,this.tl),this.timer.sb(u.pf.Bl,this.Cj))}LEa(){null!=this.nG&&(this.nG(),this.nG=null);this.clear()}$l(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.jP,g).replace(/'/g,""));0==this.AM&&(this.AM=!0,c=e.model.Tb.valid(this.filename)?this.filename:e.model.Tb.validate(this.filename),e.Za(e.P.bind(e.model.B.j.uJ,c)+g,e.model.B.j.Aa,e.xb.Aa));null!=this.ab&&(this.ab(d),this.ab=null);this.rg()}Y2(){e.Ca(!1);e.Za(e.P.bind(e.model.B.j.h8),e.model.B.j.Aa,e.xb.Aa)}ZM(c){var d=c.data;if(404==d.target.status)this.$l(c);else if(!e.v(this.oa))try{var g=this.oa.response;if(null!=g&&0!=g.length&&(this.nk!=d.loaded||this.vC!=
g.length)&&(this.uM=0<d.total&&d.lengthComputable,this.vC=g.length,this.nk=d.loaded,1E4<g.length-this.di||d.loaded==d.total)){this.Go=d.loaded==d.total&&d.loaded>=this.oa.response.length;void 0===g||u.Kd().Xi||this.pr(g.substring(this.di,g.length));this.di=g.length;var k=0==d.total?e.P.bind(e.model.B.j.jm,u.Yb.Og(d.loaded)):e.P.bind(e.model.B.j.eF,u.Yb.Og(d.loaded),u.Yb.Og(d.total),(d.loaded/d.total*100).toFixed(0));e.Ca(!0,e.model.B.j.bg,k)}}catch(m){console.error(m.stack),this.$l()}}S2(){e.Ca(!0,
e.model.B.j.bg,"")}Vs(){null!=this.Oe&&(this.Oe(),this.Oe=null)}YM(){if(!e.v(this.oa)){try{if(0==this.di||!this.uM||u.Kd().Xi||this.di<=this.oa.response.length){var c=this.oa.response;e.ia(c)&&!this.Ru?this.Iz():(this.Go=!0,this.Ru)?this.uM||(this.di<c.length?(this.pr(c.substring(this.di,c.length)),this.di=c.length):this.data.push(this.pe)):this.pr(c)}}catch(d){console.error(d.stack),this.$l()}this.oa=null}}static iea(c){c=c.toLowerCase();return-1!=c.indexOf("<html>")||-1!=c.indexOf("<config>")||
0==c.trim().length||-1!=c.indexOf("<!doctype")?(e.Za(e.model.B.j.boa,e.model.B.j.Aa,e.xb.Aa),!1):!0}pr(c){this.Ru=!0;this.Vs();0===this.mw&&-1===c.indexOf("\n")&&-1!==c.indexOf("\r")&&(this.Rm="\r");e.v(this.Pf)&&(this.Pf=this.oua(-1==c.indexOf("\n")&&-1==c.indexOf("\r")?c:c.substring(0,c.indexOf(this.Rm))));this.appendData(c);!1===this.QT&&(1<this.data.length||e.model.C.F.pE)&&(this.Nea&&this.data.shift(),this.RD(this.data.shift(),this.data[0],this.xa.ga.mapping),this.xa.ra.ZH(),this.QT=!0);0!==
this.di&&!u.Kd().Xi||this.AM||u.Cl.eo({Uo:()=>this.dv(),$e:()=>this.Iz()})}Iz(){e.Ca(!1);this.QT?null!=this.Nb&&this.Nb():(e.model.C.F.pE||e.Za(e.model.B.j.xv,e.model.B.j.Aa,e.xb.vl),null!=this.ab&&(this.ab(e.model.B.j.xv),this.ab=null));this.clear()}RD(c,d,g){if("string"==typeof c&&!b.iea(c)||"object"==typeof c&&!b.iea(c.toString()))this.$l();else try{e.v(this.Pf)&&(this.Pf=",");var k="string"==typeof c?b.pia(c,this.Pf):c,m="string"==typeof d?b.pia(d,this.Pf):e.v(d)?[]:d;this.Bm=[];for(c=0;c<k.length;c++){var n=
this.NS(m[c]),p=this.Hw(k[c],n,0==m.length),t=this.R0(k[c],n,0==m.length),r=this.SL(k[c]),w=this.QL(r),y={type:p,uniqueName:r,caption:this.mza(k[c])||w,isMeasure:t};void 0!==g&&(y=g.B2(r,y),e.v(g.Ha(r,"hierarchy"))||y.type===l.i.input.sa.iF||(y.type="level"));if(!y.hasOwnProperty("visible")||!1!==y.visible){this.jC[c]=y.type;this.Se[c]=y.isMeasure;this.Bm[c]=r;if(p===l.i.input.sa.Hf){var A=r.split(":");y.hierarchy=A[0];y.level=A.pop();y.parent=A.join(":")}this.xa.O.sy(y,r)}}}catch(C){console.error(C.stack),
this.Y2()}}NS(c){void 0!==c&&null!==c&&"string"==typeof c&&(this.kf&&0<this.kf.length&&(e.v(this.h5)&&(this.h5=new RegExp(this.kf,"g")),c=c.replace(this.h5,"")),c=c.replace(",","."));return c}QL(c){var d=c.split(a.BI);if(1<d.length)return d[1];this.nz(c)&&(d=c.split(":"));return d[d.length-1]}SL(c){c=c.trim().split(a.BI)[0];c=this.e4(c);if(-1<this.Bm.indexOf(c)){for(var d=1,g=c;-1<this.Bm.indexOf(g);)g=c+d,d++;c=g}return c}mza(c){c=c.split(a.BI);return 1<c.length?c[1]:null}e4(c){return c.replace(/^(\+|dt\+|t\+|n\+|-|ds\+|d\+|m\+|w\+|D\+|D4\+|url\+|img\+|id\+)/,
"")}Hw(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.dc:"dt+"===c.substr(0,3)?k=l.i.input.sa.Jc:"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.Dj:"d+"===c.substr(0,2)?k=l.i.input.sa.Sa:"m+"===c.substr(0,2)?k=l.i.input.sa.$g:"w+"===c.substr(0,2)?k=l.i.input.sa.fn:"D+"===c.substr(0,2)?k=l.i.input.sa.Bq:"D4+"===c.substr(0,3)?k=l.i.input.sa.hp:
"id+"===c.substr(0,3)?k=l.i.input.sa.Rx:""===d||void 0===d?k=l.i.input.sa.$c:isNaN(Number(d))&&(k=e.P.HT(d)?e.model.C.F.qL:l.i.input.sa.$c);k===l.i.input.sa.$c&&this.nz(c)&&(k=l.i.input.sa.Hf);return k}R0(c,d,g){return!e.model.C.F.Je||e.v(d)&&!g?!1:"-"===c.trim().charAt(0)}nz(c){"+"===c.charAt(0)&&(c=c.substr(1));return 1<c.split(":").length&&-1<this.Bm.indexOf(c.split(":")[0].trim())}dv(){if(this.lb>=this.data.length)return this.Go;var c=this.data[this.lb];if(!e.ia(c)&&this.Bm){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.Pf&&!d){if(t===c.length-1&&r!==this.Pf&&(g+=r),g=g.trim(),g=g.replace("\r",""),g.charAt(0)===this.oS&&g.charAt(g.length-1)===this.oS&&(g=g.slice(1,g.length-1),g=g.replace(this.Twa,'"')),this.jC[k]===l.i.input.sa.Rx&&(p=g),void 0!==this.Bm[k]&&(this.jC[k]===l.i.input.sa.jb&&(g=this.NS(g)),d=new l.O.ae({value:g}),this.xa.O.lc(d,this.Bm[k],this.jC[k],m,n)),d=!1,g="",k++,k>=this.Bm.length)break}else r===this.oS?(g+=r,d=
!d):g+=r}if(k<this.Bm.length)for(c=k;c<this.Bm.length;c++)d=new l.O.ae({value:void 0}),this.xa.O.lc(d,this.Bm[c],this.jC[c],m,n);this.xa.ra.insert(m,n,p);0===this.lb%1E3&&this.Go&&200<u.Qf()-this.Aga&&(m=e.model.B.j.gP,n=(this.lb/this.data.length*100).toFixed(0),n=e.P.bind(e.model.B.j.hP,u.Yb.bz(this.lb.toFixed(0)),u.Yb.bz(this.data.length.toFixed(0)),n),e.Ca(!0,m,n),this.Aga=u.Qf())}this.lb++;return this.Go&&this.lb>=this.data.length}appendData(c){void 0!==this.pe&&0<this.pe.length&&(c=this.pe+c);
c=this.MJa(c);for(var d=0;d<c.length;d++)this.data.push(c[d]);1!=this.Go&&(this.pe=this.data.pop())}MJa(c){var d=!1;c=c.split(this.Rm);if(0==this.Rp)for(var g=0;g<c.length;g++)d?(this.Mea(c[g])&&(d=!1),c[g-1]+="<br/>"+c[g],c.splice(g,1),g--):this.Mea(c[g])&&(d=!0);return c}Mea(c){return 1==this.Kva(c,this.oS)%2}Kva(c,d){var g=0;if(c)for(var k=0;k<c.length;k++)c.charAt(k)==d&&g++;return g}oua(c){if(void 0==this.Pf){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.Nea=!0;return c.trim()}return c.split(",").length>c.split(";").length?",":";"}}static pia(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 cW(c){return c&&0<c.length?c:e.model.B.j.Qn}gl(){}Bk(){}Cz(){}nq(){}ZB(){return!1}cancel(){this.clear();
this.Oe=this.ab=this.Nb=null}}f.GW=b;class a{}a.FLOAT="F";a.BI="+T+";f.C6=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.rY=!1;this.H9=0;this.ZI=",";this.FX="\n";this.rf=l.Ra.V();this.Pq=0;this.l$=this.k$=!1;this.qra="\x3c!--";this.rra="--\x3e";this.sY="/**----**";this.pra="**--!--**/";this.fQ=this.Tr="";this.x$=0;this.tl=()=>this.Ls();this.Cj=()=>this.fq();this.RHa=RegExp("%d%","g");this.THa=RegExp("%q%","g");this.SHa=RegExp("%n%","g")}load(a,c,d,g,k){try{this.clear(),this.Ab=a,this.iZ=c,this.Oe=g,this.nG=k,this.nQ=d,this.EF=this.Ab.filename,
this.rY=this.Ab.sk,this.H9=this.Ab.Z_,this.I9=this.Ab.bca,this.O9=!1,0==this.rY&&(this.EF=u.ey.sH(this.EF,!e.model.C.F.hR)),this.rY&&null!=this.I9?this.RCa(this.I9):(e.Ca(!0,e.model.B.j.bg),this.s2(this.EF,this.Ab.sc))}catch(m){console.error(m.stack),this.$l(null,m.message?"Error: "+m.message:"")}}s2(a,c){this.sm=new u.wt(100,1E5);this.sm.N(u.pf.Al,this.tl);this.sm.N(u.pf.Bl,this.Cj);this.sm.start();var d=new z.ek;d.dataType=z.zA.aB;d.N(v.fa.Oc,()=>this.YM());d.N(v.fa.vA,()=>this.S2());d.N(v.fa.ue,
g=>this.ZM(g));d.N(v.fa.Aa,g=>this.$l(g));d.Qh(c);d.load(a);this.qm=d}fq(){this.sm.pl&&this.rg()}rg(){this.sm&&this.sm.pl&&(this.sm.stop(),this.sm.sb(u.pf.Al,this.tl),this.sm.sb(u.pf.Bl,this.Cj))}Fba(a){this.Tr=-1<a.indexOf(this.sY)?this.sY:this.qra;this.fQ=this.Tr==this.sY?this.pra:this.rra}RCa(a){this.Ar=100;this.Pi=0;try{var c=new e.Er(a,this.H9,e.Er.HI),d=c.byteLength>this.Ar?this.Ar:c.byteLength,g=c.jV(d);this.Fba(g);g.substr(0,this.Tr.length)==this.Tr&&(this.cK="",this.cK+=g.substring(this.Tr.length),
this.Pi+=d,this.YJ=c.byteLength,this.Pi<this.YJ?u.Cl.eo({Uo:()=>this.PCa(c),$e:()=>this.kr(),LZ:c}):this.kr())}catch(k){console.error(k.stack),this.$l(null,k.message?"Parsing error: "+k.message:"")}}PCa(a){var c=this.YJ-this.Pi>this.Ar?this.Ar:this.YJ-this.Pi;a=a.jV(c);this.Pi+=c;this.cK+=a;this.P4(this.Pi,this.YJ);return this.Pi>=this.YJ}P4(a,c){a=e.P.bind(e.model.B.j.a8,(a/c*100).toFixed(0));e.Ca(!0,e.model.B.j.dF,a)}kr(){e.Ca(!1);this.oy=!0;this.JHa(this.cK)}Vs(){null!=this.Oe&&(this.Oe(),this.Oe=
null)}JHa(a){a=e.P.trimLeft(a);this.Jaa(a)||this.pr(a)}Ls(){if(0<this.Pi||this.oy||this.DY)this.rg();else{var a=this.sm.tw/10;this.BY?(196<a&&(a=196),a=u.Yb.format(a/2,new e.model.ec.X.Gf,!1,!1,1)+"%"):a=e.P.bind(e.model.B.j.qt,u.Yb.format(a,new e.model.ec.X.Gf,!1,!1,1));e.Ca(!0,e.model.B.j.bg,a)}}$l(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.jP,
d).replace(/'/g,""));0==this.DY&&(this.DY=!0,a=e.model.Tb.valid(this.EF)?this.EF:e.model.Tb.validate(this.EF),e.Za(e.P.bind(e.model.B.j.uJ,a)+d,e.model.B.j.Aa,e.xb.Aa));null!=this.ab&&(this.ab(c),this.ab=null);this.clear()}Jaa(a){if(0==this.l$&&22<a.length){if(this.hCa(a)){if(0==this.DBa(a.substr(0,a.indexOf(this.FX))))return this.iEa(),!0;this.l$=!0;return!1}this.yBa(a)?(u.Cl.cancel(),null!=this.qm&&(this.qm.Yd(),this.qm.dispose(),this.qm=null),e.Za("OCSV data format is deprecated. Please contact the support team for more information."),
this.clear()):(this.clear(),(new f.GW).load(this.Ab,this.iZ,this.nQ,this.Oe,null));return!0}return!1}ZM(a){if(null!=this.qm&&!(null!=a.data&&a.data.target&&400<=a.data.target.status)){a=a.data;try{var c=this.qm.response;if(this.Pi!=a.loaded&&null!=c&&0!=c.length){this.AY=0<a.total&&a.lengthComputable;this.Pi=a.loaded;""==this.Tr&&this.Fba(c);var d=0;if(-1<(d=c.indexOf(this.Tr)))c=c.substring(d+this.Tr.length+1),this.O9=!0;else if(this.Ab.Iea&&!this.O9)return;c=e.P.trimLeft(c);if(!this.Jaa(c)&&(1E4<
c.length-this.Pq||a.loaded==a.total)){this.oy=a.loaded==a.total&&a.loaded>=this.qm.response.length;void 0===c||u.Kd().L1||this.pr(c.substring(this.Pq,c.length));this.Pq=c.length;var g=0==a.total?e.P.bind(e.model.B.j.jm,u.Yb.Og(a.loaded)):e.P.bind(e.model.B.j.eF,u.Yb.Og(a.loaded),u.Yb.Og(a.total));e.Ca(!0,e.model.B.j.bg,g)}}}catch(k){console.error(k.stack),this.$l(null,k.message?"File loading error: "+k.message:"")}}}S2(){this.BY=!0;e.Ca(!0,e.model.B.j.bg,"")}YM(){if(null!=this.qm)try{if(0==this.Pq||
!this.AY||u.Kd().L1||this.Pq<=this.qm.response.length){var a=this.qm.response,c=0;-1<(c=a.indexOf(this.Tr))&&(a=a.substring(c+this.Tr.length+1));if(this.qm.response instanceof ArrayBuffer){var d=new e.Er(this.qm.response,0,e.Er.HI);a=d.jV(d.byteLength)}this.oy=this.BY=!0;this.k$?this.AY?this.Pq<a.length&&(this.pr(a.substring(this.Pq,a.length)),this.Pq=a.length):this.Pq<a.length?(this.pr(a.substring(this.Pq,a.length)),this.Pq=a.length):this.Rk.push(this.py):this.pr(a)}}catch(g){console.error(g.stack),
this.$l(null,g.message?"ERROR: "+g.message:"")}}pr(a){this.k$=!0;this.Vs();this.appendData(a);0==this.FY&&1<this.Rk.length&&(this.Rk.shift(),this.RD(this.Rk.shift()),this.FY=!0,u.Cl.eo({Uo:()=>this.dv(),$e:()=>this.Iz()}))}hCa(a){return"string"==typeof a&&"___ocsv2___"==a.substr(0,11)}yBa(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.Er(a,0,e.Er.HI)).Rga();if(a instanceof
e.Er)return 1600085871!=a.Rga()}catch(d){}return!1}appendData(a){void 0!==this.py&&0<this.py.length&&(a=this.py+a);a=0<=a.indexOf(this.FX)?a.split(this.FX):[];for(var c=0;c<a.length;c++)e.ia(a[c])||this.Rk.push(a[c]);1!=this.oy&&(this.py=e.ia(a[a.length-1])?a.pop():this.Rk.pop(),this.py=this.py==this.fQ?this.Rk.pop():this.py)}DBa(a){this.gY=a.replace("___ocsv2___","").split("/")[1];return void 0!=this.gY&&1==e.P.FR(this.gY,e.ph.ft)?!1:!0}RD(a){a=a.split(this.ZI);this.Sr=[];for(var c=0;c<a.length;c++){var d=
this.Hw(a[c]),g=this.SL(a[c]),k=this.QL(g);this.Ct[c]=d;this.Sr.push(g);k={type:d,caption:k,A:g};d===l.i.input.sa.Hf&&(d=g.split(":"),k.hierarchy=d[0],k.level=d.pop(),k.parent=d.join(":"));this.rf.O.sy(k,g)}this.rf.ra.ZH()}Hw(a){var c=l.i.input.sa.nya(a);c===l.i.input.sa.$c&&this.nz(a)&&(c=l.i.input.sa.Hf);return c}QL(a){var c=a.split(f.C6.BI);if(1<c.length)return c[1];this.nz(a)&&(c=a.split(":"));return c[c.length-1]}nz(a){"+"==a.charAt(0)&&(a=a.substr(1));return 1<a.split(":").length&&-1<this.Sr.indexOf(a.split(":")[0].trim())}SL(a){a=
a.trim().split(f.C6.BI)[0];a=this.e4(a);a=this.vba(a);if(-1<this.Sr.indexOf(a)){for(var c=1,d=a;-1<this.Sr.indexOf(d);)d=a+c,c++;a=d}return a}e4(a){return a.replace(/^(\+|dt\+|t\+|n\+|-|ds\+|d\+|m\+|w\+|D\+|D4\+|url\+|img\+|id\+)/,"")}dv(){if(this.Jf>=this.Rk.length)return this.oy;var a=this.Rk[this.Jf];if(!e.ia(a)&&void 0!==this.Sr){if(a==this.fQ)return!0;if(a.split(this.ZI).length<this.Sr.length)for(var c=a.split(this.ZI).length;c<this.Sr.length;c++)a=a.concat(this.ZI);var d=[],g=[];a=a.split(this.ZI);
for(c=0;c<this.Sr.length;c++)this.SGa(a[c],c,d,g);this.rf.ra.insert(d,g)}this.oy&&200<u.Qf()-this.x$&&(c=e.model.B.j.gP,d=(this.Jf/this.Rk.length*100).toFixed(0),d=e.P.bind(e.model.B.j.hP,u.Yb.bz(this.Jf.toFixed(0)),u.Yb.bz(this.Rk.length.toFixed(0)),d),e.Ca(!0,c,d),this.x$=u.Qf());this.Rk[this.Jf]="";this.Jf++;return this.oy&&this.Jf>=this.Rk.length}SGa(a,c,d,g){var k=!0,m=this.rf.O.RC(this.Sr[c]);if(null!==this.Sr[c]){if(this.Ct[c]===l.i.input.sa.$c||this.Ct[c]===l.i.input.sa.fn||this.Ct[c]===l.i.input.sa.$g){if("^"===
a.charAt(0)){var n=parseInt(a.substring(1));!1===isNaN(n)&&(m=m.ya(n+1),null!=m&&(a=m.caption==e.model.B.j.zl?"":m.caption,k=!1))}}else if(this.Ct[c]==l.i.input.sa.Hf)"^"===a.charAt(0)&&(n=parseInt(a.substring(1)),!1===isNaN(n)&&(m=m.hierarchy.ya(n+1),null!=m&&(a=m.caption==e.model.B.j.zl?"":m.caption,k=!1)));else if(this.Ct[c]===l.i.input.sa.Sa||this.Ct[c]===l.i.input.sa.Dj||this.Ct[c]===l.i.input.sa.Bq||this.Ct[c]===l.i.input.sa.hp)a=1E3*parseInt(a),k=!1;k&&(a=this.vba(a));a=new l.O.ae({value:a});
this.rf.O.lc(a,this.Sr[c],this.Ct[c],d,g)}}vba(a){return a.replace(this.RHa,",").replace(this.THa,'"').replace(this.SHa,"\n")}Iz(){e.Ca(!1);this.FY?this.Nb():(e.Za(e.model.B.j.xv,e.model.B.j.Aa,e.xb.vl),this.ab(),this.nQ=null);this.clear()}iEa(){e.Ca(!1);e.Za(e.P.bind(e.model.B.j.coa,this.gY),e.model.B.j.Aa,e.xb.Aa);this.ab();this.clear()}clear(){e.Ca(!1);this.Rk=[];this.fQ=this.Tr="";this.Pi=0;this.BY=!1;this.Pq=0;this.Ct=[];this.AY=this.DY=this.oy=this.FY=!1;this.py="";this.Jf=0;this.Ar=100;null!=
this.qm&&(this.qm.Yd(),this.qm.dispose(),this.qm=null);this.rg()}Nb(){null!=this.iZ&&this.iZ()}ab(a){null!=this.nQ&&this.nQ(a)}gl(){}Bk(){}Cz(){}nq(){}ZB(){return!1}cancel(){this.clear();this.Oe=this.ab=this.Nb=null}}f.Doa=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.$O{constructor(){super();this.wI=this.mua=!1;this.Da=l.i.qa.JSON}get nb(){return e.ia(this.filename)&&(null==this.Td||0==this.Td)&&e.v(this.data)}set nb(a){}get Mu(){return!e.v(this.data)}set Mu(a){}isEqual(a){return a==this?!0:super.isEqual(a)&&e.v(a.data)}static zb(a){var c=new b;e.v(a.browseForFile)||(c.Td=a.browseForFile);e.v(a.requestPermission)||(c.requestPermission=a.requestPermission);e.ia(a.filename)||(c.filename=a.filename);
e.v(a.data)||(c.data=a.data);e.v(a.checkUpdates)||(c.mua=a.checkUpdates);e.v(a.requestHeaders)||(c.sc=a.requestHeaders);e.v(a.mapping)||(c.mapping=a.mapping instanceof l.O.km?a.mapping:new l.O.km(a.mapping));e.v(a.useStreamLoader)||(c.wI=a.useStreamLoader);e.v(a.withCredentials)||(c.withCredentials=a.withCredentials);return c}static wk(a){var c=new b;0!=a.find("browseForFile").length&&(c.Td=e.P.Zc(a.find("browseForFile").text()));0!=a.find("filename").length&&(c.filename=a.find("filename").text());
return c}Yo(a=!1){var c=z.ba.create("<dataSource/>");c.attr("type",this.Da);(a||this.Td)&&c.append(z.ba.create("<browseForFile/>").text(this.Td));this.filename&&c.append(z.ba.create("<filename/>").append(z.ba.Vh(this.filename)));return c}Qa(a=!1){var c={};c.type=this.Da;if(a||this.Td)c.browseForFile=this.Td;this.filename&&(c.filename=this.filename);e.v(this.data)||(c.data=this.data);if(!this.mapping.nb||this.mapping.Jo)c.mapping=this.mapping.Qa(!0);if(a||this.wI)c.useStreamLoader=this.wI;if(a||this.withCredentials)c.withCredentials=
this.withCredentials;return c}clone(){var a=new b;a.Da=this.Da;this.Td&&(a.Td=this.Td);this.filename&&(a.filename=this.filename);e.v(this.data)||(a.data=this.data);if(!this.mapping.nb||this.mapping.Jo)a.mapping=this.mapping.clone(this.Da);this.withCredentials&&(a.withCredentials=this.withCredentials);a.wI=this.wI;return a}}f.TO=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.GW{constructor(){super();this.LI=6553600;this.xz=!0;this.Q3=()=>this.PFa();this.isArray=!1;this.xj=this.hN=0;this.l0=[".js",".json"]}load(a,c,d,g,k){this.clear();this.uC=this.zG=this.uo=null;this.xj=0;this.xz=!0;this.Nb=c;this.ab=d;this.Oe=g;this.nG=k;!0===a.Td?this.Aaa(a):void 0!==a.filename&&""!=a.filename&&"()"!=a.filename.substr(-2)?super.load(a,c,d,g,k):(this.Go=!0,this.AK(a.data))}PFa(){if(!(e.v(this.oa)||e.v(this.oa.response)||
!this.xz&&this.oa.response.length<this.LI/100)){var a=this.oa.response.substr(this.di,this.LI);this.pr(a);this.di+=a.length}}ZM(a){var c=a.data;if(404==c.target.status)this.$l(a);else if(!e.v(this.oa)&&!e.v(this.oa.response))try{if(0!==this.oa.response.length&&(this.nk!=c.loaded||this.vC!=this.oa.response.length)){this.uM=0<c.total&&c.lengthComputable;this.vC=this.oa.response.length;this.nk=c.loaded;this.Go=c.loaded==c.total;var d=0==c.total?e.P.bind(e.model.B.j.jm,u.Yb.Og(c.loaded)):e.P.bind(e.model.B.j.eF,
u.Yb.Og(c.loaded),u.Yb.Og(c.total),(c.loaded/c.total*100).toFixed(0));e.Ca(!0,e.model.B.j.bg,d);this.uM&&c.total<5*this.LI||u.Kd().Xi?this.xz=!0:this.Ru||(this.xz=!1,this.Q3())}}catch(g){console.error(g.stack),this.$l()}}YM(){if(!e.v(this.oa)&&!e.v(this.oa.response))try{if(this.Go=!0,0==this.di||!this.Ru||this.xz){var a=this.oa.response;e.ia(a)&&!this.Ru?this.HU():this.pr(a);this.oa=null}}catch(c){console.error(c.stack),this.$l()}}pr(a){try{if(!this.xz){if(0==a.length){this.Go?this.AK([]):e.Ce(this.Q3,
100);return}a=this.HZ(a)}var c=JSON.parse(a);e.v(c.items)||(c=c.items);if(e.v(c.length)){this.$M();return}}catch(d){this.$M();return}this.AK(c)}HZ(a){void 0!==this.pe&&0<this.pe.length&&(a=this.pe+a);a=a.trim();if("["===a[0]){a=a.substr(1).trim();var c=a[0];a="["!==c&&"{"!==c?"["+a:a}else c=a.trim(),"]"===c[c.length-1]&&(c=c.slice(0,-1).trim(),a=c[c.length-1],a="]"!==a&&"}"!==a?c+"]":c);c=a.lastIndexOf("},");var d=a.lastIndexOf("],");e.ia(this.pe)&&-1===c&&-1===d?a="["+a:(c=c<d?d:c,this.pe=a.substr(c+
2),a="["+a.substr(0,c+1)+"]");return a}AK(a){e.v(a.items)||(a=a.items);(e.v(a)||1>a.length)&&!e.model.C.F.pE?!this.Ru&&this.Go&&this.HU():Array.isArray(a)?(this.Ru?this.data=this.data.concat(a.slice()):(this.Ru=!0,this.Vs(),(this.isArray=!e.v(a[1])&&Array.isArray(a[1]))&&this.aJa(a[0]),a[0]&&Array.isArray(a[0])?this.RD(a[0],a[1],this.xa.ga.mapping):this.xa.ga.mapping.uea?this.xa.O.bR(this.xa.ga.mapping,a[0]):this.xa.O.bR(a[0],a[1]),this.data=a.slice(),(l.O.km.UT(a[0])||this.isArray)&&this.data.shift()),
0==this.data.length?this.xz?this.SH():this.Iz(!0):this.xz?u.Cl.eo({Uo:()=>this.dv(),$e:()=>this.SH()}):this.AM||u.Cl.eo({Uo:()=>this.dv(),$e:()=>this.Iz()})):e.Za(e.model.B.j.sJ,e.model.B.j.Aa)}Iz(a=!1){a||e.v(this.oa)||!(this.oa.response.length>this.di)&&this.Go?(this.Ru?(e.ia(this.pe)||("]"==this.pe.substr(-1)&&(this.pe=this.pe.substr(0,this.pe.length-1).trim(),a=this.pe.substr(this.pe.length-1),this.pe="]"!=a&&"}"!=a?this.pe+"]":this.pe),a=JSON.parse(this.pe),this.data.push(a),this.dv()),null!=
this.Nb&&(this.clear(),this.Nb())):(e.Za(e.model.B.j.xv,e.model.B.j.Aa,e.xb.vl),null!=this.ab&&(this.ab(e.model.B.j.xv),this.ab=null)),this.clear()):e.Ce(this.Q3,1)}Qd(a){if(!(e.v(a)||1>a.length)){this.xa.ra.Bua();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)}}SH(){this.data=null;e.Ca(!1);e.Fg(this.Nb)&&this.Nb();this.clear()}X0(){return u.Kd().Xi?0==this.data.length?e.P.bind(e.model.B.j.yX,this.xj):e.P.bind(e.model.B.j.hP,this.xj,
this.data.length,(this.xj/this.data.length*100).toFixed(0)):0!=this.nk?e.P.bind(e.model.B.j.eF,u.Yb.Og(this.di),u.Yb.Og(this.nk),(this.di/this.nk*100).toFixed(0)):0==this.nk&&0<this.data.length?e.P.bind(e.model.B.j.hP,this.xj,this.data.length,(this.xj/this.data.length*100).toFixed(0)):e.P.bind(e.model.B.j.jm,u.Yb.Og(this.di))}dv(){if(0===this.xj%100&&200<u.Qf()-this.hN){var a=e.model.B.j.gP,c=this.X0();1==this.Go&&e.Ca(!0,a,c);this.hN=u.Qf()}if(this.xj>=this.data.length)return!0;e.v(this.data[this.xj])||
this.insertData(this.data[this.xj],!1,this.isArray);this.xj++;return this.xj>=this.data.length}y4(){this.uo=this.xa.O.G0(!1);this.zG=[];for(var a=0;a<this.uo.length;a++)this.zG[a]=this.xa.O.TC(this.uo[a]);this.xa.ra.ZH()}aJa(a){this.uC=new e.tb;if(Array.isArray(a))for(var c=0;c<a.length;c++)this.uC.Ta(a[c],c);else{c=0;for(let d in a)a.hasOwnProperty(d)&&(e.v(a[d])||e.ia(a[d].uniqueName)?this.uC.Ta(d,c):this.uC.Ta(a[d].uniqueName,c),c++)}}insertData(a,c,d){null===this.uo&&this.y4();var g=[],k=[],m=
!1,n=new Map;if(c){var p=this.xa.O.$R;""!==p&&(d?(m=this.uC.getItem(p),m=!e.v(a[m])):m=!e.v(a[p]))}for(var t=0;t<this.uo.length;t++){p=this.uo[t];var r=this.zG[t];if(d){var w=this.uC.getItem(p);var y=a.hasOwnProperty(""+w);w=a[w]}else y=a.hasOwnProperty(p),w=a[p];if(r!==l.i.input.sa.iF)if(r===l.i.input.sa.Rx)var A=w;else if(!m){var C=void 0;this.xa.O.l1&&(C=this.M0(a,p,d));y=y?new l.O.ae({Ue:C,value:w,caption:""+w}):new l.O.ae({Ue:C});r===l.i.input.sa.Hf&&(w=this.xa.O.RC(p),w=w.hierarchy.ta.ea(w.wb-
1).A,n.has(w)?y.parent=n.get(w):void 0!==a[w]&&(y.Bi=a[w]));n.set(p,this.xa.O.lc(y,p,r,g,k))}}c?m?this.xa.ra.Iwa(A):this.xa.ra.update(g,k,A):this.xa.ra.insert(g,k,A)}M0(a,c,d=!1){var g=void 0;(c=this.xa.O.ada(c))&&0<c.length&&c.forEach(k=>{if(d){var m=this.uC.getItem(k);m=a[m]}else m=a[k];e.v(m)||(e.v(g)&&(g={}),g[k]=m)});return g}$M(){e.Za(e.model.B.j.sJ,e.model.B.j.Aa);e.Ca(!1);e.Fg(this.ab)&&this.ab(e.model.B.j.sJ);this.Nb=this.ab=null;this.clear()}HU(){e.model.C.F.pE||e.Za(e.model.B.j.xv,e.model.B.j.Aa,
e.xb.vl);e.Ca(!1);e.Fg(this.ab)&&this.ab(e.model.B.j.xv);this.Nb=this.ab=null;this.clear()}}f.Rma=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.NY=null;this.Jf=0;this.Nr=this.hQ=this.Rk=null;this.qf=0}getData(c){this.D9=c;e.Ca(!0,e.model.B.j.n8);this.CHa();this.GR()}CHa(){this.Nr=l.Ra.V().O.wc();this.NY={};this.pm=[];for(this.qf=0;this.qf<this.Nr.length;){var c=this.Nr.ea(this.qf);var d=l.Ra.V().O.cf(c.A).type;d!=l.i.Pa.xc&&d!=l.i.Pa.Sa?this.IHa(l.Ra.V().O.cf(c.A)):this.GHa(c);this.qf++}this.Kua(this.pm)}Kua(c){for(var d,g=0;g<c.length;g++)d={},c[g].type!=l.i.input.sa.Hf&&
(d.caption=c[g].caption),d.type=c[g].type,c[g].type==l.i.input.sa.Hf&&this.gHa(c[g],d),this.NY[c[g].A]=d}gHa(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)}GR(){this.Jf=0;this.Rk=[];this.Rk.push(this.NY);this.co=l.Ra.V().ra.kM();u.Cl.eo({Uo:()=>this.jva(),$e:()=>this.rEa()})}jva(){var c=u.Qf();this.hQ=[];this.gk=this.qf=0;for(var d=this.co&&this.co[0]?this.co[0].length:0;this.Jf<d;){for(this.hQ=[];this.qf+
this.gk<this.co.length&&this.qf<this.pm.length;)this.lc(this.lva()),this.qf++;this.Jf++;this.Rk.push(this.hQ);this.gk=this.qf=0;if(100<u.Qf()-c)break}this.AJa(this.Jf,d);return this.Jf>=d}GHa(c){var d=c.inputType;(d==l.i.input.sa.Hf||2<c.ta.length)&&d!=l.i.input.sa.Bq&&d!=l.i.input.sa.hp?this.HHa(c):d==l.i.input.sa.Sa?(this.pm.push(this.PR(d,c.si.caption,!1,c.si.A)),this.qf+=2):this.pm.push(this.PR(d,c.caption,!1,c.A))}HHa(c){c=c.ta;for(var d,g,k,m=1;m<c.length;m++){k=m;d=c.getItem(c.Jh(m));for(g=
d.caption;1<k;)k--,g=c.getItem(c.Jh(k)).A+":"+g;this.pm.push(this.PR(l.i.input.sa.Hf,d.caption,!1,g))}}lc(c){this.hQ.push(c)}lva(){var c=this.pm[this.qf].type;if(c!=l.i.input.sa.Sa)var d=this.Nr.getItem(this.pm[this.qf].A).ya(this.co[this.qf+this.gk][this.Jf]).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.fn||c==l.i.input.sa.$g)return null!=d&&d!=e.model.B.j.zl?d.toString():"";if(c==l.i.input.sa.Hf){c=this.Nr.getItem(this.pm[this.qf].caption);
for(var g=0;g<c.ta.length-2;g++)this.lc(d),this.pm[this.qf],this.qf++,d=null==this.co[this.qf+this.gk][this.Jf]||""==this.co[this.qf+this.gk][this.Jf]+""?"":c.ya(this.co[this.qf+this.gk][this.Jf]).caption}else{if(c==l.i.input.sa.Dj)return this.Nr.getItem(this.pm[this.qf].caption).ya(this.co[this.qf+this.gk][this.Jf]).fc;if(c==l.i.input.sa.Sa)return d="",c=this.Nr.getItem(this.pm[this.qf].caption+".Year").ya(this.co[this.qf+this.gk][this.Jf]),d+=c.caption+"-",this.gk++,c=this.Nr.getItem(this.pm[this.qf].caption+
".Month").ya(this.co[this.qf+this.gk][this.Jf]),d+=e.model.B.j.Hr.indexOf(c.caption)+1+"-",this.gk++,c=this.Nr.getItem(this.pm[this.qf].caption+".Day").ya(this.co[this.qf+this.gk][this.Jf]),d+=c.caption;if(c==l.i.input.sa.Bq||c==l.i.input.sa.hp)return this.cva(c);if(c==l.i.input.sa.Jc||c==l.i.input.sa.dc)return this.Nr.getItem(this.pm[this.qf].A).ya(this.co[this.qf+this.gk][this.Jf]).fc}return d}rEa(){e.Ca(!1);null!=this.D9&&this.D9(this.Rk)}cva(c){this.gk+=2;this.gk=c==l.i.input.sa.hp?this.gk+1:
this.gk;return this.Nr.getItem(this.pm[this.qf].caption).cM(this.co[this.qf+this.gk][this.Jf])}IHa(c){this.pm.push(this.PR(l.i.Pa.wE(c.type),c.kl,!0,c.A))}AJa(c,d){c=e.P.bind(e.model.B.j.a8,(c/d*100).toFixed(0));e.Ca(!0,e.model.B.j.n8,c)}PR(c,d,g=!1,k){var m=new a;m.caption=d;m.type=c;m.ng=g;m.A=k;return m}}f.mX=b;class a{constructor(){}get type(){return this.yg}set type(c){this.yg=c}get caption(){return this.vc}get ng(){return this.Bra}set ng(c){this.Bra=c}set caption(c){this.vc=c}get A(){return this.vK}set A(c){this.vK=
c}}f.ELa=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.Spa{constructor(){super(...arguments);this.xj=this.hN=0;this.uo=null;this.isArray=this.S1=this.XT=!1}load(a,c,d,g,k){this.clear();this.Nb=c;this.ab=d;this.Oe=g;this.nG=k;this.ma=a;this.filename=a.filename;!e.ia(this.filename)&&"()"!=this.filename.substr(-2)||!1!==a.Td?(this.filename=u.ey.sH(this.filename,!e.model.C.F.hR),e.Ca(!0,e.model.B.j.bg),this.JN(this.filename,a.sc)):this.m3()}kEa(){e.Ca(!0,e.model.B.j.bg,"")}qFa(a){a=0==
a.total?e.P.bind(e.model.B.j.jm,u.Yb.Og(a.loaded)):e.P.bind(e.model.B.j.eF,u.Yb.Og(a.loaded),u.Yb.Og(a.total),(a.loaded/a.total*100).toFixed(0));e.Ca(!0,e.model.B.j.bg,a)}m3(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.jP,d).replace(/'/g,""));0==this.S1&&(this.S1=!0,a=e.model.Tb.valid(this.filename)?this.filename:e.model.Tb.validate(this.filename),
e.Za(e.P.bind(e.model.B.j.uJ,a)+d,e.model.B.j.Aa,e.xb.Aa));null!=this.ab&&(this.ab(c),this.ab=null);this.rg()}YFa(a,c,d){try{const g=d?JSON.parse(a):JSON.parse(this.HZ(a));Array.isArray(g)?(this.AK(g),u.Cl.eo({Uo:()=>this.dv(),$e:c})):this.$M()}catch(g){this.$M()}}HZ(a){void 0!==this.pe&&0<this.pe.length&&(a=this.pe+a);a=a.replace(/^\s+/,"");if("["==a[0]){a=a.substr(1).replace(/^\s+/,"");var c=a[0];a="["!=c&&"{"!=c?"["+a:a}else c=a.replace(/\s+$/,""),"]"==c[c.length-1]&&(c=c.substr(0,c.length-1).replace(/\s+$/,
""),a=c[c.length-1],a="]"!=a&&"}"!=a?c+"]":c);c=a.lastIndexOf("},");var d=a.lastIndexOf("],");c=c<d?d:c;this.pe=a.substr(c+2);return a="["+a.substr(0,c+1)+"]"}AK(a){e.v(a.items)||(a=a.items);(e.v(a)||1>a.length)&&!e.model.C.F.pE?!this.XT&&this.ST&&this.HU():Array.isArray(a)?(this.XT?this.data=this.data.concat(a.slice()):(this.XT=!0,this.Vs(),this.fe=l.Ra.V().O,this.ra=l.Ra.V().ra,this.isArray=a[1]&&Array.isArray(a[1]),this.ma.mapping.nb?a[0]&&Array.isArray(a[0])?this.RD(a[0],a[1]):this.fe.bR(a[0]):
this.fe.bR(this.ma.mapping.Qa()),this.data=a.slice(),(l.O.km.UT(a[0])||this.isArray)&&this.data.shift()),0==this.data.length&&this.SH()):e.Za(e.model.B.j.sJ,e.model.B.j.Aa)}RD(a,c){try{var d=e.v(c)?[]:c;this.Bm=[];for(c=0;c<a.length;c++){var g=this.NS(d[c]),k=this.Hw(a[c],g,0==d.length),m=this.R0(a[c],g,0==d.length),n=this.SL(a[c]),p=this.QL(n),t={type:k,uniqueName:n,caption:p,isMeasure:m};if(!t.hasOwnProperty("visible")||!1!==t.visible){this.jC[c]=t.type;this.Se[c]=t.isMeasure;this.Bm[c]=n;if(k===
l.i.input.sa.Hf){var r=n.split(":");t.hierarchy=r[0];t.level=r.pop();t.parent=r.join(":")}this.fe.sy(t,n)}}}catch(w){console.error(w.stack),this.Y2()}}Y2(){e.Ca(!1);e.Za(e.P.bind(e.model.B.j.h8),e.model.B.j.Aa,e.xb.Aa)}NS(a){void 0!==a&&null!==a&&"string"==typeof a&&(a=a.replace(",","."));return a}SL(a){a=a.trim();if(-1<this.Bm.indexOf(a)){for(var c=1,d=a;-1<this.Bm.indexOf(d);)d=a+c,c++;a=d}return a}QL(a){return this.nz(a)?(a=a.split(":"),a[a.length-1]):a}R0(a,c,d){return!e.model.C.F.Je||e.v(c)&&
!d?!1:"-"===a.trim().charAt(0)}Hw(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.dc:"dt+"===a.substr(0,3)?g=l.i.input.sa.Jc:"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.Dj:"d+"===a.substr(0,2)?g=l.i.input.sa.Sa:"m+"===a.substr(0,2)?g=l.i.input.sa.$g:"w+"===a.substr(0,2)?g=l.i.input.sa.fn:"D+"===a.substr(0,2)?g=l.i.input.sa.Bq:"D4+"===
a.substr(0,3)?g=l.i.input.sa.hp:"id+"===a.substr(0,3)?g=l.i.input.sa.Rx:""==c||void 0===c?g=l.i.input.sa.$c:isNaN(Number(c))&&(g=e.P.HT(c)?e.model.C.F.qL:l.i.input.sa.$c);g===l.i.input.sa.$c&&this.nz(a)&&(g=l.i.input.sa.Hf);return g}nz(a){"+"===a.charAt(0)&&(a=a.substr(1));return 1<a.split(":").length&&-1<this.Bm.indexOf(a.split(":")[0].trim())}dv(){if(0===this.xj%100&&200<u.Qf()-this.hN){var a=e.model.B.j.gP,c=this.X0();1==this.ST&&e.Ca(!0,a,c);this.hN=u.Qf()}if(this.xj>=this.data.length)return!0;
e.v(this.data[this.xj])||this.insertData(this.data[this.xj],this.isArray);this.data[this.xj]=void 0;this.xj++;return this.xj>=this.data.length}y4(){this.uo=this.fe.G0(!1);this.zG=[];for(var a=0;a<this.uo.length;a++)this.zG[a]=this.fe.TC(this.uo[a]);this.ra.ZH()}insertData(a,c){null===this.uo&&this.y4();for(var d,g,k=[],m=[],n,p,t,r=0;r<this.uo.length;r++)if(d=this.uo[r],g=this.zG[r],c?(t=a.hasOwnProperty(""+r),p=a[r]):(t=a.hasOwnProperty(d),p=a[d]),g!==l.i.input.sa.iF)if(g===l.i.input.sa.Rx)n=p;else{var w=
void 0;this.fe.l1&&(w=this.M0(a,d,c));p=t?new l.O.ae({Ue:w,value:p,caption:String(p)}):new l.O.ae({Ue:w});g===l.i.input.sa.Hf&&(t=this.fe.RC(d),t=t.hierarchy.ta.ea(t.wb-1).A,p.Bi=a[t]);this.fe.lc(p,d,g,k,m)}this.ra.insert(k,m,n)}M0(a,c,d=!1){var g=void 0;(c=this.fe.ada(c))&&0<c.length&&c.forEach(k=>{var m=d?a[this.uo.indexOf(k)]:a[k];e.v(m)||(e.v(g)&&(g={}),g[k]=m)});return g}X0(){return e.P.bind(e.model.B.j.Nna,u.Yb.bz(this.xj.toString()),(this.YB/this.TK*100).toFixed(0))}SH(){this.data=null;e.Ca(!1);
e.Fg(this.Nb)&&this.Nb();this.clear()}Vs(){null!=this.Oe&&(this.Oe(),this.Oe=null)}XFa(){e.Ca(!1);if(this.XT){if(!e.ia(this.pe)){if("]"==this.pe.substr(-1)){this.pe=this.pe.substr(0,this.pe.length-1).trim();var a=this.pe.substr(this.pe.length-1);this.pe="]"!=a&&"}"!=a?this.pe+"]":this.pe}a=JSON.parse(this.pe);this.data.push(a);this.dv()}null!=this.Nb&&(this.clear(),this.Nb())}else e.Za(e.model.B.j.xv,e.model.B.j.Aa,e.xb.vl),null!=this.ab&&(this.ab(),this.ab=null);this.clear()}$M(){e.Za(e.model.B.j.sJ,
e.model.B.j.Aa);e.Ca(!1);e.Fg(this.ab)&&this.ab();this.Nb=this.ab=null;this.clear()}HU(){e.model.C.F.pE||e.Za(e.model.B.j.xv,e.model.B.j.Aa,e.xb.vl);e.Ca(!1);e.Fg(this.ab)&&this.ab();this.Nb=this.ab=null;this.clear()}clear(){this.data=[];this.nk=0;this.jC=[];this.Se=[];this.S1=!1;this.pe="";null!=this.oa&&(this.oa.Yd(),this.oa.dispose(),this.oa=null);this.rg()}cancel(){this.clear();this.Oe=this.ab=this.Nb=null}gl(){throw Error("Method not implemented.");}Bk(){throw Error("Method not implemented.");
}Cz(){throw Error("Method not implemented.");}nq(){throw Error("Method not implemented.");}ZB(){throw Error("Method not implemented.");}}f.Sma=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.W5{ZH(){this.$Z();const b=[];for(var a=this.slice.wc(!1),c=0;c<a.length;c++){const g=a.ea(c);this.um(g.A,g.A);e.model.C.F.rc&&this.un(this.xa.O.cf(g.A));for(var d=1;d<g.ta.length;d++){const k=g.ta.ea(d);this.um(k.A,g.A)}}a=e.u.i.qa.Tc===this.xa.ga.Da?this.Mxa(this.slice.Kf):this.slice.Kf;for(c=0;c<a.length;c++)this.un(a[c],b);if(e.u.i.qa.Tc===this.xa.ga.Da)for(c=0;c<a.length;c++)d=a[c],d.Na&&(this.vy(d.A,d.xm),this.BK(d));this.slice.Zz(b)}Mxa(b){const a=
[],c={};if(void 0!==b){let k,m,n;for(var d=0;d<b.length;d++){var g=b[d].aa;k=b[d].A;m=b[d].hidden;void 0===c[k+"_"+g]?(n=a.length,c[k+"_"+g]={ED:n,xea:m},a.push(b[d])):(g=c[k+"_"+g],g.xea&&!m&&(a.splice(g.ED,1),g.ED=a.length,g.xea=b[d].hidden,a.push(b[d])))}}return a}Zh(b,a,c){let d,g;"string"!==typeof b?(d=b.A,g=l.i.da.GM(b.aa)?b.aa:b.xm):d=b;e.v(a)||(g=a);return super.Zh(d,g,c)}un(b,a){b&&(e.u.i.qa.Tc===this.xa.ga.Da&&b.Na||(this.vy(b.A,b.xm),l.i.da.GM(b.aa)&&this.vy(b.A,b.aa),this.BK(b)),b.Na&&
this.O$(b,this.slice.Yc.Ba,a),void 0!==a&&a.push(b))}O$(b,a,c){if((a=u.nt.bM(b.Xd,a))&&0<a.length)for(let k=0;k<a.length;k++){var d=a[k],g=this.xa.O.gd(d.A);if(null!=g){let m=this.slice.vi(d);if(null==m){m=g.clone();m.aa=d.aa;d=m.hidden=!0;if(void 0!==c)for(g=0;g<c.length;g++)c[g].A===m.A&&(m.aa===l.i.da.NONE||c[g].aa===b.aa&&c[g].xm===b.xm)&&(d=!1);d&&(c.push(m),this.BK(m),this.vy(m.A,m.xm),l.i.da.GM(m.aa)&&this.vy(m.A,m.aa))}}}}UB(b){return this.xa.ga.Da==l.i.qa.ag&&b&&0==this.xa.ga.mapping.Ha(b.A,
"min_doc_count")}gG(b){return this.xa.ga.Da==l.i.qa.ag&&b&&0==this.xa.ga.mapping.Ha(b.A,"min_doc_count")}}h.WW=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.Eb||(Ma.Eb={});class Oa{}Oa.NONE=0;Oa.FW=1;Oa.JX=2;Oa.OX=3;Oa.KI=4;Oa.NW=5;Na.Gj=Oa;
(function(e){(function(l){(function(h){(function(f){class b extends l.O.km{constructor(a=null){super(a)}}f.qP=b})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.kt{constructor(){super(...arguments);this.wn=!1;this.oj=this.uj=this.Hk=this.hf=this.We=this.rf=this.E9=this.Wh="";this.mapping=new f.qP;this.Fx=!0;this.Lv="";this.version=0}get Be(){return this.E9}set Be(a){a=a.replace("[","");this.E9=a=a.replace("]","")}get xa(){return this.rf}set xa(a){a=a.replace("[","");this.rf=a=a.replace("]","")}get Cm(){return this.Da!=l.i.qa.Tc?"":""==this.Lv&&null!=this.credentials&&this.credentials.Lm?
"credentials="+this.credentials.hash:this.Lv}set Cm(a){this.Lv=a}get DM(){return this.wn}get nb(){return e.ia(this.hf)}set nb(a){}get Mu(){return!1}set Mu(a){}get AH(){return!1}get KT(){return this.Da!=l.i.qa.le||this.DM?!0:!1}get JT(){return this.Da==l.i.qa.Tc&&this.DM}isEqual(a){return super.isEqual(a)&&this.hf===a.hf&&this.Be===a.Be&&this.xa===a.xa&&this.Wh===a.Wh&&this.wn===a.wn&&this.We===a.We&&this.mapping.isEqual(a.mapping)&&this.Fx===a.Fx&&(this.Da!=l.i.qa.le?this.We===a.We:!0)&&(this.Da===
l.i.qa.Tc?this.uj===a.uj:!0)&&(this.Da===l.i.qa.Tc?this.oj===a.oj:!0)&&(this.Da===l.i.qa.Tc?this.Cm===a.Cm:!0)}static zb(a){var c=new b;e.v(a.dataSourceType)||(c.Da=a.dataSourceType);e.v(a.dataSourceInfo)||(c.Wh=a.dataSourceInfo);e.v(a.catalog)||(c.Be=a.catalog);e.v(a.cube)||(c.xa=a.cube);e.v(a.roles)||(c.Hk=a.roles);e.v(a.proxyUrl)||(c.hf=a.proxyUrl);e.v(a.localeIdentifier)||(c.uj=a.localeIdentifier);e.v(a.subquery)||(c.We=a.subquery);e.v(a.effectiveUserName)||(c.oj=a.effectiveUserName);e.v(a.customData)||
(c.Cm=a.customData);e.v(a.binary)||(c.wn=a.binary);e.v(a.requestHeaders)||(c.sc=a.requestHeaders);e.v(a.mapping)||(c.mapping=a.mapping instanceof f.qP?a.mapping:new f.qP(a.mapping));e.v(a.useGranularityNamesForDateFilters)||(c.Fx=a.useGranularityNamesForDateFilters);c.credentials=f.cj.r9.zb(a);e.v(a.withCredentials)||(c.withCredentials=a.withCredentials);return c}static wk(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.qa.Tc);d&&-1<d.indexOf("pentaho")&&
(d=l.i.qa.le);if(!l.i.qa.valid(d)){var g=a.find("proxyUrl");0<g.length&&0<g.text().length&&(d=l.i.qa.Tc)}c.Da=d;0!=a.find("dataSourceInfo").length&&(c.Wh=a.find("dataSourceInfo").text());0!=a.find("catalog").length&&(c.Be=a.find("catalog").text());0!=a.find("cube").length&&(c.xa=a.find("cube").text());0!=a.find("subquery").length&&(c.We=a.find("subquery").text());0!=a.find("roles").length&&(c.Hk=a.find("roles").text());0!=a.find("proxyUrl").length&&(c.hf=a.find("proxyUrl").text());0!=a.find("localeIdentifier").length&&
(c.uj=a.find("localeIdentifier").text());0!=a.find("effectiveUserName").length&&(c.oj=a.find("effectiveUserName").text());0!=a.find("customData").length&&(c.Cm=a.find("customData").text());0!=a.find("binary").length&&(c.wn=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.cj.r9.zb(d));return c}Yo(a=!1){var c=z.ba.create("<dataSource/>");c.attr("type",this.Da);switch(this.Da){case l.i.qa.Tc:(a||""!=this.uj)&&c.append(z.ba.create("<localeIdentifier/>").text(this.uj)),(a||""!=this.oj)&&c.append(z.ba.create("<effectiveUserName/>").text(this.oj)),(a||""!=this.Lv)&&c.append(z.ba.create("<customData/>").text(this.Lv));case l.i.qa.le:c.append(z.ba.create("<proxyUrl/>").append(z.ba.Vh(this.hf))),
(a||""!=this.Wh)&&c.append(z.ba.create("<dataSourceInfo/>").text(this.Wh)),c.append(z.ba.create("<catalog/>").text(this.Be)),c.append(z.ba.create("<cube/>").text(this.xa)),c.append(z.ba.create("<binary/>").text(this.wn)),(a||""!=this.Hk)&&c.append(z.ba.create("<roles/>").text(this.Hk)),this.credentials&&this.credentials.Lm&&(a=z.ba.create("<hash/>").text(this.credentials.hash),c.append(z.ba.create("<credentials/>").append(a)))}return c}Qa(a=!1){var c={};c.type=this.Da;switch(this.Da){case l.i.qa.Tc:if(a||
""!=this.uj)c.localeIdentifier=this.uj;if(a||""!=this.oj)c.effectiveUserName=this.oj;if(a||""!=this.Lv)c.customData=this.Lv;if(a||this.withCredentials)c.withCredentials=this.withCredentials;if(a||1!=this.Fx)c.useGranularityNamesForDateFilters=this.Fx;case l.i.qa.le:c.proxyUrl=this.hf;if(a||""!=this.Wh)c.dataSourceInfo=this.Wh;c.catalog=this.Be;c.cube=this.xa;c.binary=this.wn;if(a||""!=this.Hk)c.roles=this.Hk;this.credentials&&this.credentials.Lm&&(c.credentials={hash:this.credentials.hash})}if(!this.mapping.nb||
this.mapping.Jo)c.mapping=this.mapping.Qa(!0);return c}clone(){var a=new b;a.Da=this.Da;switch(this.Da){case l.i.qa.Tc:""!==this.uj&&(a.uj=this.uj),""!==this.oj&&(a.oj=this.oj),""!==this.Lv&&(a.Cm=this.Lv),this.withCredentials&&(a.withCredentials=this.withCredentials),1!=this.Fx&&(a.Fx=this.Fx);case l.i.qa.le:a.hf=this.hf,""!==this.Wh&&(a.Wh=this.Wh),a.Be=this.Be,a.xa=this.xa,a.wn=this.wn,""!==this.Hk&&(a.Hk=this.Hk),this.credentials&&this.credentials.Lm&&(a.credentials={hash:this.credentials.hash})}if(!this.mapping.nb||
this.mapping.Jo)a.mapping=this.mapping.clone(this.Da);return a}}b.sessionId=0;f.kp=b})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.WW{yT(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.ta[this.Ph[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.ta[this.lj[t]][c[t][0]]]=a[t]}c=this.ds(p,a);p=this.ub.length;void 0!==this.values[c]?p=this.Wxa(n):(this.rh.push(p),this.ub.push(n));0<g.length&&(n=k===l.i.ja.La?this.ld(g,this.Gd):this.ld(g,this.Ud),-1===n[0][0].indexOf(p)&&n[0][0].push(p),
m===l.i.Rd.KW&&(g=g.slice(0,-1),k=k===l.i.ja.La?this.ld(g,this.Gd):this.ld(g,this.Ud),-1===k[0][0].indexOf(p)&&k[0][0].push(p)));this.values[c]=d}Wxa(a){for(var c,d=0;d<this.ub.length;d++)if(a.length===this.ub[d].length){c=!0;for(var g=0;g<a.length;g++)if(a[g]!==this.ub[d][g]){c=!1;break}if(c)return d}return this.ub.length}Ha(a,c,d){var g=this.ds(a,c),k=this.Zh(d);void 0===this.values[g]&&(this.values[g]=[]);if(!e.model.C.F.bu||!d.Na)return e.v(this.values[g][k])?NaN:this.values[g][k];if(void 0==
this.values[g][k]){var m=this.ld(a,this.Gd),n=this.ld(c,this.Ud);if(void 0===m||void 0===m[0]||void 0===n||void 0===n[0])return NaN;a=this.dr([g],d.Xd,d.cl,0,a,c,d.ho);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]}mB(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.ub[g[k]][this.ta[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.sg.length]=!0:a[0][3][this.Zh(d)]=!0;a[0][5]=!0}}kQ(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.ub[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.Pl[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.sg.length]=!0:c[0][4][this.Zh(k)]=!0}Ao(a,c,d){for(var g=0;g<c.length;g++){var k=c[g],m=d[g];
if(e.model.C.F.kT){var n=this.slice.wc().getItem(this.xe[m]),p=n.ya(k);e.v(n.kz)||e.v(this.ta)||e.v(d[g])||e.v(this.ta[d[g]])||(m=this.ta[d[g]][p.level.wb])}m=e.v(this.Pl[m])||e.v(this.Pl[m][k])?m:this.Pl[m][k];n=[];for(p=0;p<a.length;p++)this.ub[a[p]][m]===k&&n.push(a[p]);a=n}return a}un(a,c){a&&super.un(a,c)}O$(a,c,d){a=u.nt.bM(a.Xd,c);for(var g=0;g<a.length;g++){var k=this.xa.O.gd(a[g].A);null==k||c.Hb(k.A)||(k.hidden=!0,d.push(k),this.BK(k),this.vy(k.A,k.xm),l.i.da.GM(k.aa)&&this.vy(k.A,k.aa))}}}
f.Eoa=b})(h.Eb||(h.Eb={}))})(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.Pja{constructor(c,d){super(c,d)}}b.x8=a})(f.O||(f.O={}))})(h.Eb||(h.Eb={}))})(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.Br{constructor(c,d=""){super(c,d)}get Zj(){return this.Na||this.Tg?[]:l.i.da.M5}set Zj(c){}get aa(){return""==this.fk?this.Wc[0]:this.fk}set aa(c){c&&c.toLowerCase()!=this.fk?(c=c.toLowerCase(),l.i.da.Ty(c)&&(c=l.i.da.cz(c)),l.i.da.HKa(c)||this.Na&&c==l.i.da.NONE?(this.Qv=void 0,this.fk=c,-1==this.Wc.indexOf(c)&&(this.fk=this.Wc[0])):this.qV()):""==c&&this.qV()}get hc(){return e.model.Tb.valid(this.vc)?this.vc:e.model.Tb.validate(this.vc)}get caption(){if(0==
e.model.C.F.xx)return this.hc;switch(this.aa){case l.i.da.Ir:return e.P.bind(e.model.B.j.FJ,this.hc);case l.i.da.lp:return e.P.bind(e.model.B.j.zJ,this.hc);case l.i.da.Hq:return e.P.bind(e.model.B.j.EJ,this.hc);case l.i.da.Fq:return e.P.bind(e.model.B.j.CJ,this.hc);case l.i.da.Gq:return e.P.bind(e.model.B.j.DJ,this.hc);case l.i.da.Ji:return e.P.bind(e.model.B.j.mJ,this.hc);case l.i.da.Rn:return e.P.bind(e.model.B.j.SI,this.hc);case l.i.da.an:return e.P.bind(e.model.B.j.TI,this.hc);case l.i.da.Wn:return e.P.bind(e.model.B.j.AJ,
this.hc);case l.i.da.cn:return e.P.bind(e.model.B.j.BJ,this.hc)}return this.hc}set caption(c){""==c.trim()?this.vc=e.model.B.j.zl:this.vc=c}get kl(){return this.hc}set kl(c){}clone(){var c=new a(this.A);this.iL(c);return c}}b.SA=a})(f.O||(f.O={}))})(h.Eb||(h.Eb={}))})(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.JI{get caption(){return this.hierarchy.XC(this.ordinal)}set caption(c){}get Oh(){return this.level.Nu?!0:this.hierarchy.FM||this.hierarchy.As||this.level.Nu?(this.Rg||!this.vf)&&0==this.children.length:!1}set Oh(c){}get qj(){return this.A}}b.y8=a})(f.O||(f.O={}))})(h.Eb||(h.Eb={}))})(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.it{constructor(c,d="",g=0){super(c,d,g)}}b.Hoa=a})(f.O||(f.O={}))})(h.Eb||(h.Eb={}))})(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.ht{constructor(c,d=""){super(c,d);this.A$=0}get Qm(){return this.A$}set Qm(c){this.Mh||(c+=1);this.A$=c}lc(c){c.A==this.Or&&(c.Zb=!0);return super.lc(c)}set wm(c){""!=c&&!e.v(c)||this.Se?this.Or=c:(this.Or=this.A+".[(All)]",this.Hh(new l.O.it(this.A,this.caption+" (All)")),this.lc(new l.O.ae({A:this.Or,caption:this.caption+" (All)",Zb:!0})),this.tB=!1)}get wm(){return this.Or}vm(c="(Total)"){if(this.Mh)return this.wm+
".["+c+"]";var d=this.ms.split("].");d.pop();d.push("["+c+"]");return d.join("].")}TV(c,d){var g=this.Hia(c.children);g=e.Fg(this.ex)?this.lia(g):this.eZ(g);for(var k=[],m=0;m<g.length;m++)if(k.push(g[m].ordinal),d&&!c.Oh){var n=this.Yj(g[m],d);0<n.length&&(k=k.concat(n))}return k}eZ(c){this.Zf===l.i.za.ic&&e.Ja.sort(c,e.Ja.Ki,d=>d.fc);this.Zf===l.i.za.Kc&&e.Ja.sort(c,e.Ja.ep|e.Ja.Ki,d=>d.fc);return c}wS(c){c=this.Jv.find(c);return this.ya(c)}YC(){return new b.y8(this)}}b.AX=a})(f.O||(f.O={}))})(h.Eb||
(h.Eb={}))})(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.pA{constructor(c,d=""){super(c,d)}}b.Foa=a})(f.O||(f.O={}))})(h.Eb||(h.Eb={}))})(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.yW{constructor(){super();this.VG=new b.Goa}vZ(c,d){this.e2.Ta(c.A,c);if(0==e.ia(c.value)){var g=new b.SA(c.value,this.hz(c.value,c.caption,e.model.B.j.O7,d));g.Dg=e.model.B.j.Sx;g.Mc=c.caption;g.type=l.i.Pa.jb;g.gr=c.A;this.lk(g)}0==e.ia(c.Ow)&&(g=new b.SA(c.Ow,this.hz(c.Ow,c.caption,e.model.B.j.K7,d)),g.Dg=e.model.B.j.Sx,g.Mc=c.caption,g.type=l.i.Pa.jb,g.gr=c.A,this.lk(g));0==e.ia(c.status)&&(g=new b.SA(c.status,
this.hz(c.status,c.caption,e.model.B.j.M7,d)),g.Dg=e.model.B.j.Sx,g.Mc=c.caption,g.type=l.i.Pa.jb,g.gr=c.A,g.uz=!0,this.lk(g));0==e.ia(c.Dx)&&(d=new b.SA(c.Dx,this.hz(c.Dx,c.caption,e.model.B.j.N7,d)),d.Dg=e.model.B.j.Sx,d.Mc=c.caption,d.type=l.i.Pa.jb,d.gr=c.A,d.vz=!0,this.lk(d))}bx(c,d=null,g=!1){var k=d?d:new b.SA(c.uniqueName);return super.bx(c,k,e.v(d)||g)}}b.Ioa=a})(f.O||(f.O={}))})(h.Eb||(h.Eb={}))})(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.wW{eH(c){var d=super.eH(c);c!=l.i.qb.NONE&&(d.gm=[l.i.yc.ck,l.i.yc.Hi]);return d}}b.Goa=a})(f.O||(f.O={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(){this.$x=20;this.hpa=RegExp("<Tuple>(.|\n|\r)*?</Tuple>","gi");this.fpa=RegExp("<Cell (.|\n|\r)*?</Cell>","gi");this.gpa=RegExp("<row>(.|\n|\r)*?</row>","g");this.N8=RegExp("<soap:Fault(.|\n|\r)*?</soap:Fault>","gi");this.M8=RegExp("<SOAP-ENV:Fault(.|\n|\r)*?</SOAP-ENV:Fault>","gi");this.ha=l.Ra.V();this.v5=!0;this.yB=!1;this.tl=()=>this.Ls();this.Cj=()=>this.fq();this.pca=()=>this.MEa();this.Oz=c=>this.eq(c);this.ab=
()=>this.Sb()}load(c,d,g){this.ga=c;this.ik=d;this.Jb=g;this.yB=!1;this.Zw()}bd(c,d,g,k,m,n){this.ga=c;this.ik=d;this.Jb=n;this.yB=!0;this.Zw()}Zw(){e.Ca(!0,e.model.B.j.bg,e.P.bind(e.model.B.j.qt,"0.5"));this.Qh();this.pD();b.dg.Ab=this.ga;this.oa.data=z.ba.Ic(b.dg.qw(this.ik.body));this.oa.load(this.ga.hf);this.timer=new u.wt(500,1E5);this.timer.N(u.pf.Al,this.tl);this.timer.N(u.pf.Bl,this.Cj);this.timer.start()}AL(){e.v(this.ga.withCredentials)||(this.oa.withCredentials=this.ga.withCredentials)}Qh(){this.oa=
new z.ek;this.oa.Kga=100;this.oa.contentType=z.yA.IP;this.oa.dataType=z.zA.ba;this.oa.rr=z.xt.zv;const c=JSON.parse(JSON.stringify(e.v(this.ga.sc)?{}:this.ga.sc));this.v5&&(c.Accept="application/xml");this.AL();this.ga.credentials&&this.ga.credentials.Lm&&(c.Authorization="Basic "+this.ga.credentials.hash,this.oa.withCredentials=!0);this.oa.Qh(c)}Ls(){null!=this.timer&&e.Ca(!0,e.model.B.j.bg,e.P.bind(e.model.B.j.qt,u.Yb.format(this.timer.tw/2,new e.model.ec.X.Gf,!1,!1,1)))}fq(){this.timer.pl&&e.Za("Can't connect to data source!",
e.model.B.j.Aa)}rg(){this.timer&&this.timer.pl&&(this.timer.stop(),this.timer.sb(u.pf.Al,this.tl),this.timer.sb(u.pf.Bl,this.Cj))}pD(){this.oa.N(v.fa.Oc,this.pca);this.oa.N(v.fa.ue,this.Oz);this.oa.N(v.fa.Aa,this.ab);this.Tj=f.Gj.NONE;this.ad=[];this.Lb=[];this.aC=[];this.BC=[];this.AC=[];this.KG=[];this.LY="";this.IQ=0;this.Ka=[];this.rows=[];this.Ba=[];this.wc=this.ha.O.wc();this.Kf=this.ha.ua.qr;this.vY=this.WF=!1;this.VD=this.UD=-1;this.Fc=[]}MEa(){var c=z.ba.Ic(z.ba.create(this.oa.response));
this.vY=!0;this.Nra(c)}eq(c){c=c.data;c.loaded!==this.nk&&(this.rg(),this.nk=c.loaded,this.P4(c.loaded))}Nra(c){this.Qd(c);!this.WF&&this.Tj>f.Gj.NONE&&this.RJa()}Qd(c){if(0!=c.length&&this.IQ!=c.length){var d=this.LY+c.substring(this.IQ);if(this.Tj===f.Gj.NONE){if(this.ga.Da==l.i.qa.Tc){if(this.N8.test(d)){this.ZGa(d.match(this.N8)[0]);this.kr();return}}else if(this.ga.Da==l.i.qa.le&&this.M8.test(d)){this.$Ga(d.match(this.M8)[0]);this.kr();return}var g=this.kW(d);-1<g&&(d=d.substr(g))}this.Tj==f.Gj.NW&&
(g=this.kW(d),0>g&&(g=d.lastIndexOf("</row>")+6),5!=g&&(this.zKa(d.substring(0,g),this.BC),d=d.substr(g)));this.Tj==f.Gj.FW&&(g=this.kW(d),0>g&&(g=d.lastIndexOf("</Tuple>")+8),7!=g&&(this.aja(d.substring(0,g),this.ad),d=d.substr(g)));this.Tj==f.Gj.JX&&(g=this.kW(d),0>g&&(g=d.lastIndexOf("</Tuple>")+8),7!=g&&(this.aja(d.substring(0,g),this.Lb),d=d.substr(g)));this.Tj==f.Gj.OX&&(g=d.indexOf("<CellData>"),-1<g&&(this.Tj=f.Gj.KI,d=d.substr(g)));this.Tj==f.Gj.KI&&(g=d.indexOf("</CellData>"),0>g&&(g=d.lastIndexOf("</Cell>")+
7),6!=g&&(this.xKa(d.substring(0,g),this.aC),d=d.substr(g)));this.IQ=c.length;this.LY=d}}$Ga(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.Za(c,e.model.B.j.Aa,e.xb.Aa))}ZGa(c){c=c.replace(/soap:Fault/gi,"Fault");c=z.ba.create(c);null!=c.find("faultstring")&&(c=c.find("faultstring").text(),e.Za(c,e.model.B.j.Aa,e.xb.Aa))}kW(c){var d=-1;if(this.yB&&this.Tj<f.Gj.NW){d=c.indexOf("<row>");this.Tj=
f.Gj.NW;if(-1<d)return d;e.Za("No data received from the server.",e.model.B.j.Aa)}if(this.Tj<f.Gj.FW&&(d=c.indexOf('<Axis name="Axis0">'),-1<d))return this.Tj=f.Gj.FW,d;if(this.Tj<f.Gj.JX&&(d=c.indexOf('<Axis name="Axis1">'),-1<d))return this.Tj=f.Gj.JX,d;if(this.Tj<f.Gj.OX&&(d=c.indexOf('<Axis name="SlicerAxis">'),-1<d))return this.Tj=f.Gj.OX,d;this.Tj<f.Gj.KI&&(d=c.indexOf("<CellData>"),-1<d&&(this.Tj=f.Gj.KI));return d}zKa(c,d){c=c.match(this.gpa);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))}}aja(c,d){c=c.match(this.hpa);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))}}xKa(c,d){c=c.match(this.fpa);if(!e.v(c)&&!e.v(d))for(var g=0;g<c.length;g++)e.v(c[g])||e.ia(c[g])||d.push(c[g])}RJa(){this.WF=!0;u.Cl.eo({Uo:()=>this.parse(),$e:()=>this.kr()})}parse(){0<this.ad.length&&this.ZU();0<this.Lb.length&&this.aV();this.Tj==f.Gj.KI&&(0==this.Ka.length&&(this.Ka=[[[0,0]]]),0==this.rows.length&&
(this.rows=[[]]));0<this.aC.length&&this.PGa();0<this.BC.length&&this.VGa();return this.vY&&0==this.ad.length&&0==this.Lb.length&&0==this.aC.length&&0==this.BC.length}PGa(){for(var c,d,g,k,m,n=this.$x>this.aC.length?this.aC.length:this.$x,p=this.aC.splice(0,n),t=e.model.C.F.vq&&this.ga.Da===l.i.qa.Tc,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.aD(d),d=this.QC(d),m=this.Ba[d],c==this.VD&&this.Ka[this.UD].toString()==this.Ka[d].toString()||-1==this.VD||-1==this.UD||(this.ha.ra.yT(this.rows[this.VD],this.Ka[this.UD],this.Fc,this.ik.lf,this.ik.Yt,this.ik.type),this.Fc=[]),this.Fc[m]=t&&this.Kf[m].aa==l.i.da.NONE?l.xJ.V().aA(k,g):g,this.VD=c,this.UD=d;-1!=this.VD&&-1!=this.UD&&this.ha.ra.yT(this.rows[this.VD],this.Ka[this.UD],this.Fc,this.ik.lf,this.ik.Yt,this.ik.type)}VGa(){for(var c,d,g=this.$x>this.BC.length?this.BC.length:this.$x;0<
g;){c=this.BC.shift();d=[];for(var k=0;k<c.getChildren().length;k++)this.XGa(c.getChildren()[k],d,k);this.AC.push(d);g--}}XGa(c,d,g){d[c.localName]=c.text();0>this.KG.indexOf(c.localName)&&this.KG.splice(g,0,c.localName)}vHa(){for(var c=[],d=0;d<this.KG.length;d++)c[this.KG[d]]=d;for(d=0;d<this.AC.length;d++){var g=this.AC[d],k=[],m;for(m in g)k[c[m]]=g[m];this.AC[d]=k}c=this.KG.map(n=>this.WGa(n));this.AC.unshift(c)}WGa(c){c=c.replace(/_x005B_/g,"[");c=c.replace(/_x005D_/g,"]");c=c.replace(/_x0020_/g,
" ");c=c.replace(/_x0024_/g,"");var d=this.wc.getItem(c);if(null!=d)return d.caption;d=this.Kf.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}QC(c){return c%this.Ka.length}aD(c){return Math.floor(c/this.Ka.length)}aV(){for(var c,d,g=this.$x>this.Lb.length?this.Lb.length:this.$x;0<g;){this.rowIndex=0;d=[];c=this.Lb.shift();var k=c.find("Member");for(c=0;c<k.length;c++)this.oHa(k[c],d);this.rows.push(d);g--}}oHa(c,
d){var g=c.find("HIERARCHY_UNIQUE_NAME").text();g=this.wc.getItem(g);null!=g&&(c=this.Ib(c,g),d.push([c.level.wb,c.ordinal]),this.rowIndex++)}ZU(){for(var c,d,g=this.$x>this.ad.length?this.ad.length:this.$x;0<g;){this.Iua=0;c=[];d=this.ad.shift();d=d.find("Member");for(var k=0;k<d.length;k++)this.RGa(d[k],c);this.Ka.push(c);g--}}RGa(c,d){var g=c.find("HIERARCHY_UNIQUE_NAME").text();if("Measures"!=g&&"[Measures]"!=g){var k=this.wc.getItem(g);null==k&&(k=this.wc.getItem("["+g+"]"));null!=k&&(c=this.Ib(c,
k),d.push([c.level.wb,c.ordinal]),this.Iua++)}else{var m=c.find("UName").text();d=this.Kf.findIndex(n=>n.A===m);this.Ba.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.Mh?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.lc(new l.O.ae({A:g,caption:m,vf:!0,
Bi:c})));return k}P4(c){c=u.Yb.Og(c);e.Ca(!0,e.model.B.j.bg,e.P.bind(e.model.B.j.jm,c))}kr(){e.Ca(!1);this.Jb&&(this.yB?(this.vHa(),this.Jb(this.AC)):this.Jb());this.clear()}Sb(){}clear(){this.oa&&(this.oa.sb(v.fa.Oc,this.pca),this.oa.sb(v.fa.ue,this.Oz),this.oa.sb(v.fa.Aa,this.ab),this.oa.close(),this.oa=null);this.timer&&this.timer.pl&&this.timer.stop();this.Tj=0;this.ad=[];this.Lb=[];this.aC=[];this.BC=[];this.AC=[];this.KG=[];this.IQ=0;this.LY="";this.Ka=[];this.rows=[];this.Ba=[];this.Kf=this.wc=
null;this.vY=this.WF=!1;this.VD=this.UD=-1;this.Fc=[]}cancel(){this.clear();this.Jb=null}}b.s9=a})(f.cj||(f.cj={}))})(h.Eb||(h.Eb={}))})(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.Wl=this.jl=this.QH=0;this.Vq=5E3;this.Cfa=1E3;this.state=l.jp.bF;this.td="";this.Wu=!1;this.bfa="";this.$aa=()=>this.mEa();this.cba=()=>this.oEa();this.pfa=()=>this.wj();this.Oz=d=>this.eq(d);this.sha=()=>this.kGa();this.tha=d=>this.lGa(d);this.qha=()=>this.gGa();this.aba=d=>this.nEa(d);this.ti=d=>this.Sb(d);b.dg.Ab=this.ga=c}Jm(){this.oa=new z.ek;this.oa.contentType=z.yA.IP;this.oa.dataType=z.zA.ba;this.oa.rr=
z.xt.zv;this.AL();const c=JSON.parse(JSON.stringify(e.v(this.ga.sc)?{}:this.ga.sc));this.ga.credentials&&this.ga.credentials.Lm&&(c.Authorization="Basic "+this.ga.credentials.hash,this.oa.withCredentials=!0);this.oa.Qh(c)}AL(){e.v(this.ga.withCredentials)||(this.oa.withCredentials=this.ga.withCredentials)}BH(){return e.ia(this.hierarchy.gg)?this.hierarchy.Qm<this.Cfa:this.hierarchy.Qm<10*this.Cfa}po(){return e.ia(this.ga.We)?"["+this.ga.xa+"]":"("+this.ga.We+")"}Jva(c,d){this.Lva=c;this.ab=d;c=this.po();
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.Jm();this.oa.data=z.ba.Ic(b.dg.qw(c));this.oa.N(v.fa.Oc,this.$aa);this.oa.N(v.fa.Aa,this.ti);this.oa.load(this.ga.hf)}mEa(){var c=z.ba.create(this.oa.response);this.jA(c)&&(this.hierarchy.Qm=parseInt(c.find("root CellData Cell Value").text()));this.Lva()}jA(c){return 0==c.length?(e.Za(e.model.B.j.cF,"",e.xb.Aa),e.Ca(!1),!1):0<c.find("root Fault").length?
(e.Za(z.ba.Ic(c.find("root Fault faultstring")),"Query error!",e.xb.Aa),!1):!0}load(c,d,g){this.td="";this.dE&&(this.dE.length=0);this.Wl=this.jl=this.QH=0;this.Jb=d;this.ab=g;this.bc=c;this.BH()?this.gl():this.count()}count(){var c=this.po();c=null==this.bc?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.bc.A,c);this.Jm();this.oa.data=z.ba.Ic(b.dg.qw(c));this.oa.N(v.fa.Oc,this.cba);this.oa.N(v.fa.Aa,this.ti);this.oa.load(this.ga.hf)}oEa(){var c=z.ba.create(this.oa.response);this.jA(c)&&(this.QH=parseInt(c.find("root CellData Cell Value").text()),this.gl())}mC(){return""}j_(){return""}gl(){var c=this.j_();this.state=l.jp.bF;this.Jm();this.oa.data=z.ba.Ic(b.dg.qw(c));this.oa.N(v.fa.Oc,this.pfa);this.oa.N(v.fa.ue,this.Oz);this.oa.N(v.fa.Aa,this.ti);this.oa.load(this.ga.hf)}wj(){this.Wl+=this.oa.Pi;
var c=z.ba.create(this.oa.response);this.oa.close();this.oa=null;this.jA(c)&&this.SD(c);this.jl+=this.Vq;this.jl<this.QH&&!this.BH()?this.gl():this.CU()}SD(c){var d=c.find("root");if(0<d.find("Fault").length)e.Za(z.ba.Ic(d.find("Fault faultstring")),"Query error!",e.xb.Aa);else{c=[];d=d.find('Axes Axis[name="Axis0"] Tuples Tuple Member');for(var g=this.hierarchy.Ri,k=0;k<d.length;k++)c.push(this.$U(d[k],k+g));return c}}$U(){return null}CU(){e.Ca(!1);this.Jb(this.hierarchy)}eq(c){c=u.Yb.Og(c.data.loaded+
this.Wl);e.Ca(!0,e.model.B.j.Un,this.hierarchy.caption+", "+e.P.bind(e.model.B.j.jm,c))}Sb(c){e.Za(c.message,"Error",e.xb.Aa);null!=this.ab&&(this.ab(c.message),this.ab=null)}MZ(c,d,g,k,m){this.Jb=k;this.ab=m;this.Wu=g;this.hierarchy=c;this.state=l.jp.L5;c=[];for(g=0;g<d.length;g++)c.push(e.P.bind("Ascendants({0})",d[g]));d="{"+c.join(", ")+"}";this.Wl=0;this.Jm();c=this.po();d=e.P.bind("SELECT Hierarchize(Distinct({0})) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",d,c);this.oa.data=
z.ba.Ic(b.dg.qw(d));this.oa.N(v.fa.Oc,()=>this.J2());this.oa.N(v.fa.ue,this.Oz);this.oa.N(v.fa.Aa,this.ti);this.oa.load(this.ga.hf)}J2(){this.Wl+=this.oa.Pi;var c=z.ba.create(this.oa.response);this.oa.close();this.oa=null;if(this.jA(c)){c=this.SD(c);for(var d=0;d<c.length;d++)this.hierarchy.ya(c[d]).vf=!0;this.Wu?this.R4(c,this.ab):this.hierarchy.pw()}this.Wu||this.Jb(this.hierarchy)}ww(c,d,g,k,m){this.Jb=k;this.ab=m;this.hierarchy=c;this.bfa=g;this.state=l.jp.Wka;this.Wl=0;this.Jm();c=this.po();
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.oa.data=z.ba.Ic(b.dg.qw(d));this.oa.N(v.fa.Oc,()=>this.AEa());this.oa.N(v.fa.ue,this.Oz);this.oa.N(v.fa.Aa,this.ti);this.oa.load(this.ga.hf)}AEa(){this.Wl+=this.oa.Pi;var c=z.ba.create(this.oa.response);this.oa.close();this.oa=null;if(this.jA(c)){c=this.SD(c);for(var d=0;d<c.length;d++){var g=this.hierarchy.ya(c[d]);g.level.A==this.bfa?g.vf=!0:
this.hierarchy.Xy(g)}}this.Jb(this.hierarchy)}R4(c,d){this.ab=d;d=[];for(var g=0;g<c.length;g++)d.push(e.P.bind("{0}.Siblings",this.hierarchy.ya(c[g]).A));c="{"+d.join(", ")+"}";this.state=l.jp.X8;this.Wl=0;this.Jm();d=this.po();c=e.P.bind("SELECT Hierarchize(Distinct({0})) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",c,d);this.oa.data=z.ba.Ic(b.dg.qw(c));this.oa.N(v.fa.Oc,()=>this.F3());this.oa.N(v.fa.ue,this.Oz);this.oa.N(v.fa.Aa,this.ti);this.oa.load(this.ga.hf)}F3(){this.Wl+=this.oa.Pi;
var c=z.ba.create(this.oa.response);this.oa.close();this.oa=null;this.Wu=!1;if(this.jA(c)){c=this.SD(c);for(var d=0;d<c.length;d++)this.hierarchy.ya(c[d]).vf=!0;this.hierarchy.pw()}this.Jb(this.hierarchy)}search(c,d,g){this.td=c.toLowerCase().replace(RegExp('"',"g"),'""').replace(RegExp("'","g"),"''");this.Jb=d;this.ab=g;this.Wl=this.jl=this.QH=0;this.state=l.jp.KX;this.dE&&0<this.dE.length?this.dE.length=0:this.dE=[];this.Ova()}m_(){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.wm,'"'+this.td+'"');var d=e.P.bind("SET [SearchParentsSet] AS 'EXCEPT(GENERATE([SearchMembersSet], ASCENDANTS([SearchMembersSet].Current)), {0})'",this.hierarchy.wm);return c+"\n"+d+"\nSET [SearchSet] AS 'HIERARCHIZE(DISTINCT({[SearchMembersSet], [SearchParentsSet]}))'"}Ova(){var c=this.po(),d="MEMBER [Measures].[CountSearchSet] AS 'COUNT([SearchSet])'\nSELECT NON EMPTY {[Measures].[CountSearchSet]} ON COLUMNS FROM {0}";d="WITH "+this.m_()+"\n"+e.P.bind(d,c);this.Jm();
this.oa.data=z.ba.Ic(b.dg.qw(d));this.oa.N(v.fa.Oc,this.qha);this.oa.N(v.fa.ue,this.aba);this.oa.N(v.fa.Aa,this.ti);this.oa.load(this.ga.hf)}gGa(){var c=z.ba.create(this.oa.response);this.jA(c)&&(this.QH=parseInt(c.find("root CellData Cell Value").text()),this.nq())}nEa(c){e.Ca(!0,"Counting members...",this.hierarchy.caption+", "+Math.round(c.data.loaded/1E3)+"K loaded")}nq(){var c=this.po(),d="SELECT SUBSET([SearchSet], {0}, {1}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME ON COLUMNS FROM {2}";d="WITH "+
this.m_()+"\n"+e.P.bind(d,this.jl,this.Vq,c);this.Jm();this.oa.data=z.ba.Ic(b.dg.qw(d));this.oa.N(v.fa.Oc,this.sha);this.oa.N(v.fa.ue,this.tha);this.oa.N(v.fa.Aa,this.ti);this.oa.load(this.ga.hf)}lGa(c){c=u.Yb.Og(c.data.loaded+this.Wl);e.Ca(!0,e.model.B.j.Un,this.hierarchy.caption+", "+e.P.bind(e.model.B.j.jm,c))}kGa(){this.Wl+=this.oa.Pi;var c=z.ba.create(this.oa.response);this.oa.close();this.oa=null;this.jA(c)&&this.qHa(c);this.jl+=this.Vq;this.jl<this.QH?this.nq():this.ND()}qHa(c){c=c.find("root");
if(0<c.find("Fault").length)e.Za(z.ba.Ic(c.find("Fault faultstring")),"Query error!",e.xb.Aa);else{c=c.find('Axes Axis[name="Axis0"] Tuples Tuple Member');for(var d=0;d<c.length;d++)this.pHa(c[d])}}pHa(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.lc(new l.O.ae({A:k,caption:g,fc:m,Bi:d})),n.level&&0<n.level.Ue.length))for(g=0;g<n.level.Ue.length;g++)d=
n.level.Ue.ea(g),n.setProperty(d.A,c.find(d.XN).text());n.parent&&!n.parent.Zb&&(n.parent.vf=!0);this.dE.push(n.ordinal)}ND(){e.Ca(!1);this.Jb(this.dE)}cancel(){this.oa&&(this.oa.sb(v.fa.Oc,this.$aa),this.oa.sb(v.fa.Oc,this.cba),this.oa.sb(v.fa.Oc,this.pfa),this.oa.sb(v.fa.ue,this.Oz),this.oa.sb(v.fa.Oc,this.sha),this.oa.sb(v.fa.ue,this.tha),this.oa.sb(v.fa.Oc,this.qha),this.oa.sb(v.fa.ue,this.aba),this.oa.sb(v.fa.Aa,this.ti),this.oa.close());this.ab=this.oa=null}}b.t9=a})(f.cj||(f.cj={}))})(h.Eb||
(h.Eb={}))})(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.xa=l.Ra.V();this.v5=!0;this.Jba=()=>this.EU();this.Kba=d=>this.BEa(d);this.lDa=()=>this.yFa();this.nDa=d=>this.AFa(d);this.ti=d=>this.Sb(d);this.Xda=()=>this.Z2();this.Yda=d=>this.bFa(d);this.dfa=()=>this.i3();this.efa=d=>this.lFa(d);this.Lga=()=>this.UFa();this.Mga=d=>this.WFa(d);this.wfa=()=>this.p3();this.xfa=d=>this.CFa(d);this.P7=()=>this.e3();this.Q7=d=>this.hFa(d);this.ga=c;this.Nl=new z.ek;this.CD=
new z.ek;this.Qp=new z.ek;this.Wp=new z.ek;this.Sp=new z.ek;this.Vp=new z.ek;this.jq=new z.ek}Mp(c){return c.find("row")}load(c,d,g,k){this.Nb=d;this.ab=g;this.Oe=k;this.o2(this.M2)}Jm(c){this.AL(c);this.Qh(c)}AL(c){e.v(this.ga.withCredentials)||(c.withCredentials=this.ga.withCredentials)}Qh(c){c.contentType=z.yA.IP;c.dataType=z.zA.ba;c.rr=z.xt.zv;const d=JSON.parse(JSON.stringify(e.v(this.ga.sc)?{}:this.ga.sc));this.v5&&(d.Accept="application/xml");this.ga.credentials&&this.ga.credentials.Lm&&(d.Authorization=
"Basic "+this.ga.credentials.hash,c.withCredentials=!0);c.Qh(d);return c}Sb(c){this.Nl.Yd(v.fa.Aa);this.Nl.Yd(v.fa.Oc);this.Nl.Yd(v.fa.ue);c=c.target.url.trim();c=e.model.B.j.Xna.replace("{0}",'<u><a href="'+c+'">'+c+"</a></u>");e.Za(c,"",e.xb.Aa);this.ab(c)}Vs(){null!=this.Oe&&(this.Oe(),this.Oe=null)}o2(c){e.Ca(!0,e.model.B.j.tJ);this.FG=c;this.Jm(this.Nl);b.dg.Ab=this.ga;this.Nl.data=z.ba.Ic(b.dg.Wua());this.Nl.N(v.fa.Oc,this.Jba);this.Nl.N(v.fa.ue,this.Kba);this.Nl.N(v.fa.Aa,this.ti);this.Nl.load(this.ga.hf)}BEa(c){c=
u.Yb.Og(c.data.loaded);e.Ca(!0,e.model.B.j.tJ,e.P.bind(e.model.B.j.jm,c))}EU(){this.Vs();var c=z.ba.create(this.Nl.response);c=this.Mp(c);if(0<c.length){for(var d=0;d<c.length;d++)this.mga(c[d]);this.FG()}else e.Za(e.model.B.j.cF,"",e.xb.Aa),e.Ca(!1)}mga(c){var d=c.find("DIMENSION_UNIQUE_NAME").text(),g=this.ga.mapping.Ha(d,"caption",c.find("DIMENSION_CAPTION").text());c=parseInt(c.find("DIMENSION_TYPE").text());d=new l.O.pA(d,g);d.type=c;this.xa.O.Wt(d)}M2(){this.ga.Da==l.i.qa.Tc?this.VCa(this.zFa):
this.oU(this.MU)}VCa(c){e.Ca(!0,e.model.B.j.tJ);this.mDa=c;this.Jm(this.CD);b.dg.Ab=this.ga;this.CD.data=z.ba.Ic(b.dg.kva());this.CD.N(v.fa.Oc,this.lDa);this.CD.N(v.fa.ue,this.nDa);this.CD.N(v.fa.Aa,this.ti);this.CD.load(this.ga.hf)}AFa(c){c=u.Yb.Og(c.data.loaded);e.Ca(!0,e.model.B.j.tJ,e.P.bind(e.model.B.j.jm,c))}yFa(){this.Vs();var c=z.ba.create(this.CD.response);c=this.Mp(c);for(var d=0;d<c.length;d++)this.iHa(c[d]);this.mDa()}iHa(c){var d=c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("MEASUREGROUP_NAME").text();
c=c.find("DIMENSION_GRANULARITY").text();d=this.xa.O.Kp(d);if(null!=d){d.fD||(d.fD=[]);var k=d.fD;k[g]=c;d.fD=k}}zFa(){this.oU(this.MU)}oU(c){e.Ca(!0,e.model.B.j.vX);this.vM=c;this.Jm(this.Qp);this.Qp.data=z.ba.Ic(b.dg.rw());this.Qp.N(v.fa.Oc,this.Xda);this.Qp.N(v.fa.ue,this.Yda);this.Qp.N(v.fa.Aa,this.ti);this.Qp.load(this.ga.hf)}Z2(){var c=z.ba.create(this.Qp.response);c=this.Mp(c);if(0==c.length)e.Za(e.model.B.j.cF,"",e.xb.Aa),e.Ca(!1);else{for(var d=0;d<c.length;d++)this.cHa(c[d]);this.vM()}}cHa(c){var d=
c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("HIERARCHY_UNIQUE_NAME").text(),k=this.ga.mapping.Ha(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());d=this.xa.O.Kp(d);null!=d&&(g=this.ga.Da==l.i.qa.Tc?new f.O.AX(g,k):new f.Yp.O.t8(g,k),g.origin=1,g.Mc=n,g.type=l.i.Lc.JC(m),g.wm=p,g.ms=t,1==c&&(g.FM=!0),2==c&&
(g.As=!0),d.oi(g))}bFa(c){c=u.Yb.Og(c.data.loaded);e.Ca(!0,e.model.B.j.vX,e.P.bind(e.model.B.j.jm,c))}MU(){this.SM(this.j3)}SM(c){e.Ca(!0,e.model.B.j.wX);this.QM=c;this.Jm(this.Vp);this.Vp.data=z.ba.Ic(b.dg.iva());this.Vp.N(v.fa.Oc,this.dfa);this.Vp.N(v.fa.ue,this.efa);this.Vp.N(v.fa.Aa,this.ti);this.Vp.load(this.ga.hf)}lFa(c){c=u.Yb.Og(c.data.loaded);e.Ca(!0,e.model.B.j.wX,e.P.bind(e.model.B.j.jm,c))}i3(){var c=z.ba.create(this.Vp.response);c=this.Mp(c);if(0==c.length)e.Za(e.model.B.j.cF,"",e.xb.Aa),
e.Ca(!1);else{for(var d=0;d<c.length;d++)this.qga(c[d]);this.QM()}}j3(){e.model.C.F.jI?this.WCa(this.VFa):this.qU(this.SU)}qga(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.xa.O.Kp(d);null!=d&&(g=d.fh(g),null!=g&&(k=new l.O.it(n,k,c),k.type=l.i.ib.JC(m),g.Hh(k),d.oi(g)))}WCa(c){e.Ca(!0,e.model.B.j.l8);
this.KHa=c;this.Jm(this.jq);this.jq.data=z.ba.Ic(b.dg.nva());this.jq.N(v.fa.Oc,this.Lga);this.jq.N(v.fa.ue,this.Mga);this.jq.N(v.fa.Aa,this.ti);this.jq.load(this.ga.hf)}WFa(c){c=u.Yb.Og(c.data.loaded);e.Ca(!0,e.model.B.j.l8,e.P.bind(e.model.B.j.jm,c))}UFa(){var c=z.ba.create(this.jq.response);c=this.Mp(c);if(0!=c.length)for(var d=0;d<c.length;d++)this.N3(c[d]);this.KHa()}N3(){}VFa(){this.qU(this.SU)}qU(c){e.Ca(!0,e.model.B.j.kP);this.TM=c;this.Jm(this.Wp);this.Wp.data=z.ba.Ic(b.dg.qo());this.Wp.N(v.fa.Oc,
this.wfa);this.Wp.N(v.fa.ue,this.xfa);this.Wp.N(v.fa.Aa,this.ti);this.Wp.load(this.ga.hf)}CFa(c){c=u.Yb.Og(c.data.loaded);e.Ca(!0,e.model.B.j.kP,e.P.bind(e.model.B.j.jm,c))}p3(){var c=z.ba.create(this.Wp.response);c=this.Mp(c);if(0==c.length)e.Za(e.model.B.j.cF,"",e.xb.Aa),e.Ca(!1);else{for(var d=0;d<c.length;d++)this.jHa(c[d]);this.TM()}}jHa(c){var d=c.find("MEASURE_UNIQUE_NAME").text(),g=this.ga.mapping.Ha(d,"caption",c.find("MEASURE_CAPTION").text()),k=c.find("MEASUREGROUP_NAME").text();c=c.find("MEASURE_DISPLAY_FOLDER").text()||
"";g=new f.O.SA(d,g);g.type=1;g.Dg=k;g.Mc=c;g.Wc=this.ga.mapping.Ha(d,"aggregations");this.xa.O.lk(g)}SU(){this.pU(this.f3)}pU(c){e.Ca(!0,e.model.B.j.k8);this.IM=c;this.Jm(this.Sp);this.Sp.data=z.ba.Ic(b.dg.eva());this.Sp.N(v.fa.Oc,this.P7);this.Sp.N(v.fa.ue,this.Q7);this.Sp.N(v.fa.Aa,this.ti);this.Sp.load(this.ga.hf)}hFa(c){c=u.Yb.Og(c.data.loaded);e.Ca(!0,e.model.B.j.kP,e.P.bind(e.model.B.j.jm,c))}e3(){var c=z.ba.create(this.Sp.response);c=this.Mp(c);if(0!=c.length)for(var d=0;d<c.length;d++)this.eHa(c[d]);
this.IM()}eHa(c){var d=c.find("KPI_NAME").text(),g=this.ga.mapping.Ha(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.x8(d,g);d.value=k;d.status=m;d.Ow=n;d.Dx=c;this.xa.O.vZ(d,this.ga.mapping)}f3(){e.Ca(!1);null!=this.Nb&&this.Nb()}gl(c,d,g){e.Ca(!0,e.model.B.j.Un,c.caption);this.Nb=d;this.ab=g;this.Xl.hierarchy=c;this.Xl.Jva(()=>{this.Bk(c,null,k=>this.Sj(k),g)},this.ab)}Sj(c){var d=
c.ev;if(0<c.filter.cm.length)this.RM(c,c.filter.cm,c.filter.YH,k=>this.Sj(k),this.ab);else if(0<d.length){var g=d.shift();c.ev=d;d=c.Ib(g[1]);c.Xy(d);null!=g[0]&&""!=g[0]?this.Cz(d,g[0],k=>this.Sj(k),this.ab):this.Bk(c,d,k=>this.Sj(k),this.ab)}else this.Nb(c)}Bk(c,d,g,k){e.Ca(!0,e.model.B.j.Un,c.caption);this.Xl.hierarchy=c;this.Xl.load(d,g,k)}RM(c,d,g,k,m){this.Xl.hierarchy=c;this.Xl.MZ(c,d,g,k,m)}Cz(c,d,g,k){this.Xl.hierarchy=c.hierarchy;this.Xl.ww(c.hierarchy,c,d,g,k)}nq(c,d,g,k){this.Xl.hierarchy=
c;this.Xl.search(d,g,k)}ZB(){return!0}cancel(){this.Nl&&(this.Nl.sb(v.fa.Oc,this.Jba),this.Nl.sb(v.fa.ue,this.Kba),this.Nl.sb(v.fa.Aa,this.ti),this.Nl.close(),this.Nl=null);this.Qp&&(this.Qp.sb(v.fa.Oc,this.Xda),this.Qp.sb(v.fa.ue,this.Yda),this.Qp.sb(v.fa.Aa,this.ti),this.Qp.close(),this.Qp=null);this.Vp&&(this.Vp.sb(v.fa.Oc,this.dfa),this.Vp.sb(v.fa.ue,this.efa),this.Vp.sb(v.fa.Aa,this.ti),this.Vp.close(),this.Vp=null);this.jq&&(this.jq.sb(v.fa.Oc,this.Lga),this.jq.sb(v.fa.ue,this.Mga),this.jq.sb(v.fa.Aa,
this.ti),this.jq.close(),this.jq=null);this.Wp&&(this.Wp.sb(v.fa.Oc,this.wfa),this.Wp.sb(v.fa.ue,this.xfa),this.Wp.sb(v.fa.Aa,this.ti),this.Wp.close(),this.Wp=null);this.Sp&&(this.Sp.sb(v.fa.Oc,this.P7),this.Sp.sb(v.fa.ue,this.Q7),this.Sp.sb(v.fa.Aa,this.ti),this.Sp.close(),this.Sp=null);this.Xl&&(this.Xl.cancel(),this.Xl=null);this.Oe=this.ab=this.Nb=null}}b.u9=a})(f.cj||(f.cj={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{static qw(c){var d=z.ba.create("<DataSourceInfo/>").text(this.Ab.Wh),g=z.ba.create("<Catalog/>").text(this.Ab.Be),k=z.ba.create("<AxisFormat/>").text("TupleFormat"),m=z.ba.create("<Content/>").text("Data"),n=z.ba.create("<Format/>").text("Multidimensional");d=a.hs([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.Ic(d)+"</Execute>");
return a.Jp(c)}static Sua(){return a.Jp(a.gs(z.ba.create("<RequestType/>").text("DISCOVER_DATASOURCES"),z.ba.create("<Restrictions/>"),z.ba.create("<Properties/>")))}static qva(){var c=z.ba.create("<Content/>").text("Data"),d=z.ba.create("<DataSourceInfo/>").text(this.Ab.Wh);c=a.hs([c,d]);return a.Jp(a.gs(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 Mua(){var c=
z.ba.create("<DataSourceInfo/>").text(this.Ab.Wh),d=z.ba.create("<Format/>").text("Tabular");c=a.hs([c,d]);d=z.ba.create("<RequestType/>").text("DBSCHEMA_CATALOGS");var g=z.ba.create("<Restrictions/>");return a.Jp(a.gs(d,g,c))}static Rua(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.Wh),d=z.ba.create("<Catalog/>").text(this.Ab.Be),g=z.ba.create("<Format/>").text("Tabular");c=a.hs([c,d,g]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.Be);d=a.Ly([d]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_CUBES");
return a.Jp(a.gs(g,d,c))}static Wua(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.Wh),d=z.ba.create("<Catalog/>").text(this.Ab.Be),g=z.ba.create("<Format/>").text("Tabular");c=a.hs([c,d,g]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.Be);g=z.ba.create("<CUBE_NAME/>").text(this.Ab.xa);d=a.Ly([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_DIMENSIONS");return a.Jp(a.gs(g,d,c))}static kva(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.Wh),d=z.ba.create("<Catalog/>").text(this.Ab.Be),
g=z.ba.create("<Format/>").text("Tabular");c=a.hs([c,d,g]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.Be);g=z.ba.create("<CUBE_NAME/>").text(this.Ab.xa);d=a.Ly([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_MEASUREGROUP_DIMENSIONS");return a.Jp(a.gs(g,d,c))}static rw(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.Wh),d=z.ba.create("<Catalog/>").text(this.Ab.Be),g=z.ba.create("<Cube/>").text(this.Ab.xa),k=z.ba.create("<Format/>").text("Tabular");c=a.hs([c,d,g,k]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.Be);
g=z.ba.create("<CUBE_NAME/>").text(this.Ab.xa);d=a.Ly([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_HIERARCHIES");return a.Jp(a.gs(g,d,c))}static iva(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.Wh),d=z.ba.create("<Catalog/>").text(this.Ab.Be),g=z.ba.create("<Cube/>").text(this.Ab.xa),k=z.ba.create("<Format/>").text("Tabular");c=a.hs([c,d,g,k]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.Be);g=z.ba.create("<CUBE_NAME/>").text(this.Ab.xa);d=a.Ly([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_LEVELS");
return a.Jp(a.gs(g,d,c))}static nva(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.Wh),d=z.ba.create("<Catalog/>").text(this.Ab.Be),g=z.ba.create("<Cube/>").text(this.Ab.xa),k=z.ba.create("<Format/>").text("Tabular");c=a.hs([c,d,g,k]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.Be);g=z.ba.create("<CUBE_NAME/>").text(this.Ab.xa);d=a.Ly([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_PROPERTIES");return a.Jp(a.gs(g,d,c))}static eva(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.Wh),
d=z.ba.create("<Catalog/>").text(this.Ab.Be),g=z.ba.create("<Cube/>").text(this.Ab.xa),k=z.ba.create("<Format/>").text("Tabular");c=a.hs([c,d,g,k]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.Be);g=z.ba.create("<CUBE_NAME/>").text(this.Ab.xa);d=a.Ly([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_KPIS");return a.Jp(a.gs(g,d,c))}static qo(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.Wh),d=z.ba.create("<Catalog/>").text(this.Ab.Be),g=z.ba.create("<Cube/>").text(this.Ab.xa),k=z.ba.create("<Format/>").text("Tabular");
c=a.hs([c,d,g,k]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.Be);g=z.ba.create("<CUBE_NAME/>").text(this.Ab.xa);d=a.Ly([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_MEASURES");return a.Jp(a.gs(g,d,c))}static Jp(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 hs(c){var d=z.ba.create("<PropertyList/>").attr("flexmonster","true"),g=z.ba.create("<Properties/>");if(""!=a.Ab.Hk){var k=z.ba.create("<Roles/>").text(a.Ab.Hk);c.push(k)}""!=a.Ab.oj&&(k=z.ba.create("<EffectiveUserName/>").text(a.Ab.oj),c.push(k));""!=a.Ab.uj&&(k=z.ba.create("<LocaleIdentifier/>").text(a.Ab.uj),c.push(k));""!=a.Ab.Cm&&(k=z.ba.create("<CustomData/>").text(a.Ab.Cm),c.push(k));for(k=0;k<c.length;k++)d.append(c[k]);g.append(d);return g}static Ly(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 gs(c,d,g){return z.ba.create('<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">'+z.ba.Ic(c)+z.ba.Ic(d)+z.ba.Ic(g)+"</Discover>")}static Nua(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.Jp(z.ba.create('<Execute xmlns="urn:schemas-microsoft-com:xml-analysis"/>').append(z.ba.create("<Command/>").append(k)).append(z.ba.create("<Properties/>")))}}b.dg=a})(f.cj||(f.cj={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(){this.lN=this.eV="";if(null!=a.instance)throw Error("Singleton");}static V(){null==a.instance&&(a.instance=new a);return a.instance}static dispose(){a.instance=null}Mp(c){return c.find("row")}IV(){this.oa=new z.ek;this.oa.contentType=z.yA.IP;this.oa.rr=z.xt.zv}eD(c,d){this.Jb=d;this.lN!=c?this.bda(c,()=>function(){d(this.eV)}):this.Jb&&this.Jb(this.eV);return this.eV}bda(c,d){this.Jb=d;this.lN=c;this.IV();this.oa.data=
z.ba.Ic(b.dg.Sua());this.oa.N(v.fa.Oc,()=>this.uEa());this.oa.N(v.fa.Aa,()=>this.vEa());this.oa.load(c)}uEa(){if(!e.ia(this.oa.response)){var c=z.ba.create(this.oa.response);c=this.Mp(c);for(var d=[],g=0;g<c.length;g++){var k=c[g].find("DataSourceName").text();this.eV=c[g].find("ProviderName").text();d.push(k)}this.Jb&&this.Jb(d)}}vEa(){const c=e.model.Tb.valid(this.lN)?this.lN:e.model.Tb.validate(this.lN);e.Za("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.Aa,e.xb.Aa);this.Jb&&this.Jb([])}dza(c,d,g){this.Jb=g;b.dg.Ab=new f.kp;b.dg.Ab.Wh=d;this.IV();this.oa.data=z.ba.Ic(b.dg.Mua());this.oa.N(v.fa.Oc,()=>this.SDa());this.oa.N(v.fa.Aa,()=>this.TDa());this.oa.load(c)}SDa(){var c=z.ba.create(this.oa.response);c=this.Mp(c);for(var d=[],g=0;g<c.length;g++){var k=c[g].find("CATALOG_NAME").text();d.push(k)}this.Jb&&this.Jb(d)}TDa(){e.Za("Error discovering catalogs",e.model.B.j.Aa,e.xb.Aa);this.Jb&&this.Jb([])}uza(c,d,g,k){this.Jb=k;b.dg.Ab=new f.kp;
b.dg.Ab.Wh=d;b.dg.Ab.Be=g;this.IV();this.oa.data=z.ba.Ic(b.dg.Rua());this.oa.N(v.fa.Oc,()=>this.pEa());this.oa.N(v.fa.Aa,()=>this.qEa());this.oa.load(c)}pEa(){var c=z.ba.create(this.oa.response);c=this.Mp(c);for(var d=[],g=0;g<c.length;g++){var k=c[g].find("CUBE_NAME").text();d.push(k)}this.Jb&&this.Jb(d)}qEa(){e.Za("Error discovering cubes",e.model.B.j.Aa,e.xb.Aa);this.Jb&&this.Jb([])}vR(c,d,g,k,m){this.IV();this.oa.data=z.ba.Ic(b.dg.Nua(d,g,k));this.oa.N(v.fa.Oc,()=>this.ZDa(m));this.oa.N(v.fa.Aa,
()=>this.$Da(m));this.oa.load(c)}ZDa(c){null!=c&&c({complete:!0,response:this.oa.response})}$Da(c){null!=c&&c({complete:!1})}}b.q9=a})(f.cj||(f.cj={}))})(h.Eb||(h.Eb={}))})(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.VY=this.wK=this.GF="";null==d?this.GF=c:(this.wK=c,this.VY=d)}set hash(c){}get hash(){return 0<this.GF.length?this.GF:u.Nja.encode(this.wK+":"+this.VY)}set Lm(c){}get Lm(){return this.GF&&0<this.GF.length||this.wK&&0<this.wK.length}static zb(c){var d=new a("");c.hasOwnProperty("hash")&&(d.GF=c.hash?c.hash:"");c.hasOwnProperty("username")&&(d.wK=c.username?c.username:"");c.hasOwnProperty("password")&&
(d.VY=c.password?c.password:"");return d}}b.r9=a})(f.cj||(f.cj={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{am(c){if(e.model.Ua.V().n1(e.model.Ua.OJ)){const d=new e.model.cd(e.model.Ua.OJ,g=>{if(!e.v(g)&&!e.v(g.requestHeaders)){const k=this.ma.sc||{};for(let m in g.requestHeaders)g.requestHeaders.hasOwnProperty(m)&&(k[m]=g.requestHeaders[m]);this.ma.sc=k;this.jf.sc=k}c(!0)});e.model.Ua.V().Fa(d)}else c(!1)}}b.rW=a})(f.tp||(f.tp={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends b.rW{constructor(c){super();this.xa=l.Ra.V();this.ma=c;this.oa=new b.Fja(c)}load(c,d,g,k){this.ma=c;this.Nb=d;this.Oe=k;this.ab=g;this.jf=new b.yP(this.ma.hf,e.model.Ga.pa.J(e.model.Ga.pa.fV),!0,this.ma.sc,this.ma.withCredentials);this.Pda=()=>this.JN();this.YAa()}YAa(){e.Ca(!0,e.model.B.j.dF);null!=this.jf&&this.jf.call("Handshaking",{componentVersion:e.ph.ft,acceleratorMinVersion:a.jja},()=>this.Pda(),c=>this.Sb(c),
c=>this.am(c))}JN(){null!=this.Oe&&(this.Oe(),this.Oe=null);this.FG=()=>this.M2();this.o2()}o2(){null!=this.jf&&(e.Ca(!0,e.model.B.j.tJ),this.jf.call("DiscoverDimensions",{catalog:this.ma.Be,cubeUniqueName:this.ma.xa,credentials:this.ma.credentials&&this.ma.credentials.Lm?this.ma.credentials.hash:null,customData:this.ma.Cm,localeIdentifier:this.ma.uj,effectiveUserName:this.ma.oj,roles:this.ma.Hk},(c,d)=>this.EU(c,d),c=>this.Sb(c),c=>this.am(c)))}EU(c,d){if(null!=this.FG){null!=d&&0<d.sessionId&&(f.kp.sessionId=
d.sessionId);for(d=0;d<c.length;d++){var g=c[d];var k=g.uniqueName;var m=this.ma.mapping.Ha(k,"caption",g.caption),n=g.type;k=new f.O.Foa(k,m);k.type=n;k.fD=g.granularityNames;k.description=g.description;this.xa.O.Wt(k)}this.FG()}}M2(){this.vM=()=>this.MU();this.oU()}oU(){null!=this.jf&&(e.Ca(!0,e.model.B.j.vX),this.jf.call("DiscoverHierarchies",{catalog:this.ma.Be,cubeUniqueName:this.ma.xa,credentials:this.ma.credentials&&this.ma.credentials.Lm?this.ma.credentials.hash:null,sessionId:f.kp.sessionId,
customData:this.ma.Cm,localeIdentifier:this.ma.uj,effectiveUserName:this.ma.oj,roles:this.ma.Hk},c=>this.Z2(c),c=>this.Sb(c),c=>this.am(c)))}Z2(c){if(null!=this.vM){for(var d=0;d<c.length;d++){var g=c[d],k=g.dimensionUniqueName,m=g.uniqueName,n=this.ma.mapping.Ha(m,"caption",g.caption),p=g.type,t=g.allMemberName,r=g.defaultMemberName,w=g.displayFolder||"",y=g.isParentChild||!1,A=g.isRagged||!1;k=this.xa.O.Kp(k);null!=k&&(m=this.ma.Da==l.i.qa.Tc?new f.O.AX(m,n):new f.Yp.O.t8(m,n),m.origin=1,m.type=
l.i.Lc.JC(p),m.wm=t,m.ms=r,m.Mc=w,m.As=y,m.FM=A,m.description=g.description,k.oi(m))}this.vM()}}MU(){this.QM=()=>this.j3();this.SM()}SM(){null!=this.jf&&(e.Ca(!0,e.model.B.j.wX),this.jf.call("DiscoverLevels",{catalog:this.ma.Be,cubeUniqueName:this.ma.xa,credentials:this.ma.credentials&&this.ma.credentials.Lm?this.ma.credentials.hash:null,sessionId:f.kp.sessionId,customData:this.ma.Cm,localeIdentifier:this.ma.uj,effectiveUserName:this.ma.oj,roles:this.ma.Hk},c=>this.i3(c),c=>this.Sb(c),c=>this.am(c)))}i3(c){if(null!=
this.QM){for(var d=0;d<c.length;d++){var g=c[d],k=g.hierarchyUniqueName,m=g.caption,n=g.type,p=g.dbType,t=g.uniqueName,r=g.levelNumber,w=g.properties,y=this.xa.O.Kp(g.dimensionUniqueName);if(null!=y&&(k=y.fh(k),null!=k&&(m=new f.O.Hoa(t,m,r),m.type=e.v(n)?l.i.ib.$c:l.i.ib.JC(n,!e.v(p)&&0==n,p),m.description=g.description,k.Hh(m),y.oi(k),e.model.C.F.jI&&null!=w&&0<w.length)))for(n=0;n<w.length;n++)g=e.v(w[n].item)?w[n]:w[n].item,g=new l.O.xW(g[0],g[1]),m.zZ(g)}this.QM()}}j3(){this.TM=()=>this.SU();
this.qU()}qU(){null!=this.jf&&(e.Ca(!0,e.model.B.j.kP),this.jf.call("DiscoverMeasures",{catalog:this.ma.Be,cubeUniqueName:this.ma.xa,credentials:this.ma.credentials&&this.ma.credentials.Lm?this.ma.credentials.hash:null,sessionId:f.kp.sessionId,customData:this.ma.Cm,localeIdentifier:this.ma.uj,effectiveUserName:this.ma.oj,roles:this.ma.Hk},c=>this.p3(c),c=>this.Sb(c),c=>this.am(c)))}p3(c){if(null!=this.TM){for(var d,g=0;g<c.length;g++){var k=c[g],m=k.uniqueName;d=this.ma.mapping.Ha(m,"caption",k.caption);
var n="String"==typeof k.type?l.i.Pa.sya(k.type):l.i.Pa.jb,p=k.groupCaption||k.groupName||"",t=k.displayFolder||"";d=new f.O.SA(m,d);d.type=n;d.Dg=p;d.Mc=t;d.Wc=this.ma.mapping.Ha(m,"aggregations");d.description=k.description;this.xa.O.lk(d)}this.TM()}}SU(){this.ma.Da==l.i.qa.Tc?(this.IM=()=>this.f3(),this.pU()):this.mr()}pU(){null!=this.jf&&(e.Ca(!0,e.model.B.j.k8),this.jf.call("DiscoverKpis",{catalog:this.ma.Be,cubeUniqueName:this.ma.xa,credentials:this.ma.credentials&&this.ma.credentials.Lm?this.ma.credentials.hash:
null,sessionId:f.kp.sessionId,customData:this.ma.Cm,localeIdentifier:this.ma.uj,effectiveUserName:this.ma.oj,roles:this.ma.Hk},c=>this.e3(c),c=>this.Sb(c),c=>this.am(c)))}e3(c){if(null!=this.IM){for(var d=0;d<c.length;d++){var g=c[d],k=g.uniqueName,m=this.ma.mapping.Ha(k,"caption",g.caption),n=g.value,p=g.status,t=g.goal,r=g.trend;k=new f.O.x8(k,m);k.value=n;k.status=p;k.Ow=t;k.Dx=r;k.description=g.description;this.xa.O.vZ(k,this.ma.mapping)}this.IM()}}f3(){this.mr()}gl(c,d){e.Ca(!0,e.model.B.j.Un,
c.caption);this.Nb=d;this.Bk(c,null,g=>this.Sj(g))}Bk(c,d,g){this.oa.hierarchy=c;this.oa.Qc=this.xa.ua.Qc;this.oa.kd=this.xa.ua.kd;this.oa.children(c,d,g,this.ab)}Sj(c){if(null!=this.Nb){var d=c.ev;if(0<c.filter.cm.length)c.Ri<c.Qm?this.RM(c,c.filter.cm,c.filter.YH,k=>this.Sj(k)):(c.pw(),this.Sj(c));else if(0<d.length){var g=d.shift();0==d.length&&c.Saa();c.ev=d;d=c.Ib(g[1]);c.Xy(d);this.Bk(c,d,k=>this.Sj(k))}else c.Wd=!0,this.Nb(c)}}RM(c,d,g,k){this.oa.hierarchy=c;this.oa.Qc=this.xa.ua.Qc;this.oa.kd=
this.xa.ua.kd;this.oa.MZ(c,d,g,k)}Cz(){}nq(c,d,g){this.oa.hierarchy=c;this.oa.Qc=this.xa.ua.Qc;this.oa.kd=this.xa.ua.kd;this.oa.search(d,g)}ZB(){return!0}cancel(){this.IM=this.TM=this.QM=this.vM=this.FG=this.Pda=null;null!=this.jf&&this.jf.cancel();this.jf=null;null!=this.Xl&&this.Xl.cancel();this.Xl=null;null!=this.oa&&this.oa.cancel();this.Oe=this.ab=this.Nb=this.oa=null}mr(){e.Ca(!1);null!=this.Nb&&this.Nb()}Sb(c){e.Ca(!1);let d=null;e.v(c)?(d=`Cannot connect to ${e.model.Tb.valid(this.ma.hf)?
this.ma.hf:e.model.Tb.validate(this.ma.hf)}`,e.Za(d,e.model.B.j.Aa)):(d=e.ia(c.message)?e.model.B.j.lP:c.message,"Unknown error."==d?e.Za(e.model.B.j.Wna,e.model.B.j.Aa):"ERROR_SESSION_EXPIRED"==d?e.model.C.F.PV?e.Za(e.model.B.j.uX,e.model.B.j.Ym,e.xb.Ym,[e.model.B.j.IE,e.model.B.j.wl],[()=>this.Jz(),null]):this.Jz():-1<d.indexOf("2.416")||-1<d.indexOf("2.400")?e.Za("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.Aa):e.Za(d,e.model.B.j.Aa));null!=this.ab&&this.ab(d)}Jz(){e.model.Va.V().b4()}}a.jja="2.7.11";b.P5=a})(f.tp||(f.tp={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends b.rW{constructor(c){super();this.mw=this.OH=0;this.td="";this.state=l.jp.bF;this.tl=()=>this.Ls();this.Cj=()=>this.fq();this.VM=[];this.Ez=[];this.UM=0;this.ma=c;this.jf=new b.yP(this.ma.hf,e.model.Ga.pa.J(e.model.Ga.pa.fV),!0,this.ma.sc,this.ma.withCredentials)}reset(){this.td="";this.mw=this.UM=this.OH=0;this.Ez=[];this.ab=this.Wu=this.sK=this.UJ=this.bc=this.e_=this.Jb=null;this.state=""}search(c,d){this.reset();this.state=
l.jp.KX;this.Jb=d;this.td=c.toLowerCase();this.load(()=>this.ND())}ND(){for(var c=[],d=0;d<this.Ez.length;d++){var g=this.Ez[d];g.vf=!0;c.push(g.ordinal)}e.Ca(!1);this.Jb(c)}children(c,d,g,k){this.reset();this.state=l.jp.bF;this.Jb=g;this.ab=k;this.bc=d;this.hierarchy=c;null==this.bc||this.bc.vf?this.load(()=>this.Sj()):g(this.hierarchy)}Sj(){null!=this.bc&&(this.bc.vf=!1);this.Jb(this.hierarchy)}MZ(c,d,g,k){this.reset();this.state=l.jp.L5;this.Jb=k;this.UJ=d;this.Wu=g;this.hierarchy=c;this.load(()=>
this.J2())}J2(){for(var c=[],d=0;d<this.Ez.length;d++){var g=this.Ez[d];g.vf=!0;c.push(g.A)}this.Wu?this.R4(c,this.Jb):(this.hierarchy.pw(),this.Jb(this.hierarchy))}R4(c,d){this.reset();this.state=l.jp.X8;this.Jb=d;this.sK=c;this.load(()=>this.F3())}F3(){for(var c=this.Ez,d=0;d<c.length;d++)this.hierarchy.ya(c[d]).vf=!0;this.hierarchy.pw();this.Jb(this.hierarchy)}load(c){this.e_=c;e.Ca(!0,e.model.B.j.Un);this.gl();this.timer=new u.wt(500,1E4);this.timer.N(u.pf.Al,this.tl);this.timer.N(u.pf.Bl,this.Cj);
this.timer.start()}mC(){for(var c=this.hierarchy.nU,d=[],g=0;g<c.length;g++)d.push(this.hierarchy.A+".["+c.ea(g).A+"]");return 0<d.length?", "+d.join(","):""}gl(){if(null!=this.jf){var c=this.mC(this.hierarchy);this.jf.call("DiscoverMembers",{catalog:this.ma.Be,cubeUniqueName:this.ma.xa,subquery:this.ma.We,hierarchyUniqueName:this.hierarchy.A,properties:c,memberUniqueName:this.bc?this.bc.A:"",allMemberName:this.hierarchy.wm,hasAllMember:this.hierarchy.Mh,loadAll:this.kd,searchPhrase:this.td,chunkIndex:this.mw,
ascendants:null==this.UJ?"":this.UJ.join(",,"),siblings:null==this.sK?"":this.sK.join(",,"),activeLevel:null==this.hierarchy.gg?"":this.hierarchy.gg,credentials:this.ma.credentials&&this.ma.credentials.Lm?this.ma.credentials.hash:null,sessionId:f.kp.sessionId,customData:this.ma.Cm,localeIdentifier:this.ma.uj,effectiveUserName:this.ma.oj,roles:this.ma.Hk},d=>this.wj(d),d=>this.Sb(d),d=>this.am(d));this.mw++}}Ls(){if(null!=this.timer){var c=this.timer.tw/2;2<c&&e.Ca(!0,e.model.B.j.Un,e.P.bind(e.model.B.j.qt,
u.Yb.format(c,new e.model.ec.X.Gf,!1,!1,1)))}}fq(){this.timer.pl&&e.Za("Can't connect to data source!",e.model.B.j.Aa)}rg(){this.timer&&this.timer.pl&&(this.timer.stop(),this.timer.sb(u.pf.Al,this.tl),this.timer.sb(u.pf.Bl,this.Cj))}wj(c){null!=this.jf&&(this.rg(),1==this.mw&&(this.OH=c.count),1>this.hierarchy.Qm&&(this.hierarchy.Qm=c.all),this.SD(c.members,()=>this.SH()))}SD(c,d){if(e.v(c))d();else if(this.VM=c,0==this.VM.length)this.CU();else{for(c=this.hierarchy.Ri;!this.kHa(c);)c++;d()}}kHa(c){var d=
this.VM.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.ae({A:m,caption:k,Bi:g,ordinal:n}),""===this.td&&null==this.UJ&&null==this.sK&&(d.fc=c),t=this.hierarchy.lc(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.td||null!=this.UJ||null!=this.sK?this.Ez.push(t):t.fc=c;null!=t&&!t.Zb&&1E3<this.hierarchy.Qm&&!this.kd&&(t.vf=!0);this.UM++}return 0>=
this.VM.length}SH(){var c=0==this.OH?100:Math.round(this.UM/this.OH*100);100<c&&(c=100);e.Ca(!0,e.model.B.j.Un,this.hierarchy.caption+" - "+c+"% ("+this.UM+" of "+this.OH+")");this.UM>=this.OH?this.CU():this.gl()}CU(){e.Ca(!1);this.rg();this.e_();this.VM=[];this.Ez=[]}Sb(c){this.rg();e.Ca(!1);c=e.ia(c.message)?e.model.B.j.lP:c.message;"ERROR_SESSION_EXPIRED"==c?e.model.C.F.PV?e.Za(e.model.B.j.uX,e.model.B.j.Ym,e.xb.Ym,[e.model.B.j.IE,e.model.B.j.wl],[()=>this.Jz(),null]):this.Jz():(e.Za(c,e.model.B.j.Aa),
null!=this.ab&&(this.ab(c),this.ab=null))}Jz(){e.model.Va.V().b4()}BH(){return!1}cancel(){null!=this.jf&&this.jf.cancel();this.jf=null;null!=this.timer&&this.rg();this.e_=this.ab=this.Jb=this.timer=null}}b.Fja=a})(f.tp||(f.tp={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends b.rW{constructor(){super(...arguments);this.rf=l.Ra.V();this.Lb=[];this.ad=[];this.tl=()=>this.Ls();this.Cj=()=>this.fq()}load(c,d,g){e.Ca(!0,e.model.B.j.bg,e.P.bind(e.model.B.j.qt,"0.5"));this.ma=c;this.ik=d;this.Jb=g;this.ri=this.mw=0;this.Kf=this.rf.ua.qr;this.jf=new b.yP(this.ma.hf,e.model.Ga.pa.J(e.model.Ga.pa.fV),!0,this.ma.sc,this.ma.withCredentials);this.requestId=e.P.NL();this.Zw();this.timer=new u.wt(500,1E4);
this.timer.N(u.pf.Al,this.tl);this.timer.N(u.pf.Bl,this.Cj);this.timer.start()}Zw(){if(null!=this.jf){for(var c=[],d=this.rf.ua.qr,g=0;g<d.length;g++)c.push(d[g].A);this.jf.call("Execute",{catalog:this.ma.Be,cubeUniqueName:this.ma.xa,subquery:this.ma.We,queryString:this.ik.body,columns:this.rf.ua.Db.Nc(!0),rows:this.rf.ua.yb.Nc(!0),measures:c,chunkIndex:this.mw,credentials:this.ma.credentials&&this.ma.credentials.Lm?this.ma.credentials.hash:null,sessionId:f.kp.sessionId,customData:this.ma.Cm,localeIdentifier:this.ma.uj,
effectiveUserName:this.ma.oj,roles:this.ma.Hk,expandAll:this.ik.type==l.i.Rd.np&&this.rf.ua.Qc,formatted:e.model.C.F.vq,requestId:this.requestId},k=>this.aq(k),k=>this.Sb(k),k=>this.am(k));this.mw++}}Ls(){null!=this.timer&&e.Ca(!0,e.model.B.j.bg,e.P.bind(e.model.B.j.qt,u.Yb.format(this.timer.tw/2,new e.model.ec.X.Gf,!1,!1,1)))}fq(){this.timer.pl&&e.Za("Can't connect to data source!",e.model.B.j.Aa)}rg(){this.timer&&this.timer.pl&&(this.timer.stop(),this.timer.sb(u.pf.Al,this.tl),this.timer.sb(u.pf.Bl,
this.Cj))}bd(c,d,g,k,m,n){e.Ca(!0,e.model.B.j.bg,e.P.bind(e.model.B.j.qt,"0.5"));this.ma=c;this.ik=d;this.Jb=n;this.Kf=this.rf.ua.qr;this.jf=new b.yP(this.ma.hf,e.model.Ga.pa.J(e.model.Ga.pa.fV),!0,this.ma.sc,this.ma.withCredentials);c=this.Fza(this.rf.ua,g,k);m={catalog:this.ma.Be,cubeUniqueName:this.ma.xa,subquery:this.ma.We,measureUniqueName:m.A,members:c,credentials:this.ma.credentials&&this.ma.credentials.Lm?this.ma.credentials.hash:null,sessionId:f.kp.sessionId,customData:this.ma.Cm,localeIdentifier:this.ma.uj,
effectiveUserName:this.ma.oj,roles:this.ma.Hk};this.ma.Da==l.i.qa.Tc&&(m.drillThroughMaxRows=e.model.C.F.LG);this.jf.call("DrillThrough",m,p=>this.CEa(p),p=>this.Sb(p),p=>this.am(p));this.timer=new u.wt(500,1E4);this.timer.N(u.pf.Al,this.tl);this.timer.N(u.pf.Bl,this.Cj);this.timer.start()}Fza(c,d,g){for(var k=[],m,n,p=0;p<c.Db.length;p++){var t=c.Db.ea(p);m=[];n=!1;if(!t.Se){if(null!=g[p]){var r=t.ya(g[p]);e.v(r)||e.ia(r.A)||(m.push(r.A),n=!0)}if(t.filter.wi&&!n)for(n=0;n<t.gb.length;n++)r=t.ya(t.gb[n]),
e.v(r)||e.ia(r.A)||-1==m.indexOf(r.A)&&m.push(r.A);0<m.length&&(this.ma.Da==l.i.qa.le?k.push(m.join(",")):k.push("{"+m.join(",")+"}"))}}for(p=0;p<c.yb.length;p++)if(t=c.yb.ea(p),n=!1,m=[],!t.Se){null!=d[p]&&(r=t.ya(d[p]),e.v(r)||e.ia(r.A)||(m.push(r.A),n=!0));if(t.filter.wi&&!n)for(n=0;n<t.gb.length;n++)r=t.ya(t.gb[n]),e.v(r)||e.ia(r.A)||-1==m.indexOf(r.A)&&m.push(r.A);0<m.length&&(this.ma.Da==l.i.qa.le?k.push(m.join(",")):k.push("{"+m.join(",")+"}"))}for(p=0;p<c.ob.length;p++){t=c.ob.ea(p);m=[];
if(t.filter.wi)for(n=0;n<t.gb.length;n++)r=t.ya(t.gb[n]),e.v(r)||e.ia(r.A)||-1==m.indexOf(r.A)&&m.push(r.A);0<m.length&&(this.ma.Da==l.i.qa.le?k.push(m.join(",")):k.push("{"+m.join(",")+"}"))}return k}CEa(c){if(null!=this.jf){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.rg();e.Ca(!1);this.Jb(c)}}cancel(){this.ma=this.rf=null;this.Lb=[];this.ad=[];this.Jb=this.ik=null;null!=this.jf&&this.jf.cancel();this.jf=null;this.rg();this.timer=null}aq(c){null!=
this.jf&&(c.isComplete||this.Zw(),this.rg(),this.ma.Da==l.i.qa.le?(this.ZU(c.columnsList?JSON.parse(c.columnsList):[]),this.aV(c.rowsList?JSON.parse(c.rowsList):[]),this.kga(c.cellData?JSON.parse(c.cellData):[],c.cellDataFmt?JSON.parse(c.cellDataFmt):[])):(this.ZU(c.columnsList),this.aV(c.rowsList),this.kga(c.cellData,c.cellDataFmt)),this.ri+=this.Lb.length*this.ad.length,c.isComplete?(e.Ca(!1),this.Jb()):(c=null!=c.percent?Math.round(1E4*c.percent)/100:NaN,e.Ca(!0,e.model.B.j.bg,this.ri+" items "+
(isNaN(c)||0>=c?"":"("+(100<c?100:c)+"%)"))))}ZU(c){this.ad=c;if(e.v(c)||0==this.ad.length)this.ad=[[[0,0]]]}aV(c){this.Lb=[[]];e.v(c)?this.Lb=[[]]:(this.Lb=c,0==this.Lb.length&&(this.Lb=[[]]))}OBa(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}kga(c,d=null){e.v(c)&&(c=[]);var g=this.Lb.length,k=this.ad.length;var m=this.rf.ua.qr;for(var n=[],p=0;p<m.length;p++)n[p]=m[p].type;var t=l.TX.V();this.rf.ua.rows.ea(1);for(p=0;p<g;p++)if(void 0!=
c[p]&&null!=this.Lb[p]){m=[];for(var r=[],w,y,A=!1,C=0;C<k;C++)null!=this.ad[C]&&(w=r,r=this.ad[C].slice(0),y=r.pop()[0],this.OBa(r,w)||(A&&this.rf.ra.yT(this.Lb[p],w,m,this.ik.lf,this.ik.Yt,this.ik.type),A=!1,m=[]),void 0!=c[p][C]&&(A=!0),e.model.C.F.vq&&null!=d&&this.Kf[y].aa==l.i.da.NONE?m[y]=l.xJ.V().aA(d[p][C],c[p][C]):n[y]==l.i.Pa.jb?m[y]=c[p][C]:n[y]==l.i.Pa.Sa&&(w=c[p][C]?t.gi(c[p][C].toString()):0,m[y]=w));A&&this.rf.ra.yT(this.Lb[p],r,m,this.ik.lf,this.ik.Yt,this.ik.type)}}Sb(c){this.rg();
e.Ca(!1);c=e.ia(c.message)?e.model.B.j.lP:c.message;"ERROR_SESSION_EXPIRED"==c?e.model.C.F.PV?e.Za(e.model.B.j.uX,e.model.B.j.Ym,e.xb.Ym,[e.model.B.j.IE,e.model.B.j.wl],[()=>this.Jz(),null]):this.Jz():e.Za(c,e.model.B.j.Aa)}Jz(){e.model.Va.V().b4()}}b.O5=a})(f.tp||(f.tp={}))})(h.Eb||(h.Eb={}))})(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.fv=null;this.withCredentials=!1;this.sc=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.sc=k;this.fv=d;this.withCredentials=m}call(c,d=null,g=null,k=null,m=null){this.action=c;this.Nb=g;this.ab=
k;this.RN=m;this.Xd=d;u.Zn.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.bv(n);this.xhr.setRequestHeader("Content-type","application/json; charset=UTF-8");this.xhr.setRequestHeader("Accept","application/json");this.PK(this.sc);this.xhr.send(this.CJa(d))})}PK(c){if(!e.v(c))for(var d in c)c.hasOwnProperty(d)&&this.xhr.setRequestHeader(d,c[d])}CJa(c){if(null!=this.fv){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.fv,"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.ia(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()}bv(){if(null!=
this.xhr&&4===this.xhr.readyState){if(200===this.xhr.status)return this.oI();if(401===this.xhr.status&&e.Fg(this.RN))return this.RN(c=>{c?this.call(this.action,this.Xd,this.Nb,this.ab):this.ab({message:this.xhr.statusText})});this.ab({message:this.xhr.statusText})}}oI(){var c=JSON.parse(this.xhr.response);c&&null==c.error?null!=this.Nb&&this.Nb(c.data,c):this.ab&&c&&this.ab(c.error)}cancel(){null!=this.xhr&&(this.xhr.onerror=null,this.xhr.onreadystatechange=null,this.xhr.abort());this.fv=this.url=
this.Nb=this.xhr=this.sc=null}}b.yP=a})(f.tp||(f.tp={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.cj.t9{constructor(c){super(c)}mC(){for(var c=this.hierarchy.nU,d=[],g=0;g<c.length;g++)d.push(this.hierarchy.A+".["+c.ea(g).A+"]");return 0<d.length?", "+d.join(","):""}j_(){var c=this.mC(this.hierarchy),d=this.po();return null==this.bc?this.BH()?e.P.bind("SELECT DISTINCT({{0}.allmembers}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME{1} on columns FROM {2}",this.hierarchy.A,c,d):this.hierarchy.Mh?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.jl.toString(),this.Vq.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.jl.toString(),this.Vq.toString()):e.P.bind("SELECT Subset({0}.children, {3}, {4}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME {2} on columns FROM {1}",this.bc.A,d,c,this.jl.toString(),this.Vq.toString(),this.hierarchy.A)}$U(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.lc(new l.O.ae({A:m,caption:k,Bi:g}));if(p.level&&0<p.level.Ue.length)for(k=0;k<p.level.Ue.length;k++){g=p.level.Ue.ea(k);p.setProperty(g.A,c.find(g.XN).text());m=c.getChildren();for(var t=0;t<m.length;t++){var r=m[t];r.nodeName.toLowerCase()==g.XN.toLowerCase()&&(r=r.text(),p.setProperty(g.A,r))}}p.fc=isNaN(n)?d:n}else this.state==l.jp.bF&&(p.fc=isNaN(n)?d:n);null==p||p.Zb||
(p.vf=!0);p.parent&&!p.parent.Zb&&(p.parent.vf=!1);return p.ordinal}}b.Bpa=a})(f.tE||(f.tE={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.cj.u9{constructor(c){super(c);this.Xl=new b.Bpa(c)}EU(){var c=z.ba.create(this.Nl.response);c=this.Mp(c);if(0<c.length){this.Vs();for(var d=0;d<c.length;d++)this.mga(c[d]);this.ZCa();this.FG()}else c=e.model.B.j.cF,e.Za(c,"",e.xb.Aa),e.Ca(!1),this.ab(c)}ZCa(){this.BE=new z.ek;this.BE=this.Qh(this.BE);this.BE.data=z.ba.Ic(f.cj.dg.qva());this.BE.N(v.fa.Oc,()=>this.DGa());this.BE.N(v.fa.Aa,c=>this.Sb(c));this.BE.load(this.ga.hf)}DGa(){var c=
z.ba.create(this.BE.response);c=this.Mp(c);this.ga.version=parseFloat(c.find("Value").text().substr(0,5))}qga(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.xa.O.Kp(d);null!=d&&(g=d.fh(g),null!=g&&(k=new l.O.it(m,k,n),k.type=l.i.ib.JC(c),g.Hh(k),d.oi(g)))}N3(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.xa.O.Kp(d),null!=d&&(g=d.fh(g),null!=g&&(k=g.uu(k),null!=k&&(m=new l.O.xW(c,m,n),
k.zZ(m)))))}}b.Cpa=a})(f.tE||(f.tE={}))})(h.Eb||(h.Eb={}))})(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 zE(){return this.ga&&this.ga.wn&&!e.model.C.F.C1?!0:!1}GS(c){return c.As?"members":"allmembers"}FS(c){return c.Mh?c.wm:e.P.bind("{0}.levels(0).{1}",c.A,this.GS(c))}oT(){return 0<this.slice.ce(l.i.ja.Xa).Ed.length}pT(){return 0<this.slice.ce(l.i.ja.La).Ed.length}qo(){const c=[],d=this.slice.qr;for(var g=0;g<d.length;g++)c.push(d[g].A);return"{"+c.join(", ")+"}"}kC(){var c=this.qo();
if(0<this.slice.Db.length){var d=this.bL(this.slice.Db),g="";this.oT()&&(g=this.Ky(this.slice.ce(l.i.ja.Xa).Ed,this.slice.Db));return"Crossjoin("+(0<g.length?"Union("+d+", "+g+")":d)+", "+c+")"}return c}nC(){if(0<this.slice.yb.length){var c=this.bL(this.slice.yb),d="";this.pT()&&(d=this.Ky(this.slice.ce(l.i.ja.La).Ed,this.slice.yb));return 0<d.length?"Union("+c+", "+d+")":c}return""}bL(c){for(var d=[],g=0;g<c.length;g++){var k=c.ea(g);k=this.i_(k,this.slice.Qc||0==g,this.slice.kd);0<k.length&&d.push(k)}if(1<
d.length){c=this.qo();k=d[0];for(g=1;g<d.length;g++)k=e.model.C.F.C1?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]}i_(c,d,g){var k=this.FS(c);if(g)d="Hierarchize({"+c.A+"."+this.GS(c)+"})";else if(d)for(d=null!=c.oc?"Hierarchize({Descendants({"+c.A+".levels(0)."+this.GS(c)+"}, "+c.oc.A+", SELF_AND_BEFORE)})":c.Mh?"Hierarchize({DrilldownLevel({"+k+"})})":"{{"+c.vm()+","+k+"}}",g=1;g<c.ta.length;g++)k=c.ta.ea(g),k=c.CC(k),0!=k.length&&
(k=c.vs(k).join(","),d=10.5<this.ga.version?"DrilldownMember({{"+d+"}}, {"+k+"},,INCLUDE_CALC_MEMBERS)":"DrilldownMember({{"+d+"}}, {"+k+"})");else{if(c.Mh)return k;d="{{"+c.vm()+","+k+"}}"}return d}RV(c){return c=c.replace(/[\]|\[]/g,"")}Cp(c,d,g){for(var k=[],m,n=0;n<d.length;n++){var p=d.ea(n);if(n==c.length-1)m=p.ya(c[n]),m.Zb?(this.i_(p,!0,!1),k.push(this.i_(p,!0,!1))):void 0!==g&&null!=p.uu(g)?k.push("Descendants("+m.A+", "+g+", SELF_AND_BEFORE)"):m.Rg?k.push(m.A+".CHILDREN"):k.push(m.A);else if(n<
c.length){m=p.ya(c[n]);if(null==m)return"";p=p.vs(m.children);m=m.Sg?"{"+p.join(",")+"}":m.A;k.push(m)}else k.push(this.FS(p))}return 1<k.length?"Crossjoin({"+k.join("}, {")+"})":k[0]}Ky(c,d){for(var g,k=0;k<c.length;k++){var m=c[k].slice(1);m.push(0);m=this.Cp(m,d);g=g&&!e.ia(m)?e.P.bind("Union({0}, {1})",m,g):m}return g}U_(c,d){return 0<this.slice.yb.length?this.Cp(c,this.slice.yb,d):""}T_(c,d){var g=this.qo();return 0<this.slice.Db.length?"Crossjoin("+this.Cp(c,this.slice.Db,d)+", "+g+")":g}g0(c){var d=
this.qo();return 0<this.slice.Db.length?(c=c.slice(0),c.push(0),"Crossjoin("+this.Cp(c,this.slice.Db)+", "+d+")"):d}j0(c){return 0<this.slice.yb.length?(c=c.slice(0),c.push(0),this.Cp(c,this.slice.yb)):""}Tua(c,d){0<=l.i.$b.Wx.indexOf(d.va)&&(d=d.LR(c.getTimezoneOffset()));if(d.va==l.i.$b.EQUAL){var g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue>=CDate('{1}') AND {0}.CurrentMember.MemberValue<CDate('{2}')))";var k=d.value.clone().Ln();var m=k.clone().qZ(1).Ln()}d.va==l.i.$b.cg&&(g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue<CDate('{1}') OR {0}.CurrentMember.MemberValue>CDate('{2}')))",
k=d.value.clone().Ln(),m=k.clone());d.va==l.i.$b.FE&&(k=d.value.clone().Ln(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue<CDate('{1}')))");d.va==l.i.$b.GE&&(k=d.value.clone().Ln(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue<=CDate('{1}')))");d.va==l.i.$b.CE&&(k=d.value.clone().Ln(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue>CDate('{1}')))");d.va==l.i.$b.DE&&(k=d.value.clone().Ln(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue>=CDate('{1}')))");
d.va==l.i.$b.nh&&(k=d.value[0].clone().Ln(),m=d.value[1].clone().eA(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue>=CDate('{1}') AND {0}.CurrentMember.MemberValue<=CDate('{2}')))");d.va==l.i.$b.bh&&(k=d.value[0].clone().Ln(),m=d.value[1].clone().eA(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue<CDate('{1}') OR {0}.CurrentMember.MemberValue>CDate('{2}')))");d=this.slice.qr[0].Dg;let n;this.ga.Fx&&(n=c.si.fD[d]);e.ia(n)&&(n=c.A);g=e.P.bind(g,n,k.format("yyyy-MM-dd"),m?m.format("yyyy-MM-dd"):
"",c.Mh?1:0);return[g]}fva(c,d){var g,k=d.value,m=k.length;d.va==l.i.Bb.EQUAL&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption='{2}'))");d.va==l.i.Bb.cg&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption<>'{2}'))");d.va==l.i.Bb.HE&&(g="Filter({0}.levels({1}), (Left({0}.CurrentMember.member_caption,{3})='{2}'))");d.va==l.i.Bb.PA&&(g="Filter({0}.levels({1}), (Left({0}.CurrentMember.member_caption,{3})<>'{2}'))");d.va==l.i.Bb.CA&&(g="Filter({0}.levels({1}), (Right({0}.CurrentMember.member_caption,{3})='{2}'))");
d.va==l.i.Bb.RA&&(g="Filter({0}.levels({1}), (Right({0}.CurrentMember.member_caption,{3})<>'{2}'))");d.va==l.i.Bb.On&&(g="Filter({0}.levels({1}), (InStr(1, {0}.CurrentMember.member_caption,'{2}')>0))");d.va==l.i.Bb.QA&&(g="Filter({0}.levels({1}), (InStr(1, {0}.CurrentMember.member_caption,'{2}')=0))");d.va==l.i.Bb.GREATER&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption>'{2}'))");d.va==l.i.Bb.xl&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption>='{2}'))");d.va==l.i.Bb.LESS&&
(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption<'{2}'))");d.va==l.i.Bb.yl&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption<='{2}'))");if(d.va==l.i.Bb.nh){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.Bb.bh&&(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.Mh?1:0,k,m,n);return[g]}Bp(c){for(var d=[],g="",k=0;k<c.length;k++){var m=c.ea(k),n=[];m.filter.wi&&(n=m.vs(m.gb));m.filter.mz&&(n=this.Tua(m,m.filter.query));m.filter.Qw&&(n=this.fva(m,m.filter.query));if(!m.Mh){var p=m.vm();this.md.Hb(p)||this.md.Ta(p,this.FS(m))}0<n.length&&d.push("{"+n.join(",")+"}")}0<d.length&&(g="("+d.join(", ")+")");return g}pva(c,d,g){for(var k=[],m=c.indexOf(d.A),n=0;n<m;n++){var p=c.ea(n);k.push("Hierarchize("+p.A+".levels("+(p.Mh?1:0)+")."+this.GS(d)+")")}c="Hierarchize({"+
this.FS(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.yc.ck?"TopCount":"BottomCount",", INCLUDE_CALC_MEMBERS")}Uaa(c,d){for(var g=0;g<c.length;g++){var k=c.ea(g);k.filter.xi&&this.slice.Kf.find(m=>
m.A===k.filter.measure.A)&&(d=this.pva(c,k,d))}return d}oC(){if(0==this.md.length)return"";for(var c="with",d=0;d<this.md.length;d++)c+=e.P.bind(" member {0} as IIF(IsError(Aggregate({{1}})), null, Aggregate({{1}}))",this.WD(this.md.Jh(d)),this.WD(this.md.ea(d)));return c}po(c=!0){var d=e.ia(this.ga.We)?"["+this.ga.xa+"]":"("+this.ga.We+")";var g=this.Bp(this.slice.Db),k=this.Bp(this.slice.yb),m="";let n="";if(0!==this.slice.ob.length)for(let t=0;t<this.slice.ob.length;t++){const r=this.slice.ob.ea(t);
if(r.filter&&r.filter.wi){var p=r.filter.Pj();1==p.length&&c?n=0===n.length?` WHERE (${r.V0(p[0])})`:n.substring(0,n.length-1)+`, ${r.V0(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.ob.length&&(m=this.Bp(this.slice.ob));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.Uaa(this.slice.yb,c);c=this.Uaa(this.slice.Db,c);0<n.length&&(c+=n);return c}WD(c){-1<c.indexOf("'")&&(c=c.replace(RegExp("'","g"),"''"));return c}expand(c,d){this.md=new e.tb;c==l.i.ja.La?(c=this.kC(),d=this.j0(d)):(c=this.g0(d),d=this.nC());var g=this.po();c="NON EMPTY "+c+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS";d=this.zE?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.oC();return e.P.bind("{4} Select {0} {1} FROM {2} CELL PROPERTIES {3}",c,d,g,this.h_(),k)}Mf(c,d,g,k){this.md=new e.tb;c==l.i.ja.La?(c=this.kC(),d=this.U_(d,k)):(c=this.T_(d,k),d=this.nC());k=this.po();c="NON EMPTY "+c+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS";
d=this.zE?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.oC();return e.P.bind("{4} Select {0} {1} FROM {2} CELL PROPERTIES {3}",c,d,k,this.h_(),g)}select(){this.md=new e.tb;var c=this.kC(),d=this.nC(),g=this.po();c="NON EMPTY "+c+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS";
d=this.zE?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.oC();return e.P.bind("{4} Select {0} {1} FROM {2} CELL PROPERTIES {3}",c,d,g,this.h_(),k)}h_(){return 0==e.model.C.F.vq||this.ga.Da!=l.i.qa.Tc?"VALUE":"VALUE, FORMATTED_VALUE"}bd(c,d,g){this.md=new e.tb;for(var k=
"DRILLTHROUGH MAXROWS "+e.model.C.F.LG+" SELECT {0} ON 0 FROM {1} {2}",m,n=[],p=0;p<this.slice.Db.length;p++)m=this.slice.Db.ea(p),m.Se||null==d[p]||(m=m.ya(d[p]),null!=m&&n.push(m.A));for(p=0;p<this.slice.yb.length;p++)m=this.slice.yb.ea(p),m.Se||null==c[p]||(m=m.ya(c[p]),null!=m&&n.push(m.A));c=0<n.length?"where ("+n.join(",")+")":"";d=this.po(!1);return e.P.bind(k,g.A,d,c)}}b.qX=a})(f.tE||(f.tE={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.cj.t9{constructor(c){super(c);this.$H=[]}m_(){var c=e.P.bind("SET [SearchMembersSet] AS 'FILTER(EXCEPT({0}.members, {1}), (INSTR(1, lcase({0}.CurrentMember.Caption), {2}) > 0))'",this.hierarchy.A,this.hierarchy.ms,'"'+this.td+'"');var d=e.P.bind("SET [SearchParentsSet] AS 'EXCEPT(GENERATE([SearchMembersSet], ASCENDANTS([SearchMembersSet].Current)), {0})'",this.hierarchy.ms);return c+"\n"+d+"\nSET [SearchSet] AS 'HIERARCHIZE(DISTINCT({[SearchMembersSet], [SearchParentsSet]}))'"}j_(){var c=
this.hierarchy.nU,d=[],g=[];if(0<c.length)for(var k=0;k<c.length;k++){var m=c.ea(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.po();0<g.length?(g=0<g.length?g.join(", "):"",d=0<d.length?"with "+d.join(" "):"",d=null==this.bc?this.BH()?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.Mh?
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.jl.toString(),this.Vq.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.jl.toString(),this.Vq.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.bc.A,c,this.jl.toString(),this.Vq.toString(),g,d)):d=null==this.bc?this.BH()?e.P.bind("SELECT DISTINCT({{0}.allmembers}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.hierarchy.A,c):this.hierarchy.Mh?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.jl.toString(),this.Vq.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.jl.toString(),this.Vq.toString()):e.P.bind("SELECT Subset({0}.children, {2}, {3}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.bc.A,c,this.jl.toString(),this.Vq.toString());return d}SD(c){var d=c.find("root");if(0<d.find("Fault").length)e.Za(z.ba.Ic(d.find("Fault faultstring")),"Query error!",e.xb.Aa);else{this.$H=[];c=[];for(var g=d.find('Axes Axis[name="Axis0"] Tuples Tuple Member'),k=this.hierarchy.Ri,m=0;m<g.length;m++)c.push(this.$U(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.$H)&&!e.v(this.$H[g])){var n=this.$H[g][1];g=this.hierarchy.Ib(this.$H[g][0]);null!=g&&g.setProperty(n,k)}return c}}$U(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.$ea&&this.$H.push([this.$ea.A,
m]);else return k=this.hierarchy.Ib(n),null==k?(k=this.hierarchy.lc(new l.O.ae({A:n,caption:m,Bi:g})),k.fc=isNaN(c)?d:c):this.state==l.jp.bF&&(k.fc=isNaN(c)?d:c),this.$ea=k,null==k||k.Zb||(k.vf=!0),k.parent&&!k.parent.Zb&&(k.parent.vf=!1),k.ordinal}}b.voa=a})(f.Yp||(f.Yp={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.cj.u9{constructor(c){super(c);this.Xl=new b.voa(c)}pU(){e.Ca(!1);null!=this.Nb&&this.Nb()}N3(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.xa.O.Kp(d);null!=d&&(g=d.fh(g),null!=g&&(k=g.uu(k),null!=k&&(m=new l.O.xW(c,m),k.zZ(m))))}}b.woa=
a})(f.Yp||(f.Yp={}))})(h.Eb||(h.Eb={}))})(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 zE(){return this.Ab&&this.Ab.wn?!0:!1}oT(){return 0<this.slice.ce(l.i.ja.Xa).Ed.length}pT(){return 0<this.slice.ce(l.i.ja.La).Ed.length}RV(c){return c=c.replace(/[\]|\[]/g,"")}WD(c){-1<c.indexOf("'")&&(c=c.replace(RegExp("'","g"),"''"));return c}dL(c,d=!1){var g=[];var k=0!=c.gb.length||c.Mh?c.gb:c.Vu(c.ta.ea(1).A);for(var m=c.vs(k),n=[],p,t=0;t<k.length;t++)if(p=c.ya(k[t]),!e.ia(p.A)){g.push(p.A);
if(p.Rg||this.slice.kd)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.ww,w=[],y=0;y<r.length;y++){var A=c.ya(r[y]).A;-1<m.indexOf(A)&&w.push(A)}r=!c.Mh&&p.Zb?c.vm():p.iaa;if(c.type==l.i.Lc.Sa&&!c.Mh){if(p.Zb)continue;r=p.A}-1==n.indexOf(r)&&n.push(r);this.md.Hb(r)||c.As||this.md.Ta(r,w.join(","))}}d=this.RV(c.A)+"FilterSet";this.Hg.Ta(d,g.join(", "));c=this.RV(c.A)+"CalculatedSet";this.Hg.Ta(c,n.join(", "));return["["+d+
"]","["+c+"]"]}eL(c,d,g){if(g)if(c.filter.wi){var k=this.dL(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.Mh?e.P.bind("Union({{0}}, {1}.levels(1).AllMembers)",c.wm,c.A):c.type==l.i.Lc.Sa?e.P.bind("{0}.levels(0).AllMembers",c.A):e.P.bind("Union({{0}}, {1}.levels(0).AllMembers)",c.vm(),c.A);var n=this.Zua(c);c.filter.wi||!c.Mh&&c.type!=l.i.Lc.Sa?(k=this.dL(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.vm()):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.wc().indexOf(c.A)+"_set";this.Hg.Ta(c,d);return"["+c+"]"}Zua(c){for(var d=[],g=1;g<c.ta.length;g++){var k=c.ta.ea(g);c.oc&&c.oc.A==k.A&&d.push(e.P.bind("Descendants({{0}}, {1}, SELF_AND_BEFORE)",c.ms,c.oc.A));k=c.CC(k);if(0!=k.length)for(var m=0;m<k.length;m++){var n=c.ya(k[m]);c.type!=l.i.Lc.Sa||
c.Mh?d.push(e.P.bind("{0}.CHILDREN",n.A)):(n=c.vs(n.children),d.push(e.P.bind("{"+n.join(","))+"}"))}}return 0<d.length?(c=this.RV(c.A)+"DrilledSet",this.Hg.Ta(c,d.join(",")),"["+c+"]"):""}Ky(c,d){for(var g="",k=0;k<c.length;k++){var m=c[k].slice(1);m=this.Cp(m,d);""!=m&&(g=g?e.P.bind("Union({0}, {1})",m,g):m)}return g}Cp(c,d){for(var g="",k=d.length-1;0<=k;k--){var m=d.ea(k);if(null!=c[k]){var n=m.ya(c[k]);if(null==n){g="";break}m.filter.wi?(m=this.dL(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.eL(m,!0,!1):this.eL(m,!1,!1);g=k==d.length-1?n:e.P.bind("CrossJoin({{0}}, {{1}})",n,g)}return g}bL(c){var d=[];for(var g=this.slice.hd(),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.ea(k);m=this.eL(m,this.slice.Qc||0==k,this.slice.kd);m="Filter("+m+", not ("+d+"))";g=0<k?"Crossjoin("+g+","+m+")":m}return g}kC(){if(0<this.slice.Db.length){var c=this.bL(this.slice.Db);this.Hg.Ta("columnHierarchiesSet",
c);c="";this.oT()&&(c=this.Ky(this.slice.ce(l.i.ja.Xa).Ed,this.slice.Db),0<c.length&&this.Hg.Ta("columnExpandedSet",c));this.Hg.Ta("columnSet","Crossjoin("+(0<c.length?"Union([columnHierarchiesSet], [columnExpandedSet])":"[columnHierarchiesSet]")+", [measureSet])")}else this.Hg.Ta("columnSet","[measureSet]")}nC(){if(0<this.slice.yb.length){var c=this.bL(this.slice.yb);this.Hg.Ta("rowHierarchiesSet",c);c="";this.pT()&&(c=this.Ky(this.slice.ce(l.i.ja.La).Ed,this.slice.yb),0<c.length&&this.Hg.Ta("rowExpandedSet",
c));this.Hg.Ta("rowSet",0<c.length?"Union([rowHierarchiesSet], [rowExpandedSet])":"[rowHierarchiesSet]")}}g0(c){0<this.slice.Db.length?(c=this.Cp(c,this.slice.Db),this.Hg.Ta("columnSet","Crossjoin("+c+", [measureSet])")):this.Hg.Ta("columnSet","[measureSet]")}j0(c){0<this.slice.yb.length&&(c=this.Cp(c,this.slice.yb),this.Hg.Ta("rowSet",c))}T_(c,d){0<this.slice.Db.length?(c=this.Uba(c,d,this.slice.Db),this.Hg.Ta("columnSet","Crossjoin("+c+", [measureSet])")):this.Hg.Ta("columnSet","[measureSet]")}U_(c,
d){0<this.slice.yb.length&&(c=this.Uba(c,d,this.slice.yb),this.Hg.Ta("rowSet",c))}Uba(c,d,g){var k=[];for(var m=this.slice.hd(),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.ea(n);if(d.hierarchy.A==p.A)if(p.filter.wi){var t=this.dL(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.eL(p,!0,!1),r=e.P.bind("Intersect({0}.CHILDREN, {{1}})",d.A,r);else if(null!=c[n]){r=p.ya(c[n]);
if(null==r){m="";break}p.filter.wi?(t=this.dL(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.eL(p,!1,!1);r="Filter("+r+", not ("+k+"))";m=n==g.length-1?r:e.P.bind("CrossJoin({{0}}, {{1}})",r,m)}return m}k_(){for(var c="",d=[],g=0;g<this.slice.ob.length;g++){var k=this.slice.ob.ea(g);k.filter.wi&&(this.md.Ta(k.vm(),k.vs(k.gb).join(",")),d.push(k.vm()))}0<d.length&&(c=e.P.bind("where ({0})",d.join(", ")));return c}qo(){for(var c=
[],d=0;d<this.slice.qr.length;d++)c.push(this.slice.qr[d].A);this.Hg.Ta("measureSet",c.join(", "))}oC(){for(var c="with",d=0;d<this.Hg.length;d++)c+=e.P.bind(" set [{0}] as '{{1}}'",this.WD(this.Hg.Jh(d)),this.WD(this.Hg.ea(d)));for(d=0;d<this.md.length;d++)c+=e.P.bind(" member {0} as 'Aggregate({{1}})'",this.WD(this.md.Jh(d)),this.WD(this.md.ea(d)));return c}select(){this.Hg=new e.tb;this.md=new e.tb;this.qo();this.kC();this.nC();var c=this.k_();var d=this.zE?this.Hg.Hb("rowSet")?", NON EMPTY _ROWS_TOKEN_START_[rowSet]_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":
"":this.Hg.Hb("rowSet")?", NON EMPTY [rowSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";var g=this.oC();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.xa,c)}expand(c,d){this.Hg=new e.tb;this.md=new e.tb;this.qo();c==l.i.ja.La?(this.kC(),this.j0(d)):(this.g0(d),this.nC());c=this.k_();d=this.zE?this.Hg.Hb("rowSet")?
", NON EMPTY _ROWS_TOKEN_START_[rowSet]_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":this.Hg.Hb("rowSet")?", NON EMPTY [rowSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";var g=this.oC();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.xa,c)}Mf(c,d,
g){this.Hg=new e.tb;this.md=new e.tb;this.qo();c==l.i.ja.La?(this.kC(),this.U_(d,g)):(this.T_(d,g),this.nC());c=this.k_();d=this.zE?this.Hg.Hb("rowSet")?", NON EMPTY _ROWS_TOKEN_START_[rowSet]_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":this.Hg.Hb("rowSet")?", NON EMPTY [rowSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";g=this.oC();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.xa,c)}bd(){return""}}b.qX=a})(f.Yp||(f.Yp={}))})(h.Eb||(h.Eb={}))})(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.AX{constructor(){super(...arguments);this.El=new u.HP(!1);this.Jv=new u.HP}vm(d="(Total)"){if(this.Mh)return this.wm+".["+d+"]";var g=this.ms.split("].");g.pop();g.push("["+d+"]");return g.join("].")}YC(){return new a.uoa(this)}Ib(d){d=this.El.find(d);return-1==d?null:this.ya(d)}}a.t8=c})(b.O||(b.O={}))})(f.Yp||(f.Yp={}))})(h.Eb||(h.Eb={}))})(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.y8{get Oh(){return this.level.Nu?!0:this.hierarchy.FM||this.hierarchy.As||this.level.Nu?(this.Rg||!this.vf)&&0==this.children.length:!1}set Oh(d){}}a.uoa=c})(b.O||(b.O={}))})(f.Yp||(f.Yp={}))})(h.Eb||(h.Eb={}))})(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.pA{constructor(c,d=""){super(c,d)}}b.ula=a})(f.O||(f.O={}))})(h.Qe||(h.Qe={}))})(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.ht{constructor(c,d=""){super(c,d);this.Eea=!1;this.zQ=this.iga="";c=new b.R6(c+".[(all)]","All",0);this.Hh(c);this.ms=this.wm="(all member)";c=new l.O.ae({A:"(all member)",caption:"All",Zb:!0});this.lc(c)}YC(){return new b.wla(this)}lc(c){void 0!==c.caption&&e.ia(c.caption)?c.caption=e.model.B.j.zl:e.ia(c.A)&&(c.caption=e.model.B.j.zl);return super.lc(c)}ya(c){return super.ya(c)}get inputType(){return this.zQ}set inputType(c){this.zQ=
c}bj(){const c=super.bj();c.type=this.inputType;return c}}b.vla=a})(f.O||(f.O={}))})(h.Qe||(h.Qe={}))})(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.it{constructor(c,d="",g=0){super(c,d,g)}}b.R6=a})(f.O||(f.O={}))})(h.Qe||(h.Qe={}))})(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.Br{constructor(c,d=""){super(c,d)}get Zj(){return this.Na?[]:this.type==l.i.Pa.jb?l.i.da.Bja:l.i.da.Cja}set Zj(c){}get caption(){if(0==e.model.C.F.xx)return this.vc;switch(this.aa){case l.i.da.xc:return e.P.bind(e.model.B.j.kO,this.vc);case l.i.da.st:return e.P.bind(e.model.B.j.uP,this.vc);case l.i.da.Ej:return e.P.bind(e.model.B.j.uO,this.vc);case l.i.da.xq:return e.P.bind(e.model.B.j.fO,this.vc);case l.i.da.Cv:return e.P.bind(e.model.B.j.CP,
this.vc);case l.i.da.Dv:return e.P.bind(e.model.B.j.DP,this.vc);case l.i.da.MAX:return e.P.bind(e.model.B.j.eP,this.vc);case l.i.da.MIN:return e.P.bind(e.model.B.j.nP,this.vc);case l.i.da.Ir:return e.P.bind(e.model.B.j.FJ,this.vc);case l.i.da.lp:return e.P.bind(e.model.B.j.zJ,this.vc);case l.i.da.Hq:return e.P.bind(e.model.B.j.EJ,this.vc);case l.i.da.Fq:return e.P.bind(e.model.B.j.CJ,this.vc);case l.i.da.Gq:return e.P.bind(e.model.B.j.DJ,this.vc);case l.i.da.Ji:return e.P.bind(e.model.B.j.mJ,this.vc);
case l.i.da.en:return e.P.bind(e.model.B.j.vP,this.vc);case l.i.da.Yn:return e.P.bind(e.model.B.j.xP,this.vc);case l.i.da.Rn:return e.P.bind(e.model.B.j.SI,this.vc);case l.i.da.an:return e.P.bind(e.model.B.j.TI,this.vc);case l.i.da.Wn:return e.P.bind(e.model.B.j.AJ,this.vc);case l.i.da.cn:return e.P.bind(e.model.B.j.BJ,this.vc);case l.i.da.NONE:return this.vc}return e.P.bind(e.model.B.j.LJ,this.vc)}set caption(c){""==c.trim()?this.vc=e.model.B.j.zl:this.vc=c}get kl(){return this.vc}set kl(c){}m1(){var c=
new a("","");return this.format!=c.format||0==this.Km?!1:!0}clone(){var c=new a(this.A);this.iL(c);return c}bj(){const c=super.bj(),d=l.Ra.V().O.Ck(this.A);e.v(d)?c.type=l.i.input.sa.jb:c.type=d.inputType;return c}}b.S6=a})(f.O||(f.O={}))})(h.Qe||(h.Qe={}))})(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.JI{Qa(){var c=super.Qa();c.uniqueName=this.qj;this.parent&&(c.parentMember=this.parent.qj);return c}set caption(c){}get caption(){return this.hierarchy.XC(this.ordinal)}}b.wla=a})(f.O||(f.O={}))})(h.Qe||(h.Qe={}))})(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.yW{constructor(){super();this.EB={};this.uB={};this.xZ()}EK(c,d){this.EB[c]=this.fh(d);this.uB[d]=this.gd(c)}Ck(c){return this.EB[c]}cf(c){return this.uB[c]}bx(c,d=null,g=!1){var k=d?d:new b.S6(c.uniqueName);return super.bx(c,k,e.v(d)||g)}clear(){this.EB={};this.uB={};super.clear()}}b.yla=a})(f.O||(f.O={}))})(h.Qe||(h.Qe={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.kt{constructor(){super();this.node=null;this.index="";this.mapping=new f.zO;this.We=null;this.Da=l.i.qa.ag}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.We)==JSON.stringify(a.We)}get AH(){return!1}Iw(a){if(!e.v(this.connection))return a(this.connection);
var c=new Pa.y6({host:this.node,headers:this.sc,withCredentials:this.withCredentials});a(c)}static zb(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.zO?a.mapping:new f.zO(a.mapping));e.v(a.subquery)||(c.We=a.subquery);e.v(a.connection)||(c.connection=a.connection);e.v(a.requestHeaders)||(c.sc=a.requestHeaders);e.v(a.withCredentials)||(c.withCredentials=a.withCredentials);return c}Qa(a=!1){var c=
{};c.type=this.Da;e.v(this.node)||(c.node=this.node);e.v(this.index)||(c.index=this.index);if(!this.mapping.nb||this.mapping.Jo)c.mapping=this.mapping.Qa(!0);e.v(this.We)||(c.subquery=this.We);if(a||this.withCredentials)c.withCredentials=this.withCredentials;return c}clone(){var a=new b;a.Da=this.Da;e.v(this.node)||(a.node=this.node);e.v(this.index)||(a.index=this.index);if(!this.mapping.nb||this.mapping.Jo)a.mapping=this.mapping.clone(this.Da);e.v(this.We)||(a.We=this.We);e.v(this.withCredentials)||
(a.withCredentials=this.withCredentials);return a}}f.Q6=b})(h.Qe||(h.Qe={}))})(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.ma=c}select(){var a={size:0};e.v(this.ma.We)||(a.query=u.Sc.nj(this.ma.We));var c=this.slice.yb.Nc(),d=this.slice.Db.Nc();this.slice.Qc||(c=c.slice(0,1),d=d.slice(0,1));this.Bp(a);0==c.length&&0==d.length?this.qo(a,this.slice.hd(),!0):this.rw(a,c.concat(d));0<d.length&&this.rw(a,d.concat(c),!0);return a}expand(a,c){var d={size:0};e.v(this.ma.We)||(d.query=u.Sc.nj(this.ma.We));var g=a==l.i.ja.La;a=this.slice.yb.Nc();
var k=this.slice.Db.Nc();this.Bp(d);this.Cp(d,c,g?a:k);if(this.slice.Qc)return this.rw(d,a.concat(k)),0<k.length&&this.rw(d,k.concat(a),!0),d;var m=[];if(g){c=c.length+1;var n=this.mda(l.i.ja.Xa),p=this.Mda(this.slice.ce(l.i.ja.Xa).Ed);for(g=1;g<=n;g++)if(!e.v(p[g])||1==g){var t=u.Sc.nj(d);1!=g&&this.Ky(t,p[g],k);var r=a.slice(0,c),w=k.slice(0,g);this.rw(t,r.concat(w));m.push(t)}}else for(g=c.length+1,n=this.mda(l.i.ja.La),p=this.Mda(this.slice.ce(l.i.ja.La).Ed),c=1;c<=n;c++)e.v(p[c])&&1!=c||(t=u.Sc.nj(d),
1!=c&&this.Ky(t,p[c],a),r=a.slice(0,c),w=k.slice(0,g),this.rw(t,r.concat(w)),0<w.length&&this.rw(t,w.concat(r),!0),m.push(t));return m}Mda(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}bd(a,c,d,g=null){d={size:e.model.C.F.LG};e.v(this.ma.We)||(d.query=u.Sc.nj(this.ma.We));d._source=g.map(k=>{let m=this.slice.Yc.fh(k);return m&&m.Eea?m.iga:k});this.Bp(d);this.Cp(d,a,this.slice.yb.Nc());this.Cp(d,c,this.slice.Db.Nc());return d}A_(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])}Cp(a,c,d){this.A_(a);c.forEach((g,k)=>{k=d[k];g=k.ya(g);a.query.bool.must.push(this.fL(k,g))})}Mf(){return null}mda(a){a=this.slice.ce(a).Ed;return 0<a.length?Math.max.apply(Math,a.map(c=>c.length)):
1}Ky(a,c,d){var g={bool:{should:[]}};c.forEach(k=>{k=k.slice(1);d.forEach((m,n)=>{null!=k[n]&&(n=m.ya(k[n]),g.bool.should.push(this.fL(m,n)))})});a.query.bool.must.push(g)}oT(){return 0<this.slice.ce(l.i.ja.Xa).Ed.length}pT(){return 0<this.slice.ce(l.i.ja.La).Ed.length}rw(a,c,d=!1){for(var g=this.slice.hd(),k=0;k<c.length;k++)if(this.qo(a,g,!0),!d||k!=c.length-1){var m=c[k];this.dva(a,m);a=a.aggs[m.A]}d||this.qo(a,g)}dva(a,c){e.v(a.aggs)&&(a.aggs={});e.v(a.aggs[c.A])&&(a.aggs[c.A]={});c.type==l.i.Lc.Sa?
a.aggs[c.A].date_histogram={field:c.A,min_doc_count:this.ma.mapping.Ha(c.A,"min_doc_count"),interval:this.ma.mapping.Ha(c.A,"interval"),time_zone:this.ma.mapping.Ha(c.A,"time_zone"),format:this.ma.mapping.Ha(c.A,"format",e.model.C.F.Ep)}:a.aggs[c.A].terms={field:c.A,size:c.Qm}}qo(a,c,d=!1){e.v(a.aggs)&&(a.aggs={});c.forEach(g=>{a.aggs[(d?"total_":"")+(g.aa+"_")+g.A]={[this.Zya(g)]:{field:g.A}}})}Zya(a){if(a.aa!=l.i.da.Iq){if(a.aa==l.i.da.xq)return"avg";if(a.aa==l.i.da.xc)return"value_count";if(a.aa==
l.i.da.Ej)return"cardinality";if(a.aa==l.i.da.MIN)return"min";if(a.aa==l.i.da.MAX)return"max"}return"sum"}Bp(a){this.slice.ob.Nc().forEach(c=>this.cL(a,c));this.slice.Db.Nc().forEach(c=>this.cL(a,c));this.slice.yb.Nc().forEach(c=>this.cL(a,c))}cL(a,c){if(c.filter.wi){this.A_(a);const m={bool:{should:[]}};for(var d=c.filter.Pj(c.filter.O1),g=0;g<d.length;g++){var k=c.ya(d[g]);m.bool.should.push(this.fL(c,k))}a.query.bool[c.filter.O1?"must_not":"must"].push(m)}else if(c.filter.Qw||c.filter.tM||c.filter.mz)this.A_(a),
d={bool:{should:[]}},c=c.filter.mz?this.Uua(c):this.gva(c),d.bool.should.push(c),a.query.bool[c.isExclude?"must_not":"must"].push(d),delete c.isExclude}Uua(a){const c={},d=0<=l.i.$b.Wx.indexOf(a.filter.query.va)?a.filter.query.LR(a.getTimezoneOffset()):a.filter.query;if(l.i.$b.EQUAL===d.va||l.i.$b.cg===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.$b.cg===d.va}else if(l.i.$b.FE===d.va)c.range={[a.A]:{lt:d.value.format("yyyy-MM-dd")}},
c.isExclude=!1;else if(l.i.$b.GE===d.va)c.range={[a.A]:{lt:d.value.format("yyyy-MM-dd")+"||+1d/d"}},c.isExclude=!1;else if(l.i.$b.CE===d.va)c.range={[a.A]:{gte:d.value.format("yyyy-MM-dd")+"||+1d/d"}},c.isExclude=!1;else if(l.i.$b.DE===d.va)c.range={[a.A]:{gte:d.value.format("yyyy-MM-dd")}},c.isExclude=!1;else if(l.i.$b.nh===d.va||l.i.$b.bh===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.$b.bh===d.va;return c}gva(a){const c={},d=
a.filter.query;if(l.i.Bb.HE===d.va||l.i.Bb.PA===d.va)c.prefix={[a.A]:d.value},c.isExclude=l.i.Bb.PA===d.va;else if(l.i.Bb.EQUAL===d.va||l.i.Bb.cg===d.va)c.match={[a.A]:d.value},c.isExclude=l.i.Bb.cg===d.va;else if(l.i.Bb.CA===d.va||l.i.Bb.RA===d.va)c.wildcard={[a.A]:"*"+d.value},c.isExclude=l.i.Bb.RA===d.va;else if(l.i.Bb.On===d.va||l.i.Bb.QA===d.va)c.wildcard={[a.A]:"*"+d.value+"*"},c.isExclude=l.i.Bb.QA===d.va;else if(l.i.Bb.GREATER===d.va)c.range={[a.A]:{gt:d.value}},c.isExclude=!1;else if(l.i.Bb.xl===
d.va)c.range={[a.A]:{gte:d.value}},c.isExclude=!1;else if(l.i.Bb.LESS===d.va)c.range={[a.A]:{lt:d.value}},c.isExclude=!1;else if(l.i.Bb.yl===d.va)c.range={[a.A]:{lte:d.value}},c.isExclude=!1;else if(l.i.Bb.nh===d.va||l.i.Bb.bh===d.va)c.range={[a.A]:{gte:d.value[0],lte:d.value[1]}},c.isExclude=l.i.Bb.bh===d.va;return c}fL(a,c){return a.type==l.i.Lc.Sa?{range:{[a.A]:{gte:c.fc,lt:e.CK(new Date(c.fc),this.ma.mapping.Ha(a.A,"interval")).getTime()}}}:{term:{[a.A]:c.caption}}}}f.xla=b})(h.Qe||(h.Qe={}))})(l.external||
(l.external={}))})(e.u||(e.u={}))})(q||(q={}));var Pa;
(function(e){class l extends z.ek{constructor(f){super();f||(f={host:"http://localhost:9200"});this.host="string"===typeof f.host?new h(f.host):h.zb(f.host);f.headers&&(this.host.headers=f.headers);this.contentType=z.yA.K5;this.withCredentials=f.withCredentials}nZ(f,b=q.model.B.j.lP){this.yia=()=>{this.sb(v.fa.Oc,this.yia);f(null,JSON.parse(this.response))};this.N(v.fa.Oc,this.yia);this.eca=()=>{this.sb(v.fa.Aa,this.eca);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(v.fa.Aa,this.eca)}search(f,b){this.nZ(b);this.rr=z.xt.zv;this.Qh(this.host.headers);this.data="string"===typeof f.body?f.body:JSON.stringify(f.body);this.load(this.host.sU(`/${f.index}/_search`));this.data=null}Q0(f){this.nZ(f,this.Xca());this.rr=z.xt.fX;this.Qh(this.host.headers);this.load(this.host.sU("/_cat/indices?format=json"))}Wza(f,b){this.nZ(b,this.Xca());this.rr=z.xt.fX;
this.Qh(this.host.headers);this.load(this.host.sU(`/${f}/_mapping`))}Xca(){const f=q.model.B.j.Yna;let b=this.host.sU();b=q.model.Tb.valid(b)?b:q.model.Tb.validate(b);return q.P.bind(f,b)}}e.y6=l;class h{constructor(f){q.ia(f)||this.Mca(f)}Mca(f){f=q.sHa(f);this.host=f.hostname;this.protocol=f.protocol;this.port=f.port;this.path=f.pathname}sU(f=""){this.host&&-1<this.host.indexOf("http")&&this.Mca(this.host);var b="";this.port!==h.Gwa[this.protocol]&&(b=":"+this.port);var a=q.ia(this.path)?"":this.path;
"/"!==a.charAt(0)&&(a="/"+a);var c=q.ia(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 zb(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.Gwa={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 V(){null==b.instance&&(b.instance=new b);return b.instance}static dispose(){b.instance=null}Q0(a,c){(new Pa.y6(a)).Q0((d,g)=>{if(d)return e.Za(d.message,e.model.B.j.Aa,e.xb.Aa),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.rla=b})(h.Qe||(h.Qe={}))})(l.external||
(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.xa=l.Ra.V();this.ra=this.xa.ra}load(a,c,d,g){this.ma=a;this.query=c;this.Nb=d;this.ab=g;this.ma.Iw(k=>{this.yo=k;this.Zw()})}X4(a,c,d,g=!1){for(var k in c){var m=this.xa.O.fh(k),n=Math.ceil(m.Qm/b.yJ);if(1==n)m=u.Sc.xG(c),delete m[k],this.X4(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.Sc.xG(c),delete m[k],this.X4(a,m,d);if(g)break}return d}Aca(a,
c){for(var d in a){var g=this.xa.O.fh(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.Aca(a[d].aggs,c))}return c}Zw(){e.Ca(!0,e.model.B.j.bg);if(this.query.type==l.i.Rd.np){var a=this.Aca(this.query.body.aggs,{}),c=this.X4(this.query.body,a,[],!0);0==c.length&&c.push(JSON.stringify(this.query.body));var d=new u.MJ;c.forEach((g,k)=>{d.add(m=>this.n2(g,k,c.length,m))});d.pg(()=>{null!=this.Nb&&this.Nb();e.Ca(!1)})}else Array.isArray(this.query.body)?(d=new u.MJ,
this.query.body.forEach(g=>{d.add(k=>this.n2(g,0,0,k))}),d.pg(()=>{null!=this.Nb&&this.Nb();e.Ca(!1)})):this.n2(this.query.body,0,0,()=>{null!=this.Nb&&this.Nb();e.Ca(!1)})}n2(a,c,d,g){0<c&&e.Ca(!0,e.model.B.j.bg,(c/d*100).toFixed(0)+"%");this.yo.search({index:this.ma.index,body:a},(k,m)=>{if(k)return this.Sb(k.message,this.ab),g();k=this.xa.ua.yb.Nc();var n=this.xa.ua.Db.Nc();this.query.type!=l.i.Rd.np||this.xa.ua.Qc||(k=k.slice(0,1),n=n.slice(0,1));var p=this.xa.ua.hd();this.K3(m.aggregations,k.concat(n),
p,0,[],[]);0<n.length&&this.lga(m.aggregations,n.concat(k),p,0,[],[]);g()})}K3(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.Lc.Sa&&(r=n.vu(t.key));e.v(r)&&(r=n.Ib(t.key_as_string||""+t.key));const w=k.slice(),y=m.slice();r&&this.xa.ua.rows.Hb(n.A)?w.push(r.ordinal):r&&y.push(r.ordinal);this.Vda(t,d)?(r=d.map(A=>this.P3(t,A)),this.ra.insert(w,y,r)):this.K3(t,c,d,g+1,w,y)});else if(g<c.length){var p=k.slice();const t=m.slice();this.xa.ua.rows.Hb(n.A)?
p.push(null):t.push(null);this.K3(a,c,d,g+1,p,t)}p=d.map(t=>this.P3(a,t,!0));this.ra.aA(k,m,p)}P3(a,c,d=!1){if(0==a.doc_count)return c.aa==l.i.da.xc||c.aa==l.i.da.Ej?0:NaN;c=(d?"total_":"")+c.aa+"_"+c.A;return e.v(a[c])?NaN:a[c].value}lga(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.Lc.Sa==n.type?n.Ib(""+p.key):n.Ib(p.key_as_string||""+p.key),r=k.slice(),w=m.slice();this.xa.ua.rows.Hb(n.A)?r.push(t.ordinal):w.push(t.ordinal);let y;this.Vda(p,d,!0)&&(y=d.map(A=>this.P3(p,
A,!0)));this.ra.aA(r,w,y);g<c.length-2&&this.lga(p,c,d,g+1,r,w)})}qT(a,c){return c&&a.hasOwnProperty(c.A)}Vda(a,c,d=!1){return(c=c[0])&&a.hasOwnProperty((d?"total_":"")+c.aa+"_"+c.A)}bd(a,c,d,g,k,m,n){e.Ca(!0,e.model.B.j.bg,e.model.B.j.bg);a.Iw(p=>{this.yo=p;this.yo.search({index:a.index,body:c.body},(t,r)=>{if(t)return this.Sb(t.message,n);var w=r.hits.hits.map(A=>A._source),y=c.body._source;w.forEach((A,C)=>{w[C]=y.map(B=>u.Sc.resolve(B,A))});w.unshift(y);m(w)})})}cancel(){this.yo&&this.ma&&!this.ma.connection&&
this.yo.close();this.ab=this.Nb=this.ma=this.xa=this.yo=null}Sb(a,c){console.error(a);e.Ca(!1);e.Za(a,e.model.B.j.Aa,e.xb.Aa);e.Fg(c)&&c(a)}}b.yJ=5E4;f.sla=b})(h.Qe||(h.Qe={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.WW{Ha(a,c,d){a=this.ds(a,c);d=this.Zh(d);return e.v(this.values[a])?NaN:e.v(this.values[a][d])?NaN:this.values[a][d]}aA(a,c,d){a=this.ds(a,c);e.v(this.values[a])&&(this.values[a]=d)}qB(a,c){return null==a||0==a.length?NaN:this.Fc[c][a[0]]}zda(a,c){var d=a.slice(0);a=a.indexOf(null);0<a&&(d.length=a);d[d.length-1]=0;return this.ld(d,c)}insert(a,c,d){for(;a.length<this.Ph.length;)a.push(null);for(;c.length<this.lj.length;)c.push(null);
var g=a.concat(c);if(!(-1<g.indexOf(0))){if(0==this.ub.length)for(var k=0;k<g.length;k++)this.ub[k]=[];(k=this.zda(a,this.Gd))&&k[0]&&k[0].push(this.Ex);(k=this.zda(c,this.Ud))&&k[0]&&k[0].push(this.Ex);this.rh=e.Ja.vr(this.rh,this.Ex);for(k=0;k<g.length;k++)this.ub[k]=e.Ja.vr(this.ub[k],g[k]);if(0==this.Fc.length)for(k=0;k<d.length;k++)this.Fc[k]=[];for(k=0;k<d.length;k++)this.Fc[k]=e.Ja.vr(this.Fc[k],d[k]);this.values[this.ds(a,c)]=d}}filter(){}}f.tla=b})(h.Qe||(h.Qe={}))})(l.external||(l.external=
{}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){(function(f){class b extends l.O.km{constructor(a=null){super(a);this.mu={};this.mu.interval="day";this.mu.min_doc_count=1;this.mu.filters=!0}}f.zO=b})(h.Qe||(h.Qe={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a){this.xa=l.Ra.V();this.yJ=1E5;this.ma=a}load(a,c,d,g){this.Nb=c;this.Oe=g;this.ab=d;e.Ca(!0,e.model.B.j.dF);a.Iw(k=>{this.yo=k;this.w2()})}w2(){this.yo.Wza(this.ma.index,(a,c)=>{if(a)return this.Sb(a.message,this.ab);e.Fg(this.Oe)&&this.Oe();for(var d in c){a=c[d].mappings;for(var g in a)"properties"==g?this.WH(a[g]):this.WH(a[g].properties)}this.mr()})}WH(a,c=null,d="",g="",k=""){for(var m in a)if(this.ma.mapping.Ha(d+m,"visible",
!0)){var n=a[m];if(this.KBa(n)){var p=c?c:this.Wt(m,m);this.WH(n.properties,p,d+m+".",g,k+m+"/")}else if(this.ng(n)){p=c?c:this.Wt(m,m);p=this.oi(p,d+m,m,n,k);var t=this.lk(d+m,m,n);this.xa.O.EK(t.A,p.A)}else if(this.mg(n)){p=c?c:this.Wt(m,m);t=m;var r=!e.ia(g);r&&(t="keyword"==m?g:g+" ("+m+")");p=this.oi(p,d+m,t,n,k);r&&(p.Eea=!0,p.iga=d.substr(0,d.length-1));t=this.lk(d+m,t,n);this.xa.O.EK(t.A,p.A)}e.v(n.fields)||(p=c?c:this.Wt(m,m),this.WH(n.fields,p,d+m+".",m,k+m+"/"))}}Wt(a,c){var d=this.xa.O.Kp(a);
e.v(d)&&(c=this.ma.mapping.Ha(a,"caption",c),d=new f.O.ula(a,c),this.xa.O.Wt(d));return d}oi(a,c,d,g,k=null){var m=a.fh(c);e.v(m)&&(d=this.ma.mapping.Ha(c,"caption",d),m=new f.O.vla(c,d),m.type=l.i.Lc.u0(g.type),m.inputType=g.type,a.oi(m),e.ia(k)?m.Mc=a.caption:("/"==k.charAt(k.length-1)&&(k=k.substr(0,k.length-1)),m.Mc=k),a=new f.O.R6(c,c,1),m.type==l.i.Lc.Sa?a.type=l.i.ib.Jc:m.type==l.i.Lc.Cq&&(a.type=l.i.ib.jb),m.Hh(a));return m}lk(a,c,d){var g=this.xa.O.gd(a);e.v(g)&&(c=this.ma.mapping.Ha(a,"caption",
c),g=new f.O.S6(a,c),g.type=l.i.Pa.u0(d.type),g.Wc=this.ma.mapping.Ha(a,"aggregations"),this.xa.O.lk(g));return g}ng(a){return 0<=l.i.Pa.zL.indexOf(a.type)}KBa(a){return!e.v(a.properties)}mg(a){return 0<=l.i.Lc.zL.indexOf(a.type)}mr(){e.Ca(!1);null!=this.Nb&&this.Nb()}gl(a,c,d){e.Ca(!0,e.model.B.j.Un,a.caption);a.type==l.i.Lc.Sa?this.QCa(a,g=>{if(g)return this.Sb(g,d);a.Wd=!0;e.Ca(!1);c(a)}):this.Nva(a,(g,k)=>{if(g)return this.Sb(g,d);0==k?(a.Wd=!0,c(a)):this.ofa(a,0,Math.ceil(k/this.yJ),k,m=>{if(m)return this.Sb(m,
d);a.Wd=!0;e.Ca(!1);c(a)})})}Nva(a,c){a={size:0,aggs:{count:{cardinality:{field:a.A}}}};e.v(this.ma.We)||(a.query=u.Sc.nj(this.ma.We));this.yo.search({index:this.ma.index,body:a},(d,g)=>{if(d)return c(d.message);c(null,g.aggregations.count.value)})}ofa(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.yJ}}}};e.v(this.ma.We)||(m.query=u.Sc.nj(this.ma.We));this.yo.search({index:this.ma.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.lc(a,n[p].key_as_string||n[p].key,n[p].key);c<d-1?(e.Ca(!0,e.model.B.j.Un,e.P.bind("{0}: {1} of {2} loaded",a.caption,(c+1)*this.yJ,g)),this.ofa(a,c+1,d,g,k)):k()})}QCa(a,c){var d={size:0,aggs:{[a.A]:{date_histogram:{field:a.A,min_doc_count:this.ma.mapping.Ha(a.A,"min_doc_count"),interval:this.ma.mapping.Ha(a.A,"interval"),time_zone:this.ma.mapping.Ha(a.A,"time_zone"),format:this.ma.mapping.Ha(a.A,"format",e.model.C.F.Ep)}}}};e.v(this.ma.We)||(d.query=u.Sc.nj(this.ma.We));
this.yo.search({index:this.ma.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.lc(a,g[k].key_as_string,g[k].key);c()})}lc(a,c,d){"string"!=typeof c&&(c=""+c);const g="number"===typeof d?d:null;let k=a.type!==l.i.Lc.Sa?a.Ib(c):a.vu(g);null==k?(c=a.type==l.i.Lc.Sa?new l.O.ae({A:String(g),caption:c,fc:g}):new l.O.ae({A:c,fc:g}),k=a.lc(c)):k.fc!=d&&a.type==l.i.Lc.Sa&&(k=a.lc(new l.O.ae({A:`${c}-${d}`,caption:c,fc:g})));return k}Bk(a,c,d,g){this.gl(a,
d,g)}Cz(){throw"Not Implemented";}nq(){throw"Not Implemented";}ZB(){return!1}cancel(){this.yo&&this.ma&&!this.ma.connection&&this.yo.close();this.Oe=this.ab=this.Nb=this.ma=this.xa=this.yo=null}Sb(a,c){console.error(a);e.Ca(!1);e.Za(a,e.model.B.j.Aa,e.xb.Aa);e.Fg(c)&&c(a)}}f.zla=b})(h.Qe||(h.Qe={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.kt{constructor(){super();this.index=this.url=null;this.Qo=!1;this.mapping=new f.dO;this.Aha="2.8.5";this.Da=l.i.qa.API}isEqual(a){return super.isEqual(a)&&this.url==a.url&&this.index==a.index&&this.Qo==a.Qo&&this.mapping.isEqual(a.mapping)}get AH(){return!0}static zb(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.sc=a.requestHeaders);e.v(a.mapping)||(c.mapping=
a.mapping instanceof f.dO?a.mapping:new f.dO(a.mapping));e.v(a.withCredentials)||(c.withCredentials=a.withCredentials);e.v(a.singleEndpoint)||(c.Qo=a.singleEndpoint);return c}Qa(a=!1){var c={};c.type=this.Da;e.v(this.url)||(c.url=this.url);e.v(this.index)||(c.index=this.index);if(a||this.Qo)c.singleEndpoint=this.Qo;if(!this.mapping.nb||this.mapping.Jo)c.mapping=this.mapping.Qa(!0);if(a||this.withCredentials)c.withCredentials=this.withCredentials;return c}Iw(){return new f.oA({url:this.url,Qo:this.Qo,
sc:this.sc,withCredentials:this.withCredentials})}clone(){var a=new b;a.Da=this.Da;e.v(this.url)||(a.url=this.url);e.v(this.index)||(a.index=this.index);e.v(this.Qo)||(a.Qo=this.Qo);if(!this.mapping.nb||this.mapping.Jo)a.mapping=this.mapping.clone(this.Da);this.withCredentials&&(a.withCredentials=this.withCredentials);return a}}f.G5=b})(h.pc||(h.pc={}))})(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.pA{constructor(c,d=""){super(c,d)}}b.WKa=a})(f.O||(f.O={}))})(h.pc||(h.pc={}))})(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.bP{constructor(c,d=""){super(c,d);this.Qu=!1}YC(){return new b.vja(this)}get j1(){return e.Fg(this.ex)||this.Qu}TV(c,d){return this.Qu?0<c.UZ.length?this.FJa(c.UZ.slice()):this.GJa(c.children):super.TV(c,d)}FJa(c){return this.Gh===l.i.za.ic?c:this.Gh===l.i.za.Kc?c.reverse():c}GJa(c){this.Gh===l.i.za.ic&&e.Ja.sort(c,e.Ja.Ki);this.Gh===l.i.za.Kc&&e.Ja.sort(c,e.Ja.ep|e.Ja.Ki);return c}clone(){var c=super.clone();
c.Qu=this.Qu;return c}get Wd(){return this.xB}set Wd(c){this.xB=c}}b.cO=a})(f.O||(f.O={}))})(h.pc||(h.pc={}))})(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.it{constructor(c,d="",g=0){super(c,d,g)}}b.uja=a})(f.O||(f.O={}))})(h.pc||(h.pc={}))})(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.Br{constructor(c,d=""){super(c,d);this.XF=[];this.Sv=void 0}get hc(){return e.model.Tb.valid(this.vc)?this.vc:e.model.Tb.validate(this.vc)}get caption(){if(0==e.model.C.F.xx)return this.hc;switch(this.aa){case l.i.da.Iq:return e.P.bind(e.model.B.j.LJ,this.hc);case l.i.da.xc:return e.P.bind(e.model.B.j.kO,this.hc);case l.i.da.st:return e.P.bind(e.model.B.j.uP,this.hc);case l.i.da.Ej:return e.P.bind(e.model.B.j.uO,
this.hc);case l.i.da.xq:return e.P.bind(e.model.B.j.fO,this.hc);case l.i.da.wv:return e.P.bind(e.model.B.j.rX,this.hc);case l.i.da.Cv:return e.P.bind(e.model.B.j.CP,this.hc);case l.i.da.Dv:return e.P.bind(e.model.B.j.DP,this.hc);case l.i.da.MAX:return e.P.bind(e.model.B.j.eP,this.hc);case l.i.da.MIN:return e.P.bind(e.model.B.j.nP,this.hc);case l.i.da.Ir:return e.P.bind(e.model.B.j.FJ,this.hc);case l.i.da.lp:return e.P.bind(e.model.B.j.zJ,this.hc);case l.i.da.Hq:return e.P.bind(e.model.B.j.EJ,this.hc);
case l.i.da.Fq:return e.P.bind(e.model.B.j.CJ,this.hc);case l.i.da.Gq:return e.P.bind(e.model.B.j.DJ,this.hc);case l.i.da.Ji:return e.P.bind(e.model.B.j.mJ,this.hc);case l.i.da.en:return e.P.bind(e.model.B.j.vP,this.hc);case l.i.da.Yn:return e.P.bind(e.model.B.j.xP,this.hc);case l.i.da.Rn:return e.P.bind(e.model.B.j.SI,this.hc);case l.i.da.an:return e.P.bind(e.model.B.j.TI,this.hc);case l.i.da.Wn:return e.P.bind(e.model.B.j.AJ,this.hc);case l.i.da.cn:return e.P.bind(e.model.B.j.BJ,this.hc);case l.i.da.NONE:return this.hc}return-1<
l.i.da.nO.indexOf(this.aa)?`${this.hc} (${this.aa})`:e.P.bind(e.model.B.j.LJ,this.hc)}set Op(c){this.Qv=c}get Op(){return-1<l.i.da.nO.indexOf(this.fk)?`${this.hc} (${this.fk})`:super.Op}set caption(c){this.vc=c}get kl(){return this.vc}set kl(c){}get Zj(){return this.XF}set Zj(c){this.XF=[];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.da.Ty(g)&&(g=l.i.da.cz(g));l.i.da.iA(g)&&this.XF.push(g)}}set Wc(c){if(e.v(c))this.hn=this.Zj,this.type==l.i.Pa.jb&&
0<this.hn.length&&(this.hn=this.hn.concat(l.i.da.nA));else{for(var d=[],g=0;g<c.length;g++){var k=c[g].trim().toLowerCase();l.i.da.Ty(k)&&(k=l.i.da.cz(k));(-1!==this.Zj.indexOf(k)||this.type==l.i.Pa.jb&&-1!==l.i.da.nA.indexOf(k))&&d.push(k)}this.hn=0<d.length?d:this.Zj}this.Sv=void 0;this.ZAa(this.hn)||(this.hn=[])}get Wc(){return!1===this.Sv||0<this.hn.length?this.hn:this.Zj}ZAa(c){if(void 0===this.Sv){this.Sv=!1;for(var d=0;d<c.length;d++)if(l.i.da.zT(c[d])){this.Sv=!0;break}}return this.Sv}m1(){var c=
new a("","");return this.ve!=c.ve||this.format!=c.format||0==this.Km?!1:!0}clone(){var c=new a(this.A);this.iL(c);void 0!=this.XF&&(c.XF=this.XF.slice());void 0!=this.Sv&&(c.Sv=this.Sv);return c}}b.J5=a})(f.O||(f.O={}))})(h.pc||(h.pc={}))})(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.JI{constructor(){super(...arguments);this.UZ=[]}get Oh(){return this.level.Nu?!0:!(this.Rg||this.vf)&&0===this.children.length}}b.vja=a})(f.O||(f.O={}))})(h.pc||(h.pc={}))})(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.cP{constructor(){super();this.VG=new b.ap}Do(c,d){return new b.cO(c,d)}vda(c,d){return new b.J5(c,d)}Tl(c,d,g){return new b.uja(c,d,g)}bx(c,d=null,g=!1){var k=d?d:new b.J5(c.uniqueName);return super.bx(c,k,e.v(d)||g)}}b.EI=a})(f.O||(f.O={}))})(h.pc||(h.pc={}))})(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.wW{constructor(){super(...arguments);this.A9=!1}get JK(){return this.A9}set JK(c){this.A9=c}gaa(c,d){e.v(this.nB)&&(this.nB=new e.tb);this.nB.Ta(c,d)}Gda(c,d){let g=void 0;if(!e.v(this.nB)){const k=l.i.Lc.wE(c.type);this.nB.Hb(k)?g=this.OR(this.nB.getItem(k),d):this.nB.Hb(l.i.input.sa.DI)&&(g=this.OR(this.nB.getItem(l.i.input.sa.DI),d))}return!e.v(this.my)&&this.my.Hb(c.A)?(c=this.OR(this.my.getItem(c.A),d),void 0!==
g&&c.merge(g),c):g?g:this.JK?this.eH(d):null}}a.wH=!1;b.ap=a})(f.O||(f.O={}))})(h.pc||(h.pc={}))})(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.XKa=b;class a{constructor(){this.xk=void 0;this.aOa=null}}f.YKa=a;class c{constructor(d){this.rows={};this.Ka={};this.values={};this.filters={};this.slice=d}select(){var d=this.lC(l.i.ja.La),g=this.lC(l.i.ja.Xa),k=this.HR(),m=this.Bp(),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}QIa(){var d=this.lC(l.i.ja.La),g=this.HR(),k=this.Bp(),m={aggs:{}};!k||Array.isArray(k)&&0===k.length||(m.filter=k);m.fields=d;m.aggs.values=g;return m}Mf(d){var g=this.lC(l.i.ja.La),k=this.lC(l.i.ja.Xa),m=this.HR(),n=this.Bp();d={type:l.i.Rd.qv,axisName:d,aggs:{}};!n||Array.isArray(n)&&0===n.length||(d.filter=n);if(0<g.length||0<k.length)d.aggs={by:{}},0<g.length&&(d.aggs.by.rows=g),0<k.length&&(d.aggs.by.cols=k);0<m.length&&(d.aggs.values=m);return d}expand(d){var g=
this.lC(l.i.ja.La),k=this.lC(l.i.ja.Xa),m=this.HR(),n=this.Bp();d={type:l.i.Rd.EA,axisName:d,aggs:{}};!n||Array.isArray(n)&&0===n.length||(d.filter=n);if(0<g.length||0<k.length)d.aggs={by:{}},0<g.length&&(d.aggs.by.rows=g),0<k.length&&(d.aggs.by.cols=k);0<m.length&&(d.aggs.values=m);return d}bd(d,g,k=!0){return k?this.qxa(d):this.W_(d,g)}qxa(d){d=this.Xua(d);var g=this.Bp(),k={};k.limit=e.model.C.F.LG;!g||Array.isArray(g)&&0===g.length||(k.filter=g);k.fields=d;return k}W_(d,g){var k=[];const m=this.slice.wc(!1,
!0,!0,!0).Nc();var n=[];for(let w=0;w<d.length;w++){var p={uniqueName:d[w]},t=m.find(y=>y.A===d[w]);if(t){var r=t.ta.ea(1);this.CK(r,t.interval,p)}k.push(p);void 0!==g[d[w]]&&(t={},t.field={uniqueName:d[w]},p=g[d[w]],l.i.ib.VT(r.type)&&!isNaN(p)&&null!==p?p=+p:r.type===l.i.ib.$c&&(p=""+p),t.include=[{member:p}],n.push(t))}e.v(this.filters)||n.push(...this.Yua());g={};g.limit=e.model.C.F.LG;0<n.length&&(g.filter=n);g.fields=k;return g}Xua(d){const g=[],k=this.slice.Yc.wc(!1).Nc();for(var m=0;m<d.length;m++){const p=
{uniqueName:d[m]};var n=k.find(t=>t.A===d[m]);n&&this.CK(n.ta.ea(1),n.interval,p);g.push(p)}return g}lC(d){const g=[],k=this.slice.wc(!1,!0,!0,!0).Nc();d=d===l.i.ja.La?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.CK(k[m].ta.ea(1),k[m].interval,n);g.push(n)}else for(n=0;n<k[m].ta.length;n++){var p=k[m].ta.ea(n).A;-1!==d[t].indexOf(p)&&g.push({uniqueName:p})}}return g}CK(d,g,k){if(d.type===l.i.ib.Sa||d.type===l.i.ib.Jc)k.interval=
g}HR(){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}cL(d){var g=d.A,k=d.mg?d.ta.ea(1).A:g,m={};m.field={uniqueName:k};if(void 0!==this.filters[g].query)if(f.O.ap.wH)Array.isArray(this.filters[g].query)?m={type:"or",value:this.filters[g].query}:m.query=this.filters[g].query;else if(d.mg){var n=Object.keys(this.filters[g].query)[0];l.i.qb.hea(d.ta.ea(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)for(m.include=[],n=0;n<this.filters[g].include.length;n++)m.include.push(this.filters[g].include[n]);if(void 0!==this.filters[g].exclude)for(m.exclude=[],n=0;n<this.filters[g].exclude.length;n++)m.exclude.push(this.filters[g].exclude[n]);if(void 0!==this.filters[g].intersect)if(f.O.ap.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.mg?d.ta.ea(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}Yua(){for(var d=[],g=this.slice.wc(!1,!0,!0).Nc(),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].mg?g[k].ta.ea(1).A:g[k].A};d.push(m)}return d}Bp(){for(var d=[],g=this.slice.wc(!1,!0,!0).Nc(),k=0;k<g.length;k++){var m=g[k];this.rZ(m);void 0!==this.filters[m.A]&&d.push(this.cL(m))}if(!f.O.ap.wH)return d;if(0<d.length)return{type:"and",
value:d}}Uk(d,g){this.ty(this.rows,d,g)}tm(d,g){this.ty(this.Ka,d,g)}ty(d,g,k){var m=g.A;void 0===d[m]&&(d[m]=[]);if(void 0===k&&g.mg){if(null!=g.oc||this.slice.kd){for(k=1;k<g.ta.length;k++){var n=g.ta.ea(k);-1===d[m].indexOf(n.A)&&d[m].push(n.A);if(n==g.oc&&!this.slice.kd)break}return}k=g.ta.ea(1)}void 0!==k&&(g=k.A,-1===d[m].indexOf(g)&&d[m].push(g))}daa(d){d.forEach(g=>{this.Uk(g)})}R$(d){d.forEach(g=>{this.tm(g)})}FK(d){if(""!==d.xm){var g=d.A,k=d.xm;void 0===this.values[g]&&(this.values[g]=
[]);d.Na||-1!==this.values[g].indexOf(k)||this.values[g].push(k)}}tsa(d,g){void 0===this.filters[d.A]&&(this.filters[d.A]={});d.filter.mz&&(g=g.LR(d.getTimezoneOffset()));g=this.Qga(g);if(d.mg&&f.O.ap.wH){for(var k=[],m=1;m<d.ta.length;m++){var n=Object.keys(g)[0],p=d.ta.ea(m);l.i.qb.hea(p.type,n)&&k.push({field:{uniqueName:p.A},query:g})}this.filters[d.A].query=k}else this.filters[d.A].query=g}usa(d,g,k){d=d.A;void 0===this.filters[d]&&(this.filters[d]={});this.filters[d].query=this.Qga(g);this.filters[d].value=
{field:{uniqueName:k.A},func:k.aa}}Qga(d){let g=d.value;g instanceof e.Zg&&(g=g.getTime());Array.isArray(g)&&g[0]instanceof e.Zg&&(g=[g[0].getTime(),g[1].getTime()]);return{[d.va]:g}}$r(d,g,k,m){var n=d.A;f.O.ap.sM||"intersect"!==k||(k="include");void 0===this.filters[n]&&(this.filters[n]={});void 0===this.filters[n][k]&&(this.filters[n][k]=[]);for(var p,t,r;!g.Zb&&void 0!==g.parent;){var w=g.level.A;t=g.A;e.model.C.F.br&&("null"===t&&(t=null),"undefined"===t&&(t=void 0),"(blank)"===t&&(t=""));e.ia(t)||
(t=l.i.ib.VT(g.level.type)&&!isNaN(g.fc)?g.fc:1<g.level.wb?g.A.substr(1,g.A.length-2).split("].[").pop():g.A);r={};g.parent.Zb?(r.member=t,void 0!==p&&(r.filter=p)):(m?this.Uk(d,g.level):this.tm(d,g.level),r.field={uniqueName:w},r.include=[{member:t}],void 0!==p&&(r.include[0].filter=p));p=r;g=g.parent}this.filters[n][k].push(p)}rZ(d,g=!1,k){var m=d.filter.clone();if(m.wi&&!g){var n=m.Pj().length<d.Ri/2;g=n?m.Pj():m.Pj(!0);for(var p=0;p<g.length;p++){var t=d.ya(g[p]);this.$r(d,t,n?"include":"exclude",
k)}}!e.v(m.query)&&m.oz&&(!e.v(m.measure)&&m.xi?(k=this.slice.Yc.gd(m.measure.A))&&!0!==k.Na&&(l.i.da.zT(m.measure.aa)||(m.measure.aa=k.xm),this.usa(d,m.query,m.measure)):this.tsa(d,m.query))}clone(){var d=new c(this.slice);d.rows=u.Sc.nj(this.rows);d.Ka=u.Sc.nj(this.Ka);d.values=u.Sc.nj(this.values);d.filters=u.Sc.nj(this.filters);return d}}c.lX=["type","axisName"];f.lv=c})(h.pc||(h.pc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(c){this.slice=c}get tBa(){return h.pc.O.ap.sM}select(){return e.model.C.F.rc&&e.model.C.F.je!==e.K.Id.dj?this.ava():this.mva()}ava(){for(var c=new f.lv(this.slice),d=this.slice.wc(!1,!0,!0,!0),g=0;g<d.length;g++){var k=this.slice.cf(d.ea(g).A);this.Aea(k)&&c.FK(k);k=d.ea(g);if(k.mg)for(var m=1;m<k.ta.length;m++)c.Uk(k,k.ta.ea(m));else c.Uk(k)}for(g=0;g<this.slice.Kf.length;g++)d=this.slice.Kf[g],this.Aea(d)&&c.FK(d);return c.QIa()}Aea(c){return c.type!==
l.i.Pa.xc&&c.type!==l.i.Pa.Sa}mva(){var c=new f.lv(this.slice),d=this.slice.yb.Nc(),g=this.slice.Db.Nc();this.slice.Qc?(0<d.length&&c.daa(d),0<g.length&&c.R$(g)):(0<d.length&&c.Uk(d[0]),0<g.length&&c.tm(g[0]));for(d=0;d<this.slice.Kf.length;d++)g=this.slice.Kf[d],g.Na||c.FK(g);return c.select()}T$(c,d){d(c);if(2<c.ta.length){let k=1;var g=c.ta.ea(k);for(g=c.CC(g);g&&0<g.length;)g=c.ta.ea(++k),d(c,g),g=c.CC(g)}}expand(c,d){const g=new f.lv(this.slice);var k=c==l.i.ja.La,m=this.slice.yb.Nc(),n=this.slice.Db.Nc();
if(k){0<n.length&&this.T$(n[0],(t,r)=>g.tm(t,r));for(n=0;n<d.length;n++)for(var p=m[n].ya(d[n]);!p.Zb;)g.Uk(p.hierarchy,p.level),g.$r(m[n],p,"intersect",!0),p=p.parent;p=m[d.length];if(null==p.oc)g.Uk(p,p.ta.ea(1));else for(d=1;d<p.ta.length&&(m=p.ta.ea(d),g.Uk(p,m),m!=p.oc);d++);}else{0<m.length&&this.T$(m[0],(t,r)=>g.Uk(t,r));for(m=0;m<d.length;m++)for(p=n[m].ya(d[m]);!p.Zb;)g.tm(p.hierarchy,p.level),g.$r(n[m],p,"intersect",!1),p=p.parent;p=n[d.length];if(null==p.oc)g.tm(p,p.ta.ea(1));else for(d=
1;d<p.ta.length&&(m=p.ta.ea(d),g.tm(p,m),m!=p.oc);d++);}for(d=0;d<this.slice.Kf.length;d++)p=this.slice.Kf[d],p.Na||g.FK(p);k=this.N$(g,k?l.i.ja.Xa:l.i.ja.La);k.unshift(g.expand(c));return k}Mf(c,d,g){var k=new f.lv(this.slice),m=c==l.i.ja.La,n=this.slice.yb.Nc(),p=this.slice.Db.Nc();if(m)for(k.daa(n.slice(0,d.length)),0<p.length&&k.tm(p[0]),p=0;p<d.length-1;p++)k.$r(n[p],n[p].ya(d[p]),"intersect",!0);else for(k.R$(p.slice(0,d.length)),0<n.length&&k.Uk(n[0]),n=0;n<d.length-1;n++)k.$r(p[n],p[n].ya(d[n]),
"intersect",!1);d=g;n=d.hierarchy.ta.ea(d.level.wb+1);if(m)for(k.Uk(d.hierarchy,n);!d.Zb;)k.Uk(d.hierarchy,d.level),d=d.parent;else for(k.tm(d.hierarchy,n);!d.Zb;)k.tm(d.hierarchy,d.level),d=d.parent;k.$r(g.hierarchy,g,"intersect",m);for(g=0;g<this.slice.Kf.length;g++)d=this.slice.Kf[g],d.Na||k.FK(d);g=this.N$(k,m?l.i.ja.Xa:l.i.ja.La);m=this.dsa(k,m?l.i.ja.Xa:l.i.ja.La);g.concat(m);g.unshift(k.Mf(c));return g}N$(c,d){var g=[],k=d===l.i.ja.La,m=this.slice.yb.Nc(),n=this.slice.Db.Nc(),p=k?this.slice.cc.Ed:
this.slice.Rb.Ed;for(let w=0;w<p.length;w++){const y=p[w];var t=c.clone();if(k){for(var r=0;r<y.length-1;r++)t.Uk(m[r]),t.$r(m[r],m[r].ya(y[r+1]),"intersect",!0);t.Uk(m[y.length-1])}else{for(r=0;r<y.length-1;r++)t.tm(n[r]),t.$r(n[r],n[r].ya(y[r+1]),"intersect",!1);t.tm(n[y.length-1])}g.push(t.expand(d))}return g}dsa(c,d){var g=[],k=d===l.i.ja.La,m=this.slice.yb.Nc(),n=this.slice.Db.Nc(),p=k?this.slice.cc.tf:this.slice.Rb.tf;for(let A=0;A<p.length;A++){var t=p[A].slice(),r=c.clone(),w=t.pop();t.shift();
if(k){for(var y=0;y<t.length;y++)r.Uk(m[y]),r.$r(m[y],m[y].ya(t[y+1]),"intersect",!0);t=m[t.length-1];r.Uk(t)}else{for(y=0;y<t.length;y++)r.tm(n[y]),r.$r(n[y],n[y].ya(t[y+1]),"intersect",!1);t=n[t.length-1];r.tm(t)}w=y=t.ya(w);y=t.ta.ea(y.level.wb+1);if(k)for(c.Uk(t,y);!w.Zb;)c.Uk(t,w.level),w=w.parent;else for(c.tm(t,y);!w.Zb;)c.tm(t,w.level),w=w.parent;g.push(r.Mf(d))}return g}bd(c,d,g,k=null){return this.tBa?this.pxa(c,d,k):this.W_(c,d,k)}pxa(c,d,g=null){const k=new f.lv(this.slice),m=this.slice.ob.Nc(),
n=this.slice.yb.Nc(),p=this.slice.Db.Nc(),t=this.slice.Kf;this.V_(m,[],k,g,!1);this.V_(n,c,k,g,!0);this.V_(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.bd(g,!0)}V_(c,d,g,k,m){for(var n,p=0;p<c.length;p++)if(g.rZ(c[p],!e.v(d[p]),m),d[p]&&(n=c[p].ya(d[p]))&&g.$r(c[p],n,"intersect",m),c[p].mg){let r=k.indexOf(c[p].A);-1!==r&&k.splice(r,1);for(n=1;n<c[p].ta.length;n++){var t=c[p].ta.ea(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)}W_(c,d,g=null){const k=new f.lv(this.slice),m=this.slice.ob.Nc(),n=this.slice.yb.Nc(),p=this.slice.Db.Nc(),t=this.slice.Kf,r={};this.X_(m,[],r,k,g);this.X_(n,c,r,k,g);this.X_(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.bd(g,r,!1)}X_(c,d,g,k,m){let n,p;for(var t=0;t<c.length;t++)p=c[t].A,k.rZ(c[t],!e.v(d[t])),d[t]&&(n=c[t].ya(d[t]))&&(g[p]=l.i.ib.VT(n.level.type)?n.fc:n.A),-1===m.indexOf(p)&&m.push(p)}}f.wja=b;class a{constructor(c){this.page=0;
this.mx=null;this.OK=d=>{null!=this.mx?d.pageToken=this.mx:d.page=this.page};e.v(c.mx)||(this.mx=c.mx);e.v(c.page)||(this.page=c.page)}}f.Xm=a})(h.pc||(h.pc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(c){this.IH=[];this.withCredentials=this.closed=!1;"string"===typeof c.url?this.url=c.url:e.Fg(c.url)&&(this.bja=(d,g,k)=>c.url(d,g,k));this.Qo=c.Qo;this.sc=c.sc;this.withCredentials=c.withCredentials}Qh(c){this.sc=c;for(const d of this.IH)d.Qh(this.sc)}nx(c,d,g,k=null){if(e.v(this.url))e.v(this.bja)?e.Ce(()=>{g(e.model.B.j.Vna,null)},1):e.Ce(()=>{d=this.rba(d);this.bja(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.gwa();m.$e=g;m.RN=k;d=this.rba(d,m);m.data=JSON.stringify(d);m.load(this.Qo?this.url:`${this.url}/${c}`)}}gwa(){var c=z.xt.zv,d=new a;d.contentType=z.yA.K5;d.rr=c;d.withCredentials=this.withCredentials;d.Qh(this.sc);d.N(v.fa.Oc,()=>this.kr(d));
d.N(v.fa.Aa,g=>this.Sb(g,d));this.IH.push(d);return d}rba(c,d){if(!e.v(b.nL)){var g=JSON.parse(JSON.stringify(c));g.requestHeaders=e.v(this.sc)?{}:this.sc;g=b.nL(g);e.v(g)||(e.v(g.requestHeaders)||(e.v(d)||d.Qh(g.requestHeaders),delete g.requestHeaders),c=g)}return c}a_(c){c.close();this.IH.splice(this.IH.indexOf(c),1)}kr(c){if("object"==typeof c.response)c.$e(null,c.response);else if("string"==typeof c.response)try{var d=JSON.parse(c.response);c.$e(null,d)}catch(g){c.$e(g,null)}this.a_(c)}Sb(c,d){d.$e(this.parseError(c.data,
d),null);this.a_(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.IH.length;)this.a_(this.IH[0])}}b.nL=null;f.oA=b;class a extends z.ek{bv(c){if(null!=this.xhr&&4===this.xhr.readyState){if(200===this.xhr.status)return this.oI();if(401===this.xhr.status&&e.Fg(this.RN))return this.RN(d=>{d?this.retry():
this.Sb(c)});this.Sb(c)}null!=this.xhr&&3>this.xhr.readyState&&!this.connected&&(this.connected=!0,this.Fa(new v.fa(v.fa.vA)))}Sb(){var c;0===this.xhr.status?c=e.P.bind(e.model.B.j.Una,this.url):404===this.xhr.status?c=e.P.bind(e.model.B.j.Pna,this.url):400===this.xhr.status?c=e.P.bind(e.model.B.j.Ona,this.url):500===this.xhr.status&&(c=e.P.bind(e.model.B.j.Qna,this.url));this.response=this.xhr.response||this.xhr.responseText||this.xhr.statusText;this.Fa(new v.fa(v.fa.Aa,this,c))}}})(h.pc||(h.pc=
{}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{am(a){if(e.model.Ua.V().n1(e.model.Ua.OJ)){const c=new e.model.cd(e.model.Ua.OJ,d=>{if(!e.v(d)&&!e.v(d.requestHeaders)){const g=this.ma.sc||{};for(let k in d.requestHeaders)d.requestHeaders.hasOwnProperty(k)&&(g[k]=d.requestHeaders[k]);this.ma.sc=g;this.client.Qh(g)}a(!0)});e.model.Ua.V().Fa(c)}else a(!1)}}f.F5=b})(h.pc||(h.pc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.F5{constructor(a){super();this.xa=l.Ra.V();this.ma=a;this.client=this.ma.Iw()}load(a,c,d,g){this.Nb=c;this.ab=d;this.Oe=g;this.wia=!1;this.XAa()}XAa(){this.client.nx("handshake",{type:"handshake",version:e.ph.ft},(a,c)=>{a=!0;let d;e.v(c)||(this.client.close(),d=c.version,a=this.nua(d),this.ma.Aha=d,this.client=this.ma.Iw());if(a&&!this.wia)this.w2();else if(!e.v(d)&&this.sCa(d))return this.Sb(e.P.bind(e.model.B.j.Tna,this.ma.url,
b.NX))},a=>this.am(a));e.Ca(!0,e.model.B.j.dF)}nua(a){return e.ia(a)?!0:-1!=e.P.FR(a,b.NX)}sCa(a){return-1==e.P.FR(a,b.NX)}w2(){this.wia=!0;this.client.nx("fields",{index:this.ma.index,type:"fields"},(a,c)=>{if(a)return this.Sb(a);this.mr(c)},a=>this.am(a));e.Ca(!0,e.model.B.j.dF)}mr(a){e.Ca(!1);null!=this.Oe&&this.Oe();if(e.v(a)||e.v(a.fields))return this.Sb(e.P.bind(e.model.B.j.Sna,this.ma.url));a.sorted&&(this.xa.O.Qu=!0);let c;e.v(a.aggregations)||(c=this.MGa(a.aggregations));e.v(a.filters)||
this.aHa(a.filters);this.WH(a.fields,c);null!=this.Nb&&this.Nb()}MGa(a){let c={};if(Array.isArray(a))c[l.i.input.sa.DI]=a.map(n=>n.toString());else for(var d=0;d<l.i.input.sa.MK.length;d++){var g=l.i.input.sa.MK[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.da.mA.indexOf(m)&&m!==l.i.da.NONE&&(l.i.da.mA.push(m),l.i.da.nO.push(m))}}}return c}ywa(a){let c;switch(a){case l.i.input.sa.$c:c=l.i.qb.Ok;break;case l.i.input.sa.jb:c=
l.i.qb.jb;break;case l.i.input.sa.Sa:c=l.i.qb.Sa}return c}aHa(a){if(!0===a||!1===a)this.xa.O.VG.JK=a;else{for(var c=0;c<l.i.input.sa.MK.length;c++){var d=l.i.input.sa.MK[c];if(!e.v(a[d])){const g=this.pga(a[d],this.ywa(d));this.xa.O.VG.gaa(d,g)}}f.O.ap.sM=!0===a.advanced;f.O.ap.sM&&(f.O.ap.wH=1==e.P.FR(this.ma.Aha,"2.8.21"))}}pga(a,c){if(!0===a||!1===a)return a;let d=new l.O.Wpa;e.v(a.members)||(d.md=!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.qb.Ok&&l.i.Bb.Ug(g)||c==l.i.qb.jb&&l.i.Jg.Ug(g)||c==l.i.qb.Sa&&l.i.$b.Ug(g)||e.v(c)&&l.i.Bb.Ug(g)&&l.i.Jg.Ug(g)&&l.i.$b.Ug(g))e.v(d.query)&&(d.query=[]),d.query.push(g);if(!e.v(a.valueQuery))if("boolean"===typeof a.valueQuery)d.gm=a.valueQuery;else if(Array.isArray(a.valueQuery))for(let g of a.valueQuery)l.i.yc.Ug(g)&&(e.v(d.gm)&&(d.gm=[]),d.gm.push(g));return d}WH(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.da.mA.indexOf(r)&&r!==l.i.da.NONE&&(l.i.da.mA.push(r),l.i.da.nO.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.DI])||(d.supportedAggregations=c[l.i.input.sa.DI]):d.supportedAggregations=c[g]);d.type===l.i.input.sa.Sa&&(d.type=l.i.input.sa.Dj);this.xa.O.sy(d,k);
g=this.xa.O.RC(k);g instanceof f.O.cO&&!e.v(d.filters)&&(k=e.model.hb.JA.WS(g),d=this.pga(d.filters,k),this.xa.O.VG.zsa(g.A,d))}}Sb(a){console.error(a);e.Ca(!1);a=a.message||a;e.Za(a,e.model.B.j.Aa,e.xb.Aa);this.ab&&e.Fg(this.ab)&&(this.ab(a),this.ab=null)}gl(a,c,d){const g=this.xa.ga.mapping.Ha(a.A,"filters");!1===g||!1===g.members?setTimeout(c,1,a):(this.ab=d,e.Ca(!0,e.model.B.j.Un,a.caption),a.mg?null!==a.oc||this.xa.ua.kd?this.SM(a,k=>this.Sj(k,c)):this.Bk(a,a.Ad,k=>this.Sj(k,c)):this.v2(a,new f.Xm({page:0}),
k=>this.Sj(k,c)))}v2(a,c,d){var g={};if(a.ta.ea(1).type===l.i.ib.Sa||a.ta.ea(1).type===l.i.ib.Jc)g.interval=a.interval;g.uniqueName=a.A;g={index:this.ma.index,type:"members",field:g};c.OK(g);this.client.nx("members",g,(k,m)=>{if(k)return this.Sb(k);if(!this.M3(a,m))return this.Sb(e.P.bind(e.model.B.j.b8,this.ma.url));e.v(m.nextPageToken)?!e.v(m.pageTotal)&&c.page+1<m.pageTotal?(e.Ca(!0,e.model.B.j.Un,`${a.caption} - ${Math.round((c.page+1)/m.pageTotal*100)}%`),this.v2(a,new f.Xm({page:c.page+1}),
d)):(a.Wd=!0,d(a)):(e.Ca(!0,e.model.B.j.Un,a.caption),this.v2(a,new f.Xm({mx:m.nextPageToken}),d))},k=>this.am(k))}fL(a){for(var c;!a.Zb;){var d={};if(a.level.type===l.i.ib.Sa||a.level.type===l.i.ib.Jc)d.interval=a.level.hierarchy.interval;d.uniqueName=a.level.A;var g=a.A;l.i.ib.VT(a.level.type)&&!isNaN(a.fc)?g=a.fc:1<a.level.wb&&(g=a.A.substr(1,a.A.length-2).split("].[").pop());var k=c;c={field:d,include:[{member:g}]};k&&(c.include[0].filter=k);a=a.parent}return c}nfa(a,c,d,g){var k={};if(a.type===
l.i.ib.Sa||a.type===l.i.ib.Jc)k.interval=a.hierarchy.interval;k.uniqueName=a.A;k={index:this.ma.index,type:"members",field:k};var m=this.fL(c);m&&(k.filter=f.O.ap.wH?{type:"and",value:[m]}:m);d.OK(k);this.client.nx("members",k,(n,p)=>{if(n)return this.Sb(n);if(!this.QGa(c,p))return this.Sb(e.P.bind(e.model.B.j.b8,this.ma.url));!e.v(p.pageTotal)&&d.page+1<p.pageTotal?(e.Ca(!0,e.model.B.j.Un,a.caption+" - "+(d.page+1)+"/"+p.pageTotal),this.nfa(a,c,new f.Xm({page:d.page+1}),g)):(c.vf=!1,g(a.hierarchy))},
n=>this.am(n))}Sj(a,c){var d=a.ev;this.T4(d);if(0<a.filter.cm.length)this.RM(a,a.filter.cm,a.filter.YH,k=>{k.pw();this.Sj(k,c)});else if(0<d.length){var g=d.shift();0==d.length&&a.Saa();a.ev=d;d=a.Ib(g[1]);a.Xy(d);this.Bk(a,d,k=>this.Sj(k,c))}else a.Wd=!0,c(a)}T4(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})}QGa(a,c){if(e.v(c)||e.v(c.members))return!1;if(0===
c.members.length||1===c.members.length&&e.ia(c.members[0].value))return a.vf=!1,a.Rg=!1,!0;for(var d=c.members,g=0;g<d.length;g++){var k=this.lc(a.hierarchy,a,d[g]);c.sorted&&a.UZ.push(k.ordinal);k.vf=!k.level.Nu}c.sorted&&(a.hierarchy.Qu=!0);return!0}M3(a,c){if(e.v(c)||e.v(c.members))return!1;for(var d=c.members,g=0;g<d.length;g++)this.lc(a,null,d[g]);c.sorted&&(a.Qu=!0);return!0}lc(a,c,d){var g=String(d.value);var k=a.type===l.i.Lc.pv&&void 0!==d.id?String(d.id):null===c||c.Zb?g:("["===c.A.substr(0,
1)?c.A:"["+c.A+"]")+".["+g+"]";var m=a.Ib(k);e.v(m)&&(g=new l.O.ae({A:k,caption:g}),e.v(c)||(g.parent=c),g.value=d.value,a.mg?(c=a.ta.ea(c.level.wb+1),d=c.A,g.level=c,c=this.xa.O.TC(d)):c=this.xa.O.TC(a.A),m=a.lc(g,c));a.wV(m);return m}Bk(a,c,d){null==c||!c.Zb&&!c.vf||c.Oh?d(a):this.nfa(a.ta.ea(c.level.wb+1),c,new f.Xm({page:0}),()=>{c.vf=!1;d(a)})}SM(a,c){this.u2(a,new f.Xm({page:0}),()=>{c(a)})}u2(a,c,d){for(var g=[],k=1;k<a.ta.length;k++){var m=a.ta.ea(k);g.push({uniqueName:m.A});if(m==a.oc)break}m=
[];for(k=0;k<g.length;k++)m.push({field:g[k],func:"count"});g={type:"select",index:this.ma.index,query:{aggs:{by:{rows:g},values:m}}};c.OK(g);this.client.nx("select",g,(n,p)=>{n?(this.Sb(n),d(a)):this.hHa(p,a)?e.v(p.nextPageToken)?!e.v(p.pageTotal)&&c.page+1<p.pageTotal?this.u2(a,new f.Xm({page:c.page+1}),d):d(a):this.u2(a,new f.Xm({mx:p.nextPageToken}),d):(this.Sb(e.P.bind(e.model.B.j.c8,this.ma.url)),d(a))},n=>this.am(n))}hHa(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++){d=a[t].keys;n=void 0;g=[];for(var r in d)m=d[r],g.push(m),k=1===g.length?m:`[${g.join("].[")}]`,p=c.Ib(k),null==p&&(k=new l.O.ae({A:k,caption:m,parent:n}),p=c.lc(k),p.vf=!p.level.Nu),n=p}return!0}RM(a,c,d,g){this.Gca(a,c,0,g)}Gca(a,c,d,g){d===c.length?g(a):this.Hca(a,"["===c[d].substr(0,1)?c[d].substr(1,c[d].length-2).split("].["):[c[d]],0,()=>this.Gca(a,c,d+1,g))}Hca(a,c,d,g){if(d===c.length)g(a);else{var k="";if(0<d){k=[];for(var m=0;m<=d;m++)k.push("["+c[m]+"]");k=k.join(".")}else k=
c[0];a.type===l.i.Lc.Sa?(k=(new e.Zg(k)).getTime(),k=a.vu(k)):k=a.Ib(k);this.Bk(a,k,()=>this.Hca(a,c,d+1,g))}}Cz(){}nq(a,c,d,g){d&&(this.Nb=d);g&&(this.ab=g);throw"Not Implemented";}ZB(){return!1}cancel(){this.Oe=this.ab=this.Nb=this.ma=this.xa=null;this.client&&(this.client.close(),this.client=null)}}b.NX="2.8.5";f.xja=b})(h.pc||(h.pc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.F5{constructor(){super(...arguments);this.xa=l.Ra.V();this.ra=this.xa.ra}load(a,c,d,g){this.ma=a;this.query=c;this.Nb=d;this.ab=g;this.client=this.ma.Iw();this.Zw()}Zw(){e.Ca(!0,e.model.B.j.bg);this.V3=0;if(Array.isArray(this.query.body)){var a=new u.MJ;this.query.body.forEach(c=>{a.add(d=>this.rU(c,this.query.type,new f.Xm({page:0}),d))});a.pg(()=>{null!=this.Nb&&this.Nb();e.Ca(!1)})}else this.rU(this.query.body,this.query.type,
new f.Xm({page:0}),()=>{null!=this.Nb&&this.Nb();e.Ca(!1)})}rU(a,c,d,g){let k=this.qua(a);a={type:"select",index:this.ma.index,query:k};e.model.C.F.rc||(a.querytype=c);d.OK(a);this.client.nx("select",a,(m,n)=>{if(m)return this.Sb(m,this.ab),g();if(!this.nHa(n))return this.Sb(e.P.bind(e.model.B.j.c8,this.ma.url),this.ab),g();e.v(n.nextPageToken)?!e.v(n.pageTotal)&&d.page+1<n.pageTotal?(e.Ca(!0,e.model.B.j.bg,`${Math.round((d.page+1)/n.pageTotal*100)}%`),this.rU(k,c,new f.Xm({page:d.page+1}),g)):g():
this.rU(k,c,new f.Xm({mx:n.nextPageToken}),g)},m=>this.am(m))}qua(a){a=u.Sc.nj(a);for(let c=0;c<f.lv.lX.length;c++)a[f.lv.lX[c]]&&delete a[f.lv.lX[c]];return a}nHa(a){if(e.v(a))return!1;a.aggs&&(this.NGa(a.aggs,this.zH()),(e.v(a.nextPageToken)&&e.v(a.pageTotal)||1>=a.pageTotal-a.page)&&this.V3++);a.hits&&this.bHa(a.fields,a.hits);return!0}zH(){return e.model.C.F.rc&&e.model.C.F.je!==e.K.Id.dj}bHa(a,c){for(var d=this.T0(this.xa.ua.wc(!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.ra.Zh(n),r=c[g][p];n=d.getItem(n);var w=n.hierarchy;if(w.type===l.i.Lc.Sa){var y=w.vu(r);y=e.v(y)?-1:y.ordinal}else w.type!==l.i.Lc.pv?(y=w.vu(parseFloat(r)),y=null!==y?y.ordinal:-1):y=w.iz(e.ia(r)?"":""+r);if(-1===y)if(w.mg){var A=n.YU;y=[];for(var C=1;C<w.ta.length;C++){var B=w.ta.ea(C),I=a.findIndex(L=>L.uniqueName===B.A);y.push(c[g][I]);if(A===B.A)break}A="["+y.join("].[")+"]";C=A+".["+r+"]";1===y.length&&(A=y[0]);y=w.iz(C);-1===y&&(B=n.level,A=w.lc(new l.O.ae({A:C,
caption:r,value:r,level:B,Bi:A}),l.i.ib.wE(B.type)),null!=A&&(y=A.ordinal))}else A=this.xa.O.TC(w.A),A=w.lc(new l.O.ae({A:String(r),caption:String(r),value:r}),A),null!=A&&(y=A.ordinal);k[n.fc]=y;m[t]=w.type===l.i.Lc.Cq?"number"===typeof r?r:NaN:w.type===l.i.Lc.Sa?!e.model.C.F.br||null!==r&&"null"!==r?"number"===typeof r?r:NaN:null:1}this.ra.rBa(k,m)}}T0(a){for(var c,d=new e.tb,g=0,k=0,m=0;m<a.length;m++){c=a.ea(m);if(c.mg){k++;for(var n=1;n<c.ta.length;n++)d.Ta(c.ta.ea(n).A,{hierarchy:c,ordinal:g,
level:c.ta.ea(n),YU:c.ta.ea(n-1).A,oc:c.oc,fc:k++})}else n=this.xa.ga.mapping.Ha(c.A,"filters"),d.Ta(c.A,{hierarchy:c,ordinal:g,level:c.ta.ea(1),fc:k++,wi:!1!==n&&!1!==n.members});g++}return d}Pta(a){let c=0;for(let d=0;d<this.query.lf.length;d++){const g=a.ea(d).ya(this.query.lf[d]);c+=g.level.wb}return c}NGa(a,c){const d=this.T0(this.xa.ua.yb),g=this.T0(this.xa.ua.Db);let k=!1;if(Array.isArray(this.query.body)){var m=this.query.body[this.V3];0<this.V3&&(k=!0)}else m=this.query.body;const n=m.type;
var p=m.axisName;m=0;p!=this.query.Yt||n!==l.i.Rd.EA&&n!==l.i.Rd.qv||(m=this.Pta(p===l.i.ja.La?this.xa.ua.yb:this.xa.ua.Db));for(p=0;p<a.length;p++)if(c){var t=this.tga(a[p].values);this.ra.aA(t)}else{t=this.tga(a[p].values);const r=this.sga(a[p].keys,d),w=this.sga(a[p].keys,g);if(this.Uea(r)&&this.Uea(w)){if(n===l.i.Rd.EA||n===l.i.Rd.qv)if(e.v(a[p].keys)||Object.keys(a[p].keys).length<=m)continue;this.ra.insert(r,w,t,this.query.lf,this.query.Yt,!k)}}}Uea(a){for(let c=0;c<a.length;c++)if(e.v(a[c]))return!1;
return!0}tga(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.ra.Zh(d,g,!0);c[k]=a[d][g]}return c}sga(a,c){const d=[];if(e.v(a))return d;const g=c.length;for(let w=0;w<g;w++){var k=c.Jh(w);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.YU;for(1<n.level.wb&&(m=`[${m}]`);void 0!==a[p];)m=`[${a[p]}].${m}`,p=c.getItem(p).YU}n.hierarchy.type===l.i.Lc.pv||n.level.type!==l.i.ib.Sa&&n.level.type!==
l.i.ib.Jc&&n.level.type!==l.i.ib.dc&&n.level.type!==l.i.ib.Dl?p=n.hierarchy.iz(m):(p=n.hierarchy.vu(a[k]),p=e.v(p)?-1:p.ordinal);const A=c.getItem(n.hierarchy.ta.ea(1).A).ordinal;if(n.oc||this.xa.ua.kd){if(-1===p){var t=n.YU;m=[];for(var r=1;r<n.hierarchy.ta.length;r++){const C=n.hierarchy.ta.ea(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.lc(new l.O.ae({A:r,caption:a[k],level:n.level,Bi:t}));null!=k&&(p=k.ordinal)}y.push(n.level.wb);
y.push(p);void 0===d[A]&&(d[A]=[n.oc?n.hierarchy.ta.length-n.oc.wb:0]);d[A].push(y)}else n.level?(-1===p&&!1===n.wi&&(k=n.hierarchy.lc(new l.O.ae({A:m,caption:a[k]})),null!=k&&(p=k.ordinal)),y.push(n.level.wb),y.push(p),d[A]=y):(-1===p&&!1===n.wi&&(n=n.hierarchy.lc(new l.O.ae({A:m,caption:a[k]})),null!=n&&(p=n.ordinal)),y.push(1),y.push(p),d.push(y))}}return d}Sb(a,c){console.error(a);e.Ca(!1);e.Za(a.message||a,e.model.B.j.Aa,e.xb.Aa);e.Fg(c)&&c()}bd(a,c,d,g,k,m){e.Ca(!0,e.model.B.j.bg);this.ma=a;
e.v(this.client)&&(this.client=this.ma.Iw());this.DC=[];this.p2(c,new f.Xm({page:0}),m)}p2(a,c,d){const g={type:"select",index:this.ma.index,query:a.body};c.OK(g);this.client.nx("select",g,(k,m)=>{if(k)return this.Sb(k,d);if(!this.YGa(m))return this.Sb(e.P.bind(e.model.B.j.Rna,this.ma.url),d);e.v(m.nextPageToken)?!e.v(m.pageTotal)&&c.page+1<m.pageTotal?this.p2(a,new f.Xm({page:c.page+1}),d):d(this.DC):this.p2(a,new f.Xm({mx:m.nextPageToken}),d)},k=>this.am(k))}YGa(a){if(e.v(a))return!1;if(a.fields&&
0==this.DC.length){var c=a.fields.map(d=>d.A);this.DC.push(c)}if(a.hits)for(c=0;c<a.hits.length;c++)this.DC.push(a.hits[c]);return!0}cancel(){this.ab=this.query=this.Nb=this.ma=this.ra=this.xa=null;this.client&&(this.client.close(),this.client=null);this.DC&&(this.DC.length=0,this.DC=null)}}f.sja=b})(h.pc||(h.pc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.WW{constructor(){super(...arguments);this.s5=new e.tb}sG(){this.s5.clear();super.sG()}Ha(a,c,d,g=!1){g=g?0:this.xY(a,c);const k=this.Zh(d);if(e.v(this.values[g]))return l.i.da.Rf(d.aa)?0:NaN;if(d.Na){this.JF=!1;a=this.dr([g],d.Xd,d.cl,0,a,c,d.ho);if(!0===a||!1===a)a=!0===a?1:0;this.values[g][k]=a}return e.v(this.values[g][k])?l.i.da.Rf(d.aa)?0:NaN:this.values[g][k]}gw(a,c,d,g){return this.dr([this.xY(a,c)],d,!1,g)}xY(a,c){return a+
" "+c}aA(a){this.values[0]=a}qB(a,c){return null===a||0===a.length?NaN:this.values[a[0]]?this.values[a[0]][c]:NaN}L0(a,c){const d=this.slice.vi(new e.model.hb.ah(a,c));null!=d&&(c=l.i.da.GM(d.aa)?d.aa:d.xm);return this.Zh(a,c,!this.JF)}SS(a,c){const d=l.i.da.Ej;c=this.L0(c.A,d);return this.qB(a,c,d)}un(a,c){super.un(a,c);this.um(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 w=[];g&&(w=
g.slice());w.concat(n.slice());0<w.length&&t.push(w)}for(w=1;w<a[r].length;w++)n[this.ta[this.Ph[r]][a[r][w][0]]]=a[r][w][1]}else{if(-1===a[r][1])return;p[r]=a[r][1];n[this.ta[this.Ph[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],w=[],g&&(w=g.slice()),w.concat(n.slice()),0<w.length&&t.push(w),w=1;w<c[r].length;w++)n[this.ta[this.lj[r]][c[r][w][0]]]=c[r][w][1];else{if(-1===c[r][1])return;a[r]=c[r][1];n[this.ta[this.lj[r]][c[r][0]]]=a[r]}p=
this.xY(p,a);c=this.ub.length;void 0!==this.values[p]?(n=this.s5.getItem(n.join("-")),void 0!==n&&(c=n),m&&(this.values[p]=d)):(this.rh.push(c),this.ub.push(n),this.s5.Ta(n.join("-"),this.ub.length-1),this.values[p]=d);0<g.length&&(0===this.Gd.length&&(this.expand([],l.i.ja.La,void 0),this.expand([],l.i.ja.Xa,void 0)),d=k===l.i.ja.La?this.ld(g,this.Gd):this.ld(g,this.Ud),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.ja.La?this.ld(t[d],this.Gd):
this.ld(t[d],this.Ud);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.ja.La?this.ld(g,this.Gd):this.ld(g,this.Ud),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)}}rBa(a,c){let d;if(0===this.ub.length)for(d=0;d<a.length;d++)this.ub[d]=[];this.rh=e.Ja.vr(this.rh,this.Ex);for(d=0;d<a.length;d++)this.ub[d]=e.Ja.vr(this.ub[d],a[d]);0===
this.values.length&&this.aA([]);this.values.push(c)}US(a,c,d,g,k){if(void 0===this.gb[a])return NaN;if(g)return this.JF=!0,d.Na?this.dr([this.gb[a]+1],d.Xd,d.cl,0,null,null,d.ho):this.values[this.gb[a]+1][c];c=this.xe.indexOf(this.uh[c]);void 0!==k&&(c=this.ta[c][k+1]);return void 0===this.ub[c]?NaN:this.ub[c][this.gb[a]]}filter(){}mB(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.ub[g[k]][this.ta[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.sg.length]=!0:a[0][3][this.Zh(d)]=!0;a[0][5]=!0}}}kQ(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.ub[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.Pl[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.sg.length]=!0:c[0][4][this.Zh(k)]=!0}}}}f.I5=b})(h.pc||(h.pc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{}b.a9={date:"date string","year/month/day":"date string","year/quarter/month/day":"date string"};class a extends l.O.km{constructor(c=null){super(c);this.mW()}mW(){this.csa();this.bsa()}bsa(){for(let c in this.mapping)Array.isArray(this.mapping[c])&&(this.mapping[c]=this.mapping[c][0])}csa(){var c=this.mapping;for(let d in c)c=this.Ha(d,"type"),null!=c&&b.a9.hasOwnProperty(c)&&this.gi(d,"type",b.a9[c])}}f.dO=a})(h.pc||(h.pc={}))})(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 V(){null==b.instance&&(b.instance=new b);return b.instance}static dispose(){b.instance=null}async CN(a,c){return new Promise((d,g)=>{u.Zn.load("lib/sha1.min.js",()=>{var k=e.model.Ga.pa.J(e.model.Ga.pa.gIa);if(null!=k){var m=JSON.stringify(c.Qa());var n=new jsSHA("SHA-1","TEXT");n.setHMACKey(k,"TEXT");n.update(m);m=n.getHMAC("B64")}a.Qh({"x-flexmonster":m});a.nx("save",null!==
c?c.Qa():{},(p,t)=>{if(e.v(t))p&&(e.Za(e.P.bind(e.model.B.j.g8,p),e.model.B.j.Aa,e.xb.Aa),a.close(),g(p));else{p=new URL(location.href);p.searchParams.set("flexmonsterreport",t);var r=p.href;e.Za(e.P.bind(e.model.B.j.doa,r),e.model.B.j.Ym,e.xb.Ym,[e.model.B.j.T5,e.model.B.j.wl],[()=>{const w=document.createElement("textarea");w.value=r;w.setAttribute("readonly","");w.style.position="fixed";w.style.left="-9999px";document.body.appendChild(w);w.select();document.execCommand("copy");document.body.removeChild(w)},
()=>{}]);a.close();d(r)}})})})}XCa(a,c,d){var g=new f.oA(a);g.nx("load",c,(k,m)=>{e.v(m)||d&&d(m);k&&(e.Za(e.P.bind(e.model.B.j.f8,k),e.model.B.j.Aa,e.xb.Aa),console.error("Can't load the shared file. The URL to the server hasn't been found. "+k),d&&d());g.close()})}}f.H5=b})(h.pc||(h.pc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h extends x.be.dk{constructor(f,b){super();this.RT=this.R1=!1;this.$da="theme/accessible/flexmonster.min.css";this.Rea=!1;this.ka=e.model.Va.V();this.SG=null;this.g2=this.h2=this.height=this.width=0;this.PN=!1;this.S9=0;this.DG=[];this.Kfa=0;this.Tba=!1;this.Fy=d=>this.Yu(d);this.Gy=d=>this.Zu(d);this.Hy=()=>this.XM();this.Dy=null;this.mca=()=>{h.Fb.sb(l.Ni.$o,this.mca);this.Wb.tk(this.SG.ru,this.SG.rb,(...d)=>{this.Wb.I=null;this.ka.I=e.u.sf.Fj.zc("chart");null!=this.SG.yp&&
this.SG.yp.apply(null,d);this.SG=null})};this.Mha("fm-pivot-view");null!=this.gf&&this.gf.dispose();f.empty();this.gf=f;h.Fb=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.gf.R("width",
a);this.gf.R("height",f);this.G.R("width",a);this.G.R("height",f);this.gf.append(this.G);f=[];b.toolbar?(f=["toolbar/flexmonster.toolbar.js"],this.PN=!0):this.PN=!1;u.u6.Yca()||(c=new x.Ea("div","fm-csscheck"),this.gf.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.Zn.load(f,()=>{this.G.requestAnimationFrame(()=>{u.Kd().Xi||u.u6.$ta(e.ph.ft)||
console.warn("Flexmonster: CSS version mismatch.\nVersions of Flexmonster specified in the CSS and JS files do not match.\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/).");this.toolbar=b.toolbar?new FlexmonsterToolbar(this.gf.element,e.ph.instance.pc,"html5",a,e.model.B.NA.V().Zca(),
e.model.Ga.uc.Oj()):null;e.ph.instance.pc.toolbar=this.toolbar;this.Uda&&(e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.sW,this.toolbar)),this.toolbar.create());this.PN=!1;this.He();this.kb()})},()=>{this.PN=!1});this.ka.Ia.N(e.model.jc.nd.Tx,()=>this.n3());this.ka.Ia.N(e.model.jc.nd.nX,()=>this.KFa());this.ka.Ia.N(e.model.jc.nd.PW,()=>this.P2());this.ka.Ia.N(e.model.jc.nd.ZE,()=>this.l3());this.ka.Ia.N(e.model.jc.nd.XA,()=>{});this.ka.Ia.N(e.model.jc.nd.Pk,d=>this.sEa(d));this.ka.Ia.N(e.model.jc.nd.ii,
()=>this.w3());this.ka.Ia.N(e.model.jc.nd.lF,()=>this.x3());this.ka.Ia.N(e.model.jc.nd.aF,()=>this.RH());this.ka.N(e.vg.VW,d=>this.HEa(d));this.ka.N(e.vg.CX,()=>this.RFa());this.ka.N(l.Na.ak.c6,d=>this.LFa(d));this.ka.N(l.Ni.p6,d=>this.MFa(d));this.N(l.Ni.$o,()=>this.LDa());e.vk.addEventListener("fullscreenchange",()=>this.FU(),!1);e.vk.addEventListener("mozfullscreenchange",()=>this.FU(),!1);e.vk.addEventListener("webkitfullscreenchange",()=>this.FU(),!1);e.vk.addEventListener("MSFullscreenChange",
()=>this.FU(),!1);this.gf.N("fullscreenchange",d=>this.LU(d),!1);this.gf.N("mozfullscreenchange",d=>this.LU(d),!1);this.gf.N("webkitfullscreenchange",d=>this.LU(d),!1);this.gf.N("MSFullscreenChange",d=>this.LU(d),!1);u.VO.V().N(u.KeyboardEvent.g9,()=>this.yGa())}get Uda(){return this.toolbar&&null!=this.toolbar.create}yGa(){this.Nha(!this.R1)}Nha(f){this.R1=f;this.gf.Wa("fm-keyboard-mode",this.R1)}get xE(){if(this.toolbar){var f=x.Ea.Vb(this.gf.element.querySelector("#fm-toolbar-wrapper"));return null==
f?0:f.height}return 0}static get gv(){var f=h.Fb.G.borderWidth;return h.Fb.gf.uf(u.PT())-f.left-f.right}static get ria(){var f=h.Fb.G.borderWidth;return h.Fb.gf.xd(u.PT())-f.top-f.bottom}static get lo(){return e.model.C.F.je==l.Id.Tn?h.YP:h.gv-h.Fb.GC}static get jo(){return e.model.C.F.je==l.Id.Tn?h.ZJ:h.Fb.hq()}static get rM(){return e.model.C.F.je==l.Id.Tn?h.vQ:h.gv-h.Fb.GC}static get gD(){return e.model.C.F.je==l.Id.Tn?h.uQ:h.Fb.hq()}get GC(){return"right"==e.model.C.F.FC&&e.model.C.F.yn?this.S9:
0}set GC(f){this.S9=f}hq(){return this.mT()&&null!=this.ym?h.ria-(this.ym.xd()+this.ym.G.borderWidth.top)-h.Fb.xE:h.ria-h.Fb.xE}sr(f){this.Wb&&this.Wb.la&&this.Wb.la.sr(f)}Us(f){this.Wb&&this.Wb.la&&this.Wb.la.Us(f)}kb(f=!1){this.Kaa();if(this.Tba||this.Rea&&(e.model.Ga.uc.error||!e.ia(e.model.Ga.uc.Py))){var b=this.G.requestAnimationFrame(()=>{this.Kaa();this.oY(f)});this.DG.push(b)}else 500>this.Kfa++||(this.PN||e.ia(e.model.Ga.uc.Py))&&5E3>this.Kfa?this.HDa=e.Ce(()=>{this.kb(f)},10):this.gf.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.Ga.uc.iq||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/)")))}Kaa(){for(;0<
this.DG.length;)this.G.cancelAnimationFrame(this.DG.pop());this.DG=[];e.ts(this.HDa);e.ts(this.Yga)}Via(){if(!this.gf)return!1;var f=u.PT(),b=this.gf.uf(),a=this.gf.xd();a-=this.xE;if(this.h2!==b||this.g2!==a)this.G.R("width",b+"px"),f?this.G.R("height","calc(100% - "+this.xE+"px)"):this.G.R("height",a+"px");return this.h2!==b||this.g2!==a}H3(){this.toolbar&&null!=this.toolbar.applyToolbarLayoutClasses&&this.toolbar.applyToolbarLayoutClasses();this.kb(!0)}n3(){this.ka.Ia.zf==e.model.jc.mp.INIT&&this.HG()}P2(){null!=
this.Wb&&this.Wb.fu();this.kb()}l3(){this.ka.Ia.zf!=e.model.jc.mp.PJ&&this.ka.Ia.zf!=e.model.jc.mp.wA&&this.HG()}KFa(){this.HG()}$fa(){this.ka.Ia.ga.Gc&&(null!=this.Wb&&this.Wb.fu(),this.kb())}Zfa(){this.ka.Ia.zf!=e.model.jc.mp.PJ&&this.ka.Ia.zf!=e.model.jc.mp.wA&&this.HG()}Ofa(){this.ka.Ia.zf!=e.model.jc.mp.PJ&&this.ka.Ia.zf!=e.model.jc.mp.wA&&this.HG()}sEa(f){this.ka.Ia.zf==e.model.jc.mp.INIT||this.ka.Ia.zf==e.model.jc.mp.S7||null==this.Wb||f.data!=e.u.i.Rd.np&&f.data!=e.u.i.Rd.EO||(this.Wb.fu(),
this.kb())}RH(){null!=this.toolbar&&this.toolbar.updateLabels(e.model.B.NA.V().Zca());null!=this.ui&&this.ui.updateLabels()}Cw(f){f=this.ka.ha.ua.wc().getItem(f);null!=f&&this.yea(f)&&(this.Wb.fu(),this.ka.I.Cw(f))}YQ(f,b){f=this.ka.ha.ua.ce(f);let a=[],c=0;for(let g=0;g<b.length;g++){let k=f.Oa.ea(c);k.Se&&(c++,k=f.Oa.ea(c));var d=k.Ib(b[g]);e.v(d)&&(d=k.Ib(e.u.ye.Ds(b[g])));if(e.v(d))return[];a.push(d.ordinal);c++}return a}lS(f,b,a){this.Wb.fu();this.ka.I.expand(this.YQ(f,b),f,this.ka.ha.ua.gd(a))}CR(f,
b,a){this.Wb.fu();this.ka.I.collapse(this.YQ(f,b),f,this.ka.ha.ua.gd(a))}hS(f,b,a,c){this.Wb.fu();var d=this.ka.ha.ua.ce(f);const g=d.Ya&&d.ie<=b.length?d.Oa.ea(b.length+1):d.Oa.ea(b.length);d=g.Ib(c);e.v(d)&&(c=e.u.ye.Ds(c),d=g.Ib(c));e.v(d)||(b=this.YQ(f,b),b.push(d.ordinal),this.ka.I.Ip(b,d,f,this.ka.ha.ua.gd(a)))}gS(f,b,a,c){this.Wb.fu();var d=this.ka.ha.ua.ce(f);const g=d.Ya&&d.ie<=b.length?d.Oa.ea(b.length+1):d.Oa.ea(b.length);d=g.Ib(c);e.v(d)&&(c=e.u.ye.Ds(c),d=g.Ib(c));e.v(d)||(b=this.YQ(f,
b),b.push(d.ordinal),this.ka.I.Mf(b,d,f,this.ka.ha.ua.gd(a)))}ow(f){f=this.ka.ha.ua.wc().getItem(f);null!=f&&this.yea(f)&&(this.Wb.fu(),this.ka.I.ow(f))}yea(f){const b=this.ka.ha.ua,a=b.rows.Hb(f.A)?e.u.i.ja.La:e.u.i.ja.Xa;return(a==e.u.i.ja.La?b.yb.indexOf(f.A):b.Db.indexOf(f.A))+1<(a==e.u.i.ja.La?b.yb.length:b.Db.length)}w3(){this.ka.Ia.zf==e.model.jc.mp.cp?this.HG():this.gf&&this.kb()}x3(){this.Dua()}FU(){this.Oda()}LU(f){f.stopPropagation();this.Oda()}Oda(){var f=u.PT();null!=e.model.Ua.jsFullScreenHandler&&
e.model.Ua.jsFullScreenHandler.call(null,f);var b=0,a=()=>{this.gf.xd()!=parseInt(this.gf.element.style.height)&&5>b?(b++,this.gf.requestAnimationFrame(a)):this.Via()&&this.kb(!0)};this.gf.requestAnimationFrame(a)}He(){this.toolbar&&(this.G.height-=this.xE);this.Wb=new l.Y.Kma;this.Wb.N(l.Ni.Qx,f=>this.QEa(f));this.Wb.N(l.Ni.LW,f=>this.Pfa(f));this.W(this.Wb);this.ui=new l.pd.gp;this.ui.N(v.fa.OPENED,()=>{});this.ui.N(v.fa.CLOSED,()=>{});this.ui.N(l.pd.gp.BO,()=>this.R2());this.ui.N(l.pd.gp.WI,f=>
this.Q2(f));this.W(this.ui);e.vk.addEventListener("keydown",f=>this.cq(f));this.PF=new u.spa(this.gf.parent);this.PF.N(v.fa.HX,f=>this.H3(f));this.Rea=!0}QHa(){l.hO.V().Pu&&l.hO.V().zp()}oY(f=!1){null==this.ka||0==this.gf.width||f&&x.vL.xO.V().LBa||(this.Via(),this.QHa(),1>e.model.Ga.uc.Oj()||(this.Tba=!0,this.PF.refresh(),this.mT()&&this.Uwa(),this.dBa()&&(this.W(this.nW),this.nW.kb()),e.model.C.F.rc&&this.ka.ha.ga&&!this.ka.ha.ga.AH&&(e.model.C.F.rc=!1,e.Za(e.P.bind(e.model.B.j.aoa,e.u.i.qa.J(this.ka.ha.ga.Da)),
e.model.B.j.XO)),e.model.C.F.rc&&e.model.C.F.je==l.Id.Tn&&this.ka.ha.ga&&this.ka.ha.ga.Da==e.u.i.qa.API&&(e.model.C.F.je=l.Id.ot,e.Za(e.P.bind(e.model.B.j.sX),e.model.B.j.XO,e.xb.vl)),null!=this.uk&&this.uk.kb(),e.v(this.ka.Ia.ga)||this.ka.Ia.ga.nb||!e.model.C.F.IR?this.ui.eb():this.ui.show(),f||e.model.C.F.pC||l.Na.QE.GK||(e.model.C.F.yn=!1),e.v(this.ka.ha.ua)||e.v(this.ka.ha.O)||this.ka.ha.O.nb||!this.ka.ha.ua.nb||(e.model.C.F.yn=!0),e.model.C.F.yn&&null!=this.ka.Ia.ga&&!this.ka.Ia.ga.nb?this.ui.open(this.ka.ha.O,
this.ka.ha.ua,this.ka.Ia.ga.Da):this.ui.close(),e.model.C.F.je==l.Id.dj?this.O_(f):e.model.C.F.je==l.Id.Tn?this.Q_(f):this.P_(f),null!=this.$k&&this.$k.isVisible()&&(e.model.C.F.rc&&e.model.C.F.je===l.Id.ot?this.$k.close():this.$k.X3()),this.h2=this.uf(),this.g2=this.xd()))}HG(){e.model.C.F.je==l.Id.dj?this.O_(!1,!0):e.model.C.F.je==l.Id.Tn?this.Q_(!1):this.P_(!1,!0);e.v(this.ui)||(this.ui.close(),this.ui.eb())}NV(){if(this.ka.Ia.ga.Da==e.u.i.qa.API&&e.model.C.F.rc&&e.model.C.F.je==l.Id.dj){const f=
e.model.C.F.Kw(!1,!0);f.na("viewType",l.Id.ot);this.ka.qq(f.Qa())}else e.model.C.F.je=l.Id.ot,e.model.C.F.rc&&this.ui&&this.ui.Pu&&this.ui.open(this.ka.ha.O,this.ka.ha.ua,this.ka.Ia.ga.Da),this.P_()}P_(f=!1,b=!1){null!=this.Wb&&(null!=this.jd&&this.jd.eb(),null!=this.Mk&&this.Mk.eb(),f||null==this.uk||this.uk.close(),this.Wb.I=b?null:this.ka.I=e.u.sf.Fj.zc(),this.Wb.G.R("top","").R("left","").R("right","").R("bottom",""),this.Wb.G.R("position","absolute"),this.Wb.show(),this.Wb.G.R("height",h.gD+
"px"),this.Wb.G.R("width",h.gv+"px"),b&&this.Wb.fu(),this.Wb.kb())}EN(f="",b=!1){if(this.ka.Ia.ga.Da==e.u.i.qa.API&&e.model.C.F.rc&&e.model.C.F.je==l.Id.ot){const a=e.model.C.F.Kw(!1,!0);a.na("viewType",l.Id.dj);a.na("chartType",f);a.na("chartMultipleMeasures",l.Bd.Me.Fea(f)?b:!1);this.ka.qq(a.Qa())}else e.model.C.F.je=l.Id.dj,e.model.C.F.WK=f,e.model.C.F.pG=l.Bd.Me.Fea(f)?b:!1,this.O_()}O_(f=!1,b=!1){u.Zn.load("lib/d3.v3.min.js",()=>{f||null==this.uk||this.uk.close();null!=this.Wb&&this.Wb.eb();
null!=this.Mk&&this.Mk.eb();null==this.jd&&this.dG();this.jd.G.R("top","").R("left","").R("right","").R("bottom","");this.jd.G.R("position","absolute");this.jd.show();this.jd.G.R("height",h.jo+"px");this.jd.G.R("width",h.lo+"px");this.jd.I=b?null:this.ka.I=e.u.sf.Fj.D0(e.model.C.F.pR);this.jd.kb();e.model.C.F.rc&&this.ui&&this.ui.Pu&&this.ui.open(this.ka.ha.O,this.ka.ha.ua,this.ka.Ia.ga.Da);b||0!=this.DG.length||(this.Yga=e.Ce(()=>{this.$a(l.Ni.GX)},1))})}OV(f="",b="bottom",a=!1){this.ka.Ia.ga.Da==
e.u.i.qa.API&&e.model.C.F.rc?e.Za(e.P.bind(e.model.B.j.sX),e.model.B.j.XO,e.xb.vl):(e.model.C.F.je=l.Id.Tn,e.model.C.F.WK=f,e.model.C.F.Iy=b,e.model.C.F.pG=a,this.Q_())}Q_(f=!1){u.Zn.load("lib/d3.v3.min.js",()=>{f||null==this.uk||this.uk.close();null!=this.Wb&&(this.Wb.show(),this.Wb.I=this.ka.I=e.u.sf.Fj.zc(),null==this.jd&&this.dG(),this.jd.show(),this.jd.I=e.u.sf.Fj.D0(e.model.C.F.pR),null==this.Mk&&this.Qsa(),this.Mk.show(),this.Mk.direction="left"==e.model.C.F.Iy||"right"==e.model.C.F.Iy?x.MP.YX:
x.MP.lJ,this.Mk.zva=[150,150,h.gv-150,this.hq()-150],this.Sba(e.model.C.F.Iy))})}rGa(f){var b=e.model.C.F.Iy;this.Sba(b,"left"==b||"right"==b?f.data.left:f.data.top)}Sba(f="bottom",b=NaN){var a=h.gv-h.Fb.GC;isNaN(b)&&(b="left"==f||"right"==f?Math.round(a/2):Math.round(this.hq()/2));switch(f){case "bottom":h.vQ=a;h.uQ=b;this.Wb.G.R("width",h.rM+"px");this.Wb.G.R("height",h.gD+"px");this.Wb.G.R("top",0).R("left",0).R("right","").R("bottom","");h.YP=a;h.ZJ=this.hq()-this.Wb.G.xd()-this.Mk.xd();this.jd.G.R("width",
h.lo+"px");this.jd.G.R("height",h.ZJ+"px");this.jd.G.R("bottom",this.mT()&&!e.v(this.ym)?this.ym.xd()+"px":0).R("left",0).R("right","").R("top","");this.Mk.G.R("top",b+"px").R("left","").R("right","").R("bottom","");break;case "top":h.YP=a;h.ZJ=b;this.jd.G.R("width",h.lo+"px");this.jd.G.R("height",h.jo+"px");this.jd.G.R("top",0).R("left",0).R("right","").R("bottom","");h.vQ=a;h.uQ=this.hq()-this.jd.G.xd()-this.Mk.xd();this.Wb.G.R("width",h.rM+"px");this.Wb.G.R("height",h.gD+"px");this.Wb.G.R("bottom",
this.mT()&&!e.v(this.ym)?this.ym.xd()+"px":0).R("left",0).R("right","").R("top","");this.Mk.G.R("top",b+"px").R("left","").R("right","").R("bottom","");break;case "left":h.YP=b;h.ZJ=this.hq();this.jd.G.R("width",h.lo+"px");this.jd.G.R("height",h.jo+"px");this.jd.G.R("top",0).R("left",0).R("right","").R("bottom","");h.vQ=a-this.jd.G.uf()-this.Mk.uf();h.uQ=this.hq();this.Wb.G.R("width",h.rM+"px");this.Wb.G.R("height",h.gD+"px");this.Wb.G.R("top",0).R("right",h.Fb.GC+"px").R("left","").R("bottom","");
this.Mk.G.R("left",b+"px").R("top","").R("right","").R("bottom","");break;case "right":h.vQ=b,h.uQ=this.hq(),this.Wb.G.R("width",h.rM+"px"),this.Wb.G.R("height",h.gD+"px"),this.Wb.G.R("top",0).R("left",0).R("right","").R("bottom",""),h.YP=a-this.Wb.G.uf()-this.Mk.uf(),h.ZJ=this.hq(),this.jd.G.R("width",h.lo+"px"),this.jd.G.R("height",h.jo+"px"),this.jd.G.R("top",0).R("right",h.Fb.GC+"px").R("left","").R("bottom",""),this.Mk.G.R("left",b+"px").R("top","").R("right","").R("bottom","")}this.Wb.G.R("position",
"absolute");this.jd.G.R("position","absolute");this.Wb.kb();this.jd.kb()}Pfa(f){null==this.$k&&this.ssa();for(var b,a=this.ka.ha.ua.hd(),c=0;c<a.length;c++){var d=a[c];d.A==f.measure.A&&d.aa==f.measure.aa&&(b=d)}this.$k.Ns(this.ka.I,this.ka.ha.ua,f.Bg,f.lh,b,f.cell)}JGa(f){if(null!=this.ka.ha&&null!=this.ka.ha.O){var b=this.ka.ha.O.wc(!1).getItem(f),a=this.ka.ha.ua;null!=b&&(a.ob.Hb(f)||a.rows.Hb(f)||a.Ka.Hb(f))&&(f={hierarchy:b.bj()},e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.Qx,f)),this.UH(b))}}VU(){e.v(this.ka.Ia.ga)||
this.ka.Ia.ga.nb||("right"==e.model.C.F.FC?(e.model.C.F.pC=!0,e.model.C.F.yn=!0,this.kb()):this.ui.open(this.ka.ha.O,this.ka.ha.ua,this.ka.Ia.ga.Da))}YK(){"right"==e.model.C.F.FC?(e.model.C.F.pC=!1,e.model.C.F.yn=!1,this.kb()):this.ui.close()}Q2(f){if(!u.Sc.Eg(this.ka.ha.ua.Rj)){var b=new e.model.hb.pp;b.Rj=this.ka.ha.ua.Rj;f.data.Rj=b.Rj}this.ka.ne(f.data)}ABa(){return!e.v(this.ka.Ia.ga)&&(!this.ka.Ia.ga.Gc||this.ka.Ia.ga.Da===e.u.i.qa.API)&&!this.ka.ha.O.nb||e.model.C.F.bu&&this.ka.Ia.ga.Da===e.u.i.qa.Tc}fN(f=
null,b=null){e.v(this.ka.Ia.ga)||this.ka.Ia.ga.nb||!this.ABa()||(e.v(b)||(this.Dy="string"==typeof b?e.model.Ua.qda(b):b),e.ia(f)||e.model.Va.V().N(l.Na.ak.rA,this.Gy),e.model.Va.V().Fa(new l.Na.HW(f)),e.model.Va.V().N(l.Na.ak.qA,this.Fy),e.model.Va.V().N(l.Na.ak.sA,this.Hy))}Yu(f){e.model.Va.V().sb(l.Na.ak.qA,this.Fy);e.v(this.Dy)||this.Dy({uniqueName:f.Cs,isRemoved:!1});this.Dy=null}Zu(f){e.model.Va.V().sb(l.Na.ak.rA,this.Gy);e.v(this.Dy)||this.Dy({uniqueName:f.Cs,isRemoved:!0});this.Dy=null}XM(){e.model.Va.V().sb(l.Na.ak.sA,
this.Hy);this.Dy=null}PEa(f){null==this.uk&&this.sZ();this.uk.G.Wa("fm-charts-filter",!0);this.KU(f)}QEa(f){null==this.uk&&this.sZ();this.uk.G.Wa("fm-charts-filter",!1);this.KU(f)}KU(f){var b={hierarchy:f.hierarchy.bj()};e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.Qx,b));this.UH(f.hierarchy)}UH(f){null==this.uk&&this.sZ();this.uk.Ns(f)}Dua(){null!=this.$k&&this.$k.close()}Uwa(){null!=this.ym&&null!=this.hW||this.esa();this.W(this.ym);this.ym.Wa("fm-layout-660",660>this.ym.uf());this.ym.Wa("fm-layout-520",
520>this.ym.uf());var f="";e.model.Ga.uc.hv&&(f=e.model.Ga.pa.J(e.model.Ga.pa.Sia)+"("+u.zh.format(e.model.Ga.uc.QG,"MM/dd/yyyy")+")",new Date(Date.now()+432E6)>e.model.Ga.uc.QG&&(f+=e.model.Ga.pa.J(e.model.Ga.pa.Gxa)));e.model.Ga.uc.Gp&&(u.sea()||e.model.Ga.uc.Hba||(f=e.model.Ga.pa.J(e.model.Ga.pa.Lwa)+e.model.Ga.uc.j2+")"));this.hW.cb(f,!0)}R2(){this.VU()}cq(f){if(this.Km||this.i1)73===f.keyCode&&(f.ctrlKey||f.metaKey)&&f.altKey&&this.gia(),72===f.keyCode&&(f.ctrlKey||f.metaKey)&&f.altKey&&this.iJa(!this.RT),
27===f.keyCode&&(null!=this.uk&&this.uk.close(),null!=this.$k&&(this.$k.Et.Pu?this.$k.Et.close():this.$k.close()),null!=this.lG&&this.lG.isVisible()?this.lG.close():this.ui.close())}iJa(f){f?(f=document.querySelector("link[data-fm-hc-theme]"))?(f.disabled=!1,this.RT=!0,this.kb()):u.Zn.m2(this.$da,{QK:{"data-fm-hc-theme":""},pj:!0},()=>{this.RT=!0;this.kb()}):(u.Zn.uKa(),this.kb(),this.RT=!1)}jJa(f){this.$da=f}HEa(f){this.$k&&this.$k.isVisible()?this.$k.tk(f.ru,f.rb,f.yp):e.model.C.F.je==l.Id.ot?(this.Wb.I=
e.u.sf.Fj.zc(e.model.C.F.hD==l.Y.te.Bh?"flat":"pivot"),this.Wb.tk(f.ru,f.rb,f.yp)):e.model.C.F.je!=l.Id.dj||f.ru!=e.model.Ac.ej.Sh&&f.ru!=e.model.Ac.ej.TE?e.model.C.F.je==l.Id.dj?(null==this.jd&&this.dG(),this.jd.tk(f.rb)):e.model.C.F.je==l.Id.Tn&&(f.ru==e.model.Ac.ej.LA||f.ru==e.model.Ac.ej.vv||f.ru==e.model.Ac.ej.TA?(null==this.jd&&this.dG(),this.jd.tk(f.rb,!0,b=>{this.Wb.tk(f.ru,f.rb,f.yp,b)})):this.Wb.tk(f.ru,f.rb,f.yp)):(this.Wb.I=e.u.sf.Fj.zc(e.model.C.F.hD==l.Y.te.Bh?"flat":"pivot"),this.SG=
f,h.Fb.N(l.Ni.$o,this.mca),this.Wb.kb())}RFa(){e.model.C.F.je==l.Id.ot?this.Wb.print():e.model.C.F.je==l.Id.dj?(null==this.jd&&this.dG(),this.jd.print()):e.model.C.F.je==l.Id.Tn&&(null==this.jd&&this.dG(),this.jd.print(f=>this.YDa(f)))}YDa(f){this.Wb.print(f)}mT(){e.model.Ga.uc.Oj();return e.model.Ga.uc.By||e.model.Ga.uc.iq?!1:!0}dBa(){return!e.model.Ga.uc.iq&&!e.model.Ga.uc.Gp&&!e.model.Ga.uc.By}gia(){var f=new Date(parseFloat(e.ph.tW)/61);let b=u.zh.format(f,"MMMM yyyy")+" (v. "+e.ph.ft+")";b+=
e.model.Ga.pa.J(e.model.Ga.pa.VB);b+=e.P.bind(e.model.Ga.pa.J(e.model.Ga.pa.Lta),u.zh.format(f,"MM/dd/yyyy HH:mm:ss"));b+=e.model.Ga.pa.J(e.model.Ga.pa.VB);b+=e.model.Ga.pa.J(e.model.Ga.pa.xwa)+e.model.Ga.uc.MCa();e.model.Ga.uc.Gp?b+=e.model.Ga.pa.J(e.model.Ga.pa.LGa)+e.model.Ga.uc.j2:e.model.Ga.uc.iq&&(b+=e.model.Ga.pa.J(e.model.Ga.pa.Rwa)+e.model.Ga.uc.ffa);f=!1;e.model.Ga.uc.hv?e.model.Ga.uc.Gp||e.model.Ga.uc.iq?b+=e.model.Ga.pa.J(e.model.Ga.pa.ICa)+u.zh.format(e.model.Ga.uc.QG,"MM/dd/yyyy"):(f=
!0,b+=e.model.Ga.pa.J(e.model.Ga.pa.oKa)+u.zh.format(e.model.Ga.uc.QG,"MM/dd/yyyy")):b+=e.model.Ga.pa.J(e.model.Ga.pa.JCa);f||(b+=e.model.Ga.pa.J(e.model.Ga.pa.zia)+u.zh.format(e.model.Ga.uc.bW,"MM/dd/yyyy"));b+=e.model.Ga.pa.J(e.model.Ga.pa.LCa)+e.model.Ga.uc.Py;b+=e.model.Ga.pa.J(e.model.Ga.pa.info);e.Za(b,e.model.Ga.pa.J(e.model.Ga.pa.Lua),e.xb.RO)}kg(f,b){return this.Wb.kg(f,b)}VS(f,b){return this.Wb.VS(f,b)}pH(){return this.Wb.pH()}$z(f,b){this.Wb.$z(f,b)}$D(){this.Wb.$D()}get qM(){return this.Wb.qM}get pM(){return this.Wb.pM}LFa(f){null==
this.lG&&this.gsa();this.lG.Ns(f.Cs)}MFa(f){null==this.contextMenu&&this.jsa();var b=f.data.rDa;b&&0<b.length&&this.contextMenu.Po(this.G,b,f.data.coords,null,f.data.IK)}LDa(){0==this.DG.length&&(this.Yga=e.Ce(()=>{this.$a(l.Ni.GX)},1))}gsa(){this.lG=new l.Na.QE;this.W(this.lG)}dG(){this.jd=new l.Bd.ov;this.jd.N(l.Ni.Qx,f=>this.PEa(f));this.jd.N(l.Ni.LW,f=>this.Pfa(f));this.W(this.jd)}ssa(){this.$k=new l.Nf.SE;this.W(this.$k)}sZ(){this.uk=new l.filter.Bma;this.uk.N(v.fa.OPENED,()=>{});this.uk.N(v.fa.CLOSED,
()=>{});this.W(this.uk)}Qsa(){this.Mk=new x.MP;this.Mk.eb();this.Mk.N(x.MP.SW,f=>this.rGa(f));this.W(this.Mk)}jsa(){this.contextMenu=new x.$q.sF(h.Fb.G);this.contextMenu.$("fm-context-menu");this.contextMenu.eb();this.W(this.contextMenu)}esa(){this.ym=new x.be.dk;this.ym.$("fm-branding-bar");this.hW=new x.Uc;this.hW.$("fm-version-label");this.ym.W(this.hW);this.gW=new x.Uc;this.gW.$("fm-link");this.gW.cb(e.model.Ga.pa.J(e.model.Ga.pa.vga),!0);this.ym.W(this.gW);var f=new x.Ea("span","fm-info-icon");
f.N("click",()=>this.gia());this.gW.G.append(f);this.nW=new l.Gqa}dispose(){this.ka=null;this.Wb&&this.Wb.dispose();this.jd&&this.jd.dispose();this.$k&&this.$k.dispose();this.G.dispose();this.gf.dispose();l.hO.dispose();l.filter.y7.dispose();l.DX.dispose();x.vL.xO.dispose();u.VO.dispose();h.Fb=null;this.toolbar&&(this.toolbar.dispose&&this.toolbar.dispose(),this.toolbar=null);this.PF&&(this.PF.Yd(v.fa.HX),this.PF.dispose(),this.PF=null)}}l.Mb=h})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){class h{static Ug(f){if(e.v(f)||"string"!=typeof f)return!1;f=f.toLowerCase();return f==h.ot||f==h.dj||f==h.Tn}}h.ot="grid";h.dj="charts";h.Tn="grid_charts";l.Id=h})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){class h{constructor(){this.sm=0;this.VF=!1;this.dK=this.NF="";this.ZF=!1}show(f,b,a,c=!0,d=!1){f?(d&&this.M4(f,b,a,c),0==this.VF?(this.VF=f,this.NF=b,this.dK=a,this.ZF=c,this.sm=e.Ce(()=>this.Bia(),h.F6)):0==this.sm?this.M4(f,b,a,c):(this.VF=f,this.NF=b,this.dK=a,this.ZF=c)):(d&&this.M4(f,b,a,c),1==this.VF&&(this.VF=f,this.sm=e.Ce(()=>this.Bia(),h.F6)))}M4(f,b,a,c){this.$ga();this.zga(f,b,a,c)}Bia(){this.$ga();this.zga(this.VF,this.NF,this.dK,this.ZF)}$ga(){e.ts(this.sm);
this.sm=0}zga(f,b,a,c){l.DX.V()&&l.DX.V().Ns(f,b,a,c)}static V(){null==h.ze&&(h.ze=new h);return h.ze}static dispose(){h.ze=null}}h.F6=250;l.dpa=h})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){class h extends x.be.ay{constructor(){if(null!=h.ze)throw Error("Singleton");super(l.Mb.Fb.G);this.$("fm-preloader-view");this.Ik("status");this.He()}Ns(f=!0,b="",a="",c=!0){this.NF=b;this.dK=a;this.Dra=c;f?this.open():this.close()}open(){super.open();this.kb()}He(){this.OD.$("fm-overlay-preloader");this.OD.sb("click",this.u$);this.c$=new x.Ma("div","fm-spinner");this.c$.vn();this.W(this.c$);this.Yr=new x.Uc;this.Yr.vn();this.Yr.$("fm-message-label");this.W(this.Yr);this.ZQ=
new x.Uc;this.ZQ.vn();this.ZQ.$("fm-details-label");this.W(this.ZQ);this.eb();l.Mb.Fb.W(this)}kb(){this.OD.oJa(!this.Dra);this.gI(this.NF);this.dJa(this.dK);this.mc(this.NF);this.validate()}gI(f){this.Yr.cb(f)}dJa(f){this.ZQ.cb(f)}close(){super.close();this.clear()}clear(){this.gI("");this.gI("")}static V(){if(null==l.Mb.Fb)return null;null==h.ze&&(h.ze=new h);return h.ze}static dispose(){h.ze=null}}l.DX=h})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Ea{constructor(){super("div","fm-charts-layout");this.O4=!0;this.Ol();this.He()}He(){this.B_();this.awa()}B_(){this.sp=new x.Uc;this.sp.G.display="block";this.sp.$("fm-chart-title");this.sp.$("fm-pivot-title");this.sp.KV(!0);this.sp.G.R("position","relative");this.sp.eb();this.RB(this.sp)}awa(){this.Ur=new x.Ma("div","fm-ui-row fm-header-toolbar");this.RB(this.Ur);this.Wv=new x.Ma("div","fm-ui-col-2");this.Wv.G.display="inline-block";this.Ur.W(this.Wv);
this.rm=new x.zd.Mr;this.rm.$("fm-chart-measures-dropdown");this.rm.N(v.fa.$d,a=>this.tFa(a));this.rm.eb();this.Wv.W(this.rm);this.Xv=new x.zd.Mr;this.Xv.$("fm-chart-pie-dropdown");this.Xv.N(v.fa.$d,a=>this.QFa(a));this.Xv.eb();this.Wv.W(this.Xv);this.Lt=new x.Ma("div","fm-ui-col-2 fm-charts-filters-container");this.Lt.G.display="inline-block";this.Ur.W(this.Lt);this.Pv=new x.zd.Mr;this.Pv.hl=!1;this.Pv.$("fm-charts-filters-btn");this.Pv.fi(e.model.B.j.bB);this.Pv.N(v.fa.$d,a=>this.Rfa(a));this.Pv.ei(this.Lxa);
this.Ur.W(this.Pv)}Lxa(a,c){var d=new b;d.setData(a);d.Tm(c);d.$("fm-charts-filter");d.G.attr("title",e.model.B.j.bB);return d}get tq(){return this.sp}get ff(){return this.mn}get es(){return this.rp}resize(a,c){this.CB=a;this.BB=c}kb(){this.width=this.CB;this.height=this.BB;e.v(this.I)||this.I.nb?this.xJa&&this.kxa():(e.ia(e.model.C.F.zm)||this.S_(),null!=this.Cb&&(this.Ur.G.Wa("fm-fields-list-padding",this.aBa),e.model.C.F.yx&&e.model.C.F.dia&&this.Xwa(),this.Cb.type!=h.Me.PE&&e.model.C.F.$ha&&this.dxa(),
this.Cb.type==h.Me.yv&&1<this.Cb.ul.length&&this.hxa(),e.model.C.F.Zha&&this.Cb.ff&&0<this.Cb.ff.length&&this.Rba(),this.Pba(),e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.qW))))}get aBa(){return e.model.C.F.IR&&!(e.model.C.F.yn&&"right"==e.model.C.F.FC)&&!(e.model.C.F.je==l.Id.Tn&&("bottom"==e.model.C.F.Iy||"left"==e.model.C.F.Iy))}clear(){this.sp.eb();this.Ur.eb();this.rm.eb();this.Xv.eb();this.Lt.eb();this.Pv.eb();this.Wv.Fd("fm-wide");this.rp&&(this.rp.Gg(!0),this.rp=null);this.mn&&(this.mn.Gg(!0),
this.mn=null);this.OB&&this.OB.eb()}get xJa(){return e.model.Va.V().Ia.aE==e.model.jc.nd.ii&&(e.v(this.I)||this.I.nb&&!e.model.C.F.K4)}kxa(){null==this.OB&&(this.OB=new x.Uc(e.model.B.j.g6),this.OB.$("fm-charts-msg"),this.RB(this.OB));this.OB.cb(e.model.B.j.g6);this.OB.show()}S_(){this.sp.cb(e.model.C.F.zm);this.sp.show()}dxa(){var a=[],c=this.I.Ba;const d=this.Cb.zK;for(var g=0;g<c.length;g++){var k=c[g],m=new e.model.hb.ah(k.A,k.aa,k.index);m.label=e.P.zo(k.label,!0,!0);a.push(m)}if(e.model.C.F.I4||
!e.model.C.F.I4&&1<a.length){this.rm.kE(e.model.B.j.Xja);this.rm.Yea=this.rm.fo&&this.Cb.Gz;this.rm.fo=this.Cb.Gz;this.rm.Wf(a);if(this.Cb.Gz){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.aa==d[m].aa||e.ia(d[m].aa))&&(k.index==d[m].index||-1==d[m].index)){c.push(g);break}this.rm.BN(c)}else{a=d[0];const n=new e.model.hb.ah(a.A,a.aa,a.index);this.rm.Ws(p=>p.index===n.index)}this.rm.show();this.Ur.show();this.Cb.type==h.Me.yv&&1<this.Cb.ul.length?this.rm.Xj(this.Wv.uf()/
2-10):this.rm.Xj(this.Wv.uf()-10)}}hxa(){for(var a=[],c=0;c<this.Cb.ul.length;c++)a.push({label:e.P.zo(this.Cb.ul[c].label,!0,!0)});this.Xv.Wf(a);this.Xv.Jk(e.model.C.F.VK);this.Xv.show();this.Ur.show();this.Xv.Xj(this.Wv.uf()/2-10)}Xwa(){this.Lt.G.ox();if(null!=e.u.Ra.V().ua){for(var a=e.u.Ra.V().ua.wc(!1),c=0;c<a.length;c++)this.Lt.W(this.Yva(a.ea(c)));this.Lt.show();this.Ur.show();for(c=a=0;c<this.Lt.G.element.children.length;c++){var d=this.Lt.G.element.children.item(c);a+=d.offsetWidth}a>this.Lt.uf()&&
this.Ywa()}}Ywa(){for(var a=[],c=e.u.Ra.V().ua.wc(!1),d=0;d<c.length;d++){var g=c.ea(d);a.push({label:g.caption,A:g.A,OT:g.filter.wh})}this.Pv.Wf(a);this.Pv.show();this.Lt.eb();this.Wv.$("fm-wide")}Yva(a){var c=new x.Kg;c.$("fm-ui-btn-superlight");c.$("fm-charts-filter");c.G.Wa("fm-filtered",a.filter.wh);c.N(x.Md.mf,d=>this.Rfa(d));c.cb(a.label);c.G.attr("data-hierarchy",a.A);c.G.attr("title",e.model.B.j.bB);return c}Pba(){null!=this.rp&&this.rp.Gg(!0);this.rp=h.Kka.gza(this.Cb.type);this.RB(this.rp);
this.rp.E4((c,d,g)=>this.EGa(c,d,g));var a=this.BB-this.sp.xd(!0)-this.Ur.xd(!0)-this.rp.padding.top-this.rp.padding.bottom;this.mn&&(a-=this.mn.G.element.offsetHeight);this.rp.Qd(this.Cb,this.CB-20,a);this.rp.G.R("max-width",this.CB+"px");this.rp.G.R("max-height",a+"px")}Rba(){null!=this.mn&&this.mn.Gg(!0);this.mn=new h.ff.Lka(this.O4);this.mn.$("fm-chart-legend");this.mn.ZIa((a,c,d)=>this.kFa(a,c,d));this.mn.N(v.fa.$d,()=>this.jFa());this.mn.$Ia(this.Cb.Ap);this.mn.Qd(this.Cb.ff);this.mn.FH.R("max-height",
(this.BB-this.sp.xd(!0)-this.Ur.xd())/2+"px");this.RB(this.mn)}jFa(){this.O4=!this.O4;this.Rba();this.Pba()}Wy(a,c,d){null==d||d.Zb||d.Oh||((a==e.u.i.ja.La?this.I.ai(c,d):this.I.yk(c,d))?this.I.Ip(c,d,a):this.I.Mf(c,d,a))}qu(a,c){a==e.u.i.ja.La?this.I.bi(c)?this.I.collapse(c,e.u.i.ja.La):this.I.expand(c,e.u.i.ja.La):this.I.zk(c)?this.I.collapse(c,e.u.i.ja.Xa):this.I.expand(c,e.u.i.ja.Xa)}gca(a,c){a==e.u.i.ja.La?c.length<=e.model.C.F.du.length?this.I.collapse(c,e.u.i.ja.La):this.I.expand(c,e.u.i.ja.La):
c.length<=e.model.C.F.cC.length?this.I.collapse(c,e.u.i.ja.Xa):this.I.expand(c,e.u.i.ja.Xa)}Rfa(a){a=a.type==v.fa.$d?a.data.ql.A:a.target.G.attr("data-hierarchy");a=e.u.Ra.V().O.fh(a);this.Fa(new l.NO(a))}kFa(a,c,d){e.model.C.F.ko?"expand"==a?this.gca(this.Cb.EH,c):"drill"==a&&this.Wy(this.Cb.EH,c,d):"expand"==a?this.qu(this.Cb.EH,c):"drill"==a&&this.Wy(this.Cb.EH,c,d)}EGa(a,c,d){var g=this.Cb.EH==e.u.i.ja.Xa?e.u.i.ja.La:e.u.i.ja.Xa;e.model.C.F.ko?"expand"==a?this.gca(g,c):"drill"==a&&this.Wy(g,c,
d):"expand"==a?this.qu(g,c):"drill"==a&&this.Wy(g,c,d)}tFa(a){if(this.Cb.Gz){for(var c=[],d=this.rm.hM().slice(),g=0;g<d.length;g++)(a=d[g])&&c.push(a);e.model.C.F.oG=c}else e.model.C.F.io=a.data.ql;this.$a("chart_changed")}QFa(a){e.model.C.F.VK=a.data.selectedIndex;this.$a("chart_changed")}}h.Oka=f;class b extends x.Ci.cB{kb(){var a=this.getData();null==this.label&&(this.label=new x.Uc,this.label.$("fm-text-display"),this.G.append(this.label.G));this.label.cb(a[this.er()],!0);this.G.Wa("fm-filtered",
!0===a.OT);this.G.attr("data-hierarchy",a.A)}}})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static validate(a){return a==f.tA||a==f.EE||a==f.nJ||a==f.yv||a==f.KJ||a==f.$A||a==f.PE?a:a==f.Dpa?f.$A:a==f.aka?f.PE:a==f.R5?f.EE:f.tA}static Fea(a){if("string"!=typeof a||e.ia(a))return!1;a=a.toLowerCase();return a==f.tA||a==f.EE||a==f.R5||a==f.nJ||a==f.KJ?!0:!1}}f.tA="column";f.EE="bar_h";f.R5="bar_horizontal";f.nJ="line";f.yv="pie";f.KJ="scatter";f.$A="stacked_column";f.Dpa="bar_stack";f.PE="column_line";f.aka="bar_line";h.Me=f;class b{}b.YA="series";
b.qF="series_label";b.ena="legend";h.Pn=b})(l.Bd||(l.Bd={}))})(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])}Qa(){const c={};e.v(this.label)||(c.label=this.label);e.v(this.color)||(c.color=this.color);e.v(this.bc)||(c.member=this.bc.Qa());e.v(this.lf)||(c.tuple=this.qKa==e.u.i.ja.La?e.model.Va.V().ha.ua.q_(this.lf):e.model.Va.V().ha.ua.p_(this.lf));e.v(this.measure)||(c.measure={uniqueName:this.measure.A,caption:this.measure.caption,aggregation:this.measure.aa});e.v(this.level)||
(c.level=this.level);e.v(this.Sf)||(c.isExpanded=this.Sf);e.v(this.isCollapsed)||(c.isCollapsed=this.isCollapsed);e.v(this.Rg)||(c.isDrilledDown=this.Rg);e.v(this.yH)||(c.isDrilledUp=this.yH);return c}}f.U7=b;class a{constructor(){this.Gz=!1;this.Ix=this.et=this.dt="";this.ul=[];this.Gi=[];this.EH=e.u.i.ja.Xa;this.Pw=[];this.data=[];this.vw=[];this.oE=this.cu=this.Qea=this.Kea=this.mea=this.Uw=this.de=this.Rf=!1}}f.Mka=a})(h.X||(h.X={}))})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.be.dk{constructor(){super();this.lo=600;this.jo=400;this.Bfa=15;this.C2=3;this.$("fm-chart")}Qd(b,a,c){this.lo=a;this.jo=c;this.Cb=b;this.oBa(this.lo,this.jo)}oBa(b,a){d3v3.select(l.Mb.Fb.gf.element).select(".fm-chart").selectAll("svg").remove();this.svg=d3v3.select(l.Mb.Fb.gf.element).select(".fm-chart").append("svg").attr("width",b).attr("height",a).append("g")}E4(){}b0(b){this.G.R("overflow-y","auto");d3v3.select(l.Mb.Fb.gf.element).select(".fm-chart").selectAll("svg").attr("height",
b)}cca(b){this.G.R("overflow-x","auto");d3v3.select(l.Mb.Fb.gf.element).select(".fm-chart").selectAll("svg").attr("width",b)}Jl(b,a){if(e.Fg(h.ov.tC)){var c=h.ov.tC,d=h.ov.Faa,g=this.Cb.type;b.each(function(k){k=d(k.data?k.data:k);k.type=a;k.chartType=g;c(this,k)})}}ZP(b){b.forEach(a=>{Infinity===Math.abs(a.value)&&(a.value=0);a.Rh&&this.ZP(a.Rh)})}}h.vW=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.vW{constructor(){super();this.Ix=this.et=this.dt="";this.aO=0;this.qia=!1;this.fA=10;this.iG=200;this.GZ=[0,15,30,45,60,75,90]}Qd(b,a,c){super.Qd(b,a,c);this.dt=b.dt;this.et=b.et;this.Ix=b.Ix}mk(b,a){this.aw=this.lo;this.Ht=this.jo;this.fA=this.Cb.oE?20:10;this.iG=this.aw/5;this.ZP(b);this.mZ(b,a);this.svg.attr("transform","translate("+this.oW+", "+this.fA+")")}aM(b){return d3v3.max(b,function(a){return d3v3.max(a.Rh,function(c){return c.value})})}dM(b){return d3v3.min(b,
function(a){return d3v3.min(a.Rh,function(c){return c.value})})}E4(b){this.gu=b}qu(b){if(!e.v(b)&&this.gu){var a=b.data,c=b.vw,d=b.eh||b.Cg;b.collapsed||b.Of?this.gu("expand",a,c):d&&this.gu("drill",a,c)}}mZ(b,a){var c=this.lo,d=this.jo,g=this.aM(b),k=this.dM(b);g=0>g&&(!this.Cb.cu||k==g)?0:g;k=0>k||this.Cb.cu&&k!=g?k:0;this.hm=d3v3.scale.linear().range([d,0]).domain([k,g]).nice();var m=this.Cb.yu,n=this.Cb.Rf,p=this.Cb.de,t=this.Cb.Uw,r=!0===e.model.C.F.bC||null===e.model.C.F.bC&&1E7<g,w=this.Cb.Kca,
y=d3v3.svg.axis().scale(this.hm).orient("left").tickFormat(function(aa){return e.P.wba(w(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.et).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.oW=A;
var I=!e.v(a)&&0<a.length;if(I){var L=this.aM(a),Y=this.dM(a);L=0>L&&(!this.Cb.cu||Y==L)?0:L;Y=0>Y||this.Cb.cu&&Y!=L?Y:0;var D=!0===e.model.C.F.bC||null===e.model.C.F.bC&&1E7<L;this.$N=d3v3.scale.linear().range([d,0]).domain([Y,L]).nice();var E=this.Cb.s0,G=this.Cb.mea,F=this.Cb.Kea,J=this.Cb.Qea,H=d3v3.svg.axis().scale(this.$N).orient("right").tickFormat(function(aa){return e.P.wba(w(aa,E,G,F,J,D))}),M=0,K=this.svg.append("g").attr("class","fm-y fm-axis fm-axis-2").call(H).each(function(){M=this.getBBox().width});
K.append("text").attr("class","fm-y fm-axis fm-axis-label-2 fm-title").text(this.Ix).each(function(){B=this.getBBox().width}).attr("dy","1.3em").attr("transform","translate("+(M+20)+", 0) rotate(90)");K.each(function(){M=this.getBBox().width+2;c-=M}).attr("transform","translate("+c+", 0)")}var Q=this.Cb.ul,N=Math.max(Q.length*Math.max(this.qia?this.C2:this.Cb.Pw.length*this.C2,this.Bfa),c);I&&K.attr("transform","translate("+N+", 0)");a=N>c;this.$j=d3v3.scale.ordinal().rangeRoundBands([0,N],a?0:.1).domain(Q.map(function(aa){return aa.id}));
Q=d3v3.svg.axis().scale(this.$j).tickFormat(function(){return""}).orient("bottom");Q=this.svg.append("g").attr("class","fm-x fm-axis").call(Q);this.CZ(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.dt).attr("transform","translate("+(a?0:N/2)+", "+W+")"),V=this.dt;O.each(function(){this.getBBox().width>=N&&O.append("svg:title").text(V)});d-=this.fA;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)");I&&K.select(".fm-y.fm-axis-label-2").style("text-anchor",B<d?"middle":"start").attr("transform","translate("+(M+5)+","+(B<d?d/2:0)+") rotate(90)");ca&&this.b0(d+W+this.fA);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.hm.range([d,0]);b.call(y);I&&(H.ticks(Q),this.$N.range([d,0]),K.call(H));this.aO=0<k&&0<g?this.hm.domain()[0]:0>k&&0>g?this.hm.domain()[1]:0;I&&(0<Y&&0<L?this.$N.domain():0>Y&&0>L&&this.$N.domain());this.aw=c;this.Ht=d;var U=this.hm;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.cca(I?A+N+M:A+N)}CZ(b){var a=b.append("g").attr("class","fm-axis-dividers");b=b.selectAll(".level").data(this.Cb.Gi).enter().append("g").attr("class","fm-level");var c=b.selectAll("text").data(function(A){return A}).enter().append("text").on("click",A=>this.qu(A)).attr("class","fm-label").style("text-anchor","middle").text(function(A){return A.Of||A.Cg?"- "+A.label:A.collapsed||A.eh?"+ "+A.label:A.label}).style("cursor",function(A){return A.collapsed||A.Of||A.Cg||A.eh?"pointer":"auto"});b.selectAll("text").filter(function(A){return A.Df&&
0<A.Df.length||A.collapsed||A.Of||A.Cg||A.eh}).append("svg:title").text(function(A){return A.Df&&0<A.Df.length?A.Df:A.collapsed||A.eh?e.model.B.j.KP:A.Of||A.Cg?e.model.B.j.JP:""});var d=0;for(d=0;d<c.length;d++)this.iN(c[d],0);var g=Math.floor(this.$j.rangeBand()),k=[],m=0;for(d=0;d<c.length;d++){var n=this.Uza(c[d],g);k.push(n);m=Math.max(m,n)}for(d=0;d<c.length;d++)0!=k[d]&&this.iN(c[d],-m);for(d=0;d<c.length;d++)0!=k[d]&&this.iN(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.$j,w=1<r.range().length?(r.range()[1]-r.range()[0]-r.rangeBand())/2:0,y=0;y<this.Cb.Gi.length;y++)a.selectAll(".refline").data(this.Cb.Gi[y].slice(1)).enter().append("line").attr("class","fm-refline").attr("x1",function(A){return r(A.id)-w}).attr("x2",function(A){return r(A.id)-w}).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})}iN(b,a){for(var c=0;c<b.length;c++)x.Ea.Vb(b[c]).R("text-anchor","middle"),x.Ea.Vb(b[c]).attr("dy","0.38em"),x.Ea.Vb(b[c]).attr("transform",this.c1(b[c])+(0!=a?" rotate("+a+")":""))}c1(b){var a=b.getBoundingClientRect().height/2;b=b.__data__;var c=1<this.$j.range().length?(this.$j.range()[1]-this.$j.range()[0]-this.$j.rangeBand())/2:0;return"translate("+(this.$j(b.id)+this.$j.rangeBand()*b.hC/2+c*(b.hC-1))+", "+a+")"}Uza(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.Nta(a,Math.sqrt(c*c+d*d),this.Fia(Math.atan(d/c)))}Nta(b,a,c){b=Math.min(90,this.Fia(Math.acos(b/a))+c||0);if(0==b)return 0;for(a=0;a<this.GZ.length;a++)if(this.GZ[a]>b)return this.GZ[a];return b}Fia(b){return 180*b/Math.PI}fS(b,a){var c=this.Cb.Ap,d=this.$j,g=0;if(0<this.Cb.Pw.length){var k=this.Cb.Pw;var m=d3v3.scale.ordinal().rangeRoundBands([0,d.rangeBand()],.1).domain(k);k=m.rangeBand();var n=Math.min(k,this.iG);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.aO;k=b.selectAll("rect").data(function(r){return r.Rh}).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.Yq)?c(r.id):c(r.Yq)}).append("title").text(function(r){return r.Df});
this.Jl(k,h.Pn.YA);if(this.Cb.oE){var t=0;b=b.selectAll("text").data(function(r){return r.Rh}).enter().append("text").attr("class","fm-data-label").text(function(r){return r.qs}).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 w=0<r.value?-Math.floor(100*a(r.value))/100:-Math.floor(100*a(p))/100;this.getBBox().width+3>Math.abs(w)&&(w-=Math.min(this.getBBox().width,Math.floor(100*Math.abs(a(p)-a(r.value)))/100));return w}).attr("dx",
function(r){var w=0<r.value?-Math.floor(100*a(r.value))/100:-Math.floor(100*a(p))/100;return this.getBBox().width+3>Math.abs(w)&&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.Df});
this.Jl(b,h.Pn.qF)}}R_(b,a){for(var c=this.$j,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].Yq)?this.Cb.Ap(b[g].id):this.Cb.Ap(b[g].Yq),m=this.svg.append("g");const n=m.append("path").datum(b[g]).attr("class","fm-line").style("stroke",k).attr("d",function(p){return d(p.Rh)});this.Jl(n,h.Pn.YA);k=m.selectAll("circle").data(b[g].Rh).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.Df});this.Jl(k,h.Pn.YA);this.Cb.oE&&(m=m.selectAll("text").data(b[g].Rh).enter().append("text").attr("class","fm-data-label").text(function(p){return p.qs}),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.Df}),
this.Jl(m,h.Pn.qF))}}}h.II=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.vW{constructor(){super();this.Ix=this.et=this.dt="";this.aO=0;this.fA=10;this.iG=200}Qd(b,a,c){super.Qd(b,a,c);this.dt=b.dt;this.et=b.et;this.Ix=b.Ix}mk(b,a){this.aw=this.lo;this.Ht=this.jo;this.iG=this.aw/5;this.ZP(b);this.mZ(b,a);this.svg.attr("transform","translate("+this.oW+", "+this.fA+")")}aM(b){return d3v3.max(b,function(a){return d3v3.max(a.Rh,function(c){return c.value})})}dM(b){return d3v3.min(b,function(a){return d3v3.min(a.Rh,function(c){return c.value})})}E4(b){this.gu=
b}qu(b){if(!e.v(b)&&this.gu){var a=b.data,c=b.vw,d=b.eh||b.Cg;b.collapsed||b.Of?this.gu("expand",a,c):d&&this.gu("drill",a,c)}}mZ(b){var a=this.lo,c=this.jo,d=this.aM(b),g=this.dM(b);d=0>d&&(!this.Cb.cu||g==d)?0:d;g=0>g||this.Cb.cu&&g!=d?g:0;this.hm=d3v3.scale.linear().range([0,a]).domain([g,d]).nice();var k=this.Cb.yu,m=this.Cb.Rf,n=this.Cb.de,p=this.Cb.Uw,t=!0===e.model.C.F.bC||null===e.model.C.F.bC&&1E7<d,r=this.Cb.Kca,w=d3v3.svg.axis().scale(this.hm).orient("bottom").tickFormat(function(H){return r(H,
k,m,n,p,t)}),y=this.svg.append("g").attr("class","fm-y fm-axis").call(w),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.et).attr("transform","translate("+a/2+", "+C+")");c-=this.fA;y.each(function(){A=this.getBBox().height;c-=A});var B=this.Cb.ul,I=Math.max(B.length*Math.max(this.Cb.Pw.length*this.C2,this.Bfa),c);y.attr("transform","translate(0,"+I+")");b=I>c;this.$j=d3v3.scale.ordinal().rangeRoundBands([0,
I],b?0:.1).domain(B.map(function(H){return H.id}));B=d3v3.svg.axis().scale(this.$j).orient("left").tickFormat(function(){return""});var L=0;B=this.svg.append("g").attr("class","fm-x fm-axis").call(B).each(function(){L=this.getBBox().width;a-=L});this.oW=L;this.CZ(B);B.each(function(){L=this.getBBox().width});var Y=B.append("text").attr("class","fm-x fm-axis fm-axis-label fm-title").text(this.dt).style("text-anchor",b?"end":"middle").attr("dy","-0.5em").attr("transform","translate(-"+L+", "+(b?0:I/
2)+") rotate(-90)"),D=this.dt;Y.each(function(){this.getBBox().width>=I&&Y.append("svg:title").text(D)});a=b?a-16:a;var E=!1;B.each(function(){L=this.getBBox().width;a=(E=L>4*a/5)?1*a/5:a-L});E&&this.cca(a+L);this.oW=L;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);w.ticks(B);this.hm.range([0,a]);y.call(w);y.select(".fm-title").attr("transform","translate("+a/2+", "+C+")");this.aO=0<g&&
0<d?this.hm.domain()[0]:0>g&&0>d?this.hm.domain()[1]:0;this.aw=a;this.Ht=c;var J=this.hm;d=J.ticks(B);d.shift();y.selectAll(".refline").data(d).enter().append("line").attr("class","fm-refline").attr("y1",0).attr("y2",-I).attr("x1",function(H){return J(H)}).attr("x2",function(H){return J(H)});d=A+I+this.fA;b&&this.b0(d)}CZ(b){var a=b.append("g").attr("class","fm-axis-dividers");b=b.selectAll(".level").data(this.Cb.Gi).enter().append("g").attr("class","fm-level");var c=b.selectAll("text").data(function(t){return t}).enter().append("text").on("click",
t=>this.qu(t)).attr("class","fm-label").style("text-anchor","middle").text(function(t){return t.Of||t.Cg?"- "+t.label:t.collapsed||t.eh?"+ "+t.label:t.label}).style("cursor",function(t){return t.collapsed||t.Of||t.Cg||t.eh?"pointer":"auto"});b.selectAll("text").filter(function(t){return t.Df&&0<t.Df.length||t.collapsed||t.Of||t.Cg||t.eh}).append("svg:title").text(function(t){return t.Df&&0<t.Df.length?t.Df:t.collapsed||t.eh?e.model.B.j.KP:t.Of||t.Cg?e.model.B.j.JP:""});var d=0;for(d=0;d<c.length;d++)this.iN(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.$j,n=1<m.range().length?(m.range()[1]-m.range()[0]-m.rangeBand())/2:0,p=0;p<this.Cb.Gi.length;p++)a.selectAll(".refline").data(this.Cb.Gi[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,w=0;w<r;w++)t+=g[w]+6;return-t})}iN(b,a){for(var c=0;c<b.length;c++)x.Ea.Vb(b[c]).R("text-anchor","end"),x.Ea.Vb(b[c]).attr("dy","0.38em"),x.Ea.Vb(b[c]).attr("transform",this.c1(b[c])+(0!=a?" rotate("+a+")":""))}c1(b){var a=b.getBoundingClientRect().height/2;b=b.__data__;b=this.$j(b.id)+this.$j.rangeBand()*b.hC/2;return"translate("+a+", "+b+")"}fS(b,a){var c=this.Cb.Ap,d=this.$j,g=0;if(0<this.Cb.Pw.length){var k=this.Cb.Pw;var m=d3v3.scale.ordinal().rangeRoundBands([0,
d.rangeBand()],.1).domain(k);k=m.rangeBand();var n=Math.min(k,this.iG);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.aO;k=b.selectAll("rect").data(function(t){return t.Rh}).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.Yq)?c(t.id):c(t.Yq)});k.append("title").text(function(t){return t.Df});this.Jl(k,h.Pn.YA);if(this.Cb.oE){const t=this.G.find("svg").getBoundingClientRect();b=b.selectAll("text").data(function(r){return r.Rh}).enter().append("text").attr("class","fm-data-label").text(function(r){return r.qs}).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.Df});this.Jl(b,h.Pn.qF)}}R_(b,a){for(var c=this.$j,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].Yq)?this.Cb.Ap(b[g].id):this.Cb.Ap(b[g].Yq),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.Rh)});
m.selectAll("circle").data(b[g].Rh).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.Df})}}}h.Oja=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.II{constructor(){super()}Qd(b,a,c){super.Qd(b,a,c);this.mk(b.data)}mk(b){super.mk(b);this.fS(b,this.hm)}}h.z6=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));(function(e){(function(l){(function(h){class f extends h.II{constructor(){super()}Qd(b,a,c){super.Qd(b,a,c);this.mk(b.data)}mk(b){super.mk(b);this.R_(b,this.hm)}}h.kna=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.II{constructor(){super()}Qd(b,a,c){super.Qd(b,a,c);this.mk(b.data)}mk(b){super.mk(b);for(var a=this.$j,c=this.hm,d="triangle-up cross circle square triangle-down diamond".split(" "),g=0;g<b.length;g++){var k=e.v(b[g].Yq)?this.Cb.Ap(b[g].id):this.Cb.Ap(b[g].Yq),m=d[g%d.length],n=this.svg.append("g");m=d3v3.svg.symbol().type(m);m=n.selectAll(".scatter-point").data(b[g].Rh).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.Df});this.Jl(m,h.Pn.YA);this.Cb.oE&&(n=n.selectAll("text").data(b[g].Rh).enter().append("text").attr("class","fm-data-label").text(function(p){return p.qs}),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.Df}),this.Jl(n,h.Pn.qF))}}}h.Kpa=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.vW{constructor(){super()}Qd(b,a,c){super.Qd(b,a,c);this.update(b.data)}update(b){if(0!=b.length){var a=this.lo,c=Math.max(this.jo,70),d=Math.min(a,c)/2;c>this.jo&&this.b0(c);var g=this.Cb.Ap,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].Rh)).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.Df});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=[],w=[];b.each(function(y){var A=n.centroid(y);if(e.model.C.F.Wha||0==r.length||2==r.length&&Math.abs(A[1]-r[1])>p||0<=r[0]&&0>=A[0])w.push(y),t.push(A),r=A});
d=this.svg.selectAll(".pie-label").data(w).enter().append("g").attr("class","fm-pie-label");d.append("text").text(function(y){return y.data.label+" ("+y.data.qs+")"}).attr("transform",function(y,A){return"translate("+t[A]+")"}).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.f2&&0<y.data.f2.length}).append("svg:title").text(function(y){return y.data.f2});this.Jl(b,h.Pn.YA);this.Jl(d,h.Pn.qF);b=this.svg[0][0].getBBox();
if(b.x+b.width>a/2||b.x<-a/2)d=x.Ea.Vb(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.apa=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.II{constructor(){super();this.qia=!0}Qd(b,a,c){super.Qd(b,a,c);this.mk(b.data)}aM(b){return d3v3.max(b,function(a){return a.UKa})}dM(b){return d3v3.min(b,function(a){return a.TKa})}mk(b){this.ZP(b);b.forEach(function(p){var t=0,r=0;p.Rh.forEach(function(w){0<=w.value?(w.D5=t,t+=w.value,w.y1=t):(w.y1=r,r+=w.value,w.D5=r)});p.TKa=r;p.UKa=t});super.mk(b);var a=this.Cb.Ap,c=this.$j,d=this.hm;var g=c.rangeBand();0<this.Cb.Pw.length&&(g=this.Cb.Pw,
g=d3v3.scale.ordinal().rangeRoundBands([0,c.rangeBand()],.1).domain([g[0]]),g=g.rangeBand());var k=Math.min(g,this.iG),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.Rh}).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.D5)-d(p.y1)))/100}).style("fill",function(p){return a(p.id)});g.append("title").text(function(p){return p.Df});b.selectAll("path").data(function(p){return p.Rh}).enter().append("path").attr("d",function(p){return"M0 "+Math.round(100*d(p.y1))/100+" l"+k+" 0"});this.Jl(g,h.Pn.YA);if(this.Cb.oE){var n=0;b=b.selectAll("text").data(function(p){return p.Rh}).enter().append("text").attr("class","fm-data-label").text(function(p){return p.qs}).each(function(){n=Math.max(n,this.getBBox().height)});
b.text(function(p){return n+1>Math.round(100*Math.abs(d(p.D5)-d(p.y1)))/100?"":p.qs});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.Df});this.Jl(b,h.Pn.qF)}}}h.Qpa=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.II{constructor(){super()}Qd(b,a,c){super.Qd(b,a,c);this.mk(b.data,b.vw)}mk(b,a){super.mk(b,a);this.fS(b,this.hm);this.R_(a,this.$N)}}h.Qka=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));(function(e){(function(l){(function(h){class f extends h.Oja{constructor(){super()}Qd(b,a,c){super.Qd(b,a,c);this.mk(b.data)}mk(b){super.mk(b);this.fS(b,this.hm)}}h.Mja=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Ci.cB{constructor(){super();this.z_();this.kL()}z_(){null==this.mD&&(this.mD=new x.Ea("span","fm-icon-display"))}kL(){null==this.Vo&&(this.Vo=new x.Ea("span","fm-text-display"))}kb(){var a=this.getData();this.G.empty();0==a.Sf&&this.mD.R("background-color",a.color);this.G.append(this.mD);this.Vo.html(a[this.er()]);var c=a.Df;c&&0<c.length&&this.Vo.attr("title",c);a.isCollapsed||a.yH?this.G.attr("title",e.model.B.j.KP):(a.Sf||a.Rg)&&
this.G.attr("title",e.model.B.j.JP);this.G.$("fm-level-"+a.level);this.G.append(this.Vo);e.v(a.measure)||isNaN(a.measure.index)||this.G.attr("data-measure-index",a.measure.index);this.G.Wa(l.Y.X.wa.EW,a.isCollapsed||a.yH);this.G.Wa(l.Y.X.wa.UW,a.Sf||a.Rg);this.Jl(this.G.element,h.Pn.ena)}Jl(a,c){if(e.Fg(h.ov.tC)){var d=this.getData().Qa();d.type=c;d.chartType=e.model.C.F.WK;h.ov.tC(a,d)}}}f.jna=b})(h.ff||(h.ff={}))})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.be.dk{constructor(a){super();this.FN=!0;this.FN=a;this.G.Ol();this.color=d3v3.scale.category20c();e.model.C.F.H4&&(this.DN=new x.Kg,this.FN?this.DN.$("fm-chart-legend-btn fm-hide"):this.DN.$("fm-chart-legend-btn fm-show"),this.DN.G.attr("title",this.FN?e.model.B.j.Wja:e.model.B.j.Yja),this.DN.N(x.Md.mf,()=>this.oGa()),this.W(this.DN));this.FH=new x.Ea("div");this.FH.$("fm-chart-legend-container");this.FN&&this.G.append(this.FH)}oGa(){this.$a(v.fa.$d)}$Ia(a){this.color=
a}Qd(a){if(this.FN){this.FH.ox();this.FH.Wa("fm-legend-btn-shown",e.model.C.F.H4);for(var c=new x.Ea("table"),d=new x.Ea("tr"),g=0;g<a.length;g++){for(var k=0;k<a[g].length;k++)a[g][k].Sf||a[g][k].Rg||(a[g][k].color=this.color(a[g][k].id));k=new x.Ea("td");var m=new x.zd.ij;m.$("fm-legend-lst-"+g);m.ei(this.Su);m.qg("label");m.useCache=!1;m.Wf(a[g]);m.N(v.fa.$d,n=>this.NU(n));k.append(m.G);d.append(k)}c.append(d);this.FH.append(c)}}ZIa(a){this.gu=a}Su(a,c){var d=new f.jna;d.setData(a);d.Tm(c);return d}NU(a){a=
a.data.ql;var c=a.yH||a.Rg;a.isCollapsed||a.Sf?this.gu("expand",a.lf,a.bc):c&&this.gu("drill",a.lf,a.bc)}}f.Lka=b})(h.ff||(h.ff={}))})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){}static gza(b){switch(b){case h.Me.tA:b=new h.z6;break;case h.Me.EE:b=new h.Mja;break;case h.Me.nJ:b=new h.kna;break;case h.Me.KJ:b=new h.Kpa;break;case h.Me.yv:b=new h.apa;break;case h.Me.$A:b=new h.Qpa;break;case h.Me.PE:b=new h.Qka;break;default:b=new h.z6}return b}}h.Kka=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.be.dk{constructor(){super();this.X7=50;this.model=e.model.Va.V();this.$("fm-charts-view");this.Ie();new h.Nka(this)}dispose(){this.model=this.I=null;this.Nq&&this.Nq.dispose();this.Nq=null}kb(){if(!(1>e.model.Ga.uc.Oj())){null==this.Nq&&(this.Nq=this.Rva(),this.G.W(this.Nq));this.Nq.clear();this.Nq.I=this.I;this.Nq.resize(l.Mb.lo,l.Mb.jo);this.Nq.Cb=null;if(this.I&&this.I.ri){if(null==this.z0()){e.Za(e.model.B.j.Zja,e.model.B.j.Aa);return}this.Nq.Cb=
this.Qva()}this.Nq.kb()}}Rva(){var b=new h.Oka;b.N("chart_changed",()=>this.VDa());b.N(l.Ni.Qx,a=>this.KU(a));b.N("dblclick",a=>this.XDa(a));b.N("click",a=>this.WDa(a));return b}get Am(){return this.Nq}VDa(){this.kb()}KU(b){this.Fa(b)}SBa(b){b=x.Ea.Vb(b);return b.closest(".fm-charts-filters-container")||b.closest(".fm-charts-filters-btn")?!0:!1}UH(b){b=x.Ea.Vb(b).closest(".fm-charts-filter");null!=b&&(b=e.u.Ra.V().O.fh(b.attr("data-hierarchy")),null!=b&&this.Fa(new l.NO(b)))}tk(b,a=!1,c=null){e.model.Ac.xA.pg(this,
b,a,c)}print(b=null){if(this.Pea){var a=e.model.Ac.xA.nS(this,null,!0);a=e.model.Ac.xA.jL(e.model.Rs.jF.V().C.Ui)+a+e.model.Ac.xA.jL(e.model.Rs.jF.V().C.pj)}else a=e.model.Ac.xA.nca(this,null,!0);!e.ia(e.model.C.F.zm)&&this.Pea&&(a="<center><div style='"+l.Y.X.ed.dz(this.G.find(".fm-chart-title"))+"'>"+e.model.C.F.zm+"</div></center>"+a);null!=b?b(a):(z.I8.print(a,"",e.model.C.F.zm),e.model.Rs.jF.V().bga());e.model.Ac.xA.clear()}get Pea(){var b=new x.Ea("div");b.text("FM");b.R("font-size","10px");
b.eb();document.body.appendChild(b.element);var a="10px"==b.R("font-size");b.remove();return a}Qva(){var b=new h.X.Mka;b.type=e.model.C.F.WK;b.cu=e.model.C.F.cu;b.oE=e.model.C.F.Yha;b.Tt=this.z0();b.Gz=e.model.C.F.pG&&(b.type==h.Me.tA||b.type==h.Me.EE||b.type==h.Me.nJ||b.type==h.Me.KJ);b.yu=b.Tt.Yh(b.Tt.A,b.Tt.aa).clone();b.Rf=e.u.i.da.Rf(b.Tt.aa);b.de=e.u.i.da.de(b.Tt.aa);b.yu.rd=b.Tt.aa==e.u.i.da.Ji?"":b.yu.rd;b.Uw=b.Tt.type==e.u.i.Pa.dc&&e.u.i.da.Zo(b.Tt.aa);b.Kca=this.Jca;var a="on"==e.model.C.F.Bf||
"rows"==e.model.C.F.Bf?this.I.Dd-1:this.I.Dd,c="on"==e.model.C.F.Bf||"columns"==e.model.C.F.Bf?this.I.Cd-1:this.I.Cd;0==a&&(a=1);0==c&&(c=1);var d=3E3<c*a?3E3:-1;b.zK=b.Gz?this.Qca():[b.Tt];e.model.C.F.ko&&(null!=this.I.fU&&(e.model.C.F.du=this.I.fU),null!=this.I.eU&&(e.model.C.F.cC=this.I.eU),0==this.kAa(e.model.C.F.du)&&(e.model.C.F.du=[]),0==this.lAa(e.model.C.F.cC)&&(e.model.C.F.cC=[]));var g=!1;switch(b.type){case h.Me.tA:case h.Me.EE:case h.Me.$A:g=this.Cga(b,a,c,b.zK,b.data,b.Gz&&1<b.zK.length,
void 0,d);break;case h.Me.nJ:case h.Me.KJ:g=this.Dga(b,a,c,b.zK,b.data,b.Gz&&1<b.zK.length,void 0,d);break;case h.Me.yv:g=this.yHa(b,a,c,b.Tt,void 0,d);break;case h.Me.PE:g=0<this.I.Ba.length?this.I.Ba[0]:null;var k=1<this.I.Ba.length?this.I.Ba[1]:null;b.yu=g.Yh(g.A,g.aa).clone();b.Rf=e.u.i.da.Rf(g.aa);b.de=e.u.i.da.de(g.aa);b.yu.rd=g.aa==e.u.i.da.Ji?"":b.yu.rd;b.Uw=g.type==e.u.i.Pa.dc&&e.u.i.da.Zo(g.aa);e.v(k)||(b.s0=k.Yh(k.A,k.aa).clone(),b.mea=e.u.i.da.Rf(k.aa),b.Kea=e.u.i.da.de(k.aa),b.s0.rd=
k.aa==e.u.i.da.Ji?"":b.s0.rd,b.Qea=k.type==e.u.i.Pa.dc&&e.u.i.da.Zo(k.aa));g=this.xHa(b,a,c,g,k,d)}e.model.C.F.aia&&g&&e.Za(e.model.B.j.$ja,e.model.B.j.o9,e.xb.vl);this.wHa(b);b.type!=h.Me.yv&&(b.dt=this.PAa(),b.type==h.Me.PE?(g=0<this.I.Ba.length?this.I.Ba[0]:null,k=1<this.I.Ba.length?this.I.Ba[1]:null,b.et=null!=g?g.label:"",b.Ix=null!=k?k.label:""):(e.model.C.F.pG?(a=this.Qca(),b.et=1==a.length?a[0].label:""):b.et=this.z0().label,b.Ix=""));return b}wHa(b){if(e.v(this.S4)||0==this.S4.length)this.S4=
this.lza();b.Ap=d3v3.scale.ordinal().range(this.S4);if(b.ff&&0<b.ff.length){var a=[],c=[],d,g;for(d=0;d<b.ff.length;d++){var k=b.ff[d][0].id;var m=b.Ap(k);b.ff[d][0].Sf||(a.push(k),c.push(m));k=[];for(g=1;g<b.ff[d].length;g++)b.ff[d][g].Sf||k.push(b.ff[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.ff[d].length;g++)b.ff[d][g].Sf||(c.push(m(k).toString()),k++)}b.Ap=d3v3.scale.ordinal().domain(a).range(c)}}lza(){var b=
[],a=1,c=new x.Ea("div");c.eb();for(l.Mb.Fb.G.W(c);100>a;){c.d4("class");c.$("fm-charts-color-"+a);var d=window.getComputedStyle(c.element).fill;e.ia(d)&&(d="#000");if("none"!=d)b.push(d);else break;a++}c.remove();return b}z0(){var b=this.I.Ba.find(k=>k.A===e.model.C.F.io.A);if(null!=b&&(""!=e.model.C.F.io.aa||e.model.C.F.io.index)){var a=!0,c=!0;for(g=0;g<this.I.Ba.length;g++){var d=this.I.Ba[g];if(d.A==e.model.C.F.io.A)if(""==e.model.C.F.io.aa){b=d;break}else if(d.aa==e.model.C.F.io.aa)if(a=!1,
null==e.model.C.F.io.index||-1==e.model.C.F.io.index){b=d;break}else if(d.index==e.model.C.F.io.index){b=d;c=!1;break}}a&&(e.model.C.F.io.aa="");c&&(e.model.C.F.io.index=-1)}if(null==b)if(e.model.C.F.rc)for(var g=0;g<this.I.Ba.length&&(b=this.I.Ba[g],b.type==e.u.i.Pa.xc||b.type==e.u.i.Pa.Sa);g++);else b=this.I.Ba[0];return b}Qca(){var b=[],a=e.model.C.F.oG;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.I.Ba.length;p++){var t=this.I.Ba[p];if(t.A==g.A)if(-1==c.indexOf(t.index)&&
(k=t),""==g.aa)break;else if(t.aa==g.aa)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.oG[d].aa="");n&&(e.model.C.F.oG[d].index=-1);null!=k&&(c.push(k.index),b.push(k))}else b=this.I.Ba.slice();0==b.length&&(b=this.I.Ba.slice(),e.model.C.F.oG=[]);return b}kAa(b){for(var a=0,c,d=0;d<this.I.Cd;d++)c=this.I.Fn(d),this.sR(b,c)&&a++;return a}lAa(b){for(var a=0,c,d=0;d<this.I.Dd;d++)c=this.I.Nj(d),this.tR(b,c)&&a++;return a}sR(b,
a){return a.length!=b.length+1||0!=b.length&&0!=a.join(",").indexOf(b.join(",")+",")?!1:!0}tR(b,a){return a.join()==b.join()||a.length==b.length+1&&(0==b.length||0==a.join(",").indexOf(b.join(",")+","))?!0:!1}PAa(){for(var b=[],a=0;a<this.I.rows.length;a++)b.push(this.I.rows.ea(a).label);return b.join(" / ")}pda(b){for(var a=[],c,d=0;d<b.length;d++)c=b[d],c=c.Yh(c.A,c.aa).clone(),a.push(c);return a}jM(b,a,c,d,g,k=""){a=c+": "+a;b.type==h.Me.yv&&0<k.length&&(a+=" of "+k);c=this.I.Rb.Ya&&1==this.I.Ka.length;
d=this.I.cc.Ya&&1==this.I.rows.length?"":this.d1(d,e.u.i.ja.La,!1,null,!0);g=c?"":this.d1(g,e.u.i.ja.Xa,!1,null,!0);d=this.Lw(d);g=this.Lw(g);0<d.length&&(a=a+"\n"+d);0<g.length&&(a=a+"\n"+g);b.type!=h.Me.yv&&0<k.length&&(a=a+"\nTotal: "+k);return a}d1(b,a,c=!1,d=null,g=!1){if(c&&a==e.u.i.ja.La)return null!=d?d.hierarchy.label+": "+d.caption:e.model.B.j.dqa+" "+(b[0]+1).toString();c=[];a=a==e.u.i.ja.Xa?this.I.Db:this.I.yb;for(var k,m=0;m<b.length;m++)d=a.ea(m),null!=d&&(k=b[m],c.push(this.rfa(d.ya(k),
g)));return c.join(" - ")}XDa(b){this.pea(b.target)&&this.bd(b.target)}WDa(b){b=this.QS(b.target,!0);e.v(b)||e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.f6,b))}pea(b){if(e.v(e.u.Ra.V().ga)||!e.u.Ra.V().ga.KT||!e.model.C.F.bd)return!1;b=b.__data__;null!=b&&b.data&&(b=b.data);return b&&b.measure&&null==this.model.ha.O.gd(b.measure.A)?!1:b&&b.measure&&b.Bg&&b.lh}bd(b){var a=b.__data__;null!=a&&a.data&&(a=a.data);b=new l.O6(a.measure,a.Bg,a.lh,this.QS(b,!0));this.Fa(b)}rfa(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}Lw(b){return b=b.length<=this.X7?b:b.substr(0,this.X7)+"..."}Rg(b,a){if(0==b.length)return!1;var c=a==e.u.i.ja.Xa?this.I.Ka:this.I.rows;if(0==c.length)return!1;c=c.ea((a==e.u.i.ja.Xa?this.I.Rb:this.I.cc).Ya&&(0==b.length||b.length>this.I.ie)?b.length:b.length-1).ya(b[b.length-1]);return a==e.u.i.ja.Xa?this.I.yk(b,c):this.I.ai(b,c)}wZ(b,a,c){if(0!=a.length){var d=c==e.u.i.ja.Xa?this.I.Rb:this.I.cc,
g=c==e.u.i.ja.Xa?this.I.Ka:this.I.rows;if(0!=g.length){var k=d.Ya&&1==g.length,m=g.ea(d.Ya&&a.length>this.I.ie?a.length:a.length-1);d=m.ya(a[a.length-1]);var n=g=k?m.label:d.caption;g=this.Lw(g);n=g!=n?n:"";g=e.P.zo(g,!0,!0);k=k?"":d.level.A;k=c==e.u.i.ja.Xa?this.I.iC.indexOf(k):this.I.ol.indexOf(k);var p=this.fr(a),t=c==e.u.i.ja.Xa?this.I.zk(a):this.I.bi(a),r=c==e.u.i.ja.Xa?this.I.yk(a,d):this.I.ai(a,d),w=a.length<(c==e.u.i.ja.Xa?this.I.Yk:this.I.ml)&&!t&&!r;m=m.mg&&!d.Oh&&!d.Zb&&!d.Sg&&!t&&!r;0!=
k&&0!=b.length||b.push([]);b[b.length-1].push(new h.X.U7({label:g,id:p,lf:a,qKa:c,bc:d,level:k,Sf:t,isCollapsed:w,Rg:r,yH:m,Df:n}))}}}fr(b){return b.join("-")}BZ(b,a,c,d=!1,g=null,k=null){var m=c==e.u.i.ja.Xa?this.I.Rb:this.I.cc,n=c==e.u.i.ja.Xa?this.I.Db:this.I.yb,p=m.Ya&&1==n.length,t=a.length-1,r=n.ea(t);if(null==r)return b.ul.push({label:"",id:this.fr(a)}),"";t=a[a.length-1];t=r.ya(t);var w="";if(0<a.length)if(d)w=null!=g?g.caption:(a[0]+1).toString();else if(0<n.length){w=p?r.label:t.caption;
var y=p?"":t.level.A}g=this.fr(a);var A=this.Lw(p?"":w);b.ul.push({label:A,id:g});y=this.I.ol.indexOf(y);null==b.Gi[y]&&(b.Gi[y]=[]);var C=e.model.C.F.ko?a.length<=e.model.C.F.du.length:p?!1:c==e.u.i.ja.Xa?this.I.zk(a):this.I.bi(a);var B=c==e.u.i.ja.Xa?this.I.Yk:this.I.ml;b.Gi[y].push({label:A,id:g,data:a,vw:t,Of:C,collapsed:p?!1:!C&&a.length<B,Cg:!1,eh:p?!1:r.mg&&!t.Oh&&!t.Zb&&!t.Sg,hC:1,Df:A!=w?w:""});this.AZ(b,a,t,c,g);for(d=d?0:a.length-1;0<d;)d--,t=m.Ya&&d+1>this.I.ie?d+1:d,r=n.ea(t),t=a[d],
t=r.ya(t),y=t.level.A,y=this.I.ol.indexOf(y),null==b.Gi[y]&&(b.Gi[y]=[]),r=p?r.label:t.caption,A=this.Lw(r),r=A!=r?r:"",C=k.pop(),void 0===C?b.Gi[y][b.Gi[y].length-1].hC++:b.Gi[y].push({label:A,id:g,data:C,vw:t,Of:!0,collapsed:!1,Cg:!1,eh:!1,hC:1,Df:r}),this.AZ(b,a,t,c,g);return w}AZ(b,a,c,d,g){try{c.level.wb}catch(r){c.level.wb}if(c&&1<c.level.wb){var k=this.I.ol.indexOf(c.parent.level.A);null==b.Gi[k]&&(b.Gi[k]=[]);var m=c.parent.caption,n=m;m=this.Lw(m);n=m!=n?n:"";if(m===(0<b.Gi[k].length?b.Gi[k][b.Gi[k].length-
1].label:""))b.Gi[k][b.Gi[k].length-1].hC++;else{var p=(d==e.u.i.ja.Xa?this.I.Db:this.I.yb).indexOf(c.hierarchy.A),t=a.slice(0,p);t[p]=c.parent.ordinal;b.Gi[k].push({label:m,id:g,data:t,vw:c.parent,Of:!1,collapsed:!1,Cg:!0,eh:!1,hC:1,Df:n})}this.AZ(b,a,c.parent,d,g)}}J(b,a){if(0==b.length)return"";var c=a==e.u.i.ja.Xa?this.I.Rb:this.I.cc,d=a==e.u.i.ja.Xa?this.I.Ka:this.I.rows;if(0==d.length)return"";a=c.Ya&&1==d.length;c=d.ea(c.Ya&&(0==b.length||b.length>this.I.ie)?b.length:b.length-1);b=b[b.length-
1];return a?c.label:this.rfa(c.ya(b))}eR(b,a,c){b.push([]);b[b.length-1].push(new h.X.U7({label:a.label,id:c,measure:a,level:0,Sf:!1,isCollapsed:!1,Rg:!1,yH:!1,Df:""}))}Np(b,a,c,d,g,k,m,n){return this.model.Ia.ga.Da!=e.u.i.qa.Tc&&this.model.Ia.ga.Da!=e.u.i.qa.le||!e.model.C.F.vq||d.aa!=e.u.i.da.NONE?this.Jca(b,g,k,m,n):this.I.Np(a,c,d)}Jca(b,a,c,d,g,k=!1){return g?e.P.Cx(b,e.model.C.F.Wo):d?u.Yb.format(b,a,c,d):k?u.Yb.wJa(b,a,c,d):u.Yb.format(b,a,c,d)}Dga(b,a,c,d,g,k=!1,m=null,n=-1){var p=!0,t=!0,
r=[],w=this.I.Rb.Ya&&1==this.I.Ka.length,y=this.I.cc.Ya&&1==this.I.rows.length;var A="";var C=NaN,B,I=d[0],L=this.pda(d),Y=L[0],D=e.u.i.da.Rf(I.aa),E=e.u.i.da.de(I.aa);Y.rd=I.aa==e.u.i.da.Ji?"":Y.rd;var G=I.type==e.u.i.Pa.dc&&e.u.i.da.Zo(I.aa);if(null!=m)var F=this.I.Nj(this.model.ha.ua.rows.indexOf(m.A)),J=this.model.ha.O.cf(m.A);var H=!1,M=c;for(c=0;c<a;c++){var K=c;K=this.I.Nj(K);if(!e.model.C.F.ko||this.tR(e.model.C.F.cC,K)||w||0==this.I.Ka.length){var Q=this.Rg(K,e.u.i.ja.Xa);k||w||this.wZ(r,
K,e.u.i.ja.Xa);if(!Q){if(0<this.I.Ka.length&&0<K.length){var N=[];if(!k&&(C=this.I.Ha(N,K,I),!this.yz(C)))continue;A=this.I.Rb.Ya&&(0==K.length||K.length>this.I.ie)?K.length:K.length-1;A=this.I.Ka.ea(A);var W=K[K.length-1];A=w?A.label:A.ya(W).caption}Q=0==K.length?!1:this.I.zk(K);if(!Q){W=[];var O=[];if(k){for(var V=0;V<d.length;V++){I=d[V];D=e.u.i.da.Rf(I.aa);E=e.u.i.da.de(I.aa);L[V].rd=I.aa==e.u.i.da.Ji?"":L[V].rd;G=I.type==e.u.i.Pa.dc&&e.u.i.da.Zo(I.aa);t&&this.eR(r,I,V.toString());W=[];for(B=
0;B<M;B++){N=this.I.Fn(B);var ca=this.fr(N);if(Q=0==N.length?!1:this.I.bi(N))if(O.push(N),!e.model.C.F.ko)continue;Q=this.Rg(N,e.u.i.ja.La);if(!Q&&(!e.model.C.F.ko||this.sR(e.model.C.F.du,N)||y||0==this.I.rows.length)){Q=p?this.BZ(b,N,e.u.i.ja.La,null,null,O.splice(0)):this.J(N,e.u.i.ja.La);O=[];var fa=this.I.Ha(N,K,I);if(this.yz(fa)){var U=this.Np(fa,N,K,I,L[V],D,E,G);var aa=this.jM(b,U,I.label,N,K);W.push({label:Q,value:fa,qs:U,id:ca,Df:aa,measure:{A:I.A,aa:I.aa,index:I.index},lh:N,Bg:K})}if(p&&
0<b.ul.length&&(ca=b.ul.length,-1<n&&ca>=n)){M=B+1;H=!0;break}}}p=!1;ca=this.fr(K)+"-"+V;B=V.toString();g.push({label:A,value:C,id:ca,Yq:B,Rh:W})}t=!1}else{for(B=0;B<M;B++){N=this.I.Fn(B)||[];ca=this.fr(N);if(Q=0==N.length?!1:this.I.bi(N))if(O.push(N),!e.model.C.F.ko)continue;Q=this.Rg(N,e.u.i.ja.La);if(!Q&&(!e.model.C.F.ko||this.sR(e.model.C.F.du,N)||y||0==this.I.rows.length)){if(p){if(null!=m){var ka=this.I.Ha(N,F,J);ka=m.ya(ka)}Q=this.BZ(b,N,e.u.i.ja.La,!1,ka,O.slice(0))}else Q=this.J(N,e.u.i.ja.La);
O=[];fa=this.I.Ha(N,K,I);this.yz(fa)&&(U=this.Np(fa,N,K,I,Y,D,E,G),aa=this.jM(b,U,I.label,N,K,""),W.push({label:Q,value:fa,qs:U,id:ca,Df:aa,measure:{A:I.A,aa:I.aa,index:I.index},lh:N,Bg:K}));if(p&&0<b.ul.length&&(ca=b.ul.length,-1<n&&ca>=n)){M=B+1;H=!0;break}}}p=!1;ca=this.fr(K);g.push({label:A,value:C,id:ca,Bg:K,Rh:W})}}}}}b.ff=r;return H}Cga(b,a,c,d,g,k=!1,m=null,n=-1){var p=!0,t=!0,r=[],w=[],y=this.I.cc.Ya&&1==this.I.rows.length,A=this.I.Rb.Ya&&1==this.I.Ka.length;var C="";var B=NaN,I,L,Y,D=d[0],
E=this.pda(d),G=E[0],F=e.u.i.da.Rf(D.aa),J=e.u.i.da.de(D.aa);G.rd=D.aa==e.u.i.da.Ji?"":G.rd;var H=D.type==e.u.i.Pa.dc&&e.u.i.da.Zo(D.aa);if(null!=m)var M=this.I.Nj(this.model.ha.ua.rows.indexOf(m.A)),K=this.model.ha.O.cf(m.A);var Q=!1,N=a,W=[];for(L=0;L<c;L++){var O=this.I.Fn(L)||[];if(I=0==O.length?!1:this.I.bi(O))if(W.push(O),!e.model.C.F.ko)continue;var V=this.Rg(O,e.u.i.ja.La);if(!V&&(!e.model.C.F.ko||this.sR(e.model.C.F.du,O)||y||0==this.I.rows.length)){if(null!=m){V=this.I.Ha(O,M,K);var ca=
m.ya(V)}var fa=this.BZ(b,O,e.u.i.ja.La,!1,ca,W.slice(0));W=[];var U=[];if(!k&&(B=this.I.Ha(O,U,D),!this.yz(B)&&!e.u.i.da.zM(D.aa)))continue;var aa=[];var ka=this.Np(B,O,U,D,b.yu,b.Rf,b.de,b.Uw);for(Y=0;Y<N;Y++)if(U=Y,U=this.I.Nj(U),!e.model.C.F.ko||this.tR(e.model.C.F.cC,U)||A||0==this.I.Ka.length){var ha=this.fr(U);I=0==U.length?!1:this.I.zk(U);V=this.Rg(U,e.u.i.ja.Xa);k||(p&&!A&&this.wZ(r,U,e.u.i.ja.Xa),t&&(I||V||w.push(ha)));if(!V&&(0<this.I.Ka.length&&0<U.length&&(C=this.I.Rb.Ya&&(0==U.length||
U.length>this.I.ie)?U.length:U.length-1,C=this.I.Ka.ea(C),V=U[U.length-1],C=A?C.label:C.ya(V).caption),!I))if(k){for(var R,P=0;P<d.length;P++){D=d[P];F=e.u.i.da.Rf(D.aa);J=e.u.i.da.de(D.aa);E[P].rd=D.aa==e.u.i.da.Ji?"":E[P].rd;H=D.type==e.u.i.Pa.dc&&e.u.i.da.Zo(D.aa);R=ha+"-"+P;var ba=P.toString();p&&this.eR(r,D,P.toString());t&&(I||w.push(R));V=this.I.Ha(O,U,D);if(this.yz(V)){var Z=this.Np(V,O,U,D,E[P],F,J,H);var X=b.type==h.Me.$A?ka:"";X=this.jM(b,Z,D.label,O,U,X);aa.push({label:C,value:V,qs:Z,
id:R,Yq:ba,Df:X,measure:{A:D.A,aa:D.aa,index:D.index},lh:O,Bg:U})}if(-1<n&&w.length>=n){N=Y+1;break}}p=!1}else if(V=this.I.Ha(O,U,D),this.yz(V)&&(Z=this.Np(V,O,U,D,G,F,J,H),X=b.type==h.Me.$A?ka:"",X=this.jM(b,Z,D.label,O,U,X),aa.push({label:C,value:V,qs:Z,id:ha,Df:X,measure:{A:D.A,aa:D.aa,index:D.index},lh:O,Bg:U})),-1<n&&w.length>=n){N=Y+1;break}}t=p=!1;ha=this.fr(O);g.push({label:fa,value:B,id:ha,Rh:aa});O=b.type==h.Me.$A?b.ul.length:b.ul.length*a;if(-1<n&&O>=n){Q=!0;break}}}b.ff=r;b.Pw=w;return Q}yHa(b,
a,c,d,g=null,k=-1){b.EH=e.u.i.ja.La;var m=!0,n=[],p=this.I.Rb.Ya&&1==this.I.Ka.length,t;var r=t="";var w,y=e.model.C.F.VK;if(y>=a||-1==y)y=e.model.C.F.VK=0;null!=g&&this.I.Nj(this.model.ha.ua.rows.indexOf(g.A));var A=!1;for(g=0;g<a;g++){var C=g;C=this.I.Nj(C);var B=[];var I=this.I.Ha(B,C,d);if(0<this.I.Ka.length&&0<C.length){var L=this.I.Rb.Ya&&(0==C.length||C.length>this.I.ie)?C.length:C.length-1;r=this.I.Ka.ea(L);L=C[C.length-1];r=p?r.label:r.ya(L).caption;r=this.Lw(r)}var Y=p?"":this.d1(C,e.u.i.ja.Xa);
Y=this.Lw(Y);b.ul.push({label:Y,id:this.fr(C)});if(this.yz(I)&&(b.ul.length-1==y||1==a)){var D=[];var E=this.Np(I,B,C,d,b.yu,b.Rf,b.de,b.Uw);Y=this.I.cc.Ya&&1==this.I.rows.length;for(w=0;w<c;w++)if(B=this.I.Fn(w)||[],!e.model.C.F.ko||this.tR(e.model.C.F.du,B)||Y||0==this.I.rows.length){var G=this.I.Ha(B,C,d);if(this.yz(G)&&(L=this.Rg(B,e.u.i.ja.La),m&&!Y&&this.wZ(n,B,e.u.i.ja.La),!L&&(L=0==B.length?!1:this.I.bi(B),!L))){0<this.I.rows.length&&(L=this.I.cc.Ya&&(0==B.length||B.length>this.I.ie)?B.length:
B.length-1,t=this.I.rows.ea(L),L=B[B.length-1],t=Y?t.label:t.ya(L).caption);L=this.fr(B);var F=this.Np(G,B,C,d,b.yu,b.Rf,b.de,b.Uw);var J=this.jM(b,F,d.label,B,C,E);var H=t;t=this.Lw(t);H=Y||H==t?"":H;D.push({label:Y?"":t,value:G,qs:F,id:L,Df:J,measure:{A:d.A,aa:d.aa,index:d.index},lh:B,Bg:C,f2:H});B=D.length;if(-1<k&&B>=k){A=!0;break}}}m=!1;L=this.fr(C);b.data.push({label:r,value:I,id:L,Bg:C,Rh:D})}}b.ff=n;return A}xHa(b,a,c,d,g,k=-1){k=this.Cga(b,a,c,[d],b.data,!1,null,k);if(!e.v(g)){var m=-1;k&&
(m=b.ul.length);b.ul=[];b.Gi=[];var n=b.ff;b.ff=[];this.Dga(b,a,c,[g],b.vw,!1,null,m);0==n.length&&(this.eR(n,d,"0"),this.eR(n,g,"1"));b.ff=n;1==b.vw.length&&(b.vw[0].Yq="2")}return k}QS(b,a=!1){var c=b.__data__;null!=c&&c.data&&(c=c.data);if(e.v(c)&&e.model.C.F.pG){var d=x.Ea.Vb(b).closest("li.fm-ui-element");!e.v(d)&&d.attr("data-measure-index")&&(c={ED:parseInt(d.attr("data-measure-index"))})}d=c;a&&(d=f.Faa(c),e.v(d)||(d.element=b));return d}yz(b){return!isNaN(b)&&e.u.i.wO.vO!=b}static Faa(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.Va.V().ha.ua.gd(b.measure.A).bj());e.v(b.ED)||(a.measureIndex=b.ED);e.v(b.lh)||(a.rows=e.model.Va.V().ha.ua.q_(b.lh));e.v(b.Bg)||(a.columns=e.model.Va.V().ha.ua.p_(b.Bg));return a}}f.tC=null;h.ov=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.$q.tpa{constructor(a){super(a);this.Gb=e.model.Va.V()}ez(a){var c=[];a.Wc.forEach(d=>{c.push({id:`aggregation_${d}`,label:e.u.i.da.fG(d),isSelected:d==a.aa,handler:()=>this.Nfa(a,d)})});return c}Nfa(a,c){const d=this.Gb.ha.ua.clone();a=d.hd()[a.index];e.v(a)||(a.aa=c,this.Gb.ne(d))}XR(a,c,d){e.Fg(f.oL)&&(a=f.oL(a.slice(),c,d)||a);return a}dS(a,c,d=null){this.Gb.$a(e.K.Ni.p6,this,{rDa:a,coords:c,IK:d})}}f.oL=null;h.rO=f;class b extends f{constructor(a){super(a.G);
this.K=a;this.K.N(h.tc.kJ,()=>this.XEa());this.K.N(h.tc.mt,c=>this.OEa(c))}XEa(){const a=this.K.la.tr;if(0!=a.length){var c=a[0];const d=this.K.G.lg(),g=d.left+this.K.la.coords.Ul(c.qc,this.K.la.ac)+this.K.la.coords.vh(c.qc);c=d.top+this.K.la.coords.Eo(c.lb,this.K.la.ac)+this.K.la.coords.Vd(c.lb);1==a.length?this.show(a[0],{left:g,top:c}):this.eia(a,{left:g,top:c})}}OEa(a){if(a.i4){var c=this.K.la.Bu(a.i4.G.element);a=a.i4.G.getBoundingClientRect();this.show(c,{left:a.right,top:a.bottom})}else{c=
this.K.la.kg(a.lb,a.qc,!0);c.lb=a.lb;c.qc=a.qc;var d=this.K.G.lg();a=d.left+this.K.la.coords.Ul(c.qc,this.K.la.ac)+this.K.la.coords.vh(c.qc);d=d.top+this.K.la.coords.Eo(c.lb,this.K.la.ac)+this.K.la.coords.Vd(c.lb);this.show(c,{left:a,top:d})}}o3(a,c){a=this.K.la.Bu(a.target)||this.K.la.Vca(c.clientX,c.clientY);null==a||e.ia(a.label)&&isNaN(a.value)||(this.show(a,{left:c.clientX,top:c.clientY}),this.K.la.os())}B3(a){var c=this.K.G.lg(),d=a.clientX-c.left,g=a.clientY-c.top,k=a.clientX,m=a.clientY;if(!(0>
d||0>g||d>this.K.uf()||g>this.K.xd())){d=this.K.la.Bu(a.target)||this.K.la.Vca(a.clientX,a.clientY);g=this.K.la.tr;0==a.which&&0!=g.length&&(d=g[0],k=c.left+this.K.la.coords.Ul(d.qc,this.K.la.ac)+this.K.la.coords.vh(d.qc),m=c.top+this.K.la.coords.Eo(d.lb,this.K.la.ac)+this.K.la.coords.Vd(d.lb));c=!1;if(1<g.length)for(var n=0;n<g.length;n++)if(g[n].lb==d.lb&&g[n].qc==d.qc){c=!0;break}(1<g.length&&c?this.eia(g,{left:k,top:m}):this.show(d,{left:k,top:m}))&&a.preventDefault()}}eia(a,c){if(e.model.C.F.readOnly)return!1;
var d=[],g=this.K;if(this.UBa(a)){var k=a[0].hierarchy,m=a.map(n=>n.bc.ordinal);d.push({id:"group",label:e.model.B.j.lka,handler:()=>{e.sKa({dga:n=>{k.X$(n,m);this.Gb.ha.select();this.K.la.os()},DU:()=>{this.K.la.os()}})}})}d=this.XR(d,a.map(n=>n.Qa()),g.Vi?"flat":"pivot");return 0<d.length?(this.dS(d,c),!0):!1}UBa(a){if(!e.model.C.F.kT)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.bc))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.ia(a.label)&&isNaN(a.value);!k&&a.ci&&!isNaN(a.value)&&e.model.C.F.bd&&!e.model.C.F.rc&&e.u.Ra.V().ga&&e.u.Ra.V().ga.KT&&d.push({id:"drillthrough",label:e.model.B.j.o6,handler:()=>{g.bd(a)}});const m=this.Gb.ha.ua;if(!e.v(m)){!k&&a.el&&e.model.C.F.yx&&d.push({id:"open_filter",label:e.model.B.j.q6,handler:()=>{this.K.Fa(new l.NO(a.hierarchy))}});if(!k&&a.el&&!e.model.C.F.rc){var n=m.Txa(a.hierarchy.A);e.v(n)||(n.A!=e.u.i.ja.La&&d.push({id:"move_to_rows",label:e.model.B.j.qka,
handler:()=>{n.Oa.removeItem(a.hierarchy.A);m.cc.Oa.Ta(a.hierarchy.A,a.hierarchy);this.Gb.ne(m)}}),n.A!=e.u.i.ja.Xa&&d.push({id:"move_to_columns",label:e.model.B.j.oka,handler:()=>{n.Oa.removeItem(a.hierarchy.A);m.Rb.Oa.Ta(a.hierarchy.A,a.hierarchy);this.Gb.ne(m)}}),n.A!=e.u.i.ja.rt&&d.push({id:"move_to_report_filters",label:e.model.B.j.pka,handler:()=>{n.Oa.removeItem(a.hierarchy.A);m.VH.Oa.Ta(a.hierarchy.A,a.hierarchy);this.Gb.ne(m)}}),d.push({id:"remove_field",label:e.P.bind(e.model.B.j.r6,a.hierarchy.caption),
handler:()=>{n.Oa.removeItem(a.hierarchy.A);this.Gb.ne(m)}}))}k||!a.zi&&!a.Nh||(a.Of&&d.push({id:"collapse",label:e.model.B.j.eka,handler:()=>{g.qu(a)}}),a.collapsed&&d.push({id:"expand",label:e.model.B.j.jka,handler:()=>{g.qu(a)}}),a.hierarchy&&2<a.hierarchy.ta.length&&!m.kd&&(a.Cg||a.eh)&&d.push({id:a.Cg?"drill_up":"drill_down",label:a.Cg?e.model.B.j.hka:e.model.B.j.gka,handler:()=>{g.Wy(a)}}));!k&&(a.zi||a.Nh)&&a.bc&&a.bc.Sg&&d.push({id:"ungroup",label:e.model.B.j.Aka,handler:()=>{a.hierarchy.SN(a.bc);
this.Gb.ha.select()}});!k&&a.zi&&!a.el&&a.Kn&&(a.So||d.push({id:"sort_row_desc",label:e.model.B.j.zka,handler:()=>{g.U4(a,e.u.i.za.Kc)}}),a.Ro||d.push({id:"sort_row_asc",label:e.model.B.j.yka,handler:()=>{g.U4(a,e.u.i.za.ic)}}),(a.Ro||a.So)&&d.push({id:"clear_sorting",label:e.model.B.j.n6,handler:()=>{g.zua()}}));!k&&a.Nh&&!a.el&&a.Kn&&(a.So||d.push({id:"sort_column_desc",label:e.model.B.j.xka,handler:()=>{g.HN(a,e.u.i.za.Kc)}}),a.Ro||d.push({id:"sort_column_asc",label:e.model.B.j.wka,handler:()=>
{g.HN(a,e.u.i.za.ic)}}),(a.Ro||a.So)&&d.push({id:"clear_sorting",label:e.model.B.j.n6,handler:()=>{g.uua()}}));if(!k&&(a.zi||a.Nh)){if(e.model.C.F.jI&&a.hierarchy&&a.bc&&0<a.bc.level.Ue.length){var p=this.cAa(a.bc.level.Ue,a.bc.level.A);0<p.length&&d.push({id:"member_properties",label:e.model.B.j.ska,submenu:p})}a.bc&&e.model.C.F.yx&&1!==a.bc.hierarchy.gb.length&&d.push({id:"filter_by",label:e.P.bind(e.model.B.j.kka,a.bc.caption),handler:()=>{a.hierarchy.filter;this.Gb.em(a.hierarchy.A,{members:[a.bc.qj]})}})}k||
!this.vBa(a)&&!this.uBa(a)||(p=this.ez(a.measure),0<p.length&&d.push({id:"aggregation",label:e.model.B.j.m6,submenu:p}));!k&&a.measure&&l.Mb.Fb.Uda&&(d.push({id:"number_formatting",label:e.model.B.j.rka,handler:()=>{this.KGa(a.measure)}}),d.push({id:"conditional_formatting",label:e.model.B.j.fka,handler:()=>{this.IGa(a.measure)}}));!k&&a.measure&&a.measure.Na&&d.push({id:"edit_calculated_value",label:e.P.bind(e.model.B.j.ika,a.measure.caption),handler:()=>{l.Mb.Fb.fN(a.measure.A)}});var t=m.hd();
!k&&a.measure&&1<t.length&&!e.model.C.F.rc&&d.push({id:"remove_measure",label:e.model.B.j.tka,handler:()=>{m.Wga(a.measure);this.Gb.rN(m.n5())}});!k&&a.el&&e.model.C.F.rc&&(e.v(a.measure)&&e.v(a.hierarchy)||d.push({id:"remove_field",label:e.P.bind(e.model.B.j.r6,a.hierarchy?a.hierarchy.caption:a.measure.caption),handler:()=>{a.hierarchy&&m.Ka.Hb(a.hierarchy.A)?m.Ka.removeItem(a.hierarchy.A):a.hierarchy&&m.rows.Hb(a.hierarchy.A)?m.rows.removeItem(a.hierarchy.A):a.hierarchy&&m.ob.Hb(a.hierarchy.A)&&
m.ob.removeItem(a.hierarchy.A);a.measure&&t.find(r=>r.A===a.measure.A)&&m.Wga(a.measure);this.Gb.ne(m)}}));if(!k&&a.el&&!e.v(a.hierarchy)&&e.model.C.F.pk&&(k=m.rows.Hb(a.hierarchy.A),p=m.Ka.Hb(a.hierarchy.A),(k?m.yb.indexOf(a.hierarchy.A)!=m.yb.length-1:m.Db.indexOf(a.hierarchy.A)!=m.Db.length-1)&&(k||p))){let r=!0===a.hierarchy.Cf;void 0===a.hierarchy.Cf&&(!k||"on"!=e.model.C.F.Cf&&"rows"!=e.model.C.F.Cf||(r=!0),!p||"on"!=e.model.C.F.Cf&&"columns"!=e.model.C.F.Cf||(r=!0));d.push({id:r?"hide_hierarchy_totals":
"show_hierarchy_totals",label:r?e.model.B.j.nka:e.model.B.j.vka,handler:()=>{a.hierarchy.Cf=!r;this.Gb.ne(m)}})}d=this.XR(d,a?a.Qa():null,g.Vi?"flat":"pivot");return 0<d.length?(this.dS(d,c,r=>this.Wsa(r,a)),!0):!1}}Wsa(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.$z(c.lb,c.qc);return!1}KGa(a=
null){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.v8,{measureName:a.A,aggregation:a.aa}))}IGa(a=null){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.l6,{measureName:a.A}))}vBa(a){return!e.model.C.F.rc&&e.model.C.F.rl&&a.measure&&!a.measure.Na&&!a.measure.Tg}uBa(a){return e.model.C.F.rc&&e.model.C.F.rl&&a.measure&&!a.measure.Na&&a.sz&&a.ys&&0<=a.measure.index}cAa(a,c){for(var d=[],g=0;g<a.length;g++){var k=a.ea(g);if(k){var m=this.Gb.ha.ua.Rj;m&&m[c]&&-1<m[c].indexOf(k.A)?d.push({id:"hide_member_property",
label:e.P.bind(e.model.B.j.mka,k.caption),data:{levelName:c,propertyName:k.A},handler:n=>{this.K.fia(n,!1)}}):d.push({id:"show_member_property",label:e.P.bind(e.model.B.j.uka,k.caption),data:{levelName:c,propertyName:k.A},handler:n=>{this.K.fia(n,!0)}})}}return d}}h.G7=b})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.be.dk{constructor(){super();this.ug=this.nf=this.op=this.Zx=this.Mi=0;this.Gb=e.model.Va.V();this.Xc=[];this.b$=()=>this.YEa();this.dU=b=>this.cq(b);this.$("fm-grid-view");this.Ie();this.Ik("grid");new h.G7(this);this.Gb.N("reset_grid",this.b$);this.Tu=u.VO.V();this.Tu.N(u.KeyboardEvent.UO,this.dU)}dispose(){this.I=null;this.Gb.sb("reset_grid",this.b$);this.Gb=null;this.la&&this.la.dispose();this.Ze=null}cq(b){if(this.Km&&null!=this.Tu&&null!=
this.Ze){var a=b.ctrlKey||b.metaKey;switch(b.keyCode){case 37:this.scroll("left",a);b.gq.preventDefault();break;case 38:this.scroll("up",a);b.gq.preventDefault();break;case 39:this.scroll("right",a);b.gq.preventDefault();break;case 40:this.scroll("down",a);b.gq.preventDefault();break;case 13:case 32:null!=this.pH()?this.la.focus():this.$z(this.la.coords.gh,this.la.coords.jg),b.stopPropagation()}}}scroll(b,a=!1){switch(b){case "up":a?this.Ze.KIa():this.Ze.sr(this.Ze.coords.gh-1);break;case "down":a?
this.Ze.HIa():this.Ze.sr(this.Ze.coords.gh+1);break;case "left":a?this.Ze.IIa():this.Ze.Us(this.Ze.coords.jg-1);break;case "right":a?this.Ze.JIa():this.Ze.Us(this.Ze.coords.jg+1)}}Vva(){var b=new h.sheet.qO;b.SC=(a,c)=>this.getData(a,c);b.N(h.tc.Vn,a=>this.HD(a));b.N(h.tc.wJ,a=>this.W2(a));b.N(h.tc.sv,a=>this.bq(a));b.N(h.tc.mF,a=>this.z3(a));b.N(h.tc.nF,a=>this.A3(a));b.N(h.tc.kJ,a=>this.Fa(a));b.N(h.tc.mt,a=>this.Fa(a));this.G.append(b);return b}Sva(){var b=new h.sheet.dC.pO;b.SC=(a,c)=>this.getData(a,
c);b.N(h.tc.Vn,a=>this.HD(a));b.N(h.tc.wJ,a=>this.W2(a));b.N(h.tc.sv,a=>this.bq(a));b.N(h.tc.mF,a=>this.z3(a));b.N(h.tc.nF,a=>this.A3(a));b.N(h.tc.kJ,a=>this.Fa(a));b.N(h.tc.mt,a=>this.Fa(a));this.G.append(b);return b}Zva(){var b=new h.sheet.flat.iJ;b.SC=(a,c)=>this.getData(a,c);b.N(h.tc.Vn,a=>this.HD(a));b.N(h.tc.wJ,a=>this.W2(a));b.N(h.tc.sv,a=>this.bq(a));b.N(h.tc.mF,a=>this.z3(a));b.N(h.tc.nF,a=>this.A3(a));b.N(h.tc.kJ,a=>this.Fa(a));b.N(h.tc.mt,a=>this.Fa(a));this.G.append(b);return b}xza(){if(e.model.C.F.pk){if(this.la&&
this.la.type==h.sheet.dC.pO.TYPE)return this.la;null!=this.la&&this.la.Gg(!0);return this.Sva()}if(e.model.C.F.rc){if(this.la&&this.la.type==h.sheet.flat.iJ.TYPE)return this.la;null!=this.la&&this.la.Gg(!0);return this.Zva()}if(this.la&&this.la.type==h.sheet.qO.TYPE)return this.la;null!=this.la&&this.la.Gg(!0);return this.Vva()}kb(){if(!(1>e.model.Ga.uc.Oj())&&(this.Ze=this.xza(),null!=this.la)){this.Ze.slice=e.u.Ra.V().ua;this.la.kia=this.Gb.Ia.tI?100:1E3;if(this.I&&this.I.ri){this.la.clearData();
this.Zx=this.op=this.Mi=0;var b=this.I.xn,a=e.model.C.F.pk?0<this.I.yb.length?1:0:this.I.ml;if(a>=b+1){var c=0;var d=c+a;var g=c+(a-b)-1}else g=0,c=0<this.I.Yk?g+(b-a)+1:g,0==this.I.Db.length&&0==this.I.yb.length&&(c+=1),d=c+a;var k=g;this.Mi=Math.min(c,k);this.Zx=k;this.op=0;this.nf=d;this.ug=this.Vi?0:e.model.C.F.pk?this.I.cc.Ya&&this.I.Yl?this.I.ol.length+1:this.I.ol.length:0==this.I.rows.length?0:1;e.model.C.F.Zs||(this.Zx=1==a&&0==this.I.Yk?0:-1,this.nf=b);this.Vi&&(this.la.yL.lha=(m,n,p)=>this.saveData(m,
n,p),this.la.yL.Jha(e.model.C.F.EC));this.Vi&&"on"==e.model.C.F.Bf&&"top"==e.model.C.F.uH&&this.nf++;d=this.I.Bn;this.Vi&&"on"==e.model.C.F.Bf&&"bottom"==e.model.C.F.uH&&(d+=1);k=this.I.Cn;0==k&&(k=this.I.Ka.length-(this.I.Rb.Ya?1:0));this.la.Gha(d,k);this.la.mya(this.ug);this.la.Lca(this.nf);if(this.la instanceof h.sheet.qO&&(this.la.coords.tG=this.nf-this.I.xn-1,this.la.DR.rowIndex=this.la.coords.tG,this.la.DR.Xz(this.I.Db),this.la.fha.Xz(this.I.yb),this.la.hga.Xz(this.I.ob),e.model.C.F.Nm)){d=
this.I.yb.length;for(k=1;k<=d;k++)this.la.coords.vx(this.la.coords.ge-k,52);this.la.coords.vx(this.la.coords.tG,52)}this.la instanceof h.sheet.dC.pO&&(this.la.coords.tG=this.nf-this.I.xn-1,this.la.DR.rowIndex=this.la.coords.tG,this.la.DR.Xz(this.I.Db),this.la.fha.Xz(this.I.yb),this.la.hga.Xz(this.I.ob));(1<this.I.Ka.length||!this.I.Rb.Ya)&&e.model.C.F.Zs&&this.V$(g,this.ug,e.u.i.ja.Xa);(1<this.I.rows.length||!this.I.cc.Ya)&&e.model.C.F.Zs&&(e.model.C.F.pk?this.Tqa(c):this.V$(c,0,e.u.i.ja.La));this.lIa();
this.mIa();this.kIa();this.pIa();this.nIa();this.oIa();this.G.zg("rowcount",`${this.la.coords.il}`);this.G.zg("colcount",`${this.la.coords.vj}`)}else this.la.fs();this.Xc=e.model.va.Zm.Xc.Nc();this.la.resize(l.Mb.rM,l.Mb.gD);this.la.kb()}}fu(){e.v(this.la)||(this.la.rG(0),this.la.fC(0))}getData(b,a,c=!1){if(null==this.I||!this.I.ri||b<this.Zx||a<this.op)return null;var d=b-this.nf,g=a-this.ug;if((d>this.I.Bn-1||g>this.I.Cn-1)&&!(this.Vi&&"on"==e.model.C.F.Bf&&"bottom"==e.model.C.F.uH&&d==this.I.Bn&&
g<=this.I.Cn-1))return null;var k=this.I.Fn(d,!0),m=this.I.Nj(g,!0);if(null==k&&null==m)return null;var n=this.I.vi(d,g),p;if(this.Vi){var t=this.I.Nj(g,!0,!0);t instanceof Array&&(p=t[0][1])}if(this.Vi&&"on"==e.model.C.F.Bf&&"top"==e.model.C.F.uH&&(e.model.C.F.Zs&&1==b||!e.model.C.F.Zs&&0==b)||this.Vi&&"on"==e.model.C.F.Bf&&"bottom"==e.model.C.F.uH&&(e.model.C.F.Zs&&b==this.I.Bn+1||!e.model.C.F.Zs&&b==this.I.Bn))return this.Kza(k,m,n);if(null==k)return c=1==(e.model.C.F.pk?1:this.I.yb.length)&&0==
this.I.Yk?b-this.Zx:b-this.Zx-1,0==this.I.yb.length&&0==this.I.Db.length&&(c=b-this.Zx),g=this.I.RL(g),this.nza(m,n,g,c,a,p);t=this.I.aT(d);d=this.I.fT(d);g=this.I.RL(g);return null==m?e.model.C.F.pk?this.wra(k,n,t,b,a,d):this.wAa(k,n,t,b):this.dH(k,m,n,b,a,c,t,g,d,p)}dH(b,a,c,d,g,k=!1,m=NaN,n=NaN,p=-1,t){if(e.v(c)){var r=new h.X.ke;r.ci=!0;r.Bg=a;r.lh=b;r.Vl=this.I.ml>b.length;r.Vw=this.I.Yk>a.length;r.uD=0==a.length;r.ys=0==b.length;return r}var w=c.Yh(c.A,c.aa).clone();c.aa==e.u.i.da.Ji?w.rd="":
e.u.i.da.Rf(c.aa)?w.Rf=!0:e.u.i.da.de(c.aa)&&(w.de=!0,w.rd="%");r=new h.X.ke;r.ci=!0;r.Bg=a;r.measure=c;r.hierarchy=this.Gb.ha.O.Ck(c.A);r.lh=b;e.model.C.F.pk?0==b.length?r.level=0:(m=this.U0(b),-1<m&&(r.level=m)):e.model.C.F.rc||(r.level=m);t=this.I.Ha(b,a,c,t);r.value=t;this.Vi?(w=c.type!=e.u.i.Pa.xc?c.Yh(c.A,c.aa).clone():c.Yh(c.A,c.aa,!0).clone(),c.type==e.u.i.Pa.xc?(m=this.I.aH(a).ya(t),null!=m&&(r.bc=m,r.label=m.caption)):c.type==e.u.i.Pa.jb?"string"===typeof t?r.label=t:(r.label=u.Yb.format(t,
w),r.numeric=!0):c.type==e.u.i.Pa.Sa?null===t?r.label=e.model.B.j.IW:(m=this.Gb.ha.ga.mapping.Ha(c.A,"format",e.model.C.F.Ep),r.label=e.P.Bx(t,m,e.model.C.F.Mj)):c.type==e.u.i.Pa.dc?isNaN(t)||(m=this.Gb.ha.ga.mapping.Ha(c.A,"format",e.model.C.F.Wo),r.label=e.P.Cx(t,m)):c.type!=e.u.i.Pa.Jc||isNaN(t)||(m=this.Gb.ha.ga.mapping.Ha(c.A,"format",e.model.C.F.rk),r.label=e.P.ON(t,m,e.model.C.F.Mj))):(m=(this.Gb.Ia.ga.Da==e.u.i.qa.Tc||this.Gb.Ia.ga.Da==e.u.i.qa.le)&&e.model.C.F.vq&&c.aa==e.u.i.da.NONE,m||
c.type!=e.u.i.Pa.jb&&c.type!=e.u.i.Pa.xc)?m||c.type!=e.u.i.Pa.Sa?m||c.type!=e.u.i.Pa.dc?m||c.type!=e.u.i.Pa.Jc?(r.label=m?this.I.Np(b,a,c):e.u.TX.V().Ha(t),r.numeric=m&&e.u.i.Pa.jb===c.type):isNaN(r.value)||(e.u.i.da.AE(c.aa)?(m=this.Gb.ha.ga.mapping.Ha(c.A,"format",e.model.C.F.rk),r.label=e.P.ON(t,m,e.model.C.F.Mj)):r.label=u.Yb.format(t,w)):isNaN(t)||(e.u.i.da.Zo(c.aa)?(m=this.Gb.ha.ga.mapping.Ha(c.A,"format",e.model.C.F.Wo),r.label=e.P.Cx(t,m)):r.label=u.Yb.format(t,w)):isNaN(t)||(e.u.i.da.AE(c.aa)?
(m=this.Gb.ha.ga.mapping.Ha(c.A,"format",e.model.C.F.Ep),r.label=e.P.Bx(r.value,m,e.model.C.F.Mj)):r.label=u.Yb.format(t,w)):"string"===typeof t?r.label=t:(r.label=u.Yb.format(t,w),r.numeric=!0);r.mN=this.I.Du(b,a);m=!1;var y=this.I.ai(b,void 0,c);if(this.I.ml>b.length||y||this.I.Yk>a.length){m=!0;r.Vl=this.I.ml>b.length||y;r.Vw=this.I.Yk>a.length;if("on"!=e.model.C.F.Cf&&!e.model.C.F.pk){var A=this.I.Dz;if(0!=b.length&&(this.I.bi(b)||this.I.bi(b,c)||y)&&("off"==e.model.C.F.Cf||"columns"==e.model.C.F.Cf)||
0!=a.length&&(this.I.zk(a)||this.I.zk(a,c))&&("off"==e.model.C.F.Cf||"rows"==e.model.C.F.Cf))return null;if(0==A&&1<this.I.Ba.length)if(this.I.cc.Ya&&("off"==e.model.C.F.Cf||"columns"==e.model.C.F.Cf)){if(d<("on"==e.model.C.F.Bf||"columns"==e.model.C.F.Bf?this.nf+this.I.Bn-this.I.Ba.length:this.nf+this.I.Bn)&&this.I.bi(b,c))return null}else if(this.I.Rb.Ya&&("off"==e.model.C.F.Cf||"rows"==e.model.C.F.Cf)&&g<("on"==e.model.C.F.Bf||"rows"==e.model.C.F.Bf?this.ug+this.I.Cn-this.I.Ba.length:this.ug+this.I.Cn)&&
this.I.zk(a,c))return null}r.ys=0==b.length;r.uD=0==a.length;r.ET=r.Vl&&2==p&&!r.ys;if(e.model.C.F.pk&&r.sz&&"on"!=e.model.C.F.Bf&&("off"==e.model.C.F.Bf||"rows"==e.model.C.F.Bf&&r.ys||"columns"==e.model.C.F.Bf&&r.uD))return null}this.I.W1(d)&&(m=!0,r.Vl=!0);this.I.H1(g)&&(m=!0,r.Vw=!0);r.measure&&(r.measure.vz||r.measure.uz)&&!isNaN(r.value)&&(r.label="",r.vz=r.measure.vz,r.uz=r.measure.uz);if(k)return r;""!=w.textAlign&&r.Qy({"text-align":w.textAlign});if(0<this.Xc.length&&r.measure)for(k=0;k<this.Xc.length;k++)(p=
this.Xc[k],p.Ss!=d&&-1!=p.Ss||p.hu!=g&&-1!=p.hu||!(p.measure==c.A&&""===p.aa||""==p.measure&&r.numeric||p.measure=="[Measures].["+c.A+"]"||p.measure==c.A&&p.aa===r.measure.aa)||p.Ak!==m&&void 0!==p.Ak||""!=p.hierarchy&&!this.dua(b,a,p.hierarchy,p.bc))||((this.Gb.Ia.ga.Da==e.u.i.qa.API?(e.v(p.TG)&&(p.TG=u.nt.hH(p.Xd,this.Gb.ha.O.Ba)),y=p.TG.slice(0)):y=p.Xd.slice(0),p.Y1)?this.Gb.Ia.tI&&(w=this.I.dD(b,a,c))&&(-1<p.ve.toLowerCase().indexOf(e.u.i.nc.OP)?t=w.Hp:-1<p.ve.toLowerCase().indexOf(e.u.i.nc.PP)&&
(t=100*w.Os),w=this.I.gw(b,a,y,t),null!=w&&r.sba(w)):(w=this.I.gw(b,a,y,t),e.v(p.format)||!0!==w&&"truestyle"!==w||(r.Qy(p.format.Dia()),r.Xc.push(p.id)),r.BJa=!0));"after"===e.model.C.F.$K&&this.I.yk(a,void 0,c)&&-1!==n&&(r.label="");return r}Kza(b,a,c){if(e.v(c))return null;var d=new h.X.ke;d.ci=!0;d.Bg=a;d.measure=c;d.hierarchy=this.Gb.ha.O.Ck(c.A);d.lh=b;if(c.type==e.u.i.Pa.jb||c.type==e.u.i.Pa.dc||c.type==e.u.i.Pa.Jc){var g=c.Yh(c.A,c.aa).clone();if(c.aa==e.u.i.da.Ji)g.rd="";else if(e.u.i.da.Rf(c.aa))g.Rf=
!0;else if(e.u.i.da.de(c.aa)||c.Na&&-1<c.ve.indexOf("percent"))g.de=!0,g.rd="%";d.value=this.I.Ha(null,null,c);if(c.type==e.u.i.Pa.jb)d.label=u.Yb.format(d.value,g),d.numeric=!0;else if(c.type==e.u.i.Pa.dc)isNaN(d.value)||(d.label=e.u.i.da.Zo(c.aa)?e.P.Cx(d.value,e.model.C.F.Wo):u.Yb.format(d.value,g));else if(c.type==e.u.i.Pa.Jc&&!isNaN(d.value)){var k=this.Gb.ha.ga.mapping.Ha(c.A,"format",e.model.C.F.rk);d.label=e.u.i.da.AE(c.aa)?e.P.ON(d.value,k,e.model.C.F.Mj):u.Yb.format(d.value,g)}d.ys=!0;d.Vl=
!0;""!=g.textAlign&&d.Qy({"text-align":g.textAlign});if(0<this.Xc.length)for(g=0;g<this.Xc.length;g++){k=this.Xc[g];let p;this.Gb.Ia.ga.Da==e.u.i.qa.API?(e.v(k.TG)&&(k.TG=u.nt.hH(k.Xd,this.Gb.ha.O.Ba)),p=k.TG.slice(0)):p=k.Xd.slice(0);if(k.measure==c.A&&k.Y1&&this.Gb.Ia.tI){var m=this.I.dD(b,a,c);if(m){var n;-1<k.ve.toLowerCase().indexOf(e.u.i.nc.OP)?n=m.Hp:-1<k.ve.toLowerCase().indexOf(e.u.i.nc.PP)&&(n=100*m.Os);k=this.I.gw(b,a,p,n);null!=k&&d.sba(k)}}}}return d}dua(b,a,c,d){var g=this.I.Ka.indexOf(c);
if(-1<g){if(g<a.length)return b=this.I.Ka.getItem(c),a[g]&&b.ya(a[g]).NG(d)}else if(a=this.I.rows.indexOf(c),-1<a&&a<b.length)return c=this.I.rows.getItem(c),b[a]&&c.ya(b[a]).NG(d);return!1}nza(b,a,c,d,g,k){return this.Vi?this.vra(b,a,k):this.ura(b,a,c,d,g)}$P(b){if(b.Oh)return!0;if(1<b.children.length)return!1;b=b.hierarchy.ya(b.children[0]);return b.caption!==e.model.B.j.zl&&b.caption!==e.model.B.j.Qn?!1:this.$P(b)}ura(b,a,c,d,g){if(0==b.length){if(this.I.cc.Ya&&d==this.I.xn-1)return this.iH(a,
e.u.i.ja.Xa);b=this.I.Cn-this.I.Ba.length+1;if(this.I.Rb.Ya&&d==this.I.xn-1&&g>=b&&1==this.I.Ba.length)return this.iH(a,e.u.i.ja.Xa);b="on"==e.model.C.F.Bf||"rows"==e.model.C.F.Bf?this.ug+this.I.Cn-this.I.Ba.length:this.ug+this.I.Cn;if(this.I.Rb.Ya&&0==d&&g>=b&&1<this.I.xn){if(g==b){var k=this.VC();k.label=e.model.B.j.Jma;return k}return this.VL()}return this.I.Rb.Ya&&0==d&&1<this.I.xn?this.iH(a,e.u.i.ja.Xa):this.I.Rb.Ya&&d==this.I.xn-1?g>=b||1==this.I.Rb.Oa.length?this.iH(a,e.u.i.ja.Xa):this.VC():
this.I.Rb.Ya&&0<d&&g<=b?this.VC():0<=d?this.VL():null}var m=this.I.Rb.Ya&&(b.length>this.I.ie||0==this.I.ie)?b.length:b.length-1,n=this.I.Ka.ea(m),p,t=this.I.M1(g-this.ug);void 0!==t&&-1<d&&(m=p=d,this.I.Rb.Ya&&m>=this.I.ie&&1<this.I.Ba.length&&(p--,m++),p<t[0]&&(t=void 0));this.I.Rb.Ya&&m>this.I.ie&&(1==this.I.Ba.length?m--:c++);if(c>d&&void 0===t||0>d)return 0<=d?this.VL():null;k=new h.X.ke;k.Nh=!0;k.measure=this.I.Rb.Ya&&(1<this.I.Ba.length||e.model.C.F.iI)?a:void 0;var r=!1,w=this.I.Dz;if(void 0!==
t)if(e.v(b[p]))if(d==w-1)k.label=void 0!==a?a.caption:e.model.B.j.hX,k.CM=!0;else return this.VL();else{var y=b[p];n=this.I.Db.ea(p)}else y=b[b.length-1];y=n.ya(y);k.mN=this.I.Du([],b);if(this.I.Rb.Ya&&1<this.I.Ba.length&&d==w-1||this.I.Rb.Ya&&e.model.C.F.iI&&d==w-1&&1!=w||this.I.Rb.Ya&&e.model.C.F.iI&&d==w&&1==w&&2>this.I.Ba.length)k.label=a.label,k.CM=!0,y=null;else{if(this.I.Rb.Ya&&0<a.index&&d<w)return this.VL();c<d?m==d?(r=b.length-1!=this.I.Yk-1&&!y.Zb,k.label=y.caption):(k.label=this.I.xn-
1==d&&e.model.C.F.iI?void 0!==a?a.caption:e.model.B.j.hX:"",y=null):(r=b.length-1!=this.I.Yk-1&&!y.Zb,k.label=y.caption,this.I.Rb.Ya&&d<w&&1<this.I.Ba.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.I.yk(b,y,a);!y||this.$P(y)||y.Zb||y.Oh||!y.hierarchy.mg||y.level.Nu||(r||e.model.C.F.qE?d?k.Cg=!0:k.eh=!0:d?k.Of=!0:k.collapsed=!0);r&&!d&&(this.I.zk(b,a)||void 0!==t&&-1<t.indexOf(p)?k.Of=!0:k.collapsed=!0);if("on"==e.model.C.F.Bj||"columns"==e.model.C.F.Bj){k.Kn=
!0;if(e.ia(k.label)||e.v(a))k.Kn=!1;"off"!=e.model.C.F.Cf&&"rows"!=e.model.C.F.Cf||!k.Of||(k.Kn=!1);k.Kn&&this.I.Hl&&this.I.Hl.toString()==b.toString()&&this.I.Zq==a&&(this.I.Ih==e.u.i.za.Kc?k.So=!0:this.I.Ih==e.u.i.za.ic&&(k.Ro=!0))}k.Vw=this.I.Yk>b.length||k.eh||k.Cg||!e.model.C.F.qE&&(k.Of||k.collapsed);k.Vw&&this.I.x4(g);"after"!==e.model.C.F.$K||-1!==c||k.CM||(k.Kn=!1,k.label="",k.Of=!1,k.collapsed=!1,k.Cg=!1,k.eh=!1);k.lf=void 0!==t?b.slice(0,p+1):b;k.hierarchy=n;k.bc=y;return k}vra(b,a,c){const d=
this.I.aH(b);if(void 0===d){if(e.v(a))return null;b=new h.X.ke;b.Nh=!0;b.label=a.caption;b.measure=a;this.raa(b,a);return b}let g;void 0!==c&&(g=d.ta.ea(c));const k=new h.X.ke;k.Nh=!0;k.el=!0;k.rT=d.sS;k.gb=d.filter.wh;k.label=void 0===g?d.label:d.label+"."+g.caption;k.lf=b;k.hierarchy=d;k.level=c;k.bc=null;k.measure=a;k.draggable=!0;this.raa(k,a);return k}raa(b,a){if("on"===e.model.C.F.Bj||"columns"===e.model.C.F.Bj){b.Kn=!0;const c=this.I.MS(a.A);!e.v(c)&&c.measure&&c.measure.A==a.A&&(c.sort==e.u.i.za.Kc?
b.So=!0:c.sort==e.u.i.za.ic&&(b.Ro=!0),1<this.I.sh.length&&(b.W4=this.I.sh.indexOf(c)))}}VC(){var b=new h.X.ke;b.Nh=!0;return b}VL(){var b=this.VC();b.nb=!0;return b}iH(b,a){var c=new h.X.ke;c.label=void 0===b?e.model.B.j.gX:b.Op;c.CM=void 0!==b;void 0!==b&&b.p1&&(c.label=b.label);if(a==e.u.i.ja.Xa){c.Nh=!0;c.Vw=c.uD=!0;if("on"===e.model.C.F.Bj||"columns"===e.model.C.F.Bj)c.Kn=!0,!this.I.Hl||""!==this.I.Hl.toString()||void 0!==b&&this.I.Zq!==b||(this.I.Ih===e.u.i.za.Kc?c.So=!0:this.I.Ih===e.u.i.za.ic&&
(c.Ro=!0));this.I.Rb.Ya?c.measure=b:c.label=e.model.B.j.gX}else{c.zi=!0;c.Vl=c.ys=!0;if("on"===e.model.C.F.Bj||"rows"===e.model.C.F.Bj)c.Kn=!0,!this.I.yj||""!==this.I.yj.toString()||void 0!==b&&this.I.Lo!==b||(this.I.Vj===e.u.i.za.Kc?c.So=!0:this.I.Vj===e.u.i.za.ic&&(c.Ro=!0));this.I.cc.Ya?c.measure=b:c.label=e.model.B.j.gX;c.level=0}c.lf=[];return c}wAa(b,a,c,d){if(0==b.length)return this.iH(a,e.u.i.ja.La);var g=this.I.cc.Ya&&b.length>this.I.ie?b.length:b.length-1,k=b[b.length-1],m=this.I.rows.ea(g),
n=new h.X.ke;n.zi=!0;var p=!1;k=m.ya(k);n.level=c;void 0!==a&&this.I.cc.Ya&&this.I.Yl&&g<=this.I.ie?(n.label=a.label,k=null):k&&(p=this.mC(k),n.sT=""!=p,n.label=k.caption+p,p=b.length!=this.I.ml&&!k.Zb&&!k.Sg);c=null==k?!1:this.I.ai(b,k,a);!k||k.Zb||!k.hierarchy.mg||k.Oh||this.$P(k)||(e.model.C.F.qE?c?n.Cg=!0:n.eh=!0:c?n.Of=!0:n.collapsed=!0);p&&!c&&(this.I.bi(b,a)?n.Of=!0:n.collapsed=!0);if("on"==e.model.C.F.Bj||"rows"==e.model.C.F.Bj)if(!(this.I.cc.Ya&&1<this.I.Ba.length&&this.I.ie>=b.length)||
a&&n.label==a.caption)n.Kn=!0,this.I.yj&&this.I.yj.toString()==b.toString()&&this.I.Lo==a&&(this.I.Vj==e.u.i.za.Kc?n.So=!0:this.I.Vj==e.u.i.za.ic&&(n.Ro=!0));n.Vl=this.I.ml>b.length||n.Cg||n.eh||!e.model.C.F.qE&&(n.Of||n.collapsed);n.lf=b;n.hierarchy=m;n.bc=k;n.measure=this.I.cc.Ya&&1<this.I.Ba.length?a:void 0;n.Vl&&this.I.JV(d);return n}wra(b,a,c,d,g,k){if(0===b.length){if(0===g)return this.iH(a,e.u.i.ja.La);var m=new h.X.ke;m.zi=!0;m.Vl=m.ys=!0;m.nb=!0;m.level=c;return m}var n=g;m=this.I.ol[g];
for(var p,t,r=0;r<this.I.yb.length;r++){var w=this.I.yb.ea(r);p=w.uu(m);if(null!=p){var y=w;n=r;break}}r=null==b[n]?0:b[n];m=new h.X.ke;m.zi=!0;m.Vl=this.I.ml>b.length;m.ET=m.Vl&&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);w=!1;if(g==this.I.ol.length)m.label=a.label,w=!0;else{var C=!1;A=void 0===a?0:a.index;var B=y.ya(r);t=this.I.ol.indexOf(B.level.A)-g;var I=null!=B&&(B.Sg||2!=k);if(0>t)if(B.Zb)w=!0;else return m;else if(0<t)for(r=0;r<
t;r++)B=B.parent;B&&(r=this.I.ol.indexOf(B.level.A),-1<r&&(m.level=r));m.bc=B;if(2==k)B&&c==g&&(m.label=this.I.cc.Ya&&1<this.I.Ba.length?B.caption+" "+a.label:B.caption+" "+e.model.B.j.hX,w=!0);else{if(0>t)return e.ia(m.label)&&(m.nb=!0),r=this.U0(b),-1<r&&(m.level=r),m;0<A&&(B=null);B&&0!=B.ordinal&&(r=this.mC(B),m.sT=""!=r,m.label=B.caption+r);C=1==k&&n<this.I.yb.length-1&&0>=A&&!B.Sg}m.mN=this.I.Du(b,[]);A=b.slice(0,n+1);if(I&&B){A[n]=B.ordinal;var L=this.I.ai(A,B,a);B.Zb||!B.hierarchy.mg||B.Oh||
2==k&&(!B.Sg||L)||this.$P(B)||(e.model.C.F.qE?L?m.Cg=!0:(m.eh=!0,m.Vl=!0):L?m.Of=!0:(m.collapsed=!0,m.Vl=!0))}C&&!L&&(this.I.bi(A,a)?m.Of=!0:m.collapsed=!0)}if(p)m.label="",m.Ro=m.So=m.collapsed=m.Of=m.Cg=m.eh=!1;else if(m.lf=A,m.hierarchy=y,m.measure=this.I.cc.Ya&&1<this.I.Ba.length?a:void 0,"on"==e.model.C.F.Bj||"rows"==e.model.C.F.Bj)m.Kn=!0,!this.I.yj||this.I.yj.toString()!=A.toString()||this.I.Lo!=a||m.Of||m.Cg||this.I.cc.Ya&&1<this.I.Ba.length&&(!(this.I.cc.Ya&&1<this.I.Ba.length)||null!=m.bc&&
!m.ET)||(this.I.Vj==e.u.i.za.Kc?m.So=!0:this.I.Vj==e.u.i.za.ic&&(m.Ro=!0));w&&(r=this.U0(b),-1<r&&(m.level=r));e.ia(m.label)&&(m.nb=!0,m.QBa=2==k&&B&&g-1>c?!1:!0);m.Vl&&this.I.JV(d);return m}U0(b){return(b=this.I.bT(b).ya(b[b.length-1]))?this.I.ol.indexOf(b.level.A):-1}mC(b){if(this.Gb.Ia.ga.Da!==e.u.i.qa.Tc&&this.Gb.Ia.ga.Da!==e.u.i.qa.le||!e.model.C.F.jI)return"";var a=this.Gb.ha.ua.Rj[b.level.A];if(void 0===a||0===a.length)return"";for(var c=[],d=0;d<a.length;d++){var g=b.level.Ue.getItem(a[d]),
k=b.tAa(a[d]);e.ia(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/>":""}HD(b){e.v(b.cell)||e.model.C.F.readOnly||!b.cell.Nh&&!b.cell.zi||(b.cell.QB==h.X.Aq.J6?this.Wy(b.cell):b.cell.QB==h.X.Aq.YO&&b.cell.bCa||(e.v(b.cell.bc)||b.cell.QB==h.X.Aq.JJ?b.cell.QB==h.X.Aq.JJ&&(b.cell.Nh&&this.HN(b.cell,null,!u.hj.Ho&&b.gq.ctrlKey||u.hj.Ho&&b.gq.metaKey),b.cell.zi&&this.U4(b.cell)):
e.model.C.F.qE||b.cell.bc.Oh?this.qu(b.cell):this.Wy(b.cell)))}bq(b){e.model.C.F.yx&&b.hierarchy.HM&&this.Fa(new l.NO(b.hierarchy))}Wy(b){if(b.eh||b.Cg||b.Of||b.collapsed){var a=b.lf,c=e.model.C.F.pk?void 0:b.measure,d=b.bc;if(null!=d&&!d.Zb&&!d.Oh){if(b.zi){b=e.u.i.ja.La;var g=this.I.ai(a,d,c)}else b=e.u.i.ja.Xa,g=this.I.yk(a,d,c);g?this.I.Ip(a,d,b,c):this.I.Mf(a,d,b,c)}}}qu(b){if(!e.v(this.la)&&(b.Of||b.collapsed)){var a=b.lf,c=b.Nh?e.u.i.ja.Xa:e.u.i.ja.La,d=e.model.C.F.pk&&c==e.u.i.ja.La?void 0:
b.measure;b.Of?(this.la.clearData(),this.I.collapse(a,c,d)):b.collapsed&&(this.la.clearData(),this.I.expand(a,c,d));b.Nh?this.la.rG(b.qc+1):this.la.fC(b.lb+1)}}W2(b){b.Oea?this.DJa(b.cell):(e.model.C.F.bd&&!e.model.C.F.rc&&this.Gb.ha.ga&&this.Gb.ha.ga.KT&&this.bd(b.cell),this.Swa(b.cell))}bd(b){b.ci&&void 0!==b.measure&&(b=new l.O6({A:b.measure.A,aa:b.measure.aa},b.Bg,b.lh,b.Qa()),this.Fa(b))}DJa(b){var a=b.Qa();this.zV(a,b.qc,b.lb);e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.e6,a))}Swa(b){var a=
b.Qa();this.zV(a,b.qc,b.lb);e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.jO,a))}zV(b,a,c){b.x=this.la.coords.Ul(a,this.la.ac);b.y=this.la.coords.Eo(c,this.la.ac);b.width=this.la.coords.vh(a);b.height=this.la.coords.Vd(c)}U4(b,a=""){var c=b.lf;b=b.measure;void 0===b&&(b=this.I.Ba[0]);this.I.yj&&this.I.yj.toString()==c.toString()&&this.I.Lo==b?this.I.Vj=this.I.Vj==e.u.i.za.Kc?e.u.i.za.ic:e.u.i.za.Kc:(this.I.Vj=e.u.i.za.Kc,this.I.yj=c,this.I.Lo=b);""!=a&&(this.I.Vj=a);this.I.sort();this.la.rG(0);this.kb()}HN(b,
a="",c=!1){e.model.C.F.rc?(a=this.I.MS(b.measure.A),e.v(a)?(b={measure:b.measure,sort:e.u.i.za.$S("",b.measure.type!=e.u.i.Pa.xc,!0)},!e.v(this.I.sh)&&c?this.I.sh.push(b):this.I.sh=[b]):(a.sort=e.u.i.za.$S(a.sort,b.measure.type!=e.u.i.Pa.xc,!0),a.sort==e.u.i.za.fd?this.I.sh.splice(this.I.sh.indexOf(a),1):c||(this.I.sh=[a]))):(this.I.Hl=b.lf,this.I.Zq=e.v(b.measure)?this.I.Ba[0]:b.measure,this.I.Ih=e.ia(a)?e.u.i.za.$S(this.I.Ih):a);this.I.sort();this.la.fC(0);this.kb()}uua(){this.I.Ih=e.u.i.za.fd;
this.I.Hl=null;this.I.Zq=void 0;this.I.Rb.gC();this.I.sort();this.la.fC(0);this.kb()}zua(){this.I.Vj=e.u.i.za.fd;this.I.yj=null;this.I.Lo=void 0;this.I.cc.gC();this.I.sort();this.la.rG(0);this.kb()}fia(b,a){var c=this.Gb.ha.ua.Rj;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.Gb.ha.ua.Rj=c):-1<d&&c[b.levelName].splice(d,1);this.la.clearData();this.la.fC(0);this.kb()}saveData(b,a,c){b=this.getData(b,a);b.label!=
c&&b.value!=c&&(this.I.save(b.lh,b.Bg,b.hierarchy,c),this.Vi&&this.kb())}V$(b,a,c){for(var d=c==e.u.i.ja.Xa?this.I.Db:this.I.yb,g,k=0,m=0;m<d.length;m++){var n=d.ea(m);n.Se||(g=new h.X.ke,g.label=n.label,g.el=!0,g.draggable=!0,g.rT=!0,g.gb=n.filter.wh,g.level=k,g.hierarchy=n,c==e.u.i.ja.Xa?(g.isFrozen=!this.Vi,this.la.I.AV(b,a+m,g)):(g.zi=!0,this.la.I.AV(b+k,a,g),k++))}}Tqa(b){for(var a=this.I.yb,c,d=0,g=this.I.cc.Ya&&1<this.I.Ba.length?this.ug-1:this.ug,k=0;k<a.length;k++){var m=a.ea(k);c=new h.X.ke;
c.label=m.label;c.el=!0;c.draggable=!0;c.rT=!0;c.gb=m.filter.wh;c.hierarchy=m;this.la.I.AV(b,0+d,c);d++;if(2<m.ta.length)for(var n=null==m.oc?2:m.oc.wb+1;n<m.ta.length;n++){var p=m.ta.ea(n);-1!=this.I.ol.indexOf(p.A)&&(c=new h.X.ke,c.label=p.caption,c.zi=!0,c.rT=!0,this.la.I.AV(b,0+d,c),d++);if(d>=g)break}if(d>=g)break}}get Vi(){return e.model.C.F.rc}get la(){return this.Ze}tk(b,a,c=null,d=null){b==e.model.Ac.ej.LA&&e.model.Ac.Z6.pg(this,a,d);b==e.model.Ac.ej.vv&&e.model.Ac.Y6.pg(this,a,this.la.coords.Kl,
this.la.coords.Dp,d);b==e.model.Ac.ej.Sh&&e.model.Ac.X6.pg(this,a,this.la.coords.Kl,this.la.coords.Dp,c);b==e.model.Ac.ej.JSON&&e.model.Ac.a7.pg(this,a,this.la.coords.Kl,this.la.coords.Dp,c);b==e.model.Ac.ej.TA&&e.model.Ac.Xe.pg(this,a,this.la.coords.Kl,this.la.coords.Dp,d);b==e.model.Ac.ej.TE&&(a.hA=a.hA&&(this.Gb.Ia.ga.Da==e.u.i.qa.Tc||this.Gb.Ia.ga.Da==e.u.i.qa.le)&&e.model.C.F.vq,e.model.Ac.c7.pg(this,a,this.la.coords.Kl,this.la.coords.Dp))}print(b=""){e.model.Rs.jF.V().pg(this,b)}kg(b,a){b=this.VS(b,
a);a=b.Qa();this.zV(a,b.qc,b.lb);return a}VS(b,a){let c=null;this.la&&(c=this.la.kg(b,a,!0));if(null==c){c=new h.X.ke;c.lb=b;c.qc=a;const d=this.getData(b,a,!0);c.value=d?d.value:NaN;isNaN(c.value)||(c.label=u.Yb.format(c.value))}-1==c.lb&&(c.lb=b);-1==c.qc&&(c.qc=a);return c}pH(){if(e.v(this.la))return null;var b=this.la.tr.map(a=>a.Qa());if(0==b.length)return null;if(1<b.length)return b;b=b[0];this.zV(b,b.columnIndex,b.rowIndex);return b}$z(b,a){e.v(this.la)||this.la.select(b,a,b,a)}$D(){e.v(this.la)||
this.la.os()}get qM(){return this.I.ri?this.I.Bn+this.nf:0}get pM(){return this.I.ri?this.I.Cn+this.ug:0}z3(b){this.r$(b.data.qc,b.data.width)}A3(b){this.s$(b.data.lb,b.data.height)}r$(b,a){if(b<this.ug)0<a?e.model.size.vd.Lg[b]=a:delete e.model.size.vd.Lg[b];else{var c=this.I.Nj(b-this.ug,!0);null!=c&&(b=this.I.LS(b-this.ug),this.I.Rb.Ya&&c.push(b),0<a?e.model.size.vd.Lf[c.join(",")]=a:delete e.model.size.vd.Lf[c.join(",")])}}lIa(){var b=e.model.size.vd.Zk;e.model.size.vd.Zk={};var a=[],c;for(c in b)isNaN(b[c])||
(a[parseInt(c)]=b[c]);for(var d in a)this.la.l4(parseInt(d),a[d]),this.r$(parseInt(d),a[d])}mIa(){var b=e.model.size.vd.Lg,a=[],c;for(c in b)isNaN(b[c])||(a[c]=b[c]);for(var d in a)b=parseInt(d),b<this.ug&&this.la.l4(b,a[b])}kIa(){var b=e.model.size.vd.Lf,a=[],c;for(c in b)if(!isNaN(b[c])){var d=this.I.QC(""==c?[]:c.split(","));-1!=d&&(d+=this.ug,a[d]=b[c])}for(var g in a)this.la.l4(parseInt(g),a[g])}pIa(){var b=e.model.size.vd.Uj;e.model.size.vd.Uj={};var a=[],c;for(c in b)isNaN(b[c])||(a[parseInt(c)]=
b[c]);for(var d in a)this.la.n4(parseInt(d),a[d]),this.s$(parseInt(d),a[d])}nIa(){e.model.size.vd.uE=this.Mi;var b=e.model.size.vd.Xg,a=[],c;for(c in b)isNaN(b[c])||(a[parseInt(c)+this.Mi]=b[c]);for(var d in a)parseInt(d)<this.nf&&this.la.n4(parseInt(d),a[d])}oIa(){var b=e.model.size.vd.Vf,a=[],c;for(c in b)if(!isNaN(b[c])){var d=this.I.aD(""==c?[]:c.split(","));-1!=d&&(d+=this.nf,a[d]=b[c])}for(var g in a)this.la.n4(parseInt(g),a[g])}s$(b,a){e.model.size.vd.uE=this.Mi;if(b<this.Mi)0<a?e.model.size.vd.kh[b]=
a:delete e.model.size.vd.kh[b];else if(b<this.nf)0<a?e.model.size.vd.Xg[b-this.Mi]=a:delete e.model.size.vd.Xg[b-this.Mi];else{var c=this.I.Fn(b-this.nf,!0);null!=c&&(b=this.I.eT(b-this.nf),this.I.cc.Ya&&c.push(b),0<a?e.model.size.vd.Vf[c.join(",")]=a:delete e.model.size.vd.Vf[c.join(",")])}}YEa(){this.la&&(this.la.sr(0),this.la.Us(0),this.la.os())}}h.Kma=f})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{}f.Vn="mclick";f.wJ="singledoubleclick";f.L6="dthclosed";f.sv="filter_click";f.pJ="live_filter_change";f.mF="resize_c";f.nF="resize_r";f.ipa="request_data_doubleclick";f.I6="dragndrop_remove";f.H6="dragndrop_move";f.mt="filter_keyboard_select";f.kJ="grid_keyboard_select";h.tc=f;class b extends v.fa{constructor(k,m=null,n=null){super(f.Vn);this.cell=k;this.element=m;this.gq=n}}h.F7=b;class a extends v.fa{constructor(k,m,n=null){super(f.wJ);this.cell=k;
this.Oea=m;this.element=n}}h.H7=a;class c extends v.fa{constructor(k,m,n=null){super(f.sv);this.hierarchy=k;this.cell=m;this.element=n}}h.LO=c;class d extends v.fa{constructor(k,m,n=null){super(f.mt);this.lb=k;this.qc=m;this.i4=n}}h.MO=d;class g extends v.fa{constructor(k,m){super(f.pJ);this.Pg=k;this.value=m}}h.lna=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.uA||b==f.nv||b==f.Bh?b:f.uA}}f.uA="compact";f.nv="classic";f.Bh="flat";h.te=f})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){class h extends x.be.ay{constructor(){if(null!=h.ze)throw Error("Singleton");super(l.Mb.Fb.G);this.$("fm-alert-view");this.Ik("alertdialog");this.He()}static V(){null==h.ze&&(h.ze=new h);return h.ze}static dispose(){h.ze=null}He(){this.OD.$("fm-overlay-alert");this.XJ=[];var f=new x.Ma("div","fm-content");this.W(f);this.Zr=new x.Uc;this.Zr.$("fm-popup-title");f.W(this.Zr);this.Yr=new x.Uc;f.W(this.Yr);this.Rt=new x.Ma("div","fm-ui-btns-row");f.W(this.Rt);this.vB=new x.Ma("div",
"fm-alert-icon");this.vB.vn();this.W(this.vB);e.vk.addEventListener("keydown",b=>this.cq(b))}Ns(f="",b="",a=e.xb.vl,c=null,d=null,g=!1){this.clear();this.Tha(b);this.gI(f);this.kJa(a);this.XIa(c,d);l.Mb.Fb.W(this);this.T1=g;this.open();this.aya();this.zp()}aya(){let f=this.Rt.G.find(".fm-ui-btn-dark");null==f&&(f=this.Rt.G.find(".fm-ui-btn"));f&&f.focus({preventScroll:!0})}clear(){this.Tha("");for(this.gI("");0<this.XJ.length;)this.XJ.pop().Gg();this.G.Wa("fm-alert",!1);this.G.Wa("fm-confirmation",
!1);this.G.Wa("fm-error",!1);this.G.Wa("fm-info",!1);this.G.Wa("fm-question",!1)}Tha(f){this.Zr.KV(!1);this.Zr.cb(f)}gI(f){this.Yr.cb(f,!0)}XIa(f,b){null==f&&(f=[e.model.B.j.uW]);f.reverse();null!=b&&b.reverse();this.zY=b;for(var a=0;a<f.length;a++)b=new x.Kg,b.cb(f[a]),b.N(x.Md.mf,c=>this.Mta(c)),this.XJ.push(b),this.isPrimary(f[a])&&b.$("fm-ui-btn-dark"),this.isPrimary(f[a])&&(u.hj.Ho||u.hj.vD)?this.Rt.W(b):this.isPrimary(f[a])?this.Rt.G.prepend(b.G):this.Rt.W(b)}isPrimary(f){switch(f){case e.model.B.j.uW:case e.model.B.j.V5:case e.model.B.j.T5:case e.model.B.j.IE:return!0}return!1}Mta(f){f=
f.target;for(var b=-1,a=0;a<this.XJ.length;a++)if(this.XJ[a]==f){b=a;break}if(!(0>b)&&(this.close(),null!=this.zY&&null!=this.zY[b]))this.zY[b]()}kJa(f){this.vB.G.ox();f==e.xb.vl?this.vB.G.W(this.bwa()):f==e.xb.Ym?this.vB.G.W(this.cwa()):f==e.xb.Aa?this.vB.G.W(this.dwa()):f==e.xb.RO&&this.vB.G.W(this.ewa())}cwa(){var f=new x.Ea("span","fm-circle");f.W(new x.Ea("span","fm-ui-icon fm-icon-notif_confirm"));return f}ewa(){var f=new x.Ea("span","fm-circle");f.W(new x.Ea("span","fm-ui-icon fm-icon-notif_info"));
return f}bwa(){var f=new x.Ea("span","fm-triangle-wrap");f.W(new x.Ea("span","fm-triangle"));f.W(new x.Ea("span","fm-ui-icon fm-icon-notif_warning"));return f}dwa(){var f=new x.Ea("span","fm-hexagon");f.W(new x.Ea("span","fm-ui-icon fm-icon-notif_arrow"));return f}close(){super.close();this.clear()}t3(){this.T1||super.t3()}cq(f){27===f.keyCode&&(super.close(),this.clear())}}l.hO=h})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){class h extends x.be.ay{constructor(){if(null!=h.ze)throw Error("Singleton");super(l.Mb.Fb.G);this.$("fm-prompt-view");this.He()}static V(){null==h.ze&&(h.ze=new h);return h.ze}static dispose(){h.ze=null}He(){this.OD.$("fm-overlay-alert");var f=new x.Ma("div","fm-content");this.W(f);this.Yr=new x.Uc;this.Yr.$("fm-message-label");f.W(this.Yr);this.uK=new x.Hj;this.uK.$("fm-prompt-input");f.W(this.uK);this.Rt=new x.Ma("div","fm-ui-btns-row");f.W(this.Rt);f=new x.Kg("fm-ui-btn-dark");
f.cb(e.model.B.j.uW);f.N(x.Md.mf,()=>this.KD());this.Rt.W(f);f=new x.Kg;f.cb(e.model.B.j.wl);f.N(x.Md.mf,()=>this.Is());this.Rt.W(f,u.hj.Ho||u.hj.vD)}Ns(f="",b=null){this.C=b;this.Yr.cb(f);this.uK.zj(b&&b.defaultValue?b.defaultValue:"");l.Mb.Fb.W(this);this.open();this.zp();this.uK.G.element.focus()}KD(){this.C&&this.C.dga&&this.C.dga(this.uK.Ti());this.close()}Is(){this.C&&this.C.DU&&this.C.DU();this.close()}}l.epa=h})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.value=NaN;this.label="";this.level=NaN;this.So=this.Ro=this.Kn=this.Cg=this.eh=this.draggable=this.collapsed=this.Of=this.gb=this.sT=this.rT=this.BJa=this.bCa=this.ci=this.ET=this.uD=this.ys=this.Vw=this.Vl=this.CM=this.Nh=this.zi=this.isFrozen=this.el=this.Ku=this.numeric=!1;this.qc=this.lb=this.W4=-1;this.mN=null;this.dl=this.QBa=this.nb=!1;this.Xc=[];this.uz=this.vz=!1;this.QB=f.Aq.Q5}get jS(){return this.sT?this.label:
e.P.zo(this.label,!0,!0)}get Ak(){return this.Vl||this.Vw}get sz(){return this.ys||this.uD}Eza(){return this.Cg||this.eh?this.hierarchy.ta.ea(this.bc.level.wb+1).caption:""}J(a=!1){if(null!=b.uw){var c=new Qa;c.clear();c.tag="div";c.text+=this.jS;b.uw(c.node,this.Qa());var d=c.text;d=e.model.Tb.valid(d)?d:e.model.Tb.validate(d);this.Ku=d!=this.label?!0:this.Ku;c.clear();c=document.createElement("div");c.innerHTML=d;d=c.textContent&&"number"!=typeof d?c.textContent.trim():d;a&&!this.sT&&(d=e.P.zo(d,
!0,!0));return d}return a?this.jS:this.label}Qy(a){this.Ku=!0;null==this.style&&(this.style=new f.w6);this.style.fsa(a)}sba(a){this.Ku=!0;null==this.style&&(this.style=new f.w6);this.style.cw(a);this.style.ksa(a)}Qa(){if(this.Lfa)return this.Lfa;var a=e.model.Va.V().ha.ua,c=[];e.model.C.F.rc||e.v(a)||(c=a.p_(this.Nh&&this.lf?this.lf:this.Bg));var d=[];e.model.C.F.rc||e.v(a)||(d=a.q_(this.zi&&this.lf?this.lf:this.lh));a={columnIndex:this.qc,columns:c,label:this.label,escapedLabel:this.jS,measure:this.measure?
this.measure.bj():null,hierarchy:this.hierarchy?this.hierarchy.bj():null,member:this.bc?this.bc.Qa():null,rowIndex:this.lb,rows:d,type:this.Nh||this.zi||this.el?"header":"value",value:this.value,expanded:this.Of,collapsed:this.collapsed,drilledUp:this.eh,drilledDown:this.Cg,recordId:this.mN,isTotal:this.Ak,isTotalRow:this.Vl,isTotalColumn:this.Vw,isClassicTotalRow:this.ET,isGrandTotal:this.sz,isGrandTotalRow:this.ys,isGrandTotalColumn:this.uD,isDrillThrough:this.dl};isNaN(this.level)||(a.level=this.level);
0<this.Xc.length&&(a.conditions=this.Xc);return this.Lfa=a}}b.uw=null;f.ke=b})(h.X||(h.X={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.$V=[];this.sC=[];this.R={}}cw(a){-1==this.$V.indexOf(a)&&this.$V.push(a)}ksa(a){-1==this.sC.indexOf(a)&&this.sC.push(a)}fsa(a){for(var c in a)this.R[c]=a[c]}PS(){return this.sC.join(" ")}hT(){var a="",c;for(c in this.R)a+=c+":"+this.R[c]+";";return a}}f.w6=b})(h.X||(h.X={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){}static Mza(c){return 500<c?b.Jja:b.yoa}}b.yoa="";b.Jja="Bold";f.Gma=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 vya(c,d=null){var g=new a;if(null==d||null!=d&&d.R("color")!=c.R("color"))g.color=c.R("color");if(null==d||null!=d&&d.R("background-color")!=c.R("background-color"))g.backgroundColor=c.R("background-color");if(null==d||null!=d&&d.R("background-image")!=c.R("background-image"))g.backgroundImage=c.R("background-image");if(null==
d||null!=d&&d.R("border-color")!=c.R("border-color"))g.borderColor=c.R("border-color");if(null==d||null!=d&&d.R("font-size")!=c.R("font-size"))g.fontSize=parseInt(c.R("font-size"));if(null==d||null!=d&&d.R("font-weight")!=c.R("font-weight"))g.fontWeight=c.R("font-weight");if(null==d||null!=d&&d.R("fill")!=c.R("fill"))g.fill=c.R("fill");if(null==d||null!=d&&d.R("text-align")!=c.R("text-align"))g.textAlign=c.R("text-align");if(null==d||null!=d&&d.R("font-family")!=c.R("font-family"))g.fontFamily=c.R("font-family");
if(null==d||null!=d&&d.R("width")!=c.R("width"))g.width=parseInt(c.R("width"));if(null==d||null!=d&&d.R("max-width")!=c.R("max-width"))g.maxWidth=parseInt(c.R("max-width"));if(null==d||null!=d&&d.R("min-width")!=c.R("min-width"))g.minWidth=parseInt(c.R("min-width"));if(null==d||null!=d&&d.R("height")!=c.R("height"))g.height=parseInt(c.R("height"));if(null==d||null!=d&&d.R("max-height")!=c.R("max-height"))g.maxHeight=parseInt(c.R("max-height"));if(null==d||null!=d&&d.R("min-height")!=c.R("min-height"))g.minHeight=
parseInt(c.R("min-height"));return g}static Sl(c,d=null,g=!0){var k=new x.Ea("div");k.$(c).eb();c=new x.Ea("div");null==d?l.Mb.Fb.G.append(k).append(c):d.append(k).append(c);d=a.vya(k,g?c:null);k.remove();c.remove();return d}static DS(c){var d=new a,g;for(c=c.replace(/ /g,";");-1<(g=c.indexOf(";"));)this.Hwa(c.substring(0,g),d),c=c.substring(g+1);return d}static wT(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 Hwa(c,d){-1<c.indexOf("background-color")?d.backgroundColor=this.wT(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.wT(c.substring(13,c.length)):-1<c.indexOf("color")?d.color=this.wT(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.wT(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 dz(c,d=null,g=null){var k="";null==d&&(d=a.Tka);for(var m=0;m<d.length;m++)if(null==g||null!=g&&c.R(d[m])!=g.R(d[m]))k+=d[m]+":"+c.R(d[m])+";";return k}static bl(c,d=null,g=null){var k=
new x.Ea("div");k.$(c).eb();if(void 0===m){var m=new x.Ea("div");m.eb()}null==d?l.Mb.Fb.G.append(k).append(m):d.append(k).append(m);c=a.dz(k,g,m);k.remove();null!=m&&m.remove();return c}static O3(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.Tka="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.ed=a})(h.X||(h.X={}))})(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.X||(Ta.X={});class T{}T.UX="fm-pivot-title";T.Le="fm-cell";T.DW="fm-empty";T.BP="fm-sheet-header";T.bk="fm-header";T.KA="fm-header-c";T.uv="fm-header-r";T.Kna="fm-measure-header";T.zq="fm-filter-header";T.oJ="fm-live-filtering-header";T.fJ="fm-filter-icon";T.$W="fm-filtered";T.$I="fm-filtered-icon";T.Fv="fm-total";T.jqa="fm-total-r";T.iqa="fm-total-c";T.jJ="fm-grand-total";
T.Ima="fm-grand-total-r";T.Hma="fm-grand-total-c";T.jX="fm-hierarchy-link";T.YO="fm-link";T.yqa="fm-v-sort";T.Bqa="fm-v-sort-icon";T.zqa="fm-v-sort-asc";T.Aqa="fm-v-sort-desc";T.Lma="fm-h-sort";T.Oma="fm-h-sort-icon";T.Mma="fm-h-sort-asc";T.Nma="fm-h-sort-desc";T.ZA="fm-sort-icon";T.Y8="fm-with-order";T.UW="fm-expanded";T.V6="fm-expanded-icon";T.EW="fm-collapsed";T.j6="fm-collapsed-icon";T.Hf="fm-level-";T.dla="fm-drilled-up";T.cla="fm-drilled-down";T.kX="fm-icon";T.L7="fm-kpi";T.Tma="fm-kpi-status-bad-icon";
T.Xma="fm-kpi-status-risk-icon";T.Vma="fm-kpi-status-ok-icon";T.Wma="fm-kpi-status-rising-icon";T.Uma="fm-kpi-status-good-icon";T.Yma="fm-kpi-trend-bad-icon";T.bna="fm-kpi-trend-risk-icon";T.$ma="fm-kpi-trend-ok-icon";T.ana="fm-kpi-trend-rising-icon";T.Zma="fm-kpi-trend-good-icon";Ua.wa=T;var Va=q||(q={}),Wa=Va.K||(Va.K={}),Xa=Wa.Y||(Wa.Y={}),Ya=Xa.X||(Xa.X={});class Za{}Za.dna="left icon";Za.JJ="right icon";Za.Ok="label";Za.J6="drill";Za.YO="link";Za.Q5="backgroud";Ya.Aq=Za;
(function(e){(function(l){(function(h){class f extends l.Y.rO{constructor(b){super(b.G);this.jd=b}o3(b,a){this.show(b.target,{left:a.clientX,top:a.clientY},b)}B3(b){this.show(b.target,{left:b.clientX,top:b.clientY},b)}Yza(b){b=this.jd.QS(b);var a=this.Gb.ha.ua.hd();if(b&&!isNaN(b.ED))return a[b.ED];if(b&&b.measure)for(var c=0;c<a.length;c++)if(a[c].A==b.measure.A&&a[c].aa==b.measure.aa&&a[c].index==b.measure.index)return a[c];return null}show(b,a,c){if(!e.model.C.F.readOnly){var d=[];this.jd.pea(c.target)&&
d.push({id:"drillthrough",label:e.model.B.j.o6,handler:()=>{this.jd.bd(c.target)}});this.jd.SBa(c.target)&&d.push({id:"open_filter",label:e.model.B.j.q6,handler:()=>{this.jd.UH(c.target)}});var g=this.Yza(b);g&&!g.Na&&!g.Tg&&e.model.C.F.rl&&(g=this.ez(g),0<g.length&&d.push({id:"aggregation",label:e.model.B.j.m6,submenu:g}));d=this.XR(d,this.jd.QS(b,!0),"charts");0<d.length&&c.preventDefault();this.dS(d,a)}}Nfa(b,a){var c=this.Gb.ha.ua.clone();b=c.hd()[b.index];b.aa=a;e.model.C.F.io.aa=b.aa;this.Gb.ne(c)}}
h.Nka=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.Mv=this.Nv=-1;this.tG=this.o0=this.dW=this.GN=this.scrollLeft=this.scrollTop=this.jg=this.gh=this.ge=this.Od=this.Dp=this.Kl=this.cZ=this.VQ=0;this.KB=15E5;this.MB=this.LB=1;this.jj=[];this.At=[];this.Mt=[];this.Rr=[];this.Nt=[];this.xF=[];this.UF=[];this.KB=this.EAa();this.VQ=b.W8;this.cZ=b.V8;this.iE();this.Qha()}get we(){return this.dW+this.o0}Qha(){if(void 0===this.aZ||void 0===this.$Y){var c=this.FAa();c&&(this.aZ=
c.width,this.$Y=c.height)}}FAa(){return u.Kd().Mm?this.Eaa():u.Kd().L1?{width:15,height:15}:u.hj.Ho||u.Kd().DT||u.Kd().Jea?this.Eaa():{width:17,height:17}}Eaa(){if(null==l.Mb.Fb.G.element.offsetParent)return null;var c=document.createElement("div");c.style.width="100%";c.style.height="100px";var d=document.createElement("div");u.hj.Ho&&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.Mb.Fb.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.Mb.Fb.G.element.removeChild(d);d=g-k;m-=c;u.Kd().BM&&(m=d);return{width:d,height:m}}EAa(){return u.aS().DT||u.aS().BM?1E7:15E5}rG(c){this.At.length-1>=c&&(this.At.length=c);this.Rr.length-
1>=c&&(this.Rr.length=c);this.xF.length-1>=c&&(this.xF.length=c);for(let d in this.jj)this.jj.hasOwnProperty(d)&&!e.v(this.jj[d])&&this.jj[d].length-1>=c&&(this.jj[d].length=c);this.Nv=-1}fC(c){this.Mt.length-1>=c&&(this.Mt.length=c);this.Nt.length-1>=c&&(this.Nt.length=c);this.UF.length-1>=c&&(this.UF.length=c);this.jj.length-1>=c&&(this.jj.length=c);this.Mv=-1}reset(){this.At.length=0;this.Mt.length=0;this.Rr.length=0;this.Nt.length=0;this.xF.length=0;this.UF.length=0;this.Mv=this.Nv=-1;this.o0=
this.dW=this.scrollLeft=this.scrollTop=this.jg=this.gh=this.ge=this.Od=this.Dp=this.Kl=0;this.VQ=b.W8;this.cZ=b.V8;this.MB=this.LB=1;this.GN=this.jj.length=0;this.iE()}iE(){var c=l.Y.X.ed.Sl(u.Kd().Mm?"fm-grid-column-mobile":"fm-grid-column");isNaN(c.minWidth)||(b.OE=c.minWidth);isNaN(c.width)||(b.jt=Math.max(b.OE,c.width));isNaN(c.maxWidth)||(b.yq=0>=c.maxWidth?0:Math.max(b.OE,c.maxWidth));var d=l.Y.X.ed.Sl(u.Kd().Mm?"fm-grid-row-mobile":"fm-grid-row");isNaN(d.minHeight)||(b.NE=d.minHeight);isNaN(d.height)||
(b.mv=Math.max(b.NE,d.height));isNaN(d.maxHeight)||(b.Cr=0>=c.maxHeight?0:Math.max(b.NE,d.maxHeight))}setScale(){var c=this.$t(this.ge,this.ge+this.Dp);this.MB=c>this.KB?this.KB/c:1;c=this.au(this.Od,this.Od+this.Kl);this.LB=c>this.KB?this.KB/c:1}resize(c,d){this.CB=c;this.BB=d}get cE(){return this.kD?this.aZ:0}get bE(){return this.iD?this.$Y:0}get Up(){return this.CB}get Bs(){return this.BB}get zy(){return this.BB-this.bE-this.we}get Xt(){return this.CB-this.cE}get Dd(){return this.CB-this.mq}get Cd(){return this.BB-
this.Xq-this.we}get vj(){return this.Od+this.Kl}get il(){return this.ge+this.Dp}Vd(c){var d=isNaN(this.Mt[c])?b.mv:this.Mt[c];return 0<b.Cr&&!this.yD(c)?Math.min(b.Cr,d):d}vx(c,d,g=!1,k=!1){0!=d&&(d=Math.max(d,b.NE));if(g){if(isNaN(this.Nt[c])||d>this.Nt[c])this.Nt[c]=d}else this.Mt[c]=d,this.Mv=-1;k&&(this.UF[c]=!0)}jIa(c){if(this.yD(c)){delete this.Mt[c];delete this.Nt[c];delete this.UF[c];this.Mv=-1;for(let d in this.jj)this.jj.hasOwnProperty(d)&&delete this.jj[d]}}vh(c){if(-1==c)return this.xs();
if(c>=this.vj)return Math.max(100,b.jt);var d=isNaN(this.At[c])?b.jt:this.At[c];return 0<b.yq&&!this.sD(c)?Math.min(b.yq,d):d}IL(c,d,g){return 0>=g?Math.max(d,c):Math.min(g,Math.max(d,c))}yN(c,d,g=!1,k=!1){0!=d&&(d=this.IL(d,b.OE,b.yq));if(g){if(isNaN(this.Rr[c])||d>this.Rr[c])this.Rr[c]=d}else-1==c?this.VQ=d:this.At[c]=d,this.Nv=-1;k&&(this.xF[c]=!0)}hIa(c){if(this.sD(c)){delete this.At[c];delete this.Rr[c];delete this.xF[c];this.Nv=-1;for(let d in this.jj)this.jj.hasOwnProperty(d)&&(e.v(this.jj[d])||
delete this.jj[d][c])}}sD(c){return!0===this.xF[c]}yD(c){return!0===this.UF[c]}kR(){const c=new a;for(var d in this.Nt){var g=parseInt(d);if(!isNaN(g)&&!this.yD(g)){var k=this.Nt[g];!isNaN(k)&&k>this.Vd(g)&&(this.vx(g,k),c.rows.push(g))}}this.Nt.length=0;for(var m in this.Rr)d=parseInt(m),isNaN(d)||this.sD(d)||(g=this.Rr[d],!isNaN(g)&&g>this.vh(d)&&(this.yN(d,g),c.Ka.push(d)));this.Rr.length=0;return c}gM(c,d=!1){var g=c/this.ku*(this.Bs/this.MB-this.Bs)*this.MB;if(1!=this.MB&&c+g>=this.ku-this.Bs){d=
this.il;for(g=this.ku;g>c;)g-=this.Vd(d),d--;return d+1}d=d?0:this.ge;for(var k=0;k<c+g;)k+=this.Vd(d)*this.MB,d++;return d}PL(c,d=!1){var g=c/this.lu*(this.Up/this.LB-this.Up)*this.LB;if(1!=this.LB&&c+g>=this.lu-this.Up){d=this.vj;for(g=this.lu;g>c;)g-=this.vh(d),d--;return d+1}d=d?0:this.Od;for(var k=0;k<c+g;)k+=this.vh(d)*this.LB,d++;return d}Jda(c){for(var d=0,g=0,k=this.Cd;g<k;)g+=this.Vd(c+d),d++;return d}Ida(c){for(var d=0,g=0,k=this.Dd;g<k;)g+=this.vh(c+d),d++;return d}get lu(){return 0<=
this.Nv?this.Nv:this.Nv=1>this.LB?this.KB:this.au(this.Od,this.Od+this.Kl)}au(c,d){if(c>=d)return 0;var g=0,k=0,m;for(m in this.At){var n=parseInt(m);!isNaN(n)&&!isNaN(this.At[n])&&n>=c&&n<d&&(k++,g+=this.vh(n))}g+=(Math.min(d,this.vj)-c-k)*(0<b.yq?Math.min(b.yq,b.jt):b.jt);d>=this.vj&&(g+=(d-this.vj)*this.vh(d));return g}get ku(){return 0<=this.Mv?this.Mv:this.Mv=1>this.MB?this.KB:this.$t(this.ge,this.ge+this.Dp)}$t(c,d){if(c>=d)return 0;var g=0,k=0,m;for(m in this.Mt){var n=parseInt(m);!isNaN(n)&&
!isNaN(this.Mt[n])&&n>=c&&n<d&&(k++,g+=this.Vd(n))}return g+=(d-c-k)*(0<b.Cr?Math.min(b.Cr,b.mv):b.mv)}tua(){this.jj.length=0}jea(c,d){return e.v(this.jj[c])?!1:!0===this.jj[c][d]}YIa(c,d){e.v(this.jj[c])&&(this.jj[c]=[]);this.jj[c][d]=!0}vR(){this.Nv=this.Mv=-1}get wDa(){for(var c=0,d=this.Od+this.Kl,g=this.Od;g<d;g++)if(c+=this.vh(g),c>b.r8)return b.r8;return c}get mq(){for(var c=this.xs(),d=0;d<this.Od;d++)c+=this.vh(d);return c}get Xq(){for(var c=this.Eu(),d=0;d<this.ge;d++)c+=this.Vd(d);return c}xs(){return e.model.C.F.sl?
this.VQ:0}Eu(){return e.model.C.F.sl?this.cZ:0}jza(){for(var c=[],d=this.Od;d<this.Kl&&(this.kea(d)||(c.push(d),!(50<=c.length)));d++);return c}kza(c){var d=[];c.bottom=Math.min(c.bottom,this.il);for(var g=c.left;g<=c.right;g++)for(var k=c.top;k<=c.bottom;k++)if(!this.jea(k,g)){d.push(g);break}return d}kea(c,d=!0){return!isNaN(this.At[c])||(d?!isNaN(this.Rr[c]):!1)}get iD(){return this.lu+(this.ku>this.Cd?this.aZ:0)>this.Dd}get kD(){return this.ku+(this.lu>this.Dd?this.$Y:0)>this.Cd}bD(c,d=!1){var g=
e.model.C.F.sl&&d?this.Eu():0;return g+=this.$t(d?0:this.ge,c)}OC(c,d=!1){var g=e.model.C.F.sl&&d?this.xs():0;return g+=this.au(d?0:this.Od,c)}get iw(){return u.Kd().Xi?!1:500>Math.max(this.vj,this.Xt/b.jt)*Math.max(this.il,this.zy/b.mv)}get Vta(){return u.Kd().Xi?!1:(this.kD||this.iD)&&1E5>this.vj*this.il}Co(c=!1){return new f.ME(this.YG(c),this.ZG(c),this.NC(c),this.fz(c))}ZG(c=!1){return this.iw?this.ge:c?Math.max(this.ge,this.gh-b.O8):Math.max(this.ge,this.gh)}YG(c=!1){return this.iw?this.Od:
c?Math.max(this.Od,this.jg-b.k6):Math.max(this.Od,this.jg)}fz(c=!1){var d=this.Jda(this.gh);return this.iw?this.kD?this.il:this.gh+d:c?Math.min(this.gh+d+(this.kD?b.O8:0),this.kD?this.il:Number.MAX_VALUE):this.gh+d}NC(c=!1){var d=this.Ida(this.jg);return this.iw?this.iD?this.vj:this.jg+d:c?Math.min(this.jg+d+(this.iD?b.k6:0),this.iD?this.vj:Number.MAX_VALUE):this.jg+d}wD(c=NaN){isNaN(c)&&(c=this.NC());return 0<this.scrollLeft&&c>=this.vj}xD(c=NaN){isNaN(c)&&(c=this.fz());return 0<this.scrollTop&&
c>=this.il}OL(c=NaN){isNaN(c)&&(c=this.jg);return this.wD()?this.lu-this.scrollLeft-this.au(c,this.vj):0}fM(c=NaN){isNaN(c)&&(c=this.gh);return this.xD()?this.ku-this.scrollTop-this.$t(c,this.il):0}dT(c,d){if(c<this.we)return NaN;if(e.model.C.F.sl&&c<this.we+this.Eu())return-1;var g=0,k=this.we+this.Eu();c>this.Xq&&(g=this.gh,k=this.we+this.Xq,d&&g>this.ge?(d=this.scrollTop-this.bD(g-1),0<d&&(k-=d,g--)):d||(c-=this.fM()));for(;k<c;)k+=this.Vd(g),g++;return g-1}JS(c,d){if(e.model.C.F.sl&&c<this.xs())return-1;
var g=0,k=this.xs();c>this.mq&&(g=this.jg,k=this.mq,d&&g>this.Od?(d=this.scrollLeft-this.OC(g-1)+this.GN,0<d&&(k-=d,g--)):d||(c-=this.OL()));for(;k<c;)k+=this.vh(g),g++;return g-1}Eo(c,d,g=!0){var k=0,m=(g?this.we:0)+this.Eu();c>this.ge&&(k=this.gh,m=(g?this.we:0)+this.Xq,k<=c&&(m+=d?this.bD(this.gh)-this.scrollTop:this.fM()));return m+=this.$t(k,c)}Ul(c,d){var g=0,k=this.xs();c>this.Od&&(g=this.jg,k=this.mq,g<=c&&(k+=d?this.OC(this.jg)-this.scrollLeft-this.GN:this.OL()));return k+=this.au(g,c)}qCa(c){return isNaN(this.Mt[c])}get lya(){return this.scrollLeft+
this.Dd-this.lu-this.cE}get kya(){return this.scrollTop+this.Cd-this.ku-this.bE}Fo(c,d){return!isNaN(c)&&0==this.Vd(c)||!isNaN(d)&&0==this.vh(d)?!0:!1}}b.O8=5;b.k6=5;b.jt=100;b.OE=50;b.yq=480;b.mv=30;b.NE=30;b.Cr=100;b.V8=25;b.W8=25;b.r8=200;f.Ch=b;class a{constructor(){this.rows=[];this.Ka=[]}}f.LNa=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.Ea{constructor(a,c){super("div");this.CY=!1;this.cell=new Qa;this.ca=a;this.ln=c;this.element.addEventListener("click",d=>this.TU(d))}Cy(a=!1){for(var c=!1,d=this.element.children,g=0;g<d.length;g++){var k=d.item(g);c=this.Zia(k,!0)||c;k=k.children;for(var m=0;m<k.length;m++){const n=k.item(m);c=this.TN(n,a)||c}}this.CY=c}get tD(){return this.CY}Zia(a,c=!1){if(null!=this.ca){var d=!1,g=parseInt(a.getAttribute("data-r"));if(isNaN(g)||
this.ca.yD(g))return!1;var k=a.clientHeight;a=a.offsetHeight;var m=a-k;a-this.ca.Vd(g)>m?(this.ca.vx(g,Math.ceil(a),c),d=!0):k<=f.Ch.mv&&this.ca.vx(g,f.Ch.mv,c);return d}}TN(a,c=!1,d=!1){if(null!=this.ca){var g=!1,k=parseInt(a.getAttribute("data-c")),m=parseInt(a.getAttribute("data-r"));if(isNaN(k)||a.classList.contains(h.X.wa.BP)&&0<=k||this.ca.sD(k)||this.ca.jea(m,k)&&!d)return!1;a=a.offsetWidth;if(a>this.ca.vh(k)){if(1<a-this.ca.vh(k)||1==window.devicePixelRatio||1!=window.devicePixelRatio&&this.ca.vh(k)==
f.Ch.jt)this.ca.yN(k,Math.ceil(a+3),c),g=!0}else-1!=k&&a<=f.Ch.jt&&!this.ca.kea(k,!0)&&this.ca.yN(k,f.Ch.jt,c);this.ca.YIa(m,k);return g}}Ny(a,c){var d=this.ln?this.ln(a,c):null;this.cell.clear();this.cell.tag="div";if(this.ca.Fo(a,c))return this.cell.style.display="none",this.cell;this.cell.$(h.X.wa.Le);var g=a>=this.ca.il||c>=this.ca.vj;!d&&g?this.cell.$(h.X.wa.DW):(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.$(h.X.wa.Hf+
d.level);d&&d.zi&&(this.cell.$(h.X.wa.bk),this.cell.$(h.X.wa.uv),this.cell.$(h.X.wa.Hf+d.level),this.cell.attr.role="rowheader");d&&d.Nh&&(this.cell.$(h.X.wa.bk),this.cell.$(h.X.wa.KA),this.cell.attr.role="columnheader");d&&d.CM&&this.cell.$(h.X.wa.Kna);d&&d.Ak&&this.cell.$(h.X.wa.Fv);d&&d.Vw&&this.cell.$(h.X.wa.iqa);d&&d.Vl&&this.cell.$(h.X.wa.jqa);d&&d.sz&&this.cell.$(h.X.wa.jJ);d&&d.uD&&this.cell.$(h.X.wa.Hma);d&&d.ys&&this.cell.$(h.X.wa.Ima);d&&d.Of&&(this.cell.$(h.X.wa.UW),this.cell.text+=this.so(h.X.wa.V6,
e.model.B.j.JP));d&&d.collapsed&&(this.cell.$(h.X.wa.EW),this.cell.text+=this.so(h.X.wa.j6,e.model.B.j.KP));d&&d.vz&&(this.cell.$(h.X.wa.L7),-.75>=d.value?this.cell.$(h.X.wa.Yma):-.25>=d.value?this.cell.$(h.X.wa.bna):.25>d.value?this.cell.$(h.X.wa.$ma):.75>d.value?this.cell.$(h.X.wa.ana):1>=d.value&&this.cell.$(h.X.wa.Zma));d&&d.uz&&(this.cell.$(h.X.wa.L7),-.75>=d.value?this.cell.$(h.X.wa.Tma):-.25>=d.value?this.cell.$(h.X.wa.Xma):.25>d.value?this.cell.$(h.X.wa.Vma):.75>d.value?this.cell.$(h.X.wa.Wma):
1>=d.value&&this.cell.$(h.X.wa.Uma));this.cell.text+=d?d.jS:"";d&&(d.eh||d.Cg)&&(this.cell.text+='<span class="'+h.X.wa.jX+'" title="'+(d.eh?e.model.B.j.aqa:e.model.B.j.bqa)+'">'+d.Eza()+"</span>",d.eh&&this.cell.$(h.X.wa.dla),d.Cg&&this.cell.$(h.X.wa.cla));if(d&&d.Nh){if(d.Kn&&!d.nb){var k="";0<=d.W4&&(k="<span>"+(d.W4+1)+"</span>");const n=e.v(d.measure)||d.measure.type!=e.u.i.Pa.xc;this.cell.text=d.Ro?this.cell.text+this.so([h.X.wa.ZA,h.X.wa.zqa,e.ia(k)?"":h.X.wa.Y8],this.kH(e.u.i.za.ic,n,e.model.C.F.rc),
k):d.So?this.cell.text+this.so([h.X.wa.ZA,h.X.wa.Aqa,e.ia(k)?"":h.X.wa.Y8],this.kH(e.u.i.za.Kc,n,e.model.C.F.rc),k):this.cell.text+this.so([h.X.wa.ZA,h.X.wa.Bqa],this.kH(e.u.i.za.fd,n,e.model.C.F.rc))}d.nb&&this.cell.$(h.X.wa.DW);d.nb||this.cell.$(h.X.wa.yqa)}d&&d.zi&&(d.Kn&&!d.nb&&(this.cell.text=d.Ro?this.cell.text+this.so([h.X.wa.ZA,h.X.wa.Mma],this.kH(e.u.i.za.ic)):d.So?this.cell.text+this.so([h.X.wa.ZA,h.X.wa.Nma],this.kH(e.u.i.za.Kc)):this.cell.text+this.so([h.X.wa.ZA,h.X.wa.Oma],this.kH(e.u.i.za.fd))),
this.cell.$(h.X.wa.Lma));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.sl||(this.cell.style.height=this.ca.Vd(a)+"px");if(d&&d.style){for(k=0;k<d.style.$V.length;k++)this.cell.$(d.style.$V[k]);k=d.style.R;for(var m in k)this.cell.style[m]=k[m]}this.Bha(this.cell,a,c,d&&d.ci);null==h.X.ke.uw||g||(null==d&&(d=new h.X.ke,d.lb=a,d.qc=c),h.X.ke.uw(this.cell.node,d.Qa()));return this.cell}kH(a,c=!0,d=!1){a=e.u.i.za.$S(a,c,d);return a==
e.u.i.za.ic?e.model.B.j.eqa:a==e.u.i.za.Kc?e.model.B.j.fqa:a==e.u.i.za.fd?e.model.B.j.hqa:e.model.B.j.gqa}F1(a,c){return this.ln?(a=this.ln(a,c),e.v(a)||e.ia(a.label)):!0}Bha(a,c,d,g=!1){this.ca.sD(d)||this.ca.yD(c)?(a.style.width=this.ca.vh(d)+"px",a.style.height=this.ca.Vd(c)+"px"):(a.style["min-width"]=this.ca.vh(d)+"px",a.style[g?"height":"min-height"]=this.ca.Vd(c)+"px");!this.ca.sD(d)&&0<f.Ch.yq&&(a.style["max-width"]=f.Ch.yq+"px");!this.ca.yD(c)&&0<f.Ch.Cr&&(a.style["max-height"]=f.Ch.Cr+"px")}so(a,
c=null,d=""){Array.isArray(a)&&(a=a.join(" "));a='<i aria-hidden="true" class="'+h.X.wa.kX+" "+a+'"';c&&(a+='title="'+c+'"');return a+(">"+d+"</i>")}lwa(){this.cell.clear();this.cell.tag="div";this.cell.$(h.X.wa.Le);this.cell.$(h.X.wa.BP);this.cell.style.width=this.ca.xs()+"px";this.cell.style.height=this.ca.Eu()+"px";this.cell.attr["aria-hidden"]="true";return this.cell}gba(a){this.cell.clear();this.cell.tag="div";if(this.ca.Fo(-1,a))return this.cell.style.display="none",this.cell;this.cell.$(h.X.wa.Le);
this.cell.$(h.X.wa.BP);this.cell.text+=a+1;this.cell.style.width=this.ca.vh(a)+"px";0<f.Ch.yq&&!this.ca.sD(a)&&(this.cell.style["max-width"]=f.Ch.yq+"px");this.cell.style.height=this.ca.Eu()+"px";this.cell.attr["data-r"]=-1;this.cell.attr["data-c"]=a;this.cell.attr["aria-hidden"]="true";return this.cell}UR(a){this.cell.clear();this.cell.tag="div";if(this.ca.Fo(a,-1))return this.cell.style.display="none",this.cell;this.cell.$(h.X.wa.Le);this.cell.$(h.X.wa.BP);this.cell.text+=a+1;this.cell.style["min-width"]=
this.ca.xs()+"px";this.cell.style.height=this.ca.Vd(a)+"px";this.cell.style["line-height"]=this.ca.Vd(a)-2+"px";0<f.Ch.Cr&&!this.ca.yD(a)&&(this.cell.style["max-height"]=f.Ch.Cr+"px");this.cell.attr["data-r"]=a;this.cell.attr["data-c"]=-1;this.cell.attr["aria-hidden"]="true";return this.cell}C0(a,c){a=this.ca.PL(a)-1;c=this.ca.gM(c)-1;var d=null;null!=this.ln&&(d=this.ln(c,a));null==d&&(d=new h.X.ke,d.lb=c,d.qc=a);return d}Bu(a){for(;!a.Rc(h.X.wa.Le);)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.ln?this.ln(a,c):l.Mb.Fb.VS(a,c);null==d&&(d=new h.X.ke,d.lb=a,d.qc=c);return d}TU(a){var c=x.Ea.Vb(a.target),d=this.Bu(c)||this.C0(a.offsetX,a.offsetY);switch(a.type){case "click":var g=new h.F7(d,c,a)}g&&this.Fa(g)}dispose(){super.dispose();this.ca=this.ln=null}}f.gO=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.gO{constructor(a,c){super(a,c);this.HQ=!1;this.$("fm-sheet-canvas");this.Fl=new $a;this.W(this.Fl);this.nm=new f.ME;this.li=new f.ME}kb(){}Vy(){}get ac(){return this.HQ}set ac(a){this.HQ!=a&&(this.HQ=a,this.$a(this.ac?b.U6:b.TW))}Aia(){0!=this.ac&&(this.nm.reset(),this.li.reset(),this.kb())}qG(){this.nm.reset()}rua(){this.li.reset()}nw(){this.qG();this.rua()}Cy(a=!1){for(var c=!1,d=this.Fl.content.element.children,g=0;g<d.length;g++){var k=
d.item(g);c=this.Zia(k,a)||c;k=k.children;for(var m=0;m<k.length;m++){var n=k.item(m);c=this.TN(n,a)||c}}this.CY=c}Vz(){this.Fl.content.width=this.aw-this.ca.cE;this.Fl.content.height=this.Ht-this.ca.bE}get pb(){return this.Fl}get width(){return this.aw}set width(a){this.aw!=a&&(this.element.style.minWidth=a+"px",this.aw=a,this.Fl.width=a)}get height(){return this.Ht}set height(a){this.Ht!=a&&(this.element.style.height=a+"px",this.Ht=a,this.Fl.height=a)}eza(a,c){a=this.ca.JS(a,this.ac);c=this.ca.dT(c,
this.ac);var d=null;null!=this.ln&&(d=this.ln(c,a));null==d&&(d=new h.X.ke,d.lb=c,d.qc=a);return d}TU(a){var c=this.parent.lg();var d=a.clientX-c.left;var g=a.clientY-c.top;c=a.target;c==this.pb.placeholder.element&&(this.pb.placeholder.R("pointer-events","none"),c=document.elementFromPoint(a.clientX,a.clientY),this.pb.placeholder.R("pointer-events",""));c=x.Ea.Vb(c);d=this.Bu(c)||this.eza(d,g);null!=d&&null!=c&&(g=h.X.Aq.Q5,c.Rc(h.X.wa.jX)?g=h.X.Aq.J6:c.Rc(h.X.wa.V6)||c.Rc(h.X.wa.j6)?g=h.X.Aq.dna:
c.Rc(h.X.wa.ZA)?g=h.X.Aq.JJ:c.Rc(h.X.wa.YO)&&(g=h.X.Aq.YO),d.QB=g);switch(a.type){case "click":var k=new h.F7(d,c,a)}k&&this.Fa(k)}yG(a,c=!1,d=!1){var g=[],k=new Qa;d&&g.push(this.Tva(a));for(d=a.top;d<a.bottom;d++){k.tag="div";k.$("fm-row");k.attr["data-r"]=d;d<this.ca.il&&this instanceof f.N6&&(k.attr.role="row");c&&(k.text+=ab(this.UR(d)));for(var m=a.left;m<a.right;++m)k.text+=ab(this.Ny(d,m));g.push(ab(k))}return g.join("")}Tva(a){for(var c="",d=a.left;d<a.right;++d)c+=ab(this.gba(d));a=new Qa;
a.tag="div";a.$("fm-row");a.text=c;return c=ab(a)}Fda(){var a=this.ca.ZG();return this.ac?this.ca.$t(this.li.top,a)-this.pb.qC:this.ca.fM(a)}Eda(){var a=this.ca.YG();return this.ac?this.ca.au(this.li.left,a)-this.pb.js:this.ca.OL(a)}dispose(){this.pb.dispose();super.dispose()}}b.U6="switched_to_smooth";b.TW="switched_to_simple";f.KE=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.ME=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.KC=[];this.data=[];this.coords=a}reset(){this.data=[];this.KC=[]}setData(a,c,d,g=!1){d.lb=a;d.qc=c;if(c<this.coords.Od||g)null==this.data[a]&&(this.data[a]=[]),this.data[a][c]=d}AV(a,c,d){null==this.KC[a]&&(this.KC[a]=[]);this.KC[a][c]=d}Wta(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.Wta(a,c)){var g=this.SC(a,c);null!=g&&(g.lb=a,g.qc=c);if(d)this.data[a][c]=g;
else return g}if(null!==this.data[a][c])return this.data[a][c]}Bza(a,c){return this.KC[a]&&this.KC[a][c]?this.KC[a][c]:null}sua(a,c){null!=this.data[a]&&(this.data[a][c]=this.getData(a,c))}dispose(){this.reset();this.SC=null}}f.Npa=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.YF=this.ny=null;this.tj=new e.tb;this.oK={};this.aK={};this.dU=d=>this.cq(d);this.la=c;this.coords=this.la.coords;this.Sm=new f.Lpa(this,this.la);this.SIa=new f.Hja;this.Tu=u.VO.V();this.Tu.N(u.KeyboardEvent.UO,this.dU)}dispose(){null!=this.tj&&0<this.tj.length&&this.WZ();this.Tu.sb(u.KeyboardEvent.UO,this.dU);this.Tu=this.la=null;this.Sm.dispose()}kb(){this.Sm.X3()}wga(c,d){this.Sm.ZT?this.xIa(c,d):this.kha(c,d);this.kb()}xga(c,
d){this.Sm.GT||(null==this.Sm.No&&(this.Sm.No=new f.b9(this.la)),this.Sm.No.kw=c.toString()+"|"+d.toString(),this.kb())}select(c,d){this.os();this.ny=c;this.YF=d;this.wga(c,d)}xIa(c,d){this.lea(c,d)&&!this.tj.Hb(this.uG(c,d))&&(this.WZ(),this.kha(c,d))}kha(c,d){null!=this.Sm.No&&(this.Sm.No.remove(),this.Sm.No=null);if(!this.Sm.GT||this.lea(c,d))if(this.tj.Hb(this.uG(c,d)))g=this.tj.getItem(this.uG(c,d)),null!=g.Ko&&delete this.oK[c.y.toString()],null!=g.mo&&delete this.aK[c.x.toString()],g.remove(),
this.tj.removeItem(this.uG(c,d));else if(null!=c&&null!=d){var g=new f.b9(this.la);g.kw=this.uG(c,d);this.tj.Ta(g.kw,g)}}WZ(){for(;0<this.tj.length;)this.tj.ea(0).remove(),this.tj.h4(0);this.oK={};this.aK={}}uG(c,d){return c.x.toString()+"|"+c.y.toString()+"|"+d.x.toString()+"|"+d.y.toString()}BG(c){c=c.split("|");var d={};4==c.length?(d.from=new e.K.Y.sheet.Jr(parseInt(c[0]),parseInt(c[1])),d.Xo=new e.K.Y.sheet.Jr(parseInt(c[2]),parseInt(c[3]))):2==c.length&&(d.Ss=parseInt(c[0]),d.hu=parseInt(c[1]));
return d}Lea(c){return this.oK.hasOwnProperty(c.y.toString())&&this.aK.hasOwnProperty(c.x.toString())&&this.oK[c.y.toString()]==f.x6.eO&&this.aK[c.x.toString()]==f.x6.eO}lea(c,d){return null==c||null==d||!c.NG(d)||this.Lea(c)||this.Lea(d)||0>c.x*c.y||0>d.x*d.y?!1:!0}selectAll(){this.select(new a(0,0),new a(this.coords.Kl+this.coords.Od-1,this.coords.Dp+this.coords.ge-1))}xha(c){if(!(null==this.ny||this.ny.NG(c)&&this.tj.Hb(this.uG(this.ny,c)))){var d=this.ny;this.os();this.ny=d;this.YF=c;this.wga(d,
c)}}RIa(c){this.os();this.xga(c,-1)}OIa(c){this.os();this.xga(-1,c)}os(){!this.Sm.GT&&0<this.tj.length&&!this.Sm.ZT&&this.WZ();null!=this.Sm.No&&(this.Sm.No.remove(),this.Sm.No=null);this.YF=this.ny=null}clear(){this.os();this.kb()}BBa(c){return c.ci&&!isNaN(c.value)||c.dl&&c.ci&&""!=c.label}zta(c){if(null==c)return!1;let d=0;for(let g=0;g<c.length;g++)if(this.BBa(c[g])&&d++,2<=d)return!0;return!1}get tr(){return this.tj}get Xo(){return this.YF}set Xo(c){this.YF=c}get from(){return this.YF}set from(c){this.ny=
c}oya(c,d){return c&&d?Math.min(c.x,d.x):-1}$Ja(c,d){return c&&d?Math.max(c.x,d.x):-1}wya(c,d){return c&&d?Math.min(c.y,d.y):-1}lKa(c,d){return c&&d?Math.max(c.y,d.y):-1}move(c,d,g=!1){switch(c){case 37:this.BDa(g);break;case 38:this.EDa(g);break;case 39:this.CDa(g);break;case 40:this.ADa(g)}}get gha(){return this.oK}get Qaa(){return this.aK}BDa(c=!1){this.Gfa(-1,c)}CDa(c=!1){this.Gfa(1,c)}EDa(c=!1){this.Hfa(-1,c)}ADa(c=!1){this.Hfa(1,c)}Gfa(c,d=!1){if(1==this.tj.length){var g=this.BG(this.tj.ea(0).kw),
k=g.from,m=g.Xo;g=d?m.x:k.x;var n=d?m.x:k.x;g=this.Yxa(g+c,d?m.y:k.y);g<this.coords.jg?(c=Math.max(g,this.coords.Od),this.la.Us(c)):g>=this.coords.Ida(this.coords.jg)+this.coords.jg-1&&(c=this.coords.jg+(g-n),this.la.Us(c+1));c=d?m.y:k.y;m=g;this.select(new a(d?k.x:g,k.y),new a(m,c))}}Hfa(c,d=!1){if(1==this.tj.length){var g=this.BG(this.tj.ea(0).kw),k=g.from,m=g.Xo;g=d?m.y:k.y;var n=d?m.y:k.y;g=this.Zxa(g+c,d?m.x:k.x);g<this.coords.gh?(c=Math.max(g,this.coords.ge),this.la.sr(c)):g>=this.coords.Jda(this.coords.gh)+
this.coords.gh-1&&(c=this.coords.gh+(g-n),this.la.sr(c+1));c=g;m=d?m.x:k.x;this.select(new a(k.x,d?k.y:g),new a(m,c))}}Zxa(c,d){return Math.max(d<this.coords.Od?this.coords.ge:this.coords.tG+1,Math.min(c,this.coords.il-1))}Yxa(c,d){return Math.max(d<this.coords.ge?this.coords.Od:this.coords.Od-1,Math.min(c,this.coords.vj-1))}get Gta(){return this.SIa}cq(c){if(null!=this.Tu&&(this.la.Km||this.Tu.wea)){var d=c.ctrlKey||c.metaKey;switch(c.keyCode){case 13:case 32:d||this.la.$a(h.tc.kJ);break;case 65:d&&
(this.selectAll(),c.gq.preventDefault());break;case 37:case 39:case 38:case 40:this.move(c.keyCode,c.ctrlKey,c.shiftKey),c.gq.preventDefault()}!d||c.altKey||c.shiftKey||this.Tu.wea||67!==c.keyCode||this.xG()}}xG(){var c="";if(0<this.tj.length)for(var d,g=0;g<this.tj.length;g++)d=this.tj.ea(g),null!=d.Kj&&(d=this.BG(d.kw),c+=this.Hva(d.from,d.Xo),g<this.tj.length-1&&(c+="\n"));0<c.length&&this.Tu.xG(c)}Hva(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.la.kg(d,p,!0);if(null==c&&(c=d<this.coords.gh&&p>=this.coords.jg?this.la.kg(d,p-this.coords.jg+this.coords.Od,!0):null,null==c))continue;g+=null==c?"":c.J()}d<n&&(g+="\n")}return g}}f.Mpa=b;class a{constructor(c=0,d=0){this.x=c;this.y=d}NG(c){return c.x==this.x&&c.y==this.y}}f.Jr=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.WF=this.GT=!1;this.Mq=this.I$=null;this.waa=5;this.LIa=17;this.ZT=!1;this.PH=k=>this.TU(k);this.Efa=k=>this.r3(k);this.Ai=d;this.la=g;this.coords=this.la.coords;this.Mq=new f.Gja;this.Mq.eb();this.la.W(this.Mq);this.la.element.addEventListener("mousedown",this.PH);this.la.element.addEventListener("mouseup",this.PH)}get cA(){return this.WF}set cA(d){this.WF=d;this.cA||(this.la.element.removeEventListener("mousemove",
this.PH),document.removeEventListener("mousemove",this.Efa))}get No(){return this.I$}set No(d){this.I$=d}TU(d){if(1==d.which||3==d.which){var g=x.Ea.Vb(d.target);if("mousedown"!=d.type||!(g.Rc(h.X.wa.zq)||g.Rc(h.X.wa.fJ)||g.Rc(h.X.wa.$I)||null!=g.closest(".fm-filters")||null!=g.closest("."+h.X.wa.oJ))){var k=this.la.lg();g=d.clientX-k.left;k=d.clientY-k.top;if(!(g>this.coords.Xt||k>this.coords.we+this.coords.zy||(k=this.coords.dT(k,this.la.ac),g=this.coords.JS(g,this.la.ac),isNaN(k)||isNaN(g))))switch(this.GT=
!u.hj.Ho&&d.ctrlKey||u.hj.Ho&&d.metaKey,this.ZT=3==d.which,d.type){case "mousedown":this.kx(k,g);break;case "mousemove":this.lx(k,g);break;case "mouseup":this.lr(k,g)}}}}r3(d){var g=x.Ea.Vb(this.la.element),k=d.clientX;d=d.clientY;(k<g.left||d<g.top||k>g.left+this.la.width||d>g.top+this.la.height)&&this.TJa()}select(d,g,k,m){this.cA=!1;this.Ai.select(new f.Jr(g,d),new f.Jr(m,k))}TJa(){this.cA=!1}kx(d,g){this.cA=!0;this.Ai.select(new f.Jr(g,d),new f.Jr(g,d));this.la.element.addEventListener("mousemove",
this.PH);e.vk.addEventListener("mousemove",this.Efa)}lr(d,g){this.cA&&(this.cA=!1,this.ZT||(-1==d?this.Ai.OIa(g):-1==g?this.Ai.RIa(d):this.Ai.from&&!this.Ai.from.NG(new f.Jr(g,d))&&this.Ai.xha(new f.Jr(g,d))))}lx(d,g){this.cA&&(!this.Ai.Xo||this.Ai.Xo.x==g&&this.Ai.Xo.y==d||this.Ai.xha(new f.Jr(g,d)))}dispose(){this.la.element&&this.la.element.removeEventListener("mousedown",this.PH);this.la.element&&this.la.element.removeEventListener("mouseup",this.PH);this.Mq.dispose();this.coords=this.la=this.Ai=
null;null!=this.No&&(this.No.remove(),this.No=null)}X3(){this.Mq.iIa();for(var d=0;d<this.Ai.tr.length;d++){var g=this.Ai.tr.ea(d);var k=this.Ai.BG(this.Ai.tr.Jh(d));this.Tra(g,k.from,k.Xo)}this.Ura(this.Mq);this.Zwa(this.No)}Zwa(d){if(null!=d){d.eb();var g=this.Ai.BG(d.kw);-1!=g.Ss&&this.jxa(g.Ss,d);-1!=g.hu&&this.ixa(g.hu,d)}}Ura(d){d.eb();if(e.model.C.F.Xha&&d.EBa()&&null!=e.u.Ra.V()&&null!=e.u.Ra.V().O){var g=this.la.tr;if(this.Ai.zta(g)&&(d.bDa(),this.wKa(d,g),!d.wBa())){d.show();d.bw.Xj("auto");
d.top=d.Il.bottom;g=this.coords.Ul(this.coords.Od,this.la.ac);for(var k=0,m=0;m<d.vp.length;m++)k+=d.vp.ea(m).width;k=k+2*this.waa+2*(d.vp.length-1)*this.waa;d.bw.width=k;g-d.Il.right+k>this.coords.scrollLeft?d.Il.right=d.Il.left+k:g>d.Il.right-k?(d.bw.R("left","auto"),d.bw.right=0,k=d.Il.right-g):d.Il.dha>=this.coords.Xt&&(d.bw.R("left","right"),d.bw.left=0,k=k-(d.Il.dha-this.coords.Xt)-1,k=0>k?0:k);this.coords.we+this.coords.zy<=d.Il.bottom+d.height&&(d.top=d.Il.bottom-this.LIa);d.left=d.Il.right-
k;d.Sga.width=k;d.width=k}}}wKa(d,g){this.Ai.Gta.PHa(d,g)}Tra(d,g,k){d.eb();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.FHa(m,p,n,g,d);e.model.C.F.sl&&this.bxa(m,p,n,g,d);k=this.coords.Xt;var t=this.coords.we+this.coords.zy,r=Math.max(this.coords.we,this.coords.Eo(n,this.la.ac)-1),w=this.coords.Eo(g+1,this.la.ac),y=Math.min(t,w),A=Math.max(0,this.coords.Ul(m,this.la.ac)-1),C=this.coords.Ul(p+1,this.la.ac),B=Math.min(k,C),I=y-r,L=B-A;2>=L||2>=I?null!=d.Kj&&
d.Kj.eb():A<k&&r<t?(null!=d.Kj&&(d.Kj.show(),d.Kj.top=r,d.Kj.left=A,d.Kj.width=L,d.Kj.height=I,this.Mq.Il.bottom*this.Mq.Il.right<=B*y&&(this.Mq.Il.left=A,this.Mq.Il.right=B,this.Mq.Il.bottom=y,this.Mq.Il.dha=C)),n<this.coords.ge&&C>B&&(d.dba(),d.Wk.top=r,d.Wk.left=B,d.Wk.width=Math.min(C,this.coords.Up)-B,d.Wk.height=Math.min(y,this.coords.we+this.coords.Xq)-r,d.Wk.Wa("fm-clear-border-bottom",g>this.coords.ge),d.Wk.Wa("fm-clear-border-right",C>this.coords.Up),d.Wk.Fd("fm-clear-border"),d.Wk.show()),
m<this.coords.Od&&w>y&&(d.kba(),d.nl.top=y,d.nl.left=A,d.nl.width=Math.min(B,this.coords.mq)-A,d.nl.height=Math.min(w,this.coords.Bs)-y,d.nl.Wa("fm-clear-border-bottom",w>this.coords.Bs),d.nl.Wa("fm-clear-border-right",p>this.coords.Od),d.nl.Fd("fm-clear-border"),d.nl.show()),null!=d.Kj&&(d.Kj.Wa("fm-clear-border-right",C>B),d.Kj.Wa("fm-clear-border-bottom",w>y))):null!=d.Kj&&d.Kj.eb()}jxa(d,g){if(!isNaN(d)){null==g.Ko&&g.lba();var k=this.coords.Eo(d,this.la.ac);d=this.coords.Eo(d+1,this.la.ac);var m=
Math.min(this.coords.we+this.coords.zy,d);k<this.coords.we+this.coords.zy?(g.Ko.left=0,g.Ko.top=k,g.Ko.width=this.coords.Xt,g.Ko.height=m-k,g.Ko.show(),d>m&&(g.kba(),g.nl.top=m,g.nl.left=0,g.nl.width=this.coords.mq,g.nl.height=Math.min(d,this.coords.Bs)-m,g.nl.$("fm-clear-border"),g.nl.show())):g.Ko.eb()}}ixa(d,g){if(!isNaN(d)){null==g.mo&&g.eba();var k=this.coords.Ul(d,this.la.ac);d=this.coords.Ul(d+1,this.la.ac);var m=Math.min(this.coords.Xt,d);k<this.coords.Xt?(g.mo.left=k,g.mo.top=this.coords.we,
g.mo.width=m-k,g.mo.height=this.coords.zy,g.mo.show(),d>m&&(g.dba(),g.Wk.top=this.coords.we,g.Wk.left=m,g.Wk.width=Math.min(d,this.coords.Up)-m,g.Wk.height=this.coords.Xq,g.Wk.$("fm-clear-border"),g.Wk.show())):g.mo.eb()}}bxa(d,g,k,m,n){this.$wa(n.mo,d,g);this.axa(n.Ko,k,m)}FHa(d,g,k,m,n){if(!this.Ai.gha.hasOwnProperty(k.toString())){n.lba();for(var p=k;p<=m;p++)this.Ai.gha[p.toString()]=k==m&&d==g?a.D8:a.eO}if(!this.Ai.Qaa.hasOwnProperty(d.toString()))for(n.eba(),p=d;p<=g;p++)this.Ai.Qaa[p.toString()]=
k==m&&d==g?a.D8:a.eO}$wa(d,g,k){null!=d&&(g=this.coords.Ul(g,this.la.ac),k=Math.min(this.coords.Up,this.coords.Ul(k+1,this.la.ac)),g<this.coords.Up?(d.left=g,d.top=this.coords.we,d.width=k-g,d.height=this.coords.Eu(),d.show()):d.eb())}axa(d,g,k){null!=d&&(g=this.coords.Eo(g,this.la.ac),k=Math.min(this.coords.Bs,this.coords.Eo(k+1,this.la.ac)),d.left=0,d.top=g,d.width=this.coords.xs(),d.height=k-g,d.show())}}f.Lpa=b;class a{}a.D8=1;a.eO=2;f.x6=a;class c{constructor(d){this.la=this.nK=this.$J=this.SF=
this.wF=this.XP=null;this.la=d;this.XP=this.lL()}lL(){var d=new x.Ea("div","fm-sheet-selection-canvas");d.eb();this.la.W(d);return d}eba(){null==this.wF&&(this.wF=this.lL(),this.wF.$("fm-sheet-selection-header"))}lba(){null==this.SF&&(this.SF=this.lL(),this.SF.$("fm-sheet-selection-header"))}kba(){null==this.nK&&(this.nK=this.lL(),this.nK.$("fm-clear-border-top"))}dba(){null==this.$J&&(this.$J=this.lL(),this.$J.$("fm-clear-border-left"))}get kw(){return this.Xqa}set kw(d){this.Xqa=d}get nl(){return this.nK}get Wk(){return this.$J}get Ko(){return this.SF}set Ko(d){this.SF=
d}get mo(){return this.wF}set mo(d){this.wF=d}get Kj(){return this.XP}set Kj(d){this.XP=d}eb(){this.mo&&this.mo.eb();this.Ko&&this.Ko.eb();this.Wk&&this.Wk.eb();this.nl&&this.nl.eb();this.Kj&&this.Kj.eb()}remove(){null!=this.Kj&&(this.Kj.remove(),this.XP=null);null!=this.mo&&(this.mo.remove(),this.wF=null);null!=this.Ko&&(this.Ko.remove(),this.SF=null);null!=this.Wk&&(this.Wk.remove(),this.$J=null);null!=this.nl&&(this.nl.remove(),this.nK=null);this.la=null}}f.b9=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.W9=null}PHa(a,c){this.Gm=this.Vxa(c);const d=null==this.Gm?e.model.ec.gj.RS().clone():this.Gm.Yh(this.Gm.A,this.Gm.aa).clone();d.Ml=d.Ml==e.model.ec.gj.Tca().Ml?2:d.Ml;for(var g=0;g<a.Bz.length;g++){var k=this.Qta(a.Bz[g],c);0!=k?a.gi(a.Bz[g],this.Nza(k,a.Bz[g],d.clone())):a.eBa(a.Bz[g])}this.Gm=null}Nza(a,c,d){var g="count"==c||null!=this.Gm&&e.u.i.da.Rf(this.Gm.aa),k="count"!=c&&null!=this.Gm&&e.u.i.da.de(this.Gm.aa),
m=null!=this.Gm&&this.Gm.type==e.u.i.Pa.dc&&e.u.i.da.Zo(this.Gm.aa);d.de="count"==c?!1:d.de;d.rd=null!=this.Gm&&this.Gm.aa==e.u.i.da.Ji?"":d.rd;return m&&!isNaN(a)&&"count"!=c?e.P.Cx(a,e.model.C.F.Wo):u.Yb.format(a,d,g,k)}Qta(a,c){switch(a){case "sum":return this.Tta(c);case "average":return this.Rta(c);case "count":return this.Sta(c)}return 0}Tta(a){for(var c=0,d=0;d<a.length;d++)c+=a[d].ci&&!isNaN(a[d].value)&&this.WT(a[d])?a[d].value:0;return c}Rta(a){for(var c=0,d=0,g=0;g<a.length;g++)a[g].ci&&
!isNaN(a[g].value)&&this.WT(a[g])&&(c+=a[g].value,d++);return 0==d?0:c/d}Sta(a){for(var c=0,d=0;d<a.length;d++)(a[d].ci&&!isNaN(a[d].value)||a[d].dl&&a[d].ci&&""!=a[d].label)&&c++;return c}Vxa(a){for(var c=null,d=0;d<a.length;d++)if(this.WT(a[d])&&null==c&&!e.v(a[d].measure))c=a[d].measure;else if(this.WT(a[d])&&null!=c&&c.A!=a[d].measure.A){c=null;break}return c}WT(a){return a.dl&&a.ci&&!isNaN(a.value)||a.ci&&null!=a.measure&&!isNaN(a.value)&&e.u.i.Pa.xc!=a.measure.type&&e.u.i.Pa.Sa!=a.measure.type&&
e.u.i.Pa.Jc!=a.measure.type}get Gm(){return this.W9}set Gm(a){this.W9=a}}f.Hja=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.Ea{constructor(c=null){super("div","fm-auto-calculation-bar");this.MY=["average","count","sum"];this.fR={};this.dQ={right:-1E3,bottom:1E3};this.Uqa=new e.tb;this.MY=null==c?this.MY:c;this.mBa();this.He()}mBa(){this.fR.average=e.model.B.j.N5;this.fR.sum=e.model.B.j.Z8;this.fR.count=e.model.B.j.s6}get vp(){return this.Uqa}He(){this.XY=new x.Ea("div");this.XY.R("position","relative");this.W(this.Sga);this.Sqa=new x.Ea("div","fm-auto-calculation-bar-conainer");
this.bw.R("position","absolute");this.XY.W(this.bw);for(var c,d=0;d<this.Bz.length;d++)c=new a,c.UIa(this.fR[this.Bz[d]]),this.bw.W(c),this.vp.Ta(this.Bz[d],c)}EBa(){return-1E3!=this.dQ.right&&1E3!=this.dQ.bottom}gi(c,d){this.vp.getItem(c).VIa(d)}eBa(c){this.vp.getItem(c).eb()}get bw(){return this.Sqa}get Sga(){return this.XY}bDa(){for(var c,d=0;d<this.vp.length;d++)c=this.vp.ea(d),c.visible||c.show()}wBa(){for(var c=0;c<this.vp.length;c++)if(this.vp.ea(c).visible)return!1;return!0}get Il(){return this.dQ}get Bz(){return this.MY}iIa(){this.dQ=
{right:-1E3,bottom:1E3}}clear(){for(;0<this.vp.length;)this.vp.ea(0).dispose(),this.vp.h4(0);this.dispose()}}f.Gja=b;class a extends x.Ea{constructor(){super("div","fm-auto-calculation-bar-content");this.display="inline-block";this.He()}He(){this.jaa=new x.Ea("div","fm-auto-calculation-bar-content-text");this.W(this.jaa);this.kaa=new x.Ea("div","fm-auto-calculation-bar-content-results");this.W(this.kaa)}show(){this.element.style.display=this.display}UIa(c){this.jaa.text(c+":")}VIa(c){this.kaa.text(c)}}
f.ZKa=a})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
class $a extends x.Ea{constructor(){super("div","fm-scroll-pane");this.H$=()=>this.C3();this.OF=!1;this.jY=this.iY=0;u.hj.Ho&&this.$("fm-scrollbars");this.Kt=new x.Ea("div","fm-scroll-placeholder");this.cQ=new x.Ea("div","fm-scroll-content");this.W(this.Kt);this.W(this.cQ);this.element.addEventListener("scroll",this.H$,!0)}C3(){if(this.OF)return this.OF=!1;this.$a(bb)}get rC(){return this.Kt.width}set rC(e){this.Kt.width=e}get o_(){return this.Kt.height}set o_(e){this.Kt.height=e}get scrollLeft(){return this.element.scrollLeft}set scrollLeft(e){this.OF=
!1;this.element.scrollLeft=Math.max(0,e)}set uN(e){this.OF=!0;this.element.scrollLeft=Math.max(0,e)}get scrollTop(){return this.element.scrollTop}set scrollTop(e){this.OF=!1;this.element.scrollTop=Math.max(0,e)}set wN(e){this.OF=!0;this.element.scrollTop=Math.max(0,e)}get placeholder(){return this.Kt}get content(){return this.cQ}get js(){return this.iY}set js(e){this.iY=e;this.cQ.left=-this.iY}get qC(){return this.jY}set qC(e){this.jY=e;this.cQ.top=-this.jY}set hBa(e){this.element.style.overflowX=
e?"scroll":"hidden"}set JKa(e){this.element.style.overflowY=e?"scroll":"hidden"}dispose(){this.element&&this.element.removeEventListener("scroll",this.H$);super.dispose()}}var bb="fm_scroll_event";
(function(e){(function(l){(function(h){(function(f){class b extends f.gO{constructor(a){super(a,null);this.ca=a}kb(){var a=[],c=new Qa;if(e.model.C.F.sl){c.tag="div";c.$("fm-row");c.text+=ab(this.lwa());for(var d=0;d<this.ca.Od;d++)c.text+=ab(this.gba(d));a.push(ab(c));for(d=0;d<this.ca.ge;d++)c.text=ab(this.UR(d)),a.push(ab(c))}a=a.join("");this.element.innerHTML!=a&&this.html(a)}clear(){}}f.Opa=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.X.ke.uw&&(h=q.model.Tb.valid(h)?h:q.model.Tb.validate(h));return h}
class Qa{constructor(e="div"){this.Jra=new cb;this.clear();this.tag=e}get node(){return this.Jra}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}$(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.KE{kb(){this.Vz();var a=this.Co();if(this.ac||this.ca.xD(a.bottom)||this.ca.wD(a.right)||!this.nm.contains(a)){var c=a.clone();0!=this.ca.vj&&(c.right=Math.min(c.right,this.ca.vj));0!=this.ca.il&&(c.bottom=Math.min(c.bottom,this.ca.il));if(!this.ac||!this.li.contains(c)||!this.ca.iw&&(a.left>this.ca.Od&&a.left<=this.li.left||a.top>this.ca.ge&&a.top<=this.li.top))this.ca.wD(a.right)&&(a.left=Math.max(a.left-1,this.ca.Od)),this.ca.xD(a.bottom)&&
(a.top=Math.max(a.top-1,this.ca.ge)),this.pb.content.html(this.yG(a)),this.ac=!1,this.nm.set(a)}}HK(){this.ac?(this.pb.qC=this.ca.scrollTop-this.ca.$t(this.ca.ge,this.li.top),this.pb.js=this.ca.scrollLeft-this.ca.au(this.ca.Od,this.li.left)):(this.pb.qC=-this.ca.fM(this.nm.top),this.pb.js=-this.ca.OL(this.nm.left))}Vy(){var a=this.pb.rC;this.Vz();a=this.pb.rC-a;var c=this.Co(!0);if(!(this.ac&&this.ca.iw&&this.li.contains(c))){var d=this.Fda(),g=this.Eda(),k=this.Co();this.li=c;this.pb.content.html(this.yG(c));
this.pb.qC=this.ca.$t(this.li.top,k.top)-d;this.pb.js=this.ca.au(this.li.left,k.left)-g;this.ac||this.ca.xD(this.nm.bottom)||(this.pb.wN=this.ca.bD(this.ca.gh,!1));this.ac||(this.ca.wD(this.nm.right)?(this.ca.GN=a,this.pb.js+=a):this.pb.uN=this.ca.OC(this.ca.jg,!1));this.ac=!0}}Co(a=!1){var c=new f.ME;c.top=this.ca.ZG(a);c.left=this.ca.YG(a);c.bottom=this.ca.fz(a);c.right=this.ca.NC(a);return c}Vz(){this.pb.rC=Math.max(this.ca.lu,this.ca.Dd-this.ca.cE);this.pb.o_=Math.max(this.ca.ku,this.ca.Cd-this.ca.bE);
this.pb.content.right=this.ca.cE;this.pb.content.bottom=this.ca.bE;this.pb.hBa=this.ca.iD;this.pb.JKa=this.ca.kD}jN(a,c){for(var d=[],g=this.Co(!0),k=g.top;k<g.bottom;k++)for(var m=0;m<a.length;m++){var n=a[m];this.F1(k,n)||(n=this.Ny(k,n),delete n.attr.tabindex,d.push(ab(n)))}var p=this.Fl.content.element.querySelector(".fm-row-hidden");null==p&&(p=document.createElement("div"),p.classList.add("fm-row"),p.classList.add("fm-row-hidden"),this.Fl.content.element.appendChild(p),this.Fl.content.element.insertBefore(p,
this.Fl.content.element.childNodes[0]));p.innerHTML=d.join("");this.requestAnimationFrame(()=>{for(var t=0;t<p.children.length;t++)this.TN(p.children.item(t),!1,!0);c()})}dispose(){super.dispose();this.pb.dispose()}}f.N6=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.KE{kb(){this.Vz();var a=this.Co();if(this.ac||this.ca.xD(a.bottom)||!this.nm.contains(a)){var c=a.clone();0!=this.ca.il&&(c.bottom=Math.min(c.bottom,this.ca.il));this.ac&&this.li.contains(c)||(this.ca.xD(a.bottom)&&(a.top=Math.max(a.top-1,this.ca.ge)),this.pb.content.html(this.yG(a,e.model.C.F.sl)),this.HQ=!1,this.nm.set(a))}}UR(a){this.cell=super.UR(a);this.cell.style["min-height"]=this.cell.style.height;delete this.cell.style.height;
delete this.cell.style["line-height"];return this.cell}HK(){this.pb.qC=this.ac?this.ca.scrollTop-this.ca.$t(this.ca.ge,this.li.top):-this.ca.fM(this.nm.top)}Co(a=!1){var c=new f.ME;c.top=this.ca.ZG(a);c.left=0;c.bottom=this.ca.fz(a);c.right=this.ca.Od;a&&c.bottom==this.ca.il&&c.bottom++;return c}Vy(){var a=this.Co(!0);if(!(this.ac&&this.ca.iw&&this.li.contains(a))){var c=this.Fda(),d=this.Co();this.li=a;this.pb.content.html(this.yG(a,e.model.C.F.sl));this.pb.qC=this.ca.$t(this.li.top,d.top)-c;this.ac||
this.ca.xD(this.nm.bottom)||(this.ca.scrollTop=this.pb.wN=this.ca.bD(this.ca.gh,!1));this.ac=!0}}DKa(a){for(var c=0;c<a.Ka.length;c++){const d=this.pb.content.element.querySelectorAll(`[data-c="${c}"]`);for(let g=0;g<d.length;g++)d.item(g).style.minWidth=this.ca.vh(c)+"px"}}Vz(){this.pb.o_=this.ca.ku+this.ca.bE;this.pb.content.bottom=0;this.pb.scrollTop=this.ca.scrollTop}C0(a,c){a=this.ca.PL(a,!0)-1;c=this.ca.gM(c)-1;var d=this.ln(c,a);null==d&&(d=new h.X.ke,d.lb=c,d.qc=a);return d}}f.upa=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.KE{constructor(a,c){super(a,c);this.pn=new f.oX(this);this.rQ=new f.Fma(this)}kb(){u.cancelIdleCallback(this.VJ);this.Vz();var a=this.Co();if(this.ac||this.ca.wD(a.right)||!this.nm.contains(a)){var c=a.clone();0!=this.ca.vj&&(c.right=Math.min(c.right,this.ca.vj));this.ac&&this.li.contains(c)||(this.ca.wD(a.right)&&(a.left=Math.max(a.left-1,this.ca.Od)),this.pn.qx(),this.rQ.qx(),this.pb.content.html(this.yG(a,!1,e.model.C.F.sl)),
this.pn.Tz(),this.rQ.Tz(),this.ac=!1,this.nm.set(a))}}HK(){this.pb.js=this.ac?this.ca.scrollLeft-this.ca.au(this.ca.Od,this.li.left):-this.ca.OL(this.nm.left)}Co(a=!1){var c=new f.ME;c.top=0;c.left=this.ca.YG(a);c.bottom=this.ca.ge;c.right=this.ca.NC(a);a&&c.right==this.ca.vj&&c.right++;return c}Vy(){var a=this.pb.rC;this.Vz();a=this.pb.rC-a;var c=this.Co(!0);if(!(this.ac&&this.ca.iw&&this.li.contains(c))){u.cancelIdleCallback(this.VJ);var d=this.Eda(),g=this.Co();this.li=c;this.pn.qx();this.rQ.qx();
this.pb.content.html(this.yG(c,!1,e.model.C.F.sl));this.pn.Tz();this.rQ.Tz();this.pb.js=this.ca.au(this.li.left,g.left)-d;this.ac||(this.ca.wD(this.nm.right)?this.pb.js+=a:this.pb.uN=this.ca.OC(this.ca.jg,!1));this.ac=!0}}Vz(){this.pb.rC=this.ca.lu+this.ca.cE;this.pb.content.right=0}Hta(){u.cancelIdleCallback(this.VJ);this.VJ=u.requestIdleCallback(()=>this.B9())}B9(){var a=this.ca.jza();if(0!=a.length){for(var c=[],d=0;d<this.ca.ge;d++)for(var g=0;g<a.length;g++){var k=a[g];this.F1(d,k)||(k=this.Ny(d,
k),delete k.attr.tabindex,c.push(ab(k)))}var m=this.Fl.content.element.querySelector(".fm-row-hidden");null==m&&(m=document.createElement("div"),m.classList.add("fm-row"),m.classList.add("fm-row-hidden"),this.Fl.content.element.insertBefore(m,this.Fl.content.element.childNodes[0]));m.innerHTML=c.join("");this.requestAnimationFrame(()=>{for(var n=0;n<m.children.length;n++)this.TN(m.children.item(n),!1,!0);this.VJ=u.requestIdleCallback(()=>this.B9())})}}jN(a,c){for(var d=[],g=0;g<this.ca.ge;g++)for(var k=
0;k<a.length;k++){var m=a[k];this.F1(g,m)||(m=this.Ny(g,m),delete m.attr.tabindex,d.push(ab(m)))}var n=this.Fl.content.element.querySelector(".fm-row-hidden");null==n&&(n=document.createElement("div"),n.classList.add("fm-row"),n.classList.add("fm-row-hidden"),this.Fl.content.element.insertBefore(n,this.Fl.content.element.childNodes[0]));n.innerHTML=d.join("");this.requestAnimationFrame(()=>{for(var p=0;p<n.children.length;p++)this.TN(n.children.item(p),!1,!0);c()})}C0(a,c){a=this.ca.PL(a)-1;c=this.ca.gM(c,
!0)-1;var d=this.ln(c,a);null==d&&(d=new h.X.ke,d.lb=c,d.qc=a);return d}XK(){u.cancelIdleCallback(this.VJ)}dispose(){this.XK();super.dispose()}}f.A6=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.Ea{constructor(){super("div","fm-grid-layout");this.kia=1E3;this.xy=[];this.gK=!1;this.b_=a=>this.hEa(a);this.hha=a=>this.dGa(a);this.Vha=a=>this.nGa(a);this.yR=0;this.Ol();this.ca=new f.Ch;this.kn=new f.Npa(this.ca);this.sn=new f.Mpa(this);this.He();this.Ie(-1);this.preventScroll()}He(){this.B_();this.mwa();this.fba();this.kwa();this.Wva();this.jwa()}B_(){this.Xr=new x.Uc;this.Xr.G.display="block";this.Xr.$("fm-grid-title");this.Xr.$("fm-pivot-title");
this.Xr.KV(!0);this.Xr.G.R("position","relative");this.Xr.eb();this.RB(this.Xr)}mwa(){this.Wr=new f.Opa(this.ca);this.Wr.$("fm-sheet-headers");this.W(this.Wr)}fba(){this.od=new f.A6(this.ca,(a,c)=>this.kg(a,c));this.od.$("fm-cols-sheet");this.od.pb.element.addEventListener("wheel",this.b_);this.od.N(h.tc.Vn,a=>this.Dk(a));u.Kd().Mm&&(this.od.pb.R("overflow","scroll"),this.od.pb.placeholder.R("z-index","1"),this.od.pb.N(bb,()=>this.fEa(),!0));this.W(this.od)}kwa(){this.Ae=new f.upa(this.ca,(a,c)=>
this.kg(a,c));this.Ae.$("fm-rows-sheet");this.Ae.pb.element.addEventListener("wheel",this.hha);this.Ae.N(h.tc.Vn,a=>this.Dk(a));u.Kd().Mm&&(this.Ae.pb.R("overflow","scroll"),this.Ae.pb.placeholder.R("z-index","1"),this.Ae.pb.N(bb,()=>this.cGa(),!0));this.W(this.Ae)}Wva(){this.Vc=new f.N6(this.ca,(a,c)=>this.kg(a,c));this.Vc.$("fm-data-sheet");this.Vc.pb.N(bb,()=>this.tEa(),!0);this.Vc.N(f.KE.TW,a=>this.Yfa(a));this.Vc.N(f.KE.U6,a=>this.Yfa(a));this.Vc.N(h.tc.Vn,a=>this.Dk(a));this.W(this.Vc)}jwa(){this.Qr=
new f.Rka(this);this.Qr.$("fm-cols-resize");this.Qr.N(h.tc.mF,a=>this.cEa(a));this.W(this.Qr);this.Vr=new f.vpa(this);this.Vr.$("fm-rows-resize");this.Vr.N(h.tc.nF,a=>this.bGa(a));this.W(this.Vr);this.element.addEventListener("dblclick",this.Vha)}kb(a=!1){this.ca.Qha();this.ca.vR();this.Vc.width&&this.Vc.height||this.JG();this.ca.setScale();this.ca.GN=0;this.haa();e.ts(this.pY);this.N_();this.xy.push(this.requestAnimationFrame(()=>this.oY(a)))}N_(){for(;0<this.xy.length;)this.cancelAnimationFrame(this.xy.pop())}oY(a=
!1){this.$a(l.Ni.Jx,this,{smooth:!1});l.Mb.Fb.$a(l.Ni.Jx,this,{smooth:!1});const c=this.ca.kR();this.ac&&this.Ae.DKa(c);this.IG();this.gK&&(this.PZ()&&(this.ca.kR(),this.od.qG(),this.Ae.qG(),this.IG()),this.gK=!1);this.wL();e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.$o,{smooth:!1}));this.xy.push(this.requestAnimationFrame(()=>{this.JG();this.sn.kb()}));this.xy.push(this.requestAnimationFrame(()=>{var d=!a&&this.OZ();d?(this.od.qG(),this.Ae.qG(),this.Vc.qG(),this.kb(!0)):this.ca.Vta&&(e.ts(this.pY),
this.pY=e.Ce(()=>this.Vy(),this.kia));!d&&e.model.C.F.Uy&&this.LH()}));this.xy.push(this.requestAnimationFrame(()=>{this.$a(l.Ni.$o,this,{smooth:!1});l.Mb.Fb.$a(l.Ni.$o,this,{smooth:!1})}))}IG(){this.S_();this.ca.dW=this.Tda()?this.Xr.xd(!0):0;this.od.kb();this.od.HK();this.Ae.kb();this.Ae.HK()}wL(){this.Wr.kb();this.sn.kb();this.Qr.kb();this.Vr.kb();this.Vc.kb();this.Vc.HK()}S_(){this.Tda()?(this.Xr.cb(e.model.C.F.Pp),this.Xr.show()):this.Xr.eb()}Tda(){return!(e.ia(e.model.C.F.Pp)||this instanceof
f.flat.iJ&&this.dl)}PZ(){this.od.Cy(!0);this.Ae.Cy(!0);return this.od.tD||this.Ae.tD}OZ(){this.Vc.Cy(!0);this.od.Cy(!0);this.Ae.Cy(!0);return this.Vc.tD||this.od.tD||this.Ae.tD}Vy(){this.N_();this.xy.push(this.requestAnimationFrame(()=>this.lra()))}lra(){this.jN(()=>{l.Mb.Fb.$a(l.Ni.Jx,this,{smooth:!0});this.od.Vy();this.Ae.Vy();this.Vc.Vy();this.ca.scrollLeft=this.Vc.pb.scrollLeft;this.ca.scrollTop=this.Vc.pb.scrollTop;e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.$o,{smooth:!0}));this.type==f.flat.iJ.TYPE&&
e.model.C.F.Uy&&this.LH();this.ca.iw||0!=this.ca.scrollLeft||this.od.Hta();this.xy.push(this.requestAnimationFrame(()=>{l.Mb.Fb.$a(l.Ni.$o,this,{smooth:!0})}))})}jN(a){var c=this.ca.kza(this.ca.Co(!0));0==c.length?a():this.od.jN(c,()=>{this.Vc.jN(c,a)})}Yfa(a){a.type==f.KE.TW&&this.requestAnimationFrame(()=>{this.od.Aia();this.Ae.Aia()})}tEa(){this.C4(this.Vc.pb.scrollTop,this.Vc.pb.scrollLeft)}cGa(){this.C4(this.Ae.pb.scrollTop)}fEa(){this.C4(NaN,this.od.pb.scrollLeft)}dGa(a){if(this.coords.kD){var c=
a.wheelDeltaY||a.deltaY||a.wheelDelta||0;u.Kd().BM&&(c*=-40);u.Kd().Xi&&(c*=-1);isNaN(c)||0==c||(this.Vc.pb.scrollTop=this.ca.scrollTop-c);a.preventDefault()}}hEa(a){if(this.coords.iD){var c=a.wheelDeltaX||a.deltaX||0;u.Kd().BM&&(c*=-40);u.Kd().Xi&&(c*=-1);0!=c&&(this.Vc.pb.scrollLeft=this.ca.scrollLeft-c);a.preventDefault()}}preventScroll(){this.element.addEventListener("scroll",a=>{a.target.scrollTo(0,0)})}get slice(){return this.Qb}set slice(a){this.Qb=a}get type(){return this.yg}get coords(){return this.ca}JG(){this.width=
this.coords.Up;this.height=this.coords.Bs;this.Qr.left=0;this.Qr.top=this.coords.we;this.Qr.right=0;this.Qr.height=this.coords.Eu();this.Vr.left=0;this.Vr.top=this.coords.we;this.Vr.bottom=0;this.Vr.width=this.coords.xs()}get tr(){var a=[];if(0<this.v4.tr.length)for(var c,d=0;d<this.sn.tr.length;d++)null!=this.sn.tr.ea(d).Kj&&(c=this.sn.BG(this.sn.tr.ea(d).kw),this.GAa(a,c.from,c.Xo));return a}GAa(a,c,d){if(c&&d)for(var g=this.sn.wya(c,d);g<=this.sn.lKa(c,d);g++)for(var k=this.sn.oya(c,d);k<=this.sn.$Ja(c,
d);k++){var m=this.kg(g,k,!0);null==m&&(m=new h.X.ke,m.lb=g,m.qc=k);a.push(m)}}kg(a,c,d=!1){var g=this.kn.getData(a,c,!d);return d&&null==g?this.kn.Bza(a,c):g}insertCell(a,c,d,g=!1){this.kn.setData(a,c,d,g)}resize(a,c){this.ca.resize(a,c,!0)}set SC(a){this.kn.SC=a}Gha(a,c){this.ca.Dp=a;this.ca.Kl=c}Lca(a){a!=this.ca.ge&&(this.ca.gh=a+(this.ca.gh-this.ca.ge));this.ca.ge=a}mya(a){a!=this.ca.Od&&(this.ca.jg=a+(this.ca.jg-this.ca.Od));this.ca.jg<a&&(this.ca.jg=a);this.ca.Od=a}fs(){this.gK=!0;this.kn.reset();
this.ca.reset();this.od.nw();this.Ae.nw();this.Vc.nw();this.sn.clear();this.Vc.pb.scrollTop=0;this.Vc.pb.scrollLeft=0;this.XK()}clearData(){this.kn.reset();this.od.nw();this.Ae.nw();this.Vc.nw();this.ca.vR();this.ca.tua()}rG(a){this.gK=!0;this.ca.rG(a)}fC(a){this.gK=!0;this.ca.fC(a)}select(a,c,d,g){this.sn.select(new f.Jr(c,a),new f.Jr(g,d));this.element.focus({preventScroll:!0})}os(){this.sn.clear();this.element.blur()}XK(){this.N_();e.ts(this.pY);e.ts(this.Cua);this.od.XK()}dispose(){this.kn.dispose();
this.sn.dispose();this.XK();this.od.pb.element&&this.od.pb.element.removeEventListener("wheel",this.b_);this.od.dispose();this.Ae.pb.element&&this.Ae.pb.element.removeEventListener("wheel",this.hha);this.Ae.dispose();this.Vc.dispose();this.Qr.dispose();this.Vr.dispose();this.element&&this.element.removeEventListener("dbclick",this.Vha);super.dispose()}Dk(a){null!=a.cell&&this.Fa(a);this.aEa(a)}bq(a){this.Fa(a)}aEa(a){this.yR++;1==this.yR&&(this.Cua=e.Ce(()=>{if(1==this.yR){if(a.cell){var c=new h.H7(a.cell,
!0,a.element);this.Fa(c)}}else a.cell&&(c=new h.H7(a.cell,!1,a.element),this.Fa(c));this.yR=0},300))}C4(a=NaN,c=NaN){var d=!1;isNaN(a)||a==this.coords.scrollTop||(this.coords.scrollTop=a,this.coords.gh=this.coords.gM(a),this.Ae.pb.wN=a,d=!0);isNaN(c)||c==this.coords.scrollLeft||(this.coords.scrollLeft=c,this.coords.jg=this.coords.PL(c),this.od.pb.uN=c,d=!0);d&&this.kb()}cEa(a){this.Fa(a);this.ca.kR();0<a.data.width?this.ca.yN(a.data.qc,a.data.width,!1,!0):this.ca.hIa(a.data.qc);this.eS()}bGa(a){this.Fa(a);
this.ca.kR();0<a.data.height?this.ca.vx(a.data.lb,a.data.height,!1,!0):this.ca.jIa(a.data.lb);this.eS()}nGa(a){if(0!=e.model.C.F.sl){var c=this.lg(),d=a.clientX-c.left;a=a.clientY-c.top;d>this.coords.xs()&&a>this.coords.we+this.coords.Eu()||(a=this.coords.dT(a,this.ac),d=this.coords.JS(d,this.ac),-1!=a||isNaN(d)||this.Qr.$a(h.tc.mF,this,{width:-1,qc:d}),-1!=d||isNaN(a)||(this.Vr.$a(h.tc.nF,this,{height:-1,lb:a}),this.$a(h.tc.ipa,this,{height:-1,lb:a})))}}eS(){this.od.nw();this.Ae.nw();this.Vc.nw();
this.haa();this.kb()}haa(){if(0<this.coords.scrollLeft&&0<this.coords.lya){var a=Math.max(0,this.coords.lu-this.coords.Dd+this.coords.cE);this.coords.scrollLeft=a;this.coords.jg=this.coords.PL(a);this.Vc.pb.uN=a;this.od.pb.uN=a}0<this.coords.scrollTop&&0<this.coords.kya&&(a=Math.max(0,this.coords.ku-this.coords.Cd+this.coords.bE),this.coords.scrollTop=a,this.coords.gh=this.coords.gM(a),this.Vc.pb.wN=a,this.Ae.pb.wN=a)}Bu(a){var c=x.Ea.Vb(a);a=c.closest(".fm-cell");return null!=a?(c=parseInt(a.attr("data-r")),
a=parseInt(a.attr("data-c")),this.kg(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.ob.ea(a),c=new h.X.ke,c.label=a.caption,c.el=!0,c.hierarchy=a,c):null}Vca(a,c){c=this.coords.dT(c-this.offset().top,!1);a=this.coords.JS(a-this.offset().left,!1);let d=this.kg(c,a,!0);e.v(d)&&(d=new h.X.ke,d.lb=c,d.qc=a);return d}get ac(){return this.Vc.ac}sr(a){this.Vc.pb.scrollTop=this.coords.bD(a)}Us(a){this.Vc.pb.scrollLeft=
this.coords.OC(a)}HIa(){this.Vc.pb.scrollTop+=this.coords.Cd}KIa(){this.Vc.pb.scrollTop-=this.coords.Cd}JIa(){this.Vc.pb.scrollLeft+=this.coords.Dd}IIa(){this.Vc.pb.scrollLeft-=this.coords.Dd}get I(){return this.kn}get v4(){return this.sn}l4(a,c){this.coords.yN(a,c,!1,!0)}n4(a,c){this.coords.vx(a,c,!1,!0)}LH(){this.ps({Pm:(a,c,d,g)=>this.Pm(a,c,d,g),Om:(a,c,d,g)=>this.Om(a,c,d,g),Zl:(a,c,d,g)=>this.Zl(a,c,d,g)})}hba(a){var c=new x.Ea("span");c.$("fm-helper");c.$("fm-draggable");c.$("fm-header-helper");
c.R("position","absolute");c.R("z-index",100);c.text(a.element.firstChild.textContent);a=new x.Ea("i","fm-remove-icon");c.W(a);return c}Om(a,c,d,g){a&&a.Wa("fm-drag-remove",!1);c&&c.Wa("fm-drag-remove",!1);a=x.Ea.Vb(g.target);a.Rc("fm-header-drop-indicator")||this.rE(a,a)}Zl(a,c){this.dm();a&&a.Wa("fm-drag-remove",!0);c&&c.Wa("fm-drag-remove",!0)}Pm(){}rE(){}sw(){return this.wd?this.wd:new x.Ea("div","fm-header-drop-indicator")}dm(){this.wd&&(this.wd.Gg(!0),this.wd=null)}RU(a){e.ts(this.OCa);var c=
this.slice.Yc.fh(a.Pg);if(!e.v(c)){var d=this.fwa(c,a.value);if(c.filter.oz||null!=d)c.filter.oz&&a.value==c.filter.query.value||(this.OCa=e.Ce(()=>{e.model.Va.V().em(c.A,d);c.filter.zea=!0},300))}}fwa(a,c){var d={};if(e.model.hb.JA.WS(a)==e.u.i.qb.jb){a=parseFloat(c);if(isNaN(a))return null;d.query={equal:a}}else{if(e.ia(c))return null;d.query={contain:c}}return d}}f.Y5=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.gO{constructor(a){super(a,null);this.ca=a;this.vb=[];this.$("fm-filters");this.N(h.tc.Vn,c=>this.Dk(c));this.N("keydown",c=>this.JD(c));this.pn=new f.oX(this)}kb(){for(var a=[],c=new Qa,d=0;d<this.ca.ge;d++){c.tag="div";c.$("fm-row");for(var g=0;g<this.ca.Od;g++)if(e.model.C.F.Zs){var k=d-this.ca.ge+this.vb.length;c.text+=ab(this.RR(d,g,0<=k?this.vb[k]:null))}else c.text+=ab(this.Ny(d,g));a.push(ab(c))}a=a.join("");this.element.innerHTML!=
a&&(this.pn.qx(),this.html(a),this.pn.Tz())}RR(a,c,d){var g=this.vb.indexOf(d);this.cell.clear();this.cell.tag="div";this.cell.$(h.X.wa.Le);this.cell.$(h.X.wa.bk);this.cell.$(h.X.wa.uv);d?(this.cell.$(h.X.wa.Hf+g),this.cell.text=e.P.zo(d.caption,!0,!0).replace(/\n/g,"<br>"),d.HM&&(e.model.C.F.Nm?(this.pz(this.cell,d),this.cell.$(h.X.wa.oJ),this.cell.attr["data-h-name"]=d.A,this.cell.text+=this.pn.y_(d)):e.model.C.F.yx&&(this.cell.attr.title=e.model.B.j.bB,this.pz(this.cell,d)))):this.cell.$(h.X.wa.DW);
this.Bha(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}pz(a,c){a.$(h.X.wa.zq);c.filter.wh&&(a.$(h.X.wa.$W),a.text+=this.so(h.X.wa.$I,e.model.B.j.VX));a.text+=this.so(h.X.wa.fJ)}Xz(a){for(var c=this.vb.length=0;c<a.length;c++){var d=a.ea(c);0==d.Se&&this.vb.push(d)}}Dk(a){if(!e.model.C.F.Nm){var c=a.element;c.Rc(h.X.wa.zq)&&(c=parseInt(c.attr("data-h")),isNaN(c)||this.Fa(new h.LO(this.vb[c],a.cell)))}}JD(a){if(!e.model.C.F.Nm&&
(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.Fa(new h.MO(a,c))}}clear(){this.vb.length=0;this.kb()}}f.U8=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.gO{constructor(a){super(a,null);this.rowIndex=0;this.ca=a;this.vb=[];this.$("fm-filters");this.eb();this.N(h.tc.Vn,c=>this.Dk(c));this.N("keydown",c=>this.JD(c));this.pn=new f.oX(this)}kb(){this.pn.qx();this.ox();if(e.model.C.F.Zs){var a=new Qa("div");a.$("fm-row");a.style.height=this.ca.Vd(this.rowIndex)+"px";for(var c=0;c<this.vb.length;c++)a.text+=ab(this.RR(this.rowIndex,c,this.vb[c]));this.html(ab(a));this.pn.Tz();0==this.vb.length?
this.eb():this.show()}else this.eb()}RR(a,c,d){this.cell.clear();this.cell.tag="div";this.cell.$(h.X.wa.Le);this.cell.$(h.X.wa.bk);d&&(this.cell.text=e.P.zo(d.caption,!0,!0).replace(/\n/g,"<br>"),d.HM&&(e.model.C.F.Nm?(this.pz(this.cell,d),this.cell.$(h.X.wa.oJ),this.cell.attr["data-h-name"]=d.A,this.cell.text+=this.pn.y_(d)):e.model.C.F.yx&&(this.cell.attr.title=e.model.B.j.bB,this.pz(this.cell,d))));this.cell.style["min-height"]=this.ca.Vd(a)+"px";this.cell.style["max-height"]=this.ca.Vd(a)+"px";
this.cell.attr["data-r"]=a;this.cell.attr["data-c"]=this.ca.jg+c;this.cell.attr["data-h"]=c;this.cell.attr.tabindex="0";return this.cell}pz(a,c){a.$(h.X.wa.zq);c.filter.wh&&(a.$(h.X.wa.$W),a.text+=this.so(h.X.wa.$I,e.model.B.j.VX));a.text+=this.so(h.X.wa.fJ)}Xz(a){for(var c=this.vb.length=0;c<a.length;c++){var d=a.ea(c);0==d.Se&&this.vb.push(d)}0==this.vb.length?this.eb():this.show()}Dk(a){if(!e.model.C.F.Nm&&(a=a.element,a.Rc(h.X.wa.zq))){var c=parseInt(a.attr("data-h"));isNaN(c)||this.Fa(new h.LO(this.vb[c],
null,a))}}JD(a){if(!e.model.C.F.Nm&&(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.Fa(new h.MO(a,c))}}clear(){this.vb.length=0;this.kb()}}f.Ska=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.Ea{constructor(){super();this.vb=[];this.$("fm-ui-hgroup");this.$("fm-filters");this.eb()}kb(){this.ox();if(e.model.C.F.yx&&e.model.C.F.kI){var c=[];for(let d=0;d<this.vb.length;d++){const g=this.vb[d];if(!g.HM){c.push(d);continue}const k=new a(g,!0);k.G.attr("data-h",d);k.N("click",()=>this.Dk(k));k.N("keydown",m=>this.JD(m,k));this.W(k.G)}0==this.vb.length||c.length==this.vb.length?this.eb():this.show()}else this.eb()}Xz(c){for(var d=
this.vb.length=0;d<c.length;d++){var g=c.ea(d);0==g.Se&&this.vb.push(g)}this.kb()}Dk(c){this.Fa(new h.LO(c.hierarchy,null,c.G))}JD(c,d){e.model.C.F.Nm||32!=c.keyCode&&13!=c.keyCode||this.Fa(new h.MO(0,0,d))}clear(){this.vb.length=0;this.kb()}get nb(){return 0==this.vb.length}}f.$oa=b;class a extends x.Md{constructor(c,d=!1){super();this.h$=!1;this.G.Yd();this.Cc=c;this.h$=d;this.cb(this.Cc.caption);this.Fd("fm-ui-btn");this.$(h.X.wa.zq);this.$(h.X.wa.bk);this.G.attr("title",e.model.B.j.bB);this.U9=
new x.Ea("i",h.X.wa.kX);this.U9.$(h.X.wa.fJ);this.G.append(this.U9);this.V9=new x.Ea("i",h.X.wa.kX);this.V9.$(h.X.wa.$I);this.G.append(this.V9);this.OT=this.Cc.filter.wh;this.h$&&(this.Ij=new x.Uc,this.Ij.cb(this.Jza()),this.Ij.$("fm-filter-desc"),this.W(this.Ij))}get hierarchy(){return this.Cc}get OT(){return this.G.Rc("fm-filtered")}set OT(c){this.G.Wa("fm-filtered",c)}Jza(){var c=e.model.B.j.aJ;this.hierarchy.filter.wh&&(c=1==this.hierarchy.gb.length?this.hierarchy.ya(this.hierarchy.gb[0]).caption:
e.model.B.j.gJ);return c}}f.kMa=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.Y5{constructor(){super();this.yg=b.TYPE;this.$("fm-compact-view")}He(){super.He();this.iwa();this.mba();this.Uva()}Uva(){this.dh=new f.Ska(this.ca);this.dh.$("fm-cols-filter");this.dh.N(h.tc.sv,a=>this.bq(a));this.dh.N(h.tc.pJ,a=>this.RU(a));this.dh.N(h.tc.mt,a=>this.Fa(a));this.W(this.dh)}mba(){this.me=new f.U8(this.ca);this.me.$("fm-rows-filter");this.me.N(h.tc.sv,a=>this.bq(a));this.me.N(h.tc.Vn,a=>this.Dk(a));this.me.N(h.tc.pJ,
a=>this.RU(a));this.me.N(h.tc.mt,a=>this.Fa(a));this.W(this.me)}iwa(){this.Qi=new f.$oa;this.Qi.$("fm-page-filter");this.Qi.N(h.tc.sv,a=>this.bq(a));this.Qi.N(h.tc.mt,a=>this.Fa(a));this.W(this.Qi)}IG(){this.ca.o0=this.Qi.nb?0:this.Qi.element.offsetHeight;super.IG();this.me.kb()}wL(){super.wL();this.dh.kb()}PZ(){this.me.Cy(!0);return super.PZ()||this.me.tD}OZ(){this.me.Cy(!0);return super.OZ()||this.me.tD}JG(){super.JG();this.Qi.nb||(this.Qi.top=this.ca.dW,this.Qi.left=0,this.Qi.right=0);this.Wr.top=
this.ca.we;this.Wr.left=0;this.Wr.width=this.ca.mq;this.Wr.height=this.ca.Xq;this.me.left=this.ca.OC(0,!0);this.me.top=this.ca.we+this.ca.bD(0,!0);this.dh.top=this.ca.we+this.ca.bD(this.dh.rowIndex,!0);this.dh.left=this.ca.mq;this.dh.right=Math.max(0,this.ca.Up-this.ca.Ul(this.ca.vj,this.ac));this.Qr.top=this.LHa()?this.ca.we:this.dh.xd();this.Vr.top=this.ca.we;this.od.left=this.ca.mq;this.od.top=this.ca.we;this.od.width=this.ca.Dd;this.od.height=this.ca.Bs-this.ca.we;this.Ae.left=0;this.Ae.top=this.ca.Xq+
this.ca.we;this.Ae.width=this.ca.Up;this.Ae.height=this.ca.Cd;this.Vc.left=this.ca.mq-parseInt(this.Vc.R("border-left-width"));this.Vc.top=this.ca.Xq+this.ca.we-parseInt(this.Vc.R("border-top-width"));this.Vc.width=this.ca.Dd;this.Vc.height=this.ca.Cd}LHa(){return!(this.dh.visible&&!e.model.C.F.sl)}eS(){super.eS();this.me.kb();this.dh.kb()}LH(){super.LH();for(var a={ro:g=>this.hba(g),$u:g=>this.$u(g)},c=this.dh.find(".fm-header:not(.fm-empty)",!0),d=0;d<c.length;d++)c[d].draggable(a);c=this.me.find(".fm-header:not(.fm-empty)",
!0);for(d=0;d<c.length;d++)c[d].draggable(a);c=this.Qi.find(".fm-header:not(.fm-empty)",!0);for(d=0;d<c.length;d++)c[d].draggable(a)}$u(a){if(a.Rc("fm-drag-remove")){var c=parseInt(a.attr("data-h"));const d=a.closest(".fm-filters");a=this.slice.clone();d==this.dh?(c=a.Db.ea(c).A,a.Ka.removeItem(c)):d==this.me?(c=a.yb.ea(c).A,a.rows.removeItem(c)):d==this.Qi&&a.ob.h4(c);e.model.Va.V().ne(a)}}Pm(a,c,d){d=this.kda(d);if(null==d)this.dm();else{var g=this.Gza(d,this.wd);this.dm();if(!isNaN(g)){var k=parseInt(a.attr("data-h")),
m=a.closest(".fm-filters");c=this.slice.clone();if(m==this.dh){var n=c.Db.ea(k);k=c.Ka.indexOf(n.A)}else m==this.me?(n=c.yb.ea(k),k=c.rows.indexOf(n.A)):m==this.Qi&&(n=c.ob.ea(k),k=c.ob.indexOf(n.A));null!=n&&(d==m&&k<g&&g--,d!=m||k!=g)&&(a.eb(),d==m?d==this.dh?(g=0<c.Ka.length&&c.Ka.YS().Se&&g>=c.Ka.length-1?c.Ka.length-2:g,c.Ka.G2(k,g)):d==this.me?(g=0<c.rows.length&&c.rows.YS().Se&&g>=c.rows.length-1?c.rows.length-2:g,c.rows.G2(k,g)):d==this.Qi&&c.ob.G2(k,g):(c.Ka.removeItem(n.A),c.rows.removeItem(n.A),
c.ob.removeItem(n.A),d==this.dh?(g=0<c.Ka.length&&c.Ka.YS().Se&&g>=c.Ka.length?c.Ka.length-1:g,c.Ka.DK(n.A,n,g)):d==this.me?(g=0<c.rows.length&&c.rows.YS().Se&&g>=c.rows.length?c.rows.length-1:g,c.rows.DK(n.A,n,g)):d==this.Qi&&c.ob.DK(n.A,n,g)),1<c.Ka.length&&c.Ka.ea(0).Se&&(a=c.Ka.ea(0),c.Ka.splice(0,1),c.Ka.DK(a.A,a,c.Ka.length)),e.model.Va.V().ne(c))}}}Gza(a,c){return a==this.dh?this.oza(c):a==this.me?this.Bda(c):a==this.Qi?this.mAa(c):NaN}oza(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}Bda(a){if(null!=a){a=a.parent.Rc("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}mAa(a){return null!=a?(a=a.index(),a>this.slice.ob.length?this.slice.ob.length:a):NaN}kda(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.iCa(a)?c=this.dh:this.jCa(a)&&(c=this.me)):(a=a.closest(".fm-resize-handles"),null!=a&&(a.Rc("fm-cols-resize")?c=this.dh:a.Rc("fm-rows-resize")&&(c=this.me)))}return c}iCa(a){return a>=this.coords.Od}jCa(a){return a<=this.coords.Od}rE(a,c){a=this.kda(a);if(null==a)this.dm();else{var d=c.closest(".fm-header:not(.fm-empty)");null!=c.closest(".fm-filters")&&null!=d?(this.wd=this.sw(),a==this.Qi?d.before(this.wd):c.before(this.wd)):
(this.wd=this.sw(),a==this.dh?this.dh.find(".fm-row").append(this.wd):a==this.me?null!=c.closest(".fm-filters")?this.me.find(".fm-header").before(this.wd):this.yg==f.dC.pO.TYPE?this.me.find(".fm-header").parent.append(this.wd):this.me.append(this.wd):a==this.Qi&&this.Qi.append(this.wd))}}fs(){super.fs();this.dh.clear();this.Qi.clear();this.me.clear()}get DR(){return this.dh}get fha(){return this.me}get hga(){return this.Qi}dispose(){this.dh.Yd();this.dh.dispose();this.me.Yd();this.me.dispose();this.Qi.Yd();
super.dispose()}}b.TYPE="compact";f.qO=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.Ea{constructor(a){super("div","fm-resize-handles");this.kK=c=>this.kx(c);this.It=c=>this.lr(c);this.FB=c=>this.lx(c);this.kZ=c=>this.G3(c);this.Rv=new Qa;this.Ze=a;this.ca=a.coords;this.element.addEventListener("mousedown",this.kK);this.element.addEventListener("touchstart",this.kK);e.Dn.addEventListener("mouseup",this.It);e.Dn.addEventListener("touchend",this.It);e.Dn.addEventListener("touchcancel",this.It);this.Tv=new x.Ea("div",
"fm-indicator");this.Tv.eb();this.W(this.Tv);this.PB=new x.Ea("div","fm-wrapper");this.PB.attr("title",e.model.B.j.e9);this.W(this.PB);u.Kd().Mm&&this.$("fm-pointer-events-none");this.zg("hidden","true")}kb(){this.PB.attr("title",e.model.B.j.e9)}iu(a){this.Rv.tag="div";this.Rv.$("fm-handle");this.Rv.attr["data-idx"]=a;this.Rv.attr.title=e.model.B.j.cqa;return this.Rv}kx(a){if(a.target.classList.contains("fm-handle")){this.Kv=a.target;this.Kv.classList.add("fm-active");this.hB=this.lg();e.Dn.addEventListener("mousemove",
this.FB);e.Dn.addEventListener("touchmove",this.kZ);a.stopImmediatePropagation();var c=parseInt(this.Kv.getAttribute("data-idx"));this.KN(c);a.preventDefault();a.stopImmediatePropagation()}}KN(){}lr(){e.Dn.removeEventListener("mousemove",this.FB);e.Dn.removeEventListener("touchmove",this.kZ);if(this.Kv){this.Kv.classList.remove("fm-active");var a=parseInt(this.Kv.getAttribute("data-idx"));this.LN(this.Kv,a);this.Kv=null;this.Tv.eb()}}LN(){}G3(a){a=a.touches[0];this.bV(this.Kv,a.clientX-this.hB.left,
a.clientY-this.hB.top);this.Tv.show()}lx(a){var c=a.clientX-this.hB.left,d=a.clientY-this.hB.top;0>c||0>d||c>this.ca.Up||d>this.ca.Bs?this.lr(a):(this.bV(this.Kv,c,d),this.Tv.show())}bV(){}dispose(){this.element&&this.element.removeEventListener("mousedown",this.kK);e.Dn.removeEventListener("mousemove",this.FB);e.Dn.removeEventListener("mouseup",this.It);e.Dn.removeEventListener("touchmove",this.kZ);e.Dn.removeEventListener("touchend",this.It);e.Dn.removeEventListener("touchcancel",this.It);super.dispose()}}
f.S8=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.S8{kb(){super.kb();this.PB.ox();let a="";for(var c=0;c<this.ca.ge;c++)a+=ab(this.iu(c),!0);var d=this.ca.gh;for(c=Math.min(this.ca.il,this.ca.fz());d<c;d++)a+=ab(this.iu(d),!0);this.PB.html(a)}iu(a){super.iu(a);this.Rv.style.top=this.ca.Eo(a,this.Ze.ac,!1)+this.ca.Vd(a)+"px";return this.Rv}KN(a){this.hZ=this.ca.Eo(a,this.Ze.ac,!1)}LN(a,c){a=Math.round(a.offsetTop+a.clientHeight/2-this.hZ);a=this.ca.IL(a,f.Ch.NE,f.Ch.Cr);this.$a(h.tc.nF,
this,{height:a,lb:c})}bV(a,c,d){d=this.ca.IL(d,this.hZ+f.Ch.NE,this.hZ+f.Ch.Cr);a.style.top=d+"px";this.Tv.top=d;this.Tv.width=this.ca.Xt}}f.vpa=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.S8{kb(){super.kb();this.PB.ox();let a="";for(var c=0;c<this.ca.Od;c++)a+=ab(this.iu(c),!0);c=Math.min(this.ca.vj,this.ca.NC());for(var d=this.ca.jg;d<c;d++)a+=ab(this.iu(d),!0);this.PB.html(a)}iu(a){super.iu(a);this.Rv.style.left=this.ca.Ul(a,this.Ze.ac)+this.ca.vh(a)+"px";return this.Rv}KN(a){this.gZ=this.ca.Ul(a,this.Ze.ac)}LN(a,c){a=Math.round(a.offsetLeft+a.clientWidth/2-this.gZ);a=this.ca.IL(a,f.Ch.OE,f.Ch.yq);this.$a(h.tc.mF,
this,{width:a,qc:c})}bV(a,c){c=this.ca.IL(c,this.gZ+f.Ch.OE,this.gZ+f.Ch.yq);a.style.left=c+"px";this.Tv.left=c;this.Tv.height=this.ca.zy}}f.Rka=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.f$=!1;this.om=[];this.qn=[];this.dca=()=>this.EEa();this.oba=()=>this.DEa();this.Fca=()=>this.FEa();this.Ze=a;this.ca=a.coords;this.Ze.N(h.tc.Vn,c=>this.HD(c))}kb(){this.Qba(this.Fh)}set lha(a){this.G$=a}Jha(a=!0){this.f$=a}uia(){this.s4();null!=this.Fh&&(this.Fh.Gg(!0),this.Fh=null)}HD(a){this.stop();this.MBa(a.cell.qc)&&a.cell.ci&&this.$ba(a.cell)}MBa(a){return this.f$||-1<this.om.indexOf(a)}clear(){this.om=[];this.qn=
[];this.qd=null}$ba(a){!e.model.C.F.EC||null!=this.qd&&this.qd.lb==a.lb&&this.qd.qc==a.qc||(this.qd=a,this.Wwa(),this.Ze.v4.kb())}Fsa(a){this.qd.label=a+"\n"}get rea(){return null!=this.qd}stop(){e.model.C.F.EC&&(this.uia(),this.qd=null)}save(a){if((e.model.C.F.EC||this.rea)&&null!=this.qd){a=a.replace(/\n/gi,"<br>");if(this.qd.measure.type==e.u.i.Pa.Sa)this.qd.value=Date.parse(a);else if(this.qd.measure.type!=e.u.i.Pa.xc){a=a.replace(/,/gi,".");a=a.replace(/[^\d|\.|\-]/gi,"");this.qd.value=parseFloat(a);
const c=this.qd.measure.Yh(this.qd.measure.A,this.qd.measure.aa).clone();this.qd.label=u.Yb.format(this.qd.value,c)}else this.qd.label=a;null!=this.G$&&this.G$(this.qd.lb,this.qd.qc,this.qd.measure.type!=e.u.i.Pa.xc?this.qd.value:a);null!=this.qd&&this.Ze.I.sua(this.qd.lb,this.qd.qc)}}Wwa(){null!=this.qd&&this.qd.ci&&(null!=this.Fh&&(this.Fh.Yd(),this.Fh.Gg(),this.Fh=null),this.qd.lb<this.ca.ZG()||this.qd.qc<this.ca.YG()||this.qd.lb>this.ca.fz()||this.qd.qc>this.ca.NC()||(this.Fh=new x.Hv,this.Fh.$("fm-editing-cell"),
this.Ze.RB(this.Fh),this.Qba(this.Fh),this.qd.label=this.qd.label.replace(/<br\s*[\/]?>/gi,"\n"),this.Fh.zj(this.Hza(this.qd)),this.Fh.N(x.Hv.DA,this.dca),this.Fh.N(x.Hv.QW,this.oba),this.Fh.N(x.Hv.RW,this.Fca),this.Fh.G.focus(),this.Fh.selectAll(),this.Fh.show()))}Hza(a){return a.measure.type==e.u.i.Pa.xc?a.label:isNaN(a.value)?"":a.measure.type==e.u.i.Pa.Sa?(new Date(a.value)).toISOString().substr(0,10):a.value.toString()}Qba(a){if(a){this.qd.lb<this.ca.ZG()||this.qd.qc<this.ca.YG()||this.qd.lb>
this.ca.fz()||this.qd.qc>this.ca.NC()?a.eb():a.show();var c=Math.min(this.ca.vh(this.qd.qc),this.ca.Xt-this.ca.Ul(this.qd.qc,this.Ze.ac));a.G.R("left",this.ca.Ul(this.qd.qc,this.Ze.ac)-1+"px");a.G.R("top",this.ca.Eo(this.qd.lb,this.Ze.ac)-1+"px");a.Xj(c+1);a.pq(this.ca.Vd(this.qd.lb)+1)}}EEa(){this.Tga();this.s4();var a=this.Ze.kg(this.qd.lb+1,this.qd.qc);this.stop();null!=a?(a.lb>this.ca.fz()-3&&this.Ze.sr(this.ca.gh+1),this.$ba(a)):this.stop()}FEa(){this.Tga();this.s4();this.stop()}DEa(){this.rea&&
this.Fsa(this.Fh.Ti());this.Fh.zj(this.qd.label)}s4(){null!=this.Fh&&this.save(this.Fh.Ti());null!=this.qd&&(this.Ze.clearData(),this.Ze.kb())}Tga(){this.Fh.sb(x.Hv.DA,this.dca);this.Fh.sb(x.Hv.QW,this.oba);this.Fh.sb(x.Hv.RW,this.Fca)}}f.Bla=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.zD=!1;this.target=a;this.target.N("keyup",c=>this.Sfa(c));this.target.N("paste",c=>this.Sfa(c));this.target.N("focusout",()=>this.V2())}y_(a){return"<div><input type='text' class='fm-ui-text-input' value='"+((a.filter.oz?a.filter.query.value:"")+"'></div>")}qx(){if(e.model.C.F.Nm&&(this.zD=!0,document.activeElement&&"input"==document.activeElement.tagName.toLowerCase())){var a=document.activeElement,
c=a.parentElement.parentElement.getAttribute("data-h-name");e.ia(c)?this.focused=null:this.focused={Pg:c,selectionStart:a.selectionStart,selectionEnd:a.selectionEnd,value:a.value}}}Tz(){if(e.model.C.F.Nm){if(null!=this.focused){var a=this.target.element.querySelector("."+h.X.wa.oJ+'[data-h-name="'+this.focused.Pg+'"] input');a&&(a.focus(),a.value=this.focused.value,a.selectionStart=this.focused.selectionStart,a.selectionEnd=this.focused.selectionEnd)}this.zD=!1}}V2(){this.zD||(this.focused=null)}Sfa(a){a=
a.target;var c=a.parentElement.parentElement.getAttribute("data-h-name");this.target.Fa(new h.lna(c,a.value))}}f.oX=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.zD=!1;this.target=a;this.target.N("focusin",()=>this.qx());this.target.N("focusout",()=>this.V2())}qx(){if(!e.model.C.F.Nm&&(this.zD=!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?{$Na:c,Ss:a}:null}}Tz(){if(!e.model.C.F.Nm){if(null!=this.focused){const a=
document.querySelector("."+h.X.wa.zq+`[data-c="${this.focused.col}"][data-r="${this.focused.row}"]`);a&&a.focus()}this.zD=!1}}V2(){this.zD||(this.focused=null)}}f.Fma=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.qO{constructor(){super();this.yg=a.TYPE;this.Fd("fm-compact-view");this.$("fm-classic-view")}mba(){this.me=new b.Pka(this.ca);this.me.$("fm-rows-filter");this.me.N(h.tc.sv,c=>this.bq(c));this.me.N(h.tc.Vn,c=>this.Dk(c));this.me.N(h.tc.pJ,c=>this.RU(c));this.me.N(h.tc.mt,c=>this.Fa(c));this.W(this.me)}IG(){this.CBa?super.IG():(e.Za(e.model.B.j.hoa,e.model.B.j.Ym,e.xb.Ym),e.model.Va.V().qq({gridType:h.te.uA}),e.model.Va.V().refresh())}get CBa(){return this.ca.Dd>
this.ca.wDa}Bda(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.pO=a})(f.dC||(f.dC={}))})(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.U8{constructor(c){super(c)}kb(){for(var c=[],d=new Qa,g=0;g<this.ca.ge;g++){d.tag="div";d.$("fm-row");for(var k=0;k<this.ca.Od;k++)d.text=e.model.C.F.Zs?d.text+ab(this.RR(g,k,g==this.ca.ge-1?this.vb[k]:null)):d.text+ab(this.Ny(g,k));c.push(ab(d))}this.pn.qx();this.html(c.join(""));this.pn.Tz()}}b.Pka=a})(f.dC||(f.dC={}))})(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.Y5{constructor(){super();this.Uy=this.yB=!1;this.yg=a.TYPE;this.$("fm-flat-view");this.N9=new f.Bla(this)}fba(){this.od=new b.Dma(this.ca,(c,d)=>this.kg(c,d));this.od.$("fm-cols-sheet");this.od.pb.element.addEventListener("wheel",this.b_);this.od.pb.N(bb,()=>this.gEa());this.od.N(h.tc.Vn,c=>this.Dk(c));this.od.N(h.tc.sv,c=>this.bq(c));this.od.N(h.tc.pJ,c=>this.RU(c));this.od.N(h.tc.mt,c=>this.Fa(c));this.W(this.od)}gEa(){this.Vc.pb.scrollLeft=
this.od.pb.scrollLeft}Dk(c){this.Uy||super.Dk(c)}bq(c){this.Uy||super.bq(c)}JG(){super.JG();this.Wr.top=this.ca.we;this.Wr.left=0;this.Wr.width=this.ca.mq;this.Wr.height=this.ca.Xq;this.od.left=this.ca.mq;this.od.top=this.ca.we;this.od.width=this.ca.Dd;this.od.height=this.ca.Bs-this.ca.we;this.Ae.left=0;this.Ae.top=this.ca.Xq+this.ca.we;this.Ae.width=this.ca.Up;this.Ae.height=this.ca.Cd;this.Vc.left=this.ca.mq-parseInt(this.Vc.R("border-left-width"));this.Vc.top=this.ca.Xq+this.ca.we-parseInt(this.Vc.R("border-top-width"));
this.Vc.width=this.ca.Dd;this.Vc.height=this.ca.Cd+parseInt(this.Vc.R("border-top-width"))}wL(){super.wL();this.N9.kb()}get yL(){return this.N9}get dl(){return this.yB}set dl(c){this.yB=c}LH(){if(!this.dl||e.u.Ra.V().ga.JT){super.LH();for(var c={ro:k=>this.hba(k),$u:k=>this.$u(k),jx:(k,m)=>this.jx(k,m),GU:k=>this.GU(k)},d=this.od.find(".fm-header",!0),g=0;g<d.length;g++)d[g].draggable(c)}}qea(c){if(e.v(c))return!1;c=this.Bu(c.element);return e.v(c)?!0:1===c.level||void 0===c.level}rE(c,d){c=d.closest(".fm-cell");
this.qea(c)?(c=parseInt(c.attr("data-c")),c=Math.min(c,this.coords.Kl),this.wd=this.sw(),this.wd.left=this.coords.Ul(c,this.ac)-(c==this.coords.Kl?0:this.wd.width),this.wd.top=this.ca.we+this.coords.Eo(0,this.ac)-1,this.wd.height=this.coords.Vd(0)+1,this.append(this.wd)):this.dm()}jx(c,d){return"input"==d.target.tagName.toLowerCase()||1<this.Bu(c.element).level?!1:!0}GU(){this.v4.clear();this.Uy=!0}$u(c){setTimeout(()=>{this.Uy=!1},100);if(c.Rc("fm-drag-remove"))if(c=parseInt(c.attr("data-c")),this.dl)this.$a(h.tc.I6,
this,{index:c});else{var d=this.slice.clone(),g=d.flatten(!0),k=g.ea(c);g.removeItem(k.A);d.Ka.Hb(k.A)?d.Ka.removeItem(k.A):d.rows.Hb(k.A)?d.rows.removeItem(k.A):d.ob.Hb(k.A)&&d.ob.removeItem(k.A);d.hd().find(m=>m.A===k.A)&&d.ZD(k.A);d.Ng=g.Nc(!0);e.model.Va.V().ne(d)}}Pm(c,d,g){this.dm();var k=g.closest(".fm-cell");if(null!=k){d=parseInt(c.attr("data-c"));g=parseInt(k.attr("data-c"));c=this.Bu(c.element);var m=this.Bu(k.element),n=c.hierarchy?c.hierarchy.ta.length:0;g=g>d?g-(0<n?n-2:0):g;d!==g&&
(this.dl?this.$a(h.tc.H6,this,{uya:d,gKa:g}):this.qea(k)&&(k=this.slice.clone(),0==k.Ng.length&&(k.Ng=k.flatten(!0).Nc(!0)),k.bBa&&void 0===c.level&&(n=d>g?1:-1,d=k.Ng.indexOf(c.hierarchy.A),g=null===m?g:k.Ng.indexOf(m.hierarchy.A),g=d===g?g+n:g),g=Math.max(0,Math.min(g,k.Ng.length)),d<g&&g--,e.Ja.F2(k.Ng,d,g),e.model.Va.V().ne(k)))}}}a.TYPE="flat";b.iJ=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.A6{constructor(c,d){super(c,d);this.N(h.tc.Vn,g=>this.bq(g));this.N("keydown",g=>this.JD(g));this.N("focusin",g=>this.U2(g))}U2(c){const d=this.pb.content.element.scrollLeft;0!=d?(this.pb.content.pJa(),this.pb.scrollLeft=this.pb.element.scrollLeft+d):(c=parseInt(c.target.getAttribute("data-c")),!isNaN(c)&&this.ca.OC(c,this.ac)<this.ca.scrollLeft&&(this.pb.scrollLeft-=this.ca.Dd/2))}bq(c){null!=c.cell&&c.cell.el&&null!=
c.cell.hierarchy&&c.cell.QB!=h.X.Aq.JJ&&(e.model.C.F.Nm||this.Fa(new h.LO(c.cell.hierarchy,c.cell)))}JD(c){if(!e.model.C.F.Nm&&(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.Fa(new h.MO(c,d))}}Ny(c,d){this.cell=super.Ny(c,d);(c=this.ln?this.ln(c,d):null)&&c.el&&c.hierarchy.HM&&(e.model.C.F.Nm?(this.pz(this.cell,c.hierarchy),this.cell.$(h.X.wa.oJ),this.cell.text+=this.pn.y_(c.hierarchy),this.cell.attr["data-h-name"]=
c.hierarchy.A):e.model.C.F.yx&&(this.pz(this.cell,c.hierarchy),this.cell.attr.title=e.model.B.j.bB,this.cell.attr.tabindex="0",this.cell.text+=this.so(h.X.wa.fJ)));return this.cell}pz(c,d){c.$(h.X.wa.zq);d.filter.wh&&(c.$(h.X.wa.$W),c.text+=this.so(h.X.wa.$I,e.model.B.j.VX))}}b.Dma=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.pd||(e.pd={});e=e.gra||(e.gra={});e=e.xma||(e.xma={});e[e.HLa=0]="DESELECT";e[e.ILa=1]="DESELECT_ALL";e[e.ONa=2]="TOGGLE_EXPANDED";e[e.PNa=3]="TOGGLE_SELECTED";e[e.iNa=4]="MOVE_UP";e[e.dNa=5]="MOVE_DOWN";e[e.gNa=6]="MOVE_TO_ROWS";e[e.eNa=7]="MOVE_TO_COLUMNS";e[e.fNa=8]="MOVE_TO_FILTERS";e[e.hNa=9]="MOVE_TO_VALUES";e[e.KLa=10]="EDIT_CALCULATED_VALUE";e[e.FNa=11]="SELECT_AGGREGATION"})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Ma{constructor(){super("div");this.mU=a=>this.r3(a);this.list=new x.zd.ij;this.list.hl=!0;this.list.ei(this.Su);this.list.qg("caption");this.list.Ie();this.list.N(v.fa.$d,a=>this.av(a));this.W(this.list);this.G.Ol();this.G.N("keydown",a=>{27==a.keyCode&&(this.close(),a.stopImmediatePropagation())});var b=new x.Ea("div","fm-arrow");this.G.W(b)}Po(b,a,c=-1){this.origin=a;this.DL=b;this.oca=c;this.setData(b);this.show();this.G.N("mouseleave",this.mU);
e.Dn.addEventListener("mousedown",this.mU);b=a.lg(this.G.element.offsetParent);this.G.R("right",this.G.element.offsetParent.clientWidth-b.left+"px");this.G.R("top",b.top-this.xd()/2+a.xd()/2+"px");this.Yv=document.activeElement;this.list.focus()}r3(b){"mousedown"==b.type&&this.G.JR(b)||(this.G.sb("mouseleave",this.mU),e.Dn.removeEventListener("mousedown",this.mU),this.close())}setData(b){let a=0;const c=[];for(let d=0;d<b.Wc.length;d++){const g={caption:b.RK[d],aa:b.Wc[d]};void 0!=b.ew&&(g.fW=b.ew[d]);
c.push(g);b.Wc[d]==b.aa&&(a=d)}this.list.Wf(c);this.list.Jk(a);this.list.G.wx(0)}av(b){this.close();this.$a(v.fa.$d,this,{DL:this.DL,oca:this.oca,DZ:b.data.ql,origin:this.origin})}Su(b,a){var c=new x.Ci.SX;c.setData(b);c.Tm(a);return c}close(){this.eb();this.Yv&&this.Yv.focus({preventScroll:!0})}}h.FI=f})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.Ft=this.tn=null}update(a,c,d,g){this.fe=a;this.Qb=c;this.ao=d;this.Ft=g;this.Jy();this.uq();this.VN()}uq(){this.ob=this.$C();this.rows=this.nH();this.tfa(this.rows);this.Ka=this.cH();this.tfa(this.Ka);this.Ba=this.hd();this.gDa(this.Ba);this.ZZ()}VN(){this.vb=[];this.Ye=[];this.ysa(this.vb,this.WG());this.pCa&&this.aIa(this.vb);this.Hsa(this.vb,this.us());e.model.C.F.iia&&this.bIa(this.vb);this.lI(this.vb);if(b.h0){b.h0=
!1;var a=this.vb.find(c=>c.A==="/"+e.model.B.j.l7);null!=a&&this.hca(a)}this.hl(this.ob);this.hl(this.Ka);this.hl(this.rows);this.hl(this.Ba)}Yu(a){if(null!=this.fe){var c=this.us().find(g=>g.A===a);if(null!=c){c.ng=!0;c.rl=this.wz;var d=this.Ba.findIndex(g=>g.A===a);0<=d?(c.G1=!0,this.Ba[d]=c):this.Ba.push(c)}this.VN()}}Zu(a){if(null!=this.Qb&&null!=this.fe){const c=this.Ba.findIndex(d=>d.A===a);-1<c&&this.Ba.splice(c,1);this.b5();this.VN()}}ZZ(){this.tn=null}b5(){this.tn={pages:this.ob,rows:this.rows,
columns:this.Ka,measures:this.Ba}}tfa(a){a=a.find(c=>"[Measures]"===c.A);null!=a&&(a.caption=e.model.B.j.HA,a.cU=!0)}gDa(a){for(var c=0;c<a.length;c++)a[c].ng=!0,a[c].rl=e.model.C.F.rl&&!a[c].Tg}hl(a){for(var c,d=0;d<a.length;d++){a[d].yd=!0;c=this.yca(a[d].A,a[d].ng);var g=this.Qb.wc().getItem(a[d].A);if(null!=c&&(this.aj(c,!0),c.Wi))for(var k=0;k<c.children.length;k++)g.gg==c.children[k].A&&this.aj(c.children[k],!0);a[d].Wi&&null!=g.oc&&(a[d].caption=a[d].caption+" / "+g.oc.caption)}}aj(a,c){a.yd=
c;null!=a.parent&&a.parent.yd!=c&&(1==c?this.aj(a.parent,c):0==this.cBa(a.parent.children)&&this.aj(a.parent,c));if(a.Wi&&0==c)for(var d=0;d<a.children.length;d++)this.aj(a.children[d],c)}cBa(a){for(var c=0;c<a.length;c++)if(!0===a[c].yd)return!0;return!1}Asa(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.ia(n)){g=g+(e.ia(g)?"":"/")+n;var p="[Folder]."+g;(d=this.Ye.find(t=>t.A===p))?k=d:(d=new h.X.fj,d.wf=!0,d.A=p,d.caption=n,d.children=[],this.Ye.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}ysa(a,c){for(var d,g,k,m=0;m<c.length;m++){k=this.fe.cf(c[m].A);var n=null!=k&&k.type!=e.u.i.Pa.xc,p=this.ao==e.u.i.qa.ag||this.ao==e.u.i.qa.API||this.ao==e.u.i.qa.JSON||this.ao==e.u.i.qa.Sh||this.ao==e.u.i.qa.Dq;c[m].Hea=null!=k&&k.type==e.u.i.Pa.jb;c[m].Uw=null!=k&&k.type==e.u.i.Pa.dc;c[m].IBa=null!=k&&k.type==e.u.i.Pa.Jc;e.ia(c[m].Mc)||!n&&!p?(d=a.find(t=>t.A===c[m].sL),null==d&&(d=new h.X.fj,d.wf=!0,d.A=c[m].sL,
d.caption=c[m].EG,d.children=[],d.level=0,d.description=d.description,a.push(d),this.Ye.push(d)),c[m].Qj?(k=e.ia(c[m].Mc)?d:g,k=k.children.find(t=>t.A===c[m].Pg),c[m].level=k.level+1,c[m].parent=k,null==k.children&&(k.children=[]),k.children.push(c[m]),k.Wi=!0):e.ia(c[m].Mc)?(c[m].level=1,c[m].parent=d,d.children.push(c[m])):(g=d.children.find(t=>t.A===d.A+c[m].Mc),null==g&&(g=new h.X.fj,g.wf=!0,g.A=d.A+c[m].Mc,g.caption=c[m].Mc,g.children=[],g.level=1,g.parent=d,g.description=d.description,d.children.push(g),
this.Ye.push(g)),c[m].level=2,c[m].parent=g,g.children.push(c[m]))):(g=c[m].Qj?this.Ye.find(t=>t.A===c[m].Pg):this.Ye.find(t=>t.A==="[Folder]."+c[m].Mc),null==g&&(g=this.Asa(a,c[m].Mc)),c[m].level=g.level+1,c[m].parent=g,e.v(g.children)&&(g.children=[]),g.children.push(c[m]));this.Ye.push(c[m])}}Hsa(a,c){for(let k=0;k<c.length;k++){c[k].ng=!0;c[k].rl=e.model.C.F.rl&&!c[k].Tg;c[k].Na&&(c[k].Dg=e.model.B.j.l7);var d=null;if(this.wz){var g=this.Gia(c[k].A);d=this.Ye.find(m=>m.A===g&&!m.wf)}this.wz&&
null!=d?(d.Vg=c[k],d.Vg.xT=d,c[k].parent=d.parent):""!==c[k].Dg?(d=this.Ye.find(m=>m.A==="[Folder]."+c[k].Dg+"/"+c[k].Mc),null==d&&(d=this.Gsa(a,c[k].Dg,c[k].Mc,c[k].Tg,c[k].Na)),c[k].level=d.level+1,c[k].parent=d,d.children.push(c[k])):(c[k].level=0,a.push(c[k]));this.Ye.push(c[k])}}Gsa(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.ia(t)){c=c+(e.ia(c)?"":"/")+t;var r="[Folder]."+c;m=this.Ye.find(w=>w.A===r);e.v(m)&&0==p&&(m=
this.Ye.find(w=>w.caption===t))&&!m.wf&&(m=null);m?n=m:(m=new h.X.fj,m.wf=!0,m.A=r,m.caption=t,m.children=[],m.Ou=!0,m.Tg=g,m.xH=k,this.Ye.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}aIa(a){for(var c,d=0;d<a.length;d++)if(!0===a[d].wf&&1==a[d].children.length&&!0!==a[d].children[0].wf&&!a[d].children[0].Na&&(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}bIa(a){for(var c=
0;c<a.length;c++)!0===a[c].wf&&!0!==a[c].xH&&(a[c]=this.C$(a[c].children,a[c]))}C$(a,c){for(var d=0;d<a.length;d++)!0===a[d].wf&&(a[d]=this.C$(a[d].children,a[d]));return 1==a.length&&!0!==a[0].wf?(a=a[0],a.level=c.level,a.parent=c.parent,a):c}lI(a){this.fe.Qu||(e.v(this.Ft)?a.sort((c,d)=>{var g=this.ZL(c),k=this.ZL(d);return g==k?c.caption.localeCompare(d.caption):k-g}):a.sort((c,d)=>this.Ft(h.X.fj.eW(c),h.X.fj.eW(d),"pivot")))}ZL(a){return!0===a.Qj?0:e.model.C.F.Je?a.xH?-1:0:!0===a.wf&&!0!==a.Ou?
3:!0!==a.wf&&!0!==a.ng?2:!0===a.wf&&!0===a.Ou?1:0}Naa(a){if(!this.Io){for(var c=this.vb.indexOf(a)+1,d=0;d<a.children.length;d++)!0===a.children[d].Sf&&this.Naa(a.children[d]);this.vb.splice(c,a.children.length);a.Sf=!1}}hca(a){if(!this.Io){var c=this.vb.indexOf(a)+1;a.Wi&&e.v(this.Ft)||this.lI(a.children);e.Ja.insert(this.vb,a.children,c);a.Sf=!0}}Gia(a){a=this.fe.Ck(a);return null!=a?a.A:""}iKa(a){a=this.fe.cf(a);return null!=a?a.A:""}fh(a){for(var c=0;c<this.Ye.length;c++)if(!this.Ye[c].ng&&!this.Ye[c].wf&&
this.Ye[c].A==a)return this.Ye[c]}gd(a){for(var c=0;c<this.Ye.length;c++)if(this.Ye[c].ng&&!this.Ye[c].wf&&this.Ye[c].A==a)return this.Ye[c]}yca(a,c=!1){return c?this.gd(a):this.fh(a)}Z1(){return 0<this.Ba.length}iM(){const a=new h.X.Ppa;a.ob=this.ob.map(d=>h.X.GP.CS(d));a.rows=this.rows.map(d=>h.X.GP.CS(d));a.Ka=this.Ka.map(d=>h.X.GP.CS(d));a.Ba=this.Ba.map(d=>h.X.GP.CS(d));a.Ng=this.Qb?this.Qb.Ng:[];a.ih=this.Qb?this.Qb.ih:[];if(this.Qb){if(this.Qb.cc.Yf){var c=this.Qb.cc.Qa();void 0===a.Bj&&(a.Bj=
{});a.Bj.row=c.sort}this.Qb.Rb.Yf&&(c=this.Qb.Rb.Qa(),void 0===a.Bj&&(a.Bj={}),a.Bj.column=c.sort)}return a}aU(a){return null==this.Qb?!0:this.IT(a.ob,this.Qb.ob.Nc())||this.IT(a.rows,this.Qb.rows.Nc())||this.IT(a.Ka,this.Qb.Ka.Nc())||this.IT(a.Ba,this.Qb.hd())}IT(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].aa!=c[d].aa||a[d].gg!=c[d].gg||a[d].G1)return!0;return!1}get wz(){var a=this.ao;return a==e.u.i.qa.Sh&&!e.model.C.F.Je||a==e.u.i.qa.Dq&&!e.model.C.F.Je||
a==e.u.i.qa.JSON&&!e.model.C.F.Je||a==e.u.i.qa.ag||a==e.u.i.qa.API}get MT(){for(var a=0;a<this.vb.length;a++)if((this.vb[a].wf||this.vb[a].Ou||this.vb[a].Wi)&&!this.vb[a].Sf)return!0;return!1}get Qda(){for(var a=0;a<this.vb.length;a++)if(this.vb[a].wf||this.vb[a].Ou||this.vb[a].Wi)return!0;return!1}Maa(){if(!this.Io){for(var a=0;a<this.vb.length;a++)if(this.vb[a].wf||this.vb[a].Ou||this.vb[a].Wi)this.vb[a].Sf=!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)}}Qc(){if(!this.Io){this.Maa();for(var a=0;a<this.vb.length;a++)(this.vb[a].wf||this.vb[a].Wi)&&this.sra(this.vb[a],a+1)}}sra(a,c){a.Sf=!0;null!=a.children&&0<a.children.length&&(this.lI(a.children),e.Ja.insert(this.vb,a.children,c))}$C(){return null!==this.tn?this.tn.pages:null!=this.Qb?this.MR(this.Qb.ob):[]}nH(){return null!==this.tn?this.tn.rows:null!=this.Qb?this.MR(this.Qb.rows):[]}cH(){return null!==this.tn?this.tn.columns:null!=this.Qb?this.MR(this.Qb.Ka):
[]}hd(){return null!==this.tn?this.tn.measures:null!=this.Qb?h.X.fj.gL(this.Qb.hd()):[]}WG(){return null!=this.fe?this.MR(this.fe.wc(!1),!0):[]}us(){return null!=this.fe?h.X.fj.gL(this.fe.Ba.Nc()):[]}MR(a,c=!1){for(var d=[],g=0;g<a.length;g++){var k=a.ea(g),m=this.fe.cf(k.A),n=new h.X.fj;c||null==k.oc?(n.A=k.A,n.caption=k.caption,n.sL=k.si.A,n.EG=k.si.caption,n.Mc=k.Mc,n.Qj=!1,n.Wi=k.mg&&c):(n.A=k.oc.A,n.caption=k.oc.caption,n.sL=k.si.A,n.EG=k.si.caption,n.Pg=k.A,n.w1=k.caption,n.Qj=!0,n.Wi=!1);n.Tw=
m?m.Tw():!1;n.description=k.description;d.push(n);if(k.mg&&c)for(m=0;m<k.ta.length;m++)if(0!=m){var p=k.ta.ea(m);n=new h.X.fj;n.A=p.A;n.caption=p.caption;n.sL=k.si.A;n.EG=k.si.caption;n.Mc=k.Mc;n.Pg=k.A;n.w1=k.caption;n.Qj=!0;n.Wi=!1;n.Tw=!1;n.description=p.description;d.push(n)}}return d}search(a){a=a.toLowerCase();if(this.td!=a){this.td=a;this.Uz=[];for(var c=this.Ye.length,d=0;d<c;d++){var g=this.Ye[d];g.wf||g.ng&&this.wz&&!g.Na||!e.P.contains(g.caption,a)||(g.td=a,this.Nsa(g,this.Uz),this.Uz.push(g))}}}Nsa(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])}}Jy(){this.td="";this.Uz=null}get pCa(){return e.model.Va.V().Ia.ga.Da!=e.u.i.qa.Tc}get Io(){return!e.ia(this.td)}get $T(){return e.model.C.F.L4||this.Ye&&50<this.Ye.length}get rD(){return(!e.model.Va.V().Ia.ga.Gc||e.model.Va.V().Ia.ga.Da===e.u.i.qa.API)&&e.model.C.F.G4||e.model.C.F.bu&&e.model.Va.V().Ia.ga.Da===e.u.i.qa.Tc}get BT(){return this.rD&&
!this.Yc.nb}get Oa(){return this.Io?this.Uz:this.vb}get Yc(){return this.fe}mE(a){this.Qb=a}}b.h0=!1;f.H8=b})(h.Jt||(h.Jt={}))})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends v.Ah{constructor(a,c){super();this.type="pivot";this.hK=!1;this.Fy=d=>this.Yu(d);this.Gy=d=>this.Zu(d);this.Hy=()=>this.XM();this.model=new f.H8;this.hK=c;this.view=this.Re?new f.cpa:new f.bpa(this,a);this.view.N(v.fa.CLOSED,d=>this.Fa(d));this.zd=[this.view.og,this.view.xf,this.view.Tf,this.view.Ub];this.view.Uh&&this.view.Uh.N(x.Md.mf,()=>this.KD());this.view.Ne&&this.view.Ne.N(x.Md.mf,()=>this.Is());null!=this.view.hg&&this.view.hg.N(v.fa.$d,
d=>this.H2(d));this.view.fb&&(this.view.fb.G.N("click",d=>this.b3(d)),this.view.fb.G.N("keydown",d=>this.c3(d)),this.view.fb.ps({Pm:d=>this.$Ea(d),O2:(d,g)=>this.Vfa(d,g),Om:(d,g)=>this.Vfa(d,g),Zl:(d,g,k,m)=>this.Zl(d,g,k,m),zz:"li"}),this.view.fb.G.Ol());a={Pm:(d,g,k,m)=>this.Pm(d,g,k,m),Om:(d,g,k,m)=>this.Om(d,g,k,m),Zl:(d,g,k,m)=>this.Zl(d,g,k,m),zz:"li",scroll:!0};this.view.og&&(this.view.og.ps(a),this.view.og.G.N("dblclick",d=>this.IU(d)),this.view.og.G.N("keydown",d=>this.JU(d,this.view.og)),
this.view.og.G.Ol());this.view.xf&&(this.view.xf.ps(a),this.view.xf.G.N("dblclick",d=>this.IU(d)),this.view.xf.G.N("keydown",d=>this.JU(d,this.view.xf)),this.view.xf.G.Ol());this.view.Tf&&(this.view.Tf.ps(a),this.view.Tf.G.N("dblclick",d=>this.IU(d)),this.view.Tf.G.N("keydown",d=>this.JU(d,this.view.Tf)),this.view.Tf.G.Ol());this.view.Ub&&(this.view.Ub.G.N("click",d=>this.xFa(d)),this.view.Ub.G.N("dblclick",d=>this.IU(d)),this.view.Ub.G.N("keydown",d=>this.JU(d,this.view.Ub)),this.view.Ub.ps(a),this.view.Ub.G.Ol());
this.view.pi&&this.view.pi.N(x.Md.mf,()=>this.BU());this.view.WB&&this.view.WB.N(x.Md.mf,()=>this.BU());this.view.Zt&&this.view.Zt.N(x.Md.mf,()=>this.eEa());this.view.he&&(this.view.he.yV(500),this.view.he.N(x.Hj.Mx,()=>this.cN()));this.view.qe&&(this.view.qe.N("click",()=>this.Js()),this.view.qe.N("keydown",d=>this.Kz(d,!1)));this.view.$i&&(this.view.$i.N("click",()=>this.Ks()),this.view.$i.N("keydown",d=>this.Kz(d,!0)))}get Re(){return this.hK}Is(){this.Re?e.ph.instance.YK():this.view.close()}KD(){this.ne();
this.view.close()}Kz(a,c){if(32===a.keyCode||13===a.keyCode)c?this.Ks():this.Js()}Js(){this.view.Ve.$("fm-search-opened");this.view.he.G.focus()}Ks(){this.view.Ve.Fd("fm-search-opened");this.view.he.clear();this.view.qe.G.focus()}cN(){this.model.search(this.view.he.Ti());this.view.fb.G.Wa("fm-searched",this.model.Io);this.view.fb.Wf(this.model.Oa);this.Nn(this.view.fb);this.view.Zt&&this.view.Zt.isVisible(this.model.Qda&&!this.model.Io)}ne(){var a=this.model.iM();this.model.aU(a)&&(a=e.u.O.Lr.zb(e.model.hb.pp.zb(a.Qa()),
this.model.Yc),this.Re&&(a.z2=!1,e.ph.instance.$D(),this.model.mE(a)),e.model.Va.V().ne(a))}Yu(a){e.model.Va.V().sb(l.Na.ak.qA,this.Fy);this.model.Yu(a.Cs);this.Vm();this.Re&&this.ne()}Zu(a){e.model.Va.V().sb(l.Na.ak.rA,this.Gy);this.model.Zu(a.Cs);this.Vm();this.Re&&this.ne()}XM(){this.view.rI=!1;e.model.Va.V().sb(l.Na.ak.sA,this.Hy);this.view.fb.focus({preventScroll:!0})}BU(){this.TH()}eEa(){this.model.MT?this.model.Qc():this.model.Maa();this.Nn(this.view.fb);this.view.Xf()}IU(a){var c=x.Ea.Vb(a.target).closest("ul");
null!=c&&(c=this.Jw(c),a=x.Ea.Vb(a.target).closest("li"),null!=a&&(a=parseInt(a.attr("data-index")),this.mV(c,a)))}xFa(a){a=x.Ea.Vb(a.target);var c=a.closest("li");if(null!=c){c=parseInt(c.attr("data-index"));var d=this.model.Ba[c];a.Rc("fm-aggr-display")?this.view.hg.Po(d,a,c):a.Rc("fm-calc-display")&&this.TH(d.A)}}H2(a){this.Yz(a.data.DL,a.data.DZ)}Yz(a,c){a.aa=c.aa;a.caption=e.model.C.F.xx?e.P.bind(c.fW,a.name):a.name;this.view.Ub.xr(a);let d=this.model.Oa.find(g=>g.A===a.A);null!=d&&(this.model.wz&&
null!=d.Vg&&(d=d.Vg),d.aa=a.aa,d.caption=a.caption,this.view.fb.xr(g=>g.A===d.A));this.Re&&this.ne()}TH(a=null){this.view.rI=!0;e.model.Va.V().Fa(new l.Na.HW(a));e.model.Va.V().N(l.Na.ak.qA,this.Fy);e.model.Va.V().N(l.Na.ak.sA,this.Hy);e.ia(a)||e.model.Va.V().N(l.Na.ak.rA,this.Gy)}ez(a){const c=[];for(let d=0;d<a.Wc.length;d++){const g={caption:a.RK[d],aa:a.Wc[d]};void 0!=a.ew&&(g.fW=a.ew[d]);c.push({label:e.u.i.da.fG(a.Wc[d]),isSelected:a.Wc[d]==a.aa,handler:()=>this.Yz(a,g)})}return c}JU(a,c){if(32===
a.keyCode||13===a.keyCode){if(this.view.Si){const d=c.Au();if(e.v(d))return;const g=[];!0!==d.data.cU&&g.push({label:e.model.B.j.YW,handler:()=>this.Lh(0,d.data,d.index,c)});0<d.index&&g.push({label:e.model.B.j.i7,handler:()=>this.Lh(4,d.data,d.index,c)});d.index<c.zc().length-1&&g.push({label:e.model.B.j.d7,handler:()=>this.Lh(5,d.data,d.index,c)});d.data.ng&&!d.data.Na&&g.push({label:e.model.B.j.XW,submenu:this.ez(d.data)});c!=this.view.xf&&this.Lu(d.data,c,this.view.xf)&&g.push({label:e.model.B.j.g7,
handler:()=>this.Lh(6,d.data,d.index,c)});c!=this.view.Tf&&this.Lu(d.data,c,this.view.Tf)&&g.push({label:e.model.B.j.e7,handler:()=>this.Lh(7,d.data,d.index,c)});c!=this.view.og&&this.Lu(d.data,c,this.view.og)&&g.push({label:e.model.B.j.f7,handler:()=>this.Lh(8,d.data,d.index,c)});c!=this.view.Ub&&this.Lu(d.data,c,this.view.Ub)&&g.push({label:e.model.B.j.h7,handler:()=>this.Lh(9,d.data.Vg,d.index,c)});d.data.Na&&g.push({label:e.model.B.j.ZW,handler:()=>this.Lh(10,d.data,d.index),preventFocusRestore:!0});
this.view.Si.Po(this.view.G,g,d.element.lg(),{top:10,left:10})}a.preventDefault()}}c3(a){if(32===a.keyCode||13===a.keyCode){if(this.view.Si){const c=this.view.fb.Au();if(e.v(c))return;if(c.data.wf){this.Lh(2,c.data,c.index);return}const d=[];c.data.Wi&&d.push({label:c.data.Sf?e.model.B.j.Ela:e.model.B.j.Fla,handler:()=>this.Lh(2,c.data,c.index)});this.P1(c.data)&&d.push({label:e.model.B.j.YW,handler:()=>this.Lh(1,c.data,c.index)});this.Lu(c.data,this.view.fb,this.view.xf)&&d.push({label:e.model.B.j.g7,
handler:()=>this.Lh(6,c.data,c.index,this.view.fb)});this.Lu(c.data,this.view.fb,this.view.Tf)&&d.push({label:e.model.B.j.e7,handler:()=>this.Lh(7,c.data,c.index,this.view.fb)});this.Lu(c.data,this.view.fb,this.view.og)&&d.push({label:e.model.B.j.f7,handler:()=>this.Lh(8,c.data,c.index,this.view.fb)});if(this.Lu(c.data,this.view.fb,this.view.Ub)){const g={label:e.model.B.j.h7,handler:()=>this.Lh(9,c.data.Vg,c.index,this.view.fb)};c.data.Hea?d.splice(this.P1(c.data)?1:0,0,g):d.push(g)}c.data.Na&&d.push({label:e.model.B.j.ZW,
handler:()=>this.Lh(10,c.data,c.index),preventFocusRestore:!0});this.view.Si.Po(this.view.G,d,c.element.lg(),{top:10,left:10})}a.preventDefault()}}Lh(a,c,d,g=null){1==a?(1==c.yd&&(this.model.aj(c,!1),this.tu(c)),null!=c.Vg&&1==c.Vg.yd&&(this.model.aj(c.Vg,!1),this.tu(c.Vg)),this.x5(this.view.fb,d),this.ct(),this.Re&&this.ne()):0==a?(this.mV(g,d),g.Ei(Math.min(d,g.zc().length-1))):6==a?(g==this.view.fb?this.ty(g,this.view.xf,d,this.model.rows.length):this.Fs(g,this.view.xf,d,this.model.rows.length),
g.Ei(Math.min(d,g.zc().length-1))):7==a?(g==this.view.fb?this.ty(g,this.view.Tf,d,this.model.Ka.length):this.Fs(g,this.view.Tf,d,this.model.Ka.length),g.Ei(Math.min(d,g.zc().length-1))):8==a?(g==this.view.fb?this.ty(g,this.view.og,d,this.model.ob.length):this.Fs(g,this.view.og,d,this.model.ob.length),g.Ei(Math.min(d,g.zc().length-1))):9==a?(g==this.view.fb?this.ty(g,this.view.Ub,d,this.model.Ba.length):this.Fs(g,this.view.Ub,d,this.model.Ba.length),g.Ei(Math.min(d,g.zc().length-1))):4==a?(this.Fs(g,
g,d,d-1),g.Ei(d-1)):5==a?(this.Fs(g,g,d,d+2),g.Ei(d+1)):2==a?(c.Sf?this.model.Naa(c):this.model.hca(c),this.Nn(this.view.fb),this.view.Xf()):10==a?this.TH(c.A):11==a&&this.view.hg.Po(c,null.find(".fm-aggr-display"))}b3(a){const c=this.view.fb.IC(a.target);if(!e.v(c))if(a=x.Ea.Vb(a.target),a.Rc("fm-aggr-display"))this.view.hg.Po(c.data,a);else if(a.Rc("fm-calc-display"))this.Lh(10,c.data,c.index);else if(c.data.wf||c.data.Wi&&!a.Rc("fm-moreicon-display"))this.Lh(2,c.data,c.index);else{if(this.P1(c.data))1==
c.data.yd&&(this.model.aj(c.data,!1),this.tu(c.data)),null!=c.data.Vg&&1==c.data.Vg.yd&&(this.model.aj(c.data.Vg,!1),this.tu(c.data.Vg));else if(c.data.ng&&c.data.Tw){this.model.aj(c.data,!0);a=[];for(var d in c.data)c.data[d]instanceof h.X.fj&&a.push(d);d=u.Sc.nj(c.data,a);this.model.Ba.push(d);this.Nn(this.view.Ub)}else if(c.data.Vg&&c.data.Tw&&c.data.Vg.type!=e.u.i.Pa.xc&&c.data.Vg.type!=e.u.i.Pa.Sa){this.model.aj(c.data.Vg,!0);a=[];for(d in c.data.Vg)c.data.Vg[d]instanceof h.X.fj&&a.push(d);d=
u.Sc.nj(c.data.Vg,a);this.model.Ba.push(d);this.Nn(this.view.Ub)}else{if(c.data.Qj)for(c.data.parent.yd&&this.tu(c.data.parent),d=0;d<c.data.parent.children.length;d++)a=c.data.parent.children[d],a.A!=c.data.A&&(a.yd&&this.tu(a),a.yd=!1);this.model.aj(c.data,!0);this.model.rows.push(c.data);this.Nn(this.view.xf)}this.x5(this.view.fb,c.index);this.ct();this.Re&&this.ne()}}x5(a,c){a.bt(c);c=a.zc()[c];null!=c.parent&&this.ZN(a,c.parent);if(c.Wi)for(var d=0;d<c.children.length;d++)a.xr(c.children[d]);
if(c.Qj)for(d=0;d<c.parent.children.length;d++)a.xr(c.parent.children[d])}ZN(a,c,d=null){a.xr(d||c);c.parent&&this.ZN(a,c.parent);if(c.Wi)for(d=0;d<c.children.length;d++)a.xr(c.children[d]);if(c.Qj)for(d=0;d<c.parent.children.length;d++)a.xr(c.parent.children[d])}jx(){return!0}$Ea(a){if(a&&a.closest("ul")){var c=parseInt(a.attr("data-index"));a=this.Jw(a.closest("ul"));a!=this.view.fb&&this.mV(a,c)}}Vfa(a,c){a&&a.closest("ul")&&(a=this.Jw(a.closest("ul")),a!=this.view.fb&&(c&&c.$("fm-drag-remove"),
a.G.Rc("fm-droppable")?c&&c.$("fm-droppable-valid"):c&&c.$("fm-droppable-invalid")))}Om(a,c,d,g){let k;g instanceof MouseEvent?(k=x.Ea.Vb(g.target),g=g.clientY):(g=g.changedTouches[0],k=x.Ea.Vb(document.elementFromPoint(g.clientX,g.clientY)),g=g.clientY);if(!k.Rc("fm-drop-indicator")&&(this.dm(),c&&(c.Fd("fm-no-drop"),c.Fd("fm-drag-remove")),a&&a.closest("ul"))){d instanceof x.zd.ij||(d=this.Jw(d));var m=this.Jw(a.closest("ul"));m.G.Rc("fm-droppable")&&(this.Lu(this.$ca(a,m),m,d)?this.rE(k,g):c.$("fm-no-drop"))}}P1(a){return a.yd||
a.Vg&&a.Vg.yd}Lu(a,c,d){return a.cU&&d!=this.view.Tf&&d!=this.view.xf||!1===a.Tw&&d==this.view.Ub||0==this.model.wz&&(d!=this.view.Ub&&(a.ng||a.Tg)||d==this.view.Ub&&!a.ng&&!a.Tg)||a.Na&&d!=this.view.Ub||a.children&&0<a.children.length&&d==this.view.Ub?!1:a.Na&&d==this.view.Ub&&c==this.view.Ub?!0:a.Na&&d==this.view.Ub?e.v(this.view.Ub.zc().find(g=>g.A===a.A)):c==this.view.fb&&null!=d.zc().find(g=>g.A===a.A)&&d!=this.view.Ub?!1:!0}$ca(a,c){a=parseInt(a.attr("data-index"));return c.zc()[a]}Zl(a,c){this.dm();
c&&(c.Fd("fm-no-drop"),c.Fd("fm-drag-remove"));if(a&&a.closest("ul")&&c){c.Fd("fm-droppable-valid");c.Fd("fm-droppable-invalid");const d=this.Jw(a.closest("ul"));a.Rc("fm-values")||d==this.view.fb||c.$("fm-drag-remove")}}Pm(a,c){if(null!=this.wd)if(a&&a.closest("ul")){c=c instanceof x.zd.ij?c:this.Jw(c);var d=this.Jw(a.closest("ul"));if(0==this.Lu(this.$ca(a,d),d,c))this.dm();else{var g=c.zc().length;this.wd.element.previousElementSibling?g=parseInt(this.wd.element.previousElementSibling.getAttribute("data-index"))+
1:this.wd.element.nextElementSibling&&(g=parseInt(this.wd.element.nextElementSibling.getAttribute("data-index")));this.dm();a=parseInt(a.attr("data-index"));d==this.view.fb&&c!=this.view.fb?this.ty(d,c,a,g):this.Fs(d,c,a,g);a=c.G.element.scrollTop;this.gja();c.G.wx(a);c.vN(g)}}else this.dm()}$u(a){if(a&&a.closest("ul")){var c=parseInt(a.attr("data-index"));a=this.Jw(a.closest("ul"));a!=this.view.fb&&this.mV(a,c)}}rE(a,c){const d=a.closest("li");null!=d?(this.wd=this.sw(),a=d.getBoundingClientRect(),
c>a.top+.75*a.height?d.after(this.wd):d.before(this.wd)):(c=a.closest("ul"),null!=c&&(this.wd=this.sw(),c.append(this.wd)))}sw(){return new x.Ea("div","fm-drop-indicator")}dm(){this.wd&&(this.wd.Gg(!0),this.wd=null)}Fs(a,c,d,g){var k=a.zc()[d];a==c?(a=c.zc(),d<g&&--g,a.splice(g,0,a.splice(d,1)[0])):(k=a.zc()[d],a.zc().splice(d,1),a.yr(),c==this.view.Ub&&(this.model.aj(k,!1),k=this.model.gd(this.model.iKa(k.Qj?k.Pg:k.A)),null!=k.xT&&this.model.aj(k.xT,!1)),a==this.view.Ub&&(-1==a.zc().findIndex(m=>
m.A===k.A)&&this.model.aj(k,!1),k=this.model.fh(this.model.Gia(k.A)),null!=k.Vg&&this.model.aj(k.Vg,!1)),null!=k&&(this.model.aj(k,!0),this.tu(k,null,!0),c.zc().splice(g,0,k)));this.Nn(c);this.ct();this.Re&&this.ne()}ty(a,c,d,g){var k=a.zc()[d];if(k.Qj){k.parent.yd&&this.tu(k.parent);for(d=0;d<k.parent.children.length;d++){var m=k.parent.children[d];m.A!=k.A&&(m.yd&&this.tu(m),m.yd=!1)}this.ZN(this.view.fb,k)}this.model.wz&&c==this.view.Ub&&null!=k.Vg&&(k=k.Vg);k.yd&&!k.ng?(this.model.aj(k,!1),this.tu(k,
a,!0),this.model.aj(k,!0)):(this.model.aj(k,!0),a=this.view.fb.zc().findIndex(p=>p.A===k.A),this.x5(this.view.fb,a));if(this.model.wz&&c==this.view.Ub&&k.ng){a=[];for(var n in k)k[n]instanceof h.X.fj&&a.push(n);k=u.Sc.nj(k,a)}c.zc().splice(g,0,k);this.Nn(c);this.ct();this.Re&&this.ne()}mV(a,c){if(!(a.zc().length<=c)){var d=a.zc()[c];if(!d.cU){a.zc().splice(c,1);this.Nn(a);if(!(d.ng&&-1<this.view.Ub.zc().findIndex(g=>g.A===d.A))){a=this.model.yca(d.A,d.ng);if(null!=a){this.model.aj(a,!1);const g=null!=
a.xT?a.xT:a;this.ZN(this.view.fb,g,k=>k.A===g.A);a.Qj&&(this.model.aj(a.parent,!1),this.ZN(this.view.fb,a.parent))}this.ct()}this.Re&&this.ne()}}}tu(a,c=null,d=!1){for(var g=-1,k=0;k<this.zd.length;k++)if(this.zd[k]!=c&&(this.zd[k]!=this.view.Ub||!d))for(var m=!0;m||-1<g;)m=!1,g=this.zd[k].zc().findIndex(n=>n.A===a.A||n.Pg===a.A),-1==g&&(g=this.zd[k].zc().findIndex(n=>n.A===a.A||n.Pg===a.A)),-1<g&&(this.zd[k].zc().splice(g,1),this.Nn(this.zd[k]))}Jw(a){return a.element==this.view.fb.G.element?this.view.fb:
a.element==this.view.og.G.element?this.view.og:a.element==this.view.xf.G.element?this.view.xf:a.element==this.view.Tf.G.element?this.view.Tf:a.element==this.view.Ub.G.element?this.view.Ub:null}update(a,c,d="",g=!0){g&&this.model.update(a,c,d,h.gp.pS);this.Vm(!0)}ct(){this.view.Uh&&this.view.Uh.oq(this.model.Z1())}get MT(){return this.model.MT}Vm(a=!1){this.view.reset&&this.view.reset();this.view.pi&&(this.view.pi.isVisible(this.model.rD),this.view.pi.oq(this.model.BT));this.view.WB&&(this.view.WB.isVisible(this.model.rD),
this.view.WB.oq(this.model.BT));this.view.fb&&this.view.fb.Wf(this.model.Oa,!1);this.view.og&&this.view.og.Wf(this.model.ob,!1);this.view.xf&&this.view.xf.Wf(this.model.rows,!1);this.view.Tf&&this.view.Tf.Wf(this.model.Ka,!1);this.view.Ub&&this.view.Ub.Wf(this.model.Ba,!1);this.view.Zt&&this.view.Zt.isVisible(this.model.Qda);this.view.Ve&&this.view.Ve.isVisible(this.model.$T);this.view.he&&(this.view.he.clear(!1),this.model.Jy());this.view.Xf();this.view.G.requestAnimationFrame(()=>{this.gja();a&&
e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.VE))})}Nn(a){a.yr();var c={jx:g=>this.jx(g),ro:g=>this.view.ro(g)};u.Kd().Mm&&(c.lT=".fm-drag-handle");var d=a.G.find("li",!0);if(a==this.view.fb)for(a=0;a<d.length;a++)d[a].Rc("fm-folder")&&!d[a].Rc("fm-level-folder")||d[a].draggable(c);else for(a.ps({Pm:(g,k,m,n)=>this.Pm(g,k,m,n),Om:(g,k,m,n)=>this.Om(g,k,m,n),Zl:(g,k,m,n)=>this.Zl(g,k,m,n),zz:"li",scroll:!0}),c.$u=g=>this.$u(g),a=0;a<d.length;a++)d[a].draggable(c)}gja(){try{this.ct(),this.Nn(this.view.fb),
this.Nn(this.view.og),this.Nn(this.view.xf),this.Nn(this.view.Tf),this.Nn(this.view.Ub)}catch(a){}}}f.G8=b})(h.Jt||(h.Jt={}))})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.be.ay{constructor(a,c){super(c);this.xE=0;this.controller=a;this.$("fm-pivot-fields");this.He();this.G.Ol();this.G.Zi({QV:[x.Zi.ji.Hi,x.Zi.ji.YE,x.Zi.ji.pF],KR:l.Mb.Fb.G,FZ:!0,resize:d=>this.eN(d),complete:()=>this.zp()})}eN(a){a.sE==x.Zi.ji.YE||a.sE==x.Zi.ji.pF?(this.Xj(a.size.width+(a.size.width-a.J3.width)),this.zp()):a.sE==x.Zi.ji.Hi&&this.pq(a.size.height);this.TB()}He(){var a=new x.Ma("div","fm-popup-header fm-ui-row");this.W(a);
var c=new x.Ma("div","fm-ui-col fm-vam");a.W(c);this.Yw=new x.Uc(e.model.B.j.Ox);this.Yw.$("fm-popup-title");c.W(this.Yw);this.Xw=new x.Uc(e.model.B.j.n7);this.Xw.$("fm-popup-subtitle");c.W(this.Xw);c=new x.Ma("div","fm-ui-col fm-vam fm-tar fm-ui-btns-row");a.W(c);this.pi=new x.Kg("fm-btn-add-measure fm-ui-btn-light fm-icon-act_calc");this.pi.cb(e.model.B.j.GA);c.W(this.pi);this.Ne=new x.Kg;this.Ne.cb(e.model.B.j.wl);this.Uh=new x.Kg("fm-ui-btn-dark");this.Uh.cb(e.model.B.j.Kx);u.hj.vD||u.hj.Ho?(c.W(this.Ne),
c.W(this.Uh)):(c.W(this.Uh),c.W(this.Ne));a=new x.Ma("div","fm-popup-content");this.W(a);var d=new x.Ma("div","fm-ui-row");a.W(d);c=new x.Ma("div","fm-ui-col-3");d.W(c);var g=new x.Ma("div","fm-list-wrap fm-list-wrap-all");c.W(g);var k=new x.Ma("div","fm-list-header fm-list-header-wide");g.W(k);c=new x.Ma("div","fm-list-header-label-wrap");k.W(c);this.LM=new x.Uc(e.model.B.j.rv);c.W(this.LM);this.Zt=new x.Md("fm-ui-link-btn fm-btn-collapse-expand-all");this.Zt.Fd("fm-ui-btn");this.Zt.cb(e.model.B.j.j7);
c.W(this.Zt);this.Ve=new x.Ma("div","fm-search-wrap");k.W(this.Ve);this.qe=new x.Ma("a","fm-search-btn");this.qe.Ie(0);this.qe.Ik("button");this.Ve.W(this.qe);c=new x.Ma("span","fm-ui-icon fm-icon-act_search");this.qe.W(c);this.he=new x.Hj;this.he.$("fm-search-inp");this.Ve.W(this.he);this.$i=new x.Ma("span","fm-close-search fm-ui-icon fm-icon-act_close");this.$i.Ie(0);this.$i.Ik("button");this.Ve.W(this.$i);k=new x.Ma("div","fm-list-content");g.W(k);this.fb=new x.zd.ij;this.fb.Ie();this.fb.$("fm-lst-hierarchies");
this.fb.ei((m,n)=>this.eE(m,n));this.fb.HV(m=>m.caption);k.W(this.fb);c=new x.Ma("div","fm-ui-col-3");d.W(c);g=new x.Ma("div","fm-list-wrap fm-list-wrap-pages");c.W(g);k=new x.Ma("div","fm-list-header");g.W(k);this.OM=new x.Uc(e.model.B.j.Gr);k.W(this.OM);k=new x.Ma("div","fm-list-content");g.W(k);this.og=new x.zd.ij;this.og.Ie();this.og.$("fm-lst-pages");this.og.ei((m,n)=>this.rs(m,n));this.og.qg("caption");k.W(this.og);this.kU=new x.Uc(e.model.B.j.Nx);this.kU.$("fm-prompt");this.kU.vn();g.W(this.kU);
g=new x.Ma("div","fm-list-wrap fm-list-wrap-rows");c.W(g);k=new x.Ma("div","fm-list-header");g.W(k);this.PM=new x.Uc(e.model.B.j.WE);k.W(this.PM);k=new x.Ma("div","fm-list-content");g.W(k);this.xf=new x.zd.ij;this.xf.Ie();this.xf.$("fm-lst-rows");this.xf.ei((m,n)=>this.rs(m,n));this.xf.qg("caption");k.W(this.xf);this.lU=new x.Uc(e.model.B.j.Nx);this.lU.$("fm-prompt");this.lU.vn();g.W(this.lU);c=new x.Ma("div","fm-ui-col-3");d.W(c);g=new x.Ma("div","fm-list-wrap fm-list-wrap-columns");c.W(g);k=new x.Ma("div",
"fm-list-header");g.W(k);this.KM=new x.Uc(e.model.B.j.UE);k.W(this.KM);k=new x.Ma("div","fm-list-content");g.W(k);this.Tf=new x.zd.ij;this.Tf.Ie();this.Tf.$("fm-lst-columns");this.Tf.ei((m,n)=>this.rs(m,n));this.Tf.qg("caption");k.W(this.Tf);this.hU=new x.Uc(e.model.B.j.Nx);this.hU.$("fm-prompt");this.hU.vn();g.W(this.hU);g=new x.Ma("div","fm-list-wrap fm-list-wrap-measures");c.W(g);k=new x.Ma("div","fm-list-header");g.W(k);this.NM=new x.Uc(e.model.B.j.HA);k.W(this.NM);this.WB=new x.Kg("fm-btn-add-measure-2 fm-icon-act_calc");
k.W(this.WB);k=new x.Ma("div","fm-list-content");g.W(k);this.Ub=new x.zd.ij;this.Ub.Ie();this.Ub.$("fm-lst-measures");this.Ub.ei((m,n)=>this.rs(m,n));this.Ub.qg("caption");k.W(this.Ub);this.jU=new x.Uc(e.model.B.j.Nx);this.jU.$("fm-prompt");this.jU.vn();g.W(this.jU);this.hg=new h.FI;this.hg.$("fm-aggregations-view");this.hg.eb();a.W(this.hg);this.Si=new x.$q.sF(a.G);this.Si.eb();a.W(this.Si)}Xf(){this.Yw.cb(e.model.B.j.Ox);this.Xw.cb(e.model.B.j.n7);this.Ne.cb(e.model.B.j.wl);this.Uh.cb(e.model.B.j.Kx);
this.LM.cb(e.model.B.j.rv);this.OM.cb(e.model.B.j.Gr);this.PM.cb(e.model.B.j.WE);this.KM.cb(e.model.B.j.UE);this.NM.cb(e.model.B.j.HA);this.pi.cb(e.model.B.j.GA);this.pi.fi(e.model.B.j.GA);this.WB.fi(e.model.B.j.GA);this.kU.cb(e.model.B.j.Nx);this.lU.cb(e.model.B.j.Nx);this.hU.cb(e.model.B.j.Nx);this.jU.cb(e.model.B.j.Nx);this.Zt.cb(this.controller.MT?e.model.B.j.Hla:e.model.B.j.j7);this.mc(e.model.B.j.Ox);this.Yw.vn();this.Xw.vn();this.fb.mc(e.model.B.j.rv);this.og.mc(e.model.B.j.Gr);this.xf.mc(e.model.B.j.WE);
this.Tf.mc(e.model.B.j.UE);this.Ub.mc(e.model.B.j.HA);this.qe.mc(e.model.B.j.CO);this.he.mc(e.model.B.j.CO);this.$i.mc(e.model.B.j.m7)}rs(a,c){var d=new h.Ci.cX;d.setData(a);d.Tm(c);return d}eE(a,c){a=new h.Ci.FP(a,c);a.Tm(c);return a}reset(){this.Ve.Fd("fm-search-opened");this.he.clear(!1)}ro(a){const c=new x.Ea("span");c.$("fm-drag-handle");c.$("fm-helper");c.$("fm-draggable");c.Wa("fm-values",a.Rc("fm-values"));c.R("width",a.R("width"));c.R("position","absolute");c.R("z-index",100);c.attr("data-index",
a.attr("data-index"));const d=new x.Ea("span","fm-label");d.text(a.text());c.W(d);c.W(new x.Ea("i","fm-drag-icon"));return c}TB(){super.TB(!0)}}f.bpa=b})(h.Jt||(h.Jt={}))})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.be.dk{constructor(){super();this.xE=0;this.$("fm-pivot-fields");this.$("fm-instant-view");this.He();this.G.Ol()}He(){var a=new x.Ma("div","fm-popup-content");this.W(a);var c=new x.Ma("div","fm-list-wrap fm-list-wrap-all");a.W(c);var d=new x.Ma("div","fm-list-header fm-list-header-wide");c.W(d);var g=new x.Ma("div","fm-list-header-label-wrap");d.W(g);this.LM=new x.Uc(e.model.B.j.rv);g.W(this.LM);this.pi=new x.Kg("fm-btn-add-measure");
d.W(this.pi);this.Ne=new x.Kg("fm-btn-close-fields");d.W(this.Ne);d=new x.Ma("div","fm-list-content");c.W(d);this.fb=new x.zd.ij;this.fb.$("fm-lst-hierarchies");this.fb.Ie();this.fb.ei((k,m)=>this.eE(k,m));this.fb.qg("caption");d.W(this.fb);g=new x.Ma("div","fm-ui-row");a.W(g);d=new x.Ma("div","fm-ui-col-2");g.W(d);c=new x.Ma("div","fm-list-wrap fm-list-wrap-pages");d.W(c);d=new x.Ma("div","fm-list-header");c.W(d);this.OM=new x.Uc(e.model.B.j.Gr);d.W(this.OM);d=new x.Ma("div","fm-list-content");c.W(d);
this.og=new x.zd.ij;this.og.$("fm-lst-pages");this.og.Ie();this.og.ei((k,m)=>this.rs(k,m));this.og.qg("caption");d.W(this.og);d=new x.Ma("div","fm-ui-col-2");g.W(d);c=new x.Ma("div","fm-list-wrap fm-list-wrap-columns");d.W(c);d=new x.Ma("div","fm-list-header");c.W(d);this.KM=new x.Uc(e.model.B.j.UE);d.W(this.KM);d=new x.Ma("div","fm-list-content");c.W(d);this.Tf=new x.zd.ij;this.Tf.$("fm-lst-columns");this.Tf.Ie();this.Tf.ei((k,m)=>this.rs(k,m));this.Tf.qg("caption");d.W(this.Tf);g=new x.Ma("div",
"fm-ui-row");a.W(g);c=new x.Ma("div","fm-list-wrap fm-list-wrap-rows");g.W(c);d=new x.Ma("div","fm-list-header");c.W(d);this.PM=new x.Uc(e.model.B.j.WE);d.W(this.PM);d=new x.Ma("div","fm-list-content");c.W(d);this.xf=new x.zd.ij;this.xf.$("fm-lst-rows");this.xf.Ie();this.xf.ei((k,m)=>this.rs(k,m));this.xf.qg("caption");d.W(this.xf);g=new x.Ma("div","fm-ui-row");a.W(g);c=new x.Ma("div","fm-list-wrap fm-list-wrap-measures");g.W(c);d=new x.Ma("div","fm-list-header");c.W(d);this.NM=new x.Uc(e.model.B.j.HA);
d.W(this.NM);d=new x.Ma("div","fm-list-content");c.W(d);this.Ub=new x.zd.ij;this.Ub.$("fm-lst-measures");this.Ub.Ie();this.Ub.ei((k,m)=>this.rs(k,m));this.Ub.qg("caption");d.W(this.Ub);this.hg=new h.FI;this.hg.$("fm-aggregations-view");this.hg.eb();a.W(this.hg);this.Si=new x.$q.sF(a.G);this.Si.eb();a.W(this.Si)}Xf(){this.LM.cb(e.model.B.j.rv);this.OM.cb(e.model.B.j.Gr);this.PM.cb(e.model.B.j.WE);this.KM.cb(e.model.B.j.UE);this.NM.cb(e.model.B.j.HA);this.pi.fi(e.model.B.j.GA);this.mc(e.model.B.j.Ox);
this.fb.mc(e.model.B.j.rv);this.og.mc(e.model.B.j.Gr);this.xf.mc(e.model.B.j.WE);this.Tf.mc(e.model.B.j.UE);this.Ub.mc(e.model.B.j.HA);this.Ne.mc(e.model.B.j.YI)}rs(a,c){var d=new h.Ci.cX;d.setData(a);d.Tm(c);return d}eE(a,c){a=new h.Ci.FP(a,c);a.Tm(c);return a}ro(a){const c=new x.Ea("span");c.$("fm-drag-handle");c.$("fm-helper");c.$("fm-draggable");c.Wa("fm-values",a.Rc("fm-values"));c.R("width",a.R("width"));c.R("position","absolute");c.R("z-index",100);c.attr("data-index",a.attr("data-index"));
const d=new x.Ea("span","fm-label");d.text(a.text());c.W(d);c.W(new x.Ea("i","fm-drag-icon"));return c}open(){this.show();this.$a(v.fa.OPENED)}close(){this.eb();this.$a(v.fa.CLOSED)}reset(){}}f.cpa=b})(h.Jt||(h.Jt={}))})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Ma{constructor(){super();this.zR=()=>this.dN();this.$("fm-fields-view-wrap");this.He()}He(){this.Ms=new x.Kg("fm-btn-open-fields");this.Ms.fi(e.model.B.j.LP);this.Ms.mc(e.model.B.j.VE);this.Ms.N(x.Md.mf,()=>this.s3());this.W(this.Ms)}updateLabels(){this.Ms.fi(e.model.B.j.LP);this.Ms.mc(e.model.B.j.VE)}open(b,a,c=""){!this.Re||this.gea||this.vea||this.nea||e.v(this.lK)?(this.controller&&this.controller.sb(v.fa.CLOSED,this.zR),this.close(),this.controller&&
this.controller.N(v.fa.CLOSED,this.zR),this.G.Wa("fm-fields-opened",!0),this.G.Wa("fm-fields-instant",this.Re),this.Re&&this.G.pq(l.Mb.Fb.hq()),e.model.C.F.yn=!0,this.controller=this.rza(),this.controller.update(b,a,c,this.$Aa),this.controller.view.$("fm-fields-view"),this.W(this.controller.view),this.isVisible()||this.show(),this.controller.view.open(),!this.controller.view.rI&&this.controller.view.fb&&this.controller.view.fb.focus({preventScroll:!0}),l.Mb.Fb.GC=this.Re?this.controller.view.uf():
0,this.Uv=!0,this.lK=e.u.Ra.V().ua?e.u.Ra.V().ua.clone():null,this.Ab=e.u.Ra.V().ga,this.Cra=e.u.Ra.V().O&&e.u.Ra.V().O.Wd,this.JF=e.model.C.F.rc,this.zra=e.model.C.F.je==l.Id.dj,this.JF&&e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.VE))):this.G.pq(l.Mb.Fb.hq())}get Re(){return"right"==e.model.C.F.FC}get vea(){return this.JF!=e.model.C.F.rc||e.model.C.F.rc&&this.zra!=(e.model.C.F.je==l.Id.dj)}get gea(){return this.Uv!=e.model.C.F.yn}get nea(){return null==this.Ab||null==e.u.Ra.V().O||this.Cra!=e.u.Ra.V().O.Wd||
!this.Ab.isEqual(e.u.Ra.V().ga)}get tCa(){return null==e.u.Ra.V().ua&&null!=this.lK||null!=e.u.Ra.V().ua&&null==this.lK||e.u.Ra.V().ua&&this.lK&&!e.u.Ra.V().ua.isEqual(this.lK)}get $Aa(){return this.gea||this.nea||this.tCa||this.vea}rza(){var b=null,a=e.model.C.F.rc&&e.model.C.F.je!=l.Id.dj,c=l.Mb.Fb.G;null==this.controller?b=a?new h.flat.dX(c,this.Re):new h.Jt.G8(c,this.Re):!a||"flat"==this.controller.type&&this.controller.Re==this.Re?a||"pivot"==this.controller.type&&this.controller.Re==this.Re||
(b=new h.Jt.G8(c,this.Re)):b=new h.flat.dX(c,this.Re);if(null==b)return this.controller;this.controller&&this.controller.Yd();b.N(v.fa.CLOSED,this.zR);b.N(f.WI,d=>this.I2(d));return b}I2(b){this.Fa(b)}dN(){this.Uv=void 0;this.Ab=null;this.JF=void 0;this.controller.sb(v.fa.CLOSED,this.zR);e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.YI));e.model.C.F.V();e.model.C.F.IR?this.show():this.eb();e.model.C.F.yn=!1;this.$a(v.fa.CLOSED);this.G.Wa("fm-fields-opened",!1);this.G.pq("")}close(){this.controller&&
this.controller.view.close()}s3(){this.$a(f.BO)}get Pu(){return this.Uv}}f.WI="EVENT_APPLY_SLICE";f.BO="EVENT_OPEN";h.gp=f})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Ci.cB{constructor(){super();this.kL()}kL(){null==this.Vo&&(this.Vo=new x.Ea("span","fm-text-display"))}u_(){null==this.dw&&(this.dw=new x.Ea("span","fm-aggr-display"),this.dw.attr("title",e.model.B.j.f9),this.dw.zg("hidden","true"))}v_(){null==this.fw&&(this.fw=new x.Ea("span","fm-calc-display"),this.fw.attr("title",e.model.B.j.d9),this.fw.zg("hidden","true"))}w_(){null==this.yw&&(this.yw=new x.Ea("span","fm-drag-handle"),this.yw.zg("hidden",
"true"))}f5(a,c){return null==a?a:a.replace(new RegExp("("+c.td+")","i"),'<b class="fm-search-highlight">$&</b>')}kb(){const a=this.getData();this.G.empty();var c=null!=this.Ww?(0,this.Ww)(a):a.Qj?a.w1+" / "+a[this.er()]:a[this.er()];this.Vo.html(void 0!==a.td?this.f5(c,a):c);this.Vo.attr("title",c+(e.ia(a.description)?"":`\n${a.description}`));this.mc(c);this.G.append(this.Vo);1==a.ng&&!a.Tg&&1==a.rl&&1<a.Wc.length&&e.model.C.F.rl&&(this.u_(),this.G.append(this.dw));!0===a.ng&&!0===a.Na&&(this.v_(),
this.G.append(this.fw));this.w_();this.G.append(this.yw);this.G.Wa("fm-measure",!0===a.ng);this.G.Wa("fm-values",!0===a.cU);this.G.Wa("fm-selected",!0===a.yd);this.G.Wa("fm-level",!0===a.Qj)}}f.cX=b})(h.Ci||(h.Ci={}))})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Ci.cB{constructor(a=null){super();this.data=a;this.z_();this.kL()}z_(){null==this.mD&&(this.mD=new x.Ea("span","fm-icon-display"),this.mD.zg("hidden","true"))}hwa(){null==this.D2&&(this.D2=new x.Ea("span","fm-moreicon-display"),this.D2.zg("hidden","true"))}kL(){null==this.Vo&&(this.Vo=new x.Ea("span","fm-text-display"))}u_(){null==this.dw&&(this.dw=new x.Ea("span","fm-aggr-display"),this.dw.attr("title",e.model.B.j.f9),this.dw.zg("hidden",
"true"))}v_(){null==this.fw&&(this.fw=new x.Ea("span","fm-calc-display"),this.fw.attr("title",e.model.B.j.d9),this.fw.zg("hidden","true"))}w_(){null==this.yw&&(this.yw=new x.Ea("span","fm-drag-handle"),this.yw.zg("hidden","true"))}f5(a,c){return null==a?a:a.replace(new RegExp("("+c.td+")","i"),'<b class="fm-search-highlight">$&</b>')}kb(){const a=this.getData();this.G.empty();this.G.append(this.mD);a.Wi&&(this.hwa(),this.G.append(this.D2));var c=this.J();this.Vo.html(void 0!==a.td?this.f5(c,a):c);
this.Vo.attr("title",this.J()+(e.ia(a.description)?"":`\n${a.description}`));this.G.append(this.Vo);!0===a.ng&&!a.Tg&&!0!==a.Na&&1<a.Wc.length&&e.model.C.F.rl&&"right"!=e.model.C.F.FC&&(this.u_(),this.G.append(this.dw));!0!==a.ng||!0!==a.Na||!0!==a.rl&&!e.model.C.F.bu||(this.v_(),this.G.append(this.fw));a.wf||a.Ou?null!=this.yw&&this.yw.remove():(this.w_(),this.G.append(this.yw));c=!0===a.yd||null!=a.Vg&&!0===a.Vg.yd;for(var d=1;10>d;d++)this.G.Wa("fm-level-"+d,a.level===d);this.G.Wa("fm-selected",
!0===c);this.G.Wa("fm-checked",!0!==a.wf&&!0!==a.Qj&&!0===c||1==a.Qj&&!0===c);this.G.Wa("fm-unchecked",!0!==a.wf&&!0!==a.Qj&&!0!==c||1==a.Qj&&!0!==c);this.G.Wa("fm-measure",a.Tw&&(!0===a.ng&&!0!==a.Tg||a.Hea||a.Uw||a.IBa));this.G.Wa("fm-folder",!0===a.wf||!0===a.Wi);this.G.Wa("fm-level-folder",!0===a.Wi);this.G.Wa("fm-level",!0===a.Qj);this.G.Wa("fm-measures-folder",!0===a.Ou&&!0!==a.Tg);this.G.Wa("fm-measures-calculated-folder",!0===a.Ou&&!0!==a.Tg&&!0===a.xH);this.G.Wa("fm-kpis-folder",!0===a.Tg&&
!0===a.wf);this.G.Wa("fm-kpi",!0===a.Tg&&!0!==a.wf);this.G.Wa("fm-calculated",!0===a.Na);this.G.Wa(l.Y.X.wa.EW,(!0===a.wf||!0===a.Wi)&&!0!==a.Sf);this.G.Wa(l.Y.X.wa.UW,(!0===a.wf||!0===a.Wi)&&!0===a.Sf);this.mc(this.J());this.vaa(!0===c);!0!==a.wf&&!0!==a.Wi||this.uaa(!0===a.Sf)}}f.FP=b})(h.Ci||(h.Ci={}))})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{Qa(){const d={};e.v(this.ob)||(d.pages=this.ob.map(g=>g.Qa()));e.v(this.rows)||(d.rows=this.rows.map(g=>g.Qa()));e.v(this.Ka)||(d.columns=this.Ka.map(g=>g.Qa()));e.v(this.Ba)||(d.measures=this.Ba.map(g=>g.Qa()));e.v(this.Ng)||(d.flatOrder=this.Ng.slice());e.v(this.ih)||(d.flatSort=this.ih.slice());e.v(this.Bj)||(d.sorting=this.Bj);return d}}f.Ppa=b;class a{Qa(){const d={};e.v(this.A)||(d.uniqueName=this.A);e.v(this.aa)||(d.aggregation=this.aa);
e.v(this.gg)||(d.activeLevelName=this.gg);return d}static CS(d){const g=new a;g.A=d.A;d.ng&&(g.aa=d.aa,g.G1=d.G1);d.Qj&&(g.gg=d.A,g.A=d.Pg);return g}}f.GP=a;class c{static gL(d){const g=[];for(let k=0;k<d.length;k++)g.push(c.NR(d[k]));return g}static eW(d){return d.Wi||d.wf?c.fKa(d):c.mKa(d)}static fKa(d){const g={caption:d.caption,isFolder:!0};void 0!==d.xH&&d.xH&&(g.isCalculated=d.xH);void 0!==d.Ou&&(g.isMeasureFolder=d.Ou);e.v(d.parent)||(g.folder=void 0!==d.EG?d.EG:d.parent.caption);void 0!==
d.Tg&&d.Tg&&(g.isKPI=d.Tg);return g}static mKa(d){const g={caption:d.caption,isFolder:!1};void 0!==d.Na&&d.Na&&(g.isCalculated=d.Na);void 0!==d.Tg&&d.Tg&&(g.isKPI=d.Tg);void 0!==d.Dg&&void 0!==d.Mc&&d.Tg?g.folder=d.Dg+"/"+d.Mc:void 0!==d.Dg?g.folder=d.Dg:void 0!==d.Mc&&0<d.Mc.length?g.folder=d.Mc:!e.v(d.parent)&&d.parent.Qj?g.folder=d.w1:e.v(d.parent)||(g.folder=d.EG);return g}static NR(d){const g=d.Wc,k=new f.fj;k.A=d.A;k.caption=d.caption;k.name=d.kl;k.type=d.type;k.aa=d.aa;k.Na=d.Na;k.Mc=d.Mc;
k.Dg=d.Dg;k.gr=d.gr;k.Tg=d.Tg;k.Wc=g;k.RK=e.u.i.da.EZ(g);k.ew=e.u.i.da.laa(g);k.Tw=d.Tw();k.description=d.description;return k}}f.fj=c})(h.X||(h.X={}))})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a){this.wpa=40;this.Ft=null;this.ao=a}get Yc(){return this.fe}set Yc(a){this.fe=a}get Oa(){return this.Io?this.Uz:this.vb}set Oa(a){this.vb=a}Z1(){return 0<this.HAa().length}Jy(){this.td="";this.Uz=null}get $T(){return(e.model.C.F.L4||this.Oa&&this.Oa.length>this.wpa)&&this.ao!=e.u.i.qa.Tc}get Io(){return!e.ia(this.td)}search(a){a=a.toLowerCase();if(this.td!=a){this.td=a;this.Uz=[];for(var c=0;c<this.vb.length;c++){var d=this.vb[c];
e.P.contains(d.caption,a)&&(d.td=this.td,this.Uz.push(d))}}}Y0(){for(var a=0,c=0;c<this.Oa.length;c++)this.Oa[c].yd&&a++;return 0==a?0:a==this.Oa.length?1:-1}HAa(){const a=[];if(!e.v(this.vb))for(let c=0;c<this.vb.length;c++)this.vb[c].yd&&a.push(this.vb[c]);return a}get rD(){return(!e.model.Va.V().Ia.ga.Gc||e.model.Va.V().Ia.ga.Da===e.u.i.qa.API)&&e.model.C.F.G4||e.model.C.F.bu&&e.model.Va.V().Ia.ga.Da===e.u.i.qa.Tc}get BT(){return this.rD&&!this.Yc.nb}lI(a,c){if(0!==c.length||!e.v(this.Ft))if(e.v(this.Ft))a.sort((d,
g)=>this.Dba(d,g,c));else{const d=[];let g=[];if(0<c.length){for(let m=0;m<a.length;m++)a[m].yd?d.push(a[m]):g.push(a[m]);d.sort((m,n)=>this.Dba(m,n,c))}else g=a;const k=this.Iza();g.sort((m,n)=>this.Ft(h.X.fj.eW(m),h.X.fj.eW(n),k));this.Oa=[...d,...g]}}Iza(){return this instanceof f.z7?"flat":"drillThrough"}Dba(a,c,d){const g=this.ZL(a,d);d=this.ZL(c,d);return g==d?a.caption.localeCompare(c.caption):d-g}ZL(a,c){return a.yd?c.length-c.indexOf(a.A):0}hl(a){for(var c=0;c<this.Oa.length;c++)this.Oa[c].yd=
0<=a.indexOf(this.Oa[c].A)}Lza(a){return this.jKa(this.Oa,a)}jKa(a,c){for(var d=[],g=0;g<c.length;g++){var k=a[c[g]];k.yd&&d.push({A:k.A,aa:k.aa})}return d}Iia(a,c){for(var d=[],g=0;g<c.length;g++){var k=a[c[g]];k.yd&&d.push(k)}return d}}f.X5=b})(h.flat||(h.flat={}))})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.X5{constructor(a){super(a);this.tn=null}update(a,c,d){this.fe=a;this.Qb=c;this.Ft=d;this.VN();this.uq()}VN(){this.Oa=[];for(var a=this.fe.wc(!1),c=0;c<a.length;c++){var d=a.ea(c),g=this.fe.cf(d.A);e.v(g)||g.type==e.u.i.Pa.xc||g.type==e.u.i.Pa.Sa||this.Qb.rows.Hb(g.A)||this.Qb.Ka.Hb(g.A)||this.Qb.ob.Hb(g.A)?this.Oa.push(this.Bva(d)):this.Oa.push(this.NR(g))}a=this.fe.Uq;for(c=0;c<a.length;c++)g=a.ea(c),this.Oa.push(this.NR(g))}uq(){if(null!==
this.tn)this.Oa=this.tn.hierarchies,this.ZZ();else{var a=this.Qb.flatten(!0,!0).Nc(!0);this.hl(a);this.WIa(this.Qb.hd());this.lI(this.Oa,a)}}WIa(a){for(var c=0;c<a.length;c++){var d=this.Uxa(a[c].A);e.v(d)||(d.aa=a[c].aa)}}Uxa(a){for(var c=0;c<this.vb.length;c++)if(this.vb[c].A==a)return this.vb[c];return null}NR(a){var c=new h.X.fj;c.A=a.A;c.caption=a.kl;c.aa=a.aa;c.Na=a.Na;a=a.Wc;c.Wc=a;c.RK=e.u.i.da.EZ(a);c.ew=e.u.i.da.laa(a);c.ng=!0;c.rl=e.model.C.F.rl;return c}Bva(a){var c=new h.X.fj;c.A=a.A;
c.caption=a.caption;return c}iM(a){var c=this.Qb.clone(),d=this.Iia(this.Oa,a),g=d.map(r=>r.A),k=c.flatten(!0,!0);a=c.hd();for(var m=0;m<k.length;m++){var n=k.ea(m).A;if(0>g.indexOf(n)){c.ob.Hb(n)&&c.ob.removeItem(n);c.Ka.Hb(n)&&c.Ka.removeItem(n);c.rows.Hb(n)&&c.rows.removeItem(n);let r=this.fe.cf(n);e.v(r)&&(r=this.fe.Uq.getItem(n));e.v(r)||(n=a.findIndex(w=>w.A===r.A),-1<n&&a.splice(n,1))}}for(m=0;m<d.length;m++)if(n=d[m].A,!k.Hb(n)){var p=this.fe.fh(n),t=this.fe.gd(n);e.v(t)||e.v(p)||t.type==
e.u.i.Pa.xc||p.type==e.u.i.Lc.Sa?e.v(p)?this.fe.Uq.Hb(n)&&a.push(this.fe.Uq.getItem(n)):c.rows.Ta(n,p):a.push(t)}for(m=0;m<d.length;m++)if(k=d[m],k.aa)for(n=0;n<a.length;n++)a[n].A==k.A&&(a[n].aa=k.aa);c.Ng=g;for(d=0;d<a.length;d++)a[d].index=d;c.Zz(a);return c}us(){return null!=this.fe?h.X.fj.gL(this.fe.Ba.Nc()):[]}Yu(a){if(null!=this.Qb&&null!=this.fe){const c=this.us().find(d=>d.A===a);if(null!=c){c.yd=!0;let d=0;for(let g=0;g<this.Oa.length;g++)this.Oa[g].yd&&(d=g);this.Oa=[...this.Oa.slice(0,
d+1),c,...this.Oa.slice(d+1)]}}}Zu(a){if(null!=this.Qb&&null!=this.fe){const c=this.Oa.findIndex(d=>d.A===a);this.Oa.splice(c,1);this.b5()}}ZZ(){this.tn=null}b5(){this.tn={hierarchies:this.Oa}}aU(a){var c=this.Qb.flatten(!0,!0).Nc();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.aa&&void 0!=k.aa&&g.aa!=k.aa)return!0}return!1}mE(a){this.Qb=a}}f.z7=b})(h.flat||(h.flat={}))})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends v.Ah{constructor(a,c){super();this.type="flat";this.hK=!1;this.Fy=d=>this.Yu(d);this.Gy=d=>this.Zu(d);this.Hy=()=>this.XM();this.Gb=this.TR(e.u.Ra.V().ga.Da);this.hK=c;this.view=this.nba(a);this.view.N(v.fa.CLOSED,d=>this.Fa(d));this.view.Uh&&this.view.Uh.N(x.Md.mf,()=>this.KD());this.view.Ne&&this.view.Ne.N(x.Md.mf,()=>this.Is());null!=this.view.hg&&this.view.hg.N(v.fa.$d,d=>this.H2(d));this.view.fb&&(this.view.fb.G.N("click",d=>
this.b3(d)),this.view.fb.G.N("keydown",d=>this.c3(d)),this.view.fb.G.ps({Pm:(d,g,k,m)=>this.Pm(d,g,k,m),Om:(d,g,k,m)=>this.Om(d,g,k,m),Zl:(d,g,k,m)=>this.Zl(d,g,k,m),zz:"li",scroll:!0}));this.view.Zd&&this.view.Zd.N(v.fa.$d,()=>this.E3());this.view.pi&&this.view.pi.N(x.Md.mf,()=>this.BU());this.view.he&&(this.view.he.yV(500),this.view.he.N(x.Hj.Mx,()=>this.cN()));this.view.qe&&(this.view.qe.N("click",()=>this.Js()),this.view.qe.N("keydown",d=>this.Kz(d,!1)));this.view.$i&&(this.view.$i.N("click",
()=>this.Ks()),this.view.$i.N("keydown",d=>this.Kz(d,!0)))}get Re(){return this.hK}nba(a){return this.Re?new f.Ema:new f.A7(a)}TR(a){return new f.z7(a)}Kz(a,c){if(32===a.keyCode||13===a.keyCode)c?this.Ks():this.Js()}Js(){this.view.Ve.$("fm-search-opened-flat");this.view.he.G.focus()}Ks(){this.view.Ve.Fd("fm-search-opened-flat");this.view.he.clear();this.view.qe.G.focus()}Om(a,c,d,g){g instanceof MouseEvent?(d=x.Ea.Vb(g.target),g=g.clientY):(g=g.changedTouches[0],d=x.Ea.Vb(document.elementFromPoint(g.clientX,
g.clientY)),g=g.clientY);d.Rc("fm-drop-indicator")||(this.dm(),a&&a.closest("ul")&&(c&&c.$("fm-droppable-valid"),a.$("fm-drag-over"),this.rE(d,g)))}Zl(a,c){this.dm();a&&a.closest("ul")&&(c&&c.Fd("fm-droppable-valid"),c&&c.Fd("fm-droppable-invalid"),a.Fd("fm-drag-over"))}cN(){this.Gb.search(this.view.he.Ti());this.view.fb.G.Wa("fm-searched",this.Gb.Io);this.view.fb.Wf(this.Gb.Oa);this.BL()}H2(a){this.Yz(a.data.DL,a.data.DZ)}Yz(a,c){a.aa=c.aa;a.caption=a.name;this.view.fb.xr(a);c=this.Gb.Oa.find(d=>
d.A===a.A);null!=c&&(c.aa=a.aa,c.caption=a.caption);this.Re&&this.ne()}Pm(a){if(null!=this.wd)if(a&&a.closest("ul")){a=parseInt(a.attr("data-index"));var c=this.view.fb.zc()[a],d=this.view.fb.zc().length;this.wd.element.previousElementSibling?d=parseInt(this.wd.element.previousElementSibling.getAttribute("data-index"))+1:this.wd.element.nextElementSibling&&(d=parseInt(this.wd.element.nextElementSibling.getAttribute("data-index")));this.dm();this.Fs(a,d);this.view.fb.Ei(this.view.fb.zc().indexOf(c));
this.view.fb.G.wx(this.view.fb.G.element.scrollTop);this.view.fb.vN(d)}else this.dm()}Fs(a,c){if(a!=c){var d=this.view.fb.zc();a<c&&--c;d.splice(c,0,d.splice(a,1)[0]);this.view.fb.yr();this.ct();this.BL();this.Re&&this.ne()}}Is(){this.Re?e.ph.instance.YK():this.view.close()}KD(){this.view.he&&this.Gb.Io&&(this.view.he.clear(!1),this.Gb.Jy(),this.view.fb.Wf(this.Gb.Oa),this.BL());this.ne();this.view.close()}E3(){for(var a=this.view.Zd.checked,c=this.Gb.Oa,d=0;d<c.length;d++)c[d].yd=a;this.view.fb.yr();
this.ct();this.BL();this.Re&&this.ne()}c3(a){if(32===a.keyCode||13===a.keyCode){if(this.view.Si){const c=this.view.fb.Au();if(e.v(c))return;const d=[];d.push({label:c.data.yd?e.model.B.j.YW:e.model.B.j.Gla,handler:()=>this.Lh(3,c.data,c.index)});0<c.index&&d.push({label:e.model.B.j.i7,handler:()=>this.Lh(4,c.data,c.index)});c.index<this.view.fb.zc().length-1&&d.push({label:e.model.B.j.d7,handler:()=>this.Lh(5,c.data,c.index)});c.data.ng&&d.push({label:e.model.B.j.XW,submenu:this.ez(c.data)});c.data.Na&&
d.push({label:e.model.B.j.ZW,handler:()=>this.Lh(10,c.data,c.index)});this.view.Si.Po(this.view.G,d,c.element.lg(),{top:10,left:10})}a.preventDefault()}}ez(a){const c=[];for(let d=0;d<a.Wc.length;d++){const g={caption:a.RK[d],aa:a.Wc[d]};void 0!=a.ew&&(g.fW=a.ew[d]);c.push({label:e.u.i.da.fG(a.Wc[d]),isSelected:a.Wc[d]==a.aa,handler:()=>this.Yz(a,g)})}return c}Lh(a,c,d){3==a?(c.yd=!c.yd,this.view.fb&&this.view.fb.bt(d),this.view.Zd&&this.view.Zd.Af(this.Gb.Y0()),this.ct(),this.Re&&this.ne()):4==a?
(this.Fs(d,d-1),this.view.fb.Ei(d-1)):5==a?(this.Fs(d,d+2),this.view.fb.Ei(d+1)):10==a&&this.TH(c.A)}b3(a){const c=this.view.fb.IC(a.target);e.v(c)||(a=x.Ea.Vb(a.target),a.Rc("fm-aggr-display")?this.view.hg.Po(c.data,a):a.Rc("fm-calc-display")?this.Lh(10,c.data,c.index):this.Lh(3,c.data,c.index))}TH(a=null){this.view.rI=!0;e.model.Va.V().Fa(new l.Na.HW(a));e.model.Va.V().N(l.Na.ak.sA,this.Hy);e.model.Va.V().N(l.Na.ak.qA,this.Fy);e.model.Va.V().N(l.Na.ak.rA,this.Gy)}BU(){this.TH()}Yu(a){e.model.Va.V().sb(l.Na.ak.qA,
this.Fy);this.Gb.Yu(a.Cs);this.Vm();this.Re&&this.ne()}Zu(a){e.model.Va.V().sb(l.Na.ak.rA,this.Gy);this.Gb.Zu(a.Cs);this.Vm();this.Re&&this.ne()}XM(){this.view.rI=!1;e.model.Va.V().sb(l.Na.ak.sA,this.Hy);this.view.fb.focus({preventScroll:!0})}Vm(){this.view.reset&&this.view.reset();this.view.Ve&&this.view.Ve.isVisible(this.Gb.$T);this.view.he&&(this.view.he.clear(!1),this.Gb.Jy());this.view.fb&&(this.view.fb.Wf(this.Gb.Oa),this.ct(),this.BL());this.view.pi&&(this.view.pi.isVisible(this.Gb.rD),this.view.pi.oq(this.Gb.BT))}BL(){var a=
{ro:g=>this.view.ro(g)};u.Kd().Mm&&(a.lT=".fm-drag-handle");for(var c=this.view.fb.G.find("li",!0),d=0;d<c.length;d++)c[d].draggable(a)}update(a,c){e.v(a)||e.v(c)||(this.Gb.update(a,c,h.gp.pS),this.Vm(),this.view.Zd&&this.view.Zd.Af(this.Gb.Y0()),this.view.Xf())}ct(){this.view.Uh&&this.view.Uh.oq(this.Gb.Z1())}ne(){for(var a=[],c=this.view.fb.G.find("li",!0),d=0;d<c.length;d++){var g=parseInt(c[d].attr("data-index"));a.push(g)}c=this.Gb.Lza(a);this.Gb.aU(c)&&(a=this.Gb.iM(a),this.Re&&a instanceof
e.u.O.Lr&&(a.z2=!1,e.ph.instance.$D(),this.Gb.mE(a)),e.model.Va.V().ne(a))}rE(a,c){const d=a.closest("li");null!=d?(this.wd=this.sw(),a=d.getBoundingClientRect(),c>a.top+a.height/2?d.after(this.wd):d.before(this.wd)):(c=a.closest("ul"),null!=c&&(this.wd=this.sw(),c.append(this.wd)))}sw(){return new x.Ea("div","fm-drop-indicator")}dm(){this.wd&&(this.wd.Gg(!0),this.wd=null)}}f.dX=b})(h.flat||(h.flat={}))})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.be.ay{constructor(a){super(a);this.$("fm-flat-fields");this.He();this.G.Ol();this.G.Zi({QV:[x.Zi.ji.Hi],KR:l.Mb.Fb.G,FZ:!0,resize:c=>this.eN(c),complete:()=>this.zp()})}eN(a){a.sE==x.Zi.ji.Hi&&this.pq(a.size.height)}He(){var a=new x.Ma("div","fm-popup-header fm-ui-row");this.W(a);var c=new x.Ma("div","fm-ui-col fm-vam");a.W(c);this.Yw=new x.Uc(e.model.B.j.Ox);this.Yw.$("fm-popup-title");c.W(this.Yw);this.Xw=new x.Uc(e.model.B.j.k7);
this.Xw.$("fm-popup-subtitle");c.W(this.Xw);c=new x.Ma("div","fm-ui-col fm-vam fm-tar fm-ui-btns-row");a.W(c);this.pi=new x.Kg("fm-btn-add-measure fm-ui-btn-light fm-icon-act_calc");c.W(this.pi);this.Ne=new x.Kg;this.Ne.cb(e.model.B.j.wl);this.Uh=new x.Kg("fm-ui-btn-dark");this.Uh.cb(e.model.B.j.Kx);u.hj.vD||u.hj.Ho?(c.W(this.Ne),c.W(this.Uh)):(c.W(this.Uh),c.W(this.Ne));a=new x.Ma("div","fm-popup-content");this.W(a);c=new x.Ma("div","fm-list-wrap");a.W(c);var d=new x.Ma("div","fm-list-header");c.W(d);
this.Zd=new x.NJ;this.Zd.$("fm-select-all-cbx");this.Zd.cb(e.model.B.j.tv);d.W(this.Zd);this.Ve=new x.Ma("div","fm-search-wrap");d.W(this.Ve);this.qe=new x.Ma("a","fm-search-btn");this.qe.Ie(0);this.qe.Ik("button");this.Ve.W(this.qe);d=new x.Ma("span","fm-ui-icon fm-icon-act_search");this.qe.W(d);this.he=new x.Hj;this.he.$("fm-search-inp-flat");this.Ve.W(this.he);this.$i=new x.Ma("span","fm-close-search fm-ui-icon fm-icon-act_close");this.$i.Ie(0);this.$i.Ik("button");this.Ve.W(this.$i);d=new x.Ma("div",
"fm-list-content");c.W(d);this.fb=new x.zd.ij;this.fb.$("fm-lst-hierarchies");this.fb.Ie();this.fb.ei(this.eE);this.fb.qg("caption");d.W(this.fb);this.hg=new h.FI;this.hg.$("fm-aggregations-view");this.hg.eb();a.W(this.hg);this.Si=new x.$q.sF(a.G);this.Si.eb();a.W(this.Si)}eE(a,c){var d=new h.Ci.FP(a,c);d.setData(a);d.Tm(c);return d}Xf(){this.Yw.cb(e.model.B.j.Ox);this.Xw.cb(e.model.B.j.k7);this.Ne.cb(e.model.B.j.wl);this.Uh.cb(e.model.B.j.Kx);this.Zd.cb(e.model.B.j.tv);this.pi.fi(e.model.B.j.GA);
this.mc(e.model.B.j.Ox);this.Yw.vn();this.Xw.vn();this.fb.mc(e.model.B.j.rv);this.qe.mc(e.model.B.j.CO);this.he.mc(e.model.B.j.CO);this.$i.mc(e.model.B.j.m7)}reset(){this.Ve.Fd("fm-search-opened-flat");this.he.clear(!1)}ro(a){var c=new x.Ea("span");c.$("fm-drag-handle");c.$("fm-helper");c.$("fm-draggable");c.Wa("fm-values",a.Rc("fm-values"));c.R("width",a.R("width"));c.R("position","absolute");c.R("z-index",100);c.attr("data-index",a.attr("data-index"));c.text(a.text());return c}}f.A7=b})(h.flat||
(h.flat={}))})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.be.dk{constructor(){super();this.$("fm-flat-fields");this.$("fm-instant-view");this.He()}He(){var a=new x.Ma("div","fm-popup-content");this.W(a);var c=new x.Ma("div","fm-list-wrap fm-list-wrap-all");a.W(c);var d=new x.Ma("div","fm-list-header");c.W(d);this.Zd=new x.NJ;this.Zd.$("fm-select-all-cbx");this.Zd.cb(e.model.B.j.tv);d.W(this.Zd);this.pi=new x.Kg("fm-btn-add-measure");d.W(this.pi);this.Ne=new x.Kg("fm-btn-close-fields");
d.W(this.Ne);d=new x.Ma("div","fm-list-content");c.W(d);this.fb=new x.zd.ij;this.fb.$("fm-lst-hierarchies");this.fb.Ie();this.fb.ei(this.eE);this.fb.qg("caption");d.W(this.fb);this.hg=new h.FI;this.hg.$("fm-aggregations-view");this.hg.eb();a.W(this.hg);this.Si=new x.$q.sF(a.G);this.Si.eb();a.W(this.Si)}eE(a,c){var d=new h.Ci.FP(a,c);d.setData(a);d.Tm(c);return d}Xf(){this.Zd.cb(e.model.B.j.tv);this.pi.fi(e.model.B.j.GA);this.mc(e.model.B.j.Ox);this.fb.mc(e.model.B.j.rv);this.Ne.mc(e.model.B.j.YI)}ro(a){var c=
new x.Ea("span");c.$("fm-drag-handle");c.$("fm-helper");c.$("fm-draggable");c.Wa("fm-values",a.Rc("fm-values"));c.R("width",a.R("width"));c.R("position","absolute");c.R("z-index",100);c.attr("data-index",a.attr("data-index"));c.text(a.text());return c}open(){this.show();this.$a(v.fa.OPENED)}close(){this.eb();this.$a(v.fa.CLOSED)}}f.Ema=b})(h.flat||(h.flat={}))})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.be.ay{constructor(){super(l.Mb.Fb.G);this.KKa=()=>this.dN();this.$("fm-calculated-view");this.G.Ol();this.OD.$("fm-calculated-view-overlay");this.Pe=new h.Eka;this.Pe.N(v.fa.h6,()=>this.close());this.W(this.Pe.view);this.N(v.fa.CLOSED,this.KKa)}dN(){e.model.Va.V().Fa(new l.Na.Ika)}Ns(b){this.Pe.update(b);this.open();this.Pe.view.jr.focus({preventScroll:!0});this.Xf()}Xf(){this.mc(e.model.B.j.AW)}close(){super.close();this.Pe.clear()}}f.GK=!1;
h.QE=f})(l.Na||(l.Na={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{}f.qA="event_calculated_value_added";f.rA="event_calculated_value_removed";f.c6="calculated_view_open";f.sA="calculated_view_close";h.ak=f;class b extends v.fa{constructor(g){super(f.qA);this.Cs=g}}h.Gka=b;class a extends v.fa{constructor(g){super(f.rA);this.Cs=g}}h.Hka=a;class c extends v.fa{constructor(g=null){super(f.c6);this.Cs=g}}h.HW=c;class d extends v.fa{constructor(){super(f.sA)}}h.Ika=d})(l.Na||(l.Na={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.$ra="- 2";this.ka=e.model.Va.V();this.v0=[{name:"_addBtn",label:"+",df:"CALCULATED_VIEW_FUNC_ADD",xk:e.u.i.nc.bO},{name:"_subtractBtn",label:"-",df:"CALCULATED_VIEW_FUNC_SUBTRACT",xk:e.u.i.nc.EP},{name:"_multiplyBtn",label:"\u00d7",df:"CALCULATED_VIEW_FUNC_MULTIPLY",xk:e.u.i.nc.oP},{name:"_divideBtn",label:"\u00f7",df:"CALCULATED_VIEW_FUNC_DIVIDE",xk:e.u.i.nc.UI},{name:"_powerBtn",label:"^",df:"CALCULATED_VIEW_FUNC_POWER",xk:e.u.i.nc.BX},
{name:"_equalBtn",label:"=",df:"CALCULATED_VIEW_FUNC_EQUAL",xk:e.u.i.nc.EQUAL},{name:"_lessBtn",label:"<",df:"CALCULATED_VIEW_FUNC_LESS",xk:e.u.i.nc.LESS},{name:"_greaterBtn",label:">",df:"CALCULATED_VIEW_FUNC_GREATER",xk:e.u.i.nc.GREATER},{name:"_lessOrEqualBtn",label:"\u2264",df:"CALCULATED_VIEW_FUNC_LESS_EQUAL",xk:e.u.i.nc.R7},{name:"_greaterOrEqualBtn",label:"\u2265",df:"CALCULATED_VIEW_FUNC_GREATER_EQUAL",xk:e.u.i.nc.E7},{name:"_notEqualBtn",label:"!=",df:"CALCULATED_VIEW_FUNC_NOT_EQUAL",xk:e.u.i.nc.cg},
{name:"_orBtn",label:"OR",df:"CALCULATED_VIEW_FUNC_OR",xk:e.u.i.nc.E8},{name:"_andBtn",label:"AND",df:"CALCULATED_VIEW_FUNC_AND",xk:e.u.i.nc.E5},{name:"_ifBtn",label:"IF",df:"CALCULATED_VIEW_FUNC_IF",xk:e.u.i.nc.QO},{name:"_absBtn",label:"ABS",df:"CALCULATED_VIEW_FUNC_ABS",xk:e.u.i.nc.pW},{name:"_roundBtn",label:"RD",df:"CALCULATED_VIEW_FUNC_ROUND",xk:e.u.i.nc.IX},{name:"_minBtn",label:"MIN",df:"CALCULATED_VIEW_FUNC_MIN",xk:e.u.i.nc.MIN},{name:"_maxBtn",label:"MAX",df:"CALCULATED_VIEW_FUNC_MAX",xk:e.u.i.nc.MAX}]}search(b){b=
b.toLowerCase().trim();if(this.td!==b){this.td=b;this.u4=[];var a=this.Ye.length;for(let c=0;c<a;c++){const d=this.Ye[c];e.P.contains(d.caption,b)&&(d.td=b,this.u4.push(d))}}}get Io(){return!e.ia(this.td)}Jy(){this.td="";this.u4=null}update(b){this.Ye=l.pd.X.fj.gL(this.ka.ha.O.Ba.Nc());this.Jy();e.ia(b)||(this.mj=this.ka.ha.O.gd(b))}get rl(){return!this.ka.ha.ga.Gc||this.ka.ha.ga.Da==e.u.i.qa.API}get N4(){return this.ka.ha.ga.Da!=e.u.i.qa.API}us(){e.v(this.Ye)&&(this.Ye=l.pd.X.fj.gL(this.ka.ha.O.Ba.Nc()));
return this.Io?this.u4:this.Ye}ZD(b){h.QE.GK=!0;this.ka.Qz(b.A);this.ka.Fa(new h.Hka(b.A));e.Ce(()=>{h.QE.GK=!1},1E3)}lk(b,a="",c=!1){a=a.trim();a=0<a.length?a:this.Wya();let d;if(null!=this.mj){if(this.mj.caption!=a||this.mj.ve!=b||this.mj.cl!=c)d={uniqueName:this.mj.A,caption:a,formula:b,individual:c,type:this.mj.type}}else{do a=null!=this.ka.ha.O.Ba.getItem(a)?a+" "+this.$ra:a;while(null!=this.ka.ha.O.Ba.getItem(a));d={uniqueName:a,caption:a,formula:b,individual:c,type:e.u.i.Pa.jb}}null!=d&&(h.QE.GK=
!0,l.pd.Jt.H8.h0=!0,this.ka.ha.Vt(d,!1),this.ka.Fa(new h.Gka(d.uniqueName)),e.Ce(()=>{h.QE.GK=!1},1E3))}Wya(){let b=e.model.B.j.iO+" #",a=0;const c=this.ka.ha.O.Uq,d=new RegExp(e.model.B.j.iO+" #");for(let g=0;g<c.length;g++){const k=c.ea(g).A;d.test(k)&&(a=Math.max(a,Number(k.substr(e.model.B.j.iO.length+2))))}return b+(a+1)}}h.Fka=f})(l.Na||(l.Na={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends v.Ah{constructor(){super();this.z$=new RegExp(/(["])(?:(?=(\\?))\2.)*?\1/g);this.ka=new h.Fka;this.view=new h.Jka(this);this.view.px&&this.view.px.N(x.Md.mf,()=>this.ZFa());this.view.he&&(this.view.he.yV(500),this.view.he.N(x.Hj.Mx,()=>this.cN()));this.view.qe&&(this.view.qe.N("click",()=>this.Js()),this.view.qe.N("keydown",b=>this.Kz(b,!1)));this.view.$i&&(this.view.$i.N("click",()=>this.Ks()),this.view.$i.N("keydown",b=>this.Kz(b,!0)));this.view.Ub&&
(this.view.Ub.G.N("click",b=>this.uFa(b)),this.view.Ub.G.N("dblclick",b=>this.vFa(b)),this.view.Ub.G.N("keydown",b=>this.BFa(b)),this.view.Ub.ei((b,a)=>this.rs(b,a)));this.view.Xh&&this.view.Xh.G.ps({Pm:b=>this.wFa(b),O2:()=>this.Tfa(),Om:()=>this.Tfa(),Zl:()=>this.TEa(),zz:"li"});this.view.Uh&&this.view.Uh.N(x.Md.mf,()=>this.KD());this.view.Ne&&this.view.Ne.N(x.Md.mf,()=>this.Is());this.view.hg&&this.view.hg.N(v.fa.$d,b=>this.MDa(b));if(this.view.ES)for(const b of this.view.ES)b.N(x.Md.mf,()=>this.UEa(b))}cN(){this.ka.search(this.view.he.Ti());
this.view.Ub.G.Wa("fm-searched",this.ka.Io);this.Yia()}Js(){this.view.Ve.$("fm-search-opened");this.view.he.G.focus()}Kz(b,a){if(32===b.keyCode||13===b.keyCode)a?this.Ks():this.Js()}Ks(){this.view.Ve.Fd("fm-search-opened");this.view.he.clear();this.view.qe.G.focus()}uFa(b){const a=x.Ea.Vb(b.target);a.Rc("fm-aggr-display")&&(b=this.view.Ub.IC(b.target),e.v(b)||this.view.hg.Po(b.data,a))}vFa(b){b=this.view.Ub.IC(b.target);e.v(b)||this.yZ(b.data)}BFa(b){if(32===b.keyCode||13===b.keyCode){if(this.view.Si){const a=
this.view.Ub.Au();if(e.v(a))return;const c=[];c.push({label:e.model.B.j.Qja,handler:()=>{this.yZ(a.data)}});c.push({label:e.model.B.j.XW,submenu:this.ez(a.data)});this.view.Si.Po(this.view.content.G,c,a.element.lg(),{top:10,left:10})}b.preventDefault()}}ez(b){const a=[];for(let c=0;c<b.Wc.length;c++){const d={caption:b.RK[c],aa:b.Wc[c]};void 0!=b.ew&&(d.fW=b.ew[c]);a.push({label:e.u.i.da.fG(b.Wc[c]),isSelected:b.Wc[c]==b.aa,handler:()=>this.Yz(b,d)})}return a}Tfa(){this.view.Xh.$("fm-droppable-over")}TEa(){this.view.Xh.Fd("fm-droppable-over")}wFa(b){this.view.Xh.Fd("fm-droppable-over");
b=parseInt(b.attr("data-index"));b=this.view.Ub.zc()[b];this.yZ(b)}rs(b,a){var c=new l.pd.Ci.cX;c.setData(b);c.Tm(a);c.HV(function(d){return d.name+" ("+e.u.i.da.fG(d.aa)+")"});return c}get v0(){return this.ka.v0}update(b){this.ka.update(b);this.view.$B.isVisible(this.ka.N4);null!=this.ka.mj?(this.view.G.Wa("fm-with-delete-btn",!0),this.view.jr&&this.view.jr.zj(this.ka.mj.caption),this.view.Xh&&(b=e.model.C.F.lW?this.fIa(this.ka.mj.ve):this.ka.mj.ve,this.view.Xh.zj(b)),this.view.px&&this.view.px.isVisible(!0)):
(this.view.G.Wa("fm-with-delete-btn",!1),this.view.px&&this.view.px.isVisible(!1));this.view.$B&&this.ka.N4&&(this.view.$B.checked=this.ka.mj?this.ka.mj.cl:!1);this.view.he&&(this.view.Ve.Fd("fm-search-opened"),this.view.he.clear(!1),this.ka.Jy());this.view.Xf();this.Yia()}Yia(){for(var b=this.ka.us(),a=[],c=0;c<b.length;c++)null!=this.ka.mj&&this.ka.mj.A==b[c].A||b[c].Tg||(b[c].ng=!0,b[c].rl=this.ka.rl&&!b[c].Na,a.push(b[c]));a.sort(this.d_);if(this.view.Ub)for(this.view.Ub.Wf(a),b={ro:d=>this.view.ro(d)},
u.Kd().Mm&&(b.lT=".fm-drag-handle"),a=this.view.Ub.G.find("li",!0),c=0;c<a.length;c++)a[c].draggable(b)}clear(){this.view.jr&&this.view.jr.zj("");this.view.Xh&&this.view.Xh.zj("");this.ka.mj=null}d_(b,a){return b.name>a.name?1:-1}ZFa(){u.Kd().Mm?this.v3():this.zJa()}zJa(){if(u.hj.vD||u.hj.Ho){var b=[e.model.B.j.U5,e.model.B.j.IE];var a=[null,()=>this.v3()]}else b=[e.model.B.j.IE,e.model.B.j.U5],a=[()=>this.v3(),null];var c=e.model.Tb.valid(this.ka.mj.caption)?this.ka.mj.caption:e.model.Tb.validate(this.ka.mj.caption);
e.Za(e.model.B.j.Sja,e.P.bind(e.model.B.j.Tja,c),e.xb.vl,b,a)}v3(){this.ka.ZD(this.ka.mj);this.close()}yZ(b){if(void 0!==b){var a=e.model.C.F.lW?b.name:b.A;b.aa===e.u.i.da.NONE||void 0===b.aa?this.qz(e.P.bind('"{0}"',a)):this.qz(e.P.bind('{0}("{1}")',b.aa,a))}}MDa(b){this.Yz(b.data.DL,b.data.DZ)}Yz(b,a){b.aa=a.aa;b.caption=a.caption+" of "+b.name;this.view.Ub.xr(b)}UEa(b){b=b.data.xk;b==e.u.i.nc.QO||b==e.u.i.nc.pW||b==e.u.i.nc.MIN||b==e.u.i.nc.MAX||b==e.u.i.nc.$n||b==e.u.i.nc.IX?this.Psa(b):this.Msa(b)}Is(){this.close()}KD(){const b=
e.model.C.F.lW?this.eIa(this.view.Xh.Ti()):this.view.Xh.Ti();if(e.model.C.F.YN){var a=u.OO.qR(b,this.ka.mj?this.ka.mj.A:this.view.jr.Ti());if(0==a.Sw){e.Za(a.errorMessage);return}}a=this.ka.N4?this.view.$B.checked:!1;this.ka.lk(b,this.view.jr.Ti(),a);this.close()}eIa(b){b=b.slice(0);const a=b.match(this.z$),c=e.u.Ra.V().O.Ba;let d,g;for(let k=0;k<a.length;k++){d=a[k].substring(1,a[k].length-1);for(g=0;g<c.length&&d!==c.ea(g).kl;g++);g<c.length&&(b=b.replace('"'+d+'"','"'+c.ea(g).A+'"'))}return b}fIa(b){b=
b.slice(0);const a=b.match(this.z$),c=e.u.Ra.V().O.Ba;let d;for(let g=0;g<a.length;g++)d=a[g].substring(1,a[g].length-1),b=b.replace('"'+d+'"','"'+c.getItem(d).kl+'"');return b}close(){this.$a(v.fa.h6)}qz(b,a=0){var c=this.view.Xh.G.element.selectionStart,d=this.view.Xh.Ti();-1==c&&(c=this.di);0==c||" "==d.charAt(c-1)?(this.view.Xh.qz(b+" "),this.di=c+b.length+1):(this.view.Xh.qz(" "+b+" "),this.di=c+b.length+2);this.di-=a;this.view.Xh.Af(this.di)}Msa(b){this.qz(b)}Psa(b){const a=this.view.Xh.G.element.selectionStart,
c=this.view.Xh.G.element.selectionEnd,d=this.view.Xh.Ti();if(e.u.i.nc.QO==b)this.qz(b+"("+d.slice(a,c)+", , )",6);else{let g=e.u.i.nc.MIN==b||e.u.i.nc.MAX==b?",":"";this.qz(b+"("+d.slice(a,c)+g+")",2+g.length)}}}h.Eka=f})(l.Na||(l.Na={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Ma{constructor(a){super();this.controller=a;this.He()}He(){var a=new x.Ma("div","fm-popup-header fm-ui-row");this.W(a);var c=new x.Ma("div","fm-ui-col fm-vam");a.W(c);this.tq=new x.Uc(e.model.B.j.AW);this.tq.$("fm-popup-title");c.W(this.tq);this.aW=new x.Uc(e.model.B.j.b6);this.aW.$("fm-popup-subtitle");c.W(this.aW);c=new x.Ma("div","fm-ui-col fm-vam fm-tar fm-ui-btns-row");a.W(c);this.px=new x.Kg("fm-ui-btn-light fm-icon-act_trash fm-remove-btn");
this.px.G.attr("title",e.model.B.j.d6);c.W(this.px);this.Ne=new x.Kg("fm-ui-btn");this.Ne.cb(e.model.B.j.wl);this.Uh=new x.Kg("fm-ui-btn-dark");this.Uh.cb(e.model.B.j.Kx);u.hj.vD||u.hj.Ho?(c.W(this.Ne),c.W(this.Uh)):(c.W(this.Uh),c.W(this.Ne));this.content=a=new x.Ma("div","fm-popup-content");this.W(a);this.jr=new x.Hj;this.jr.$("fm-name-input");this.jr.kE(e.model.B.j.zW);a.W(this.jr);c=new x.Ma("div","fm-list-header fm-list-header-wide");a.W(c);var d=new x.Ma("div","fm-list-header-label-wrap");c.W(d);
var g=new x.Uc(e.model.B.j.rv);d.W(g);this.Ve=new x.Ma("div","fm-search-wrap");c.W(this.Ve);this.qe=new x.Ma("a","fm-search-btn");this.qe.Ie(0);this.qe.Ik("button");this.Ve.W(this.qe);c=new x.Ma("span","fm-ui-icon fm-icon-act_search");this.qe.W(c);this.he=new x.Hj;this.he.$("fm-search-inp");this.Ve.W(this.he);this.$i=new x.Ma("span","fm-close-search fm-ui-icon fm-icon-act_close");this.$i.Ie(0);this.$i.Ik("button");this.Ve.W(this.$i);c=new x.Ma("div","fm-list-content");a.W(c);this.Ub=new x.zd.ij;this.Ub.$("fm-lst-measures");
this.Ub.Ie();this.Ub.useCache=!1;this.Ub.qg("caption");c.W(this.Ub);this.$B=new x.NJ;this.$B.cb(e.model.B.j.Z5);a.W(this.$B);this.Nca=new x.Ma("div","fm-ui-row fm-func-btn-group");a.W(this.Nca);this.ES=[];c=this.controller.v0;for(d=0;d<c.length;d++)g=new b,g.data=c[d],g.G.attr("data-index",d),g.cb(c[d].label),g.fi(e.model.B.j[g.data.df]),g.mc(e.model.B.j[g.data.df]),this.Nca.W(g),this.ES.push(g);c=new x.Ma("div","fm-formula-wrap");a.W(c);this.Xh=new x.Hv;this.Xh.$("fm-formula-input");this.Xh.N(x.Hj.Mx,
()=>this.SEa());c.W(this.Xh);this.iU=new x.Uc(e.model.B.j.a6);this.iU.$("fm-prompt");c.W(this.iU);this.hg=new l.pd.FI;this.hg.$("fm-aggregations-view");this.hg.eb();a.W(this.hg);this.Si=new x.$q.sF(a.G);this.Si.eb();a.W(this.Si)}Xf(){this.tq.cb(e.model.B.j.AW);this.aW.cb(e.model.B.j.b6);this.Uh.cb(e.model.B.j.Kx);this.Ne.cb(e.model.B.j.wl);this.jr.kE(e.model.B.j.zW);this.$B.cb(e.model.B.j.Z5);this.iU.cb(e.model.B.j.a6);this.px.fi(e.model.B.j.d6);this.tq.vn();this.aW.vn();this.jr.mc(e.model.B.j.zW);
this.Ub.mc(e.model.B.j.Rja);this.Xh.mc(e.model.B.j.iO);for(const a of this.ES)a.fi(e.model.B.j[a.data.df]),a.mc(e.model.B.j[a.data.df])}ro(a){var c=new x.Ea("span");c.$("fm-drag-handle");c.$("fm-helper");c.$("fm-draggable");c.R("width",a.R("width"));c.R("position","absolute");c.R("z-index",100);c.attr("data-index",a.attr("data-index"));c.text(a.text());return c}SEa(){this.iU.isVisible(0==this.Xh.Ti().length)}}h.Jka=f;class b extends x.Kg{constructor(){super("fm-ui-col-9 fm-calc-action");this.Fd("fm-ui-btn")}}
h.mMa=b})(l.Na||(l.Na={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.be.ay{constructor(){super(l.Mb.Fb.G);this.ug=this.nf=this.op=this.Zx=this.Mi=0;this.$("fm-drillthrough-view");this.He()}He(){this.HF=new x.be.dk("fm-header-container");this.W(this.HF);this.Zr=new x.Uc;this.Zr.$("fm-popup-title");this.Zr.KV(!1);this.HF.W(this.Zr);this.iB=new x.Kg;this.iB.$("fm-ui-btn-close");this.iB.fi(e.model.B.j.$pa);this.iB.N(x.Md.mf,()=>this.close());this.HF.W(this.iB);this.kB=new x.be.dk("fm-details-container");this.W(this.kB);
this.bG=new x.Uc;this.bG.$("fm-ui-label-light");this.kB.W(this.bG);this.$F=new x.Uc;this.$F.$("fm-ui-label-light");this.kB.W(this.$F);this.aG=new x.Uc;this.aG.$("fm-ui-label-light");this.kB.W(this.aG);this.rK=new x.be.dk("fm-grid-container");this.W(this.rK);this.la=new l.Y.sheet.flat.iJ;this.la.Ie(-1);this.la.dl=!0;this.rK.G.W(this.la);new h.kla(this);this.Et=new h.cr.mla;this.rK.W(this.Et)}X3(){e.v(this.Pe)||this.Pe.Vm()}Ns(b=null,a=null,c=null,d=null,g=null,k=null){this.I=b;e.v(this.Pe)&&(this.Pe=
new h.lla(this));this.Pe.update(a,c,d,g,k)}close(){super.close();this.$a(l.Y.tc.L6);e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.K6))}tk(b,a,c=null,d=null){e.v(this.Pe)||this.Pe.tk(b,a,c,d)}dispose(){this.I=null;this.la&&(this.la.dispose(),this.la=null);this.Pe&&(this.Pe.dispose(),this.Pe=null);this.Et.Yd();this.Et.Gg();this.Et=null;this.Zr.Gg();this.Zr=null;this.bG.Gg();this.bG=null;this.$F.Gg();this.$F=null;this.aG.Gg();this.aG=null;this.HF.Gg();this.HF=null;this.rK.Gg();this.rK=null;this.kB.Gg();
this.kB=null;this.iB.Gg();this.iB.Yd();this.iB=null;this.Yd()}}h.SE=f})(l.Nf||(l.Nf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b){this.view=b;this.view.N(l.Y.tc.L6,()=>this.bEa());this.view.la.N(l.Y.tc.wJ,a=>this.HD(a));this.view.la.N(l.Y.tc.I6,a=>this.WEa(a));this.view.la.N(l.Y.tc.H6,a=>this.VEa(a));this.view.Et.N(l.pd.gp.BO,()=>this.R2());this.view.Et.N(l.pd.gp.WI,a=>this.Q2(a))}TR(b){return e.model.Va.V().Ia.ga.Gc?e.model.Va.V().Ia.ga.Da==e.u.i.qa.Tc?new h.Es.s8(b):e.model.Va.V().Ia.ga.Da==e.u.i.qa.API?new h.Es.tja(b):e.model.Va.V().Ia.ga.Da==e.u.i.qa.le?new h.Es.toa(b):
new h.Es.w8(b):new h.RE(b)}update(b=null,a=null,c=null,d=null,g=null){e.v(this.model)||this.model.dispose();this.model=this.TR(this.view.I);this.model.cell=g;this.model.N(h.RE.AO,()=>this.aq());this.model.update(b,a,c,d);this.view.la.slice=b;this.view.la.SC=(k,m)=>this.model.getData(k,m);this.view.la.yL.lha=(k,m,n)=>this.saveData(k,m,n)}aq(){this.view.open();const b=()=>{this.view.la.sb(l.Ni.$o,b);e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.M6,this.model.cell))};this.view.la.N(l.Ni.$o,b);this.Vm()}Vm(){this.model.Y3();
this.Xia();this.view.Et.isVisible(this.model.RBa);this.view.Xj(l.Mb.gv-70);const b=l.Mb.Fb.G.xd(!0)-this.view.kB.G.xd(!0)-this.view.HF.G.xd(!0)-30-this.view.G.padding.top-this.view.G.padding.bottom-40,a=this.view.uf()-(parseInt(this.view.G.R("border-left-width"))+parseInt(this.view.G.R("border-right-width")));this.view.la.fs();this.view.la.resize(a,b);this.view.la.width=a;this.view.la.height=b;this.view.la.Lca(1);this.view.la.yL.Jha(e.model.C.F.EC&&!e.u.Ra.V().ga.Gc);this.view.la.Gha(this.model.oN,
this.model.Oaa);this.view.la.kb();this.view.zp()}Xia(){this.view.Zr.cb(e.model.B.j.gla);var b=this.model.zAa();this.view.bG.cb(b,!0);this.view.bG.isVisible(!e.ia(b));b=this.model.iza();this.view.$F.cb(b,!0);this.view.$F.isVisible(!e.ia(b));b=this.model.Zza();this.view.aG.cb(b,!0);this.view.aG.isVisible(!e.ia(b))}HD(b){e.model.Va.V().Ia.ga.Gc||b.Oea||this.Pwa(b.cell);b.cell&&b.cell.Nh&&b.cell.QB==l.Y.X.Aq.JJ&&(this.model.HN(b.cell),this.view.la.clearData(),this.view.la.kb())}Pwa(b){if(e.model.Ua.V().n1(e.model.Ua.jO)&&
!e.v(b)){var a=this.model.xAa(b.lb);e.v(a)||(b.dl=!0,b=b.Qa(),b.rowData=a,e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.jO,b)))}}WEa(b){this.model.zw.$Ha(b.data.index);this.model.uq(this.model.zw)}VEa(b){let a=b.data.uya;b=b.data.gKa;b=Math.max(0,Math.min(b,this.model.zw.selected.length));a<b&&b--;a!=b&&(this.model.zw.DDa(a,b),this.model.uq(this.model.zw))}R2(){this.view.Et.open(this.model.zw)}Q2(b){this.model.uq(b.data)}tk(b,a,c,d){const g=this.model.Oaa,k=0<this.model.oN?this.model.oN+1:0;b==e.model.Ac.ej.LA&&
e.model.Ac.Z6.pg(this.view,a,d);b==e.model.Ac.ej.vv&&e.model.Ac.Y6.pg(this.view,a,g,k,d);b==e.model.Ac.ej.Sh&&e.model.Ac.X6.pg(this.view,a,g,k,c);b==e.model.Ac.ej.JSON&&e.model.Ac.a7.pg(this.view,a,g,k,c);b==e.model.Ac.ej.TA&&e.model.Ac.Xe.pg(this.view,a,g,k,d);b==e.model.Ac.ej.TE&&(a.hA=a.hA&&(e.model.Va.V().Ia.ga.Da==e.u.i.qa.Tc||e.model.Va.V().Ia.ga.Da==e.u.i.qa.le)&&e.model.C.F.vq,e.model.Ac.c7.pg(this.view,a,g,k))}saveData(b,a,c){this.timer&&this.timer.pl&&this.timer.stop();null==this.timer&&
(this.timer=new u.wt(1E3,1));this.timer.N(u.pf.Bl,()=>this.uGa());this.timer.start();this.model.saveData(b,a,c);this.Vm()}uGa(){this.Xia();this.timer.stop()}bEa(){this.view.la.yL.uia();e.model.C.F.EC&&this.model.D_&&(this.model.D_=!1,e.u.Ra.V().refresh())}dispose(){this.timer&&(this.timer.stop(),this.timer=null);this.model&&(this.model.dispose(),this.model=null);this.view=null}}h.lla=f})(l.Nf||(l.Nf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends v.Ah{constructor(b){super();this.bI=NaN;this.MH={};this.D_=!1;this.cell=null;this.kn=b}update(b=null,a=null,c=null,d=null){this.Qb=b;this.wg=this.x_(b);this.lh=c;this.Bg=a;this.measure=d;this.MH={};this.Qd()}uq(b){this.wg=b;b=[];if(this.wg.Oo&&0<this.wg.Oo.length){for(var a=0;a<this.wg.Oo.length;a++){var c=this.wg.Oo[a].level;b.push(void 0===c?this.wg.Oo[a].hierarchy:c)}this.Qb.bd=b}else this.Qb.bd=this.wg.selected;this.Qd()}get zw(){return this.wg}x_(b){const a=
new h.cr.P6;var c=this.Qb.Yc.wc(!1);for(var d=0;d<c.length;d++){var g=c.ea(d);a.bf.Ta(g.A,{A:g.A,caption:g.caption,ta:g.ta.Nc(!0).slice(1)})}d=null!=b.bd&&0<b.bd.length?b.bd:null!=e.model.Va.V().Ia.nM&&0<e.model.Va.V().Ia.nM.length?e.model.Va.V().Ia.nM:b.flatten().Nc(!0);for(c=0;c<d.length;c++)g=d[c],a.bf.Hb(g)&&a.eG(g);d={};for(c=0;c<b.Kf.length;c++)g=b.Kf[c],g.Na&&0<g.Xd.length&&this.Uca(g.Xd,d);for(const k in d)c=b.Yc.gd(k),e.v(c)||c.Na||a.eG(k);return a}Uca(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.Uca(c,a));if(g==e.u.i.wO.vO&&b[0]==e.u.i.nc.UI)break;void 0!==g&&(a[g]=1)}}}Y3(){this.Qd(!1)}Qd(b=!0){this.data=this.kn.bd(this.lh,this.Bg,this.measure);this.keys=this.data.shift();const a=this.kn.Du(this.lh,this.Bg);this.tDa(a);this.XZ();b&&this.$a(f.AO)}tDa(b){this.bI=NaN;if(!e.v(b))if(Array.isArray(b)){this.bI=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.bI=this.data[0].length,this.data[0].push(b))}HN(b){const a=
b.measure&&b.measure.type==e.u.i.Pa.xc?e.u.i.za.ic:e.u.i.za.Kc;let c=!0;this.ER==b.hierarchy?(this.Ih=this.Ih==e.u.i.za.ic?e.u.i.za.Kc:this.Ih==e.u.i.za.Kc?e.u.i.za.ic:a,c=!0):(this.Ih=a,c=!1);this.ER=b.hierarchy;const d=this.tda(b.hierarchy),g=b.hierarchy.Yj(b.hierarchy.Ad,!0,this.Ih);c?this.data.reverse():this.data.sort((k,m)=>g.indexOf(k[d])-g.indexOf(m[d]))}xAa(b){if(e.v(this.data)||e.v(this.data[b-1]))return null;const a=[];for(let c=0;c<this.zw.bf.length;c++){const d=this.yAa(b,this.wg.bf.Jh(c));
a.push(null==d?d:d.Qa())}return a}yAa(b,a){a=this.Qb.Yc.fh(a);if(null==a)return null;const c=this.Qb.cf(a.A);return null==c?null:this.jda(b,-1,a,c)}XZ(){this.Ih=this.ER=null}get Oaa(){return e.v(this.zw)?0:this.zw.Oo.length}get oN(){return e.v(this.data)?0:this.data.length}zAa(){for(var b,a=[],c=0;c<this.lh.length;c++){b=this.Qb.yb.ea(c);if(null==b)return null;b=b.ya(this.lh[c]);a.push(e.P.zo(b.caption,!0,!0))}a=0<a.length?e.P.bind(e.model.B.j.fla,a.join(" - ")):"";return a=a.replace(/<br\s*[\/]?>/gi,
" ")}iza(){for(var b,a=[],c=0;c<this.Bg.length;c++){b=this.Qb.Db.ea(c);if(null==b)return null;b=b.ya(this.Bg[c]);a.push(e.P.zo(b.caption,!0,!0))}a=0<a.length?e.P.bind(e.model.B.j.ela,a.join(" - ")):"";return a=a.replace(/<br\s*[\/]?>/gi," ")}Zza(){var b=this.measure.Yh(this.measure.A,this.measure.aa).clone();const a=this.kn.Ha(this.lh,this.Bg,this.measure);this.measure.aa==e.u.i.da.Ji?b.rd="":e.u.i.da.Rf(this.measure.aa)?b.Rf=!0:e.u.i.da.de(this.measure.aa)&&(b.de=!0,b.rd="%");const c=e.u.i.Pa.dc==
this.measure.type&&e.u.i.da.Zo(this.measure.aa),d=e.u.i.Pa.Sa==this.measure.type||e.u.i.Pa.Jc==this.measure.type;b=c?e.P.Cx(a,e.model.C.F.Wo):d?this.cell.label:u.Yb.format(a,b);b=e.P.bind(e.model.B.j.hla,e.P.zo(this.measure.label,!0,!0),b);return b=b.replace(/<br\s*[\/]?>/gi," ")}get RBa(){return e.model.C.F.cia?e.u.Ra.V().ga.JT:!1}get uCa(){return!e.model.Va.V().Ia.ga.Gc&&e.model.Va.V().Ia.ga.Da!=e.u.i.qa.ag&&e.model.Va.V().Ia.ga.Da!=e.u.i.qa.API}getData(b,a){return e.v(this.wg)?null:0==b?this.VC(a):
0>a||a>=this.wg.Oo.length?null:this.dH(b,a)}VC(b){const a=new l.Y.X.ke;a.dl=!0;a.Nh=!0;if(0>b||b>=this.wg.Oo.length)return null;var c=this.wg.Oo[b].level;b=this.Qb.Yc.fh(this.wg.Oo[b].hierarchy);if(null==b)return null;void 0!==c&&(c=b.uu(c),null!=c&&(a.label=b.caption+" / "+c.caption));e.ia(a.label)&&(a.label=b.caption);a.hierarchy=b;a.measure=this.Qb.Yc.cf(b.A);this.uCa&&(a.Kn=!0,a.hierarchy==this.ER&&(a.Ro=this.Ih==e.u.i.za.ic,a.So=this.Ih==e.u.i.za.Kc));return a}dH(b,a){if(e.v(this.data)||e.v(this.data[b-
1]))return null;var c=this.Qb.Yc.fh(this.wg.Oo[a].hierarchy);if(null==c)return null;const d=this.Qb.cf(c.A);return null==d?null:this.jda(b,a,c,d)}jda(b,a,c,d){const g=new l.Y.X.ke;g.lb=b;g.qc=a;g.dl=!0;g.ci=!0;const k=c.ya(this.hAa(b,this.tda(c)));g.label=this.bAa(k,-1!=a?this.wg.Oo[a].level:void 0);g.hierarchy=c;a=this.ZS(d);d.type!=e.u.i.Pa.jb&&d.type!=e.u.i.Pa.dc&&d.type!=e.u.i.Pa.Sa&&d.type!=e.u.i.Pa.Jc||e.v(k)||(g.value=k.fc,g.label=d.type==e.u.i.Pa.jb?u.Yb.format(g.value,a):k.caption,g.numeric=
g.numeric||d.type!=e.u.i.Pa.jb?g.numeric:!0);e.ia(a.textAlign)||g.Qy({"text-align":a.textAlign});g.mN=this.Du(b);g.measure=d;return g}Du(b){return isNaN(this.bI)?void 0:this.data[b-1][this.bI]}ZS(b){e.v(this.MH[b.A])&&(this.MH[b.A]=b.Yh(b.A,b.aa,!0).clone());return this.MH[b.A]}hAa(b,a){for(;null==this.data[b-1][a];)a--;return this.data[b-1][a]}bAa(b,a){let c="";if(e.v(b))return c;c=b.caption;if(!e.ia(a))for(;b;){if(b.level.A==a){c=b.caption;break}b=b.parent}return c}tda(b){var a=this.keys.indexOf(b.A);
2<b.ta.length&&(a=this.keys.indexOf(b.ta.Jh(b.ta.length-1)));return a}saveData(b,a,c){(a=this.getData(b,a))&&a.label!=c&&a.value!=c&&(c=this.kn.save(this.lh,this.Bg,a.hierarchy,c,b-1),this.data[b-1][this.keys.indexOf(a.hierarchy.A)]=c,this.D_=!0)}dispose(){this.keys=this.data=this.measure=this.lh=this.Bg=this.wg=this.Qb=this.kn=null;this.bI=NaN;this.MH=this.Ih=this.ER=null}}f.AO="dataloaded";h.RE=f})(l.Nf||(l.Nf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends l.Y.G7{show(b,a){var c=[];c=this.XR(c,b?b.Qa():null,"drillthrough");return 0<c.length?(this.dS(c,a),!0):!1}}h.kla=f})(l.Nf||(l.Nf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.jk=[];this.rn=[];this.bf=new e.tb}get selected(){return this.jk}set selected(a){e.v(a)||(this.jk=a,this.rn=null)}eG(a){this.yd(a)||(this.jk.push(a),this.rn=null)}$Ha(a){this.qT?this.rn.splice(a,1):(this.jk.splice(a,1),this.rn=null)}get qT(){return!e.v(this.rn)&&this.jk.length!==this.rn.length}DDa(a,c){this.qT?e.Ja.F2(this.rn,a,c):(e.Ja.F2(this.jk,a,c),this.rn=null)}yd(a){return this.qT?0<=this.rn.findIndex(c=>void 0!==
c.level?c.level===a:c.hierarchy===a):0<=this.jk.indexOf(a)}get Oo(){if(!e.v(this.rn))return this.rn;this.rn=[];for(let d=0;d<this.jk.length;d++){var a=this.bf.getItem(this.jk[d]);if(!e.v(a))if(a=a.ta,void 0!==a&&1<a.length)for(var c=0;c<a.length;c++)this.rn.push({hierarchy:this.jk[d],level:a[c]});else this.rn.push({hierarchy:this.jk[d]})}return this.rn}isEqual(a){if(e.v(a)||e.v(a.jk)||this.jk.length!=a.jk.length)return!1;for(let c=0;c<this.jk.length;c++)if(this.jk[c]!=a.jk[c])return!1;return!0}clone(){const a=
new b;a.bf=this.bf.slice();a.jk=a.jk.slice();return a}}f.P6=b})(h.cr||(h.cr={}))})(l.Nf||(l.Nf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Ma{constructor(){super();this.$("fm-fields-view-wrap");this.He();this.Pe=new f.nla(l.Mb.Fb.G);this.Pe.N(v.fa.CLOSED,()=>this.dN());this.Pe.N(l.pd.gp.WI,a=>this.I2(a))}He(){this.Ms=new x.Kg("fm-btn-open-fields");this.Ms.fi(e.model.B.j.LP);this.Ms.N(x.Md.mf,()=>this.s3());this.W(this.Ms)}updateLabels(){this.Ms.fi(e.model.B.j.LP)}open(a){this.G.Wa("fm-fields-opened",!0);this.Pe.uq(a);this.Pe.view.open();this.Uv=!0}close(){this.Pe.view.eb();
this.Pe.view.close()}s3(){this.$a(l.pd.gp.BO)}dN(){this.Uv=!1;this.G.Wa("fm-fields-opened",!1)}I2(a){this.Fa(a)}get Pu(){return this.Uv}}f.mla=b})(h.cr||(h.cr={}))})(l.Nf||(l.Nf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.pd.flat.X5{constructor(a){super(a)}uq(a,c){this.Qb=a;this.Ft=c;this.Oa=a.bf.Nc();this.hl(a.selected);this.lI(this.Oa,a.selected)}get slice(){return this.Qb}get rD(){return!1}get $T(){return!1}iM(a){const c=this.Qb.clone();c.selected=this.Iia(this.Oa,a).map(d=>d.A);return c}aU(){return!1}Yu(){}Zu(){}update(){}mE(){}}f.ola=b})(h.cr||(h.cr={}))})(l.Nf||(l.Nf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.pd.flat.A7{constructor(a){super(a);this.$("fm-fields-view");this.$("fm-dt-fields");this.OD.$("fm-dt-fields-overlay");l.Mb.Fb.G.W(this.G)}}f.pla=b})(h.cr||(h.cr={}))})(l.Nf||(l.Nf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.pd.flat.dX{constructor(a){super(a,!1);this.model=this.Gb}TR(a){return new f.ola(a)}nba(a){return new f.pla(a)}uq(a){this.model.uq(a,l.pd.gp.pS);this.Vm();this.view.Zd&&this.view.Zd.Af(this.Gb.Y0());this.view.Xf()}ne(){var a=[];const c=this.view.fb.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.Gb.iM(a);this.model.slice.isEqual(a)||this.$a(l.pd.gp.WI,this,a)}}f.nla=b})(h.cr||
(h.cr={}))})(l.Nf||(l.Nf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.RE{constructor(a){super(a);this.rf=e.u.Ra.V()}get oN(){return e.v(this.data)?0:this.data.length-1}Y3(){}Qd(){this.data=[];this.rf.bd(this.lh,this.Bg,this.measure,a=>this.aq(a),this.wg.selected)}aq(a){this.data=a;e.Ca(!1);this.$a(h.RE.AO)}dda(a){a=this.rf.ga.mapping.Ha(a,"time_zone");return e.v(a)?e.model.C.F.Mj:(a=Number(a.split(":",1)[0]),isNaN(a)?e.model.C.F.Mj:a)}dH(a,c){if(e.v(this.data)||e.v(this.data[a]))return null;var d=
this.Qb.Yc.fh(this.wg.selected[c]);if(null==d)return null;var g=this.Qb.cf(d.A);if(null==g)return null;const k=this.data[a][c];g=this.ZS(g);const m=new l.Y.X.ke;m.lb=a;m.qc=c;m.dl=!0;m.ci=!0;if(d.type==e.u.i.Lc.Cq)"number"==typeof k&&(m.label=u.Yb.format(k,g),m.value=k);else if(d.type==e.u.i.Lc.Sa)if("number"===typeof k)a=this.cda(d.A),d=this.dda(d.A),m.label=e.P.Bx(k,a,d),m.value=k;else if("string"!==typeof k||e.ia(k))m.label=e.model.B.j.Qn;else try{const n=e.P.HT(k),p=this.cda(d.A),t=this.dda(d.A);
m.label=n?u.zh.format(new Date(k),p,t):k}catch(n){m.label=k}else m.label=k;e.ia(g.textAlign)||m.Qy({"text-align":g.textAlign});return m}cda(a){return this.rf.ga.mapping.Ha(a,"format",e.model.C.F.Ep)}dispose(){super.dispose();this.rf=null}}f.w8=b})(h.Es||(h.Es={}))})(l.Nf||(l.Nf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.RE{constructor(a){super(a);this.rf=e.u.Ra.V()}update(a=null,c=null,d=null,g=null){this.Qb=a;this.lh=d;this.Bg=c;this.measure=g;this.MH={};this.Qd()}Y3(){}Qd(){this.data=[];this.rf.bd(this.lh,this.Bg,this.measure,a=>this.aq(a))}uq(a){this.wg=a;this.fY={};for(a=0;a<this.wg.selected.length;a++){var c=this.wg.selected[a];this.fY[c]=this.wg.bf.indexOf(c)}this.$a(h.RE.AO)}aq(a){e.Ca(!1);this.data=a;this.uq(this.x_(this.Qb))}x_(a){const c=
new h.cr.P6;for(var d of this.data[0])d=d.replace("$",""),c.bf.Ta(d,{A:d,caption:this.gAa(d)});if(!e.model.C.F.F4&&this.rf.ga.JT){var g=a.flatten();d=c.bf.Nc(!0);for(var k=0;k<g.length;k++){var m=g.ea(k);if(2>=m.ta.length)m=this.hDa(m,d),e.ia(m)||c.eG(m);else if(null!=m.oc)m=m.gg.split("."),m=0<m.length?m[0]+"."+m[m.length-1]:null,-1<d.indexOf(m)&&c.eG(m);else{m=m.A.split(".");for(let n=0;n<d.length;n++)-1<(m[0]==d[n].split(".")[0]?n:-1)&&c.eG(d[n])}}for(g=0;g<a.Kf.length;g++)k=this.iDa(a.Kf[g],d),
e.ia(k)||c.eG(k)}if(e.model.C.F.F4||0==c.selected.length)c.selected=c.bf.Nc(!0);return c}gAa(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}hDa(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}iDa(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.Dg}].${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}VC(a){const c=
new l.Y.X.ke;c.dl=!0;c.Nh=!0;a=this.wg.selected[a];if(e.v(a))return null;c.label=this.wg.bf.getItem(a).caption;return c}dH(a,c){if(e.v(this.data)||e.v(this.data[a]))return null;var d=this.wg.selected[c];const g="[Measures].["+this.wg.bf.getItem(d).caption+"]",k=this.kn.Ba.find(n=>n.A===g);d=this.data[a][this.fY[d]];const m=new l.Y.X.ke;m.lb=a;m.qc=c;m.dl=!0;m.ci=!0;e.model.C.F.vq||null==k?"number"==typeof d?(m.label=e.model.C.F.vq||null!=k?u.Yb.format(d):u.Yb.format(d,e.model.ec.gj.RS()),m.value=
d):(m.label=d,null==k&&m.Qy({"text-align":"left"})):(a=this.ZS(k),m.label=u.Yb.format(d,a),m.value=d,""!=a.textAlign&&m.Qy({"text-align":a.textAlign}));return m}dispose(){super.dispose();this.fY=this.rf=null}}f.s8=b})(h.Es||(h.Es={}))})(l.Nf||(l.Nf={}))})(e.K||(e.K={}))})(q||(q={}));var db=q||(q={}),eb=db.K||(db.K={}),fb=eb.Nf||(eb.Nf={}),gb=fb.Es||(fb.Es={});class hb extends gb.s8{}gb.toa=hb;
(function(e){(function(l){(function(h){(function(f){class b extends f.w8{dH(a,c){if(e.v(this.data)||e.v(this.data[a]))return null;var d=this.wg.Oo[c].level,g=this.Qb.Yc.fh(this.wg.Oo[c].hierarchy);if(null==g)return null;var k=d?g.uu(d):null,m=this.Qb.cf(g.A);if(null==m)return null;d=this.data[a][c];m=this.ZS(m);const n=new l.Y.X.ke;n.lb=a;n.qc=c;n.dl=!0;n.ci=!0;g.type===e.u.i.Lc.Cq?(n.label="number"===typeof d?u.Yb.format(d,m):d,n.value=d):g.type===e.u.i.Lc.Sa||k&&e.u.i.ib.HBa(k.type)?"number"==typeof d?
(k&&k.type===e.u.i.ib.Jc?(a=this.rf.ga.mapping.Ha(g.A,"format",e.model.C.F.rk),n.label=e.P.ON(d,a,e.model.C.F.Mj)):(a=this.rf.ga.mapping.Ha(g.A,"format",e.model.C.F.Ep),n.label=e.P.Bx(d,a,e.model.C.F.Mj)),n.value=d):"string"!==typeof d||e.ia(d)||"null"===d?n.label=!e.model.C.F.br||null!==d&&"null"!==d?e.model.B.j.Qn:e.model.B.j.IW:n.label=d:n.label=d;e.ia(m.textAlign)||n.Qy({"text-align":m.textAlign});return n}}f.tja=b})(h.Es||(h.Es={}))})(l.Nf||(l.Nf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){class h{}h.Qx="FILTER_OPEN";h.aX="FILTER_CLOSE";h.LW="DRILL_THROUGH_OPEN";h.p6="CONTEXT_MENU_OPEN";h.GX="RENDER_COMPLETE";h.Jx="beforegriddraw";h.$o="aftergriddraw";l.Ni=h;class f extends v.fa{constructor(a){super(h.Qx);this.hierarchy=a}}l.NO=f;class b extends v.fa{constructor(a,c,d,g){super(h.LW);this.measure=a;this.Bg=c;this.lh=d;this.cell=g}}l.O6=b})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.bs=[];this.Hd=new e.XE;this.re=[];this.td="";this.Ee=!0}FV(b){this.th=b}Sha(b){this.$f=b;this.bs=this.th.Yj(this.th.Ad,!1,this.$f)}wha(b,a){var c=this.Te()?this.re:this.bs;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.Ee!=a?this.Hd.add(b):this.Hd.delete(b);this.Hd.size!=this.bs.length||this.Te||this.selectAll(!this.Ee)}search(b,a){b=b.toLowerCase();this.td===b?a(this.re):
(this.td=b,0==this.td.length?a():e.u.Ra.V().nq(this.th,b,a))}Rha(b){null!=b?this.re=b:this.re.length=0}selectAll(b){if(this.Te())for(var a=this.re.length,c=0;c<a;c++)e.P.contains(this.th.ya(this.re[c]).caption,this.td)&&this.select(this.re[c],b);else this.Ee=b,this.Hd.clear()}uha(){}Nw(){var b=this.Ee||this.Te()?this.Ee&&this.Te()?this.re.length+this.Pva()-this.Hd.size:this.Ee||0!=this.Hd.size?this.bs.length==this.Hd.size?this.re.length:this.bs.length-this.Hd.size:this.Hd.size:this.Hd.size;return 0<
b?b:0}Pva(){let b=0;for(let a=0;a<this.re.length;a++)this.Hd.has(this.re[a])&&b++;return this.Hd.size-b}jz(){if(this.Te()){for(var b=0,a=0;a<this.re.length;a++)!this.Hd.has(this.re[a])==this.Ee&&b++;return b}return this.Nw()}CV(b){this.Hd.clear();var a=b.length;this.Ee=0==a;if(!this.Ee)for(let c=0;c<a;c++)this.Hd.add(b[c])}TS(){const b=[];var a=this.Te()&&this.Ee?this.re:this.Hd.Nc();const c=a.length;if(this.Te()&&this.Ee)for(a=0;a<this.re.length;a++)this.Hd.has(this.re[a])||b.push(this.re[a]);else for(let d=
0;d<c;d++)b[d]=a[d];a=this.Te()&&this.Ee?!1:0==b.length?!1:this.Ee;return{items:b,Wu:a}}GV(b){this.bs=b;this.td="";this.re.length=0}S0(b,a){const c=[];let d=b;var g=e.P.zo(this.td.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),!0,!0);g=new RegExp("("+g+")","ig");const k=this.Te()?this.re:this.bs;let m;for(;d<a&&!(d>k.length-1);d++){var n=this.th.ya(k[d]);m=e.P.zo(n.caption,!0,!0);n={bc:n,label:this.Te()?m.replace(g,'<b class="fm-search-highlight">$&</b>'):m,yd:(this.Hd.has(n.ordinal)?!this.Ee:this.Ee)?
1:0,cfa:0,vIa:a-b<k.length-1?15:0,Sg:n.Sg&&"Others"!==m};c.push(n)}return c}getItem(b){return(this.Te()?this.re:this.bs)[b]}jH(){return this.Te()?this.re.length:this.bs.length}getTotalLength(){return this.jH()}Te(){return 0<this.td.length}expand(){}collapse(){}}h.zX=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.md=[];this.Hd=[];this.re=[];this.Gk=[];this.az=[];this.td="";this.Ee=!0;this.$f=e.u.i.za.fd}FV(b){this.th=b;this.md.length=0}Sha(b){this.$f=b;this.md.length=0;this.D1(this.th.Ad,-1)}GV(b){for(var a=0,c=b.length,d;a<c;a++)d=this.th.ya(b[a]),d.Zb||(this.md.push(b[a]),d.Rg&&d.children&&0<d.children.length&&(this.az.push(b[a]),this.GV(this.$f===e.u.i.za.fd?d.children.slice():this.th.Yj(d,!1,this.$f))))}S0(b,a){var c=b,d=[],g=new RegExp("("+
this.td+")","i"),k=this.Te()?this.re:this.md;let m;for(;c<a&&!(c>k.length-1);c++){var n=this.th.ya(k[c]);m=e.P.zo(n.caption,!0,!0);n={bc:n,cfa:n.level.wb,label:this.Te()?m.replace(g,'<b class="fm-search-highlight">$&</b>'):m,yd:this.yd(n),Te:this.Te(),Sf:this.Sf(n),vIa:a-b<k.length-1?17:0,Sg:n.Sg&&"Others"!=n.caption,nT:this.nT(n)};d.push(n)}return d}getItem(b){return(this.Te()?this.re:this.md)[b]}yd(b){var a=(-1==this.Hd.indexOf(b.ordinal)?this.Ee:!this.Ee)?1:0;0<this.Hd.length&&-1!=this.Gk.indexOf(b.ordinal)&&
(a=-1);return a}nT(b){return this.Te()?!1:!b.Oh}Sf(b){return this.Te()||b.Oh?void 0:-1!=this.az.indexOf(b.ordinal)?!0:!1}jH(){return this.Te()?this.re.length:this.md.length}getTotalLength(){if(this.Te()){let c=0;if(e.u.Ra.V().ga.Gc)for(var b=this.re.length,a=0;a<b;a++)e.P.contains(this.th.ya(this.re[a]).caption,this.td)||c++;return this.re.length-c}return this.th?this.th.Ri-1:0}wha(b,a){var c=this.Te()?this.re:this.md;b=c.indexOf(b.ordinal);a=c.indexOf(a.ordinal);for(a<b&&(b=a+(a=b,0));b<=a;b++)this.select(this.th.ya(c[b]),
!0)}select(b,a){var c=this.Hd.indexOf(b.ordinal);this.Ee!==a?(-1==c&&this.Hd.push(b.ordinal),0<b.children.length&&this.gV(b)):(-1!=c&&this.Hd.splice(c,1),0<b.children.length&&this.f4(b));a=this.Gk.indexOf(b.ordinal);-1!=a&&this.Gk.splice(a,1);this.vha(b);this.Hd.length===this.th.Ri-1&&(this.Hd.length=0,this.Gk.length=0,this.Ee=!this.Ee)}uha(b){-1==this.Gk.indexOf(b.ordinal)&&(-1==this.Hd.indexOf(b.ordinal)?this.f4(b):this.gV(b))}vha(b){var a=b.parent;if(a&&!a.Zb){b=this.Hd.indexOf(a.ordinal);var c=
this.Gk.indexOf(a.ordinal);var d=-1!=b;this.Rda(a,!1)?(this.Rda(a)?(-1==c&&this.Gk.push(a.ordinal),this.Ee&&d&&this.Hd.splice(b,1)):(-1!=c&&this.Gk.splice(c,1),this.Ee&&!d&&this.Hd.push(a.ordinal)),!this.Ee&&d&&this.Hd.splice(b,1)):(-1!=c&&this.Gk.splice(c,1),this.Ee&&d?this.Hd.splice(b,1):this.Ee||d||this.Hd.push(a.ordinal));this.vha(a)}}Rda(b,a=!0){var c=0;b=b.children;for(var d=b.length;c<d;c++)if(-1==this.Hd.indexOf(b[c])==this.Ee==a||-1!=this.Gk.indexOf(b[c]))return!0;return!1}gV(b){var a=0;
b=b.children;for(var c=b.length;a<c;a++){var d=this.Hd.indexOf(b[a]);var g=this.Gk.indexOf(b[a]);-1==d&&this.Hd.push(b[a]);-1!=g&&this.Gk.splice(g,1);d=this.th.ya(b[a]);0<d.children.length&&this.gV(d)}}f4(b){for(var a=0,c,d,g=b.children,k=g.length;a<k;a++)d=this.th.ya(g[a]),b=this.Hd.indexOf(g[a]),c=this.Gk.indexOf(g[a]),-1!=b&&this.Hd.splice(b,1),-1!=c&&this.Gk.splice(c,1),0<d.children.length&&this.f4(d)}selectAll(b){if(this.Te())for(var a=this.re.length,c,d=0;d<a;d++)c=this.th.ya(this.re[d]),e.P.contains(c.caption,
this.td)&&this.select(c,b);else this.Ee=b,this.Hd.length=0,this.Gk.length=0}jz(){if(this.Te()){for(var b=0,a=this.re.length,c,d=0;d<a;d++)c=this.th.ya(this.re[d]),e.P.contains(c.caption,this.td)&&0>this.Hd.indexOf(this.re[d])==this.Ee&&b++;return b}return this.Nw()}Nw(){var b=this.Ee?this.th.Ri-this.Hd.length-this.Gk.length-1:this.Hd.length;return 0>b?0:b}CV(b){var a=b.length;this.Hd.length=0;this.Gk.length=0;if(0==a)this.Ee=!0;else{this.Ee=!1;for(var c,d=0;d<a;d++)for(c=this.th.ya(b[d]),this.Hd.push(c.ordinal),
0<c.children.length&&this.gV(c);c.parent&&!c.parent.Zb;)c=c.parent,-1==this.Gk.indexOf(c.ordinal)&&this.Gk.push(c.ordinal)}}TS(){var b=[];var a=this.Te()&&this.Ee?this.re:this.Hd;for(var c=0,d=a.length;c<d;c++){var g=this.th.ya(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.Te()&&this.Ee?!1:0==b.length?!1:this.Ee;return{items:b,Wu:g}}search(b,a){b=b.toLowerCase();this.td===b?a():(this.td=b,0==this.td.length?a():e.u.Ra.V().nq(this.th,b,a))}Rha(b){null!=
b?this.re=b:this.re.length=0}Te(){return 0<this.td.length}expand(b){-1==this.az.indexOf(b.ordinal)&&this.az.push(b.ordinal);this.bia(b,!0)}collapse(b){var a=this.az.indexOf(b.ordinal);-1!=a&&this.az.splice(a,1);this.bia(b,!1)}bia(b,a){var c=this.md.indexOf(b.ordinal);a?this.D1(b,c):this.md.splice(c+1,this.xda(b))}D1(b,a){b=this.$f===e.u.i.za.fd?b.children:this.th.Yj(b,!1,this.$f);for(var c=b.length-1,d=a+1;-1<c;c--)a=this.th.ya(b[c]),this.md.splice(d,0,b[c]),-1<this.az.indexOf(b[c])&&this.D1(a,d)}xda(b){b=
b.children;for(var a=b.length,c=a,d,g=0;g<a;g++)d=this.th.ya(b[g]),-1<this.az.indexOf(b[g])&&(c+=this.xda(d));return c}}h.soa=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.be.dk{constructor(){super();this.$("fm-filter-view-content");this.He()}He(){var b=new x.Ma("div","fm-popup-header fm-ui-row");this.W(b);var a=new x.Ma("div","fm-ui-col-2 fm-vam");b.W(a);this.tq=new x.Uc;this.tq.$("fm-popup-title");a.W(this.tq);a=new x.Ma("div","fm-ui-col fm-vam fm-ui-btns-row");b.W(a);this.mG=new x.Kg("fm-ui-btn");this.mG.cb(e.model.B.j.wl);this.wp=new x.Kg("fm-ui-btn-dark");this.wp.cb(e.model.B.j.Kx);u.hj.vD||u.hj.Ho?(a.W(this.mG),
a.W(this.wp)):(a.W(this.wp),a.W(this.mG));b=new x.Ma("div","fm-ui-row fm-filter-sort-row");this.W(b);this.UG=new x.Ma("div","fm-ui-col fm-filters-col");b.W(this.UG);this.uS=new x.Uc;this.uS.$("fm-filter-label");this.uS.$("fm-ui-label-light");this.UG.W(this.uS);this.ef=new x.NP;this.ef.$("fm-labels-filter-btn");this.ef.$("fm-filter-btn");this.DH=new x.Uc;this.ef.W(this.DH);this.ef.G.W(new x.Ea("div","fm-ui-arrow-up",!1));this.UG.W(this.ef);this.Ef=new x.NP;this.Ef.$("fm-values-filter-btn");this.Ef.$("fm-filter-btn");
this.hja=new x.Uc;this.Ef.W(this.hja);this.Ef.G.W(new x.Ea("div","fm-ui-arrow-up",!1));this.UG.W(this.Ef);this.Wm=new h.Cqa;this.Wm.$("fm-values-filter-view");this.Wm.eb();this.W(this.Wm);this.vo=new h.jla;this.vo.$("fm-dates-filter-view");this.vo.eb();this.W(this.vo);this.Tp=new h.hna;this.Tp.$("fm-labels-filter-view");this.Tp.eb();this.W(this.Tp);this.$p=new h.Coa;this.$p.$("fm-numbers-filter-view");this.$p.eb();this.W(this.$p);this.sq=new h.kqa;this.sq.$("fm-time-filter-view");this.sq.eb();this.W(this.sq);
this.IN=new x.Ma("div","fm-ui-col fm-sort-col");b.W(this.IN);this.VV=new x.Uc;this.VV.$("fm-sort-label");this.VV.$("fm-ui-label-light");this.VV.cb(e.model.B.j.mma);this.IN.W(this.VV);b=new x.Ma("div","fm-sort-btns");this.IN.W(b);this.Kk=new x.NP;this.Kk.$("fm-sort-btn");this.Kk.cb(e.model.B.j.o7);b.W(this.Kk);this.Lk=new x.NP;this.Lk.$("fm-sort-btn");this.Lk.cb(e.model.B.j.r7);b.W(this.Lk);this.Xb=new h.roa;this.W(this.Xb)}get Zd(){return this.Xb.Zd}get sx(){return this.Xb.sx}get Jn(){return this.Xb.Jn}Xf(){this.wp.cb(e.model.B.j.Kx);
this.mG.cb(e.model.B.j.wl);this.Kk.cb(e.model.B.j.o7);this.Kk.fi(e.model.B.j.p7);this.Kk.mc(e.model.B.j.p7);this.Lk.cb(e.model.B.j.r7);this.Lk.fi(e.model.B.j.s7);this.Lk.mc(e.model.B.j.s7);this.uS.cb(e.model.B.j.IA);this.DH.cb(e.model.B.j.KO);this.ef.mc(e.model.B.j.IA+" "+e.model.B.j.KO);this.hja.cb(e.model.B.j.v7);this.Ef.mc(e.model.B.j.IA+" "+e.model.B.j.v7);this.vo.Xf();this.Tp.Xf();this.$p.Xf();this.sq.Xf();this.Wm.Xf();this.Xb.Xf()}}h.Cma=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q=
{}));
(function(e){(function(l){(function(h){class f extends x.Ci.cB{constructor(){super();this.HCa=20;this.pu=new x.WX;this.pu.Fd("fm-ui-toggle-btn");this.pu.$("fm-expand-toggle-btn");this.pu.N(v.fa.$d,()=>this.dEa());this.pu.Ie(-1);this.G.append(this.pu.G);this.fE=new x.NJ;this.fE.G.d4("tabindex");this.fE.N(v.fa.$d,b=>this.D3(b.data));this.G.append(this.fE.G);this.oe("all")}dEa(){var b=this.getData();b.Sf=1==this.pu.getSelection();this.G.$a(h.hJ.XI,this,b)}D3(b){var a=this.getData();a.yd=this.fE.getSelection();this.G.$a(h.hJ.AP,
this,{bc:a,shiftKey:b.shiftKey})}kb(){if(this.zs("data")){const a=this.getData();if(this.pu&&this.fE&&a){this.G.R("padding-left","");var b=this.HCa*(a.cfa-1);a.Te||void 0!==a.Sf||(b+=30);0<b&&this.G.R("padding-left",b+"px");a.nT?(this.pu.show(),this.pu.Af(a.Sf)):this.pu.eb();this.fE.cb(a[this.er()],!0);this.fE.Af(a.yd)}}}}h.Ama=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.zd.rqa{constructor(){super();this.gU=null;this.Ie();this.ei((b,a)=>this.Tza(b,a))}Tza(b,a){var c=new h.Ama;c.setData(b);c.Tm(a);c.N(f.AP,d=>this.D3(d));c.N(f.XI,d=>this.GEa(d));return c}av(b){super.av(b);b=b.data.ql;b.yd=1==b.yd?0:1;this.o5(b)}D3(b){this.o5(b.data.bc,b.data.shiftKey)}o5(b,a=!1){1==b.yd&&a&&this.gU&&this.jh().wha(this.gU.bc,b.bc);this.rJa(b,1==b.yd);this.Fa(new v.fa(f.AP,this))}GEa(b){this.Oia(b.data)}Oia(b){b.Sf?0===b.bc.children.length||
b.bc.vf?e.model.Va.V().ha.Bk(b.bc.hierarchy,b.bc,()=>this.Sj(b)):this.Sj(b):(this.jh().collapse(b.bc),this.oe("data"),this.Fa(new v.fa(f.XI,this)))}Sj(b){e.Ca(!1);this.jh().uha(b.bc);this.jh().expand(b.bc);this.oe("data");this.Fa(new v.fa(f.XI,this))}jh(){return this.Jxa}D4(b){this.Jxa=b}TS(){return this.jh().TS()}CV(b){this.jh().CV(b);this.oe("data")}jz(){return this.jh().jz()}Nw(){return this.jh().Nw()}getTotalLength(){return this.jh().jH()}iT(){return this.jh().getTotalLength()}rJa(b,a){this.jh()instanceof
h.zX?this.jh().select(b.bc.ordinal,a):this.jh().select(b.bc,a);this.gU=a?b:null;this.oe("data")}selectAll(b){this.jh().selectAll(b);this.gU=null;this.oe("data")}search(b,a){this.jh().search(b,c=>{this.jh().Rha(c);this.oe("data");a()});this.G.Wa("fm-is-searched",this.Te())}Te(){return this.jh().Te()}FV(b){this.jh().FV(b)}sort(b){b!==this.jh().$f&&(this.jh().Sha(b),this.oe("data"))}}f.AP="_";f.XI="__";h.hJ=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.Xp=e.model.Va.V()}static V(){null==f.instance&&(f.instance=new f);return f.instance}static dispose(){f.instance=null}update(b){this.Ba=[];const a=this.Xp.ha.ua.hd();for(let c=0;c<a.length;c++){const d=a[c],g=new e.model.hb.ah(d.A,d.aa,d.index);g.label=d.caption;!b.filter.measure||-1!=b.filter.measure.index||g.A!=b.filter.measure.A||""!=b.filter.measure.aa&&g.aa!=b.filter.measure.aa||
(b.filter.measure.index=g.index);this.Ba.push(g)}this.al={};this.Fha(b)}Fha(b){(this.hierarchy=b)?(this.hierarchy.filter.wh&&(this.al.type=this.hierarchy.filter.type,this.hierarchy.filter.measure&&(this.al.measure=this.hierarchy.filter.measure.Qa()),this.hierarchy.filter.query&&(this.al.query=this.hierarchy.filter.query.clone())),this.md=this.hierarchy.Zf!==e.u.i.za.fd?this.hierarchy.Yj(this.hierarchy.Ad,!1,this.hierarchy.Zf):this.hierarchy.Ad.children.slice(),this.m$=e.model.hb.JA.WS(this.hierarchy)):
this.m$=e.u.i.qb.NONE;this.K$=this.Xp.ha.O.VG.Gda(this.hierarchy,this.Hn)}hd(){if(this.Vi){var b=this.Xp.ha.O.cf(this.hierarchy.A),a=new e.model.hb.ah(b.A,b.aa,b.index);a.label=b.caption;return[a]}return this.Xp.ha.ga.Gc?this.Ba.filter(c=>{const d=this.Xp.ha.O.gd(c.A);c=-1<e.u.i.da.nA.indexOf(c.aa);return d&&!d.Na&&!c}):this.Ba}ata(b){var a=!1,c=!1;!e.v(this.hierarchy.filter.query)&&e.v(b.query)?(a=!0,this.hierarchy.eC(),this.Xp.bb()):e.v(b.query)||(c=this.nCa(b));var d=this.Cea(b);if(c||d)return a=
{},c&&!e.v(b.measure)&&(a.measure=b.measure),c&&!e.v(b.query)&&(a.query=b.query.Qa()),d&&!e.v(b.md)&&(a.members=b.md),d&&!e.v(b.$y)&&(a.exclude=b.$y),this.Xp.em(this.hierarchy.A,a),!0;a&&this.Xp.refresh();return!1}eu(){this.Xp.eu(this.hierarchy.A)}nCa(b){if(b.type==e.u.i.qb.Sa)return this.GBa(b);if(b.type==e.u.i.qb.Ok)return this.aCa(b);if(b.type==e.u.i.qb.jb||b.type==e.u.i.qb.dc)return this.gCa(b);if(b.type==e.u.i.qb.$n)return this.wCa(b)}GBa(b){return this.hierarchy.filter.type!==b.type||this.hierarchy.filter.query.va!=
b.query.va?!0:0<=e.u.i.$b.ki.indexOf(b.query.va)?!e.Zg.d0(this.hierarchy.filter.query.value,b.query.value):0<=e.u.i.$b.If.indexOf(b.query.va)?this.hierarchy.filter.query.value&&b.query.value?!e.Zg.d0(this.hierarchy.filter.query.value[0],b.query.value[0])||!e.Zg.d0(this.hierarchy.filter.query.value[1],b.query.value[1]):!0:0<=e.u.i.$b.Wx.indexOf(b.query.va)?this.hierarchy.filter.query.value!==b.query.value:!1}aCa(b){return this.hierarchy.filter.type!==b.type||this.hierarchy.filter.query.va!=b.query.va?
!0:0<=e.u.i.Bb.ki.indexOf(b.query.va)?this.hierarchy.filter.query.value!==b.query.value:0<=e.u.i.Bb.If.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}gCa(b){return this.hierarchy.filter.type!==b.type||this.hierarchy.filter.query.va!==b.query.va?!0:0<=e.u.i.Jg.ki.indexOf(b.query.va)?this.hierarchy.filter.query.value!==b.query.value:0<=e.u.i.Jg.If.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}wCa(b){return this.hierarchy.filter.type!==b.type||this.hierarchy.filter.measure.A!==b.measure.uniqueName||this.hierarchy.filter.measure.aa!==b.measure.aggregation||this.hierarchy.filter.query.va!=b.query.va?!0:0<=e.u.i.yc.ki.indexOf(b.query.va)?this.hierarchy.filter.query.value!==b.query.value:0<=e.u.i.yc.If.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}Cea(b){if(null==b)return this.hierarchy.filter.wi;if(null==b.md&&null==b.$y)return!1;var a=this.hierarchy.filter.Pj();if(b.md){var c=b.md;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.$y){b=b.$y;if(a.length+b.length!==this.hierarchy.Ri-1)return!0;d=0;for(g=b.length;d<g;d++)if(-1==
a.indexOf(b[d]))return!0}return!1}vta(b){b!=this.hierarchy.Zf&&this.Xp.nE(this.hierarchy.A,b)}get U1(){return!this.Vi&&this.Xp.ha.ua.ob.Hb(this.hierarchy.A)}get Gc(){return this.Xp.Ia.ga.Gc}get Vi(){return e.model.C.F.rc&&e.model.C.F.je!=l.Id.dj}get Hn(){return this.m$}get To(){return this.K$?this.K$:new e.u.O.Vpa}get Qw(){return this.al.type==e.u.i.qb.Sa||this.al.type==e.u.i.qb.Ok||this.al.type==e.u.i.qb.jb||this.al.type==e.u.i.qb.dc}get xi(){return this.al.type==e.u.i.qb.$n}}h.y7=f})(l.filter||
(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends v.Ah{constructor(){super();this.model=h.y7.V();this.view=new h.Cma;null!=this.view.fBa&&this.view.fBa.N(v.fa.$d,b=>this.aFa(b));null!=this.view.Jn&&(this.view.Jn.N(x.Hj.Mx,b=>this.hGa(b.data)),this.view.Jn.N(x.Hj.DA,()=>this.jGa()),this.view.Jn.N(x.Hj.T6,()=>this.iGa()));this.view.Xb&&this.view.Xb.Jd&&(this.view.Xb.Jd.N(h.hJ.AP,()=>this.FFa()),this.view.Xb.Jd.N(h.hJ.XI,()=>this.DFa()),this.view.Xb.Jd.N("keydown",b=>this.EFa(b)));null!=this.view.Zd&&
this.view.Zd.N(v.fa.$d,()=>this.E3());null!=this.view.Kk&&this.view.Kk.N(v.fa.$d,()=>this.pGa());null!=this.view.Lk&&this.view.Lk.N(v.fa.$d,()=>this.qGa());null!=this.view.ef&&this.view.ef.N(v.fa.$d,()=>this.iFa());null!=this.view.vo&&this.view.vo.N(v.fa.cp,()=>this.QU());null!=this.view.Tp&&this.view.Tp.N(v.fa.cp,()=>this.QU());null!=this.view.$p&&this.view.$p.N(v.fa.cp,()=>this.QU());null!=this.view.sq&&this.view.sq.N(v.fa.cp,()=>this.QU());null!=this.view.Ef&&this.view.Ef.N(v.fa.$d,()=>this.CGa());
null!=this.view.Wm&&this.view.Wm.N(v.fa.cp,()=>this.BGa());null!=this.view.wp&&this.view.wp.N(x.Md.mf,()=>this.NDa());null!=this.view.mG&&this.view.mG.N(x.Md.mf,()=>this.Is())}BGa(){this.view.Ef&&(this.view.Ef.Fd("fm-has-filter"),this.view.Ef.Af(0),this.zN(),this.uI())}QU(){this.view.ef&&(this.view.ef.Fd("fm-has-filter"),this.view.ef.Af(0),this.zN(),this.uI())}iFa(){this.view.Ef&&this.view.Ef.Af(0);this.zN();this.uI()}CGa(){this.view.ef&&this.view.ef.Af(0);this.zN();this.uI()}NDa(){var b=this.model.ata(this.wza());
this.model.vta(this.yza());b||this.$a("close")}zN(){this.view.vo&&this.view.vo.isVisible(this.Rw&&1===this.view.ef.getSelection()&&this.model.Hn==e.u.i.qb.Sa);this.view.Tp&&this.view.Tp.isVisible(this.Rw&&1===this.view.ef.getSelection()&&this.model.Hn==e.u.i.qb.Ok);this.view.$p&&this.view.$p.isVisible(this.Rw&&1===this.view.ef.getSelection()&&this.model.Hn==e.u.i.qb.jb);this.view.sq&&this.view.sq.isVisible(this.Rw&&1===this.view.ef.getSelection()&&this.model.Hn==e.u.i.qb.dc);this.view.Wm&&this.view.Wm.isVisible(this.rz&&
1===this.view.Ef.getSelection());this.view.Xb&&(this.view.Xb.isVisible(this.model.To.Dea&&0==this.view.Ef.getSelection()&&0==this.view.ef.getSelection()),this.view.Xb.isVisible()&&this.view.Xb.Jd.yr());this.view.Wa("fm-query-filter-opened",!1);this.view.ef&&1===this.view.ef.getSelection()&&this.view.Wa("fm-query-filter-opened",!0);this.view.Ef&&1===this.view.Ef.getSelection()&&this.view.Wa("fm-query-filter-opened",!0);this.view.Wa("fm-no-query-filters",!this.Rw&&!this.rz);this.view.Wa("fm-no-member-filters",
!this.model.To.Dea);this.$a("center")}uI(){this.view.wp&&(this.view.Xb&&this.view.Xb.isVisible()?this.view.wp.oq(0<this.view.Xb.Jd.Nw()):this.view.wp.oq(!0))}yza(){return this.view.Kk&&1==this.view.Kk.getSelection()?e.u.i.za.ic:this.view.Lk&&1==this.view.Lk.getSelection()?e.u.i.za.Kc:this.view.Kk&&this.view.Lk?e.u.i.za.fd:this.model.hierarchy.Zf}uda(){return this.model.Hn==e.u.i.qb.Sa?this.view.vo.Hm():this.model.Hn==e.u.i.qb.Ok?this.view.Tp.Hm():this.model.Hn==e.u.i.qb.jb?this.view.$p.Hm():this.model.Hn==
e.u.i.qb.dc?this.view.sq.Hm():null}wza(){var b=null,a=null;1==this.view.ef.getSelection()?b=this.uda():1==this.view.Ef.getSelection()?b=this.view.Wm.Hm():(a=this.view.Xb.Hm(),this.model.Cea(a)||(a=null));null==a&&null==b&&(this.view.ef.Rc("fm-has-filter")?b=this.uda():this.view.Ef.Rc("fm-has-filter")&&(b=this.view.Wm.Hm()));var c={};b&&(c.type=b.type,c.query=b.query,c.measure=b.measure);a&&(e.v(a.md)||(c.md=a.md),e.v(a.$y)||(c.$y=a.$y));return c}Is(){this.$a("close")}pGa(){1===this.view.Kk.getSelection()&&
(this.view.Lk.Af(0),this.view.Xb&&this.view.Xb.Jd.sort(e.u.i.za.ic));0===this.view.Kk.getSelection()&&0===this.view.Lk.getSelection()&&this.view.Xb&&this.view.Xb.Jd.sort(e.u.i.za.fd)}qGa(){1===this.view.Lk.getSelection()&&(this.view.Kk.Af(0),this.view.Xb&&this.view.Xb.Jd.sort(e.u.i.za.Kc));0===this.view.Kk.getSelection()&&0===this.view.Lk.getSelection()&&this.view.Xb&&this.view.Xb.Jd.sort(e.u.i.za.fd)}E3(){this.view.Xb&&(this.view.Xb.Jd.selectAll(1==this.view.Zd.getSelection()),this.view.wp.oq(0<
this.view.Xb.Jd.Nw()));this.UN()}EFa(b){if(32===b.keyCode||13===b.keyCode){var a=this.view.Xb.Jd.Au();e.v(a)||(a=a.data,!a.nT||b.ctrlKey||b.metaKey?(a.yd=1==a.yd?0:1,this.view.Xb.Jd.o5(a)):(a.Sf=!a.Sf,this.view.Xb.Jd.Oia(a)))}}FFa(){this.view.wp.oq(0<this.view.Xb.Jd.Nw());this.Uia();this.UN()}DFa(){this.u5();this.UN()}Uia(){0==this.view.Xb.Jd.jz()?this.view.Zd.Af(0):this.view.Xb.Jd.iT()>this.view.Xb.Jd.jz()?this.view.Zd.Af(-1):this.view.Xb.Jd.iT()==this.view.Xb.Jd.jz()&&this.view.Zd.Af(1)}update(b){0!=
this.view.isVisible()&&(1E4<b.Ri?(e.Ca(!0,e.model.B.j.fF,e.model.B.j.goa,!0,!0),setTimeout(()=>{this.model.update(b);this.Vm();e.Ca(!1)},50)):(this.model.update(b),this.Vm()))}hGa(b){e.model.C.F.vS&&b.trim()==b&&this.view.Xb&&this.view.Xb.Jd.search(b,()=>this.ND())}jGa(){var b=this.view.Jn.Ti();!e.model.C.F.vS&&b.trim()==b&&this.view.Xb&&this.view.Xb.Jd.search(b,()=>this.ND())}iGa(){!e.model.C.F.vS&&this.view.Xb&&this.view.Xb.Jd.search("",()=>this.ND())}ND(){this.u5();this.UN();this.Uia();this.view.wp.oq(0<
this.view.Xb.Jd.Nw())}Vm(){this.view.Xf();this.view.Wa("fm-filter-pages-layout",this.model.U1);this.view.Wa("fm-filter-flat-layout",this.model.Vi);this.view.Xb&&this.view.Xb.reset();this.view.Jn&&(this.view.Jn.clear(),this.view.Jn.yV(e.model.Va.V().Ia.ga.Gc?1E3:0));this.view.Ef&&(e.u.i.Pa.$c==e.u.i.Pa.rya(this.model.hierarchy.si.type+"")&&e.model.C.F.rc?this.view.Ef.eb():this.view.Ef.show());this.FKa();this.BKa();this.CKa();this.AKa();this.u5();this.UN();this.EKa();this.uI();this.bya()}bya(){this.view.Xb&&
this.view.Xb.isVisible()?this.view.Xb.Jd.focus({preventScroll:!0}):this.view.ef&&1==this.view.ef.getSelection()?this.view.ef.focus({preventScroll:!0}):this.view.Ef&&1==this.view.Ef.getSelection()?this.view.Ef.focus({preventScroll:!0}):this.view.wp.focus({preventScroll:!0})}EKa(){var b=!this.model.U1&&!e.model.C.F.rc;this.view.Kk&&this.view.Kk.isVisible(b);this.view.Lk&&this.view.Lk.isVisible(b);this.view.IN&&this.view.IN.isVisible(b);this.view.Wa("fm-sort-only",!this.Rw&&!this.rz)}get rz(){if(e.u.Ra.V().ga.Da==
e.u.i.qa.API&&!this.model.To.Wea)return!1;if(this.model.Vi){var b=this.model.Xp.ha.O.cf(this.model.hierarchy.A);return!e.v(b)&&b.type==e.u.i.Pa.jb}return this.model.U1||e.u.Ra.V().ga.Da==e.u.i.qa.le||e.u.Ra.V().ga.Da==e.u.i.qa.ag||!this.fCa()?!1:!0}fCa(){return 0<this.model.hd().length}get Rw(){return this.model.To.EM&&e.u.Ra.V().ga.Da!=e.u.i.qa.le&&!(this.model.Vi&&this.model.Hn==e.u.i.qb.jb)}CKa(){var b=this.model.hierarchy;this.view.Zd&&this.view.Zd.Af(0<b.filter.Pj().length?-1:1);if(this.view.Xb){var a=
2<b.ta.length;this.view.Xb.Jd.Wa("fm-tree-list",a);this.view.Xb.Jd.D4(a?new h.soa:new h.zX);this.view.Xb.Jd.FV(b);this.view.Xb.Jd.Wf(this.model.md);this.view.Xb.Jd.CV(b.filter.Pj());this.view.Xb.Jd.sort(b.Zf)}}BKa(){this.view.tq&&(this.view.tq.cb(this.model.hierarchy.caption),this.view.tq.fi(this.model.hierarchy.caption));this.view.toolbar&&this.view.toolbar.hJa(this.model.hierarchy.caption)}u5(){this.view.Xb&&0<this.view.Xb.Jd.getTotalLength()?this.view.Zd&&this.view.Zd.show():this.view.Zd&&this.view.Zd.eb()}FKa(){this.view.Kk&&
this.view.Kk.Af(this.model.hierarchy.Zf==e.u.i.za.ic?1:0);this.view.Lk&&this.view.Lk.Af(this.model.hierarchy.Zf==e.u.i.za.Kc?1:0)}AKa(){this.view.UG&&this.view.UG.isVisible(this.Rw||this.rz);this.view.ef&&(this.model.Hn==e.u.i.qb.Sa?(this.view.DH.cb(e.model.B.j.q7),this.view.ef.mc(e.model.B.j.IA+" "+e.model.B.j.q7)):this.model.Hn==e.u.i.qb.Ok?(this.view.DH.cb(e.model.B.j.KO),this.view.ef.mc(e.model.B.j.IA+" "+e.model.B.j.KO)):this.model.Hn==e.u.i.qb.jb?(this.view.DH.cb(e.model.B.j.t7),this.view.ef.mc(e.model.B.j.IA+
" "+e.model.B.j.t7)):this.model.Hn==e.u.i.qb.dc&&(this.view.DH.cb(e.model.B.j.u7),this.view.ef.mc(e.model.B.j.IA+" "+e.model.B.j.u7)),this.view.ef.isVisible(this.Rw&&this.model.Hn!=e.u.i.qb.NONE),this.view.ef.Wa("fm-has-filter",this.model.Qw),this.view.ef.Af(this.model.Qw));this.view.Ef&&(this.model.Vi&&!this.rz&&this.model.hierarchy.filter.xi?(this.view.Ef.isVisible(!0),this.view.Ef.oq(!1)):(this.view.Ef.isVisible(this.rz),this.view.Ef.oq(this.rz)),this.view.Ef.Wa("fm-has-filter",this.model.xi),
this.view.Ef.Af(this.rz&&this.model.xi));this.view.vo&&(this.view.vo.tx(this.model.To.EM?this.model.To.query:[]),this.view.vo.reset(),this.model.al.type==e.u.i.qb.Sa&&(this.view.vo.em(this.model.al),this.view.vo.Aj(this.model.hierarchy.getTimezoneOffset())));this.view.Tp&&(this.view.Tp.tx(this.model.To.EM?this.model.To.query:[]),this.view.Tp.reset(),this.model.al.type==e.u.i.qb.Ok&&this.view.Tp.em(this.model.al));this.view.$p&&(this.view.$p.tx(this.model.To.EM?this.model.To.query:[]),this.view.$p.reset(),
this.model.al.type==e.u.i.qb.jb&&this.view.$p.em(this.model.al));this.view.sq&&(this.view.sq.tx(this.model.To.EM?this.model.To.query:[]),this.view.sq.reset(),this.model.al.type==e.u.i.qb.dc&&this.view.sq.em(this.model.al));this.view.Wm&&(this.view.Wm.tx(this.model.To.Wea?this.model.To.gm:[]),this.view.Wm.reset(),this.view.Wm.Zz(this.model.hd()),this.model.al.type==e.u.i.qb.$n&&this.view.Wm.em(this.model.al),this.view.Wm.Wa("fm-arrow-first",!this.Rw));this.zN();this.uI()}UN(){var b="";this.view.Xb&&
(b=this.view.Xb.Jd.Te()?e.P.bind(e.model.B.j.Ila,this.view.Xb.Jd.jz(),this.view.Xb.Jd.iT()):e.P.bind(e.model.B.j.Jla,this.view.Xb.Jd.jz(),this.view.Xb.Jd.iT()));this.view.sx&&(this.view.sx.cb(b),this.view.sx.fi(b));this.view.Zd&&this.view.Zd.cb(this.view.Xb&&this.view.Xb.Jd.Te()?e.model.B.j.lma:e.model.B.j.tv)}aFa(b){var a=b.data.ql;-1<b.data.selectedIndex&&(this.model.Fha(a),this.Vm())}}h.zma=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.be.ay{constructor(){super(l.Mb.Fb.G);this.$("fm-filter-view");this.$("fm-noselect");this.Pe=new h.zma;this.Pe.N("close",()=>this.close());this.Pe.N("center",()=>this.zp());this.W(this.Pe.view);this.Pe.view.show();this.G.Zi({QV:[x.Zi.ji.Hi,x.Zi.ji.YE,x.Zi.ji.pF],KR:l.Mb.Fb.G,FZ:!0,resize:b=>this.eN(b),complete:()=>this.zp()})}eN(b){b.sE==x.Zi.ji.YE||b.sE==x.Zi.ji.pF?(this.Pe.view.Xj(b.size.width+(b.size.width-b.J3.width)),this.zp()):b.sE==x.Zi.ji.Hi&&
(this.Pe.view.pq(b.size.height),b.size.height>b.J3.height&&this.exa());this.TB()}exa(){this.Pe.view.Xb&&this.Pe.view.Xb.isVisible()&&this.Pe.view.G.requestAnimationFrame(()=>{this.Pe.view.Xb.Jd.yr()})}Ns(b){this.open();this.Pe.update(b);this.zp();this.$a(v.fa.OPENED)}close(){this.Pu&&(super.close(),this.$a(v.fa.CLOSED),e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.aX)))}TB(){this.G.Wa("fm-layout-mobile-small",460>this.G.uf(!0))}}h.Bma=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Ma{constructor(){super("div","fm-filters-table");var b=new x.Ma("div","fm-filters-table-header fm-fth-withsearch");this.W(b);var a=new x.Ma("div","fm-select-all-wrapper");a.$("fm-ui-col");this.Zd=new x.NJ;this.Zd.$("fm-select-all-label");this.Zd.cb(e.model.B.j.tv);this.Zd.fi(e.model.B.j.tv);a.W(this.Zd);var c=new x.Ma("div","fm-select-counter-wrap");c.$("fm-ui-col");this.sx=new x.Uc;this.sx.$("fm-select-counter");c.W(this.sx);b.W(a);b.W(c);
this.Ve=new x.Ma("div","fm-search-wrap");b.W(this.Ve);this.qe=new x.Ma("a","fm-search-btn");this.qe.G.text(e.model.B.j.bX);this.qe.Ie();this.qe.N("click",()=>this.Js());this.qe.N("focus",()=>this.Js());this.Ve.W(this.qe);this.Jn=new x.Hj;this.Jn.$("fm-search-inp");this.Ve.W(this.Jn);b=new x.Md("fm-close-search");b.N(x.Md.mf,()=>this.Ks());this.Ve.W(b);b=new x.Ma("div","fm-filters-table-content");this.W(b);this.Jd=new h.hJ;this.Jd.$("fm-members-filter-list");this.Jd.D4(new h.zX);b.W(this.Jd)}Xf(){this.Jn.kE(e.model.B.j.bX);
this.Zd.cb(e.model.B.j.tv);this.Zd.fi(e.model.B.j.tv);this.qe.G.text(e.model.B.j.bX)}Js(){this.qe.Ie(-1);this.Ve.$("fm-search-opened");this.Jn.G.focus();this.sx.eb()}Ks(){this.qe.Ie(0);this.Ve.Fd("fm-search-opened");this.Jn.clear();this.sx.show()}Hm(){var b=this.Jd.TS();return b.items?b.Wu?{$y:b.items}:{md:b.items}:null}reset(){this.Ks()}}h.roa=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Ma{constructor(){super("div","fm-filters-subview-wrap");this.Xc=[];var b=new x.Ma("div","fm-filters-subview");this.W(b);this.ir=new x.zd.Mr;this.ir.$("fm-measures-dropdown");this.ir.qg("label");this.ir.kE(e.model.B.j.fma);b.W(this.ir);this.Pc=new x.zd.Mr;this.Pc.$("fm-conditions-dropdown");this.Pc.qg("label");this.Pc.N(v.fa.$d,()=>this.Ek());b.W(this.Pc);this.Wg=new x.Jq;this.Wg.$("fm-num-input-1");this.Wg.lE(x.Jq.oF);b.W(this.Wg);this.Yi=new x.Jq;
this.Yi.$("fm-num-input-2");this.Yi.lE(x.Jq.oF);b.W(this.Yi);var a=new x.Ea("div","fm-buttons-bar");b.G.W(a);this.Ag=new x.Md("fm-ui-link-btn");this.Ag.$("fm-muted");this.Ag.Fd("fm-ui-btn");this.Ag.N(x.Md.mf,()=>this.ix());a.W(this.Ag.G)}ix(){this.eb();this.$a(v.fa.cp)}Ek(){let b=this.Pc.Kh();e.v(b)||this.G.Wa("fm-range",0<=e.u.i.yc.If.indexOf(b.value))}Zz(b){this.ir.Wf(b);this.ir.Jk(0);this.oq(0<b.length)}reset(){this.ir.Jk(0);this.Pc.Jk(0);this.Ek();this.Wg.gi(10);this.Yi.gi(0)}Hm(){if(e.v(this.ir.Kh()))return null;
var b={type:e.u.i.qb.$n};b.measure=this.ir.Kh().Qa();var a=this.Pc.Kh().value;if(0<=e.u.i.yc.ki.indexOf(a)){var c=this.Wg.Ha();!isNaN(c)||a!=e.u.i.yc.ck&&a!=e.u.i.yc.Hi||(c=0);b.query=new e.model.hb.im(a,c)}0<=e.u.i.yc.If.indexOf(a)&&(b.query=new e.model.hb.im(a,[this.Wg.Ha(),this.Yi.Ha()]));return b}em(b){this.Pc.Ws(c=>c.value===b.query.va);this.Ek();const a=this.ir.zc();for(let c=0;c<a.length;c++)if(a[c].A==b.measure.uniqueName&&a[c].aa==b.measure.aggregation){this.ir.Jk(c);break}0<=e.u.i.yc.ki.indexOf(b.query.va)&&
this.Wg.gi(b.query.value);0<=e.u.i.yc.If.indexOf(b.query.va)&&(this.Wg.gi(b.query.value[0]),this.Yi.gi(b.query.value[1]))}tx(b){this.Xc=b;this.Xf()}J(b){switch(b){case e.u.i.yc.ck:return e.model.B.j.ema;case e.u.i.yc.Hi:return e.model.B.j.Wla;case e.u.i.yc.EQUAL:return e.model.B.j.cJ;case e.u.i.yc.cg:return e.model.B.j.eJ;case e.u.i.yc.GREATER:return e.model.B.j.GO;case e.u.i.yc.xl:return e.model.B.j.HO;case e.u.i.yc.LESS:return e.model.B.j.IO;case e.u.i.yc.yl:return e.model.B.j.JO;case e.u.i.yc.nh:return e.model.B.j.bJ;
case e.u.i.yc.bh:return e.model.B.j.dJ}}Xf(){this.ir.mc(e.model.B.j.Pla);this.Pc.mc(e.model.B.j.FO);this.Wg.mc(e.model.B.j.Px);this.Yi.mc(e.model.B.j.Px);this.Pc.Wf(this.Xc.map(b=>({value:b,label:this.J(b)})));this.Ag.cb(e.model.B.j.Ola)}}h.Cqa=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Ma{constructor(){super("div","fm-filters-subview-wrap");this.Xc=[];var b=new x.Ma("div","fm-filters-subview");this.W(b);this.Pc=new x.zd.Mr;this.Pc.$("fm-conditions-dropdown");this.Pc.qg("label");this.Pc.N(v.fa.$d,()=>this.Ek());b.W(this.Pc);this.qk=new x.pL.j9;this.qk.$("fm-datepicker-1");this.qk.N(v.fa.$d,()=>this.xEa());b.W(this.qk);this.Ll=new x.pL.j9;this.Ll.$("fm-datepicker-2");this.Ll.N(v.fa.$d,()=>this.yEa());b.W(this.Ll);this.TD=new x.zd.Mr;
this.TD.$("fm-periods-dropdown");this.TD.qg("label");b.W(this.TD);var a=new x.Ea("div","fm-buttons-bar");b.G.W(a);this.Ag=new x.Md("fm-ui-link-btn");this.Ag.$("fm-muted");this.Ag.Fd("fm-ui-btn");this.Ag.N(x.Md.mf,()=>this.ix());a.W(this.Ag.G)}tx(b){this.Xc=b;this.Xf()}J(b){switch(b){case e.u.i.$b.EQUAL:return e.model.B.j.cJ;case e.u.i.$b.cg:return e.model.B.j.eJ;case e.u.i.$b.FE:return e.model.B.j.Tla;case e.u.i.$b.GE:return e.model.B.j.Ula;case e.u.i.$b.CE:return e.model.B.j.Rla;case e.u.i.$b.DE:return e.model.B.j.Sla;
case e.u.i.$b.nh:return e.model.B.j.bJ;case e.u.i.$b.bh:return e.model.B.j.dJ;case e.u.i.$b.WO:return e.model.B.j.$la;case e.u.i.$b.mO:return e.model.B.j.Yla;case e.u.i.$b.pP:return e.model.B.j.ama}}Xf(){this.Pc.mc(e.model.B.j.FO);this.qk.mc(e.model.B.j.Px);this.Ll.mc(e.model.B.j.Px);this.Pc.Wf(this.Xc.map(b=>({value:b,label:this.J(b)})));this.TD.Wf([{value:e.u.i.AA.$m,label:e.model.B.j.gma},{value:e.u.i.AA.QJ,label:e.model.B.j.jma},{value:e.u.i.AA.$g,label:e.model.B.j.hma},{value:e.u.i.AA.ut,label:e.model.B.j.ima},
{value:e.u.i.AA.Dl,label:e.model.B.j.kma}]);this.Ag.cb(e.model.B.j.Kla);this.qk.Hx=e.model.C.F.Gw;this.Ll.Hx=e.model.C.F.Gw;this.qk.E_=e.model.C.F.n0;this.Ll.E_=e.model.C.F.n0;this.qk.mR=e.model.B.j.wl;this.Ll.mR=e.model.B.j.wl}Hm(){var b={type:e.u.i.qb.Sa},a=this.Pc.Kh().value;0<=e.u.i.$b.ki.indexOf(a)&&(b.query=new e.model.hb.im(a,this.qk.Dc));if(0<=e.u.i.$b.If.indexOf(a)){var c=this.qk.Dc,d=this.Ll.Dc;b.query=new e.model.hb.im(a,c.getTime()<d.getTime()?[c,d]:[d,c])}0<=e.u.i.$b.Wx.indexOf(a)&&(b.query=
new e.model.hb.im(a,this.TD.Kh().value));return b}em(b){this.Pc.Ws(a=>a.value===b.query.va);this.Ek();0<=e.u.i.$b.ki.indexOf(b.query.va)&&(this.qk.Dc=b.query.value);0<=e.u.i.$b.If.indexOf(b.query.va)&&(this.qk.Dc=b.query.value[0],this.Ll.Dc=b.query.value[1]);0<=e.u.i.$b.Wx.indexOf(b.query.va)&&this.TD.Ws(a=>a.value===b.query.value)}Aj(b){this.qk.hi=b;this.Ll.hi=b}reset(){this.Pc.Jk(0);this.TD.Jk(0);this.Ek();this.qk.sJa();this.Ll.Dc=null;this.qk.hi=null;this.Ll.hi=null}Ek(){var b=this.Pc.Kh();e.v(b)||
(b=b.value,this.G.Wa("fm-date-range",0<=e.u.i.$b.If.indexOf(b)),this.G.Wa("fm-date-period",0<=e.u.i.$b.Wx.indexOf(b)),0<=e.u.i.$b.If.indexOf(b)&&null==this.Ll.Dc&&null!=this.qk.Dc&&(this.Ll.Dc=this.qk.Dc.clone()))}xEa(){null==this.Ll.Dc&&0<=e.u.i.$b.If.indexOf(this.Pc.Kh().value)&&(this.Ll.Dc=this.qk.Dc.clone())}yEa(){null==this.qk.Dc&&0<=e.u.i.$b.If.indexOf(this.Pc.Kh().value)&&(this.qk.Dc=this.Ll.Dc.clone())}ix(){this.reset();this.eb();this.$a(v.fa.cp)}}h.jla=f})(l.filter||(l.filter={}))})(e.K||
(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Ma{constructor(){super("div","fm-filters-subview-wrap");this.Xc=[];var b=new x.Ma("div","fm-filters-subview");this.W(b);this.Pc=new x.zd.Mr;this.Pc.$("fm-conditions-dropdown");this.Pc.qg("label");this.Pc.N(v.fa.$d,()=>this.Ek());b.W(this.Pc);this.gA=new x.Hj;this.gA.$("fm-txt-input-1");b.W(this.gA);this.sI=new x.Hj;this.sI.$("fm-txt-input-2");b.W(this.sI);var a=new x.Ea("div","fm-buttons-bar");b.G.W(a);this.Ag=new x.Md("fm-ui-link-btn");this.Ag.$("fm-muted");
this.Ag.Fd("fm-ui-btn");this.Ag.N(x.Md.mf,()=>this.ix());a.W(this.Ag.G)}tx(b){this.Xc=b;this.Xf()}J(b){switch(b){case e.u.i.Bb.EQUAL:return e.model.B.j.cJ;case e.u.i.Bb.cg:return e.model.B.j.eJ;case e.u.i.Bb.HE:return e.model.B.j.Vla;case e.u.i.Bb.PA:return e.model.B.j.bma;case e.u.i.Bb.CA:return e.model.B.j.Zla;case e.u.i.Bb.RA:return e.model.B.j.dma;case e.u.i.Bb.On:return e.model.B.j.Xla;case e.u.i.Bb.QA:return e.model.B.j.cma;case e.u.i.Bb.GREATER:return e.model.B.j.GO;case e.u.i.Bb.xl:return e.model.B.j.HO;
case e.u.i.Bb.LESS:return e.model.B.j.IO;case e.u.i.Bb.yl:return e.model.B.j.JO;case e.u.i.Bb.nh:return e.model.B.j.bJ;case e.u.i.Bb.bh:return e.model.B.j.dJ}}Xf(){this.Pc.mc(e.model.B.j.FO);this.gA.mc(e.model.B.j.Px);this.sI.mc(e.model.B.j.Px);this.Pc.Wf(this.Xc.map(b=>({value:b,label:this.J(b)})));this.Ag.cb(e.model.B.j.Lla)}Hm(){var b={type:e.u.i.qb.Ok},a=this.Pc.Kh().value;0<=e.u.i.Bb.ki.indexOf(a)&&(b.query=new e.model.hb.im(a,this.gA.Ti()));0<=e.u.i.Bb.If.indexOf(a)&&(b.query=new e.model.hb.im(a,
[this.gA.Ti(),this.sI.Ti()]));return b}em(b){this.Pc.Ws(a=>a.value===b.query.va);this.Ek();0<=e.u.i.Bb.ki.indexOf(b.query.va)&&this.gA.zj(b.query.value);0<=e.u.i.Bb.If.indexOf(b.query.va)&&(this.gA.zj(b.query.value[0]),this.sI.zj(b.query.value[1]))}reset(){this.Pc.Jk(0);this.Ek();this.gA.zj("");this.sI.zj("")}Ek(){let b=this.Pc.Kh();e.v(b)||this.G.Wa("fm-range",0<=e.u.i.Bb.If.indexOf(b.value))}ix(){this.reset();this.eb();this.$a(v.fa.cp)}}h.hna=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q=
{}));
(function(e){(function(l){(function(h){class f extends x.Ma{constructor(){super("div","fm-filters-subview-wrap");this.Xc=[];var b=new x.Ma("div","fm-filters-subview");this.W(b);this.Pc=new x.zd.Mr;this.Pc.$("fm-conditions-dropdown");this.Pc.qg("label");this.Pc.N(v.fa.$d,()=>this.Ek());b.W(this.Pc);this.Wg=new x.Jq;this.Wg.$("fm-num-input-1");this.Wg.lE(x.Jq.oF);b.W(this.Wg);this.Yi=new x.Jq;this.Yi.$("fm-num-input-2");this.Yi.lE(x.Jq.oF);b.W(this.Yi);var a=new x.Ea("div","fm-buttons-bar");b.G.W(a);this.Ag=
new x.Md("fm-ui-link-btn");this.Ag.$("fm-muted");this.Ag.Fd("fm-ui-btn");this.Ag.N(x.Md.mf,()=>this.ix());a.W(this.Ag.G)}tx(b){this.Xc=b;this.Xf()}J(b){switch(b){case e.u.i.Jg.EQUAL:return e.model.B.j.cJ;case e.u.i.Jg.cg:return e.model.B.j.eJ;case e.u.i.Jg.GREATER:return e.model.B.j.GO;case e.u.i.Jg.xl:return e.model.B.j.HO;case e.u.i.Jg.LESS:return e.model.B.j.IO;case e.u.i.Jg.yl:return e.model.B.j.JO;case e.u.i.Jg.nh:return e.model.B.j.bJ;case e.u.i.Jg.bh:return e.model.B.j.dJ}}Xf(){this.Pc.Wf(this.Xc.map(b=>
({value:b,label:this.J(b)})));this.Ag.cb(e.model.B.j.Mla)}Hm(){var b={type:e.u.i.qb.jb},a=this.Pc.Kh().value;0<=e.u.i.Jg.ki.indexOf(a)&&(b.query=new e.model.hb.im(a,this.Wg.Ha()));0<=e.u.i.Jg.If.indexOf(a)&&(b.query=new e.model.hb.im(a,[this.Wg.Ha(),this.Yi.Ha()]));return b}em(b){this.Pc.Ws(a=>a.value===b.query.va);this.Ek();0<=e.u.i.Jg.ki.indexOf(b.query.va)&&this.Wg.gi(b.query.value);0<=e.u.i.Jg.If.indexOf(b.query.va)&&(this.Wg.gi(b.query.value[0]),this.Yi.gi(b.query.value[1]))}reset(){this.Pc.Jk(0);
this.Ek();this.Wg.gi(0);this.Yi.gi(0)}Ek(){let b=this.Pc.Kh();e.v(b)||this.G.Wa("fm-range",0<=e.u.i.Jg.If.indexOf(b.value))}ix(){this.reset();this.eb();this.$a(v.fa.cp)}}h.Coa=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Ma{constructor(){super("div","fm-filters-subview-wrap");this.Xc=[];var b=new x.Ma("div","fm-filters-subview");this.W(b);this.Pc=new x.zd.Mr;this.Pc.$("fm-conditions-dropdown");this.Pc.qg("label");this.Pc.N(v.fa.$d,()=>this.Ek());b.W(this.Pc);this.Wg=new x.Jq;this.Wg.$("fm-num-input-1");this.Wg.lE(x.Jq.oF);b.W(this.Wg);this.Yi=new x.Jq;this.Yi.$("fm-num-input-2");this.Yi.lE(x.Jq.oF);b.W(this.Yi);this.Ju=new x.zd.Mr;this.Ju.$("fm-interval-dropdown");
this.Ju.qg("label");this.Ju.xN("ariaLabel");b.W(this.Ju);b=new x.Ea("div","fm-buttons-bar");this.G.W(b);this.Ag=new x.Md("fm-ui-link-btn");this.Ag.$("fm-muted");this.Ag.Fd("fm-ui-btn");this.Ag.N(x.Md.mf,()=>this.ix());b.W(this.Ag.G)}tx(b){this.Xc=b;this.Xf()}J(b){switch(b){case e.u.i.Qk.EQUAL:return e.model.B.j.cJ;case e.u.i.Qk.cg:return e.model.B.j.eJ;case e.u.i.Qk.GREATER:return e.model.B.j.GO;case e.u.i.Qk.xl:return e.model.B.j.HO;case e.u.i.Qk.LESS:return e.model.B.j.IO;case e.u.i.Qk.yl:return e.model.B.j.JO;
case e.u.i.Qk.nh:return e.model.B.j.bJ;case e.u.i.Qk.bh:return e.model.B.j.dJ}}Xf(){this.Pc.mc(e.model.B.j.FO);this.Wg.mc(e.model.B.j.Px);this.Yi.mc(e.model.B.j.Px);this.Pc.Wf(this.Xc.map(b=>({value:b,label:this.J(b)})));this.Ju.mc(e.model.B.j.Qla);this.Ju.Wf([{value:"s",label:e.model.B.j.tma,ariaLabel:e.model.B.j.uma},{value:"m",label:e.model.B.j.rma,ariaLabel:e.model.B.j.sma},{value:"h",label:e.model.B.j.pma,ariaLabel:e.model.B.j.qma},{value:"d",label:e.model.B.j.nma,ariaLabel:e.model.B.j.oma}]);
this.Ag.cb(e.model.B.j.Nla)}Hm(){var b={type:e.u.i.qb.dc},a=this.Pc.Kh().value,c=this.Ju.Kh().value;0<=e.u.i.Qk.ki.indexOf(a)&&(b.query=new e.model.hb.im(a,this.Wg.Ha()+c));0<=e.u.i.Qk.If.indexOf(a)&&(b.query=new e.model.hb.im(a,[this.Wg.Ha()+c,this.Yi.Ha()+c]));return b}em(b){this.Pc.Ws(g=>g.value===b.query.va);this.Ek();for(var a=this.Ju.zc(),c=0;c<a.length;c++){var d=a[c].value;if(0<=b.query.value.indexOf(d)){this.Ju.Jk(c);break}}0<=e.u.i.Qk.ki.indexOf(b.query.va)&&(a=parseFloat(b.query.value.replace(d,
"")),this.Wg.gi(a));0<=e.u.i.Qk.If.indexOf(b.query.va)&&(a=parseFloat(b.query.value[0].replace(d,"")),d=parseFloat(b.query.value[1].replace(d,"")),this.Wg.gi(a),this.Yi.gi(d))}reset(){this.Pc.Jk(0);this.Ek();this.Wg.gi(0);this.Yi.gi(0);this.Ju.Jk(0)}Ek(){let b=this.Pc.Kh();e.v(b)||this.G.Wa("fm-range",0<=e.u.i.Qk.If.indexOf(b.value))}ix(){this.reset();this.eb();this.$a(v.fa.cp)}}h.kqa=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));var S;
(function(e){class l{constructor(){this.styleSheet=new e.ud.Mqa;this.Yg=[];e.ud.format.yt.afa=e.ud.format.yt.Cba;e.tF.nI=[]}nKa(){var h=[];h["[Content_Types].xml"]=e.Oi.zt+this.Qua();h["_rels/.rels"]=e.Oi.zt+e.Oi.Pqa;h["xl/_rels/workbook.xml.rels"]=e.Oi.zt+this.rva();h["xl/workbook.xml"]=e.Oi.zt+this.sva();h["xl/theme/theme1.xml"]=e.Oi.zt+e.Oi.Ypa;for(var f=0;f<this.Yg.length;f++){var b=this.Yg[f].Ic();h["xl/worksheets/sheet"+(f+1)+".xml"]=e.Oi.zt+b}f=this.ova();h["xl/sharedStrings.xml"]=e.Oi.zt+
f;h["xl/styles.xml"]=e.Oi.zt+this.styleSheet.Ic();h["docProps/app.xml"]=e.Oi.zt+e.Oi.zja;h["docProps/core.xml"]=e.Oi.zt+e.Oi.Bka;return(new z.yma).tva(h)}ova(){let h="";z.ba.create("<axis/>").attr("name","rows");for(let f=0;f<e.tF.nI.length;f++){const b=q.P.zxa(e.tF.nI[f]);h+="<si><t>"+b+"</t></si>"}return e.Oi.zpa.replace("{0}",h)}sva(){for(var h="",f=0;f<this.Yg.length;f++)h+=q.P.bind('<sheet name="{0}" sheetId="{1}" r:id="{2}"/>',this.Yg[f].name,f+1,"rId"+(f+4));return q.P.bind(e.Oi.Dqa,h)}rva(){for(var h=
"",f=0;f<this.Yg.length;f++)h+=q.P.bind(e.Oi.Fqa,"rId"+(f+4),"worksheets/sheet"+(f+1)+".xml");return q.P.bind(e.Oi.Eqa,h)}Qua(){for(var h="",f=0;f<this.Yg.length;f++)h+=q.P.bind(e.Oi.dka,"/xl/worksheets/sheet"+(f+1)+".xml");return q.P.bind(e.Oi.cka,h)}}e.Hqa=l})(S||(S={}));
(function(e){class l{constructor(h=0,f=0,b="",a=0){this.Ss=h;this.hu=f;this.value=b;this.e5=a}get type(){return this.yg}set value(h){"number"===typeof h&&isNaN(h)&&(h="");if("string"===typeof h){h=h.replace(RegExp("<br/?>","gmi"),"\n");h=h.replace("/&/gmi","");h=h.replace(RegExp("<[^<]+?>","gmi"),"");var f=e.tF.nI.indexOf(h);-1==f?(this.xK=e.tF.nI.length,e.tF.nI.push(h)):this.xK=f;this.yg=e.gy.$c}else this.xK=h,this.yg="number"===typeof h?e.gy.jb:null===h?e.gy.u8:!1===h?e.gy.Z7:e.gy.tqa}get value(){return this.xK}set id(h){}get id(){for(var h=
"",f=this.hu+1,b=0;26<f;){var a=0<f%26?f%26:26;f/=26;26==a&&f--;h=String.fromCharCode(a+64)+h;if(3==b++)break}h=String.fromCharCode(f+64)+h;return h+(this.Ss+1)}toString(){return"XLSCell {row: "+this.Ss+", column: "+this.hu+", type: "+this.type+", id: "+this.id+", value: "+this.value+"}"}}e.RP=l})(S||(S={}));var ib=S||(S={});class jb{}jb.nI=[];ib.tF=jb;
(function(e){class l{constructor(h){this.cells=[];this.uU=this.vU=0;this.Ka=[];this.rows=[];this.xU=[];this.name=this.xxa(h)}xxa(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 ufa(){return this.kg(this.vU,this.uU)}set ufa(h){}get Jua(){return this.uU+1}get oN(){return this.vU+1}Dha(h,f){this.Ka[h]=
f}bH(h){return this.Ka[h]?this.Ka[h]:0}vx(h,f){this.rows[h]=f}Vd(h){return this.rows[h]?this.rows[h]:0}Fi(h,f,b,a=null){null==this.cells[h]&&(this.cells[h]=[]);this.cells[h][f]=b instanceof e.RP?b:new e.RP(h,f,b,null==a?0:a.index);this.vU<h&&(this.vU=h);this.uU<f&&(this.uU=f)}kg(h,f){var b;null!=this.cells[h]&&(b=this.cells[h][f]);null==b&&(b=new e.RP(h,f,null));return b}zfa(h,f,b){var a=this.kg(h,f);if(null!=a){for(var c=a.id,d,g=f+1;g<f+b;g++)d=new e.RP(h,g,!1,a.e5),this.cells[h][g]=d;c+=":"+(d?
d.id:a.id);this.xU.push(c)}}Ic(){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.gy.u8&&(a=d.type==e.gy.Z7?a+('<c r="'+d.id+'" s="'+d.e5.toString()+'" />'):a+('<c r="'+d.id+'" s="'+d.e5.toString()+'"'+(d.type==e.gy.$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.xU.length;b++)a+=q.P.bind('<mergeCell ref="{0}"/>',this.xU[b]);b=0<this.xU.length?q.P.bind('<mergeCells count="{0}">{1}</mergeCells>',this.zfa.length,a):"";return q.P.bind(e.Oi.Apa,this.kg(0,0).id+":"+this.ufa.id,f,h,b)}}e.Iqa=l})(S||(S={}));var kb=S||(S={});class lb{}lb.u8=0;lb.jb=1;lb.$c=2;lb.Z7=98;lb.tqa=99;
kb.gy=lb;
(function(e){(function(l){class h{constructor(f,b,a=null,c=null){this.index=0;this.fill=b instanceof l.Rl.RJ?b:!isNaN(b)&&-1<b?new l.Rl.RJ(b):new l.Rl.RJ;this.font=f instanceof l.fonts.Iv?f:new l.fonts.Iv(f);this.format=a&&a instanceof l.format.yt?a:new l.format.yt(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}Ic(){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.Hz,0<this.format.Hz?' applyNumberFormat = "1"':"",this.font.xS,this.fill.FL,0<f.length?' applyAlignment="1"':"",f)}}l.fB=h})(e.ud||(e.ud={}))})(S||(S={}));
(function(e){(function(l){class h{constructor(){this.ud=new q.tb;this.Rl=new q.tb;this.fonts=new q.tb;this.De=new q.tb;this.U$(new l.Rl.RJ);var f=new l.Rl.RJ;f.R3.S3="solid";f.FL=1;this.Rl.Ta("solid",f)}cw(f){this.ud.Hb(f.id)?f.index=this.ud.getItem(f.id).index:(this.U$(f.fill),this.addFont(f.font),this.ud.Ta(f.id,f),f.index=this.ud.length)}U$(f){this.Rl.Hb(f.id)?f.FL=this.Rl.getItem(f.id).FL:(f.FL=this.Rl.length,this.Rl.Ta(f.id,f))}addFont(f){this.fonts.Hb(f.id)?f.xS=this.fonts.getItem(f.id).xS:
(this.fonts.Ta(f.id,f),f.xS=this.fonts.length)}wsa(f){this.De.Hb(f.id)?f.Hz=this.De.getItem(f.id).Hz:(-1==f.Hz&&(f.Hz=l.format.yt.fAa()),this.De.Ta(f.id,f))}Ic(){var f="",b="",a="",c="",d;if(0<this.De.length){var g=0,k="";for(d=0;d<this.De.length;d++){var m=this.De.ea(d);""!=m.AS&&(m=m.Ic(),k+=m,g++)}0<g&&(f='<numFmts count="'+g+'">'+k+"</numFmts>")}for(d=0;d<this.Rl.length;d++)g=this.Rl.ea(d),b+=g.Ic();for(d=0;d<this.fonts.length;d++)g=this.fonts.ea(d),a+=g.Ic();for(d=0;d<this.ud.length;d++)g=this.ud.ea(d),
c+=g.Ic();return q.P.bind(e.Oi.Ipa,f,this.fonts.length+1,a,this.Rl.length,b,this.ud.length+1,c)}}l.Mqa=h})(e.ud||(e.ud={}))})(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)}Ic(b=""){0==b.length&&(b="color");b="<"+b;this.Fta&&(b+=' auto="'+this.Fta+'"');this.VJa&&(b+=' theme="'+this.VJa+'"');this.ZJa&&(b+=' tint="'+this.ZJa+'"');this.lBa&&(b+=' indexed="'+this.lBa+'"');for(var a=this.rgb.toString(16).toUpperCase();6>a.length;)a="0"+a;return b+(' rgb="FF'+a+'"/>')}}h.ZX=f})(l.color||(l.color={}))})(e.ud||(e.ud={}))})(S||(S={}));
(function(e){(function(l){(function(h){class f extends h.ZX{constructor(b){super(b)}Ic(){return super.Ic("bgColor")}}h.Jqa=f})(l.color||(l.color={}))})(e.ud||(e.ud={}))})(S||(S={}));(function(e){(function(l){(function(h){class f extends h.ZX{constructor(b){super(b)}Ic(){return super.Ic("fgColor")}}h.Kqa=f})(l.color||(l.color={}))})(e.ud||(e.ud={}))})(S||(S={}));
(function(e){(function(l){(function(h){class f{constructor(b=-1){this.FL=0;this.R3=new h.Lqa(b)}Ic(){return"<fill>"+this.R3.Ic()+"</fill>"}set id(b){}get id(){return this.R3.id}}h.RJ=f})(l.Rl||(l.Rl={}))})(e.ud||(e.ud={}))})(S||(S={}));
(function(e){(function(l){(function(h){class f{constructor(b=-1){this.S3="solid";-1<b?(this.fgColor=new l.color.Kqa(b),this.bgColor=new l.color.Jqa(b)):this.S3="none"}get id(){return q.v(this.fgColor)?"none":this.fgColor.id}Ic(){return q.P.bind('<patternFill patternType="{0}">{1}{2}</patternFill>',this.S3,q.v(this.fgColor)?"":this.fgColor.Ic(),q.v(this.bgColor)?"":this.bgColor.Ic())}}h.Lqa=f})(l.Rl||(l.Rl={}))})(e.ud||(e.ud={}))})(S||(S={}));
(function(e){(function(l){(function(h){class f{constructor(b,a,c){this.xS=0;q.v(b)||(this.name=b.replace(/"/g,"").trim());q.v(a)||(this.size=a);q.v(c)||(this.vT=new l.color.ZX(c))}set id(b){}get id(){return this.name+","+this.size+","+(q.v(this.vT)?"":this.vT.id)+","+this.bold+","+this.AD}Ic(){var b="<font>";this.bold&&(b+="<b/>");this.size&&(b+='<sz val="'+this.size+'"/>');this.vT&&(b+=this.vT.Ic());if(this.name){var a=this.name;this.name.indexOf(",")&&(a=this.name.split(",")[0].trim());b+='<name val="'+
a+'"/>'}return b+"</font>"}}h.Iv=f})(l.fonts||(l.fonts={}))})(e.ud||(e.ud={}))})(S||(S={}));(function(e){(function(l){(function(h){class f{constructor(b,a){this.Hz=b;this.AS=a}Ic(){return'<numFmt numFmtId="'+this.Hz+'" formatCode="'+this.AS+'"/>'}get id(){return""!=this.AS?this.AS:this.Hz.toString()}set id(b){}static fAa(){return f.afa++}}f.Cba=1;f.afa=f.Cba;h.yt=f})(l.format||(l.format={}))})(e.ud||(e.ud={}))})(S||(S={}));
(function(e){class l{static format(h,f=null,b=!1,a=!1,c=-1){null==f&&(f=l.ZR);if(isNaN(h)||q.v(h))return f.GD;if(Infinity==h)return f.oD;if(h==q.u.i.wO.vO)return f.zC;b||(b=f.Rf);h=f.de&&"%"!=f.rd?100*h:h;h=l.yua(h);var d=a||f.de?"%":f.rd,g=a||f.de?q.model.ec.X.Gf.Nz["1$"]:f.Ps;a=a||f.de?q.model.ec.X.Gf.Hs["-1$"]:f.Gs;var k=b?0:f.Ml;if(0==h&&0>k){var m="0";!b&&0<d.length&&(m=l.r0(m,d,g,a));return m}m=0>h?f.ax-1:f.ax;1<f.kf.length&&!q.P.NBa(f.kf)&&(m-=Math.floor(m/3)*f.kf.length);!b&&0<f.C_&&(m-=f.C_);
f.kf="&#39;"==f.kf?"'":f.kf;var n=h.toString().split(".");if(1<n.length&&10<=n[1].length&&f.jG){n=n[1];for(var p=0,t=0,r=n.length-2;0<=r;r--)if("9"!=n.charAt(r)&&"0"!=n.charAt(r)||n.charAt(r)!=n.charAt(r+1))if(4>p)p=0;else{t=r+1;break}else p++;4<=p&&(n=Math.pow(10,t),h=0==Math.round(h*n)/n?h:Math.round(h*n)/n)}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.ax-c-5:f.ax-c-4,
0<=f.Ml&&(m=Math.min(m,f.Ml)),0<=f.Uu&&(m=Math.min(m,f.Uu)),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.Uu?m=h.toString():0==k||0==f.Uu?m=Math.round(h).toString():(m=f.Uu,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.bz(c[0],f);c=1<c.length?c[1]:"";m=0<c.length?m+f.wC+c:m;!b&&0<d.length?m=l.r0(m,d,g,a):0==
d.length&&0>h&&(m=l.BS(m,f.Zp));return m=l.Iaa(m,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 wJa(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.bz(k[0],f);k=1<k.length?k[1]:"";g=0<k.length?g+f.wC+k:g;g+=d;d=a||f.de?"%":f.rd;k=a||f.de?q.model.ec.X.Gf.Nz["1$"]:f.Ps;a=a||f.de?q.model.ec.X.Gf.Hs["-1$"]:f.Gs;!b&&0<d.length?g=l.r0(g,d,k,a):0==d.length&&c&&(g=l.BS(g,f.Zp));return g=l.Iaa(g,h)}static bz(h,f=null){var b=0>parseFloat(h);b&&(h=h.substr(1));var a=h;if(3<h.length){null==f&&(null==l.ZR&&(l.ZR=new q.model.ec.X.Gf("")),f=l.ZR);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.kf)}b&&(a="-"+a);return a}static r0(h,f,b,a){return 0==h.indexOf("-")?this.KL(h,f,a):this.hya(h,f,b)}static KL(h,f,b){h=0==h.indexOf("-")?h.substr(1):h;switch(b){case q.model.ec.X.Gf.Hs["-$1"]:h="-"+f+h;break;case q.model.ec.X.Gf.Hs["$1-"]:h=f+h+"-";break;case q.model.ec.X.Gf.Hs["($1)"]:h="("+f+h+")";break;case q.model.ec.X.Gf.Hs["(1$)"]:h="("+h+f+")";break;case q.model.ec.X.Gf.Hs["-1$"]:h="-"+h+f;break;case q.model.ec.X.Gf.Hs["$-1"]:h=
f+"-"+h;break;case q.model.ec.X.Gf.Hs["1-$"]:h=h+"-"+f;break;case q.model.ec.X.Gf.Hs["1$-"]:h=h+f+"-"}return h}static hya(h,f,b){switch(b){case q.model.ec.X.Gf.Nz.$1:h=f+h;break;default:h+=f}return h}static BS(h,f){h=0==h.indexOf("-")?h.substr(1):h;switch(f){case q.model.ec.X.Gf.Xu["-1"]:h="-"+h;break;case q.model.ec.X.Gf.Xu["- 1"]:h="- "+h;break;case q.model.ec.X.Gf.Xu["1-"]:h+="-";break;case q.model.ec.X.Gf.Xu["1 -"]:h+=" -";break;case q.model.ec.X.Gf.Xu["(1)"]:h="("+h+")";break;default:h="-"+h}return h}static Iaa(h,
f){return 0<=f||-1==h.indexOf("-")||-1<h.search("[1-9]+")?h:h.replace("-","")}static Og(h){return l.bz((h/1024).toFixed(0))}static yua(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.ZR=new q.model.ec.X.Gf;l.EPSILON="undefined"===typeof Number.EPSILON?2.220446049250313E-16:Number.EPSILON;e.Yb=l})(u||(u={}));window["FM-DIVIDER"]="FM-DIVIDER";
(function(e){(function(l){(function(h){class f{constructor(){}static J(b){b=f.Dta[b];for(var a="",c=0;c<b.length;c++)a+=String.fromCharCode(b[c]+101);return a}}f.Dta=[[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],[-28,-31,13,-4,8,0,-69,-1,0,15,0,-2,15,0,-1,-55,-41,-3,13,-54,-39,-21,7,0,-4,14,0,-69,-2,10,9,15,-4,-2,15,-69,-2,7,4,0,9,15,14,-69,14,16,11,11,10,13,15,-69,4,1,-69,20,10,16,-69,3,-4,17,0,-69,-4,9,20,-69,
11,13,10,-3,7,0,8,-69,18,4,15,3,-69,15,3,0,-69,7,4,-2,0,9,14,0,-69,6,0,20,-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,-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,-1,0,17,-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],[7,10,-2,-4,7,3,10,14,15],[-28,9,17,-4,7,4,-1,-69,7,4,-2,0,9,14,0,-69,6,0,20,-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,4,9,17,-4,7,4,-1,-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,-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],[-12,10,16,-69,-4,13,0,-69,15,13,20,4,9,2,-69,15,10,-69,16,14,0,-69,15,3,0,-69,1,10,7,7,10,18,4,9,2,-69,6,0,20,-43,-41,-3,13,-54,-39],[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,-41,-3,13,-54,-39,-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,-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,-68,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,-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],[-25,4,-2,0,9,14,0,-69,6,0,20,-69,4,14,-69,0,8,11,15,20,-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],[-25,4,-2,0,9,14,0,-69,6,0,20,-69,4,14,-69,-2,10,13,13,16,11,15,0,-1,-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,-68,7,4,-2,0,9,14,0,-56,9,16,8,-3,0,13,-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],[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,-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,-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,-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],[-12,10,16,13,-69,15,13,4,-4,
7,-69,11,0,13,4,10,-1,-69,3,-4,14,-69,0,19,11,4,13,0,-1,-55,-41,-3,13,-39,-41,-3,13,-39,-41,16,-39,-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,-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,-17,10,-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,-69,11,7,0,-4,14,0,-69,-2,10,9,15,-4,-2,15,-69,10,16,13,-69,14,-4,7,0,14,-69,15,0,-4,8,
-69,1,10,13,-69,15,13,4,-4,7,-69,0,19,15,0,9,14,4,10,9,-55,-41,-54,-4,-39,-41,-54,16,-39],[-13,-13,-13,-13,-56,-13,-13,-13,-13,-56,-13,-13,-13,-13,-56,-13,-13,-13,-13,-56,-13,-13,-13,-13],[-12,10,16,-69,-4,13,0,-69,15,13,20,4,9,2,-69,15,10,-69,16,14,0,-69,-4,-69,15,0,8,11,7,-4,15,0,-69,7,4,-2,0,9,14,0,-69,10,13,-69,15,13,4,-4,7,-69,6,0,20,-43,-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,-55,-41,-3,13,-39,-41,-3,13,-39,-91,-21,7,0,-4,14,
0,-69,13,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,-4,9,-69,-4,-2,15,16,-4,7,-69,6,0,20,-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],[-41,-3,13,-39,-31,13,0,0,-69,16,11,-1,-4,15,0,14,-69,15,4,7,7,-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,-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,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,-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],[],[],[],[],[],[-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],[-34,16,13,13,0,9,15,-69,6,0,20,-69,4,14,-69,-4,11,11,7,4,-2,-4,-3,7,0,-69,10,9,7,20,-69,15,10,-69,-41,-3,-39,22,
-53,24,-41,-54,-3,-39,-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,16,13,13,0,9,15,-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],[-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]];f.gfa=0;f.Jga=1;f.Pca=2;f.i2=3;f.kBa=4;f.Kwa=
5;f.qfa=6;f.fea=7;f.pKa=8;f.zCa=9;f.WJa=10;f.GDa=11;f.uxa=12;f.ega=13;f.v9=14;f.Oqa=15;f.p9=16;f.Nqa=17;f.Iva=18;f.SKa=19;f.jK=20;f.fK=21;f.KCa=22;f.Tia=23;f.ACa=24;f.BCa=25;f.advanced=31;f.all=33;f.xwa=34;f.oKa=35;f.ICa=36;f.JCa=54;f.zia=55;f.LGa=37;f.Rwa=38;f.LCa=39;f.info=40;f.Lua=41;f.Sia=42;f.Dca=43;f.Lwa=44;f.vga=45;f.BD=46;f.FDa=48;f.xDa=49;f.Gxa=50;f.JDa=53;f.SZ=56;f.nW=62;f.HGa=63;f.fV=64;f.Eua=65;f.yCa=66;f.iBa=67;f.jBa=68;f.referrer=69;f.Axa=70;f.txa=71;f.hfa=72;f.OJa=73;f.PJa=74;f.gIa=
75;f.NKa=76;f.nwa=77;f.VB=80;f.Kta=81;f.Lta=82;h.pa=f})(l.Ga||(l.Ga={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){class l{static encode(h){var f="",b=0;for(h=l.Rqa(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.Ay.charAt(g)+this.Ay.charAt(a)+this.Ay.charAt(k)+this.Ay.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.Ay.indexOf(h.charAt(b++));var c=this.Ay.indexOf(h.charAt(b++));var d=this.Ay.indexOf(h.charAt(b++));
var g=this.Ay.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.Qqa(f)}static Rqa(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 Qqa(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.Ay="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.Nja=l})(u||(u={}));
(function(e){class l{static qR(f,b,a=null){if(0==f.trim().length)return{Sw:!1,errorMessage:q.model.B.j.joa};const c=(new e.rJ).parse(f),d=new h;return null==c||void 0==c.length||"string"===typeof c?(d.Sw=!1,d.errorMessage=h.Kda(f),d):this.cua(c,b,a,d)}static cua(f,b,a,c){l.F9(f,b,a,c);return c}static F9(f,b,a,c){const d=f[1];for(var g=0;g<d.length;g++){var k=d[g],m=q.u.Ra.V().O.Ba;if("string"===typeof k||Array.isArray(k)&&1===k.length){const n="string"!==typeof k?k[0]:k;if(n===b&&""!==n){c.Sw=!1;
c.errorMessage=h.vAa(n);break}k=m.getItem(n);q.v(k)&&0<=n.indexOf("[Measures].")&&(k=m.getItem(q.u.ye.Pg(n)));if(q.v(k)){if(q.v(a)||0>a.indexOf(n))c.Sw=!1,c.errorMessage=h.Kda(n);break}m=f[0];if("string"===typeof m&&!l.Zta(m,k)){c.Sw=!1;c.errorMessage=h.OAa(m,b);break}}else Array.isArray(k)&&void 0!=k.length&&this.F9(k,b,a,c)}}static Zta(f,b){if(q.v(b))return!1;q.u.i.da.Ty(f)&&(f=q.u.i.da.cz(f));q.u.i.qa.Tc===q.u.Ra.V().ga.Da&&-1===b.Wc.indexOf(f)&&q.u.i.da.NONE===b.xm&&(f=b.xm);return b.Na||-1!==
b.Wc.indexOf(f)}}e.OO=l;class h{constructor(){this.Sw=!0;this.errorMessage=null}static Kda(f){return q.model.B.j.p8+" <br> "+q.P.bind(q.model.B.j.loa,q.model.Tb.validate(f))}static OAa(f,b){return q.model.B.j.p8+" <br> "+q.P.bind(q.model.B.j.ioa,q.model.Tb.validate(f),q.model.Tb.validate(b))}static vAa(f){return q.P.bind(q.model.B.j.koa,f)}}e.lMa=h})(u||(u={}));
(function(e){class l{static bM(h,f){if(!q.v(h)&&0!=h.length){var b=[];l.TY(h,f,b);return b}}static hH(h,f){return q.v(h)||0==h.length?h:l.NQ(h,f)}static NQ(h,f){var b=[];Array.isArray(h[0])?b[0]=this.NQ(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.Na)return l.hH(a.Xd,f)}b[1]=this.NQ(h[1],f)}else void 0!==h[1]&&(b[1]=h[1]);Array.isArray(h[2])?b[2]=this.NQ(h[2],f):void 0!==h[2]&&(b[2]=h[2]);return b}static TY(h,f,b){if(!0===
h[2])for(var a in h[1])this.TY(h[1][a],f,b);else if(!1===h[2]){a=h[1][0];h=h[0];const c=f.getItem(a);c&&c.Na?this.TY(c.Xd,f,b):b.push(new q.model.hb.ah(a,h))}}}e.nt=l})(u||(u={}));
(function(e){(function(l){(function(h){class f{}f.XX="UNDEFINED";f.rF="START_REPORT";f.hF="OPENING_REPORT_FILE";f.Tx="LOADING_REPORT_FILE";f.Xn="REPORT_FILE_LOADED";f.HJ="REPORT_FILE_ERROR";f.Kr="REPORT_FILE_CANCELLED";f.dn="REPORT_CHANGED";f.lF="REPORT_DEFINED";f.ZE="LOADING_DATA";f.QI="DATA_LOADED";f.NI="DATA_ERROR";f.OI="DATA_FILE_CANCELLED";f.Ev="STRUCTURE_LOADED";f.nX="LOADING_OLAP_STRUCTURE";f.A8="OLAPstructure__LOADED";f.z8="OLAPstructure__ERROR";f.bka="CONNECTED_TO_DATA_SOURCE";f.PW="EMPTY_SLICE";
f.XA="RUNNING_QUERY";f.Pk="QUERY_COMPLETE";f.vt="QUERY_ERROR";f.$E="LOADING_LOCALIZATION";f.aF="LOCALIZATION_LOADED";f.qJ="LOCALIZATION_ERROR";f.ii="REPORT_COMPLETE";f.t6="CREATION_COMPLETE";h.nd=f;class b{}b.XX="UNDEFINED";b.INIT="INIT";b.cp="CLEAR";b.xpa="SET_REPORT";b.opa="RUN_QUERY";b.PJ="UPDATE_DATA";b.uqa="UPDATE_DATA_PARTIAL";b.wA="CONNECT_TO";b.S7="LOAD";b.OPEN="OPEN";b.Oc="COMPLETE";h.mp=b;class a extends v.Ah{constructor(){super();this.ha=e.u.Ra.V();this.yY=null;this.zf=b.XX;this.aE=f.XX;
this.tI=this.L$=this.HY=this.GQ=this.KF=!1;this.Waa=()=>this.lEa();this.MN=()=>this.mr();this.tba=()=>this.L2();this.xia=c=>this.tGa(c);this.SK=()=>this.K2();this.Pz=c=>this.LD(c);this.Pga=c=>this.u3(c);this.Zga=()=>this.bb();this.lq=new l.hb.qpa;l.C.F.V()}get ga(){return e.v(this.Ab)||this.Ab.nb?this.bo:this.Ab}set ga(c){this.Ab=c}get kc(){return this.KF}get YT(){return this.GQ}get bU(){return this.HY}pD(c){e.v(c)&&(c={});this.zf=b.INIT;l.Ga.uc.V().gua(c,d=>{if(d)if(this.ee(f.rF),this.oM=l.hb.Yx.zb(c.global?
c.global:{}),l.C.F.V().N(f.dn,()=>this.bb()),l.size.vd.V().N(f.dn,()=>this.bb()),l.va.Zm.V().N(f.dn,()=>this.bb()),this.NJa(this.oM),this.jR(),"string"===typeof c.report)this.iK(c.report);else{var g=c.report||{};this.Pha(g);l.C.F.qq(g.options||g,!0,!1);e.Ce(()=>{this.zf===b.INIT&&this.qK(g)},1)}})}ee(c,d=null,g=!0){this.aE=c;if(c==f.rF||c==f.hF||c==f.Tx)this.HY=this.GQ=this.KF=!1;c==f.XA&&(this.L$=this.KF,this.KF=!1);c!=f.Pk&&c!=f.vt||!0!==this.L$||(this.KF=!0);c==f.ii&&(this.GQ=this.KF=!0);c==f.lF&&
(this.GQ=!0);c==f.Ev&&(this.HY=!0);g&&this.$a(c,null,d)}ux(c){e.v(c)&&(c={});this.zf=b.xpa;this.cancel();this.ee(f.rF);this.qK(c.report||{})}ne(c){this.zf=b.opa;c=c instanceof e.u.O.Lr?c:e.u.O.Lr.zb(l.hb.pp.zb(c),this.ha.O);var d=e.u.O.Lr.taa(c,this.ha.ua),g=e.u.O.Lr.saa(c,this.ha.ua);if(e.u.O.Lr.yta(c,this.ha.ua)&&!d&&!g){const k=new l.hb.Gv;k.Vf=l.size.vd.eha;k.Lf=l.size.vd.Paa;k.Uj=l.size.vd.Uj;k.Xg=l.size.vd.Xg;k.Lg=l.size.vd.Lg;k.kh=l.size.vd.kh;l.size.vd.KZ(k)}d&&(l.size.vd.Vf={});g&&(l.size.vd.Lf=
{});c.sDa(this.ha.ua);c.z5();c.fja();l.Va.V().$a("reset_grid");e.u.sf.Fj.zc().Fe=!1;this.ha.mE(c);this.ha.filter();l.Ua.V().Fa(new l.cd(l.Ua.GJ))}Qd(c,d){this.zf=b.PJ;this.cancel();this.ee(f.rF);const g=this.ws();d.ignoreSorting&&(g.slice.Lj={},g.slice.Wj={});d.ignoreScroll&&l.Va.V().$a("reset_grid");e.ia(g.Ge)||delete g.Ge;const k=g.ma.mapping;g.ma=e.u.O.kt.zb(c);g.ma.mapping=g.ma.nb||g.ma.mapping.nb&&!g.ma.mapping.Jo&&void 0!==k?k:g.ma.mapping;c=g.Qa();null==g.ma.sc||e.v(c.dataSource)||(c.dataSource.requestHeaders=
g.ma.sc);this.qK(c,!0,d)}yKa(c,d){this.zf=b.uqa;var g=this.ha.ua.clone();this.cancel();this.Eha();this.ee(f.rF);d.ignoreSorting&&(g.Rb.gC(),g.cc.gC());d.ignoreScroll&&l.Va.V().$a("reset_grid");this.Pd.ma.data&&(d=this.Pd.ma.data,d=d.concat(c),this.Pd.ma.data=d);this.ha.Qd(c);this.pZ();e.u.sf.Fj.zc().reset(!1);this.tI=!0;e.Ce(()=>{this.tI=!1},500);this.ha.ua=g;this.ha.filter()}wG(c){this.zf=b.wA;this.cancel();this.ee(f.rF);this.qK(c)}load(c,d){this.zf=b.S7;this.cancel();this.iK(c,d)}iK(c,d){this.ee(f.Tx);
this.lq.N(l.hb.Eh.Xn,g=>this.MD(g));this.lq.N(l.hb.Eh.Av,()=>this.bN());this.lq.load(c,d)}open(){this.zf=b.OPEN;this.ee(f.hF);this.lq.cancel();this.lq.N(l.hb.Eh.IJ,()=>this.y3());this.lq.N(l.hb.Eh.Xn,c=>this.MD(c));this.lq.N(l.hb.Eh.Av,()=>this.bN());this.lq.N(l.hb.Eh.Kr,()=>this.aN());this.lq.open()}Pha(c){null!=c&&c.hasOwnProperty("dataSource")&&c.dataSource.hasOwnProperty("browseForFile")&&c.dataSource.browseForFile&&(c.dataSource.requestPermission=!0)}MD(c){this.Pha(c.hb);e.Ca(!1);this.ee(f.Xn);
this.qK(c.hb)}bN(){e.Ca(!1);this.ee(f.HJ);this.ee(f.lF);this.ee(f.ii)}y3(){this.$a(f.Tx,null,"")}aN(){this.ee(f.Kr);this.ee(f.lF);this.ee(f.ii)}bb(){this.aE!=f.ii&&this.aE!=f.Pk||l.Ua.V().Fa(new l.cd(l.Ua.GJ))}qK(c,d=!1,g=null){1>l.Ga.uc.Oj()||(this.Pd=c instanceof l.hb.Yx?c:l.hb.Yx.zb(c),this.Pd.ma.vCa=d,this.Pd.ma.Wia=g,d||l.Va.V().$a("reset_grid"),this.eua(this.Pd),this.Eha(),this.Pd.ma.nb?this.mfa():this.Pd.ma.mapping.UCa(this.Pd.ma.sc,()=>this.mfa()))}Eha(){this.Pd.ma.nb?this.bo&&!this.bo.nb&&
(e.u.ye.yE=!this.bo.Gc||this.bo.Da==e.u.i.qa.ag||this.bo.Da==e.u.i.qa.API,e.u.ye.vI=!this.bo.Gc||this.bo.Da==e.u.i.qa.ag||this.bo.Da==e.u.i.qa.API):(e.u.ye.yE=!this.Pd.ma.Gc||this.Pd.ma.Da==e.u.i.qa.ag||this.Pd.ma.Da==e.u.i.qa.API,e.u.ye.vI=!this.Pd.ma.Gc||this.Pd.ma.Da==e.u.i.qa.ag||this.Pd.ma.Da==e.u.i.qa.API)}eua(c){"flat"!=c.options.U("gridType")||c.options.U("viewType")!=e.K.Id.Tn||c.ma.nb||c.ma.Da!=e.u.i.qa.API||(c.options.na("viewType",e.K.Id.ot),e.Za(e.P.bind(l.B.j.sX),l.B.j.XO,e.xb.vl))}ws(c=
{}){return h.X.c9.kKa(this.zza(c))}clear(c=!1){this.cancel();this.zf=b.cp;this.jR();c?this.ha.clearData():this.ha.cancel();this.ee(f.ii)}cancel(){this.lq.cancel();this.VHa();this.tI=!1;e.u.ye.yE=!1;e.u.ye.vI=!1;e.Ca(!1)}mfa(){e.ia(this.oM.Ge)?this.Ufa(null):(this.ee(f.$E),l.B.NA.V().load(this.oM.Ge,c=>this.Ufa(c),!0),this.oM.Ge=null)}Ufa(c){e.ia(this.Pd.Ge)?(l.B.NA.V().reset(),this.RH(c)):(this.ee(f.$E),l.B.NA.V().load(this.Pd.Ge,d=>this.RH(d)))}RH(c){c?this.ee(f.aF):!1===c&&this.ee(f.qJ);this.YCa()}YCa(){this.zf!=
b.wA&&this.zf!=b.PJ&&(this.zf!=b.OPEN&&this.jR(),l.C.F.qq(this.Pd.options,!0,!1),this.zf!=b.OPEN&&(l.C.F.yn=l.C.F.pC));var c=this.zf;this.ee(f.lF);c==this.zf&&((c=this.Pd.ma,!e.v(this.ga)&&!this.ga.nb&&this.ga.isEqual(c)&&!l.C.F.jI&&this.ha.ga&&this.ha.O&&this.ha.O.Wd)?(c=e.u.sf.Fj.zc(),this.Pd.ma.Wia&&this.Pd.ma.Wia.keepMembersOrder?c.Fe=!0:c.reset(),this.pZ(),this.ha.OHa()):(c.nb&&this.bo&&!this.bo.nb&&(c=this.bo),c.nb)?(this.ga=c,this.ha.cancel(),this.ee(f.ii),e.Ca(!1)):(c.Gc?this.ee(f.nX):this.ee(f.ZE),
null!==this.ha.ra&&(this.zf==b.wA||this.zf==b.OPEN||e.v(this.ga)||this.ga.nb||c.Da===this.ga.Da?this.ga.Da===e.u.i.qa.API&&this.Pd.ma.Da===e.u.i.qa.API&&e.u.sf.Fj.vwa!==e.u.sf.Fj.aKa(this.Pd.options)&&(this.ha.ra.fs(),this.ha.ra=null):(this.ha.ra.fs(),this.ha.ra=null)),this.bua(c),e.u.sf.Fj.zc(),this.pZ(),this.ha.connect(c)))}bua(c){!l.C.F.rc||e.v(c)||c.nb||c.AH||(l.C.F.rc=!1)}lEa(){this.zf===b.wA?(this.jR(),this.ha.ua&&this.ha.ua.clear(),this.ha.O&&this.ha.O.clear()):this.qaa(!1);this.ee(f.bka);
this.ga=this.Pd.ma}mr(){this.ee(f.Ev);const c=e.u.O.Lr.zb(this.Pd.slice,this.ha.O,!1,e.u.i.qa.API!==this.Pd.ma.Da);this.qaa(!0);this.ha.mE(c);this.ga.Gc?(this.ee(f.A8),c.nb?(this.ee(f.PW),this.ee(f.ii)):(l.C.F.yn=l.C.F.pC,this.ha.filter())):(this.ee(f.QI),l.C.F.yn=l.C.F.pC,this.ha.filter())}L2(){this.ee(f.OI);this.ee(f.ii)}tGa(c){var d=this.Pd.ma;l.C.F.qq(this.Pd.options);this.ha.cancel();e.Ca(!1);d.Gc?this.ee(f.z8,c.data):this.ee(f.NI,c.data);this.ee(f.ii)}K2(){this.ee(f.XA)}LD(c){this.ee(f.Pk,c.kq);
this.aE!=f.ii&&this.ee(f.ii,null,c.kq!=e.u.i.Rd.VI)}u3(c){this.ee(f.vt,c.data);this.aE!=f.ii&&this.ee(f.ii)}pZ(){this.ha.N(e.u.tg.QX,this.Waa);this.ha.N(e.u.tg.Ev,this.MN);this.ha.N(e.u.tg.PX,this.tba);this.ha.N(e.u.tg.RX,this.xia);this.ha.N(e.u.tg.GI,this.SK);this.ha.N(e.u.tg.Pk,this.Pz);this.ha.N(e.u.tg.vt,this.Pga);this.ha.N(f.dn,this.Zga)}VHa(){this.ha.sb(e.u.tg.QX,this.Waa);this.ha.sb(e.u.tg.Ev,this.MN);this.ha.sb(e.u.tg.PX,this.tba);this.ha.sb(e.u.tg.RX,this.xia);this.ha.sb(e.u.tg.GI,this.SK);
this.ha.sb(e.u.tg.Pk,this.Pz);this.ha.sb(e.u.tg.vt,this.Pga);this.ha.sb(f.dn,this.Zga)}save(c,d,g,k,m=!1){return this.lq.save(c,d,g,k,m,this.ws(c instanceof Object?c:{}))}zza(c){if(void 0===this.Ab&&void 0===this.ha.O&&void 0===this.ha.ua)return null;var d=c.hasOwnProperty("withDefaults")?1==c.withDefaults:!1;c=c.hasOwnProperty("withGlobals")?1==c.withGlobals:!1;var g=new h.X.c9;g.lA=d;g.OKa=c;g.Ab=c&&this.Ab.nb&&!this.bo.nb?this.bo:this.Ab;g.O=this.ha.O;g.Qb=this.ha.ua;g.C=l.C.F.Kw(d,c);g.De=l.ec.gj.$ya();
g.Xc=l.va.Zm.Xc;g.Dm=l.hb.MI.Dm;g.Ax=l.size.vd.rH();this.Pd&&(g.Ge=c&&null==this.Pd.Ge&&null!=this.yY?this.yY:this.Pd.Ge);return g}get nM(){return this.Z9}set nM(c){this.Z9=c}NJa(c){this.bo=c.ma;this.nM=c.slice.bd;l.C.F.eJa(c.options);this.yY=c.Ge}jR(){e.u.sf.Fj.dispose();l.size.vd.clear();l.va.Zm.c4();l.ec.gj.clear();l.hb.MI.Dm=[];l.C.F.clear()}qaa(c=!1){l.C.F.qq(this.Pd.options,!1);c&&(l.size.vd.clear(),l.size.vd.KZ(this.Pd.Ax));l.va.Zm.c4();for(c=0;c<this.Pd.Xc.length;c++){var d=l.va.X.B6.zb(this.Pd.Xc[c]);
l.va.Zm.add(d)}l.ec.gj.clear();for(c=0;c<this.Pd.De.length;c++)l.ec.gj.jE(this.Pd.De[c]);for(c=0;c<this.Pd.slice.Ba.length;c++)if(d=this.Pd.slice.Ba[c],void 0!==d.format){let g=void 0===d.aggregation?"":d.aggregation;g=e.u.i.da.Ty(g)?e.u.i.da.cz(g):g;l.ec.gj.eI(d.format,d.uniqueName,g)}l.hb.MI.Dm=this.Pd.Dm}dispose(){this.cancel();l.va.Zm.dispose();l.C.F.dispose();l.Rs.jF.dispose();l.qD.SO.dispose();l.B.NA.dispose();l.Ga.uc.dispose();l.size.vd.dispose();l.ec.gj.dispose();this.lq.dispose();l.hb.MI.Dm=
[];this.ha=this.Pd=this.Z9=this.oM=this.Ab=this.lq=null}}h.Rpa=a})(l.jc||(l.jc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){}static ZC(a){return a==f.ag?h.pa.J(h.pa.txa):h.pa.J(a+28)}}f.lm=0;f.Dka=2;f.le=3;f.rja=4;f.yO=5;f.ag=6;h.ip=f;class b{constructor(){b.fv=[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 V(){null==b.instance&&(b.instance=
new b);return b.instance}static dispose(){b.bW=null;b.QG=null;b.ffa=null;b.j2=null;b.Py=null;b.fv=null;b.instance=null}gua(a,c){this.Jb=c;a[h.pa.J(h.pa.gfa)]?this.AN(a[h.pa.J(h.pa.gfa)]):a[h.pa.J(h.pa.Jga)]?this.AN(a[h.pa.J(h.pa.Jga)]):a[h.pa.J(h.pa.Pca)]?this.AN(a[h.pa.J(h.pa.Pca)]):a[h.pa.J(h.pa.i2)]?this.lfa(a[h.pa.J(h.pa.i2)]):window[h.pa.J(h.pa.hfa)]?this.AN(window[h.pa.J(h.pa.hfa)]):this.lfa(a[h.pa.J(h.pa.i2)])}AN(a){a=l.Tb.validate(a);b.Py=b[h.pa.J(h.pa.Dca)+h.pa.J(h.pa.p9)]=a;b.error=!1;this.Jb(!0)}hua(a){if(void 0==
a)return f.lm;if(a.trim()==h.pa.J(h.pa.NKa))return this.Mo(h.pa.J(h.pa.Tia)),f.lm;a=a.trim();var c=this.TBa(a);c&&(a=this.tya(a));if(!this.Sea(a))return f.lm;a=this.uIa(a);var d=this.Vza(a);c&&(b.By=!0);var g=this.vza(),k=this.cCa(g),m=this.ZBa(g);if(!b.maa&&this.Q1())return this.Mo(h.pa.J(h.pa.kBa)),f.lm;if(c&&b.hv)if(this.rR(a))b.Gp=!0;else return;if(b.hv&&!this.rR(a))return f.lm;if(b.Gp)if(k||m||c){if(!this.aua(a))return f.lm}else return this.Mo(e.P.bind(h.pa.J(h.pa.Kwa),g)),f.lm;if(b.iq&&!this.iua(a,
k||m?h.pa.J(h.pa.qfa):g))return f.lm;if(d==f.lm||e.v(d))this.Mo(h.pa.J(h.pa.fea));else if(!this.jua(a))return f.lm;b.hv||b.Gp||b.iq||(d=f.lm);return d}static Oj(){var a=[h.pa.J(h.pa.Dca),"G"].join("X");return b.V().hua(b[a])}Mo(a,c=!0,d=!1){c&&null!=b.Py&&0<b.Py.length&&(a+=h.pa.J(h.pa.VB)+h.pa.J(h.pa.VB)+h.pa.J(h.pa.pKa)+b.Py);d&&(a+=h.pa.J(h.pa.VB)+h.pa.J(h.pa.zia)+u.zh.format(b.bW,"MM/dd/yyyy"));c=new Date(parseFloat(e.ph.tW)/61);a+=h.pa.J(h.pa.VB)+h.pa.J(h.pa.VB)+h.pa.J(h.pa.nwa)+e.ph.ft+` (${h.pa.J(h.pa.Kta)} ${u.zh.format(c,
"MM/dd/yyyy")})`;b.error=!0;e.Ca(!1);this.Jb(!1);e.Za(a,l.B.j.Aa,e.xb.Aa,[],null,!0)}lfa(a){a||(a=u.ey.sH(h.pa.J(h.pa.zCa)));a=a+h.pa.J(h.pa.WJa)+Date.now();this.xhr=new XMLHttpRequest;this.xhr.open("GET",a,!0);this.xhr.onerror=()=>this.Qfa();this.xhr.onreadystatechange=c=>this.bv(c);this.xhr.send()}bv(){null!=this.xhr&&4===this.xhr.readyState&&(200===this.xhr.status?this.mFa(this.xhr.responseText):this.Qfa())}mFa(a){this.AN(a)}Qfa(){this.Mo(h.pa.J(h.pa.GDa))}cCa(a){return null==a||-1==a.indexOf(".")?
!0:!1}ZBa(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)}TBa(a){return a.substr(0,2)==h.pa.J(h.pa.p9)}tya(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.Sea(n,
!1))return n}c++}return"-"}Q1(){if(self==top||-1<window[h.pa.J(h.pa.jK)][h.pa.J(h.pa.fK)].toLowerCase().indexOf(h.pa.J(h.pa.Eua))||-1<window[h.pa.J(h.pa.jK)][h.pa.J(h.pa.fK)].toLowerCase().indexOf(h.pa.J(h.pa.yCa))||-1<window[h.pa.J(h.pa.jK)][h.pa.J(h.pa.fK)].toLowerCase().indexOf(h.pa.J(h.pa.OJa))||-1<window[h.pa.J(h.pa.jK)][h.pa.J(h.pa.fK)].toLowerCase().indexOf(h.pa.J(h.pa.PJa)))return!1;try{window.parent.document}catch(a){return!0}return!1}Sea(a,c=!0){if(null==a||0==a.length)return c&&this.Mo(h.pa.J(h.pa.uxa)),
!1;if(a.trim()==h.pa.J(h.pa.ACa))return c&&this.Mo(h.pa.J(h.pa.BCa),!1),!1;a=a.trim().replace(/-/gi,"");if(a.substr(0,2)==h.pa.J(h.pa.v9).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.pa.J(h.pa.v9)||a.substr(0,2)==h.pa.J(h.pa.Oqa)||a.substr(0,2)==h.pa.J(h.pa.Nqa)?c&&this.Mo(h.pa.J(h.pa.ega),!0,!0):c&&this.Mo(h.pa.J(h.pa.fea)),!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.Mo(h.pa.J(h.pa.Iva)),!1):!0}uIa(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}Vza(a){b.Hba=u.sea();a=a.charCodeAt(0);b.maa=256<=a;a%=256;b.Gp=128<=a;a%=128;b.Sda=64<=a;a%=64;b.iq=32<=a;a%=32;b.By=16<=a;a%=16;b.hv=8<=a;return a%8}vza(){var a;if(this.Q1()){if(a=
document[h.pa.J(h.pa.referrer)])a=a.replace(h.pa.J(h.pa.iBa),""),a=a.replace(h.pa.J(h.pa.jBa),""),a=a.split("/")[0]}else{a=h.pa.J(h.pa.jK);var c=h.pa.J(h.pa.fK);a=window[a][c]}if(null==a)return null;a=a.replace(h.pa.J(h.pa.SKa),"");return a=a.split(":")[0]}jua(a){var c=b.hv?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.fv[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.bW=a;d=new Date(parseFloat(e.ph.tW)/61);return!a||isNaN(a.getTime())||a<d?(this.Mo(h.pa.J(h.pa.ega),!0,!0),!1):!0}rR(a){var c=a.substr(-3);a=new Uint8Array(c.length);for(var d=0;d<c.length;d++)a[d]=c.charCodeAt(d)^b.fv[d];c="";for(d=0;d<a.byteLength;d++)c+=String.fromCharCode(a[d]);a=new Date(864E5*(parseInt(c,34)+17001)+6E4*(new Date).getTimezoneOffset());b.QG=a;a=new Date(864E5*(parseInt(c,34)+17002)+6E4*(new Date).getTimezoneOffset());return!a||isNaN(a.getTime())||a<new Date?(b.iq||b.Gp?this.Mo(h.pa.J(h.pa.KCa)):
this.Mo(h.pa.J(h.pa.Tia)),!1):!0}aua(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.fv[g];a="";for(g=0;g<d.byteLength;g++)a+=String.fromCharCode(d[g]);b.j2=a.split(String.fromCharCode(224))[0];return b.hv&&!this.rR(c)?!1:!0}iua(a,c){var d=a;a=a.substr(1);for(var g=new Uint8Array(a.length),k=0;k<a.length;k++)g[k]=a.charCodeAt(k)^b.fv[k];a="";for(k=0;k<g.byteLength;k++)a+=String.fromCharCode(g[k]);g=a.split(String.fromCharCode(224));a=g[0];b.ffa=
g.shift();if(b.hv&&!this.rR(d))return!1;if(c==h.pa.J(h.pa.qfa))return!0;d=" ";b.Sda&&c.length>=a.length-2&&(d="*."+c.substring(c.length-a.length+2));return a!=c&&a!=d&&a!=e.ypa.hash(c)?(this.Mo(e.P.bind(h.pa.J(h.pa.HGa),a)),!1):!0}static MCa(){return f.ZC(b.Oj())}}b.error=!1;b.hv=!1;b.iq=!1;b.Gp=!1;b.Hba=!1;b.QG=new Date(2009,9,30);b.bW=new Date(2009,9,30);b.By=!1;b.Py="";b.Sda=!1;b.maa=!1;h.uc=b})(l.Ga||(l.Ga={}))})(e.model||(e.model={}))})(q||(q={}));var mb=S||(S={});class nb{}nb.cka='<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.dka='<Override PartName="{0}" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>';nb.Pqa='<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.zja='<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.Bka='<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.Dqa='<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.Eqa='<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.Fqa='<Relationship Id="{0}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="{1}"/>';nb.Ypa='<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.Ipa='<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.zpa='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="5" uniqueCount="5">{0}</sst>';nb.Apa='<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.zt='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';mb.Oi=nb;
(function(e){(function(l){class h extends v.Ah{constructor(){super();this.lD=new e.tb;this.vH=new e.tb;this.f_=0;if(null!=h.instance)throw Error("Singleton");}static V(){void 0==h.instance&&(h.instance=new h);return h.instance}mE(f){this.ga.Gc||f.nb&&e.model.C.F.K4&&f.z2&&f.cDa();for(var b=0;b<f.ob.length;b++){var a=f.ob.ea(b);a.filter.xi&&a.filter.eC()}var c=f.wc(!1,!1);for(b=0;b<c.length;b++)if(a=c.ea(b),a.gb=[],a.filter.xi&&a.filter.measure&&(-1==a.filter.measure.index&&(a.filter.measure.index=
f.sda(a.filter.measure.A,a.filter.measure.aa),-1==a.filter.measure.index&&(a.filter.measure.index=f.sda(a.filter.measure.A))),-1!=a.filter.measure.index)){var d=f.WC(a.filter.measure.index);e.v(d)||(a.filter.measure.aa=d.aa)}this.ua=f}OHa(){!this.ga.Gc&&this.O&&(this.O.Wd=!1,this.YD());for(var f=this.O.wc(!1),b=0;b<f.length;b++){var a=f.ea(b);a.eu();a.XZ();this.ga.Gc?0<a.CC.length&&(a.Wd=!1):a.Wd=!1}this.ua&&this.ua.clear();this.uL()}connect(f){e.v(this.Qt)||this.Qt.cancel();this.Qt=l.Upa.MAa(f);
this.Qt.load(f,()=>this.uL(),b=>{this.$a(l.tg.RX,null,{error:b})},()=>{this.cancel(!1);this.ga=f;this.rq=this.Qt;this.ra=this.ga.Da==l.i.qa.ag?new l.external.Qe.tla(this):this.ga.Da==l.i.qa.API?new l.external.pc.I5(this):this.ga.Gc?new l.external.Eb.Eoa(this):new l.local.aP(this);this.Qt=null;this.zn=l.OW.H0(this.ga);null!=this.O&&this.O.clear();this.O=l.O.Tpa.LAa(this.ga.Da);this.O.lJa(f.mapping);this.$a(l.tg.QX)},()=>{this.$a(l.tg.PX)})}uL(){this.O.Wd=!0;this.$a(l.tg.Ev)}cancel(f=!0){u.Cl.cancel();
this.rq&&(this.rq.cancel(),this.rq=null);this.zn&&(this.zn.cancel(),this.zn=null);this.lD=new e.tb;this.vH=new e.tb;f&&this.O&&(this.O.clear(),this.O=null);f&&this.ua&&(this.ua.clear(),this.ua=null);f&&this.ra&&(this.ra.fs(),this.ra=null);f&&this.Qt&&(this.Qt.cancel(),this.Qt=null);this.f_=0}clearData(){this.zn&&(this.zn.cancel(),this.zn=null);this.ra&&this.ra.fs()}GH(f,b){null!=f&&(this.ra.select(!1),null!==this.zn&&this.zn.cancel(),this.zn=l.OW.H0(this.ga),this.zn.load(this.ga,f,b,a=>this.GG(a)))}An(f=
""){this.Fa(new l.EX(f))}GG(f){this.$a(l.tg.vt,null,{error:f})}filter(){this.select(l.i.Rd.EO)}sort(){this.An()}expand(f,b,a,c=!0){this.Fa(new l.LE(l.i.Rd.EA));this.U3(f,b,a,()=>{this.ra.expand(f,b,a);c&&(this.An(l.i.Rd.EA),e.Ce(()=>{this.$a(e.model.jc.nd.dn)},1))})}Zqa(f,b,a){a=e.v(a)?this.ua.Kf:[a];for(var c=!0,d=0;d<a.length;d++){var g=b===l.i.ja.La?this.ra.Ha(f,[],a[d]):this.ra.Ha([],f,a[d]);if(!isNaN(g)){c=!1;break}}return c}U3(f,b,a,c){this.ga.Gc?this.Zqa(f,b,a)?c():(a=new l.kF(l.i.Rd.EA),a.lf=
f,a.Yt=b,a.body=l.WA.UC(this.ua,this.ga).expand(b,f),void 0===a.body?c():this.GH(a,c)):c()}Yqa(f,b,a){if(null!=b.hierarchy.oc)return!1;var c=e.v(void 0)?this.ua.Kf:[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.ja.La?this.ra.Ha(f,[],c[b]):this.ra.Ha([],f,c[b]);if(!isNaN(g)){d=!1;break}}return d}Ega(f,b,a,c){if(this.ga.Gc)if(this.Yqa(f,b,a))c();else{var d=new l.kF(l.i.Rd.qv);d.lf=f;d.Yt=a;d.body=l.WA.UC(this.ua,this.ga).Mf(a,f,b,b.level.A);void 0===d.body?
c():this.GH(d,c)}else c()}collapse(f,b,a,c=!0){this.ra.collapse(f,b,a);c&&this.An(l.i.Rd.i6)}bd(f,b,a,c,d=null){var g=new l.kF(l.i.Rd.VI);g.body=l.WA.UC(this.ua,this.ga).bd(f,b,a,d?d.slice(0):null);e.Ca(!0,e.model.B.j.bg);d=new l.LE(l.i.Rd.VI);this.Fa(d);this.zn.cancel();this.zn=l.OW.H0(this.ga);this.zn.bd(this.ga,g,f,b,a,k=>{c(k);this.An(g.type)},()=>{c();this.An(g.type)})}Qc(f,b){this.ua.Qc=f;this.ua.kd=b;this.ua.wua();this.ua.vua();this.ga.Gc&&this.ra.sG()}Mf(f,b,a,c){b.hierarchy.Xy(b);var d=new l.LE(l.i.Rd.qv);
this.Fa(d);this.ga.Gc?b.Sg?(this.ra.Mf(f,b,a,c),this.An(l.i.Rd.qv)):this.Bk(b.hierarchy,b,()=>{var g=new l.kF(l.i.Rd.qv);g.lf=f;g.Yt=a;g.body=l.WA.UC(this.ua,this.ga).Mf(a,f,b);this.GH(g,()=>{this.ra.Mf(f,b,a,c);for(var k=[],m=b.level.wb+1;m<b.hierarchy.ta.length;m++){var n=b.hierarchy.ta.ea(m);n&&(k=k.concat(b.hierarchy.CC(n)))}if(0<k.length){n=[];var p,t;for(m=0;m<k.length;m++)for(t=p=b.hierarchy.ya(k[m]);void 0!==p&&void 0!==p.parent;){if(p.parent.ordinal===b.ordinal){n.push(t);break}p=p.parent}this.ifa(g,
f,a,n,c)}else this.An(g.type)})}):(this.ra.Mf(f,b,a,c),this.An(l.i.Rd.qv))}ifa(f,b,a,c,d){if(0<c.length){var g=c.shift(),k=b.slice(0);k[k.length-1]=g.ordinal;f.lf=k;f.body=l.WA.UC(this.ua,this.ga).Mf(a,k,g);this.GH(f,()=>{this.ra.Mf(k,g,a,d);this.ifa(f,b,a,c,d)})}else this.An(f.type)}xo(f,b,a,c,d){var g=l.WA.UC(this.ua,this.ga);c=new l.LE(l.i.Rd.KW);this.Fa(c);this.rq.Cz(b,d,()=>{var k=new l.kF;k.type=l.i.Rd.KW;k.lf=f;k.Yt=a;k.body=g.Mf(a,f,b,d);this.GH(k,()=>{this.ra.xo(f,b,a,d);this.An(k.type)})},
k=>this.GG(k))}Ip(f,b,a,c){b.hierarchy.Y_(b);this.ra.Ip(f,b,a,c);f=new l.LE(l.i.Rd.MW);this.Fa(f);this.An(l.i.Rd.MW)}select(f=l.i.Rd.np){!e.model.Ga.uc.hv||e.model.Ga.uc.iq||e.model.Ga.uc.Gp||e.model.Ga.uc.By||0==(new Date).getTime()%378&&e.Za(e.model.Ga.pa.J(e.model.Ga.pa.vga),e.model.Ga.pa.J(e.model.Ga.pa.Sia));var b=new l.LE(f);this.Fa(b);this.ga.Gc?(this.ra.fs(),this.AHa()):(this.ra.select(),this.An(f))}Vt(f,b=!0){f=f instanceof l.O.Br?f:this.O.bx(f);if(e.model.C.F.YN){var a=u.OO.qR(f.ve,f.A);
0==a.Sw&&e.Za(a.errorMessage)}if(!this.ga.Gc||!f.Na||e.model.C.F.bu||this.ga.Da===l.i.qa.API){if(null==this.O.gd(f.A)){f.Na&&(a=new u.rJ,f.Xd=a.parse(f.ve),this.O instanceof l.external.pc.O.EI&&(f.Xd=u.nt.hH(f.Xd,this.O.Ba)));if(f.Na&&null==f.Xd)return;this.O.NH&&this.O.lk(f);null!=this.ua&&!this.ua.Uq.Hb(f.A)&&f.Km&&this.dea(f);b&&(this.O.Wd&&!this.ga.Gc||this.O.Wd&&this.ga.Da==e.u.i.qa.API||this.O.Wd&&this.ga.DM&&this.ga.Da==e.u.i.qa.Tc&&e.model.C.F.bu)&&this.refresh()}else{a=new u.rJ;f.Xd=a.parse(f.ve);
this.O instanceof l.external.pc.O.EI&&(f.Xd=u.nt.hH(f.Xd,this.O.Ba));if(f.Na&&null==f.Xd)return;b=this.O.gd(f.A);b.caption=f.caption;b.Op=f.Op;b.ve=f.ve;b.cl=f.cl;b.Xd=f.Xd;b.ho=f.ho;b.Km=f.Km;(this.ua.Uq.Hb(b.A)||b.Km)&&this.dea(b);(this.O.Wd&&!this.ga.Gc||this.O.Wd&&this.ga.Da==e.u.i.qa.API||this.ga.Da==e.u.i.qa.Tc&&e.model.C.F.bu)&&this.refresh()}this.bb()}}dea(f){let b=-1;const a=this.ua.hd();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.ua.Zz(a);this.ua.z5();this.$ia(this.ua.Rb,f);this.$ia(this.ua.cc,f)}$ia(f,b){null!=f.Yf&&f.Yf.A==b.A&&(f.Yf=b)}Qz(f,b=!0){var a=this.O.gd(f);a&&a.Na&&(this.O.ZD(f),this.ua.ZD(f),b&&this.O.Wd&&this.refresh(),this.bb())}YD(){for(var f=0;f<this.O.Ba.length;){var b=this.O.Ba.ea(f);b.Na?this.Qz(b.A,!1):f++}this.O.Wd&&this.refresh();this.bb()}bb(){e.model.Ua.V().$a(e.model.Ua.GJ)}refresh(){this.O.Wd?(this.ga.Da==l.i.qa.EMPTY&&e.v(this.ua)&&this.uL(),this.filter()):this.ga.Da==l.i.qa.EMPTY&&this.uL()}gl(f,
b){(this.ua.kd||0<f.ev.length)&&f.Qm!=f.Ri&&(f.Wd=!1);if(!f.Se&&!f.Wd||null!=f.oc){0==this.lD.length&&this.rq.gl(f,c=>this.Xfa(c),c=>this.GG(c));this.lD.Ta(f.A,f);var a=null!=this.vH.getItem(f.A)?this.vH.getItem(f.A):[];a.push(b);this.vH.Ta(f.A,a)}else b(f)}Bk(f,b,a){this.rq.Bk(f,b,a,c=>this.GG(c))}nq(f,b,a){this.rq.ZB()?this.rq.nq(f,b,a,c=>this.GG(c)):(f=2<f.ta.length?this.NIa(f,b):this.MIa(f,b),a(f))}MIa(f,b){const a=[],c=f.Ri;let d;for(d=0;d<c;d++){if(f.Ad.ordinal==d)continue;const g=f.ya(d);void 0!==
g&&e.P.contains(g.caption,b)&&a.push(d)}return a}NIa(f,b){var a=[];this.wca(a,f.Ad,b);var c;for(c=0;c<a.length;c++)b=this.eea(a,f.ya(a[c]),c),c+=b;return a}eea(f,b,a){b=b.parent;var c=0;e.v(b)||b.Zb||(-1==f.indexOf(b.ordinal)&&(c++,f.splice(a,0,b.ordinal)),c+=this.eea(f,b,a));return c}wca(f,b,a){for(var c=b.children,d=c.length,g=b.hierarchy,k=0;k<d;k++)b=g.ya(c[k]),e.P.contains(b.caption,a)&&f.push(b.ordinal),this.wca(f,b,a)}Xfa(f){f.pw();f.Wd=!0;this.lD.removeItem(f.A);var b=this.vH.getItem(f.A);
if(null!=b)for(var a=0;a<b.length;a++)(0,b[a])(f);this.vH.removeItem(f.A);0<this.lD.length&&(f=this.lD.ea(0),null!=this.rq?this.rq.gl(f,c=>this.Xfa(c),c=>this.GG(c)):this.lD=null)}AHa(){if(this.ua.nb)this.An();else{var f=this.ua.wc(!0,!0,e.model.C.F.rc);this.f_=f.length;for(var b=0;b<f.length;b++){var a=f.ea(b);this.gl(a,()=>this.GFa())}}}GFa(){if(0==--this.f_){this.ga.Gc&&this.ua.L3();var f=new l.kF(l.i.Rd.np);f.body=l.WA.UC(this.ua,this.ga).select();this.GH(f,()=>{e.model.C.F.rc||this.ga.Da!=l.i.qa.ag&&
this.ga.Da!=l.i.qa.API?this.An(f.type):(e.Ca(!0,e.model.B.j.bg),this.jfa(()=>{this.kfa(()=>{this.jfa(()=>{this.kfa(()=>{e.Ca(!1);this.An(f.type)})})})}))})}}kfa(f){const b=new u.MJ;for(var a=this.ua.ce(l.i.ja.La).Ed,c=0;c<a.length;c++){var d=a[c];b.add((g,k)=>{var m=this.ua.yb.ea(k.length-1);if(m&&null!=m.oc){var n=m.ya(k[k.length-1]);null!=n&&this.ra.xo(k.slice(0,-1),n.parent,l.i.ja.La,m.gg)}this.ra.bi(k)?g():this.U3(k,l.i.ja.La,void 0,()=>{this.ra.expand(k,l.i.ja.La,void 0);g()})},d.slice(1))}a=
this.ua.ce(l.i.ja.Xa).Ed;for(c=0;c<a.length;c++)d=a[c],b.add((g,k)=>{var m=this.ua.Db.ea(k.length-1);if(m&&null!=m.oc){var n=m.ya(k[k.length-1]);null!=n&&this.ra.xo(k.slice(0,-1),n.parent,l.i.ja.Xa,m.gg)}this.ra.zk(k)?g():this.U3(k,l.i.ja.Xa,void 0,()=>{this.ra.expand(k,l.i.ja.Xa,void 0);g()})},d.slice(1));b.pg(f)}jfa(f){if(this.ga.Da!==l.i.qa.API||l.external.pc.O.ap.sM){for(var b=new u.MJ,a=this.ua.ce(l.i.ja.La).tf,c=0;c<a.length;c++)b.add((d,g)=>{var k=this.ua.yb.ea(g.length-3);if(e.v(k))d();else{var m=
k.Ib(g[1]);null==m?d():(g=g.slice(2),this.Ega(g,m,l.i.ja.La,()=>{this.ra.Mf(g,m,l.i.ja.La,void 0);d()}))}},a[c].slice(0));a=this.ua.ce(l.i.ja.Xa).tf;for(c=0;c<a.length;c++)b.add((d,g)=>{var k=this.ua.Db.ea(g.length-3).Ib(g[1]);null==k?d():(g=g.slice(2),this.Ega(g,k,l.i.ja.Xa,()=>{this.ra.Mf(g,k,l.i.ja.Xa,void 0);d()}))},a[c].slice(0));b.pg(f)}else f()}yha(f){e.Ce(()=>{e.model.Ua.V().$a(e.model.Ua.D6,null,f)},1)}Qd(f){this.rq.Qd(f);this.uL()}static dispose(){l.xJ.dispose();l.TX.dispose();l.external.Eb.cj.q9.dispose();
l.external.pc.H5.dispose();u.Cl.cancel();if(h.instance){h.instance.ua=null;try{h.instance.ra.fs()}catch(f){}h.instance.ra=null;try{h.instance.zn.cancel()}catch(f){}h.instance.zn=null;try{h.instance.rq.cancel()}catch(f){}h.instance.rq=null;try{h.instance.Qt.cancel()}catch(f){}h.instance.Qt=null;try{h.instance.O.clear()}catch(f){}h.instance.O=null;h.instance=null}}}l.Ra=h})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h extends x.Ma{constructor(){super("div");this.G.Ol()}kb(){this.G.html(e.model.Ga.pa.J(e.model.Ga.pa.nW));this.G.element.setAttribute("style",`z-index:1!important;left:${(l.Mb.gv-this.uf())/2}px!important;top:${(l.Mb.gD-this.xd())/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.Gqa=h})(e.K||
(e.K={}))})(q||(q={}));
(function(e){class l{constructor(f,b){this.FT=!1;this.pc=null;this.I_=[];this.K_=[];this.J_=[];l.instance=this;this.pc=b;e.v(f)&&(f={});if(0!=u.VBa()||0!=confirm("Flexmonster Pivot Table is not completely supported by this version of browser. Please update your browser. Continue anyway?")){var a="flexmonster/";void 0!==f.componentFolder&&(a=f.componentFolder);u.ey.g_=a;u.Zn.NZ=a;var c;f.container instanceof HTMLElement?c=f.container:e.v(f.container)||(c=document.getElementById("#"==f.container.substr(0,
1)?f.container.substring(1):f.container));null==c?(f=0==e.ia(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)):(a=this.Hda(c),e.v(a)||void 0===a.flexmonster||(a.flexmonster.dispose(),a.flexmonster=void 0),this.ka=e.model.Va.V(),this.ka.Ia.N(e.model.jc.nd.hF,()=>this.NFa()),this.ka.Ia.N(e.model.jc.nd.Tx,()=>this.n3()),this.ka.Ia.N(e.model.jc.nd.Xn,
()=>this.MD()),this.ka.Ia.N(e.model.jc.nd.HJ,()=>this.aGa()),this.ka.Ia.N(e.model.jc.nd.Kr,()=>this.aN()),this.ka.Ia.N(e.model.jc.nd.lF,()=>this.x3()),this.ka.Ia.N(e.model.jc.nd.ZE,()=>this.l3()),this.ka.Ia.N(e.model.jc.nd.QI,()=>this.aq()),this.ka.Ia.N(e.model.jc.nd.NI,d=>this.Ofa(d)),this.ka.Ia.N(e.model.jc.nd.OI,()=>this.L2()),this.ka.Ia.N(e.model.jc.nd.Ev,()=>this.mr()),this.ka.Ia.N(e.model.jc.nd.nX,()=>this.pFa()),this.ka.Ia.N(e.model.jc.nd.A8,()=>this.$fa()),this.ka.Ia.N(e.model.jc.nd.z8,d=>
this.Zfa(d)),this.ka.Ia.N(e.model.jc.nd.$E,()=>this.oFa()),this.ka.Ia.N(e.model.jc.nd.aF,()=>this.RH()),this.ka.Ia.N(e.model.jc.nd.qJ,()=>this.rFa()),this.ka.Ia.N(e.model.jc.nd.PW,()=>this.P2()),this.ka.Ia.N(e.model.jc.nd.XA,()=>this.eGa()),this.ka.Ia.N(e.model.jc.nd.Pk,()=>this.LD()),this.ka.Ia.N(e.model.jc.nd.vt,d=>this.u3(d)),this.ka.Ia.N(e.model.jc.nd.ii,()=>this.w3()),this.ka.N(h.VW,()=>this.KEa()),this.ka.N(h.oh,()=>this.IEa()),this.ka.N(h.CX,()=>this.TFa()),this.ka.N(h.VA,()=>this.SFa()),this.Ig=
new e.K.Mb(x.Ea.Vb(c),f),this.Ig.N(e.K.Ni.Jx,d=>this.ODa(d)),this.Ig.N(e.K.Ni.GX,()=>this.$Fa()),this.ka.pD(f),this.Xsa(f.accessibility),this.FT=!0,this.Hda(this.Ig.gf.element).flexmonster=b,this.ka.Ia.$a(e.model.jc.nd.t6))}}Xsa(f){e.v(f)||"object"!==typeof f||(e.v(f.keyboardMode)||this.Ig.Nha(!0===f.keyboardMode),e.v(f.highContrastTheme)||this.Ig.jJa(f.highContrastTheme))}Hda(f){return void 0===f.uielement?f:f.uielement}get kc(){return this.ka&&this.ka.Ia&&this.ka.Ia.kc}get YT(){return this.ka&&
this.ka.Ia&&this.ka.Ia.YT}get bU(){return this.ka&&this.ka.Ia&&this.ka.Ia.bU}iha(){e.Ce(()=>{for(;0<this.J_.length;)this.J_.shift().call(this)},1)}sd(f,b=10){e.Ce(()=>{0==b?this.I_.push(f):1==b?this.K_.push(f):this.J_.push(f)},1)}NFa(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.hF))}n3(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.Tx))}MD(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.Xn))}aGa(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.HJ))}aN(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.Kr))}x3(){for(this.ka&&
this.ka.Ia&&this.ka.Ia.zf==e.model.jc.mp.INIT&&e.Ce(()=>{e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.L8))},1);0<this.I_.length;)this.I_.shift().call(this)}oFa(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.$E))}RH(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.aF))}rFa(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.qJ))}l3(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.ZE))}aq(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.QI))}L2(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.OI))}Ofa(f){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.NI,
f.data))}mr(){for(;0<this.K_.length;)this.K_.shift().call(this)}pFa(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.T7))}$fa(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.C8))}Zfa(f){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.B8,f.data))}P2(){}eGa(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.XA))}LD(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.Pk));e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.k9))}u3(f){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.vt,f.data))}w3(){}ODa(f){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.Jx,
f.data))}$Fa(){this.kc&&(this.ka.Ia.zf!==e.model.jc.mp.Oc?(this.ka.Ia.zf=e.model.jc.mp.Oc,e.Ce(()=>{this.iha();e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.ii))},1)):e.Ce(()=>{this.iha()},1))}KEa(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.W6))}IEa(){e.Ce(()=>{e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.oh))},1)}TFa(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.F8))}SFa(){e.Ce(()=>{e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.VA))},1)}B0(){return this.kc?this.ka.B0():null}F0(f){return this.kc?this.ka.F0(f):
null}aR(f){this.kc?null!=f&&this.ka.aR(f):this.sd(()=>this.aR(f))}lV(f){this.kc?this.ka.lV(f):this.sd(()=>this.lV(f))}kV(){this.kc?this.ka.kV():this.sd(()=>this.kV())}open(){this.ka.open()}load(f,b){this.ka.load(f,b)}ws(f="object"){let b="object";f instanceof Object?f.hasOwnProperty("type")&&(b=f.type,b=b.toLowerCase()):f&&(b=f.toLowerCase());f=this.ka.ws(f instanceof Object?f:{});return e.v(f)||f.nb?null:"xmlstring"==b?z.ba.Ic(f.Yo(),!0):f.Qa()}ux(f){if(this.kc){if("string"==typeof f)try{if(-1<f.indexOf("<config>")){var b=
z.ba.create(f);f=e.model.hb.Yx.wk(b)}else f=JSON.parse(f)}catch(a){e.Za(e.model.B.j.i8,e.model.B.j.Aa,e.xb.Aa);return}this.ka.ux({report:f})}else this.sd(()=>this.ux(f))}getData(f,b,a){this.kc?this.ka.getData(f,b,a):this.sd(()=>this.getData(f,b,a))}save(f={filename:"report.json"},b=null,a=null,c=null,d=!1){var g=a;this.kc?(f instanceof Object&&f.hasOwnProperty("callbackHandler")&&(g=f.callbackHandler),this.ka.save(f,b,null!=g?(k,m)=>g(k,m):null,c,d)):this.sd(()=>this.save(f,b,a,c,d))}Qd(f,b){null!=
f&&(e.v(b)?b={partial:!1}:"boolean"===typeof b&&(b={partial:b}),this.YT?this.ka.Qd(f,b):this.sd(()=>this.Qd(f,b),0))}wG(f){null!=f&&(this.YT?this.ka.wG(f):this.sd(()=>this.wG(f),0))}Csa(f){this.Qd({data:f})}Vt(f){this.kc?null!=f&&this.ka.Vt(f):this.sd(()=>this.Vt(f))}Qz(f){this.kc?this.ka.Qz(f):this.sd(()=>this.Qz(f))}YD(){this.kc?this.ka.YD():this.sd(()=>this.YD())}clear(){this.ka&&this.ka.clear()}dispose(){e.Dn.dispose();e.vk.dispose();e.JL.dispose();e.lqa.dispose();u.Zn.dispose();this.pc=null;
this.ka.dispose();this.Ig.dispose();this.ka=this.Ig=null;l.instance=null;e.model.Ua.dispose()}refresh(){this.kc?this.Ig.kb():this.sd(()=>this.refresh())}NV(){this.kc?this.Ig.NV():this.sd(()=>this.NV())}EN(f="column",b=!1){this.kc?this.Ig.EN(f,b):this.sd(()=>this.EN(f,b))}OV(f="column",b="bottom",a=!1){this.kc?this.Ig.OV(f,b,a):this.sd(()=>this.OV(f,b,a))}kS(f=!0){this.kc?this.ka.kS(f):this.sd(()=>this.kS(f))}Cw(f){this.kc?this.Ig.Cw(f):this.sd(()=>this.Cw(f))}BR(){this.kc?this.ka.BR():this.sd(()=>
this.BR())}ow(f){this.kc?this.Ig.ow(f):this.sd(()=>this.ow(f))}print(f=null){this.kc?this.ka.print(e.model.Rs.J8.zb(f)):this.sd(()=>this.print(f))}tk(f,b=null,a=null){if(this.kc){if(null!=f){var c=null!=a?(...d)=>a.apply(null,d):null;this.ka.tk(f,e.model.Ac.b7.zb(b),c)}}else this.sd(()=>this.tk(f,b,a))}Hm(f){return this.kc?this.ka.Hm(f):null}UH(f){this.kc&&this.Ig.JGa(f)}em(f,b){this.kc?this.ka.em(f,b):this.sd(()=>this.em(f,b))}eu(f){this.kc?this.ka.eu(f):this.sd(()=>this.eu(f))}on(f,b){e.model.Ua.V().N(f,
b)}KDa(f,b){null==b?e.model.Ua.V().Yd(f):e.model.Ua.V().sb(f,b)}nH(){return this.kc?this.ka.nH():null}l_(f){new Promise(b=>{this.FT?b(f()):this.ka.Ia.N(e.model.jc.nd.t6,()=>{b(f())})})}vG(f){return new Promise(b=>{this.kc?b(f()):this.ka.Ia.N(e.model.jc.nd.ii,()=>{b(f())})})}BAa(){return this.vG(()=>this.ka.nH())}cH(){return this.kc?this.ka.cH():null}pza(){return this.vG(()=>this.ka.cH())}$C(){return this.kc?this.ka.$C():null}nAa(){return this.vG(()=>this.ka.$C())}hd(){return this.kc?this.ka.hd():
null}$za(){return this.vG(()=>this.ka.hd())}us(){return this.kc?this.ka.us():null}bza(){return this.vG(()=>this.ka.us())}qM(){return this.Ig.qM}pM(){return this.Ig.pM}UV(f){this.bU?this.ka.UV(f):this.sd(()=>this.UV(f),1)}XV(f,b,a,c){this.kc?this.ka.XV(f,b,a,c):this.sd(()=>this.XV(f,b,a,c))}YV(f,b){this.bU?this.ka.YV(f,b):this.sd(()=>this.YV(f,b),1)}nE(f,b,a=null){this.kc?this.ka.nE(f,b):this.sd(()=>this.nE(f,b,a))}DV(f){this.kc?this.ka.DV(f):this.sd(()=>this.DV(f))}fN(f,b){this.kc?this.Ig.fN(f,b):
this.sd(()=>this.fN(f,b))}Z0(f){return this.kc?this.ka.Z0(f):null}N0(){return this.kc?this.ka.N0():null}Kw(){return this.kc?this.ka.Kw():null}qq(f){e.v(f)||(this.kc?this.ka.qq(f):this.sd(()=>this.qq(f)))}Pj(f,b,a){if(this.kc)return this.ka.Pj(f,b,a);this.sd(()=>this.Pj(f,b,a))}W0(f,b){return this.ka.W0(f,b)}eD(f,b){if(this.kc)return this.ka.eD(f,b);this.sd(()=>this.eD(f,b))}TAa(f){return new Promise(b=>{this.ka.tH(f,()=>{this.ka.eD(f,a=>b(a))})})}tH(f,b){this.kc?this.ka.tH(f,b):this.sd(()=>this.tH(f,
b))}SAa(f){return new Promise(b=>{this.ka.tH(f,a=>b(a))})}lM(f,b,a){this.kc?this.ka.lM(f,b,a):this.sd(()=>this.lM(f,b,a))}QAa(f,b){return new Promise(a=>{this.ka.lM(f,b,c=>a(c))})}mM(f,b,a,c){this.kc?this.ka.mM(f,b,a,c):this.sd(()=>this.mM(f,b,a,c))}RAa(f,b,a){return new Promise(c=>{this.ka.mM(f,b,a,d=>c(d))})}xR(f,b,a,c=null,d=null){this.kc?this.ka.xR(f,b,c,d,a):this.sd(()=>this.xR(f,b,c,d,a))}CN(f){return this.ka.CN(f)}rN(f){this.kc?null!=f&&this.ka.rN(e.model.hb.pp.zb(f)):this.sd(()=>this.rN(f))}WG(){return this.kc?
this.ka.WG():null}aza(){return this.vG(()=>this.ka.WG())}oV(f){this.kc?this.ka.oV(f):this.sd(()=>this.oV(f))}Yh(f,b){return this.kc?this.ka.Yh(f,b):null}jE(f,b,a){this.kc?null!=f&&this.ka.jE(f,b,a):this.sd(()=>this.jE(f,b))}kg(f,b){return this.kc?this.Ig.kg(f,b):null}pH(){return this.kc?this.Ig.pH():null}$z(f,b){this.kc?this.Ig.$z(f,b):this.sd(()=>this.$z(f,b))}rH(){return this.kc?this.ka.rH():null}LV(f){this.kc?this.ka.LV(f):this.sd(()=>this.LV(f))}$D(){this.l_(()=>this.Ig.$D())}VU(){this.l_(()=>
this.Ig.VU())}YK(){this.l_(()=>this.Ig.YK())}twa(f){e.K.Y.X.ke.uw=f;this.FT&&this.refresh()}Jl(f){e.K.Bd.ov.tC=f;this.FT&&this.refresh()}uwa(f){e.K.Y.rO.oL=f}swa(f){e.u.external.pc.oA.nL=f}K0(f,b){this.ka.K0(f,b)}sr(f){this.kc?this.Ig.sr(f):this.sd(()=>this.sr(f))}Us(f){this.kc?this.Ig.Us(f):this.sd(()=>this.Us(f))}lS(f,b,a){this.kc?this.Ig.lS(f,b,a):this.sd(()=>this.lS(f,b,a))}CR(f,b,a){this.kc?this.Ig.CR(f,b,a):this.sd(()=>this.CR(f,b,a))}hS(f,b,a,c){this.kc?this.Ig.hS(f,b,a,c):this.sd(()=>this.hS(f,
b,a,c))}gS(f,b,a,c){this.kc?this.Ig.gS(f,b,a,c):this.sd(()=>this.gS(f,b,a,c))}}l.ft="2.9.22";l.tW="100593094972273";e.ph=l;class h{}h.CX="print";h.VA="printcomplete";h.VW="export";h.oh="exportcomplete";e.vg=h})(q||(q={}));
function PivotApi(e){q.v(window.flexmonster)||(window.flexmonster=null);var l={version:q.ph.ft},h=new q.ph(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.xb.vl||b.type==q.xb.Ym||b.type==q.xb.Aa||b.type==q.xb.RO?b.type:q.xb.vl,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.Za(a,c,d,g,k,void 0==b.blocking||1!=b.blocking&&0!=b.blocking?!1:b.blocking)}};l.openCalculatedValueEditor=(b,a)=>h.fN(b,a);l.getAllConditions=()=>h.B0();l.getCondition=b=>h.F0(b);l.addCondition=b=>h.aR(b);l.removeCondition=b=>h.lV(b);l.removeAllConditions=()=>h.kV();l.open=()=>h.open();l.load=(b,a)=>h.load(b,
a);l.getReport=(b="object")=>h.ws(b);l.setReport=b=>h.ux(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.Qd(b,a);l.connectTo=b=>h.wG(b);l.addJSON=b=>h.Csa(b);l.addCalculatedMeasure=b=>h.Vt(b);l.removeCalculatedMeasure=b=>h.Qz(b);l.removeAllCalculatedMeasures=()=>h.YD();l.clear=()=>h.clear();l.dispose=()=>{q.v(window.flexmonster)||(window.flexmonster=null);h.dispose()};l.refresh=()=>h.refresh();l.showGrid=
()=>h.NV();l.showCharts=(b="column",a=!1)=>h.EN(b,a);l.showChart=(b="column",a=!1)=>h.EN(b,a);l.showGridAndCharts=(b="column",a="bottom",c=!1)=>h.OV(b,a,c);l.expandAllData=(b=!0)=>h.kS(b);l.expandData=b=>h.Cw(b);l.collapseAllData=()=>h.BR();l.collapseData=b=>h.ow(b);l.expandCell=(b,a,c)=>h.lS(b,a,c);l.collapseCell=(b,a,c)=>h.CR(b,a,c);l.drillUpCell=(b,a,c,d)=>h.hS(b,a,c,d);l.drillDownCell=(b,a,c,d)=>h.gS(b,a,c,d);l.print=(b=null)=>h.print(b);l.exportTo=(b,a=null,c=null)=>h.tk(b,a,c);l.openFilter=
b=>h.UH(b);l.getFilter=b=>h.Hm(b);l.setFilter=(b,a)=>h.em(b,a);l.clearFilter=b=>h.eu(b);l.on=(b,a)=>h.on(b,a);l.off=(b,a)=>h.KDa(b,a);l.getRows=()=>h.nH();l.getRowsAsync=()=>h.BAa();l.getColumns=()=>h.cH();l.getColumnsAsync=()=>h.pza();l.getPages=()=>h.$C();l.getReportFilters=()=>h.$C();l.getReportFiltersAsync=()=>h.nAa();l.getMeasures=()=>h.hd();l.getMeasuresAsync=()=>h.$za();l.getAllMeasures=()=>h.us();l.getAllMeasuresAsync=()=>h.bza();l.sortFieldsList=b=>h.UV(b);l.sortValues=(b,a,c,d)=>h.XV(b,
a,c,d);l.sortingMethod=(b,a)=>h.YV(b,a);l.setSort=(b,a,c=null)=>h.nE(b,a,c);l.getSort=b=>h.Z0(b);l.setFlatSort=b=>h.DV(b);l.getFlatSort=()=>h.N0();l.getOptions=()=>h.Kw();l.setOptions=b=>h.qq(b);l.getMembers=(b,a,c)=>h.Pj(b,a,c);l.getMembersAsync=(b,a)=>h.W0(b,a);l.gridRowCount=()=>h.qM();l.gridColumnCount=()=>h.pM();l.getXMLAProviderName=(b,a)=>h.eD(b,a);l.getXMLAProviderNameAsync=b=>h.TAa(b);l.getXMLADataSources=(b,a)=>h.tH(b,a);l.getXMLADataSourcesAsync=b=>h.SAa(b);l.getXMLACatalogs=(b,a,c)=>h.lM(b,
a,c);l.getXMLACatalogsAsync=(b,a)=>h.QAa(b,a);l.getXMLACubes=(b,a,c,d)=>h.mM(b,a,c,d);l.getXMLACubesAsync=(b,a,c)=>h.RAa(b,a,c);l.clearXMLACache=(b,a,c,d=null,g=null)=>h.xR(b,a,c,d,g);l.shareReport=b=>h.CN(b);l.getElasticIndices=(b,a)=>h.K0(b,a);l.runQuery=b=>h.rN(b);l.getAllHierarchies=()=>h.WG();l.getAllHierarchiesAsync=()=>h.aza();l.replaceHierarchyCaption=b=>h.oV(b);l.getFormat=(b,a)=>h.Yh(b,a);l.setFormat=(b,a,c)=>h.jE(b,a,c);l.getCell=(b,a)=>h.kg(b,a);l.getSelectedCell=()=>h.pH();l.setSelectedCell=
(b,a)=>h.$z(b,a);l.removeSelection=()=>h.$D();l.getTableSizes=()=>h.rH();l.setTableSizes=b=>h.LV(b);l.openFieldsList=()=>h.VU();l.closeFieldsList=()=>h.YK();l.scrollToRow=b=>h.sr(b);l.scrollToColumn=b=>h.Us(b);l.customizeCell=b=>h.twa(b);l.customizeChartElement=b=>h.Jl(b);l.customizeContextMenu=b=>h.uwa(b);l.customizeAPIRequest=b=>h.swa(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};
;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)}};

            if("object"===typeof module&&module.exports){module.exports=Flexmonster;}
        
// SIG // Begin signature block
// SIG // MIIhaQYJKoZIhvcNAQcCoIIhWjCCIVYCAQExDzANBglg
// SIG // hkgBZQMEAgEFADB3BgorBgEEAYI3AgEEoGkwZzAyBgor
// SIG // BgEEAYI3AgEeMCQCAQEEEBDgyQbOONQRoqMAEEvTUJAC
// SIG // AQACAQACAQACAQACAQAwMTANBglghkgBZQMEAgEFAAQg
// SIG // SW3J1EpxJFHNnX/5PoOboYTBmYVB+tsASlXtzQYMsdug
// SIG // ggetMIIDgjCCAwmgAwIBAgIQbt1PJecxfTmBVzE0z8Hc
// 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 // z6ZVIBvZEJpTAPuJXnAwggQjMIIDqqADAgECAhAhNUdr
// SIG // cqDWlVOjlyeHGHc+MAoGCCqGSM49BAMDMHsxCzAJBgNV
// SIG // BAYTAlVTMQ4wDAYDVQQIDAVUZXhhczEQMA4GA1UEBwwH
// SIG // SG91c3RvbjERMA8GA1UECgwIU1NMIENvcnAxNzA1BgNV
// SIG // BAMMLlNTTC5jb20gRVYgQ29kZSBTaWduaW5nIEludGVy
// SIG // bWVkaWF0ZSBDQSBFQ0MgUjIwHhcNMjIwMTA2MTY0NjI1
// SIG // WhcNMjMwMTA2MTY0NjI1WjCB7zELMAkGA1UEBhMCVVMx
// SIG // EzARBgNVBAgMCkNhbGlmb3JuaWExGDAWBgNVBAcMD1Jh
// SIG // bmNobyBTYW50YSBGZTElMCMGA1UECgwcTm9ydGggQW1l
// SIG // cmljYW4gUmVzZWxsZXJzIExMQzEVMBMGA1UEBRMMTDA5
// SIG // MDAwMDU3MjExMSUwIwYDVQQDDBxOb3J0aCBBbWVyaWNh
// SIG // biBSZXNlbGxlcnMgTExDMR0wGwYDVQQPDBRQcml2YXRl
// SIG // IE9yZ2FuaXphdGlvbjEYMBYGCysGAQQBgjc8AgECDAdG
// SIG // bG9yaWRhMRMwEQYLKwYBBAGCNzwCAQMTAlVTMFkwEwYH
// SIG // KoZIzj0CAQYIKoZIzj0DAQcDQgAE0yUAM2ZtTXT3Wr/C
// SIG // jj9fHhFtoFZCJ0AUbdm25g+M40vHnYbrQBqMKerv5MBW
// SIG // w2FYmxr6gJV/xJ2q2JtS1bzMg6OCAZkwggGVMB8GA1Ud
// SIG // IwQYMBaAFAGJlLn+tDNd8PH6hfkkRoSjV2leMHwGCCsG
// SIG // AQUFBwEBBHAwbjBKBggrBgEFBQcwAoY+aHR0cDovL2Nl
// SIG // cnQuc3NsLmNvbS9TU0xjb20tU3ViQ0EtRVYtY29kZVNp
// SIG // Z25pbmctRUNDLTM4NC1SMi5jZXIwIAYIKwYBBQUHMAGG
// SIG // FGh0dHA6Ly9vY3Nwcy5zc2wuY29tMF8GA1UdIARYMFYw
// SIG // BwYFZ4EMAQMwDQYLKoRoAYb2dwIFAQcwPAYMKwYBBAGC
// SIG // qTABAwMCMCwwKgYIKwYBBQUHAgEWHmh0dHBzOi8vd3d3
// SIG // LnNzbC5jb20vcmVwb3NpdG9yeTATBgNVHSUEDDAKBggr
// SIG // BgEFBQcDAzBPBgNVHR8ESDBGMESgQqBAhj5odHRwOi8v
// SIG // Y3Jscy5zc2wuY29tL1NTTGNvbS1TdWJDQS1FVi1jb2Rl
// SIG // U2lnbmluZy1FQ0MtMzg0LVIyLmNybDAdBgNVHQ4EFgQU
// SIG // MivFecMS5lfIlkgIbVpvIdvX8UQwDgYDVR0PAQH/BAQD
// SIG // AgeAMAoGCCqGSM49BAMDA2cAMGQCMD8/t8ht5dlMKXNB
// SIG // 4eIeVtPEA1KYNWJu53agjqo8Ow+MejTHvpy1qzdYegkZ
// SIG // VpKdmQIwWtdjuVCKYm8YgIU14XwB2KDYTfzATnVYXWO5
// SIG // mmdWFZzSISFpRLylLKMjVQ6l+RZrMYIZFDCCGRACAQEw
// SIG // gY8wezELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVRleGFz
// SIG // MRAwDgYDVQQHDAdIb3VzdG9uMREwDwYDVQQKDAhTU0wg
// SIG // Q29ycDE3MDUGA1UEAwwuU1NMLmNvbSBFViBDb2RlIFNp
// SIG // Z25pbmcgSW50ZXJtZWRpYXRlIENBIEVDQyBSMgIQITVH
// SIG // a3Kg1pVTo5cnhxh3PjANBglghkgBZQMEAgEFAKB8MBAG
// SIG // CisGAQQBgjcCAQwxAjAAMBkGCSqGSIb3DQEJAzEMBgor
// SIG // BgEEAYI3AgEEMBwGCisGAQQBgjcCAQsxDjAMBgorBgEE
// SIG // AYI3AgEVMC8GCSqGSIb3DQEJBDEiBCCDvB28sg+hLqB/
// SIG // GZ0xrL4t8fFXr3rOyBTyBGdhr1lqoTALBgcqhkjOPQIB
// SIG // BQAESDBGAiEA4hrA+c5bVgXojnoXC/AO9G4yWEAgZk89
// SIG // IZqz7GPDGn8CIQCWWTCsW7vnReir71tTwU04UQE6SHNF
// SIG // DPpvAZDhAUx1UKGCF5MwghePBgorBgEEAYI3AwMBMYIX
// SIG // fzCCF3sGCSqGSIb3DQEHAqCCF2wwghdoAgEDMQ0wCwYJ
// SIG // YIZIAWUDBAIBMHcGCyqGSIb3DQEJEAEEoGgEZjBkAgEB
// SIG // BgwrBgEEAYKpMAEDBgEwMTANBglghkgBZQMEAgEFAAQg
// SIG // shG41sfBPMthHLO7pHaqFgOOnZ4a8LHyV1ZACKznp+8C
// SIG // CGDOg+Hchs7lGA8yMDIyMDQwNDEyMzU1NFowAwIBAaCC
// SIG // EzwwggXYMIIEwKADAgECAhEA5CcElfaMkdbQ7HtJTqTf
// SIG // HDANBgkqhkiG9w0BAQsFADB+MQswCQYDVQQGEwJQTDEi
// SIG // MCAGA1UEChMZVW5pemV0byBUZWNobm9sb2dpZXMgUy5B
// SIG // LjEnMCUGA1UECxMeQ2VydHVtIENlcnRpZmljYXRpb24g
// SIG // QXV0aG9yaXR5MSIwIAYDVQQDExlDZXJ0dW0gVHJ1c3Rl
// SIG // ZCBOZXR3b3JrIENBMB4XDTE4MDkxMTA5MjY0N1oXDTIz
// SIG // MDkxMTA5MjY0N1owfDELMAkGA1UEBhMCVVMxDjAMBgNV
// SIG // BAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMRgwFgYD
// SIG // VQQKDA9TU0wgQ29ycG9yYXRpb24xMTAvBgNVBAMMKFNT
// SIG // TC5jb20gUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0
// SIG // eSBSU0EwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK
// SIG // AoICAQD5D92jK33L0Cr+7GeFpucuG7p34eP1r6Ts+kpd
// SIG // kcRXR2sYd2t28v2T5D0PwhaeC2bDVpSeF4OFzlbv8hb9
// SIG // AGL1IglU6GUXTkG54E9Gl6obyLhuYl5psV/bKgJ+/GzK
// SIG // 80HY7dDo/D9hSO2wAxQdEA5LGeC7TuyGZf82815nAgud
// SIG // hlVh/Xo47f7iGQC3b6FQYnV0PKD6yCWStG56Isf4HqHj
// SIG // st2RMasrHQT/pUoEN+mFpDMr/eLWVTR8GaRKaMeyqNO3
// SIG // yqGTiOvBl7yM+R3ZIoQkdMcEPWqpKZPM67hb4f5fJao0
// SIG // WMjBI1SdG5gRwzicfj2GbKUPQIZ8AvRcAk8oy65xnw86
// SIG // yDP+ESU16vy6xWA92XwY1bKp03V4A3IiyjrDH+8s5S6p
// SIG // +p4stlFG/a8D1upgaOqFFjZrhekewLPdxCTcgCqBQW2U
// SIG // PsjgyYFBAJ5ev3/FCJiiGCxCQLP5bzgnS06A9D2BR+CI
// SIG // fOoczrV1XFEuHCt/GnIo5wC10XTG1+SfrQeTtlM1Nfw3
// SIG // 5MP2XRa+IXPekgr4oGNqvJaSaj74vGVVm971DYkmBPwl
// SIG // GqYlacvCbcp84llfl6zr7y7IvNcbWTwrzPIZyJNrJ2MZ
// SIG // z/zpJvjKcZt/k/40Z4ROmev8s3gJM3C6ZqZ27Rtz6xql
// SIG // DcQiEyCUVgpOLGxOsf3PnAm6ojPthwIDAQABo4IBUTCC
// SIG // AU0wEgYDVR0TAQH/BAgwBgEB/wIBAjAdBgNVHQ4EFgQU
// SIG // 3QQJB6L1en1SUxKSle44gCUNplkwHwYDVR0jBBgwFoAU
// SIG // CHbNywf/JPbFze27kLzihDdGdfcwDgYDVR0PAQH/BAQD
// SIG // AgEGMDYGA1UdHwQvMC0wK6ApoCeGJWh0dHA6Ly9zc2xj
// SIG // b20uY3JsLmNlcnR1bS5wbC9jdG5jYS5jcmwwcwYIKwYB
// SIG // BQUHAQEEZzBlMCkGCCsGAQUFBzABhh1odHRwOi8vc3Ns
// SIG // Y29tLm9jc3AtY2VydHVtLmNvbTA4BggrBgEFBQcwAoYs
// SIG // aHR0cDovL3NzbGNvbS5yZXBvc2l0b3J5LmNlcnR1bS5w
// SIG // bC9jdG5jYS5jZXIwOgYDVR0gBDMwMTAvBgRVHSAAMCcw
// SIG // JQYIKwYBBQUHAgEWGWh0dHBzOi8vd3d3LmNlcnR1bS5w
// SIG // bC9DUFMwDQYJKoZIhvcNAQELBQADggEBAB+VmiNU7oXC
// SIG // 89RvuekEj0Z/LPcywKdDrAcA7eCpRS39F+HtAEDIr5is
// SIG // 9cAZrRuglzBAbOxb+6OTToyJYht88Dpfp0LPWMp1ZZwi
// SIG // TL92e5iTnBWDM7EO3FE4h3yVnBJplB4AeHR+3MAGd7pw
// SIG // LYcs12id47qFrUnzj2S0FQaDksaXpECTi63xZ5S0uVpn
// SIG // VDyoG9kFz+Sk+YgSAAaIJYXUXu7zk1fWgfgsrvf1UUir
// SIG // tmI6edvsLvI/FFY6yNnLpKJPJajRm6stMCBQBxpv8fGU
// SIG // HTmDY+gf/UnQ6B1GskaCJr2cneGiaEFIUW56/DWW9FTS
// SIG // vCtE5UfXd4KlSqtflzOrJBEwggZcMIIERKADAgECAhBf
// SIG // HLyMXD5fbyT9Ok/kiNYoMA0GCSqGSIb3DQEBCwUAMHMx
// SIG // CzAJBgNVBAYTAlVTMQ4wDAYDVQQIDAVUZXhhczEQMA4G
// SIG // A1UEBwwHSG91c3RvbjERMA8GA1UECgwIU1NMIENvcnAx
// SIG // LzAtBgNVBAMMJlNTTC5jb20gVGltZXN0YW1waW5nIElz
// SIG // c3VpbmcgUlNBIENBIFIxMB4XDTIxMDkxMDE2MzUyMFoX
// SIG // DTMxMDkwODE2MzUxOVowazELMAkGA1UEBhMCVVMxDjAM
// SIG // BgNVBAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMREw
// SIG // DwYDVQQKDAhTU0wgQ29ycDEnMCUGA1UEAwweU1NMLmNv
// SIG // bSBUaW1lc3RhbXBpbmcgVW5pdCAyMDIxMIIBojANBgkq
// SIG // hkiG9w0BAQEFAAOCAY8AMIIBigKCAYEA3FWxcmsb1oGo
// SIG // QlOzPVuLTbLkZbuahu96+CN2O9u89M3X9Egf/Wynh/kL
// SIG // W3ZxA2KpVkiQxIW6+DEEqQvlJVRZdrGONuLgauQr+h/Q
// SIG // pg7oZB3xnBfNHsAWGDwjOQDnhYvrzj+tsPtC8M3bJll2
// SIG // pbjUYoTWWFAHZ6U0lxT6Tw+zMYYSAIKklpVs4UoRny5L
// SIG // A/AOhVWjFPCOgkLs57hGTPd/dtb4zZTMh7XhA0clk5dt
// SIG // U5YtEoktvQBP4m4L18x9ovxMqY5WMsZcTR3QCDxgdZFC
// SIG // R5FC1l9txmqsx/KqJByxOsKvBC8Jt5W9emxjMQR6+m9W
// SIG // N0Eac5T3G8uwYiL70/WkgkMM9ZD5Cg2fYtKyK4hj4Uvm
// SIG // mn2w+xCbz/zQ4ak2j8St24GkrZaQ9KDqb/0zMUFrtifJ
// SIG // oqtdbxzTHJm05yRdIGYW5d47WX6kY3e3BK50HsvCCxC+
// SIG // Gtz7ZkX0Liqluvc0IB4qqnFzYKYcI54vV1xGI8OC86Ut
// SIG // TTGxYiRkCfeIUg4tAgMBAAGjggFyMIIBbjAfBgNVHSME
// SIG // GDAWgBQMnRAljpqnG5mHQ88IfuG9gZD0zzBzBggrBgEF
// SIG // BQcBAQRnMGUwQQYIKwYBBQUHMAKGNWh0dHA6Ly9jZXJ0
// SIG // LnNzbC5jb20vU1NMLmNvbS10aW1lU3RhbXBpbmctSS1S
// SIG // U0EtUjEuY2VyMCAGCCsGAQUFBzABhhRodHRwOi8vb2Nz
// SIG // cHMuc3NsLmNvbTBHBgNVHSAEQDA+MDwGDCsGAQQBgqkw
// SIG // AQMGATAsMCoGCCsGAQUFBwIBFh5odHRwczovL3d3dy5z
// SIG // c2wuY29tL3JlcG9zaXRvcnkwFgYDVR0lAQH/BAwwCgYI
// SIG // KwYBBQUHAwgwRgYDVR0fBD8wPTA7oDmgN4Y1aHR0cDov
// SIG // L2NybHMuc3NsLmNvbS9TU0wuY29tLXRpbWVTdGFtcGlu
// SIG // Zy1JLVJTQS1SMS5jcmwwHQYDVR0OBBYEFFuhtdaY8ROW
// SIG // HjoOL9NB6XAThF+9MA4GA1UdDwEB/wQEAwIHgDANBgkq
// SIG // hkiG9w0BAQsFAAOCAgEAloanb+bXv7OMdKz7p7xomZrM
// SIG // q9ho9AZqbllCY8CRSburB+rnWnMrhb9aePpSpCnkkmX/
// SIG // NmZAbtVoeWe9n8NOi3NYRt6gxS0BtOiTD8hw43ncch4e
// SIG // rnAGJZcfHCKIJzcusSGdTVETUl6Ba4slCoUpcS4LLv1Y
// SIG // fJTgC1c8WOuoyKPXjl5cTxe2OiavobOcD/euEXUlq2DJ
// SIG // UQuRM0GrTMcE51PRMXNfyWHnzfMZhpqJ3Da3ooPcJYBo
// SIG // ldACXH+ywRfi7jhpBbUxCQ61Fe9GcW4NEN2kEnJelMwy
// SIG // c66TOEMewU5xZtXmJnHZKT931WnntdrlajMwYljkr8Lo
// SIG // 042aF/q6EjORLqSBZWld3Xi1BT99jDVXf7grVvwmCk/7
// SIG // M12pf1kpPNHgid8AzZUzgNBqFporL3qDvo4KtUZ+he/3
// SIG // Fw3Z53eW6FiBBEwoGI+oJLuESKJYk7GwX9yjkd51eK4G
// SIG // ZP7U6KnjPOvevOTmm+pQm9BVUXGgfO2P4VKdASZN6tKa
// SIG // l5g5rt5A6ubxDrhetjpAaMEMqjlfkdBDePayK0J4XzuO
// SIG // Spe7mJZ6OPJ35SJThZxm6zmem/3Re95825lgANhCBdW3
// SIG // boOmW130OM3XbQ4SbqX2G9lo5b8LnP9g2jhtk82dGUp2
// SIG // hl03ghvIcxYXBwrmP8p2Pld5lXc/wTIX6yTk3WcG9LEw
// SIG // ggb8MIIE5KADAgECAhBtUhhwh+gjTYVgANCAj5NWMA0G
// SIG // CSqGSIb3DQEBCwUAMHwxCzAJBgNVBAYTAlVTMQ4wDAYD
// SIG // VQQIDAVUZXhhczEQMA4GA1UEBwwHSG91c3RvbjEYMBYG
// SIG // A1UECgwPU1NMIENvcnBvcmF0aW9uMTEwLwYDVQQDDChT
// SIG // U0wuY29tIFJvb3QgQ2VydGlmaWNhdGlvbiBBdXRob3Jp
// SIG // dHkgUlNBMB4XDTE5MTExMzE4NTAwNVoXDTM0MTExMjE4
// SIG // NTAwNVowczELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVRl
// SIG // eGFzMRAwDgYDVQQHDAdIb3VzdG9uMREwDwYDVQQKDAhT
// SIG // U0wgQ29ycDEvMC0GA1UEAwwmU1NMLmNvbSBUaW1lc3Rh
// SIG // bXBpbmcgSXNzdWluZyBSU0EgQ0EgUjEwggIiMA0GCSqG
// SIG // SIb3DQEBAQUAA4ICDwAwggIKAoICAQCuURAT0vk8IKAg
// SIG // hd7JUBxkyeH9xek0/wp/MUjoclrFXqhh/fGH91Fc+7fm
// SIG // 0MHCE7A+wmOiqBj9ODrJAYGq3rm33jCnHSsCBNWAQYyo
// SIG // auLq8IjqsS1JlXL29qDNMMdwZ8UNzQS7vWZMDJ40JSGN
// SIG // phMGTIA2qn2bohGtgRc4p1395ESypUOaGvJ3t0FNL3Bu
// SIG // Kmb6YctMcQUF2sqooMzd89h0E6ujdvBDo6ZwNnWoxj7Y
// SIG // mfWjSXg33A5GuY9ym4QZM5OEVgo8ebz/B+gyhyCLNNhh
// SIG // 4Mb/4xvCTCMVmNYrBviGgdPZYrym8Zb84TQCmSuX0JlL
// SIG // La6WK1aO6qlwISbb9bVGh866ekKblC/XRP20gAu1Cjvc
// SIG // YciUgNTrGFg8f8AJgQPOCc1/CCdaJSYwhJpSdheKOnQg
// SIG // ESgNmYZPhFOC6IKaMAUXk5U1tjTcFCgFvvArXtK4azAW
// SIG // UOO1Y3fdldIBL6LjkzLUCYJNkFXqhsBVcPMuB0nUDWvL
// SIG // JfPimstjJ8lF4S6ECxWnlWi7OElVwTnt1GtRqeY9ydvv
// SIG // GLntU+FecK7DbqHDUd366UreMkSBtzevAc9aqoZPnjVM
// SIG // jvFqV1pYOjzmTiVHZtAc80bAfFe5LLfJzPI6DntNyqob
// SIG // pwTevQpHqPDN9qqNO83r3kaw8A9j+HZiSw2AX5cGdQP0
// SIG // kG0vhzfgBwIDAQABo4IBgTCCAX0wEgYDVR0TAQH/BAgw
// SIG // BgEB/wIBADAfBgNVHSMEGDAWgBTdBAkHovV6fVJTEpKV
// SIG // 7jiAJQ2mWTCBgwYIKwYBBQUHAQEEdzB1MFEGCCsGAQUF
// SIG // BzAChkVodHRwOi8vd3d3LnNzbC5jb20vcmVwb3NpdG9y
// SIG // eS9TU0xjb21Sb290Q2VydGlmaWNhdGlvbkF1dGhvcml0
// SIG // eVJTQS5jcnQwIAYIKwYBBQUHMAGGFGh0dHA6Ly9vY3Nw
// SIG // cy5zc2wuY29tMD8GA1UdIAQ4MDYwNAYEVR0gADAsMCoG
// SIG // CCsGAQUFBwIBFh5odHRwczovL3d3dy5zc2wuY29tL3Jl
// SIG // cG9zaXRvcnkwEwYDVR0lBAwwCgYIKwYBBQUHAwgwOwYD
// SIG // VR0fBDQwMjAwoC6gLIYqaHR0cDovL2NybHMuc3NsLmNv
// SIG // bS9zc2wuY29tLXJzYS1Sb290Q0EuY3JsMB0GA1UdDgQW
// SIG // BBQMnRAljpqnG5mHQ88IfuG9gZD0zzAOBgNVHQ8BAf8E
// SIG // BAMCAYYwDQYJKoZIhvcNAQELBQADggIBAJIZdQ2mWkLP
// SIG // GQfZ8vyU+sCb8BXpRJZaL3Ez3VDlE3uZk3cPxPtybVfL
// SIG // uqaci0W6SB22JTMttCiQMnIVOsXWnIuAbD/aFTcUkTLB
// SIG // I3xys+wEajzXaXJYWACDS47BRjDtYlDW14gLJxf8W6DQ
// SIG // oH3jHDGGy8kGJFOlDKG7/YrK7UGfHtBAEDVe6lyZ+FtC
// SIG // srk7dD/IiL/+Q3Q6SFASJLQ2XI89ihFugdYL77CiDNXr
// SIG // I2MFspQGswXEAGpHuaQDTHUp/LdR3TyrIsLlnzoLskUG
// SIG // swF/KF8+kpWUiKJNC4rPWtNrxlbXYRGgdEdx8SMjUTDC
// SIG // lldcrknlFxbqHsVmr9xkT2QtFmG+dEq1v5fsIK0vHaHr
// SIG // WjMMmaJ9i+4qGJSD0stYfQ6v0PddT7EpGxGd867Ada6F
// SIG // ZyHwbuQSadMb0K0P0OC2r7rwqBUe0BaMqTa6LWzWItgB
// SIG // jGcObXeMxmbQqlEz2YtAcErkZvh0WABDDE4U8GyV/32F
// SIG // daAvJgTfe9MiL2nSBioYe/g5mHUSWAay/Ip1RQmQCvmF
// SIG // 9sNfqlhJwkjy/1U1ibUkTIUBX3HgymyQvqQTZLLys6pL
// SIG // 2tCdWcjI9YuLw30rgZm8+K387L7ycUvqrmQ3ZJlujHl3
// SIG // r1hgV76s3WwMPgKk1bAEFMj+rRXimSC+Ev30hXZdqyMd
// SIG // l/il5Ksd0vhGMYIDmTCCA5UCAQEwgYcwczELMAkGA1UE
// SIG // BhMCVVMxDjAMBgNVBAgMBVRleGFzMRAwDgYDVQQHDAdI
// SIG // b3VzdG9uMREwDwYDVQQKDAhTU0wgQ29ycDEvMC0GA1UE
// SIG // AwwmU1NMLmNvbSBUaW1lc3RhbXBpbmcgSXNzdWluZyBS
// SIG // U0EgQ0EgUjECEF8cvIxcPl9vJP06T+SI1igwCwYJYIZI
// SIG // AWUDBAIBoIIBZDAaBgkqhkiG9w0BCQMxDQYLKoZIhvcN
// SIG // AQkQAQQwHAYJKoZIhvcNAQkFMQ8XDTIyMDQwNDEyMzU1
// SIG // NFowKwYJKoZIhvcNAQk0MR4wHDALBglghkgBZQMEAgGh
// SIG // DQYJKoZIhvcNAQELBQAwLwYJKoZIhvcNAQkEMSIEIDEx
// SIG // +J7W3FmlclFqps0lnYEJNic/ZAusoGKV/wzzrzzKMIHJ
// SIG // BgsqhkiG9w0BCRACLzGBuTCBtjCBszCBsAQgoc05HBEP
// SIG // OuoYlS1skEHb5m6BpatckXFttY4rZ+nlf5gwgYswd6R1
// SIG // MHMxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIDAVUZXhhczEQ
// SIG // MA4GA1UEBwwHSG91c3RvbjERMA8GA1UECgwIU1NMIENv
// SIG // cnAxLzAtBgNVBAMMJlNTTC5jb20gVGltZXN0YW1waW5n
// SIG // IElzc3VpbmcgUlNBIENBIFIxAhBfHLyMXD5fbyT9Ok/k
// SIG // iNYoMA0GCSqGSIb3DQEBCwUABIIBgMo99ZaM9ouj2jla
// SIG // mzs3qwMCyGfMBXrTnd7ndOO3qG7n1D+9uL4LmoPCFAzs
// SIG // b6amerY/dNqQZyRUzv5RvqvZrMpziAjULGuyTZsDOJls
// SIG // XthrHhiV6Qdg3msHDMJhQv7avLyIk3KFb7o0Dx3FdNdq
// SIG // vHUJRuEeUZgFzSn+/3vXN8oClzJRZ9jtKufq+3o9YB2r
// SIG // OtVuuP9ch4SIgeypXguPQommW0fb92g7JJaiIlAHHO8T
// SIG // 2GS4e7np4LBtFBCBHYcHOQ9HzKchChgyGJNjhf1VtdPO
// SIG // /y5zkVsywDxn2RpNoVkVeS+OsSlnGxZLVUw73igvklKq
// SIG // MtM1AKQ64QWQ24+BBs6zlVXELWrTHhPgyQkw2Qmhg3sd
// SIG // Kh4P5YxmVVL4vyFkubLco3BZFvegkjXo21n0jp0iVIqd
// SIG // whnjh+QdVuPaIPAn5/kQg/sRew1g74Qe/t29QlrD0gIr
// SIG // YSLPEbE3DCeJt8J+st9C+zfg95zjRfkTRUfWn32H7w7z
// SIG // Z4bpSBly3ZD/SQ==
// SIG // End signature block
